/* Page-specific components for the DecompRCA project page.
   Builds on the template's variables in index.css. The two failure modes
   keep fixed colours everywhere: retrieval = red, reranking = amber. */
:root {
  --hit-color: #3a3a3a;
  --rerank-color: #e69f00;
  --retr-color: #b2182b;
  --sig-mag: #2563eb;
  --sig-ons: #0d9488;
  --sig-stc: #7c3aed;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
}

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Hero additions */
.publication-title .title-sub {
  display: block;
  font-size: 0.55em;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 0.6rem;
}
.publication-affiliations {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-top: -0.75rem;
}
.publication-affiliations .author-block { margin: 0 0.5rem; }

/* TL;DR + identity */
.tldr {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--text-primary);
  max-width: 46rem;
  margin: 0 auto 2rem;
  text-align: center;
}
.identity {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.75rem 1.25rem;
  font-family: var(--mono);
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  margin-bottom: 2.5rem;
}
.identity .term { display: grid; gap: 0.4rem; text-align: center; }
.identity .term b { font-weight: 500; padding-bottom: 0.25rem; border-bottom: 4px solid var(--hit-color); }
.identity .term.r b { border-color: var(--retr-color); }
.identity .term.k b { border-color: var(--rerank-color); }
.identity .term small { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: var(--text-secondary); max-width: 15ch; margin: 0 auto; line-height: 1.35; }
.identity .op { color: var(--text-light); }

/* Figure panels */
.figure-panel {
  background: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.75rem clamp(1rem, 3vw, 2rem);
}
.figure-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.25rem;
}
.figure-head h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }
.figure-caption {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-top: 1rem;
}

/* Segmented toggles (template-style rounded buttons) */
.seg { display: inline-flex; background: var(--background-accent); border-radius: 999px; padding: 3px; }
.seg button {
  font: 600 0.8rem/1 'Inter', sans-serif;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}
.seg button[aria-pressed="true"] { background: var(--text-primary); color: #fff; box-shadow: var(--shadow-sm); }

/* Failure ledger */
.stage-fig { margin: 0 auto; max-width: 46rem; }
.stage-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.5rem 1.5rem; margin-bottom: 0.9rem; font-size: 0.85rem; color: #333; }
.stage-switch { display: flex; align-items: center; gap: 0.6rem; }
.stage-switch > span { font-weight: 600; }
.switch-group { display: inline-flex; }
.switch-group button {
  font: 500 0.8rem/1 'Inter', sans-serif;
  padding: 0.45rem 0.8rem;
  border: 1px solid #c8c8c8;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.switch-group button:first-child { border-radius: 4px 0 0 4px; }
.switch-group button:last-child { border-radius: 0 4px 4px 0; margin-left: -1px; }
.switch-group button:hover { background: #f3f3f3; }
.switch-group button[aria-pressed="true"] { background: #363636; border-color: #363636; color: #fff; position: relative; }
.switch-group button:focus-visible { outline: 2px solid #363636; outline-offset: 2px; position: relative; z-index: 1; }
.stage-key { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; list-style: none; margin: 0; padding: 0; }
.stage-key li { display: inline-flex; align-items: center; gap: 0.35rem; }
.stage-key i { display: inline-block; width: 11px; height: 11px; }
.stage-key .k-hit { background: var(--hit-color); }
.stage-key .k-rr { background: var(--rerank-color); }
.stage-key .k-rt { background: var(--retr-color); }
.stage-key .k-baro { width: 0; height: 14px; border-left: 2px solid #000; }
.ledger { display: grid; gap: 5px; }
.ledger .group { font-size: 0.82rem; font-style: italic; color: #555; padding: 0.4rem 0 0 0; }
.ledger .group:first-child { padding-top: 0; }
.ledger .row { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.6rem; align-items: center; }
.ledger .name { font-size: 0.88rem; text-align: right; color: #222; white-space: nowrap; }
.ledger .name span { color: #777; font-size: 0.78rem; }
.bar { position: relative; display: flex; height: 22px; background: #eee; }
.bar > i {
  display: flex;
  align-items: center;
  justify-content: center;
  font: 400 0.72rem/1 'Inter', sans-serif;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  transition: flex-basis 0.4s ease;
}
.bar > i + i { box-shadow: inset 1px 0 0 #fff; }
.bar .hit { background: var(--hit-color); }
.bar .rr { background: var(--rerank-color); color: #1a1a1a; }
.bar .rt { background: var(--retr-color); }
.bar .baro { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: #000; box-shadow: 0 0 0 1px #fff; transition: left 0.4s ease; }
.ledger .axis-row { margin-top: 1px; }
.axis { position: relative; height: 2.3rem; border-top: 1px solid #333; font-size: 0.72rem; color: #444; font-variant-numeric: tabular-nums; }
.axis span { position: absolute; top: 0; transform: translateX(-50%); padding-top: 6px; }
.axis span::before { content: ""; position: absolute; top: 0; left: 50%; height: 4px; border-left: 1px solid #333; }
.axis span:first-child { transform: none; }
.axis span:first-child::before { left: 0; }
.axis span:nth-child(5) { transform: translateX(-100%); }
.axis span:nth-child(5)::before { left: auto; right: 0; }
.axis em { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-style: normal; white-space: nowrap; }
.stage-caption { font-size: 0.88rem; line-height: 1.5; color: #444; margin-top: 0.6rem; text-align: left; }
.stage-caption b { color: #222; }

/* Method */
.overview-figure {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: clamp(0.5rem, 2vw, 1.25rem);
  box-shadow: var(--shadow-md);
}
.overview-figure img { display: block; width: 100%; height: auto; }
.signals { margin-top: 1.25rem; }
.signal-box { height: 100%; background: var(--background-primary); border: 1px solid var(--border-color); border-radius: var(--border-radius-lg); box-shadow: var(--shadow-md); padding: 1.25rem 1.4rem; }
.signal-box h4 { font-weight: 700; font-size: 1rem; color: #222; margin-bottom: 0.4rem; }
.signal-box p { font-size: 0.9rem; line-height: 1.5; color: #444; margin: 0; }
.signals .sym { font-family: var(--math, 'STIX Two Text', 'Times New Roman', serif); font-weight: 400; font-size: 1.08em; white-space: nowrap; margin-left: 0.15em; }
.signals .sym i { font-style: italic; }
.signals .sym sub { font: 400 0.68em/1 'Inter', sans-serif; margin-left: 1px; }

/* Findings */
.finding { padding: 2.5rem 0; border-top: 1px solid var(--border-color); }
.finding:first-of-type { border-top: 0; padding-top: 0.5rem; }
.finding .label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-color);
}
.finding .big {
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  margin: 0.5rem 0 0.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.finding .big small { font-size: 0.38em; font-weight: 600; color: var(--text-secondary); letter-spacing: 0; margin-left: 0.3rem; }
.finding .big.retr { color: var(--retr-color); }
.finding .big.rerank { color: var(--rerank-color); }
.finding h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.35; color: var(--text-primary); }
.finding .side-note { font-size: 0.9rem; color: var(--text-secondary); margin-top: 0.75rem; }
.finding .content p { color: var(--text-secondary); font-size: 1.02rem; }

/* Saturation explorer */
.ds-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.ds-tabs button {
  font: 600 0.78rem/1 'Inter', sans-serif;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--background-primary);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}
.ds-tabs button[aria-pressed="true"] { background: var(--text-primary); border-color: var(--text-primary); color: #fff; }
.regime { margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-secondary); }
.regime strong { color: var(--text-primary); margin-right: 0.4rem; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: var(--border-color); }
.chart .axis text { fill: var(--text-secondary); font: 400 11px var(--mono); }
.chart .axis .title { font-weight: 500; letter-spacing: 0.05em; }
.chart .line { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .guide { stroke: var(--text-primary); stroke-dasharray: 3 3; }
.chart .k15 { stroke: var(--retr-color); stroke-width: 1.25; }
.chart .k15-label { fill: var(--retr-color); font: 500 10px var(--mono); }
.readout { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem 1.25rem; align-items: center; margin-top: 0.5rem; }
.readout label { font: 500 0.85rem var(--mono); }
.readout input { width: 100%; accent-color: var(--text-primary); }
.vals { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; font: 400 0.85rem var(--mono); }
.vals span { display: inline-flex; align-items: center; gap: 0.5rem; }
.vals i { width: 18px; border-top: 3px solid; display: inline-block; }

/* Results table */
.table-scroll { overflow-x: auto; border: 1px solid var(--border-color); border-radius: var(--border-radius); background: var(--background-primary); }
.results-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9rem; }
.results-table th, .results-table td { padding: 0.55rem 0.8rem; text-align: right; white-space: nowrap; }
.results-table th:first-child, .results-table td:first-child { text-align: left; }
.results-table thead th { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-secondary); border-bottom: 1px solid var(--border-color); background: var(--background-secondary); }
.results-table thead tr.span th { color: var(--text-primary); border-bottom: 0; padding-bottom: 0; }
.results-table tbody td { font-family: var(--mono); font-size: 0.82rem; font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--background-accent); }
.results-table tbody td:first-child { font-family: 'Inter', sans-serif; font-size: 0.9rem; }
.results-table tr.sub td { font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); padding-top: 1rem; }
.results-table tr.ours td { background: #eff6ff; }
.results-table td.best { font-weight: 600; color: var(--text-primary); box-shadow: inset 0 -2px 0 var(--primary-color); }
.results-table td .sd { color: var(--text-light); font-size: 0.72rem; margin-left: 2px; }
.results-table .sep { border-left: 1px solid var(--border-color); }

/* Implications */
.limits li { color: var(--text-secondary); }

@media screen and (max-width: 768px) {
  .ledger .row { grid-template-columns: 4.6rem 1fr; gap: 0.4rem; }
  .ledger .name span { display: none; }
  .tldr { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bar > i, .bar .baro, .hero, .section { transition: none !important; animation: none !important; }
}

/* ---------------- Animated teaser (Figure 1 style) ----------------
   Drawn like a paper figure: hairline rules instead of a card, lettered
   panels, an ink scale for deviation, a ranked list with deviation bars,
   and a caption that narrates. Retrieval = red, reranking = amber. */
.teaser-card {
  --ink: #1e293b;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --ink-4: #cbd5e1;
  --ink-text-3: #64748b; /* tertiary text, 4.7:1 on white */
  --ink-5: #e8edf3;
  --amber-ink: #b45309;
  --math: 'STIX Two Text', 'Times New Roman', serif;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1px solid var(--ink-4);
}
.fp-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; cursor: pointer; }
.fp-grid:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.fp-grid.no-anim, .fp-grid.no-anim * { transition: none !important; }
.fp {
  position: relative;
  aspect-ratio: 500 / 400;
  container-type: inline-size;
  overflow: hidden;
}
.fp + .fp { border-left: 1px solid var(--ink-5); }
.fp > * { transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.fp.fade > *, .fp.fade > .fp-result.show, .fp.fade > .scorecard.show { opacity: 0; }

/* Panel heading: letter, title, one quiet line of context */
.fp-head {
  position: absolute;
  z-index: 3;
  top: 4.6%;
  left: 6%;
  right: 6%;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.6cqw;
  row-gap: 0.6cqw;
  font: 600 clamp(10px, 2.9cqw, 15px)/1.2 'Inter', sans-serif;
  color: var(--ink);
  transition: color 0.5s;
}
.fp-head .fp-letter { font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fp-head .fp-sub { grid-column: 2; font-weight: 400; font-size: 0.82em; color: var(--ink-2); }
.fp-head .fp-sub:empty { display: none; }
.fp-head.retr, .fp-head.retr .fp-letter { color: var(--retr-color); }
.fp-head.rerank, .fp-head.rerank .fp-letter { color: var(--amber-ink); }

/* Plant drawing */
.fp-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fp-svg .edge { stroke: var(--ink-5); stroke-width: 1.5; stroke-linecap: round; transition: stroke 0.6s; }
.fp-svg .edge.hot { stroke: var(--ink-2); stroke-width: 1.75; stroke-dasharray: 1; animation: edge-draw 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes edge-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.fp-svg .ghost { fill: none; stroke: var(--ink-4); stroke-width: 1; stroke-dasharray: 2 3; }
.fp-svg .ghost.missed { stroke: var(--retr-color); stroke-width: 2; stroke-dasharray: none; }
.fp-svg .cause-tag { font: 600 12.5px 'Inter', sans-serif; fill: var(--ink); }
.fp-svg .cause-tag.missed { fill: var(--retr-color); }
.fp-svg .axis line { stroke: var(--ink-3); stroke-width: 1; }
.fp-svg .axis path { fill: var(--ink-3); }
.fp-svg .axis text { font: 400 11px 'Inter', sans-serif; fill: var(--ink-2); }
.fp-svg .zone-title { font: 600 12.5px 'Inter', sans-serif; fill: var(--ink); }
.fp-svg .rule { stroke: var(--ink-5); stroke-width: 1; }
.fp-svg .rule.top { stroke: var(--ink-3); }
.fp-svg .rank-num { font: 500 13px 'IBM Plex Mono', monospace; fill: var(--ink-text-3); transition: opacity 0.5s; }
/* Deviation bar per list row; JS sets scaleX(deviation) on a full-width rect */
.fp-svg .dev-bar {
  fill: var(--ink-4);
  transform: scaleX(0);
  transform-box: fill-box;
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), fill 0.5s;
}
.fp-svg .dev-bar.is-cause { fill: var(--ink); }
.fp-svg .dev-bar.is-cause.rerank { fill: var(--rerank-color); }

/* Sensor tokens. Sizes in cqw of a 500-unit panel (1 unit = 0.2cqw).
   Each token is a zero-size anchor at the sensor; the dot never changes
   layout, so it glides straight. Only the label slides beside it. */
.tk {
  position: absolute;
  z-index: 2;
  width: 0;
  height: 0;
  transition: left 1.3s cubic-bezier(0.65, 0, 0.25, 1), top 1.3s cubic-bezier(0.65, 0, 0.25, 1);
}
.tk-dot {
  position: absolute;
  left: -1.7cqw;
  top: -1.7cqw;
  width: 3.4cqw;
  height: 3.4cqw;
  border-radius: 50%;
  background: var(--ink-4);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), background 1s ease, box-shadow 0.5s;
}
.tk-lab {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font: 400 clamp(7px, 2.2cqw, 12px)/1 var(--mono);
  color: var(--ink-2);
  transform: translate(6.4cqw, -50%);
  transition: transform 1.3s cubic-bezier(0.65, 0, 0.25, 1), color 0.5s;
}
.tk.in-plant .tk-lab { font-size: clamp(7px, 1.95cqw, 11px); transform: translate(-50%, 4.1cqw); }
/* Plant labels occlude the edges behind them, as in a drawn figure */
.tk.in-plant .tk-lab { background: var(--background-primary, #fff); padding: 0 0.3cqw; }
.tk.picked .tk-lab { color: var(--ink); font-weight: 500; }
.tk.is-cause .tk-lab::after {
  content: 'm*';
  margin-left: 0.9cqw;
  font: italic 400 1.3em/1 var(--math);
  color: var(--ink);
}
.tk.pulse .tk-dot { animation: cause-pulse 1.5s cubic-bezier(0.16, 1, 0.3, 1) 3; }
@keyframes cause-pulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 41, 59, 0.45); }
  100% { box-shadow: 0 0 0 2.6cqw rgba(30, 41, 59, 0); }
}
.tk.ring-hit .tk-dot { box-shadow: 0 0 0 0.45cqw #fff, 0 0 0 0.85cqw var(--ink); }
.tk.ring-rerank .tk-dot { box-shadow: 0 0 0 0.45cqw #fff, 0 0 0 0.85cqw var(--rerank-color); }
.tk.ring-rerank .tk-lab { color: var(--amber-ink); }

/* Outcome line under the list */
.fp-result {
  position: absolute;
  transform: translateY(-50%);
  font: 600 clamp(8px, 2.5cqw, 13px)/1.2 'Inter', sans-serif;
  color: var(--ink);
  opacity: 0;
  white-space: nowrap;
}
.fp-result.show { opacity: 1; }
.fp-result.miss { color: var(--retr-color); }
.fp-result.f { font-family: var(--mono); font-weight: 500; }
.fp-result.f.miss { color: var(--retr-color); }
.fp-result.f.rerank { color: var(--amber-ink); }

/* Two-check scorecard (Part 2) */
.scorecard {
  position: absolute;
  z-index: 3;
  transform: translateY(-50%);
  display: grid;
  gap: 1.3cqw;
  opacity: 0;
}
.scorecard.show { opacity: 1; }
.sc {
  display: grid;
  grid-template-columns: 3cqw auto auto;
  align-items: center;
  column-gap: 1.3cqw;
  font: 500 clamp(8px, 2.4cqw, 12.5px)/1 'Inter', sans-serif;
  color: var(--ink-2);
  transition: color 0.5s;
}
.sc svg { width: 3cqw; height: 3cqw; overflow: visible; }
.sc svg * { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc em { font-style: normal; font-weight: 400; color: var(--ink-text-3); }
.sc.pass { color: var(--ink); }
.sc.fail { color: var(--retr-color); }
.sc.fail.amber { color: var(--amber-ink); }
.sc.na { color: var(--ink-text-3); }

/* Caption: step ticks, run-in title, narration */
.teaser-narration {
  --tone: var(--ink);
  padding: 1rem 0 1.15rem;
  border-top: 1px solid var(--ink-5);
}
.teaser-narration[data-tone="retr"] { --tone: var(--retr-color); }
.teaser-narration[data-tone="rerank"] { --tone: var(--amber-ink); }
.narr-ticks { display: flex; gap: 6px; list-style: none; margin: 0 0 0.85rem; padding: 0; }
.narr-ticks li { margin: 0; }
.narr-ticks button {
  display: block;
  width: 30px;
  height: 18px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.narr-ticks button::before {
  content: '';
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--ink-5);
  transition: background 0.3s;
}
.narr-ticks button.done::before { background: var(--ink-3); }
.narr-ticks button[aria-current="step"]::before { background: var(--ink); }
.narr-ticks button:hover::before { background: var(--ink-2); }
.narr-ticks button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.narr-body { min-height: 3.6rem; }
.narr-text { margin: 0; max-width: 68ch; font-size: 1.08rem; font-weight: 400; line-height: 1.55; color: var(--text-primary); }
.narr-step { font-weight: 700; color: var(--tone); margin-right: 0.3em; }
.narr-eq { margin: 0.5rem 0 0; font-size: 0.98rem; line-height: 1.6; color: var(--text-secondary); }
.teaser-narration.in .narr-body { animation: narr-in 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes narr-in { from { opacity: 0; } to { opacity: 1; } }
.narr-text mark { background: none; color: var(--ink); font-weight: 600; padding: 0; }
.narr-text mark.ok { color: var(--ink); }
.narr-text mark.retr { color: var(--retr-color); }
.narr-text mark.rr { color: var(--amber-ink); }
.narr-eq .u-out, .narr-eq .u-ret, .narr-eq .u-rr { font-family: var(--mono); color: var(--text-primary); }
.narr-eq .u-ret { text-decoration: underline 2px var(--retr-color); text-underline-offset: 4px; }
.narr-eq .u-rr { text-decoration: underline 2px var(--rerank-color); text-underline-offset: 4px; }

/* Controls: quiet text buttons under the figure */
.teaser-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.4rem; margin: 0.6rem 0 2.5rem; }
.teaser-controls .play-btn, .teaser-controls .ctrl-btn {
  height: 32px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-primary);
  font: 500 0.85rem/1 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s;
}
.teaser-controls .play-btn { width: 32px; }
.teaser-controls .ctrl-btn { padding: 0 0.6rem; display: inline-flex; align-items: center; gap: 0.45rem; }
.teaser-controls .ctrl-btn i { font-size: 0.75em; color: var(--text-secondary); }
.teaser-controls .play-btn:hover, .teaser-controls .ctrl-btn:hover { background: var(--background-accent); }
.teaser-controls .play-btn:focus-visible, .teaser-controls .ctrl-btn:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 1px; }
.teaser-note { margin-left: auto; font-size: 0.8rem; color: var(--text-secondary); }

@media screen and (max-width: 700px) {
  .fp-grid { grid-template-columns: 1fr; }
  .fp + .fp { border-left: 0; border-top: 1px solid var(--ink-5); }
  .narr-text { font-size: 1rem; }
  .narr-ticks button { width: 24px; }
  .teaser-note { margin-left: 0; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .fp-svg .edge.hot, .tk.pulse .tk-dot, .teaser-narration.in .narr-body { animation: none; }
  .fp-svg .edge.hot { stroke-dasharray: none; }
}
