/* The Daily Ledger - Modern design system v4 (Oct 12, 2026)
   Contemporary news/data-site polish on the v3 newsroom foundation:
   cooler neutrals, gradient navy accents, 12-20px radii, layered soft
   shadows, glassy sticky nav, larger display type, reading progress bar.
   Brand anchors kept: navy #0d1226 + mint #6ee7a0, serif display type.
   Class names are contractual per NEWSROOM-SPEC.md. */

:root {
  --ink: #14161f;
  --paper: #ffffff;
  --muted: #555b6b;
  --faint: #8b90a0;
  --line: #e7e8ee;
  --line-dark: #c9ccd8;
  --wash: #f6f7f9;
  --wash-2: #eef0f4;
  --navy: #0d1226;
  --navy-2: #1a2340;
  --navy-3: #24335f;
  --mint: #6ee7a0;
  --mint-ink: #0d5c34;
  --red: #b31b1b;
  --grad-navy: linear-gradient(135deg, #0d1226 0%, #182449 55%, #22335f 100%);
  --grad-navy-v: linear-gradient(180deg, #131a36 0%, #0d1226 100%);
  --grad-mint: linear-gradient(90deg, #6ee7a0, #34d399);
  --shadow-sm: 0 1px 2px rgba(13, 18, 38, 0.05), 0 2px 8px rgba(13, 18, 38, 0.05);
  --shadow-md: 0 4px 14px rgba(13, 18, 38, 0.07), 0 14px 34px rgba(13, 18, 38, 0.08);
  --shadow-lg: 0 10px 28px rgba(13, 18, 38, 0.11), 0 28px 56px rgba(13, 18, 38, 0.13);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1200px;
  --max-narrow: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(110, 231, 160, 0.4); }
:focus-visible { outline: 3px solid rgba(110, 231, 160, 0.7); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 20px; }

/* Reading progress bar (injected by site.js on article pages) */
.read-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-mint);
  transform: scaleX(0); transform-origin: 0 50%;
  z-index: 150; pointer-events: none;
}

/* ============ Masthead ============ */

/* Utility bar: dark navy strip, mint subscribe pill */
.utility-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
}
.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.util-date { font-weight: 600; color: #fff; }
.util-tag { font-weight: 500; }
.util-subscribe {
  font-weight: 700;
  color: var(--navy);
  background: var(--mint);
  padding: 4px 12px;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.util-subscribe:hover { text-decoration: none; color: var(--navy); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(110, 231, 160, 0.35); }

/* Wordmark: serif 900, centered, gradient hairline beneath */
.wordmark { text-align: center; padding: 18px 20px 16px; position: relative; }
.wordmark::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: min(420px, 60%); height: 3px; border-radius: 999px;
  background: var(--grad-mint); opacity: 0.85;
}
.wordmark a {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.6rem, 6.5vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  display: block;
}
.wordmark a:hover { text-decoration: none; }
.wordmark-logo {
  height: 1.05em;
  width: auto;
  vertical-align: -0.13em;
  margin-right: 0.28em;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--line-dark), var(--shadow-md);
}
.wordmark-tag {
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

/* Section nav: glassy sticky bar, pill hovers */
.section-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(13, 18, 38, 0.05);
}
.section-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-top: 6px;
  padding-bottom: 6px;
}
.section-nav-inner::-webkit-scrollbar { display: none; }
.section-nav a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.section-nav a:hover { text-decoration: none; background: var(--wash-2); color: var(--navy); }
.section-nav .icon-btn { margin-left: auto; }

/* Retired masthead hooks kept minimal so old markup never breaks */
.mainnav, .masthead-inner { display: flex; align-items: center; }
.brand, .masthead-actions { display: flex; align-items: center; }

/* ============ Buttons / controls ============ */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  font-family: var(--sans); font-weight: 700; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 12px; text-align: center; line-height: 1.4;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--grad-navy); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--grad-navy); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-navy { background: var(--grad-navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-navy:hover { background: var(--grad-navy); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-mint { background: var(--mint); color: var(--navy); box-shadow: 0 6px 18px rgba(110, 231, 160, 0.35); }
.btn-mint:hover { background: var(--mint); color: var(--navy); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--line-dark); }
.btn-outline:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-light:hover { background: var(--wash); color: var(--navy); transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.icon-btn {
  background: none; border: 0; cursor: pointer; padding: 10px 8px;
  color: var(--ink); border-radius: 10px; font-size: 1.15rem; line-height: 1;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.icon-btn:hover { background: var(--wash-2); }
.hamburger { display: none; }
#hamburger { display: none; }
button[data-open-search] { -webkit-tap-highlight-color: transparent; }

/* ============ Ticker (site.js duplicates .ticker-track for the marquee) ============ */
.ticker {
  background: var(--grad-navy);
  color: #fff;
  overflow: hidden;
  font-family: var(--sans);
  font-size: 0.8rem;
}
.ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  width: max-content;
  animation: tick 40s linear infinite;
  padding: 10px 0;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { padding: 0 26px; border-right: 1px solid rgba(255,255,255,0.16); }
.ticker-item .t-label {
  color: rgba(255,255,255,0.62);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  margin-right: 8px;
}
.ticker-item .t-val { color: var(--mint); font-weight: 800; font-variant-numeric: tabular-nums; }
.ticker-note { color: rgba(255,255,255,0.55); font-size: 0.72rem; padding: 0 26px; align-self: center; }
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint); margin-right: 6px; vertical-align: 1px;
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ============ Type: kickers, headlines, rules ============ */
.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint-ink);
  margin: 0 0 12px;
}
.kicker::before {
  content: ""; display: inline-block;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--grad-mint);
  margin-right: 9px; vertical-align: 1px;
}
.kicker .sep { color: var(--faint); font-weight: 400; margin: 0 8px; }

.display-headline {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 16px;
}
.display-headline a { color: var(--ink); transition: color 0.15s ease; }
.display-headline a:hover { color: var(--navy-3); text-decoration: none; }

.section-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 18px;
  letter-spacing: -0.012em;
}
.section-title.with-rule {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  position: relative;
}
.section-title.with-rule::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 64px; height: 2px; background: var(--grad-mint);
}
.with-rule { border-bottom: 1px solid var(--line-dark); padding-bottom: 14px; }

.dek {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 16px;
}

/* ============ Front grid: lead story + secondary rail ============ */
.front-grid {
  /* NOT a grid: the layout grid lives on .front-grid-inner. Making this
     section a 2.1fr/1fr grid squeezed its only child into the first
     track and left the second track as a full-height empty column on
     the right (bug found Oct 16, 2026). */
  padding-top: 26px;
  padding-bottom: 30px;
}
.lead-story { min-width: 0; display: flex; flex-direction: column; }
.lead-story .byline-sm { margin-bottom: 12px; }
.lead-img {
  display: block;
  width: 100%;
  border-radius: var(--r-lg);
  margin-top: 8px;
  box-shadow: var(--shadow-md);
}
.lead-img + .lead-img-caption,
.img-caption {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--faint);
  margin-top: 10px;
  line-height: 1.5;
}
.secondary-rail {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.rail-story {
  display: block;
  padding: 14px 14px;
  margin: 0 -14px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: background 0.15s ease;
}
.rail-story:hover { text-decoration: none; background: var(--wash); }
.rail-story .kicker { margin-bottom: 6px; }
.rail-story h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 8px;
}
.rail-story:hover h3 { color: var(--navy-3); }
.rail-story p.dek { font-size: 0.98rem; margin: 0 0 10px; }
.byline-sm {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--faint);
  margin: 0;
}

/* ============ Sections / wash backgrounds ============ */
.wash { background: linear-gradient(180deg, var(--wash) 0%, #fff 130%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-pad { padding: 36px 0; }

/* ============ Latest feed: timestamped rows ============ */
.latest-feed { margin-bottom: 28px; }
.latest-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 11px 12px;
  margin: 0 -12px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: background 0.15s ease;
}
.latest-row:hover { background: #fff; }
.latest-row:first-child { border-top: 1px solid var(--line); }
.latest-row time {
  font-family: var(--sans);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.latest-row a.latest-headline {
  font-family: var(--serif);
  font-size: 1.14rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.latest-row a.latest-headline:hover { color: var(--navy-3); }

/* ============ Cards ============ */
.card-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card-grid-2 { grid-template-columns: 1fr; }
.card-grid-3 { grid-template-columns: 1fr; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
a.card:hover { text-decoration: none; box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--line-dark); }
.card .kicker { margin-bottom: 10px; }
.card h3 {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 10px;
}
.card p.dek { font-size: 0.98rem; margin: 0 0 16px; flex-grow: 1; }
.card img { border-radius: var(--r-md); margin-bottom: 16px; }
.card-meta { font-family: var(--sans); font-size: 0.78rem; color: var(--faint); margin-top: auto; }
.card-meta .dot { margin: 0 6px; }

/* ============ Data box (WSJ-style, modernized) ============ */
.data-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.data-box::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--grad-mint);
}
.data-box h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}
.data-box .data-box-sub {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 12px;
}
.data-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.data-row:last-child { border-bottom: 1px solid var(--line); }
.data-row .dr-label {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}
.data-row .dr-val {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.data-row .dr-val.mint-on-light { color: var(--mint-ink); }
.data-row .dr-note { font-size: 0.75rem; color: var(--faint); font-weight: 400; display: block; }
#debt-ticker {
  font-family: var(--sans);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--mint-ink);
  letter-spacing: -0.01em;
}

/* ============ Numbers strip: 4 stats, mint values ============ */
.numbers-strip {
  background: var(--grad-navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.numbers-strip::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(560px 240px at 85% -20%, rgba(110, 231, 160, 0.16), transparent 65%);
  pointer-events: none;
}
.numbers-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  position: relative;
}
.number-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: 20px;
}
.number-stat .ns-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}
.number-stat .ns-val {
  font-family: var(--sans);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
  margin: 8px 0 4px;
  letter-spacing: -0.02em;
}
.number-stat .ns-sub { font-family: var(--sans); font-size: 0.82rem; color: rgba(255,255,255,0.62); }

/* ============ Money trail feature block ============ */
.money-trail-feature { padding: 44px 0; }
.money-trail-feature .mtf-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.money-trail-feature .display-headline { font-size: clamp(2rem, 4.4vw, 3rem); }
.money-trail-feature .dek { max-width: 640px; margin-left: auto; margin-right: auto; }
.money-trail-feature .kicker::before { margin-right: 9px; }
.money-trail-feature .btn { margin-top: 16px; }

/* ============ Explainers grid (cards; uses .card-grid) ============ */
.explainers-section { padding: 36px 0 44px; }

/* ============ Newsletter module ============ */
.newsletter-module {
  background:
    radial-gradient(640px 300px at 88% -10%, rgba(110, 231, 160, 0.22), transparent 62%),
    var(--grad-navy);
  color: #fff;
  border-radius: 24px;
  padding: 36px 34px;
  margin: 0 0 44px;
  box-shadow: var(--shadow-lg);
}
/* The module's two real columns live on .nl-grid (text | signup);
   the grid used to sit on the section itself with a single child,
   which left the right column of the navy box empty. */
.nl-grid { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; }
.newsletter-module .nl-proof a { color: var(--mint); }
.newsletter-module h2 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}
.newsletter-module .nl-kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 12px;
}
.newsletter-module p { color: rgba(255,255,255,0.78); margin: 0 0 8px; font-size: 1rem; }
.newsletter-module .nl-proof { font-size: 0.82rem; color: rgba(255,255,255,0.55); }
form.nl-capture { margin-top: 18px; }
.nl-form { display: flex; gap: 10px; margin: 18px 0 10px; }
form.nl-capture .nl-form, .nl-form { flex-wrap: wrap; }
.nl-form input[type="email"] {
  flex: 1; min-width: 200px;
  padding: 15px 18px; border: 0; border-radius: 12px; font-size: 1rem;
  font-family: var(--sans); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.nl-form input:focus { outline: 3px solid rgba(110,231,160,0.55); }
.nl-success {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(110,231,160,0.4);
  border-radius: var(--r-md); padding: 16px 18px; font-size: 0.95rem; color: #fff;
}

/* ============ Footer ============ */
.footer {
  background: var(--grad-navy-v);
  color: rgba(255,255,255,0.72);
  padding: 44px 0 26px;
  font-size: 0.9rem;
  position: relative;
}
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-mint);
}
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 30px; margin-bottom: 30px; }
.footer h4 {
  color: #fff; font-family: var(--sans);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  margin: 0 0 16px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,0.72); transition: color 0.15s ease; }
.footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18); }
.footer-brand span {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 900; color: #fff; letter-spacing: -0.01em;
}
.footer-brand p { margin: 0; font-size: 0.85rem; color: rgba(255,255,255,0.55); max-width: 300px; }
.footer-social {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 22px 0 4px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.footer-social a {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.82rem; font-weight: 600;
  color: rgba(255,255,255,0.85);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.footer-social a:hover {
  border-color: var(--mint); color: var(--mint);
  background: rgba(110, 231, 160, 0.08);
  text-decoration: none; transform: translateY(-1px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px; margin-top: 20px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.78rem; color: rgba(255,255,255,0.5);
}

/* ============ Article page ============ */
.article-page { padding: 32px 0 48px; }
.breadcrumb {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--faint);
  margin: 0 0 18px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--navy); }
.article-page > .wrap-narrow > .kicker,
.article-page .kicker { margin-bottom: 12px; }
.article-page h1 {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(2.1rem, 4.8vw, 3.2rem);
  line-height: 1.07;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 20px;
}
.article-dek {
  font-family: var(--serif);
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 20px;
}
.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  font-family: var(--sans); font-size: 0.85rem; color: var(--muted);
  padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 26px;
}
.byline-main { color: var(--ink); }
.byline-date { color: var(--faint); }
.byline .share-row { margin-left: auto; }
.share-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.share-btn {
  border: 1px solid var(--line-dark); background: #fff; border-radius: 999px;
  padding: 8px 17px; font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  color: var(--ink); cursor: pointer; display: inline-block;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.share-btn:hover { border-color: var(--navy); background: var(--navy); color: #fff; text-decoration: none; transform: translateY(-1px); }

/* Takeaways */
.takeaways {
  background: linear-gradient(180deg, #fff, var(--wash));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin: 0 0 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.takeaways::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 5px;
  background: var(--grad-mint);
}
.takeaways h2 {
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); margin: 0 0 14px;
}
.takeaways ul { margin: 0; padding-left: 20px; }
.takeaways li { margin-bottom: 9px; font-family: var(--serif); font-size: 1.02rem; line-height: 1.6; }
.takeaways li:last-child { margin-bottom: 0; }

/* Prose: serif body, NYT rhythm */
.prose {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
}
.prose p { margin: 0 0 1.35em; }
.prose > p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 900;
  float: left;
  font-size: 4.4em;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--navy);
}
.prose h2 {
  font-family: var(--serif); font-size: 1.65rem; font-weight: 700;
  color: var(--ink); margin: 1.7em 0 0.7em; letter-spacing: -0.012em; line-height: 1.25;
}
.prose h3 {
  font-family: var(--serif); font-size: 1.28rem; font-weight: 700;
  color: var(--ink); margin: 1.8em 0 0.6em; line-height: 1.35;
}
.prose a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--line-dark); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--navy); }
.prose blockquote {
  margin: 2em 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--mint);
  font-style: italic; color: var(--muted);
}
.prose ul, .prose ol { margin: 0 0 1.35em; padding-left: 1.4em; }
.prose li { margin-bottom: 0.55em; }
.dateline-lede .dateline,
.prose .dateline {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
/* Tables */
.prose table, .article-table {
  width: 100%; border-collapse: collapse; margin: 1.8em 0 2em;
  font-family: var(--sans); font-size: 0.92rem;
}
.prose th, .article-table th {
  text-align: left; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
  padding: 11px 12px; border-bottom: 2px solid var(--navy);
}
.prose td, .article-table td { padding: 12px; border-bottom: 1px solid var(--line); }
.prose tbody tr, .article-table tbody tr { transition: background 0.12s ease; }
.prose tbody tr:hover, .article-table tbody tr:hover { background: var(--wash); }
.prose tr:last-child td, .article-table tr:last-child td { border-bottom: 0; }
.prose td.num, .prose th.num { text-align: right; font-variant-numeric: tabular-nums; }
.prose tr.total td { font-weight: 700; border-top: 2px solid var(--navy); }
table { border-collapse: collapse; }
.table-scroll { overflow-x: auto; }

/* Pull quote */
.pullquote {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--ink);
  background: var(--wash);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  margin: 1.8em 0;
  position: relative;
  overflow: hidden;
}
.pullquote::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 5px;
  background: var(--grad-mint);
}
.pullquote cite {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
}

/* Stat callout (article insert: big number + label) */
.stat-callout {
  background:
    radial-gradient(420px 200px at 90% -10%, rgba(110, 231, 160, 0.2), transparent 60%),
    var(--grad-navy);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 24px 26px;
  margin: 1.8em 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.stat-callout .sc-num {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--mint); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.stat-callout .sc-label {
  font-family: var(--sans); font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75); margin-top: 8px; line-height: 1.55;
}

/* Method box */
.method-box {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  margin: 2.2em 0;
  font-family: var(--sans);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}
.method-box h3 {
  font-family: var(--sans);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); margin: 0 0 12px;
}
.method-box p { margin: 0 0 10px; }
.method-box ul { margin: 0; padding-left: 18px; }
.method-box li { margin-bottom: 6px; }

.source-note { font-family: var(--sans); font-size: 0.8rem; color: var(--faint); margin: 0 0 24px; line-height: 1.6; }
.sources-box {
  border-top: 1px solid var(--line);
  margin-top: 32px; padding-top: 18px;
  font-family: var(--sans); font-size: 0.85rem; color: var(--muted);
}
.sources-box h3 {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); margin: 0 0 12px;
}
.sources-box ul { margin: 0; padding-left: 18px; }
.sources-box li { margin-bottom: 6px; }
.article-cta {
  background:
    radial-gradient(520px 240px at 88% -10%, rgba(110, 231, 160, 0.22), transparent 62%),
    var(--grad-navy);
  color: #fff; border-radius: var(--r-lg);
  padding: 32px 30px; margin: 36px 0; text-align: center;
  box-shadow: var(--shadow-lg);
}
.article-cta h2 { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.012em; }
.article-cta p { color: rgba(255,255,255,0.75); margin: 0 0 22px; font-size: 0.98rem; }

/* Related stories */
.related-head { margin: 36px 0 18px; }

/* ============ Section fronts ============ */
.section-front-head {
  padding: 40px 0 30px;
  margin-bottom: 32px;
  background:
    radial-gradient(700px 260px at 12% -30%, rgba(110, 231, 160, 0.14), transparent 60%),
    linear-gradient(180deg, var(--wash) 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.section-front-head .kicker { margin-bottom: 12px; }
.section-front-head .display-headline { margin-bottom: 14px; }
.section-front-head .dek { max-width: 720px; margin-bottom: 0; font-size: 1.22rem; }
.section-front-body { padding-bottom: 48px; }
.section-front-body .card-grid,
.section-front-body .card-grid-3 { margin-top: 8px; }

/* ============ Mobile drawer + scrim ============ */
#drawer {
  position: fixed; top: 0; right: -320px; width: 300px; max-width: 85vw; height: 100%;
  background: var(--grad-navy-v); color: #fff; z-index: 210;
  transition: right 0.28s cubic-bezier(0.32, 0.72, 0.28, 1);
  padding: 64px 28px 28px; overflow-y: auto;
  border-radius: 20px 0 0 20px;
  box-shadow: var(--shadow-lg);
}
#drawer.open { right: 0; }
#drawer a {
  display: block; color: #fff; font-family: var(--sans);
  font-size: 1.05rem; font-weight: 700; padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
#drawer a:hover { color: var(--mint); text-decoration: none; }
#drawer .drawer-kicker {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.5); padding: 14px 0 4px;
}
#drawer .btn { margin-top: 20px; display: block; }
#scrim {
  position: fixed; inset: 0; background: rgba(13,18,38,0.55); z-index: 205;
  display: none;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
#scrim.open { display: block; }

/* ============ Search overlay ============ */
#search-overlay {
  position: fixed; inset: 0; background: rgba(13,18,38,0.72); z-index: 220;
  display: none; padding: 90px 20px 20px;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
#search-overlay.open { display: block; }
.search-box {
  max-width: 640px; margin: 0 auto; background: #fff;
  border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,0.35);
}
#search-input {
  width: 100%; border: 0; padding: 22px 26px;
  font-family: var(--serif); font-size: 1.35rem; color: var(--ink);
}
#search-input:focus { outline: none; }
#search-results { max-height: 52vh; overflow-y: auto; border-top: 1px solid var(--line); }
#search-results a { display: block; padding: 15px 26px; border-bottom: 1px solid var(--line); transition: background 0.12s ease; }
#search-results a:hover { background: var(--wash); text-decoration: none; }
#search-results .sr-k {
  font-family: var(--sans); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase;
}
#search-results .sr-t { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); font-weight: 700; }
#search-close {
  position: fixed; top: 24px; right: 30px;
  background: none; border: 0; color: #fff;
  font-size: 2rem; cursor: pointer; line-height: 1; padding: 6px;
}
.search-box .search-hint { padding: 12px 26px; font-size: 0.78rem; color: var(--faint); border-top: 1px solid var(--line); }

/* ============ Retired nav dropdown: minimal safe styles ============ */
.nav-dropdown { position: relative; display: inline-flex; }
.nav-dropbtn {
  background: none; border: 0; cursor: pointer; font-family: var(--sans);
  color: var(--ink); font-size: 0.85rem; font-weight: 600;
  padding: 13px 15px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 5px;
}
.nav-dropbtn:hover { color: var(--navy); }
.nav-dropmenu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 300;
}
.nav-dropdown.open .nav-dropmenu { display: block; }
.nav-dropmenu a {
  display: block; color: var(--ink); font-size: 0.88rem; font-weight: 600;
  padding: 10px 12px; border-radius: var(--r-sm); white-space: nowrap;
}
.nav-dropmenu a:hover { background: var(--wash); color: var(--navy); text-decoration: none; }

/* ============ Legacy page components (older pages reference these) ============ */
.section { padding: 36px 0; }
.section-wash { background: var(--wash); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-link { font-size: 0.88rem; font-weight: 700; white-space: nowrap; }
.page-intro { font-family: var(--serif); font-size: 1.14rem; color: var(--muted); max-width: 720px; line-height: 1.6; }
.two-col { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: start; }
.sidebar-box { background: var(--wash); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; margin-bottom: 16px; }
.sidebar-box h3 { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); margin: 0 0 12px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: var(--ink); }
.form-row input {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-dark);
  border-radius: var(--r-sm); font-size: 0.95rem; font-family: var(--sans);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(110, 231, 160, 0.35); }
.checkline { font-size: 0.8rem; color: var(--muted); }

.fact-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.fact {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
}
.fact::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 4px;
  background: var(--grad-mint);
}
.fact p { margin: 0 0 6px; font-size: 1rem; color: var(--ink); }
.fact p strong { font-family: var(--serif); }
.fact a { font-size: 0.85rem; font-weight: 700; }

.mostread { list-style: none; margin: 0; padding: 0; counter-reset: mr; }
.mostread li {
  counter-increment: mr; display: flex; gap: 18px; align-items: flex-start;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.mostread li::before {
  content: counter(mr); font-family: var(--serif); font-size: 2.1rem; font-weight: 900;
  color: var(--line-dark); line-height: 1; min-width: 42px;
}
.mostread a { color: var(--ink); font-family: var(--serif); font-size: 1.1rem; font-weight: 700; line-height: 1.35; }
.mostread a:hover { color: var(--navy-3); }
.mostread .mr-meta { font-size: 0.78rem; color: var(--faint); margin-top: 4px; font-family: var(--sans); }

/* Old green newsletter block (kept working on older pages) */
.newsletter-block {
  background:
    radial-gradient(560px 260px at 88% -10%, rgba(110, 231, 160, 0.2), transparent 62%),
    var(--grad-navy);
  color: #fff; border-radius: var(--r-lg);
  padding: 34px 32px; display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center;
  box-shadow: var(--shadow-md);
}
.newsletter-block h2 { font-family: var(--serif); font-size: 1.95rem; margin: 0 0 10px; letter-spacing: -0.015em; }
.newsletter-block p { color: rgba(255,255,255,0.75); margin: 0 0 8px; font-size: 0.98rem; }
.newsletter-block .proof { font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* Data hero + tiles (older data pages) */
.data-hero {
  background:
    radial-gradient(700px 280px at 12% -30%, rgba(110, 231, 160, 0.13), transparent 60%),
    linear-gradient(180deg, var(--wash) 0%, #fff 100%);
  padding: 36px 0; border-bottom: 1px solid var(--line);
}
.data-hero h1 {
  font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 2.9rem);
  color: var(--ink); margin: 0 0 12px; letter-spacing: -0.022em; font-weight: 900; line-height: 1.08;
}
.big-tiles { display: grid; grid-template-columns: 1fr; gap: 18px; margin: 32px 0 10px; }
.big-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.big-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.big-tile .bt-label { font-family: var(--sans); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.big-tile .bt-val {
  font-family: var(--sans); font-size: 2.05rem; font-weight: 800;
  color: var(--navy); margin: 6px 0 2px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.big-tile .bt-sub { font-size: 0.82rem; color: var(--faint); }

/* Calculator (legacy pages) */
.calc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-md); }
.calc label { font-weight: 700; font-size: 0.95rem; color: var(--ink); display: block; margin-bottom: 8px; }
.calc input[type="number"], #calc-household {
  font-size: 1.25rem; padding: 13px 16px; border: 1.5px solid var(--line-dark);
  border-radius: var(--r-sm); width: 190px; font-family: var(--sans); font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.calc input:focus, #calc-household:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(110, 231, 160, 0.35); }
.calc-result {
  background:
    radial-gradient(420px 200px at 88% -10%, rgba(110, 231, 160, 0.2), transparent 60%),
    var(--grad-navy);
  color: #fff; border-radius: var(--r-md); padding: 28px; margin-top: 24px; text-align: center;
  box-shadow: var(--shadow-md);
}
.calc-result .cr-num, #calc-result-num {
  font-family: var(--sans); font-size: 2.7rem; font-weight: 800;
  color: var(--mint); font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.calc-result .cr-label { color: rgba(255,255,255,0.7); font-size: 0.88rem; margin-top: 6px; }

/* Topics (legacy) */
.topic-block { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
.topic-block h2 { font-family: var(--serif); font-size: 1.55rem; color: var(--ink); margin: 0 0 8px; }
.topic-block p { color: var(--muted); margin: 0 0 16px; }
.topic-links { list-style: none; margin: 0; padding: 0; }
.topic-links li { padding: 10px 0; border-top: 1px dashed var(--line); font-size: 0.98rem; }
.topic-links li a { color: var(--ink); font-weight: 600; }

/* Old hero / banner / pills (legacy pages) */
.site-banner { background: var(--navy); padding: 26px 0; }
.banner-img { display: block; width: 100%; max-width: 880px; height: auto; margin: 0 auto; border-radius: var(--r-md); box-shadow: var(--shadow-lg); }
.hero {
  background:
    radial-gradient(700px 300px at 88% -10%, rgba(110, 231, 160, 0.18), transparent 62%),
    var(--grad-navy);
  color: #fff; padding: 44px 0 38px;
}
.hero-kicker {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--mint); margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--serif); font-weight: 900; font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08; margin: 0 0 12px; letter-spacing: -0.022em;
}
.hero h1 .bignum { color: var(--mint); }
.hero-dek { color: rgba(255,255,255,0.75); font-size: 1.08rem; max-width: 640px; margin: 0 0 8px; }
.hero-asof { color: rgba(255,255,255,0.55); font-size: 0.82rem; margin: 0 0 26px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin-top: 40px;
}
.hero-stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: 20px 22px;
}
.hero-stat .hs-label { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; color: rgba(255,255,255,0.6); text-transform: uppercase; }
.hero-stat .hs-val { font-family: var(--sans); font-size: 1.75rem; font-weight: 800; color: #fff; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.hero-stat .hs-sub { font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.pillbar { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  display: inline-block; border: 1.5px solid var(--line-dark); border-radius: 999px;
  padding: 9px 19px; font-size: 0.85rem; font-weight: 700; color: var(--ink); background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.pill:hover { border-color: var(--navy); background: var(--navy); color: #fff; text-decoration: none; transform: translateY(-1px); }

/* ============ Responsive: single column under 860px, expand above ============ */
@media (min-width: 861px) {
  .hamburger { display: none; }
  .front-grid { padding-top: 30px; padding-bottom: 36px; }
  .secondary-rail { border-top: 0; border-left: 1px solid var(--line); padding-left: 38px; }
  .secondary-rail .rail-story:first-child { padding-top: 4px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid-2 { grid-template-columns: repeat(2, 1fr); }
  .numbers-strip-inner { grid-template-columns: repeat(4, 1fr); }
  .newsletter-module { padding: 44px 48px; }
  .nl-grid { grid-template-columns: 1.1fr 1fr; }
  .newsletter-block { grid-template-columns: 1.1fr 1fr; padding: 40px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; }
  .two-col { grid-template-columns: 2fr 1fr; gap: 44px; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .big-tiles { grid-template-columns: repeat(4, 1fr); }
  .hero-stats { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
  .hamburger, #hamburger { display: block; }
  .section-nav-inner { justify-content: flex-start; }
  .section-nav .icon-btn { margin-left: 0; }
  .util-tag { display: none; }
  .wordmark { padding: 16px 20px 14px; }
  .front-grid { padding-top: 22px; padding-bottom: 26px; }
  .latest-row { grid-template-columns: 1fr; gap: 6px; padding: 13px 12px; }
  .numbers-strip-inner { grid-template-columns: 1fr 1fr; }
  .number-stat .ns-val { font-size: 1.65rem; }
  .newsletter-module { padding: 30px 22px; border-radius: 20px; }
  .nl-form { flex-direction: column; }
  .nl-form input[type="email"] { width: 100%; }
  .article-page { padding: 26px 0 40px; }
  .section-front-head { padding: 30px 0 22px; margin-bottom: 24px; }
  .money-trail-feature { padding: 32px 0; }
  .byline .share-row { margin-left: 0; width: 100%; }
  .data-box { padding: 24px 22px; }
  .calc { padding: 26px 22px; }
  .pullquote { padding: 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  * { transition: none !important; }
}

/* ============ Homepage structure bindings (actual index.html markup) ============ */
.front-grid-inner { display: grid; grid-template-columns: 1fr; gap: 28px; }
.data-section { padding: 8px 0 36px; }
.data-box .data-label {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600;
  color: var(--muted); line-height: 1.4;
}
.data-box .data-value {
  font-family: var(--sans); font-weight: 800; font-size: 1.18rem;
  color: var(--ink); font-variant-numeric: tabular-nums;
  white-space: nowrap; letter-spacing: -0.01em;
}
.data-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 0.92rem; }
.data-table caption {
  text-align: left; font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint);
  padding-bottom: 10px;
}
.data-table th[scope="row"] {
  text-align: left; font-weight: 600; color: var(--muted);
  padding: 10px 12px 10px 0; border-top: 1px solid var(--line);
}
.data-table td {
  text-align: right; font-weight: 700; color: var(--ink);
  font-variant-numeric: tabular-nums;
  padding: 10px 0 10px 12px; border-top: 1px solid var(--line);
}
.data-source { font-family: var(--sans); font-size: 0.76rem; color: var(--faint); margin: 14px 0 0; }

.numbers-strip { padding: 36px 0; }
.numbers-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.numbers-inner .stat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-md);
  padding: 20px;
}
.numbers-inner .stat-value {
  display: block;
  font-family: var(--sans); font-size: 2.1rem; font-weight: 800;
  color: var(--mint); font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em; line-height: 1.15;
}
.numbers-inner .stat-label {
  display: block; margin-top: 6px;
  font-family: var(--sans); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.explainers-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.numbers-explore { padding: 4px 0 44px; }

@media (min-width: 861px) {
  .front-grid-inner { grid-template-columns: 2.1fr 1fr; gap: 40px; }
  .numbers-inner { grid-template-columns: repeat(4, 1fr); }
  .explainers-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .numbers-strip { padding: 30px 0; }
  .numbers-inner .stat-value { font-size: 1.65rem; }
  .numbers-explore { padding-bottom: 36px; }
}

/* ============ Legacy masthead (data / department pages) + utility classes ============ */
.masthead-inner {
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand { gap: 12px; }
.brand:hover { text-decoration: none; }
.brand img {
  width: 46px; height: 46px; border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--line-dark), var(--shadow-sm);
}
.brand-name {
  font-family: var(--serif); font-weight: 900; font-size: 1.35rem;
  color: var(--ink); line-height: 1.12; letter-spacing: -0.015em;
}
.brand-name small {
  display: block; font-family: var(--sans); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 3px;
}
.mainnav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.mainnav > a {
  font-family: var(--sans); font-weight: 600; font-size: 0.86rem; color: var(--ink);
  padding: 8px 13px; border-radius: 999px; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.mainnav > a:hover { background: var(--wash-2); color: var(--navy); text-decoration: none; }
.mainnav .nav-dropbtn { padding: 8px 13px; border-radius: 999px; }
.mainnav .nav-dropbtn:hover { background: var(--wash-2); }
.drop-label {
  display: block; font-family: var(--sans); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
  padding: 10px 12px 4px;
}
.drop-sub { padding-left: 24px !important; }

.footer-brand img { width: 38px; height: 38px; }

.lede {
  font-family: var(--serif); font-size: 1.16rem; line-height: 1.6;
  color: var(--muted); max-width: 720px; margin: 0 0 28px;
}
.method, .sources {
  font-family: var(--sans); font-size: 0.83rem; color: var(--muted);
  line-height: 1.65; margin: 18px 0;
}
.who { font-weight: 700; color: var(--ink); }

/* Bare page headlines on data / tool pages */
main.wrap > h1 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(2.05rem, 4.6vw, 3.05rem);
  line-height: 1.08; letter-spacing: -0.022em;
  color: var(--ink); margin: 28px 0 14px;
}
main.wrap { padding-bottom: 40px; }

/* Bare <footer> on data / tool pages (no .footer class) */
body > footer:not(.footer) {
  background: var(--grad-navy-v);
  color: rgba(255, 255, 255, 0.72);
  padding: 34px 0 26px;
  font-size: 0.9rem;
  position: relative;
}
body > footer:not(.footer)::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-mint);
}
body > footer:not(.footer) p { margin: 0 0 10px; }
body > footer:not(.footer) a { color: rgba(255, 255, 255, 0.88); font-weight: 600; }
body > footer:not(.footer) a:hover { color: var(--mint); }
body > footer:not(.footer) .footer-social { border-top: 0; padding: 14px 0 2px; }

/* ============ House ad rail (Oct 13, 2026) ============
   Data-driven cards rendered by assets/ads/ads.js from
   assets/ads/ads.json into any .ledger-ad-rail element.
   House ads only: Tour Issue Golf, Murphy Creations (Etsy),
   Ledger house promos, and (later) our apps. */
.layout-with-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
}
.article-wrap { max-width: var(--max); }
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) 300px;
  gap: 52px;
  justify-content: center;
  align-items: start;
}
.article-main { min-width: 0; }
.rail-col { min-width: 0; }
.ledger-ad-rail { position: sticky; top: 96px; }
.secondary-rail .ledger-ad-rail { position: static; margin-top: 22px; }
.ad-label {
  font-family: var(--sans);
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 12px;
}
.ad-cards { display: flex; flex-direction: column; gap: 14px; }
.ad-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ad-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ad-card-main { display: block; color: inherit; }
.ad-card-main:hover { text-decoration: none; }
.ad-card-img {
  display: block; width: 100%;
  aspect-ratio: 4 / 3; object-fit: cover;
  background: var(--wash-2);
}
.ad-card-body { padding: 13px 15px 15px; }
.ad-brand {
  font-family: var(--sans);
  font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mint-ink);
  margin: 0 0 7px;
}
.ad-name {
  font-family: var(--serif);
  font-size: 1.12rem; font-weight: 700; line-height: 1.25;
  color: var(--ink);
  margin: 0 0 7px;
}
.ad-hook { font-size: 0.88rem; line-height: 1.5; color: var(--muted); margin: 0 0 12px; }
.ad-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 13px; }
.ad-pill {
  background: var(--navy); color: var(--mint);
  font-family: var(--sans);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em;
  border-radius: 999px; padding: 4px 10px;
}
.ad-price { font-family: var(--sans); font-size: 1rem; font-weight: 800; color: var(--navy); }
.ad-cta {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem; font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--mint);
  padding-bottom: 1px;
}
.ad-card-main:hover .ad-cta { color: var(--mint-ink); }
.ad-buy {
  display: block;
  margin: 0 15px 15px;
  text-align: center;
  background: var(--grad-mint);
  color: #07331c;
  font-family: var(--sans);
  font-size: 0.85rem; font-weight: 800;
  border-radius: 999px;
  padding: 10px 16px;
  transition: filter 0.15s ease, transform 0.15s ease;
}
.ad-buy:hover { text-decoration: none; filter: brightness(1.05); transform: translateY(-1px); }
.ad-rail-foot {
  font-size: 0.72rem; line-height: 1.55; color: var(--faint);
  margin: 14px 2px 0;
}
.ad-rail-foot a { color: var(--muted); text-decoration: underline; }
@media (max-width: 1023px) {
  .layout-with-rail { grid-template-columns: minmax(0, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 760px); gap: 8px; }
  .ledger-ad-rail { position: static; margin-top: 34px; }
  .rail-col .ad-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
  }
}
@media (max-width: 560px) {
  .rail-col .ad-cards { grid-template-columns: minmax(0, 1fr); }
}

/* Affiliate / house-ad disclosure box (disclosures.html) */
.ad-disclosure-box {
  background: linear-gradient(180deg, #fff, var(--wash));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 30px;
  margin: 0 0 38px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.ad-disclosure-box::before {
  content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 5px;
  background: var(--grad-mint);
}
.ad-disclosure-box h2 {
  font-family: var(--sans);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); margin: 0 0 12px;
}
.ad-disclosure-box p { margin: 0 0 10px; }
.ad-disclosure-box p:last-child { margin-bottom: 0; }
.layout-main { min-width: 0; }

/* ============ Density pass modules (Oct 13, 2026) ============
   Rail modules fill the homepage rail and the article sidebar so
   neither column runs blank: a compact "By the numbers" box and a
   contract-actions list on the homepage; a newsletter mini-module
   and a "More from The Ledger" list under the ad rail on articles. */
.rail-stack {
  position: sticky; top: 84px;
  display: flex; flex-direction: column; gap: 20px;
}
.rail-col .ledger-ad-rail { position: static; }
.rail-module {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
}
.rail-module-title {
  font-family: var(--sans);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 10px;
}
.rail-list { list-style: none; margin: 0; padding: 0; }
.rail-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.rail-list li:first-child { padding-top: 2px; }
.rail-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.rail-list a {
  display: block;
  font-family: var(--serif); font-size: 0.98rem; font-weight: 600;
  line-height: 1.4; color: var(--ink);
}
.rail-list a:hover { color: var(--navy-3); text-decoration: none; }
.rail-list a strong { font-family: var(--sans); font-weight: 800; color: var(--mint-ink); }
.rail-list a span {
  display: block; margin-top: 3px;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 500; color: var(--faint);
}
.rail-nl { background: var(--grad-navy); border: 0; box-shadow: var(--shadow-md); }
.rail-nl .rail-module-title { color: var(--mint); }
.rail-nl-text { font-size: 0.9rem; line-height: 1.55; color: rgba(255, 255, 255, 0.78); margin: 0 0 14px; }
.secondary-rail .rail-data { margin-top: 20px; box-shadow: var(--shadow-sm); }
.secondary-rail .rail-module { margin-top: 20px; }

/* Lead column fillers on the homepage */
.lead-more {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.lead-mini { display: block; }
.lead-mini:hover { text-decoration: none; }
.lead-mini .kicker { margin-bottom: 5px; }
.lead-mini h3 {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 700;
  line-height: 1.3; letter-spacing: -0.01em; color: var(--ink);
  margin: 0 0 6px;
}
.lead-mini:hover h3 { color: var(--navy-3); }
.lead-explore { margin-top: 20px; }
.lead-headlines { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

/* Secondary feature story under the lead column's headline list:
   horizontal card that deepens the left column so it ends level
   with the homepage rail (Oct 13, 2026 balance pass). */
.lead-feature {
  display: flex; gap: 22px; align-items: flex-start;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--line);
}
.lead-feature:hover { text-decoration: none; }
.lead-feature img {
  width: 340px; flex-shrink: 0;
  border-radius: var(--r-md); box-shadow: var(--shadow-sm);
}
.lead-feature-text { display: block; min-width: 0; }
.lead-feature .kicker { margin-bottom: 6px; }
.lead-feature h3 {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 700;
  line-height: 1.28; letter-spacing: -0.01em; color: var(--ink);
  margin: 0 0 8px;
}
.lead-feature:hover h3 { color: var(--navy-3); }
.lead-feature-dek {
  font-size: 0.98rem; line-height: 1.55; color: var(--muted);
  margin: 0 0 10px;
}

/* Front-grid balance (Oct 13, 2026): the lead column is a flex
   column (see .lead-story) and this closing "Ledger data, live"
   panel is its last element with flex:1, so the panel stretches
   to whatever height the rail sets and the two columns end flush
   at any viewport width and any ad rotation. Rows inside spread
   with justify-content:space-between, so a stretched panel reads
   as an airy data index, never a blank box. The "By the numbers"
   data box stays in the rail: moving it left would swing the
   difference by ~2x its ~360px height against a ~470px shortfall
   and overshoot the balance to the rail side. */
.lead-story > .lead-img { margin-top: 0; }
.lead-datapanel {
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: var(--r-lg);
  color: #fff;
  background:
    radial-gradient(420px 200px at 88% -10%, rgba(110, 231, 160, 0.2), transparent 60%),
    var(--grad-navy);
  box-shadow: var(--shadow-md);
}
.ldp-title {
  font-family: var(--sans); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mint); margin: 0 0 8px;
}
.ldp-list {
  list-style: none; margin: 0; padding: 0;
  flex: 1 1 auto; display: flex; flex-direction: column;
  justify-content: space-between;
}
.ldp-list li { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.ldp-list li:last-child { border-bottom: 0; }
.ldp-list a { display: block; padding: 9px 0; }
.ldp-list a:hover { text-decoration: none; }
.ldp-name {
  display: block;
  font-family: var(--serif); font-size: 1.05rem; font-weight: 700;
  line-height: 1.3; color: #fff;
}
.ldp-list a:hover .ldp-name { color: var(--mint); }
.ldp-desc {
  display: block; margin-top: 2px;
  font-family: var(--sans); font-size: 0.8rem; line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

/* Fill pass (Oct 13, 2026): data/table pages run the full 1200px
   wrap so no blank column trails the content; prose text elements
   stay capped at a readable measure while tables, stat blocks and
   other data elements use the full row. */
.wrap-wide .prose > p, .wrap-wide .prose > ul, .wrap-wide .prose > ol,
.wrap-wide .prose > h2, .wrap-wide .prose > h3, .wrap-wide .prose > h4 { max-width: 78ch; }

/* "The numbers" box in the article rail: same data-box design,
   slightly tighter padding to suit the 300px column. */
.rail-numbers { padding: 22px; box-shadow: var(--shadow-sm); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block;
  border: 1.5px solid var(--line-dark); border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--sans); font-size: 0.8rem; font-weight: 600;
  color: var(--ink); background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.chip:hover { border-color: var(--navy); background: var(--navy); color: #fff; text-decoration: none; }

@media (max-width: 1023px) {
  .rail-stack { position: static; }
  .rail-stack .ledger-ad-rail { margin-top: 0; }
}
@media (max-width: 560px) {
  .lead-more { grid-template-columns: 1fr; }
  .lead-feature { flex-direction: column; gap: 14px; }
  .lead-feature img { width: 100%; }
}

/* ============ Print (Oct 13, 2026) ============
   Clean single-column printouts: no nav, ticker, ads, or drawer;
   compact type and margins so a page does not sprawl. */
@page { margin: 13mm 12mm; }
@media print {
  .utility-bar, .section-nav, .ticker, .drawer, .scrim, .search-overlay,
  .ledger-ad-rail, .footer-social, .share-row, .article-cta, .read-progress,
  .util-subscribe, .hamburger, .icon-btn { display: none !important; }
  body { font-size: 11pt; line-height: 1.45; color: #000; background: #fff; }
  a { color: #000; text-decoration: none; }
  .wrap, .wrap-narrow { max-width: 100%; padding: 0; }
  .wordmark { padding: 4px 0 8px; text-align: left; }
  .wordmark::after { display: none; }
  .wordmark a { font-size: 24pt; }
  .wordmark-tag { margin-top: 4px; }
  .front-grid, .front-grid-inner, .article-layout, .layout-with-rail,
  .two-col, .footer-grid, .lead-more { display: block; }
  .front-grid { padding: 8px 0 0; }
  .secondary-rail { border: 0; padding: 0; margin-top: 12px; }
  .rail-story { padding: 7px 0; margin: 0; }
  .rail-stack { position: static; display: block; }
  .rail-module, .rail-data { margin-top: 12px; break-inside: avoid; }
  .card-grid, .card-grid-2, .card-grid-3, .explainers-grid,
  .fact-grid, .big-tiles, .numbers-inner, .numbers-strip-inner { display: block; }
  .card, .fact, .big-tile, .number-stat, .numbers-inner .stat {
    break-inside: avoid; box-shadow: none; margin-bottom: 10px; padding: 10px 12px;
  }
  .wash { background: #fff; border: 0; }
  .newsletter-module, .newsletter-block { display: none !important; }
  .numbers-strip, .hero, .data-hero, .stat-callout, .rail-nl, .lead-datapanel {
    background: #fff; color: #000; box-shadow: none; padding: 10px 0;
  }
  .lead-datapanel .ldp-title, .lead-datapanel .ldp-name { color: #000; }
  .lead-datapanel .ldp-desc { color: #333; }
  .lead-datapanel .ldp-list li { border-color: #ccc; }
  .numbers-strip .ns-val, .numbers-inner .stat-value, .hero-stat .hs-val,
  .stat-callout .sc-num, .ticker-item .t-val { color: #000; }
  .article-page { padding: 6px 0 12px; }
  .prose { font-size: 11pt; line-height: 1.5; }
  .prose p { margin-bottom: 0.9em; }
  .prose > p:first-of-type::first-letter { font-size: 3.2em; }
  .pullquote, .takeaways, .method-box { padding: 12px 14px; margin: 1em 0; box-shadow: none; }
  .footer, body > footer:not(.footer) { background: #fff; color: #333; padding: 10px 0 0; }
  .footer::before, body > footer:not(.footer)::before { display: none; }
  .footer a, .footer h4, .footer-brand span { color: #000; }
  .footer-grid > div { margin-bottom: 6px; }
  .footer-bottom { padding-top: 8px; margin-top: 8px; }
  h1, h2, h3 { break-after: avoid; }
  img.lead-img { max-width: 55%; box-shadow: none; }
}
