/* =========================================================================
   MISOPHONIA RESEARCH — Editorial Scientific Design System
   v3.0 — "World-class redesign"
   ========================================================================= */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Editorial palette — warm ivory + midnight + coral accent */
  --ink:           #0e1525;          /* near-black headlines */
  --ink-soft:      #1f2a44;
  --body:          #2b3548;          /* body text */
  --muted:         #6a7385;
  --rule:          #e6e3dc;          /* hairline rules */
  --rule-strong:   #c9c3b6;
  --paper:         #faf7f0;          /* page background (warm cream) */
  --paper-card:    #ffffff;
  --paper-tint:    #f3eee2;          /* warmer tint for alt sections */
  --midnight:      #0e1525;          /* dark sections bg */
  --midnight-2:    #131b30;
  --midnight-3:    #1a2440;

  /* Accents */
  --accent:        #e6533c;          /* coral red (signal) */
  --accent-soft:   #fadcd5;
  --accent-deep:   #b53824;
  --teal:          #2a7e7a;
  --teal-soft:     #d5ebe9;
  --gold:          #b8860b;
  --gold-soft:     #f5ebcf;
  --green:         #277f5d;
  --green-soft:    #d5ecde;
  --amber:         #c97a17;
  --amber-soft:    #f7e3c4;
  --rose:          #b53259;
  --rose-soft:     #f4d6df;
  --indigo:        #3b3a8c;
  --indigo-soft:   #dad9f0;

  /* Type */
  --font-serif: "Iowan Old Style", "Charter", "Georgia", "Cambria", "Times New Roman", serif;
  --font-sans:  ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono:  ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  /* Scale */
  --fs-hero:    clamp(3rem, 8vw, 6.5rem);
  --fs-display: clamp(2.25rem, 5vw, 4rem);
  --fs-h2:      clamp(1.75rem, 3vw, 2.6rem);
  --fs-h3:      clamp(1.15rem, 1.6vw, 1.35rem);
  --fs-lead:    clamp(1.1rem, 1.6vw, 1.35rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.875rem;
  --fs-micro:   0.75rem;

  /* Layout */
  --container:    1240px;
  --container-narrow: 880px;
  --container-wide:   1440px;
  --pad-x:        clamp(1.25rem, 4vw, 2.5rem);

  /* Radius & shadow */
  --r-sm: 6px;
  --r:    12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-sm:  0 1px 2px rgba(14,21,37,0.04), 0 1px 3px rgba(14,21,37,0.06);
  --shadow:     0 4px 12px rgba(14,21,37,0.06), 0 12px 32px rgba(14,21,37,0.08);
  --shadow-lg:  0 8px 24px rgba(14,21,37,0.08), 0 32px 64px rgba(14,21,37,0.12);
  --shadow-dark:0 20px 60px rgba(0,0,0,0.45);

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  .55s;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: var(--accent); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--ink); color: var(--paper); }

/* Headings use serif */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 .6em 0;
}

/* ---------- ACCESSIBILITY ---------- */
.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; z-index: 9999;
  text-decoration: none; font-weight: 700;
  border-radius: 0 0 var(--r) 0;
}
.skip-link:focus { top: 0; outline: 3px solid var(--accent); }

*:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Reading progress bar */
.read-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  z-index: 10001;
  transition: width .1s linear;
  pointer-events: none;
}

/* ---------- CONTAINER ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ---------- NAVIGATION ---------- */
.main-nav {
  position: sticky; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250, 247, 240, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.main-nav.scrolled {
  background: rgba(250, 247, 240, 0.95);
  border-bottom-color: var(--rule);
  box-shadow: 0 1px 0 rgba(14,21,37,0.04);
}
.nav-container {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  height: 64px;
  display: flex; align-items: center; gap: 1.5rem;
}
.nav-brand {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-brand:hover { color: var(--accent); text-decoration: none; }
.nav-brand::before {
  content: "•";
  color: var(--accent);
  margin-right: 8px;
  font-size: 1.2em;
  line-height: 0;
  vertical-align: middle;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0.15rem;
  margin: 0; padding: 0;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(to right, #000 90%, transparent);
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--body);
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(14,21,37,0.04); text-decoration: none; }
.nav-links a.active {
  color: var(--ink);
  background: rgba(230, 83, 60, 0.08);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  padding: 8px;
  border-radius: 8px;
  background: transparent;
  margin-left: auto;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  margin: 4px auto;
  transition: transform .25s ease, opacity .2s ease;
  border-radius: 2px;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Language switcher */
.lang-switcher { position: relative; flex-shrink: 0; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-card);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  transition: all .2s ease;
}
.lang-btn:hover { border-color: var(--rule-strong); transform: translateY(-1px); }
.lang-flag { font-size: 1rem; }
.lang-arrow { font-size: 0.7rem; opacity: 0.6; }
.lang-dropdown {
  list-style: none;
  margin: 0; padding: 6px;
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--paper-card);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  border: 1px solid var(--rule);
  opacity: 0; transform: translateY(-6px); visibility: hidden;
  transition: all .2s ease;
}
.lang-dropdown.open { opacity: 1; transform: translateY(0); visibility: visible; }
.lang-dropdown li {
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background .15s ease;
}
.lang-dropdown li:hover { background: var(--paper-tint); }
.lang-dropdown li.active { background: var(--paper-tint); font-weight: 600; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(7rem, 14vw, 11rem);
  background: var(--midnight);
  color: #f1ede2;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* radial spotlight */
  content: "";
  position: absolute; inset: -20% -20% auto -20%; height: 70%;
  background: radial-gradient(ellipse at 50% 0%, rgba(230,83,60,0.22), transparent 60%);
  z-index: -2;
  pointer-events: none;
}
.hero::after {
  /* animated soundwave grid */
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 32px 32px;
  z-index: -1;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  opacity: .6;
}
.hero .container { position: relative; z-index: 2; max-width: 1100px; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: rgba(241,237,226,0.7);
  padding: 6px 14px;
  border: 1px solid rgba(241,237,226,0.2);
  border-radius: 999px;
  margin-bottom: 1.75rem;
}
.hero-eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 10px var(--accent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: var(--fs-hero);
  font-weight: 600;
  color: #f4efe0;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem 0;
}
.hero h1 em, .hero h1 i {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 400;
  color: rgba(241,237,226,0.78);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.45;
}
.hero-meta {
  display: inline-flex; align-items: center; gap: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(241,237,226,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-meta span { position: relative; }
.hero-meta span + span::before {
  content: "/"; position: absolute; left: -0.85rem; opacity: 0.4;
}

/* Animated soundwave in hero (background) */
.hero-soundwave {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
.hero-wave-line {
  transform-origin: center;
  animation: waveBreathe 6s ease-in-out infinite;
}
.hero-wave-line--1 { animation-delay: 0s; animation-duration: 7s; }
.hero-wave-line--2 { animation-delay: -1.2s; animation-duration: 5.5s; }
.hero-wave-line--3 { animation-delay: -2.4s; animation-duration: 8s; }
.hero-wave-line--4 { animation-delay: -3.6s; animation-duration: 6.5s; }
.hero-wave-line--5 { animation-delay: -4.8s; animation-duration: 9s; }
@keyframes waveBreathe {
  0%, 100% { transform: scaleY(1) translateY(0); opacity: 0.3; }
  50% { transform: scaleY(2.2) translateY(0); opacity: 0.75; }
}

/* Bottom paper wave */
.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: 110px;
  z-index: 3;
}
.hero-wave path { fill: var(--paper); }

/* ---------- SECTION SYSTEM ---------- */
.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
  position: relative;
}
.section--tinted { background: var(--paper-tint); }
.section--highlight { background: var(--paper-card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section--dark { background: var(--midnight); color: #e2dfd6; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #f3efe2; }
.section--dark .section-subtitle { color: rgba(226,223,214,0.75); }

.section-title {
  font-size: var(--fs-display);
  text-align: center;
  margin: 0 auto 0.5rem;
  max-width: 24ch;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 56px; height: 3px;
  background: var(--accent);
  margin: 1.25rem auto 0;
  border-radius: 2px;
}
.section-subtitle {
  text-align: center;
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto 3.5rem;
  line-height: 1.5;
}

/* ---------- METHODOLOGY BANNER (about) ---------- */
.methodology-banner {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.methodology-box {
  max-width: var(--container-narrow);
  margin: 0 auto;
  background: var(--paper-card);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--accent);
  box-shadow: var(--shadow);
}
.methodology-box h2 {
  font-size: 1.6rem;
  margin: 0 0 1.25rem;
}
.methodology-box p {
  font-size: 1rem;
  color: var(--body);
  margin: 0 0 1rem;
  line-height: 1.7;
}
.methodology-box p:last-child { margin-bottom: 0; }
.methodology-box strong { color: var(--ink); }
.methodology-box a { color: var(--accent); font-weight: 600; }

/* ---------- BY THE NUMBERS ---------- */
.by-numbers {
  padding: clamp(4rem, 7vw, 6rem) 0;
  background: var(--midnight);
  color: #e8e3d4;
  position: relative;
  overflow: hidden;
}
.by-numbers::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(230,83,60,0.08), transparent 50%),
                    radial-gradient(circle at 80% 70%, rgba(184,134,11,0.06), transparent 50%);
  pointer-events: none;
}
.by-numbers .container { position: relative; z-index: 1; }
.by-numbers .section-title { color: #f3efe2; }
.by-numbers .section-title::after { background: var(--gold); }
.by-numbers .section-subtitle { color: rgba(232,227,212,0.65); }

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(241,237,226,0.12);
  border-left: 1px solid rgba(241,237,226,0.12);
}
.number-card {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  border-right: 1px solid rgba(241,237,226,0.12);
  border-bottom: 1px solid rgba(241,237,226,0.12);
  display: flex; flex-direction: column;
  text-align: left;
  position: relative;
  transition: background .25s ease;
}
.number-card:hover { background: rgba(241,237,226,0.025); }
.big-number {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 6vw, 5.2rem);
  font-weight: 600;
  color: #f4efe0;
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: 0.5rem;
}
.number-label {
  font-size: 0.92rem;
  color: rgba(232,227,212,0.7);
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ---------- KEY FINDINGS ---------- */
.findings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.finding-card {
  position: relative;
  padding: 2rem 1.75rem 1.5rem;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
  border-radius: var(--r-lg);
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.finding-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.finding-number {
  position: absolute; top: 1rem; right: 1.25rem;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--paper-tint);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
}
.finding-card h3 {
  font-size: 1.15rem;
  margin: 0 0 .75rem;
  padding-right: 2.5rem;
}
.finding-card p {
  font-size: 0.95rem;
  color: var(--body);
  margin: 0;
  line-height: 1.6;
}

/* ---------- WHAT IS / IS NOT (comparison) ---------- */
.definition-box {
  position: relative;
  max-width: var(--container-narrow);
  margin: 0 auto 3rem;
  padding: 2.5rem 2.5rem 2rem;
  background: linear-gradient(135deg, #f7f1e3 0%, #fdf9ed 100%);
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--ink);
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.definition-box::before {
  content: "\201C";
  position: absolute;
  top: -2rem; left: 1.5rem;
  font-family: var(--font-serif);
  font-size: 7rem;
  color: var(--accent);
  line-height: 1;
  opacity: 0.35;
  pointer-events: none;
}
.definition-box strong { color: var(--ink); }
.definition-box p { margin: 0; }

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.comparison-col {
  padding: 2rem;
  border-radius: var(--r-lg);
  position: relative;
}
.comparison-col--yes {
  background: linear-gradient(160deg, #e6f4ed 0%, #f3faf6 100%);
  border: 1px solid #c8e4d3;
}
.comparison-col--no {
  background: linear-gradient(160deg, #fde9e3 0%, #fdf3ef 100%);
  border: 1px solid #f3cfc3;
}
.comparison-col h3 {
  font-size: 1.3rem;
  margin: 0 0 1.25rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.comparison-col--yes h3 { color: #1c5d3f; }
.comparison-col--yes h3::before { content: "✓"; color: var(--green); font-size: 1.5rem; font-weight: 900; }
.comparison-col--no h3 { color: #882c1c; }
.comparison-col--no h3::before { content: "✕"; color: var(--accent-deep); font-size: 1.4rem; font-weight: 900; }
.comparison-col ul {
  list-style: none;
  padding: 0; margin: 0;
}
.comparison-col li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  font-size: 0.97rem;
  line-height: 1.55;
  border-bottom: 1px dashed rgba(14,21,37,0.08);
  color: var(--ink-soft);
}
.comparison-col li:last-child { border-bottom: none; }
.comparison-col--yes li::before { content: "›"; position: absolute; left: 0.25rem; color: var(--green); font-weight: 700; }
.comparison-col--no li::before { content: "›"; position: absolute; left: 0.25rem; color: var(--accent-deep); font-weight: 700; }

/* ---------- INTIMACY EFFECT ---------- */
.intimacy-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.intimacy-why, .intimacy-implication {
  padding: 2rem;
  background: var(--paper-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.intimacy-why::before, .intimacy-implication::before {
  content: "";
  position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
}
.intimacy-why::before { background: var(--rose); }
.intimacy-implication::before { background: var(--teal); }
.intimacy-why h3, .intimacy-implication h3 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}
.intimacy-why ul, .intimacy-implication ul {
  margin: 0; padding-left: 1.1rem;
}
.intimacy-why li, .intimacy-implication li {
  padding: 0.4rem 0;
  font-size: 0.97rem;
  line-height: 1.55;
  color: var(--body);
}
.intimacy-implication p {
  font-size: 0.97rem;
  margin: 0 0 1rem;
  line-height: 1.65;
  color: var(--body);
}

/* ---------- ONSET ---------- */
.onset-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
  position: relative;
}
.onset-timeline::before {
  content: "";
  position: absolute; left: 8%; right: 8%; top: 50px;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--rule-strong) 0, var(--rule-strong) 6px, transparent 6px, transparent 12px);
  z-index: 0;
}
.onset-period {
  padding: 1.75rem 1.5rem;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease;
}
.onset-period:hover { transform: translateY(-3px); }
.onset-period h3 {
  font-size: 1.05rem;
  margin: 0 0 .5rem;
}
.onset-period p {
  font-size: 0.92rem;
  color: var(--body);
  margin: .75rem 0 0;
  line-height: 1.55;
}

/* Onset chart */
.onset-chart {
  max-width: 800px;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--paper-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}
.onset-chart h3 {
  font-size: 1.2rem;
  margin: 0 0 .5rem;
  text-align: center;
}
.onset-chart-median {
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.onset-chart-median span {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
}
.onset-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  height: 220px;
  align-items: end;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--ink);
}
.onset-bar-col {
  display: flex; flex-direction: column; align-items: center;
  height: 100%;
  position: relative;
}
.onset-bar-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.onset-bar-fill {
  width: 70%;
  background: linear-gradient(180deg, var(--ink-soft) 0%, var(--ink) 100%);
  border-radius: 4px 4px 0 0;
  transition: height 1.2s var(--ease) .2s;
  min-height: 8px;
  margin-top: auto;
}
.onset-bar-fill--highlight {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  box-shadow: 0 0 0 2px rgba(230,83,60,0.15);
}
.onset-bar-label {
  position: absolute; bottom: -26px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* Predisposition model + generalization */
.onset-model, .onset-generalization {
  max-width: var(--container-narrow);
  margin: 2rem auto;
  padding: 2rem;
  background: linear-gradient(160deg, var(--gold-soft) 0%, #fdf9ed 100%);
  border-radius: var(--r-lg);
  border-left: 4px solid var(--gold);
}
.onset-generalization { background: linear-gradient(160deg, var(--teal-soft) 0%, #f3faf9 100%); border-left-color: var(--teal); }
.onset-model h3, .onset-generalization h3 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}
.onset-model p { font-size: 1rem; margin: 0; line-height: 1.65; color: var(--ink-soft); }
.onset-generalization > p { margin: 0 0 1rem; color: var(--ink-soft); }
.generalization-steps {
  list-style: none;
  padding: 0; margin: 0;
  counter-reset: step;
  display: grid;
  gap: 0.5rem;
}
.generalization-steps li {
  counter-increment: step;
  padding: 0.7rem 0.7rem 0.7rem 3.2rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.generalization-steps li::before {
  content: counter(step);
  position: absolute; left: 0.5rem; top: 0.5rem;
  width: 2rem; height: 2rem;
  background: var(--teal);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  display: grid; place-items: center;
  border-radius: 50%;
}

/* ---------- TRIGGERS ---------- */
/* HTML uses .trigger-grid (no trailing 's') */
.trigger-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.trigger-category {
  padding: 1.75rem;
  background: var(--paper-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}
.trigger-category:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.trigger-category::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.trigger--auditory::before { background: var(--accent); }
.trigger--visual::before { background: var(--indigo); }
.trigger--movement::before { background: var(--teal); }
.trigger--speech::before { background: var(--gold); }

.trigger-category h3 {
  font-size: 1.1rem;
  margin: 0.25rem 0 0.5rem;
  padding-right: 5rem;
  min-height: 2.5em;
}
.trigger-category ul {
  list-style: none;
  padding: 0; margin: 0;
}
.trigger-category li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  font-size: 0.93rem;
  border-bottom: 1px dashed var(--rule);
  color: var(--body);
}
.trigger-category li:last-child { border-bottom: none; }

.stat-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper-tint);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
  flex-shrink: 0;
}

.trigger-insight {
  max-width: var(--container-narrow);
  margin: 3rem auto 0;
  padding: 2rem;
  background: linear-gradient(160deg, var(--amber-soft) 0%, #fef6e6 100%);
  border-radius: var(--r-lg);
  border-left: 4px solid var(--amber);
  position: relative;
}
.trigger-insight h3 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}
.trigger-insight p {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0 0 1rem;
}
.trigger-insight p:last-child { margin-bottom: 0; }

/* ---------- COPING (3 columns) ---------- */
.coping-three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.coping-col {
  padding: 1.75rem 1.5rem;
  border-radius: var(--r-lg);
  position: relative;
  display: flex; flex-direction: column;
}
.coping-col--helpful {
  background: linear-gradient(160deg, #e6f4ed 0%, #f7fcf9 100%);
  border: 1px solid #c8e4d3;
}
.coping-col--partial {
  background: linear-gradient(160deg, var(--amber-soft) 0%, #fdf6e8 100%);
  border: 1px solid #ecd3a6;
}
.coping-col--harmful {
  background: linear-gradient(160deg, #fde9e3 0%, #fdf3ef 100%);
  border: 1px solid #f3cfc3;
}
.coping-col h3 {
  font-size: 1.2rem;
  margin: 0 0 1rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid currentColor;
  opacity: 0.95;
}
.coping-col--helpful h3 { color: #1c5d3f; }
.coping-col--partial h3 { color: #8a5a14; }
.coping-col--harmful h3 { color: #882c1c; }
.coping-col ul {
  list-style: none;
  padding: 0; margin: 0;
  flex: 1;
}
.coping-col li {
  padding: 0.8rem 0;
  font-size: 0.93rem;
  line-height: 1.55;
  border-bottom: 1px dashed rgba(14,21,37,0.08);
  color: var(--ink-soft);
}
.coping-col li:last-child { border-bottom: none; }
.coping-col strong { color: var(--ink); }
.coping-pct {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  background: rgba(14,21,37,0.08);
  color: var(--ink);
}

/* Overlooked themes */
.overlooked-themes {
  margin-top: 3rem;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--indigo) 0%, #2e2d75 100%);
  color: #f1edf5;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.overlooked-themes::before {
  content: "";
  position: absolute; top: -50%; right: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  pointer-events: none;
}
.overlooked-themes h3 {
  color: #f8f5fd;
  font-size: 1.4rem;
  margin: 0 0 1.5rem;
  position: relative;
}
.overlooked-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  position: relative;
}
.overlooked-item {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r);
  backdrop-filter: blur(8px);
}
.overlooked-pct {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}
.overlooked-desc {
  font-size: 0.9rem;
  color: rgba(241,237,245,0.85);
  line-height: 1.5;
}
.overlooked-desc strong { color: #fff; }

/* ---------- SUBTYPES ---------- */
.subtypes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.subtype-card {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.subtype-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.subtype-card h3 {
  font-size: 1.15rem;
  margin: 0.75rem 0 .6rem;
}
.subtype-card p {
  font-size: 0.92rem;
  color: var(--body);
  margin: 0;
  line-height: 1.55;
}

.evidence-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  align-self: flex-start;
}
.evidence--strong  { background: var(--green-soft); color: #1c5d3f; }
.evidence--moderate { background: var(--amber-soft); color: #8a5a14; }
.evidence--limited  { background: var(--paper-tint); color: var(--muted); }

/* ---------- COMORBIDITY ---------- */
.comorb-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.comorb-item-new {
  display: grid;
  grid-template-columns: 180px 1fr 60px;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: var(--r);
  transition: border-color .2s ease;
}
.comorb-item-new:hover { border-color: var(--rule-strong); }
.comorb-label {
  font-size: 0.88rem;
  color: var(--body);
  line-height: 1.3;
}
.comorb-label strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  display: block;
}
.comorb-label small {
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}
.comorb-bar-track {
  height: 8px;
  background: var(--paper-tint);
  border-radius: 4px;
  overflow: hidden;
}
.comorb-bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 0 !important;
  transition: width 1.2s var(--ease);
}
.comorb-bar-fill.in-view { width: var(--target-width, 0) !important; }
.comorb-bar-fill--high { background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }
.comorb-bar-fill--medium { background: linear-gradient(90deg, var(--amber), #e09c3a); }
.comorb-bar-fill--low { background: linear-gradient(90deg, var(--teal), #4ba39e); }
.comorb-percentage {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  text-align: right;
}
.comorb-note {
  max-width: var(--container-narrow);
  margin: 2.5rem auto 0;
  padding: 1.5rem 2rem;
  background: var(--paper-tint);
  border-left: 4px solid var(--ink);
  border-radius: 0 var(--r) var(--r) 0;
}
.comorb-note p {
  margin: 0; font-size: 0.97rem; color: var(--ink-soft); line-height: 1.65;
}
.comorb-note em { color: var(--accent); font-style: italic; }

/* ---------- CLINICIANS ---------- */
.clinician-warning {
  padding: 0.9rem 1.25rem;
  background: linear-gradient(160deg, var(--amber-soft) 0%, #fdf6e8 100%);
  border-left: 4px solid var(--amber);
  border-radius: 0 var(--r) var(--r) 0;
  margin-bottom: 1.25rem;
}
.clinician-warning p {
  margin: 0;
  font-size: 0.93rem;
  color: #6b4200;
  line-height: 1.5;
}

.clinician-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.clinician-card {
  padding: 2rem;
  background: var(--paper-card);
  border-radius: var(--r-lg);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.clinician-card h3 {
  font-size: 1.3rem;
  margin: 0 0 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.clinician-card ol, .clinician-card ul {
  margin: 0;
  padding-left: 1.5rem;
}
.clinician-card li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--body);
  line-height: 1.5;
}
.clinician-card dl { margin: 0; }
.clinician-card dt {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  margin-top: 1rem;
  font-size: 1.02rem;
}
.clinician-card dt:first-child { margin-top: 0; }
.clinician-card dd {
  margin: .25rem 0 .75rem;
  font-size: 0.92rem;
  color: var(--body);
  line-height: 1.55;
}

/* ---------- RESEARCH ---------- */
.research-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.research-card {
  position: relative;
  padding: 2rem 1.75rem 1.5rem;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--teal);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.research-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.research-num {
  position: absolute; top: 1rem; right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 700;
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 4px;
}
.research-card h3 {
  font-size: 1.15rem;
  margin: 0 0 .6rem;
  padding-right: 3rem;
}
.research-card p {
  font-size: 0.93rem;
  color: var(--body);
  margin: 0;
  line-height: 1.55;
}

.research-hypotheses {
  max-width: var(--container-narrow);
  margin: 3rem auto 0;
  padding: 2.5rem;
  background: var(--ink);
  color: #e8e3d4;
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.research-hypotheses::before {
  content: "?";
  position: absolute;
  top: -3rem; right: -1rem;
  font-family: var(--font-serif);
  font-size: 14rem;
  color: rgba(230,83,60,0.15);
  line-height: 1;
  pointer-events: none;
}
.research-hypotheses h3 {
  color: #f3efe2;
  font-size: 1.5rem;
  margin: 0 0 1.5rem;
  position: relative;
}
.research-hypotheses ul {
  list-style: none;
  padding: 0; margin: 0;
  position: relative;
}
.research-hypotheses li {
  padding: 0.75rem 0 0.75rem 1.5rem;
  border-bottom: 1px dashed rgba(241,237,226,0.15);
  font-size: 0.95rem;
  color: rgba(232,227,212,0.9);
  line-height: 1.55;
  position: relative;
}
.research-hypotheses li:last-child { border-bottom: none; }
.research-hypotheses li::before {
  content: "→";
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}
.research-hypotheses strong { color: #fff; }

/* ---------- LIMITATIONS ---------- */
.limitations-list {
  max-width: var(--container-narrow);
  margin: 0 auto 2rem;
  padding-left: 0;
  list-style: none;
  counter-reset: lim;
}
.limitations-list li {
  counter-increment: lim;
  position: relative;
  padding: 1.25rem 1rem 1.25rem 4.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.97rem;
  color: var(--ink-soft);
  border-radius: var(--r);
  transition: background .2s ease;
  line-height: 1.6;
}
.limitations-list li:hover { background: var(--paper-card); }
.limitations-list li::before {
  content: counter(lim, decimal-leading-zero);
  position: absolute; left: 1rem; top: 1.2rem;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.limitations-list li::after {
  content: "";
  position: absolute; left: 3.5rem; top: 50%;
  width: 1px; height: 22px;
  transform: translateY(-50%);
  background: var(--rule-strong);
}
.limitations-offset {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* ---------- RESOURCES ---------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.resource-group {
  padding: 1.75rem;
  background: var(--paper-card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
}
.resource-group:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.resource-group h3 {
  font-size: 1.1rem;
  margin: 0 0 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--rule);
}
.resource-list {
  list-style: none;
  padding: 0; margin: 0;
}
.resource-list li {
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 0.9rem;
  line-height: 1.4;
}
.resource-list li:last-child { border-bottom: none; }
.resource-list a {
  color: var(--ink-soft);
  font-weight: 500;
  transition: color .2s ease, padding-left .2s ease;
  display: inline-block;
  position: relative;
  padding-left: 0;
}
.resource-list a:hover {
  color: var(--accent);
  text-decoration: none;
  padding-left: 14px;
}
.resource-list a::before {
  content: "↗";
  position: absolute;
  left: 0; top: 0;
  opacity: 0;
  transition: opacity .2s ease;
  color: var(--accent);
}
.resource-list a:hover::before { opacity: 1; }

/* ---------- SHARE ---------- */
.share-section {
  background: linear-gradient(135deg, var(--ink) 0%, var(--midnight-3) 100%);
  color: #e8e3d4;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.share-section::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(230,83,60,0.15), transparent 60%);
  pointer-events: none;
}
.share-section .container { position: relative; }
.share-section .section-title { color: #f3efe2; }
.share-section .section-title::after { background: var(--accent); }
.share-section .section-subtitle { color: rgba(232,227,212,0.7); }
.share-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0.85rem 1.5rem;
  background: rgba(255,255,255,0.08);
  color: #f3efe2;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .2s ease;
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.share-btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
  color: #fff;
  text-decoration: none;
}
.share-btn.copied {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

/* ---------- QUOTE TOOLTIP ---------- */
.quote-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  cursor: help;
  vertical-align: middle;
}
.qt-icon {
  width: 26px; height: 26px;
  background: var(--accent);
  color: white;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 0.85rem;
  transition: transform .2s ease;
}
.quote-tooltip:hover .qt-icon, .quote-tooltip:focus .qt-icon { transform: scale(1.15); }
.qt-bubble {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: clamp(240px, 50vw, 360px);
  padding: 1rem 1.25rem;
  background: var(--ink);
  color: #f3efe2;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.5;
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 100;
  text-align: left;
}
.qt-bubble::after {
  content: "";
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--ink);
}
.qt-person {
  display: block;
  margin-top: .5rem;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}
.quote-tooltip:hover .qt-bubble, .quote-tooltip:focus .qt-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: rgba(232,227,212,0.7);
  padding: 4rem 0 3rem;
  border-top: 1px solid rgba(241,237,226,0.1);
}
.footer-legal {
  max-width: var(--container-narrow);
  margin: 0 auto 2.5rem;
  padding: 1.75rem 2rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(241,237,226,0.1);
  border-left: 3px solid var(--accent);
  border-radius: var(--r);
}
.footer-legal h3 {
  color: #f3efe2;
  font-size: 1rem;
  margin: 0 0 .75rem;
}
.footer-legal p {
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 0;
  color: rgba(232,227,212,0.75);
}
.footer-legal strong { color: #f3efe2; }
.footer-cookie-note {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(232,227,212,0.55);
  font-style: italic;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ---------- ANIMATIONS ---------- */
.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-in.visible:nth-child(2) { transition-delay: .05s; }
.animate-in.visible:nth-child(3) { transition-delay: .1s; }
.animate-in.visible:nth-child(4) { transition-delay: .15s; }
.animate-in.visible:nth-child(5) { transition-delay: .2s; }
.animate-in.visible:nth-child(6) { transition-delay: .25s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .animate-in { opacity: 1; transform: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .findings-grid   { grid-template-columns: repeat(2, 1fr); }
  .research-grid   { grid-template-columns: repeat(2, 1fr); }
  .subtypes-grid   { grid-template-columns: repeat(3, 1fr); }
  .resources-grid  { grid-template-columns: repeat(2, 1fr); }
  .trigger-grid    { grid-template-columns: repeat(3, 1fr); }
  .numbers-grid    { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  /* Mobile nav */
  .nav-toggle { display: grid; place-items: center; order: 2; }
  .lang-switcher { order: 1; margin-left: auto; }
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0; bottom: 0;
    flex-direction: column;
    background: var(--paper);
    padding: 1.5rem;
    gap: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s var(--ease);
    mask-image: none;
    order: 3;
    flex: 0 0 100%;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    font-size: 1.05rem;
    padding: 1rem;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
  }

  /* All multi-col grids → 2 columns */
  .numbers-grid      { grid-template-columns: repeat(2, 1fr); }
  .findings-grid     { grid-template-columns: repeat(2, 1fr); }
  .trigger-grid      { grid-template-columns: repeat(2, 1fr); }
  .subtypes-grid     { grid-template-columns: repeat(2, 1fr); }
  .research-grid     { grid-template-columns: repeat(2, 1fr); }
  .resources-grid    { grid-template-columns: repeat(2, 1fr); }
  .comorb-list       { grid-template-columns: 1fr; }

  /* Single-col at this breakpoint */
  .intimacy-content  { grid-template-columns: 1fr; }
  .clinician-grid    { grid-template-columns: 1fr; }
  .comparison-grid   { grid-template-columns: 1fr; }
  .coping-three-col  { grid-template-columns: 1fr; gap: 1rem; }
  .onset-timeline    { grid-template-columns: 1fr; }
  .onset-timeline::before { display: none; }

  .comorb-item-new { grid-template-columns: 1fr 50px; }
  .comorb-bar-track { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .numbers-grid    { grid-template-columns: repeat(2, 1fr); }
  .findings-grid   { grid-template-columns: 1fr; }
  .trigger-grid    { grid-template-columns: 1fr; }
  .subtypes-grid   { grid-template-columns: 1fr; }
  .research-grid   { grid-template-columns: 1fr; }
  .resources-grid  { grid-template-columns: 1fr; }
  .section         { padding: 3rem 0; }
  .hero            { padding: 4rem 0 6rem; }
  .qt-bubble       { width: min(85vw, 320px); }
  .share-btn       { padding: 0.7rem 1.1rem; font-size: 0.88rem; }
}

/* ---------- PRINT ---------- */
@media print {
  .main-nav, .share-section, .footer-cookie-note, .read-progress { display: none; }
  body { background: white; color: black; font-size: 11pt; }
  .section { padding: 1rem 0; break-inside: avoid; }
  .hero { background: white; color: black; padding: 2rem 0; }
  .hero h1, .hero-subtitle, .hero-meta, .hero-eyebrow { color: black; }
  .by-numbers, .section--dark { background: white; color: black; }
  .by-numbers h2, .by-numbers .big-number, .by-numbers .number-label { color: black; }
  .footer { background: white; color: black; border-top: 1px solid #000; }
  .footer h3, .footer-legal strong { color: black; }
  a { color: black; text-decoration: underline; }
  .quote-tooltip { display: none; }
}
