/* Home Power Advisor — site styles
   Layout: full-width colour bands (forest / cream / sand) with a 1180px inner wrap.
   Palette: forest greens, cream and sand, one amber accent. Type: slab display + humanist sans. */
:root {
  --forest-950: #101a12;
  --forest-900: #16261a;
  --forest-800: #1f3620;
  --forest-700: #28481f;
  --moss: #4d6b3c;
  --cream: #f3eee2;
  --paper: #fbf8f1;
  --sand: #e4dbc5;
  --line: #d0c5ab;
  --ink: #22281f;
  --bark: #5b4d3a;
  --amber: #ec8f04;
  --amber-ink: #8a4f00;
  --rust: #9c3f1c;
  --ok: #2c6a38;
  --display: "Alfa Slab One", Rockwell, "Roboto Slab", Georgia, serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.6;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--forest-700); text-underline-offset: 0.18em; }
a:hover { color: var(--amber-ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; line-height: 1.2; }
h4 { font-family: var(--body); font-weight: 700; font-size: 1.05rem; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.2em; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: var(--ink); padding: 0.6rem 1rem; z-index: 50; }
.skip:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.stack { display: grid; gap: 1rem; }
.stack--lg { gap: 1.75rem; }
.stack > * { min-width: 0; }
.measure { max-width: 68ch; }

/* ---------- header ---------- */
.site-header { background: var(--forest-900); color: #fff; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; border-bottom: 3px solid var(--forest-950); }
.site-header__in { display: flex; align-items: center; gap: 1rem 1.5rem; min-height: 72px; flex-wrap: wrap; padding-block: 0.6rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; font-family: var(--display); font-size: 1.15rem; line-height: 1; }
.brand:hover { color: #fff; }
.brand svg { width: 44px; height: 44px; flex: none; }
.nav { display: flex; gap: 0.2rem 1.15rem; flex-wrap: wrap; margin-left: auto; }
.nav a { color: #e9e6da; text-decoration: none; font-weight: 600; font-size: 1.02rem; padding: 0.35rem 0; border-bottom: 3px solid transparent; }
.nav a:hover { color: #fff; border-bottom-color: #ffffff55; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--amber); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid #ffffff66; color: #fff; font: inherit; font-weight: 700; padding: 0.35rem 0.8rem; border-radius: var(--radius); cursor: pointer; }
@media (max-width: 1200px) {
  .nav-toggle { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 0; order: 5; margin: 0; padding-bottom: 0.5rem; }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid #ffffff22; }
  .header-cta { order: 3; }
}
@media (max-width: 520px) { .header-cta { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-block; font: inherit; font-weight: 700; text-decoration: none; padding: 0.8rem 1.4rem; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; line-height: 1.2; text-align: center; }
.btn--amber { background: var(--amber); color: #1c1608; box-shadow: 0 3px 0 #a86400; }
.btn--amber:hover { background: #ffa21f; color: #1c1608; }
.btn--ghost { border-color: #ffffffaa; color: #fff; }
.btn--ghost:hover { background: #ffffff1f; color: #fff; }
.btn--forest { background: var(--forest-700); color: #fff; box-shadow: 0 3px 0 var(--forest-950); }
.btn--forest:hover { background: var(--forest-800); color: #fff; }
.btn--line { border-color: var(--forest-700); color: var(--forest-700); background: transparent; }
.btn--line:hover { background: var(--forest-700); color: #fff; }
.btn--sm { padding: 0.5rem 0.9rem; font-size: 0.98rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.more { font-weight: 700; text-decoration: none; }
.more::after { content: "\00a0\2192"; }

/* ---------- bands ---------- */
.band { padding-block: clamp(2.8rem, 6vw, 5rem); }
.band--tight { padding-block: clamp(1.8rem, 4vw, 3rem); }
.band--paper { background: var(--paper); }
.band--sand { background: var(--sand); }
.band--dark { background: var(--forest-900); color: #f1eee3; }
.band--forest { background: var(--forest-700); color: #f4f1e6; }
.band--dark a:not(.btn), .band--forest a:not(.btn) { color: #ffc566; }
.eyebrow { font-weight: 700; font-size: 0.92rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-ink); }
.band--dark .eyebrow, .band--forest .eyebrow, .hero .eyebrow { color: #ffb53d; }
.lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.5; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head > div { display: grid; gap: 0.6rem; min-width: 0; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--forest-800) center / cover no-repeat; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, #0d160fd9 0%, #0d160fb0 45%, #0d160f55 100%); }
.hero .wrap { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem); display: grid; gap: 1.3rem; }
.hero h1 { max-width: 17ch; text-shadow: 0 2px 0 #00000055; }
.hero p.lede { max-width: 52ch; color: #f1eee3; }
.hero--page .wrap { padding-block: clamp(2.5rem, 6vw, 4.2rem); }
.hero--page h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 22ch; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; padding: 0; margin: 0.5rem 0 0; list-style: none; font-weight: 600; color: #f1eee3; }
.hero-facts li::before { content: "\2713\00a0"; color: #ffb53d; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
/* Three-up and four-up card rows. Narrow: one column. Medium: two columns for four or more cards,
   or wide side-by-side cards when there are only three. Wide: the full row. */
.grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) {
  .grid--4, .grid--3:has(> :nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3:not(:has(> :nth-child(4))) > .card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
  .grid--3:not(:has(> :nth-child(4))) > .card > a, .grid--3:not(:has(> :nth-child(4))) > .card > .card__img { height: 100%; }
  .grid--3:not(:has(> :nth-child(4))) > .card .card__img { aspect-ratio: auto; height: 100%; min-height: 11rem; }
}
@media (min-width: 900px) {
  .grid--3, .grid--3:has(> :nth-child(4)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--3:not(:has(> :nth-child(4))) > .card { display: flex; }
  .grid--3:not(:has(> :nth-child(4))) > .card .card__img { aspect-ratio: 16 / 10; height: auto; min-height: 0; }
}
@media (min-width: 1100px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); }
.card__img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--sand); }
.card__body { padding: 1.3rem 1.4rem 1.5rem; display: grid; gap: 0.6rem; align-content: start; flex: 1; }
.card__body .more { margin-top: 0.3rem; }
.card__body, .plain-card { font-size: 1.03rem; line-height: 1.55; }
.card__body h3, .plain-card h3 { font-size: 1.25rem; }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-ink); }
.meta { color: var(--bark); font-size: 0.95rem; }
.plain-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; display: grid; gap: 0.6rem; align-content: start; }
.band--dark .plain-card { background: var(--forest-800); border-color: #ffffff22; color: #f1eee3; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split > * { min-width: 0; }
.split__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--sand); }
.split--flip > :first-child { order: 2; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split--flip > :first-child { order: 0; } }

.quote { font-family: var(--display); font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.2; max-width: 26ch; margin: 0 auto; text-align: center; text-wrap: balance; }
.quote::before { content: "\201C"; display: block; color: var(--amber); font-size: 2.2em; line-height: 0.6; margin-bottom: 0.15em; }

/* ---------- tiers (power-cut levels) ---------- */
.tiers { display: grid; gap: 0; border: 1px solid #f3eee233; border-radius: var(--radius); overflow: hidden; container-type: inline-size; }
.tier { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name gap" "desc desc"; gap: 0.3rem 1rem; padding: 1rem 1.2rem; align-items: baseline; background: #2f4e32; border-top: 1px solid #f3eee233; }
.tier strong { grid-area: name; }
.tier > span:not(.tier__gap) { grid-area: desc; font-size: 1.03rem; line-height: 1.5; color: #ebe3cf; }
.tier .tier__gap { grid-area: gap; }
@container (min-width: 620px) {
  .tier { grid-template-columns: 10rem minmax(0, 1fr) 9rem; grid-template-areas: "name desc gap"; gap: 0.5rem 1.5rem; padding: 1.1rem 1.3rem; }
}
.tier:first-child { border-top: 0; }
.tier > * { min-width: 0; }
.tier strong { font-family: "Zilla Slab", Rockwell, Georgia, serif; font-weight: 600; font-size: 1.3rem; letter-spacing: 0.02em; line-height: 1.2; color: #f6f0e1; }
.tier .tier__gap { font-weight: 700; color: #ffb53d; text-align: right; }


/* ---------- prose ---------- */
.prose { display: grid; gap: 1.1rem; max-width: 70ch; }
.prose > * { min-width: 0; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.2rem; }
.prose h3 { margin-top: 0.6rem; }
.prose li + li { margin-top: 0.35rem; }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 0; padding: 0.2rem 0 0.2rem 1.1rem; border-left: 4px solid var(--amber); color: var(--bark); }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; background: var(--sand); }
.notice { background: var(--paper); border: 2px solid var(--amber-ink); border-radius: var(--radius); padding: 1rem 1.2rem; display: grid; gap: 0.4rem; font-size: 1rem; }
.notice strong { color: var(--amber-ink); }
.checked { font-size: 0.95rem; color: var(--bark); }

/* ---------- forms ---------- */
.field { display: grid; gap: 0.3rem; }
.field label, .field .label { font-weight: 700; font-size: 1rem; }
.field .hint { font-size: 0.9rem; color: var(--bark); line-height: 1.4; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea {
  font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 0.55rem 0.7rem; width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--forest-700); }
textarea { min-height: 8rem; resize: vertical; }
input[type="range"] { width: 100%; accent-color: var(--forest-700); height: 2rem; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--forest-700); width: 1.15rem; height: 1.15rem; flex: none; }
.unit { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.5rem; }
.unit span { color: var(--bark); font-weight: 600; font-size: 0.95rem; min-width: 3.2rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1rem 1.2rem; }
.form-grid > * { min-width: 0; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.3rem; margin: 0; background: var(--paper); min-width: 0; }
legend { font-family: var(--display); font-size: 1.15rem; padding: 0 0.5rem; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.chips span { display: block; padding: 0.5rem 0.95rem; border: 2px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: 1rem; }
.chips input:checked + span { background: var(--forest-700); border-color: var(--forest-700); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

input[type="time"] { font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 0.45rem 0.6rem; min-width: 0; width: 8.2rem; }
input[type="time"]:focus { border-color: var(--forest-700); }

/* ---------- time-of-use bands ---------- */
.tou { display: grid; gap: 0.9rem; }
.tou-bands { display: grid; gap: 0.8rem; container-type: inline-size; }
.tou-band { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.85rem 0.95rem 0.95rem; display: grid; gap: 0.7rem; min-width: 0; }
.tou-band__head { display: grid; gap: 0.1rem; }
.tou-band__head strong { font-size: 1.05rem; }
.tou-band__head span { font-size: 0.9rem; color: var(--bark); line-height: 1.35; }
.tou-band__nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem 1rem; }
.tou-band__nums .field label { font-size: 0.95rem; }
.tou-times { display: grid; gap: 0.5rem; }
.tou-time { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; }
.tou-time label { display: flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.95rem; }
.tou-remove, .tou-add { font: inherit; font-size: 0.92rem; font-weight: 600; background: none; border: 0; padding: 0.3rem 0; color: var(--forest-700); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; }
.tou-remove { color: var(--rust); }
.tou-add[hidden], .tou-remove[hidden] { display: none; }
.tou-summary { display: grid; gap: 0.6rem; font-size: 0.95rem; }
.tou-summary:empty { display: none; }
.tou-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; font-variant-numeric: tabular-nums; }
.tou-table th, .tou-table td { text-align: left; padding: 0.35rem 0.5rem 0.35rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tou-table th { font-weight: 700; }
.tou-table small { color: var(--bark); }
.tou-notes { margin: 0; padding-left: 1.2rem; color: var(--rust); display: grid; gap: 0.3rem; }
@container (max-width: 360px) {
  .tou-band__nums { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem; align-items: start; }
@media (max-width: 1080px) { .calc { grid-template-columns: 1fr; } }
.calc__inputs { display: grid; gap: 1.2rem; }
.calc__out { display: grid; gap: 1.2rem; position: sticky; top: 96px; }
@media (max-width: 1080px) { .calc__out { position: static; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.8rem; }
.calc__out .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { background: var(--forest-900); color: #fff; border-radius: var(--radius); padding: 0.9rem 1rem; display: grid; gap: 0.15rem; align-content: start; }
.stat b { font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; color: #ffb53d; }
.stat span { font-size: 0.92rem; color: #e6e2d4; line-height: 1.3; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; display: grid; gap: 0.8rem; }
.panel > * { min-width: 0; }
.bars { display: grid; gap: 0.55rem; }
.bar { display: grid; grid-template-columns: 11.5rem 1fr 4.2rem; gap: 0.6rem; align-items: center; font-size: 0.98rem; }
.bar__track { background: var(--sand); height: 1.1rem; border-radius: 2px; overflow: hidden; }
.bar__fill { height: 100%; background: var(--moss); min-width: 2px; }
.bar--solar .bar__fill { background: var(--amber); }
.bar--loan .bar__fill { background: var(--rust); }
.bar b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .bar { grid-template-columns: 1fr 4.2rem; } .bar__track { grid-column: 1 / -1; order: 3; } }
.verdict { display: grid; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.verdict li { padding-left: 1.6rem; position: relative; }
.verdict li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.verdict .good::before { content: "\2713"; color: var(--ok); }
.verdict .bad::before { content: "\2717"; color: var(--rust); }
.verdict .info::before { content: "\2022"; color: var(--bark); }
.chart > svg { width: 100%; height: auto; display: block; }
.chart-key { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.chart-key span { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.compare-table td:last-child, .compare-table th:last-child { text-align: right; }
.mini-calc { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 1.4rem 1.5rem; display: grid; gap: 1rem; border: 1px solid var(--line); }
.mini-calc .stat { background: var(--forest-900); }

/* ---------- finder ---------- */
.finder { display: grid; gap: 1.6rem; }
.finder__q { display: grid; gap: 1.1rem; }
.appl-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.appl-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 0 2rem; container-type: inline-size; }
.appl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "cb name qty w" ". note note note"; gap: 0.15rem 0.6rem; align-items: center; padding: 0.55rem 0; border-bottom: 1px dashed var(--line); font-size: 1rem; }
.appl > * { min-width: 0; }
.appl > input[type="checkbox"] { grid-area: cb; }
.appl label { grid-area: name; font-weight: 600; line-height: 1.3; }
.appl .appl__note { grid-area: note; color: var(--bark); font-size: 0.88rem; line-height: 1.35; }
.appl .appl__qty { grid-area: qty; }
.appl .appl__w { grid-area: w; }
.appl .appl__qty, .appl .appl__w { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--bark); font-size: 0.9rem; font-weight: 600; }
.appl input[type="number"] { padding: 0.3rem 0.35rem; font-size: 0.95rem; text-align: right; }
.appl .appl__qty input { width: 3rem; }
.appl .appl__w input { width: 4.4rem; }
@container (max-width: 439px) {
  .appl { grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "cb name name" ". note note" ". qty w"; row-gap: 0.3rem; }
  .appl .appl__w { justify-self: start; }
}
.need { background: var(--forest-900); color: #fff; border-radius: var(--radius); padding: 1.2rem 1.4rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem 1.5rem; }
.need div { display: grid; gap: 0.1rem; }
.need b { font-family: var(--display); font-weight: 400; font-size: 1.9rem; color: #ffb53d; line-height: 1.1; font-variant-numeric: tabular-nums; }
.need span { font-size: 0.95rem; color: #e6e2d4; }
.toolbar { display: flex; flex-wrap: wrap; gap: 0.8rem 1.5rem; align-items: end; justify-content: space-between; }
.toolbar .field { min-width: 12rem; }
.results { display: grid; gap: 0.9rem; }
.result { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.6rem 1.5rem; }
.result h3 { font-size: 1.2rem; }
.result__nums { display: grid; grid-template-columns: repeat(3, auto); gap: 0.2rem 1.4rem; align-content: start; text-align: right; font-variant-numeric: tabular-nums; }
.result__nums div { display: grid; }
.result__nums b { font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
.result__nums span { font-size: 0.82rem; color: var(--bark); text-transform: uppercase; letter-spacing: 0.06em; }
.result__main { display: grid; gap: 0.45rem; }
.badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.badge { font-size: 0.82rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--sand); color: var(--ink); }
.badge--ok { background: #d5e6d0; color: #1d4a26; }
.badge--warn { background: #f6dfc4; color: #6e3a00; }
.badge--dark { background: var(--forest-800); color: #fff; }
@media (max-width: 700px) { .result { grid-template-columns: 1fr; } .result__nums { text-align: left; justify-content: start; } }
.empty { padding: 1.5rem; border: 2px dashed var(--line); border-radius: var(--radius); text-align: center; background: var(--paper); }
.recommend { background: var(--sand); border-radius: var(--radius); padding: 1.1rem 1.3rem; display: grid; gap: 0.3rem; }

.picks-title { margin: 1.4rem 0 0.8rem; }
.result--pick { border: 2px solid var(--forest-700); background: #fff; }
.pick-label { justify-self: start; background: var(--forest-700); color: #fff; font-weight: 700; font-size: 0.85rem; padding: 0.2rem 0.7rem; border-radius: 999px; }
.more-details summary { cursor: pointer; font-weight: 700; color: var(--forest-700); font-size: 0.98rem; }
.more-details table { margin-top: 0.6rem; font-size: 0.95rem; }
.more-details th { width: 13rem; background: transparent; }
.draft-banner { background: #f6dfc4; color: #4a2a00; border-bottom: 2px solid var(--amber-ink); padding-block: 0.8rem; }
.draft-banner .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 1.5rem; align-items: center; justify-content: space-between; }

/* ---------- admin ---------- */
.admin-steps { display: grid; gap: 1.5rem; }
.drop { border: 2px dashed var(--forest-700); border-radius: var(--radius); background: var(--paper); padding: 1.6rem; display: grid; gap: 0.7rem; justify-items: start; }
.drop.is-over { background: #e6efdf; }
.status-pill { display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 0.12rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.status-pill--shown { background: #d5e6d0; color: #1d4a26; }
.status-pill--held { background: #f6dfc4; color: #6e3a00; }
.admin-table td, .admin-table th { font-size: 0.92rem; padding: 0.45rem 0.6rem; }
.admin-table td.n { text-align: right; white-space: nowrap; }
.issue-list { display: grid; gap: 0.3rem; padding-left: 1.2rem; }
.issue-list .error { color: var(--rust); font-weight: 600; }
.msg { padding: 0.8rem 1rem; border-radius: var(--radius); background: var(--sand); overflow-wrap: anywhere; }
input[type="file"] { max-width: 100%; font: inherit; }
.drop { min-width: 0; }
.drop > * { min-width: 0; max-width: 100%; }
.msg--ok { background: #d5e6d0; color: #1d4a26; }
.msg--bad { background: #f3d6cb; color: #6b230c; }

/* ---------- system diagrams ---------- */
.diagram { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem; }
.diagram svg { display: block; width: 100%; height: auto; }
.proscons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem 2rem; }
.proscons ul { list-style: none; padding: 0; display: grid; gap: 0.35rem; font-size: 1.03rem; line-height: 1.5; }
.proscons .pro li::before { content: "\2713\00a0"; color: var(--ok); font-weight: 700; }
.proscons .con li::before { content: "\2717\00a0"; color: var(--rust); font-weight: 700; }
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 0.9rem 1.5rem; padding: 0; margin: 0; }
.spec div { display: grid; gap: 0.1rem; }
.spec dt { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--bark); }
.spec dd { margin: 0; font-weight: 600; font-size: 1.03rem; line-height: 1.45; }
.jump { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.jump a { display: block; padding: 0.4rem 0.9rem; border: 2px solid var(--forest-700); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 0.98rem; }
.jump a:hover { background: var(--forest-700); color: #fff; }

/* ---------- article ---------- */
.article-head { display: grid; gap: 0.8rem; max-width: 70ch; }
.article-img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); background: var(--sand); }

/* ---------- footer ---------- */
.site-footer { background: var(--forest-950); color: #cfcbbb; padding-block: 3rem 2rem; font-size: 1rem; }
.site-footer a { color: #cfcbbb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(150px, 1fr)); gap: 2rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { font-family: var(--body); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin-bottom: 0.8rem; }
.footer-grid ul { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.footer-brand { display: grid; gap: 1rem; align-content: start; }
.footer-legal { border-top: 1px solid #ffffff22; margin-top: 2.2rem; padding-top: 1.2rem; display: grid; gap: 0.4rem; font-size: 0.92rem; color: #a9a593; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .site-header, .site-footer, .btn { display: none; } body { background: #fff; } }

/* sliders with a value read-out (calculator) */
.range { display: grid; grid-template-columns: minmax(0, 1fr) 3.6rem; align-items: center; gap: 0.7rem; }
.range output { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; color: var(--forest-900); }
.bar span small { display: block; font-size: 0.85rem; color: var(--bark); font-weight: 400; }

/* calculator: what to work out, and the battery-only explainer */
.calc-mode { display: grid; gap: 0.6rem; }
.calc-mode__q { font-family: var(--display); font-size: 1.25rem; margin: 0; }
.bo-explain { background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--amber); border-radius: var(--radius); padding: 1.3rem 1.4rem; display: grid; gap: 1rem; }
.bo-explain[hidden] { display: none; }
.bo-explain h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; }
.bo-steps { list-style: none; counter-reset: bo; margin: 0; padding: 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.bo-steps li { counter-increment: bo; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1rem 1rem; display: grid; gap: 0.3rem; align-content: start; }
.bo-steps li::before { content: counter(bo); font-family: var(--display); font-size: 1.5rem; line-height: 1; color: var(--amber-ink); }
.price-drop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem; }
.price-drop > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 1rem; display: grid; gap: 0.1rem; }
.price-drop > div + div { border-color: var(--moss); }
.price-drop b { font-family: var(--display); font-weight: 400; font-size: 1.8rem; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--forest-900); }
.price-drop span { font-size: 0.92rem; color: var(--bark); }
[data-solar][hidden], #f-export[hidden], #f-grid[hidden], #tou-stack[hidden], #bo-fields[hidden] { display: none; }
.field--wide { grid-column: 1 / -1; }
.field--wide[hidden], #f-bo-install[hidden] { display: none; }
select { text-overflow: ellipsis; }
input[readonly] { background: var(--sand); color: var(--ink); }

/* tariff comparison and half-hourly prices */
.tc-checks { display: grid; gap: 0.4rem; }
.tc-table td small { color: var(--bark); font-size: 0.86rem; line-height: 1.35; display: inline-block; margin-top: 0.15rem; }
.tc-table td:nth-child(n+2) { white-space: nowrap; vertical-align: top; }
.tc-kind { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--bark); font-weight: 700; }
.tc-good { color: var(--ok); font-weight: 700; }
.tc-bad { color: var(--rust); font-weight: 700; }
.tc-off td { opacity: 0.6; }
.hh-box { display: grid; gap: 0.7rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1rem; }
.hh-box[hidden], #f-unit[hidden], #f-sc[hidden], #f-tr-cheap[hidden], #f-tr-hours[hidden], #f-tr-share[hidden], #tariff-compare[hidden], .tou[hidden] { display: none; }
.hh-chart svg { width: 100%; height: auto; display: block; }
#f-tr-hours .tou-time { flex-wrap: wrap; }
#c-postcode { text-transform: uppercase; }
.tc-table th { white-space: nowrap; }
.pkg { border-left: 6px solid var(--moss); }
.pkg[hidden] { display: none; }
.pkg h3 { margin: 0; }
.pkg ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }

/* plug-in solar page */
.field .hint.warn { color: #9c3f1c; font-weight: 600; }
.kit-table td { vertical-align: top; }
.kit-table td small { color: var(--bark); }
.kit-table .stock--out { color: #9c3f1c; font-weight: 600; }
.kit-table .btn { white-space: nowrap; }
.facing { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.facing__dial { flex: 0 0 80px; }
.facing__ctl { flex: 1 1 14rem; display: grid; gap: 0.6rem; }
.facing__quick { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.facing__quick .btn { padding: 0.25rem 0.6rem; font-size: 0.85rem; }
.kit-table th.n, .kit-table td.n { text-align: right; white-space: nowrap; }
.range--wide { grid-template-columns: minmax(0, 1fr) 8.5rem; }
.badge-new { display: inline-block; margin-left: 0.4rem; padding: 0.05rem 0.45rem; border-radius: 999px; background: var(--amber, #ec8f04); color: #16261a; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; vertical-align: 0.1em; }

/* home page headline cards */
.hero-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13.5rem, 100%), 1fr)); min-width: 0; width: 100%; gap: 0.8rem; max-width: 62rem; margin-top: 1.6rem; }
.hero-card { position: relative; display: grid; align-content: start; gap: 0.25rem; padding: 1rem 1.1rem; border-radius: 10px; text-decoration: none; box-shadow: 0 3px 0 rgba(0,0,0,.3), 0 10px 24px rgba(0,0,0,.28); transition: transform .15s, filter .15s; }
.hero-card:hover { transform: translateY(-3px); filter: brightness(1.06); }
.hero-card strong { font-size: 1.08rem; }
.hero-card span { font-size: 0.92rem; opacity: 0.9; }
.hero-card__ic svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-card--find, .hero-card--find:hover { background: #ec8f04; color: #1c1608; }
.hero-card--roi, .hero-card--roi:hover { background: #f3eee2; color: #16261a; }
.hero-card--batt, .hero-card--batt:hover { background: #587a3b; color: #fff; }
.hero-card--plug, .hero-card--plug:hover { background: #2f7d7a; color: #fff; }
.hero-card .hero-card__new { position: absolute; top: 0.7rem; right: 0.7rem; margin: 0; opacity: 1; background: #ffd27a; color: #16261a; font-size: 0.72rem; }
@media (prefers-reduced-motion: reduce) { .hero-card { transition: none; } .hero-card:hover { transform: none; } }
.pi-pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.6rem; align-items: center; padding: 0.8rem; border: 2px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 0.4rem; }
.pi-pick.is-best { border-color: #2f7d7a; background: #eef6f4; }
.pi-pick__body { display: grid; gap: 0.15rem; min-width: 0; }
.pi-pick__tag { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bark); }
.pi-pick.is-best .pi-pick__tag { color: #2f7d7a; }
.pi-pick__body strong { font-size: 1.05rem; line-height: 1.25; }
.pi-pick__body span { font-size: 0.92rem; color: var(--bark); }
.pi-pick__arrow { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 2px solid var(--forest-700); background: transparent; color: var(--forest-700); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.pi-pick__arrow:hover:not(:disabled) { background: var(--forest-700); color: #fff; }
.pi-pick__arrow:disabled { opacity: 0.35; cursor: default; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--forest-700); text-decoration: underline; cursor: pointer; }
.bar--best .bar__fill { background: #2f7d7a; }
.kit-table tr.is-best td { background: #eef6f4; }
.stat b.is-better { color: #8fdc8f; }
.stat b.is-worse { color: #ff8f80; }
.stat b.is-better::after { content: " ▲"; font-size: 0.6em; vertical-align: 0.25em; }
.stat b.is-worse::after { content: " ▼"; font-size: 0.6em; vertical-align: 0.25em; }
.stat .stat__vs { font-size: 0.85rem; color: #cfc8b4; }
@media (max-width: 520px) { .chart-key span { white-space: normal; align-items: flex-start; } .chart-key span svg { flex: 0 0 auto; margin-top: 0.2em; } }
.pi-kitbox { padding-block: 0.9rem 1rem; }
.pi-kitbox > .checked { margin: 0.5rem 0 0.3rem; }
.pi-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; margin-bottom: 0.55rem; }
.pi-quick__btn { display: grid; gap: 0.1rem; align-content: start; text-align: left; padding: 0.45rem 0.65rem; border: 2px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink, #2b2a26); font: inherit; cursor: pointer; min-width: 0; }
.pi-quick__btn span { font-size: 0.8rem; font-weight: 700; line-height: 1.2; color: var(--bark); }
.pi-quick__btn b { font-size: 1rem; }
.pi-quick__btn:hover { border-color: var(--forest-700); }
.pi-quick__btn[aria-pressed="true"] { border-color: #2f7d7a; background: #2f7d7a; color: #fff; }
.pi-quick__btn[aria-pressed="true"] span { color: #e3f1ee; }
@media (max-width: 560px) { .pi-quick { gap: 0.35rem; } .pi-quick__btn { padding: 0.4rem 0.5rem; } .pi-quick__btn b { font-size: 0.95rem; line-height: 1.25; } }
.vs-good { color: #2c6a38; } .vs-bad { color: #9c3f1c; }
.range--mid { grid-template-columns: minmax(0, 1fr) 5rem; }
