:root {
  --bg: #fbf7ef;
  --surface: #ffffff;
  --ink: #1d2433;
  --muted: #667085;
  --line: #e9e2d3;
  --sun: #f5a524;
  --sun-deep: #c77d00;
  --sun-soft: #fff1d1;
  --gov: #5b6b86;
  --gov-soft: #e8ecf3;
  --solar: #17855a;
  --solar-soft: #def3e8;
  --shadow: 0 1px 2px rgba(29,36,51,.05), 0 8px 24px rgba(29,36,51,.05);
  --radius: 16px;
  --display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151d;
    --surface: #1a1f2b;
    --ink: #eef0f5;
    --muted: #9aa3b5;
    --line: #2b3243;
    --sun: #ffb937;
    --sun-deep: #ffc65c;
    --sun-soft: #3a2e12;
    --gov: #8fa0bd;
    --gov-soft: #262e40;
    --solar: #3fc58a;
    --solar-soft: #14352a;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
main.wrap { padding-bottom: 48px; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 22px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.sun { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd36b, var(--sun) 60%, var(--sun-deep)); box-shadow: 0 0 0 4px var(--sun-soft); }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 15px; }
nav a:hover { color: var(--ink); background: var(--gov-soft); }
nav a.active { color: var(--ink); background: var(--sun-soft); }
a:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }
.hero { padding: 48px 0 28px; max-width: 760px; }
.hero.tight { padding: 20px 0; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--sun-deep); }
h1 { font-family: var(--display); font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.02em; }
h2 { font-family: var(--display); font-size: 22px; margin: 0 0 14px; letter-spacing: -.01em; }
.lead { font-size: 18px; color: var(--muted); margin: 0; }
.lead b { color: var(--ink); }
.crumbs { margin: 24px 0 0; font-size: 15px; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
code { background: var(--gov-soft); padding: 2px 6px; border-radius: 6px; font-size: .92em; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 8px 0 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); min-width: 0; }
.card .label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card .value { font-family: var(--display); font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.card .sub { font-size: 14px; color: var(--muted); }
.card.accent { background: var(--sun-soft); border-color: transparent; }
.card.accent .value { color: var(--sun-deep); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow); }
.note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.filter-label { display: inline-block; min-width: 64px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: 6px; }
.chip { display: inline-block; border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: 999px; padding: 6px 14px; margin: 3px 4px 3px 0; text-decoration: none; font-size: 14px; font-weight: 600; }
.chip:hover { border-color: var(--sun); color: var(--ink); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.table-scroll.tall { max-height: 420px; overflow-y: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { background: var(--bg); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
a.person { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--sun-soft); }
a.person:hover { border-color: var(--sun); }
.saving-cell { position: relative; min-width: 150px; }
.saving-cell .bar { position: absolute; left: 14px; bottom: 7px; height: 4px; max-width: calc(100% - 28px); background: var(--solar); opacity: .55; border-radius: 4px; }
.empty { text-align: center; color: var(--muted); padding: 32px; }
table.compact th, table.compact td { padding: 8px 12px; font-size: 14px; }
.sql { margin: 0 0 14px; padding: 12px 16px; background: var(--gov-soft); border-radius: 10px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; overflow-x: auto; }
.badge { display: inline-block; padding: 3px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.badge.solar { background: var(--solar-soft); color: var(--solar); }
.badge.gov { background: var(--gov-soft); color: var(--gov); }
.chart { list-style: none; margin: 0; padding: 8px 0 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; height: 260px; align-items: end; border-bottom: 2px solid var(--line); }
.chart li { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; min-width: 0; }
.chart .col { width: 100%; max-width: 44px; background: linear-gradient(to top, var(--sun-deep), var(--sun)); border-radius: 6px 6px 0 0; min-height: 2px; }
.chart .v { font-size: 12px; color: var(--muted); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.chart .m { position: absolute; bottom: -28px; font-size: 13px; font-weight: 600; color: var(--muted); }
.chart + .note { margin-top: 40px; }
.compare { display: flex; flex-direction: column; gap: 14px; }
.compare .row { display: grid; grid-template-columns: 110px 1fr 170px; gap: 14px; align-items: center; }
.compare .who { font-weight: 700; }
.compare .track { background: var(--bg); border-radius: 999px; height: 18px; overflow: hidden; border: 1px solid var(--line); }
.compare .fill { display: block; height: 100%; border-radius: 999px; }
.compare .fill.gov { background: var(--gov); }
.compare .fill.solar { background: var(--solar); }
.compare .amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; margin: 0; }
.facts div { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.facts dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.prose h2:not(:first-child) { margin-top: 28px; }
.prose ul { padding-left: 20px; margin: 0; }
.prose li { margin-bottom: 8px; }
.prose p { margin: 0; color: var(--muted); }
.footer { padding: 24px 0 40px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .hero { padding-top: 32px; }
  .cards { grid-template-columns: 1fr; }
  .panel { padding: 16px; }
  .facts { grid-template-columns: 1fr; }
  .compare .row { grid-template-columns: 1fr; gap: 6px; }
  .compare .amt { text-align: left; }
  .chart { gap: 3px; }
  .chart .v { font-size: 9px; }
  .chart .m { font-size: 10px; }
  .filter-label { display: block; margin-bottom: 4px; }
}
