/* ==========================================================================
   fuelsaver.pro · Content pages (index, privacy, terms, contact)
   Editorial layout — readable, credible, minimal conversion elements
   ========================================================================== */

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--t-sans, 'Libre Franklin', system-ui, -apple-system, Segoe UI, Roboto, sans-serif);
  color: var(--text, #1E293B);
  background: #fff;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.home { background: var(--home-cream); color: var(--home-text); }
a { color: #0A2540; text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: #16A34A; }
img { max-width: 100%; display: block; }

:root {
  /* Shared tokens */
  --brand: #0A2540;
  --brand-deep: #061A30;
  --accent: #16A34A;
  --accent-dark: #15803D;
  --t-up: #DC2626;
  --t-down: #16A34A;
  --t-amber: #F59E0B;
  --ink: #0F172A;
  --text: #1E293B;
  --text-muted: #64748B;
  --muted-2: #94A3B8;
  --border: #E2E8F0;
  --border-2: #CBD5E1;
  --bg-alt: #F8FAFC;

  /* Homepage warm palette (Variant A) */
  --home-cream: #F5F2EA;
  --home-sand: #EDE7D7;
  --home-ink: #0F172A;
  --home-text: #1E293B;
  --home-muted: #5B6575;
  --home-border: #E4DFD0;
  --home-border-soft: #EFEBDF;
  --home-card: #FFFFFF;
  --home-accent: #16A34A;
  --home-accent-deep: #0F5C2E;
  --home-accent-warm: #D97757;

  /* Type stacks */
  --t-sans: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --t-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --home-serif: 'Lora', Georgia, 'Times New Roman', serif;

  /* Radii */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
}

.container {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.site-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { color: inherit; }
.site-logo-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: #FEF3C7;
  border-radius: 8px;
}
.site-logo-icon svg { width: 20px; height: 20px; }
.site-logo-text { font-size: 15px; letter-spacing: -.3px; }
.cfp-car, .cfp-finders, .cfp-dot { color: var(--brand); }
.cfp-pro { color: var(--accent); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}
.site-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}
.site-nav a:hover { color: var(--brand); }

.site-header .nav-cta {
  background: linear-gradient(180deg, #16A34A 0%, #15803D 100%);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 2px 0 #14532D;
  animation: navCtaRing 2.6s ease-out infinite;
  flex-shrink: 0;
}
.site-header .nav-cta:hover {
  filter: brightness(1.05);
  animation-play-state: paused;
}
@keyframes navCtaRing {
  0%   { box-shadow: 0 2px 0 #14532D, 0 0 0 0 rgba(22, 163, 74, .55); }
  70%  { box-shadow: 0 2px 0 #14532D, 0 0 0 10px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 2px 0 #14532D, 0 0 0 0 rgba(22, 163, 74, 0); }
}
.site-header .nav-cta .cta-short { display: none; }
@media (prefers-reduced-motion: reduce) {
  .site-header .nav-cta { animation: none; }
}

/* --- Mobile nav toggle (hamburger) --- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle:hover { background: #F8FAFC; }
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 720px) {
  .site-header { padding: 12px 16px; position: relative; gap: 10px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0;
    box-shadow: 0 12px 24px -16px rgba(15, 23, 42, .18);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease, padding .25s ease;
  }
  .site-nav.is-open {
    max-height: 400px;
    padding: 6px 0 10px;
  }
  .site-nav a {
    font-size: 15px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
  }
  .site-nav a:last-child { border-bottom: none; }
  .site-header .nav-cta {
    margin-left: auto;
    font-size: 13px;
    padding: 7px 12px;
    letter-spacing: 0;
  }
  .site-header .nav-cta .cta-long { display: none; }
  .site-header .nav-cta .cta-short { display: inline; }
}

/* --- Hero --- */
.hero {
  padding: 64px 0 48px;
  background: linear-gradient(180deg, #F8FAFC 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(32px, 5.5vw, 48px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--brand);
  margin-bottom: 18px;
}
.hero .lead {
  font-size: clamp(17px, 2.4vw, 19px);
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.6;
}

/* --- Content blocks --- */
.block {
  padding: 56px 0;
}
.block.alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.block h2 {
  font-size: clamp(24px, 3.8vw, 30px);
  font-weight: 800;
  letter-spacing: -.5px;
  color: var(--brand);
  margin-bottom: 18px;
  line-height: 1.2;
}
.block p {
  font-size: 16px;
  margin-bottom: 16px;
  color: var(--text);
}
.block p strong { color: var(--brand); font-weight: 700; }

/* --- Stat cards --- */
.stat-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.block.alt .stat-card { background: #fff; }
.stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 6px;
}
.stat-value {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--brand);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-unit {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 4px;
  letter-spacing: 0;
}
.stat-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* --- Inline CTA --- */
.inline-cta {
  margin-top: 24px;
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.inline-cta-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-dark);
  margin-bottom: 4px;
}
.inline-cta-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
}
.inline-cta-title em {
  font-style: italic;
  color: var(--accent-dark);
}
.calc-cta-inline {
  background: linear-gradient(180deg, #16A34A 0%, #15803D 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 0 #14532D;
  transition: transform .12s ease, filter .12s ease;
}
.calc-cta-inline:hover {
  filter: brightness(1.05);
  color: #fff !important;
  transform: translateY(-1px);
}

/* --- State comparison --- */
.state-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 24px 0 12px;
}
.state-col-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand);
  margin-bottom: 10px;
}
.state-table,
.history-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
}
.state-table td,
.history-table td,
.history-table th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.state-table tr:last-child td,
.history-table tr:last-child td { border-bottom: none; }
.state-table td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--brand);
}
.history-table th {
  background: var(--bg-alt);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
}
.history-table td:nth-child(2) {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}
.note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* --- Cost breakdown bar --- */
.breakdown {
  margin: 20px 0 28px;
}
.bd-bar {
  display: flex;
  width: 100%;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .3px;
}
.bd-seg {
  display: grid;
  place-items: center;
  padding: 0 4px;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}
.seg-1 { background: #0A2540; }
.seg-2 { background: #1E3A5F; }
.seg-3 { background: #16A34A; }
.seg-4 { background: #15803D; }

/* --- Factor list --- */
.factor-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.factor-list li {
  position: relative;
  padding: 14px 0 14px 32px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.6;
}
.factor-list li:last-child { border-bottom: none; }
.factor-list li::before {
  content: '•';
  position: absolute;
  left: 8px; top: 14px;
  color: var(--accent);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
}
.factor-list li strong { color: var(--brand); }

/* --- News section --- */
.block-news {
  background: linear-gradient(180deg, #F0FDF4 0%, #fff 100%);
  border-top: 1px solid #DCFCE7;
  border-bottom: 1px solid var(--border);
}
.news-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.news-updated {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) {
  .news-grid { grid-template-columns: 1fr 1fr; }
}
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-tag {
  display: inline-block;
  align-self: flex-start;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.news-title {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--brand);
  margin: 0;
}
.news-summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}
.news-source {
  margin-top: auto;
  font-size: 12px;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  align-self: flex-start;
}
.news-more { margin-top: 20px; text-align: right; }
.news-more-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.news-more-link:hover { color: var(--brand); }

/* --- News archive page --- */
.news-archive { display: flex; flex-direction: column; gap: 40px; }
.news-week { display: flex; flex-direction: column; gap: 16px; }
.news-week-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -0.01em;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 4px;
}
.news-empty {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  padding: 40px 0;
}

/* --- Price tracker teaser (homepage) --- */
.trend-teaser-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.trend-teaser-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 4px 0 0;
}
.trend-teaser-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
.trend-teaser-link:hover { color: var(--brand); }
.teaser-chart {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  overflow: hidden;
}

/* --- Trends page --- */
.container-wide { max-width: 960px; }
.trend-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 20px;
}
.trend-control { display: flex; flex-direction: column; gap: 6px; }
.trend-control-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.trend-select {
  font-family: inherit;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-width: 220px;
}
.trend-range-buttons { display: inline-flex; gap: 0; }
.trend-range-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}
.trend-range-btn:first-child { border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.trend-range-btn:last-child { border-top-right-radius: 8px; border-bottom-right-radius: 8px; }
.trend-range-btn:not(:last-child) { border-right: 0; }
.trend-range-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.trend-chart {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}
.trend-events-key {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 16px 0 22px;
}
@media (min-width: 560px) {
  .trend-events-key { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 860px) {
  .trend-events-key { grid-template-columns: 1fr 1fr 1fr; }
}
.trend-event-key {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.trend-event-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.trend-event-body { min-width: 0; line-height: 1.3; }
.trend-event-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trend-event-meta {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.trend-event-pct { font-weight: 700; }
.trend-event-window { color: var(--text-muted); }
.trend-events-empty {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 2px;
  margin: 0;
}

.trend-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
@media (min-width: 560px) {
  .trend-stats { grid-template-columns: 1fr 1fr; }
}
.trend-stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}
.trend-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.trend-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 3px 0;
  color: var(--text-muted);
}
.trend-stat-row strong {
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* --- Sources list --- */
.sources {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}
.sources li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
.sources li:last-child { border-bottom: none; }
.sources li strong {
  display: block;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 2px;
}
.sources a {
  color: var(--accent-dark, var(--accent));
  text-decoration: underline;
}

/* --- Tips (ordered list styled) --- */
.tips {
  list-style: none;
  padding: 0;
  counter-reset: tips;
  margin-top: 8px;
}
.tips li {
  counter-increment: tips;
  position: relative;
  padding: 20px 0 20px 60px;
  border-bottom: 1px solid var(--border);
}
.tips li:last-child { border-bottom: none; }
.tips li::before {
  content: counter(tips);
  position: absolute;
  left: 0; top: 20px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.tips h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 4px;
}
.tips p {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 8px;
}

.calc-cta {
  display: inline-block;
  margin-top: 10px;
  background: linear-gradient(180deg, #16A34A 0%, #15803D 100%);
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 2px 0 #14532D;
  transition: transform .12s ease, filter .12s ease;
}
.calc-cta:hover {
  filter: brightness(1.05);
  color: #fff !important;
  transform: translateY(-1px);
}

/* --- FAQ --- */
.faq {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.faq:last-child { border-bottom: none; }
.faq h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 8px;
}
.faq p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
}

/* --- Generic content page (privacy, terms, contact) --- */
.page-body {
  padding: 48px 0 64px;
}
.page-body h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  margin: 32px 0 10px;
  letter-spacing: -.3px;
}
.page-body h2:first-child { margin-top: 0; }
.page-body p {
  font-size: 16px;
  margin-bottom: 14px;
  color: var(--text);
}
.page-body ul {
  margin: 0 0 16px 24px;
  padding: 0;
}
.page-body li {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text);
}

/* --- Contact form --- */
.contact-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  margin-top: 20px;
}
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 6px;
  letter-spacing: .2px;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}
.form-textarea {
  resize: vertical;
  min-height: 140px;
  font-family: inherit;
}
.form-submit {
  background: linear-gradient(180deg, #16A34A 0%, #15803D 100%);
  color: #fff;
  border: none;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 0 #14532D;
  transition: transform .12s ease, filter .12s ease;
}
.form-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.form-submit:active { transform: translateY(1px); }

.form-success {
  display: none;
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--accent-dark);
  font-weight: 600;
  margin-top: 14px;
}

/* --- Footer --- */
.footer {
  background: var(--brand-deep);
  color: #94A3B8;
  text-align: center;
  font-size: 13px;
  padding: 32px 20px 36px;
  margin-top: 0;
}
.footer p { margin-bottom: 8px; }
.footer a {
  color: #CBD5E1;
  text-decoration: underline;
}
.footer a:hover { color: #fff; }
.footer .disclaimer {
  font-size: 12px;
  opacity: .75;
  max-width: 560px;
  margin: 10px auto 0;
  line-height: 1.55;
}

/* --- Responsive --- */
@media (min-width: 720px) {
  .stat-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .state-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .inline-cta { padding: 20px 24px; }
  .block { padding: 72px 0; }
  .hero { padding: 80px 0 60px; }
}

/* ==========================================================================
   v2 shared chrome — LIVE·EIA ticker, cream header, dark footer
   ========================================================================== */

/* ----- Ticker strip ----- */
.site-ticker {
  background: var(--brand-deep);
  color: #E2E8F0;
  font-family: var(--t-mono);
  font-size: 12px;
  letter-spacing: .02em;
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}
.site-ticker-label {
  flex-shrink: 0;
  padding: 0 14px;
  height: 100%;
  display: flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 10px;
}
.site-ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.site-ticker-inner {
  display: inline-flex;
  gap: 28px;
  padding-left: 24px;
  white-space: nowrap;
  animation: siteTickerScroll 90s linear infinite;
  will-change: transform;
}
.site-ticker:hover .site-ticker-inner { animation-play-state: paused; }
@keyframes siteTickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.site-ticker-item { display: inline-flex; align-items: center; gap: 8px; }
.site-ticker-code { color: var(--muted-2); font-weight: 700; }
.site-ticker-price { color: #fff; font-weight: 600; }
.site-ticker-delta { font-size: 11px; }
.site-ticker-delta.up { color: #FCA5A5; }
.site-ticker-delta.down { color: #86EFAC; }
.site-ticker-delta.flat { color: var(--muted-2); }
@media (prefers-reduced-motion: reduce) {
  .site-ticker-inner { animation: none; }
}

/* ----- Dark footer (shared) ----- */
.site-footer {
  background: var(--brand-deep);
  color: #94A3B8;
  text-align: center;
  font-size: 12px;
  padding: 32px 20px 36px;
  line-height: 1.6;
  margin-top: auto;
}
.site-footer a { color: #CBD5E1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .disclaimer {
  font-size: 11px;
  opacity: .75;
  max-width: 580px;
  margin: 10px auto 0;
}

/* ----- Cream header (homepage) ----- */
body.home { min-height: 100vh; display: flex; flex-direction: column; }
body.home .site-main { flex: 1; }

.home-header {
  background: var(--home-cream);
  border-bottom: 1px solid var(--home-border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.home-header .site-logo { flex-shrink: 0; }
.home-header .site-logo-icon { background: #FEF3C7; }
.home-nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  align-items: center;
}
.home-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--home-muted);
  text-decoration: none;
}
.home-nav a:hover { color: var(--home-ink); }
.home-nav a.is-active { color: var(--home-ink); }
.home-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--home-accent);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 2px 0 var(--home-accent-deep);
  position: relative;
  flex-shrink: 0;
}
.home-cta::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  border: 2px solid var(--home-accent);
  opacity: 0;
  animation: homePulse 2.4s ease-out infinite;
  pointer-events: none;
}
.home-cta:hover { filter: brightness(1.08); color: #fff; }
@keyframes homePulse {
  0%   { opacity: .6; transform: scale(1); }
  80%  { opacity: 0; transform: scale(1.14); }
  100% { opacity: 0; transform: scale(1.14); }
}
@media (prefers-reduced-motion: reduce) {
  .home-cta::before { animation: none; }
}

/* ----- Mobile nav toggle for home header ----- */
.home-header .nav-toggle {
  background: transparent;
  border: 1px solid var(--home-border);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.home-header .nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--home-ink);
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}
.home-header .nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.home-header .nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.home-header .nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .home-header { padding: 12px 18px; position: relative; gap: 12px; }
  .home-header .nav-toggle { display: inline-flex; }
  .home-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    background: var(--home-cream);
    border-bottom: 1px solid var(--home-border);
    padding: 0;
    box-shadow: 0 14px 30px -20px rgba(15, 23, 42, .22);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease, padding .25s ease;
  }
  .home-nav.is-open { max-height: 400px; padding: 6px 0 14px; }
  .home-nav a { font-size: 15px; padding: 14px 20px; border-bottom: 1px solid var(--home-border); }
  .home-nav a:last-child { border-bottom: none; }
  .home-cta { margin-left: auto; font-size: 13px; padding: 8px 14px; }
  /* On mobile DE, no .home-cta exists — push the locale switcher (and the
     hamburger that follows it) hard to the right edge of the header. */
  .home-header .locale-switcher { margin-left: auto; }
}

/* ==========================================================================
   Homepage Variant A — "Today's Number"
   ========================================================================== */

.va-hero {
  padding: 80px 72px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
@media (max-width: 960px) {
  .va-hero { grid-template-columns: 1fr; gap: 48px; padding: 48px 20px 40px; }
}
.va-eyebrow {
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--home-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.va-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--home-accent);
  animation: homeLiveDot 2s ease-out infinite;
}
@keyframes homeLiveDot {
  0% { box-shadow: 0 0 0 0 rgba(22,163,74,.55); }
  70% { box-shadow: 0 0 0 8px rgba(22,163,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); }
}
@media (prefers-reduced-motion: reduce) {
  .va-eyebrow .dot { animation: none; }
}
.va-question {
  font-family: var(--home-serif);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -.02em;
  color: var(--home-ink);
  margin-bottom: 26px;
  text-wrap: pretty;
}
.va-question em {
  font-style: italic;
  color: var(--home-accent-deep);
  font-weight: 600;
}
.va-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--home-muted);
  max-width: 500px;
  margin-bottom: 34px;
}
.va-cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.va-cta-primary {
  background: var(--home-accent);
  color: #fff !important;
  padding: 18px 30px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 16px;
  font-family: inherit;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 14px -4px rgba(22,163,74,.55), inset 0 1px 0 rgba(255,255,255,.25);
  position: relative;
  text-decoration: none;
}
.va-cta-primary::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 15px;
  border: 2px solid var(--home-accent);
  opacity: 0;
  animation: homePulse 2.4s ease-out infinite;
  pointer-events: none;
}
.va-cta-primary:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
@media (prefers-reduced-motion: reduce) {
  .va-cta-primary::before { animation: none; }
}
.va-cta-sub {
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--home-muted);
  text-transform: uppercase;
}
.va-cta-sub strong { color: var(--home-ink); font-weight: 700; }

/* ---- Number tower ---- */
.va-numtower {
  background: linear-gradient(180deg, #FFFDF7 0%, var(--home-sand) 100%);
  border: 1px solid var(--home-border);
  border-radius: 20px;
  padding: 40px 38px;
  position: relative;
  overflow: hidden;
}
.va-numtower::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(22,163,74,.12) 0%, transparent 70%);
  pointer-events: none;
}
.va-numtower-label {
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--home-muted);
  font-weight: 700;
  margin-bottom: 14px;
  position: relative;
}
.va-numtower-price {
  font-family: var(--home-serif);
  font-weight: 600;
  font-size: clamp(72px, 12vw, 120px);
  line-height: .9;
  letter-spacing: -.04em;
  color: var(--home-ink);
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: flex-start;
  position: relative;
}
.va-numtower-price .dollar {
  font-size: .35em;
  margin-top: .3em;
  margin-right: 4px;
  color: var(--home-muted);
  font-weight: 500;
}
.va-numtower-unit {
  font-family: var(--t-mono);
  font-size: 12px;
  color: var(--home-muted);
  margin-top: 8px;
  letter-spacing: .04em;
  position: relative;
}
.va-numtower-deltas {
  display: flex;
  gap: 22px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--home-border);
  position: relative;
}
.va-delta-item { display: flex; flex-direction: column; gap: 4px; }
.va-delta-label {
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--home-muted);
  font-weight: 600;
}
.va-delta-val {
  font-family: var(--t-mono);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.va-delta-val.up { color: var(--t-up); }
.va-delta-val.down { color: var(--home-accent); }
.va-delta-val.flat { color: var(--home-muted); }

/* ---- Strip (2-card) ---- */
.va-strip {
  border-top: 1px solid var(--home-border);
  padding: 48px 72px 64px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  background: #FAF7EE;
}
@media (max-width: 960px) {
  .va-strip { grid-template-columns: 1fr; gap: 28px; padding: 40px 20px; }
}
.va-strip-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.va-strip-eyebrow {
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--home-muted);
  font-weight: 700;
}
.va-strip-title {
  font-family: var(--home-serif);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--home-ink);
  text-wrap: pretty;
}
.va-strip-body {
  font-size: 14px;
  color: var(--home-muted);
  line-height: 1.55;
}
.va-strip-link {
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--home-accent-deep) !important;
  text-decoration: none;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.va-strip-link:hover { color: var(--home-accent) !important; }
.va-movers-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--t-mono);
  font-size: 13px;
  list-style: none;
}
.va-movers-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--home-border);
  font-variant-numeric: tabular-nums;
  align-items: baseline;
}
.va-movers-list li:last-child { border-bottom: none; }
.va-movers-state { color: var(--home-ink); font-weight: 600; }
.va-movers-price { color: var(--home-muted); }
.va-movers-delta { font-weight: 700; color: var(--home-accent); }

/* ==========================================================================
   Subpage typography (state-prices, save) — narrow editorial column
   ========================================================================== */
.sub-hero {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.sub-hero .eyebrow {
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: inline-block;
}
.sub-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 14px;
}
.sub-hero .lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 620px;
}

/* ==========================================================================
   Tracker v2 — dashboard layout, hero + stats + heatmap + leader + sticky
   ========================================================================== */
.tv2-container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 640px) {
  .tv2-container { padding: 0 16px; }
}

.site-nav a.is-active { color: var(--ink); position: relative; }
.site-nav a.is-active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -18px;
  height: 2px;
  background: var(--accent);
}
@media (max-width: 720px) {
  .site-nav a.is-active::after { display: none; }
}

/* ---- Hero dashboard ---- */
.tv2-hero {
  background: #F1F5F9;
  border-bottom: 1px solid var(--border);
  padding: 44px 0 36px;
}
.tv2-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .tv2-hero-grid { grid-template-columns: 1fr; gap: 20px; }
}
.tv2-eyebrow {
  font-family: var(--t-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.tv2-live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: tv2LiveDot 2s ease-out infinite;
}
@keyframes tv2LiveDot {
  0%   { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); }
  70%  { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .tv2-live-dot { animation: none; }
}
.tv2-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -.5px;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 10px;
}
.tv2-hero-lead {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.55;
  margin-bottom: 24px;
}
.tv2-bignum-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-end;
  margin-bottom: 24px;
}
.tv2-bignum { display: flex; flex-direction: column; gap: 6px; }
.tv2-bignum-label {
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.tv2-bignum-value {
  font-family: var(--t-mono);
  font-size: clamp(48px, 8vw, 84px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: .95;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: flex-start;
}
.tv2-bignum-value .dollar {
  font-size: .55em;
  font-weight: 500;
  color: var(--text-muted);
  margin-right: 2px;
  margin-top: .15em;
}
.tv2-bignum-unit {
  font-family: var(--t-mono);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.tv2-bignum-deltas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 8px;
}
.tv2-delta {
  font-family: var(--t-mono);
  font-size: 13px;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.tv2-delta .delta-label {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: .04em;
}
.tv2-delta .delta-val { font-weight: 700; }
.tv2-delta.up .delta-val { color: var(--t-up); }
.tv2-delta.down .delta-val { color: var(--accent); }
.tv2-delta.flat .delta-val { color: var(--text-muted); }

.tv2-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.tv2-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff !important;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 15px;
  font-family: inherit;
  border: none;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  box-shadow: 0 4px 14px -4px rgba(22,163,74,.55), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .12s ease, filter .12s ease;
}
.tv2-hero-cta::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 10px;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: homePulse 2.4s ease-out infinite;
  pointer-events: none;
}
.tv2-hero-cta:hover { filter: brightness(1.08); transform: translateY(-1px); color: #fff; }
.tv2-hero-cta-sub {
  font-family: var(--t-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: .04em;
}

/* ---- Your-area card with sparkline ---- */
.tv2-hero-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.tv2-hero-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.tv2-hero-card-title {
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.tv2-hero-card-state {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.tv2-hero-card-price {
  font-family: var(--t-mono);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin: 8px 0 4px;
  line-height: 1;
}
.tv2-hero-card-price .dollar { font-size: .55em; color: var(--text-muted); font-weight: 500; margin-right: 2px; }
.tv2-hero-card-sub {
  font-family: var(--t-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: .02em;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.tv2-hero-spark { height: 80px; margin: 10px -6px 0; position: relative; }
.tv2-hero-spark-x {
  display: flex;
  justify-content: space-between;
  font-family: var(--t-mono);
  font-size: 10px;
  color: var(--muted-2);
  margin-top: 6px;
  padding: 0 2px;
}

/* ---- Main wrapper ---- */
.tv2-main { padding: 36px 0 64px; background: #fff; }
.tv2-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.tv2-section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
  line-height: 1.2;
}
.tv2-section-sub {
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* ---- Chart panel ---- */
.tv2-chart-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.tv2-chart-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.tv2-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}
.tv2-legend-dot {
  width: 10px; height: 10px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}
.tv2-legend-item {
  font-family: var(--t-mono);
  font-size: 12px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: .02em;
  display: inline-flex;
  align-items: center;
}
.tv2-legend-item .price {
  color: var(--text-muted);
  margin-left: 8px;
  font-weight: 500;
}
.tv2-chart-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.tv2-select {
  font-family: inherit;
  font-size: 13px;
  padding: 8px 30px 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-width: 220px;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  font-weight: 600;
}
.tv2-range-group {
  display: inline-flex;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
  gap: 0;
}
.tv2-range-btn {
  font-family: var(--t-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
}
.tv2-range-btn:hover { color: var(--ink); }
.tv2-range-btn.is-active {
  background: var(--ink);
  color: #fff;
}
.tv2-chart-body {
  padding: 12px 12px 16px;
  position: relative;
  background: #fff;
}
.tv2-chart { width: 100%; min-height: 380px; }

/* ---- Events key (4-col) ---- */
.tv2-events-key {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0;
  border-top: 1px solid var(--border);
  background: #fff;
}
@media (max-width: 980px) {
  .tv2-events-key { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .tv2-events-key { grid-template-columns: 1fr; }
}
.tv2-event-key {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  row-gap: 2px;
  align-items: baseline;
  padding: 14px 16px;
  border-right: 1px solid var(--border);
  border-top: 1px solid var(--border);
  background: #fff;
}
.tv2-event-key:nth-child(4n) { border-right: none; }
@media (max-width: 980px) {
  .tv2-event-key:nth-child(4n) { border-right: 1px solid var(--border); }
  .tv2-event-key:nth-child(2n) { border-right: none; }
}
@media (max-width: 520px) {
  .tv2-event-key { border-right: none !important; }
}
.tv2-event-num {
  grid-row: 1 / span 2;
  align-self: start;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  font-family: var(--t-mono);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-top: 2px;
}
.tv2-event-name {
  grid-column: 2;
  font-family: var(--t-sans);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.3;
}
.tv2-event-meta {
  grid-column: 2;
  font-family: var(--t-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.35;
}
.tv2-event-pct { font-weight: 700; letter-spacing: 0; }
.tv2-event-window { color: var(--text-muted); text-transform: none; letter-spacing: .02em; }
.tv2-event-sep { margin: 0 4px; color: var(--border-2); }
.tv2-events-empty {
  grid-column: 1 / -1;
  font-family: var(--t-sans);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 18px;
  margin: 0;
  border-top: 1px solid var(--border);
}

/* ---- Stats grid ---- */
.tv2-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
@media (max-width: 780px) {
  .tv2-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
.tv2-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
}
.tv2-stat-label {
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.tv2-stat-value {
  font-family: var(--t-mono);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.tv2-stat-sub {
  font-family: var(--t-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.tv2-stat-sub.up { color: var(--t-up); }
.tv2-stat-sub.down { color: var(--accent); }

/* ---- Savings CTA block ---- */
.tv2-savings {
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 36px 32px;
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.tv2-savings::before {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: .22;
  pointer-events: none;
}
@media (max-width: 720px) {
  .tv2-savings { grid-template-columns: 1fr; padding: 28px 22px; }
}
.tv2-savings-eyebrow {
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.tv2-savings h3 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 8px;
  color: #fff;
}
.tv2-savings p {
  font-size: 15px;
  color: #CBD5E1;
  max-width: 560px;
  line-height: 1.5;
}
.tv2-savings-amount {
  color: var(--accent);
  font-family: var(--t-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tv2-savings-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #000 !important;
  padding: 16px 26px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 15px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 2px 0 rgba(0,0,0,.3);
  transition: transform .12s ease, filter .12s ease;
}
.tv2-savings-cta:hover { filter: brightness(1.08); transform: translateY(-1px); color: #000; }

/* ---- Heatmap ---- */
.tv2-heatmap-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px 24px;
  margin-bottom: 32px;
}
.tv2-heatmap-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.tv2-heatmap-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}
.tv2-heatmap-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.tv2-heatmap-bar {
  width: 120px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, #86EFAC 0%, #FDE68A 50%, #FCA5A5 100%);
}
.tv2-heatmap-grid {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 4px;
}
@media (max-width: 780px) {
  .tv2-heatmap-grid { grid-template-columns: repeat(8, 1fr); gap: 3px; }
}
@media (max-width: 500px) {
  .tv2-heatmap-grid { grid-template-columns: repeat(6, 1fr); gap: 3px; }
}
.tv2-hm-cell {
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--t-mono);
  font-weight: 700;
  color: #0F172A;
  position: relative;
  cursor: default;
  transition: transform .1s ease, box-shadow .1s ease;
  overflow: hidden;
  padding: 2px;
}
.tv2-hm-cell:hover {
  transform: scale(1.08);
  z-index: 2;
  box-shadow: 0 6px 18px -4px rgba(15,23,42,.25);
}
.tv2-hm-code { font-size: 11px; line-height: 1; }
.tv2-hm-price {
  font-size: 10px;
  opacity: .85;
  margin-top: 2px;
  line-height: 1;
  font-weight: 600;
}
@media (max-width: 500px) { .tv2-hm-price { display: none; } }
.tv2-hm-cell.is-user {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}

/* ---- Leaderboard ---- */
.tv2-leader-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}
@media (max-width: 720px) {
  .tv2-leader-grid { grid-template-columns: 1fr; }
}
.tv2-leader-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px 6px;
}
.tv2-leader-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.tv2-leader-title {
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
}
.tv2-leader-title .accent-up { color: var(--t-up); }
.tv2-leader-title .accent-down { color: var(--accent); }
.tv2-leader-sub {
  font-family: var(--t-mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tv2-leader-list { list-style: none; padding: 0; margin: 0; }
.tv2-leader-list li {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--t-mono);
  font-size: 13px;
}
.tv2-leader-list li:last-child { border-bottom: none; }
.tv2-leader-rank {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 700;
}
.tv2-leader-name {
  color: var(--ink);
  font-weight: 600;
  font-family: var(--t-sans);
  font-size: 14px;
}
.tv2-leader-price {
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}
.tv2-leader-delta {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tv2-leader-delta.up { color: var(--t-up); }
.tv2-leader-delta.down { color: var(--accent); }

/* ---- Note ---- */
.tv2-note {
  font-family: var(--t-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: .02em;
  line-height: 1.6;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.tv2-note a { color: var(--text-muted); text-decoration: underline; }
.tv2-note a:hover { color: var(--ink); }

/* ---- Sticky CTA ---- */
.tv2-stickycta {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 140%);
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 12px 32px -8px rgba(15,23,42,.35), 0 2px 6px rgba(15,23,42,.2);
  z-index: 80;
  transition: transform .32s cubic-bezier(.2,.8,.2,1);
  max-width: calc(100% - 32px);
}
.tv2-stickycta.is-visible { transform: translate(-50%, 0); }
.tv2-stickycta-text {
  font-size: 13px;
  line-height: 1.3;
  max-width: 340px;
}
.tv2-stickycta-text strong {
  color: var(--accent);
  font-family: var(--t-mono);
  font-variant-numeric: tabular-nums;
}
.tv2-stickycta-btn {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.tv2-stickycta-close {
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 6px;
  font-size: 18px;
  line-height: 1;
}
.tv2-stickycta-close:hover { color: #fff; }
@media (max-width: 540px) {
  .tv2-stickycta { padding: 10px 10px 10px 14px; gap: 10px; bottom: 12px; }
  .tv2-stickycta-text { font-size: 12px; }
  .tv2-stickycta-btn { padding: 9px 12px; font-size: 12px; }
}

/* Mobile consolidation for tracker */
@media (max-width: 640px) {
  .tv2-hero { padding: 24px 0 20px; }
  .tv2-hero-grid { gap: 18px; }
  .tv2-eyebrow { margin-bottom: 10px; font-size: 10px; }
  .tv2-hero h1 { font-size: 30px; margin-bottom: 8px; }
  .tv2-hero-lead { font-size: 14px; margin-bottom: 18px; }
  .tv2-bignum-row { gap: 16px; flex-direction: column; align-items: flex-start; margin-bottom: 18px; }
  .tv2-bignum-value { font-size: 64px; letter-spacing: -.035em; }
  .tv2-bignum-deltas { flex-direction: row; flex-wrap: wrap; gap: 14px 20px; padding-bottom: 0; }
  .tv2-delta { font-size: 12px; }
  .tv2-hero-cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .tv2-hero-cta { justify-content: center; padding: 15px 22px; }
  .tv2-hero-cta-sub { text-align: center; }
  .tv2-hero-card { padding: 16px 18px; }
  .tv2-hero-card-price { font-size: 36px; }
  .tv2-hero-spark { height: 64px; }
  .tv2-main { padding-top: 24px; }
  .tv2-section-title { font-size: 18px; }
  .tv2-chart-controls { padding: 12px 14px; gap: 10px; flex-direction: column; align-items: stretch; }
  .tv2-chart-actions { width: 100%; gap: 8px; justify-content: space-between; }
  .tv2-select { flex: 1; min-width: 0; font-size: 12px; padding: 9px 28px 9px 10px; }
  .tv2-chart { min-height: 300px; }
  .tv2-event-key { padding: 12px 14px; }
  .tv2-event-name { font-size: 12.5px; }
  .tv2-stats-grid { gap: 8px; margin-bottom: 24px; }
  .tv2-stat { padding: 12px; }
  .tv2-stat-value { font-size: 18px; }
  .tv2-savings { padding: 22px 20px; margin-bottom: 24px; gap: 18px; }
  .tv2-savings h3 { font-size: 19px; }
  .tv2-savings p { font-size: 14px; }
  .tv2-savings-cta { width: 100%; justify-content: center; padding: 14px 20px; }
  .tv2-heatmap-panel { padding: 16px 14px 18px; margin-bottom: 24px; }
  .tv2-heatmap-title { font-size: 16px; }
  .tv2-heatmap-bar { width: 80px; }
  .tv2-heatmap-grid { gap: 3px; }
  .tv2-hm-cell { padding: 5px 2px; min-height: 40px; }
  .tv2-hm-code { font-size: 10px; }
  .tv2-leader-grid { gap: 14px; margin-bottom: 24px; }
  .tv2-leader-panel { padding: 14px 16px 4px; }
  .tv2-leader-list li { grid-template-columns: 22px 1fr auto; gap: 10px; padding: 10px 0; font-size: 12px; }
  .tv2-leader-price { display: none; }
  .tv2-leader-name { font-size: 13px; }
}
@media (max-width: 380px) {
  .tv2-bignum-value { font-size: 56px; }
  .tv2-hero h1 { font-size: 26px; }
  .tv2-stat-value { font-size: 16px; }
  .tv2-heatmap-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ==========================================================================
   Articles — index grid + filter + article page layout
   ========================================================================== */
.articles-container { max-width: 1100px; }

.articles-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.articles-filter-btn {
  font-family: var(--t-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
}
.articles-filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.articles-filter-btn.is-active {
  background: var(--brand); color: #fff; border-color: var(--brand);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.articles-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.article-card,
.article-card:hover,
.article-card:focus,
.article-card * { text-decoration: none; }
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  border-color: var(--border-2);
}
.article-card-media {
  aspect-ratio: 16 / 9;
  background: var(--bg-alt);
  overflow: hidden;
}
.article-card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.article-card:hover .article-card-media img { transform: scale(1.03); }
.article-card-body { padding: 18px 20px 22px; }
.article-card-meta {
  display: flex; gap: 6px; align-items: center;
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.article-card-cat { color: var(--accent-dark); font-weight: 700; }
.article-card-dot { color: var(--muted-2); }
.article-card-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.article-card-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ----- Article page ----- */
.article { background: #fff; }
.article-head {
  padding: 48px 24px 32px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.article-head-inner { max-width: 760px; margin: 0 auto; }
.article-breadcrumb {
  display: inline-block;
  font-family: var(--t-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 20px;
}
.article-breadcrumb:hover { color: var(--brand); }
.article-meta-top {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-family: var(--t-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.article-category { color: var(--accent-dark); font-weight: 700; }
.article-dot { color: var(--muted-2); }
.article-updated { color: var(--text-muted); }
.article-head h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.article-excerpt {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 640px;
}

.article-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 24px 0;
}
.article-hero img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}

.article-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.article-toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 36px;
}
.article-toc-label {
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 10px;
}
.article-toc ol {
  padding-left: 22px;
  margin: 0;
  display: grid;
  gap: 6px;
}
.article-toc li { font-size: 15px; color: var(--text); }
.article-toc a { color: var(--brand); text-decoration: none; }
.article-toc a:hover { text-decoration: underline; color: var(--accent); }

.article-prose { font-family: var(--home-serif, 'Lora', Georgia, serif); font-size: 18px; line-height: 1.75; color: var(--text); }
.article-prose .article-intro {
  font-size: 21px;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 40px;
  font-weight: 500;
}
.article-prose h2 {
  font-family: var(--t-sans);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.01em;
  margin: 44px 0 18px;
  line-height: 1.25;
}
.article-prose h3 {
  font-family: var(--t-sans);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 28px 0 12px;
}
.article-prose p { margin-bottom: 18px; }
.article-prose ul { padding-left: 22px; margin: 0 0 18px; }
.article-prose li { margin-bottom: 8px; }
.article-prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.article-prose a:hover { color: var(--accent-dark); }

.article-section + .article-section { margin-top: 8px; }

.article-callout {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 4px;
  margin: 24px 0;
  font-family: var(--t-sans);
  font-size: 15px;
}
.article-callout strong { display: block; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.article-callout p { margin: 0; color: var(--text); }

.article-takeaway {
  margin-top: 44px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
  border: 1px solid #BBF7D0;
  border-radius: var(--radius);
}
.article-takeaway h3 {
  font-family: var(--t-sans);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 10px;
  font-weight: 700;
}
.article-takeaway p { margin: 0; font-size: 17px; color: var(--ink); line-height: 1.6; }

.article-cta {
  margin-top: 44px;
  padding: 26px 28px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  display: flex; gap: 20px;
  align-items: center; justify-content: space-between;
  flex-wrap: wrap;
  font-family: var(--t-sans);
}
.article-cta-eyebrow {
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7DD3FC;
  margin-bottom: 6px;
  font-weight: 700;
}
.article-cta-title { font-size: 18px; font-weight: 600; line-height: 1.3; color: #fff; }
.article-cta-btn {
  background: var(--accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, transform .15s;
}
.article-cta-btn:hover { background: var(--accent-dark); transform: translateY(-1px); color: #fff; }

.article-related {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  font-family: var(--t-sans);
}
.article-related h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
}
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.article-related-card {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.article-related-card:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.article-related-cat {
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 8px;
}
.article-related-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

@media (max-width: 720px) {
  .article-head { padding: 36px 18px 24px; }
  .article-hero { padding: 18px 18px 0; }
  .article-body { padding: 28px 18px 48px; }
  .article-prose { font-size: 17px; }
  .article-prose .article-intro { font-size: 19px; }
  .article-prose h2 { font-size: 22px; margin-top: 36px; }
  .article-cta { padding: 20px; flex-direction: column; align-items: flex-start; }
  .article-cta-btn { width: 100%; text-align: center; }
  .articles-filter-bar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 16px; }
  .articles-filter-btn { flex-shrink: 0; }
}

/* ==========================================================================
   Articles v2 — redesigned index + article pages
   Namespaced with av2- to coexist with older article styles.
   Shell (ticker/header/footer) reuses existing .site-* components.
   ========================================================================== */

:root {
  --t-brand: #0A2540;
  --t-brand-deep: #061A30;
  --t-accent: #16A34A;
  --t-accent-dark: #15803D;
  --t-ink: #0f172a;
  --t-text: #0f172a;
  --t-muted: #475569;
  --t-faint: #94a3b8;
  --t-line: #e2e8f0;
  --t-line-soft: #eef2f6;
  --t-surface: #ffffff;
  --t-surface-alt: #f8fafc;
  --t-paper: #fbfaf6;
  --c-saving: #16A34A;
  --c-saving-bg: #ecfdf5;
  --c-prices: #0A2540;
  --c-prices-bg: #e7edf5;
  --c-vehicle: #B45309;
  --c-vehicle-bg: #fef3c7;
  --av2-shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 18px rgba(15,23,42,.06);
}

.av2-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Reading progress bar */
.av2-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: var(--t-accent);
  z-index: 100;
  transition: width .08s linear;
  pointer-events: none;
}

/* Category chip (shared) */
.av2-cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  padding: 4px 9px; border-radius: 4px;
  width: fit-content;
}
.av2-cat[data-cat="Fuel-saving"]    { color: var(--c-saving);  background: var(--c-saving-bg); }
.av2-cat[data-cat="Gas prices"]     { color: var(--c-prices);  background: var(--c-prices-bg); }
.av2-cat[data-cat="Vehicle choice"] { color: var(--c-vehicle); background: var(--c-vehicle-bg); }
.av2-cat-icon {
  width: 12px; height: 12px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* --- Index masthead --- */
.av2-masthead {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--t-line-soft);
}
.av2-masthead-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
}
.av2-eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 11px; font-weight: 700;
  color: var(--t-accent);
  margin-bottom: 14px;
}
.av2-masthead h1 {
  font-family: var(--t-sans);
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.04;
  margin: 0 0 14px;
  color: var(--t-ink);
  max-width: 720px;
}
.av2-masthead-lead {
  font-size: 17px; line-height: 1.55;
  color: var(--t-muted);
  max-width: 620px;
  margin: 0;
}
.av2-masthead-stats {
  display: flex; gap: 24px;
  align-items: baseline;
  padding-bottom: 8px;
}
.av2-masthead-stat { text-align: right; }
.av2-masthead-stat-num {
  font-family: var(--t-mono);
  font-size: 32px; font-weight: 700;
  color: var(--t-ink);
  line-height: 1;
  letter-spacing: -.02em;
}
.av2-masthead-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--t-faint);
  font-weight: 600;
  margin-top: 6px;
}

/* --- Filter bar --- */
.av2-filters {
  display: flex; gap: 6px;
  flex-wrap: wrap;
  padding: 24px 0 32px;
  align-items: center;
}
.av2-filter {
  background: transparent;
  border: 1px solid var(--t-line);
  color: var(--t-muted);
  padding: 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background .15s, color .15s, border-color .15s;
}
.av2-filter:hover { border-color: var(--t-ink); color: var(--t-ink); }
.av2-filter.is-active {
  background: var(--t-ink);
  color: #fff;
  border-color: var(--t-ink);
}
.av2-filter-count {
  font-family: var(--t-mono);
  font-size: 11px;
  font-weight: 500;
  color: inherit;
  opacity: .7;
  padding-left: 4px;
}
.av2-filter.is-active .av2-filter-count { opacity: .85; }

/* --- Featured --- */
.av2-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 8px 0 48px;
  border-bottom: 1px solid var(--t-line-soft);
  margin-bottom: 48px;
}
.av2-featured-media {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #0A2540 0%, #061A30 60%, #16A34A 100%);
  position: relative;
  display: block;
  text-decoration: none;
}
.av2-featured-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.av2-featured-media:hover img { transform: scale(1.04); }
.av2-featured-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(255,255,255,.96);
  color: var(--t-ink);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 4px;
}
.av2-featured-body { max-width: 480px; }
.av2-featured-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.av2-featured h2 {
  font-family: var(--t-sans);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.01em;
  margin: 0 0 16px;
  color: var(--t-ink);
}
.av2-featured h2 a { color: inherit; text-decoration: none; }
.av2-featured h2 a:hover { color: var(--t-accent-dark); }
.av2-featured-excerpt {
  font-size: 16px; line-height: 1.6;
  color: var(--t-muted);
  margin: 0 0 22px;
}
.av2-featured-stat {
  padding: 16px 18px;
  background: var(--t-paper);
  border-left: 3px solid var(--t-accent);
  border-radius: 0 10px 10px 0;
  margin-bottom: 20px;
}
.av2-featured-stat-num {
  font-family: var(--t-mono);
  font-size: 22px; font-weight: 700;
  color: var(--t-ink);
  letter-spacing: -.01em;
  line-height: 1.1;
}
.av2-featured-stat-label {
  font-size: 12px;
  color: var(--t-muted);
  margin-top: 4px;
}
.av2-featured-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700;
  color: var(--t-ink);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 2px solid var(--t-accent);
  padding-bottom: 3px;
}
.av2-featured-more:hover { color: var(--t-accent-dark); }

/* --- Grid + cards --- */
.av2-grid-label {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--t-faint);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.av2-grid-label::after { content: ""; flex: 1; height: 1px; background: var(--t-line-soft); }
.av2-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
  padding-bottom: 80px;
}
.av2-card {
  display: flex; flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--t-line-soft);
  background: #fff;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.av2-card:hover {
  transform: translateY(-2px);
  border-color: var(--t-line);
  box-shadow: var(--av2-shadow);
}
.av2-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}
.av2-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.av2-card:hover .av2-card-media img { transform: scale(1.04); }
.av2-card-body {
  padding: 18px 20px 20px;
  display: flex; flex-direction: column;
  gap: 10px;
  flex: 1;
}
.av2-card-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.av2-card-date {
  font-family: var(--t-mono);
  font-size: 11px;
  color: var(--t-faint);
  font-weight: 500;
}
.av2-card-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--t-ink);
  margin: 0;
  letter-spacing: -.005em;
}
.av2-card-excerpt {
  font-size: 14px; line-height: 1.5;
  color: var(--t-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.av2-card-stat {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--t-line);
  display: flex; align-items: baseline;
  gap: 8px;
}
.av2-card-stat-num {
  font-family: var(--t-mono);
  font-size: 15px; font-weight: 700;
  color: var(--t-ink);
  letter-spacing: -.01em;
}
.av2-card-stat-label {
  font-size: 11px;
  color: var(--t-muted);
  line-height: 1.35;
}
.av2-empty {
  padding: 60px 0;
  text-align: center;
  color: var(--t-faint);
  font-size: 15px;
}

/* --- Article head --- */
.av2-article-head {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--t-line-soft);
}
.av2-breadcrumb {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px;
  color: var(--t-muted);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 28px;
}
.av2-breadcrumb:hover { color: var(--t-ink); }
.av2-article-meta-top {
  display: flex; align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.av2-article-meta-top time {
  font-family: var(--t-mono);
  font-size: 12px;
  color: var(--t-muted);
}
.av2-article-head h1 {
  font-family: var(--t-sans);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 18px;
  color: var(--t-ink);
  max-width: 880px;
}
.av2-article-excerpt {
  font-size: 19px; line-height: 1.55;
  color: var(--t-muted);
  max-width: 720px;
  margin: 0 0 26px;
  font-weight: 400;
}
.av2-byline {
  display: flex; flex-wrap: wrap;
  gap: 0;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--t-line-soft);
  font-size: 13px;
  color: var(--t-muted);
}
.av2-byline > * + *::before {
  content: "·";
  display: inline-block;
  padding: 0 10px;
  color: var(--t-faint);
}
.av2-byline-author { font-weight: 700; color: var(--t-ink); }
.av2-byline-updated { font-family: var(--t-mono); font-size: 12px; }

/* --- Article hero --- */
.av2-article-hero {
  max-width: 1600px;
  margin: 0 auto;
  padding: 32px 24px 12px;
}
.av2-article-hero-img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--av2-shadow);
}
.av2-article-hero:not(:has(.av2-article-hero-img))::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  background: linear-gradient(135deg, #0A2540 0%, #061A30 60%, #16A34A 100%);
  border-radius: 14px;
  box-shadow: var(--av2-shadow);
}
.av2-article-hero-caption {
  font-size: 12px;
  color: var(--t-faint);
  text-align: center;
  margin: 12px auto 0;
  font-style: italic;
  max-width: 760px;
}

/* --- Article body w/ sticky TOC --- */
.av2-article-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 0 24px 40px;
}
.av2-toc {
  position: sticky;
  top: 80px;
  align-self: start;
  padding: 24px 0;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.av2-toc-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700;
  color: var(--t-faint);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--t-line-soft);
}
.av2-toc ol {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 10px;
  counter-reset: toc;
}
.av2-toc li { counter-increment: toc; position: relative; }
.av2-toc a {
  display: block;
  color: var(--t-muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.4;
  padding: 6px 0 6px 26px;
  border-left: 2px solid transparent;
  transition: color .15s, border-color .15s;
  position: relative;
}
.av2-toc a::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 8px; top: 6px;
  font-family: var(--t-mono);
  font-size: 10px;
  color: var(--t-faint);
  font-weight: 500;
}
.av2-toc a:hover { color: var(--t-ink); }
.av2-toc a.is-active {
  color: var(--t-ink);
  border-left-color: var(--t-accent);
  font-weight: 600;
}

/* --- Prose --- */
.av2-prose {
  max-width: 680px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--t-text);
}
.av2-prose > p:first-child,
.av2-article-intro {
  font-size: 20px;
  line-height: 1.55;
  color: var(--t-ink);
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--t-line-soft);
}
.av2-prose h2 {
  font-family: var(--t-sans);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin: 48px 0 18px;
  color: var(--t-ink);
  scroll-margin-top: 100px;
}
.av2-prose h2::before {
  content: "";
  display: block;
  width: 36px; height: 3px;
  background: var(--t-accent);
  margin-bottom: 14px;
}
.av2-prose p { margin: 0 0 20px; }
.av2-prose strong { color: var(--t-ink); font-weight: 600; }
.av2-prose ul { margin: 0 0 20px; padding-left: 20px; }
.av2-prose ul li { margin-bottom: 8px; }

/* Takeaway */
/* Article inline visuals: charts + tables */
.art-viz {
  margin: 28px 0 32px;
  padding: 22px 24px;
  background: var(--t-paper, #FAFAF7);
  border: 1px solid var(--t-line-soft, #E5E7EB);
  border-radius: 10px;
}
.art-viz-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--t-muted, #6B7280);
  margin-bottom: 4px;
}
.art-viz-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--t-ink, #111);
  letter-spacing: -.2px;
  margin-bottom: 4px;
}
.art-viz-sub {
  font-size: 13px;
  color: var(--t-muted, #6B7280);
  margin-bottom: 16px;
}
.art-viz-svg { width: 100%; height: auto; display: block; font-family: 'JetBrains Mono', monospace; }
.art-viz-svg .grid { stroke: #E5E7EB; stroke-width: 1; }
.art-viz-svg .axis { fill: #6B7280; font-size: 11px; }
.art-viz-svg .label { fill: #111; font-size: 11px; font-weight: 700; }
.art-viz-svg .bar { fill: #DC2626; }
.art-viz-svg .bar.pos { fill: #15803D; }
.art-viz-svg .bar.neutral { fill: #2563EB; }
.art-viz-svg .line { fill: none; stroke: #DC2626; stroke-width: 2.5; }
.art-viz-svg .line2 { fill: none; stroke: #2563EB; stroke-width: 2.5; }
.art-viz-svg .dot { fill: #DC2626; }
.art-viz-svg .crossover { fill: #FBBF24; stroke: #92400E; stroke-width: 1.5; }
.art-viz-note {
  font-size: 12px;
  color: var(--t-muted, #6B7280);
  margin-top: 12px;
  font-style: italic;
}
.art-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-family: 'Libre Franklin', system-ui, sans-serif;
}
.art-table th, .art-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--t-line-soft, #E5E7EB);
}
.art-table th {
  background: #F3F4F6;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--t-muted, #6B7280);
}
.art-table td.num { font-variant-numeric: tabular-nums; font-family: 'JetBrains Mono', monospace; font-size: 13px; text-align: right; white-space: nowrap; }
.art-table tr:last-child td { border-bottom: 0; }
.art-table .pos { color: #15803D; font-weight: 600; }
.art-table .neg { color: #DC2626; font-weight: 600; }
.art-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -8px; }
.art-table-scroll .art-table { min-width: 560px; }
@media (max-width: 700px) {
  .art-viz { padding: 20px 16px; }
  .art-table { font-size: 13px; }
  .art-table th, .art-table td { padding: 8px 8px; }
  .art-table td.num { font-size: 12px; }
}

.av2-takeaway {
  margin: 48px 0 16px;
  padding: 28px 32px;
  background: var(--t-paper);
  border-radius: 10px;
  border: 1px solid var(--t-line-soft);
  position: relative;
}
.av2-takeaway::before {
  content: "The takeaway";
  position: absolute;
  top: -11px; left: 24px;
  background: var(--t-ink);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700;
}
.av2-takeaway h3 { display: none; }
.av2-takeaway p {
  margin: 0;
  font-size: 17px; line-height: 1.6;
  color: var(--t-ink);
}

/* Mid-article CTA */
.av2-mid-cta {
  margin: 44px 0;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--t-brand) 0%, var(--t-brand-deep) 100%);
  color: #fff;
  border-radius: 10px;
  display: flex; align-items: center;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.av2-mid-cta-body { flex: 1; min-width: 240px; }
.av2-mid-cta-eyebrow {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  font-weight: 700;
  margin-bottom: 8px;
}
.av2-mid-cta-line {
  font-size: 17px; font-weight: 600;
  line-height: 1.35;
  color: #fff;
}
.av2-mid-cta-line strong {
  font-family: var(--t-mono);
  color: var(--t-accent);
  font-weight: 700;
}
.av2-mid-cta-btn {
  background: var(--t-accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background .15s, transform .15s;
}
.av2-mid-cta-btn:hover { background: var(--t-accent-dark); transform: translateY(-1px); color: #fff; }

/* End-of-article CTA */
.av2-article-cta {
  margin: 40px 0;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--t-line);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.av2-article-cta-eyebrow {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--t-muted);
  font-weight: 700;
  margin-bottom: 6px;
}
.av2-article-cta-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--t-ink);
}
.av2-article-cta-btn {
  background: var(--t-ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.av2-article-cta-btn:hover { background: var(--t-brand); color: #fff; }

/* Read-next */
.av2-readnext {
  border-top: 1px solid var(--t-line-soft);
  margin-top: 48px;
  padding: 48px 0 80px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
}
.av2-readnext-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--t-faint);
  font-weight: 700;
}
.av2-readnext-label-large {
  font-family: var(--t-sans);
  font-size: 28px;
  font-weight: 800;
  color: var(--t-ink);
  margin-top: 8px;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.av2-readnext-hint {
  margin-top: 10px;
  font-size: 14px;
  color: var(--t-muted);
  line-height: 1.5;
}
.av2-readnext-main { display: flex; flex-direction: column; gap: 18px; }
.av2-readnext-primary {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  text-decoration: none;
  color: inherit;
  padding: 20px;
  border: 1px solid var(--t-line);
  border-radius: 10px;
  transition: border-color .2s, transform .2s;
}
.av2-readnext-primary:hover { border-color: var(--t-ink); transform: translateY(-1px); }
.av2-readnext-primary-media {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: var(--t-line-soft);
}
.av2-readnext-primary-media img { width: 100%; height: 100%; object-fit: cover; }
.av2-readnext-primary-body {
  display: flex; flex-direction: column;
  gap: 10px; justify-content: center;
}
.av2-readnext-primary-title {
  font-family: var(--t-sans);
  font-size: 22px; font-weight: 700;
  line-height: 1.22;
  color: var(--t-ink);
  margin: 0;
  letter-spacing: -.005em;
}
.av2-readnext-primary-excerpt {
  font-size: 14px; line-height: 1.5;
  color: var(--t-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.av2-readnext-primary-more {
  font-size: 13px; font-weight: 700;
  color: var(--t-accent-dark);
  display: inline-flex; align-items: center;
  gap: 4px;
  margin-top: 4px;
}
.av2-readnext-others {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--t-line-soft);
}
.av2-readnext-other {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  padding: 14px 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--t-line-soft);
  align-items: center;
  transition: padding .15s;
}
.av2-readnext-other:hover { padding-left: 6px; }
.av2-readnext-other-title {
  font-size: 15px; font-weight: 600;
  color: var(--t-ink);
  line-height: 1.35;
  margin: 0;
}
.av2-readnext-other-arrow { color: var(--t-faint); font-size: 14px; }
.av2-readnext-other:hover .av2-readnext-other-arrow { color: var(--t-accent); }

/* Responsive */
@media (max-width: 960px) {
  .av2-masthead-inner { grid-template-columns: 1fr; }
  .av2-masthead-stats { padding-top: 8px; }
  .av2-featured { grid-template-columns: 1fr; gap: 24px; }
  .av2-featured-body { max-width: 100%; }
  .av2-grid { grid-template-columns: repeat(2, 1fr); }
  .av2-article-body { grid-template-columns: 1fr; gap: 24px; }
  .av2-toc {
    position: static;
    max-height: none;
    padding: 16px 18px;
    background: var(--t-paper);
    border-radius: 10px;
    margin-bottom: 12px;
  }
  .av2-toc-label { margin-bottom: 10px; padding-bottom: 8px; }
  .av2-toc ol { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .av2-toc a { padding: 4px 12px 4px 28px; border-left: 0; background: #fff; border-radius: 4px; border: 1px solid var(--t-line-soft); }
  .av2-toc a.is-active { background: var(--t-accent); color: #fff; border-color: var(--t-accent); }
  .av2-toc a.is-active::before { color: rgba(255,255,255,.7); }
  .av2-readnext { grid-template-columns: 1fr; gap: 24px; }
  .av2-readnext-primary { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  .av2-container { padding: 0 16px; }
  .av2-masthead { padding: 32px 0 20px; }
  .av2-masthead-stats { gap: 18px; }
  .av2-masthead-stat-num { font-size: 24px; }
  .av2-filters { padding: 16px 0 24px; gap: 6px; overflow-x: auto; flex-wrap: nowrap; }
  .av2-filter { white-space: nowrap; flex-shrink: 0; }
  .av2-featured { margin-bottom: 32px; padding-bottom: 32px; }
  .av2-grid { grid-template-columns: 1fr; gap: 20px; }
  .av2-article-head { padding: 28px 0 20px; }
  .av2-article-hero { padding: 20px 16px 8px; }
  .av2-article-hero-img { aspect-ratio: 16 / 10; }
  .av2-article-body { padding: 0 16px 40px; }
  .av2-prose { font-size: 16px; }
  .av2-prose h2 { font-size: 22px; margin-top: 36px; }
  .av2-article-cta { padding: 20px; }
  .av2-mid-cta { padding: 20px; }
  .av2-readnext { padding-bottom: 40px; }
}

/* ============================================================
   Homepage: Tracker visualization + Articles section
   ============================================================ */

.va-tracker {
  background: #0F172A;
  color: #F4F1E8;
  padding: 64px 72px 56px;
  border-top: 1px solid var(--home-border);
}
.va-tracker-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 32px;
}
.va-tracker-eyebrow {
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #94A3B8;
  font-weight: 700;
  margin-bottom: 8px;
}
.va-tracker-title {
  font-family: var(--home-serif);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
  color: #F4F1E8;
}
.va-tracker-sub {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: #B7C0CE;
  max-width: 56ch;
}
.va-tracker-cta {
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #6EE7A7 !important;
  text-decoration: none;
  border: 1px solid rgba(110, 231, 167, 0.4);
  padding: 12px 18px;
  border-radius: 8px;
  white-space: nowrap;
  transition: border-color .15s ease, background .15s ease;
}
.va-tracker-cta:hover {
  border-color: #6EE7A7;
  background: rgba(110, 231, 167, 0.08);
}
.va-tracker-chart-wrap {
  margin: 0 0 28px;
}
.va-tracker-chart {
  width: 100%;
  height: 240px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  position: relative;
}
.va-tracker-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}
.va-tracker-chart-caption {
  margin-top: 10px;
  font-family: var(--t-mono);
  font-size: 11px;
  color: #7C8898;
  letter-spacing: .04em;
}
.va-tracker-stats {
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.va-tracker-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.va-tracker-stat dt {
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #94A3B8;
  font-weight: 700;
}
.va-tracker-stat dd {
  margin: 0;
}
.va-stat-num {
  font-family: var(--home-serif);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #F4F1E8;
  line-height: 1;
}
.va-stat-foot {
  font-family: var(--t-mono);
  font-size: 11px;
  color: #7C8898;
  letter-spacing: .02em;
}

/* Chart-internal classes (set via JS) */
.va-chart-area { fill: url(#vaTrackerGrad); }
.va-chart-line { fill: none; stroke: #6EE7A7; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.va-chart-grid { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.va-chart-axis-label { fill: #7C8898; font-family: var(--t-mono); font-size: 10px; letter-spacing: .04em; }
.va-chart-marker { fill: #6EE7A7; }
.va-chart-marker-ring { fill: none; stroke: #6EE7A7; stroke-width: 1.5; opacity: .5; }
.va-chart-peak-line { stroke: rgba(217, 119, 87, 0.5); stroke-width: 1; stroke-dasharray: 3 3; }
.va-chart-peak-label { fill: #D97757; font-family: var(--t-mono); font-size: 10px; letter-spacing: .04em; font-weight: 700; }

@media (max-width: 960px) {
  .va-tracker { padding: 48px 20px 40px; }
  .va-tracker-head { grid-template-columns: 1fr; gap: 16px; }
  .va-tracker-title { font-size: 30px; }
  .va-tracker-cta { justify-self: start; }
  .va-tracker-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .va-stat-num { font-size: 26px; }
  .va-tracker-chart { height: 200px; padding: 12px; }
}

/* ---- EV switch-math section on homepage ---- */
.va-ev {
  background: #F4F1E8;
  padding: 64px 72px 56px;
  border-top: 1px solid var(--home-border);
}
.va-ev-head { margin-bottom: 32px; max-width: 720px; }
.va-ev-eyebrow {
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--home-muted);
  font-weight: 700;
  margin-bottom: 8px;
}
.va-ev-title {
  font-family: var(--home-serif);
  font-size: 38px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--home-ink);
}
.va-ev-sub {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--home-muted);
  max-width: 60ch;
}

.va-ev-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 40px;
}
.va-ev-card {
  background: #FFFFFF;
  border: 1px solid var(--home-border);
  border-radius: 14px;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.va-ev-card-ice {
  border-top: 4px solid var(--home-accent-warm);
}
.va-ev-card-ev {
  border-top: 4px solid var(--home-accent);
}
.va-ev-card-tag {
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--home-muted);
  font-weight: 700;
}
.va-ev-card-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}
.va-ev-cents {
  font-family: var(--home-serif);
  font-size: 64px;
  font-weight: 600;
  letter-spacing: -.03em;
  color: var(--home-ink);
}
.va-ev-card-ice .va-ev-cents { color: var(--home-accent-warm); }
.va-ev-card-ev .va-ev-cents { color: var(--home-accent-deep); }
.va-ev-unit {
  font-family: var(--home-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--home-muted);
  letter-spacing: -.01em;
}
.va-ev-card-foot {
  font-family: var(--t-mono);
  font-size: 12px;
  color: var(--home-muted);
  margin-top: auto;
}

.va-ev-gap {
  align-self: center;
  text-align: center;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}
.va-ev-gap-eyebrow {
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--home-muted);
  font-weight: 700;
}
.va-ev-gap-num {
  font-family: var(--home-serif);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--home-accent-deep);
  line-height: 1;
}
.va-ev-gap-sub {
  font-size: 12px;
  color: var(--home-muted);
  line-height: 1.5;
  max-width: 220px;
  margin: 0 auto;
}

.va-ev-articles {
  border-top: 1px solid var(--home-border);
  padding-top: 28px;
}
.va-ev-articles-label {
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--home-muted);
  font-weight: 700;
  margin-bottom: 16px;
}
.va-ev-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.va-ev-article {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: #FFFFFF;
  border: 1px solid var(--home-border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.va-ev-article:hover {
  border-color: #C9C0A6;
  transform: translateY(-1px);
}
.va-ev-article-eyebrow {
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--home-accent-deep);
  font-weight: 700;
}
.va-ev-article-title {
  font-family: var(--home-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--home-ink);
  text-wrap: pretty;
}
.va-ev-article-arrow {
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--home-accent-deep);
  margin-top: 6px;
}

@media (max-width: 1100px) {
  .va-ev-compare { grid-template-columns: 1fr; gap: 16px; }
  .va-ev-gap { padding: 12px 0; }
  .va-ev-articles-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .va-ev { padding: 48px 20px 40px; }
  .va-ev-title { font-size: 28px; }
  .va-ev-cents { font-size: 52px; }
  .va-ev-gap-num { font-size: 36px; }
}

/* ---- Articles section on homepage ---- */
.va-articles {
  background: #FAF7EE;
  padding: 64px 72px 72px;
  border-top: 1px solid var(--home-border);
}
.va-articles-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 32px;
}
.va-articles-eyebrow {
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--home-muted);
  font-weight: 700;
  margin-bottom: 8px;
}
.va-articles-title {
  font-family: var(--home-serif);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--home-ink);
}
.va-articles-sub {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--home-muted);
  max-width: 56ch;
}
.va-articles-cta {
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--home-accent-deep) !important;
  text-decoration: none;
  border: 1px solid rgba(15, 92, 46, 0.3);
  padding: 12px 18px;
  border-radius: 8px;
  white-space: nowrap;
  transition: border-color .15s ease, background .15s ease;
}
.va-articles-cta:hover {
  border-color: var(--home-accent-deep);
  background: rgba(22, 163, 74, 0.06);
}
.va-articles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.va-articles-empty {
  font-family: var(--t-mono);
  font-size: 12px;
  color: var(--home-muted);
  grid-column: 1 / -1;
  padding: 24px 0;
}
.va-article-card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--home-border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.va-article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border-color: #C9C0A6;
}
.va-article-card-media {
  aspect-ratio: 16 / 10;
  background: #EFEBDF;
  overflow: hidden;
}
.va-article-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.va-article-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.va-article-card-cat {
  font-family: var(--t-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--home-accent-deep);
}
.va-article-card-cat[data-cat="Gas prices"]     { color: #0A2540; }
.va-article-card-cat[data-cat="Vehicle choice"] { color: #B45309; }
.va-article-card-title {
  font-family: var(--home-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--home-ink);
  margin: 0;
  text-wrap: pretty;
}
.va-article-card-arrow {
  font-family: var(--t-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--home-accent-deep);
  margin-top: auto;
  padding-top: 6px;
}

@media (max-width: 1100px) {
  .va-articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .va-articles { padding: 48px 20px 56px; }
  .va-articles-head { grid-template-columns: 1fr; gap: 16px; }
  .va-articles-title { font-size: 30px; }
  .va-articles-cta { justify-self: start; }
}
@media (max-width: 560px) {
  .va-articles-grid { grid-template-columns: 1fr; }
}
