/* =========================================================================
   Home Energy Rebate Finder — static stylesheet
   Design tokens ported from the Next.js/Tailwind build:
   ink, savings green (action), civic blue (links/secondary), amber (sample),
   white surface. Dollar amounts render in IBM Plex Mono tabular figures so
   they read like database fields — the site's signature detail.
   ========================================================================= */

:root {
  --ink: #12202e;
  --ink-soft: #3f5162;
  --ink-faint: #6b7c8b;
  --savings: #0f7a54;
  --savings-600: #0c6144;
  --savings-050: #e8f4ef;
  --civic: #0b5fa5;
  --civic-600: #094c84;
  --civic-050: #e7f0f8;
  --amber: #b45309;
  --amber-050: #fdf3e7;
  --surface: #ffffff;
  --surface-sub: #f6f9fa;
  --line: #e4eaee;
  --line-strong: #cfd8de;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 1px 2px rgba(18, 32, 46, 0.04), 0 4px 16px rgba(18, 32, 46, 0.05);
  --shadow-lift: 0 8px 30px rgba(18, 32, 46, 0.1);
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.4em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
a { color: var(--civic); text-decoration: none; }
a:hover { color: var(--civic-600); text-decoration: underline; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin: 0.25rem 0; }
strong { font-weight: 600; }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

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

/* ---- Skip link ---- */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; color: #fff; }

/* ---- Honesty strip ---- */
.honesty-strip { background: var(--ink); color: #cfe0ee; font-size: 0.78rem; }
.honesty-strip .container { padding-top: 7px; padding-bottom: 7px; display: flex; gap: 10px; align-items: center; justify-content: center; text-align: center; flex-wrap: wrap; }
.honesty-strip strong { color: #fff; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo { width: 34px; height: 34px; flex: none; }
.brand .brand-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: 0.68rem; color: var(--ink-faint); letter-spacing: 0.02em; margin-top: -2px; }

.nav-desktop { display: none; align-items: center; gap: 22px; }
.nav-desktop a { color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; }
.nav-desktop a:hover { color: var(--ink); text-decoration: none; }

.header-cta { display: none; }

/* mobile menu via <details> — no JS */
.nav-mobile { position: relative; }
.nav-mobile summary { list-style: none; cursor: pointer; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--surface); }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary svg { width: 20px; height: 20px; }
.nav-mobile[open] .menu-panel { display: block; }
.menu-panel { display: none; position: absolute; right: 0; top: 52px; width: min(84vw, 300px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: 8px; }
.menu-panel a { display: block; padding: 11px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.menu-panel a:hover { background: var(--surface-sub); text-decoration: none; }
.menu-panel .cta { margin-top: 6px; background: var(--savings); color: #fff; text-align: center; }
.menu-panel .cta:hover { background: var(--savings-600); }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .header-cta { display: inline-flex; }
  .nav-mobile { display: none; }
}

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; padding: 11px 18px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: background .15s, box-shadow .15s, transform .05s; text-align: center; line-height: 1.2; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--savings); color: #fff; }
.btn-primary:hover { background: var(--savings-600); color: #fff; }
.btn-secondary { background: var(--civic); color: #fff; }
.btn-secondary:hover { background: var(--civic-600); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-sub); color: var(--ink); }
.btn-sm { padding: 8px 13px; font-size: 0.86rem; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---- Cards ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.card-pad { padding: 20px; }
.card-sub { background: var(--surface-sub); }

/* ---- Badges & pills ---- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; line-height: 1.4; }
.badge-sample { background: var(--amber-050); color: var(--amber); border: 1px solid #f0d9bd; }
.badge-sample::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.badge-sponsored { background: var(--civic-050); color: var(--civic-600); border: 1px solid #c8ddf0; }

.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 0.74rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-soft); background: var(--surface); text-transform: capitalize; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); }
.pill-active::before { background: var(--savings); }
.pill-limited::before, .pill-waitlist::before { background: var(--amber); }
.pill-paused::before, .pill-ended::before { background: #b91c1c; }
.pill-sample::before { background: var(--civic); }

/* ---- Amount (signature mono tabular figures) ---- */
.amount { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.amount-lg { font-size: 1.5rem; }
.amount-xl { font-size: 2.1rem; letter-spacing: -0.02em; }

/* ---- Eyebrow / section heading ---- */
.eyebrow { display: inline-block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--savings); margin-bottom: 6px; }
.section-heading { max-width: 720px; }
.section-heading .intro { color: var(--ink-soft); font-size: 1.02rem; margin-top: 6px; }

section { padding: 44px 0; }
.section-tight { padding: 28px 0; }

/* ---- Grids ---- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.layout-main { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .layout-main { grid-template-columns: minmax(0,1fr) 320px; gap: 36px; } .layout-main .sidebar { position: sticky; top: 90px; } }

/* ---- Hero ---- */
.hero { background: linear-gradient(180deg, var(--savings-050) 0%, #fff 68%); border-bottom: 1px solid var(--line); }
.hero .container { padding-top: 52px; padding-bottom: 48px; }
.hero h1 { max-width: 15ch; }
.hero .lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 52ch; margin: 14px 0 24px; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: 0.84rem; color: var(--ink-soft); }
.trust-chips span { display: inline-flex; align-items: center; gap: 7px; }
.trust-chips svg { width: 16px; height: 16px; color: var(--savings); flex: none; }

/* ---- Search box ---- */
.search-box { display: flex; gap: 10px; flex-wrap: wrap; }
.search-box input { flex: 1 1 220px; }
.search-box.lg input { font-size: 1.05rem; padding: 14px 16px; }
.search-note { font-size: 0.8rem; color: var(--ink-faint); margin-top: 8px; }

/* ---- Forms ---- */
label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 5px; }
input, select, textarea { width: 100%; font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--civic); box-shadow: 0 0 0 3px var(--civic-050); }
textarea { min-height: 120px; resize: vertical; }
.field { margin-bottom: 14px; }
.field-row { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .field-row.cols-2 { grid-template-columns: 1fr 1fr; } .field-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }
.checkbox-row { display: flex; align-items: flex-start; gap: 9px; }
.checkbox-row input { width: auto; margin-top: 3px; }
.checkbox-row label { margin: 0; font-weight: 400; font-size: 0.85rem; color: var(--ink-soft); }
.form-status { margin-top: 12px; padding: 11px 14px; border-radius: 10px; font-size: 0.9rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: var(--savings-050); color: var(--savings-600); border: 1px solid #bfe3d3; }
.form-status.err { background: #fdeaea; color: #b91c1c; border: 1px solid #f3c9c9; }
fieldset { border: 0; margin: 0; padding: 0; }

/* ---- Rebate table ---- */
.rebate-list { display: grid; gap: 14px; }
.rebate-row { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.rebate-row > summary { list-style: none; cursor: pointer; padding: 16px 18px; display: grid; gap: 12px; grid-template-columns: 1fr; align-items: center; }
.rebate-row > summary::-webkit-details-marker { display: none; }
.rebate-row[open] > summary { border-bottom: 1px solid var(--line); background: var(--surface-sub); }
.rebate-head { display: flex; flex-direction: column; gap: 6px; }
.rebate-head .name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.rebate-head .admin { font-size: 0.82rem; color: var(--ink-faint); }
.rebate-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rebate-amount { display: flex; flex-direction: column; gap: 3px; }
.rebate-amount .note { font-size: 0.76rem; color: var(--ink-faint); font-family: var(--font-body); }
.rebate-expand { font-size: 0.8rem; color: var(--civic); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.rebate-row[open] .rebate-expand .chev { transform: rotate(180deg); }
.rebate-expand .chev { transition: transform .15s; }
.rebate-detail { padding: 4px 18px 20px; display: grid; gap: 18px; }
.detail-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .rebate-row > summary { grid-template-columns: 1fr auto auto; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
}
.detail-block h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); font-family: var(--font-body); margin-bottom: 8px; }
.detail-block ul { padding-left: 1.1rem; font-size: 0.9rem; }
.detail-links { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 4px; }

/* ---- Info list / mini cards ---- */
.info-card { padding: 18px; }
.info-card h3 { font-size: 1rem; margin-bottom: 8px; }
.info-card ul { font-size: 0.9rem; padding-left: 1.1rem; color: var(--ink-soft); }

/* ---- Source box ---- */
.source-box .src-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.source-box .src-head h3 { font-size: 0.9rem; margin: 0; }
.source-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 0.86rem; }
.source-box li { display: flex; gap: 7px; align-items: baseline; }
.source-box li::before { content: "\2197"; color: var(--civic); font-weight: 700; }
.last-reviewed { font-size: 0.74rem; color: var(--ink-faint); white-space: nowrap; }
.last-reviewed b { color: var(--ink-soft); font-weight: 600; }

/* ---- Callout / disclaimer ---- */
.callout { border-radius: var(--radius); padding: 16px 18px; font-size: 0.92rem; }
.callout h3 { font-size: 0.98rem; margin-bottom: 6px; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-amber { background: var(--amber-050); border: 1px solid #f0d9bd; }
.callout-amber h3 { color: var(--amber); }
.callout-neutral { background: var(--surface-sub); border: 1px solid var(--line); }

/* ---- Ad slot ---- */
.ad-slot { border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-sub); color: var(--ink-faint); text-align: center; padding: 18px; font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.ad-leaderboard { min-height: 90px; display: flex; align-items: center; justify-content: center; }
.ad-rectangle { min-height: 250px; display: flex; align-items: center; justify-content: center; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > summary { list-style: none; cursor: pointer; padding: 16px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary .fq-icon { flex: none; color: var(--civic); transition: transform .15s; }
.faq-item[open] > summary .fq-icon { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 0 18px; color: var(--ink-soft); font-size: 0.95rem; max-width: 68ch; }

/* ---- Upgrade cards grid ---- */
.upgrade-card { padding: 18px; display: flex; flex-direction: column; gap: 8px; transition: box-shadow .15s, transform .1s, border-color .15s; }
.upgrade-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: var(--line-strong); text-decoration: none; }
.upgrade-card .u-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--savings-050); color: var(--savings); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.upgrade-card .u-icon svg { width: 22px; height: 22px; }
.upgrade-card h3 { margin: 0; font-size: 1.05rem; }
.upgrade-card p { margin: 0; font-size: 0.86rem; color: var(--ink-soft); }
.upgrade-card .u-cost { margin-top: auto; padding-top: 8px; font-size: 0.82rem; color: var(--ink-faint); }

/* ---- Steps (how it works) ---- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: flex; gap: 14px; }
.step .n { counter-increment: step; flex: none; width: 34px; height: 34px; border-radius: 999px; background: var(--ink); color: #fff; font-family: var(--font-mono); font-weight: 600; display: flex; align-items: center; justify-content: center; }
.step .n::before { content: counter(step); }
.step h3 { font-size: 1rem; margin-bottom: 3px; }
.step p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ---- State grid ---- */
.state-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 620px) { .state-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .state-grid { grid-template-columns: repeat(4, 1fr); } }
.state-chip { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--surface); font-weight: 600; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 8px; transition: border-color .15s, background .15s; }
.state-chip:hover { border-color: var(--savings); background: var(--savings-050); text-decoration: none; }
.state-chip .ab { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-faint); }

/* ---- Related pages ---- */
.related-list { display: grid; gap: 10px; }
.related-list a { display: block; padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 0.92rem; transition: border-color .15s, background .15s; }
.related-list a:hover { border-color: var(--civic); background: var(--civic-050); text-decoration: none; }
.related-list a .rnote { display: block; font-weight: 400; font-size: 0.8rem; color: var(--ink-faint); margin-top: 2px; }

/* ---- Contractor card ---- */
.contractor-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.contractor-card .c-top { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.contractor-card h3 { margin: 0; font-size: 1.05rem; }
.contractor-card .c-cities { font-size: 0.84rem; color: var(--ink-faint); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 0.72rem; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--surface-sub); color: var(--ink-soft); border: 1px solid var(--line); }
.c-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--savings-600); font-weight: 600; }
.c-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }

/* ---- Calculator ---- */
.calc-shell { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .calc-shell { grid-template-columns: 380px minmax(0,1fr); align-items: start; } .calc-shell .calc-form { position: sticky; top: 90px; } }
.stat-cards { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.stat-card { padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); }
.stat-card.hl { background: var(--savings-050); border-color: #bfe3d3; }
.stat-card .stat-label { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); margin-bottom: 6px; }
.line-item { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line-item .li-label { font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.line-item .li-detail { font-size: 0.85rem; color: var(--ink-soft); margin-top: 4px; max-width: 60ch; }
.line-item .li-amt { text-align: right; white-space: nowrap; }
.li-varies { font-family: var(--font-body); font-size: 0.82rem; color: var(--ink-faint); font-style: italic; }
.range-out { font-size: 0.85rem; color: var(--ink-faint); }
output.slider-val { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
input[type="range"] { padding: 0; accent-color: var(--savings); }

/* ---- Eligibility checklist ---- */
.elig-check { display: grid; gap: 8px; }
.elig-check .ec-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: background .12s, border-color .12s; }
.elig-check .ec-item:hover { background: var(--surface-sub); }
.elig-check .ec-item input { width: auto; margin-top: 3px; }
.elig-check .ec-item.checked { background: var(--savings-050); border-color: #bfe3d3; }
.progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 6px 0 4px; }
.progress > span { display: block; height: 100%; width: 0; background: var(--savings); transition: width .2s; }
.progress-label { font-size: 0.82rem; color: var(--ink-soft); }

/* ---- Affiliate ---- */
.affiliate-card { padding: 16px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.affiliate-card .a-body { min-width: 200px; flex: 1; }
.affiliate-card .a-cat { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--civic); font-weight: 700; }
.affiliate-card h3 { font-size: 1rem; margin: 3px 0 4px; }
.affiliate-card p { font-size: 0.86rem; color: var(--ink-soft); margin: 0; }
.affiliate-card .a-disc { font-size: 0.72rem; color: var(--ink-faint); margin-top: 6px; }

/* ---- Prose (articles / legal) ---- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { color: var(--ink-soft); }
.prose li { margin: 0.4rem 0; }
.prose .updated { font-size: 0.82rem; color: var(--ink-faint); }
.prose blockquote { border-left: 3px solid var(--savings); margin: 1.2em 0; padding: 0.2em 0 0.2em 1em; color: var(--ink-soft); background: var(--surface-sub); border-radius: 0 8px 8px 0; }

/* ---- Breadcrumbs ---- */
.crumbs { font-size: 0.82rem; color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 16px 0 0; }
.crumbs a { color: var(--ink-soft); }
.crumbs .sep { color: var(--line-strong); }

/* ---- Callout band / CTA band ---- */
.band { background: var(--ink); color: #dbe6f0; border-radius: 18px; padding: 32px; }
.band h2 { color: #fff; }
.band p { color: #b8c8d6; }
.band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.28); }
.band .btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* ---- Footer ---- */
.site-footer { background: var(--surface-sub); border-top: 1px solid var(--line); margin-top: 56px; }
.site-footer .container { padding-top: 44px; padding-bottom: 32px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.footer-brand p { font-size: 0.86rem; color: var(--ink-soft); max-width: 34ch; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); font-family: var(--font-body); margin-bottom: 10px; }
.footer-col a { display: block; font-size: 0.88rem; color: var(--ink-soft); padding: 4px 0; }
.footer-col a:hover { color: var(--ink); }
.footer-legal { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--ink-faint); display: grid; gap: 10px; }
.footer-legal p { margin: 0; }

/* ---- Utility helpers ---- */
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.small { font-size: 0.85rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.flex { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.flex-between { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.divider { border-top: 1px solid var(--line); margin: 24px 0; }
.tag-pill { display:inline-block; font-family: var(--font-mono); font-size: 0.72rem; padding: 2px 8px; border-radius: 6px; background: var(--surface-sub); border: 1px solid var(--line); color: var(--ink-soft); }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---- Print (checklists) ---- */
@media print {
  .no-print, .site-header, .site-footer, .honesty-strip, .ad-slot, .band { display: none !important; }
  body { font-size: 12px; }
  .card, .rebate-row { box-shadow: none; border-color: #bbb; }
  a { color: #000; text-decoration: none; }
  .container { max-width: none; padding: 0; }
  .print-check li { list-style: none; }
  .print-check li::before { content: "\2610"; margin-right: 8px; }
}

/* ===== 2026 update: de-emphasized sources, IRA caps, empty ad zones, ended credits ===== */
/* Official-source links, intentionally low-key so they don't grab attention */
.src-note { font-size: 0.76rem; color: var(--ink-faint); margin-top: 8px; line-height: 1.5; }
.src-note a { color: var(--ink-faint); text-decoration: underline; text-underline-offset: 2px; }
.src-note a:hover { color: var(--ink-soft); }
.src-list { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; font-size: 0.82rem; }
.src-list a { color: var(--ink-soft); text-decoration: none; }
.src-list a:hover { text-decoration: underline; }
.source-box { opacity: 0.9; }
.source-box .src-head h3 { color: var(--ink-soft); }

/* IRA HEAR per-measure cap list */
.cap-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 0; }
.cap-list li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 0.85rem; padding: 7px 0; border-bottom: 1px solid var(--line); }
.cap-list li:last-child { border-bottom: 0; }
.cap-list li .amount { font-weight: 600; white-space: nowrap; }

/* Contact email */
.contact-email { font-size: 1.35rem; font-weight: 700; color: var(--civic); text-decoration: none; }
.contact-email:hover { text-decoration: underline; }

/* Ad / affiliate zones: render nothing until real ad code is pasted in */
.ad-zone { margin: 0; }
.ad-zone:empty { display: none; }

/* Expired federal credits, clearly de-emphasized */
.ended-credits { margin-top: 8px; }
.ended-credit { background: var(--surface-sub); }
.ended-credit .ec-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ended-credit .statute { font-size: 0.72rem; color: var(--ink-faint); font-weight: 500; }
.ended-credit .pill-ended { flex: none; }

/* ===== GEO/SEO additions: key facts, data tables, byline, glossary ===== */
.key-facts { margin-top: 18px; padding: 18px 20px; border: 1px solid var(--line-strong); border-left: 4px solid var(--savings); border-radius: var(--radius); background: var(--surface); }
.key-facts h2 { font-size: 1rem; margin: 0 0 10px; }
.key-facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.key-facts li { font-size: 0.9rem; line-height: 1.55; padding-left: 18px; position: relative; }
.key-facts li::before { content: "\2713"; position: absolute; left: 0; color: var(--savings); font-weight: 700; }

.byline { font-size: 0.78rem; color: var(--ink-faint); margin: 10px 0 0; }
.byline a { color: var(--ink-faint); text-decoration: underline; text-underline-offset: 2px; }
.byline a:hover { color: var(--ink-soft); }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; margin: 12px 0 4px; font-size: 0.88rem; background: var(--surface); }
.data-table caption { caption-side: top; text-align: left; font-size: 0.78rem; color: var(--ink-faint); padding: 0 0 8px; }
.data-table th, .data-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.data-table thead th { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-soft); background: var(--surface-sub); border-bottom: 1px solid var(--line-strong); }
.data-table td.amount, .data-table td .amount { text-align: right; white-space: nowrap; }
.data-table td.amount { text-align: right; }
.data-table th:last-child, .data-table td:last-child { text-align: right; }
.data-table tfoot td { font-weight: 700; border-top: 2px solid var(--line-strong); border-bottom: 0; }
.data-table tbody tr:hover { background: var(--surface-sub); }
.data-table a { text-decoration: none; color: var(--civic); font-weight: 600; }
.data-table a:hover { text-decoration: underline; }

.glossary { margin: 0; display: grid; gap: 14px; }
.glossary .g-item { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 90px; }
.glossary dt { font-weight: 700; font-family: var(--font-display, inherit); margin: 0 0 6px; }
.glossary dd { margin: 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.6; }
