/* Site styles (name comes from js/config.js). Plain CSS, no build step.
   Nameplate: Chomsky (locked by Kyle 2026-10-09; was Pirata One). To swap the nameplate face, change --np-font below (one spot).
   Theme: "The Night Edition". A dark newsprint broadsheet: serif type, hairline column rules,
   ink-on-charcoal, with the house accents kept (ember orange, hazard yellow). */

@font-face { font-family: "Chomsky"; src: url("../assets/fonts/Chomsky-latin.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../assets/fonts/PlayfairDisplay-Variable.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../assets/fonts/PlayfairDisplay-Italic-Variable.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
/* Newsreader pinned to its text optical size (half the bytes); JetBrains Mono subset to Latin + punctuation */
@font-face { font-family: "Newsreader"; src: url("../assets/fonts/Newsreader-Text.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../assets/fonts/Newsreader-TextItalic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../assets/fonts/JetBrainsMono-Variable.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #15120e;          /* night newsprint */
  --bg-2: #1b1712;
  --card: #1b1712;
  --card-2: #211c16;
  --line: #4a4033;        /* hairline column rules */
  --line-soft: #362f26;
  --ink: #efe6d5;         /* heavy rules + headlines */
  --text: #e9dfcc;
  --muted: #b7aa92;
  --dim: #8b7f6b;
  --ember: #ff5a1f;
  --ember-2: #ff8a3d;
  --hazard: #ffd23f;
  --alive: #a6ee7c;
  --ice: #8fd3ef;
  --blood: #e5484d;
  --radius: 2px;
  --np-font: "Chomsky", "Old English Text MT", "Engravers Old English", Georgia, serif;   /* nameplate face: Chomsky (locked 2026-10-09) */
  --blackletter: var(--np-font);
  --display: "Playfair Display", "Didot", "Bodoni MT", Georgia, serif;
  --body: "Newsreader", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", Consolas, "Cascadia Mono", ui-monospace, monospace;
  --shadow: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-optical-sizing: auto;
  font-size: 1.06rem;
  color: var(--text);
  background-color: var(--bg);
  /* faint newsprint grain (inline SVG, no network) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 .95  0 0 0 0 .85  0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
main, header, footer { position: relative; z-index: 1; }
a { color: var(--ember-2); text-decoration: none; }
a:hover { color: var(--hazard); text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; }
.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mono { font-family: var(--mono); }

/* ---------- masthead / header (all pages) ---------- */
.site-header { padding-top: .7rem; }
.dateline {
  display: flex; justify-content: space-between; gap: .3rem 1.2rem; flex-wrap: wrap;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line); padding: .35rem 0;
}
.dateline b { color: var(--hazard); }
.dl-mid { color: var(--dim); }
.nameplate-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: .5rem 0 .35rem; }
.nameplate {
  font-family: var(--np-font); font-weight: 400; color: var(--ink); line-height: .95; text-align: center; font-kerning: normal;
  font-size: clamp(2.8rem, 6.6vw, 4.8rem); letter-spacing: 0; white-space: nowrap;
}
.is-home .nameplate { font-size: clamp(3.2rem, 9.2vw, 7rem); }
.nameplate:hover { color: var(--ink); text-decoration: none; }
.ear {
  margin: 0; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim);
  line-height: 1.45; border: 1px solid var(--line); padding: .4rem .6rem; max-width: 14rem;
}
.ear b { color: var(--hazard); font-weight: 700; }
.ear-l { justify-self: start; }
.ear-r { justify-self: end; text-align: right; }
.ear-gap { display: block; }
/* The tagline "The End is Near-ish." under the nameplate, set like the X header (Kyle 2026-10-09; it used to sit in the
   left corner badge). Playfair bold, cream, with the last word in ember italic. Exact casing: no uppercase transform. */
.mast-slogan {
  margin: -.1rem 0 .55rem; text-align: center; font-family: var(--display); font-weight: 700; color: var(--ink);
  font-size: clamp(1.05rem, 1.9vw, 1.4rem); line-height: 1.15; letter-spacing: .005em;
}
.is-home .mast-slogan { font-size: clamp(1.2rem, 2.6vw, 1.95rem); margin-bottom: .7rem; }
.mast-slogan em { font-style: italic; color: var(--ember); }
.nav {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
  border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); padding: .1rem 0;
}
.nav a {
  color: var(--text); font-family: var(--mono); font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  padding: .5rem 1.1rem; border-left: 1px solid var(--line);
}
.nav a:first-child { border-left: 0; }
.nav a:hover { color: var(--hazard); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ember); }
.nav a[aria-current="page"]::before { content: "\25B8 "; }

/* ---------- page heads (graveyard, upcoming, about) ---------- */
.hero { padding: 2rem 0 1.6rem; }
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--hazard); }
.dept { color: #160a04; background: var(--ember); padding: .12rem .5rem; letter-spacing: .16em; font-weight: 700; }
.hero h1, .page-title {
  font-family: var(--display); font-weight: 900; letter-spacing: -.01em;
  font-size: clamp(2.4rem, 6vw, 4.8rem); line-height: 1; margin: .5rem 0 .7rem;
}
.hero h1 .glow, .page-title .glow { color: var(--ember); font-style: italic; }
.lede { color: var(--muted); font-size: 1.2rem; max-width: 62ch; font-style: italic; }

/* ---------- countdown digits ---------- */
.digits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 1.3rem 0 1rem; border: 1px solid var(--line); }
.digit { padding: .8rem .4rem .6rem; text-align: center; border-left: 1px solid var(--line); background: rgba(0,0,0,.18); }
.digit:first-child { border-left: 0; }
.digit b {
  display: block; font-family: var(--mono); font-weight: 800; font-variant-numeric: tabular-nums;
  font-size: clamp(2.2rem, 7vw, 4.4rem); line-height: 1; color: var(--hazard);
}
.digit span { font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; color: var(--dim); text-transform: uppercase; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; margin: .8rem 0 .5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: .9rem 1.1rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; line-height: 1.05; }
.stat span { color: var(--muted); font-size: .95rem; font-style: italic; }
.stat.alive b { color: var(--alive); }
.stat.ember b { color: var(--ember); }
.stat.hazard b { color: var(--hazard); }

/* ---------- sections ---------- */
section { padding: 1.6rem 0; }

/* newspaper grid with hairline column rules between cards */
.grid-clip { overflow: hidden; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.6rem 0; margin-left: -1px; }

/* ---------- cards (graveyard obituaries) ---------- */
.card {
  background: none; border: 0; border-left: 1px solid var(--line); border-radius: 0;
  padding: 0 1.2rem; display: flex; flex-direction: column; gap: .6rem; position: relative;
}
.card::before { content: ""; display: block; border-top: 2px solid var(--ink); margin-bottom: .2rem; }
.card.tomb { text-align: left; }
.card.tomb .rip { font-family: var(--mono); font-size: .68rem; letter-spacing: .3em; color: var(--dim); text-align: left; margin: 0; text-transform: uppercase; }
.card.tomb .rip::before { content: "\2020  Obituary \00B7  "; }
.card h3 { font-family: var(--display); font-weight: 800; font-size: 1.5rem; line-height: 1.12; margin: 0; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--hazard); }
.card .who { color: var(--muted); font-size: .95rem; margin: 0; font-style: italic; }
.card blockquote { margin: 0; padding-left: .8rem; border-left: 2px solid var(--ember); color: var(--text); font-size: 1rem; }
.card blockquote.para { font-style: italic; border-left-color: var(--ice); }
.card .counter { margin-top: auto; display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: .7rem; }
.counter .num { font-family: var(--mono); font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.9rem; line-height: 1; color: var(--alive); }
.counter .num.soon { color: var(--hazard); }
.counter .lbl { color: var(--muted); font-size: .9rem; font-style: italic; }
.card .more { font-family: var(--mono); font-weight: 700; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }

.badges { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.badge {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  padding: .16rem .45rem; border-radius: var(--radius); border: 1px solid var(--line); color: var(--muted); background: transparent;
}
.badge.status-failed { color: #0f1a08; background: var(--alive); border-color: var(--alive); }
.badge.status-upcoming { color: #1a1204; background: var(--hazard); border-color: var(--hazard); }
.badge.status-pending { color: var(--ember-2); border-color: var(--ember-2); }
.badge.fresh { color: #160a02; background: #ff9f1c; border-color: #ff9f1c; font-weight: 800; }
.badge.para { color: var(--ice); border-color: #3b5a66; }
.badge.general { color: var(--ink); border: 1px dashed var(--muted); background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 5px, transparent 5px 10px); }
.ga { font-family: var(--mono); font-size: .64em; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--ink); font-style: normal;
  border: 1px dashed var(--muted); border-radius: var(--radius); padding: .05rem .35rem; margin-right: .25rem; white-space: nowrap; vertical-align: .12em; }

.cat-climate { --cat: #8fd3ef; } .cat-religious { --cat: #d6b0f5; } .cat-tech { --cat: #a6ee7c; }
.cat-economic { --cat: #ffd23f; } .cat-population { --cat: #ff8a3d; } .cat-cosmic { --cat: #ff7fae; }
.badge.cat { color: var(--cat); border-color: color-mix(in srgb, var(--cat) 45%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip {
  font-family: var(--mono); font-weight: 600; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; color: var(--muted);
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius); padding: .38rem .7rem;
}
.chip:hover { color: var(--ink); border-color: var(--muted); }
.chip[aria-pressed="true"] { color: #160a04; background: var(--ember); border-color: var(--ember); }
.chip .n { font-size: .7rem; opacity: .75; margin-left: .25rem; }
select {
  font-family: var(--body); font-size: 1rem; color: var(--text); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .35rem .6rem; margin-left: .4rem; text-transform: none; letter-spacing: 0;
}
.empty { color: var(--muted); padding: 2rem; text-align: center; border: 1px dashed var(--line); font-style: italic; }

/* ---------- upcoming list ---------- */
.upcoming-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.mini-digits { display: flex; gap: 0; border: 1px solid var(--line); }
.mini-digits div { border-left: 1px solid var(--line); padding: .4rem .55rem; text-align: center; min-width: 62px; background: rgba(0,0,0,.18); }
.mini-digits div:first-child { border-left: 0; }
.mini-digits b { display: block; font-family: var(--mono); font-weight: 800; font-size: 1.4rem; color: var(--hazard); font-variant-numeric: tabular-nums; line-height: 1.1; }
.mini-digits span { font-family: var(--mono); font-size: .58rem; letter-spacing: .15em; color: var(--dim); text-transform: uppercase; }

/* ---------- entry detail ---------- */
.entry { padding: 1.8rem 0 1rem; }
.entry-kicker { margin: .9rem 0 .2rem; }
.entry-head { font-size: clamp(2.1rem, 5vw, 3.6rem); margin-top: 0; line-height: 1.04; text-wrap: balance; }
.entry-dek { margin: 0 0 1.2rem; font-size: 1.3rem; max-width: 60ch; }
.entry-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 0; align-items: start; border-top: 3px double var(--ink); padding-top: 1.1rem; }
.entry-grid > .e-col:first-child { padding-right: 1.6rem; }
.entry-grid > .e-col + .e-col { padding-left: 1.6rem; border-left: 1px solid var(--line); min-height: 100%; }
.panel { background: none; border: 0; border-radius: 0; padding: 0 0 1.2rem; }
.panel + .panel { border-top: 1px solid var(--line); padding-top: 1rem; }
.entry-grid .panel + .panel { margin-top: 1.2rem; }
.e-file .tags { margin-top: 1rem; }
.panel h2 { font-family: var(--mono); font-weight: 700; text-transform: uppercase; font-size: .78rem; letter-spacing: .18em; margin: 0 0 .7rem; color: var(--hazard); }
.panel p { margin: 0 0 .6rem; }
.e-story p, .e-said .who { font-size: 1.06rem; }
/* The Story (body, or notes split into paragraphs): drop cap on the lede only */
.e-story p { margin: 0 0 .85rem; line-height: 1.6; max-width: 68ch; }
.e-story > p:first-of-type::first-letter { font-family: var(--display); font-weight: 900; float: left; font-size: 3.1em; line-height: .82; padding: .06em .08em 0 0; color: var(--ember); }
.e-story h3 { font-family: var(--display); font-weight: 900; font-size: 1.22rem; line-height: 1.2; margin: 1.3rem 0 .45rem; color: var(--ink); }
.e-story .story-quote { margin: .3rem 0 1rem; padding: .1rem 0 .1rem 1rem; border-left: 3px solid var(--ember); }
.e-story .story-quote p { font-family: var(--display); font-size: 1.18rem; line-height: 1.4; margin: 0; color: var(--ink); }
/* Receipts: provenance in small type, then the numbered sources */
.receipts-notes p { font-size: .9rem; line-height: 1.5; color: var(--muted); margin: 0 0 .55rem; }
.receipts-notes { margin-bottom: .8rem; }
/* See also: linked headlines */
.see-also { list-style: none; margin: 0; padding: 0; }
.see-also li { border-top: 1px solid var(--line-soft); padding: .5rem 0; }
.see-also li:first-child { border-top: 0; padding-top: 0; }
.see-also a { font-family: var(--display); font-weight: 700; line-height: 1.3; }
.big-quote { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.35; margin: 0 0 .7rem; padding-left: 1rem; border-left: 3px solid var(--ember); color: var(--ink); }
.big-quote.para { border-left-color: var(--ice); font-style: italic; font-weight: 400; }
.who { color: var(--muted); font-style: italic; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 0 1rem; margin: 0; }
.facts dt, .facts dd { border-top: 1px solid var(--line-soft); padding: .4rem 0; }
.facts dt { color: var(--dim); font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; padding-top: .55rem; }
.facts dd { margin: 0; }
.verdict { font-size: 1.12rem; border-left: 3px solid var(--alive); padding: .5rem .9rem; margin: 1rem 0 0; background: linear-gradient(90deg, rgba(166,238,124,.08), transparent); font-style: italic; }
.sources { margin: 0; padding-left: 1.2rem; }
.sources li { margin-bottom: .55rem; }
.sources small { color: var(--dim); font-family: var(--mono); display: block; font-size: .7rem; }
.panel.entry-counter { text-align: center; border: 1px solid var(--line); padding: 1rem 1.1rem 1.1rem; background: rgba(0,0,0,.16); margin-bottom: 1.2rem; }
.entry-counter h2 { text-align: center; }
.entry-counter .num { font-family: var(--mono); font-weight: 800; font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1; color: var(--alive); font-variant-numeric: tabular-nums; }
.entry-counter .num.soon { color: var(--hazard); }
.entry-counter p { margin: .4rem 0 0; color: var(--muted); font-style: italic; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tags span { font-family: var(--mono); font-size: .7rem; color: var(--muted); border: 1px solid var(--line); padding: .12rem .45rem; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 3px double var(--ink); flex-wrap: wrap; }

/* ---------- then vs now card ---------- */
.e-then-now h2 { margin-bottom: .6rem; }
.then-now-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .14);
}
.then-now-card .tn-col {
  padding: 1rem 1.1rem;
}
.then-now-card .tn-col.tn-now {
  border-left: 1px solid var(--line);
  background: rgba(0, 0, 0, .08);
}
.tn-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: var(--radius);
  margin-bottom: .6rem;
}
.tn-then .tn-badge {
  color: var(--ember);
  border: 1px solid var(--ember);
}
.tn-now .tn-badge {
  color: #0f1a08;
  background: var(--alive);
  border: 1px solid var(--alive);
}
.tn-claim {
  font-family: var(--display);
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--ink);
  margin: 0;
  font-weight: 700;
}
.tn-val {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--alive);
  line-height: 1.1;
  margin: 0 0 .3rem;
  font-variant-numeric: tabular-nums;
}
.tn-desc {
  margin: 0 0 .5rem;
  font-size: .98rem;
  color: var(--text);
  line-height: 1.3;
}
.tn-asof {
  color: var(--muted);
  font-size: .88em;
  font-style: italic;
}
.tn-meta {
  margin: .6rem 0 0;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--dim);
  line-height: 1.4;
}
.tn-meta a {
  color: var(--hazard);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.tn-meta a:hover {
  color: var(--ink);
}
.tn-retrieved {
  color: var(--dim);
}

@media (max-width: 600px) {
  .then-now-card {
    grid-template-columns: 1fr;
  }
  .then-now-card .tn-col.tn-now {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 1rem;
  }
}

/* ---------- prose (about) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-family: var(--display); font-weight: 900; font-size: 1.7rem; margin: 2rem 0 .6rem; padding-top: .4rem; border-top: 2px solid var(--ink); }
.prose p, .prose li { color: var(--text); }
.prose code { font-family: var(--mono); background: var(--bg-2); padding: .1rem .35rem; font-size: .9em; }
.status-table { width: 100%; border-collapse: collapse; margin: .8rem 0; }
.status-table td { border-top: 1px solid var(--line); padding: .6rem .4rem; vertical-align: top; }
.status-table tr:last-child td { border-bottom: 1px solid var(--line); }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--ember); padding: .9rem 1.1rem; background: rgba(0,0,0,.14); }
.callout p { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-weight: 700; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .6rem 1rem; border-radius: var(--radius); background: var(--ember); color: #160a04; border: 1px solid var(--ember);
  cursor: pointer;
}
.btn:hover { background: var(--hazard); border-color: var(--hazard); color: #160a04; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--ember); color: var(--ember-2); }

/* ---------- footer ---------- */
.site-footer { margin-top: 2.5rem; padding: 0 0 2.4rem; color: var(--dim); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 3px double var(--ink); padding-top: 1rem; }
.site-footer strong { font-family: var(--np-font); font-weight: 400; font-size: 1.5rem; color: var(--ink); }
.site-footer a { color: var(--muted); }
.placeholder-note { font-family: var(--mono); font-size: .72rem; color: var(--hazard); }
.noscript { background: var(--blood); color: #fff; padding: .8rem; text-align: center; }

/* ---------- front page ---------- */
.masthead { padding: .9rem 0 0; }
/* Quiet one-line dek under the nameplate (the big two-line hero slogan was removed 2026-10-09) */
.mast-tagline {
  font-family: var(--body, Georgia, serif); font-style: italic; font-weight: 400; text-align: center; line-height: 1.35;
  font-size: 1.05rem; color: var(--muted); margin: .1rem auto .7rem; max-width: 60ch; text-wrap: balance;
}
.mast-tagline:empty { display: none; }
.ticker { display: flex; align-items: stretch; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); overflow: hidden; }
.ticker-label { flex: none; display: flex; align-items: center; gap: .5rem; padding: .5rem .9rem; background: var(--ember); color: #160a04; font-family: var(--mono); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; z-index: 1; }
.live-dot { width: .5rem; height: .5rem; border-radius: 50%; background: #160a04; animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.ticker-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-move { display: flex; width: max-content; animation: crawl 90s linear infinite; }
.ticker:hover .ticker-move, .ticker:focus-within .ticker-move { animation-play-state: paused; }
.t-run { display: flex; align-items: center; white-space: nowrap; }
.t-item { padding: .5rem 0; font-size: 1rem; color: var(--text); }
.t-item b { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: var(--hazard); margin-right: .35rem; }
.t-cd { font-family: var(--mono); color: var(--ember-2); font-variant-numeric: tabular-nums; font-size: .9rem; }
.t-cd i { font-style: normal; }
.t-sep { color: var(--ember); padding: 0 1.1rem; font-size: .7rem; }
@keyframes crawl { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.front { padding-top: 1.4rem; }
.front-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "lead latest" "extra latest"; gap: 0; align-items: start; }
.front-grid .lead { grid-area: lead; padding-right: 1.6rem; }
.front-grid .latest { grid-area: latest; padding-left: 1.6rem; border-left: 1px solid var(--line); align-self: stretch; }
.front-grid .front-extra { grid-area: extra; padding-right: 1.6rem; margin-top: 1.4rem; }
.lead { position: relative; background: none; border: 0; padding: 0 0 1.2rem; overflow: hidden; }
.lead-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; padding: .5rem 7rem .5rem 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); }
.flag { background: #b8262c; color: #fff; padding: .1rem .45rem; font-weight: 800; letter-spacing: .14em; }
.lead-head { font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.02; margin: .2rem 0 .7rem; text-wrap: balance; letter-spacing: -.01em; }
.lead-head a { color: var(--ink); }
.lead-head a:hover { color: var(--hazard); text-decoration: none; }
.lead-dek { font-size: 1.3rem; color: var(--text); margin: 0 0 .7rem; max-width: 60ch; font-style: italic; line-height: 1.4; }
.byline { font-family: var(--mono); font-size: .74rem; color: var(--dim); margin: 0 0 .7rem; letter-spacing: .04em; text-transform: uppercase; }
.byline .ga { font-size: .95em; }
.lead-quote { margin: 1rem 0 .2rem; padding-left: 1rem; border-left: 3px solid var(--ember); font-size: 1.15rem; color: var(--text); }
.lead-quote.para { border-left-color: var(--ice); font-style: italic; }
.lead .digits { margin: 1.2rem 0 .3rem; }
.meter-lbl { margin: 0 0 .6rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); text-align: right; }
.lead .counter { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; margin: 1.1rem 0 .4rem; }
.lead .counter .num { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.lead .verdict { margin: .8rem 0 0; }
.lead-foot { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }
.stamp { position: absolute; top: .5rem; right: .35rem; transform: rotate(4deg); border: 2px solid var(--hazard); outline: 1px solid var(--hazard); outline-offset: 2px; color: var(--hazard); font-family: var(--mono); font-weight: 800; text-transform: uppercase; letter-spacing: .16em; padding: .2rem .6rem; font-size: .78rem; opacity: .9; background: var(--bg); }

.rule-head { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem 1rem; flex-wrap: wrap; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); padding: .4rem 0 .35rem; margin-bottom: .9rem; }
.rule-head h2 { font-family: var(--display); font-weight: 900; font-size: 1.5rem; margin: 0; line-height: 1.1; }
.rule-head span, .rule-head a { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rule-head a { color: var(--ember-2); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: .75rem 0; border-bottom: 1px solid var(--line-soft); }
.feed li:first-child { padding-top: 0; }
.feed h3 { font-family: var(--display); font-weight: 700; font-size: 1.14rem; line-height: 1.22; margin: .25rem 0 .25rem; }
.feed h3 a, .rail-card h3 a, .bust-card h3 a, .pick-head a { color: var(--ink); }
.feed h3 a:hover, .rail-card h3 a:hover, .bust-card h3 a:hover, .pick-head a:hover { color: var(--hazard); }
.dek { color: var(--muted); font-size: 1rem; margin: 0 0 .25rem; line-height: 1.4; }
.meta { font-family: var(--mono); font-size: .68rem; color: var(--dim); margin: 0; letter-spacing: .02em; }
.feed-kicker { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.feed-kicker .cat { color: var(--cat); }
.st { color: var(--dim); }
.st-failed { color: var(--alive); } .st-upcoming { color: var(--hazard); } .st-pending { color: var(--ember-2); }
.new { background: var(--hazard); color: #160a04; padding: 0 .35rem; font-weight: 800; }
.when { margin-left: auto; color: var(--hazard); }
.latest .more, .more { display: inline-block; margin-top: .8rem; font-family: var(--mono); font-weight: 700; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }

.band { background: none; }
.rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem 0; }
.rail-card { scroll-snap-align: start; background: none; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: .1rem 1.2rem .4rem; display: flex; flex-direction: column; gap: .45rem; }
.rail-card:nth-child(3n+1) { border-left: 0; padding-left: 0; }
.rail-card h3 { font-family: var(--display); font-weight: 800; font-size: 1.28rem; line-height: 1.12; margin: 0; }
.rail-card .mini-digits { margin-top: auto; }
.rail-card .mini-digits div { flex: 1; min-width: 0; padding: .4rem .2rem; }
.rail-card .mini-digits b { font-size: 1.2rem; }
.rail-card .due { color: var(--muted); }
.overdue-note { margin: 0; font-family: var(--mono); font-size: .76rem; color: var(--ember-2); }

.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.bust-card { border-left: 1px solid var(--line); padding: .1rem 1.1rem .2rem; display: flex; flex-direction: column; gap: .35rem; }
.bust-card:nth-child(4n+1) { border-left: 0; padding-left: 0; }
.bust-card .counter { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; }
.bust-card .counter .num { color: var(--alive); font-size: 1.7rem; }
.bust-card .counter .lbl { font-size: .85rem; }
.bust-card h3 { font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.22; margin: 0; }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; align-items: start; }
.box { background: none; border: 0; border-radius: 0; padding: 0; }
.two-col .box + .box { border-left: 1px solid var(--line); padding-left: 1.2rem; }
.two-col .box:first-child { padding-right: 1.2rem; }
.box .rule-head { border-top: 2px solid var(--ink); }
.otd-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.otd-items li { border-bottom: 1px solid var(--line-soft); padding-bottom: .65rem; }
.otd-items li:last-child { border-bottom: 0; padding-bottom: 0; }
.otd-item { margin: 0; font-size: 1.02rem; line-height: 1.35; color: var(--text); }
.otd-item b { font-family: var(--mono); color: var(--hazard); font-size: .95rem; font-weight: 700; letter-spacing: .02em; }
.otd-item a { color: var(--ink); font-weight: 700; }
.otd-item a:hover { color: var(--hazard); text-decoration: underline; text-underline-offset: 2px; }
.otd-ago { margin: .25rem 0 0; font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.otd-empty { font-size: 1.02rem; line-height: 1.45; color: var(--text); margin: 0 0 .6rem; }
.otd-empty a { color: var(--ember-2); }
.otd-empty a:hover { color: var(--hazard); }
.pick-head { font-family: var(--display); font-weight: 900; font-size: 1.6rem; line-height: 1.08; margin: .35rem 0 .4rem; }
.pick blockquote { margin: .6rem 0 .3rem; padding-left: .8rem; border-left: 2px solid var(--ember); color: var(--text); }
.pick blockquote.para { border-left-color: var(--ice); font-style: italic; }
.pick .counter { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-top: .7rem; border-top: 1px solid var(--line); padding-top: .6rem; }

.cat-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 1rem 0; border-bottom: 1px solid var(--line); }
.cat-tile { display: flex; flex-direction: column; gap: .15rem; background: none; border: 0; border-left: 1px solid var(--line); border-top: 3px solid var(--cat); padding: .7rem .9rem .8rem; color: var(--text); }
.cat-tile:first-child { border-left: 0; }
.cat-tile:hover { text-decoration: none; color: var(--text); background: rgba(255,255,255,.03); }
.cat-tile .ic { font-size: 1.2rem; }
.cat-tile b { font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.cat-tile span:last-child { font-family: var(--mono); font-size: .68rem; color: var(--muted); }

/* ---------- countdown fixes: long day counts + fuzzy-date window meters ---------- */
.digits.long { grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)); }
.digits.long .digit b { font-size: clamp(1.5rem, 3.4vw, 2.6rem); }
.digit b { overflow-wrap: normal; white-space: nowrap; }
.mini-digits.long div:first-child { flex: 1.6; }
.wmeter { margin: 1rem 0 .4rem; text-align: left; }
.wm-num { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .7rem; }
.wm-num b { font-family: var(--mono); font-weight: 800; font-variant-numeric: tabular-nums; font-size: clamp(2.3rem, 5vw, 3.4rem); line-height: 1; color: var(--hazard); }
.wm-num > span { color: var(--muted); font-size: 1rem; font-style: italic; }
.wm-row { display: flex; gap: .7rem; align-items: baseline; margin-top: .6rem; }
.wm-row span { font-family: var(--mono); font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--dim); }
.wm-row strong { font-family: var(--display); font-weight: 900; font-size: 1.4rem; color: var(--ink); }
.fuse { height: .5rem; margin-top: .8rem; background: rgba(0,0,0,.3); border: 1px solid var(--line); overflow: hidden; }
.fuse i { display: block; height: 100%; background: linear-gradient(90deg, var(--ember), var(--hazard)); }
.fuse-lbl { margin: .35rem 0 0; font-family: var(--mono); font-size: .68rem; color: var(--dim); }
.entry-counter .wmeter { text-align: left; }
.entry-counter .wm-num > span, .entry-counter .fuse-lbl { margin: 0; }
.panel.later-spin { border-top-style: dashed; }
.about-foot { margin-top: 2rem; }
.later-spin h2 { color: var(--muted); }
.later-spin p { color: var(--muted); margin: 0 0 .6rem; font-style: italic; }
.later-spin p:last-child { margin-bottom: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .front-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-template-areas: "lead" "latest" "extra"; }
  .front-grid .lead, .front-grid .front-extra { padding-right: 0; }
  .front-grid .latest { padding-left: 0; border-left: 0; margin-top: .6rem; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.2rem; }
  .bust-card:nth-child(4n+1) { border-left: 1px solid var(--line); padding-left: 1.1rem; }
  .bust-card:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.2rem; }
  .rail-card:nth-child(3n+1) { border-left: 1px solid var(--line); padding-left: 1.2rem; }
  .rail-card:nth-child(2n+1) { border-left: 0; padding-left: 0; }
  .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-tile:nth-child(4) { border-left: 0; }
}
@media (max-width: 900px) {
  /* phone/tablet: countdown right after the quote, not below the sources */
  .entry-grid { display: flex; flex-direction: column; gap: 0; }
  .entry-grid > .e-col { display: contents; }
  .entry-grid .panel + .panel { margin-top: 0; }
  .entry-grid .entry-counter { margin: 0 0 1.2rem; }
  /* the desktop grid's align-items:start becomes cross-axis (width) in this flex column; with the counter's
     inline-size container that shrank it to its padding (~37px). Stretch every panel to full width. */
  .entry-grid { align-items: stretch; }
  .entry-grid .panel { align-self: stretch; width: 100%; max-width: 100%; min-width: 0; flex: none; }
  /* belt and braces: the counter is an inline-size container (for the m/d short-label query), so it has no
     intrinsic width of its own; pin it to the column width explicitly instead of relying on stretch alone */
  .entry-grid .entry-counter, .entry-grid .entry-counter .wmeter, .entry-grid .entry-counter .wm-num { width: 100%; min-width: 0; }
  .e-said { order: 1; } .entry-counter { order: 2; } .e-story { order: 3; } .e-spin { order: 4; } .e-src { order: 5; } .e-see { order: 6; } .e-file { order: 7; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col .box + .box { border-left: 0; padding-left: 0; margin-top: 1.4rem; }
  .two-col .box:first-child { padding-right: 0; }
}
@media (max-width: 640px) {
  .wrap { width: min(1200px, 100% - 1.6rem); }
  .dateline { justify-content: center; text-align: center; font-size: .62rem; gap: .1rem .8rem; }
  .dl-mid { display: none; }
  .nameplate-row { grid-template-columns: 1fr; gap: .2rem; padding: .4rem 0 .3rem; }
  .ear, .ear-gap { display: none; }
  .mast-slogan, .is-home .mast-slogan { font-size: clamp(1.02rem, 4.6vw, 1.25rem); margin: 0 0 .5rem; }
  .nameplate, .is-home .nameplate { font-size: clamp(2.5rem, 13vw, 3.7rem); }
  .nav a { padding: .45rem .55rem; font-size: .66rem; letter-spacing: .1em; }
  .nav a[aria-current="page"]::before { content: ""; }
  .hero { padding-top: 1.3rem; }
  .mast-tagline { font-size: .95rem; }
  .ticker-label { font-size: .68rem; padding: .45rem .6rem; }
  .lead-kicker { padding-right: 5.2rem; font-size: .66rem; }
  .stamp { font-size: .62rem; right: .2rem; top: .45rem; }
  .lead-dek { font-size: 1.12rem; }
  .meter-lbl { text-align: left; }
  .strip { grid-template-columns: 1fr; }
  .bust-card, .bust-card:nth-child(4n+1), .bust-card:nth-child(2n+1) { border-left: 0; padding: 0 0 .9rem; border-bottom: 1px solid var(--line-soft); }
  .rail { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; }
  .rail-card:nth-child(n) { border-left: 1px solid var(--line); padding-left: .9rem; padding-right: .9rem; }
  .rail-card:first-child { border-left: 0; padding-left: 0; }
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-tile:nth-child(n) { border-left: 1px solid var(--line); }
  .cat-tile:nth-child(2n+1) { border-left: 0; }
  .digits { margin: 1rem 0 .8rem; }
  .digit { padding: .6rem .2rem .5rem; }
  .digit span { font-size: .56rem; letter-spacing: .12em; }
  .mini-digits div { min-width: 0; flex: 1; }
  .card { padding: 0; border-left: 0; }
  .grid { margin-left: 0; }
  .entry-dek { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-move { animation: none; }
  .ticker-track { overflow-x: auto; mask-image: none; }
  .t-run[aria-hidden="true"] { display: none; }
  .live-dot { animation: none; }
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   v2: search/filters, share, timeline, Doom Countdown, forms, embed, motion, print
   ===================================================================== */

/* ---------- accessibility ---------- */
.skip { position: absolute; left: .6rem; top: -3rem; z-index: 50; background: var(--hazard); color: #160a04; font-family: var(--mono); font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: .5rem .8rem; }
.skip:focus { top: .6rem; color: #160a04; text-decoration: none; }
:focus-visible { outline: 2px solid var(--hazard); outline-offset: 2px; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--hazard); outline-offset: 2px; }
.btn.small { padding: .38rem .7rem; font-size: .7rem; }

/* ---------- finder (search + filters) ---------- */
.finder { margin: .6rem 0 1.4rem; border-top: 3px double var(--ink); border-bottom: 1px solid var(--line); padding: .8rem 0 .5rem; display: grid; gap: .7rem; }
.find-search { position: relative; }
.find-search input {
  width: 100%; font-family: var(--display); font-size: 1.3rem; font-weight: 700; color: var(--ink); background: rgba(0,0,0,.22);
  border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem 2.8rem .6rem .9rem;
}
.find-search input::placeholder { color: var(--dim); font-weight: 400; font-style: italic; }
.find-search input:focus { border-color: var(--ember); outline: none; box-shadow: 0 0 0 2px rgba(255,90,31,.35); }
.find-search kbd { position: absolute; right: .7rem; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: .72rem; color: var(--dim); border: 1px solid var(--line); padding: .05rem .4rem; }
.find-filters { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; }
.find-filters label { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; }
.find-filters select { font-size: .95rem; max-width: 15rem; }
.find-count { margin: 0; font-family: var(--mono); font-size: .74rem; color: var(--dim); letter-spacing: .04em; }
.find-count b { color: var(--hazard); }
.empty p { margin: .2rem 0; }
.rss, .rule-head a.rss { font-family: var(--mono); font-size: .66rem; font-weight: 800; color: #160a04; background: var(--ember-2); padding: .05rem .4rem; letter-spacing: .1em; }
.rss:hover { background: var(--hazard); text-decoration: none; }

/* ---------- share ---------- */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0 0 1.2rem; }
.share.compact { margin: 1rem 0 0; }
.share-lbl { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); margin-right: .3rem; }
.sh {
  font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: var(--radius); padding: .34rem .65rem; line-height: 1.2;
}
.sh:hover { color: var(--hazard); border-color: var(--hazard); text-decoration: none; }
.sh.ok { color: #0f1a08; background: var(--alive); border-color: var(--alive); }

/* ---------- Doom Countdown ---------- */
.clock-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.clock-row .box:first-child { padding-right: 1.4rem; }
.clock-row .box + .box { border-left: 1px solid var(--line); padding-left: 1.4rem; }
.dc-wrap { display: grid; grid-template-columns: minmax(120px, 170px) 1fr; gap: 1.2rem; align-items: center; }
.dc-score { display: flex; align-items: center; gap: .8rem; margin: .4rem 0 .2rem; }
.dc-score div { text-align: center; }
.dc-score b { display: block; font-family: var(--mono); font-weight: 800; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.dc-score b.ember { color: var(--ember); } .dc-score b.alive { color: var(--alive); }
.dc-score span { font-family: var(--mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.dc-score i { font-family: var(--mono); font-style: normal; font-size: 2rem; color: var(--dim); }
.dc-sub { margin: .2rem 0; font-size: .9rem; color: var(--muted); font-style: italic; }
.digest-pitch { margin: 0 0 .8rem; font-size: 1.08rem; }
.signup { display: flex; gap: .5rem; flex-wrap: wrap; }
.signup input { flex: 1 1 12rem; }
input[type="email"], input[type="url"], input[type="text"], input:not([type]), textarea, .tip-form input {
  font-family: var(--body); font-size: 1rem; color: var(--text); background: rgba(0,0,0,.22); border: 1px solid var(--line); border-radius: var(--radius); padding: .55rem .7rem; width: 100%;
}
input:focus, textarea:focus { border-color: var(--ember); outline: none; box-shadow: 0 0 0 2px rgba(255,90,31,.35); }
.form-note { display: block; margin: .5rem 0 0; font-family: var(--mono); font-size: .72rem; color: var(--dim); }
.form-note.warn { color: var(--hazard); }
.tip-line { margin: 1rem 0 0; padding-top: .7rem; border-top: 1px solid var(--line-soft); font-style: italic; color: var(--muted); }

/* ---------- submit page ---------- */
.tip-form { display: grid; gap: .9rem; margin: 1.4rem 0 1.2rem; border-top: 3px double var(--ink); padding-top: 1.1rem; }
.field { display: grid; gap: .3rem; }
.field label, .tip-out label { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field label b { color: var(--ember); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.form-actions .form-note { margin: 0; }
.tip-out { display: grid; gap: .4rem; border: 1px dashed var(--line); padding: .9rem; }
.tip-out[hidden] { display: none; }
textarea.code { font-family: var(--mono); font-size: .8rem; color: var(--text); resize: vertical; }

/* ---------- embed widget page (iframe) ---------- */
body.bare { background: var(--bg); min-height: 0; }
.embed-card { padding: .7rem .9rem; border: 1px solid var(--line); border-top: 3px double var(--ink); margin: 4px; }
.embed-link { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: .3rem; margin-bottom: .5rem; }
.embed-link:hover { text-decoration: none; color: var(--hazard); }
.embed-name { font-family: var(--np-font); font-size: 1.5rem; line-height: 1; }
.embed-kicker { font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.doom-clock.compact .dc-wrap { grid-template-columns: 92px 1fr; gap: .8rem; }
.doom-clock.compact .dc-score b { font-size: 1.6rem; }
.doom-clock.compact .dc-sub { display: none; }

/* ---------- 404 ---------- */
.nf .page-title { font-size: clamp(2.2rem, 6vw, 4.2rem); }
.nf-alt { font-size: 1.15rem; }

/* ---------- footer extras ---------- */
.foot-links { max-width: 40rem; text-align: right; line-height: 1.8; }
.site-footer .colophon { display: block; border-top: 0; padding-top: 0; }
/* Official accounts (js/config.js "social"): footer row + About page */
.foot-follow { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: .2rem .9rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.foot-follow > span, .social-links a { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.foot-follow > span { color: var(--dim); }
.social-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.social-links a { font-weight: 700; }
.site-footer .social-links a { color: var(--ember-2); }
.prose .social-links { margin: .2rem 0 1rem; }
.prose .social-links a { display: inline-block; border: 1px solid var(--line); padding: .35rem .7rem; color: var(--ink); text-decoration: none; }
.prose .social-links a:hover { border-color: var(--hazard); color: var(--hazard); }
.colophon { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-top: 1.2rem; text-align: center; }

/* ---------- micro-animations ---------- */
.digits { perspective: 400px; }
.digit b.flip { animation: flip .38s cubic-bezier(.3,.7,.4,1); transform-origin: 50% 60%; }
@keyframes flip { 0% { transform: rotateX(-80deg); opacity: .25; } 60% { transform: rotateX(8deg); opacity: 1; } 100% { transform: none; } }
.ready .stamp { animation: thunk .55s cubic-bezier(.2,1.5,.45,1) .25s both; }
@keyframes thunk { from { transform: scale(2.4) rotate(-10deg); opacity: 0; } to { transform: rotate(4deg); opacity: .9; } }
.card, .rail-card, .bust-card { transition: background-color .2s; }
.card:hover { background: rgba(255,255,255,.02); }

/* ---------- responsive (v2 parts) ---------- */
@media (max-width: 900px) {
  .clock-row { grid-template-columns: 1fr; }
  .clock-row .box:first-child { padding-right: 0; }
  .clock-row .box + .box { border-left: 0; padding-left: 0; margin-top: 1.4rem; }
}
@media (max-width: 640px) {
  .nav { display: grid; grid-template-columns: repeat(12, 1fr); }
  .nav a { grid-column: auto / span 4; text-align: center; border-left: 1px solid var(--line); border-top: 1px solid var(--line-soft); }
  .nav a:nth-child(3n+1) { border-left: 0; }
  .nav a:nth-child(-n+3) { border-top: 0; }
  /* 7 nav items (with the Doom Desk): 4 on the first row, 3 on the second, so nothing sits alone on a row.
     A 12-column grid; specific enough to win over desk/desk.css's single-item rule on desk pages too. */
  .nav > a:first-child:nth-last-child(7), .nav > a:first-child:nth-last-child(7) ~ a { grid-column: auto / span 4; padding-left: .2rem; padding-right: .2rem; }
  .nav > a:first-child:nth-last-child(7), .nav > a:first-child:nth-last-child(7) ~ a:nth-child(-n+4) { grid-column: auto / span 3; border-top: 0; }
  .nav > a:first-child:nth-last-child(7) ~ a:nth-child(4), .nav > a:first-child:nth-last-child(7) ~ a:nth-child(7) { border-left: 1px solid var(--line); }
  .nav > a:first-child:nth-last-child(7) ~ a:nth-child(5) { border-left: 0; border-top: 1px solid var(--line-soft); }
  .find-search input { font-size: 1.1rem; }
  .find-search kbd { display: none; }
  .find-filters { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
  .find-filters label { flex-direction: column; align-items: stretch; gap: .2rem; }
  .find-filters select { margin-left: 0; max-width: none; width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .dc-wrap { grid-template-columns: 110px 1fr; gap: .9rem; }
  .foot-links { text-align: left; }
  .foot-follow { justify-content: flex-start; }
  .share-lbl { width: 100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .digit b.flip, .ready .stamp { animation: none !important; }
}

/* ---------- print: black ink on paper ---------- */
@media print {
  :root { --ink: #000; --text: #111; --muted: #333; --dim: #555; --line: #999; --line-soft: #ccc; --ember: #000; --ember-2: #000; --hazard: #000; --alive: #000; --ice: #000; }
  body { background: #fff !important; color: #111; font-size: 11pt; }
  .skip, .nav, .ticker, .share, .finder, .tlx-deck, .tlx-views, .digest, .clock-box, .lead-foot, .pager, .more, .noscript, .foot-links, .stamp, .tip-form { display: none !important; }
  a { color: #000; }
  .sources a::after { content: " (" attr(href) ")"; font-size: 8pt; word-break: break-all; }
  .badge { border-color: #000 !important; background: none !important; color: #000 !important; }
  .digit, .entry-counter, .wmeter, .mini-digits div { background: none !important; }
  .card { break-inside: avoid; }
  .site-footer { margin-top: 1rem; }
}
.doom-clock.compact .dc-score { margin: .2rem 0 0; }
.dc-side { min-width: 0; }

/* "Also live" line under the lead: other open windows / near deadlines */
.also-live { list-style: none; margin: 1.1rem 0 0; padding: .7rem 0 0; border-top: 1px dashed var(--line, #3a332a); display: grid; gap: .45rem; font-size: .95rem; }
.also-live li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .6rem; }
.also-live a { font-weight: 700; }
.also-live .al-when { font-family: var(--mono, monospace); font-size: .78rem; color: var(--muted, #b7ab98); text-transform: uppercase; letter-spacing: .04em; }
.flag.sm { font-size: .68rem; padding: .1rem .4rem; }

/* ---------- durations: years, months, days (js/duration.js / tools/duration.py make the markup) ---------- */
/* Long form "181 years, 11 months, 7 days" by default; short "181y 11m 7d" on narrow cards (container queries) or inside .compact */
.dur { white-space: normal; }
.dur .du { white-space: nowrap; }
.dur .du b { font: inherit; color: inherit; }
.dur .dl { font-family: var(--body, inherit); font-style: italic; font-weight: 400; font-size: .5em; letter-spacing: 0; color: var(--muted); }
.dur .ds { display: none; font-size: .56em; font-weight: 700; color: var(--muted); margin-left: .04em; }
.dur .dsep { font-style: normal; font-size: .5em; }
.dur .dsep .dl { font-size: 1em; }
.compact .dur .dsep { font-size: .7em; }
.compact .dur .dl, .dur.compact .dl { display: none; }
.compact .dur .ds, .dur.compact .ds { display: inline; }
.card .counter, .lead .counter, .bust-card .counter, .pick .counter, .entry-counter, .wm-num { container: dur / inline-size; }
@container dur (max-width: 13.5rem) {
  .dur .dl { display: none; }
  .dur .ds { display: inline; }
}
.counter .lbl { flex: 1 1 9rem; }
.counter.inline .num { color: var(--alive); font-size: 1em; }
.t-cd i { white-space: nowrap; }
/* entry pages: the since-count as big stacked blocks, like the countdown digits */
.entry-counter .num .dur { display: flex; justify-content: center; flex-wrap: wrap; gap: .1rem 1.8rem; }
.entry-counter .num .dsep { display: none; }
.entry-counter .num .du { display: flex; flex-direction: column; align-items: center; }
.entry-counter .num .dl { display: block; font-family: var(--mono); font-style: normal; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-top: .35rem; }
.entry-counter .num .ds { display: none; }
@media (max-width: 420px) {
  /* small phones: keep Y / M / D on one row where it fits, wrap cleanly where it doesn't */
  .entry-counter .num { font-size: clamp(2.2rem, 11vw, 2.8rem); }
  .entry-counter .num .dur { gap: .5rem 1.1rem; }
  .entry-counter .num .dl { font-size: .62rem; letter-spacing: .16em; }
}
/* countdowns of a month or more: Years / Months / Days digits plus a small live hh:mm:ss */
.digits.ymd.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.digits.ymd.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.digits.ymd .digit b { font-size: clamp(2rem, 6vw, 3.8rem); }
.cd-hms { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--muted); letter-spacing: .06em; }
.digits .cd-hms { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: .35rem .5rem; text-align: center; font-size: clamp(1rem, 2.4vw, 1.35rem); background: rgba(0,0,0,.12); }
.digits .cd-hms b { color: var(--ember-2); font-weight: 700; }
.mini-digits.ymd .md { flex: 1; }
.mini-digits .cd-hms, .rail-card .mini-digits .cd-hms { flex: 1.5 1 auto; display: flex; align-items: center; justify-content: center; min-width: 0; padding: .3rem .35rem; font-size: .82rem; white-space: nowrap; }
.mini-digits .cd-hms b, .rail-card .mini-digits .cd-hms b { display: inline; font-size: inherit; font-weight: 700; color: var(--ember-2); line-height: inherit; }

/* entry pages: "Put this countdown on your site" -> the Doom Desk clock builder with this entry preselected */
.embed-this { display: inline-block; margin-top: .8rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--hazard); }
.embed-this:hover { color: var(--ink); }


/* ---------- sticky compact nav (v4): pins to the top once the masthead's menu scrolls away ---------- */
html { scroll-padding-top: 64px; }
.sticky-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 40; background: rgba(21,18,14,.96); border-bottom: 1px solid var(--ink);
  box-shadow: 0 6px 18px rgba(0,0,0,.35); transform: translateY(-110%); visibility: hidden; transition: transform .2s ease-out, visibility 0s linear .2s; }
@supports (backdrop-filter: blur(4px)) { .sticky-nav { background: rgba(21,18,14,.86); backdrop-filter: blur(6px); } }
html.nav-stuck .sticky-nav { transform: none; visibility: visible; transition: transform .2s ease-out, visibility 0s; }
.sticky-nav .wrap { display: flex; align-items: center; gap: 1.2rem; height: 50px; }
.sn-name { flex: none; font-family: var(--np-font); font-size: 1.7rem; line-height: 1; color: var(--ink); white-space: nowrap; }
.sn-name:hover { color: var(--hazard); text-decoration: none; }
.sn-links { display: flex; align-items: center; margin-left: auto; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sn-links::-webkit-scrollbar { display: none; }
.sn-links a { flex: none; color: var(--text); font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: .45rem .75rem; border-left: 1px solid var(--line-soft); white-space: nowrap; }
.sn-links a:first-child { border-left: 0; }
.sn-links a:hover { color: var(--hazard); text-decoration: none; }
.sn-links a[aria-current="page"] { color: var(--ember); }
@media (prefers-reduced-motion: reduce) { .sticky-nav, html.nav-stuck .sticky-nav { transition: none; } }
@media print { .sticky-nav { display: none !important; } }
@media (max-width: 900px) { .sn-links a { padding: .45rem .55rem; letter-spacing: .1em; } }
@media (max-width: 640px) {
  html { scroll-padding-top: 56px; }
  .sticky-nav .wrap { gap: .6rem; height: 44px; }
  .sn-name { font-size: 1.25rem; }
  .sn-links { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 22px), transparent); }
  .sn-links a { font-size: .64rem; letter-spacing: .08em; padding: .55rem .55rem; }
}

/* ---------- v4: countdown block (due-soon rail, upcoming cards, Doom Countdown) ---------- */
.cb { display: flex; flex-direction: column; gap: .3rem; margin-top: auto; }
.cb .mini-digits { margin: 0; }
.cb .mini-digits .md, .cb .mini-digits > div { flex: 1; min-width: 0; padding: .45rem .2rem .35rem; }
.cb .mini-digits b { font-size: 1.45rem; }
.cb .mini-digits.ymd-only b { color: var(--hazard); }
.cb .mini-digits .md-hms { flex: 1.7; }
.cb .mini-digits .md-hms span { white-space: nowrap; letter-spacing: .04em; }
.cb .mini-digits .md-hms b { color: var(--ink); font-size: 1.15rem; line-height: 1.26; }
.up-card .cb .mini-digits .md-hms b { font-size: 1.3rem; line-height: 1.35; }
.cb-cap { margin: 0; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-over { border: 1px dashed var(--ember-2); padding: .55rem .7rem; }
.cb-over-n { margin: 0; font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.cb-over-n b { font-size: 1.2rem; color: var(--ember-2); }

/* due soon: equal-height cards, countdown pinned to the bottom */
.rail { grid-auto-rows: 1fr; }
.due-card { gap: .5rem; padding-bottom: .2rem; }
.due-card h3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(3 * 1.12em); }
.due-card .dc-who { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(2 * 1.5em); line-height: 1.5; }
.due-card .when { color: var(--hazard); font-weight: 700; }

/* latest doom sidebar: everything, each with a live timer */
.lf .feed-kicker { gap: .45rem; }
.lf-tag { font-weight: 800; padding: .05rem .35rem; border: 1px solid currentColor; }
.lf-new .lf-tag { color: var(--ink); } .lf-bust .lf-tag { color: var(--alive); } .lf-next .lf-tag { color: var(--hazard); } .lf-over .lf-tag { color: var(--ember-2); }
.lf h3 { margin: .3rem 0 .2rem; }
.lt { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .4rem; margin: .4rem 0 0; font-family: var(--mono); font-size: .7rem; color: var(--dim); letter-spacing: .02em; }
.lt b { font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.lt-up b { color: var(--hazard); } .lt-since b { color: var(--alive); } .lt-over b { color: var(--ember-2); }
.lt-ic { width: 1.1em; text-align: center; font-size: .8rem; color: var(--dim); }
.lt [data-cd="inline"] i { font-style: normal; }

/* Doom Countdown box (home + embed.html) */
.dcd { grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
.dcd-next { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.dcd-k { margin: 0; font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.dcd-t { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.3rem; line-height: 1.15; }
.dcd-t a { color: var(--ink); }
.dcd .cb { margin-top: .2rem; }
.dcd .dc-side { display: flex; flex-direction: column; justify-content: center; align-items: center; border-left: 1px solid var(--line-soft); padding-left: 1.1rem; }
.dcd .dc-sub { text-align: center; }
.doom-clock.compact .dcd { grid-template-columns: 1fr; gap: .3rem; }
.doom-clock.compact .dcd-next { gap: .2rem; }
.doom-clock.compact .dcd-t { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doom-clock.compact .dcd .dc-side, .doom-clock.compact .cb-cap { display: none; }
.doom-clock.compact .cb .mini-digits .md, .doom-clock.compact .cb .mini-digits > div { padding: .25rem .1rem .2rem; }
.doom-clock.compact .cb .mini-digits b { font-size: 1.1rem; }
.doom-clock.compact .cb .mini-digits .md-hms b { font-size: .95rem; line-height: 1.16; }
@media (max-width: 520px) { .dcd { grid-template-columns: 1fr; } .dcd .dc-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: .6rem; flex-direction: row; gap: 1rem; } }

/* ---------- v4: Upcoming page, grouped by time horizon ---------- */
.hz-jump { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.2rem 0 .4rem; }
.hz-jump a { font-family: var(--mono); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text); border: 1px solid var(--line); padding: .35rem .6rem; }
.hz-jump a b { color: var(--hazard); margin-left: .25rem; }
.hz-jump a:hover { border-color: var(--hazard); color: var(--hazard); text-decoration: none; }
.hz { margin-top: 1.8rem; }
.hz-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .7rem; border-top: 3px double var(--ink); padding-top: .6rem; margin-bottom: 1rem; }
.hz-head h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 3vw, 2rem); }
.hz-n { font-family: var(--mono); font-weight: 800; font-size: .8rem; color: #160a04; background: var(--hazard); padding: .05rem .45rem; }
.hz-head p { margin: 0; flex-basis: 100%; font-style: italic; color: var(--muted); }
.up-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1rem; }
.up-card { display: flex; flex-direction: column; gap: .55rem; border: 1px solid var(--line); border-top: 3px solid var(--cat, var(--hazard)); background: rgba(0,0,0,.14); padding: .9rem 1rem 1rem; min-width: 0; }
.up-card:hover { background: rgba(255,255,255,.02); }
.up-card.up-open { border-color: var(--hazard); }
.up-card.up-overdue { border-top-color: var(--ember-2); }
.uc-top { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
.uc-chip { color: var(--cat, var(--text)); border: 1px solid color-mix(in srgb, var(--cat, #b7aa92) 45%, transparent); padding: .12rem .45rem; white-space: nowrap; }
.uc-live { --cat: var(--hazard); font-weight: 800; }
.uc-over { --cat: var(--ember-2); font-weight: 800; }
.uc-fresh { --cat: #ff9f1c; font-weight: 800; color: #ff9f1c; border-color: #ff9f1c; }
.uc-ga { --cat: var(--muted); }
.uc-when { margin-left: auto; color: var(--hazard); font-weight: 700; white-space: nowrap; }
.up-card h3 { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.32rem; line-height: 1.15; }
.up-card h3 a { color: var(--ink); }
.up-card h3 a:hover { color: var(--hazard); }
.uc-who { margin: 0; font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.uc-quote { margin: 0; padding: .1rem 0 .1rem .75rem; border-left: 3px solid var(--line); font-style: italic; font-size: .98rem; line-height: 1.4; color: var(--text); }
.up-card .cb { padding-top: .2rem; }
.up-card .cb .mini-digits b { font-size: 1.75rem; }
@media (max-width: 640px) { .up-card .cb .mini-digits b { font-size: 1.45rem; } .up-card h3 { font-size: 1.2rem; } }

/* ---------- WO-2: Full-width Deadline Day events ---------- */
.deadline-strip[hidden], .fresh-doom-wrap[hidden] { display: none; }
.deadline-strip { width: 100%; margin: 0; padding: 0; }
.dd-fullwidth {
  width: 100%;
  padding: 1.6rem 0;
  box-sizing: border-box;
  user-select: text;
  -webkit-user-select: text;
}
.dd-fullwidth.dd-live {
  background: radial-gradient(ellipse at 80% 20%, rgba(255, 210, 63, .12), transparent 70%), #211a12;
  border-top: 3px solid var(--hazard);
  border-bottom: 3px solid var(--hazard);
}
.dd-fullwidth.dd-busted {
  background: radial-gradient(ellipse at 80% 20%, rgba(166, 238, 124, .12), transparent 70%), #141f12;
  border-top: 4px solid var(--alive);
  border-bottom: 4px solid var(--alive);
}
.dd-fullwidth.dd-teaser {
  background: #1d1610;
  border-top: 2px solid var(--ember);
  border-bottom: 2px solid var(--ember);
  padding: 1rem 0;
}
.dd-content {
  position: relative;
}
.dd-teaser-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 1.6rem;
}
.dd-teaser-main { flex: 1 1 24rem; min-width: 0; }
.dd-teaser-p { margin: .3rem 0 0; font-size: .95rem; color: var(--muted); }
.dd-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .6rem;
}
.dd-kicker .live-dot { flex: none; }
.dd-kicker .live-dot + .dd-tag { flex: 1 1 0; min-width: 0; }
.dd-punchline {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  color: var(--alive);
  line-height: 1.15;
  margin: .3rem 0 .5rem;
  text-shadow: 0 0 20px rgba(166, 238, 124, .2);
}
.dd-head {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.05;
  margin: .2rem 0 .6rem;
  letter-spacing: -.01em;
}
.dd-head a {
  color: var(--ink);
  cursor: pointer;
  user-select: text;
  -webkit-user-select: text;
}
.dd-head a:hover {
  color: var(--hazard);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.dd-head-sm {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 0;
}
.dd-head-sm a { color: var(--ink); }
.dd-head-sm a:hover { color: var(--hazard); }
.dd-quote {
  margin: .7rem 0 .4rem;
  padding-left: 1rem;
  border-left: 3px solid var(--ember);
  font-size: 1.18rem;
  color: var(--text);
  max-width: 65ch;
  line-height: 1.35;
}
.dd-quote.para { border-left-color: var(--ice); font-style: italic; }
.dd-byline {
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--dim);
  margin: .4rem 0 .7rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.dd-clock-panel {
  margin: 1.1rem 0 .8rem;
  padding: .8rem 1.1rem;
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--line);
  display: inline-block;
  min-width: min(100%, 28rem);
}
.dd-clock-lbl {
  display: block;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: .4rem;
}
.dd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 1rem;
}
/* One label per banner: the stamp (top right on wide screens, first line on phones) */
.dd-stamp {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0;
  font-family: var(--mono);
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--bg);
  pointer-events: none;
}
.dd-stamp-live { color: var(--hazard); border: 2px solid var(--hazard); outline: 1px solid var(--hazard); outline-offset: 2px; padding: .25rem .75rem; font-size: .82rem; }
.dd-stamp-busted, .dd-stamp-passed { color: var(--alive); border: 3px solid var(--alive); outline: 2px solid var(--alive); outline-offset: 3px; padding: .35rem 1.2rem; font-size: clamp(1.3rem, 3vw, 2.2rem); transform: rotate(-5deg); box-shadow: 0 0 20px rgba(166, 238, 124, .25); }
.dd-stamp-passed { font-size: clamp(1.1rem, 2.4vw, 1.7rem); }
.dd-fullwidth.dd-passed {
  background: radial-gradient(ellipse at 80% 20%, rgba(166, 238, 124, .08), transparent 70%), #17180f;
  border-top: 3px solid var(--alive);
  border-bottom: 3px solid var(--alive);
}
@media (max-width: 800px) {
  .dd-stamp { position: static; display: inline-block; transform: none; margin-bottom: .8rem; }
  .dd-clock-panel { min-width: 100%; }
}

/* ---------- WO-5: Fresh doom on file ---------- */
.fresh-doom-wrap {
  padding: 1.5rem 0 0.5rem;
}
.fresh-card {
  border: 2px solid #ff9f1c;
  background: linear-gradient(135deg, rgba(255, 159, 28, .09) 0%, rgba(0, 0, 0, .24) 100%);
  padding: 1.4rem 1.6rem;
}
.fresh-kicker-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: .6rem;
  margin-bottom: 1rem;
}
.fresh-kicker {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #ff9f1c;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.fresh-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff9f1c;
  box-shadow: 0 0 8px #ff9f1c;
  animation: pulse 2s infinite;
}
.fresh-when {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
}
.fresh-when b {
  color: var(--ink);
}
.fresh-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 1.8rem;
  align-items: center;
}
.fresh-badges {
  margin-bottom: .5rem;
}
.fresh-head {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.15;
  margin: 0 0 .6rem;
  font-weight: 800;
}
.fresh-head a {
  color: var(--ink);
}
.fresh-head a:hover {
  color: #ff9f1c;
}
.fresh-quote {
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--text);
  margin: 0 0 .5rem;
  padding-left: .8rem;
  border-left: 3px solid #ff9f1c;
  font-style: italic;
}
.fresh-who {
  font-size: .92rem;
  color: var(--muted);
  margin: 0;
  font-style: italic;
}
.fresh-timer {
  background: rgba(0, 0, 0, .28);
  border: 1px solid var(--line);
  padding: 1.2rem;
  text-align: center;
}
.fresh-timer-title {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: .4rem;
}
.fresh-timer-digits {
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: #ff9f1c;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.fresh-timer-until {
  font-size: .88rem;
  color: var(--muted);
  font-style: italic;
  margin: .35rem 0 .9rem;
}
.fresh-btn {
  display: block;
  width: 100%;
  text-align: center;
  font-size: .88rem;
  padding: .5rem 1rem;
}
.fresh-entry-timer {
  margin-bottom: .6rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--muted);
}
.fresh-entry-timer b {
  color: #ff9f1c;
}
@media (max-width: 760px) {
  .fresh-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
}


/* English translation shown with a foreign-language quote (data: quote_en) */
.quote-en { display: block; margin-top: .4rem; font-family: var(--body); font-style: italic; font-size: .82em; color: var(--muted); }

/* (The 2026-10-09 hybrid timeline styles were retired to timeline/_retired/; the timeline v3 styles are at the end of this file.) */

/* ---------- Timeline of Doom v3 (built ground-up 2026-10-09; js/app.js renderTimeline) ----------
   Two views of one model: Across (.tlx-h, a horizontal newspaper track) and Down (.tlx-v, a real vertical timeline).
   The retired hybrid's styles are in timeline/_retired/. Marker colours: --c per status. */
.tl-failed { --c: var(--alive); } .tl-upcoming { --c: var(--hazard); } .tl-overdue { --c: var(--ember-2); }
.tlx-hero { padding-bottom: .4rem; }
.tlx-hero .lede { margin-bottom: 0; }
.tlx { padding-bottom: 1rem; }
.tlx-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; border-top: 3px double var(--ink); padding-top: .8rem; }
.tlx-views { display: inline-flex; border: 1px solid var(--line); }
.tlx-view { font-family: var(--mono); font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: transparent; border: 0; padding: .55rem 1rem; cursor: pointer; }
.tlx-view + .tlx-view { border-left: 1px solid var(--line); }
.tlx-view span { font-family: var(--body); font-size: 1rem; margin-right: .2rem; }
.tlx-view:hover { color: var(--ink); }
.tlx-view[aria-pressed="true"] { background: var(--ink); color: #160a04; }
.tlx-tally { margin: 0; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; color: var(--muted); }
.tlx-tally b { color: var(--ink); font-weight: 800; }
/* control deck: big year + buttons + rail (sticky under the compact nav in the Down view) */
.tlx-deck { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: .5rem 1.2rem; padding: .9rem 0 .6rem; }
.tlx-readout { display: flex; flex-direction: column; min-width: 5.2ch; }
.tlx-year { font-family: var(--display); font-weight: 900; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: .95; color: var(--hazard); font-variant-numeric: tabular-nums lining-nums; }
.tlx-gap { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ember-2); min-height: 1.2em; margin-top: .2rem; white-space: nowrap; }
.tlx-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .45rem; }
.tlx-btn { font-family: var(--mono); font-weight: 700; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text); background: transparent; border: 1px solid var(--line); padding: .55rem .8rem; cursor: pointer; }
.tlx-btn:hover:not(:disabled) { border-color: var(--muted); color: var(--ink); }
.tlx-btn:disabled { opacity: .38; cursor: default; }
.tlx-play { min-width: 7.4rem; background: var(--ember); border-color: var(--ember); color: #160a04; }
.tlx-play:hover:not(:disabled) { background: var(--hazard); border-color: var(--hazard); color: #160a04; }
.tlx.is-playing .tlx-play { background: var(--ink); border-color: var(--ink); }
.tlx-speed { display: inline-flex; border: 1px solid var(--line); }
.tlx-speed button { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: transparent; border: 0; padding: .55rem .6rem; cursor: pointer; }
.tlx-speed button + button { border-left: 1px solid var(--line-soft); }
.tlx-speed button[aria-checked="true"] { color: var(--hazard); box-shadow: inset 0 -2px 0 var(--hazard); }
.tlx-rail { grid-column: 1 / -1; position: relative; height: 40px; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; margin: .2rem 7px 0; }
.tlx-rline { position: absolute; left: 0; right: 0; top: 15px; height: 2px; background: var(--line); }
.tlx-rfill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--muted); }
.tlx-rtick { position: absolute; top: 10px; width: 2px; height: 12px; margin-left: -1px; background: var(--c); opacity: .8; }
.tlx-rtoday { position: absolute; top: 25px; transform: translateX(-50%); font-family: var(--mono); font-size: .58rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ember-2); }
.tlx-rtoday::before { content: ""; position: absolute; left: 50%; top: -17px; width: 2px; height: 16px; margin-left: -1px; background: var(--ember); }
.tlx-rlab { position: absolute; top: 25px; font-family: var(--mono); font-size: .6rem; color: var(--dim); }
.tlx-rlab.l { left: -7px; } .tlx-rlab.r { right: -7px; }
.tlx-thumb { position: absolute; top: 16px; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--hazard); box-shadow: 0 0 0 4px rgba(255,210,63,.22), 0 2px 8px rgba(0,0,0,.5); }
.tlx-rail:focus-visible { outline: 2px solid var(--hazard); outline-offset: 4px; }
.tlx-dwell { grid-column: 1 / -1; height: 2px; background: var(--line-soft); overflow: hidden; }
.tlx-dwell i { display: block; height: 100%; background: var(--hazard); transform: scaleX(0); transform-origin: 0 50%; }
.tlx.is-held .tlx-dwell i { background: var(--ember-2); }
.tlx-btn:focus-visible, .tlx-view:focus-visible, .tlx-speed button:focus-visible, .tlx-node:focus-visible, .tlx-vdot:focus-visible { outline: 2px solid var(--hazard); outline-offset: 2px; }

/* Across: stage with a fixed reading line; the strip glides under it */
.tlx-stage { position: relative; height: 340px; overflow: hidden; margin-top: .6rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.tlx-stage.dragging { cursor: grabbing; }
.tlx-reader { position: absolute; left: 50%; top: 0; bottom: 0; width: 0; border-left: 1px dashed rgba(255,210,63,.45); z-index: 0; pointer-events: none; }
.tlx-strip { position: absolute; left: 0; top: 0; height: 100%; width: 0; will-change: transform; z-index: 1; }
.tlx-spine { position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--line); }
.tlx-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); opacity: .7; }
.tlx-node { position: absolute; top: 0; height: 50%; width: calc(var(--tlx-gap, 140px) * 2 - 26px); transform: translateX(-50%); padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tlx-node.down { top: 50%; }
.tlx-dot { position: absolute; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--bg); border: 2px solid var(--c); transition: transform .3s, background-color .3s; z-index: 2; }
.tlx-node.up .tlx-dot { bottom: -6px; } .tlx-node.down .tlx-dot { top: -6px; }
.tlx-node::after { content: ""; position: absolute; left: 50%; width: 1px; height: 18px; background: var(--line); }
.tlx-node.up::after { bottom: 6px; } .tlx-node.down::after { top: 6px; }
.tlx-ny { position: absolute; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: .64rem; font-weight: 700; color: var(--dim); white-space: nowrap; }
.tlx-node.up .tlx-ny { top: calc(100% + 12px); } .tlx-node.down .tlx-ny { bottom: calc(100% + 12px); }
.tlx-mini { position: absolute; left: 0; right: 0; display: block; padding: .5rem .65rem .55rem; background: var(--card); border: 1px solid var(--line-soft); border-top: 2px solid var(--c);
  opacity: .5; transition: opacity .35s, transform .35s, border-color .35s, background-color .35s; }
.tlx-node.up .tlx-mini { bottom: 24px; } .tlx-node.down .tlx-mini { top: 24px; }
.tlx-mwhen { display: block; font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tlx-mhead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-family: var(--display); font-weight: 700; font-size: .95rem; line-height: 1.18; color: var(--ink); }
.tlx-node:hover .tlx-mini { opacity: .85; }
.tlx-node.on .tlx-mini { opacity: 1; background: var(--card-2); border-color: var(--line); border-top-color: var(--c); box-shadow: 0 8px 22px rgba(0,0,0,.45); }
.tlx-node.up.on .tlx-mini { transform: translateY(-4px); } .tlx-node.down.on .tlx-mini { transform: translateY(4px); }
.tlx-node.on .tlx-dot { background: var(--c); transform: scale(1.45); box-shadow: 0 0 0 4px rgba(255,210,63,.18); }
.tlx-node.on .tlx-ny { color: var(--hazard); }
.tlx-lapse { position: absolute; top: 50%; transform: translate(-50%, -50%); font-family: var(--mono); font-size: .58rem; letter-spacing: .06em; color: var(--ember-2); background: var(--bg); padding: .1rem .35rem; border: 1px solid var(--line-soft); white-space: nowrap; z-index: 1; }
.tlx-todaymark { position: absolute; top: 8px; bottom: 8px; width: 0; border-left: 2px solid var(--ember); z-index: 1; pointer-events: none; }
.tlx-todaymark b { position: absolute; top: 0; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: .58rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #160a04; background: var(--ember); padding: .1rem .35rem; }
.tlx-plate { position: absolute; top: 50%; margin: 0; width: 13rem; font-family: var(--mono); font-size: .7rem; line-height: 1.6; letter-spacing: .04em; color: var(--muted); }
.tlx-plate.start { transform: translate(-100%, -50%); text-align: right; }
.tlx-plate.end { transform: translate(0, -50%); }
.tlx-plate b { display: block; font-family: var(--display); font-size: 1.5rem; font-weight: 900; letter-spacing: 0; color: var(--ink); line-height: 1.1; margin-bottom: .3rem; }
/* Across: the card you are reading */
.tlx-card { margin-top: 1rem; border: 1px solid var(--line); border-left: 4px solid var(--hazard); background: rgba(0,0,0,.18); padding: 1rem 1.2rem 1.1rem; min-height: 14rem; }
.tlx-card.swap { animation: tlxIn .32s ease-out; }
@keyframes tlxIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tlx-kick { margin: 0 0 .35rem; font-family: var(--mono); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ember-2); }
.tlx-no { color: var(--dim); font-weight: 600; margin-right: .5rem; }
.tlx-title { font-family: var(--display); font-weight: 900; font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.12; margin: 0 0 .45rem; overflow-wrap: anywhere; }
.tlx-title a { color: var(--ink); }
.tlx-title a:hover { color: var(--hazard); text-decoration: none; }
.tlx-who { margin: 0 0 .4rem; color: var(--muted); font-size: .95rem; }
.tlx-status { margin: 0 0 .5rem; }
.tlx-since { font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.tlx-dek { margin: 0 0 .4rem; color: var(--text); max-width: 70ch; }
.tlx-more { margin: .3rem 0 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

/* Down: a real vertical timeline (centre spine; left spine on phones) */
.tlx[data-view="v"] .tlx-deck { position: sticky; top: 50px; z-index: 20; background: rgba(21,18,14,.94); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(4px)) { .tlx[data-view="v"] .tlx-deck { background: rgba(21,18,14,.82); backdrop-filter: blur(6px); } }
.tlx-col { position: relative; list-style: none; margin: 1.2rem 0 0; padding: 0 0 2rem; --tlx-prog: 0px; }
.tlx-col::before, .tlx-col::after { content: ""; position: absolute; left: 50%; top: 0; width: 2px; margin-left: -1px; }
.tlx-col::before { bottom: 0; background: var(--line); }
.tlx-col::after { height: var(--tlx-prog); background: linear-gradient(var(--line), var(--ink)); opacity: .8; }
.tlx-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: start; margin: 0 0 1.1rem; }
.tlx-vdot { grid-row: 1; grid-column: 2; justify-self: center; position: relative; z-index: 2; width: 16px; height: 16px; margin-top: 1.05rem; padding: 0; border-radius: 50%; background: var(--bg); border: 2px solid var(--c); cursor: pointer; transition: transform .3s, background-color .3s; }
.tlx-vcard { grid-row: 1; position: relative; padding: .8rem 1rem .85rem; background: var(--card); border: 1px solid var(--line-soft); border-top: 2px solid var(--c); cursor: pointer; transition: opacity .35s, border-color .35s, box-shadow .35s, background-color .35s; }
.tlx-item.l .tlx-vcard { grid-column: 1; } .tlx-item.r .tlx-vcard { grid-column: 3; }
.tlx-vcard::before { content: ""; position: absolute; top: 1.5rem; width: 20px; height: 1px; background: var(--line); }
.tlx-item.l .tlx-vcard::before { right: -21px; } .tlx-item.r .tlx-vcard::before { left: -21px; }
.tlx-vcard .tlx-title { font-size: clamp(1.1rem, 2vw, 1.35rem); }
.tlx-vcard .tlx-dek { font-size: .97rem; color: var(--muted); }
.tlx-vcard a { cursor: pointer; }
.tlx.is-playing .tlx-item:not(.on) .tlx-vcard { opacity: .5; }
.tlx-item.on .tlx-vcard { background: var(--card-2); border-color: var(--line); border-top-color: var(--c); box-shadow: 0 0 0 1px rgba(255,210,63,.35), 0 10px 26px rgba(0,0,0,.45); opacity: 1; }
.tlx-item.on .tlx-vdot { background: var(--c); transform: scale(1.3); }
.tlx-era { position: relative; z-index: 1; text-align: center; margin: 1.6rem 0 1.1rem; }
.tlx-era span { display: inline-block; font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1; color: var(--ink); background: var(--bg); padding: .25rem .9rem; border-top: 3px double var(--ink); border-bottom: 1px solid var(--ink); }
.tlx-vlapse, .tlx-vnow { position: relative; z-index: 1; text-align: center; margin: -.2rem 0 1.1rem; }
.tlx-vlapse span { display: inline-block; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ember-2); background: var(--bg); border: 1px dashed var(--line); padding: .2rem .6rem; }
.tlx-vnow { margin: .4rem 0 1.4rem; }
.tlx-vnow::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px solid var(--ember); }
.tlx-vnow span { position: relative; display: inline-block; font-family: var(--mono); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #160a04; background: var(--ember); padding: .25rem .7rem; }
.tlx-vhead { position: absolute; left: 50%; top: 0; width: 0; height: 0; z-index: 3; pointer-events: none; list-style: none; will-change: transform; }
.tlx-vhead::before { content: ""; position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--hazard); box-shadow: 0 0 0 5px rgba(255,210,63,.15), 0 0 18px rgba(255,210,63,.35); }
.tlx-vhead b { position: absolute; left: 0; top: -2.1rem; transform: translateX(-50%); font-family: var(--mono); font-size: .7rem; font-weight: 800; color: #160a04; background: var(--hazard); padding: .05rem .35rem; white-space: nowrap; }

@media (max-width: 720px) {
  .tlx-deck { grid-template-columns: 1fr; gap: .45rem; }
  .tlx-readout { flex-direction: row; align-items: baseline; gap: .7rem; }
  .tlx-bar { justify-content: flex-start; }
  .tlx-play { flex: 1 1 auto; }
  .tlx-btxt { display: none; }
  .tlx-speed { flex: 1 1 100%; }
  .tlx-speed button { flex: 1 1 0; }
  .tlx-stage { height: 300px; }
  .tlx-mhead { font-size: .86rem; }
  .tlx-plate { width: 8.6rem; font-size: .62rem; }
  .tlx-plate b { font-size: 1.1rem; }
  .tlx-card { padding: .85rem .9rem 1rem; min-height: 16rem; }
  .tlx[data-view="v"] .tlx-deck { grid-template-columns: auto minmax(0, 1fr); }
  .tlx[data-view="v"] .tlx-readout { flex-direction: column; }
  .tlx[data-view="v"] .tlx-gap, .tlx[data-view="v"] .tlx-speed, .tlx[data-view="v"] .tlx-today-btn { display: none; }
  .tlx[data-view="v"] .tlx-year { font-size: 2rem; }
  .tlx-col::before, .tlx-col::after, .tlx-vhead { left: 13px; }
  .tlx-item { grid-template-columns: 28px minmax(0, 1fr); }
  .tlx-vdot { grid-column: 1; }
  .tlx-item.l .tlx-vcard, .tlx-item.r .tlx-vcard { grid-column: 2; }
  .tlx-item.l .tlx-vcard::before, .tlx-item.r .tlx-vcard::before { left: -9px; right: auto; width: 8px; }
  .tlx-era { text-align: left; padding-left: 34px; }
  .tlx-vlapse, .tlx-vnow { text-align: left; padding-left: 34px; }
  .tlx-vhead b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tlx-card.swap { animation: none; }
  .tlx-mini, .tlx-dot, .tlx-vcard, .tlx-vdot { transition: none; }
}

/* ---------- Front page polish (2026-10-09): hierarchy, spacing, contrast, calmer chrome ----------
   CSS-only apart from the Deadline Day day-count and the "Also live" label (js/app.js). Tidies; adds no content. */
:root { --dim: #9a8d77; }                       /* small mono meta was a touch too faint on night newsprint */
.meta { font-size: .72rem; line-height: 1.5; }
.feed-kicker { font-size: .68rem; }
/* ticker: slimmer label, readable crawl */
.ticker { margin-top: .1rem; }
.t-item { font-size: .98rem; }
/* Deadline Day teaser: a boxed front-page notice with a big day count, not a loose full-bleed stripe */
.dd-fullwidth.dd-teaser { background: none; border: 0; padding: 1.1rem 0 0; }
.dd-teaser .dd-teaser-wrap { border: 1px solid rgba(255,90,31,.55); border-left: 6px solid var(--ember); padding: 1rem 1.3rem; align-items: center;
  background: linear-gradient(100deg, rgba(255,90,31,.10), rgba(255,90,31,.02) 55%, transparent); }
.dd-teaser .dd-head-sm { font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.15; margin: .35rem 0 .3rem; text-wrap: balance; }
.dd-teaser-side { display: flex; align-items: center; gap: 1.2rem; flex: none; }
.dd-teaser-count { margin: 0; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.dd-teaser-count b { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--hazard); font-variant-numeric: lining-nums tabular-nums; }
.dd-teaser-count span { font-family: var(--mono); font-size: .64rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; white-space: nowrap; }
/* lead story: clearer order (kicker > headline > dek > byline), calmer extras */
.front { padding-top: 1.6rem; }
.lead-head { margin: .35rem 0 .8rem; }
.lead-dek { color: var(--muted); }
.byline { color: var(--muted); }
.lead-quote { font-size: 1.12rem; line-height: 1.5; }
.also-live-h { margin: 1.3rem 0 0; font-family: var(--mono); font-size: .66rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.also-live { margin-top: .45rem; padding: 0; border-top: 0; gap: 0; }
.also-live li { padding: .5rem 0; border-top: 1px solid var(--line-soft); }
.also-live li:last-child { border-bottom: 1px solid var(--line-soft); }
.also-live a { font-family: var(--display); font-weight: 700; color: var(--ink); line-height: 1.25; }
.also-live a:hover { color: var(--hazard); }
.also-live .al-when { flex: 1 1 100%; font-size: .68rem; }
.lead-foot { margin-top: 1.3rem; }
.lead .share { margin: .9rem 0 0; gap: .3rem; }
.lead .share .sh { padding: .25rem .55rem; font-size: .64rem; }
/* Latest doom: tighter, scannable rail (who/when line kept to two lines) */
.latest .rule-head h2 { font-size: 1.6rem; }
.lf { transition: background-color .2s; }
.lf h3 { font-size: 1.08rem; line-height: 1.24; }
.lf .meta { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lf:hover { background: rgba(255,255,255,.018); }
/* section rhythm */
main > section:not(.masthead):not(.front):not(.fresh-doom-wrap) { margin-top: 2.4rem; }
.rule-head h2 { letter-spacing: -.005em; }
/* subtle arrival: the front page settles in once the data is drawn (off for reduce-motion) */
@keyframes dtRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ready .front-grid > .lead { animation: dtRise .5s ease-out both; }
.ready .front-grid > .latest { animation: dtRise .5s ease-out .08s both; }
.ready .front-grid > .front-extra { animation: dtRise .5s ease-out .16s both; }
.ready .deadline-strip:not([hidden]) { animation: dtRise .45s ease-out both; }
@media (max-width: 640px) {
  .ticker-label { padding: .45rem .6rem; font-size: .64rem; letter-spacing: .1em; gap: .35rem; }
  .t-item { font-size: .92rem; }
  .dd-teaser .dd-teaser-wrap { padding: .9rem 1rem; }
  .dd-teaser-side { width: 100%; justify-content: space-between; }
  .dd-teaser-count { flex-direction: row; align-items: baseline; gap: .5rem; }
  .dd-teaser-count b { font-size: 2.4rem; }
  .lead-kicker { font-size: .66rem; padding-right: 6.2rem; }
  .lead-dek { font-size: 1.15rem; }
  .lead .share .share-lbl { width: auto; }
  main > section:not(.masthead):not(.front):not(.fresh-doom-wrap) { margin-top: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ready .front-grid > *, .ready .deadline-strip:not([hidden]) { animation: none; }
}
@media (max-width: 640px) { .lead-foot .btn { flex: 1 1 auto; justify-content: center; } }
