/* Subtype Atlas: shared stylesheet (ported from the former app/globals.css) */
/* Base reset (replaces Tailwind preflight) */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
table { border-collapse: collapse; }

:root {
  --orange: #ef7835;
  --orange-soft: #fff4ee;
  --navy: #0a1628;
  --navy-2: #0f1d33;
  --ink: #2d3f52;
  --muted: #6b7e92;
  --line: #e4eaf2;
  --paper: #f6f8fb;
  --white: #ffffff;
  --blue-soft: #eaf3f8;
  --green: #1f6956;
  --green-soft: #e7f3ef;
  --gold: #785817;
  --gold-soft: #f8efd5;
  --gray-soft: #edf0f3;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.04; }
h1, h2 { font-weight: 800; }
h3 { font-weight: 700; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: 8px; z-index: 100; transform: translateY(-160%); padding: 10px 14px; background: var(--white); color: var(--navy); border: 2px solid var(--orange); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 100; height: 64px; background: rgba(255,255,255,.95); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.site-nav { height: 64px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: 0 0 auto; }
.brand img { width: auto; height: 34px; object-fit: contain; }
.brand span { display: grid; }
.brand strong { color: var(--navy); font-size: 18px; line-height: 1.1; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: .03em; }
.nav-links { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.nav-links a, .nav-links summary { display: block; padding: 8px 14px; color: var(--muted); border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links summary:hover { color: var(--navy); background: var(--paper); }
.nav-links a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.has-dropdown { position: relative; }
.has-dropdown details > summary { list-style: none; }
.has-dropdown details > summary::-webkit-details-marker { display: none; }
.has-dropdown details > summary::after { content: ' ▾'; color: var(--orange); font-size: 11px; }
.nav-dropdown { position: absolute; top: calc(100% + 8px); left: 0; display: grid; min-width: 250px; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 32px rgba(10,22,40,.1); }
.nav-dropdown a { padding: 9px 12px; }
.nav-cta { margin-left: 2px; padding: 8px 18px !important; color: var(--white) !important; background: var(--orange); font-weight: 600 !important; }
.nav-cta:hover { color: var(--white) !important; background: var(--orange) !important; }
.mobile-menu { display: none; position: relative; }

.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 13px; color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.kicker::before { content: ''; width: 22px; height: 2px; background: var(--orange); }
.kicker-light { color: var(--orange); }
.hero-shell { padding: 78px 0 88px; overflow: hidden; color: var(--white); background: var(--navy); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: 72px; align-items: center; }
.hero-copy h1 { max-width: 800px; margin-bottom: 26px; font-size: clamp(3rem, 6.1vw, 5.7rem); font-weight: 800; }
.hero-copy h1::first-line { color: var(--white); }
.hero-lede { max-width: 730px; margin-bottom: 32px; color: #cbd3df; font-size: clamp(1.05rem, 1.5vw, 1.28rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 19px; border: 1px solid transparent; border-radius: 8px; font-size: .92rem; font-weight: 700; text-decoration: none; }
.button-primary { background: var(--orange); color: var(--white); box-shadow: 0 8px 24px rgba(239,120,53,.26); }
.button-primary:hover { background: var(--orange); }
.button-ghost { border-color: #7e8999; color: var(--white); }
.button-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.text-link { color: var(--orange); font-weight: 750; }

.boundary-card { position: relative; padding: 30px; color: #dde3ec; background: #141b24; border: 1px solid #243547; border-top: 3px solid var(--orange); border-radius: 12px; box-shadow: none; }
.boundary-lane { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); }
.boundary-card .kicker { color: var(--orange); }
.boundary-lane { border-color: #243547; }
.lane-index { display: block; width: auto; height: auto; padding-top: 2px; color: var(--orange); background: transparent; border-radius: 0; font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.clinical-lane .lane-index, .eeg-lane .lane-index { color: var(--orange); background: transparent; }
.boundary-lane strong { display: block; margin-bottom: 4px; color: #f4f7fb; font-size: 1.05rem; }
.boundary-lane p { margin-bottom: 0; color: #9fb0c4; font-size: .9rem; }
.boundary-note { margin: 4px 0 0; padding-top: 17px; border-top: 1px solid #243547; color: #f4f7fb; font-weight: 700; }

.subtype-section { padding: 94px 0 76px; background: var(--paper); }
.section-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: end; margin-bottom: 38px; }
.section-intro h2, .orientation-section h2, .trust-section h2 { margin-bottom: 0; font-size: clamp(2.1rem, 4vw, 3.45rem); }
.section-intro > p { margin-bottom: 3px; color: var(--muted); font-size: 1.03rem; }
.subtype-list { border-top: 1px solid var(--line); }
.subtype-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 24px; gap: 24px; align-items: center; min-height: 148px; padding: 24px 8px; border-bottom: 1px solid var(--line); text-decoration: none; transition: color .15s, background .15s; }
.subtype-row:hover { background: var(--white); }
.subtype-index { align-self: start; padding-top: 4px; color: var(--orange); font-size: .76rem; font-weight: 800; letter-spacing: .08em; }
.subtype-row-copy { display: block; }
.subtype-code { display: block; margin-bottom: 5px; color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.subtype-row h3 { margin-bottom: 8px; color: var(--navy); font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
.subtype-row p { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.subtype-arrow { color: var(--orange); font-size: 1.35rem; transition: transform .15s; }
.subtype-row:hover .subtype-arrow { transform: translateX(4px); }
.evidence-status { display: inline-flex; align-items: center; width: fit-content; padding: 6px 9px; border-radius: 999px; font-size: .73rem; font-weight: 800; letter-spacing: .01em; }
.evidence-compact { padding: 5px 8px; font-size: .68rem; }
.evidence-moderate { color: var(--green); background: var(--green-soft); }
.evidence-limited { color: var(--gold); background: var(--gold-soft); }
.evidence-context { color: #395168; background: var(--blue-soft); }
.evidence-hypothesis { color: #65427a; background: #f1e9f6; }
.evidence-unknown { color: #4c5662; background: var(--gray-soft); }
.compare-link { margin: 30px 0 0; text-align: center; }
.compare-link a { color: var(--orange); font-weight: 800; }

.orientation-section { padding: 94px 0; }
.orientation-grid { display: grid; grid-template-columns: .83fr 1.17fr; gap: 88px; align-items: center; }
.orientation-section h2 { margin-bottom: 20px; color: var(--navy); }
.orientation-section p:not(.kicker) { color: var(--muted); }
.term-stack { border-top: 1px solid var(--line); }
.term-stack p { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; min-height: 74px; margin: 0; padding: 0 12px; color: var(--navy); border-bottom: 1px solid var(--line); }
.term-stack p:nth-child(even) { background: var(--paper); }
.term-stack strong { color: var(--orange); font-size: 1.35rem; text-align: center; }
.term-stack span:last-child { font-weight: 750; }

.trust-section { padding: 82px 0; color: var(--white); background: var(--navy-2); }
.trust-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 80px; }
.trust-points { border-top: 1px solid #44546c; }
.trust-points p { display: grid; grid-template-columns: .72fr 1.28fr; gap: 25px; margin: 0; padding: 22px 0; border-bottom: 1px solid #44546c; }
.trust-points strong { color: var(--orange); }
.trust-points span { color: #cbd3df; }

.site-footer { padding: 65px 0 26px; color: #c7d0dd; background: #060e1b; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 70px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand { margin-bottom: 8px; color: var(--white); font-size: 1.12rem; font-weight: 850; }
.footer-copy { margin-bottom: 12px; }
.footer-boundary { max-width: 420px; color: #8f9bad; font-size: .83rem; }
.footer-heading { margin-bottom: 13px; color: var(--orange); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.footer-grid a { margin-bottom: 8px; font-size: .86rem; text-decoration: none; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 22px; color: #7f8b9d; border-top: 1px solid #263248; font-size: .76rem; }

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .mobile-menu { display: block; position: static; }
  .mobile-menu > summary { display: flex; flex-direction: column; gap: 5px; padding: 8px; margin-right: -8px; cursor: pointer; list-style: none; }
  .mobile-menu > summary::-webkit-details-marker { display: none; }
  .mobile-menu > summary span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .mobile-menu[open] > summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-menu[open] > summary span:nth-child(2) { opacity: 0; }
  .mobile-menu[open] > summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-nav { position: absolute; top: 64px; left: 0; right: 0; display: grid; padding: 12px 40px 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 12px 28px rgba(10,22,40,.08); }
  .mobile-nav p { margin: 8px 0 3px; color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
  .mobile-nav a { display: block; padding: 10px 0; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; text-decoration: none; }
  .mobile-nav a:hover { color: var(--navy); }
  .mobile-nav hr { width: 100%; margin: 10px 0 0; border: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 980px) {
  .hero-grid, .orientation-grid, .trust-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 760px; }
  .boundary-card { max-width: 600px; }
}

@media (max-width: 720px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .site-nav { padding: 0 20px; }
  .brand img { width: 38px; height: 38px; }
  .mobile-nav { padding: 12px 20px 20px; }
  .hero-shell { padding: 60px 0 66px; }
  .hero-copy h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .hero-copy h1 br { display: none; }
  .boundary-card { padding: 23px; }
  .subtype-section, .orientation-section { padding: 70px 0; }
  .section-intro { grid-template-columns: 1fr; gap: 19px; }
  .subtype-row { grid-template-columns: 38px minmax(0, 1fr) 20px; gap: 12px; min-height: auto; padding: 24px 2px; }
  .subtype-row .evidence-status { grid-column: 2; justify-self: start; }
  .subtype-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .trust-points p { grid-template-columns: 1fr; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Interior pages */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.page-hero { padding: 74px 0 70px; color: var(--white); background: var(--navy); border-bottom: 6px solid var(--orange); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 76px; align-items: end; }
.page-hero-narrow { max-width: 950px; }
.page-hero h1 { max-width: 850px; margin-bottom: 22px; font-size: clamp(2.7rem, 5.4vw, 5rem); }
.page-hero-intro { max-width: 790px; margin-bottom: 0; color: #cbd3df; font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.65; }
.page-hero-aside { padding: 24px; color: #d4dce7; background: var(--navy-2); border-left: 4px solid var(--orange); font-size: .91rem; }
.page-hero-aside p { margin: 0; }
.page-hero-aside strong { color: var(--white); }
.content-section { padding: 86px 0; }
.content-section.compact-top { padding-top: 50px; }
.content-narrow { max-width: 940px; }
.section-intro-wide { align-items: start; }
.section-intro-wide h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.two-column { display: grid; grid-template-columns: .88fr 1.12fr; gap: 90px; align-items: start; }
.two-column h2, .source-intro h2, .about-grid h2, .resource-boundary h2, .gap-grid h2 { color: var(--navy); font-size: clamp(2rem, 3.8vw, 3.3rem); }
.split-section { padding: 88px 0; background: var(--paper); border-block: 1px solid var(--line); }
.inline-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button-dark { color: var(--white); background: var(--navy); }
.button-dark:hover { background: var(--navy-2); }
.button-outline { color: var(--navy); border-color: var(--navy); background: transparent; }
.button-outline:hover { background: var(--paper); }

.safety-boundary { display: grid; grid-template-columns: 190px 1fr; gap: 24px; margin-top: 42px; padding: 23px 25px; color: var(--navy); background: var(--orange-soft); border-left: 5px solid var(--orange); }
.safety-boundary strong { font-size: .9rem; }
.safety-boundary p { margin: 0; color: #4e5968; font-size: .88rem; }
.urgent-boundary { background: var(--orange-soft); border: 1px solid rgba(239,120,53,.4); border-left: 5px solid var(--orange); }

.comparison-wrap { overflow-x: auto; border: 1px solid var(--line); }
.comparison-wrap:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.comparison-table { width: 100%; min-width: 1160px; border-collapse: collapse; table-layout: fixed; font-size: .86rem; }
.comparison-table th, .comparison-table td { padding: 22px 19px; vertical-align: top; text-align: left; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.comparison-table th:last-child, .comparison-table td:last-child { border-right: 0; }
.comparison-table thead th { color: var(--white); background: var(--navy-2); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.comparison-table thead th:first-child { width: 185px; }
.comparison-table tbody th { background: var(--paper); }
.comparison-table tbody th a { display: block; margin-bottom: 13px; color: var(--navy); font-size: 1rem; line-height: 1.25; }
.comparison-table tbody tr:last-child th, .comparison-table tbody tr:last-child td { border-bottom: 0; }
.method-note { display: grid; grid-template-columns: 240px 1fr; gap: 30px; margin-top: 28px; padding: 27px; color: var(--white); background: var(--navy-2); }
.method-note strong { color: var(--orange); }
.method-note p { margin: 0; color: #cbd3df; }

.mini-equation { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
.mini-equation span { padding: 8px 10px; color: var(--navy); background: var(--white); font-weight: 750; }
.mini-equation b { color: var(--orange); }
.mini-equation strong { grid-column: 1 / -1; padding-top: 10px; color: var(--orange); border-top: 1px solid #53627a; text-align: center; }
.key-rule { display: grid; grid-template-columns: 48px 1fr; gap: 19px; align-items: center; margin-bottom: 45px; padding: 25px; background: var(--orange-soft); border-left: 5px solid var(--orange); }
.key-rule > span { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; color: var(--navy); background: var(--orange); border-radius: 50%; font-weight: 900; }
.key-rule p { margin: 0; }
.term-definitions { border-top: 1px solid var(--line); }
.term-definition { display: grid; grid-template-columns: 70px 1fr; gap: 23px; padding: 31px 0; border-bottom: 1px solid var(--line); }
.term-number { color: var(--orange); font-size: 1rem; font-weight: 900; letter-spacing: .08em; }
.term-definition h2 { margin-bottom: 12px; color: var(--navy); font-size: 1.65rem; }
.term-definition p { color: var(--muted); }
.term-definition div > strong { color: #5f440f; font-size: .84rem; }
.plain-points { border-top: 1px solid #cdd2d8; }
.plain-points p { display: grid; grid-template-columns: 130px 1fr; gap: 28px; margin: 0; padding: 20px 0; border-bottom: 1px solid #cdd2d8; }
.plain-points strong { color: var(--navy); }
.plain-points span { color: var(--muted); }

.evidence-key { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.evidence-key > div { padding: 25px; background: var(--paper); border: 1px solid var(--line); }
.evidence-key p { margin: 18px 0 0; color: var(--muted); }
.numbered-points { border-top: 1px solid #cdd2d8; }
.numbered-points p { display: grid; grid-template-columns: 44px 1fr; gap: 18px; margin: 0; padding: 21px 0; border-bottom: 1px solid #cdd2d8; }
.numbered-points b { color: var(--orange); }
.numbered-points span { color: var(--muted); }
.numbered-points strong { display: block; margin-bottom: 5px; color: var(--navy); }
.source-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; align-items: start; }
.source-intro { position: sticky; top: 28px; }
.source-intro p:not(.kicker) { color: var(--muted); }
.source-list { border-top: 1px solid var(--line); }
.citation-link { display: grid; grid-template-columns: 1fr auto; gap: 5px 20px; padding: 19px 5px; color: var(--navy); border-bottom: 1px solid var(--line); text-decoration: none; }
.citation-link span { font-weight: 760; }
.citation-link small { grid-column: 1; color: var(--muted); }
.citation-link b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--orange); }
.citation-link:hover span { text-decoration: underline; }
.gap-section { padding: 82px 0; color: var(--white); background: var(--navy-2); }
.gap-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 80px; }
.gap-grid h2 { color: var(--white); }
.gap-grid ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid #44546c; }
.gap-grid li { position: relative; padding: 18px 10px 18px 34px; color: #d1d9e5; border-bottom: 1px solid #44546c; }
.gap-grid li::before { content: '•'; position: absolute; left: 6px; color: var(--orange); font-weight: 900; }

.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 90px; align-items: start; }
.about-grid article > p:not(.kicker) { color: var(--muted); font-size: 1.02rem; }
.principle-card { display: grid; grid-template-columns: 42px 1fr; gap: 0 16px; padding: 28px; background: var(--navy); }
.principle-card span { padding: 16px 0; color: var(--orange); font-size: .74rem; font-weight: 850; border-bottom: 1px solid #394860; }
.principle-card strong { padding: 16px 0; color: var(--white); border-bottom: 1px solid #394860; }
.use-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid #cdd2d8; }
.use-steps li { display: grid; grid-template-columns: 42px 1fr; gap: 17px; padding: 20px 0; border-bottom: 1px solid #cdd2d8; }
.use-steps li > span { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: var(--navy); background: var(--orange); border-radius: 50%; font-weight: 850; }
.use-steps p { margin: 0; color: var(--muted); }
.use-steps strong { color: var(--navy); }
.resource-boundary { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; margin-bottom: 55px; }
.resource-boundary > div:first-child > p:not(.kicker) { color: var(--muted); }
.resource-links { border-top: 1px solid var(--line); }
.resource-links a { display: grid; gap: 7px; padding: 24px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.resource-links strong { color: var(--navy); font-size: 1.1rem; }
.resource-links span { display: flex; justify-content: space-between; color: var(--muted); }
.resource-links b { color: var(--orange); }
.not-found { min-height: 58vh; padding: 110px 0; background: var(--paper); }
.not-found h1 { max-width: 800px; color: var(--navy); font-size: clamp(2.6rem, 6vw, 5rem); }
.not-found > .container > p:not(.kicker) { color: var(--muted); font-size: 1.1rem; }

@media (max-width: 980px) {
  .page-hero-grid, .two-column, .source-layout, .gap-grid, .about-grid, .resource-boundary { grid-template-columns: 1fr; gap: 45px; }
  .page-hero-aside { max-width: 620px; }
  .source-intro { position: static; }
}

@media (max-width: 720px) {
  .page-hero { padding: 58px 0 54px; }
  .page-hero h1 { font-size: clamp(2.45rem, 13vw, 3.7rem); }
  .content-section, .split-section { padding: 65px 0; }
  .evidence-key { grid-template-columns: 1fr; }
  .method-note, .safety-boundary { grid-template-columns: 1fr; gap: 8px; }
  .term-definition { grid-template-columns: 46px 1fr; gap: 12px; }
  .plain-points p { grid-template-columns: 1fr; gap: 4px; }
  .key-rule { grid-template-columns: 1fr; }
}

/* Subtype guides */
.subtype-hero { padding: 34px 0 72px; color: var(--white); background: var(--navy); }
.breadcrumb { display: flex; gap: 9px; margin-bottom: 50px; color: #98a5b7; font-size: .78rem; }
.breadcrumb a { color: #d4dce7; }
.subtype-hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 78px; align-items: end; }
.subtype-hero h1 { margin-bottom: 21px; font-size: clamp(3.2rem, 6vw, 5.8rem); }
.subtype-intro { max-width: 780px; margin: 0; color: #cbd3df; font-size: clamp(1.03rem, 1.45vw, 1.21rem); line-height: 1.65; }
.evidence-summary-card { display: grid; justify-items: start; gap: 17px; padding: 27px; color: var(--ink); background: var(--paper); border-top: 5px solid var(--orange); }
.evidence-summary-card > p { margin: 0; color: var(--orange); font-size: .7rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.evidence-summary-card > strong { color: var(--navy); font-size: .98rem; }
.evidence-summary-card > small { padding-top: 15px; color: var(--muted); border-top: 1px solid var(--line); line-height: 1.5; }
.subtype-nav { position: sticky; top: 64px; z-index: 12; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(10,22,40,.04); }
#at-a-glance, #sources { scroll-margin-top: 118px; }
.subtype-nav .container { display: flex; gap: 28px; overflow-x: auto; }
.subtype-nav a { flex: 0 0 auto; padding: 17px 0 14px; color: var(--muted); border-bottom: 3px solid transparent; font-size: .78rem; font-weight: 760; text-decoration: none; }
.subtype-nav a:hover { color: var(--navy); border-color: var(--orange); }
.at-glance-section { padding: 78px 0; background: var(--paper); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 45px; margin-bottom: 34px; }
.section-heading-row h2 { margin: 0; color: var(--navy); font-size: clamp(2rem, 3.7vw, 3.1rem); }
.section-heading-row > a { max-width: 280px; color: var(--orange); font-size: .86rem; font-weight: 760; }
.glance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.glance-grid li { min-height: 210px; padding: 24px; background: var(--white); border: 1px solid var(--line); }
.glance-grid span { display: block; margin-bottom: 38px; color: var(--orange); font-size: .79rem; font-weight: 900; }
.glance-grid p { margin: 0; color: var(--navy); font-weight: 680; }

.evidence-lane { padding: 92px 0; scroll-margin-top: 118px; }
.event-lane { background: var(--white); }
.eeg-evidence-lane { background: var(--blue-soft); border-block: 1px solid #cbdce6; }
.evidence-lane-grid { display: grid; grid-template-columns: minmax(300px, .78fr) minmax(0, 1.22fr); gap: 82px; align-items: start; }
.lane-heading { position: sticky; top: 86px; }
.lane-label { display: flex; align-items: center; gap: 13px; color: var(--orange); font-size: .72rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.lane-label > span { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; color: var(--navy); background: var(--orange); border-radius: 50%; }
.eeg-evidence-lane .lane-label > span { color: var(--white); background: var(--navy-2); }
.lane-heading h2 { color: var(--navy); font-size: clamp(2.15rem, 4.1vw, 3.55rem); }
.lane-heading > p:not(.lane-label) { color: var(--muted); font-size: 1.01rem; }
.lane-definition { display: grid; gap: 7px; margin-top: 28px; padding: 18px; color: var(--muted); background: var(--paper); border-left: 4px solid var(--orange); font-size: .84rem; }
.eeg-evidence-lane .lane-definition { background: var(--white); border-color: var(--navy-2); }
.lane-definition strong { color: var(--navy); }
.point-list { display: grid; gap: 15px; }
.evidence-point-card { padding: 28px; background: var(--white); border: 1px solid var(--line); }
.evidence-point-card h3 { margin: 18px 0 11px; color: var(--navy); font-size: 1.5rem; }
.evidence-point-card > p:not(.claim-sources) { color: var(--muted); }
.claim-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .75rem; }
.claim-sources > span { margin-right: 2px; color: var(--muted); font-weight: 800; text-transform: uppercase; }
.claim-sources a { padding: 5px 7px; color: var(--navy); background: var(--gray-soft); text-decoration: none; font-weight: 740; }
.claim-sources a b { margin-left: 4px; color: var(--orange); }
.point-limitation { display: grid; grid-template-columns: 105px 1fr; gap: 15px; margin-top: 19px; padding: 14px 15px; color: #5b4a23; background: var(--gold-soft); font-size: .79rem; }
.point-limitation strong { color: #65480e; }

.recognition-section { padding: 90px 0; scroll-margin-top: 118px; }
.recognition-layout { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(280px, .72fr); gap: 28px; align-items: start; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.feature-grid article { padding: 24px; background: var(--paper); border-top: 4px solid var(--orange); }
.feature-grid h3 { margin-bottom: 10px; color: var(--navy); font-size: 1.1rem; }
.feature-grid p { margin: 0; color: var(--muted); font-size: .87rem; }
.competing-card { padding: 27px; color: var(--white); background: var(--navy-2); }
.competing-card .kicker { color: var(--orange); }
.competing-card ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid #44546c; }
.competing-card li { padding: 12px 4px; border-bottom: 1px solid #44546c; font-size: .87rem; }
.competing-card li::before { content: '•'; margin-right: 9px; color: var(--orange); }

.limits-section { padding: 88px 0; color: var(--white); background: var(--navy-2); scroll-margin-top: 118px; }
.limits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.limits-grid h2 { margin-bottom: 29px; color: var(--white); font-size: clamp(2rem, 3.5vw, 3.05rem); }
.limits-grid ul, .limits-grid ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid #44546c; }
.limits-grid ul li { position: relative; padding: 15px 8px 15px 28px; color: #cbd3df; border-bottom: 1px solid #44546c; }
.limits-grid ul li::before { content: '•'; position: absolute; left: 5px; color: var(--orange); }
.limits-grid ol li { display: grid; grid-template-columns: 37px 1fr; gap: 11px; padding: 15px 6px; color: #cbd3df; border-bottom: 1px solid #44546c; }
.limits-grid ol span { color: var(--orange); font-size: .75rem; font-weight: 850; }
.subtype-next { padding: 38px 0; background: var(--paper); border-top: 1px solid var(--line); }
.subtype-next-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.subtype-next a { display: grid; gap: 8px; padding: 19px; background: var(--white); border: 1px solid var(--line); text-decoration: none; }
.subtype-next a:nth-child(2) { text-align: center; }
.subtype-next a:nth-child(3) { text-align: right; }
.subtype-next span { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.subtype-next strong { color: var(--navy); }
.subtype-next a:hover { border-color: var(--orange); }

@media (max-width: 980px) {
  .subtype-hero-grid, .evidence-lane-grid, .recognition-layout, .limits-grid { grid-template-columns: 1fr; gap: 44px; }
  .evidence-summary-card { max-width: 640px; }
  .lane-heading { position: static; }
}

@media (max-width: 720px) {
  .subtype-hero { padding-bottom: 55px; }
  .breadcrumb { margin-bottom: 35px; }
  .subtype-nav .container { gap: 21px; }
  .section-heading-row { align-items: start; flex-direction: column; }
  .glance-grid, .feature-grid, .subtype-next-grid { grid-template-columns: 1fr; }
  .glance-grid li { min-height: auto; }
  .glance-grid span { margin-bottom: 20px; }
  .evidence-lane, .recognition-section, .limits-section { padding: 68px 0; }
  .point-limitation { grid-template-columns: 1fr; gap: 6px; }
  .subtype-next a:nth-child(2), .subtype-next a:nth-child(3) { text-align: left; }
}

/* Evidence guide v0.2 */
.review-stamp { display: grid; gap: 2px; width: 100%; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.review-stamp span { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.review-stamp b { color: var(--navy); font-size: .82rem; }
.matters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.matters-grid article { min-height: 225px; padding: 26px; background: var(--white); border: 1px solid var(--line); }
.matters-grid article > span { display: block; margin-bottom: 28px; color: var(--orange); font-size: .78rem; font-weight: 900; }
.matters-grid article > strong { display: block; margin-bottom: 10px; color: var(--navy); font-size: 1.08rem; }
.matters-grid article > p { margin: 0; color: var(--muted); font-size: .9rem; }
.status-explanation { margin: 18px 0 0; padding: 14px 15px; color: #344154 !important; background: var(--gray-soft); font-size: .81rem; }
.status-explanation strong { color: var(--navy); }
.does-not-show { display: grid; grid-template-columns: 145px 1fr; gap: 15px; margin-top: 10px; padding: 14px 15px; color: #63341b; background: var(--orange-soft); border-left: 3px solid var(--orange); font-size: .79rem; }
.does-not-show strong { color: var(--orange); }
.how-we-know { margin-top: 18px; border-top: 1px solid var(--line); }
.how-we-know > summary { display: flex; justify-content: space-between; gap: 20px; padding: 17px 2px 5px; color: var(--navy); cursor: pointer; font-size: .84rem; font-weight: 850; }
.how-we-know > summary span { color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.how-we-know-body { display: grid; gap: 12px; margin-top: 12px; }
.how-we-know-body > article { padding: 20px; background: var(--paper); border: 1px solid var(--line); }
.eeg-evidence-lane .how-we-know-body > article { background: var(--white); }
.how-we-know-body h4 { margin: 0 0 8px; font-size: .96rem; }
.how-we-know-body h4 a { color: var(--navy); }
.how-we-know-body h4 span { margin-left: 5px; color: var(--orange); }
.how-we-know-body article > p { margin-bottom: 16px; color: var(--muted); font-size: .8rem; }
.how-we-know-body dl { display: grid; gap: 8px; margin: 0; }
.how-we-know-body dl div { display: grid; grid-template-columns: 105px 1fr; gap: 14px; padding-top: 8px; border-top: 1px solid var(--line); }
.how-we-know-body dt { color: var(--orange); font-size: .69rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.how-we-know-body dd { margin: 0; color: var(--muted); font-size: .78rem; }

.presentation-section { padding: 88px 0; background: var(--paper); scroll-margin-top: 118px; }
.presentation-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.presentation-grid article { padding: 24px; background: var(--white); border-top: 4px solid var(--orange); }
.presentation-grid h3 { margin-bottom: 11px; color: var(--navy); font-size: 1.08rem; }
.presentation-grid p { margin: 0; color: var(--muted); font-size: .87rem; }
.description-boundary { display: grid; grid-template-columns: 190px 1fr; gap: 24px; margin-top: 22px; padding: 22px; color: var(--white); background: var(--navy-2); }
.description-boundary strong { color: var(--orange); }
.description-boundary p { margin: 0; color: #d2dae5; }
.interpretation-section { padding: 90px 0; background: var(--paper); border-block: 1px solid var(--line); scroll-margin-top: 118px; }
.interpretation-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 85px; }
.interpretation-layout > div h2 { color: var(--navy); font-size: clamp(2.15rem, 4vw, 3.45rem); }
.interpretation-layout > div > p:not(.kicker) { color: var(--muted); }
.interpretation-layout ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid #cdd2d8; }
.interpretation-layout li { display: grid; grid-template-columns: 45px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid #cdd2d8; }
.interpretation-layout li > span { color: var(--orange); font-size: .76rem; font-weight: 900; }
.interpretation-layout h3 { margin-bottom: 6px; color: var(--navy); font-size: 1.08rem; }
.interpretation-layout li p { margin: 0; color: var(--muted); font-size: .87rem; }
.boundary-section { padding: 88px 0; color: var(--white); background: var(--navy); scroll-margin-top: 118px; }
.boundary-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 85px; }
.boundary-grid h2 { font-size: clamp(2.15rem, 4vw, 3.55rem); }
.boundary-grid > div > p:not(.kicker) { color: #cbd3df; }
.boundary-grid ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid #44546c; }
.boundary-grid li { position: relative; padding: 16px 8px 16px 32px; color: #d4dbe6; border-bottom: 1px solid #44546c; }
.boundary-grid li::before { content: '×'; position: absolute; left: 7px; color: var(--orange); font-weight: 900; }
.boundary-section .safety-boundary { margin-top: 45px; color: var(--navy); }
.review-note { margin-top: 24px; padding: 16px; color: var(--muted); background: var(--paper); border-left: 4px solid var(--orange); font-size: .82rem; }

.evidence-source-list { border-top: 1px solid var(--line); }
.evidence-source-list > details { border-bottom: 1px solid var(--line); }
.evidence-source-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 4px; cursor: pointer; list-style: none; }
.evidence-source-list summary::-webkit-details-marker { display: none; }
.evidence-source-list summary > span { display: grid; gap: 5px; }
.evidence-source-list summary strong { color: var(--navy); }
.evidence-source-list summary small { color: var(--muted); }
.evidence-source-list summary > b { color: var(--orange); font-size: 1.2rem; }
.evidence-source-list details[open] summary > b { transform: rotate(45deg); }
.evidence-source-list details > div { padding: 2px 22px 24px; }
.evidence-source-list details > div > p { color: var(--muted); font-size: .88rem; }
.evidence-source-list dl { display: grid; gap: 8px; margin: 18px 0; }
.evidence-source-list dl div { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding-top: 9px; border-top: 1px solid var(--line); }
.evidence-source-list dt { color: var(--orange); font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.evidence-source-list dd { margin: 0; color: var(--muted); font-size: .82rem; }
.evidence-source-list a { color: var(--orange); font-weight: 800; }
.update-section { background: var(--paper); }
.update-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 85px; }
.update-layout h2 { color: var(--navy); font-size: clamp(2rem, 3.6vw, 3rem); }
.update-layout > div:first-child > p:not(.kicker) { color: var(--muted); }
.update-log { border-top: 1px solid var(--line); }
.update-log article { padding: 23px 4px; border-bottom: 1px solid var(--line); }
.update-log time { color: var(--orange); font-size: .72rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.update-log h3 { margin: 8px 0; color: var(--navy); font-size: 1.2rem; }
.update-log p { margin: 0; color: var(--muted); }

.language-boundary { margin-bottom: 38px; padding: 22px; color: var(--white); background: var(--navy-2); border-left: 5px solid var(--orange); }
.language-boundary strong { color: var(--orange); }
.language-boundary p { margin: 8px 0 0; color: #d1d9e5; }
.section-support { color: var(--muted); }
.boundary-statements { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.boundary-statements p { margin: 0; padding: 20px; color: var(--navy); background: var(--paper); border-left: 4px solid var(--orange); font-weight: 720; }
.guide-next-section { border-top: 1px solid var(--line); }
.compare-question-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.compare-question-strip span { padding: 7px 10px; color: var(--navy); background: var(--orange-soft); border: 1px solid rgba(239,120,53,.35); font-size: .72rem; font-weight: 800; }
.comparison-table { min-width: 1700px; }
.comparison-table thead th:first-child { width: 190px; }
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.method-grid article { padding: 24px; background: var(--paper); border-top: 4px solid var(--orange); }
.method-grid span { color: var(--orange); font-size: .75rem; font-weight: 900; }
.method-grid h3 { margin: 24px 0 10px; color: var(--navy); font-size: 1.08rem; }
.method-grid p { margin: 0; color: var(--muted); font-size: .87rem; }
.evidence-key { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

@media (max-width: 980px) {
  .presentation-grid, .method-grid { grid-template-columns: repeat(2, 1fr); }
  .interpretation-layout, .boundary-grid, .update-layout { grid-template-columns: 1fr; gap: 44px; }
}

@media (max-width: 720px) {
  .matters-grid, .presentation-grid, .method-grid, .boundary-statements { grid-template-columns: 1fr; }
  .description-boundary, .does-not-show { grid-template-columns: 1fr; gap: 7px; }
  .how-we-know-body dl div, .evidence-source-list dl div { grid-template-columns: 1fr; gap: 3px; }
}

/* MVP reading model */
.mvp-subtype-hero h1 { max-width: 920px; font-size: clamp(2.8rem, 5.4vw, 5.15rem); }
.subtype-intro-follow { margin-top: 15px; }
.evidence-summary-body { color: var(--ink); font-size: 1rem; line-height: 1.6; }
.mvp-burden-list { border-top: 1px solid var(--line); }
.mvp-burden-list article { display: grid; grid-template-columns: 135px minmax(0, 1fr); gap: 30px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.mvp-burden-list article > strong { color: var(--navy); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; }
.mvp-burden-list h3 { margin-bottom: 12px; color: var(--navy); font-size: 1.2rem; line-height: 1.3; }
.mvp-burden-list p { margin-bottom: 0; }
#burden, #care-impact { scroll-margin-top: 118px; }
#care-impact h3 { margin: 24px 0 12px; color: var(--navy); font-size: 1.2rem; line-height: 1.3; }
#care-impact h3:first-child { margin-top: 0; }
.mvp-subtype-nav .container { gap: 34px; }
#bottom-line, #notice, #look-alikes, #eeg, #evidence, #unknowns { scroll-margin-top: 118px; }
.mvp-section { padding-block: 86px; }
.mvp-eeg-section { padding: 88px 0; background: var(--blue-soft); border-block: 1px solid #cbdce6; }
.eeg-distinction-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.eeg-distinction-grid article { padding: 27px; background: var(--white); border-top: 4px solid var(--orange); }
.eeg-distinction-grid article > span { color: var(--orange); font-size: .72rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.eeg-distinction-grid h3 { margin: 18px 0 10px; color: var(--navy); font-size: 1.3rem; }
.eeg-distinction-grid p { margin: 0; color: var(--muted); }
.mvp-method-note { margin-top: 18px; }
.mvp-evidence-section { background: var(--white); }
.mvp-claim-list { border-top: 1px solid var(--line); }
.mvp-claim { display: grid; grid-template-columns: minmax(290px, .9fr) minmax(0, 1.1fr); gap: 56px; padding: 35px 4px; border-bottom: 1px solid var(--line); }
.mvp-claim-heading { display: grid; align-content: start; justify-items: start; gap: 16px; }
.mvp-claim h3 { margin: 0; color: var(--navy); font-size: clamp(1.35rem, 2.2vw, 1.8rem); line-height: 1.22; }
.mvp-claim > p { margin: 2px 0 0; color: var(--muted); }
.mvp-claim .how-we-know { grid-column: 2; margin-top: -8px; }
.mvp-source-detail { display: grid; gap: 11px; margin-top: 14px; padding: 20px; background: var(--paper); border-left: 4px solid var(--orange); }
.mvp-source-detail p { margin: 0; color: var(--muted); font-size: .84rem; }
.mvp-source-detail strong { color: var(--navy); }
.mvp-source-detail a { color: var(--navy); font-weight: 760; }
.mvp-limits-section .safety-boundary { margin-top: 34px; }
.mvp-scope-boundary { margin-top: 12px !important; background: var(--white); border-left-color: var(--orange); }
.mvp-provenance { display: grid; grid-template-columns: .82fr 1.18fr; gap: 84px; align-items: start; }
.mvp-provenance h2 { color: var(--navy); font-size: clamp(2rem, 3.7vw, 3.15rem); }
.mvp-provenance > div:last-child > p:not(.review-note) { color: var(--muted); }

@media (max-width: 980px) {
  .mvp-claim, .mvp-provenance { grid-template-columns: 1fr; gap: 20px; }
  .mvp-claim .how-we-know { grid-column: 1; }
}

@media (max-width: 720px) {
  .mvp-burden-list article { grid-template-columns: 1fr; gap: 12px; }
  .eeg-distinction-grid { grid-template-columns: 1fr; }
  .mvp-section, .mvp-eeg-section { padding-block: 66px; }
}
