@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/fraunces-latin-wght-normal.woff2') format('woff2'); }

:root {
  --bg: #FFFFFF;
  --panel: #F4F7F4;
  --ink: #1E2A24;
  --ink-soft: #51655C;
  --gold: #C98A2B;
  --gold-deep: #9C6A1E;
  --teal: #2F6F62;
  --line: #DCE3DE;
  --on-accent: #FFFFFF;
  --max: 1100px;
  --radius: 8px;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  color-scheme: light;
}
/* Dark mode is reader-controlled (toggle in the header); never automatic. */
:root[data-theme="dark"] {
  --bg: #121815;
  --panel: #1A231E;
  --ink: #E8EFEA;
  --ink-soft: #A3B5AB;
  --line: #2B3830;
  --teal: #5DB8A4;
  --on-accent: #0E1512;
  color-scheme: dark;
}

img { max-width: 100%; }

/* smooth theme switch */
body, .site-header, .site-footer, .card, .cat-card, .state, .takeaways, .placeholder, .btn, a, th, td, pre, code, blockquote {
  transition: background-color .2s, color .2s;
}
@media (prefers-reduced-motion: reduce) {
  body, .site-header, .site-footer, .card, .cat-card, .state, .takeaways, .placeholder, .btn, a, th, td, pre, code, blockquote { transition: none; }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: var(--font-serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.18;
  margin: 0 0 .35em;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.lead { color: var(--ink-soft); font-size: 1.15rem; font-family: var(--font-serif); font-weight: 500; margin: .2em 0 .6em; }

/* header */
.site-header { border-bottom: 2px solid var(--ink); background: var(--bg); }
.masthead { text-align: center; padding: 30px 24px 16px; }
.masthead .brand-text { font-family: var(--font-serif); font-weight: 700; font-size: 2.2rem; letter-spacing: -0.01em; }
.masthead .brand-tag { display: block; font-size: .82rem; color: var(--ink-soft); margin-top: 2px; font-style: italic; }
.nav-strip { border-top: 1px solid var(--line); }
.nav-strip .wrap { position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 32px; padding: 12px 64px; }
.nav-strip a { font-size: .92rem; font-weight: 600; color: var(--ink-soft); padding-bottom: 3px; border-bottom: 2px solid transparent; }
.nav-strip a:hover, .nav-strip a.active { color: var(--teal); border-color: var(--gold); }

/* hero */
.hero { padding: 64px 0 52px; border-bottom: 1px solid var(--line); }
.hero-inner { text-align: center; }
.hero .eyebrow { color: var(--teal); font-weight: 600; font-size: .88rem; margin: 0; }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); max-width: 20ch; margin: 8px auto 12px; }
.hero .lead { max-width: 52ch; margin-left: auto; margin-right: auto; }
.btn-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 6px; font-weight: 600; border: 2px solid var(--teal); }
.btn-primary { background: var(--teal); color: var(--on-accent); }
.btn-secondary { color: var(--teal); }
.btn:hover { border-color: var(--gold); }

/* sections & grid */
.section { padding: 42px 24px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid var(--ink); margin-bottom: 26px; padding-bottom: 10px; }
.section-head h2 { font-size: 1.35rem; margin: 0; }
.section-head a { font-size: .85rem; font-weight: 600; color: var(--teal); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 30px; }

/* card: identical everywhere */
.card { display: flex; flex-direction: column; gap: 9px; }
.card-img-link { display: block; }
.card-img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius); }
.placeholder { display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--teal); font-size: .9rem; font-weight: 600; }
.card .cat, .post-head .cat { font-size: .78rem; font-weight: 600; color: var(--teal); }
.card h3 { font-size: 1.15rem; margin: 0; }
.card h3 a:hover { color: var(--teal); }
.card p { margin: 0; }
.card .excerpt { color: var(--ink-soft); font-size: .93rem; font-family: var(--font-serif); }
.card .meta { font-size: .78rem; color: var(--ink-soft); }

/* category card (Coverage / Topics) */
.cat-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cat-card:hover { border-color: var(--teal); }

/* how we work */
.how-list { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 30px; }
.how-list li { counter-increment: step; }
.how-list li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--teal); color: var(--on-accent); font-weight: 700; margin-bottom: 10px; }
.how-list h3 { font-size: 1.1rem; }
.how-list p { margin: 0; color: var(--ink-soft); font-size: .95rem; }
.how-list a { color: var(--teal); text-decoration: underline; }

/* footer */
.site-footer { border-top: 2px solid var(--ink); padding: 30px 0; margin-top: 20px; font-size: .85rem; color: var(--ink-soft); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; font-weight: 600; }
.footer-nav a:hover { color: var(--teal); }
.footer-legal { font-weight: 400; }
.footer-copy { margin: 0; }

/* single post / page */
.post-head { max-width: 72ch; margin: 0 auto; padding: 46px 24px 0; text-align: center; }
.post-head h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-top: 10px; }
.byline { font-size: .85rem; color: var(--ink-soft); margin: 10px 0 0; }
.post-cover { max-width: var(--max); margin: 28px auto 0; padding: 0 24px; }
.post-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius); }
.post-cover figcaption { overflow-wrap: anywhere; font-size: .78rem; color: var(--ink-soft); margin-top: 6px; text-align: right; }
.post-body { max-width: 68ch; margin: 26px auto 0; padding: 0 24px 60px; font-size: 1.12rem; font-family: var(--font-serif); font-weight: 400; }
.post-body { overflow-wrap: anywhere; }
.post-body p { margin: 0 0 1.15em; }
.post-body h2 { margin-top: 1.4em; font-size: 1.5rem; }
.post-body a { color: var(--teal); text-decoration: underline; }
.takeaways { font-family: var(--font-sans); background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 6px; padding: 16px 20px; margin: 0 0 1.6em; }
.takeaways h2 { font-size: 1.05rem; margin: 0 0 .5em; }
.takeaways ul { margin: 0; padding-left: 1.2em; }
.takeaways li { margin: .3em 0; font-size: 1rem; }
.faq { margin-top: 2em; border-top: 1px solid var(--line); padding-top: 1em; }
.faq h3 { font-size: 1.1rem; margin: 1.2em 0 .3em; }
.faq p { margin: 0 0 .8em; }
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.6em 0; }
.stat-strip div { padding: 16px 18px; border-left: 1px solid var(--line); }
.stat-strip div:first-child { border-left: none; }
.stat-num { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; color: var(--teal); display: block; }
.stat-label { font-size: .82rem; color: var(--ink-soft); }

/* list/category */
.page-head { padding: 42px 24px 18px; text-align: center; }
.page-head h1 { font-size: 2.1rem; }
.pagination { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 36px 0 0; }
.page-link { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; }
.page-item.active .page-link { background: var(--teal); color: var(--on-accent); border-color: var(--teal); }
.page-item.disabled { opacity: .4; }

/* rates by state */
.state-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.state { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.state-name { font-weight: 600; }
.state-note { font-size: .78rem; }
.state-live { background: var(--panel); }
.state-live .state-note { color: var(--teal); }
.state-live:hover { border-color: var(--teal); }
.state-soon { color: var(--ink-soft); opacity: .55; cursor: default; }

/* related articles */
.related { padding: 10px 0 50px; }

/* theme toggle (header, right of nav) */
.theme-toggle { -webkit-appearance: none; appearance: none; margin: 0; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); color: var(--ink-soft); cursor: pointer; }
.theme-toggle:hover { color: var(--teal); border-color: var(--teal); }
.theme-toggle:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* tables, code, quotes: readable in both themes */
.post-body table { overflow-wrap: normal; display: block; max-width: 100%; overflow-x: auto; width: 100%; border-collapse: collapse; margin: 1.4em 0; font-family: var(--font-sans); font-size: .95rem; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.post-body th { background: var(--panel); font-weight: 600; }
.post-body pre, .post-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.post-body code { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; padding: .1em .35em; }
.post-body pre { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; overflow-x: auto; }
.post-body pre code { background: none; border: 0; padding: 0; }
.post-body blockquote { margin: 1.4em 0; padding: .2em 1.2em; border-left: 4px solid var(--teal); color: var(--ink-soft); }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.post-cover figcaption a { text-decoration: underline; }

@media (max-width: 600px) {
  .nav-strip .wrap { gap: 6px 18px; padding: 10px 60px; }
  .masthead .brand-text { font-size: 1.9rem; }
}

/* calculators */
.calc-head { padding-top: 30px; }
.calc-head h1 { margin-top: 14px; }
.calc-head .lead { font-size: 1.05rem; margin-bottom: 0; }
.calc-steps { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.calc-steps a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; }
.calc-steps a:hover { border-color: var(--teal); }
.calc-steps b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--panel); font-size: .78rem; }
.calc-steps a[aria-current] { border-color: var(--teal); color: var(--teal); }
.calc-steps a[aria-current] b { background: var(--teal); color: var(--on-accent); }

.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: start; margin: 30px 0 10px; }
.calc fieldset, .calc-adv { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 6px; margin: 0 0 16px; min-width: 0; background: var(--bg); }
.calc legend { float: left; width: 100%; font-family: var(--font-serif); font-weight: 600; font-size: 1.12rem; padding: 0; margin: 0 0 16px; }
.calc legend + * { clear: both; }
.calc .field { margin: 0 0 18px; min-width: 0; }
.calc label, .calc .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.calc .opt { font-weight: 400; color: var(--ink-soft); }
.calc .hint { font-size: .82rem; color: var(--ink-soft); margin: 6px 0 0; line-height: 1.45; }
.calc .hint strong { color: var(--ink); }
.calc .hint a, .calc-note a { color: var(--teal); text-decoration: underline; }
.calc .unit { display: flex; align-items: center; height: 46px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.calc .unit:hover { border-color: var(--ink-soft); }
.calc .unit:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 22%, transparent); }
.calc .unit span { padding: 0 12px; color: var(--ink-soft); font-size: .88rem; white-space: nowrap; }
.calc .unit input { flex: 1; min-width: 0; width: 100%; height: 100%; margin: 0; border: 0; border-radius: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; padding: 0 12px; outline: none; -moz-appearance: textfield; appearance: textfield; }
.calc .unit input::placeholder { font-weight: 400; color: var(--ink-soft); opacity: .7; }
.calc .unit input::-webkit-outer-spin-button, .calc .unit input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc .unit span + input { padding-left: 0; }
.calc select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%), linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%); background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 30px !important; width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 6px; background-color: var(--bg); color: var(--ink); font: inherit; font-weight: 600; padding: 0 10px; }
.calc select:focus-visible { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 22%, transparent); }
.calc .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.calc .field-row .field { margin-bottom: 0; }
.calc .field-row { margin-bottom: 18px; }
.calc .hint-wide { grid-column: 1 / -1; }
.calc [hidden] { display: none !important; }
.calc .slider { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 14px; align-items: center; }
.calc input[type="range"] { width: 100%; height: 28px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.calc .seg { display: flex; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.calc .seg label { position: relative; flex: 1 1 0; min-width: 0; margin: 0; font-weight: 600; font-size: .9rem; cursor: pointer; text-align: center; }
.calc .seg input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; -webkit-appearance: none; appearance: none; }
.calc .seg span { display: block; padding: 9px 10px; border-radius: 5px; color: var(--ink-soft); transition: background-color .15s, color .15s; }
.calc .seg small { display: block; font-size: .75rem; font-weight: 400; margin-top: 1px; }
.calc .seg label:hover span { color: var(--ink); }
.calc .seg input:checked + span { background: var(--teal); color: var(--on-accent); }
.calc .seg input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.calc-adv { padding: 0; }
.calc-adv summary { display: block; position: relative; padding: 14px 84px 14px 22px; cursor: pointer; font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; list-style: none; }
.calc-adv summary::-webkit-details-marker { display: none; }
.calc-adv summary::after { content: "Change"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font: 600 .82rem var(--font-sans); color: var(--teal); }
.calc-adv[open] summary::after { content: "Hide"; }
.calc-adv summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: var(--radius); }
.calc-adv .adv-sum { display: block; margin-top: 2px; font: 400 .82rem var(--font-sans); color: var(--ink-soft); }
.calc-adv > .field, .calc-adv > .field-row { margin-left: 22px; margin-right: 22px; }

.calc-results { position: sticky; top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px; min-width: 0; scroll-margin-top: 16px; }
.calc-empty { text-align: center; padding: 34px 10px 30px; }
.calc-empty h2 { font-size: 1.2rem; }
.calc-empty p { color: var(--ink-soft); margin: 0 0 16px; }
.calc-empty .btn { -webkit-appearance: none; appearance: none; color: var(--teal); margin: 0; font: 600 .9rem var(--font-sans); background: var(--bg); cursor: pointer; padding: 10px 16px; }
.calc .stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.calc .stat-k { font-size: .75rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.calc .stat-v { font-family: var(--font-serif); font-weight: 600; font-size: 1.3rem; font-variant-numeric: tabular-nums; line-height: 1.2; }
.calc .stat-s { font-size: .82rem; color: var(--ink-soft); line-height: 1.4; margin: 0; }
.calc .stat-big .stat-v { font-size: clamp(2.3rem, 5vw, 3rem); color: var(--teal); line-height: 1.1; margin: 2px 0 4px; }
.calc .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.calc .stat-grid .stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.cover { margin-top: 20px; }
.cover-row { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: .84rem; margin-bottom: 8px; }
.cover-row span { color: var(--ink-soft); }
.cover-row b { font-variant-numeric: tabular-nums; }
.cover-track { height: 12px; }
.cover-track i { display: block; height: 100%; min-width: 4px; border-radius: 3px; transition: width .25s; }
.cover-use { background: var(--ink-soft); opacity: .45; }
.cover-sun { background: var(--gold); }
.calc-next { display: block; text-align: center; margin-top: 18px; }
.calc-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.link-btn { -webkit-appearance: none; appearance: none; background: none; border: 0; border-radius: 0; margin: 0; padding: 4px 0; font: 600 .84rem var(--font-sans); color: var(--teal); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.link-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.calc-note { font-size: .8rem; color: var(--ink-soft); margin: 10px 0 0; }
.calc-chart { margin: 20px 0 0; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 8px; }
.calc-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.calc-chart figcaption { font-size: .75rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.calc-chart .c-line { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.calc-chart .c-gain { fill: var(--teal); opacity: .14; }
.calc-chart .c-loss { fill: var(--gold); opacity: .18; }
.calc-chart .c-zero, .calc-chart .c-tick { stroke: var(--ink-soft); stroke-width: 1; opacity: .6; }
.calc-chart .c-pb { stroke: var(--teal); stroke-width: 1; stroke-dasharray: 3 3; }
.calc-chart .c-dot { fill: var(--bg); stroke: var(--teal); stroke-width: 2.5; }
.calc-chart .c-lab { font: 600 12px var(--font-sans); fill: var(--ink); font-variant-numeric: tabular-nums; }
.calc-chart .c-soft { font-weight: 400; fill: var(--ink-soft); }
.calc-table { width: 100%; border-collapse: collapse; margin: 18px 0 0; font-size: .86rem; font-variant-numeric: tabular-nums; }
.calc-table caption { text-align: left; font-size: .75rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.calc-table th { font-weight: 600; color: var(--ink-soft); font-size: .8rem; }
.calc-table th, .calc-table td { border-bottom: 1px solid var(--line); padding: 7px 10px 7px 0; text-align: left; }
.calc-table th:not(:first-child), .calc-table td:not(:first-child) { white-space: nowrap; text-align: right; padding-right: 0; padding-left: 10px; }
.calc-flags { list-style: none; margin: 16px 0 0; padding: 12px 14px; border-left: 4px solid var(--gold); background: var(--bg); border-radius: 4px; font-size: .86rem; }
.calc-flags li + li { margin-top: 6px; }
.calc-years { margin-top: 16px; font-size: .9rem; }
.calc-years summary { cursor: pointer; font-weight: 600; font-size: .84rem; color: var(--teal); }
.calc-years > table { display: block; overflow-x: auto; max-height: 320px; overflow-y: auto; }
.calc-bar { display: none; }
.calc-hub { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.calc-hub-card { display: block; padding: 24px; }
.calc-hub-step { display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--teal); margin-bottom: 8px; }
.calc-hub-card h2 { font-size: 1.3rem; }
.calc-hub-card p { color: var(--ink-soft); margin: 0 0 20px; }
.calc-hub-go { display: inline-block; padding: 11px 20px; font-size: .95rem; text-align: center; }
.calc-hub-card:hover .calc-hub-go { border-color: var(--gold); }
.calc-hub-note { color: var(--ink-soft); margin: 24px 0 0; }
.calc-hub-note a { color: var(--teal); text-decoration: underline; }
@media (max-width: 860px) {
  .calc { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 22px; }
  .calc-results { position: static; padding: 20px 18px; }
  .calc fieldset { padding: 18px 16px 4px; }
  .calc-adv summary { padding: 14px 78px 14px 16px; }
  .calc-adv summary::after { right: 16px; }
  .calc-adv > .field, .calc-adv > .field-row { margin-left: 16px; margin-right: 16px; }
  .calc-page > .wrap { padding: 0 16px; }
  .calc-page { padding-bottom: 64px; }
  .calc-bar:not([hidden]) { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--teal); color: var(--on-accent); box-shadow: 0 -4px 16px rgba(0, 0, 0, .18); }
  .calc-bar small { display: block; font-size: .75rem; opacity: .85; }
  .calc-bar strong { font-family: var(--font-serif); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
  .calc-bar-go { font-size: .84rem; font-weight: 600; white-space: nowrap; }
}
@media (max-width: 560px) { .calc-chart .c-lab { font-size: 17px; } }
@media (max-width: 860px) {
  .calc input[type="range"] { height: 44px; }
  .calc-steps a { min-height: 44px; }
  .link-btn { min-height: 44px; padding: 0 2px; }
  .calc-actions { gap: 0 22px; margin-top: 14px; padding-top: 6px; }
  .calc-years summary { padding: 12px 0; }
  .calc-years { margin-top: 6px; }
  .calc .hint { font-size: .84rem; }
  .calc-head { padding-top: 22px; }
  .calc-head h1 { font-size: 1.7rem; }
  .calc-head .lead { font-size: 1rem; }
  .calc-page .post-body { font-size: 1.05rem; }
  .calc-page .post-body table { font-size: .86rem; }
  .calc-page .post-body th, .calc-page .post-body td { min-width: 84px; padding: 8px 9px; overflow-wrap: normal; }
  .calc-page .post-body th:first-child, .calc-page .post-body td:first-child { min-width: 104px; }
}
@media (max-width: 440px) {
  .calc .field-row { grid-template-columns: 1fr; gap: 18px 0; }
}
@media (max-width: 400px) {
  .calc .stat-grid { grid-template-columns: 1fr; }
  .calc .seg-full { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .cover-track i, .calc .unit, .calc .seg span { transition: none; } }

/* phones: one-row scrolling menu, and tidier calculators hub */
@media (max-width: 760px) {
  .nav-strip { position: relative; }
  .nav-strip .wrap { position: static; display: block; white-space: nowrap; padding: 0 60px 0 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nav-strip .wrap::-webkit-scrollbar { display: none; }
  .nav-strip a { display: inline-block; white-space: nowrap; padding: 13px 0 10px; margin-right: 22px; }
  .nav-strip a:last-of-type { margin-right: 0; }
  .theme-toggle { position: absolute; right: 0; top: 0; bottom: 0; transform: none; width: 52px; height: 100%; margin: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: -14px 0 14px -6px var(--bg); }
  .page-head { padding: 28px 20px 6px; }
  .page-head h1 { font-size: 1.8rem; }
  .page-head .lead { font-size: 1.02rem; }
  .calc-hub { gap: 16px; }
  .calc-hub-card { padding: 20px; }
  .calc-hub-go { display: block; }
  .calc-hub-note { font-size: .95rem; }
}

/* state hubs, news → state linking */
.crumbs { font-family: var(--font-sans); font-size: .8rem; color: var(--ink-soft); }
.crumbs a { color: var(--teal); }
.hub-summary { text-align: left; }
.hub-updated { font-family: var(--font-sans); font-size: .82rem; color: var(--ink-soft); margin: .4em 0 0; }
.hub-updated a, .state-callout a { color: var(--teal); text-decoration: underline; }
.toc { font-family: var(--font-sans); font-size: .92rem; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px 18px; margin: 0 0 1.4em; }
.toc ol { margin: .4em 0 0; padding-left: 1.3em; columns: 2; column-gap: 28px; }
.toc li { margin: .15em 0; break-inside: avoid; }
.rate-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 1em 0; font-family: var(--font-sans); }
.rate-stats div { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: var(--panel); }
.rate-stats dt { font-size: .74rem; color: var(--ink-soft); line-height: 1.3; }
.rate-stats dd { margin: 4px 0 0; font-size: 1.35rem; font-weight: 700; }
.rate-stats small { font-size: .7rem; font-weight: 500; color: var(--ink-soft); }
.chg-up { color: #B4532A; }
.chg-down { color: var(--teal); }
:root[data-theme="dark"] .chg-up { color: #E6976F; }
.rate-bars { margin: 1em 0 1.4em; font-family: var(--font-sans); font-size: .88rem; }
.rb-row { display: grid; grid-template-columns: 9.5em 1fr 4.2em; align-items: center; gap: 10px; margin: 6px 0; }
.rb-track { background: var(--panel); border-radius: 4px; height: 18px; overflow: hidden; }
.rb-bar { display: block; height: 100%; border-radius: 4px; }
.rb-prev { background: var(--line); }
.rb-now { background: var(--teal); }
.rb-us { background: var(--gold); }
.rb-val { text-align: right; font-weight: 600; }
.rate-bars figcaption, .rate-chart figcaption { font-size: .78rem; color: var(--ink-soft); margin-top: 8px; }
.rate-chart { margin: 1em 0 1.4em; }
.rate-chart svg { width: 100%; height: auto; display: block; font-family: var(--font-sans); }
.rc-grid { stroke: var(--line); stroke-width: 1; }
.rc-ax { fill: var(--ink-soft); font-size: 11px; }
.rc-state { fill: none; stroke: var(--teal); stroke-width: 2.5; }
.rc-us { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 4 3; }
.rc-key { display: inline-block; width: 14px; height: 3px; vertical-align: middle; margin: 0 5px 0 2px; }
.rc-key-state { background: var(--teal); } .rc-key-us { background: var(--gold); }
.nm-status { font-family: var(--font-sans); font-size: .95rem; border-left: 4px solid var(--gold); padding: 6px 12px; background: var(--panel); border-radius: 4px; }
.nm-status span { font-weight: 700; }
.fed-box { font-family: var(--font-sans); font-size: 1rem; background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 6px; padding: 4px 20px 10px; margin: 2em 0; }
.fed-box h2 { font-size: 1.2rem; }
.fed-box .fed-src { font-size: .8rem; color: var(--ink-soft); }
.hub-sources { font-family: var(--font-sans); font-size: .85rem; color: var(--ink-soft); border-top: 1px solid var(--line); margin-top: 2em; padding-top: .6em; }
.hub-sources h3 { font-size: .9rem; margin: .4em 0; }
.hub-sources ul { padding-left: 1.2em; margin: 0; }
.hub-detail { border-top: 3px solid var(--line); margin-top: 2.4em; padding-top: .4em; }
.hub-kicker { font-family: var(--font-sans); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep); margin: .8em 0 0 !important; }
.hub-detail > h2 { margin-top: .2em; }
.hub-detail .takeaways h3 { font-size: 1.05rem; margin: 0 0 .5em; }
.hub-news ul { list-style: none; padding: 0; font-family: var(--font-sans); font-size: 1rem; }
.hub-news li { border-bottom: 1px solid var(--line); padding: 10px 0; }
.hub-news time { font-size: .8rem; color: var(--ink-soft); margin-left: 6px; }
.hub-news li span { display: block; font-size: .88rem; color: var(--ink-soft); margin-top: 3px; }
.hub-nearby .state-grid { margin-top: .6em; font-family: var(--font-sans); font-size: .95rem; }
.state-rate { font-size: 1.15rem; font-weight: 700; }
.state-rate small { font-size: .7rem; font-weight: 500; color: var(--ink-soft); }
.state-note .vs { color: var(--ink-soft); }
.region-h { font-size: 1.3rem; margin: 0 0 .6em; }
.state-callout { font-family: var(--font-sans); font-size: .95rem; font-weight: 600; margin: .6em 0 0; }
.state-box { font-family: var(--font-sans); font-size: 1rem; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 6px; padding: 4px 20px 8px; margin: 2em 0 0; }
.state-box h2 { font-size: 1.1rem; }
.state-box ul { padding-left: 1.2em; }
.state-box li { margin: .4em 0; }
@media (max-width: 600px) {
  .rate-stats { grid-template-columns: 1fr; }
  .rate-stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .rate-stats dd { margin: 0; font-size: 1.15rem; white-space: nowrap; }
  .toc ol { columns: 1; }
  .rb-row { grid-template-columns: 7.2em 1fr 3.8em; font-size: .82rem; }
}

/* Battery sizing tool: load rows */
.calc .load-head, .calc .load-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: center; }
.calc .load-head { font-size: .78rem; font-weight: 600; color: var(--ink-soft); margin: 0 0 6px; }
.calc .load-row { margin-bottom: 10px; }
.calc .load-name { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; font-size: .9rem; cursor: pointer; }
.calc .load-name input { width: 18px; height: 18px; accent-color: var(--teal); flex: none; }
.calc .load-row .unit { height: 40px; }
@media (max-width: 560px) { .calc .load-head, .calc .load-row { grid-template-columns: 1fr 1fr; } .calc .load-head span:first-child { display: none; } .calc .load-name { grid-column: 1 / -1; } }
.calc-hub-sub{margin:2.5rem 0 1rem;font-size:1.25rem}
