/* DAYBREAK — the whole design system, one sheet.
 *
 * Every page in the site is generated from one template family and loads only
 * this. That is the point: when a rule changes here it changes on all fourteen
 * editions and every module at once, so the pages cannot drift apart.
 *
 * Palette is Kristen's own red/white/blue — navy #0a3161, red #b31942, paper
 * white — carried forward verbatim from the August editions. This is NOT the
 * BB2G house ivory/gold; DAYBREAK has its own skin and keeps it.
 */

/* ── tokens ──────────────────────────────────────────────────────────────── */
:root{
  --navy:#0a3161; --red:#b31942; --white:#fff;
  --bg:#ffffff; --surface:#ffffff; --surface-2:#f4f7fc; --tint:#f4f7fc;
  /* ink-faint and warn were measured on real glyph rects at 3.96:1 and 3.39:1 —
   * both below the 4.5 needed for the small mono labels they are used on.
   * Darkened until they clear it on BOTH the white paper and the #f4f7fc
   * panels, which is the tighter of the two grounds. */
  --ink:#14181f; --ink-soft:#48505e; --ink-faint:#656c7a; --line:#dde3ec;
  --brand:#0a3161; --accent:#b31942;
  --ok:#0a7d3c; --ok-bg:#e5f4ea; --warn:#96620f; --warn-bg:#fbf3e2; --slate:#5a6577;
  --up:#0a7d3c; --down:#b31942; --flat:#96620f;
  --hero-ink:#ffffff;
  /* FILL tokens — remapped by ROLE, not by name.
   * --brand / --accent are TEXT colours, so in dark mode they invert to light
   * blue and light pink. Anything that uses them as a BACKGROUND with white
   * text on top therefore collapses to ~2.5:1 the moment the theme flips.
   * These are the solid fills instead: they stay dark enough for white text in
   * both themes. Measured, not eyeballed — the worst of them is 5.4:1. */
  --brand-fill:#0a3161; --accent-fill:#b31942;
  --warn-fill:#8a5a12; --slate-fill:#5a6577; --on-fill:#ffffff;
  --serif:'Newsreader',Georgia,serif;
  --sans:'Inter',system-ui,-apple-system,sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,Menlo,monospace;
  --wrap:940px;
  --radius:9px;
  --shadow:0 1px 2px rgba(10,49,97,.06),0 8px 28px rgba(10,49,97,.07);
}
[data-theme="dark"]{
  --bg:#0d1420; --surface:#141d2c; --surface-2:#1a2536; --tint:#1a2536;
  --ink:#eef2f8; --ink-soft:#b6c0d0; --ink-faint:#8794a6; --line:#26324a;
  --brand:#7ea6dd; --accent:#ff6b8a;
  --ok:#5fd490; --ok-bg:#12301f; --warn:#e0a83d; --warn-bg:#2a2212; --slate:#8794a6;
  --up:#5fd490; --down:#ff6b8a; --flat:#e0a83d;
  --shadow:0 1px 2px rgba(0,0,0,.4),0 8px 28px rgba(0,0,0,.35);
  /* Lifted just enough to read as a filled element against the dark page,
   * while still carrying white text at 5.6:1 and 7.6:1. */
  --brand-fill:#2a5490; --accent-fill:#c22a52;
  --warn-fill:#8a5a12; --slate-fill:#5f6a7d; --on-fill:#ffffff;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--bg);color:var(--ink);
  font-family:var(--sans);line-height:1.55;-webkit-font-smoothing:antialiased;
  transition:background .2s,color .2s;
}
img,video{max-width:100%}
a{color:var(--brand)}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 20px}
.wrap-wide{max-width:1180px;margin:0 auto;padding:0 20px}

/* Focus ring: two tones, because one colour cannot clear 3:1 on both the white
 * paper and the navy slabs. The dark halo does the work on light grounds, the
 * light core on dark ones. */
:where(a,button,summary,[tabindex],input,select):focus-visible{
  outline:3px solid var(--accent);outline-offset:2px;
  box-shadow:0 0 0 6px rgba(255,255,255,.9);border-radius:4px;
}
[data-theme="dark"] :where(a,button,summary,[tabindex],input,select):focus-visible{
  box-shadow:0 0 0 6px rgba(0,0,0,.85);
}
.skip{position:absolute;left:-9999px;top:0;z-index:100;background:var(--accent-fill);color:var(--on-fill);
  padding:12px 18px;font-weight:600;border-radius:0 0 8px 0}
.skip:focus{left:0}

/* ── site header ─────────────────────────────────────────────────────────── */
.sitebar{position:sticky;top:0;z-index:40;background:var(--bg);border-bottom:1px solid var(--line)}
.sitebar .in{max-width:1180px;margin:0 auto;padding:9px 20px;display:flex;align-items:center;gap:14px}
.sitebar .mark{display:flex;align-items:center;gap:9px;text-decoration:none;flex:0 0 auto}
.sitebar .mark img{width:44px;height:44px;display:block}
/* 44px, not 34 — the laurel mark mushes below about 40 and stops reading as
   a laurel at all. This is the shared fleet mark; never swap it for a
   per-app one. */
.sitebar .mark .bk{font-family:var(--serif);font-weight:600;font-size:19px;letter-spacing:-.01em;color:var(--brand)}
.sitebar .mark .bk i{color:var(--accent);font-style:normal}
.sitenav{display:flex;gap:2px;margin-left:auto;flex-wrap:wrap}
.sitenav a{
  font-family:var(--mono);font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--ink-soft);text-decoration:none;padding:7px 10px;border-radius:6px;white-space:nowrap;
}
.sitenav a:hover{background:var(--surface-2);color:var(--brand)}
.sitenav a[aria-current="page"]{color:var(--accent);background:var(--surface-2)}
.toggle{
  display:flex;align-items:center;gap:7px;font-family:var(--mono);font-size:10px;
  letter-spacing:.05em;color:var(--ink-faint);cursor:pointer;user-select:none;
  border:1px solid var(--line);border-radius:100px;padding:6px 11px;background:var(--surface);
}
.toggle:hover{border-color:var(--brand);color:var(--brand)}
@media(max-width:720px){
  .sitenav{order:3;width:100%;margin-left:0;justify-content:flex-start;
    overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:2px}
  .sitebar .in{flex-wrap:wrap;gap:10px}
}

/* ── the flag rule ───────────────────────────────────────────────────────── */
.flagrule{height:5px;border:1px solid var(--line);border-radius:2px;
  background:linear-gradient(90deg,var(--navy) 0 33.3%,#fff 33.3% 66.6%,var(--red) 66.6% 100%)}
[data-theme="dark"] .flagrule{opacity:.92}

/* ── full-bleed motion hero (the lure standard) ──────────────────────────── */
/* The hero is a direct child of <body>, so it is ALREADY full width — it does
 * not need the `width:100vw; margin-left:calc(50% - 50vw)` break-out trick, and
 * using it here was actively wrong: 100vw counts the scrollbar, so the hero
 * ended up ~15px wider than the viewport on every page long enough to scroll.
 * That was being hidden by `overflow-x:hidden` on the body, which is exactly
 * the kind of patch that makes a layout audit lie. The break-out is only needed
 * for a hero nested inside a max-width column. */
.dbhero{
  position:relative;
  min-height:clamp(360px,62vh,620px);display:flex;align-items:flex-end;overflow:hidden;
  background:var(--navy); /* the ground before any frame exists — never black */
  isolation:isolate;
}
.dbhero.tall{min-height:clamp(460px,78vh,760px)}
/* The still and the loop are siblings, stacked. A real <img> underneath means
 * the worst case is a photograph: the watchdog that drops a stalled hero takes
 * a `poster` attribute with it, because the poster belongs to the element being
 * removed. */
.dbhero .cbg,.dbhero .cstill{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  filter:saturate(.78) contrast(1.04) brightness(.74); /* hero type is WHITE, so
    the grade goes DOWN — grading up would put pale footage under a pale veil
    and the type would fight it */
}
.dbhero .cstill{z-index:0}
.dbhero .cbg{z-index:1;animation:heroDrift 44s ease-in-out infinite alternate}
@keyframes heroDrift{from{transform:scale(1.05)}to{transform:scale(1.15)}}
/* The veil dissolves the footage into the page colour, so it reads as part of
 * the page. Opened up until the footage actually READS — a veil so heavy the
 * clip disappears is just an expensive flat colour. */
.dbhero::after{
  content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(180deg,
    rgba(10,49,97,.40) 0%,
    rgba(10,49,97,.32) 40%,
    rgba(10,49,97,.84) 100%);
}
.dbhero .cinner{position:relative;z-index:3;width:100%;max-width:var(--wrap);
  margin:0 auto;padding:60px 20px 42px;color:var(--hero-ink)}
.dbhero.wide .cinner{max-width:1180px}
.dbhero .kick{font-family:var(--mono);font-size:11px;letter-spacing:.2em;text-transform:uppercase;
  color:#fff;opacity:.92;margin-bottom:14px;text-shadow:0 1px 8px rgba(0,0,0,.5)}
.dbhero h1{
  font-family:var(--serif);font-weight:600;letter-spacing:-.02em;line-height:.95;
  font-size:clamp(38px,8vw,78px);margin:0;color:#fff;text-shadow:0 2px 18px rgba(0,0,0,.42)}
.dbhero h1 .dot{color:#ff8fa8}
.dbhero .sub{font-size:clamp(15px,2.2vw,19px);color:rgba(255,255,255,.93);margin:16px 0 0;
  max-width:60ch;text-shadow:0 1px 10px rgba(0,0,0,.45)}
.dbhero .herometa{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px}
.dbhero .herometa span,.dbhero .herometa a{
  font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.3);color:#fff;
  padding:6px 11px;border-radius:100px;text-decoration:none;backdrop-filter:blur(3px)}
.dbhero .herometa a:hover{background:rgba(255,255,255,.26)}
.credit{font-family:var(--mono);font-size:9.5px;letter-spacing:.05em;color:var(--ink-faint);
  text-align:right;padding:6px 20px 0;max-width:1180px;margin:0 auto}

/* A stalled hero must still be a picture, never a hole. */
.dbhero.novideo .cbg{display:none}

@media (prefers-reduced-motion:reduce){
  .dbhero .cbg{animation:none;transform:none}
}

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn{
  display:inline-flex;align-items:center;gap:8px;font-family:var(--sans);font-weight:600;
  font-size:14px;padding:11px 18px;border-radius:8px;text-decoration:none;cursor:pointer;
  border:1px solid transparent;transition:transform .12s,box-shadow .12s,background .12s}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--accent-fill);color:var(--on-fill)}
.btn-primary:hover{box-shadow:0 6px 20px rgba(179,25,66,.32)}
.btn-ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.5)}
.btn-ghost:hover{background:rgba(255,255,255,.14)}
.btn-quiet{background:var(--surface);color:var(--brand);border-color:var(--line)}
.btn-quiet:hover{border-color:var(--brand)}
.btnrow{display:flex;gap:11px;flex-wrap:wrap;margin-top:26px}

/* ── section furniture ───────────────────────────────────────────────────── */
.sec{padding:54px 0}
.sec.tint{background:var(--surface-2)}
.seclabel{font-family:var(--mono);font-size:10.5px;letter-spacing:.2em;text-transform:uppercase;
  color:var(--accent);font-weight:600;margin-bottom:11px}
.sechead{font-family:var(--serif);font-weight:600;font-size:clamp(26px,4.2vw,40px);
  letter-spacing:-.02em;line-height:1.08;margin:0 0 12px;color:var(--ink)}
.secsub{font-size:15.5px;color:var(--ink-soft);max-width:64ch;margin:0 0 26px}

/* ── cards ───────────────────────────────────────────────────────────────── */
/* flex + basis, never grid auto-fit: a ragged last row of auto-fit leaves
 * visible holes at some widths. */
.cards{display:flex;flex-wrap:wrap;gap:16px;list-style:none;padding:0;margin:0}
.card{
  flex:1 1 280px;min-width:0;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);padding:20px;text-decoration:none;color:inherit;display:block;
  transition:transform .14s,box-shadow .14s,border-color .14s}
a.card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:var(--brand)}
.card .ct{font-family:var(--mono);font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--accent);font-weight:600}
.card h3{font-family:var(--serif);font-size:21px;font-weight:600;margin:9px 0 8px;line-height:1.2}
.card p{font-size:14px;color:var(--ink-soft);margin:0;line-height:1.5}

/* ── narration player ────────────────────────────────────────────────────── */
/* Pre-rendered audio, never live synthesis. */
.narrate{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--accent);
  border-radius:var(--radius);padding:14px 18px;margin:22px 0}
.narrate .nplay{
  display:inline-flex;align-items:center;gap:9px;background:var(--accent-fill);color:var(--on-fill);border:0;
  font-family:var(--sans);font-weight:600;font-size:14px;padding:10px 17px;border-radius:100px;
  cursor:pointer;flex:0 0 auto}
.narrate .nplay:hover{box-shadow:0 4px 16px rgba(179,25,66,.3)}
.narrate .nplay .ico{font-size:12px;line-height:1}
.narrate .nmeta{font-size:13px;color:var(--ink-soft);flex:1 1 200px;min-width:0}
.narrate .nmeta b{color:var(--ink);font-weight:600}
.narrate .nbar{flex:1 1 100%;height:4px;background:var(--line);border-radius:100px;overflow:hidden}
.narrate .nbar i{display:block;height:100%;width:0;background:var(--accent-fill);transition:width .2s linear}
.narrate .ntime{font-family:var(--mono);font-size:11px;color:var(--ink-faint);flex:0 0 auto}

/* ── how-to video cards ──────────────────────────────────────────────────── */
.vidgrid{display:flex;flex-wrap:wrap;gap:20px;list-style:none;padding:0;margin:0}
.vidcard{flex:1 1 320px;min-width:0;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column}
.vidcard .vframe{position:relative;aspect-ratio:16/9;background:var(--navy);overflow:hidden}
.vidcard video{width:100%;height:100%;object-fit:cover;display:block}
.vidcard .vbody{padding:17px 19px 20px}
.vidcard .vt{font-family:var(--mono);font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--accent);font-weight:600}
.vidcard h3{font-family:var(--serif);font-size:20px;font-weight:600;margin:8px 0 7px;line-height:1.22}
.vidcard p{font-size:13.5px;color:var(--ink-soft);margin:0;line-height:1.5}
.vidcard .vlen{font-family:var(--mono);font-size:10.5px;color:var(--ink-faint);margin-top:11px}

/* ── the edition ledger ──────────────────────────────────────────────────── */
.ledger{margin-top:22px;border:1px solid var(--line);border-radius:var(--radius);
  background:var(--surface);overflow:hidden}
.ledger .lhead{display:flex;align-items:center;justify-content:space-between;gap:10px;
  flex-wrap:wrap;padding:11px 18px;background:var(--brand-fill);color:var(--on-fill)}
[data-theme="dark"] .ledger .lhead{background:var(--surface-2);border-bottom:1px solid var(--line)}
.ledger .lhead .lt{font-family:var(--mono);font-size:10.5px;letter-spacing:.18em;
  text-transform:uppercase;font-weight:600;color:#fff}
[data-theme="dark"] .ledger .lhead .lt{color:var(--ink)}
.ledger .lhead .lm{font-family:var(--mono);font-size:10.5px;letter-spacing:.05em;color:#c3d5ec}
[data-theme="dark"] .ledger .lhead .lm{color:var(--ink-faint)}
.ledger .lgrid{display:grid;grid-template-columns:repeat(5,1fr)}
.ledger .lc{padding:15px 16px 14px;border-right:1px solid var(--line)}
.ledger .lc:last-child{border-right:none}
.ledger .lc .k{font-family:var(--mono);font-size:9.5px;letter-spacing:.1em;
  text-transform:uppercase;color:var(--ink-faint)}
.ledger .lc .v{font-family:var(--serif);font-size:27px;font-weight:600;line-height:1;
  color:var(--brand);margin-top:8px}
.ledger .lc .v small{font-size:14px;color:var(--ink-faint);font-weight:500}
.ledger .lc .v.na{font-size:15px;color:var(--ink-faint);font-family:var(--sans);font-weight:500}
.ledger .lc .s{font-size:11.5px;color:var(--ink-soft);margin-top:7px;line-height:1.35}
.ledger .lc.flag{background:var(--surface-2)}
.ledger .lc.flag .v{color:var(--accent)}
.ledger .pips{display:flex;gap:4px;margin-top:9px;flex-wrap:wrap}
.ledger .pip{font-family:var(--mono);font-size:9.5px;font-weight:600;padding:2px 6px;border-radius:4px}
.ledger .pip.c{background:var(--ok-bg);color:var(--ok)}
.ledger .pip.d{background:var(--warn-bg);color:var(--warn)}
.ledger .pip.p{background:var(--tint);color:var(--slate)}
.ledger .lfoot{padding:9px 18px;border-top:1px solid var(--line);font-family:var(--mono);
  font-size:10px;letter-spacing:.03em;color:var(--ink-faint)}
.ledger .lfoot b{color:var(--ok);font-weight:600}
@media(max-width:860px){.ledger .lgrid{grid-template-columns:repeat(2,1fr)}
  .ledger .lc{border-bottom:1px solid var(--line)}}
@media(max-width:460px){.ledger .lgrid{grid-template-columns:1fr}
  .ledger .lc{border-right:none}}

/* ── executive summary + priority stack ──────────────────────────────────── */
.exec{background:var(--surface);border:1px solid var(--line);border-left:4px solid var(--accent);
  border-radius:8px;padding:20px 22px;margin-top:20px}
.exec h2{font-family:var(--mono);font-size:11px;letter-spacing:.18em;text-transform:uppercase;
  color:var(--accent);margin:0 0 10px;font-weight:600}
.exec .chain{font-family:var(--serif);font-size:18px;line-height:1.5;margin:0;color:var(--ink)}
.exec .chain b{color:var(--brand);font-weight:600}
.exec .arrow{color:var(--accent);font-weight:600;padding:0 3px}
.exec .note{font-size:13.5px;color:var(--ink-soft);margin:12px 0 0}

.stack{margin-top:16px;background:var(--brand-fill);color:var(--on-fill);border-radius:8px;padding:18px 22px}
[data-theme="dark"] .stack{background:var(--surface-2);border:1px solid var(--line);color:var(--ink)}
.stack h3{font-family:var(--mono);font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;
  margin:0 0 12px;font-weight:600;color:#fff}
[data-theme="dark"] .stack h3{color:var(--ink)}
.stack ol{margin:0;padding-left:20px}
.stack li{margin:7px 0;font-size:14.5px;line-height:1.5}
.stack li b{font-weight:600}

/* ── filters ─────────────────────────────────────────────────────────────── */
.controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:26px 0 4px}
.chip{font-family:var(--mono);font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;
  border:1px solid var(--line);background:var(--surface);color:var(--ink-soft);
  padding:7px 12px;border-radius:100px;cursor:pointer;transition:all .12s}
.chip:hover{border-color:var(--brand);color:var(--brand)}
.chip[aria-pressed="true"]{background:var(--brand-fill);border-color:var(--brand-fill);color:var(--on-fill)}
.chip.cpchip[aria-pressed="true"]{background:var(--accent-fill);border-color:var(--accent-fill);color:var(--on-fill)}
.countline{font-family:var(--mono);font-size:11px;color:var(--ink-faint);margin:14px 0 0}

/* ── the feed ────────────────────────────────────────────────────────────── */
.feed{margin-top:8px}
.item{border-bottom:1px solid var(--line);padding:26px 0}
.item.cp{border-left:4px solid var(--accent);padding-left:18px;background:linear-gradient(90deg,
  color-mix(in srgb,var(--accent) 4%,transparent),transparent 40%)}
.itop{display:flex;align-items:baseline;gap:11px;flex-wrap:wrap;margin-bottom:9px}
.num{font-family:var(--mono);font-size:11px;color:var(--ink-faint);font-weight:600}
.tags{display:flex;gap:6px;flex-wrap:wrap}
.tag{font-family:var(--mono);font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;
  padding:3px 8px;border-radius:4px;background:var(--tint);color:var(--slate);font-weight:600}
.tag.cpt{background:var(--accent-fill);color:var(--on-fill)}
.tag.rate{background:var(--ok-bg);color:var(--ok)}
.tag.rate.d{background:var(--warn-bg);color:var(--warn)}
.item h3{font-family:var(--serif);font-size:clamp(20px,3vw,25px);font-weight:600;
  line-height:1.24;margin:0 0 10px;letter-spacing:-.01em}
.item .body{font-size:15px;color:var(--ink-soft);margin:0 0 13px;line-height:1.6}
.item .act{background:var(--surface-2);border-radius:7px;padding:12px 15px;font-size:14px;
  color:var(--ink);border-left:3px solid var(--brand)}
.item .act b{font-family:var(--mono);font-size:9.5px;letter-spacing:.14em;text-transform:uppercase;
  color:var(--brand);display:block;margin-bottom:5px;font-weight:600}
.apps{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px;align-items:center}
.apps .lbl{font-family:var(--mono);font-size:9.5px;letter-spacing:.12em;text-transform:uppercase;
  color:var(--ink-faint)}
.app{font-family:var(--mono);font-size:10.5px;padding:4px 9px;border-radius:5px;
  background:var(--tint);color:var(--slate);border:1px solid var(--line);text-decoration:none}
a.app:hover{border-color:var(--brand);color:var(--brand)}
.app.isnew::after{content:"NEW";font-size:8px;margin-left:6px;color:var(--accent);font-weight:700}
.respnote{font-family:var(--mono);font-size:10px;color:var(--ink-faint);margin-left:auto}

/* embedded module panels */
.module{margin-top:14px;border:1px solid var(--line);border-radius:8px;background:var(--surface);
  overflow:hidden}
.module summary{cursor:pointer;padding:11px 15px;font-size:13px;color:var(--ink);
  display:flex;align-items:center;gap:9px;list-style:none;background:var(--surface-2)}
.module summary::-webkit-details-marker{display:none}
.m-tag{font-family:var(--mono);font-size:9px;letter-spacing:.12em;padding:3px 7px;border-radius:4px;
  background:var(--brand-fill);color:var(--on-fill);font-weight:600}
.m-tag.red{background:var(--accent-fill)}
.m-tag.amber{background:var(--warn-fill);color:var(--on-fill)}
.m-chev{margin-left:auto;color:var(--ink-faint);transition:transform .16s}
.module[open] .m-chev{transform:rotate(90deg)}
.m-body{padding:16px 18px}
.m-grid{display:flex;flex-wrap:wrap;gap:12px}
.m-cell{flex:1 1 130px;background:var(--surface-2);border-radius:7px;padding:12px 13px}
.m-n{font-family:var(--mono);font-size:9.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--ink-faint)}
.m-v{font-family:var(--serif);font-size:22px;font-weight:600;margin-top:5px}
.m-v.up,.m-c.up{color:var(--up)} .m-v.down,.m-c.down{color:var(--down)}
.m-v.flat,.m-c.flat{color:var(--flat)}
.m-c{font-size:11px;margin-top:3px}
.m-read{margin-top:13px;font-size:13.5px;color:var(--ink-soft);line-height:1.55}
.m-read b{color:var(--ink)}
.m-hot{background:var(--accent-fill);color:var(--on-fill);padding:12px 15px;border-radius:7px;font-size:13.5px;
  line-height:1.5;margin-bottom:13px}
.m-steps{margin:0;padding-left:20px;font-size:13.5px;line-height:1.6;color:var(--ink-soft)}
.m-steps li{margin:6px 0}
.m-steps li.crit b{color:var(--accent)}
.m-note{font-family:var(--mono);font-size:10.5px;color:var(--ink-faint);margin-top:12px;line-height:1.6}
.m-adv-h{font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--warn);font-weight:600;margin-bottom:11px}
.m-bar{display:flex;align-items:center;gap:11px;margin:8px 0;font-size:12px}
.m-bar span{flex:0 0 118px;color:var(--ink-faint);font-family:var(--mono);font-size:10px}
.m-track{flex:1;background:var(--surface-2);border-radius:100px;height:20px;overflow:hidden}
.m-fill{height:100%;display:flex;align-items:center;justify-content:flex-end;padding-right:8px;
  font-family:var(--mono);font-size:10px;font-weight:600;color:#fff;border-radius:100px}
.m-fill.a{background:var(--accent-fill)} .m-fill.n{background:var(--slate-fill)}
.m-recall{margin-top:13px;border-top:1px solid var(--line);padding-top:11px}
.m-rr{font-size:13px;color:var(--ink-soft);margin:6px 0}
.m-rr b{color:var(--ink)}
@media(max-width:520px){.m-bar span{flex-basis:88px}}

/* ── archive ─────────────────────────────────────────────────────────────── */
.arch{list-style:none;padding:0;margin:0;border-top:1px solid var(--line)}
.arch li{border-bottom:1px solid var(--line)}
.arch a{display:flex;gap:18px;align-items:baseline;padding:17px 4px;text-decoration:none;
  color:inherit;flex-wrap:wrap;transition:background .12s}
.arch a:hover{background:var(--surface-2)}
.arch .an{font-family:var(--mono);font-size:11px;color:var(--accent);font-weight:600;
  flex:0 0 74px;letter-spacing:.06em}
.arch .ad{font-family:var(--mono);font-size:11px;color:var(--ink-faint);flex:0 0 128px}
.arch .ah{font-family:var(--serif);font-size:17.5px;font-weight:500;flex:1 1 300px;
  line-height:1.3;color:var(--ink)}
.arch .am{font-family:var(--mono);font-size:10px;color:var(--ink-faint);flex:0 0 auto}
.arch .am b{color:var(--accent)}
@media(max-width:640px){.arch .ad{flex-basis:auto}.arch .an{flex-basis:auto}}

/* ── story threads ───────────────────────────────────────────────────────── */
/* The confidence arc: one column per appearance, in date order, its height the
 * "how settled was this" reading. The bar is a shape; the LABEL under it is the
 * item's own native marker, because the two eras use different instruments and
 * the page must not pretend one is the other. */
.arc{
  display:flex;align-items:flex-end;gap:3px;min-height:132px;padding:16px 14px 0;
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  overflow-x:auto;-webkit-overflow-scrolling:touch}
.arc .col{flex:1 0 42px;display:flex;flex-direction:column;justify-content:flex-end;
  align-items:center;gap:6px;min-width:42px;text-decoration:none;color:inherit;
  border-radius:6px 6px 0 0;padding-bottom:6px;transition:background .12s}
.arc .col:hover{background:var(--surface-2)}
.arc .col .bar{width:14px;border-radius:3px 3px 0 0;background:var(--brand-fill);min-height:5px}
.arc .col.hi .bar{background:var(--ok)}
.arc .col.mid .bar{background:var(--warn-fill)}
.arc .col.lo .bar{background:var(--accent-fill)}
.arc .col .d{font-family:var(--mono);font-size:8.5px;color:var(--ink-faint);
  writing-mode:vertical-rl;transform:rotate(180deg);letter-spacing:.04em;white-space:nowrap}
.arc .era{flex:0 0 1px;align-self:stretch;background:var(--accent);opacity:.5;margin:0 7px;position:relative}
.arclegend{display:flex;gap:16px;flex-wrap:wrap;font-family:var(--mono);font-size:10px;
  color:var(--ink-faint);margin-top:10px;align-items:center}
.arclegend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px;
  vertical-align:-1px}

.tl{list-style:none;padding:0;margin:26px 0 0}
.tl > li{position:relative;padding:0 0 26px 26px;border-left:2px solid var(--line)}
.tl > li:last-child{border-left-color:transparent}
.tl > li::before{content:"";position:absolute;left:-7px;top:4px;width:12px;height:12px;
  border-radius:50%;background:var(--brand-fill);border:2px solid var(--bg)}
.tl > li.cp::before{background:var(--accent-fill)}
.tl .tdate{font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;
  color:var(--accent);font-weight:600}
.tl h3{font-family:var(--serif);font-size:20px;font-weight:600;margin:7px 0 8px;line-height:1.26}
.tl h3 a{color:inherit;text-decoration:none}
.tl h3 a:hover{text-decoration:underline}
.tl p{font-size:14.5px;color:var(--ink-soft);margin:0 0 10px;line-height:1.6}
.tl .tmeta{display:flex;gap:7px;flex-wrap:wrap;align-items:center}
.tl .why{font-family:var(--mono);font-size:9.5px;color:var(--ink-faint);
  background:var(--surface-2);border:1px solid var(--line);padding:2px 7px;border-radius:4px}

.threadcard{flex:1 1 300px;min-width:0}
.threadcard .tstat{display:flex;gap:14px;flex-wrap:wrap;margin-top:11px;
  font-family:var(--mono);font-size:10px;color:var(--ink-faint)}
.threadcard .tstat b{color:var(--accent);font-weight:600}
.sparks{display:flex;align-items:flex-end;gap:2px;height:26px;margin-top:12px}
.sparks i{flex:1;background:var(--brand-fill);border-radius:1px;min-height:3px;opacity:.75}

/* ── search ──────────────────────────────────────────────────────────────── */
.searchbox{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:0 0 20px}
.searchbox input{
  flex:1 1 280px;font-family:var(--sans);font-size:15px;padding:12px 15px;
  border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink)}
.searchbox input:focus{border-color:var(--brand);outline:none}
.searchcount{font-family:var(--mono);font-size:11px;color:var(--ink-faint)}
.hit{border-bottom:1px solid var(--line);padding:15px 2px}
.hit .hmeta{font-family:var(--mono);font-size:10px;color:var(--ink-faint);
  display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.hit .hmeta a{color:var(--accent);text-decoration:none;font-weight:600}
.hit h4{font-family:var(--serif);font-size:17.5px;font-weight:600;margin:6px 0 5px;line-height:1.3}
.hit h4 a{color:inherit;text-decoration:none}
.hit h4 a:hover{text-decoration:underline}
.hit p{font-size:13.5px;color:var(--ink-soft);margin:0;line-height:1.55}
.hit mark{background:color-mix(in srgb,var(--accent) 22%,transparent);color:inherit;
  border-radius:2px;padding:0 2px}

/* ── guardrail + footer ──────────────────────────────────────────────────── */
.guard{background:var(--surface-2);border:1px solid var(--line);border-left:4px solid var(--accent);
  border-radius:8px;padding:17px 20px;font-size:13.5px;color:var(--ink-soft);line-height:1.6;
  margin-top:34px}
.guard b{color:var(--accent)}
.guard .hot{display:block;margin-top:11px;font-family:var(--mono);font-size:12px;color:var(--ink);
  line-height:2}
sitefoot,.sitefoot{display:block;border-top:1px solid var(--line);margin-top:54px;
  background:var(--surface-2)}
.sitefoot .in{max-width:1180px;margin:0 auto;padding:34px 20px 44px}
.sitefoot .frow{display:flex;gap:30px;flex-wrap:wrap;justify-content:space-between}
.sitefoot h4{font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--ink-faint);margin:0 0 10px;font-weight:600}
.sitefoot ul{list-style:none;padding:0;margin:0}
.sitefoot li{margin:6px 0}
.sitefoot a{font-size:13.5px;color:var(--ink-soft);text-decoration:none}
.sitefoot a:hover{color:var(--brand);text-decoration:underline}
.colophon{font-family:var(--mono);font-size:10.5px;color:var(--ink-faint);line-height:1.9;
  margin-top:28px;border-top:1px solid var(--line);padding-top:18px}
.colophon b{color:var(--ink-soft)}

/* ── prose ───────────────────────────────────────────────────────────────── */
.prose{max-width:70ch}
.prose h2{font-family:var(--serif);font-size:27px;font-weight:600;margin:34px 0 12px;
  letter-spacing:-.01em;line-height:1.2}
.prose h3{font-family:var(--serif);font-size:20px;font-weight:600;margin:26px 0 9px}
.prose p{font-size:15.5px;color:var(--ink-soft);line-height:1.68;margin:0 0 15px}
.prose li{font-size:15.5px;color:var(--ink-soft);line-height:1.68;margin:7px 0}
.prose strong{color:var(--ink)}

/* Reveal on scroll. The hidden state is applied ONLY when JS is confirmed
 * present (html.db-js is set by an inline script in <head> before paint), so
 * with scripting off nothing is ever invisible. Failure mode is "no
 * animation", never "no content". */
.db-rise{transform:none;opacity:1}
html.db-js .db-rise{opacity:0;transform:translateY(14px);
  transition:opacity .6s ease,transform .6s ease}
html.db-js .db-rise.is-in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){
  html.db-js .db-rise{opacity:1;transform:none;transition:none}
}

@media print{
  .sitebar,.dbhero,.narrate,.controls,.toggle,.sitefoot{display:none}
  body{background:#fff;color:#000}
}
