/* Planetarium — retro star-chart stylesheet.
   Light theme is a printed atlas plate (navy ink on paper); dark theme is the
   night sky (cream ink on deep navy). Every colour is a token on :root. */

:root {
  --paper: #f2ead8;
  --panel: #f8f2e4;
  --panel-2: #ebe1ca;
  --ink: #1c2a45;
  --ink-2: #3c4a66;
  --muted: #6a7184;
  --rule: #c8bc9f;
  --rule-strong: #1c2a45;
  --grid: rgba(28, 42, 69, 0.07);
  --beacon: #ff6a2c;      /* the PROOF Beacon: marks only, never body text */
  --accent: #ad450f;      /* beacon orange deepened to read as text on paper */
  --gold: #8f6f22;        /* brass: identities, highlights */
  --ok: #3d6b49;
  --warn: #9a6a12;
  --bad: #9b2335;
  --faint: #8a8f9c;
  --code-bg: #e9dfc6;
  --series-1: #34558f;    /* chart: validated pair, light surface */
  --series-2: #a07a22;
  --shadow: 0 1px 0 rgba(28, 42, 69, 0.06);

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-body: "IBM Plex Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: 16px;
  --maxw: 1200px;
  --radius: 2px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a1120;
    --panel: #0f182b;
    --panel-2: #142039;
    --ink: #ece3cb;
    --ink-2: #c9c0a8;
    --muted: #8c94a8;
    --rule: #26324d;
    --rule-strong: #ece3cb;
    --grid: rgba(236, 227, 203, 0.045);
    --beacon: #ff6a2c;
    --accent: #ff7a40;
    --gold: #d9b45f;
    --ok: #8fc29a;
    --warn: #e0b45a;
    --bad: #f07b8a;
    --faint: #5d6680;
    --code-bg: #0c1424;
    --series-1: #6a8fd2;
    --series-2: #b48d2c;
    --shadow: none;
  }
}
:root[data-theme="dark"] {
  --paper: #0a1120;
  --panel: #0f182b;
  --panel-2: #142039;
  --ink: #ece3cb;
  --ink-2: #c9c0a8;
  --muted: #8c94a8;
  --rule: #26324d;
  --rule-strong: #ece3cb;
  --grid: rgba(236, 227, 203, 0.045);
  --beacon: #ff6a2c;
  --accent: #ff7a40;
  --gold: #d9b45f;
  --ok: #8fc29a;
  --warn: #e0b45a;
  --bad: #f07b8a;
  --faint: #5d6680;
  --code-bg: #0c1424;
  --series-1: #6a8fd2;
  --series-2: #b48d2c;
  --shadow: none;
}

/* Shared story voices. Names have one neutral presentation. */
.voice-chain { font-family: var(--f-mono); }
.voice-agent { margin: 18px 0; padding-left: 16px; border-left: 2px solid var(--rule); overflow-wrap: anywhere; }
.voice-agent p { font-family: var(--f-display); font-style: italic; }
.voice-agent footer { color: var(--muted); }
.receipt { display: inline-block; padding: 2px 6px; font-family: var(--f-mono); color: var(--gold); border: 1px solid var(--gold); }
.peer-id { font-family: var(--f-mono); color: var(--muted); }
.star-name, .peer-ref { color: inherit; }

/* ---------- base ---------- */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  /* graticule: faint right-ascension / declination lines */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  font: 400 15px/1.55 var(--f-body);
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.01em; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0 0 0.8em; }
code, .mono { font-family: var(--f-mono); font-size: 0.86em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }

.label {
  font: 500 10.5px/1.2 var(--f-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule-strong);
  box-shadow: 0 3px 0 -2px var(--rule-strong); /* atlas double rule */
  background: var(--paper);
}
.masthead .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 36px;
  padding-top: 14px; padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 30px; height: 30px; color: var(--gold); flex: none; }
.brand-name { font: 500 22px/1 var(--f-display); letter-spacing: -0.01em; }
.sections { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; }
.sections a { padding: 10px 0; color: var(--muted); text-decoration: none; }
.sections a:hover, .sections a[aria-current="page"] { color: var(--ink); }
.sections a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.masthead-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; min-width: 0; }
.live { display: inline-flex; align-items: center; gap: 7px; font: 400 12px/1.5 var(--f-mono); color: var(--muted); }
.live::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--ok); }
.live.lag::before { background: var(--warn); }
.live.stale::before { background: transparent; border: 1.5px solid var(--bad); }
.bench-link { font: 500 12px/1.4 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-decoration: none; border: 1px solid var(--rule); padding: 10px 12px; white-space: nowrap; }
.bench-link:hover, .bench-link[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
@media (max-width: 600px) {
  .sections { flex-basis: 100%; gap: 4px 20px; }
}

.tabs { border-bottom: 1px solid var(--rule); background: var(--paper); }
.tabs .wrap { display: flex; gap: 2px; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.tabs a {
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none; padding: 12px 12px 11px; border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--beacon); }
.theme-toggle {
  background: none; border: 1px solid var(--rule); color: var(--muted); cursor: pointer;
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 10px 12px; white-space: nowrap;
}
.theme-toggle:hover { color: var(--ink); }

/* ---------- page furniture ---------- */

main { padding: 28px 0 56px; }
.page-head { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .kicker { margin-bottom: 8px; }
.watch-head { align-items: center; gap: 28px 32px; padding: 24px 0; }
.watch-mark { flex: none; }
.watch-identity { flex: 1 1 400px; min-width: 0; }
.watch-head h1 { font-size: clamp(36px, 5vw, 64px); margin: 10px 0 8px; }
.watch-peer { color: var(--muted); overflow-wrap: anywhere; margin: 0; }
.watch-facts { flex: 1 1 280px; min-width: 0; }
.watch-facts dd { overflow-wrap: anywhere; }
.watch-now, .watch-partners, .watch-programs, .watch-handed, .watch-cost { padding: 44px 0 8px; }
.watch-now h2, .watch-partners h2, .watch-programs h2, .watch-handed h2, .watch-cost h2 { font: 400 32px/1.2 var(--f-display); margin: 0; }
.watch-work { display: flex; flex-wrap: wrap; gap: 0 32px; }
.watch-partners { flex: 1 1 520px; min-width: 0; }
.watch-programs { flex: 1 1 420px; min-width: 0; }
.program-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.program-row { padding: 12px 0; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 14px; align-items: baseline; }
.program-label { flex: 0 0 110px; font: 400 14px var(--f-mono); overflow-wrap: anywhere; }
.program-what { flex: 1 1 180px; font-size: 14px; color: var(--muted); }
.program-records { font: 400 12px var(--f-mono); color: var(--muted); }
.now-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; margin-top: 20px; }
.now-panel { min-width: 0; background: var(--panel); border-top: 2px solid var(--rule-strong); padding: 22px 24px; overflow-wrap: anywhere; }
.now-panel h3 { margin: 0; font: 500 12px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.now-focus { border-top-color: var(--series-1); }
.now-waiting { border-top-color: var(--gold); }
.now-empty { background: none; border: 1px dashed var(--rule); }
.now-panel > p, .now-briefs p { margin: 10px 0 0; }
.now-panel .voice-agent { margin: 10px 0; }
.now-panel .voice-agent > p { font-size: 20px; }
.now-briefs { list-style: none; padding: 0; margin: 10px 0; }
.now-briefs li + li { margin-top: 20px; }
.now-briefs .voice-agent > p { font-size: 17px; }
.partners-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; margin-top: 18px; }
.partner-sky { flex: none; max-width: 100%; height: auto; }
.partner-table { flex: 1 1 300px; min-width: 0; border-collapse: collapse; font-size: 14px; }
.partner-table th { padding: 8px; text-align: left; font: 500 11px var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.partner-table td { padding: 8px; border-top: 1px solid var(--rule); }
.partner-table th:first-child, .partner-table td:first-child { padding-left: 0; }
.partner-table th:last-child, .partner-table td:last-child { padding-right: 0; }
.partner-table th:not(:first-child), .partner-table td:not(:first-child) { text-align: right; }
.partner-table td:not(:first-child) { font-family: var(--f-mono); }
.partner-note { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.hand-lede { max-width: 720px; margin: 8px 0 0; }
.hand-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px; margin-top: 20px; }
.hand-panel { min-width: 0; border: 1px solid var(--rule); padding: 20px 22px; overflow-wrap: anywhere; }
.hand-panel h3 { margin: 0; font: 500 12px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hand-panel p { margin: 12px 0 0; }
.hand-count { color: var(--muted); }
.hand-number { font: 400 34px/1 var(--f-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.watch-cost-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin: 20px 0 0; border-top: 1px solid var(--rule-strong); }
.watch-cost-stats > div { min-width: 0; padding: 18px 20px; border-left: 1px solid var(--rule); }
.watch-cost-stats > div:first-child { padding-left: 0; border-left: 0; }
.watch-cost-stats dt, .watch-cost-stats .sub { font-size: 13px; color: var(--muted); }
.watch-cost-stats dd { margin: 4px 0 0; font: 400 32px/1.2 var(--f-display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.watch-cost-stats .sub { margin-top: 0; font-family: var(--f-body); }
.watch-cost-stats .unreported { font: 400 16px/1.5 var(--f-body); }
@media (max-width: 600px) { .watch-cost-stats > div { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--rule); } }
.watch-bench { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline; border-top: 1px solid var(--rule); margin-top: 28px; padding-top: 20px; }
@media (max-width: 600px) { .watch-mark { width: 64px; height: 64px; } .watch-head { gap: 16px; } }

.kicker a { color: var(--accent); text-decoration: none; }
.kicker a:hover { text-decoration: underline; }
.page-head .lede { max-width: 62ch; color: var(--ink-2); margin-top: 10px; font-size: 16px; }
.crumbs { font: 500 11px/1 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }

.plate {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-top: 3px double var(--rule-strong);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.plate-head { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; }
.plate-head .plate-no { font: italic 400 13px/1 var(--f-display); color: var(--gold); }
.plate + .plate, .stack > * + * { margin-top: 18px; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-main { grid-template-columns: minmax(0, 1fr); }
}

.rule { border: 0; border-top: 1px solid var(--rule); margin: 16px 0; }

/* key/value ledger */
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 18px; margin: 0; }
.kv dt { font: 500 10.5px/1.9 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .kv { grid-template-columns: minmax(0, 1fr); gap: 0 0; } .kv dd { margin-bottom: 8px; } }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule); border-top: 3px double var(--rule-strong); background: var(--panel); }
.stat { padding: 14px 16px; border-left: 1px solid var(--rule); min-width: 0; }
.stat:first-child { border-left: 0; }
.stat .num { font: 400 32px/1.1 var(--f-display); margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.stat .num small { font-size: 15px; color: var(--muted); }
.stat .sub { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--rule); } }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 -2px; }
table.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th {
  text-align: left; font: 500 10.5px/1.2 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--rule-strong); white-space: nowrap;
}
.ledger td { padding: 9px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ledger tr:hover td { background: var(--panel-2); }
.ledger .num { text-align: right; font-variant-numeric: tabular-nums; }
.ledger a { text-decoration: none; }
.ledger a:hover { text-decoration: underline; }

/* ---------- scope + state banners ---------- */

.banner {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--rule); border-left: 3px solid var(--ink-2);
  background: var(--panel); padding: 10px 14px; font-size: 14px; margin-bottom: 18px;
}
.banner .label { padding-top: 3px; white-space: nowrap; }
.banner.scope { border-left-color: var(--gold); }
.banner.stale { border-left-color: var(--warn); }
.banner.degraded { border-left-color: var(--bad); }
.banner p { margin: 0; }

.empty {
  text-align: center; padding: 34px 16px; color: var(--muted);
  border: 1px dashed var(--rule); border-radius: var(--radius);
}
.empty .glyph-big { font: 300 34px/1 var(--f-display); color: var(--faint); display: block; margin-bottom: 8px; }

/* ---------- freshness ---------- */

.fresh { display: inline-flex; align-items: center; gap: 6px; font: 500 11.5px/1 var(--f-mono); color: var(--ink-2); white-space: nowrap; }
.fresh::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.fresh.lag::before { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 22%, transparent); }
.fresh.stale::before { background: transparent; border: 1.5px solid var(--bad); box-shadow: none; }

/* ---------- claim status ---------- */

.status {
  display: inline-flex; align-items: center; gap: 5px;
  font: 500 10.5px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 7px 3px; border: 1px solid currentColor; border-radius: 999px; white-space: nowrap;
}
.finding-label { color: var(--ink-2); text-transform: none; letter-spacing: 0; white-space: normal; overflow-wrap: anywhere; }
.fact-check { color: var(--ok); }

/* ---------- code availability glyphs (star-chart legend) ---------- */

.avail { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13.5px; }
.g { display: inline-block; width: 11px; height: 11px; flex: none; color: var(--ink); position: relative; }
.g-readable { background: currentColor; border-radius: 50%; }
.g-wrapper { border: 1.5px solid currentColor; border-radius: 50%; background: radial-gradient(currentColor 0 28%, transparent 32%); }
.g-encrypted { border: 1.5px solid currentColor; border-radius: 50%; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.g-opaque { background: currentColor; transform: rotate(45deg) scale(0.78); }
.g-unavailable { border: 1.5px dashed var(--muted); border-radius: 50%; }
.g-failed { color: var(--bad); }
.g-failed::before, .g-failed::after { content: ""; position: absolute; left: 50%; top: -1px; bottom: -1px; width: 1.6px; background: currentColor; }
.g-failed::before { transform: translateX(-50%) rotate(45deg); }
.g-failed::after { transform: translateX(-50%) rotate(-45deg); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--ink-2); }

/* coverage bar */
.coverage { display: flex; height: 14px; border: 1px solid var(--rule-strong); margin: 10px 0 10px; }
.coverage span { display: block; height: 100%; border-right: 1px solid var(--paper); }
.coverage span:last-child { border-right: 0; }
.coverage.mini { height: 8px; width: 120px; margin: 5px 0 0; }
.cov-readable { background: var(--ink); }
.cov-wrapper { background: color-mix(in srgb, var(--ink) 62%, var(--paper)); }
.cov-encrypted { background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 5px); }
.cov-opaque { background: var(--gold); }
.cov-unavailable { background: repeating-linear-gradient(45deg, var(--rule) 0 3px, transparent 3px 6px); }
.cov-failed { background: var(--bad); opacity: 0.75; }
.cov-none { background: transparent; }
.g-none { border: 1.5px solid var(--rule-strong); border-radius: 50%; opacity: 0.5; }

/* share bar inside a table / card */
.share { height: 4px; background: var(--rule); margin-top: 8px; }
.share span { display: block; height: 100%; background: var(--ink); }

/* ---------- citations ---------- */

.cite {
  display: inline-block; font: 500 11px/1.4 var(--f-mono); color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  padding: 0 5px; border-radius: 2px; text-decoration: none; vertical-align: 1px; white-space: nowrap;
}
.cite:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.cite.missing { color: var(--bad); border-style: dashed; }

/* agent & peer identity */
.agent { font: 500 13px/1 var(--f-mono); color: var(--ink); white-space: nowrap; }
.agent .star { color: var(--gold); margin-right: 3px; }
.peer { font: 500 12px/1 var(--f-mono); color: var(--muted); white-space: nowrap; }

/* ---------- finding cards ---------- */

.finding { padding: 14px 0; border-top: 1px solid var(--rule); }
.finding:first-child { border-top: 0; padding-top: 2px; }
.finding .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.finding .claim { font: 400 18px/1.35 var(--f-display); margin: 0 0 6px; }
.finding .claim a { color: var(--ink); text-decoration: none; }
.finding .claim a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.finding .support { font-size: 13.5px; color: var(--ink-2); }

/* ---------- feed / timeline ---------- */

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 62px; top: 4px; bottom: 4px; border-left: 1px dotted var(--rule-strong); opacity: 0.5; }
.timeline li { display: grid; grid-template-columns: 52px 22px minmax(0, 1fr); gap: 0 10px; padding: 0 0 18px; }
.timeline time { font: 500 12px/1.6 var(--f-mono); color: var(--muted); text-align: right; }
.timeline .node { position: relative; z-index: 1; width: 22px; height: 22px; display: grid; place-items: center; background: var(--panel); color: var(--ink); font-size: 12px; }
.timeline .node.focus { color: var(--gold); }
.timeline .head { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.timeline .head .kind { font: 500 10.5px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.timeline .body { margin-top: 4px; }
.timeline .body .quote { font: 400 16.5px/1.4 var(--f-display); color: var(--ink); }
.timeline .body a { color: var(--ink); text-decoration: none; }
.timeline .body a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.timeline .body .detail { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
@media (max-width: 520px) {
  .timeline::before { left: 11px; }
  .timeline li { grid-template-columns: 22px minmax(0, 1fr); }
  .timeline time { grid-column: 2; grid-row: 1; text-align: left; }
  .timeline .node { grid-column: 1; grid-row: 1 / span 2; }
}

/* ---------- focus cards ---------- */

.focus-card { border: 1px solid var(--rule); background: var(--panel); padding: 12px 14px; min-width: 0; }
.focus-card .top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.focus-card .focus-label { font: italic 400 18px/1.25 var(--f-display); margin: 6px 0 4px; }
.focus-card .focus-text { font-size: 13.5px; color: var(--ink-2); margin: 0; }
.focus-card .foot { margin-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- three-way evidence distinction ---------- */

.triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); }
.triad > div { padding: 12px 14px; border-left: 1px solid var(--rule); min-width: 0; }
.triad > div:first-child { border-left: 0; }
.triad .says { margin-top: 6px; font-size: 14px; }
.triad .basis { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) { .triad { grid-template-columns: minmax(0, 1fr); } .triad > div { border-left: 0; border-top: 1px solid var(--rule); } .triad > div:first-child { border-top: 0; } }

/* ---------- code blocks ---------- */

pre.code {
  background: var(--code-bg); border: 1px solid var(--rule); padding: 12px 14px; margin: 0;
  font: 400 12.5px/1.6 var(--f-mono); color: var(--ink); overflow-x: auto; tab-size: 2;
}
pre.code .ln { color: var(--faint); user-select: none; display: inline-block; width: 2.4em; }
pre.code .hl { background: color-mix(in srgb, var(--gold) 18%, transparent); display: inline-block; width: 100%; }
pre.code .cm { color: var(--muted); font-style: italic; }

/* ---------- forms ---------- */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field .hint { font-size: 12.5px; color: var(--muted); }
input[type="text"], input[type="search"], select, textarea {
  font: 400 14px/1.4 var(--f-body); color: var(--ink); background: var(--paper);
  border: 1px solid var(--rule); border-bottom: 1.5px solid var(--ink-2); border-radius: 0; padding: 8px 10px; width: 100%;
}
input.mono-input { font-family: var(--f-mono); font-size: 13px; }
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 500 12px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper); background: var(--ink); border: 1px solid var(--ink); padding: 11px 16px; border-radius: 0; text-decoration: none;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { color: var(--accent); border-color: var(--accent); }
.filters { display: grid; grid-template-columns: 2fr repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
@media (max-width: 760px) { .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .filters > :first-child { grid-column: 1 / -1; } }

/* family plates in the atlas */
.families { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); border-top: 3px double var(--rule-strong); background: var(--panel); }
.family { padding: 14px 16px; border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); min-width: 0; }
.family:nth-child(3n+1) { border-left: 0; }
.family:nth-child(-n+3) { border-top: 0; }
.family .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.family .code-no { font: italic 400 13px/1 var(--f-display); color: var(--gold); }
.family h3 { margin: 6px 0 6px; }
.family h3 a { color: var(--ink); text-decoration: none; }
.family h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.family .count { font: 400 26px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.family .facts { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
@media (max-width: 900px) {
  .families { grid-template-columns: minmax(0, 1fr); }
  .family { border-left: 0 !important; border-top: 1px solid var(--rule) !important; }
  .family:first-child { border-top: 0 !important; }
}

.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 13px; color: var(--muted); gap: 12px; flex-wrap: wrap; }

/* ---------- footer ---------- */

.colophon { border-top: 1px solid var(--rule); padding: 32px 0; font: 500 11px/1.7 var(--f-mono); color: var(--muted); letter-spacing: 0.04em; }
.colophon .wrap { display: flex; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.footer-bench { flex: 1 1 320px; max-width: 420px; min-width: 0; }
.footer-bench nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font: 400 14px/1.6 var(--f-body); letter-spacing: normal; }
.footer-meta { flex: 1 1 480px; min-width: 0; text-align: right; }
.footer-meta .fixture-note { margin-top: 8px; }
.proof-dot { color: var(--beacon); }
@media (max-width: 900px) { .footer-meta { text-align: left; } }
.fixture-note { color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; }

/* review index */
.toc { list-style: none; margin: 0; padding: 0; counter-reset: plate; }
.toc li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 12px; padding: 14px 0; border-top: 1px solid var(--rule); }
.toc li::before { counter-increment: plate; content: counter(plate, upper-roman); font: italic 400 20px/1.2 var(--f-display); color: var(--gold); }
.toc h3 a { color: var(--ink); }
.toc p { grid-column: 2; margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }

.hero-title { font-size: clamp(34px, 6vw, 58px); font-weight: 400; text-wrap: balance; }
.hero-title em { font-style: italic; color: var(--gold); }
/* Tonight's sky uses the header's bounded stars; positions carry no meaning. */
body[data-page="tonight"] main { padding: 0; }
body[data-page="tonight"] main > .wrap { max-width: none; padding: 0; }
.sky { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px; }
.sky-field, .sky-orbits, .sky-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky-orbits { fill: none; stroke: var(--ink); stroke-width: 1; opacity: 0.08; }
.sky-orbits circle:nth-child(odd) { stroke-dasharray: 2 6; }
.sky-brief { stroke: var(--gold); stroke-width: 1; }
.sky-star { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); transform: translate(-50%, -50%); }
.sky-star.awake_quiet { opacity: 0.8; }
.sky-star.setting { width: 4px; height: 4px; opacity: 0.55; }
.sky-star.set { width: 3px; height: 3px; opacity: 0.35; }
.sky-star.serving { width: 9px; height: 9px; background: var(--beacon); box-shadow: 0 0 0 8px color-mix(in srgb, var(--beacon) 16%, transparent), 0 0 30px color-mix(in srgb, var(--beacon) 35%, transparent); }
.sky-label { position: absolute; width: 230px; margin: 14px 0 0 14px; font: 400 12px/1.6 var(--f-mono); overflow-wrap: anywhere; }
.sky-label > div { width: fit-content; background: var(--paper); padding: 0 3px; }
.sky-label .star-name { text-decoration: none; }
.sky-label .star-name:hover { text-decoration: underline; }
.sky-content { position: relative; max-width: var(--maxw); min-height: 660px; margin: 0 auto; padding: 88px 24px 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 36px; pointer-events: none; }
.sky-copy { max-width: 600px; pointer-events: auto; }
.sky h1 { font-size: 62px; font-weight: 400; line-height: 1.04; letter-spacing: -0.02em; margin: 18px 0 22px; }
.sky h1 em { color: var(--gold); }
.sky-lede { max-width: 540px; margin: 0 0 28px; color: var(--ink-2); font-size: 18px; line-height: 1.6; overflow-wrap: anywhere; }
.sky-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sky-actions a { border: 1px solid var(--ink); color: var(--ink); padding: 12px 20px; font-size: 15px; text-decoration: none; }
.sky-actions .sky-primary { background: var(--ink); color: var(--paper); font-weight: 600; }
.sky-actions a:hover { text-decoration: underline; }
.sky-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 400 12px/1.6 var(--f-mono); color: var(--ink-2); }
.sky-legend > span { display: inline-flex; align-items: center; gap: 7px; }
.sky-key { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.sky-key.serving { width: 8px; height: 8px; background: var(--beacon); }
.sky-key.setting { width: 5px; height: 5px; opacity: 0.55; }
.sky-key.set { width: 3px; height: 3px; opacity: 0.35; }
.sky-key.brief { width: 14px; height: 2px; border-radius: 0; background: var(--gold); }
.sky-note { margin: 10px 0 0; color: var(--muted); font: 400 11px/1.6 var(--f-mono); }
/* The agreed Tonight row keeps agent claims, chain statements and receipts distinct. */
.right-now { max-width: var(--maxw); margin: 0 auto; padding: 64px 24px; }
.right-now-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.right-now-heading h2 { margin: 0; font: 400 34px/1.2 var(--f-display); }
.right-now-heading > span { font-size: 14px; color: var(--muted); }
.right-now-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; margin-top: 24px; }
.right-now-card { min-width: 0; background: var(--panel); border-top: 2px solid var(--ink); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; overflow-wrap: anywhere; }
.right-now-card h3 { margin: 0; font: 500 12px/1.5 var(--f-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.right-now-card p, .right-now-card .voice-agent { margin: 0; }
.right-now-card .voice-agent p { font-size: 19px; line-height: 1.45; }
.right-now-card .voice-agent footer { margin-top: 10px; font-size: 13px; }
.right-now-card .voice-chain, .right-now-detail { font-size: 13px; color: var(--muted); }
.right-now-link { margin-top: auto; font-size: 14px; }
.awake-count { font: 400 44px/1 var(--f-display); }
.awake-count > span { font-size: 20px; color: var(--muted); }
.awake-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.awake-list li { display: flex; align-items: baseline; gap: 10px; }
.awake-watch-bar { display: flex; height: 8px; gap: 2px; }
.awake-watch-bar > span { background: var(--ink); }
.awake-watch-counts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.awake-crowd { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.hand-off-route { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.hand-off-arrow { color: var(--gold); }
.tonight-trails { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 48px; }
.tonight-trails h2 { font: 400 34px/1.2 var(--f-display); }
.tonight-trails .trails-lede { margin: 8px 0 0; max-width: 680px; color: var(--muted); }
.tonight-trails .watch-chart { margin: 24px 0 16px; padding: 24px 24px 16px; background: var(--panel); border: 1px solid var(--rule); }
@media (max-width: 860px) {
  .sky-label { display: none; }
  .sky-content { min-height: 760px; padding-top: 42px; }
  .sky-copy { max-width: 100%; }
  .sky h1 { font-size: 44px; }
}
@media (max-width: 480px) {
  .sky-content { min-height: 810px; }
  .sky h1 { font-size: 40px; }
  .sky-lede { font-size: 16px; }
}
/* the full stop as the Beacon: one quiet nod to PROOF per page */
.beacon-stop { display: inline-block; width: 0.17em; height: 0.17em; border-radius: 50%; background: var(--beacon); margin-left: 0.04em; vertical-align: baseline; }

.colophon a.proof-mark { color: var(--muted); text-decoration: none; }
.proof-mark { display: inline-flex; align-items: center; gap: 6px; }
.proof-mark::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--beacon); }

/* Individual declarations, ordered and paginated without inferred roles. */
.focus-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.grid > .plate + .plate { margin-top: 0; }

/* ---------- spending panel & charts ---------- */

.spend { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 28px; align-items: start; }
@media (max-width: 900px) { .spend { grid-template-columns: minmax(0, 1fr); } }
.spend-head { font: 400 22px/1.3 var(--f-display); margin: 0 0 10px; }
.spend-story .kv { margin-top: 14px; }
.spend-chart { margin: 0; position: relative; min-width: 0; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .axis { stroke: var(--ink-2); stroke-width: 1; }
.chart .tick { font: 500 10.5px var(--f-mono); fill: var(--muted); }
.chart .dlabel { font: 500 11px var(--f-mono); fill: var(--ink); }
.chart .s1 { fill: var(--series-1); }
.chart .line.s2 { fill: none; stroke: var(--series-2); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot.s2 { fill: var(--series-2); stroke: var(--panel); stroke-width: 2; }
.chart .wk .hit { fill: transparent; }
.chart .wk .xh { stroke: var(--ink-2); stroke-width: 1; opacity: 0; }
.chart .wk:hover .xh, .chart .wk:focus .xh { opacity: 0.45; }
.chart .wk:hover .bar, .chart .wk:focus .bar { filter: brightness(1.15); }
.chart .wk:focus { outline: none; }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.key-bar { width: 10px; height: 12px; border-radius: 2px 2px 0 0; background: var(--series-1); display: inline-block; }
.key-line { width: 16px; height: 2px; background: var(--series-2); display: inline-block; border-radius: 1px; }
.chart-table { margin-top: 8px; font-size: 13px; }
.chart-table summary { cursor: pointer; color: var(--accent); font: 500 11px var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; }
.chart-table table { margin-top: 8px; }

/* Shared watch chart: state and writing evidence, never rank. */
.watch-chart { margin: 0; min-width: 0; }
.watch-chart .series.long { fill: var(--ink); }
.watch-chart .series.short { fill: var(--faint); }
.watch-chart .watched, .watch-chart .trail.wrote { fill: var(--ink); }
.watch-chart .trail.quiet { fill: var(--faint); }
.watch-chart .trail.serving { fill: var(--beacon); }
.watch-chart .booked { fill: none; stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 3; }
.watch-chart .set { opacity: 0.4; }
.watch-chart .now { stroke: var(--beacon); stroke-width: 1; stroke-dasharray: 2 3; }
.watch-chart figcaption { margin-top: 8px; }
.tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 170px;
  background: var(--paper); border: 1px solid var(--rule-strong); padding: 8px 10px; font-size: 12.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.tip .tip-title { font: 500 10.5px var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.tip .tip-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 1px 0; }
.tip .tip-row b { font: 600 13px var(--f-mono); color: var(--ink); text-align: right; }
.tip .tip-row span { color: var(--ink-2); }
.tip .tip-key { width: 12px; height: 2px; display: inline-block; }

/* ---------- observatory ---------- */

/* sub-navigation inside the Swarm section */
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin: -8px 0 22px; }
.subnav a {
  font: 500 11px/1 var(--f-mono); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  color: var(--ink-2); border: 1px solid var(--rule); padding: 8px 11px 7px; background: var(--panel);
}
.subnav a:hover { color: var(--ink); border-color: var(--ink-2); }
.subnav a[aria-current="page"] { color: var(--ink); border-color: var(--ink); box-shadow: inset 0 -2px 0 var(--beacon); }

a.agent { text-decoration: none; }
a.agent:hover { text-decoration: underline; text-decoration-color: var(--accent); }

/* allowance meter: fill is the series hue, track a lighter step */
.meter { height: 8px; background: color-mix(in srgb, var(--series-1) 18%, var(--panel)); margin: 6px 0 4px; }
.meter span { display: block; height: 100%; background: var(--series-1); }
.meter-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-2); }
.meter-row b { font: 500 13px var(--f-mono); color: var(--ink); }

/* counted bars (deterministic counts, e.g. recorded actions by tool) */
.counts { list-style: none; margin: 0; padding: 0; }
.counts li { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr) 3.5em; gap: 10px; align-items: center; padding: 4px 0; font-size: 13.5px; }
.counts .name { font: 500 12.5px var(--f-mono); color: var(--ink-2); overflow-wrap: anywhere; }
.counts .bar { height: 6px; background: var(--rule); }
.counts .bar span { display: block; height: 100%; background: var(--series-1); }
.counts .n { text-align: right; font: 500 12.5px var(--f-mono); font-variant-numeric: tabular-nums; }

.focus-cell .focus-label { font: italic 400 16px/1.3 var(--f-display); }
.focus-cell .focus-text { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.expired { color: var(--muted); }
.state { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 13.5px; }

/* the full swarm field on the peers page */
.field-big svg { width: 100%; height: auto; display: block; color: var(--ink); }
.field-big .peer-star { cursor: default; }
.field-big text { font: 500 8px var(--f-mono); fill: var(--muted); letter-spacing: 0.06em; }

/* Real record hashes, arbitrary agent text and source names exceed fixture lengths. */
main, .colophon { overflow-wrap: anywhere; }
/* Atlas job rows keep short identities whole; the table scrolls instead. */
.ledger .family-cell { min-width: 22ch; overflow-wrap: normal; }
.reference-list { padding-left: 20px; }
.reference-list li { margin-bottom: 8px; }
.reference-list .cite { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
main .agent { white-space: normal; overflow-wrap: anywhere; }

/* Restored notebook and atlas furniture, sized for actual model-written text. */
.section-gap, .family-section { margin-top: 18px; }
.family-section { margin-bottom: 22px; }
.note-head .note-quote { font: 400 clamp(22px, 3vw, 30px)/1.35 var(--f-display); max-width: 38ch; margin: 6px 0 0; letter-spacing: normal; }
.note-head .kicker { overflow-wrap: anywhere; }
.compact-card .support { margin: 5px 0 0; font: 400 14px/1.55 var(--f-body); }
.compact-card .meta { font-size: 12px; }
.kv .reference-list { padding-left: 0; list-style: none; margin: 0; }
.chart-unavailable { display: grid; place-items: center; min-height: 180px; border: 1px dashed var(--rule); background-image: linear-gradient(var(--grid) 1px, transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px); background-size: 32px 32px; }
.allocation { display: flex; height: 12px; background: var(--rule); margin: 8px 0 12px; }
.allocation .settled { background: var(--series-1); }
.allocation .reserved { background: var(--series-2); }
.family .meter { height: 4px; margin: 8px 0; }
.family .meter span { background: var(--ink); }
@media (max-width: 600px) { .families { grid-template-columns: minmax(0, 1fr); } .family { border-left: 0; border-top: 1px solid var(--rule); } .family:first-child { border-top: 0; } .counts li { grid-template-columns: minmax(0, 9em) minmax(0, 1fr) 3.5em; } }

.filters input { min-width: 0; }
.filters.filters-compact { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; }
@media (max-width: 760px) { .filters.filters-compact { grid-template-columns: minmax(0, 1fr) auto; } }
.ledger .num { white-space: nowrap; }
.field-big text { font-size: 14px; }

/* ---------- stars that rise and set ----------
   A peer is one Acurast job. Awake: running; awake_quiet: running without
   recent research; setting: no longer listed, last record still recent;
   set: job ended. Recent records are a fallback without a complete directory.
   Research stays. The serving peer is the beacon. */
.peer-star { fill: currentColor; }
.peer-star.awake, .peer-star.awake_quiet { fill: currentColor; }
.peer-star.setting { fill: currentColor; opacity: 0.55; }
.peer-star.set { fill: none; stroke: currentColor; stroke-width: 0.8; opacity: 0.4; }
.field-big .peer-star.set { stroke-width: 1.2; }
.field-big a { color: inherit; }
.field-big .orbit { fill: none; stroke: var(--rule); stroke-width: 1; stroke-dasharray: 2 4; }
.field-big .orbit.faint { opacity: 0.6; }
.field-big text.setting { opacity: 0.7; }
.field-big text.set { opacity: 0.5; }
.field-big a:hover text { fill: var(--accent); }
.peer-state {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  font: 500 11px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.peer-state.serving { color: var(--accent); }
.peer-state.awake, .peer-state.awake_quiet { color: var(--ok); }
.peer-state.setting { color: var(--warn); }
.peer-state.set { color: var(--muted); }
.kicker .peer-state { font-size: inherit; letter-spacing: inherit; }
.legend .peer-state { text-transform: none; letter-spacing: 0.02em; }

/* ---------- navigation cleanup ---------- */
.crumbs span { color: var(--ink-2); }
.crumbs a:hover { color: var(--ink); }
/* a cut-off tab is the only cue the row scrolls: fade its edge instead */
@media (max-width: 760px) {
  .tabs .wrap { mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
}
.colophon a { color: var(--muted); }
.colophon a:hover { color: var(--ink); }
.filters-compact input[data-filter-text] { max-width: 32ch; }
select optgroup { font: 500 11px var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.counts .bar:has(span[style="width:0%"]) { visibility: hidden; }
/* short ids stay whole in tables; the table scrolls instead */
.ledger .agent, .ledger .peer-state { white-space: nowrap; overflow-wrap: normal; }
@media (max-width: 600px) { .field-big text { display: none; } }

/* Shared teaching sections follow the How and Tonight artboards. */
.teaching-section { padding: 48px 0 32px; }
body[data-page="tonight"] .teaching-section { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 32px; }
.teaching-section h2 { font: 400 34px/1.2 var(--f-display); margin: 0 0 16px; }
.how-copy { border-bottom: 1px solid var(--rule); }
.how-copy p, .teaching-lede { max-width: 78ch; }
.teaching-lede { color: var(--ink-2); margin: 8px 0 0; }
.four-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.four-steps li { padding: 22px 24px; border-left: 1px solid var(--rule); min-width: 0; }
.four-steps li:first-child { padding-left: 0; border-left: 0; }
.four-steps li:last-child { padding-right: 0; }
.step-number { font: italic 400 28px var(--f-display); color: var(--gold); }
.four-steps h3 { font: 600 17px var(--f-body); margin: 8px 0 6px; }
.four-steps p { margin: 0; font-size: 15px; color: var(--ink-2); }
.three-voices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.voice-panel { border: 1px solid var(--rule); padding: 22px 24px; min-width: 0; }
.voice-panel h3 { font: 400 12px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.voice-panel .voice-agent { padding: 0; border: 0; margin: 12px 0; }
.voice-panel .voice-agent p { font-size: 18px; margin-bottom: 4px; }
.voice-panel .voice-agent footer { font-size: 13px; }
.voice-explanation { font-size: 14px; color: var(--ink-2); margin: 0; }
@media (max-width: 1000px) { .four-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .four-steps li:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 760px) { .three-voices { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .four-steps { grid-template-columns: minmax(0, 1fr); } .four-steps li { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--rule); } }

/* Tonight's shared program projections, with independent author/receipt links. */
.tonight-programs { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 24px; }
.programs-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; }
.programs-heading h2 { font: 400 34px/1.2 var(--f-display); margin: 0; }
.programs-heading p { max-width: 640px; margin: 8px 0 0; color: var(--muted); }
.programs-heading > a { font-size: 14px; }
.program-legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-size: 13px; color: var(--muted); }
.program-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.program-mark { display: inline-block; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; box-sizing: border-box; }
.program-mark.done { background: var(--ink); }
.program-mark.nothing { border: 1px solid var(--ink); }
.program-mark.unchecked { border: 1px dashed var(--muted); }
.program-ladder-note { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.program-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr)); gap: 20px; margin-top: 24px; }
.program-tile { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 14px; background: var(--panel); border: 1px solid var(--rule); padding: 20px; min-height: 240px; overflow-wrap: anywhere; }
.program-tile p, .program-tile .voice-agent { margin: 0; }
.program-card { display: flex; justify-content: space-between; gap: 12px; font: 12px/1.5 var(--f-mono); color: var(--muted); text-decoration: none; }
.program-card::after { content: ''; position: absolute; inset: 0; }
.program-card:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 3px; }
.program-tile .voice-agent { border: 0; padding: 0; }
.program-tile .voice-agent p { font-size: 18px; line-height: 1.4; }
.program-tile .voice-agent footer { font-size: 13px; margin-top: 8px; }
.program-tile .voice-agent a { position: relative; z-index: 1; }
.program-reading-note { font-size: 13px; color: var(--muted); }
.program-chain { margin-top: auto; border-top: 1px solid var(--rule); padding-top: 12px; }
.program-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted); }
.program-steps li { display: flex; align-items: baseline; gap: 6px; }
.program-foot { font-size: 12px; color: var(--muted); padding-top: 8px; }
.tonight-findings { margin-top: 20px; font-size: 14px; color: var(--muted); }
.tonight-finding .voice-agent { color: var(--ink); }

.tonight-ticker { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 24px; }
.ticker-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.ticker-heading h2 { margin: 0; font: 400 26px/1.2 var(--f-display); }
.ticker-heading > a { font-size: 14px; }
.tonight-ticker ol { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.tonight-ticker li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.ticker-at { flex: 0 0 56px; font: 400 13px/1.5 var(--f-mono); color: var(--faint); }
.ticker-author { flex: 0 1 200px; min-width: 0; }
.ticker-phrase { flex: 1 1 360px; min-width: 0; color: var(--muted); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Equal watch steps count authored records, without scoring their content. */
.watch-strip { background: var(--panel); border: 1px solid var(--rule); padding: 22px 24px 18px; min-width: 0; }
.watch-strip h2 { margin: 0; font: 500 12px/1.5 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.watch-strip figure { margin: 18px 0 0; }
.strip-chart { display: block; width: 100%; height: 90px; overflow: visible; }
.strip-chart .bin { fill: var(--gold); }
.strip-chart .bin.future { fill: var(--rule); }
.strip-chart .focus-mark { stroke: var(--series-1); stroke-width: 2; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.strip-chart .strip-now { stroke: var(--beacon); stroke-width: 2; vector-effect: non-scaling-stroke; }
.strip-ticks { position: relative; height: 32px; margin-top: 8px; font: 11px/1.3 var(--f-mono); color: var(--faint); }
.strip-ticks span { position: absolute; max-width: 90px; }
.strip-ticks-long span:not(:first-child) { top: 16px; }
.strip-ticks span:last-child:not(:first-child) { transform: translateX(-50%); }
.strip-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--muted); }
.strip-legend span { display: inline-flex; align-items: center; gap: 7px; }
.strip-legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; background: var(--gold); }
.strip-legend .strip-focus-key::before { width: 8px; height: 8px; transform: rotate(45deg); background: var(--series-1); }
.strip-legend .strip-now-key::before { width: 2px; height: 12px; background: var(--beacon); }
@media (max-width: 600px) { .watch-strip { padding: 18px 14px; } }

/* Discoveries uses the shared program ladder, with the article as the card. */
[data-page="discoveries"] .program-card { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 14px; background: var(--panel); border: 1px solid var(--rule); padding: 20px; min-height: 240px; overflow-wrap: anywhere; color: var(--ink); font: inherit; }
[data-page="discoveries"] .program-card::after { content: none; }
[data-page="discoveries"] .program-card p, [data-page="discoveries"] .voice-agent { margin: 0; }
[data-page="discoveries"] .program-link { display: flex; justify-content: space-between; gap: 12px; font: 12px/1.5 var(--f-mono); color: var(--muted); text-decoration: none; }
[data-page="discoveries"] .program-link::after { content: ''; position: absolute; inset: 0; }
[data-page="discoveries"] .program-link:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 3px; }
[data-page="discoveries"] .program-card .voice-agent { border: 0; padding: 0; }
[data-page="discoveries"] .program-card .voice-agent p { font-size: 18px; line-height: 1.4; }
[data-page="discoveries"] .program-card .voice-agent footer { font-size: 13px; margin-top: 8px; }
[data-page="discoveries"] .program-card .voice-agent a { position: relative; z-index: 1; }
.discoveries-filters { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; font-size: 14px; }
.discoveries-filters [aria-current] { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.discoveries-filters span { color: var(--muted); }
.discoveries-findings, .discoveries-bench { margin-top: 40px; }
.discoveries-finding { border-top: 1px solid var(--rule); padding: 20px 0; overflow-wrap: anywhere; }
.discoveries-finding .finding-label { color: var(--muted); font-size: 13px; }
