/* ===========================================
   1. CSS VARIABLES & RESET
   =========================================== */
:root {
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --bg: #fafaf8;
  --bg-surface: #f2f1ed;
  --bg-hero: #1a1a1a;
  --text-primary: #1a1a1a;
  --text-secondary: #5c5c5c;
  --text-tertiary: #8a8a8a;
  --text-inverse: #fafaf8;
  --accent: #c8102e;
  --accent-light: rgba(200, 16, 46, 0.08);
  --accent-dark: #a00d24;
  --border: #e0dfdb;
  --border-light: #eceae6;
  --success: #2d7a3a;
  --danger: #b91c1c;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);

  --content-width: 830px;
  --wide-width: 900px;
  --section-gap: clamp(3rem, 6vw, 5rem);
  --component-gap: 2rem;

  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.15vw, 0.875rem);
  --text-xs: 0.75rem;
  --h1-size: clamp(2.25rem, 1.5rem + 3.75vw, 3.75rem);
  --h2-size: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --h3-size: clamp(1.1875rem, 1.05rem + 0.6vw, 1.375rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ===========================================
   2. GENERAL TYPOGRAPHY
   =========================================== */
p {
  text-align: left;
  margin-bottom: 1.25em;
}

h2 {
  font-family: var(--font-display);
  font-size: var(--h2-size);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-primary);
  text-align: left;
  margin-bottom: 1rem;
  scroll-margin-top: 2rem;
  letter-spacing: -0.01em;
}

h3 {
  font-family: var(--font-display);
  font-size: var(--h3-size);
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
  text-align: left;
  margin-bottom: 0.75rem;
  scroll-margin-top: 2rem;
}

ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1.25em;
  text-align: left;
}

li {
  margin-bottom: 0.4em;
  text-align: left;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin: 1.5em 0;
  font-style: italic;
  color: var(--text-secondary);
}

figure {
  margin: 1.5em auto;
}

figure img {
  display: block;
  max-width: 100%;
  height: auto;
}

figcaption {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: var(--text-sm);
}

thead {
  border-bottom: 2px solid var(--text-primary);
}

th {
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  vertical-align: top;
}

tbody tr:hover {
  background-color: var(--accent-light);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ===========================================
   3. LAYOUT — DATA-CONTENT SECTIONS
   =========================================== */
main {
  width: 100%;
}

[data-content] {
  max-width: var(--content-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.25rem;
  margin-bottom: var(--section-gap);
}

[data-content] + [data-content] {
  margin-top: 0;
}

/* ===========================================
   4. COMPONENTS
   =========================================== */

/* --- TL;DR --- */
.tldr {
  background-color: var(--bg-surface);
  border-left: 4px solid var(--accent);
  padding: 1.75rem 2rem;
  border-radius: 0 6px 6px 0;
}

.tldr h2 {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.tldr ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.tldr li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75em;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-primary);
}

.tldr li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
}

.tldr li:last-child {
  margin-bottom: 0;
}

/* --- Info Box --- */
.info-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  margin: var(--component-gap) 0;
  box-shadow: var(--shadow-sm);
}

.info-box p {
  text-align: left;
  color: var(--text-primary);
  margin-bottom: 0.75em;
  font-size: var(--text-sm);
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box p:first-child strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

/* --- Odds Example --- */
.odds-example {
  background-color: var(--bg-hero);
  color: var(--text-inverse);
  border-radius: 6px;
  padding: 1.5rem 1.75rem;
  margin: var(--component-gap) 0;
  box-shadow: var(--shadow-md);
}

.odds-example p {
  text-align: left;
  color: var(--text-inverse);
  margin-bottom: 0.75em;
  font-size: var(--text-sm);
  line-height: 1.65;
}

.odds-example p:last-child {
  margin-bottom: 0;
}

.odds-example p:first-child strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-inverse);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: var(--text-xs);
}

/* --- Callout --- */
.callout {
  border-left: 4px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: var(--component-gap) 0;
  background-color: var(--accent-light);
  border-radius: 0 6px 6px 0;
}

.callout p {
  text-align: left;
  color: var(--text-primary);
  margin-bottom: 0;
  font-size: var(--text-sm);
  line-height: 1.65;
}

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: var(--component-gap) 0;
}

.card-grid > div {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.card-grid p {
  text-align: left;
  color: var(--text-primary);
  font-size: var(--text-sm);
  margin-bottom: 0.5em;
}

.card-grid p:last-child {
  margin-bottom: 0;
}

/* --- Comparison --- */
.comparison {
  margin: var(--component-gap) 0;
  overflow-x: auto;
}

.comparison table {
  min-width: 600px;
}

.comparison th {
  background-color: var(--bg-surface);
}

/* --- Key Takeaway --- */
.key-takeaway {
  border-top: 2px solid var(--accent);
  padding-top: 1rem;
  margin: var(--component-gap) 0;
}

.key-takeaway p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  text-align: left;
  margin-bottom: 0;
}

/* --- Fun Fact --- */
.fun-fact {
  position: relative;
  padding-left: 1.5rem;
  margin: var(--component-gap) 0;
}

.fun-fact::before {
  content: '\2014';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.fun-fact p {
  font-style: italic;
  color: var(--text-secondary);
  text-align: left;
  margin-bottom: 0;
  font-size: var(--text-sm);
  line-height: 1.65;
}

/* --- Glossary Term --- */
.glossary-term {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: var(--component-gap) 0;
}

.glossary-term p {
  margin-bottom: 0;
  text-align: left;
}

.glossary-term strong {
  font-family: var(--font-mono);
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--accent);
  white-space: nowrap;
  font-size: var(--text-sm);
}

/* --- Dos & Don'ts --- */
.dos-donts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: var(--component-gap) 0;
}

.dos-donts > div:first-child {
  border-left: 4px solid var(--success);
  padding-left: 1.25rem;
}

.dos-donts > div:last-child {
  border-left: 4px solid var(--danger);
  padding-left: 1.25rem;
}

.dos-donts p {
  text-align: left;
  color: var(--text-primary);
}

.dos-donts strong {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dos-donts ul {
  padding-left: 1.25em;
}

.dos-donts li {
  font-size: var(--text-sm);
  margin-bottom: 0.5em;
  text-align: left;
  color: var(--text-primary);
}

/* --- Pre-bet Checklist --- */
.pre-bet-checklist {
  margin: var(--component-gap) 0;
}

.pre-bet-checklist > p:first-child strong {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.pre-bet-checklist ul {
  list-style: none;
  padding-left: 1.75rem;
  border-left: 2px solid var(--border);
  margin-bottom: 0;
}

.pre-bet-checklist li {
  position: relative;
  font-size: var(--text-sm);
  padding: 0.4em 0;
  text-align: left;
  color: var(--text-primary);
}

.pre-bet-checklist li::before {
  content: '\2610';
  position: absolute;
  left: -1.75rem;
  transform: translateX(-50%);
  color: var(--accent);
  font-size: 1rem;
  background-color: var(--bg);
  padding: 0 2px;
}

/* --- At a Glance --- */
.at-a-glance {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: var(--component-gap) 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.at-a-glance > div {
  padding: 1.25rem;
  border-right: 1px solid var(--border);
  text-align: center;
}

.at-a-glance > div:last-child {
  border-right: none;
}

.at-a-glance p {
  text-align: center;
  color: var(--text-primary);
  margin-bottom: 0.25em;
  font-size: var(--text-sm);
}

.at-a-glance p:first-child {
  text-align: center;
}

.at-a-glance p:first-child strong {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.at-a-glance p:last-child {
  font-family: var(--font-display);
  font-size: clamp(0.9375rem, 0.875rem + 0.25vw, 1.0625rem);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0;
  line-height: 1.4;
}

/* --- Worked Example --- */
.worked-example {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem 2rem;
  margin: var(--component-gap) 0;
  box-shadow: var(--shadow-sm);
}

.worked-example p {
  text-align: left;
  color: var(--text-primary);
  margin-bottom: 0.75em;
  font-size: var(--text-sm);
}

.worked-example p:last-child {
  margin-bottom: 0;
}

.worked-example p:first-child strong {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

.worked-example strong:not(:first-child) {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}

/* --- Section Bridge --- */
.section-bridge {
  text-align: center;
  margin: var(--component-gap) 0;
  position: relative;
  padding: 1rem 0;
}

.section-bridge::before,
.section-bridge::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 2rem;
  height: 1px;
  background-color: var(--border);
}

.section-bridge::before {
  left: 0;
}

.section-bridge::after {
  right: 0;
}

.section-bridge p {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: var(--text-sm);
  text-align: center;
  margin-bottom: 0;
  line-height: 1.6;
}

/* --- Author Bio --- */
.author-bio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* ===========================================
   5. HEADER
   =========================================== */
.site-header {
  position: relative;
  z-index: 10;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border-light);
}

.site-logo img {
  width: 180px;
  height: auto;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-trust {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
}

.header-date {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  background-color: var(--bg-surface);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}

/* ===========================================
   6. HERO SECTION
   =========================================== */
[data-content="hero"] {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  padding: 0;
  margin-bottom: var(--section-gap);
  background-color: var(--bg-hero);
  color: var(--text-inverse);
  position: relative;
  overflow: hidden;
  text-align: center;
}

[data-content="hero"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 59px,
      rgba(255,255,255,0.03) 59px,
      rgba(255,255,255,0.03) 60px
    ),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 59px,
      rgba(255,255,255,0.03) 59px,
      rgba(255,255,255,0.03) 60px
    );
  pointer-events: none;
  z-index: 0;
}

[data-content="hero"]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 80%, rgba(200,16,46,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) 1.25rem clamp(2.5rem, 5vw, 4rem);
  position: relative;
  z-index: 1;
}

.hero-rubric {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: block;
  text-align: center;
  position: relative;
  z-index: 1;
}

[data-content="hero"] h1 {
  font-family: var(--font-display);
  font-size: var(--h1-size);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-inverse);
  text-align: center;
  margin: 0 auto 1rem;
  max-width: var(--content-width);
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.4vw, 1.1875rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-tertiary);
  text-align: center;
  margin: 0 auto 1.5rem;
  max-width: 520px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.hero-byline {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-tertiary);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 1;
  margin-bottom: 2rem;
}

[data-content="hero"] figure {
  margin: 0 auto;
  max-width: var(--wide-width);
  position: relative;
  z-index: 1;
}

[data-content="hero"] figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px 6px 0 0;
  margin: 0 auto;
}

/* ===========================================
   7. TOC
   =========================================== */
[data-content="toc"] {
  margin-bottom: var(--section-gap);
}

.toc-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-strip li {
  margin-bottom: 0;
}

.toc-strip a {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.toc-strip a:hover {
  background-color: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.toc-strip a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===========================================
   8. FAQ ACCORDION
   =========================================== */
[data-content="faq"] details {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

[data-content="faq"] details:first-of-type {
  border-top: 1px solid var(--border);
}

[data-content="faq"] summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  list-style: none;
  transition: color 0.2s ease;
}

[data-content="faq"] summary::-webkit-details-marker {
  display: none;
}

[data-content="faq"] summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

[data-content="faq"] details[open] summary::after {
  content: '\2212';
}

[data-content="faq"] summary:hover {
  color: var(--accent);
}

[data-content="faq"] summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Native CSS animation for details */
[data-content="faq"] details {
  interpolate-size: allow-keywords;
}

[data-content="faq"] ::details-content {
  opacity: 0;
  block-size: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, block-size 0.3s ease, content-visibility 0.3s ease allow-discrete;
}

[data-content="faq"] details[open]::details-content {
  opacity: 1;
  block-size: auto;
}

/* Fallback for older browsers */
@supports not selector(::details-content) {
  [data-content="faq"] details[open] > div {
    animation: faq-fade-in 0.3s ease forwards;
  }
}

@keyframes faq-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-content="faq"] details div {
  padding-bottom: 1rem;
}

[data-content="faq"] details div p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: left;
  margin-bottom: 0;
}

/* ===========================================
   9. BACK TO TOP
   =========================================== */
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
  margin-top: 1rem;
}

.back-to-top:hover {
  color: var(--accent);
}

.back-to-top::before {
  content: '\2191';
}

/* ===========================================
   10. FOOTER
   =========================================== */
.site-footer {
  background-color: var(--bg-hero);
  color: rgba(250,250,248,0.65);
  padding: clamp(2.5rem, 5vw, 4rem) 1.25rem 0;
  margin-top: var(--section-gap);
}

.footer-grid {
  max-width: var(--wide-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(250,250,248,0.4);
  margin-bottom: 1rem;
}

.footer-col p,
.footer-col li {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: rgba(250,250,248,0.55);
  margin-bottom: 0.5em;
  text-align: left;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col a {
  color: rgba(250,250,248,0.65);
  text-decoration: none;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text-inverse);
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--wide-width);
  margin: 2rem auto 0;
  padding: 1.25rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(250,250,248,0.4);
  margin-bottom: 0;
  text-align: left;
}

/* Logo in footer */
.footer-logo img {
  width: 120px;
  height: auto;
  opacity: 0.7;
}

/* ===========================================
   11. MEDIA QUERIES
   =========================================== */
@media (max-width: 768px) {
  [data-content] {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .site-header {
    padding: 0.75rem 1rem;
  }

  .site-logo img {
    width: 140px;
  }

  .header-trust {
    display: none;
  }

  .at-a-glance {
    grid-template-columns: repeat(2, 1fr);
  }

  .at-a-glance > div {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .at-a-glance > div:nth-child(odd) {
    border-right: 1px solid var(--border);
  }

  .at-a-glance > div:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .dos-donts {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .glossary-term {
    flex-direction: column;
    gap: 4px;
  }

  .comparison {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .toc-strip {
    gap: 0.375rem;
  }

  .toc-strip a {
    font-size: 0.6875rem;
    padding: 0.3rem 0.6rem;
  }

  .hero-inner {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 480px) {
  .at-a-glance {
    grid-template-columns: 1fr;
  }

  .at-a-glance > div {
    border-right: none !important;
    border-bottom: 1px solid var(--border);
  }

  .at-a-glance > div:last-child {
    border-bottom: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom p {
    text-align: center;
  }
}

/* =========================================
   UNIVERSAL DESKTOP & MOBILE MENU + LOGO
   ========================================= */

/* Header Base */
.site-header {
    background-color: var(--color-bg, #121212);
    border-bottom: 1px solid var(--color-border, #333333);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Mobile defaults for navigation bar */
.top-navigation-bar {
    width: 100%;
    margin: 0 auto;
    padding: 15px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Fixes */
.site-logo img {
    max-height: 40px; 
    width: auto !important; 
    display: block;
    transition: transform 0.2s ease;
}

.site-logo img:hover {
    transform: scale(1.02);
}

/* Desktop Menu */
.site-nav--desktop {
    display: none; 
}

/* Desktop Grid Layout: Logo left, Menu center */
@media (min-width: 1024px) {
    .top-navigation-bar {
        max-width: 100%;
        padding: 15px 40px; 
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }
    
    .site-logo {
        grid-column: 1;
        justify-self: start; 
        margin: 0;
    }

    .site-nav--desktop {
        display: block;
        grid-column: 2;
        justify-self: center; 
    }

    .mobile-controls {
        display: none; 
    }
    
    .menu-desktop {
        display: flex;
        gap: 30px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .menu-desktop a {
        text-decoration: none;
        color: var(--color-text, #ffffff);
        font-family: var(--font-body, sans-serif);
        font-weight: 500;
        font-size: 16px;
        transition: color 0.2s ease;
    }
    
    .menu-desktop a:hover {
        color: var(--color-accent, #eab308);
    }
}

/* Mobile Burger Button */
.burger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
    z-index: 1000;
}
.burger::before,
.burger::after,
.burger span {
    background-color: #111111 !important;
}

.burger span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--color-text, #ffffff);
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 2px;
}

/* Burger Animation to X */
.burger.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.burger.is-active span:nth-child(2) {
    opacity: 0;
}
.burger.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu Slider */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; 
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--color-bg, #121212);
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    overflow-y: auto;
    padding: 60px 30px;
}

.mobile-menu.is-open {
    right: 0; 
}

.mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 36px;
    line-height: 1;
    color: var(--color-text, #ffffff);
    cursor: pointer;
    transition: color 0.2s ease;
}

.mobile-menu__close:hover {
    color: var(--color-accent, #eab308);
}

.menu-mobile {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.menu-mobile a {
    text-decoration: none;
    color: var(--color-text, #ffffff);
    font-size: 20px;
    font-family: var(--font-display, sans-serif);
    font-weight: 600;
    display: block;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.menu-mobile a:hover {
    color: var(--color-accent, #eab308);
    padding-left: 10px; 
}

/* Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px); 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    z-index: 998;
}

.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

#crumbs {
    padding: 10px 0;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
    text-align: center; 
}

#crumbs a {
    text-decoration: none;
    color: #0073aa; 
}

#crumbs a:hover {
    text-decoration: underline;
}

#crumbs .current {
    font-weight: bold;
    color: rgb(8, 7, 7);
}



body {
  overflow-x: clip;
}

header,
.top-navigation-bar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.menu-desktop a,
.site-header a,
.top-navigation-bar a,
.site-title,
.site-logo {
    color: #111827 !important;
    font-weight: 500;
}

.menu-desktop a:hover,
.site-header a:hover {
    color: #dc2626 !important; 
}

@media (max-width: 900px) {
    html, body {
        overflow-x: hidden !important; 
        width: 100% !important;
        max-width: 100vw !important;
    }

    main {
        display: block !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    [data-content="hero"], 
    main:not(:has([data-content="toc"])) [data-content="hero"],
    .article-hero,
    .cl-hero {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 1rem !important; 
        padding-right: 1rem !important;
        box-sizing: border-box !important;
    }
    
    .tldr, [data-content], article {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

