
:root {  /* the magazine's cool white (DESIGN.md), the daily's red as its one accent: Nate, 2026-10-27 */
  color-scheme: light dark;
  --paper: #F7F8FA; --raised: #FFFFFF; --overlay: #FFFFFF; --seg-on: #FFFFFF;
  --ink: #14151C; --ink-2: #4A4D5C;
  --rule: rgba(20, 21, 28, 0.10); --rule-2: rgba(20, 21, 28, 0.16);
  --dem: #2F5BA8; --rep: #B5372B;  /* election balance bars only (story-visuals, Nate Nov 4) */
  --accent: #A8321F; --light: 168, 50, 31; --ink-rgb: 20, 21, 28; --glint: rgba(255, 255, 255, 0.9); --card-paper: #FFFFFF;
  --scrim: rgba(15, 16, 22, 0.30); --grain: 0.04; --grain-blend: multiply;
  --shadow: 0 1px 2px rgba(15, 16, 22, 0.06), 0 12px 40px rgba(15, 16, 22, 0.12);
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1); --sheet: cubic-bezier(0.32, 0.72, 0, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0F1016; --raised: #171821; --overlay: #1E1F2A; --seg-on: #2A2B38;
  --ink: #E8E9F0; --ink-2: #A3A6B6;
  --rule: rgba(232, 233, 240, 0.08); --rule-2: rgba(232, 233, 240, 0.14);
  --dem: #6F96DB; --rep: #E2766A;
  --accent: #F2876E; --light: 242, 135, 110; --ink-rgb: 232, 233, 240; --glint: rgba(255, 255, 255, 0.1); --card-paper: #1C1D28;
  --scrim: rgba(0, 0, 0, 0.5); --grain: 0.05; --grain-blend: screen;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 16px 48px rgba(0, 0, 0, 0.5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0F1016; --raised: #171821; --overlay: #1E1F2A; --seg-on: #2A2B38;
    --ink: #E8E9F0; --ink-2: #A3A6B6;
    --rule: rgba(232, 233, 240, 0.08); --rule-2: rgba(232, 233, 240, 0.14);
    --dem: #6F96DB; --rep: #E2766A;
  --accent: #F2876E; --light: 242, 135, 110; --ink-rgb: 232, 233, 240; --glint: rgba(255, 255, 255, 0.1); --card-paper: #1C1D28;
    --scrim: rgba(0, 0, 0, 0.5); --grain: 0.05; --grain-blend: screen;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 16px 48px rgba(0, 0, 0, 0.5);
  }
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
/* iPhone's text autosizing enlarged and re-rendered story text for a moment while the feed glided between stories ("half
   the letters disappear", then "their font changes and they get bigger", Nate, Nov 2). Our sizes are already set for phones. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-variant-numeric: tabular-nums; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow: hidden; }
/* paper: a whisper of grain so the page reads as stock, not screen */
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 40; opacity: var(--grain); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
::selection { background: rgba(var(--light), 0.22); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:active { transform: scale(0.97); }
a { color: inherit; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- shell ---------- */
.app { height: 100dvh; display: grid; grid-template-rows: auto auto 1fr auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: max(12px, env(safe-area-inset-top)) 16px 12px; border-bottom: 1px solid var(--rule); }
.mark { font: 600 20px/1 var(--serif); letter-spacing: -0.01em; white-space: nowrap; }
.mark small { display: block; font: 500 12px/1 var(--sans); letter-spacing: 0.02em; color: var(--ink-2); }
/* long dates ("Wednesday, September 30") overflowed a 375px phone by a few pixels: tighten the header there, and never push the page wider */
.top { min-width: 0; } .mark { flex: 1 1 auto; min-width: 0; } .top-tools { flex: none; }
.dateline { max-width: 100%; min-width: 0; } #dateline { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 400px) { .top { gap: 8px; } .seg-toggle button { padding: 0 12px; } }
.dateline { display: flex; align-items: center; gap: 2px; min-height: 24px; margin: 2px 0 -4px -6px; padding: 0 6px; border-radius: 8px; color: var(--ink-2); cursor: default; }
.dateline:not([disabled]) { cursor: pointer; }
.dateline:not([disabled]):hover small, .dateline:not([disabled]):hover svg { color: var(--ink); }
.dateline svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dateline[disabled] svg { display: none; }
.epi-list { display: grid; }
.epi { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 14px 4px; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.epi:last-child { border-bottom: 0; }
.epi-date { grid-column: 1; font: 600 12px/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.epi b { grid-column: 1; font: 600 18px/1.3 var(--serif); }
.epi-sub { grid-column: 1; font: 400 14px/1.4 var(--sans); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.epi-now { grid-column: 2; grid-row: 1 / span 3; font: 600 12px/1 var(--sans); color: var(--accent); }
.epi:hover b { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.epi[aria-current="true"] { background: linear-gradient(to right, var(--rule), transparent 70%); border-radius: 12px; padding-left: 12px; padding-right: 12px; }
.top { position: relative; z-index: 50; }  /* the appearance menu opens over the story below */
.top-tools { display: flex; align-items: center; gap: 4px; }
.appear { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; color: var(--ink-2); transition: color 150ms var(--ease), background-color 150ms var(--ease); }
.appear:hover, .appear[aria-expanded="true"] { color: var(--ink); background: var(--rule); }
.appear svg, .appear-opt svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.appear-menu { position: absolute; right: 16px; top: calc(100% + 6px); z-index: 40; width: min(300px, calc(100vw - 32px)); padding: 6px;
  border-radius: 18px; background: var(--raised); border: 1px solid var(--rule-2); box-shadow: var(--shadow); animation: appear-in 160ms var(--ease); }
.appear-menu[hidden] { display: none; }
@keyframes appear-in { from { transform: translateY(-4px) scale(0.98); } }  /* no fade: the menu is never see-through, even mid-animation */
@media (prefers-reduced-motion: reduce) { .appear-menu { animation: none; } }
.appear-h { padding: 8px 12px 6px; font: 500 12px/1 var(--sans); color: var(--ink-2); }
.appear-opt { display: grid; grid-template-columns: 24px minmax(0, 1fr) 20px; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px; border-radius: 12px; text-align: left; color: var(--ink); }
.appear-opt:hover, .appear-opt:focus-visible { background: var(--rule); }
.appear-opt b { display: block; font: 600 15px/1.25 var(--sans); }
.appear-hint { display: block; font: 400 13px/1.3 var(--sans); color: var(--ink-2); }
.appear-check { width: 20px; height: 20px; }
.appear-opt[aria-checked="true"] .appear-check svg { stroke: var(--ink); stroke-width: 2; }
.seg-toggle { display: flex; padding: 4px; border-radius: 999px; background: var(--rule); }
.seg-toggle button { height: 32px; padding: 0 16px; border-radius: 999px; font: 500 14px/1 var(--sans); color: var(--ink-2); transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.seg-toggle button[aria-pressed="true"] { background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }
.layout { min-height: 0; display: grid; grid-template-columns: 1fr; }
.rail, .side { display: none; }

/* ---------- story cards ---------- */
.feed { min-height: 0; overflow-y: auto; overflow-x: hidden; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; padding: 24px 16px 16px; gap: 8px; }
.card h2 { font: 600 24px/1.15 var(--serif); letter-spacing: -0.02em; text-wrap: balance; }

/* overflow-x hidden: "overflow-y: auto" alone lets the column scroll sideways too, and on iPhone a diagonal swipe slid the
   transcript off the left edge (Nate's screenshot, Nov 2) */
.lyrics { position: relative; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-x: none; scrollbar-width: none; padding: 32px 0 0;
  mask-image: linear-gradient(to bottom, transparent 0, transparent 12px, #000 48px, #000 calc(100% - 64px), transparent 100%); }
.lyrics::-webkit-scrollbar { display: none; }
.line { overflow-wrap: break-word; display: block; font: 400 20px/1.45 var(--serif); letter-spacing: -0.01em; padding: 4px 0; text-wrap: pretty; cursor: pointer; font-variant-numeric: normal;
  color: rgba(var(--ink-rgb), 0.28); transition: color 400ms var(--ease); border-radius: 8px; }
.line.past { color: rgba(var(--ink-rgb), 0.62); }
.line.current { color: rgba(var(--ink-rgb), 0.42); }
.line.current .w.said { color: var(--ink); }
.line.current .w.now { color: var(--ink); }
/* before anything plays, the story reads at full strength (a friend's first look); dimming starts with the audio */
.fresh .line, .fresh .line.past, .fresh .line.current { color: var(--ink); }
body:not(.playing):not(.fresh):not(.read) .line { color: rgba(var(--ink-rgb), 0.5); }
body:not(.playing):not(.read) .line.current, body:not(.playing):not(.read) .line.current .w { color: var(--ink); }
.fresh .lyrics { mask-image: linear-gradient(to bottom, transparent 0, transparent 20px, #000 40px, #000 calc(100% - 64px), transparent 100%); }
.w { transition: color 140ms linear; }
.line.para { margin-top: 12px; }
.who + .line.turn { margin-top: 0; }
.lyrics > .who { margin-top: 24px; }
.lyrics > .who:first-child { margin-top: 0; }
.line:first-child { margin-top: 0; }
.who { display: block; font: 500 12px/1 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.line:active { transform: scale(0.99); }

/* receipt pill: names the source behind the sentence being spoken */
.receipt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px 8px 16px; border-radius: 16px; background: var(--raised); border: 1px solid var(--rule); text-align: left; transition: border-color 300ms var(--ease), background-color 300ms var(--ease); }
.receipt .k { display: block; font: 500 12px/1.2 var(--sans); letter-spacing: 0.02em; color: var(--ink-2); }
.receipt .v { display: block; font: 500 16px/1.3 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 62vw; }
.receipt.live .k { color: var(--accent); }
.receipt .v { transition: opacity 150ms var(--ease); }
.receipt .v.swap { opacity: 0; }
.receipt .more { display: flex; align-items: center; gap: 4px; font: 500 14px/1 var(--sans); color: var(--ink-2); white-space: nowrap; }

/* read mode: text first, still card by card */
.read .line, .read .line.past, .read .line.current { display: inline; color: var(--ink); font-size: 20px; line-height: 1.6; padding: 0; cursor: text; }
.read .line .w.now, .read .line .w.said, .read .line.current .w.now { color: inherit; }
.read .line::after { content: " "; }
.read .line.para::before { content: ""; display: block; height: 16px; }
.read .line.turn::before { height: 0; }
.read .lyrics > .who { margin-top: 24px; }
.read .lyrics > .who:first-child { margin-top: 0; }
.read .lyrics { max-width: 65ch; }
.read .line:active { transform: none; }
.read .lyrics { padding: 16px 0 24px; mask-image: linear-gradient(to bottom, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%); }
.read .player { display: none; }
.read .card { display: block; overflow-x: hidden; }
/* Read is one page, story after story, like a paper: no snapping, no card-by-card scrolling */
.read .feed { scroll-snap-type: none; }
.read .card { scroll-snap-align: none; padding-bottom: 40px; border-bottom: 1px solid var(--rule); }
.read .card:last-child { border-bottom: 0; }
.read .lyrics { mask-image: none; }
/* Listen (Nate, Nov 3, 2026: "remove the karaoke view"): the story's visuals with the voice, and one line on why it matters */
body:not(.read) .lyrics > .line, body:not(.read) .lyrics > .who { display: none; }
.dek { font: 400 19px/1.45 var(--serif); color: var(--ink-2); text-wrap: pretty; max-width: 60ch; }
.lyrics > .dek + .fig-wrap, .lyrics > .dek ~ .fig-wrap { margin-top: 16px; }
.read .dek { font-size: 22px; line-height: 1.4; color: var(--ink-2); padding-bottom: 8px; }
.read .next-wrap { display: none; }  /* one page: the next story is right below */
.article, .art-slot:empty, .art-rest:empty { display: none; }
.read .card.has-art .lyrics > .line, .read .card.has-art .lyrics > .who, .read .card.has-art .lyrics > .fig-wrap { display: none; }
.read .article { display: block; }
.article > p { font: 400 19px/1.65 var(--serif); color: var(--ink); max-width: 65ch; margin-top: 16px; text-wrap: pretty; }
.art-slot, .art-rest { display: grid; gap: 16px; margin: 24px 0 8px; }
@media (min-width: 768px) { .article > p { font-size: 20px; } }
.read .card .lyrics { overflow: visible; }
.read .card .receipt { display: none; }  /* Read lists the sources under the story instead */
.read-src { display: none; }
.read .read-src { display: grid; gap: 4px; margin: 24px 0 8px; padding-top: 16px; border-top: 1px solid var(--rule); }
.read-src-h { font: 500 13px/1.3 var(--sans); color: var(--ink-2); margin-bottom: 4px; }
.read-src a { display: grid; gap: 2px; padding: 10px 0; color: var(--ink); text-decoration: none; font: 400 16px/1.4 var(--serif); }
.read-src a span { font: 500 13px/1.3 var(--sans); color: var(--ink-2); }
.read-src a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.read .app { grid-template-rows: auto auto 1fr; }

/* ---------- sources ---------- */
.sheet-scrim { position: fixed; inset: 0; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity 300ms var(--sheet); z-index: 20; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 84dvh; overflow-y: auto; overflow-x: hidden; background: var(--overlay); border-radius: 16px 16px 0 0; box-shadow: var(--shadow); transform: translateY(104%); transition: transform 400ms var(--sheet); z-index: 21; padding: 8px 16px max(24px, env(safe-area-inset-bottom)); }
.sheet.open { transform: none; }
.sheet { overscroll-behavior: contain; }
.sheet-scrim.open { opacity: 1; pointer-events: auto; }
.sheet .src-head { position: sticky; top: -8px; z-index: 1; padding: 8px 0; margin-top: -8px; background: var(--overlay); }
.sheet .chap { margin: 0 -12px; width: calc(100% + 24px); }
.sheet .src { margin: 0 -12px; }
.grab { width: 36px; height: 4px; border-radius: 999px; background: var(--rule-2); margin: 4px auto 16px; }
.src-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.src-head h3 { font: 600 20px/1.2 var(--serif); letter-spacing: -0.01em; }
.src-head span { font: 500 14px/1 var(--sans); color: var(--ink-2); }
.src-note { font: 400 14px/1.5 var(--sans); color: var(--ink-2); margin-bottom: 8px; text-wrap: pretty; }
.src { position: relative; display: block; text-decoration: none; padding: 16px 12px; border-radius: 8px; transition: background-color 300ms var(--ease); }
.src::before { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 1px; background: var(--rule); }
.src.live .src-meta::before { position: static; height: auto; background: none; }
.src.live::before, .src.live + .src::before { opacity: 0; }
.src + .src { margin-top: 0; }
.src:hover { background: rgba(var(--ink-rgb), 0.03); }
.src.live { background: color-mix(in oklab, var(--raised), rgb(var(--light)) 6%); }
.src-line { margin: 4px 0 16px; padding: 12px 16px; border-radius: 8px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--rule); }
.src-line .k { display: block; font: 500 12px/1.2 var(--sans); color: var(--ink-2); }
.src-line p { margin-top: 4px; font: 400 16px/1.5 var(--serif); }
.hl { margin: 8px 0; font: 400 16px/1.45 var(--serif); color: rgba(var(--ink-rgb), 0.78); text-wrap: pretty; }
.src.live .hl { color: var(--ink); }
.src.live .src-meta::after { content: ""; }
.src-meta { display: flex; align-items: center; gap: 8px; font: 500 14px/1.3 var(--sans); }
.src-meta .mono { width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; background: var(--rule); font: 600 12px/1 var(--serif); }
.src-meta time { margin-left: auto; color: var(--ink-2); font-weight: 400; }
.go { display: inline-flex; align-items: center; gap: 4px; font: 500 14px/1 var(--sans); color: var(--accent); }

/* ---------- traders' odds: two markets, equal weight, one scrubbable line ---------- */
.odds-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 56px; padding: 8px 0; margin-top: 4px; text-align: left; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.odds-chip .k { display: block; font: 500 12px/1.2 var(--sans); letter-spacing: 0.02em; color: var(--ink-2); }
.odds-chip .v { display: block; margin-top: 4px; font: 400 16px/1.3 var(--sans); color: var(--ink-2); white-space: nowrap; }
.odds-chip .v b { font-weight: 500; color: var(--ink); }
.odds-chip .spark { width: 64px; height: 24px; overflow: visible; }
.odds-chip .spark path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.odds-chip .spark circle { fill: var(--ink); }
.odds-chip .spark .k { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.odds-chip .spark .p { fill: none; stroke: rgba(var(--ink-rgb), 0.55); stroke-width: 1.5; stroke-linejoin: round; }
.odds-chip .more { display: flex; align-items: center; gap: 8px; font: 500 14px/1 var(--sans); color: var(--ink-2); white-space: nowrap; }
.card-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
/* the story's visual beat: one at a time, no box (the voice card is the one surface), numbers in tabular figures */
.fig-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 8px 0 24px; }
.fig-wrap .beat { margin-top: 0; }
.fig-wrap .voice { margin-top: 0; }
.beat { margin-top: 8px; padding: 12px 0 4px; border-top: 1px solid var(--rule); transition: opacity 160ms var(--ease); }
.beat.swap { opacity: 0; }
.beat-num { display: flex; align-items: baseline; gap: 12px; }
.beat-num b { font: 600 48px/1 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.beat-num span { font: 400 16px/1.35 var(--serif); color: var(--ink-2); text-wrap: pretty; }
.beat-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.beat-cmp > div + div { border-left: 1px solid var(--rule); padding-left: 16px; }
.beat-cmp span, .beat-tl span { display: block; font: 500 12px/1.3 var(--sans); color: var(--ink-2); }
.beat-cmp p { margin-top: 4px; font: 400 16px/1.4 var(--serif); text-wrap: pretty; }
.beat-tl { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; list-style: none; padding: 0; margin: 0; }
.beat-tl li { position: relative; padding-top: 14px; }
.beat-tl li::before { content: ""; position: absolute; top: 0; left: 0; width: 8px; height: 8px; border-radius: 999px; background: var(--ink); }
.beat-tl li::after { content: ""; position: absolute; top: 3.5px; left: 12px; right: -12px; height: 1px; background: var(--rule-2); }
.beat-tl li:last-child::after { display: none; }
.beat-tl p { margin-top: 2px; font: 400 14px/1.35 var(--sans); text-wrap: pretty; }
.beat-credit { margin-top: 8px; font: 400 12px/1.3 var(--sans); color: var(--ink-2); }
.beat-credit a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; gap: 2px; }
.beat-credit a:hover { color: var(--ink); }
.beat-credit svg.i { width: 12px !important; height: 12px !important; }
/* charts from verified fact packs: ink only, tabular figures, one series in full ink and one a step back */
.ch-title { font: 500 14px/1.3 var(--sans); margin-bottom: 8px; text-wrap: pretty; }
.ch-g + .ch-g { margin-top: 8px; }
.ch-gl { display: block; font: 500 12px/1.2 var(--sans); color: var(--ink-2); margin-bottom: 4px; }
.ch-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 8px; font: 400 12px/1.2 var(--sans); }
.ch-row + .ch-row { margin-top: 4px; }
.ch-row.keyed { grid-template-columns: minmax(0, 1fr) auto; }
.ch-g.pair .ch-row + .ch-row { margin-top: 2px; }
.ch-g.pair .ch-row + .ch-row b { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.ch-key { margin: 0 0 12px; }
.sw { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: 6px; background: var(--ink); }
.sw.s1 { background: rgba(var(--ink-rgb), 0.35); }
.sw.neg { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.ch-row b { font: 600 14px/1 var(--sans); font-variant-numeric: tabular-nums; }
.ch-track { height: 8px; }
.ch-track i { display: block; height: 100%; border-radius: 2px; background: var(--ink); }
.ch-track i.s1 { background: rgba(var(--ink-rgb), 0.35); }
/* a third to fifth series gets its own tone, never a second solid bar that reads like the first */
.ch-track i.s2, .sw.s2 { background: rgba(var(--ink-rgb), 0.65); }
.ch-track i.s3, .sw.s3 { background: rgba(var(--ink-rgb), 0.18); }
.ch-track i.s4, .sw.s4 { background: transparent; box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), 0.5); }
.ch-track i.neg { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.ch-share { display: flex; height: 12px; border-radius: 2px; overflow: hidden; gap: 2px; }
.ch-share i, .dot.s0 { background: var(--ink); }
.ch-share i.s1, .dot.s1 { background: rgba(var(--ink-rgb), 0.35); }
.ch-share i.s2, .dot.s2 { background: rgba(var(--ink-rgb), 0.15); }
.ch-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font: 400 12px/1.4 var(--sans); color: var(--ink-2); }
.ch-legend b { font: 600 14px/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 2px; }
.ch-legend em { font-style: normal; margin-left: 4px; }
.ch-share + .ch-legend > div { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-share i.s3, .dot.s3 { background: transparent; box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), 0.4); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 999px; margin-right: 6px; vertical-align: 0; }
/* seats by bloc: each bloc's bar is its parties end to end, the gap to the line to govern is drawn, and the line is the
   one red mark. Words stay left of the line, so it runs clean from top to bottom. */
.ch-blocs { position: relative; padding-top: 20px; }
.ch-blocs::after { content: ""; position: absolute; left: var(--maj); top: 2px; bottom: 0; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--accent); }
.bl-line { position: absolute; top: 0; left: 0; width: var(--maj); padding-right: 8px; text-align: right; font: 600 12px/16px var(--sans); color: var(--accent); white-space: nowrap; }
.bl + .bl { margin-top: 16px; }
.bl-head { display: flex; align-items: baseline; gap: 8px; max-width: calc(var(--maj) - 8px); margin-bottom: 6px; font: 500 14px/1.2 var(--sans); }
.bl-head b { font: 600 20px/1 var(--sans); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.bl-head span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bl-head em { margin-left: auto; font: 500 12px/1 var(--sans); font-style: normal; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bl-head em.maj { color: var(--ink); }
.bl-track { position: relative; display: flex; height: 20px; }
.bl-track i { box-sizing: border-box; height: 100%; background: rgba(var(--ink-rgb), 0.9); background-clip: content-box; container-type: inline-size; overflow: hidden; }
/* a party's name sits in its own segment when the segment can hold it; the rest are named in the line below */
.bl-track i span { display: block; padding: 0 6px; font: 500 11px/20px var(--sans); color: var(--paper); white-space: nowrap; font-variant-numeric: tabular-nums; }
@container (max-width: 72px) { .bl-track i span { display: none; } }
.bl-track i + i span { display: none; }  /* only each bloc's largest party, so no small party is named while a bigger one isn't */
.bl-track i + i { padding-left: 2px; }
.ch-find { font: 600 20px/1.25 var(--serif); letter-spacing: -0.01em; text-wrap: balance; margin-bottom: 12px; }
.bl-track u { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, rgba(var(--ink-rgb), 0.22) 0 1px, transparent 1px 5px); }  /* the seats missing to govern */
.bl-parts { max-width: calc(var(--maj) - 12px); margin-top: 6px; font: 400 12px/1.45 var(--sans); color: var(--ink-2); text-wrap: pretty; }
.bl-parts span { white-space: nowrap; }
.bl-parts b { font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; }
.ch-blocs > .bl-parts { margin-top: 12px; }
/* compact figures, so a chart and the lines about it share a phone screen */
.ch-g { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; }
.ch-g .ch-gl { grid-column: 1; grid-row: 1 / span 6; align-self: start; margin: 2px 0 0; min-width: 52px; }
.ch-g .ch-row { grid-column: 2; }
@media (max-width: 767px) {
  .fig-wrap .ch-key { margin-bottom: 8px; }
}
.ch-doc { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; margin: 0; }
.ch-doc dt { font: 400 12px/1.3 var(--sans); color: var(--ink-2); }
.ch-doc dd { margin: 2px 0 0; font: 600 24px/1.1 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
/* an official series over time: the latest value is the hero, and a finger or cursor across the line reads any point */
.ln-hero { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 2px 0 12px; font: 400 12px/1.3 var(--sans); color: var(--ink-2); }
.ln-hero b { font: 600 28px/1 var(--sans); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ln-hero span { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.ln-plot { position: relative; height: 112px; margin-right: 6px; touch-action: pan-y; cursor: crosshair; }
.ln-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ln-path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ln-area { fill: rgba(var(--ink-rgb), 0.06); }
.ln-zero { stroke: rgba(var(--ink-rgb), 0.28); stroke-width: 1; stroke-dasharray: 2 4; }
.ln-z { position: absolute; right: 0; transform: translateY(-120%); font: 400 11px/1 var(--sans); color: var(--ink-2); }
.ln-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--light), 0.18); transition: left 80ms var(--ease), top 80ms var(--ease); pointer-events: none; }
.ln-hair { position: absolute; top: -4px; bottom: -4px; width: 1px; margin-left: -0.5px; background: rgba(var(--ink-rgb), 0.22); opacity: 0; transition: opacity 120ms var(--ease); pointer-events: none; }
.ln-plot.reading .ln-hair { opacity: 1; }
.ln-axis { display: flex; justify-content: space-between; margin-top: 8px; font: 400 11px/1 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .ln-dot, .ln-hair { transition: none; } }
/* a place and its path: water a whisper of ink, land a little more, the track in ink, and the one red mark is the drop
   itself, the same seconds on the map and on the altitude line. Labels are HTML over the map, so they stay sharp. */
.pl { max-width: 640px; }  /* on a wide screen the map and its altitude line stay one glance, not a poster */
.pl-map { position: relative; margin: 4px 0 12px; box-shadow: 0 0 0 1px var(--rule); }
.pl-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pl-water { fill: rgba(var(--ink-rgb), 0.035); }
.pl-land { fill: rgba(var(--ink-rgb), 0.08); }
.pl-coast { fill: none; stroke: rgba(var(--ink-rgb), 0.22); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.pl-lake { fill: var(--paper); stroke: rgba(var(--ink-rgb), 0.22); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pl-lake.pl-water { fill: rgba(var(--ink-rgb), 0.035); stroke: none; }
.pl-border { fill: none; stroke: rgba(var(--ink-rgb), 0.2); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.pl-track { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pl-fall { fill: none; stroke: var(--accent); stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pl-lab { position: absolute; transform: translate(-50%, -50%); font: 400 11px/1.2 var(--sans); color: var(--ink-2); white-space: nowrap; pointer-events: none; }
.pl-lab.water { font-style: italic; }
.pl-lab.hug-e { transform: translate(calc(-100% + 6px), -50%); }
.pl-lab.hug-w { transform: translate(-6px, -50%); }
.pl-lab.town.hug-e::before { left: calc(100% - 6px); }
.pl-lab.town.hug-w::before { left: 6px; }
.pl-lab.town::before { content: ""; position: absolute; left: 50%; top: calc(100% + 3px); width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ink-2); }
.pl-lab.from { transform: translate(0, -150%); color: var(--ink); font-weight: 500; }
.pl-lab.site { color: var(--ink); font: 600 12px/1.2 var(--sans); }
.pl-lab.site.right { transform: translate(14px, -50%); }
.pl-lab.site.left { transform: translate(calc(-100% - 14px), -50%); text-align: right; }
.pl-lab.site.below { transform: translate(-50%, 14px); text-align: center; }
.pl-lab.site.above { transform: translate(-50%, calc(-100% - 14px)); text-align: center; }
.pl-lab.site.east { transform: translate(calc(-100% + 8px), 14px); text-align: right; }
.pl-lab.site.above.east { transform: translate(calc(-100% + 8px), calc(-100% - 14px)); }
.pl-lab.site.west { transform: translate(-8px, 14px); text-align: left; }
.pl-lab.site.above.west { transform: translate(-8px, calc(-100% - 14px)); }
.pl-lab.site small { display: block; font: 400 11px/1.2 var(--sans); color: var(--ink-2); }
.pl-end, .pl-now, .pl-dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; pointer-events: none; }
.pl-end { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--accent); box-shadow: 0 0 0 2px var(--paper); }
.pl-now, .pl-dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); transition: left 80ms var(--ease), top 80ms var(--ease); }
.pl-plot { position: relative; height: 120px; margin-top: 24px; border-bottom: 1px solid rgba(var(--ink-rgb), 0.45); touch-action: pan-y; cursor: crosshair; }
@media (min-width: 768px) { .pl-plot { height: 180px; } }
.pl-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pl-plot .ln-area { display: none; }  /* no fill: the ground is the labeled line under the plot, not a shaded guess */
.pl-plot::after { content: "0 ft"; position: absolute; left: 0; bottom: 4px; font: 400 12px/1 var(--sans); color: var(--ink-2); }
.pl-fallp { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.pl-plot.reading .ln-hair { opacity: 1; }
.pl-top, .pl-low { position: absolute; font: 400 12px/1 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; transition: opacity 120ms var(--ease); }
.pl-top { transform: translate(-100%, -150%); }
.pl-top.first { transform: translate(0, -150%); }
.pl-low { transform: translate(calc(-100% - 10px), -50%); }
.pl-plot.reading .pl-top, .pl-plot.reading .pl-low { opacity: 0; }
.pl-axis { position: relative; display: flex; justify-content: space-between; margin-top: 8px; padding-top: 10px; font: 400 12px/1 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pl-axis b { position: absolute; top: 0; height: 5px; border: 1px solid rgba(var(--ink-rgb), 0.5); border-top: 0; }
@media (prefers-reduced-motion: reduce) { .pl-now, .pl-dot, .pl-top, .pl-low { transition: none; } }
/* visuals pop (Nate, Nov 2: "give it a bit more of a pop out"): a visual is an object, not more transcript. It sits on
   its own raised card, the voice card's material family; in dark mode the card steps up a full surface. A lone big
   number is the accent. When the host reaches its line the card lifts once and its bars grow in (off under Reduce
   Motion). One hero per story still holds: a story shows one visual card. */
:root { --fig-bg: #FFFFFF; --fig-shadow: inset 0 0 0 1px rgba(20, 21, 28, 0.09); --fig-live: inset 0 0 0 1px rgba(20, 21, 28, 0.2); }
:root[data-theme="dark"] { --fig-bg: #1B1C21; --fig-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.08); --fig-live: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --fig-bg: #1B1C21; --fig-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.08); --fig-live: inset 0 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.16); } }
/* a card is a surface and a hairline, never a drop shadow (house rule); while its line is spoken its hairline steps up */
.fig-wrap .beat.fig:has(> .beat-num) { max-width: 560px; }  /* two words don't need the whole column */
.fig-wrap .beat.fig { transition: box-shadow 400ms cubic-bezier(0.23, 1, 0.32, 1); }
.fig-wrap .beat.fig.live { box-shadow: var(--fig-live); }
/* (the transcript column clips its sides, so the card stays inside it: an inset hairline, a shadow that falls straight down) */
.fig-wrap { margin: 12px 0 28px; }
.fig-wrap .beat.fig { position: relative; padding: 20px 16px 16px; border-top: 0; border-radius: 16px; background: var(--fig-bg); box-shadow: var(--fig-shadow); }
@media (min-width: 768px) { .fig-wrap .beat.fig { padding: 24px 24px 18px; } }
.fig-wrap .beat.fig .pl-map { border-radius: 8px; box-shadow: none; overflow: hidden; }
.fig-wrap .beat.fig .beat-credit { margin-top: 12px; }
.fig-wrap .beat-num { display: block; }
.fig-wrap .beat-num b { display: block; font-size: 64px; letter-spacing: -0.02em; color: var(--accent); }
.fig-wrap .beat-num span { display: block; margin-top: 8px; font-size: 17px; }
@media (prefers-reduced-motion: no-preference) {
  .beat.fig.spoken { animation: fig-lift 380ms cubic-bezier(0.23, 1, 0.32, 1) both; }
  .beat.fig.spoken .ch-track i, .beat.fig.spoken .bl-track i, .beat.fig.spoken .ch-share i { transform-origin: left center; animation: fig-grow 600ms cubic-bezier(0.23, 1, 0.32, 1) 80ms both; }
  .beat.fig.spoken .beat-num b { animation: fig-rise 380ms cubic-bezier(0.23, 1, 0.32, 1) both; }
}
@media (prefers-reduced-motion: reduce) { .beat.fig.spoken { animation: fig-fade 200ms linear both; } }
@keyframes fig-fade { from { opacity: 0.6; } }
@keyframes fig-lift { 0% { transform: translateY(4px); } 100% { transform: none; } }
@keyframes fig-grow { from { transform: scaleX(0); } }
@keyframes fig-rise { from { transform: translateY(10px); opacity: 0; } }
/* a game (sports.py): the scoreboard as ESPN reports it, the winner's score marked by the one red caret. Logos sit on a
   quiet disc so a dark crest still reads on the dark theme; they are embedded, so the page never calls ESPN. */
.sb { max-width: 560px; }
.sb-status { margin: 0 0 8px; font: 500 12px/1.3 var(--sans); color: var(--ink-2); letter-spacing: 0.02em; }
.sb-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; padding: 10px 0; }
.sb-row + .sb-row { border-top: 1px solid var(--rule); }
.sb-logo { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: inset 0 0 0 1px rgba(20, 21, 28, 0.1); overflow: hidden; }
.sb-logo img { width: 38px; height: 38px; object-fit: contain; }  /* the same disc in both themes, so a dark crest and a wordmark read the same */
.sb-logo b { font: 700 12px/1 var(--sans); color: var(--ink-2); }
.sb-name { min-width: 0; }
.sb-name b { display: block; font: 500 16px/1.25 var(--sans); color: var(--ink-2); text-wrap: balance; }
.sb-row.won .sb-name b { font-weight: 600; color: var(--ink); }
.sb-name span { font: 400 12px/1.3 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sb-score { position: relative; font: 600 40px/1 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.sb-row.won .sb-score { color: var(--ink); }
.sb-row.won .sb-score::before { content: ""; position: absolute; left: -14px; top: 50%; margin-top: -5px; border: 5px solid transparent; border-right: 0; border-left: 6px solid var(--accent); }
.sb-line { width: 100%; margin-top: 12px; border-collapse: collapse; table-layout: fixed; font: 400 13px/1 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.sb-line th { font-weight: 500; font-size: 12px; padding: 0 0 6px; text-align: right; }
.sb-line td { padding: 7px 0; text-align: right; border-top: 1px solid var(--rule); }
.sb-line th:first-child, .sb-line td:first-child { text-align: left; width: auto; }
.sb-line col.p { width: 40px; }
.sb-line col.t { width: 52px; }
.sb-line td.t, .sb-line th.t { font-weight: 600; color: var(--ink); box-shadow: inset 1px 0 0 var(--rule); padding-left: 12px; }
.sb-line col.t { width: 60px; }
.sb-more summary { cursor: pointer; list-style: none; min-height: 32px; display: inline-flex; align-items: center; margin-top: 10px; font: 500 12px/1.3 var(--sans); color: var(--ink); }
.sb-more summary::-webkit-details-marker { display: none; }
.sb-more summary::after { content: "+"; margin-left: 6px; color: var(--ink-2); }
.sb-more[open] summary::after { content: "\2212"; }
.sb-line tr.won td.t { color: var(--ink); }
.sb-line tr:not(.won) td.t { color: var(--ink-2); }
.sb-lh { margin: 18px 0 6px; font: 500 12px/1.3 var(--sans); color: var(--ink-2); }
.sb-leaders { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0; font: 400 13px/1.35 var(--sans); }
.sb-leaders > div { display: grid; grid-template-columns: 80px minmax(0, 1fr); column-gap: 12px; }
@media (min-width: 768px) { .sb-leaders { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .sb-leaders > div { grid-template-columns: minmax(0, 1fr); } }
.sb-leaders dt { color: var(--ink-2); }
.sb-leaders dd { margin: 0; min-width: 0; }
.sb-leaders dd span { display: block; color: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
/* a fall, told from the transponder's own numbers (geo.py dive): the side view at true scale says how steep and how fast
   (a dot every 10 seconds, so the growing gaps are the speed), the rate strip says how fast against the jet's own earlier
   descent, the map says where it turned. Red marks only the steep end, the same seconds in every view; readings the
   transponder stopped vouching for are dashed and carry no figure. One finger moves the same moment through all three. */
.dv { max-width: 720px; }
.dv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 14px; }
.dv-stats div { min-width: 0; }
.dv-stats dt { font: 400 12px/1.3 var(--sans); color: var(--ink-2); }
.dv-stats dd { margin: 2px 0 0; font: 600 24px/1.05 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dv-stats dd small { font: 500 12px/1 var(--sans); letter-spacing: 0; color: var(--ink-2); }
.dv-read { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; min-height: 20px; font: 400 12px/1.3 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dv-read b { font: 600 15px/1 var(--sans); color: var(--ink); }
.dv-fig { margin: 20px 0 0; }
.dv-fig figcaption { font: 500 12px/1.3 var(--sans); color: var(--ink-2); margin-bottom: 8px; }
.dv-fig .pl-map { margin: 0; }
.dv-side, .dv-plot { position: relative; cursor: crosshair; touch-action: pan-y; }
.dv-side { width: min(100%, calc(560px * var(--ar))); margin-bottom: 40px; box-shadow: inset 0 -1px 0 rgba(var(--ink-rgb), 0.45); }  /* a tall true-scale view stays a glance on a wide screen */
.dv-plot { height: 76px; margin-top: 10px; border-bottom: 1px solid rgba(var(--ink-rgb), 0.45); }
@media (min-width: 768px) { .dv-plot { height: 92px; } }
.dv-plot svg, .dv-side svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dv-ref { fill: none; stroke: rgba(var(--ink-rgb), 0.5); stroke-width: 1.25; stroke-dasharray: 3 3; }
.dv-grid { stroke: rgba(var(--ink-rgb), 0.08); stroke-width: 1; }
.dv-calm { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.dv-hot { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.dv-unsure { fill: none; stroke: rgba(var(--ink-rgb), 0.32); stroke-width: 1.5; stroke-dasharray: 2 5; stroke-linecap: round; }
.dv-area { fill: rgba(var(--ink-rgb), 0.06); }
.dv-lab { position: absolute; font: 400 12px/1.25 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; transition: opacity 120ms var(--ease); }
.dv-lab b { font-weight: 600; color: var(--ink); }
.dv-lab.hot, .dv-lab.hot b { color: var(--accent); }
.dv-plot.reading .dv-lab.fade, .dv-side.reading .dv-lab.fade { opacity: 0; }
.dv-tl { transform: translate(calc(-100% + 2px), 45%); font-size: 11px; text-align: right; }
.dv-lab { text-shadow: 0 0 3px var(--paper), 0 0 3px var(--paper); }
.dv-tl.east { transform: translate(-4px, 55%); text-align: left; }  /* near the left edge the label sits under the path, to the right */
.dv-endmark { transform: translate(calc(-100% - 10px), 6px); text-align: right; }
.dv-top { transform: translate(-4px, -160%); }
.dv-endlab { right: 0; top: calc(100% + 8px); text-align: right; }
.dv-endlab small { display: block; font-size: 11px; color: var(--ink-2); }
.dv-scale { position: absolute; left: 0; top: calc(100% + 8px); font: 400 11px/1 var(--sans); color: var(--ink-2); }
.dv-scale i { display: block; height: 4px; margin-bottom: 4px; border: 1px solid rgba(var(--ink-rgb), 0.5); border-top: 0; }
.dv-arc { fill: none; stroke: var(--accent); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.dv-level { stroke: rgba(var(--ink-rgb), 0.45); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.dv-tick { position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 1.5px var(--ink); pointer-events: none; }
.dv-tick.hot { box-shadow: 0 0 0 1.5px var(--accent); }
.dv-tick.unsure { box-shadow: 0 0 0 1.25px rgba(var(--ink-rgb), 0.55); }
.dv .pl-dot, .dv .pl-now { z-index: 2; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; background: var(--ink); box-shadow: 0 0 0 2px var(--paper); }  /* the reading point: solid ink, never mistaken for a 10-second dot */
.dv-plot .ln-hair { top: -6px; bottom: 0; }
.dv-plot.reading .ln-hair { opacity: 1; }
.dv-sub { margin-top: 34px; font: 500 12px/1.3 var(--sans); color: var(--ink-2); }
.dv-sub b { font-weight: 600; color: var(--ink); }
.dv-sub span { display: block; font-weight: 400; }
.dv-read b:empty { display: none; }
.dv-key { margin: -6px 0 12px; font: 400 11px/1.35 var(--sans); color: var(--ink-2); }
.dv-gl { position: absolute; left: 0; font: 400 11px/1 var(--sans); color: var(--ink-2); transform: translateY(-130%); }
.dv .pl-map, .dv .pl-map svg { overflow: hidden; }  /* a road's last segment reaches past the frame */
.pl-road { fill: none; stroke: rgba(var(--ink-rgb), 0.16); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.pl-lab.road { font: 500 10px/1 var(--sans); color: var(--ink-2); padding: 2px 4px; border-radius: 4px; background: var(--paper); box-shadow: 0 0 0 1px var(--rule-2); }
.pl-lab.airport { transform: translate(8px, -50%); font-size: 10px; }
.pl-lab.airport::before { content: ""; position: absolute; left: -8px; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; background: var(--ink-2); transform: rotate(45deg); }
.pl-lab.dv-at { color: var(--ink); font: 500 11px/1.2 var(--sans); }
.pl-lab.dv-at small { display: block; font: 400 11px/1.2 var(--sans); color: var(--ink-2); }
.pl-lab.dv-turn { color: var(--accent); font: 500 11px/1.25 var(--sans); white-space: normal; width: 8.5em; }
.pl-lab.site.right.dv-endmap { transform: translate(16px, -10%); }
.pl-lab.site.left.dv-endmap { transform: translate(calc(-100% - 16px), -10%); }
.dv-loc { position: absolute; top: 8px; width: 21%; min-width: 64px; max-width: 104px; aspect-ratio: 1; background: var(--paper); box-shadow: 0 0 0 1px var(--rule-2), 0 1px 3px rgba(0, 0, 0, 0.08); }
.dv-loc svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.dv-loc .pl-border { stroke-dasharray: 2 2; }
.dv-loc .pl-track { stroke-width: 1.25; }
.dv-frame { fill: none; stroke: var(--accent); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.dv-note { margin-top: 16px; font: 400 12px/1.45 var(--sans); color: var(--ink-2); text-wrap: pretty; }
.dv-note b { font-weight: 500; color: var(--ink); }
.dv-how { margin-top: 6px; font: 400 12px/1.45 var(--sans); color: var(--ink-2); }
.dv-how summary { cursor: pointer; color: var(--ink); font-weight: 500; list-style: none; min-height: 32px; display: inline-flex; align-items: center; }
.dv-how summary::-webkit-details-marker { display: none; }
.dv-how summary::after { content: "+"; margin-left: 6px; color: var(--ink-2); }
.dv-how[open] summary::after { content: "−"; }
.dv-how p + p { margin-top: 6px; }
.lc .pl-map { margin-top: 4px; overflow: hidden; }
.lc .pl-land { fill: rgba(var(--ink-rgb), 0.05); }
.lc-home { fill: rgba(var(--ink-rgb), 0.1); stroke: rgba(var(--ink-rgb), 0.3); stroke-width: 1; vector-effect: non-scaling-stroke; }  /* the country a step darker than its neighbors, in both themes */
.lc-area { fill: rgba(var(--light), 0.16); stroke: var(--accent); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.lc-ref { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--ink); }
.pl-lab.lc-ref-lab.right { transform: translate(8px, -50%); }
.pl-lab.lc-ref-lab.left { transform: translate(calc(-100% - 8px), -50%); }
.pl-lab.lc-ref-lab::before { display: none; }
.pl-lab.lc-area-lab { transform: translate(-50%, -50%); font: 600 13px/1.2 var(--sans); }
.dv-secs { position: relative; height: 14px; margin-top: 6px; font: 400 11px/1 var(--sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dv-secs span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.dv-secs span:last-child { transform: translateX(-100%); }
.dv-axnote { margin-top: 4px; font: 400 11px/1.3 var(--sans); color: var(--ink-2); }
.dv-mscale { position: absolute; left: 8px; bottom: 8px; font: 400 10px/1 var(--sans); color: var(--ink-2); }
.dv-mscale i { display: block; height: 4px; margin-bottom: 3px; border: 1px solid rgba(var(--ink-rgb), 0.5); border-top: 0; }
.qk-epi { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px rgba(var(--light), 0.5); }
.qk-after { position: absolute; width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1); border-radius: 50%; box-shadow: inset 0 0 0 1.25px rgba(var(--ink-rgb), 0.6); pointer-events: none; }
.qk .pl-map { margin-top: 4px; }
/* in their own words: the real voice, on paper. The grain is the house material for My Happenings (house.md). */
.voice { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 4px; padding: 12px; border-radius: 16px;
  background: radial-gradient(120% 140% at 0% 0%, var(--glint), transparent 50%), var(--card-paper); box-shadow: inset 0 0 0 1px var(--rule), 0 1px 2px rgba(0, 0, 0, 0.06); overflow: hidden; isolation: isolate; }
.voice::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.voice-play { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule-2); transition: transform 120ms var(--ease), box-shadow 150ms var(--ease); }
.voice-play:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.no-episode .player, .no-episode .top-tools { display: none; }
.empty { max-width: 32ch; margin: 30vh auto 0; padding: 0 16px; text-align: center; }
.empty h2 { font: 600 28px/1.2 var(--serif); margin: 0 0 12px; }
.empty p { color: var(--ink-2); margin: 0 0 24px; }
.card-img { display: block; width: 100%; max-width: 360px; margin: 8px auto 12px; border-radius: 12px; box-shadow: var(--shadow); }
.watch { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin: 12px 0; border-radius: 14px; background: var(--ink); color: var(--paper); font: 600 15px/1 var(--sans); text-decoration: none; }
.watch svg { width: 20px; height: 20px; }
.past { display: flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px; padding: 0 4px; color: var(--ink-2); font: 500 15px/1 var(--sans); text-decoration: none; }
.past:hover { color: var(--ink); }
.empty-go { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 15px/1 var(--sans); text-decoration: none; }
.play.buffering::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 2px solid transparent; border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .play.buffering::after { animation-duration: 2.4s; } }
.audio-error { position: fixed; left: 50%; bottom: 112px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(400px, calc(100% - 32px));
  padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--raised); border: 1px solid var(--rule-2); box-shadow: var(--shadow); font: 500 14px/1.3 var(--sans); }
.audio-error button { flex: none; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 14px/1 var(--sans); }
.voice-play:active { transform: scale(0.96); }
.voice-play svg.i { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.voice-who b { display: block; font: 600 20px/1.15 var(--serif); letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voice-who span { display: block; margin-top: 2px; font: 500 12px/1.3 var(--sans); color: var(--ink-2); text-wrap: pretty; }
.wave { display: flex; align-items: center; gap: 2px; height: 24px; margin-top: 8px; overflow: hidden; }
.wave i { flex: none; width: 2px; border-radius: 1px; background: rgba(var(--ink-rgb), 0.25); }
.wave i.on { background: var(--ink); }
.voice.speaking { box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), 0.28); }
.voice-video { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; color: var(--ink-2); }
.voice-video:hover { color: var(--ink); }
.clip { padding: 0 0 8px; }
.clip h3 { font: 600 20px/1.2 var(--serif); letter-spacing: -0.01em; margin-bottom: 4px; }
.clip .who2 { font: 500 14px/1.3 var(--sans); color: var(--ink-2); margin-bottom: 16px; }
.clip .frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.clip iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.clip q { display: block; margin-top: 16px; font: 400 20px/1.45 var(--serif); quotes: "\201C" "\201D"; text-wrap: pretty; }
.clip .credit { margin-top: 12px; font: 400 12px/1.5 var(--sans); color: var(--ink-2); }
.clip .credit a { color: var(--ink); }
.odds { padding: 0 12px 24px; margin-bottom: 24px; border-bottom: 1px solid var(--rule); }
.sheet .odds { padding: 0 0 24px; }
.odds-label { font: 500 14px/1.3 var(--sans); color: var(--ink-2); margin-bottom: 8px; }
.odds.scrubbing .asof { color: var(--ink); }
.odds-q { font: 600 20px/1.25 var(--serif); letter-spacing: -0.01em; margin-bottom: 16px; text-wrap: balance; font-variant-numeric: normal; }
.odds-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.odds-n .lbl { display: flex; align-items: center; gap: 8px; font: 500 14px/1 var(--sans); color: var(--ink-2); }
.odds-n .lbl i { width: 16px; height: 2px; border-radius: 2px; background: var(--ink); }
.odds-n.poly .lbl i { background: rgba(var(--ink-rgb), 0.55); }
.odds-n .big { display: block; margin-top: 8px; font: 600 48px/1 var(--serif); letter-spacing: -0.025em; font-variant-numeric: tabular-nums lining-nums; }
.odds-n .big small { font-size: 24px; letter-spacing: 0; margin-left: 2px; }
.odds-unit { margin-top: 8px; font: 400 14px/1.4 var(--sans); color: var(--ink-2); }
.odds-chart { position: relative; margin: 16px 0 0; touch-action: pan-y; cursor: crosshair; }
.odds-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.odds-chart .grid { stroke: var(--rule); stroke-width: 1; }
.odds-chart .k { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.odds-chart .p { fill: none; stroke: rgba(var(--ink-rgb), 0.55); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.odds-chart .band { fill: rgba(var(--ink-rgb), 0.08); }
.odds-chart .yl { font: 500 12px/1 var(--sans); fill: var(--ink-2); }
.odds-chart .cursor { stroke: var(--ink); stroke-width: 1; opacity: 0; transition: opacity 120ms var(--ease); }
.odds-chart .dot { opacity: 0; transition: opacity 120ms var(--ease); }
.odds-chart .dot.k { fill: var(--ink); stroke: var(--overlay); stroke-width: 2; }
.odds-chart .dot.p { fill: color-mix(in oklab, var(--ink) 55%, var(--overlay)); stroke: var(--overlay); stroke-width: 2; }
.odds.scrubbing .cursor, .odds.scrubbing .dot { opacity: 1; }
.odds-axis { display: flex; justify-content: space-between; margin-top: 8px; font: 500 12px/1 var(--sans); color: var(--ink-2); }
.odds-move { margin-top: 16px; font: 400 14px/1.5 var(--sans); color: var(--ink-2); text-wrap: pretty; }
.odds-move b { font-weight: 500; color: var(--ink); }
.odds-move i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: rgba(var(--ink-rgb), 0.16); margin-right: 8px; vertical-align: 0; font-style: normal; }
.odds-stand { margin-top: 12px; font: 500 14px/1.4 var(--sans); color: var(--ink); }
.odds-fine { margin-top: 8px; font: 400 12px/1.5 var(--sans); color: var(--ink-2); text-wrap: pretty; }

time, .times span, .odds-axis span, .odds .asof, .odds-chart .yl, .odds-move { font-variant-numeric: tabular-nums; }

/* ---------- player ---------- */
.player { display: grid; grid-template-columns: auto 1fr auto auto auto; align-items: center; gap: 8px; padding: 12px 16px max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); background: var(--paper); }
.play { position: relative; width: 48px; height: 48px; border-radius: 999px; display: grid; place-items: center; background: var(--ink); color: var(--paper); transition: transform 120ms var(--ease); }
.play svg.i { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.scrub { position: relative; height: 32px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.track { position: relative; width: 100%; height: 4px; border-radius: 999px; background: var(--rule-2); }
.fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 999px; background: var(--ink); }
.tick { position: absolute; top: -4px; width: 1px; height: 12px; background: var(--ink-2); opacity: 0.35; transform: translateX(-0.5px); }
.knob { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 999px; background: var(--ink); transform: translate(-50%, -50%) scale(0); transition: transform 150ms var(--ease); }
.scrub:hover .knob, .scrub.drag .knob { transform: translate(-50%, -50%) scale(1); }
.times { display: flex; justify-content: space-between; font: 500 12px/1 var(--sans); color: var(--ink-2); margin-top: 4px; }
.rate { min-width: 44px; height: 44px; padding: 0 6px; border-radius: 999px; color: var(--ink-2); font: 600 14px/1 var(--sans); font-variant-numeric: tabular-nums; }
.skip { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; color: var(--ink); }
.skip svg.i { width: 26px; height: 26px; stroke-width: 1.5; }
.player .ep { display: none; }
.scrub-tip { position: absolute; bottom: 30px; transform: translateX(-50%); max-width: 60vw; padding: 8px 12px; border-radius: 8px; background: var(--overlay); box-shadow: var(--shadow); font: 500 14px/1.25 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; pointer-events: none; transition: opacity 150ms var(--ease); }
.scrub-tip time { display: block; color: var(--ink-2); font-size: 12px; margin-top: 2px; }
.scrub.drag .scrub-tip { opacity: 1; }
.skip[disabled] { opacity: 0.3; }

/* ---------- stories list (desktop rail, mobile sheet) ---------- */
.chap { display: grid; grid-template-columns: 1fr auto; gap: 12px; width: 100%; min-height: 44px; text-align: left; padding: 12px; border-radius: 8px; color: var(--ink-2); font: 400 16px/1.35 var(--sans); transition: background-color 150ms var(--ease), color 150ms var(--ease); }
.chap:hover { background: var(--rule); color: var(--ink); }
.chap[aria-current="true"] { color: var(--ink); background: var(--raised); box-shadow: inset 0 0 0 1px var(--rule); }
.chap time { font-size: 14px; }
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.title-row { align-items: flex-start; } .title-row h2 { flex: 1 1 auto; min-width: 0; } .title-tools { flex: none; margin-top: 4px; }  /* one layout on every story: long titles wrap, the tools stay put */
.pick { position: relative; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; margin: -6px -4px -6px 0; border-radius: 999px; background: var(--rule); color: var(--ink-2); font: 500 12px/1 var(--sans); white-space: nowrap; font-variant-numeric: tabular-nums; transition: color 150ms var(--ease); }
.pick:hover { color: var(--ink); }
.title-tools { display: flex; align-items: center; gap: 8px; }
.card-kick { margin: 0 0 6px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.card-kick.heard { color: var(--ink-2); }
/* its own row at the top of the player: under the thumb, and it covers nothing (the story area gives up the room) */
.new-show { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0;
  padding: 6px 6px 6px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); white-space: nowrap;
  font: 600 14px/1.2 var(--sans); text-decoration: none; animation: now-in 220ms var(--ease); }
.new-show span { flex: none; padding: 10px 14px; border-radius: 999px; background: rgba(var(--light), 0.9); color: #fff; font-size: 13px; }
/* Artifact News's piece for the story it covers (Nate, Nov 4: "the election is huge and should clearly show something like
   this from artifactnews"). Their hero number and finding in our type; the full interactive opens in place on a tap. */
.an-card { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--rule-2); border-radius: 14px; background: var(--raised); }
.an-kick { font: 600 12px/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.an-kick b { color: var(--accent); font-weight: 600; }
.an-title { font: 400 18px/1.3 var(--serif); text-wrap: balance; }
.an-open { justify-self: start; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper);
  font: 600 14px/1 var(--sans); cursor: pointer; }
.an-frame { width: 100%; border: 0; border-radius: 10px; background: #111; display: block; }
.an-card a { font: 500 13px/1.3 var(--sans); color: var(--ink-2); }
.fp-an .an-card { padding: 24px; }
.fp-an .an-title { font-size: 24px; line-height: 1.25; }
/* Partner charts use the same figure and chart vocabulary as our own visuals. */
.an-chart { min-width: 0; }
.an-chart .ch-title { margin-bottom: 16px; }
.an-chart .ch-row { min-width: 0; }
.an-chart .ch-row b { white-space: nowrap; }
.an-chart .ch-track i.an-hi { background: var(--accent); }
.an-chart .beat-tl li.an-hi::before { background: var(--accent); }
.an-chart .beat-credit { line-height: 1.5; overflow-wrap: anywhere; }
.an-chart .beat-credit a { text-decoration: underline; text-underline-offset: 2px; }
.an-chart .bal-key { grid-template-columns: minmax(0, 1fr) auto; }
.an-chart .bal-key .mid { grid-column: 1 / -1; grid-row: 2; text-align: left; }
.an-chart .bal-key .rk { text-align: right; }
.an-series { display: grid; gap: 16px; }
.an-series-plot { width: 100%; height: 124px; display: block; overflow: visible; }
.an-series-plot path { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.an-series-plot path + path { stroke: var(--ink-2); stroke-dasharray: 4 4; }
.an-series-key { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); font: 500 13px/1.4 var(--sans); }
.an-series-key b { color: var(--ink); font-variant-numeric: tabular-nums; }
.an-multiples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.an-multiple { min-width: 0; }
.an-multiple h4 { font: 600 16px/1.25 var(--serif); margin-bottom: 6px; }
.an-multiple .an-series-plot { height: 80px; }
.an-multiple b { font: 600 20px/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.an-before { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.an-before > div { min-width: 0; border-top: 2px solid var(--rule-2); padding-top: 10px; }
.an-before > div:last-of-type { border-color: var(--accent); }
.an-before span { display: block; color: var(--ink-2); font: 500 13px/1.3 var(--sans); }
.an-before b { display: block; margin-top: 4px; font: 600 32px/1.1 var(--sans); font-variant-numeric: tabular-nums; }
.an-before p { grid-column: 1 / -1; font: 400 15px/1.4 var(--serif); }
@media (max-width: 480px) { .an-chart .beat-tl { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Election balance (story-visuals, Nate Nov 4: "bars truly showing the balance"): one bar a chamber, one party from each
   end, uncalled hatched between, the majority line drawn on it */
.bal { display: grid; gap: 24px; }
.bal-ch h4 { margin: 0 0 10px; font: 600 18px/1.2 var(--serif); }
.bal-bar { position: relative; display: flex; height: 16px; border-radius: 999px; overflow: visible; }
.bal-bar > i { display: block; height: 100%; }
.bal-bar .d { background: var(--dem); border-radius: 999px 0 0 999px; }
.bal-bar .r { background: var(--rep); border-radius: 0 999px 999px 0; }
.bal-bar .u { background: repeating-linear-gradient(135deg, var(--rule-2) 0 3px, transparent 3px 7px); }
.bal-bar .m { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); }
.bal-key { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 12px; margin-top: 10px; font: 500 14px/1.3 var(--sans); color: var(--ink-2); }
.bal-key b { font: 600 22px/1 var(--sans); font-variant-numeric: tabular-nums; }
.bal-key .dk, .bal-key .rk { white-space: nowrap; } .bal-key .dk b { color: var(--dem); } .bal-key .rk b { color: var(--rep); } .bal-key .mid { text-align: center; }
.fp-fig .bal { gap: 32px; } .fp-fig .bal-ch h4 { font-size: 24px; } .fp-fig .bal-bar { height: 22px; } .fp-fig .bal-key b { font-size: 28px; }
.fp-fig .bal-note { font-size: 16px; }
.bal-note { margin: 10px 0 0; font: 400 15px/1.45 var(--sans); color: var(--ink-2); text-wrap: pretty; }
.heard-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 10px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.heard-note button { padding: 6px 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.share { position: relative; width: 32px; height: 32px; margin: -6px 0; border-radius: 999px; display: grid; place-items: center; background: var(--rule); color: var(--ink-2); transition: color 150ms var(--ease); }
.share::before, .pick::before { content: ""; position: absolute; inset: -6px; }  /* 32px to see, 44px to tap */
.share:hover { color: var(--ink); }
.share svg.i { width: 16px; height: 16px; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 8px); width: max-content; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 16px; background: var(--overlay); box-shadow: var(--shadow); font: 500 14px/1.4 var(--sans); opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease); z-index: 40; text-wrap: pretty; }
.why { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; border-radius: 16px; background: var(--overlay); box-shadow: var(--shadow); font: 400 14px/1.4 var(--sans); z-index: 41; }
.why b { flex: 1 0 100%; font-weight: 600; }
.why button { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line, rgba(0,0,0,.14)); background: transparent; color: var(--ink); font: 500 14px/1 var(--sans); cursor: pointer; }
.why button.no { border-color: transparent; color: var(--ink-2); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast span { display: block; font-weight: 400; color: var(--ink-2); margin-top: 2px; }
.shared { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); font: 500 14px/1.35 var(--sans); }
.shared span { color: var(--ink-2); font-weight: 400; display: block; margin-top: 2px; text-wrap: pretty; }
.clip .share-q { margin-top: 16px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--rule); font: 500 14px/1 var(--sans); display: inline-flex; align-items: center; gap: 8px; }
.clip .share-q svg.i { width: 16px; height: 16px; }
.pick svg.i { width: 16px; height: 16px; }

/* ---------- sign-in ---------- */
.signin { position: fixed; inset: 0; background: var(--paper); z-index: 30; padding: max(24px, env(safe-area-inset-top)) 16px 24px; overflow-y: auto; }
.signin[hidden] { display: none; }
.si { width: 100%; max-width: 400px; margin: 0 auto; }
.si .mark { margin: 8px 0 64px; }
.si h1 { font: 500 32px/1.15 var(--serif); letter-spacing: -0.02em; text-wrap: balance; margin-bottom: 12px; font-variant-numeric: normal; }
.si p { color: var(--ink-2); margin-bottom: 32px; text-wrap: pretty; }
.field { display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 16px; border-radius: 16px; background: var(--raised); border: 1px solid var(--rule-2); transition: border-color 150ms var(--ease); }
.field:focus-within { border-color: var(--accent); }
.field span { color: var(--ink-2); font: 500 20px/1 var(--sans); }
.field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 500 20px/1 var(--sans); color: var(--ink); caret-color: var(--accent); letter-spacing: 0.02em; }
.field input::placeholder { color: rgba(var(--ink-rgb), 0.3); }
.code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.code input { width: 100%; min-width: 0; height: 56px; text-align: center; border-radius: 8px; border: 1px solid var(--rule-2); background: var(--raised); font: 500 24px/1 var(--sans); color: var(--ink); caret-color: var(--accent); outline: none; }
.code input:focus { border-color: var(--accent); }
.cta { width: 100%; height: 56px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 16px/1 var(--sans); margin-top: 16px; transition: transform 120ms var(--ease), opacity 150ms var(--ease); }
.cta[disabled] { background: rgba(var(--ink-rgb), 0.08); color: rgba(var(--ink-rgb), 0.38); cursor: default; transform: none; }
.err { font: 500 14px/1.4 var(--sans); color: var(--accent); margin-top: 12px; }
.fine { font: 400 12px/1.5 var(--sans); color: var(--ink-2); margin-top: 16px; text-wrap: pretty; }
.alt { display: block; margin-top: 24px; font: 500 14px/1 var(--sans); color: var(--ink-2); text-align: center; width: 100%; min-height: 44px; }
.proof { margin-top: 32px; padding: 16px; border-radius: 16px; background: var(--raised); border: 1px solid var(--rule); }
.proof q { display: block; font: 400 20px/1.45 var(--serif); quotes: "\201C" "\201D"; }
.proof span { display: block; margin-top: 12px; font: 500 12px/1.3 var(--sans); color: var(--ink-2); }
.proof span b { color: var(--accent); font-weight: 500; }
.next { display: flex; justify-content: space-between; margin-top: 32px; padding: 16px 0 0; border-top: 1px solid var(--rule); font: 500 14px/1.3 var(--sans); color: var(--ink-2); width: 100%; text-align: left; }
.next:hover { color: var(--ink); }
.next-preview { display: block; margin-top: 8px; font: 400 20px/1.4 var(--serif); color: rgba(var(--ink-rgb), 0.3); text-align: left; }
.next-wrap { margin-top: 32px; }
.next-wrap .next { margin-top: 0; }
.read .next-preview { display: none; }
.read .next { display: flex; }
/* the next story, always one tap or one swipe away (Nate, 2026-11-11: "show that a little bit better") */
.card > .nextbar { display: flex; align-items: center; justify-content: flex-start; gap: 8px; margin: 0; padding: 4px 4px 0; min-height: 36px; border-top: 0; color: var(--ink-2); font: 500 13px/1.2 var(--sans); }
.card > .nextbar span { flex: none; color: rgba(var(--ink-rgb), 0.5); }
.card > .nextbar b { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.card > .nextbar svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .card > .nextbar svg { animation: none; } }
.read .card > .nextbar { display: none; }
.card > .nextbar .touch { display: none; font-style: normal; }
@media (pointer: coarse) { .card > .nextbar .touch { display: inline; } .next-wrap { display: none; } }  /* the bar says it, so the transcript's own "Next" goes */
.card-head { transform-origin: 50% 0; }
.card.arrive .card-head { animation: arrive 360ms var(--ease); }
@keyframes arrive { from { opacity: 0.4; transform: translateY(10px); } }
.sig { display: block; margin-top: 32px; font: 400 12px/1 var(--sans); color: var(--ink-2); text-decoration: none; }
.sig:hover { color: var(--ink); }
.si .sig { text-align: center; }

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
  .top { padding: 16px 32px; }
  .layout { grid-template-columns: 268px minmax(0, 640px) 360px; justify-content: space-between; gap: 48px; padding: 0 32px; }
  .rail, .side { display: block; min-height: 0; overflow-y: auto; padding: 32px 0; scrollbar-width: thin; }
  .rail { margin-left: -12px; display: flex !important; flex-direction: column; }
  .rail .sig { margin-top: auto !important; padding-top: 32px; }
  .side { margin: 0 -12px; padding: 32px 0; }
  .side .src-note, .side .src-line { margin-left: 12px; margin-right: 12px; }
  .side .src-head { position: sticky; top: -32px; z-index: 1; margin: -32px 0 8px; padding: 32px 12px 8px; background: var(--paper); }
  .rail h2 { font: 600 20px/1.2 var(--serif); letter-spacing: -0.01em; margin: 0 12px 16px; }
  .rail .sig { margin: 32px 12px 0; }
  .card { padding: 32px 0 24px; }
  .card h2 { font-size: 32px; }
  .line { font-size: 24px; line-height: 1.4; }
  .read .line { font-size: 20px; }
  .receipt, .odds-chip { display: none; }
  .side .odds { padding-top: 0; }
  .side .odds .src-head { margin: 0 0 4px; }
  .side .src-note { margin-bottom: 16px; }
  .player { padding: 16px 32px; grid-template-columns: auto auto 1fr auto auto auto; gap: 12px; }
  .pick { display: none; }
  #shared-slot:not(:empty) { display: grid; grid-template-columns: 268px minmax(0, 640px) 360px; justify-content: space-between; gap: 48px; padding: 16px 32px 0; }
  #shared-slot .shared { grid-column: 2; border: 1px solid var(--rule); border-radius: 16px; background: var(--raised); padding: 16px 20px; font-size: 16px; }
  .player .ep { display: block; font: 500 14px/1.3 var(--sans); min-width: 200px; }
  .player .ep span { display: block; color: var(--ink-2); font-weight: 400; }
}
/* small laptops: three columns leave the story too narrow, so the story list moves back behind "3 of 9" */
@media (min-width: 1024px) and (max-width: 1279px) {
  .layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
  .rail { display: none !important; }
  .pick { display: flex; }
  #shared-slot:not(:empty) { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
  #shared-slot .shared { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
/* ---------- the living page (site and preview): follow a story, see what changed since you last checked ---------- */
.follow { position: relative; width: 32px; height: 32px; margin: -6px 0; border-radius: 999px; display: grid; place-items: center; background: var(--rule); color: var(--ink-2); transition: color 150ms var(--ease), background-color 150ms var(--ease); }
.follow::before { content: ""; position: absolute; inset: -6px; }
.follow:hover { color: var(--ink); }
.follow svg.i { width: 16px; height: 16px; transition: fill 150ms var(--ease); }
.follow[aria-pressed="true"] { color: var(--accent); background: rgba(var(--light), 0.12); }
.follow[aria-pressed="true"] svg.i { fill: currentColor; }
#ep-pick { position: relative; }
#ep-pick[data-news="true"]::after { content: ""; position: absolute; top: 2px; right: -4px; width: 7px; height: 7px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 2px var(--paper); }
.follow-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 4px; margin-bottom: 8px; border-bottom: 1px solid var(--rule); color: var(--ink); font: 600 16px/1.2 var(--sans); text-align: left; }
.follow-row svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; color: var(--ink-2); }
.follow-row span { flex: 1 1 auto; }
.follow-row em { font: 500 13px/1 var(--sans); font-style: normal; color: var(--ink-2); }
.follow-row em.new { color: var(--accent); }
.follow-row:hover span { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.since-h { font: 600 24px/1.2 var(--serif); text-wrap: balance; margin: 0 0 4px; }
.since-sub { font: 400 14px/1.4 var(--sans); color: var(--ink-2); margin: 0 0 8px; }
.since-item { display: grid; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.since-kick { font: 600 12px/1.2 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.since-item h4 { font: 600 19px/1.3 var(--serif); margin: 0; text-wrap: balance; }
.since-pair { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 12px; font: 400 16px/1.45 var(--sans); }
.since-pair dt { font: 500 13px/1.6 var(--sans); color: var(--ink-2); }
.since-pair dd { margin: 0; min-width: 0; }
.since-pair dd.was { color: var(--ink-2); }
.since-go { justify-self: start; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; margin-top: 4px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 14px/1 var(--sans); }
.since-go svg.i { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.since-src { display: grid; gap: 2px; margin-top: 4px; }
.since-src a { display: grid; gap: 2px; padding: 8px 0; color: var(--ink); text-decoration: none; font: 400 14px/1.4 var(--sans); }
.since-src a span { font: 500 12px/1.2 var(--sans); color: var(--ink-2); }
.since-src a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.since-quiet { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.since-quiet b { font: 600 16px/1.3 var(--serif); }
.since-quiet span { font: 400 14px/1.4 var(--sans); color: var(--ink-2); }
.since-quiet .unfollow { justify-self: start; margin-top: 4px; font: 500 13px/1 var(--sans); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; min-height: 32px; }
.since-done { display: flex; align-items: center; gap: 12px; padding: 24px 0 8px; font: 600 18px/1.3 var(--serif); }
.since-done i { flex: none; width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: var(--rule); color: var(--ink); }
.since-done i svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.since-empty { font: 400 16px/1.5 var(--sans); color: var(--ink-2); max-width: 36ch; padding: 8px 0 16px; }
