/* The feed: shell, lead and second-tier feed, article rows, byline, digest, related.
   Part of the Cabinhub News newsroom stylesheet set (see frontend/css/README).
   Class names are contractual: frontend/app.js emits them.

   Design rule (TEAM.md §8, Han 2026-11-06): the Apple way. One system sans and
   the serif only for headlines, four sizes, sentence case, no letterspaced caps,
   no monospace a reader has to read, no numbered items, no framed cards. A card
   here is text separated by a hairline; the page carries no decoration. */

/* =========================================================== shell ===== */

.shell {
  max-width: var(--page);
  margin: 0 auto;
  padding: clamp(0.9rem, 2vw, 1.5rem) var(--pad-r) clamp(2rem, 5vw, 3.5rem) var(--pad-l);
}

/* The edition line above the feed: a quiet caption with a hairline under it,
   not a section banner. */
.feed-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-2) var(--sp-5);
  flex-wrap: wrap;
  padding-bottom: var(--sp-2);
  margin-bottom: clamp(0.9rem, 2vw, 1.4rem);
  border-bottom: 1px solid var(--rule);
}

.feed-note {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-faint);
}
.feed-note__mark { width: 12px; height: 2px; background: var(--accent); flex: none; align-self: center; }
/* The home surface names itself: "Newsroom" / "编辑部" leads the edition line.
   Ink, not faint, so it reads as the section the reader is in; a hairline
   middot separates it from the status caption that follows. */
.feed-note__section { color: var(--ink); font-weight: 600; }
.feed-note__section::after {
  content: "·";
  margin-left: 0.55rem;
  color: var(--rule-strong);
  font-weight: 400;
}

.status-note {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 clamp(0.9rem, 2vw, 1.4rem);
  padding: 0;
  border: 0;
  font-size: var(--fs-meta);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.status-note--stale { color: var(--ink-faint); }

/* ============================================================ feed =====
   Two columns: the lead takes the measure, the rail is a narrow index held by
   one hairline. On phones everything stacks and rules do the separating. */

.feed {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.1rem, 2.2vw, 1.8rem);
}

@media (min-width: 900px) {
  .feed {
    grid-template-columns: minmax(0, 2.55fr) minmax(19rem, 1fr);
    align-items: start;
    column-gap: clamp(1.4rem, 2.6vw, 2.4rem);
  }
  .feed--single { grid-template-columns: minmax(0, 1fr); }
  /* The rail: one hairline, no counter, no rule over its heading. */
  .feed__side {
    border-left: 1px solid var(--rule-soft);
    padding-left: clamp(1rem, 1.8vw, 1.6rem);
    border-top: 0;
    padding-top: 0;
  }
}

.feed__lead { min-width: 0; }

/* The phone ordering host, immediately after the lead. It carries no height of
   its own: at 1120px and wider the band stays in the `div.mk-slot` reservation up the
   page and this box is empty, so the feed is unchanged at every wider width.
   Below 1120px js/markets.js MOVES the one tape node into it (never a copy), which
   puts the lead story before the market band — the headline reaches the first
   screen instead of sitting 39.8px past an 844px fold. */
.feed__markets { display: none; }
@media (width < 1120px) {
  .feed__markets:not(:empty) { display: block; margin-bottom: var(--sp-4); }
  /* The band has left the top slot, so the slot's reservation would be a blank
     strip of the band's own height above a feed that no longer holds it.
     js/markets.js sets [data-mk-moved] on the slot at the same moment it moves
     the tape, so the blank and the move can never disagree. */
  .mk-slot[data-mk-moved] { display: none; }
}

/* ------------------------------------------------ the lead ------------ */

.article {
  position: relative;
  display: block;
  color: var(--ink);
  text-decoration: none;
  background: transparent;
}

.article--lead {
  padding: 0 0 1.1rem;
  border-bottom: 1px solid var(--rule);
}

.article__meta {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-faint);
  margin-bottom: 0.55rem;
}
/* The category is the one label in colour; everything else stays faint. */
.article__cat {
  color: var(--accent);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.article__dot { width: 3px; height: 3px; background: var(--rule); flex: none; align-self: center; }
/* A separator that ends a wrapped line reads as a field the renderer dropped.
   The .article__meta row (the lead and the article variants) is `flex-wrap:
   wrap`, so the dot before the time could sit at the end of line 1 with the
   time beneath it: measured live 2026-11-16 on the lead card at 390, 768, 1024
   and 1440 — orphaned at FOUR widths, one line of 46px instead of 20. Drawing
   the mark as the ::before of the item it introduces keeps the two in the same
   line box at every width, which is the only fix that does not depend on
   guessing where the row will break. */
.article__meta > .article__dot { display: none; }
.article__meta > .article__dot + *::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  margin-inline-end: 0.45rem;
  vertical-align: 0.15em;
  background: var(--rule);
}
.article__time { font-family: var(--font-ui); font-variant-numeric: tabular-nums; }

/* The lead headline: --fs-lead is 28px at 390 and 40px at 1440, and that is the
   size the page uses. app.js sets --lead-scale from item importance (0.94-1.18);
   min() caps it at 1 so no item can push the lead past the token's 40px ceiling,
   while the mechanism stays in place for the app.js owner to remove. */
.article__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
  font-size: calc(var(--fs-lead) * min(var(--lead-scale, 1), 1));
  max-width: 20ch;
  margin-bottom: 0.55rem;
}

.article__deck {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 58ch;
  margin-bottom: 0.6rem;
  text-wrap: pretty;
}

.article__bullets {
  list-style: none;
  padding: 0.7rem 0 0;
  display: grid;
  gap: 0.42rem;
  margin-bottom: 0.85rem;
  border-top: 1px solid var(--rule-soft);
}
.article__bullets li {
  position: relative;
  padding-left: 1rem;
  max-width: 54ch;
  font-size: var(--fs-label);
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.article__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 5px;
  height: 1px;
  background: var(--accent);
}

/* The foot is the reading line: quotes, the desk's index number, the read
   affordance. Same face and size as the dateline. */
.article__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.article__tickers { display: inline-flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; min-width: 0; }

/* The importance score is a desk fact on the same quiet line as the quotes:
   sentence case, the smallest reading size, no tracking. */
.article__index {
  color: var(--ink-faint);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}
.article__index::before { content: "· "; color: var(--rule); }

.ticker { font-variant-numeric: tabular-nums; }
.ticker__sym { color: var(--ink-faint); }
.ticker__val { color: var(--ink); font-weight: 600; }
.ticker__chg { color: var(--ink); }
.ticker__chg--down { color: var(--ink); }

.article__more {
  color: var(--ink-faint);
  white-space: nowrap;
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  transition: color var(--dur-1) var(--ease);
}

/* ------------------------------------------------ the latest rail ----- */

.feed__side {
  counter-reset: none;
  border-top: 1px solid var(--rule);
  min-width: 0;
  /* The index sizes itself from the box it is given, not from the window: a
     3-item list in the 21rem desktop rail stays one column, and the same list
     spanning a 600-899 tablet stacks as a 2-3 up shelf instead of three
     full-width headlines. MEASURED 2026-11-16 (tools/n3_tablet.mjs, chromium
     149, fixture feed at 600/700/768/834): one column at every width, each card
     the full 562-781px, headline measure 65ch/en and 75ch/en rising to 88ch at
     834 -- past WCAG 1.4.8's 80 and the 75ch ceiling this product's own
     tokens.css states. The same intrinsic pattern is already used by
     .feed__digest-grid below; this is that rule, not a new mechanism. */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  column-gap: clamp(1rem, 2.4vw, 2rem);
  row-gap: 0;
  align-content: start;
}

/* The "Index · newest first" caption is a heading for the whole shelf, so it
   spans every track whatever count the container resolved to. */
.feed__side > .section-head { grid-column: 1 / -1; }

/* An index entry is a headline, not an essay: 40ch is the CJK ceiling WCAG
   1.4.8 sets (80 for Latin) and within the desktop rail's measured ~35ch, so
   this changes nothing at >=900px and only bites where the card would
   otherwise run the full page width. */
.feed__side .card__title { max-width: 40ch; }

/* The index column's heading, the digest section headings and the related
   shelf share one quiet caption. */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0 0 var(--sp-2);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.section-head span:last-child { color: var(--ink-faint); font-weight: 500; font-variant-numeric: tabular-nums; }
.section-head__rule { display: none; }

.card {
  position: relative;
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 0.8rem 0 0.85rem;
  border-top: 1px solid var(--rule-soft);
}
.card:first-of-type { border-top: 0; }
.card::before { content: none; }

/* Hover is a colour change only; nothing moves, nothing underlines. */
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__title { color: var(--accent); }
  .article:hover .article__title { color: var(--accent); }
  .article:hover .article__more { color: var(--accent); }
  .digest-item:hover .digest-item__title { color: var(--accent); }
  .result:hover .card__title { color: var(--accent); }
}

.card__meta {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-faint);
  margin-bottom: var(--sp-1);
}
.card__cat {
  color: var(--accent);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.card__source { color: var(--ink-faint); max-width: 11ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__meta time { font-family: var(--font-ui); font-variant-numeric: tabular-nums; }

/* The story FORMAT (app.js formatNode; js/review.js owns the words). It sits
   beside the subject on the one story whose form is not news. A framed word
   label, not a second coloured category: the subject keeps the accent and the
   form keeps the rule colour, so the two never read as two subjects.
   The label is WORDS at the label size (--fs-label, 13 px, above the 12 px
   floor), never small capitals: docs/DESIGN.md §3 retires uppercase on reader
   surfaces, and frontend/tests/type_law.test.mjs is what keeps the declaration
   from drifting back — it is two days older than this badge, so the badge is
   what moved, not the law. Nothing is drawn on a news story, which is the
   corpus. */
.article__format,
.card__format {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 0 0.34em;
  align-self: center;
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.008em;
  color: var(--ink);
  text-wrap: pretty;
  transition: color var(--dur-1) var(--ease);
}
.card__deck {
  grid-area: deck;
  margin-top: 0.3rem;
  font-size: var(--fs-small);
  line-height: 1.65;
  color: var(--ink-faint);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}
/* In the narrow rail the source name would push the byline onto its own line;
   the category and the time carry the identification there. */
.feed__side .card__source,
.feed__side .card__source + .article__dot { display: none; }

/* The rail is an index, and an index names its items: dateline and headline.
   Two summaries beside the lead would make three articles compete with the
   one the page is built around, and a 96px plate would wrap the headline in a
   213px column — so the rail carries neither. Cards that do carry a deck
   (river, secondary) keep theirs. */
.feed__side .card__deck { display: none; }
.feed__side .card .thumb,
.feed__side .card .thumb--card:has(.thumb__img) { display: none; }

/* A rail card carries art only when there is a generated image; without one
   there is no frame at all. `.thumb--card` is applied by app.js
   (mediaBlock(item, 'card')); the thumb's internals belong to media.css, this
   file only decides whether the slot shows. */
.card .thumb { display: none; }
.card .thumb--card:has(.thumb__img) { display: block; float: right; width: 96px; margin: 0.15rem 0 0.35rem 0.7rem; }
.card .thumb--card .thumb__empty { display: none; }
.card .thumb--card:has(.thumb__img) .thumb__img { aspect-ratio: 1 / 1; }

.card__snippet {
  margin-top: 0.45rem;
  font-size: var(--fs-label);
  line-height: 1.6;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
/* `.card__snippet-field` was removed with the label it styled (app.js §7: the index's column
   name is no longer shown to a reader), so no rule is left behind for a span nothing emits. */

/* =========================================================== byline ======
   Every item is compiled by the desk, so every item carries the desk's byline.
   It is a quiet credit in the same face and colour as the dateline, not a badge.
   The word "AI" is deliberately part of the sentence, because a reader deciding
   whether to trust a number needs to know a machine assembled it.

   app.js does not emit a byline element yet, so these are generated from the
   metadata that already exists. REQUEST to the app.js owner: emit a real
   <span class="byline"> inside .card__meta, .digest-item__meta, .article__meta
   and .detail__head — the diff is in .agent-state/hierarchy/N3_APPJS_REQUESTS.md.
   Keep the generated pair below and its zh-Hans pair while app.js emits none. */

.card__meta::after {
  content: "By Ember";
  color: var(--ink-faint);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
html[lang="zh-Hans"] .card__meta::after { content: "Ember 撰稿"; }

/* The lead's credit rides the DATELINE, never the deck.
   Measured 2026-11-16 on the live feed at 390, 768 and 1440: the deck is
   clamped (`-webkit-line-clamp: var(--v-deck-clamp)` + `overflow: hidden`,
   cards.css) so a `::after` block inside it is part of the clamped box. The
   deck measured clientHeight 77 against scrollHeight 128 at every one of the
   three widths — the statutory "AI-generated content" notice was painted
   outside the clip and a reader never saw it. A pseudo-element cannot escape
   its own box's clamp, so the credit moves to the meta line, which is not
   clamped and is where every other card in the product already prints its
   "By Ember". Same words, same locale pair, same label type; it now renders. */
.article--lead .article__meta::after {
  content: "By Ember · AI-generated content";
  color: var(--ink-faint);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
html[lang="zh-Hans"] .article--lead .article__meta::after { content: "Ember 撰稿 · AI 生成内容"; }

/* The article page's head is styled by detail.css; the credit is a caption
   under it, in the reading size, not a stamp. */
.detail__head::after {
  content: "By Ember · AI-generated content";
  display: block;
  margin-top: 0.65rem;
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-faint);
}
html[lang="zh-Hans"] .detail__head::after { content: "Ember 撰稿 · AI 生成内容"; }

/* =========================================================== digest ====
   The index under the lead: a ruled list of headlines, two or three columns.
   No counters; a reader is never shown "01", "02". */

.feed__digest {
  grid-column: 1 / -1;
  margin-top: clamp(0.4rem, 1.2vw, 0.8rem);
  border-top: 1px solid var(--rule);
  padding-top: var(--sp-2);
  counter-reset: none;
}

.feed__digest-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: var(--sp-2);
}
.feed__digest-title {
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  white-space: nowrap;
}

/* The number of columns follows the width the list actually has, not the
   width of the window: under the lead on a 1440 page the digest holds 672px,
   and three 205px headline columns there are narrower than the rail. */
.feed__digest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  column-gap: clamp(1rem, 2.4vw, 2rem);
  row-gap: 0;
}

.card--digest {
  display: block;
  padding: 0.6rem 0 0.65rem;
  border-top: 1px solid var(--rule-soft);
  counter-increment: none;
}
.card--digest::before { content: none; }
.card--digest .card__meta { margin-bottom: 0.1rem; }
/* The headline is the item, the dateline identifies it: one size step apart,
   never the same 13px twice. */
.card--digest .card__title { font-size: var(--fs-small); font-weight: 600; line-height: 1.35; }
.card--digest .card__deck { display: none; }
/* Category and time identify an item in a list this dense; the source does
   not, and at 12ch it wraps the dateline onto a second line and leaves its
   separator dangling at the line break. */
.feed__digest .card__source,
.feed__digest .card__source + .article__dot { display: none; }
/* No plate in the index list. The 96px float above wins on specificity
   (0,3,0 vs 0,2,0), so the slot is closed here with a selector that ties it
   and, being later in the file, takes the tie. */
.feed__digest .card .thumb,
.feed__digest .card .thumb--card:has(.thumb__img) { display: none; }


/* =========================================================== digest ====
   The day's digest page: one headline, a summary, then the sectioned list. */

.digest__head { max-width: 60rem; border-bottom: 1px solid var(--rule); padding-bottom: var(--sp-3); }
.digest__day {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  margin-bottom: var(--sp-1);
}
.digest__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-lead);
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
  max-width: 24ch;
  margin-bottom: var(--sp-2);
}
.digest__summary { font-size: var(--fs-deck); line-height: 1.65; color: var(--ink-soft); max-width: var(--measure-deck); text-wrap: pretty; }
.digest__counts {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.digest__sections { margin-top: clamp(1rem, 2.6vw, 1.8rem); }

/* Edition shape: stories per subject. One hue (--accent) on a recessive track; the
   count is printed beside every bar, so identity and magnitude never rely on colour
   alone. The <table> is the chart, not a hidden duplicate: it renders as the summary
   and survives with the SVG suppressed. */
.digest-chart {
  margin-top: clamp(1rem, 2.4vw, 1.6rem);
  border-collapse: collapse;
  width: 100%;
  max-width: 42rem;
  font-family: var(--font-ui);
  font-size: var(--fs-label);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.digest-chart__caption {
  text-align: left;
  font-weight: 600;
  color: var(--ink-faint);
  letter-spacing: 0;
  margin-bottom: 0.4rem;
}
.digest-chart__row + .digest-chart__row > * { padding-top: 0.35rem; }
.digest-chart__cat {
  text-align: left;
  font-weight: 500;
  color: var(--ink-soft);
  padding-right: 0.8rem;
  white-space: nowrap;
  vertical-align: middle;
}
.digest-chart__barcell { width: 100%; vertical-align: middle; }
.digest-chart__track {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--paper-2);
}
.digest-chart__bar {
  display: block;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  fill: var(--accent);
}
.digest-chart__bar rect { rx: 4; }
.digest-chart__count {
  text-align: right;
  padding-left: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  vertical-align: middle;
}
.digest-section + .digest-section { margin-top: clamp(1rem, 2.4vw, 1.6rem); }
@media (min-width: 880px) {
  /* Two flowing newspaper columns, not a two-cell grid. A grid aligns rows,
     so the day with 13 entries in one section and one in each of the others
     painted ~2,300px of empty paper down the right column at 1440 (en and
     zh alike; measured on the 2026-11-10 edition). Columns fill to equal
     height whatever the section sizes are. An entry never splits across the
     break, and a section heading never ends a column without its first
     entry beneath it. The long section continues into the second column
     without a repeated heading, the way a printed digest runs. */
  .digest__sections { columns: 2; column-gap: clamp(1.6rem, 3vw, 2.4rem); }
  .digest-item { break-inside: avoid; }
  .digest-section > .section-head { break-after: avoid; }
}

.digest-section { border-top: 1px solid var(--rule); padding-top: var(--sp-2); min-width: 0; counter-reset: none; }

.digest-item {
  position: relative;
  display: block;
  color: var(--ink);
  text-decoration: none;
  padding: 0.65rem 0 0.7rem;
  border-top: 1px solid var(--rule-soft);
}
.digest-item:first-of-type { border-top: 0; }
.digest-item::before { content: none; }
.digest-item__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-title);
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--ink);
  text-wrap: pretty;
  transition: color var(--dur-1) var(--ease);
}
.digest-item__summary { margin-top: 0.25rem; font-size: var(--fs-small); line-height: 1.65; color: var(--ink-faint); max-width: var(--measure-deck); text-wrap: pretty; }
.digest-item__meta {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-faint);
}
.digest-item__meta time { font-family: var(--font-ui); font-variant-numeric: tabular-nums; }

/* ========================================================== related ==== */

.related { margin-top: clamp(1.6rem, 3.5vw, 2.6rem); border-top: 1px solid var(--rule); padding-top: var(--sp-2); }
.related__note { font-size: var(--fs-meta); line-height: 1.6; color: var(--ink-faint); max-width: var(--measure); margin: 0.2rem 0 0.5rem; text-wrap: pretty; }
.related__empty { color: var(--ink-soft); font-size: var(--fs-small); }
.related__list { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .related__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.2rem, 3vw, 2.2rem); } }
@media (min-width: 1120px) { .related__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* Why an item is related is reader copy, so it is set in the reading face. */
.related__reason { margin-top: 0.35rem; font-family: var(--font-ui); font-size: var(--fs-label); line-height: 1.55; color: var(--ink-faint); }

/* The disclaimer is printed verbatim from the envelope (docs/API.md §13.7). */
.source-note {
  margin-top: clamp(1rem, 2.6vw, 1.6rem);
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule-soft);
  max-width: var(--measure);
  font-size: var(--fs-label);
  line-height: 1.65;
  color: var(--ink-faint);
}

/* ---- the lead: photograph left, headline raised to the right -----------
   Measured on the deployed tree, 2026-11-14: the lead emitted its picture
   first, full width, and the headline after it. At 1440 the headline began at
   y=1030 on a 900px first screen, so the front page's lead story was named
   only by a photograph while the secondary Index rail was already readable
   above it — the rail outranked the lead on the one screen that decides what
   a reader reads. Above 760 the picture now occupies the left column and the
   headline rises to the top of the right column, so the headline is on the
   first screen at every tested width (320/390/768/1440). The picture stays
   first in the DOM and visually left, so no reading or focus order changes;
   this is placement, not reordering. A lead with no picture keeps one column. */
@media (min-width: 760px) {
  .article--lead > div:has(.thumb--lead .thumb__img) {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    column-gap: clamp(1.1rem, 2.6vw, 2.2rem);
    align-items: start;
  }
  .article--lead > div:has(.thumb--lead .thumb__img) .thumb--lead {
    grid-column: 1;
    grid-row: 1 / span 3;
    margin-bottom: 0;
  }
  .article--lead > div:has(.thumb--lead .thumb__img) .article__meta { grid-column: 2; grid-row: 1; }
  .article--lead > div:has(.thumb--lead .thumb__img) .article__title { grid-column: 2; grid-row: 2; }
  .article--lead > div:has(.thumb--lead .thumb__img) .article__deck { grid-column: 2; grid-row: 3; }
  .article--lead > div:has(.thumb--lead .thumb__img) .article__bullets {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 0.9rem;
    padding-top: 0.7rem;
  }
  .article--lead > div:has(.thumb--lead .thumb__img) .article__foot { grid-column: 1 / -1; grid-row: 5; }
}
