/* Developer Energy Guide — "Site hoarding" identity.
   Layout: navy hoarding hero with checker + street illustration, cream reading sections, yellow as the one accent. */
:root {
  --navy: #0E2233;
  --navy-2: #13304A;
  --navy-3: #24435C;
  --yellow: #D3EF78; /* lime accent, close to the REX site's #d3ef78 */
  --cream: #F4F1E8;
  --paper: #FBFAF6;
  --line: #D9D3C2;
  --ink: #0E2233;
  --ink-2: #44525E;
  --mist: #C9D3DA;
  --green: #1F7A4D;
  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
img, svg { max-width: 100%; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--yellow); padding: 8px 12px; z-index: 20; }

/* Hoarding stripe + nav */
.hoard { height: 12px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 18px, var(--navy) 18px 36px); }
.top { background: var(--navy); color: var(--cream); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-block: 16px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand span { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 17px; letter-spacing: .01em; text-transform: uppercase; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 15px; }
.menu a { color: var(--mist); text-decoration: none; padding-block: 10px; }
.menu a:hover, .menu a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--yellow); }
.menu a.btn { color: var(--navy); box-shadow: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 0; border-radius: 4px; font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #E0F7A2; }
.btn-navy { background: var(--navy); color: var(--yellow); }
.btn-navy:hover { background: var(--navy-2); }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: clamp(28px, 4vw, 56px); align-items: center; padding-block: clamp(36px, 6vw, 72px) clamp(36px, 5vw, 60px); }
.tag { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.hero h1 { font-family: var(--display); font-stretch: 118%; font-weight: 900; font-size: clamp(38px, 5.6vw, 70px); line-height: .98; letter-spacing: -.01em; text-transform: uppercase; margin: 14px 0 18px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lede { color: var(--mist); font-size: 18px; max-width: 46ch; margin: 0; }

.checker { background: var(--cream); color: var(--ink); border-radius: 6px; padding: 20px; margin-top: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 14px; align-items: end; }
.checker .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.checker .field.wide { grid-column: 1 / -1; }
.checker label { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.checker select { width: 100%; min-height: 48px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 2px solid var(--navy); border-radius: 4px; }
.checker .btn { grid-column: 1 / -1; }

.street { width: 100%; height: auto; display: block; }
.street .ground { fill: var(--navy-2); } .street .kerb { stroke: var(--yellow); stroke-width: 3; }
.street .wall { fill: var(--cream); } .street .wall-b { fill: #E3DDCB; } .street .roof, .street .roof-flat { fill: var(--navy-3); }
.street .pv polygon, .street polygon.pv { fill: var(--yellow); stroke: var(--navy); stroke-width: 2; }
.street .win rect, .street rect.win { fill: var(--navy-3); } .street .door { fill: var(--navy); }
.street .hp rect { fill: var(--cream); stroke: var(--navy); stroke-width: 2; } .street .hp circle { fill: none; stroke: var(--navy); stroke-width: 2; } .street .hp line { stroke: var(--navy); stroke-width: 2; }
.street .ev rect { fill: var(--yellow); } .street .ev-screen { fill: var(--navy); } .street .cable { stroke: var(--yellow); stroke-width: 3; }
.street .car path { fill: #7FA7C4; } .street .tyre { fill: var(--navy); }
.street .tree rect { fill: var(--navy-3); } .street .tree circle { fill: #3E8E5E; }
.street .label { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 13px; letter-spacing: .08em; fill: var(--yellow); }
.street .leader { stroke: var(--yellow); stroke-width: 1.5; fill: none; }

/* Dates strip */
.dates { background: var(--navy-2); color: var(--cream); }
.dates ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.dates li { padding: 20px 24px 20px 0; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid rgba(255,255,255,.1); padding-left: 24px; }
.dates li:first-child { padding-left: 0; }
.dates li:last-child { border-right: 0; }
.dates b { font-family: var(--display); font-stretch: 115%; font-weight: 800; font-size: 22px; color: var(--yellow); font-variant-numeric: tabular-nums; }
.dates span { color: var(--mist); font-size: 14px; }
.dates .next b::after { content: attr(data-countdown-label); }
.dates .countdown { display: inline-block; margin-left: 8px; font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); background: var(--yellow); border-radius: 3px; padding: 2px 6px; vertical-align: middle; }

/* Sections */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.kicker { font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--green); margin: 0 0 6px; }
h2 { font-family: var(--display); font-stretch: 112%; font-weight: 900; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; text-transform: uppercase; margin: 0; text-wrap: balance; }
h3 { font-family: var(--display); font-stretch: 108%; font-weight: 800; font-size: 20px; line-height: 1.2; margin: 0; }
.muted { color: var(--ink-2); }

/* Result table */
.result-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 15px; color: var(--ink-2); }
.table-box { overflow-x: auto; background: var(--paper); border: 2px solid var(--navy); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 15px; }
th { text-align: left; font-family: var(--display); font-stretch: 110%; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--cream); background: var(--navy); padding: 12px 16px; }
td { padding: 16px; border-top: 1px solid var(--line); vertical-align: top; }
td.rule { font-weight: 700; width: 24%; }
td.need { color: var(--ink-2); }
a.src { white-space: nowrap; font-weight: 600; }
.status { display: inline-block; min-width: 84px; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; }
.s-yes { background: var(--navy); color: var(--yellow); }
.s-check { background: var(--yellow); color: var(--navy); }
.s-no { background: transparent; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px #A9A390; }
.note { font-size: 14px; color: var(--ink-2); margin: 14px 0 0; }

/* Topics */
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.topic { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 22px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.topic:hover { border-color: var(--navy); transform: translateY(-2px); }
.topic .ico { width: 48px; height: 48px; border-radius: 4px; background: var(--navy); display: grid; place-items: center; }
.topic .ico svg { width: 26px; height: 26px; stroke: var(--yellow); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topic p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.topic .soon { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.topic .go { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }

/* FAQ + principles */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; align-items: start; }
.split > :first-child { flex: 2; }
.faq details { border-top: 2px solid var(--navy); padding-block: 18px; }
.faq details:last-child { border-bottom: 2px solid var(--navy); }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-weight: 900; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--ink-2); max-width: 62ch; }
.principles { background: var(--navy); color: var(--cream); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.principles h3 { color: var(--yellow); }
.principles p { margin: 4px 0 0; color: var(--mist); font-size: 15px; }

/* Article pages */
.page-head { padding-block: clamp(32px, 5vw, 56px); }
.crumbs { font-size: 14px; color: var(--mist); margin-bottom: 14px; }
.crumbs a { color: var(--mist); }
.page-head h1 { font-family: var(--display); font-stretch: 116%; font-weight: 900; font-size: clamp(34px, 4.6vw, 56px); line-height: 1; text-transform: uppercase; margin: 0 0 14px; text-wrap: balance; max-width: 20ch; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; color: var(--mist); }
.meta a { color: var(--yellow); }
.article { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 40px; align-items: start; }
.article main { grid-column: span 2; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
@media (max-width: 860px) { .article main { grid-column: auto; } }
.answer { background: var(--yellow); color: var(--navy); border-radius: 6px; padding: 24px 26px; }
.answer .kicker { color: var(--navy); }
.answer p { margin: 0; font-size: 19px; line-height: 1.55; font-weight: 500; }
.answer small { display: block; margin-top: 10px; font-size: 14px; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 14px; }
.prose p, .prose li { max-width: 68ch; }
.reqs { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--navy); }
.reqs li { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.reqs .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; }
.reqs strong { font-size: 17px; }
.reqs span.d { color: var(--ink-2); }
.lbl { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; white-space: nowrap; }
.lbl-law { background: var(--navy); color: var(--yellow); }
.lbl-guide { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.lbl-advice { background: var(--yellow); color: var(--navy); }
.warn { border-left: 6px solid var(--yellow); background: var(--paper); padding: 14px 18px; margin-top: 14px; color: var(--ink-2); }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.checklist input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); flex: none; }
.aside { position: sticky; top: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.aside nav { display: flex; flex-direction: column; gap: 8px; }
.aside nav a { text-decoration: none; font-weight: 600; }
.aside nav a:hover { text-decoration: underline; }
.aside .lbls { display: flex; flex-wrap: wrap; gap: 6px; }
.sources { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }

/* Footer */
.foot { background: var(--navy); color: var(--mist); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-block: 32px; }
.foot a { color: var(--cream); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot p { margin: 0; max-width: 60ch; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 720px) {
  .dates li, .dates li:first-child { padding: 16px 0; border-right: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .dates li:first-child { border-top: 0; }
}

/* REX recommendation (labelled as our own company) */
.rex { background: var(--navy); color: var(--cream); border-radius: 6px; padding: 26px; display: grid; gap: 16px; border-left: 6px solid var(--yellow); }
.rex h2 { color: var(--cream); margin: 0 0 8px; }
.rex .kicker { color: var(--yellow); }
.rex p { margin: 0; color: var(--mist); }
.rex .btn { justify-self: start; }
.rex .rex-disc { font-size: 14px; color: var(--mist); border-top: 1px solid var(--navy-3); padding-top: 12px; }
.rex .rex-disc strong { color: var(--cream); }
.rex a:not(.btn) { color: var(--yellow); }
.rex-list { margin: 12px 0 0; padding-left: 20px; color: var(--cream); }
.rex-wide { padding: 34px; }
@media (min-width: 900px) { .rex-wide { grid-template-columns: 1fr auto; align-items: center; column-gap: 40px; } .rex-wide .rex-disc { grid-column: 1 / -1; } }
.rex-mini { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; display: flex; flex-direction: column; gap: 6px; }
.rex-mini p { margin: 0; font-size: 15px; }
.rex-mini a { font-weight: 700; }
.rex-mini .rex-disc { font-size: 13px; color: var(--ink-2); }
.rex-strip { margin: 18px 0 0; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.foot a { color: inherit; }
.tag-partner { display: inline-block; margin-left: 6px; padding: 1px 6px; border: 1px solid currentColor; border-radius: 3px; font-size: 10px; letter-spacing: .08em; opacity: .7; vertical-align: middle; }
.foot .foot-disc { font-size: 12px; opacity: .75; }
