:root {
  --paper: #f4f1e8;
  --surface: #fbfaf5;
  --ink: #191914;
  --muted: #6d6a5f;
  --line: rgba(25, 25, 20, .16);
  --tint: rgba(25, 25, 20, .05);
  --tint-2: rgba(25, 25, 20, .09);
  --coral: #d2502f;
  --blue: #3a5bd9;
  --violet: #6f52cc;
  --teal: #1f8f7f;
  --good: #297849;
  --bad: #c0392b;
  --pending: #8a867a;
  --good-bg: rgba(41, 120, 73, .13);
  --bad-bg: rgba(192, 57, 43, .13);
  --blue-bg: rgba(58, 91, 217, .12);
  --violet-bg: rgba(111, 82, 204, .13);
  --note-bg: rgba(210, 80, 47, .10);
  --on-accent: #fff;
}

/* Three theme states: explicit light stamp, explicit dark stamp, and the
   unstamped default where only prefers-color-scheme decides. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14140f;
    --surface: #1c1c16;
    --ink: #f1eee3;
    --muted: #a09a8b;
    --line: rgba(241, 238, 227, .16);
    --tint: rgba(241, 238, 227, .05);
    --tint-2: rgba(241, 238, 227, .10);
    --coral: #ff8a68;
    --blue: #8aa0ff;
    --violet: #ab93ff;
    --teal: #4fc9b4;
    --good: #63c98c;
    --bad: #ff8271;
    --pending: #8b8678;
    --good-bg: rgba(99, 201, 140, .15);
    --bad-bg: rgba(255, 130, 113, .15);
    --blue-bg: rgba(138, 160, 255, .14);
    --violet-bg: rgba(171, 147, 255, .15);
    --note-bg: rgba(255, 138, 104, .12);
    --on-accent: #14140f;
  }
}
:root[data-theme="dark"] {
  --paper: #14140f;
  --surface: #1c1c16;
  --ink: #f1eee3;
  --muted: #a09a8b;
  --line: rgba(241, 238, 227, .16);
  --tint: rgba(241, 238, 227, .05);
  --tint-2: rgba(241, 238, 227, .10);
  --coral: #ff8a68;
  --blue: #8aa0ff;
  --violet: #ab93ff;
  --teal: #4fc9b4;
  --good: #63c98c;
  --bad: #ff8271;
  --pending: #8b8678;
  --good-bg: rgba(99, 201, 140, .15);
  --bad-bg: rgba(255, 130, 113, .15);
  --blue-bg: rgba(138, 160, 255, .14);
  --violet-bg: rgba(171, 147, 255, .15);
  --note-bg: rgba(255, 138, 104, .12);
  --on-accent: #14140f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
button, select, input { font: inherit; color: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
b { font-weight: 700; }

.shell { width: min(1280px, 100% - 32px); margin-inline: auto; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* header */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 14px max(16px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid var(--line);
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--paper);
}
.brand {
  display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none;
  font: 800 11px/1 ui-monospace, Menlo, monospace; letter-spacing: .13em;
}
.brand-mark { width: 22px; height: 20px; display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; }
.brand-mark i { display: block; height: 3px; background: var(--ink); }
.brand-mark i:nth-child(1) { width: 22px; }
.brand-mark i:nth-child(2) { width: 17px; }
.brand-mark i:nth-child(3) { width: 12px; }
.brand-mark i:nth-child(4) { width: 7px; }

.select-wrap span, .search-wrap span.lbl {
  display: block; margin-bottom: 5px;
  font: 750 9px/1 ui-monospace, Menlo, monospace; letter-spacing: .14em; color: var(--muted);
}
.select-wrap select {
  min-width: 108px; max-width: 100%; border: 0; border-bottom: 1px solid var(--ink);
  background: transparent; border-radius: 0; padding: 4px 4px 5px 0; font-weight: 650;
}
.select-wrap.inline { display: flex; align-items: center; gap: 9px; }
.select-wrap.inline span { margin: 0; }

/* intro */
.intro { padding-block: 40px 8px; display: grid; gap: 14px; }
.lede { margin: 0; max-width: 68ch; color: var(--muted); font-size: 16px; line-height: 1.6; }
.statline { margin: 0; font: 650 12px/1.6 ui-monospace, Menlo, monospace; color: var(--muted); }
.statline b { color: var(--ink); font-variant-numeric: tabular-nums; }
.contents { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font: 650 11px/1 ui-monospace, Menlo, monospace; }
.contents span { color: var(--muted); letter-spacing: .08em; }
.contents a { color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; }
.contents a:hover, .contents a:focus-visible { border-color: var(--ink); }

/* section blocks */
.block { padding-block: 44px; }
/* the topbar is sticky, so anchored sections stop clear of it */
.block, .why { scroll-margin-top: 72px; }
.block-head { margin-bottom: 20px; display: grid; gap: 7px; }
.block-head h2 { margin: 0; font-size: 27px; letter-spacing: -.03em; line-height: 1.15; text-wrap: balance; }
.block-head p { margin: 0; max-width: 72ch; color: var(--muted); font-size: 13.5px; }

/* coverage matrix */
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table.matrix { border-collapse: collapse; width: 100%; font-size: 13px; }
table.matrix th, table.matrix td { padding: 10px 13px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.matrix tbody tr:last-child td { border-bottom: 0; }
table.matrix thead th { font: 800 9.5px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .13em; color: var(--muted); background: var(--tint); }
table.matrix td.num, table.matrix th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.matrix td.num b { display: block; font-size: 13.5px; }
table.matrix td.num span { display: block; font: 500 10px/1.3 ui-monospace, Menlo, monospace; color: var(--muted); }
table.matrix td.hi b { color: var(--good); }
table.matrix td.lo b { color: var(--bad); }
table.matrix td.absent { color: var(--pending); font-weight: 700; }
table.matrix td.total { background: var(--tint); }
table.matrix td.sticky, table.matrix th.sticky { position: sticky; left: 0; background: var(--surface); font-weight: 750; }
table.matrix thead th.sticky { background: var(--tint); }
table.matrix td.model { font-weight: 650; }
table.matrix tbody tr:hover td { background: var(--blue-bg); }
.tier { display: inline-block; padding: 2px 8px; border-radius: 999px; font: 800 9.5px/1.7 ui-monospace, Menlo, monospace; letter-spacing: .09em; text-transform: uppercase; }
.tier-clip30 { background: var(--blue-bg); color: var(--blue); }
.tier-blind { background: var(--tint-2); color: var(--muted); }
.tier-memory { background: var(--violet-bg); color: var(--violet); }

.gap-note { margin-top: 15px; display: flex; gap: 12px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.gap-note ul { margin: 0; padding-left: 17px; }
.gap-note li { margin-bottom: 4px; }
.gap-note b { color: var(--ink); }
.gap-note .warn, .gap-note .ok { flex: none; padding: 3px 9px; border-radius: 999px; font: 800 9.5px/1.7 ui-monospace, Menlo, monospace; letter-spacing: .11em; }
.gap-note .warn { background: var(--bad-bg); color: var(--bad); }
.gap-note .ok { background: var(--good-bg); color: var(--good); }

/* level anatomy */
.level-stack { display: grid; gap: 16px; }
.level-block { border: 1px solid var(--line); border-left: 4px solid var(--tone); border-radius: 12px; background: var(--surface); padding: 20px; }
.level-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.level-head .num { font: 800 9.5px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .15em; color: var(--tone); }
.level-head h3 { margin: 6px 0 4px; font-size: 19px; letter-spacing: -.02em; }
.level-head p { margin: 0; color: var(--muted); max-width: 66ch; font-size: 13px; }
.level-scores { display: flex; gap: 8px; flex-wrap: wrap; }
.lv-chip { display: grid; gap: 1px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; text-align: right; }
.lv-chip i { font: 700 9.5px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .06em; color: var(--muted); font-style: normal; }
.lv-chip b { font-size: 17px; font-variant-numeric: tabular-nums; }

.sub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 12px; }
.sub-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 15px; background: var(--paper); }
.sub-head { display: flex; justify-content: space-between; align-items: baseline; gap: 9px; }
.sub-head h4 { margin: 0; font-size: 14px; }
.sub-head code { font: 600 9.5px/1.4 ui-monospace, Menlo, monospace; color: var(--muted); }
.sub-ask { margin: 8px 0 5px; font-size: 12.5px; line-height: 1.5; }
.sub-gold { margin: 0 0 10px; font: 700 9px/1.4 ui-monospace, Menlo, monospace; letter-spacing: .09em; color: var(--muted); text-transform: uppercase; }
.sub-scores { display: grid; gap: 5px; }
.sub-score { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 3px 9px; padding-top: 5px; border-top: 1px dashed var(--line); }
.sub-score span { font: 700 10.5px/1.4 ui-monospace, Menlo, monospace; color: var(--muted); }
.sub-score b { font-size: 14px; font-variant-numeric: tabular-nums; }
.sub-score i { grid-column: 1 / -1; font: 500 10px/1.4 ui-monospace, Menlo, monospace; color: var(--muted); font-style: normal; }
.sub-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; background: var(--note-bg); border-radius: 8px; padding: 9px 10px; }
.sub-note span { display: block; font: 800 9px/1.6 ui-monospace, Menlo, monospace; letter-spacing: .13em; color: var(--coral); }
.sub-note.inline { margin-top: 14px; }

/* explorer */
.toolbar {
  display: flex; align-items: end; gap: 14px; flex-wrap: wrap;
  padding: 14px; background: var(--surface);
  border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0;
}
.level-tabs { display: flex; gap: 4px; }
.level-tabs button { width: 40px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: transparent; font: 800 11px/1 ui-monospace, Menlo, monospace; }
.level-tabs button.active { background: var(--blue); color: var(--on-accent); border-color: var(--blue); }
.level-tabs button[disabled] { opacity: .4; cursor: default; }
.mode-switch { display: flex; border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.mode-switch button { border: 0; border-radius: 6px; background: transparent; padding: 8px 12px; font: 750 9.5px/1 ui-monospace, Menlo, monospace; letter-spacing: .07em; color: var(--muted); }
.mode-switch button.active { background: var(--ink); color: var(--paper); }
.search-wrap { margin-left: auto; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid var(--ink); padding: 4px 2px 6px; }
.search-wrap input { width: 190px; max-width: 46vw; border: 0; outline: 0; background: transparent; font-size: 12.5px; }

.question-stage { display: grid; grid-template-columns: 330px 1fr; border: 1px solid var(--line); border-radius: 0 0 12px 12px; overflow: hidden; background: var(--surface); }
.question-list-panel { border-right: 1px solid var(--line); min-width: 0; }
.list-title { height: 46px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font: 750 9px/1 ui-monospace, Menlo, monospace; letter-spacing: .11em; color: var(--muted); }
.list-title button { border: 0; background: transparent; color: var(--blue); font: inherit; }
.question-list { max-height: 620px; overflow: auto; }
.q-list-item { width: 100%; display: block; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 13px 14px; }
.q-list-item:hover, .q-list-item.active { background: var(--blue-bg); }
.q-list-item.active { box-shadow: inset 3px 0 var(--blue); }
.q-list-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 700 9px/1 ui-monospace, Menlo, monospace; letter-spacing: .06em; color: var(--muted); }
.q-list-item p { margin: 8px 0 0; font-size: 12px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 5px; }
.dot.correct { background: var(--good); }
.dot.wrong { background: var(--bad); }
.dot.pending { background: var(--pending); }

.question-detail { padding: 22px; min-width: 0; }
.detail-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.detail-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; font: 750 9px/1.4 ui-monospace, Menlo, monospace; letter-spacing: .07em; }
.badge.level { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.detail-id { color: var(--muted); font: 600 9px/1 ui-monospace, Menlo, monospace; }
.detail-grid { display: grid; grid-template-columns: minmax(240px, .85fr) minmax(320px, 1.15fr); gap: 22px; margin-top: 18px; }
.media-box { background: #111; aspect-ratio: 16/10; max-width: 100%; display: grid; place-items: center; position: relative; overflow: hidden; border-radius: 8px; }
.media-box video { width: 100%; height: 100%; object-fit: contain; }
.media-empty { color: #a8a49a; font: 700 10px/1.6 ui-monospace, Menlo, monospace; text-align: center; padding: 18px; }
.media-label { position: absolute; left: 9px; top: 9px; color: #fff; background: rgba(0, 0, 0, .7); padding: 4px 7px; border-radius: 5px; font: 750 8px/1 ui-monospace, Menlo, monospace; letter-spacing: .11em; }
.window-list { color: var(--muted); font: 600 9.5px/1.5 ui-monospace, Menlo, monospace; margin-top: 8px; }
.q-number { color: var(--blue); font: 800 9.5px/1 ui-monospace, Menlo, monospace; letter-spacing: .11em; }
.detail-question h3 { margin: 10px 0 18px; font-size: clamp(19px, 2vw, 24px); line-height: 1.25; letter-spacing: -.02em; text-wrap: balance; }
.options { display: grid; gap: 7px; }
.option { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px 11px; font-size: 13px; }
.option-key { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: var(--tint-2); font: 800 10px/1 ui-monospace, Menlo, monospace; }
.option.gold { border-color: var(--good); background: var(--good-bg); }
.option.pred-wrong { border-color: var(--bad); background: var(--bad-bg); }
.option-note { display: flex; align-items: center; gap: 4px; font: 800 8px/1 ui-monospace, Menlo, monospace; letter-spacing: .07em; color: var(--muted); }
.option-note em { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 5px; font: 800 9.5px/1 ui-monospace, Menlo, monospace; font-style: normal; }
.option-note em.hit { background: var(--good-bg); color: var(--good); }
.option-note em.miss { background: var(--bad-bg); color: var(--bad); }

.trace { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 11px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.trace > div { display: grid; gap: 2px; min-width: 0; }
.trace span { font: 750 9px/1 ui-monospace, Menlo, monospace; letter-spacing: .1em; color: var(--muted); }
.trace strong { font-size: 13.5px; overflow-wrap: anywhere; }
.trace i { font: 500 10px/1.4 ui-monospace, Menlo, monospace; color: var(--muted); font-style: normal; }
.trace strong.correct { color: var(--good); }
.trace strong.wrong { color: var(--bad); }
.trace strong.pending { color: var(--pending); }

.empty-state { padding: 34px 18px; text-align: center; color: var(--muted); font: 650 12px/1.6 ui-monospace, Menlo, monospace; }

footer.shell {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-block: 20px 34px;
  font: 600 10.5px/1.6 ui-monospace, Menlo, monospace; color: var(--muted);
}
footer.shell span:first-child { max-width: 70ch; }

@media (max-width: 900px) {
  .question-stage { grid-template-columns: 1fr; }
  .question-list-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .question-list { max-height: 260px; }
  .detail-grid { grid-template-columns: 1fr; }
  .search-wrap { margin-left: 0; width: 100%; }
  .search-wrap input { width: 100%; max-width: none; }
}
@media (max-width: 560px) {
  .block { padding-block: 32px; }
  .block-head h2 { font-size: 22px; }
  .intro { padding-block: 26px 4px; }
  .lede { font-size: 15px; }
  .level-block { padding: 15px; }
  .question-detail { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---- figures ---- */
/* the tokens sit on .fig, not .viz, so the legend swatches beside the svg resolve too */
.fig, .viz {
  /* categorical slots 1-2 from the reference palette, validated --pairs all
     against this page's own light and dark chart surfaces */
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --axis: var(--line);
  --band: rgba(25, 25, 20, .07);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fig, :root:not([data-theme="light"]) .viz { --series-1: #3987e5; --series-2: #d95926; --band: rgba(241, 238, 227, .08); }
}
:root[data-theme="dark"] .fig, :root[data-theme="dark"] .viz { --series-1: #3987e5; --series-2: #d95926; --band: rgba(241, 238, 227, .08); }

.fig { margin: 0 0 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 16px 16px 14px; }
.fig:last-child { margin-bottom: 0; }
.fig figcaption { font-size: 12px; line-height: 1.55; margin: 9px 0 0; color: var(--muted); }
.fig figcaption b { color: var(--ink); font-weight: 700; }
/* the conclusion leads the figure; the numbers that support it sit under the chart */
.takeaway { margin: 0 0 12px; font-size: 17px; line-height: 1.35; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.takeaway b { font-weight: 700; }
.takeaway em { font-style: normal; color: var(--muted); }
.fig-body { overflow-x: auto; }
.fig svg { display: block; width: 100%; height: auto; min-width: 520px; }
.fig-note { margin: 9px 0 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); }
.fig-note b { color: var(--ink); font-weight: 700; }
.fig-note a { color: var(--ink); text-decoration-color: var(--line); text-underline-offset: 3px; }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 10px; font: 650 11px/1 ui-monospace, Menlo, monospace; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.legend i.dash { height: 0; border-top: 2px dashed currentColor; border-radius: 0; }
.legend i.dot { width: 9px; height: 9px; border-radius: 50%; }
.legend i.dot.solid { background: var(--muted); }
.legend i.dot.hollow { background: var(--surface); box-shadow: inset 0 0 0 2px var(--muted); }

.viz text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.viz .tick { font-size: 9.5px; fill: var(--muted); }
.viz .xlab { font-size: 11px; font-weight: 700; fill: var(--ink); }
.viz .dlab { font-size: 10px; font-weight: 700; }
.viz .gridline { stroke: var(--axis); stroke-width: 1; }
.viz .chance { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; opacity: .8; }
.viz .band { fill: var(--band); }
.viz .mark:hover { cursor: pointer; }
.viz .median { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.viz .anno { font-size: 10px; font-weight: 650; fill: var(--muted); }
.viz .anno-rule { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 2 3; opacity: .7; }

.viz-tip {
  position: fixed; z-index: 60; pointer-events: none; opacity: 0; transition: opacity .12s;
  background: var(--ink); color: var(--paper); border-radius: 7px; padding: 7px 9px;
  font: 650 11px/1.5 ui-monospace, Menlo, monospace; white-space: nowrap; max-width: 90vw;
}
.viz-tip.on { opacity: 1; }
@media (max-width: 560px) { .fig { padding: 12px 12px 10px; } }

/* ---- why blind ---- */
.why {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px 30px; align-items: start;
  padding-block: 30px; margin-top: 14px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.why-text h2 { margin: 0 0 12px; font-size: 21px; letter-spacing: -.02em; }
.why-text p { margin: 0 0 10px; max-width: 62ch; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.why-text p:last-child { margin-bottom: 0; }
.why-text b { color: var(--ink); }

/* the formula is the section's headline, so it gets the size of one */
.gain-card { margin: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 16px 18px; }
.gain-tag { display: block; margin-bottom: 12px; font: 800 9px/1.6 ui-monospace, Menlo, monospace; letter-spacing: .14em; color: var(--muted); }
.gain-eq { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 6px 12px; }
.gain-eq .term { display: grid; gap: 4px; }
.gain-eq .term b { font: 700 30px/1 ui-monospace, Menlo, monospace; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gain-eq .term i { font: 650 9.5px/1.4 ui-monospace, Menlo, monospace; letter-spacing: .1em; color: var(--muted); font-style: normal; }
.gain-eq .op { font: 400 22px/1.25 ui-monospace, Menlo, monospace; color: var(--muted); }
.gain-eq .term.video b { color: var(--ink); }
.gain-eq .term.blind b { color: var(--muted); }
.gain-eq .term.gain b { color: var(--coral); }
.gain-note { margin: 12px 0 0; font-size: 12px; line-height: 1.55; color: var(--muted); }
.gain-note b { color: var(--ink); }

.blind-demo { grid-column: 1 / -1; margin: 0; }
.why-tag.alt { color: var(--muted); }
.demo-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px 26px; align-items: start; }
.prompt {
  margin: 0; padding: 13px 15px; border-radius: 10px; background: var(--tint);
  border-left: 3px solid var(--line);
  font: 500 11.5px/1.75 ui-monospace, Menlo, monospace; color: var(--ink);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.prompt b { font-weight: 700; }
.prompt .dim { color: var(--muted); }
.demo-side p { margin: 0 0 9px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.demo-side b { color: var(--ink); }
.why-case { grid-column: 1 / -1; border-left: 3px solid var(--coral); padding: 2px 0 2px 15px; }
.why-tag { display: block; margin-bottom: 10px; font: 800 9px/1.6 ui-monospace, Menlo, monospace; letter-spacing: .14em; color: var(--coral); }
.case-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px 26px; align-items: start; }
.case-text p { margin: 0 0 9px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.case-text p:last-child { margin-bottom: 0; }
.case-text b { color: var(--ink); }
.case-text em { font-style: italic; }
.cbar { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; align-items: center; margin-bottom: 10px; }
.cbar-lab { grid-column: 1 / -1; font: 650 9.5px/1 ui-monospace, Menlo, monospace; letter-spacing: .1em; color: var(--muted); }
.cbar-track { position: relative; height: 10px; border-radius: 5px; background: var(--tint); overflow: hidden; }
/* the chance line, so a bar is read against 25% and not against zero */
.cbar-track::after { content: ""; position: absolute; left: 25%; top: -2px; bottom: -2px; width: 1px; background: var(--muted); opacity: .55; }
.cbar-track i { display: block; height: 100%; border-radius: 5px; background: var(--muted); }
.cbar-track i.bad { background: var(--coral); }
.cbar b { font: 700 12px/1 ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; min-width: 30px; text-align: right; }
.cbar-foot { margin: 0; font: 650 9.5px/1.4 ui-monospace, Menlo, monospace; color: var(--muted); }
@media (max-width: 860px) { .why { grid-template-columns: 1fr; gap: 20px; } .case-grid, .demo-grid { grid-template-columns: 1fr; } }

/* ---- spatial roster + asked examples ---- */
.spatial-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 0 !important; }
.spatial-row em { font: 800 8.5px/1.6 ui-monospace, Menlo, monospace; letter-spacing: .13em; color: var(--tone); font-style: normal; }
.spatial-row b { padding: 3px 8px; border: 1px solid var(--tone); border-radius: 999px; font: 700 10px/1.4 ui-monospace, Menlo, monospace; color: var(--ink); }
.sub-card.is-spatial { border-color: color-mix(in srgb, var(--tone) 45%, var(--line)); }
.sub-head h4 { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.sp-tag { font: 800 8px/1.5 ui-monospace, Menlo, monospace; letter-spacing: .12em; font-style: normal; color: var(--tone); border: 1px solid var(--tone); border-radius: 4px; padding: 1px 4px; }
.sub-example {
  display: block; width: 100%; text-align: left; margin: 0 0 10px;
  border: 1px solid var(--line); border-left: 3px solid var(--tone); border-radius: 8px;
  background: var(--tint); padding: 9px 10px; font-size: 12px; line-height: 1.5; color: var(--ink);
}
.sub-example:hover { background: var(--blue-bg); }
.sub-example span { display: block; margin-bottom: 4px; font: 800 8.5px/1.4 ui-monospace, Menlo, monospace; letter-spacing: .13em; color: var(--muted); }
.sub-example i { display: block; margin-top: 5px; font: 650 10.5px/1.4 ui-monospace, Menlo, monospace; font-style: normal; color: var(--muted); }
table.matrix td.num.part b::after { content: "…"; color: var(--muted); font-weight: 500; }
