/* How one edition of the digest is rendered on the web.
 *
 * Shared by BOTH surfaces that show an edition, so they read identically:
 *   - the archive's single-issue page (server/templates.render_archive_issue),
 *     which links this alongside app.css via the page shell;
 *   - the landing page's "Today's Issue" section (server/static/index.html),
 *     which injects the same markup from GET /api/latest.
 *
 * It styles only the markup `render_issue_body` emits (plus the `.card` surface
 * both pages wrap it in) — page chrome (masthead, pager, caveat, footer) stays
 * with each page's own stylesheet. Tokens (--ink, --accent, …) come from the
 * host page: app.css and index.html define the same set.
 *
 * These rules were carved out of app.css, keeping their relative order, so the
 * page shell links this file BEFORE app.css — that reproduces the cascade they
 * had when they lived there (`.src-add h2` still beats `.card h2` on a tie).
 * Keep that link order if you add a rule here that app.css also targets. */

/* --- Card surface (the paper an edition sits on) -------------------------- */

.card {
  background: var(--raised);
  border: 1px solid var(--rule);
  padding: 26px 28px;
  margin: 22px 0;
}
/* Prose inside a card runs the card's full width — no per-block `max-width:
   NNch` caps (dropped 2026-09-06 with the 780px column: a 62ch cap left a
   third of the card empty on the right). Wider screens get more padding. */
@media (min-width: 900px) {
  .card { padding: 30px 36px; }
}
.card h2 {
  font-family: var(--serif-d); font-weight: 600; font-size: 20px; letter-spacing: -.01em;
  margin: 0 0 16px; color: var(--ink);
}
/* Sets its own size: the two host pages differ on `body` (18px/1.6 vs 17px/1.5),
   and an edition must read the same on both. */
.empty { color: var(--muted); font-size: 17px; }

/* The AI-generated disclosure. NOT part of `render_issue_body` (each surface
   places it as chrome — under the card on the archive, under the injected body
   on the landing page), but it must accompany a rendered edition wherever one
   appears, so it is styled here rather than in either page's own sheet. */
.caveat {
  background: var(--paper-2);
  border: 1px solid var(--rule-soft);
  padding: 12px 16px;
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .01em;
}

/* --- The news list -------------------------------------------------------- */

ol.items { list-style: none; padding: 0; margin: 18px 0 0; counter-reset: item; }
ol.items li { margin: 0 0 24px; padding-left: 40px; position: relative; }
ol.items li::before {
  counter-increment: item; content: counter(item, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: .02em;
}
ol.items .title { font-family: var(--serif-d); font-weight: 600; color: var(--ink); text-decoration: none; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
ol.items .title:hover { color: var(--accent); }
ol.items .blurb { margin: 7px 0; color: var(--ink-soft); font-size: 17px; line-height: 1.55; }
/* A blurb's inline supplementary links (Item.blurb_spans) — underlined like a
   check-in note's inline links, so a link inside running prose reads as one
   (both hosts' bare `a` rule is accent-colored but undecorated). */
ol.items .blurb a { text-decoration: underline; text-underline-offset: 2px; }
ol.items .src { font-family: var(--mono); color: var(--faint); font-size: 11px; letter-spacing: .04em; }
/* Editor's "recommended reading" badge — the web counterpart of the email's
   bold headline / plain-text [Recommended] label (titles are already 600, so a
   bolder weight wouldn't read as a signal here). */
ol.items .rec-tag {
  font-family: var(--mono); color: var(--accent); font-size: 10px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; margin-left: 8px; white-space: nowrap;
}

/* --- Check-ins ("30 Days On") + the closing sections ---------------------- */

.checkin p { color: var(--ink-soft); font-size: 17px; line-height: 1.62; margin: 0 0 10px; }
.checkin .refs { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; margin: 0; }
.checkin .refs a { color: var(--accent); }
/* The per-story check-in list (post-2026-07-29 shape): numbered like the news
   list but lighter — linked original headline, then the what-happened-since
   note under it. The heading's label links to the old edition's page. */
.checkin .section-h a { color: var(--accent); }
.checkin ol.ci-items { list-style: decimal; padding-left: 24px; margin: 0; }
.checkin ol.ci-items li { margin: 0 0 14px; }
.checkin .ci-head { margin: 0 0 2px; }
.checkin .ci-head a { font-family: var(--serif-d); font-weight: 600; color: var(--ink); text-decoration: none; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.checkin .ci-head a:hover { color: var(--accent); }
.checkin ol.ci-items p { margin: 0 0 4px; }
/* The what-happened-since note's follow-up links sit INSIDE the prose (the
   only prose-embedded links on the site), so they get an underline: the global
   `a` rule kills it, and colour alone isn't a sufficient distinction (WCAG
   1.4.1). Headline/refs links are excluded — they're already set apart. */
.checkin ol.ci-items p a { text-decoration: underline; text-underline-offset: 2px; }
.checkin .ci-head a, .checkin .refs a { text-decoration: none; }
.checkin ol.ci-items .refs { margin: 0; }  /* keep the refs line tight — the p rule above outranks the generic .refs reset */
/* The significance split (2026-08-07): sub-headings dividing one check-in
   section, and the tight linked-headline list for stories with no significant
   update (no note rendered — the sub-heading is the explanation). One story
   per line, numbering continued from the significant list via start=. */
.checkin .ci-sub { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin: 14px 0 6px; }
.checkin ol.ci-quiet { list-style: decimal; padding-left: 24px; font-size: 15px; line-height: 1.7; margin: 0; }
.checkin ol.ci-quiet li { margin: 0 0 2px; color: var(--ink-soft); }
.checkin .ci-quiet a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 2px; }
.checkin .ci-quiet a:hover { color: var(--accent); }
/* `h2.section-h`, not `.section-h` (2026-09-02): the headings sit inside `.card`,
   and the bare class (0,1,0) lost every declaration below to `.card h2` (0,1,1)
   — they rendered as 20px serif ink since the rule was written. Type + class
   ties `.card h2` on specificity and wins by order. */
h2.section-h {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
  margin: 30px 0 14px; padding-top: 18px; border-top: 1px solid var(--rule);
}
.vibes p { color: var(--ink-soft); font-size: 17px; line-height: 1.62; margin: 0 0 14px; }
.vibes p:last-child { margin-bottom: 0; }
.lighter .title { font-family: var(--serif-d); font-weight: 600; color: var(--ink); text-decoration: none; font-size: 19px; line-height: 1.25; letter-spacing: -.01em; }
.lighter .title:hover { color: var(--accent); }
.lighter .blurb { margin: 7px 0; color: var(--ink-soft); font-size: 17px; line-height: 1.55; }
.lighter .src { font-family: var(--mono); color: var(--faint); font-size: 11px; letter-spacing: .04em; }
.qtakes blockquote { margin: 0 0 16px; padding: 2px 0 2px 14px; border-left: 3px solid var(--rule); color: var(--ink-soft); font-size: 17px; line-height: 1.55; }
.qtakes blockquote:last-child { margin-bottom: 0; }
.qtakes .src { font-family: var(--mono); color: var(--faint); font-size: 11px; letter-spacing: .04em; margin-top: 5px; }
.qtakes .src a { color: var(--accent); }
.qtakes .note { margin: 5px 0 0; color: var(--faint); font-size: 14px; line-height: 1.5; }
