/* ==========================================================================
   WealthSorted — wealthsorted.com.au
   Identity: bright newsprint, indigo ink, an acid-lime highlighter in hand.
   Type: Bricolage Grotesque (display/UI) + Source Serif 4 (long-form).
   ========================================================================== */

:root {
  /* Palette — OKLCH, composed around seed hue 268° */
  --bg: oklch(1 0 0);
  --surface: oklch(0.965 0.012 268);
  --surface-deep: oklch(0.93 0.022 268);
  --ink: oklch(0.23 0.035 268);
  --ink-soft: oklch(0.34 0.04 268);
  --muted: oklch(0.46 0.035 268);
  --rule: oklch(0.86 0.02 268);
  --primary: oklch(0.45 0.21 268);
  --primary-hover: oklch(0.40 0.20 268);
  --primary-deep: oklch(0.29 0.09 268);
  --primary-wash: oklch(0.95 0.025 268);
  --lime: oklch(0.90 0.18 125);
  --lime-bright: oklch(0.93 0.20 125);
  --lime-ink: oklch(0.32 0.09 130);
  --coral: oklch(0.62 0.17 30);
  --coral-wash: oklch(0.95 0.025 30);

  /* Type */
  --font-display: "Bricolage Grotesque", "Avenir Next", -apple-system, sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Motion — strong curves, fast UI */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Structure */
  --radius: 10px;
  --radius-lg: 14px;

  /* Z-scale */
  --z-sticky: 30;
  --z-nav: 50;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  font-weight: 800;
}
h3, h4 { letter-spacing: -0.015em; line-height: 1.2; }

p { text-wrap: pretty; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 2px;
}

::selection { background: var(--lime); color: var(--lime-ink); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 12px; }

/* The highlighter — the brand's signature mark */
.mark {
  background: linear-gradient(0deg, var(--lime) 0%, var(--lime) 88%, transparent 88%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 0.12em;
  margin: 0 -0.06em;
}

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

.site-header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  border-bottom: 2px solid var(--ink);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand .mark { font-weight: 800; }

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background-color 150ms var(--ease-out), color 150ms var(--ease-out);
}
.nav-links a:hover { background: var(--surface); color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--ink); box-shadow: inset 0 -3px 0 var(--lime); border-radius: 8px 8px 2px 2px; }

.nav-cta {
  background: var(--ink);
  color: var(--bg) !important;
  padding: 9px 18px !important;
  border-radius: 100px !important;
  transition: transform 140ms var(--ease-out), background-color 150ms var(--ease-out) !important;
}
.nav-cta:hover { background: var(--primary) !important; }
.nav-cta:active { transform: scale(0.97); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-right: -10px;
}
.nav-toggle .bars { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: var(--ink);
  transition: transform 180ms var(--ease-out);
}
.nav-toggle .bars::before { top: -7px; }
.nav-toggle .bars::after { top: 7px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 88px);
  border-bottom: 2px solid var(--ink);
  background:
    radial-gradient(ellipse 720px 420px at 88% -10%, var(--primary-wash), transparent 65%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4.1rem);
  margin-bottom: 22px;
}
.hero .lede {
  font-family: var(--font-serif);
  font-size: clamp(1.12rem, 1.6vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 36em;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.topic-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.topic-pills a {
  color: var(--ink-soft);
  border: 1.5px solid var(--rule);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 150ms var(--ease-out), background-color 150ms var(--ease-out), color 150ms var(--ease-out);
}
.topic-pills a:hover {
  border-color: var(--ink);
  color: var(--ink);
  text-decoration: none;
}

/* Hero data panel — the numbers are the imagery */
.hero-figure {
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: 24px 24px 18px;
  box-shadow: 6px 6px 0 var(--lime);
}
.hero-figure .fig-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.hero-figure .fig-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.hero-figure svg { display: block; width: 100%; height: auto; }
.hero-figure .fig-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}

/* Page-load choreography (hero only) */
@media (prefers-reduced-motion: no-preference) {
  .hero [data-rise] {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 600ms var(--ease-out) forwards;
  }
  .hero [data-rise="2"] { animation-delay: 70ms; }
  .hero [data-rise="3"] { animation-delay: 140ms; }
  .hero [data-rise="4"] { animation-delay: 210ms; }
  .hero [data-rise="5"] { animation-delay: 280ms; }
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 140ms var(--ease-out), background-color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--primary); color: oklch(1 0 0); }
.btn-primary:hover { background: var(--primary-hover); }

.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover { background: var(--lime-bright); }

.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--primary-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 11px 24px;
}
.btn-ghost:hover { background: var(--surface); }

/* ==========================================================================
   Sections — newspaper desks
   ========================================================================== */

.section { padding: clamp(56px, 8vw, 88px) 0; }
.section + .section { padding-top: 0; }

.desk-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 14px;
  margin-bottom: 8px;
}
.desk-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.desk-head .desk-link {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.desk-standfirst {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
  font-size: 1.02rem;
  padding: 12px 0 28px;
}

/* Featured article + editorial list */
.front-page {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(28px, 4vw, 56px);
}
.lead-story { display: flex; flex-direction: column; gap: 14px; }
.lead-story .story-tag { margin-bottom: 2px; }
.lead-story h3 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  line-height: 1.12;
}
.lead-story h3 a { color: var(--ink); }
.lead-story h3 a:hover { text-decoration-color: var(--lime); text-decoration-thickness: 4px; }
.lead-story .standfirst {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.lead-story .story-meta { margin-top: 2px; }

.story-list { display: flex; flex-direction: column; }
.story-row {
  display: block;
  padding: 18px 10px;
  border-bottom: 1px solid var(--rule);
  border-radius: 6px;
  transition: background-color 150ms var(--ease-out);
}
.story-list .story-row:first-child { padding-top: 4px; }
@media (hover: hover) and (pointer: fine) {
  .story-row:hover { background: var(--surface); text-decoration: none; }
  .story-row:hover h4 { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 4px; }
}
.story-row h4 { font-size: 1.12rem; margin: 6px 0 6px; color: var(--ink); }
.story-row p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

.story-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--primary);
  border: 1.5px solid currentColor;
  border-radius: 100px;
  padding: 2px 10px;
}
.story-tag.tag-soon { color: var(--coral); }
.story-meta { font-size: 0.82rem; color: var(--muted); }
.story-meta b { color: var(--ink-soft); font-weight: 600; }

/* ==========================================================================
   Tools desk (calculators)
   ========================================================================== */

.tool-rack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: 26px 26px 22px;
  color: var(--ink);
  transition: border-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.tool-card:hover { text-decoration: none; border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  .tool-card:hover { transform: translateY(-3px); }
}
.tool-card:active { transform: scale(0.99); }
.tool-card .tool-readout {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.tool-card .tool-readout small {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 2px;
}
.tool-card h3 { font-size: 1.08rem; }
.tool-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; flex: 1; }
.tool-card .tool-go { font-weight: 700; font-size: 0.92rem; color: var(--primary); }

/* ==========================================================================
   Numbers desk (research strip)
   ========================================================================== */

.numbers-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.numbers-strip .num-cell {
  padding: 24px 24px 20px;
  border-top: 1px solid var(--rule);
  background: var(--bg);
}
.numbers-strip .num-cell:nth-child(odd) { background: var(--surface); }
.num-cell .num {
  font-weight: 800;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.num-cell .num-label { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); margin-top: 2px; }
.num-cell .num-source { font-size: 0.76rem; color: var(--muted); margin-top: 8px; }

@media (min-width: 901px) {
  .numbers-strip .num-cell { border-top: none; }
  .numbers-strip .num-cell + .num-cell { border-left: 1px solid var(--rule); }
}

/* ==========================================================================
   Subscribe band — the loudest moment on the page
   ========================================================================== */

.subscribe-band {
  background: var(--lime);
  color: var(--lime-ink);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: clamp(56px, 8vw, 96px) 0;
}
.subscribe-band h2 {
  color: var(--lime-ink);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  max-width: 18em;
  margin-bottom: 14px;
}
.subscribe-band .sub-lede {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  max-width: 38em;
  margin-bottom: 30px;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
}
.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 100px;
  border: 2px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  font-family: var(--font-display);
}
.newsletter-form input::placeholder { color: var(--muted); }
.newsletter-form input:focus { outline: 3px solid var(--primary); outline-offset: 1px; }
.form-success { font-weight: 700; margin-top: 14px; display: none; }
.form-note { font-size: 0.84rem; margin-top: 14px; opacity: 0.85; }

/* ==========================================================================
   Article pages
   ========================================================================== */

.article-hero {
  padding: clamp(44px, 6vw, 72px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 2px solid var(--ink);
}
.article-hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  max-width: 21em;
  margin: 18px 0;
}
.article-hero .standfirst {
  font-family: var(--font-serif);
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 34em;
}
.article-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 22px;
  flex-wrap: wrap;
}

.article-body { padding: clamp(40px, 6vw, 64px) 0; }
.article-body > .container-narrow > * + * { margin-top: 1.15em; }
.article-body p, .article-body li {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ink);
}
.article-body h2 {
  font-size: 1.6rem;
  margin-top: 2em;
}
.article-body h3 { font-size: 1.22rem; margin-top: 1.6em; }
.article-body ul, .article-body ol { padding-left: 26px; }
.article-body li { margin-bottom: 0.5em; }
.article-body li::marker { color: var(--primary); font-weight: 700; }

.pullquote {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 2em 0;
  padding: 0;
}
.pullquote .mark { white-space: pre-wrap; }

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  border-top: 2px solid var(--ink);
}
.article-body th {
  text-align: left;
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 2px solid var(--ink);
  background: var(--surface);
}
.article-body td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}

.key-points {
  background: var(--primary-wash);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin: 2em 0;
}
.key-points h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--primary);
}
.key-points ul { margin: 0; padding-left: 22px; }
.key-points li { font-size: 1.02rem; line-height: 1.6; margin-bottom: 8px; }
.key-points li:last-child { margin-bottom: 0; }

.fine-print-box {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: 0.88rem;
  font-family: var(--font-display);
  color: var(--muted);
  line-height: 1.6;
  margin-top: 3em;
}
.fine-print-box b { color: var(--ink-soft); }

.sources-box { margin-top: 2.5em; padding-top: 1.2em; border-top: 2px solid var(--ink); }
.sources-box h3 { font-size: 0.95rem; margin-bottom: 10px; }
.sources-box ul { list-style: none; padding: 0; }
.sources-box li {
  font-family: var(--font-display);
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 2.5em; }

.next-reads { border-top: 2px solid var(--ink); padding: 40px 0 56px; }
.next-reads h2 { font-size: 1.4rem; margin-bottom: 20px; }

/* ==========================================================================
   Calculators
   ========================================================================== */

.calc-section {
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: clamp(24px, 4vw, 40px);
  margin-bottom: 40px;
  scroll-margin-top: 90px;
}
.calc-section > h2 { font-size: 1.5rem; margin-bottom: 4px; }
.calc-section .calc-sub {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 26px;
}
.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 3.5vw, 44px);
  align-items: start;
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--rule);
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 150ms var(--ease-out);
}
.field input:hover, .field select:hover { border-color: var(--muted); }
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-wash); }

.calc-output { display: flex; flex-direction: column; gap: 18px; }
.calc-result {
  background: var(--primary-deep);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  color: oklch(0.97 0.005 268);
}
.calc-result h3 {
  color: oklch(0.78 0.04 268);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 6px;
}
.calc-result .big {
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  letter-spacing: -0.02em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
  transition: opacity 200ms var(--ease-out);
}
.calc-result .sub-result {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid oklch(1 0 0 / 0.14);
  font-size: 0.93rem;
}
.calc-result .sub-result:last-of-type { border-bottom: none; }
.calc-result .sub-result span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; }
.calc-note {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}
.calc-warn {
  display: none;
  background: var(--coral-wash);
  border: 2px solid var(--coral);
  color: oklch(0.42 0.15 30);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius);
  padding: 10px 14px;
}

/* Chart panel (rendered by js/charts.js) */
.chart-panel {
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  padding: 18px 18px 12px;
  background: var(--bg);
}
.chart-panel .chart-title { font-weight: 700; font-size: 0.92rem; margin-bottom: 10px; }
.chart-panel svg { display: block; width: 100%; height: auto; }
.chart-panel .chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--muted);
}
.chart-legend .key { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend .swatch { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }

.chart-line { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-area { stroke: none; }
.chart-grid-line { stroke: var(--rule); stroke-width: 1; }
.chart-axis-label { font-family: var(--font-display); font-size: 11px; fill: var(--muted); }
.chart-annot { font-family: var(--font-display); font-size: 12px; font-weight: 700; fill: var(--ink); }
.chart-bar { rx: 4; }

@media (prefers-reduced-motion: no-preference) {
  .chart-line { transition: d 300ms var(--ease-out); }
  .chart-area { transition: d 300ms var(--ease-out); }
  .chart-bar { transition: width 300ms var(--ease-out), height 300ms var(--ease-out), x 300ms var(--ease-out), y 300ms var(--ease-out); }
}

/* ==========================================================================
   Research / data hub
   ========================================================================== */

.data-card {
  border: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--bg);
  padding: clamp(24px, 4vw, 36px);
  margin-bottom: 36px;
  scroll-margin-top: 90px;
}
.data-card > h2 { font-size: 1.4rem; margin-bottom: 4px; }
.data-card .source {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.data-card .source a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.checked-stamp {
  display: inline-block;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 100px;
  padding: 3px 10px;
  margin-left: 8px;
  vertical-align: middle;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  border-top: 2px solid var(--ink);
}
.data-table th {
  text-align: left;
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 2px solid var(--ink);
  background: var(--surface);
}
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}
.data-table tr:last-child td { border-bottom: none; }

.bar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.bar-label { width: 120px; font-size: 0.86rem; font-weight: 700; flex-shrink: 0; text-align: right; }
.bar-track { flex: 1; background: var(--surface); border-radius: 100px; height: 28px; overflow: hidden; }
.bar-fill {
  height: 100%;
  border-radius: 100px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  color: oklch(1 0 0);
  font-size: 0.78rem;
  font-weight: 700;
  min-width: 52px;
  font-variant-numeric: tabular-nums;
}
.bar-row.bar-hot .bar-fill { background: var(--lime); color: var(--lime-ink); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--primary-deep);
  color: oklch(0.82 0.03 268);
  padding: 56px 0 32px;
  margin-top: clamp(56px, 8vw, 88px);
}
.subscribe-band + .site-footer, .section + .site-footer { margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: oklch(1 0 0); font-size: 0.92rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: oklch(0.82 0.03 268); font-size: 0.9rem; }
.footer-grid a:hover { color: oklch(1 0 0); }
.footer-brand {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: oklch(1 0 0);
  margin-bottom: 12px;
}
.footer-brand .mark { color: var(--lime-ink); }
.footer-tagline { font-size: 0.9rem; max-width: 30em; }
.footer-disclaimer {
  font-size: 0.78rem;
  line-height: 1.65;
  border-top: 1px solid oklch(1 0 0 / 0.15);
  padding-top: 24px;
  color: oklch(0.72 0.03 268);
}

.breadcrumb { font-size: 0.85rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure { max-width: 520px; }
  .front-page { grid-template-columns: 1fr; }
  .lead-story { padding-bottom: 26px; border-bottom: 1px solid var(--rule); }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 2px solid var(--ink);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px; font-size: 1.05rem; }
  .nav-cta { text-align: center; margin-top: 8px; }

  .hero-actions .btn { width: 100%; justify-content: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form .btn { width: 100%; justify-content: center; }
  .desk-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .bar-label { width: 86px; font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print: articles should read like the paper they imitate */
@media print {
  .site-header, .subscribe-band, .site-footer, .next-reads, .nav-toggle { display: none; }
  body { font-size: 11pt; }
  .article-body p, .article-body li { font-size: 11pt; line-height: 1.6; }
}
