/* ─────────────────────────────  TOKENS  ───────────────────────────── */
:root {
  --paper: #fbfaf8;
  --paper-2: #f4f1ea;
  --ink: #16171a;
  --ink-2: #3d4045;
  --ink-3: #565a62; /* 6.6:1 on paper, 6.1:1 on paper-2 */
  --ink-4: #696d75; /* 5.0:1 on paper, 4.6:1 on paper-2 — WCAG AA floor */
  --rule: #e7e3dc;
  --rule-2: #d8d3ca;
  --accent: #8c2f21;
  --accent-2: #e8d9d4;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, Cambria, "Times New Roman", serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --measure: 54rem;
  --bar-h: 104px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.62 var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  hanging-punctuation: first allow-end;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
.wrap { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: 1.75rem; }
@media (max-width: 620px) {
  .wrap { padding-inline: .85rem; }
  .masthead { padding-block: 1rem .6rem; }
  .eyebrow { margin-bottom: .35rem; }
  .masthead h1 { font-size: 2.2rem; }
  .masthead .lede { margin-top: .35rem; font-size: .95rem; }
  .dateline { margin-top: .75rem; padding-top: .4rem; gap: .25rem .9rem; }
  .brief .wrap { padding-block: 1.2rem 1.6rem; }
  .frontpage { margin-top: 1rem; }
  .is-archived .frontpage { margin-top: 1.4rem; }
  .bar-1 { gap: .5rem .8rem; }
  .controls { gap: .3rem .8rem; }
  .ctl { gap: .4rem; }
  .seg { gap: .55rem; }
}
a { color: inherit; }
::selection { background: var(--accent-2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
mark { background: #f6e7b8; color: inherit; padding: 0 .08em; border-radius: 2px; }
#progress { position: fixed; inset: 0 auto auto 0; height: 2px; width: 0; background: var(--accent); z-index: 60; transition: width .1s linear; }

/* generic: anything keyboard-navigable + read state */
.navi { position: relative; }
.navi.is-active::before { content: ""; position: absolute; left: -1.1rem; top: .3rem; bottom: .3rem; width: 2px; background: var(--accent); }
.navi.is-read h3 a { color: var(--ink-3); }
@media (max-width: 768px) { .navi.is-active::before { left: -.6rem; } }

/* eliminate clunky multi-line focus outline box on titles; use clean accent color and underline */
.story__title a:focus,
.story__title a:focus-visible,
.lead__title a:focus,
.lead__title a:focus-visible,
.hl__title a:focus,
.hl__title a:focus-visible {
  outline: none;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ─────────────────────────────  MASTHEAD  ───────────────────────────── */
.masthead { padding-block: clamp(1.4rem, 3.5vw, 2.5rem) 1rem; }
.eyebrow { margin: 0 0 .55rem; font: 600 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.eyebrow span { color: var(--ink-4); }
.eyebrow a { text-decoration: none; border-bottom: 1px solid var(--accent-2); color: inherit; }
.eyebrow a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.masthead h1 { margin: 0; font-weight: 600; font-size: clamp(2.2rem, 7vw, 3.6rem); line-height: .98; letter-spacing: -.025em; text-wrap: balance; }
.masthead .lede { margin: .45rem 0 0; max-width: 38ch; font-style: italic; font-size: 1.02rem; color: var(--ink-3); }
.dateline { margin: 1.1rem 0 0; padding-top: .5rem; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap;
  gap: .35rem 1.4rem; font: 500 .74rem/1.4 var(--sans); letter-spacing: .055em; text-transform: uppercase; color: var(--ink-3); }
.dateline b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* an archived masthead is dated, not branded: smaller H1, breadcrumb eyebrow */
.is-archived .masthead h1 { font-size: clamp(1.9rem, 6vw, 3.1rem); letter-spacing: -.022em; }

/* ─────────────────────────────  THE BRIEF  ───────────────────────────── */
.brief { background: var(--paper-2); border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.brief[hidden] { display: none !important; }
html:not(.is-archived) .brief { display: none !important; }
.brief .wrap { padding-block: 1.5rem 2.6rem; }
.brief__head { display: flex; align-items: baseline; gap: .85rem; font: 600 .7rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.brief__head h2 { margin: 0; font: inherit; color: var(--accent); white-space: nowrap; display: flex; flex-wrap: wrap; gap: .3rem .7rem; align-items: baseline; }
.brief__head h2 em { font-style: normal; font-weight: 500; letter-spacing: .07em; color: var(--ink-3); }
.brief__head hr { flex: 1; height: 0; margin: 0; border: 0; border-top: 1px solid var(--rule-2); }
.brief__stamp { margin: 0; font: 500 .7rem/1.3 var(--sans); letter-spacing: .07em; color: var(--ink-3);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.brief__stamp b { color: var(--ink); font-weight: 600; }

.brief__overview { margin: 1.25rem 0 0; font-size: clamp(1.1rem, 2.3vw, 1.3rem); line-height: 1.47; max-width: 58ch; text-wrap: pretty; }
.brief__overview::first-letter { float: left; font-size: 3.05em; line-height: .8; font-weight: 600; color: var(--accent);
  padding: .04em .1em 0 0; margin-right: .02em; }

.frontpage { margin-top: 1.15rem; }
.is-archived .frontpage { margin-top: 2.2rem; }
.lead { padding-top: 1.1rem; border-top: 2px solid var(--ink); }
html:not(.is-archived) .lead { border-top: none; padding-top: 0; }
.lead__kicker { margin: 0; display: flex; flex-wrap: wrap; gap: .3rem .7rem; align-items: baseline;
  font: 600 .68rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.lead__kicker em { font-style: normal; font-weight: 500; letter-spacing: .07em; color: var(--ink-3); }
html:not(.is-archived) .lead__kicker { display: none; }
.lead__title { margin: .6rem 0 0; font-size: clamp(1.7rem, 4.6vw, 2.45rem); line-height: 1.1; font-weight: 600;
  letter-spacing: -.03em; text-wrap: balance; }
html:not(.is-archived) .lead__title { margin: 0; }
.lead__title a { text-decoration: none; }
.lead__title a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.lead__hook { margin: .85rem 0 0; font-size: 1.09rem; line-height: 1.52; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.lead .meta { margin-top: .55rem; }
.lead .story__take { margin-top: .95rem; max-width: 60ch; }

.hl-list { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; gap: 1.5rem 2.6rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .hl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hl { padding-top: .85rem; border-top: 1px solid var(--rule-2); }
.hl__rank { display: block; font: 600 .68rem/1 var(--sans); letter-spacing: .13em; color: var(--accent); font-variant-numeric: tabular-nums; }
.hl__title { margin: .45rem 0 0; font-size: 1.09rem; line-height: 1.27; font-weight: 600; letter-spacing: -.008em; text-wrap: balance; }
.hl__title a { text-decoration: none; }
.hl__title a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.hl__hook { margin: .45rem 0 0; font: .855rem/1.5 var(--sans); color: var(--ink-3); text-wrap: pretty; }
.meta { margin: .5rem 0 0; font: .72rem/1.4 var(--sans); color: var(--ink-4); display: flex; flex-wrap: wrap; gap: .1rem .4rem; }
.meta b { font-weight: 600; color: var(--ink-3); }
.meta > * + *::before { content: "·"; margin-right: .4rem; color: var(--ink-4); }

/* the take */
.take, .story__take {
  margin: .85rem 0 0;
  padding-left: .95rem;
  border-left: 2px solid var(--accent-2);
  max-width: 60ch;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.take b, .story__take b {
  display: block;
  margin-bottom: .15rem;
  font: 600 .63rem/1 var(--sans);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
}
.take .t, .story__take .t { display: block; }
.brief__jump { margin: 2.4rem 0 0; font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.brief__jump a { color: var(--ink-3); text-decoration: none; }
.brief__jump a:hover { color: var(--accent); }
.is-archived .brief__jump { display: none !important; }

/* ─────────────────────────────  TOOLBAR  ───────────────────────────── */
.toolbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--rule); }
.toolbar .wrap { padding-block: .7rem .3rem; }
.bar-1 { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .9rem 1.8rem; }
.search { flex: 1 1 15rem; max-width: 24rem; display: flex; align-items: center; gap: .5rem; border-bottom: 1px solid var(--rule-2); padding-bottom: .3rem; }
.search:focus-within { border-color: var(--ink); }
.search svg { flex: none; width: 13px; height: 13px; stroke: var(--ink-4); fill: none; stroke-width: 1.8; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .2rem 0; color: var(--ink); font: .9rem/1.3 var(--sans); }
.search input::placeholder { color: var(--ink-4); }
.search input:focus { outline: none; }
.search button { border: 0; background: none; padding: 0 .1rem; cursor: pointer; color: var(--ink-4); font: 1rem/1 var(--sans); }
.search button:hover { color: var(--accent); }
.search button[hidden] { display: none; }
.controls { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; align-items: baseline; }
.ctl { display: flex; align-items: baseline; gap: .7rem; }
.ctl > span { font: 600 .64rem/1 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--ink-4); }
.seg { display: flex; gap: .85rem; }
.seg button { border: 0; background: none; padding: .15rem 0 .2rem; cursor: pointer; font: .8rem/1.2 var(--sans);
  color: var(--ink-3); border-bottom: 1.5px solid transparent; transition: color .15s, border-color .15s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed=true] { color: var(--ink); border-bottom-color: var(--accent); }
.toggle { display: flex; align-items: center; gap: .4rem; font: .8rem var(--sans); color: var(--ink-3); cursor: pointer; user-select: none; }
.toggle input { accent-color: var(--accent); margin: 0; width: .9rem; height: .9rem; }
.chips {
  display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; padding: .65rem 0 .6rem; margin: 0;
  cursor: grab; user-select: none; -webkit-user-select: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips.is-dragging { cursor: grabbing; cursor: -webkit-grabbing; scroll-behavior: auto; }
.chips.is-dragging .chip { pointer-events: none; }
.chip {
  flex: none; border: 1px solid var(--rule-2); background: transparent; border-radius: 3px;
  padding: .3rem .6rem; cursor: pointer; white-space: nowrap;
  font: 500 .775rem/1 var(--sans); color: var(--ink-2); transition: .15s;
}
.chip:hover { border-color: var(--ink-3); }
.chip i { font-style: normal; color: var(--ink-4); font-variant-numeric: tabular-nums; margin-left: .35rem; }
.chip[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip[aria-pressed=true] i { color: rgba(255,255,255,.55); }

/* ─────────────────────────────  STACK  ───────────────────────────── */
#stack { scroll-margin-top: calc(var(--bar-h) + .5rem); }
.stack-head { display: flex; align-items: baseline; gap: .9rem; margin-top: 2.2rem;
  font: 600 .7rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.stack-head h2 { margin: 0; font: inherit; white-space: nowrap; }
.stack-head hr { flex: 1; height: 0; margin: 0; border: 0; border-top: 1px solid var(--ink); }
.results { margin: 1.1rem 0 0; font: .78rem/1.4 var(--sans); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: .75rem; align-items: baseline; }
.results:empty { display: none; }
.results b { color: var(--ink); font-variant-numeric: tabular-nums; }
.results em { font-style: normal; color: var(--accent); }
.results button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--accent); font: inherit;
  text-decoration: underline; text-underline-offset: 2px; }

.group { margin-top: 2.4rem; }
.group:first-child { margin-top: 1rem; }
.group__head { position: sticky; top: var(--bar-h); z-index: 5; background: var(--paper); margin: 0; padding: .55rem 0 .5rem;
  border-bottom: 1px solid var(--rule-2); display: flex; align-items: baseline; gap: .9rem;
  font: 600 .7rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.group__head em { flex: none; font-style: normal; font-weight: 500; color: var(--ink-4); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.group__head hr { flex: 1; height: 0; margin: 0; border: 0; border-top: 1px solid var(--rule); }

.story { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0 2.25rem; padding: 1.55rem 0; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--bar-h) + 1rem); }
.group__items .story:first-child { border-top: 0; }
.rail { display: flex; flex-direction: column; gap: .28rem; padding-top: .28rem; font: .75rem/1.35 var(--sans); color: var(--ink-3); }
.rail .num { font-variant-numeric: tabular-nums; font-size: .7rem; letter-spacing: .06em; color: var(--ink-4); }
.rail .src { font-weight: 600; color: var(--ink); }
.rail .cat::before { content: "▪ "; color: var(--accent); font-size: .7em; vertical-align: .1em; }
.rail .flag { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.rail a.rank { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--accent); text-decoration: none; }
.rail a.rank:hover { text-decoration: underline; text-underline-offset: 2px; }
.story:hover .rail .num { color: var(--accent); }
.story__title { margin: 0; font-size: 1.31rem; line-height: 1.26; font-weight: 600; letter-spacing: -.011em; text-wrap: balance; }
.story__title a { text-decoration: none; text-decoration-skip-ink: all; }
.story__title a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.story__orig-title { margin: .3rem 0 0; font-size: .84rem; line-height: 1.4; color: var(--ink-4); font-style: italic; max-width: 60ch; }
.story__orig-title .meta-tag { font-weight: 600; font-style: normal; color: var(--ink-3); text-transform: uppercase; font-size: .65rem; letter-spacing: .05em; margin-right: .35rem; }
.story__hook { margin: .5rem 0 0; font-size: 1rem; line-height: 1.5; color: var(--ink-2); max-width: 60ch; }
.story__summary { margin: .55rem 0 0; font: .9rem/1.55 var(--sans); color: var(--ink-3); max-width: 62ch; text-wrap: pretty; }
.story.is-read .story__summary, .story.is-read .story__take { opacity: .72; }
.empty { padding: 5rem 0; text-align: center; color: var(--ink-3); }
.empty strong { display: block; font-size: 1.35rem; color: var(--ink); margin-bottom: .4rem; }

/* ─────────────────────────────  ARCHIVE & NAVIGATION  ───────────────────────────── */


.earlier { margin-top: 4.5rem; }
.dinkus { margin: 0 0 2.2rem; text-align: center; font-size: .72rem; color: var(--accent); }
.earlier__list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1.5rem 2.6rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .earlier__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.issue { padding-top: .85rem; border-top: 1px solid var(--rule-2); }
.issue:only-child { grid-column: 1/-1; }
.issue__dir { display: block; font: 600 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.issue__date { display: inline-block; margin: .45rem 0 0; font-size: 1.25rem; line-height: 1.24; font-weight: 600;
  letter-spacing: -.012em; text-decoration: none; }
.issue__date:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.issue__lead { margin: .45rem 0 0; font: .9rem/1.5 var(--sans); color: var(--ink-3); text-wrap: pretty; max-width: 52ch; }
.issue__overview { margin: .55rem 0 0; font-size: 1rem; line-height: 1.55; color: var(--ink-3); max-width: 62ch; text-wrap: pretty; }
.earlier__all { margin: 1.8rem 0 0; font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.earlier__all a { color: var(--ink-3); text-decoration: none; }
.earlier__all a:hover { color: var(--accent); }

/* ─────────────────────────────  ARCHIVE LEDGER LANDING  ───────────────────────────── */
.issue-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0 2.25rem; padding: 1.45rem 0;
  border-top: 1px solid var(--rule); position: relative; }
.month__items .issue-row:first-child { border-top: 0; }
.issue-row__rail { display: flex; flex-direction: column; gap: .3rem; padding-top: .1rem;
  font: .75rem/1.35 var(--sans); color: var(--ink-3); }
.day { font: 600 2.15rem/.9 var(--serif); letter-spacing: -.035em; color: var(--rule-2);
  font-variant-numeric: tabular-nums; transition: color .15s; }
.issue-row:hover .day { color: var(--accent); }
.issue-row__rail .live { font-size: .66rem; letter-spacing: .11em; text-transform: uppercase; font-weight: 600; color: var(--accent); }
.issue-row__title { margin: 0; font-size: 1.22rem; line-height: 1.25; font-weight: 600; letter-spacing: -.012em; }
.issue-row__title a { text-decoration: none; }
.issue-row__title a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.issue-row__lead { margin: .4rem 0 0; font: .875rem/1.5 var(--sans); color: var(--ink-3); max-width: 60ch; }
.issue-row__lead b { font-weight: 600; color: var(--ink-2); }
.issue-row__overview { margin: .45rem 0 0; font-size: .98rem; line-height: 1.5; color: var(--ink-2); max-width: 62ch;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.month { margin-top: 2.4rem; }
.month:first-child { margin-top: 1.4rem; }
.month__head { position: sticky; top: var(--bar-h); z-index: 5; background: var(--paper); margin: 0; padding: .55rem 0 .5rem;
  border-bottom: 1px solid var(--rule-2); display: flex; align-items: baseline; gap: .9rem;
  font: 600 .7rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  scroll-margin-top: 0; }
.month__head em { flex: none; font-style: normal; font-weight: 500; color: var(--ink-4); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.month__head hr { flex: 1; height: 0; margin: 0; border: 0; border-top: 1px solid var(--rule); }

/* ─────────────────────────────  FOOTER  ───────────────────────────── */
footer { margin-top: 4.5rem; padding: 1.6rem 0 4rem; border-top: 1px solid var(--ink); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; font: .76rem/1.6 var(--sans); color: var(--ink-3); }
.keys { display: flex; flex-wrap: wrap; gap: .15rem 1.1rem; }
kbd { font: 600 .7rem/1 var(--sans); border: 1px solid var(--rule-2); border-bottom-width: 2px; border-radius: 3px;
  padding: .2rem .34rem; background: var(--paper-2); color: var(--ink-2); }
.foot button { border: 0; background: none; padding: 0; cursor: pointer; color: var(--ink-3); font: inherit; text-decoration: underline; text-underline-offset: 2px; }
.foot button:hover { color: var(--accent); }

/* ─────────────────────────────  MOBILE  ───────────────────────────── */
@media (max-width: 768px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .rail { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; padding: 0 0 .45rem; }
  .rail > * + *::before { content: "·"; margin-right: .45rem; color: var(--ink-4); }
  .rail .cat::before { content: ""; margin: 0; }
  .story__title { font-size: 1.18rem; }
  .group__head { top: calc(var(--bar-h) - 2px); }

  .issue-row { grid-template-columns: 1fr; }
  .issue-row__rail { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; padding: 0 0 .4rem; }
  .issue-row__rail > * + *::before { content: "·"; margin-right: .45rem; color: var(--ink-4); }
  .day { font-size: 1.05rem; line-height: 1.35; color: var(--ink); }
  .month__head { top: calc(var(--bar-h) - 2px); }
}

/* ─────────────────────────────  PRINT  ───────────────────────────── */
@media print {
  .toolbar, #progress, .results, .keys, .foot button, .brief__toggle, .brief__jump, .sitebar { display: none !important; }
  body { background: #fff; font-size: 10.5pt; }
  .brief { background: none; border-color: #999; }
  .take > summary { display: none; }
  .take > p, .story__take .t, .story__summary { display: block !important; -webkit-line-clamp: unset !important; overflow: visible !important; }
  .story, .lead, .hl, .issue-row { break-inside: avoid; page-break-inside: avoid; }
  .story__title a::after, .lead__title a::after { content: " — " attr(href); font: .72rem var(--sans); color: #666; word-break: break-all; }
  .group__head, .month__head { position: static; }
}

/* ── utilities ─────────────────────────────────────────────────────── */
[hidden]{display:none!important}

/* one attribute switches all stack-only chrome on and off */
html[data-state="empty"] [data-when="stories"],
html:not([data-state="empty"]) [data-when="empty"]{display:none!important}
html:not(.is-archived) .key-brief{display:none!important}

/* ── archive missing date notice ──────────────────────────────────── */
.archive-missing{margin-top:1.5rem;padding:.85rem 1.1rem;background:var(--paper-2);border-left:3px solid var(--accent)}
.archive-missing p{margin:0;font-size:.95rem;line-height:1.5;color:var(--ink-2)}
.archive-missing b{color:var(--accent)}

/* ── live: new stories pill ───────────────────────────────────────── */
.newpill{position:fixed;left:50%;bottom:1.4rem;transform:translateX(-50%);z-index:50;
  border:0;border-radius:999px;padding:.6rem 1.1rem;cursor:pointer;background:var(--ink);color:var(--paper);
  font:600 .74rem/1 var(--sans);letter-spacing:.08em;text-transform:uppercase;box-shadow:0 4px 18px rgba(0,0,0,.18)}
.newpill:hover{background:var(--accent)}
@media print{.newpill{display:none!important}}

/* ── site bar: every page; main link points to the other half of the site ── */
.sitebar{background:var(--paper-2);border-bottom:1px solid var(--rule-2)}
.sitebar .wrap{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;
  gap:.3rem 1.5rem;padding-block:.55rem}
.sitebar__status{margin:0;display:flex;flex-wrap:wrap;align-items:baseline;gap:.2rem .6rem;
  font:500 .74rem/1.6 var(--sans);color:var(--ink-3)}
.sitebar__status b{font-weight:600;font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--accent)}
.sitebar__status strong{font-weight:600;color:var(--ink);font-variant-numeric:tabular-nums}
.pulse{flex:none;width:.42rem;height:.42rem;align-self:center;background:var(--accent);
  animation:pulse 2.4s ease-in-out infinite}
.sitebar[data-page="archive"] .pulse{background:var(--ink-4);animation:none}
@keyframes pulse{50%{opacity:.2}}
.sitebar__links{margin:0;display:flex;flex-wrap:wrap;gap:.2rem 1.4rem;
  font:600 .72rem/1.6 var(--sans);letter-spacing:.08em;text-transform:uppercase}
.sitebar__links a{color:var(--ink-3);text-decoration:none}
.sitebar__links a:hover{color:var(--accent)}
.sitebar__links a.is-primary{color:var(--ink);border-bottom:1.5px solid var(--accent)}
.sitebar__links a.is-primary:hover{color:var(--accent)}

/* ── home: empty stack ─────────────────────────────────────────────── */
.empty-state{padding:2.4rem 0 .5rem}
.empty-state__title{margin:0;font-size:clamp(1.75rem,4.8vw,2.5rem);line-height:1.08;font-weight:600;
  letter-spacing:-.03em;text-wrap:balance}
.empty-state__lede{margin:1rem 0 0;max-width:56ch;font-size:1.1rem;line-height:1.55;color:var(--ink-2);text-wrap:pretty}

/* the daily cycle as a timetable, on the same rail grid as a story */
.cycle{list-style:none;margin:2.4rem 0 0;padding:0;border-top:1px solid var(--ink)}
.cycle li{display:grid;grid-template-columns:8.5rem minmax(0,1fr);gap:0 2.25rem;padding:.9rem 0;border-bottom:1px solid var(--rule)}
.cycle .at{display:flex;align-items:baseline;gap:.6rem;white-space:nowrap;
  font:600 .76rem/1.55 var(--sans);letter-spacing:.03em;color:var(--ink-3);font-variant-numeric:tabular-nums}
.cycle .mk{flex:none;width:.42rem;height:.42rem;align-self:center;background:var(--accent)}
.cycle .is-now .mk{animation:pulse 2.4s ease-in-out infinite}
.cycle .is-now .at{color:var(--accent)}
.cycle .is-next .mk{background:transparent;box-shadow:inset 0 0 0 1px var(--ink-4)}
.cycle .ev{margin:0;font-size:1rem;line-height:1.5;color:var(--ink-2);text-wrap:pretty}
.cycle .ev b{font-weight:600;color:var(--ink)}
.cycle .is-next .ev{color:var(--ink-3)}
.cycle .is-next .ev b{color:var(--ink-2)}
.cycle .eta{margin-left:.35rem;white-space:nowrap;font:600 .68rem/1 var(--sans);letter-spacing:.1em;
  text-transform:uppercase;color:var(--accent)}
.cycle a{text-decoration-color:var(--accent-2);text-underline-offset:3px}
.cycle a:hover{color:var(--accent)}

/* last night's issue: same tint and drop cap as the brief it came from */
.lastnight{margin-top:2.8rem;padding:1.35rem 1.5rem 1.6rem;background:var(--paper-2);border-top:2px solid var(--ink)}
.lastnight__kicker{margin:0;font:600 .68rem/1.3 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--accent)}
.lastnight__kicker em{margin-left:.55rem;font-style:normal;font-weight:500;letter-spacing:.07em;color:var(--ink-3)}
.lastnight__title{margin:.5rem 0 0;font-size:clamp(1.45rem,3.8vw,1.9rem);line-height:1.15;font-weight:600;letter-spacing:-.025em}
.lastnight__title a{text-decoration:none}
.lastnight__title a:hover{color:var(--accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.lastnight__lead{margin:.6rem 0 0;max-width:60ch;font:.9rem/1.5 var(--sans);color:var(--ink-3)}
.lastnight__lead b{font-weight:600;color:var(--ink-2)}
.lastnight__overview{margin:.85rem 0 0;max-width:58ch;font-size:1.02rem;line-height:1.55;color:var(--ink-2);text-wrap:pretty}
.lastnight__overview::first-letter{float:left;font-size:2.7em;line-height:.8;font-weight:600;color:var(--accent);padding:.05em .09em 0 0}
.lastnight__actions{margin:1.35rem 0 0;display:flex;flex-wrap:wrap;align-items:center;gap:.8rem 1.4rem}
.btn{display:inline-block;padding:.62rem .95rem;background:var(--ink);color:var(--paper);text-decoration:none;border-radius:2px;
  font:600 .72rem/1 var(--sans);letter-spacing:.1em;text-transform:uppercase;transition:background .15s}
.btn:hover{background:var(--accent)}
.textlink{font:600 .72rem/1 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--ink-3);text-decoration:none}
.textlink:hover{color:var(--accent)}

.watch{margin:1.8rem 0 0;display:flex;align-items:baseline;gap:.55rem;font:.76rem/1.5 var(--sans);color:var(--ink-4)}
.watch .mk{flex:none;width:.36rem;height:.36rem;align-self:center;background:var(--ink-4)}
.watch b{font-weight:600;color:var(--ink-3);font-variant-numeric:tabular-nums}

@media (max-width:768px){
  .cycle li{grid-template-columns:1fr;gap:.2rem}
  .lastnight{padding:1.2rem 1.1rem 1.4rem}
}

/* ── CLAUDE CLUSTER EXTENSIONS ── */
.cov {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .85rem;
  margin: .55rem 0 0;
}
.cov__label {
  margin-right: .1rem;
  font: 600 .62rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.cov button {
  border: 0;
  background: none;
  padding: .1rem 0 .2rem;
  cursor: pointer;
  font: .8rem/1.2 var(--sans);
  color: var(--ink-3);
  border-bottom: 1.5px solid transparent;
  transition: color .15s, border-color .15s;
}
.cov button:hover {
  color: var(--ink);
}
.cov button[aria-pressed=true] {
  color: var(--ink);
  border-bottom-color: var(--accent); /* no weight change → zero reflow */
}
.cov sup {
  margin-left: .25rem;
  font: 600 .56rem/0 var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  vertical-align: .5em;
}
.cov .cov__more {
  font-weight: 600;
  color: var(--ink-4);
}
.cov .cov__more:hover {
  color: var(--accent);
}
.rail .latest {
  font-size: .7rem;
  color: var(--ink-4);
}
.story .body.is-fresh {
  animation: fadein .18s ease-out;
}
@keyframes fadein {
  from { opacity: .2; }
  to { opacity: 1; }
}

/* Hide archive-only sort options on live feed */
html:not(.is-archived) #sort button[data-v="hpi"],
html:not(.is-archived) #sort button[data-v="coverage"] {
  display: none !important;
}

/* ─────────────────────────────  THE UNDERCURRENT (weekly)  ─────────────────────────────
   Same paper, ink and rail grid as the daily issue. One extra motif: a second rule
   beneath the surface rule (3px double) marks the weekly wherever the daily uses a
   single ink line. */
.uc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.uc-masthead__top { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem 2rem; }
.uc-issue { flex: none; margin: 0 0 .15rem; text-align: right; font: 600 .64rem/1 var(--sans); letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-4); }
.uc-issue b { display: block; margin-top: .3rem; font: 600 clamp(2.6rem, 8vw, 4.2rem)/.8 var(--serif); letter-spacing: -.045em;
  color: var(--accent); font-variant-numeric: tabular-nums; }
.uc-masthead .dateline { border-top: 3px double var(--ink); padding-top: .55rem; }

/* this week: editor's note + contents, on the brief's tint */
.uc-note { background: var(--paper-2); border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.uc-note .wrap { padding-block: 1.5rem 2.4rem; }
.uc-note .brief__head h2 { color: var(--accent); }
.uc-note__body { margin-top: 1.25rem; max-width: 60ch; }
.uc-note__body p { margin: 0; font-size: clamp(1.06rem, 2.1vw, 1.2rem); line-height: 1.55; text-wrap: pretty; }
.uc-note__body p + p { margin-top: .85rem; }
.uc-note__body p:first-child::first-letter { float: left; font-size: 3.05em; line-height: .8; font-weight: 600; color: var(--accent);
  padding: .04em .1em 0 0; margin-right: .02em; }

.uc-contents { margin-top: 2.1rem; padding-top: .85rem; border-top: 3px double var(--ink); }
.uc-contents.is-solo { margin-top: 1rem; border-top: none; padding-top: 0; }
.uc-contents__head { margin: 0; font: 600 .68rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.uc-contents ol { list-style: none; margin: .7rem 0 0; padding: 0; columns: 2 20rem; column-gap: 2.6rem; }
.uc-contents li { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr); gap: 0 .4rem; padding: .7rem 0 .75rem;
  border-top: 1px solid var(--rule-2); break-inside: avoid; }
.uc-contents__n { padding-top: .2rem; font: 600 .7rem/1.3 var(--sans); letter-spacing: .08em; color: var(--accent); font-variant-numeric: tabular-nums; }
.uc-contents__t { display: block; font-size: 1.02rem; line-height: 1.28; font-weight: 600; letter-spacing: -.008em; text-decoration: none; text-wrap: balance; }
.uc-contents__t:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.uc-contents__m { display: block; margin-top: .25rem; font: .72rem/1.4 var(--sans); color: var(--ink-4); }

/* shared story parts */
.uc-story { scroll-margin-top: 1.25rem; }
.uc-story:target .uc-num, .uc-story:target .uc-kicker span { color: var(--accent); }
.uc-standfirst { margin: .8rem 0 0; max-width: 56ch; font-size: 1.14rem; line-height: 1.5; font-style: italic; color: var(--ink-2); text-wrap: pretty; }
.uc-reported { margin: 1.15rem 0 0; max-width: 62ch; padding: .8rem 1rem .85rem; background: var(--paper-2); border-left: 2px solid var(--rule-2); }
.uc-label { display: block; margin-bottom: .4rem; font: 600 .63rem/1 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); }
.uc-reported p { margin: 0; font: .875rem/1.55 var(--sans); color: var(--ink-3); text-wrap: pretty; }
.uc-reported .uc-reported__as { margin-bottom: .35rem; font-style: italic; color: var(--ink-2); }
.uc-reported .meta { margin-top: .55rem; }
.uc-reported .meta a { color: var(--accent); font-weight: 600; text-decoration: none; }
.uc-reported .meta a:hover { text-decoration: underline; text-underline-offset: 2px; }

.uc-essay { margin-top: 1.5rem; max-width: 62ch; }
.uc-essay h4 { margin: 1.75rem 0 0; font: 600 .68rem/1.5 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--accent); text-wrap: balance; }
.uc-essay h4:first-child { margin-top: 0; }
.uc-essay p { margin: .9rem 0 0; font-size: 1.0625rem; line-height: 1.66; color: var(--ink); text-wrap: pretty; hyphens: auto; }
.uc-essay h4 + p { margin-top: .4rem; }
.uc-essay > p:first-child { margin-top: 0; }
.uc-essay blockquote { margin: 1.2rem 0 0; padding-left: .95rem; border-left: 2px solid var(--accent-2); font-style: italic; color: var(--ink-2); }

.uc-back { margin: 1.5rem 0 0; font: 600 .66rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.uc-back a { color: var(--ink-4); text-decoration: none; }
.uc-back a:hover { color: var(--accent); }

.uc-lead__title a, .uc-entry__title a { text-decoration: none; text-decoration-skip-ink: all; }
.uc-lead__title a:hover, .uc-entry__title a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* the lead: full measure, like the daily lead story */
.uc-lead { margin-top: 2.6rem; padding-top: 1.1rem; border-top: 3px double var(--ink); }
.uc-kicker { margin: 0; display: flex; flex-wrap: wrap; gap: .3rem .7rem; align-items: baseline; font: 600 .68rem/1.3 var(--sans);
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-variant-numeric: tabular-nums; }
.uc-kicker em { font-style: normal; font-weight: 500; letter-spacing: .07em; color: var(--ink-3); }
.uc-lead__title { margin: .6rem 0 0; max-width: 26ch; font-size: clamp(1.7rem, 4.6vw, 2.45rem); line-height: 1.1; font-weight: 600;
  letter-spacing: -.03em; text-wrap: balance; }
.uc-lead .uc-standfirst { font-size: clamp(1.14rem, 2.2vw, 1.25rem); }

/* the rest: rail + body, the rail rides along while the commentary scrolls */
.uc-head { margin-top: 3.6rem; }
.uc-entries { margin-top: .4rem; }
.uc-entry { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0 2.25rem; padding: 2rem 0 2.2rem; border-top: 1px solid var(--rule); }
.uc-entries > .uc-entry:first-child { border-top: 0; }
.uc-entry__rail { position: sticky; top: 1.25rem; align-self: start; display: flex; flex-direction: column; gap: .28rem;
  padding-top: .1rem; font: .75rem/1.35 var(--sans); color: var(--ink-3); }
.uc-entry__rail .src { font-weight: 600; color: var(--ink); }
.uc-entry__rail .cat::before { content: "▪ "; color: var(--accent); font-size: .7em; vertical-align: .1em; }
.uc-num { margin-bottom: .3rem; font: 600 2.15rem/.9 var(--serif); letter-spacing: -.035em; color: var(--rule-2);
  font-variant-numeric: tabular-nums; transition: color .15s; }
.uc-entry:hover .uc-num { color: var(--accent); }
.uc-entry__title { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.55rem); line-height: 1.2; font-weight: 600; letter-spacing: -.018em; text-wrap: balance; }

/* also worth a second look: reuses the front-page headline grid */
.uc-also .hl-list { margin-top: 1.2rem; }

/* where they surfaced: the seven daily issues of the week */
.uc-week { margin-top: 4rem; }
.uc-week__lede { margin: .9rem 0 0; max-width: 56ch; font: .875rem/1.5 var(--sans); color: var(--ink-3); }
.uc-week__days { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.uc-week__days li + li { border-left: 1px solid var(--rule); }
.uc-week__days a { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: .8rem .8rem 1rem; text-decoration: none; transition: background .15s; }
.uc-week__days a:hover { background: var(--paper-2); }
.uc-week__dow { font: 600 .64rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); }
.uc-week__d { font: 600 2.15rem/.9 var(--serif); letter-spacing: -.035em; color: var(--rule-2); font-variant-numeric: tabular-nums; transition: color .15s; }
.uc-week__picks { font: .72rem/1.35 var(--sans); color: var(--ink-4); font-variant-numeric: tabular-nums; }
.uc-week__days .has-picks .uc-week__d { color: var(--ink); }
.uc-week__days .has-picks .uc-week__picks { color: var(--accent); font-weight: 600; }
.uc-week__days a:hover .uc-week__d { color: var(--accent); }

/* archive ledger: weekly rows */
.issue-row.is-undercurrent .day { color: var(--accent); opacity: .55; }
.issue-row.is-undercurrent:hover .day { opacity: 1; }
.issue-row__rail .uc-tag { font-size: .66rem; letter-spacing: .11em; text-transform: uppercase; font-weight: 600; color: var(--accent); }

@media (max-width: 768px) {
  .uc-entry { grid-template-columns: 1fr; gap: 0; padding: 1.6rem 0 1.8rem; }
  .uc-entry__rail { position: static; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .1rem .45rem; padding: 0 0 .5rem; }
  .uc-entry__rail > * + *::before { content: "·"; margin-right: .45rem; color: var(--ink-4); }
  .uc-entry__rail .cat::before { content: "·"; margin-right: .45rem; font-size: inherit; vertical-align: 0; color: var(--ink-4); }
  .uc-num { margin: 0; font: 600 .75rem/1.35 var(--sans); letter-spacing: .06em; color: var(--accent); }
  .uc-reported { padding: .7rem .8rem .75rem; }
  .uc-head { margin-top: 2.8rem; }
  .uc-week__days a { padding: .65rem .35rem .8rem; }
  .uc-week__d { font-size: 1.45rem; }
  .uc-week__picks { font-size: .62rem; }
}
@media (max-width: 620px) {
  .uc-issue b { font-size: 2.6rem; }
  .uc-note .wrap { padding-block: 1.2rem 1.8rem; }
  .uc-essay p { font-size: 1.02rem; }
}
@media print {
  .uc-back, .uc-week { display: none !important; }
  .uc-entry__rail { position: static; }
  .uc-note { background: none; }
  .uc-lead, .uc-entry { break-inside: auto; }
}
