/* United States Tribune — main stylesheet
   MUI-inspired polish: 8px spacing grid, type scale, soft elevation, rounded corners. */

:root {
  --space: 8px;
  --radius: 12px;
  --radius-sm: 8px;
  --container: 1200px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --ink: #15191f;
  --ink-2: #3d4450;
  --muted: #646b78;
  --line: #e1e4ea;
  --brand: #0b2545;
  --brand-ink: #ffffff;
  --accent: #b3121f;
  --link: #13467a;
  --focus: #2f6fdb;
  --developing: #b3121f;
  --sample: #8a5a00;
  --sample-bg: #fff4dc;

  --shadow-1: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-2: 0 4px 12px rgba(16, 24, 40, .08), 0 2px 4px rgba(16, 24, 40, .06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --surface: #171b21;
    --surface-2: #1f242c;
    --ink: #eef1f5;
    --ink-2: #c9ced7;
    --muted: #9aa3b2;
    --line: #2a3039;
    --brand: #0b2545;
    --accent: #ff5a66;
    --link: #8cb8ff;
    --developing: #ff5a66;
    --sample: #ffcf70;
    --sample-bg: #2d2412;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 4px 12px rgba(0, 0, 0, .45);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 calc(var(--space) * 2); }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 12px; }

/* ---------- Header ---------- */
.disclosure-bar { background: var(--brand); color: #dfe7f2; font-size: 13px; }
.disclosure-inner { display: flex; align-items: center; gap: var(--space); min-height: 36px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.disclosure-inner a { color: #fff; font-weight: 600; margin-left: auto; white-space: nowrap; }
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: #7fd1ff; box-shadow: 0 0 0 3px rgba(127, 209, 255, .25); flex: none; display: inline-block; }

.site-header { background: var(--surface); }
.site-nav { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-1); }
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: calc(var(--space) * 2); padding-bottom: calc(var(--space) * 1.5); }
.masthead-date { font-size: 13px; color: var(--muted); }
.brand { text-align: center; color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.brand:hover { text-decoration: none; }
.brand-name { font: 700 clamp(26px, 4vw, 40px)/1.1 var(--font-serif); letter-spacing: -.01em; }
h1.brand-name { margin: 0; }
.brand-tag { font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.masthead-search { justify-self: end; color: var(--ink-2); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.masthead-search:hover { background: var(--surface-2); }

.site-nav { border-top: 1px solid var(--line); }
.card-lead .card-body { justify-content: center; }
.card-lead .card-meta { margin-top: 12px; }
.nav-scroll { display: flex; gap: var(--space); overflow-x: auto; scrollbar-width: none; justify-content: center; }
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll a { color: var(--ink-2); font-weight: 500; font-size: 15px; padding: 12px 10px; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav-scroll a:hover { color: var(--ink); text-decoration: none; background: var(--surface-2); }
.nav-scroll a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Shared pieces ---------- */
main.container { flex: 1 0 auto; width: 100%; padding-top: calc(var(--space) * 3); padding-bottom: calc(var(--space) * 6); }
.kicker { display: flex; align-items: center; gap: var(--space); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--space); }
.kicker a { color: var(--accent); }
.tag-developing { background: var(--developing); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.tag-sample { background: var(--sample-bg); color: var(--sample); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.section-label { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 calc(var(--space) * 1.5); }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: calc(var(--space) * 2.5); margin-bottom: calc(var(--space) * 3); }
.panel-note { font-size: 14px; margin: -4px 0 var(--space); }
.empty { color: var(--muted); padding: calc(var(--space) * 4) 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 14px/1 var(--font-sans); padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: background .15s, box-shadow .15s; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-1); }
.btn-primary:hover { box-shadow: var(--shadow-2); filter: brightness(1.12); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-outline:hover { background: var(--surface-2); }
.btn-text { background: transparent; color: var(--ink-2); }
.btn-text:hover { background: var(--surface-2); }

.model-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--model, var(--muted)); display: inline-block; flex: none; }
.model-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 600; border: 1px solid var(--line); }
.model-chip:hover { text-decoration: none; border-color: var(--model); }
.beat-note { font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.card-body { padding: calc(var(--space) * 2); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font: 700 19px/1.3 var(--font-serif); margin: 0; }
.card-title a { color: var(--ink); }
.card-dek { margin: 0; color: var(--ink-2); font-size: 15px; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-top: auto; padding-top: 4px; }
.card-media img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-lead .card-title { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.2; }
.card-lead .card-body { padding: calc(var(--space) * 3); }
.card-lead .card-dek { font-size: 17px; }
.home-lead > .card { height: 100%; }
.card-points { margin: 4px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 16px; }
.card-points li { margin: 6px 0; }
.card-compact { box-shadow: none; border-radius: 0; background: transparent; border-bottom: 1px solid var(--line); }
.card-compact:hover { box-shadow: none; transform: none; }
.card-compact .card-body { padding: 12px 0; }
.card-compact .card-title { font-size: 17px; }
.card-compact:last-child { border-bottom: 0; }

/* ---------- Home ---------- */
.developing-strip { display: flex; align-items: center; gap: calc(var(--space) * 2); flex-wrap: wrap; background: var(--surface); border-left: 4px solid var(--developing); border-radius: var(--radius-sm); box-shadow: var(--shadow-1); padding: 12px 16px; margin-bottom: calc(var(--space) * 3); font-weight: 600; }
.developing-strip a { color: var(--ink); }
.home-top { display: grid; grid-template-columns: 2fr 1fr; gap: calc(var(--space) * 3); margin-bottom: calc(var(--space) * 3); }
.home-side { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: 4px calc(var(--space) * 2.5); }
.home-grid, .list-layout, .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: calc(var(--space) * 4); align-items: start; }
.section-block { margin-bottom: calc(var(--space) * 4); }
.section-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space); flex-wrap: wrap; border-top: 3px solid var(--ink); padding-top: var(--space); margin-bottom: calc(var(--space) * 2); }
.section-block-head h2 { font: 700 22px/1.2 var(--font-serif); margin: 0; }
.section-block-head h2 a { color: var(--ink); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(var(--space) * 2); }
.rotation-list { list-style: none; margin: 0; padding: 0; }
.rotation-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.rotation-list li:last-child { border-bottom: 0; }
.rotation-list li > a { color: var(--ink); font-weight: 500; }
.about-panel p { margin-top: 0; color: var(--ink-2); font-size: 15px; }

/* ---------- Lists ---------- */
.page-head { margin-bottom: calc(var(--space) * 3); }
.page-head h1 { font: 700 clamp(30px, 4vw, 44px)/1.15 var(--font-serif); margin: 0 0 var(--space); }
.page-dek { font-size: 18px; color: var(--ink-2); margin: 0 0 var(--space); max-width: 720px; }
.subnav { display: flex; gap: var(--space); flex-wrap: wrap; margin-top: var(--space); }
.subnav a { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.card-list { display: grid; gap: calc(var(--space) * 2); }
.pagination { display: flex; align-items: center; justify-content: space-between; margin-top: calc(var(--space) * 3); }
.writer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(var(--space) * 2); }
.writer-card { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: calc(var(--space) * 3); color: var(--ink); border-top: 4px solid var(--model); transition: box-shadow .2s; }
.writer-card:hover { box-shadow: var(--shadow-2); text-decoration: none; }
.writer-name { font: 700 22px/1.2 var(--font-serif); }
.writer-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--model); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.writer-head { display: flex; gap: calc(var(--space) * 3); align-items: flex-start; }
.writer-mark-lg { width: 72px; height: 72px; font-size: 32px; flex: none; }
.term-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space); }

/* ---------- Article ---------- */
.article { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: clamp(20px, 4vw, 48px); }
.article-title { font: 700 clamp(30px, 4.4vw, 46px)/1.15 var(--font-serif); letter-spacing: -.01em; margin: 0 0 calc(var(--space) * 2); }
.byline { display: flex; flex-direction: column; gap: 4px; padding-bottom: calc(var(--space) * 2); border-bottom: 1px solid var(--line); margin-bottom: calc(var(--space) * 3); }
.byline-writer { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; }
.byline-meta { font-size: 14px; color: var(--muted); }
.sample-note { background: var(--sample-bg); color: var(--sample); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 14px; font-weight: 600; margin-bottom: calc(var(--space) * 2); }
.developing-banner { display: flex; gap: 10px; align-items: flex-start; background: color-mix(in srgb, var(--developing) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--developing) 30%, transparent); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 15px; margin-bottom: calc(var(--space) * 2); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--developing); margin-top: 7px; flex: none; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--developing) 60%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } .card, .card:hover { transition: none; transform: none; } }
.update-log { margin-bottom: calc(var(--space) * 3); }
.update-log ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.update-log li { padding: 4px 0 10px 16px; position: relative; font-size: 15px; }
.update-log li::before { content: ""; position: absolute; left: -6px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--developing); }
.update-log time { font-weight: 700; margin-right: 6px; }

.keypoints { background: var(--surface-2); border-radius: var(--radius-sm); padding: calc(var(--space) * 2) calc(var(--space) * 2.5); margin-bottom: calc(var(--space) * 3); border-left: 4px solid var(--brand); }
.keypoints-head { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 var(--space); color: var(--ink-2); }
.keypoints ul { margin: 0; padding-left: 20px; }
.keypoints li { margin: 4px 0; font-weight: 500; }

/* "What changed" box on household-money articles */
.whatchanged { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: calc(var(--space) * 2) calc(var(--space) * 2.5); margin-bottom: calc(var(--space) * 2); }
.whatchanged-head { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 var(--space); color: var(--ink-2); }
.whatchanged dl { margin: 0; display: grid; gap: 6px; }
.whatchanged dl > div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.whatchanged dt { font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 2px; }
.whatchanged dd { margin: 0; font-weight: 500; }

.article-figure { margin: 0 0 calc(var(--space) * 3); }
.article-figure img { border-radius: var(--radius-sm); width: 100%; }
.article-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.credit { text-transform: uppercase; font-size: 11px; letter-spacing: .04em; }

.prose { font-size: 18px; line-height: 1.7; color: var(--ink); }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font: 700 24px/1.3 var(--font-serif); margin: 1.6em 0 .6em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--line); color: var(--ink-2); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

.sources { margin: calc(var(--space) * 4) 0 calc(var(--space) * 2); }
.sources ol { padding-left: 20px; margin: 0; font-size: 15px; }
.sources li { margin: 6px 0; }

.howmade { border: 1px solid var(--line); border-radius: var(--radius-sm); margin: calc(var(--space) * 2) 0; background: var(--surface); }
.howmade summary { cursor: pointer; padding: 12px 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; list-style: none; }
.howmade summary::-webkit-details-marker { display: none; }
.howmade summary::after { content: "+"; margin-left: auto; font-size: 20px; color: var(--muted); }
.howmade[open] summary::after { content: "–"; }
.howmade-list { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; margin: 0; padding: 0 16px 8px; font-size: 15px; }
.howmade-list dt { color: var(--muted); }
.howmade-list dd { margin: 0; }
.howmade-list ul { margin: 0; padding-left: 18px; }
.howmade-note { font-size: 14px; padding: 0 16px 14px; margin: 0; }

.product-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: calc(var(--space) * 3) 0; background: var(--surface-2); }
.product-label { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.product-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; flex-wrap: wrap; }
.product-title { font-weight: 600; }
.product-note { font-size: 13px; margin: 8px 0 0; }

.flag-row { display: flex; justify-content: flex-end; margin: calc(var(--space) * 2) 0; }
.flag-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 12px; font: 500 13px var(--font-sans); cursor: pointer; }
.flag-btn:hover { color: var(--accent); border-color: var(--accent); }
.flag-btn[data-done] { color: var(--muted); border-color: var(--line); cursor: default; }
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space); margin-top: calc(var(--space) * 2); }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 14px; }
.tag:hover { text-decoration: none; background: var(--line); }

.ad-slot { display: grid; place-items: center; min-height: 90px; margin: calc(var(--space) * 3) 0; border-radius: var(--radius-sm); background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 10px, transparent 10px, transparent 20px); border: 1px dashed var(--line); color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.ad-sidebar { min-height: 250px; margin-top: 0; }

.static-page { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: clamp(20px, 4vw, 48px); max-width: 820px; margin: 0 auto; }
.static-page h1 { font: 700 clamp(30px, 4vw, 42px)/1.15 var(--font-serif); margin-top: 0; }

/* Search (Pagefind). Its stylesheet sets its own colors on .pagefind-ui, so ours are set on the same element. */
.search-page .pagefind-ui { --pagefind-ui-primary: var(--link); --pagefind-ui-text: var(--ink); --pagefind-ui-background: var(--surface-2);
  --pagefind-ui-border: var(--line); --pagefind-ui-tag: var(--surface-2); --pagefind-ui-font: var(--font-sans);
  --pagefind-ui-border-radius: 8px; --pagefind-ui-border-width: 1px; }
.search-page .pagefind-ui__search-input { color: var(--ink); background: var(--surface-2); font-weight: 500; }
.search-page .pagefind-ui__search-input::placeholder { color: var(--muted); opacity: 1; }
.search-page .pagefind-ui__search-input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(47, 111, 219, .18); }
.search-page .pagefind-ui__search-clear { color: var(--ink-2); background: transparent; border: 0; font: 600 14px var(--font-sans);
  padding: 0 14px; height: calc(100% - 2px); right: 1px; top: 1px; border-radius: 0 8px 8px 0; }
.search-page .pagefind-ui__search-clear:hover { color: var(--ink); background: var(--surface); }
.search-page .pagefind-ui__message { color: var(--ink-2); font-weight: 600; }
.search-page .pagefind-ui__result-link { color: var(--ink); } .search-page .pagefind-ui__result-link:hover { color: var(--link); }
.search-page .pagefind-ui__result-excerpt { color: var(--ink-2); }
.search-page .pagefind-ui mark { background: rgba(255, 196, 0, .35); color: inherit; border-radius: 2px; padding: 0 1px; }
.search-page .pagefind-ui__button { color: var(--ink); background: var(--surface-2); border-color: var(--line); }

.footer-legal span:nth-child(3) { flex-basis: 100%; }
.ad-slot.ad-live { background: none; border: 0; min-height: 0; }

/* ---------- Footer & consent ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-top: calc(var(--space) * 5); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: calc(var(--space) * 4); }
.footer-brand { font-size: 24px; }
.footer-head { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--space); }
.site-footer ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.site-footer li { padding: 3px 0; }
.site-footer li a { color: var(--ink-2); font-size: 15px; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space); font-size: 13px; border-top: 1px solid var(--line); margin-top: calc(var(--space) * 4); padding-top: calc(var(--space) * 2); padding-bottom: calc(var(--space) * 3); }

.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--surface); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .2); padding: 16px 20px; z-index: 50; }
.consent p { margin: 0 0 12px; font-size: 14px; }
.consent-actions { display: flex; justify-content: flex-end; gap: var(--space); }

.push-prompt { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin: 0 auto; background: var(--surface); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.2); padding: 16px 20px; z-index: 49; display: flex; flex-direction: column; gap: 12px; }
.push-prompt p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .home-grid, .list-layout, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .home-aside, .list-aside, .article-aside { order: 2; }
  .writer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .home-top { grid-template-columns: minmax(0, 1fr); }
  .card-grid { grid-template-columns: minmax(0, 1fr); }
  .masthead { grid-template-columns: 1fr auto; }
  .masthead-date { display: none; }
  .brand { text-align: left; }
  .nav-scroll { justify-content: flex-start; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .howmade-list { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .howmade-list dd { margin-bottom: 8px; }
  .prose { font-size: 17px; }
  .writer-head { flex-direction: column; }
}
@media (max-width: 480px) {
  .writer-grid { grid-template-columns: minmax(0, 1fr); }
  .disclosure-bar { font-size: 12px; }
  .disclosure-inner { gap: 6px; }
  .disclosure-inner a { margin-left: 0; }
  .brand-tag, .disclosure-inner .ai-dot { display: none; }
  .masthead { padding-top: 12px; padding-bottom: 10px; }
  .article, .static-page { padding: 20px 16px; border-radius: var(--radius-sm); }
}


/* Calculators on data stories (mortgage) */
.calc { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: calc(var(--space) * 3); margin: calc(var(--space) * 3) 0; box-shadow: var(--shadow-1); }
.calc-head { font: 700 22px/1.25 var(--font-serif); margin: 0 0 6px; }
.calc-intro { color: var(--ink-2); margin: 0 0 calc(var(--space) * 2.5); font-size: 15px; }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.calc-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); border: 0; padding: 0; margin: 0; min-width: 0; }
.calc-field legend { padding: 0; margin-bottom: 6px; }
.calc-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); padding: 0 12px; }
.calc-input:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(47, 111, 219, .18); }
.calc-input input { flex: 1; min-width: 0; border: 0; background: transparent; font: 600 18px/1 var(--font-sans); color: var(--ink); padding: 12px 6px; outline: none; }
.calc-unit { color: var(--muted); font-weight: 600; }
.calc-help { font-weight: 500; color: var(--muted); font-size: 13px; min-height: 1em; }
.calc-term { flex-direction: row; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 8px; }
.calc-term legend { width: 100%; }
.calc-term label { display: inline-flex; align-items: center; gap: 8px; height: 46px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 999px; padding: 0 18px; cursor: pointer; font-weight: 600; color: var(--ink); }
.calc-term label:has(input:checked) { border-color: var(--brand); background: var(--brand); color: #fff; }
.calc-term input { accent-color: var(--brand); margin: 0; }
.calc-reset { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--link); font: 500 13px var(--font-sans); cursor: pointer; text-decoration: underline; }
.calc-result { margin-top: calc(var(--space) * 3); padding: calc(var(--space) * 2.5); background: var(--surface-2); border-radius: var(--radius-sm); }
.calc-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.calc-label { width: 100%; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.calc-big { font: 700 40px/1.1 var(--font-serif); color: var(--ink); }
.calc-per { color: var(--muted); font-weight: 500; }
.calc-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; }
.calc-stats dt { font-size: 13px; color: var(--muted); }
.calc-stats dd { margin: 2px 0 0; font-weight: 700; font-size: 18px; }
.calc-compare { list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--line); }
.calc-compare li { padding-top: 10px; font-size: 14px; color: var(--ink-2); }
.calc-note { font-size: 13px; color: var(--muted); margin: 16px 0 0; line-height: 1.55; }
@media (max-width: 640px) { .calc { padding: 16px; } .calc-grid, .calc-stats { grid-template-columns: 1fr; } .calc-big { font-size: 34px; } }
@media (prefers-color-scheme: dark) { .calc-term label:has(input:checked) { background: #8cb8ff; border-color: #8cb8ff; color: #0b1220; } }

/* ---------- Card images (own photo, locator map or file photo) ---------- */
.card-media { display: block; background: var(--surface-2); }
.card-media img { display: block; }
.card-list .card-standard.has-media { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
.card-list .card-standard.has-media .card-media { order: 2; }
.card-list .card-standard.has-media .card-media img { height: 100%; min-height: 158px; aspect-ratio: auto; }
@media (max-width: 640px) {
  .card-list .card-standard.has-media { grid-template-columns: minmax(0, 1fr) 120px; }
  .card-list .card-standard.has-media .card-media img { min-height: 100%; }
}

/* ---------- Fact tables ---------- */
.facttable { margin: calc(var(--space) * 3) 0; }
.facttable-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.facttable-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.facttable table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.facttable caption { text-align: left; font: 700 17px/1.3 var(--font-serif); color: var(--ink); padding: 14px 16px 10px; }
.facttable th, .facttable td { padding: 9px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.facttable thead th { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.facttable tbody th { font-weight: 600; color: var(--ink); min-width: 9.5em; }
.facttable td { min-width: 5.5em; }
.facttable td { color: var(--ink-2); }
.facttable tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.facttable figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
@media (max-width: 640px) {
  .facttable table { font-size: 14px; }
  .facttable th, .facttable td { padding: 8px 10px; }
  .facttable thead th { white-space: normal; }
  .facttable tbody th { min-width: 8em; }
  .facttable td { min-width: 4.5em; }
}

/* Evergreen explainers */
.tag-explainer { background: var(--surface-2); color: var(--brand); border: 1px solid var(--line); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; }
.last-checked { font-size: 14px; color: var(--muted); margin: calc(var(--space) * -1.5) 0 calc(var(--space) * 3); }
.explainer-link { display: grid; gap: 4px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius-sm); padding: calc(var(--space) * 2) calc(var(--space) * 2.5); margin: calc(var(--space) * 3) 0; }
.explainer-link-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.explainer-link-title { font-size: 18px; font-weight: 700; color: var(--ink); text-decoration: none; }
.explainer-link-title:hover { text-decoration: underline; }
.explainer-link-title::after { content: " \2192"; color: var(--accent); }
.explainer-link-dek { margin: 0; font-size: 15px; color: var(--ink-2); }
.explainer-news { margin: calc(var(--space) * 4) 0 calc(var(--space) * 3); }
@media (prefers-color-scheme: dark) {
  .tag-explainer { color: #9fc3ff; }
  .explainer-link { border-left-color: #6f9be0; }
}

/* Correction notes and the Corrections page */
.correction-note { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: calc(var(--space) * 1.5) 0; margin: calc(var(--space) * 3) 0; font-size: 15px; color: var(--ink-2); }
.correction-note p { margin: 4px 0; }
.corrections-list { list-style: none; padding: 0; margin: calc(var(--space) * 3) 0 0; }
.corrections-list li { border-top: 1px solid var(--line); padding: calc(var(--space) * 2) 0; }
.corrections-meta { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.corrections-title { font-size: 18px; margin: 0 0 6px; }
.corrections-title a { color: var(--ink); }

/* AI Report Card */
.rc-updated { font-size: 14px; margin-top: 6px; }
.rc-section { margin: calc(var(--space) * 4) 0; }
.rc-note { color: var(--ink-2); max-width: 760px; margin: 0 0 calc(var(--space) * 2); }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: calc(var(--space) * 2); }
.rc-card { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: calc(var(--space) * 2.5); border-top: 4px solid var(--model); color: var(--ink); }
.rc-name { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: var(--ink); text-decoration: none; align-self: flex-start; }
.rc-card a { color: inherit; text-decoration: none; }
.rc-card a:hover { text-decoration: underline; }
.rc-stats dt a, .rc-stats dd a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.rc-stats dt a:hover, .rc-stats dd a:hover { text-decoration-color: currentColor; }
.corrections-filter { margin: calc(var(--space) * 2) 0 0; font-size: 15px; }
.rc-maker { font-size: 13px; }
.rc-stats { margin: calc(var(--space) * 1.5) 0 0; display: grid; gap: 6px; }
.rc-stats > div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 6px; }
.rc-stats dt { font-size: 14px; color: var(--ink-2); }
.rc-stats dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.rc-table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.rc-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.rc-table th, .rc-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
.rc-table thead th { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); white-space: normal; }
.rc-table tbody tr:last-child > * { border-bottom: 0; }
.rc-table .model-dot { margin-right: 6px; }
.rc-n { font-weight: 700; }
.rc-bar { display: block; height: 4px; width: 84px; background: var(--surface-2); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.rc-bar span { display: block; height: 100%; background: var(--ink-2); }
.rc-sub { font-size: 16px; margin: calc(var(--space) * 3) 0 var(--space); }

/* Evergreen hub and section pages (layouts/evergreen/) */
.evergreen-block { margin: calc(var(--space) * 4) 0; }
.evergreen-head { display: flex; align-items: baseline; gap: calc(var(--space) * 2); border-top: 2px solid var(--ink); padding-top: calc(var(--space) * 1.5); }
.evergreen-title { font: 700 24px/1.2 var(--font-serif); margin: 0; }
.evergreen-title a { color: inherit; text-decoration: none; }
.evergreen-more { margin-left: auto; font-size: 14px; font-weight: 600; }
.evergreen-desc { color: var(--muted); margin: calc(var(--space) * .5) 0 calc(var(--space) * 2); }
.kicker a.tag-explainer, a.tag-explainer { color: var(--brand); text-decoration: none; }
@media (prefers-color-scheme: dark) { .kicker a.tag-explainer, a.tag-explainer { color: #9fc3ff; } }

/* Data & Trends pages (layouts/trend.html) */
.trend-dek { font-size: 19px; line-height: 1.5; color: var(--ink-2); margin: var(--space) 0; }
.trend-made { font-size: 14px; color: var(--muted); margin: 0 0 calc(var(--space) * 3); }
.trend-made strong { color: var(--ink-2); font-weight: 600; }
.trend-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(var(--space) * 1.5); margin-bottom: calc(var(--space) * 3); }
.trend-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: calc(var(--space) * 1.5) calc(var(--space) * 2); }
.trend-stat-value { font: 700 28px/1.1 var(--font-serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.trend-stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }
.trend-chart { margin: 0 0 calc(var(--space) * 3); }
.trend-tabs { display: flex; gap: 6px; margin-bottom: var(--space); flex-wrap: wrap; }
.trend-tabs button { font: 600 13px var(--font-sans); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.trend-tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.trend-svg svg { display: block; border: 1px solid var(--line); background: #fff; border-radius: 12px; }
.trend-narrow { display: none; }
@media (max-width: 560px) { .trend-wide { display: none; } .trend-narrow { display: block; } }
.trend-extra svg { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; }
.trend-chart .section-label { margin-bottom: var(--space); }
.trend-chart figcaption { font-size: 13px; color: var(--muted); margin-top: var(--space); }
@media (max-width: 720px) { .trend-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trend-stat-value { font-size: 24px; } }

/* Inflation calculator (layouts/inflation-calculator.html); scoped so the mortgage calculator keeps its look */
.infl-calc { background: var(--surface-2); box-shadow: none; padding: calc(var(--space) * 2.5); margin: 0 0 calc(var(--space) * 3); }
.infl-calc .calc-row { margin-bottom: calc(var(--space) * 2); }
.infl-calc .calc-two { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--space) * 2); }
.infl-calc .calc-field > span:first-child, .infl-calc .calc-field legend { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 6px; }
.infl-calc .calc-field select, .infl-calc .calc-field input { font: 500 17px var(--font-sans); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.infl-calc fieldset.calc-field { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.infl-calc fieldset.calc-field select { flex: 1 1 8em; }
.infl-calc .calc-money { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); max-width: 16em; }
.infl-calc .calc-money span { padding-left: 12px; font: 600 20px var(--font-serif); color: var(--muted); }
.infl-calc .calc-money input { border: 0; font: 700 22px var(--font-serif); width: 100%; background: transparent; }
.infl-calc .calc-money input:focus { outline: none; }
.infl-calc .calc-money:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.infl-calc .calc-result { border-top: 1px solid var(--line); padding-top: calc(var(--space) * 2); }
.infl-calc .calc-answer { font: 400 22px/1.4 var(--font-serif); color: var(--ink); margin: 0 0 var(--space); }
.infl-calc .calc-answer strong { font-weight: 700; }
.infl-calc .calc-detail { color: var(--ink-2); margin: 0; }
.trend-source { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .infl-calc .calc-two { grid-template-columns: 1fr; } .infl-calc .calc-answer { font-size: 19px; } }

/* Hover/tap readout on Data & Trends charts (params.trendHover) */
.trend-hoverable { position: relative; }
.trend-hoverable svg { touch-action: pan-y; cursor: crosshair; }
.trend-hoverable svg:focus { outline: none; }
.trend-hoverable svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.trend-cross { stroke: #9ca3af; stroke-width: 1; stroke-dasharray: 3 3; }
.trend-dot { fill: #b3121f; stroke: #fff; stroke-width: 2; }
.trend-tip { position: absolute; z-index: 5; pointer-events: none; display: grid; gap: 1px; min-width: 9em; background: #0b2545; color: #fff; border-radius: 8px; padding: 8px 12px; box-shadow: 0 6px 18px rgba(0,0,0,.18); font-size: 13px; line-height: 1.35; white-space: nowrap; }
.trend-tip strong { font: 700 20px/1.2 var(--font-serif); }
.trend-tip-label { color: rgba(255,255,255,.75); font-size: 12px; }
.trend-extra rect[data-tip] { cursor: pointer; }
.trend-extra rect.on { opacity: .75; }
.trend-hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }

/* Mortgage calculator page (layouts/mortgage-calculator.html); builds on the .calc styles of the story calculator */
.mcalc { margin-top: 0; }
.mcalc-step { font: 700 19px/1.3 var(--font-serif); margin: calc(var(--space) * 3) 0 calc(var(--space) * 1.5); padding-top: calc(var(--space) * 2); border-top: 1px solid var(--line); }
.mcalc-step:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.mcalc-step span { font: 500 13px var(--font-sans); color: var(--muted); margin-left: 6px; }
.mcalc-hint { font-size: 14px; color: var(--muted); margin: -6px 0 calc(var(--space) * 1.5); }
.mcalc-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--line); margin: 14px 0 10px; }
.mcalc-seg { display: block; height: 100%; }
.mcalc-legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--ink-2); }
.mcalc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.mcalc-legend strong { color: var(--ink); }
.mcalc-pi, .mcalc-pi i { background: #0b2545; } .mcalc-legend .mcalc-pi { background: none; }
.mcalc-tax, .mcalc-tax i { background: #2f6fdb; } .mcalc-legend .mcalc-tax { background: none; }
.mcalc-ins, .mcalc-ins i { background: #8fb3ee; } .mcalc-legend .mcalc-ins { background: none; }
.mcalc-hoa, .mcalc-hoa i { background: #c9a227; } .mcalc-legend .mcalc-hoa { background: none; }
.mcalc-pmi, .mcalc-pmi i { background: #b3121f; } .mcalc-legend .mcalc-pmi { background: none; }
.mcalc-extra { margin: 14px 0 0; padding: 10px 14px; border-left: 4px solid var(--brand); background: var(--surface); border-radius: var(--radius-sm); font-size: 15px; }
.mcalc-schedule { margin: 0 0 calc(var(--space) * 3); }
.mcalc-table td, .mcalc-table th { text-align: right; white-space: nowrap; }
.mcalc-table td:first-child, .mcalc-table th:first-child { text-align: left; }
.mcalc-more { margin-top: var(--space); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font: 600 14px var(--font-sans); color: var(--ink); cursor: pointer; }
.mcalc-rates .trend-stat { margin-bottom: 12px; }
.calc-more { margin: 14px 0 0; font-size: 15px; font-weight: 600; }
.calc-more a::after { content: " \2192"; }

/* State population explorer (layouts/state-population.html) */
.pop-explorer { margin: 0 0 calc(var(--space) * 3); }
.pop-measure-note { font-size: 14px; color: var(--muted); margin: 0 0 var(--space); min-height: 1.4em; }
.pop-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: calc(var(--space) * 2); align-items: start; }
.pop-map { width: 100%; height: auto; display: block; }
.pop-tile { cursor: pointer; outline: none; }
.pop-tile rect { stroke: #fff; stroke-width: 2; transition: fill .2s; }
.pop-tile text { font: 600 15px var(--font-sans); fill: #15191f; pointer-events: none; }
.pop-tile.on-dark text { fill: #fff; }
.pop-tile:hover rect, .pop-tile:focus-visible rect { stroke: #15191f; stroke-width: 2.5; }
.pop-tile.sel rect { stroke: #b3121f; stroke-width: 3.5; }
.pop-detail { background: var(--surface-2); border-radius: var(--radius); padding: calc(var(--space) * 2); min-height: 100%; }
.pop-name { font: 700 20px/1.25 var(--font-serif); margin: 0 0 6px; }
.pop-name span { display: block; font: 500 13px var(--font-sans); color: var(--muted); margin-top: 2px; }
.pop-big { font: 700 30px/1.1 var(--font-serif); margin: 6px 0 0; }
.pop-sub { font-size: 13px; color: var(--muted); margin: 2px 0 8px; }
.pop-spark { width: 100%; height: auto; display: block; }
.pop-spark-years { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.pop-facts { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.pop-facts div { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.pop-facts dt { color: var(--ink-2); }
.pop-facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pop-back { margin-top: 12px; background: none; border: 0; padding: 0; color: var(--link); font: 500 13px var(--font-sans); text-decoration: underline; cursor: pointer; }
.pop-hint { font-size: 13px; color: var(--muted); margin: 12px 0 0; }
.pop-legend { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
.pop-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.pop-table th button { all: unset; cursor: pointer; }
.pop-table th button[aria-sort]::after { content: " \2193"; }
.pop-table th button[aria-sort="ascending"]::after { content: " \2191"; }
.pop-table td { text-align: right; white-space: nowrap; }
.pop-table thead th:not(:first-child) { text-align: right; }
@media (max-width: 720px) { .pop-grid { grid-template-columns: 1fr; } .pop-tile text { font-size: 17px; } }

/* Timeline on History & Timelines evergreen pages (_partials/timeline.html) */
.timeline { margin: calc(var(--space) * 3) 0; padding: calc(var(--space) * 2.5); background: var(--surface-2); border-radius: var(--radius); }
.timeline .section-label { margin-bottom: calc(var(--space) * 2); }
.timeline-list { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline-list::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline-list li { position: relative; display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 4px 16px; padding: 0 0 18px 32px; }
.timeline-list li:last-child { padding-bottom: 0; }
.timeline-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); box-sizing: border-box; }
.timeline-date { font: 700 16px/1.4 var(--font-serif); color: var(--ink); }
.timeline-event { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.timeline-note { font-size: 13px; color: var(--muted); margin: calc(var(--space) * 2) 0 0; }
@media (max-width: 640px) { .timeline { padding: 16px; } .timeline-list li { grid-template-columns: 1fr; gap: 2px; } }

/* Evergreen pages: "See the data" box and "More in [section]" (approved Nov. 1, 2026) */
.evergreen-tools .explainer-link-title + .explainer-link-dek { margin-bottom: 8px; }
.evergreen-tools-note { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.evergreen-more { margin: calc(var(--space) * 4) 0 0; padding-top: calc(var(--space) * 2); border-top: 3px solid var(--ink); }
.evergreen-more-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(var(--space) * 2); }
.evergreen-more-all { display: inline-block; margin-top: calc(var(--space) * 2); font-weight: 600; }
.evergreen-more-all::after { content: " \2192"; }
@media (max-width: 640px) { .evergreen-more-list { grid-template-columns: 1fr; } }


/* Recall Tracker (layouts/recalls.html, static/js/recalls.js) */
.rt-tools { margin: var(--space) 0 calc(var(--space) * 2); }
.rt-search { width: 100%; box-sizing: border-box; font: 15px var(--font-sans); padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); margin-bottom: calc(var(--space) * 1.5); }
.rt-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.rt-chips button { font: 600 13px var(--font-sans); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.rt-chips button span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.rt-chips button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.rt-chips button[aria-pressed="true"] span { color: #cfd8e6; }
.rt-day { font: 700 13px var(--font-sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: calc(var(--space) * 3) 0 var(--space); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.rt-row { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rt-row[hidden], .rt-day[hidden] { display: none; }
.rt-thumb { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; background: var(--surface-2); }
.rt-nophoto { display: grid; place-items: center; font: 700 11px var(--font-sans); letter-spacing: .04em; color: var(--muted); }
.rt-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font: 600 12px var(--font-sans); margin-bottom: 4px; }
.rt-agency { padding: 2px 8px; border-radius: 4px; background: var(--brand); color: #fff; letter-spacing: .04em; }
.rt-agency.cpsc { background: #41699f; }
.rt-hazard { padding: 2px 8px; border-radius: 4px; background: #fdecd9; color: #8a3d00; }
.rt-cat { color: var(--muted); font-weight: 500; }
.rt-title { font: 600 17px/1.35 var(--font-serif); margin: 0 0 6px; color: var(--ink); }
.rt-title a { color: inherit; text-decoration: none; }
.rt-title a:hover { text-decoration: underline; }
.rt-sold { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.rt-links { font: 14px var(--font-sans); display: flex; gap: 16px; flex-wrap: wrap; }
.rt-story { font-weight: 700; }
.rt-story::after { content: " \2192"; }
.rt-empty { padding: calc(var(--space) * 3) 0; color: var(--muted); }
.rt-official { padding-left: 18px; margin: 0; font-size: 14px; line-height: 1.7; }
@media (prefers-color-scheme: dark) { .rt-hazard { background: #4a2a10; color: #ffcf9e; } }
@media (max-width: 640px) { .rt-row { grid-template-columns: 56px 1fr; } .rt-thumb { width: 56px; height: 56px; } .rt-title { font-size: 16px; } }
