/* Solar Incentive Atlas — design system
   A printed-reference feel: paper, ink, ruled lines, one warm accent. No shadows, no gradients. */

@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #f6f2e7;
  --paper-2: #efe9d9;
  --paper-3: #e6dfcb;
  --card: #fbf9f2;
  --ink: #1b1e25;
  --ink-2: #4b505b;
  --ink-3: #747986;
  --rule: #d3cbb6;
  --rule-strong: #1b1e25;
  --sun: #c8700a;
  --sun-bright: #eda11c;
  --sun-wash: #f8e7bd;
  --link: #174a7c;
  --yes: #24684a;
  --yes-wash: #d9ead9;
  --part: #9a6a06;
  --part-wash: #f5e6b8;
  --no: #8b8676;
  --no-wash: #e4dfd0;
  --end: #9c3a2a;
  --end-wash: #f2d9d1;
  --blue: #3f6c8f;
  --blue-wash: #d7e3ea;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --w: 1180px;
  --gut: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14161a; --paper-2: #1b1e23; --paper-3: #252930; --card: #191c21;
    --ink: #ece7da; --ink-2: #b9b4a6; --ink-3: #8d897e; --rule: #343842; --rule-strong: #ece7da;
    --sun: #f0a530; --sun-bright: #f0a530; --sun-wash: #3a2c10; --link: #8fbfe8;
    --yes: #7cc7a0; --yes-wash: #1a3528; --part: #e3b64f; --part-wash: #3a2f10;
    --no: #8d897e; --no-wash: #262a30; --end: #e58b79; --end-wash: #3b1f19; --blue: #8bb4d2; --blue-wash: #1c2c38;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 20px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); font-feature-settings: "tnum" 0; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible, label:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.012em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.35rem); font-weight: 620; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.45rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
abbr { text-decoration: none; }
code { font: 0.9em var(--mono); background: var(--paper-2); padding: 0.1em 0.3em; border-radius: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gut), var(--w)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--ink-3); }
.num { font-family: var(--mono); font-size: 0.92em; white-space: nowrap; }

/* ---------- header ---------- */
.strip { background: var(--ink); color: var(--paper); font-size: 0.78rem; letter-spacing: 0.01em; }
.strip-in { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.strip a { color: inherit; white-space: nowrap; }
@media (max-width: 720px) { .strip-in span { display: none; } .strip-in { justify-content: center; } }
.site-head { border-bottom: 1px solid var(--rule-strong); background: var(--paper); }
.head-in { display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.mark { color: var(--ink); }
.mark-sun { fill: var(--sun-bright); stroke: var(--ink); stroke-width: 1; }
.brand-name { font: 500 1.22rem/1 var(--serif); letter-spacing: -0.01em; }
.brand-name b { font-weight: 700; font-style: italic; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.93rem; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--sun); }
.head-search { color: var(--ink); display: inline-flex; padding: 6px; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--rule-strong); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; content: ""; }
.menu summary span::before { position: absolute; top: -6px; } .menu summary span::after { position: absolute; top: 6px; }
.menu ul { position: absolute; right: 0; top: 46px; z-index: 5; background: var(--card); border: 1px solid var(--rule-strong); list-style: none; margin: 0; padding: 8px 0; min-width: 230px; }
.menu li a { display: block; padding: 10px 18px; color: var(--ink); text-decoration: none; font-weight: 500; }
.menu li a:hover { background: var(--paper-2); }
@media (max-width: 1020px) { .nav { display: none; } .menu { display: block; } .head-search { margin-left: auto; } .head-in { gap: 12px; } }

/* ---------- page head ---------- */
.crumbs { margin: 22px 0 0; font-size: 0.82rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { color: var(--ink-2); }
.page-head { padding: 26px 0 30px; border-bottom: 1px solid var(--rule-strong); margin-bottom: 36px; max-width: 900px; }
.state-head { max-width: none; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
@media (max-width: 860px) { .state-head { grid-template-columns: 1fr; gap: 20px; } }
.kicker { font: 500 0.76rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.09em; color: var(--sun); margin: 0 0 14px; }
.standfirst { font: 400 clamp(1.12rem, 1.9vw, 1.32rem)/1.45 var(--serif); color: var(--ink-2); margin: 16px 0 0; max-width: 46em; text-wrap: pretty; }
.verified { font-size: 0.84rem; color: var(--ink-2); margin: 18px 0 0; }
.verified-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yes); display: inline-block; margin-right: 6px; }
.head-stats { display: flex; gap: 0; margin: 0; border: 1px solid var(--rule-strong); }
.head-stats div { padding: 12px 18px; border-left: 1px solid var(--rule); min-width: 118px; }
.head-stats div:first-child { border-left: 0; }
.head-stats dt { font: 500 0.68rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); }
.head-stats dd { margin: 6px 0 0; font: 600 1.25rem/1.1 var(--serif); }
@media (max-width: 520px) { .head-stats { flex-direction: column; } .head-stats div { border-left: 0; border-top: 1px solid var(--rule); } .head-stats div:first-child { border-top: 0; } }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 80px; }
.side { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; }
.content { min-width: 0; max-width: 800px; }
.content-solo { max-width: 900px; padding-bottom: 80px; }
.main-wide .content-solo { max-width: none; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; gap: 0; } .side { position: static; max-height: none; margin-bottom: 32px; } }
.toc { border-top: 3px solid var(--rule-strong); padding-top: 12px; font-size: 0.88rem; }
.toc-title { font: 500 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-3); margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--rule); }
.toc a { display: flex; gap: 10px; padding: 7px 0; color: var(--ink); text-decoration: none; line-height: 1.3; }
.toc a::before { content: counter(toc, decimal-leading-zero); font: 400 0.72rem/1.6 var(--mono); color: var(--ink-3); }
.toc a:hover { color: var(--sun); }
@media (max-width: 960px) { .toc ol { columns: 2; column-gap: 24px; } .toc li { break-inside: avoid; } }
@media (max-width: 520px) { .toc ol { columns: 1; } }

.sec { margin: 0 0 56px; }
.sec > h2 { padding-top: 14px; border-top: 3px solid var(--rule-strong); margin-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.section-blurb { color: var(--ink-2); font-size: 0.95rem; margin-top: -6px; }
.fine { font-size: 0.86rem; color: var(--ink-2); }
.answer, .lead-fact { font: 400 1.16rem/1.5 var(--serif); }
.answer { border-left: 3px solid var(--sun); padding-left: 18px; }
.src-line, .src-inline { font-size: 0.84rem; color: var(--ink-2); }
.sep { color: var(--ink-3); }
a.ext::after { content: "↗"; font-size: 0.78em; margin-left: 2px; color: var(--ink-3); text-decoration: none; display: inline-block; }
.h-small { font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-3); margin-bottom: 12px; }

/* ---------- prose ---------- */
.prose { font-size: 1.04rem; }
.prose p, .prose li { max-width: 68ch; }
.prose h2 { padding-top: 14px; border-top: 3px solid var(--rule-strong); margin: 52px 0 18px; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin: 30px 0 10px; }
.prose li { margin-bottom: 0.35em; }
.prose blockquote { margin: 1.4em 0; padding: 2px 0 2px 18px; border-left: 3px solid var(--rule-strong); font-family: var(--serif); font-size: 1.1rem; }
.callout { border: 1px solid var(--rule-strong); background: var(--card); padding: 16px 20px; margin: 26px 0; font-size: 0.97rem; }
.callout p:last-child { margin-bottom: 0; }
.callout-title { font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 8px; color: var(--sun); }
.callout-key { border-width: 3px 0 1px; background: transparent; padding-inline: 0; }
.callout-key ul { margin-bottom: 0; }
.callout-warn { border-left: 5px solid var(--end); }
.callout-warn .callout-title { color: var(--end); }
.callout-federal { border-left: 5px solid var(--sun-bright); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 0 18px; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
caption { text-align: left; font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); padding: 10px 0; caption-side: top; }
th, td { text-align: left; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child > * { border-bottom: 0; }
thead th { font: 500 0.7rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); border-bottom: 1px solid var(--rule-strong); vertical-align: bottom; white-space: nowrap; }
tbody th { font-weight: 600; }
td.num { text-align: right; padding-right: 20px; }
.ledger td.basis { color: var(--ink-2); font-size: 0.86rem; }
.ledger tr.total > * { border-top: 2px solid var(--rule-strong); border-bottom: 2px solid var(--rule-strong); font-weight: 700; }
.table-states table { min-width: 760px; }
.table-states tbody tr:hover { background: var(--paper-2); }
.sortable thead th { cursor: pointer; user-select: none; }
.sortable thead th[aria-sort]::after { content: " ↕"; color: var(--ink-3); }
.sortable thead th[aria-sort="ascending"]::after { content: " ↑"; color: var(--sun); }
.sortable thead th[aria-sort="descending"]::after { content: " ↓"; color: var(--sun); }

/* marks and status */
.mk { display: inline-flex; align-items: baseline; gap: 7px; font-weight: 500; }
.mk i { width: 10px; height: 10px; flex-shrink: 0; display: inline-block; border: 1.5px solid currentColor; transform: translateY(1px); }
.mk-yes { color: var(--yes); } .mk-yes i { background: currentColor; }
.mk-partial { color: var(--part); } .mk-partial i { background: linear-gradient(135deg, currentColor 50%, transparent 50%); }
.mk-no { color: var(--no); font-weight: 400; }
.status, .tag, .scope { font: 500 0.66rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.07em; padding: 4px 7px; white-space: nowrap; display: inline-block; vertical-align: middle; }
.tag { background: var(--ink); color: var(--paper); }
.scope { color: var(--ink-2); padding-inline: 0; }
.status { border: 1px solid currentColor; }
.status-active { color: var(--yes); background: var(--yes-wash); }
.status-closing, .status-waitlist, .status-paused { color: var(--part); background: var(--part-wash); }
.status-expired { color: var(--end); background: var(--end-wash); }
.status-pending { color: var(--blue); background: var(--blue-wash); }
.status-unverified { color: var(--ink-2); background: var(--no-wash); }

/* ---------- at a glance ---------- */
.glance { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 1px solid var(--rule-strong); }
.glance-2 { margin-bottom: 20px; }
.glance-row { display: grid; grid-template-columns: minmax(130px, 42%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.glance dt { font-size: 0.9rem; font-weight: 500; }
.glance dt a { color: var(--ink); text-decoration-color: var(--rule); }
.glance dd { margin: 0; font-size: 0.9rem; }
.glance-note { display: block; color: var(--ink-2); font-size: 0.84rem; margin-top: 2px; }
@media (max-width: 680px) { .glance { grid-template-columns: 1fr; } }

/* ---------- program entries ---------- */
.prog { border: 1px solid var(--rule-strong); background: var(--card); margin: 0 0 18px; }
.prog-head { padding: 16px 20px 14px; border-bottom: 1px solid var(--rule); }
.prog-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 0 0 10px; }
.prog-meta .status { margin-left: auto; }
.prog-meta .status + .status { margin-left: 0; }
.prog h3 { font-size: 1.28rem; }
.prog h3 a { color: var(--ink); }
.prog-value { font: 500 0.98rem/1.4 var(--mono); color: var(--sun); margin: 8px 0 0; }
.prog-body { padding: 14px 20px 2px; }
.prog-facts { margin: 0; padding: 0 20px 6px; font-size: 0.92rem; }
.prog-facts > div { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--rule); }
.prog-facts dt { font: 500 0.68rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.prog-facts dd { margin: 0; } .prog-facts dd p:last-child { margin: 0; }
.prog-expired { background: transparent; border-style: dashed; }
.prog-expired h3 { color: var(--ink-2); }
@media (max-width: 600px) { .prog-facts > div { grid-template-columns: 1fr; gap: 2px; } .prog-meta .status { margin-left: 0; } }
.deflist { margin: 18px 0; border-top: 1px solid var(--rule-strong); }
.deflist > div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 0.94rem; }
.deflist dt { font-weight: 600; } .deflist dd { margin: 0; }
@media (max-width: 600px) { .deflist > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- lists ---------- */
.dates, .ended, .timeline, .proglist, .linklist, .chips, .az, .cards, .typegrid, .keyfacts, .sources { list-style: none; padding: 0; margin: 0 0 18px; }
.dates li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.dates { border-top: 1px solid var(--rule-strong); }
.dates-when { font: 500 0.82rem/1.5 var(--mono); color: var(--end); }
.dates-note { display: block; color: var(--ink-2); font-size: 0.86rem; margin-top: 2px; }
@media (max-width: 560px) { .dates li { grid-template-columns: 1fr; gap: 2px; } }
.ended { border-top: 1px solid var(--rule-strong); }
.ended li { padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 0.94rem; }
.ended li > span:last-child { display: block; color: var(--ink-2); margin-top: 3px; }
.ended-when { font: 500 0.72rem var(--mono); color: var(--end); text-transform: uppercase; letter-spacing: 0.05em; margin-left: 8px; }
.timeline { border-left: 1px solid var(--rule-strong); margin-left: 5px; }
.timeline li { position: relative; padding: 0 0 20px 24px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px; background: var(--paper); border: 2px solid var(--sun); border-radius: 50%; }
.timeline time { font: 500 0.76rem var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.timeline p { margin: 3px 0 0; font-size: 0.96rem; }
.timeline-compact p { font-size: 0.92rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.keyfacts { border: 1px solid var(--rule-strong); background: var(--card); padding: 6px 20px; margin-bottom: 22px; }
.keyfacts li { padding: 9px 0 9px 22px; border-bottom: 1px solid var(--rule); position: relative; font-size: 0.96rem; }
.keyfacts li:last-child { border-bottom: 0; }
.keyfacts li::before { content: ""; position: absolute; left: 0; top: 17px; width: 9px; height: 9px; background: var(--sun-bright); }
.sources { counter-reset: src; columns: 1; font-size: 0.9rem; }
.sources li { counter-increment: src; padding: 7px 0 7px 38px; border-bottom: 1px solid var(--rule); position: relative; overflow-wrap: anywhere; }
.sources li::before { content: counter(src); position: absolute; left: 0; font: 400 0.76rem/1.9 var(--mono); color: var(--ink-3); }
.host { font: 400 0.74rem var(--mono); color: var(--ink-3); margin-left: 6px; }
.proglist { border-top: 1px solid var(--rule-strong); font-size: 0.92rem; }
.proglist li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.proglist a { display: flex; gap: 10px; color: var(--ink); text-decoration: none; }
.proglist a:hover .proglist-name { text-decoration: underline; }
.proglist-state { font: 500 0.78rem/1.7 var(--mono); color: var(--sun); width: 24px; flex-shrink: 0; }
.proglist-value { color: var(--ink-2); font-size: 0.86rem; }
@media (max-width: 680px) { .proglist li { grid-template-columns: 1fr; gap: 3px; } .proglist .status { justify-self: start; } }
.linklist { border-top: 1px solid var(--rule-strong); }
.linklist li { border-bottom: 1px solid var(--rule); }
.linklist a { display: block; padding: 13px 0; text-decoration: none; color: var(--ink); }
.linklist strong { font: 600 1.08rem/1.3 var(--serif); display: block; }
.linklist a:hover strong { color: var(--sun); }
.linklist span { display: block; color: var(--ink-2); font-size: 0.9rem; margin-top: 3px; }
.linklist-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
@media (max-width: 720px) { .linklist-2 { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: block; border: 1px solid var(--rule-strong); padding: 6px 12px; font-size: 0.9rem; text-decoration: none; color: var(--ink); background: var(--card); }
.chips a:hover { background: var(--ink); color: var(--paper); }
.az { columns: 3; column-gap: 24px; font-size: 0.95rem; }
.az li { break-inside: avoid; border-bottom: 1px solid var(--rule); }
.az a { display: flex; gap: 10px; padding: 6px 0; text-decoration: none; color: var(--ink); }
.az a:hover { color: var(--sun); }
.az abbr { font: 500 0.76rem/1.9 var(--mono); color: var(--ink-3); width: 22px; }
@media (max-width: 520px) { .az { columns: 2; } }
.oneline { margin: 0; border-top: 1px solid var(--rule-strong); }
.oneline > div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 0.94rem; }
.oneline dt { font-weight: 600; } .oneline dd { margin: 0; color: var(--ink-2); }
@media (max-width: 600px) { .oneline > div { grid-template-columns: 1fr; gap: 2px; } }
.prevnext { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); padding: 12px 0; margin-top: 24px; font-size: 0.92rem; }
.more { font-weight: 600; margin-right: 22px; white-space: nowrap; }
.more::after { content: " →"; }
.more-inline { font-size: 0.86rem; }

/* cards */
.cards { display: grid; gap: 0; border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule-strong); margin-bottom: 80px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); } .cards-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards-3, .cards-2 { grid-template-columns: 1fr; } }
.card { display: block; height: 100%; padding: 22px 22px 20px; border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); text-decoration: none; color: var(--ink); background: var(--card); }
.card:hover { background: var(--sun-wash); }
.card h2 { font-size: 1.24rem; margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--ink-2); margin: 0; }
.card-num { font: 600 2.3rem/1 var(--serif); display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; color: var(--sun); }
.card-num small { font: 500 0.66rem var(--mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); }

/* faq + glossary */
.faq { border-top: 1px solid var(--rule-strong); }
.faq-item { padding: 18px 0 6px; border-bottom: 1px solid var(--rule); }
.faq-item h3 { font-size: 1.14rem; margin: 0 0 8px; }
.faq-item p { max-width: 68ch; }
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 36px; }
.letters a { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--rule-strong); text-decoration: none; color: var(--ink); font: 500 0.9rem var(--mono); }
.letters a:hover { background: var(--ink); color: var(--paper); }
.glossary { margin: 0; }
.glossary > div { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 20px; }
.glossary > div:target { background: var(--sun-wash); }
.glossary dt { font: 600 1.05rem/1.35 var(--serif); }
.glossary .abbr { font: 500 0.78rem var(--mono); color: var(--ink-3); }
.glossary dd { margin: 0; font-size: 0.96rem; }
@media (max-width: 640px) { .glossary > div { grid-template-columns: 1fr; gap: 3px; } }

/* ---------- tile map ---------- */
.map { margin: 0; }
.map-layers { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 14px; border: 1px solid var(--rule-strong); width: fit-content; max-width: 100%; }
.map-radio { position: absolute; opacity: 0; pointer-events: none; }
.map-layers label { font: 500 0.68rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; padding: 8px 10px; cursor: pointer; border-right: 1px solid var(--rule); color: var(--ink-2); }
.map-layers label:last-of-type { border-right: 0; }
.map-radio:checked + label { background: var(--ink); color: var(--paper); }
.map-radio:focus-visible + label { outline: 2px solid var(--sun); outline-offset: 2px; }
.map-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(8, 1fr); gap: 4px; aspect-ratio: 12 / 8; }
.tile { display: grid; place-items: center; background: var(--no-wash); color: var(--ink); text-decoration: none; font: 500 clamp(0.6rem, 1.25vw, 0.82rem)/1 var(--mono); border: 1px solid transparent; transition: transform 0.12s; }
.tile:hover, .tile:focus-visible { border-color: var(--ink); transform: scale(1.12); z-index: 2; }
.tile-current { outline: 2px solid var(--ink); outline-offset: 1px; }
.map-legend { display: none; list-style: none; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; padding: 0; font-size: 0.8rem; color: var(--ink-2); }
.map-legend li { display: flex; align-items: center; gap: 7px; }
.sw { width: 13px; height: 13px; display: inline-block; }
.map figcaption { font-size: 0.78rem; color: var(--ink-3); margin-top: 10px; }
.sw-full-retail, .sw-yes { background: var(--yes); }
.sw-reduced-credit, .sw-partial { background: var(--sun-bright); }
.sw-avoided-cost { background: var(--end); }
.sw-utility-specific { background: var(--blue); }
.sw-none, .sw-no { background: var(--paper-3); border: 1px solid var(--rule); }
/* layer: net metering (default) */
.map:has(.map-radio-nm:checked) .map-legend-nm { display: flex; }
.map:has(.map-radio-nm:checked) .tile[data-nm="full-retail"] { background: var(--yes); color: #fff; }
.map:has(.map-radio-nm:checked) .tile[data-nm="reduced-credit"] { background: var(--sun-bright); color: #1b1e25; }
.map:has(.map-radio-nm:checked) .tile[data-nm="avoided-cost"] { background: var(--end); color: #fff; }
.map:has(.map-radio-nm:checked) .tile[data-nm="utility-specific"] { background: var(--blue); color: #fff; }
.map:has(.map-radio-nm:checked) .tile[data-nm="none"] { background: var(--paper-3); }
/* binary layers */
.map:has(.map-radio-statetaxcredit:checked) .map-legend-statetaxcredit, .map:has(.map-radio-salestaxexemption:checked) .map-legend-salestaxexemption,
.map:has(.map-radio-propertytaxexemption:checked) .map-legend-propertytaxexemption, .map:has(.map-radio-rebate:checked) .map-legend-rebate,
.map:has(.map-radio-srec:checked) .map-legend-srec, .map:has(.map-radio-storageincentive:checked) .map-legend-storageincentive { display: flex; }
.map:has(.map-radio-statetaxcredit:checked) .tile[data-statetaxcredit="yes"], .map:has(.map-radio-salestaxexemption:checked) .tile[data-salestaxexemption="yes"],
.map:has(.map-radio-propertytaxexemption:checked) .tile[data-propertytaxexemption="yes"], .map:has(.map-radio-rebate:checked) .tile[data-rebate="yes"],
.map:has(.map-radio-srec:checked) .tile[data-srec="yes"], .map:has(.map-radio-storageincentive:checked) .tile[data-storageincentive="yes"] { background: var(--yes); color: #fff; }
.map:has(.map-radio-statetaxcredit:checked) .tile[data-statetaxcredit="partial"], .map:has(.map-radio-salestaxexemption:checked) .tile[data-salestaxexemption="partial"],
.map:has(.map-radio-propertytaxexemption:checked) .tile[data-propertytaxexemption="partial"], .map:has(.map-radio-rebate:checked) .tile[data-rebate="partial"],
.map:has(.map-radio-srec:checked) .tile[data-srec="partial"], .map:has(.map-radio-storageincentive:checked) .tile[data-storageincentive="partial"] { background: var(--sun-bright); color: #1b1e25; }
@media (prefers-color-scheme: dark) {
  .map:has(.map-radio:checked) .tile[data-nm] { color: var(--ink); }
  .map:has(.map-radio-nm:checked) .tile[data-nm="full-retail"], .tile[data-nm][style] { }
  .sw-full-retail, .sw-yes { background: #2f7f5b; } .sw-avoided-cost { background: #a84a38; } .sw-utility-specific { background: #456f8f; }
  .map:has(.map-radio-nm:checked) .tile[data-nm="full-retail"] { background: #2f7f5b; color: #fff; }
  .map:has(.map-radio-nm:checked) .tile[data-nm="avoided-cost"] { background: #a84a38; color: #fff; }
  .map:has(.map-radio-nm:checked) .tile[data-nm="utility-specific"] { background: #456f8f; color: #fff; }
  .map:has(.map-radio-nm:checked) .tile[data-nm="reduced-credit"] { color: #1b1e25; }
  .map:has(.map-radio:not(.map-radio-nm):checked) .tile[data-nm] { color: var(--ink); }
  .map:has(.map-radio-statetaxcredit:checked) .tile[data-statetaxcredit="yes"], .map:has(.map-radio-salestaxexemption:checked) .tile[data-salestaxexemption="yes"],
  .map:has(.map-radio-propertytaxexemption:checked) .tile[data-propertytaxexemption="yes"], .map:has(.map-radio-rebate:checked) .tile[data-rebate="yes"],
  .map:has(.map-radio-srec:checked) .tile[data-srec="yes"], .map:has(.map-radio-storageincentive:checked) .tile[data-storageincentive="yes"] { background: #2f7f5b; color: #fff; }
  .map:has(.map-radio-statetaxcredit:checked) .tile[data-statetaxcredit="partial"], .map:has(.map-radio-salestaxexemption:checked) .tile[data-salestaxexemption="partial"],
  .map:has(.map-radio-propertytaxexemption:checked) .tile[data-propertytaxexemption="partial"], .map:has(.map-radio-rebate:checked) .tile[data-rebate="partial"],
  .map:has(.map-radio-srec:checked) .tile[data-srec="partial"], .map:has(.map-radio-storageincentive:checked) .tile[data-storageincentive="partial"] { color: #1b1e25; }
}

/* ---------- home ---------- */
.hero { border-bottom: 1px solid var(--rule-strong); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; padding: 52px 0 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.04; }
@media (max-width: 980px) { .hero-in { grid-template-columns: 1fr; gap: 36px; padding: 34px 0 40px; } }
.finder { margin-top: 26px; }
.finder label { font: 500 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-3); display: block; margin-bottom: 6px; }
.finder-row { display: flex; max-width: 460px; }
select, input[type="number"], input[type="search"], input[type="text"] { font: 400 1rem var(--sans); color: var(--ink); background: var(--card); border: 1px solid var(--rule-strong); border-radius: 0; padding: 11px 12px; width: 100%; min-width: 0; }
button { font: 600 0.95rem var(--sans); background: var(--ink); color: var(--paper); border: 1px solid var(--ink); padding: 11px 18px; cursor: pointer; white-space: nowrap; border-radius: 0; }
button:hover { background: var(--sun); border-color: var(--sun); color: #fff; }
.finder-row select { border-right: 0; }
.band { background: var(--paper-2); border-bottom: 1px solid var(--rule-strong); }
.band-quiet { border-top: 1px solid var(--rule-strong); margin-top: 40px; padding: 48px 0 56px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; }
.stats > div { padding: 26px 24px 24px 0; border-left: 1px solid var(--rule); padding-left: 24px; }
.stats > div:first-child { border-left: 0; padding-left: 0; }
.stats dd { margin: 0; font: 600 clamp(2.4rem, 5vw, 3.4rem)/1 var(--serif); order: -1; }
.stats > div { display: flex; flex-direction: column; }
.stats dt { font-size: 0.92rem; margin-top: 8px; color: var(--ink-2); }
.stats p { font-size: 0.84rem; margin: 8px 0 0; }
@media (max-width: 820px) { .stats { grid-template-columns: 1fr 1fr; } .stats > div:nth-child(3) { border-left: 0; padding-left: 0; } .stats > div:nth-child(n+3) { border-top: 1px solid var(--rule); } }
.sec-home { padding-top: 56px; }
.sec-home > h2, .two-col h2, .principles h2 { margin-bottom: 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; margin-bottom: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.federal-box { border: 1px solid var(--rule-strong); border-left: 6px solid var(--sun-bright); background: var(--card); padding: 22px 26px; font: 400 1.1rem/1.55 var(--serif); }
.federal-box p:last-child { margin: 0; font-family: var(--sans); font-size: 0.95rem; }
.typegrid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule-strong); border-left: 1px solid var(--rule-strong); }
.typegrid a { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); text-decoration: none; color: var(--ink); height: 100%; background: var(--card); }
.typegrid a:hover { background: var(--sun-wash); }
.typegrid b { font: 600 2rem/1 var(--serif); color: var(--sun); }
.typegrid span { font-size: 0.92rem; font-weight: 500; }
@media (max-width: 820px) { .typegrid { grid-template-columns: 1fr 1fr; } }
.principles ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 0 0 24px; }
.principles h3 { font-size: 1.1rem; padding-top: 12px; border-top: 3px solid var(--rule-strong); margin-bottom: 8px; }
.principles p { font-size: 0.92rem; color: var(--ink-2); }
@media (max-width: 860px) { .principles ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .principles ul { grid-template-columns: 1fr; } }

/* ---------- calculators ---------- */
.calc { border: 1px solid var(--rule-strong); background: var(--card); margin: 24px 0; }
.calc:empty, .calc:has(> noscript:only-child) { border: 0; background: none; }
.calc-title { font: 500 0.72rem var(--mono); text-transform: uppercase; letter-spacing: 0.09em; padding: 12px 20px; border-bottom: 1px solid var(--rule-strong); background: var(--ink); color: var(--paper); margin: 0; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
@media (max-width: 760px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-inputs { padding: 18px 20px; border-right: 1px solid var(--rule); display: grid; gap: 14px; align-content: start; }
@media (max-width: 760px) { .calc-inputs { border-right: 0; border-bottom: 1px solid var(--rule); } }
.calc label { display: block; font-size: 0.86rem; font-weight: 600; }
.calc label small { display: block; font-weight: 400; color: var(--ink-2); font-size: 0.78rem; margin-top: 2px; }
.calc label input, .calc label select { margin-top: 5px; padding: 8px 10px; font-family: var(--mono); font-size: 0.95rem; }
.calc label select { font-family: var(--sans); }
.calc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc details { border-top: 1px solid var(--rule); padding-top: 10px; }
.calc details summary { cursor: pointer; font-size: 0.84rem; font-weight: 600; }
.calc details > div { display: grid; gap: 12px; margin-top: 12px; }
.calc-out { padding: 18px 20px; }
.calc-big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--rule-strong); margin-bottom: 16px; }
.calc-big div { padding: 12px 14px; border-left: 1px solid var(--rule); }
.calc-big div:first-child { border-left: 0; }
.calc-big dt { font: 500 0.64rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.calc-big dd { margin: 6px 0 0; font: 600 1.45rem/1 var(--serif); }
@media (max-width: 480px) { .calc-big { grid-template-columns: 1fr; } .calc-big div { border-left: 0; border-top: 1px solid var(--rule); } .calc-big div:first-child { border-top: 0; } }
.calc-lines { width: 100%; font-size: 0.88rem; }
.calc-lines td { padding: 6px 0; } .calc-lines td:last-child { text-align: right; font-family: var(--mono); white-space: nowrap; padding-left: 12px; }
.calc-lines tr.total td { border-top: 2px solid var(--rule-strong); font-weight: 700; }
.calc-lines tr.sub td { color: var(--ink-2); font-size: 0.82rem; padding-top: 0; border-bottom: 1px solid var(--rule); }
.calc-note { font-size: 0.8rem; color: var(--ink-2); margin: 12px 0 0; }
.calc-chart { margin-top: 16px; }
.calc-chart svg { display: block; width: 100%; height: auto; }
.calc-chart .axis { stroke: var(--rule-strong); stroke-width: 1; }
.calc-chart .zero { stroke: var(--ink-3); stroke-dasharray: 3 3; }
.calc-chart .line { fill: none; stroke: var(--sun); stroke-width: 2; }
.calc-chart .neg { fill: var(--end-wash); } .calc-chart .pos { fill: var(--yes-wash); }
.calc-chart text { font: 10px var(--mono); fill: var(--ink-3); }
.compare-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 26px; }
.compare-form label { font: 500 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.09em; color: var(--ink-3); }
.compare-form select { margin-top: 6px; }
.compare-out table th:first-child { width: 26%; }
.search-form { display: flex; margin-bottom: 26px; }
.search-form input { border-right: 0; }
.search-results { list-style: none; padding: 0; border-top: 1px solid var(--rule-strong); }
.search-results li { border-bottom: 1px solid var(--rule); }
.search-results a { display: block; padding: 12px 0; text-decoration: none; color: var(--ink); }
.search-results strong { font: 600 1.05rem var(--serif); }
.search-results span { display: block; font-size: 0.88rem; color: var(--ink-2); }
.search-results em { font: 500 0.64rem var(--mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--sun); font-style: normal; margin-right: 8px; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: var(--paper); margin-top: 0; padding: 52px 0 0; font-size: 0.9rem; }
.site-foot a { color: inherit; text-decoration-color: rgba(255,255,255,0.3); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }
.foot-brand { display: flex; align-items: center; gap: 10px; font: 500 1.2rem var(--serif); margin-bottom: 14px; }
.foot-brand .mark { color: var(--paper); } .foot-brand .mark-sun { stroke: var(--paper); }
.foot-brand b { font-style: italic; }
.foot-small { font-size: 0.8rem; opacity: 0.72; }
.site-foot h2 { font: 500 0.7rem var(--mono); text-transform: uppercase; letter-spacing: 0.09em; opacity: 0.6; margin-bottom: 12px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin-bottom: 7px; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid rgba(255,255,255,0.2); padding: 16px 0 22px; font-size: 0.78rem; opacity: 0.8; }
@media (prefers-color-scheme: dark) { .site-foot { background: #0d0f12; color: var(--ink); border-top: 1px solid var(--rule); } .strip { background: #0d0f12; color: var(--ink-2); } .tag, .map-radio:checked + label, .calc-title { background: var(--paper-3); color: var(--ink); } button { background: var(--paper-3); color: var(--ink); border-color: var(--rule-strong); } }

@media print {
  .strip, .site-head, .site-foot, .side, .calc, .finder, .map-layers, .prevnext { display: none !important; }
  body { background: #fff; font-size: 11pt; } .layout { display: block; } .prog { break-inside: avoid; } a.ext::after { content: " (" attr(href) ")"; font-size: 8pt; }
}
