.home-theme-light {
  --section-bg: #ffffff;
  --section-ink: #172128;
  --section-muted: #4c5b63;
  --section-accent: #246b46;
  --section-line: #cbd6d0;
  --section-stat: #165a7d;
}
.home-theme-dark {
  --section-bg: #1b2024;
  --section-ink: #ffffff;
  --section-muted: #d1d8db;
  --section-accent: #8ed9ac;
  --section-line: #5b666b;
  --section-stat: #9ed9f1;
}
.home-theme-green {
  --section-bg: #174e39;
  --section-ink: #ffffff;
  --section-muted: #d2e6db;
  --section-accent: #c2efb6;
  --section-line: #6b9680;
  --section-stat: #c2efb6;
}

/* Palette overrides are opt-in; unconfigured sections keep their original styles. */
.home-content .home-theme {
  --muted: var(--section-muted);
  --line: var(--section-line);
  --green: var(--section-accent);
  color: var(--section-ink);
  background: var(--section-bg);
}
.home-content .home-theme :is(h2, h3, p, li, figcaption, .asignua-rte-caption) { color: var(--section-ink); }
.home-content .home-theme :is(p:not(.eyebrow):not(.news-meta), figcaption, .asignua-rte-caption) { color: var(--section-muted); }
.home-content .home-theme :is(.eyebrow, .section-kicker, .news-meta, .article-list > a > span, .race-cards > article > span) { color: var(--section-accent); }
.home-content .home-theme :is(.story-card, .stat-row) { color: var(--section-ink); background: var(--section-bg); }
.home-content .home-theme .stat-row strong { color: var(--section-stat); }
.home-content .home-theme :is(.safety-tiles article, .race-cards article) { border-color: var(--section-line); }
.home-content .home-theme.story-grid { background: var(--section-line); }
.home-content .home-theme .home-button { color: var(--section-ink); border-color: var(--section-ink); }
.home-content .home-theme .home-button:hover { color: var(--section-bg); background: var(--section-ink); border-color: var(--section-ink); }
.home-content .home-theme .rich-content a { color: var(--section-accent); text-decoration: underline; text-underline-offset: 3px; }
.home-content .home-theme :focus-visible { outline-color: var(--section-accent); }
