/* Slide archetypes, version 2 ("Dark cyber, vivid"). All sizes in stage px on the 1920 x 1080 stage.
   Body text is at least 28 px (--fs-body-min); labels in visuals at least 22 px (--fs-label-min).
   Text counts as a label when it sits in an svg, a table, a figcaption, the footer, a citation marker, or an element
   with class "lbl"; everything else on the stage is body text (see vision.md, "Type"). */

:where(.slide) :where(p, h3) { margin: 0; }   /* zero specificity: any archetype rule may set a margin */
.slide-title {
  position: relative;
  margin: 0 0 40px;
  font: 760 var(--fs-title)/1.06 var(--font-sans);
  letter-spacing: -.022em;
  color: var(--ink);
  max-width: 1680px;
  text-wrap: balance;
}
/* an 88 x 4 px bar under the title in the part's color; drawn out of the flow, so it never moves a layout */
.slide-title::after { content: ""; position: absolute; left: 0; bottom: -10px; transform-origin: 0 50%; width: 88px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--part), color-mix(in oklab, var(--part) 0%, transparent)); }
.eyebrow { display: flex; align-items: center; gap: 16px; font: 600 var(--fs-eyebrow)/1.2 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--part); }
.eyebrow::before { content: ""; flex: none; width: 40px; height: 3px; border-radius: 2px; background: var(--part); box-shadow: 0 0 14px var(--glow-part); }
.lead { font: 400 var(--fs-lead)/1.3 var(--font-sans); color: var(--ink-2); max-width: 1400px; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; flex: none; overflow: visible; }
.pm { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.6; flex: none; overflow: visible; }
.era-1 { --c: var(--era-1); }
.era-2 { --c: var(--era-2); }
.era-3 { --c: var(--era-3); }
.era-tuned { --c: var(--accent); }
.era-ink { color: var(--c); }

/* ---------------------------------------------------------------- title */
.slide--title { padding-top: 104px; gap: 0; }
.slide--title .eyebrow { margin-bottom: 40px; font-size: var(--fs-body-min); letter-spacing: .14em; color: var(--part-0); }
.display { margin: 0 0 34px; max-width: 1180px; font: 820 var(--fs-display)/1.02 var(--font-sans); letter-spacing: -.038em; text-wrap: balance; }
/* the dark theme fills the display title with a gradient from the ink through cyan to magenta; light stays plain ink */
:root[data-theme="dark"] .slide--title .display {
  background: linear-gradient(100deg, var(--ink) 0 52%, color-mix(in oklab, var(--part-0) 55%, var(--ink)) 78%, color-mix(in oklab, var(--accent) 60%, var(--ink)));
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.title-map { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.title-map li {
  --c: var(--part-1);
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto 1fr; column-gap: 22px; row-gap: 10px; align-items: start; align-content: start;
  padding: 26px 30px 30px; background: color-mix(in oklab, var(--c) 6%, var(--surface)); border: 1.5px solid color-mix(in oklab, var(--c) 25%, var(--rule-2));
  border-top: 5px solid var(--c); border-radius: 4px 4px var(--r2) var(--r2); box-shadow: 0 -14px 40px -24px var(--c);
}
.title-map li:nth-child(1) { --c: var(--part-1); } .title-map li:nth-child(2) { --c: var(--part-2); } .title-map li:nth-child(3) { --c: var(--part-3); }
.pm-lg { width: 52px; height: 52px; grid-row: 1 / span 2; stroke-width: 2.4; color: var(--c, var(--ink)); }
.tm-num { font: 700 var(--fs-body-min)/1 var(--font-mono); color: var(--c, var(--ink-3)); }
.tm-text { font: 600 var(--fs-body-min)/1.3 var(--font-sans); color: var(--ink); }
.byline { margin-top: auto; padding-top: 40px; font: 500 var(--fs-label)/1.3 var(--font-mono); letter-spacing: .06em; color: var(--ink-3); }   /* in the flow, so it never touches the part cards (at least 40 px above it) */

/* ---------------------------------------------------------------- part divider: the part mark, its numeral, and the zoom */
.slide--divider { display: grid; grid-template-columns: 560px 1fr; grid-template-rows: 1fr auto; column-gap: 120px; align-items: center; padding-top: 70px; }
.slide--divider .eyebrow { font-size: var(--fs-body-min); }
.divider-mark { position: relative; width: 560px; height: 560px; display: grid; place-items: center; }
.pm-xl { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--part); stroke-width: .5; fill: var(--surface); }
.divider-num { position: relative; font: 800 var(--fs-numeral)/1 var(--font-mono); letter-spacing: -.04em; color: var(--part); }
:root[data-theme="dark"] .divider-num { text-shadow: 0 0 40px color-mix(in oklab, var(--part) 55%, transparent), 0 0 2px var(--part); }

.divider-num--tri { font-size: 200px; translate: 0 70px; }
.divider-title { margin: 22px 0 46px; font: 780 76px/1.04 var(--font-sans); letter-spacing: -.028em; text-wrap: balance; }
.divider-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; font-size: var(--fs-body); color: var(--ink-2); }
.divider-list li { display: flex; align-items: center; gap: 22px; }
.divider-list .icon { width: 64px; height: 64px; padding: 10px; border-radius: 14px; color: var(--c, var(--ink-2));
  background: color-mix(in oklab, var(--c, var(--ink-3)) 12%, var(--surface)); border: 1.5px solid color-mix(in oklab, var(--c, var(--ink-3)) 45%, transparent); }
.divider-map { grid-column: 1 / -1; list-style: none; margin: 0; padding: 26px 0 0; display: flex; gap: 56px; border-top: 1.5px solid var(--rule-2); font: 500 var(--fs-body-min)/1 var(--font-sans); color: var(--ink-3); }
.divider-map li { display: flex; align-items: center; gap: 14px; }
.divider-map li:nth-child(1) { --c: var(--part-1); } .divider-map li:nth-child(2) { --c: var(--part-2); } .divider-map li:nth-child(3) { --c: var(--part-3); }
.divider-map .pm { width: 32px; height: 32px; color: var(--c); }
.divider-map .is-done { color: var(--ink-2); }
.divider-map .is-done .pm { fill: currentColor; }
.divider-map .is-here { color: var(--ink); font-weight: 700; }
.divider-map .is-here .pm { fill: color-mix(in oklab, var(--c) 25%, transparent); stroke-width: 3.2; filter: drop-shadow(0 0 8px var(--c)); }

/* ---------------------------------------------------------------- statement: one sentence and one visual */
.slide--statement { display: grid; grid-template-columns: 1fr 860px; column-gap: 96px; align-items: center; }
.statement { font: 700 var(--fs-statement)/1.1 var(--font-serif); letter-spacing: -.012em; text-wrap: balance; }
.statement a.cite { vertical-align: .9em; }
.statement-visual { margin: 0; }

/* ---------------------------------------------------------------- diagrams (hand-written inline SVG at 1:1 stage px) */
.diagram { display: block; overflow: visible; font-family: var(--font-sans); flex: none; }
.diagram .node { fill: var(--surface); stroke: var(--rule-3); stroke-width: 2.5; }
.diagram .node--model { fill: var(--accent-wash); stroke: var(--accent); stroke-width: 4; filter: drop-shadow(0 0 18px var(--glow-accent)); }
.diagram .node--context { fill: var(--surface-2); }
.diagram .sandbox { fill: none; stroke: var(--line); stroke-width: 3; stroke-dasharray: 14 10; }
.diagram .harness-frame { fill: var(--surface-2); stroke: var(--rule-3); stroke-width: 3; }
.diagram .frame-label { font: 700 28px var(--font-sans); letter-spacing: .06em; fill: var(--ink-2); }
.diagram .node-title { font: 700 36px var(--font-sans); fill: var(--ink); }
.diagram .node-title--sm { font-size: 28px; }
.diagram .node-text { font: 400 26px var(--font-sans); fill: var(--ink-2); }
.diagram .tile-text { font: 600 26px var(--font-sans); fill: var(--ink); }
.diagram .node-icon { color: var(--ink-2); fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.diagram .node--model + .node-icon { color: var(--accent-ink); }
.diagram .edge { fill: none; stroke: var(--line); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.diagram .edge--strong { stroke: var(--ink-2); stroke-width: 4; }
.diagram .edge-label { font: 600 28px var(--font-sans); fill: var(--ink); }
.diagram .edge-label--sm { font-size: 24px; font-weight: 500; fill: var(--ink-2); }
.diagram .edge-text { font: 500 26px var(--font-sans); fill: var(--ink); }
.diagram .panel-head { font: 600 28px var(--font-sans); fill: var(--ink-2); }
.diagram .divider-line { stroke: var(--rule); stroke-width: 2; }
.diagram .ctx-bar { fill: var(--rule-3); }
.diagram .end-ring { fill: none; stroke: var(--ink); stroke-width: 4; }
.diagram .end-dot { fill: var(--ink); }
.arrowhead { fill: var(--line); fill: context-stroke; }
/* the newest build step of a diagram is drawn in the accent, with heavier lines */
.diagram g[data-build].is-current .edge { stroke: var(--accent); stroke-width: 5; filter: drop-shadow(0 0 8px var(--glow-accent)); }
.diagram g[data-build].is-current .node:not(.node--model), .diagram g[data-build].is-current .sandbox { stroke: var(--accent); stroke-width: 4; }
.diagram g[data-build].is-current .node-icon { color: var(--accent-ink); }
.diagram .edge, .diagram .node, .diagram .sandbox { transition: stroke var(--d-build) var(--ease-out), stroke-dashoffset var(--d-draw) var(--ease-move); }
.step-captions { display: grid; margin-top: 28px; }
.step-captions > p { grid-area: 1 / 1; position: relative; padding-left: 44px; font: 500 var(--fs-body)/1.3 var(--font-sans); color: var(--ink); }
.step-captions > p::before { content: ""; position: absolute; left: 0; top: .62em; width: 26px; height: 4px; border-radius: 2px; background: var(--part); box-shadow: 0 0 12px var(--glow-part); }   /* a bar, not a number: v1's wording is unchanged */

/* ---------------------------------------------------------------- charts */
figure.chart { margin: 0; display: grid; grid-template-columns: 1fr auto; column-gap: 32px; row-gap: 18px; align-items: center; }
figure.chart > .chart-body, figure.chart > .chart-table { grid-column: 1 / -1; }
figure.chart > figcaption { display: flex; flex-direction: column; gap: 6px; }
figure.chart .cap-text { font-size: var(--fs-body-min); line-height: 1.3; color: var(--ink-2); }   /* the authored sentence: body text, 28 px */
figure.chart .cap-meta { font-size: var(--fs-label); line-height: 1.35; color: var(--ink-3); }      /* setting, metric, notes and sources: 24 px */
.chart-toggle {
  font: 600 var(--fs-label-min)/1 var(--font-mono); letter-spacing: .04em; color: var(--accent-ink); background: transparent;
  border: 2px solid var(--accent); border-radius: 999px; padding: 9px 18px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 0 18px -6px var(--glow-accent);
}
.chart-toggle[aria-pressed="true"] { background: var(--accent-wash); }
.chart-svg { display: block; overflow: visible; font-family: var(--font-sans); }
.chart-svg .tick { font: 500 22px var(--font-mono); fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.chart-svg .grid-line { stroke: var(--rule-2); stroke-width: 1.5; stroke-dasharray: 2 6; stroke-linecap: round; }
.chart-svg .axis-line { stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.chart-svg .series { color: var(--c); }
.timeline .lane-line { stroke: var(--c); stroke-width: 4; stroke-linecap: round; }
.timeline .mark { fill: var(--c); stroke: var(--bg); stroke-width: 5; }   /* a dot in the lane's color with a stage-colored ring (the v1 rule the deck check judges as a ring of a mark) */
.timeline .leader { fill: none; stroke: var(--c); stroke-width: 2; stroke-dasharray: 3 5; stroke-linecap: round; }
.timeline .event-label { font-size: 30px; font-weight: 650; fill: var(--ink); }
.timeline .event-date { font: 500 24px var(--font-mono); fill: var(--ink-3); font-variant-numeric: tabular-nums; }
.timeline .lane-name { font-size: 28px; font-weight: 750; fill: var(--ink); }
.timeline .axis-break-gap { fill: var(--bg); }
.timeline .axis-break { stroke: var(--line); stroke-width: 2.5; fill: none; }
.timeline .span-bar { fill: var(--c); }
.timeline { overflow: hidden; }   /* nothing drawn outside the box; the runtime logs anything that would be */
.timeline .lane-icon { color: var(--c); fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.timeline .lane-tile { fill: color-mix(in oklab, var(--c) 14%, var(--surface)); stroke: var(--c); stroke-width: 1.5; }   /* the design's outline, at full strength so that it passes 3:1 */
.timeline .lane-track { stroke: var(--line); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }

.over-time .line { fill: none; stroke: var(--c); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.over-time .mark { fill: var(--c); stroke: var(--bg); stroke-width: 3; }
.over-time .leader { stroke: var(--rule-3); stroke-width: 2; stroke-dasharray: 2 6; }
.over-time .series-name { font-size: 26px; font-weight: 600; fill: var(--ink); }
.over-time .series-note { font-size: 22px; fill: var(--ink-3); }
.bars .bar { fill: var(--c); }
.bars .track { fill: color-mix(in oklab, var(--c) 9%, var(--surface)); }   /* the whole scale; decorative, the value at the tip carries the number */
.bars .block-head, .pairs .block-head { font-size: 26px; font-weight: 650; fill: var(--ink); }
.bars .bar.is-neutral { fill: var(--neutral); }   /* a "before" bar */
.bars .leader { fill: none; stroke: var(--line); stroke-width: 2.5; }
/* one 100% bar (data-stack): first part series 1, middle parts neutral, the emphasized part vermillion with a hatch */
.bars .stack-part { fill: var(--neutral); }
.bars .stack-part.is-first { fill: var(--series-1); }
.bars .stack-part.is-emph { stroke: var(--bad); stroke-width: 3; }
.bars .hatch-bg { fill: var(--surface); }
.bars .hatch-line { fill: var(--bad); }
.bars .stack-value { font: 700 26px var(--font-mono); fill: var(--ink); font-variant-numeric: tabular-nums; }
.bars .stack-name { font-size: 24px; font-weight: 500; fill: var(--ink-2); }
/* before and after (data-form="pairs"): open circle, filled circle, a stem with an arrowhead, the signed change */
.pairs .cat-label { font-size: 24px; font-weight: 500; fill: var(--ink); }
.pairs .series-name { font-size: 26px; font-weight: 600; fill: var(--ink); }
.pairs .pair-open { fill: var(--bg); stroke: var(--ink-2); stroke-width: 4; }
.pairs .pair-filled { fill: var(--ink); }
.pairs .pair-stem { stroke: var(--line); stroke-width: 3.5; fill: none; }
.pairs .pair-value { font: 600 26px var(--font-mono); fill: var(--ink); font-variant-numeric: tabular-nums; }
.pairs .pair-change { font: 700 26px var(--font-mono); fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.pairs .pair-open.is-emph { stroke: var(--accent); }
.pairs .pair-filled.is-emph { fill: var(--accent); }
.pairs .pair-stem.is-emph { stroke: var(--accent); }
.pairs .pair-value.is-emph, .pairs .pair-change.is-emph { fill: var(--accent-ink); }
.scatter .annot-label { font-size: 24px; font-weight: 700; fill: var(--accent-ink); }
.scatter .annotation .leader { stroke: var(--accent); }
/* a warning icon keeps its "what can go wrong" color at its own build step */
.diagram .node-icon.warn-ink, .diagram g[data-build].is-current .node-icon.warn-ink { color: var(--bad-ink); }
.bars .block-sub { font-size: 22px; fill: var(--ink-3); }
.bars .bar-value { font: 700 28px var(--font-mono); fill: var(--ink); font-variant-numeric: tabular-nums; }
/* unit meters (data-form="units"): one cell per task, the first cells lit */
.bars .meter .unit { fill: color-mix(in oklab, var(--c) 9%, var(--surface)); stroke: var(--rule-3); stroke-width: 1.2; }   /* an unlit cell is outlined at 3:1 (a stroke is judged at 3:1) */
.bars .meter .unit.is-on { fill: var(--c); stroke: none; }
.bars .cat-label { font-size: 24px; font-weight: 500; fill: var(--ink); }
.scatter .mark { fill: var(--c); stroke: var(--bg); stroke-width: 3; }
.scatter .leader { stroke: var(--line); stroke-width: 2; }
.scatter .point-label { font-size: 22px; font-weight: 600; fill: var(--ink); }
.scatter .series-name { font-size: 26px; font-weight: 600; fill: var(--ink); }
.chart-table { overflow: auto; border: 2px solid var(--rule-card); border-radius: var(--r1); }
.data-table { border-collapse: collapse; width: 100%; font-size: 24px; line-height: 1.3; }
.data-table th, .data-table td { text-align: left; padding: 10px 18px; border-bottom: 1px solid var(--rule); }
.data-table thead th { position: sticky; top: 0; background: var(--surface-2); font-weight: 600; color: var(--ink-2); }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table .date { white-space: nowrap; }   /* "24 Sep 2024" stays on one line */
.data-table a.cite { vertical-align: 0; margin: 0; }
.slide--statement-chart figure.chart { align-self: center; }
.slide > figure.chart { margin-block: auto; }   /* a chart sized to its content sits in the middle of the space under the title */

/* ---------------------------------------------------------------- comparison of the eras on the running example */
.task-strip {
  display: flex; align-items: center; gap: 22px; margin: -8px 0 36px; padding: 18px 28px;
  font-size: var(--fs-body); background: var(--surface); border: 2px solid var(--rule-card); border-radius: var(--r2);
}
.task-strip .icon { width: 44px; height: 44px; color: var(--ink-2); }
.task-tag { font: 600 22px/1 var(--font-sans); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.compare { display: grid; grid-template-columns: 190px repeat(var(--cols), 1fr); grid-template-rows: auto repeat(3, auto); column-gap: 24px; }
.compare-rows, .compare-col { display: grid; grid-row: 1 / span 4; grid-template-rows: subgrid; }
.compare-rows span { padding: 24px 0 0; font: 600 24px/1.2 var(--font-sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); border-top: 2px solid var(--rule); }
.compare-rows span:first-child { border-top: 0; }
.compare-col { background: var(--surface); border: 2px solid var(--rule-card); border-top: 12px solid var(--c); border-radius: 6px 6px var(--r2) var(--r2); padding: 0 28px 8px; }
.compare-col header { display: flex; align-items: center; gap: 16px; padding: 22px 0 20px; }
.compare-col header .icon { width: 52px; height: 52px; color: var(--c); }
.compare-col h3 { font: 700 32px/1.15 var(--font-sans); }
.compare-col p { padding: 22px 0 24px; font-size: var(--fs-body); line-height: 1.3; border-top: 2px solid var(--rule); }
.slide--revisit .compare-col p { font-size: var(--fs-body-min); }   /* four columns are narrower */
.slide--revisit .compare-col h3 { font-size: 30px; }
.compare-col.is-recap { background: var(--bg); }
.compare-col.era-tuned { background: var(--accent-wash); border: 4px solid var(--accent); border-top-width: 12px; box-shadow: var(--shadow-2); }
.compare-col.era-tuned header .icon { color: var(--accent-ink); }

/* ---------------------------------------------------------------- training pipeline */
.pipeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); position: relative; }
.pipeline::before { content: ""; position: absolute; left: calc(100% / var(--n) / 2); right: calc(100% / var(--n) / 2); top: 34px; height: 4px; background: var(--rule-3); }
.pipeline li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 0 12px; text-align: center; }
.pipe-dot {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  font: 700 32px/1 var(--font-sans); color: var(--ink-2); background: var(--bg); border: 4px solid var(--rule-3);
  transition: background-color var(--d-build) var(--ease-out), box-shadow var(--d-build) var(--ease-out);
}
.pipe-label { font: 600 24px/1.25 var(--font-sans); color: var(--ink-2); max-width: 230px; text-wrap: balance; }
.pipeline li.is-past .pipe-dot { background: var(--ink-2); border-color: var(--ink-2); color: var(--bg); }
.pipeline li.is-current .pipe-dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 8px var(--bg), 0 0 0 12px var(--accent); }
.pipeline li.is-current .pipe-label { color: var(--ink); font-weight: 750; }
.pipe-band {
  display: flex; align-items: center; gap: 16px; margin: 40px 0 0; padding: 12px 24px;
  font: 600 var(--fs-body-min)/1.2 var(--font-sans); color: var(--ink-2);
  border: 3px dashed var(--rule-3); border-radius: var(--r2);
}
.pipe-band .icon { width: 40px; height: 40px; }
.pipe-band-num { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--rule-3); font-weight: 700; }
.pipe-band.is-current { border-style: solid; border-color: var(--accent); background: var(--accent-wash); color: var(--ink); }
.pipe-band.is-current .pipe-band-num { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.pipe-details { display: grid; margin-top: 48px; }
.pipe-details > * { grid-area: 1 / 1; align-self: start; }
.pipe-intro { font-size: var(--fs-body); color: var(--ink-2); }
.pipe-detail { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pd { background: var(--surface); border: 2px solid var(--rule-card); border-top: 8px solid var(--line); border-radius: 6px 6px var(--r2) var(--r2); padding: 26px 30px 34px; min-height: 260px; }
.pd h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font: 600 24px/1.2 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.pd h3 .icon { width: 36px; height: 36px; }
.pd p { font-size: var(--fs-body); line-height: 1.32; }
.pd-wrong { border-top-color: var(--bad); }
.pd-wrong h3 { color: var(--bad-ink); }

/* ---------------------------------------------------------------- replayed trajectory */
.traj-meta { margin: -12px 0 32px; font-size: var(--fs-body-min); color: var(--ink-3); }
.traj { display: grid; grid-template-columns: 470px 1fr; gap: 48px; min-height: 0; }
.traj-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.traj-list li {
  display: flex; align-items: center; gap: 18px; padding: 9px 14px; border-radius: 12px;
  font: 500 var(--fs-body-min)/1.2 var(--font-sans); color: var(--ink-3);
  transition: background-color var(--d-build) var(--ease-out);
}
.traj-n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; font: 700 var(--fs-body-min)/1 var(--font-sans); border: 3px solid var(--rule-3); }
.traj-list li.is-past { color: var(--ink-2); }
.traj-list li.is-past .traj-n { background: var(--ink-2); border-color: var(--ink-2); color: var(--bg); }
.traj-list li.is-current { color: var(--ink); font-weight: 700; background: var(--accent-wash); }
.traj-list li.is-current .traj-n { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.traj-stage { display: grid; min-height: 0; }
.traj-card { grid-area: 1 / 1; align-self: start; background: var(--surface); border: 2px solid var(--rule-card); border-radius: var(--r3); padding: 30px 40px 18px; box-shadow: var(--shadow-1); }
.traj-step { margin-bottom: 8px; font: 600 24px/1 var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.traj-title { margin-bottom: 26px; font: 700 44px/1.15 var(--font-display); }
.traj-fields { margin: 0; }
.traj-fields > div { display: grid; grid-template-columns: 236px 1fr; gap: 24px; align-items: baseline; padding: 18px 0; border-top: 2px solid var(--rule); }
.traj-fields dt { display: flex; align-items: center; gap: 12px; font: 600 24px/1.2 var(--font-sans); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.traj-fields dt .icon { width: 34px; height: 34px; color: var(--ink-2); }
.traj-fields dd { margin: 0; font-size: var(--fs-body); line-height: 1.3; }
.traj-fields dd.obs { font: 400 var(--fs-body-min)/1.4 var(--font-sans); padding: 12px 18px; background: var(--surface-2); border-left: 5px solid var(--line); border-radius: 0 var(--r1) var(--r1) 0; }
.tool-chip { font: 500 var(--fs-body-min)/1.3 var(--font-sans); padding: 2px 14px; border: 2px solid var(--rule-3); border-radius: 8px; background: var(--surface-2); }
.traj-card--intro dd { color: var(--ink-2); }

/* ---------------------------------------------------------------- references (generated) */
.ref-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ref { display: grid; grid-template-columns: 290px 1fr; gap: 28px; padding: 10px 18px; border: 3px solid transparent; border-radius: var(--r2); }
.ref-label { padding-top: 3px; font: 700 24px/1.3 var(--font-sans); color: var(--accent-ink); }
.ref-title { font: 600 var(--fs-body-min)/1.3 var(--font-display); color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-3); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.ref-meta { margin-top: 6px; font-size: var(--fs-body-min); line-height: 1.3; color: var(--ink-2); }
.ref-kind { font-weight: 650; }
.ref.is-target { border-color: var(--accent); background: var(--accent-wash); }

/* the era timelines share a top edge: the plot starts a fixed distance under the title instead of being centered, so the three
   read as a set (their heights differ with the number of event rows) */
.slide[data-kind="timeline"] > figure.chart { margin-block: 48px auto; }

/* neon glow under lit marks: dark theme only */
:root[data-theme="dark"] .timeline .lane-line { filter: drop-shadow(0 0 8px color-mix(in oklab, var(--c) 60%, transparent)); }
:root[data-theme="dark"] .timeline .span-bar { filter: drop-shadow(0 0 10px color-mix(in oklab, var(--c) 60%, transparent)); }
:root[data-theme="dark"] .bars .meter .unit.is-on { filter: drop-shadow(0 0 6px color-mix(in oklab, var(--c) 70%, transparent)); }

/* The reference slides are paginated by measuring (js/cite.js: as many entries as fit under the title), and the freeze diff compares what
   each page holds. The title keeps version 1's height (60 px at 1.1, margin 40 px) and the entries keep version 1's type metrics
   above, so every page holds the same entries as in version 1. */
.slide--refs .slide-title { font-size: 60px; line-height: 1.1; margin-bottom: 40px; }

/* count form (data-form="count"): the check in each lit cell of a subset row is stage-colored, 3:1 against the lit cell in both themes */
.bars .check { fill: none; stroke: var(--bg); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
