:root {
  /* Layout idea: every drawing is an X-ray film (dark plate) on cool clinical paper; text runs in a ~66ch column. */
  --paper: #F1F4F6;
  --paper-2: #E4EAEE;
  --card: #FFFFFF;
  --ink: #0E2030;
  --muted: #55677A;
  --line: #C9D4DC;
  --film: #06121D;
  --film-lit: #12314A;
  --signal: #FF5B3A;        /* pain. Used on film and for marks. */
  --signal-ink: #B8321A;    /* pain, as text on paper */
  --relief: #0A7868;        /* what helps */
  --relief-soft: #D9EFEA;
  --amber: #8A5E00;
  --amber-soft: #F6EBCF;
  --display: 'Bricolage Grotesque', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --body: 'Atkinson Hyperlegible', Verdana, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1120px;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0A1722; --paper-2: #10222F; --card: #0F1E2B; --ink: #E4EDF3; --muted: #93A6B6; --line: #233849;
    --film: #040C14; --film-lit: #0F2A40; --signal-ink: #FF8266; --relief: #45C9B3; --relief-soft: #0F2E2B;
    --amber: #E3B44B; --amber-soft: #2C2412;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0A1722; --paper-2: #10222F; --card: #0F1E2B; --ink: #E4EDF3; --muted: #93A6B6; --line: #233849;
  --film: #040C14; --film-lit: #0F2A40; --signal-ink: #FF8266; --relief: #45C9B3; --relief-soft: #0F2E2B;
  --amber: #E3B44B; --amber-soft: #2C2412;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); font-weight: 800; font-stretch: 85%; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.mono, .kicker { font: 500 12px/1.2 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* ── header ── */
.top { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 58px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; font: 800 1.2rem/1 var(--display); letter-spacing: -0.02em; text-decoration: none; padding: 10px 0; }
.brand svg { width: 26px; height: 26px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; min-width: 0; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; text-decoration: none; padding: 8px 12px; border-radius: 999px; font-size: 0.95rem; color: var(--muted); }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--paper); background: var(--ink); }
@media (max-width: 720px) {
  .top .wrap { gap: 0; }
  .nav { margin-left: -12px; width: calc(100% + 24px); padding-bottom: 8px; }
}

/* ── buttons and links ── */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--paper); border: 0; border-radius: 999px; padding: 12px 20px; font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--signal); color: #1a0a05; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.arrow-link { font-weight: 700; text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 2px; }
.arrow-link::after { content: ' →'; }

/* ── X-ray film ── */
.film { margin: 0; background: var(--film); color: #D5E3EE; border-radius: var(--r); overflow: hidden; border: 1px solid #1B3246; }
.film-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font: 500 11px/1.2 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: #8AAAC2; }
.film-plate { background: radial-gradient(ellipse at 50% 46%, var(--film-lit) 0%, var(--film) 72%); padding: 6px 10px; }
.film svg { display: block; width: 100%; height: auto; max-height: 520px; margin: 0 auto; overflow: hidden; }
.film figcaption { padding: 12px 16px 16px; font-size: 0.92rem; line-height: 1.45; color: #A9C0D2; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.film-states { display: inline-flex; gap: 4px; background: rgba(255, 255, 255, 0.07); padding: 3px; border-radius: 999px; }
.film-states button { border: 0; background: transparent; color: #B9CEDD; border-radius: 999px; padding: 6px 12px; font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.film-states button[aria-pressed="true"] { background: #E6F0F7; color: #06121D; }
.legend { display: grid; gap: 8px; padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.legend li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 0.93rem; line-height: 1.35; }
.legend b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #CFE0EC; font: 700 12px/1 var(--mono); color: #EAF3F9; }
.legend strong { color: #F2F8FC; font-weight: 700; }
.legend em { font-style: normal; color: #9DB6C9; }
.legend .is-hl b { background: var(--signal); border-color: var(--signal); color: #1A0A05; }

.f-bone { fill: rgba(205, 225, 240, 0.2); stroke: rgba(222, 237, 248, 0.78); stroke-width: 1.5; stroke-linejoin: round; }
.f-bone.pat { fill: rgba(205, 225, 240, 0.3); }
.s-cart { fill: none; stroke: #7FD4FF; stroke-width: 7; stroke-linecap: round; transition: stroke-width 0.6s, stroke 0.4s; }
.f-cartfill { fill: #7FD4FF; opacity: 0.85; }
.f-men { fill: #4FC3B0; opacity: 0.9; transition: opacity 0.5s; }
.s-lig { fill: none; stroke: #F1D9A0; stroke-linecap: round; opacity: 0.88; }
.s-ten { fill: none; stroke: #E2C284; stroke-linecap: round; opacity: 0.55; }
.f-ten { fill: #E2C284; opacity: 0.3; }
.s-musc { fill: none; stroke: #D79A9A; stroke-width: 26; stroke-linecap: round; opacity: 0.22; }
.f-soft { fill: #9AD0FF; opacity: 0.4; stroke: #9AD0FF; stroke-width: 1; }
.f-spur { fill: #E6F0F7; opacity: 0; transition: opacity 0.6s; }
.s-tear { fill: none; stroke: #06121D; stroke-width: 3.5; stroke-linecap: round; }
.s-arrow { fill: none; stroke: #FFFFFF; stroke-width: 4; stroke-linecap: round; }
.f-arrow { fill: #FFFFFF; }
.s-rough { fill: none; stroke: #06121D; stroke-width: 2; stroke-linejoin: round; opacity: 0; transition: opacity 0.5s; }
.f-contact { fill: var(--signal); opacity: 0; transition: opacity 0.5s; }
.w3 { stroke-width: 3; } .w5 { stroke-width: 5; } .w6 { stroke-width: 6; } .w9 { stroke-width: 9; } .w11 { stroke-width: 11; }
.tag { font: 500 10px var(--mono); letter-spacing: 0.1em; fill: #6C8CA5; }

.p.hl .s-lig, .p.hl .s-ten, .p.hl .s-cart { stroke: var(--signal); opacity: 1; }
.p.hl .f-men, .p.hl .f-soft, .p.hl .f-ten { fill: var(--signal); stroke: var(--signal); opacity: 0.95; }
.p.hl .f-bone { fill: rgba(255, 91, 58, 0.28); stroke: var(--signal); }
.p.hl { animation: hl 2.2s ease-in-out infinite; }
@keyframes hl { 50% { opacity: 0.62; } }

.co line { stroke: #CFE0EC; stroke-width: 1; opacity: 0.75; }
.co .dot { fill: #CFE0EC; }
.co .badge { fill: #06121D; stroke: #CFE0EC; stroke-width: 1.5; }
.co text { font: 700 12px var(--mono); fill: #EAF3F9; }
.co-hl .badge { fill: var(--signal); stroke: var(--signal); }
.co-hl text { fill: #1A0A05; }

.zone ellipse { fill: var(--signal); opacity: 0.13; }
.zone { animation: hl 2.6s ease-in-out infinite; }
.pain .core { fill: var(--signal); stroke: #06121D; stroke-width: 1.5; }
.pain .ring { fill: none; stroke: var(--signal); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.2s ease-out infinite; }
.pain .r2 { animation-delay: 1.1s; }
@keyframes ring { from { transform: scale(1); opacity: 0.9; } to { transform: scale(3.8); opacity: 0; } }

/* per-topic motion */
[data-fx="force"] .fx-force { animation: push 1.5s ease-in-out infinite; }
[data-fx="force"] .fx-force.rev { animation-name: pushrev; }
@keyframes push { 50% { transform: translateX(9px); } }
@keyframes pushrev { 50% { transform: translateX(-9px); } }
[data-fx="slide"] .p-itband { animation: slide 2.2s ease-in-out infinite, hl 2.2s ease-in-out infinite; }
@keyframes slide { 50% { transform: translateX(3px); } }
[data-fx="swell"] .cyst { transform-box: fill-box; transform-origin: 70% 50%; animation: swell 3.2s ease-in-out infinite; }
@keyframes swell { 0%, 100% { transform: scale(0.78); } 50% { transform: scale(1.12); } }
[data-fx="press"] .p-patella { animation: press 2.4s ease-in-out infinite; }
@keyframes press { 50% { transform: translateX(-3px); } }

[data-fx="oa"][data-state="healthy"] .p.hl { animation: none; }
[data-fx="oa"][data-state="healthy"] .p.hl .s-cart { stroke: #7FD4FF; }
[data-fx="oa"][data-state="worn"] .p-cartFm .s-cart { stroke-width: 2.2; stroke-dasharray: 5 6; }
[data-fx="oa"][data-state="worn"] .p-cartTm .s-cart { stroke-width: 1.8; stroke-dasharray: 5 6; }
[data-fx="oa"][data-state="worn"] .f-spur { opacity: 1; }
[data-fx="oa"][data-state="worn"] .p-menM .f-men { opacity: 0.4; }

.acl-a, .acl-b { transform-box: fill-box; transform-origin: center; transition: transform 0.5s; }
[data-fx="acl"][data-state="torn"] .acl-a { transform: translate(4px, 5px) rotate(28deg); }
[data-fx="acl"][data-state="torn"] .acl-b { transform: translate(-4px, -5px) rotate(28deg); }

.s-fib { fill: none; stroke: #F1D9A0; stroke-width: 5.5; stroke-linecap: round; transform-box: fill-box; transition: transform 0.5s, stroke 0.3s; }
.s-fib.up { transform-origin: 50% 0; } .s-fib.lo { transform-origin: 50% 100%; }
.fib-lower { transition: transform 0.5s; }
[data-state="g1"] .fib-8 .s-fib,
[data-state="g2"] :is(.fib-6, .fib-7, .fib-8, .fib-9) .s-fib,
[data-state="g3"] .fib .s-fib { stroke: var(--signal); transform: scaleY(0.78); }
[data-state="g3"] .fib-lower, [data-state="g3"] .s-fib.lo { translate: 0 12px; }

.c-top, .c-bot { transition: transform 0.7s; }
.c-h, .c-e, .c-a { transition: opacity 0.5s; }
.c-e, .c-a { opacity: 0; }
[data-state="early"] .c-h, [data-state="advanced"] .c-h { opacity: 0; }
[data-state="early"] .c-e { opacity: 0.85; } [data-state="early"] .s-rough { opacity: 1; }
[data-state="advanced"] .c-a { opacity: 0.85; }
[data-state="early"] .c-top { transform: translateY(8px); } [data-state="early"] .c-bot { transform: translateY(-8px); }
[data-state="advanced"] .c-top { transform: translateY(30px); } [data-state="advanced"] .c-bot { transform: translateY(-30px); }
[data-view="cartilage"][data-state="advanced"] .f-spur, [data-state="advanced"] .f-contact { opacity: 1; }
[data-state="advanced"] .f-contact { animation: hl 2s ease-in-out infinite; }

/* ── hero and pain map ── */
.hero { padding: 36px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); grid-template-areas: 'copy film' 'result film'; gap: 28px 48px; align-items: start; }
.hero-copy { grid-area: copy; display: flex; flex-direction: column; gap: 18px; padding-top: 18px; }
.hero-copy h1 em { font-style: normal; color: var(--signal-ink); }
.lede { font-size: 1.2rem; line-height: 1.5; max-width: 34em; color: var(--ink); }
.hero .film-map { grid-area: film; }
.map-results { grid-area: result; }
.film-map svg { max-height: 500px; }
.hit ellipse { fill: transparent; stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.2; stroke-dasharray: 3 5; cursor: pointer; }
.hit:hover ellipse, .hit:focus-visible ellipse { stroke: #FFFFFF; stroke-dasharray: none; fill: rgba(255, 255, 255, 0.05); }
.hit:focus-visible { outline: none; }
.film-map .zone { display: none; }
.painmap-root[data-zone="inner"] [data-zone-glow="inner"],
.painmap-root[data-zone="outer"] [data-zone-glow="outer"],
.painmap-root[data-zone="front"] [data-zone-glow="front"],
.painmap-root[data-zone="back"] [data-zone-glow="back"] { display: block; }
.film-map .zone ellipse { opacity: 0.2; }
.zone-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.zone-chips button { border: 1px solid rgba(255, 255, 255, 0.2); background: transparent; color: #D5E3EE; border-radius: 10px; padding: 11px 4px; font-size: 0.92rem; font-weight: 700; }
.zone-chips button:hover { border-color: #FFFFFF; }
.zone-chips button[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: #1A0A05; }
.map-result { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.map-result h2 { font-size: 1.35rem; }
.cause-list { display: grid; gap: 0; counter-reset: c; }
.cause-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); counter-increment: c; }
.cause-list li::before { content: counter(c); font: 700 13px/26px var(--mono); width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); text-align: center; color: var(--ink); }
.cause-list a { font-weight: 700; }
.cause-list p { color: var(--muted); font-size: 0.95rem; line-height: 1.45; margin-top: 2px; }
@media (max-width: 860px) {
  .hero { padding-top: 16px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'copy' 'film' 'result'; gap: 22px; }
  .hero-copy { padding-top: 6px; }
  .film-map svg { max-height: 380px; }
}

/* ── sections ── */
.band { padding: 60px 0; border-top: 1px solid var(--line); }
.band.alt { background: var(--paper-2); }
.band-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; max-width: 46em; }
.band-head p { color: var(--muted); font-size: 1.08rem; }

.index { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px 32px; }
.index-group h3 { font-size: 1.2rem; }
.index-group > p { color: var(--muted); font-size: 0.93rem; margin: 4px 0 10px; }
.index-group li { border-top: 1px solid var(--line); }
.index-group li a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 2px; text-decoration: none; font-weight: 700; }
.index-group li a::after { content: '→'; color: var(--signal-ink); font-family: var(--mono); }
.index-group li a:hover { color: var(--signal-ink); }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.principles li { padding: 24px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--line); margin-left: -1px; border-top: 1px solid var(--line); margin-top: -1px; }
.principles p { color: var(--muted); font-size: 0.98rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.split .stack { gap: 16px; max-width: 32em; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ── 3D knee ── */
.knee3d { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); background: var(--film); color: #D5E3EE; border-radius: var(--r); overflow: hidden; border: 1px solid #1B3246; }
.k3-stage { position: relative; min-height: 460px; background: radial-gradient(ellipse at 50% 45%, var(--film-lit) 0%, var(--film) 70%); }
.k3-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.k3-hint { position: absolute; left: 14px; top: 12px; font: 500 11px/1.2 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: #8AAAC2; pointer-events: none; }
.k3-views { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.k3-views button, .k3-parts button { border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(6, 18, 29, 0.6); color: #D5E3EE; border-radius: 999px; padding: 7px 12px; font-size: 0.86rem; }
.k3-views button:hover, .k3-parts button:hover { border-color: #FFFFFF; }
.k3-side { padding: 20px; display: flex; flex-direction: column; gap: 18px; border-left: 1px solid rgba(255, 255, 255, 0.08); min-width: 0; }
.k3-parts { display: flex; flex-wrap: wrap; gap: 6px; }
.k3-parts button[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: #1A0A05; font-weight: 700; }
.k3-info { display: flex; flex-direction: column; gap: 8px; min-height: 8.5em; }
.k3-info h3 { color: #F2F8FC; font-size: 1.3rem; }
.k3-info p { color: #A9C0D2; font-size: 0.98rem; line-height: 1.45; }
.k3-info a { color: #FFFFFF; }
.k3-bend { display: grid; gap: 8px; font: 500 11px/1.2 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: #8AAAC2; margin-top: auto; }
.k3-bend span { display: flex; justify-content: space-between; }
.k3-bend input { width: 100%; accent-color: var(--signal); }
.k3-fallback { display: none; position: absolute; inset: 0; place-items: center; padding: 24px; text-align: center; color: #A9C0D2; }
.k3-failed .k3-fallback { display: grid; }
.k3-failed canvas, .k3-failed .k3-views, .k3-failed .k3-hint { display: none; }
@media (max-width: 820px) {
  .knee3d { grid-template-columns: minmax(0, 1fr); }
  .k3-stage { min-height: 400px; }
  .k3-side { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.08); }
  .k3-info { min-height: 0; }
}

/* ── article ── */
.article { padding: 26px 0 64px; }
.crumbs { font: 500 12px/1.4 var(--mono); letter-spacing: 0.05em; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.a-head { display: flex; flex-direction: column; gap: 12px; padding: 22px 0 30px; max-width: 52rem; }
.a-head h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); }
.where-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 0.92rem; color: var(--muted); }
.where-tags a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; color: var(--ink); background: var(--card); }
.where-tags a:hover { border-color: var(--signal-ink); color: var(--signal-ink); }
.a-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 44px; align-items: start; }
.a-fig { position: sticky; top: 76px; }
.a-text { display: flex; flex-direction: column; gap: 30px; max-width: 40rem; }
.a-text section, .a-block { display: flex; flex-direction: column; gap: 12px; }
.a-block { max-width: 46rem; margin-top: 44px; }
.a-block.wide { max-width: none; }
.tldr { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--signal); border-radius: 0 var(--r) var(--r) 0; padding: 20px 22px; }
.tldr h2 { font: 500 12px/1.2 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--signal-ink); }
.tldr p { font-size: 1.12rem; line-height: 1.55; }
.dots li { position: relative; padding: 5px 0 5px 22px; }
.dots li::before { content: ''; position: absolute; left: 3px; top: 0.85em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
@media (max-width: 900px) {
  /* phone order: the 30-second answer, then the picture, then the detail */
  .a-grid { display: flex; flex-direction: column; gap: 28px; }
  .a-text { display: contents; }
  .a-text > * { max-width: 40rem; }
  .tldr { order: -2; }
  .a-fig { position: static; order: -1; max-width: 460px; width: 100%; }
  .a-fig .film svg { max-height: 420px; }
}

.help-list { border-top: 1px solid var(--line); }
.help-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.help-list p { color: var(--muted); font-size: 0.98rem; margin-top: 3px; }
.ev { font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.ev::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ev-a { background: var(--relief-soft); color: var(--relief); }
.ev-b { background: var(--amber-soft); color: var(--amber); }
.ev-c { background: var(--paper-2); color: var(--muted); }
.ev-c::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
@media (max-width: 560px) { .help-list li { grid-template-columns: minmax(0, 1fr); } .ev { justify-self: start; } }
.ev-key { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.88rem; color: var(--muted); align-items: center; }

.timeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.timeline li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.timeline b { display: block; font: 500 11px/1.2 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.timeline span { font: 700 1.25rem/1.3 var(--display); font-variant-numeric: tabular-nums; }

.flag { background: var(--card); border: 1.5px solid var(--signal-ink); border-radius: var(--r); padding: 22px; }
.flag h2 { font-size: 1.25rem; color: var(--signal-ink); }
.flag li { position: relative; padding: 5px 0 5px 24px; }
.flag li::before { content: '!'; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--signal-ink); color: var(--card); font: 700 11px/16px var(--mono); text-align: center; }

.supp-note { background: var(--paper-2); border-radius: var(--r); padding: 22px; }
.supp-note h2 { font-size: 1.2rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 0.96rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font: 500 11px/1.2 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 700; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 15px 30px 15px 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font: 500 1.3rem/1 var(--mono); color: var(--signal-ink); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 0 16px; color: var(--muted); max-width: 40rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.cards a { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-decoration: none; }
.cards a:hover { border-color: var(--ink); }
.cards b { font: 700 1.05rem/1.2 var(--display); }
.cards span { font: 500 11px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.fineprint { margin-top: 40px; font-size: 0.88rem; color: var(--muted); max-width: 46rem; }

/* ── supplements ── */
.supp-list { display: grid; gap: 14px; }
.supp { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px 32px; scroll-margin-top: 80px; }
.supp-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.supp-head h2 { font-size: 1.4rem; }
.supp dl { margin: 0; display: grid; gap: 14px; }
.supp dt { font: 500 11px/1.2 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.supp dd { margin: 0; }
.supp .claim { border-left: 3px solid var(--relief); padding-left: 12px; }
.supp .noclaim { color: var(--muted); }
.pick { background: var(--paper-2); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 10px; align-self: start; }
.pick p { font-size: 0.93rem; color: var(--muted); }
.pick .aff { font: 500 10px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .supp { grid-template-columns: minmax(0, 1fr); } }
.notice { border: 1px dashed var(--muted); border-radius: 10px; padding: 14px 16px; font-size: 0.95rem; color: var(--muted); }

/* ── prose pages ── */
.prose { max-width: 42rem; display: flex; flex-direction: column; gap: 14px; }
.prose h2 { margin-top: 26px; }

/* ── footer ── */
.foot { border-top: 1px solid var(--line); background: var(--ink); color: var(--paper); padding: 52px 0 32px; }
.foot a { color: inherit; }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
.signup { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 80px; }
.signup h2 { font-size: 1.7rem; }
.signup p { opacity: 0.8; max-width: 30em; }
.signup form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.signup label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.signup input { flex: 1 1 220px; min-width: 0; font: inherit; padding: 12px 16px; border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--paper) 45%, transparent); background: transparent; color: var(--paper); }
.signup input::placeholder { color: color-mix(in srgb, var(--paper) 55%, transparent); }
.signup .btn { background: var(--signal); color: #1A0A05; }
.signup .btn:hover { background: var(--paper); color: var(--ink); }
.signup output { font-size: 0.92rem; min-height: 1.4em; opacity: 0.9; }
.foot-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; align-content: start; }
.foot-links a { text-decoration: none; opacity: 0.85; padding: 3px 0; }
.foot-links a:hover { opacity: 1; text-decoration: underline; }
.foot-legal { grid-column: 1 / -1; border-top: 1px solid color-mix(in srgb, var(--paper) 20%, transparent); padding-top: 20px; font-size: 0.86rem; opacity: 0.75; display: grid; gap: 8px; max-width: 60rem; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: minmax(0, 1fr); } }

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