/* The Road to Superintelligence — 1965 to the White House Accord.
 *
 * Shares the paper, type and sidebar of the other AI timelines (built from
 * Rise of the Personal Agent's stylesheet). Each band has one hue (ideas
 * violet, labs rust, rules blue, machines green) and is also named in text;
 * an event's kind is carried by its shape, so the page reads in grayscale.
 * The Accord itself is gold.
 */
:root {
  --paper: #f5f3ec;
  --card: #fbfaf6;
  --card-strong: #fffefb;
  --ink: #1c1b18;
  --ink-2: #4f4c45;
  --ink-3: #847f74;
  --rule: #dad5c9;
  --rule-soft: #e8e4d9;
  --accent: #a64f2a;
  --wash: rgba(28, 27, 24, 0.045);

  --v-openai: #4a3aa7;
  --v-anthropic: #d65a24;
  --v-google: #2a78d6;

  --b-ideas: #6b4f9a;
  --b-labs: #b2472a;
  --b-rules: #2a6f8f;
  --b-machines: #2f7d4f;
  --b-key: #b07a12;
  --key-soft: #f3e6c4;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --side-w: 316px;
  --name-w: 15.5rem;
  --verdict-w: 15rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-padding-top: calc(var(--appnav-h, 0px) + 24px); }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); font-size: 0.92em; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* ---------- layout ---------- */

.layout {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  max-width: 1720px;
  margin: 0 auto;
}

/* ---------- sidebar ---------- */

.side {
  position: sticky;
  top: var(--appnav-h, 0px);
  height: calc(100vh - var(--appnav-h, 0px));
  height: calc(100dvh - var(--appnav-h, 0px));
  border-right: 1px solid var(--rule-soft);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.side-inner { padding: 1.3rem 1.2rem 1.6rem 1.35rem; }

.kicker {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.wordmark {
  margin-top: 0.3rem;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2.5rem;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.wordmark em { font-style: italic; color: var(--accent); }
.lede { margin-top: 0.7rem; font-size: 0.86rem; line-height: 1.55; color: var(--ink-2); }
.lede strong { color: var(--ink); font-weight: 600; }

.side-h {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.score { margin-top: 1.1rem; }
.score-table { width: 100%; border-collapse: collapse; margin-top: 0.3rem; font-size: 0.76rem; }
.score-table thead th {
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 500;
  color: var(--ink-3);
  text-align: right;
  padding: 0 0 0.2rem 0.3rem;
  vertical-align: bottom;
  line-height: 1.15;
}
.score-table tbody th { text-align: left; font-weight: 500; white-space: nowrap; padding: 0.22rem 0; }
.score-table tbody th i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.4rem; vertical-align: 0; }
.score-table td { text-align: right; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); padding: 0.22rem 0 0.22rem 0.3rem; }
.score-table td b { color: var(--ink); font-weight: 600; font-size: 0.8rem; }
.score-table tbody tr + tr > * { border-top: 1px solid var(--rule-soft); }
.score-note { margin-top: 0.4rem; font-size: 0.7rem; line-height: 1.45; color: var(--ink-3); }

.controls { margin-top: 1.1rem; display: grid; gap: 0.6rem; }
.control-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; }
.control-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  width: 3rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; flex: 1; }
.chip {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.16rem 0.55rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.seg button { font-size: 0.72rem; font-weight: 500; padding: 0.2rem 0.55rem; border: 0; background: var(--card); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--rule); }
.seg button:hover { background: var(--wash); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.key {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 0.6rem;
  margin-top: 1rem;
  font-size: 0.7rem;
  color: var(--ink-2);
}
.key li { display: flex; align-items: center; gap: 0.38rem; }
.k-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.k-first { background: var(--card); box-shadow: 0 0 0 1.6px var(--ink); }
.k-none { background: var(--paper); border: 1.6px dashed var(--ink-3); }
.rule { margin-top: 0.8rem; font-size: 0.7rem; line-height: 1.5; color: var(--ink-3); }
.side-foot { margin-top: 1rem; font-size: 0.78rem; color: var(--ink-3); }

/* ---------- reading ---------- */

.reading, .sources, .table-sec, .off-grid {
  max-width: 1720px;
  margin: 0 auto;
  padding: 3rem 1.6rem 1rem calc(var(--side-w) + 1.4rem);
}
.reading h2, .sources h2, .table-sec h2, .off-grid h2 { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1; }
.reading h2 em, .sources h2 em, .table-sec h2 em, .off-grid h2 em { font-style: italic; color: var(--accent); }
.reading .reading-lede, .sources .sources-lede, .off-grid .sources-lede { margin-top: 0.6rem; max-width: 70ch; color: var(--ink-2); font-size: 0.95rem; }
.findings {
  list-style: none;
  counter-reset: f;
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr));
  gap: 1rem 1.6rem;
}
.findings li { counter-increment: f; border-top: 1px solid var(--rule); padding-top: 0.75rem; }
.findings h3 { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.findings h3::before {
  content: counter(f, decimal-leading-zero);
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ink-3);
  margin-bottom: 0.2rem;
}
.findings p { margin-top: 0.4rem; font-size: 0.875rem; line-height: 1.6; }
.findings .refs { font-size: 0.76rem; color: var(--ink-3); }
.findings .refs a { color: var(--ink-2); }

/* ---------- table ---------- */

.tbl-scroll { overflow-x: auto; margin-top: 1rem; }
.ftable { border-collapse: collapse; font-size: 0.8rem; min-width: 42rem; width: 100%; max-width: 72rem; }
.ftable th, .ftable td { text-align: left; padding: 0.3rem 0.8rem 0.3rem 0; border-bottom: 1px solid var(--rule-soft); vertical-align: baseline; }
.ftable thead th { font-weight: 600; font-size: 0.78rem; white-space: nowrap; border-bottom-color: var(--rule); }
.ftable thead th i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.35rem; }
.ftable tbody th { font-weight: 500; }
.ftable tbody th a { color: var(--ink); text-decoration-color: var(--rule); }
.ftable td { font-family: var(--mono); font-size: 0.74rem; white-space: nowrap; }
.ftable td a { color: var(--ink-2); text-decoration-color: var(--rule); }
.ftable td.t-first a { color: var(--ink); font-weight: 600; }
.t-tag, .t-lag { font-size: 0.64rem; color: var(--ink-3); }
.t-tag { text-transform: uppercase; letter-spacing: 0.06em; }
.ftable td.t-none { color: var(--ink-3); }
.ftable tr.tg th { padding-top: 0.9rem; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }

/* ---------- sources ---------- */

.sources-sub { margin-top: 1rem; font-size: 0.8rem; color: var(--ink-2); }
.source-list { margin-top: 0.5rem; columns: 2 26rem; column-gap: 2rem; font-size: 0.78rem; line-height: 1.45; color: var(--ink-2); padding-left: 1.4rem; }
.source-list li { break-inside: avoid; margin-bottom: 0.4rem; }
.source-list a { color: var(--ink); text-decoration-color: var(--rule); }

.colophon {
  max-width: 1720px;
  margin: 0 auto;
  padding: 1.6rem 1.6rem 3rem calc(var(--side-w) + 1.4rem);
  font-size: 0.76rem;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ---------- tooltip ---------- */

.tip {
  position: fixed;
  z-index: 4000;
  max-width: 19rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 7px;
  padding: 0.55rem 0.7rem 0.6rem;
  font-size: 0.78rem;
  line-height: 1.45;
  box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.tip b { font-weight: 600; }
.tip code { font-size: 0.9em; }
.tip .tip-k { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: #bdb8ac; margin-bottom: 0.15rem; }
.tip .tip-why { margin-top: 0.25rem; color: #dcd8cd; font-size: 0.74rem; }
.tip .tip-since { margin-top: 0.3rem; font-family: var(--mono); font-size: 0.64rem; color: #bdb8ac; }

/* ---------- medium screens: the sidebar moves above ---------- */

@media (max-width: 1299px) {
  :root { --side-w: 0px; }
  .layout { display: block; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--rule-soft); overflow: visible; }
  .side-inner {
    max-width: 66rem;
    padding: 1.4rem 1.2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 2.2rem;
    align-items: start;
  }
  .side-inner > .kicker, .side-inner > .wordmark, .side-inner > .lede { grid-column: 1; }
  .side-inner > .score { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .side-inner > .controls, .side-inner > .key, .side-inner > .rule, .side-inner > .side-foot { grid-column: 1 / -1; }
  .reading, .sources, .table-sec, .colophon { padding-left: 1.6rem; }
}

/* ---------- sections below the chart ---------- */

.log {
  max-width: 1720px;
  margin: 0 auto;
  padding: 3rem 1.6rem 1rem calc(var(--side-w) + 1.4rem);
}
.log h2 { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1; }
.log h2 em { font-style: italic; color: var(--accent); }
.log .sources-lede { margin-top: 0.6rem; max-width: 70ch; color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 1299px) { .log { padding-left: 1.6rem; } }
@media (max-width: 560px) { .log { padding-left: 1rem; padding-right: 1rem; } }

/* ---------- shapes ---------- */

.shape { width: 14px; height: 14px; overflow: visible; flex: none; }
.sh-fill { fill: var(--band, var(--ink-2)); }
.sh-core { fill: var(--paper); }
.sh-ring { fill: var(--paper); stroke: var(--band, var(--ink-2)); stroke-width: 1.8; }
.band-ideas { --band: var(--b-ideas); }
.band-labs { --band: var(--b-labs); }
.band-rules { --band: var(--b-rules); }
.band-machines { --band: var(--b-machines); }
.band-key { --band: var(--b-key); }
.key { grid-template-columns: 1fr 1fr; }
.key .k-shape { --band: var(--ink-2); }

/* ---------- sidebar extras ---------- */

.score-table thead th:first-child { text-align: left; }
.score-table .sb-band th {
  padding: 0.55rem 0 0.15rem;
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-top: 0 !important;
}
.score-table tbody th a { color: var(--ink); text-decoration: none; }
.score-table tbody th a:hover { text-decoration: underline; text-decoration-color: var(--rule); }
.score-table td a { color: var(--ink-2); text-decoration: none; }
.score-table .dim { color: var(--rule); }

.reader { margin-top: 1.1rem; }
#reader {
  margin-top: 0.35rem;
  background: var(--card-strong);
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  padding: 0.7rem 0.8rem 0.75rem;
  min-height: 6rem;
}
.rd-empty { font-size: 0.78rem; color: var(--ink-3); line-height: 1.5; }
.rd-k { display: flex; align-items: center; gap: 0.35rem; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.rd-t { margin-top: 0.3rem; font-size: 0.98rem; font-weight: 600; line-height: 1.3; }
.rd-a { margin-top: 0.15rem; font-size: 0.74rem; color: var(--ink-3); }
.rd-a a { color: var(--ink-2); }
.rd-w { margin-top: 0.45rem; font-size: 0.82rem; line-height: 1.55; color: var(--ink-2); }
.rd-src { margin-top: 0.4rem; font-size: 0.72rem; line-height: 1.4; }
.rd-src .pub, .c-src .pub { color: var(--ink-3); }

/* ---------- the timeline ---------- */

.tl-main { padding: 0 1.4rem 3rem 1.2rem; min-width: 0; }
.tl { --name-w: 12.5rem; }
.tl-head {
  position: sticky;
  top: var(--appnav-h, 0px);
  z-index: 3;
  display: grid;
  grid-template-columns: var(--name-w) minmax(0, 1fr);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  height: 2.6rem;
}
.tl-axis { position: relative; }
.ax-m, .ax-now {
  position: absolute;
  bottom: 0.35rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--ink-3);
  white-space: nowrap;
  padding-left: 0.25rem;
  border-left: 1px solid var(--rule);
  line-height: 1.1;
}
.ax-m b { display: block; color: var(--ink); font-weight: 600; }
.ax-now { color: var(--accent); border-left-color: var(--accent); bottom: auto; top: 0.3rem; transform: translateX(-100%); border-left: 0; border-right: 1px solid var(--accent); padding: 0 0.25rem 0 0; }

.band { margin-top: 0.4rem; }
.band-h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.35rem;
  padding: 1rem 0 0.3rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.band-h::before {
  content: "";
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--band);
  margin-right: 0.45rem;
  vertical-align: 0.1em;
}
.band-h span { font-family: var(--sans); font-size: 0.76rem; color: var(--ink-3); margin-left: 0.3rem; }

.arow {
  display: grid;
  grid-template-columns: var(--name-w) minmax(0, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--rule-soft);
  padding: 0.35rem 0;
  scroll-margin-top: calc(var(--appnav-h, 0px) + 3.2rem);
}
.arow:target { background: var(--wash); }
.a-name { padding-right: 0.8rem; line-height: 1.2; }
.a-n { display: block; font-weight: 600; font-size: 0.84rem; }
.a-o { display: block; font-size: 0.68rem; color: var(--ink-3); }
.a-track { position: relative; }
.a-grid { position: absolute; top: -0.35rem; bottom: -0.35rem; border-left: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); }
.a-life {
  position: absolute;
  top: 11px;
  height: 2px;
  margin-top: -1px;
  background: var(--band);
  opacity: 0.55;
  border-radius: 1px;
}
.a-before {
  position: absolute;
  top: 11px;
  border-top: 2px dotted var(--band);
  margin-top: -1px;
  opacity: 0.45;
}
.ev {
  position: absolute;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0;
  z-index: 1;
}
.ev .shape { transition: transform 0.12s; }
.ev:hover .shape, .ev:focus-visible .shape { transform: scale(1.35); }
.ev .sh-fill, .ev .sh-ring { stroke: var(--paper); stroke-width: 1.4; paint-order: stroke; }
.ev .sh-ring { stroke: var(--band); stroke-width: 1.8; }
.ev.on { z-index: 2; }
.ev.on::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--ink);
}
.ev-l {
  position: absolute;
  top: 3px;
  font-size: 0.66rem;
  line-height: 1;
  color: var(--ink-2);
  white-space: nowrap;
  pointer-events: none;
}

/* ---------- the log ---------- */

.log-m {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.25rem;
  max-width: 64rem;
}
.log-l { list-style: none; max-width: 64rem; }
.log-e {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.45rem 0.3rem;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 0.84rem;
  line-height: 1.5;
  scroll-margin-top: calc(var(--appnav-h, 0px) + 2rem);
}
.log-e.on, .log-e:target { background: var(--wash); }
.log-d { display: flex; align-items: baseline; gap: 0.35rem; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-2); white-space: nowrap; }
.log-d .shape { align-self: center; }
.log-a { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); margin-right: 0.15rem; }
.log-b b { font-weight: 600; }
.log-b { color: var(--ink-2); }
.log-b b { color: var(--ink); }
.log-s { font-size: 0.74rem; color: var(--ink-3); }

/* ---------- narrow ---------- */

@media (max-width: 1299px) {
  .side-inner > .reader { grid-column: 1 / -1; }
  .reader { display: none; }
}
@media (max-width: 860px) {
  .tl-main { padding: 0 0.8rem 2.4rem; }
  .tl { --name-w: 6.6rem; }
  .a-o { display: none; }
  .a-n { font-size: 0.74rem; }
  .ev-l { display: none; }
  .band-h span { display: block; margin: 0.1rem 0 0; }
  .ax-m { font-size: 0.54rem; }
  .log-e { grid-template-columns: 1fr; gap: 0.1rem; }
}
@media (max-width: 1299px) and (min-width: 861px) {
  .side-inner { grid-template-rows: auto auto 1fr; }
}
.score-table td { white-space: nowrap; }
.arow { padding-top: 0.85rem; }
.ev-l.up { top: -10px; color: var(--ink-3); }
.ev-l.up::before { content: ""; }
.reader { margin-top: 0.9rem; }
.score-table tbody th { white-space: normal; font-size: 0.74rem; }
.score-table td { font-size: 0.66rem; padding-left: 0.4rem; }
.score-table thead th { padding-left: 0.4rem; }
@media (max-width: 860px) {
  .side-inner { display: block; }
  .side-inner > .score { margin-top: 1.1rem; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .reading, .sources, .colophon { padding-left: 1rem; padding-right: 1rem; }
  .ax-m:nth-child(even) { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ======================================================================
   The Road to Superintelligence: what this page adds to the shared frame
   ====================================================================== */

/* ---------- shapes: dates still to come, and the Accord ---------- */

.sh-due { fill: var(--paper); stroke: var(--band, var(--ink-2)); stroke-width: 1.6; stroke-dasharray: 2.2 1.6; }
.ev .sh-due { stroke: var(--band); stroke-width: 1.6; }
.sh-key-halo { fill: color-mix(in srgb, var(--b-key) 22%, transparent); stroke: var(--b-key); stroke-width: 1.2; }
.sh-key { fill: var(--b-key); }
.key-shape { width: 18px; height: 18px; }
.ev.is-key { width: 24px; height: 24px; margin: -12px 0 0 -12px; z-index: 2; }
.ev.is-key .shape { width: 22px; height: 22px; }
.ev-l.is-key { color: var(--b-key); font-weight: 600; font-size: 0.7rem; }
.ev-l.future { color: var(--ink-3); font-style: italic; }
.ev-l { background: var(--paper); padding: 0 0.2rem; border-radius: 2px; top: 6px; }
.ev-l.up { top: -9px; background: none; padding: 0; }
.key .k-key { color: var(--ink); font-weight: 500; }

/* ---------- the clock: squeezed decades, the road ahead ---------- */

.ax-sq, .a-sq {
  position: absolute;
  top: 0; bottom: 0;
  background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(28, 27, 24, 0.035) 5px 6px);
  pointer-events: none;
}
.a-sq { top: -0.85rem; bottom: -0.35rem; }
.ax-sq + .ax-sq { border-left: 1px dashed var(--rule); }
.ax-m b { font-weight: 500; color: var(--ink-3); }
.ax-m.ax-big b { color: var(--ink); font-weight: 600; }
.ax-sqlabel {
  position: absolute;
  top: 0.35rem;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.a-ahead {
  position: absolute;
  top: 12px;
  margin-top: -1px;
  border-top: 2px dashed var(--band);
  opacity: 0.4;
}
.a-life { top: 12px; }

/* ---------- sidebar: you are here, the reader, dates to watch ---------- */

.here {
  display: grid;
  gap: 0.25rem;
  margin-top: 0.9rem;
  padding: 0.6rem 0.75rem 0.65rem;
  background: var(--key-soft);
  border-left: 3px solid var(--b-key);
  border-radius: 0 6px 6px 0;
  color: var(--ink);
  text-decoration: none;
}
.here:hover { background: color-mix(in srgb, var(--key-soft) 80%, var(--b-key)); }
.here-d { font-family: var(--serif); font-size: 1.25rem; line-height: 1; }
.here-d small { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--b-key); margin-left: 0.35rem; vertical-align: 0.2em; }
.here-t { font-size: 0.78rem; line-height: 1.45; color: var(--ink-2); }
.here-t b { color: var(--ink); font-weight: 600; }

#reader.is-key { border-color: color-mix(in srgb, var(--b-key) 55%, var(--rule)); background: linear-gradient(var(--key-soft), var(--card-strong) 5rem); }
.rd-band { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--band); font-weight: 500; }
.rd-why { margin-top: 0.5rem; font-size: 0.8rem; line-height: 1.5; color: var(--ink); }
.rd-why span { display: block; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.1rem; }
.rd-more { margin-top: 0.5rem; font-size: 0.78rem; }
.rd-k .key-shape { width: 14px; height: 14px; }

.watch-table { width: 100%; border-collapse: collapse; margin-top: 0.3rem; font-size: 0.74rem; }
.watch-table td { font-family: var(--mono); font-size: 0.64rem; color: var(--b-key); white-space: nowrap; padding: 0.24rem 0.6rem 0.24rem 0; vertical-align: baseline; }
.watch-table th { text-align: left; font-weight: 500; padding: 0.24rem 0; }
.watch-table th a { color: var(--ink); text-decoration-color: var(--rule); }
.watch-table tr + tr > * { border-top: 1px solid var(--rule-soft); }

.chip.band-ideas::before, .chip.band-labs::before, .chip.band-rules::before, .chip.band-machines::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--band);
  margin-right: 0.3rem;
  vertical-align: 0.06em;
}

/* ---------- sections below the chart ---------- */

.sec {
  max-width: 1720px;
  margin: 0 auto;
  padding: 3rem 1.6rem 1rem calc(var(--side-w) + 1.4rem);
  scroll-margin-top: var(--appnav-h, 0px);
}
.sec-k {
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.3rem;
}
.sec h2 { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1; }
.sec h2 em { font-style: italic; color: var(--accent); }
#accord h2 em { color: var(--b-key); }
.sec-lede { margin-top: 0.6rem; max-width: 72ch; color: var(--ink-2); font-size: 0.95rem; line-height: 1.6; }
.sec h3 { font-size: 1rem; font-weight: 600; }

.accord { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 1rem; margin-top: 1.3rem; max-width: 72rem; }
.panel { background: var(--card); border: 1px solid var(--rule-soft); border-radius: 8px; padding: 0.9rem 1rem 1rem; }
.panel > p { margin-top: 0.2rem; font-size: 0.84rem; color: var(--ink-2); line-height: 1.55; }
.layers { display: grid; gap: 0.4rem; margin-top: 0.7rem; }
.layer {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 5px;
  background: color-mix(in srgb, var(--b-rules) calc(6% + var(--i) * 5%), transparent);
  border-left: 3px solid var(--b-rules);
}
.layer b { font-family: var(--serif); font-size: 1.4rem; line-height: 1; color: var(--b-rules); font-weight: 400; }
.layer strong { display: block; font-size: 0.88rem; font-weight: 600; }
.layer span { display: block; font-size: 0.8rem; color: var(--ink-2); line-height: 1.45; margin-top: 0.1rem; }
.gaps { list-style: none; margin-top: 0.6rem; }
.gaps li { position: relative; padding: 0.45rem 0 0.45rem 1.4rem; border-top: 1px solid var(--rule-soft); font-size: 0.84rem; line-height: 1.45; }
.gaps li::before { content: "—"; position: absolute; left: 0; color: var(--b-labs); font-weight: 600; }
.gaps li.has::before { content: "✓"; color: var(--b-rules); }

.seats-panel { margin-top: 1rem; max-width: 72rem; }
.table-chart { max-width: 46rem; margin: 0.9rem auto 0; display: grid; grid-template-columns: 1fr 2.6rem 1fr; gap: 0 0.9rem; }
.tabletop { background: linear-gradient(90deg, #8a7240, #a68b51 50%, #8a7240); border-radius: 1.3rem; opacity: 0.8; }
.seat-side { display: grid; gap: 0.3rem; align-content: start; }
.seat-side.right { padding-top: 1.1rem; }
.seat { border: 1px solid var(--rule); border-radius: 4px; padding: 0.25rem 0.5rem; font-size: 0.8rem; line-height: 1.25; min-height: 2.4rem; background: var(--card-strong); }
.seat.l { text-align: right; }
.seat small { display: block; font-family: var(--mono); font-size: 0.6rem; color: var(--ink-3); }
.seat.t-s { border-color: var(--b-rules); background: color-mix(in srgb, var(--b-rules) 13%, var(--card-strong)); font-weight: 600; }
.seat.t-s small { color: var(--b-rules); }
.seat.t-c { border-color: var(--b-labs); border-style: dashed; }
.seat.t-g { background: var(--wash); }
.seat.t-i { border-style: dotted; border-color: var(--ink-3); }
.seat.t-p { border: 2px solid var(--b-key); background: var(--key-soft); font-weight: 600; }
.room-key { margin-top: 0.7rem; font-family: var(--mono); font-size: 0.66rem; color: var(--ink-3); line-height: 1.6; }
.sw { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 2px; vertical-align: -0.1rem; margin: 0 0.25rem 0 0.6rem; border: 1px solid var(--rule); }
.sw:first-child { margin-left: 0; }
.sw-signed { border-color: var(--b-rules); background: color-mix(in srgb, var(--b-rules) 25%, transparent); }
.sw-co { border-color: var(--b-labs); border-style: dashed; }
.sw-gov { background: rgba(28, 27, 24, 0.1); }
.sw-inv { border-style: dotted; border-color: var(--ink-2); }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 1rem 1.6rem; margin-top: 1.6rem; max-width: 72rem; }
.quotes figure { border-left: 3px solid var(--b-key); padding: 0.1rem 0 0.1rem 0.9rem; }
.quotes blockquote { font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; }
.quotes figcaption { margin-top: 0.3rem; font-family: var(--mono); font-size: 0.66rem; color: var(--ink-3); }

.ptable { border-collapse: collapse; width: 100%; max-width: 72rem; min-width: 46rem; font-size: 0.82rem; margin-top: 1rem; }
.ptable th, .ptable td { text-align: left; vertical-align: top; padding: 0.55rem 0.8rem 0.55rem 0; border-bottom: 1px solid var(--rule-soft); line-height: 1.45; }
.ptable thead th { font-family: var(--mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); border-bottom-color: var(--rule); }
.ptable tbody th { font-weight: 600; width: 12rem; }
.ptable tbody th small { display: block; font-family: var(--mono); font-size: 0.62rem; font-weight: 400; color: var(--ink-3); margin-top: 0.15rem; }
.ptable tr.now > * { background: color-mix(in srgb, var(--key-soft) 60%, transparent); }
.ptable tr.now th:first-child { box-shadow: inset 3px 0 0 var(--b-key); padding-left: 0.6rem; }
.ptable .y { color: var(--b-rules); font-weight: 600; }
.ptable .n { color: var(--b-labs); font-weight: 600; }

.defs { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 0.9rem; margin-top: 1.2rem; max-width: 96rem; }
.def { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule-soft); border-top: 3px solid var(--band); border-radius: 8px; padding: 0.8rem 0.9rem 0.85rem; }
.def-who { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.def blockquote { margin-top: 0.4rem; font-family: var(--serif); font-size: 1.15rem; line-height: 1.3; }
.def > p { margin-top: 0.4rem; font-size: 0.8rem; color: var(--ink-2); line-height: 1.5; }
.scope { margin-top: auto; padding-top: 0.8rem; display: flex; align-items: center; gap: 0.45rem; font-family: var(--mono); font-size: 0.58rem; color: var(--ink-3); }
.scope i { flex: 1; position: relative; height: 4px; border-radius: 2px; background: var(--rule-soft); }
.scope i b { position: absolute; top: -4px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--band); }
.def .def-src { margin-top: 0.6rem; padding-top: 0.45rem; border-top: 1px solid var(--rule-soft); font-size: 0.7rem; line-height: 1.4; }
.def-src .pub { color: var(--ink-3); }

/* ---------- the log, by era ---------- */

.log-era { margin-top: 1.8rem; max-width: 64rem; border-bottom: 1px solid var(--rule); padding-bottom: 0.35rem; }
.log-era h3 { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.1; }
.log-era h3 span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-left: 0.4rem; }
.log-era p { margin-top: 0.25rem; font-size: 0.84rem; color: var(--ink-2); max-width: 70ch; }
.log-none { font-size: 0.84rem; color: var(--ink-3); font-style: italic; margin-top: 0.5rem; }
.log-e { grid-template-columns: 7.2rem minmax(0, 1fr); cursor: pointer; }
.log-e.is-key { background: color-mix(in srgb, var(--key-soft) 55%, transparent); box-shadow: inset 3px 0 0 var(--b-key); }
.log-e.future .log-d { color: var(--ink-3); font-style: italic; }
.log-a { color: var(--band); }
.log-why { color: var(--ink); }
.log-s a { color: var(--ink-3); }

.sources h3 { margin-top: 1.4rem; font-size: 0.92rem; }
.sources .source-list { margin-top: 0.4rem; }

@media (max-width: 1299px) {
  .sec { padding-left: 1.6rem; }
  .side-inner > .here { grid-column: 1; }
}
@media (max-width: 860px) {
  .ax-sqlabel { display: none; }
  .table-chart { grid-template-columns: 1fr 1rem 1fr; gap: 0 0.5rem; }
  .seat { font-size: 0.72rem; }
  .log-e { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sec { padding-left: 1rem; padding-right: 1rem; }
  .sec h2, .log h2 { font-size: 1.8rem; }
}

.log-d { align-self: start; align-items: center; }
.log-d .shape { align-self: center; }

/* ---------- other names ---------- */

.sec .names-h { margin-top: 2.4rem; font-family: var(--serif); font-weight: 400; font-size: 1.6rem; scroll-margin-top: calc(var(--appnav-h, 0px) + 1rem); }
.names-table tbody th { width: 14rem; }
.names-table td small { display: block; font-family: var(--mono); font-size: 0.64rem; color: var(--ink-3); margin-top: 0.1rem; }
.names-table td.n-src { font-size: 0.74rem; width: 16rem; }
.names-table .pub { color: var(--ink-3); }
.bar { display: inline-block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.1rem 0.35rem; border-radius: 3px; white-space: nowrap; }
.bar-past { background: color-mix(in srgb, var(--b-ideas) 14%, transparent); color: var(--b-ideas); }
.bar-impact { background: color-mix(in srgb, var(--b-machines) 14%, transparent); color: var(--b-machines); }
.bar-below { background: var(--wash); color: var(--ink-2); }
.bar-any { background: var(--key-soft); color: var(--b-key); }

/* ---------- who's ahead ---------- */

.race-chart { margin-top: 1.2rem; max-width: 72rem; }
.race-svg { display: block; width: 100%; height: auto; overflow: visible; }
.r-grid { stroke: var(--rule-soft); stroke-width: 1; }
.r-ax { font-family: var(--mono); font-size: 10px; fill: var(--ink-3); }
.r-now { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 3; }
.r-now-t { font-family: var(--mono); font-size: 9.5px; fill: var(--accent); }
.r-line { fill: none; stroke-width: 1.2; opacity: 0.45; }
.r-line.on { stroke-width: 2.2; opacity: 0.95; }
.r-dot { stroke-width: 1.4; cursor: pointer; }
.r-dot:hover { stroke-width: 2.6; }
.r-end { font-family: var(--sans); font-size: 11.5px; font-weight: 600; }
.race-key { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; margin-top: 0.4rem; font-size: 0.76rem; color: var(--ink-3); }
.race-key span { display: inline-flex; align-items: center; gap: 0.35rem; }
.race-key i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink-2); }
.race-key i.k-solid { background: var(--ink-2); }
.race-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr)); gap: 1.4rem 2rem; margin-top: 1.4rem; max-width: 72rem; }
.race-cols h3 { margin-bottom: 0.2rem; }
.race-table { min-width: 30rem; margin-top: 0.3rem; }
.race-table td small { display: block; font-family: var(--mono); font-size: 0.6rem; color: var(--ink-3); }
.race-table td:nth-child(4) { font-weight: 600; }
.race-table tbody th { width: auto; white-space: nowrap; }
.r-sw { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.4rem; vertical-align: 0; }
.race-leads { list-style: none; margin-top: 0.4rem; }
.race-leads li { padding: 0.45rem 0; border-bottom: 1px solid var(--rule-soft); font-size: 0.86rem; line-height: 1.45; }
.rl-d { display: inline-block; min-width: 6.8rem; font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3); }
.rl-m { font-weight: 600; }
.race-leads small { color: var(--ink-3); font-size: 0.74rem; }
.race-note { margin-top: 1rem; max-width: 72ch; font-size: 0.78rem; color: var(--ink-3); line-height: 1.55; }
@media (max-width: 560px) { .race-cols { grid-template-columns: 1fr; } .race-table { min-width: 0; } }
.race-table tfoot td { font-size: 0.74rem; color: var(--ink-3); padding-top: 0.6rem; line-height: 1.5; }
.race-cols > div { min-width: 0; }
