/* ==========================================================================
   Design B — the news family: /news, /news/archive/{month}, the brief pages
   /news/{day}/{slug}, and /analysis/{slug} (the ax-* block framework).
   Linked with misc.css (shared page head) via layout(page_css=["misc","news"]).
   B tokens only; dark theme and every Tick inherit it.
   ========================================================================== */

/* ---------- /news index ---------- */
.nb-day .sec-h { margin-bottom: 0; }
.nb-day .wire li { grid-template-columns: 48px minmax(0, 1fr); }
.nb-day .wire .src { margin-top: 2px; }
.nb-promoted-list > li + li { border-top: 1px solid var(--line); }
.nb-promoted-item { padding: var(--s3) 0 var(--s4); }
.nb-promoted-item h3 { margin-top: var(--s2); font-size: var(--fs-4); font-weight: 700; line-height: 1.45; }
.nb-promoted-item h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.nb-promoted-item .nb-promoted-tags { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; }
.nb-promoted-item p:not(.nb-promoted-tags) { margin-top: var(--s1); font-size: var(--fs-2); line-height: 1.6; color: var(--ink-2); max-width: 72ch; }
.nb-stories .stories { margin-top: 0; }
.nb-pager { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line); }
.nb-pg-at { font-size: var(--fs-2); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.nb-months > li { position: relative; }
.nb-months > li > a { padding-bottom: 14px; }
.nb-months .b-bar { position: absolute; left: 0; right: 0; bottom: 6px; height: 3px; }
.mp-rail .list > li > a svg { width: 12px; height: 12px; color: var(--ink-3); }

/* ---------- brief page ---------- */
.digest-form { max-width: 68ch; margin: var(--s4) 0; }
.digest-form p { margin: var(--s3) 0; line-height: 1.7; }
.digest-form input:not([type="checkbox"]) { width: min(100%, 420px); min-height: 44px; padding: var(--s2) var(--s3); border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); }
.digest-form input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.digest-form input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); vertical-align: middle; }
.digest-form a { text-decoration: underline; text-underline-offset: 3px; }
.nb { margin-top: var(--s2); }
.nb-main { padding-top: var(--s2); min-width: 0; }
.nb-main > .kicker { margin-bottom: var(--s2); }
.nb-main > h1 { font-size: var(--fs-6); font-weight: 700; line-height: 1.35; letter-spacing: -.01em; max-width: 36ch; }
.nb-meta { margin-top: var(--s2); }
.nb-summary { margin-top: var(--s4); font-size: var(--fs-4); line-height: 1.65; color: var(--ink); max-width: 68ch; }
.nb-excerpt { margin: var(--s5) 0 0; padding: var(--s1) 0 var(--s1) var(--s4); border-left: 3px solid var(--line-strong); max-width: 68ch; }
.nb-excerpt p { font-size: var(--fs-3); line-height: 1.7; color: var(--ink-2); }
.nb-excerpt footer { margin-top: var(--s2); font-size: var(--fs-2); color: var(--ink-3); }
.nb-excerpt footer a, .nb-out .btn { display: inline-flex; align-items: center; gap: 4px; }
.nb-excerpt footer a { color: var(--ink-2); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.nb-excerpt footer a:hover { color: var(--ink); }
.nb-excerpt svg, .nb-out svg { width: 12px; height: 12px; }
.nb-out { margin-top: var(--s4); }
.nb-analysis { font-size: var(--fs-3); line-height: 1.7; color: var(--ink); max-width: 68ch; }
.nb-evidence { margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid var(--line); max-width: 68ch; }
.nb-rail { padding-top: var(--s2); }
.nb-rail .sec-h { margin-bottom: var(--s1); }
.nb-ents .nb-ent { align-items: center; }
.nb-ents .t { font-size: var(--fs-3); font-weight: 600; color: var(--ink); }
.nb-ents a:hover .t { text-decoration: underline; text-underline-offset: 3px; }
.nb-related > li { padding: 10px 0; }
.nb-related > li + li { border-top: 1px solid var(--line); }
.nb-related a { font-size: var(--fs-3); font-weight: 500; line-height: 1.5; color: var(--ink); }
.nb-related a:hover { text-decoration: underline; text-underline-offset: 3px; }
.nb-rel-src { display: block; margin-top: 2px; font-size: var(--fs-1); color: var(--ink-3); }

/* maintained explainers (editorial briefs) */
.nb-feature { margin: var(--s5) 0 0; max-width: 820px; }
.nb-feature img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-2); }
.nb-feature figcaption { margin-top: var(--s2); font-size: var(--fs-1); line-height: 1.5; color: var(--ink-3); }
.nb-answer { margin: var(--s5) 0; padding: var(--s4); border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; max-width: 820px; }
.nb-answer-label { font-size: var(--fs-2); font-weight: 700; color: var(--accent-text); }
.nb-answer > p:last-child { margin-top: var(--s1); font-size: var(--fs-4); font-weight: 600; line-height: 1.55; color: var(--ink); }
.nb-facts { max-width: 820px; }
.nb-facts dd { font-size: var(--fs-3); }
.nb-prose { max-width: 70ch; }
.nb-editorial-section { margin-top: var(--s6); max-width: 70ch; }
.nb-editorial-section h2 { font-size: var(--fs-4); font-weight: 700; line-height: 1.45; margin-bottom: var(--s2); }
.nb-editorial-section p { font-size: var(--fs-3); line-height: 1.7; color: var(--ink); }
.nb-editorial-section p + p { margin-top: var(--s3); }
.nb-faq { border-top: 1px solid var(--line); }
.nb-faq-item { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.nb-faq-item h3 { font-size: var(--fs-3); font-weight: 700; margin-bottom: var(--s1); }
.nb-faq-item p { color: var(--ink-2); }
.nb-sources li { padding: 6px 0; }
.nb-sources a { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-3); text-decoration: underline; text-underline-offset: 3px; }
.nb-sources svg { width: 12px; height: 12px; }
.nb-next { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s6); padding: var(--s4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: 820px; }
.nb-next > span { font-size: var(--fs-2); font-weight: 600; color: var(--ink-2); }

/* ---------- /analysis/{slug}: the ax-* block framework ---------- */
.ax-wrap { max-width: 900px; padding-top: var(--s2); }
.ax-kicker { font-size: var(--fs-2); font-weight: 700; color: var(--accent-text); margin: 0 0 var(--s2); }
.ax-h1 { font-size: var(--fs-6); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; max-width: 36ch; }
.ax-standfirst { margin: var(--s3) 0 var(--s2); font-size: var(--fs-4); line-height: 1.6; color: var(--ink-2); max-width: 68ch; }
.ax-byline { margin: 0 0 var(--s5); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); font-size: var(--fs-1); color: var(--ink-3); }
.ax-sec { margin: var(--s6) 0 0; }
.ax-sec > h2 { padding-top: var(--s2); border-top: 2px solid var(--ink); font-size: var(--fs-5); font-weight: 700; line-height: 1.35; margin: 0 0 var(--s3); }
.ax-sec .ax-seckick { font-size: var(--fs-2); font-weight: 700; color: var(--accent-text); margin: 0 0 var(--s1); }
.ax-sec .ax-seckick + h2 { border-top: 0; padding-top: 0; }
.ax-sec p { font-size: var(--fs-3); line-height: 1.7; color: var(--ink); margin: 0 0 var(--s3); max-width: 68ch; }
.ax-sec ul { font-size: var(--fs-3); line-height: 1.65; color: var(--ink); max-width: 68ch; padding-left: 18px; list-style: disc; }
.ax-sec li { margin-bottom: 6px; }
.ax-sec a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.ax-sec a:hover { text-decoration-color: var(--ink); }
.ax-cap { margin: var(--s2) 0 0; font-size: var(--fs-1); line-height: 1.55; color: var(--ink-3); max-width: 72ch; }

.ax-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: var(--s4) 0 var(--s5); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ax-stat { padding: var(--s3) var(--s4) var(--s3) 0; min-width: 0; }
.ax-stat + .ax-stat { padding-left: var(--s4); border-left: 1px solid var(--line); }
.ax-stat-v { display: block; font-size: var(--fs-6); font-weight: 700; line-height: 1.2; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ax-stat-k { display: block; margin-top: 2px; font-size: var(--fs-2); line-height: 1.4; color: var(--ink-2); }
.ax-stat-n { display: block; margin-top: 2px; font-size: var(--fs-1); line-height: 1.4; color: var(--ink-3); }

.ax-fig { margin: var(--s5) 0; padding: var(--s3) 0 0; border-top: 1px solid var(--line); }
.ax-fig-t { font-size: var(--fs-3); font-weight: 700; color: var(--ink); margin: 0 0 var(--s3); }
.ax-fig svg line[data-grid] { stroke: var(--line); }
.ax-fig svg text { fill: var(--ink-3); }
.ax-embed { max-width: 768px; margin: var(--s5) auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.ax-embed-frame { display: block; width: 100%; height: var(--embed-h); border: 0; }
.ax-embed .ax-cap { padding: 0 var(--s4) var(--s3); margin-top: var(--s2); }
.ax-scrollhint { display: none; }

.ax-bars { display: flex; flex-direction: column; gap: 8px; }
.ax-bar { display: grid; grid-template-columns: minmax(96px, 170px) 1fr 64px; align-items: center; gap: var(--s3); }
.ax-bar-l { font-size: var(--fs-2); color: var(--ink); text-align: right; line-height: 1.3; }
.ax-bar-l i { display: block; font-style: normal; font-size: var(--fs-1); color: var(--ink-3); }
.ax-bar-track { height: 14px; background: var(--track); border-radius: 2px; overflow: hidden; }
.ax-bar-fill { display: block; height: 100%; min-width: 2px; border-radius: 2px; transform-origin: left; animation: b-grow var(--t-med) var(--ease) both; }
.ax-bar-v { font-size: var(--fs-2); font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }

.ax-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ax-tb { width: 100%; border-collapse: collapse; font-size: var(--fs-2); min-width: 560px; }
.ax-tb th { text-align: left; font-weight: 600; font-size: var(--fs-1); color: var(--ink-2); padding: 0 var(--s3) var(--s2); border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.ax-tb td { padding: 9px var(--s3); border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.ax-tb th[scope=row] { padding: 9px var(--s3); border-bottom: 1px solid var(--line); font-size: var(--fs-2); font-weight: 600; color: var(--ink); white-space: normal; vertical-align: middle; }
.ax-tb th:first-child, .ax-tb td:first-child { padding-left: 0; }
.ax-tb tr:last-child td, .ax-tb tr:last-child th[scope=row] { border-bottom: 0; }
.ax-tb td.n, .ax-tb th.n { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.ax-tb td.rank, .ax-tb th.rank { width: 42px; font-size: var(--fs-1); color: var(--ink-3); white-space: nowrap; }
.ax-tb td.strong { color: var(--ink); font-weight: 600; }
.ax-tb tbody tr { transition: background var(--t-fast); }
.ax-tb tbody tr:hover td, .ax-tb tbody tr:hover th[scope=row] { background: var(--bg-2); }
.ax-tb tr.partial td, .ax-tb tr.partial th[scope=row] { background: var(--accent-soft); }
.ax-tb tr.partial td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.ax-celltrack { display: block; width: 100%; min-width: 72px; height: 6px; border-radius: 2px; background: var(--track); overflow: hidden; }
.ax-cellbar { display: block; height: 100%; min-width: 3px; border-radius: 2px; background: var(--accent); }
.ax-sr { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
  overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

.ax-lb { min-width: 700px; }
.ax-lb-person { min-width: 170px; }
.ax-lb-person-in { display: flex; align-items: center; gap: 10px; }
.ax-lb-face, .ax-lb-initials { width: 34px; height: 34px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line-strong); }
.ax-lb-face { object-fit: cover; object-position: 50% 20%; background: var(--track); display: block; }
.ax-lb-initials { display: flex; align-items: center; justify-content: center; font-size: var(--fs-1); font-weight: 700; color: #fff; }
.ax-lb-name { font-size: var(--fs-3); font-weight: 600; color: var(--ink); line-height: 1.25; }
.ax-lb-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ax-lb-sub { font-size: var(--fs-1); color: var(--ink-3); white-space: nowrap; }
.ax-legend { display: flex; flex-wrap: wrap; gap: 6px var(--s4); margin: 0 0 var(--s3); }
.ax-legend li { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-1); color: var(--ink-2); }
.ax-legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.ax-call { margin: var(--s5) 0; padding: var(--s3) var(--s4); border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius) var(--radius) 0; }
.ax-call.caution { border-left-color: var(--neg); background: color-mix(in srgb, var(--neg) 7%, var(--bg)); }
.ax-call.quote { border-left-color: var(--line-strong); background: transparent; }
.ax-call.quote p { font-size: var(--fs-4); }
.ax-call-l { display: block; margin-bottom: var(--s1); font-size: var(--fs-2); font-weight: 700; color: var(--accent-text); }
.ax-call.caution .ax-call-l { color: var(--neg); }
.ax-call p { margin: 0; font-size: var(--fs-3); line-height: 1.6; color: var(--ink); }

.ax-meth { margin: var(--s5) 0 0; padding-top: var(--s2); border-top: 2px solid var(--ink); }
.ax-meth.flag { border-top-color: var(--neg); }
.ax-meth h3 { font-size: var(--fs-3); font-weight: 700; margin: 0 0 var(--s2); color: var(--ink); }
.ax-meth ul { padding-left: 18px; list-style: disc; font-size: var(--fs-2); line-height: 1.65; color: var(--ink-2); max-width: 72ch; }
.ax-meth li { margin-bottom: 6px; }

@media (max-width: 720px) {
  .nb-main > h1, .ax-h1 { font-size: var(--fs-5); }
  .nb-summary, .ax-standfirst { font-size: var(--fs-3); }
  .nb-rail { padding-top: 0; }
  .ax-bar { grid-template-columns: minmax(74px, 110px) 1fr 52px; gap: var(--s2); }
  .ax-stat + .ax-stat { padding-left: 0; border-left: 0; }
  .ax-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-stats .ax-stat:nth-child(2n) { padding-left: var(--s4); border-left: 1px solid var(--line); }
  .ax-stats .ax-stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .ax-embed-frame { height: var(--embed-h-mobile); }
  .ax-scrollhint { display: block; text-align: right; font-size: var(--fs-1); color: var(--ink-3); margin: -4px 0 var(--s2); }
}
@media (prefers-reduced-motion: reduce) {
  .ax-bar-fill { animation: none; }
}
.nb-rail .list > li > a svg { width: 12px; height: 12px; color: var(--ink-3); }
