/* News (/news/, /news/how) and Trending (/trending/), built by tools/build_news.py; NEWS.md has the plan.
   News and Trending break the usual page model on purpose: no big hero, a slim masthead like a news site's, serif
   headlines, and charts. Chart colors are traditions only (one color system on the page), from the categorical
   palette that passes the dataviz validator on Scroll (CVD and normal-vision separation); several are under 3:1 on
   Scroll, so every chart has a legend, labels, a tooltip and a table view. */

:root {
  --tr-evangelical: #2a78d6;
  --tr-catholic: #eb6834;
  --tr-orthodox: #1baf7a;
  --tr-anglican: #eda100;
  --tr-mainline: #e87ba4;
  --tr-ecumenical: #008300;
  --tr-independent: #6250d6;
  --nw-head: var(--font-scripture);
}
.nw-tr--evangelical { --tr: var(--tr-evangelical); }
.nw-tr--catholic { --tr: var(--tr-catholic); }
.nw-tr--orthodox { --tr: var(--tr-orthodox); }
.nw-tr--anglican { --tr: var(--tr-anglican); }
.nw-tr--mainline { --tr: var(--tr-mainline); }
.nw-tr--ecumenical { --tr: var(--tr-ecumenical); }
.nw-tr--independent { --tr: var(--tr-independent); }

/* ---------- Masthead ---------- */
.nw-mast { border-bottom: 1px solid var(--line); background: var(--scroll); }
.nw-mast-top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-6); padding: var(--s-5) 0 var(--s-4); border-bottom: 3px solid var(--ink); }
.nw-brand { margin: 0; font-size: clamp(1.75rem, 3.2vw, 2.4rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; display: flex; align-items: center; gap: .4em; }
.nw-brand span { background: var(--ink); color: var(--scroll); padding: .12em .3em .08em; border-radius: 3px; font-size: .62em; letter-spacing: .02em; }
.nw-dateline { margin: 0; flex: 1 1 14rem; display: flex; flex-direction: column; font-size: var(--fs-small); line-height: 1.4; color: var(--stone); }
.nw-dateline time { color: var(--ink); font-weight: 600; }
.nw-dateline a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.nw-dateline a:hover { text-decoration-thickness: 2px; }

.nw-tabs ul { list-style: none; margin: 0; padding: 3px; display: inline-flex; gap: var(--s-1); border: 1.5px solid var(--line); border-radius: var(--radius-pill); }
.nw-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-5); border-radius: var(--radius-pill);
  font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.nw-tabs a:hover { background: var(--linen); }
.nw-tabs a[aria-current="page"] { background: var(--ink); color: var(--scroll); }

.nw-mast-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-5); padding: var(--s-2) 0; }
.nw-sections { min-width: 0; flex: 1 1 auto; overflow-x: auto; scrollbar-width: none; }
.nw-sections::-webkit-scrollbar { display: none; }
.nw-sections ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-1); }
.nw-sections button { all: unset; box-sizing: border-box; cursor: pointer; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--s-3);
  font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); border-bottom: 3px solid transparent; }
.nw-sections button:hover { color: var(--ink); }
.nw-sections button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.nw-sections button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.nw-find { display: flex; gap: var(--s-2); flex: 0 1 26rem; min-width: 0; max-width: 100%; }
.nw-find[hidden], .nw-sections[hidden] { display: none; }
.nw-find input, .nw-find select { min-height: 44px; padding: .5rem .8rem; font: inherit; font-size: .95rem; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); }
.nw-find input { flex: 1 1 10rem; min-width: 0; }
.nw-find select { flex: 0 1 11rem; min-width: 0; }
.nw-find input:focus, .nw-find select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(186,149,84,.45); }

/* Covering now */
.nw-ticker { background: var(--ink); color: var(--scroll); }
.nw-ticker[hidden] { display: none; }
.nw-ticker .wrap { display: flex; align-items: center; gap: var(--s-4); min-height: 52px; }
.nw-ticker h2 { margin: 0; flex: 0 0 auto; font-family: var(--font-display); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.nw-ticker ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; }
.nw-ticker ul::-webkit-scrollbar { display: none; }
.nw-ticker button { all: unset; box-sizing: border-box; cursor: pointer; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; gap: .35rem;
  padding: 0 var(--s-3); font-weight: 600; font-size: .92rem; color: var(--scroll); }
.nw-ticker button:hover { text-decoration: underline; text-underline-offset: 3px; }
.nw-ticker button:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.nw-ticker-n { font-size: .75rem; color: var(--muted-on-dark); font-variant-numeric: tabular-nums; }

/* ---------- Body ---------- */
.nw-body { padding-block: var(--s-5) var(--s-9); }
.nw-status { margin: 0 0 var(--s-4); font-size: var(--fs-small); color: var(--stone); }
.nw-status:empty { margin: 0; }
.nw-front[hidden], .nw-results[hidden] { display: none; }

/* A story */
.nw-src { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1) var(--s-3); margin: 0 0 var(--s-2); font-size: .78rem; color: var(--stone); }
.nw-src b { color: var(--ink); font-family: var(--font-display); font-weight: 700; letter-spacing: .02em; }
.nw-mark { width: 10px; height: 10px; border-radius: 50%; background: var(--tr); box-shadow: 0 0 0 2px var(--scroll); flex: 0 0 auto; }
.nw-kindlabel { font-family: var(--font-display); font-weight: 700; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; }
.nw-page h3 a, .nw-page h4 a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 100% / 0 2px; transition: background-size .25s var(--ease); }
.nw-page h3 a:hover, .nw-page h4 a:hover { background-size: 100% 2px; }
.nw-sum { margin: 0; color: var(--stone); font-size: .97rem; line-height: 1.55; max-width: 68ch; }
.nw-item, .nw-desk-grid article { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.nw-item h3, .nw-item h4, .nw-desk-grid h3 { font-family: var(--nw-head); font-weight: 600; font-size: 1.25rem; line-height: 1.25; margin: 0 0 var(--s-2); letter-spacing: -.005em; }

/* Top stories */
.nw-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: var(--s-6); padding-bottom: var(--s-6); border-bottom: 3px solid var(--ink); margin-bottom: var(--s-6); }
.nw-lead-story h3 { font-family: var(--nw-head); font-weight: 700; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -.015em; margin: var(--s-2) 0 var(--s-4); }
.nw-lead-story .nw-sum { font-size: 1.1rem; color: var(--ink); }
.nw-lead-story .nw-src { font-size: .85rem; }
.nw-top-list { list-style: none; margin: 0; padding: 0 0 0 var(--s-6); border-left: 1px solid var(--line); }
.nw-top-list li + li { border-top: 1px solid var(--line); }
.nw-top-story { padding: var(--s-3) 0 var(--s-4); }
.nw-top-story h3 { font-family: var(--nw-head); font-weight: 600; font-size: 1.2rem; line-height: 1.25; margin: 0; }
.nw-covered { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-3); }
.nw-mini { display: flex; gap: 2px; width: 72px; height: 8px; flex: 0 0 auto; }
.nw-mini .nw-seg { border-radius: 4px; min-width: 4px; }
.nw-covered-link { all: unset; cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--stone); min-height: 32px; display: inline-flex; align-items: center; }
.nw-covered-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.nw-covered-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Main column + Latest */
.nw-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-7); align-items: start; }
.nw-col { min-width: 0; }

/* The pulse */
.nw-pulse { padding: var(--s-6); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--s-7); }
.nw-pulse-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-5); }
.nw-pulse-head h2 { margin: 0; font-size: var(--fs-h3); }
.nw-pulse-head p { margin: 0; color: var(--stone); font-size: var(--fs-small); }
.nw-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); margin-bottom: var(--s-5); }
.nw-stat { padding: var(--s-4); background: var(--scroll); border-radius: var(--radius); }
.nw-stat p { margin: 0; }
.nw-stat-label { font-size: .8rem; color: var(--stone); }
.nw-stat-value { font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1.1; color: var(--ink); }
.nw-stat-note { font-size: .78rem; color: var(--stone); }
.nw-legend { list-style: none; margin: 0 0 var(--s-5); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: .82rem; color: var(--ink); }
.nw-legend li { display: inline-flex; align-items: center; gap: .45rem; }
.nw-key { width: 12px; height: 12px; border-radius: 3px; background: var(--tr); }
.nw-chart { margin: 0 0 var(--s-6); }
.nw-chart:last-child { margin-bottom: 0; }
.nw-chart h3 { font-size: var(--fs-h4); margin: 0 0 var(--s-1); }
.nw-chart-sub { margin: 0 0 var(--s-4); font-size: .85rem; color: var(--stone); max-width: 62ch; }
.nw-chart-note { margin: var(--s-2) 0 0; font-size: .8rem; color: var(--stone); max-width: 62ch; }
.nw-chart-note:empty { display: none; }
.nw-empty { color: var(--stone); font-size: var(--fs-small); }

/* Who's covering what: a horizontal stacked bar per topic, its length = sources */
.nw-cov { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.nw-cov li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); align-items: center; gap: var(--s-3); }
.nw-cov-name { all: unset; box-sizing: border-box; cursor: pointer; min-height: 36px; display: flex; align-items: center; justify-content: flex-end; text-align: right; font-weight: 600; font-size: .92rem; color: var(--ink); overflow-wrap: anywhere; }
.nw-cov-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.nw-cov-name:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nw-cov-track { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.nw-cov-bar { display: flex; gap: 2px; height: 18px; flex: 0 1 auto; min-width: 8px; max-width: calc(100% - 9rem); }
.nw-cov-bar .nw-seg:last-child { border-radius: 0 4px 4px 0; }
.nw-seg { display: block; background: var(--tr); min-width: 4px; }
.nw-cov-bar .nw-seg:hover, .nw-cov-bar .nw-seg:focus-visible { filter: brightness(1.12); }
.nw-seg:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nw-cov-val { font-size: .78rem; color: var(--stone); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Stories by day: stacked columns */
.nw-vol svg { display: block; max-width: 100%; overflow: visible; }
.nw-grid-line { stroke: rgba(22, 21, 20, .08); stroke-width: 1; }
.nw-base-line { stroke: rgba(22, 21, 20, .3); stroke-width: 1; }
.nw-tick { font-family: var(--font-body); font-size: 11px; fill: var(--stone); }
.nw-bar { fill: var(--tr); }
.nw-hit { fill: transparent; }
.nw-col { cursor: default; outline: none; }
.nw-col:hover .nw-hit, .nw-col:focus .nw-hit { fill: rgba(22, 21, 20, .05); }
.nw-col:focus-visible .nw-hit { stroke: var(--ink); stroke-width: 2; }

/* Tables (the charts' table view) */
.nw-table { margin-top: var(--s-3); font-size: .85rem; }
.nw-table summary { cursor: pointer; font-weight: 600; color: var(--ink); min-height: 32px; display: inline-flex; align-items: center; }
.nw-table div { overflow-x: auto; margin-top: var(--s-2); }
.nw-table table { border-collapse: collapse; min-width: 100%; }
.nw-table th, .nw-table td { padding: .35rem .6rem; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.nw-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.nw-table thead th { font-family: var(--font-display); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); }

/* Tooltip */
.nw-tip { position: fixed; z-index: 60; pointer-events: none; min-width: 9rem; max-width: 16rem; padding: var(--s-3); background: var(--ink); color: var(--scroll); border-radius: var(--radius); box-shadow: var(--shadow); font-size: .8rem; }
.nw-tip[hidden] { display: none; }
.nw-tip p { margin: 0; }
.nw-tip-h { font-weight: 700; margin-bottom: var(--s-2) !important; color: var(--gold); }
.nw-tip-row { display: flex; align-items: center; gap: .5rem; padding: 1px 0; }
.nw-tip-row b { font-variant-numeric: tabular-nums; min-width: 1.6rem; }
.nw-tip-row span:last-child { color: var(--muted-on-dark); }
.nw-tip-key { width: 12px; height: 3px; border-radius: 2px; background: var(--tr); flex: 0 0 auto; }

/* Desks */
.nw-desk { margin-bottom: var(--s-7); }
.nw-desk-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-1) var(--s-4); padding-bottom: var(--s-2); border-bottom: 3px solid var(--ink); }
.nw-desk-head h2 { margin: 0; font-size: var(--fs-h4); text-transform: uppercase; letter-spacing: .12em; }
.nw-desk-head p { margin: 0; flex: 1 1 14rem; font-size: .85rem; color: var(--stone); }
.nw-desk-more { all: unset; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; font-family: var(--font-display); font-weight: 700; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.nw-desk-more::after { content: " →"; }
.nw-desk-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.nw-desk-more:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nw-desk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s-6); }
.nw-desk-grid .nw-sum { font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Latest */
.nw-river { position: sticky; top: var(--s-5); }
.nw-river h2 { margin: 0 0 var(--s-2); padding-bottom: var(--s-2); border-bottom: 3px solid var(--ink); font-size: var(--fs-h4); text-transform: uppercase; letter-spacing: .12em; }
.nw-river ol { list-style: none; margin: 0; padding: 0; }
.nw-river li { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.nw-river h3 { margin: 0; font-family: var(--nw-head); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.nw-river .nw-src { margin-bottom: var(--s-1); font-size: .72rem; }
.nw-river-note { margin: var(--s-4) 0 0; font-size: .8rem; color: var(--stone); }
.nw-river-note a { color: var(--ink); font-weight: 600; }
.nw-weekly { margin-top: var(--s-5); padding: var(--s-4); background: var(--linen); border-radius: var(--radius); border-top: 4px solid var(--accent); }
.nw-weekly h3 { margin: 0 0 var(--s-1); font-size: var(--fs-h4); }
.nw-weekly p { margin: 0; font-size: .85rem; color: var(--ink); }
.nw-weekly .notify { margin-top: var(--s-3); }
.nw-season { margin-top: var(--s-5); padding: var(--s-4); border: 1.5px solid var(--line); border-radius: var(--radius); border-top: 4px solid var(--gold); }
.nw-season h3 { margin: 0 0 var(--s-1); font-size: var(--fs-h4); }
.nw-season p { margin: 0 0 var(--s-2); font-size: .85rem; color: var(--ink); }
.nw-season .nw-season-now { font-weight: 600; }
.nw-season .nw-season-links { margin: 0; }
.nw-season a { color: var(--ink); font-weight: 600; }

/* Results */
.nw-results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-4); padding-bottom: var(--s-2); border-bottom: 3px solid var(--ink); margin-bottom: var(--s-2); }
.nw-results-head h2 { margin: 0; font-family: var(--nw-head); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.nw-back { all: unset; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; font-size: .9rem; color: var(--accent); }
.nw-back::before { content: "← "; }
.nw-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.nw-back:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nw-day { margin: var(--s-5) 0 var(--s-6); }
.nw-day > h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--stone); margin: 0; padding-bottom: var(--s-2); border-bottom: 1px solid var(--ink); }
.nw-more { margin: 0; text-align: center; }
.nw-more .btn[hidden] { display: none; }

/* Signed out */
.nw-gate { margin-top: var(--s-6); padding: var(--s-7) var(--s-6); background: var(--linen); border-top: 6px solid var(--accent); border-radius: var(--radius); max-width: 44rem; }
.nw-gate[hidden] { display: none; }
.nw-gate h2 { font-size: var(--fs-h3); margin: 0 0 var(--s-3); }
.nw-gate p { max-width: 46ch; margin: 0 0 var(--s-4); }
.nw-gate-list { margin: 0 0 var(--s-5); padding-left: 1.1rem; max-width: 52ch; }
.nw-gate-list li { margin-bottom: var(--s-2); }

/* Trending (coming soon) and its rail */
.nw-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-7); padding-block: var(--s-7) var(--s-9); align-items: start; }
.nw-main { min-width: 0; }
.nw-intro { margin-bottom: var(--s-6); }
.nw-intro h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; text-transform: uppercase; line-height: .95; letter-spacing: -.03em; margin: var(--s-2) 0 var(--s-4); }
.nw-intro .lead { max-width: 52ch; }
.nw-rail { position: sticky; top: var(--s-5); }
.nw-rail-box { padding: var(--s-5); background: var(--linen); border-radius: var(--radius); }
.nw-rail h2 { font-size: var(--fs-h4); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 var(--s-2); }
.nw-rail p { font-size: var(--fs-small); color: var(--stone); margin: 0 0 var(--s-4); }
.nw-rail h3 { font-family: var(--font-display); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); margin: var(--s-4) 0 var(--s-1); }
.nw-rail ul { list-style: none; margin: 0; padding: 0; }
.nw-rail li { display: flex; justify-content: space-between; gap: var(--s-2); font-size: var(--fs-small); padding: .3rem 0; }
.nw-rail li a { color: var(--ink); }
.nw-count { color: var(--stone); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nw-rail .btn { margin-top: var(--s-5); }
.nw-soon { list-style: none; margin: 0 0 var(--s-7); padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.nw-soon-card { padding: var(--s-5); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--radius); }
.nw-soon-card .pill--soon { color: var(--accent); }
.nw-soon-card h3 { font-size: var(--fs-h4); margin: var(--s-3) 0 var(--s-2); }
.nw-soon-card p { margin: 0; font-size: .95rem; color: var(--stone); }
.nw-band-h { margin: 0 0 var(--s-1); font-size: var(--fs-h4); }

/* How News works (keeps the usual hero: it's an explainer) */
.nw-hero h1 { font-size: var(--fs-hero); }
.nw-hero .lead { max-width: 52ch; }
.nw-hero .nw-tabs ul { margin-bottom: var(--s-6); }
.nw-prose { max-width: 50rem; padding-block: var(--s-7) var(--s-9); }
.nw-prose section { margin-bottom: var(--s-8); }
.nw-prose h2 { font-size: var(--fs-h3); margin: 0 0 var(--s-4); }
.nw-prose h3 { font-size: var(--fs-h4); margin: var(--s-6) 0 var(--s-3); padding-bottom: var(--s-2); border-bottom: 3px solid var(--ink); }
.nw-src-k { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-small); color: var(--stone); margin-top: var(--s-1); }
.nw-src-list { list-style: none; margin: 0; padding: 0; }
.nw-src-list li { padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.nw-src-list p { margin: 0; color: var(--stone); font-size: .95rem; }
.nw-src-list .nw-src-name { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-bottom: var(--s-1); color: var(--ink); font-weight: 600; }
.nw-src-name .pill { color: var(--stone); font-size: .62rem; }
.nw-points { padding-left: 1.1rem; }
.nw-points li { margin-bottom: var(--s-3); }


/* ---------- Trending (js/trending.js) ---------- */
.tr-body[hidden] { display: none; }
.tr-stats { margin: var(--s-2) 0 var(--s-7); }
.tr-stats .nw-stat { background: #fff; border: 1px solid var(--line); }
.tr-stats .nw-stat-value { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tr-sec { margin-bottom: var(--s-8); scroll-margin-top: var(--s-5); }
.tr-head { padding-bottom: var(--s-3); border-bottom: 3px solid var(--ink); margin-bottom: var(--s-4); }
.tr-head h2 { margin: 0 0 var(--s-1); font-size: var(--fs-h3); }
.tr-head p { margin: 0; font-size: .9rem; color: var(--stone); max-width: 62ch; }
.tr-head a { color: var(--ink); font-weight: 600; }
.tr-empty { list-style: none; color: var(--stone); font-size: var(--fs-small); padding: var(--s-4) 0; }
.nw-sections a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--stone); text-decoration: none; border-bottom: 3px solid transparent; }
.nw-sections a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* Looked up */
.tr-toggle { display: inline-flex; gap: var(--s-1); padding: 3px; border: 1.5px solid var(--line); border-radius: var(--radius-pill); margin-bottom: var(--s-3); }
.tr-toggle button { all: unset; cursor: pointer; min-height: 40px; padding: 0 var(--s-4); border-radius: var(--radius-pill); font-weight: 600; font-size: .85rem; color: var(--ink); display: inline-flex; align-items: center; }
.tr-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--scroll); }
.tr-toggle button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tr-people { list-style: none; margin: 0; padding: 0; }
.tr-people li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) 120px 7.5rem 4.5rem; align-items: center; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
.tr-people li.is-picked { background: var(--accent-soft); box-shadow: -8px 0 0 var(--accent-soft), 8px 0 0 var(--accent-soft); }
.tr-rank { font-family: var(--font-display); font-weight: 700; color: var(--stone); font-variant-numeric: tabular-nums; text-align: right; }
.tr-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--s-3); min-width: 0; }
.tr-name { all: unset; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; font-family: var(--nw-head); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.tr-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.tr-name:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tr-study { font-size: .78rem; font-weight: 600; color: var(--accent); }
.tr-spark { display: block; }
.tr-area { fill: var(--accent); opacity: .1; }
.tr-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tr-dot { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.tr-num { margin: 0; text-align: right; line-height: 1.2; }
.tr-num b { display: block; font-variant-numeric: tabular-nums; }
.tr-num span { font-size: .72rem; color: var(--stone); }
.tr-change { margin: 0; text-align: right; font-weight: 700; font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--stone); }
.tr-change.is-up { color: var(--ink); }
.tr-more { all: unset; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; margin-top: var(--s-2); font-weight: 600; font-size: .9rem; color: var(--accent); }
.tr-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.tr-more:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.tr-more[hidden] { display: none; }
.tr-year { margin-top: var(--s-6); padding: var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.tr-year[hidden] { display: none; }
.tr-year-chart svg { display: block; max-width: 100%; overflow: visible; }
.tr-wash { fill: var(--accent); opacity: .1; }
.tr-avg { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.tr-cross { stroke: var(--ink); stroke-width: 1; }
.tr-season { fill: var(--linen); }
.tr-season--lent, .tr-season--advent { fill: #E6E0EE; }
.tr-season-label { font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; fill: var(--stone); }
.tr-year .nw-hit:focus-visible { stroke: var(--ink); stroke-width: 2; }

/* Watched */
.tr-videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); counter-reset: vid; }
.tr-video { counter-increment: vid; position: relative; }
.tr-video-link { display: block; color: var(--ink); text-decoration: none; }
.tr-video-link img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--linen); }
.tr-video-link::before { content: counter(vid); position: absolute; top: 6px; left: 6px; min-width: 26px; height: 26px; padding: 0 6px; display: grid; place-items: center; border-radius: 13px;
  background: var(--ink); color: var(--scroll); font-family: var(--font-display); font-weight: 700; font-size: .8rem; }
.tr-video-title { display: block; margin-top: var(--s-2); font-family: var(--nw-head); font-weight: 600; font-size: 1rem; line-height: 1.3; }
.tr-video-link:hover .tr-video-title { text-decoration: underline; text-underline-offset: 3px; }
.tr-video-meta { margin: var(--s-1) 0 0; display: flex; flex-wrap: wrap; gap: 0 var(--s-2); font-size: .78rem; color: var(--stone); }
.tr-video-meta b { color: var(--ink); }

/* Talked about: small multiples */
.tr-talk { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.tr-topic { padding: var(--s-4); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-1) var(--s-4); align-items: end; }
.tr-topic-name { font-family: var(--nw-head); font-weight: 700; font-size: 1.2rem; color: var(--ink); text-decoration: none; align-self: start; }
.tr-topic-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.tr-topic svg { grid-row: span 2; display: block; }
.tr-col { fill: var(--accent); }
.tr-topic-n { margin: 0; font-size: .8rem; color: var(--stone); }
.tr-topic-n b { color: var(--ink); }
.tr-topic-lead { grid-column: 1 / -1; font-size: .82rem; color: var(--ink); line-height: 1.35; }

@media (max-width: 1023px) {
  .tr-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .tr-people li { grid-template-columns: 1.6rem minmax(0, 1fr) 4.5rem 3.5rem; }
  .tr-spark { display: none; }
  .tr-talk { grid-template-columns: minmax(0, 1fr); }
  .tr-year { padding: var(--s-3); margin-inline: calc(var(--gutter) * -0.5); }
}
@media (max-width: 479px) {
  .tr-videos { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 1279px) {
  .nw-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: var(--s-6); }
}
@media (max-width: 1023px) {
  .nw-grid, .nw-wrap { grid-template-columns: minmax(0, 1fr); }
  .nw-river, .nw-rail { position: static; }
  .nw-rail ul { columns: 2; column-gap: var(--s-5); }
  .nw-rail li { break-inside: avoid; }
  .nw-top { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  .nw-top-list { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 767px) {
  .nw-mast-top { gap: var(--s-2) var(--s-4); justify-content: space-between; padding-top: var(--s-4); }
  .nw-dateline { order: 3; flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: 0 var(--s-2); }
  .nw-tabs a { padding: 0 var(--s-3); font-size: .72rem; }
  .nw-find { flex: 1 1 100%; flex-wrap: nowrap; }
  .nw-find select { flex: 0 0 9.5rem; }
  .nw-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .nw-stats .nw-stat:last-child { grid-column: 1 / -1; }
  .nw-pulse { padding: var(--s-4); margin-inline: calc(var(--gutter) * -0.5); }
  .nw-cov li { grid-template-columns: minmax(0, 1fr); gap: var(--s-1); }
  .nw-cov-name { justify-content: flex-start; text-align: left; min-height: 32px; }
  .nw-desk-grid, .nw-soon { grid-template-columns: minmax(0, 1fr); }
  .nw-stat-value { font-size: 2rem; }
}
@media (max-width: 479px) {
  .nw-rail ul { columns: 1; }
  .nw-find select { flex-basis: 8rem; }
  .nw-brand { font-size: 1.5rem; }
}
