/* Prediction pages. Loaded after tokens.css and hub.css, the same way plays.html loads
   plays.css.

   TWO RULES THIS SHEET FOLLOWS, both learned the hard way on 2026-08-12.

   1. SIZE IN PX, NOT REM. hub.css sets body to clamp(15px,1.1vw,17px), a FLUID size. A rem
      is relative to the root (16px), not to that, so rem-sized text drifts away from the
      surrounding page at every viewport width. The rest of the site sizes in px with clamp()
      for fluid headings; so does this.

   2. NEVER SET A PAGE WIDTH. hub.css `section{max-width:var(--maxw)}` owns the column at
      1200px. An earlier version wrapped everything in a 52rem main, which put these pages in
      a visibly narrower column than the rest of the site.

   Nothing here sets font-family: DM Sans and Instrument Serif come from hub.css, and the
   faces themselves are loaded in each page head. */

/* ---- hero chips ------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 18px 0 0 }
.chip {
  font-size: 11px; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-secondary);
}
.chip-A { color: var(--awareness); border-color: var(--awareness) }
.chip-B { color: var(--important); border-color: var(--important) }
.chip-C { color: var(--critical);  border-color: var(--critical) }

/* ---- prose inside a section ------------------------------------------------- */
section > .reveal > p { margin: 0 0 14px; max-width: 76ch }

/* ---- the three framed blocks ------------------------------------------------- */
.claim, .counter, .kill {
  padding: 18px 22px; border-radius: var(--radius); background: var(--bg-raised);
  max-width: 76ch;
}
.claim   { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.5;
           border-left: 3px solid var(--sage) }
.counter { border-left: 3px solid var(--important) }
.kill    { border: 1px dashed var(--border) }

/* ---- tables: instruments and the evidence ledger ---------------------------- */
section table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 4px 0 0 }
section th {
  text-align: left; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 600; padding: 0 14px 8px 0;
  border-bottom: 1px solid var(--border);
}
section td {
  padding: 11px 14px 11px 0; border-bottom: 1px solid var(--border-soft);
  vertical-align: top; line-height: 1.55;
}

/* Instrument state. `unread` is deliberately the loudest: it means nobody looked, and it
   scores as nothing rather than as confirmation. */
.st-moving { color: var(--awareness); font-weight: 600 }
.st-flat   { color: var(--important); font-weight: 600 }
.st-unread { color: var(--critical);  font-weight: 700 }

.empty { color: var(--text-dim); font-style: italic }
.overflow { overflow-x: auto }

/* ---- transformation chapter -------------------------------------------------- */
.tf {
  border-left: 3px solid var(--info); background: var(--bg-raised);
  border-radius: var(--radius); padding: 18px 22px; margin: 0 0 14px; max-width: 76ch;
}
.tf h3 { margin: 0 0 8px; font-size: 15px }

/* ---- index cards -------------------------------------------------------------- */
.card {
  display: block; padding: 20px 22px; margin: 0 0 14px; border: 1px solid var(--border);
  border-radius: var(--radius); text-decoration: none; background: var(--bg-raised);
}
.card:hover { border-color: var(--sage) }
.card h3 {
  margin: 0 0 8px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.35; color: var(--text);
}
.card p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-secondary) }

/* ---- footer note --------------------------------------------------------------- */
.foot {
  font-size: 13px; color: var(--text-dim); line-height: 1.65; margin-top: 8px;
  border-top: 1px solid var(--border); padding-top: 20px; max-width: 76ch;
}

/* ---- the read (editorial) ------------------------------------------------------ */
.editorial { max-width: 72ch }
.editorial p { margin: 0 0 16px }
.editorial p:last-child { margin-bottom: 0 }
.editorial b { font-weight: 600 }
.editorial code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px;
  background: var(--bg-raised-2); padding: 1px 5px; border-radius: 3px;
}

/* ---- evidence chart ------------------------------------------------------------- */
.evchart { width: 100%; max-width: 720px; height: auto; display: block; margin: 0 0 22px }
.evgrid { stroke: var(--border-soft); stroke-width: 1 }
.evax   { font-size: 10px; fill: var(--text-dim) }
.evlab  { font-size: 11px; font-weight: 600 }

/* ---- index cards: title leads, claim follows ------------------------------------ */
.card-claim { margin-top: 4px }

/* The claim leads the page, so it carries more weight than the same block used later. */
.claim-lead { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.45; padding: 22px 26px }
