:root {
	--ink: #17262b;
	--muted: #4d6066;
	--line: #d9e2e0;
	--paper: #ffffff;
	--wash: #eef4f2;
	--brand: #0f5c4d;
	--brand-deep: #0a3f35;
	--accent: #c8430a;
	--accent-deep: #a63608;
	--focus: #1a5fd0;
	--serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.65;
}

[hidden] { display: none !important; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

/* Masthead */
.masthead { border-bottom: 1px solid var(--line); background: var(--paper); }
.masthead-inner { max-width: 44rem; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 10px; }
.mark {
	width: 22px; height: 22px; background: var(--brand);
	clip-path: polygon(50% 0, 100% 45%, 86% 45%, 86% 100%, 14% 100%, 14% 45%, 0 45%);
}
.sitename { font-weight: 700; letter-spacing: .01em; }

/* Hero: photo background, headline left, check form right */
.hero {
	background:
		linear-gradient(90deg, rgba(10, 14, 17, .92) 0%, rgba(10, 14, 17, .72) 52%, rgba(10, 14, 17, .3) 100%),
		url("/assets/solar-roof-1400.webp") center bottom / cover no-repeat;
	background-color: #0b0e11;
	color: #fff;
}
.hero-inner { max-width: 70rem; margin: 0 auto; padding: 32px 20px 36px; display: flex; flex-direction: column; gap: 28px; }
.hero .kicker { color: #9fd8c4; }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 1.1rem + 2.4vw, 2.7rem); }
.hero .standfirst { color: #eaf4f0; font-size: 1.1875rem; }
.hero-points { list-style: none; margin: 18px 0 0; padding: 0; }
.hero-points li { position: relative; padding-left: 28px; margin-bottom: 8px; color: #fff; font-weight: 600; }
.hero-points li::before {
	content: ""; position: absolute; left: 4px; top: .35em; width: 7px; height: 12px;
	border: solid #7fd6b8; border-width: 0 3px 3px 0; transform: rotate(40deg);
}
.hero .check { margin: 0; padding: 22px 18px 20px; background: #fff; color: var(--ink); border-radius: 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, .35); scroll-margin-top: 16px; }
.hero .check h2 { margin: 0 0 6px; font-size: 1.5rem; }
.hero .check .check-intro { font-size: .9375rem; margin-bottom: 14px; }
.hero .funnel { border: 0; box-shadow: none; padding: 0; max-width: none; border-radius: 0; margin: 0; }
@media (min-width: 960px) {
	.masthead-inner { max-width: 70rem; padding-left: 32px; padding-right: 32px; }
	.hero-inner { flex-direction: row; align-items: center; gap: 56px; padding: 52px 32px; }
	.hero-copy { flex: 1 1 0; min-width: 0; }
	.hero .check { flex: 0 0 440px; padding: 26px 24px 24px; }
}


@media (max-width: 700px) {
	.hero { background: linear-gradient(180deg, rgba(10, 14, 17, .74), rgba(10, 14, 17, .58)), url("/assets/solar-roof-700.webp") center bottom / cover no-repeat; background-color: #0b0e11; }
}

/* Article */
.kicker { margin: 0 0 10px; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
h1 {
	font-family: var(--serif);
	font-size: clamp(2rem, 1.2rem + 3.2vw, 3rem);
	line-height: 1.18;
	letter-spacing: -.01em;
	margin: 0 0 18px;
	text-wrap: balance;
}
.standfirst { font-family: var(--serif); font-size: 1.25rem; line-height: 1.55; color: var(--ink); margin: 0 0 14px; }
.meta { font-size: .875rem; color: var(--muted); margin: 0 0 18px; }

h2 {
	font-family: var(--serif);
	font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
	line-height: 1.25;
	margin: 2.4rem 0 .6rem;
	text-wrap: balance;
}
p { margin: 0 0 1.1rem; max-width: 40rem; }
ul, ol { margin: 0 0 1.2rem; padding-left: 1.3rem; max-width: 40rem; }
li { margin-bottom: .5rem; }

ul.ticks { list-style: none; padding: 0; }
ul.ticks li { position: relative; padding-left: 30px; }
ul.ticks li::before {
	content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%; background: var(--brand);
}
ul.ticks li::after {
	content: ""; position: absolute; left: 6px; top: calc(.42em + 3px); width: 5px; height: 9px;
	border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(40deg);
}

ol.steps { list-style: none; padding: 0; counter-reset: s; }
ol.steps li { counter-increment: s; position: relative; padding-left: 44px; min-height: 30px; }
ol.steps li::before {
	content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
	background: var(--wash); border: 1px solid var(--line); color: var(--brand-deep); font-weight: 700;
	display: grid; place-items: center; font-size: .9375rem;
}

/* Buttons */
.btn, .f-next, .f-back, .sticky-cta {
	font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center;
	border-radius: 8px; border: 2px solid transparent; padding: 13px 22px; display: inline-block; line-height: 1.2;
}
.btn, .f-next, .sticky-cta { background: var(--accent); color: #fff; }
.btn:hover, .f-next:hover, .sticky-cta:hover { background: var(--accent-deep); color: #fff; }
.btn-quiet { background: transparent; color: var(--brand-deep); border-color: var(--brand); }
.btn-quiet:hover { background: var(--wash); color: var(--brand-deep); }
.f-next:disabled { opacity: .6; cursor: progress; }

.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 8px; }
.cta-note { font-size: .875rem; color: var(--muted); }
.cta-end { margin-top: 2rem; }

/* EPC figure */
.epc { margin: 1.6rem 0 1.4rem; padding: 18px 18px 14px; background: var(--wash); border-radius: 12px; max-width: 40rem; }
.epc svg { display: block; width: 100%; height: auto; }
.epc-bars text { font: 700 18px var(--sans); fill: #17262b; }
.epc-bars text.on-dark { fill: #fff; }
.epc .note-label { font: 700 17px var(--sans); fill: var(--brand-deep); }
.epc .note-sub { font: 15px var(--sans); fill: var(--brand-deep); }
.epc .note-muted { font: 15px var(--sans); fill: #5b6b70; }
.epc figcaption { font-size: .875rem; color: var(--muted); margin-top: 10px; }

/* Funnel */
.check-intro { color: var(--muted); }

.funnel { border: 0; box-shadow: none; padding: 0; max-width: none; border-radius: 0; margin: 0; }

/* Article */
.article { max-width: 44rem; margin: 0 auto; padding: 48px 20px 120px; }
.kicker { margin: 0 0 10px; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
h1 {
	font-family: var(--serif);
	font-size: clamp(2rem, 1.2rem + 3.2vw, 3rem);
	line-height: 1.18;
	letter-spacing: -.01em;
	margin: 0 0 18px;
	text-wrap: balance;
}
.standfirst { font-family: var(--serif); font-size: 1.25rem; line-height: 1.55; color: var(--ink); margin: 0 0 14px; }
.meta { font-size: .875rem; color: var(--muted); margin: 0 0 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }

h2 {
	font-family: var(--serif);
	font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
	line-height: 1.25;
	margin: 2.4rem 0 .6rem;
	text-wrap: balance;
}
p { margin: 0 0 1.1rem; max-width: 40rem; }
ul, ol { margin: 0 0 1.2rem; padding-left: 1.3rem; max-width: 40rem; }
li { margin-bottom: .5rem; }

ul.ticks { list-style: none; padding: 0; }
ul.ticks li { position: relative; padding-left: 30px; }
ul.ticks li::before {
	content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%; background: var(--brand);
}
ul.ticks li::after {
	content: ""; position: absolute; left: 6px; top: calc(.42em + 3px); width: 5px; height: 9px;
	border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(40deg);
}

ol.steps { list-style: none; padding: 0; counter-reset: s; }
ol.steps li { counter-increment: s; position: relative; padding-left: 44px; min-height: 30px; }
ol.steps li::before {
	content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
	background: var(--wash); border: 1px solid var(--line); color: var(--brand-deep); font-weight: 700;
	display: grid; place-items: center; font-size: .9375rem;
}

/* Buttons */
.btn, .f-next, .f-back, .sticky-cta {
	font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center;
	border-radius: 8px; border: 2px solid transparent; padding: 13px 22px; display: inline-block; line-height: 1.2;
}
.btn, .f-next, .sticky-cta { background: var(--accent); color: #fff; }
.btn:hover, .f-next:hover, .sticky-cta:hover { background: var(--accent-deep); color: #fff; }
.btn-quiet { background: transparent; color: var(--brand-deep); border-color: var(--brand); }
.btn-quiet:hover { background: var(--wash); color: var(--brand-deep); }
.f-next:disabled { opacity: .6; cursor: progress; }

.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 8px; }
.cta-note { font-size: .875rem; color: var(--muted); }
.cta-end { margin-top: 2rem; }

/* EPC figure */
.epc { margin: 1.6rem 0 1.4rem; padding: 18px 18px 14px; background: var(--wash); border-radius: 12px; max-width: 40rem; }
.epc svg { display: block; width: 100%; height: auto; }
.epc-bars text { font: 700 18px var(--sans); fill: #17262b; }
.epc-bars text.on-dark { fill: #fff; }
.epc .note-label { font: 700 17px var(--sans); fill: var(--brand-deep); }
.epc .note-sub { font: 15px var(--sans); fill: var(--brand-deep); }
.epc .note-muted { font: 15px var(--sans); fill: #5b6b70; }
.epc figcaption { font-size: .875rem; color: var(--muted); margin-top: 10px; }

/* Check section */
.check h2 { margin-top: 0; }
.check-intro { color: var(--muted); }

.funnel { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px 18px 18px; max-width: 34rem; margin: 0 auto; box-shadow: 0 6px 24px rgba(15, 50, 44, .08); }
.f-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.f-progress { height: 6px; border-radius: 4px; background: var(--wash); overflow: hidden; margin-bottom: 20px; }
.f-bar { height: 100%; width: 14%; background: var(--brand); border-radius: 4px; transition: width .25s ease; }

.f-step { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.f-step.is-active { display: block; }
.f-step legend { font-family: var(--serif); font-size: 1.4rem; line-height: 1.3; font-weight: 700; padding: 0; margin-bottom: 14px; display: block; width: 100%; }
.f-step legend:focus { outline: none; }
.f-step p { max-width: none; }

.opt { display: block; margin-bottom: 10px; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
	display: block; padding: 14px 16px; border: 2px solid var(--line); border-radius: 10px; background: var(--paper); font-weight: 600; line-height: 1.35;
	transition: border-color .15s, background .15s;
}
.opt:hover span { border-color: var(--brand); }
.opt input:checked + span { border-color: var(--brand); background: var(--wash); box-shadow: inset 0 0 0 1px var(--brand); }
.opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.f-hint { font-size: .875rem; color: var(--muted); margin: 6px 0 0; }
.f-error, .f-fielderr { color: #b3261e; font-size: .875rem; font-weight: 600; margin: 8px 0 0; }
.f-error { display: none; }
.f-error.is-visible { display: block; }
.f-fielderr:empty { display: none; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 5px; }
.field input {
	width: 100%; font: inherit; font-size: 1rem; padding: 12px 13px; border: 2px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.field input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(26, 95, 208, .25); }
.field input.has-error { border-color: #b3261e; }

.tick { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; font-size: .9375rem; line-height: 1.45; cursor: pointer; }
.tick input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.f-status { margin-top: 10px; font-size: .9375rem; }
.f-status.is-error { color: #b3261e; font-weight: 600; }

.f-nav { display: flex; gap: 10px; margin-top: 16px; }
.f-next { flex: 1; }
.f-back { background: transparent; color: var(--muted); border-color: var(--line); padding-left: 18px; padding-right: 18px; }
.f-back:hover { border-color: var(--brand); color: var(--brand-deep); }
.f-nav[hidden], .f-back[hidden], .f-thanks[hidden] { display: none; }

.f-thanks h3 { font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; margin: 0 0 14px; }
.f-thanks:focus { outline: none; }

/* FAQ */
details { border-bottom: 1px solid var(--line); max-width: 40rem; }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; padding: 15px 28px 15px 0; position: relative; list-style: none; line-height: 1.4; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--brand); }
details[open] summary::after { content: "\2212"; }
details p { padding-bottom: .3rem; color: var(--ink); }


/* Key points, contents, tables, misc */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
h3 { font-family: var(--serif); font-size: 1.3rem; line-height: 1.3; margin: 1.6rem 0 .5rem; }
h2[id], h3[id] { scroll-margin-top: 14px; }

.byline { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; padding-bottom: 20px; border-bottom: 1px solid var(--line); max-width: 40rem; }
.byline-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.byline-text p { margin: 0; max-width: none; }
.byline-name { font-size: .9375rem; line-height: 1.35; }
.byline-date { font-size: .8125rem; line-height: 1.45; color: var(--muted); }

.takeaways { background: var(--wash); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 6px; margin: 0 0 22px; max-width: 40rem; }
.takeaways h2 { margin: 0 0 12px; font-size: 1.25rem; }
.takeaways ul { margin-bottom: 10px; }

.toc { border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px 10px; margin: 0 0 8px; max-width: 40rem; }
.toc h2 { margin: 0 0 8px; font-size: 1.1rem; }
.toc ol { columns: 2 14rem; column-gap: 28px; margin: 0 0 8px; padding-left: 1.2rem; }
.toc li { margin-bottom: .35rem; break-inside: avoid; }

ol.plain { padding-left: 1.3rem; }

.filter { margin: 0 0 12px; max-width: 28rem; }
.filter label { display: block; font-weight: 700; font-size: .9375rem; margin-bottom: 5px; }
.filter input { width: 100%; font: inherit; padding: 12px 13px; border: 2px solid var(--line); border-radius: 8px; }
.filter input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(26, 95, 208, .25); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin: 0 0 10px; max-width: 100%; }
.table-wrap.scroll-y { max-height: 34rem; overflow-y: auto; }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; line-height: 1.45; }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--wash); position: sticky; top: 0; z-index: 1; font-size: .8125rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
tbody th { font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.councils { min-width: 36rem; }
table.compare { min-width: 38rem; }
table.compare td:first-of-type { min-width: 18rem; }
.table-count { font-size: .875rem; color: var(--muted); margin: 0 0 8px; }
.source-note { font-size: .875rem; color: var(--muted); }
tr[hidden] { display: none; }

ul.sources { padding-left: 1.2rem; font-size: .9375rem; }

/* Footer */
.foot { background: var(--ink); color: #dbe5e3; font-size: .875rem; line-height: 1.6; }
.foot-inner { max-width: 44rem; margin: 0 auto; padding: 28px 20px 110px; }
.foot a { color: #fff; }
.foot p { max-width: none; }

/* Sticky mobile CTA */
.sticky-cta {
	position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 20; box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
	transition: opacity .2s, transform .2s;
}
.sticky-cta.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }
@media (min-width: 760px) { .sticky-cta { left: auto; right: 24px; width: auto; } }

/* Cookie banner */
.cookie-consent {
	position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; background: var(--ink); color: #fff; border-radius: 12px;
	padding: 16px 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); max-width: 34rem; margin: 0 auto; font-size: .9375rem; line-height: 1.5;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent p { margin: 0 0 12px; max-width: none; }
.cookie-consent a { color: #fff; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions button {
	font: inherit; font-weight: 700; padding: 10px 16px; border-radius: 8px; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer;
}
.cookie-actions .accept { background: #fff; color: var(--ink); }

@media (max-width: 480px) {
	.article { padding-top: 26px; }
	.funnel { padding: 18px 14px 16px; }
}
