/* ================================================================
   Half Hourly Insights: shared styles
   The same design language as the UK Solar Calculator: white ground,
   dark-blue type, one blue action colour, green for money, mist bands.
   Schibsted Grotesk, self-hosted (SIL Open Font License, fonts/OFL.txt),
   so no page calls a third party.
   ================================================================ */

@font-face { font-family: 'Schibsted Grotesk'; font-weight: 400; font-display: swap; src: url('../fonts/schibsted-grotesk-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 500 600; font-display: swap; src: url('../fonts/schibsted-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 700; font-display: swap; src: url('../fonts/schibsted-grotesk-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Schibsted Grotesk'; font-weight: 800 900; font-display: swap; src: url('../fonts/schibsted-grotesk-latin-800-normal.woff2') format('woff2'); }

:root {
  /* Palette */
  --ink:        #063C55;   /* headings, body emphasis, dark bands */
  --ink-deep:   #042A3C;   /* footer */
  --blue:       #0065A4;   /* buttons, links */
  --blue-dark:  #004F80;   /* hover */
  --blue-tint:  rgba(0,101,164,0.08);
  --green:      #00853F;   /* savings, positive numbers */
  --lime:       #8FD16A;   /* highlights on dark backgrounds */
  --sun:        #F8C05D;   /* logo mark only */
  --orange:     #F9A14A;   /* warnings */
  --text-2:     #3E4A51;   /* body copy */
  --grey:       #58595B;   /* secondary text */
  --mist:       #EFF0F1;   /* alternate section background */
  --rule:       #D3D9DD;
  --rule-2:     #E3E8EB;
  --field:      #B9C4CB;   /* input borders */

  /* Legacy names used in page styles, mapped onto the palette */
  --navy:        var(--ink);
  --navy-mid:    #0A4A68;
  --navy-light:  #0F5A7D;
  --kec-blue:    var(--blue);
  --kec-blue-2:  var(--blue);
  --kec-blue-lt: #4DB3F0;
  --kec-teal:    var(--green);
  --kec-teal-2:  var(--green);
  --kec-teal-lt: var(--lime);
  --kec-green:   var(--green);
  --kec-green-lt:var(--lime);
  --gold:        var(--blue);
  --gold-dark:   var(--blue-dark);
  --gold-light:  #4DB3F0;
  --gold-dim:    var(--blue-tint);
  --gold-mid:    rgba(0,101,164,0.16);
  --white:       #ffffff;
  --off-white:   #ffffff;
  --slate-50:    #F7F8F9;
  --slate-100:   var(--mist);
  --slate-200:   var(--rule-2);
  --slate-300:   var(--field);
  --slate-400:   #8A969E;
  --slate-500:   var(--grey);
  --slate-600:   var(--text-2);
  --slate-700:   var(--text-2);
  --slate-800:   var(--ink);
  --text:        var(--ink);
  --text-muted:  var(--text-2);
  --text-dim:    var(--grey);
  --border:      var(--rule);

  --shadow-sm:   none;
  --shadow-md:   0 12px 32px rgba(6,60,85,0.08);
  --shadow-lg:   0 12px 32px rgba(6,60,85,0.10);
  --shadow-xl:   0 16px 40px rgba(6,60,85,0.12);

  --radius:      6px;
  --radius-lg:   10px;
  --radius-xl:   10px;

  --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 3px solid rgba(0,101,164,0.35); outline-offset: 2px; }

/* ── HEADER ────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 11px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}
.nav-logo svg { width: 34px; height: 34px; flex: none; }
.nav-logo img { display: block; height: 52px; width: auto; }
.nav-logo-name { font-size: 19px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: flex-end;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  border-radius: 6px;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.nav-links a.nav-cta {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  padding: 0 20px;
  margin-left: 8px;
  border-radius: 6px;
  box-shadow: none;
}
.nav-links a.nav-cta:hover { background: var(--blue-dark); color: #fff; }
.nav-links a.nav-cta.active { box-shadow: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }

/* Pages used to offset a fixed header; the header now sits in the flow */
.page-body { padding-top: 0; }

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink-deep);
  color: #C9D9E2;
  padding: 56px 24px 32px;
  margin-top: 0;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; color: #fff; margin-bottom: 14px; }
.footer-logo svg { width: 28px; height: 28px; flex: none; }
.footer-logo img { display: block; height: 52px; width: auto; }
.footer-logo-name { font-size: 17px; font-weight: 800; }
.footer-desc { font-size: 15px; line-height: 1.6; margin-bottom: 18px; color: #C9D9E2; max-width: 380px; }
.footer-contact-item { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 8px; color: #C9D9E2; }
.footer-contact-item a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.35); }
.footer-contact-item a:hover { text-decoration-color: #fff; }
.footer-col-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 15px; color: #C9D9E2; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 14px; color: #C9D9E2; }
.footer-disclaimer { font-size: 14px; color: #C9D9E2; max-width: 520px; text-align: right; line-height: 1.5; }

/* ── COMMON ────────────────────────────────────────────────── */
.section { padding: 88px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-kicker {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--grey);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.section-title span, .section-title .teal { color: inherit; }
.section-lead { font-size: 18px; color: var(--text-2); line-height: 1.6; max-width: 640px; }

.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.icon-box {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 12px;
  flex-shrink: 0;
  background: none;
}
.icon-box svg { width: 24px; height: 24px; stroke: var(--blue); }
.icon-box.gold, .icon-box.blue, .icon-box.teal, .icon-box.green, .icon-box.navy { background: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-gold, .btn-teal { background: var(--blue); color: #fff; }
.btn-gold:hover, .btn-teal:hover { background: var(--blue-dark); color: #fff; }
.btn-navy { background: var(--ink); color: #fff; }
.btn-navy:hover { background: var(--ink-deep); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--field); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-outline-white { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { border-color: #fff; color: #fff; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--mist); color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 17px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--grey);
}
.pill-gold, .pill-blue, .pill-teal, .pill-green { background: none; border: 0; padding: 0; }
.pill-green { color: var(--green); }

/* Inner-page heading band */
.page-hero {
  background: var(--mist);
  padding: 72px 24px 64px;
  border-bottom: 1px solid var(--rule);
}
.page-hero-inner { max-width: 1200px; margin: 0 auto; }
.page-hero-kicker {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--grey);
  margin-bottom: 16px;
}
.page-hero-title {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 820px;
}
.page-hero-title span, .page-hero-title .teal { color: inherit; }
.page-hero-lead { font-size: 19px; color: var(--text-2); line-height: 1.6; max-width: 620px; margin-bottom: 28px; }

/* Closing call to action */
.cta-strip { background: var(--ink); padding: 80px 24px; }
.cta-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.cta-strip-title { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.1; flex: 1 1 520px; }
.cta-strip-lead { font-size: 18px; color: #C9D9E2; line-height: 1.55; flex: 1 1 100%; order: 3; margin-top: -4px; max-width: 640px; }
.cta-strip-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-strip .btn-gold { background: #fff; color: var(--ink); }
.cta-strip .btn-gold:hover { background: var(--mist); color: var(--ink); }

/* Figures */
.stat-row { display: flex; gap: 0; }
.stat-item { flex: 1; padding: 28px 24px; border-right: 1px solid var(--rule); }
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: lining-nums;
}
.stat-num span { color: var(--green); }
.stat-label { font-size: 15px; color: var(--text-2); line-height: 1.45; }

/* Statement rows: label .... value */
.lead-row { display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--rule); font-variant-numeric: lining-nums; }
.lead-row .leader { flex: 1; min-width: 16px; border-bottom: 2px dotted var(--field); transform: translateY(-4px); }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { flex-wrap: wrap; }
  .stat-item { flex: 1 1 50%; border-right: none; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 1120px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; flex-shrink: 0; }
  .nav-mobile-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 8px 16px 16px;
    gap: 2px;
    align-items: stretch;
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 24px rgba(6,60,85,0.08);
  }
  .nav-mobile-open .nav-links a { padding: 0 12px; }
  .nav-mobile-open .nav-links a.nav-cta { margin: 8px 0 0; justify-content: center; }
}
@media (max-width: 760px) {
  .nav-logo-name { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-disclaimer { text-align: left; }
  .section { padding: 64px 16px; }
  .page-hero { padding: 48px 16px; }
  .cta-strip { padding: 56px 16px; }
  .stat-item { flex: 1 1 100%; }
}

/* ── GUIDE PAGES ───────────────────────────────────────────── */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 15px; color: var(--grey); margin-bottom: 18px; }
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.byline { font-size: 15px; color: var(--grey); }
.byline strong { color: var(--ink); font-weight: 600; }

.guide { max-width: 1248px; margin: 0 auto; padding: 56px 24px 88px; display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.guide-main { flex: 999 1 560px; min-width: 0; max-width: 760px; }
.guide-side { flex: 1 1 260px; min-width: 0; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) { .guide-side { position: static; } }

.toc { border-top: 2px solid var(--ink); padding-top: 14px; }
.toc-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.toc ol { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc a { display: block; padding: 6px 0; font-size: 15px; color: var(--blue); line-height: 1.35; }
.toc a:hover { text-decoration: underline; }

.side-cta { background: var(--ink); color: #fff; border-radius: 10px; padding: 22px; }
.side-cta p { font-size: 15px; color: #C9D9E2; margin: 6px 0 16px; line-height: 1.5; }
.side-cta strong { font-size: 18px; }
.side-cta .btn { width: 100%; background: #fff; color: var(--ink); }
.side-cta .btn:hover { background: var(--mist); }

.answer { font-size: 20px; line-height: 1.55; color: var(--ink); padding: 20px 0 24px; border-bottom: 1px solid var(--rule); margin-bottom: 8px; }
.prose { font-size: 17px; line-height: 1.65; color: var(--text-2); }
.prose h2 { font-size: clamp(26px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.015em; font-weight: 800; color: var(--ink); margin: 48px 0 14px; scroll-margin-top: 96px; }
.prose h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 28px 0 8px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; padding-left: 2px; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.prose .lead-in { font-weight: 700; color: var(--ink); }

.table-wrap { overflow-x: auto; margin: 8px 0 24px; border: 1px solid var(--rule); border-radius: 10px; }
.prose table, .data-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: lining-nums; }
.prose th, .data-table th { text-align: left; font-weight: 700; color: var(--ink); background: var(--mist); padding: 12px 14px; border-bottom: 1px solid var(--rule); vertical-align: bottom; }
.prose td, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--rule-2); vertical-align: top; color: var(--text-2); }
.prose tr:last-child td, .data-table tr:last-child td { border-bottom: 0; }
.num { text-align: right; white-space: nowrap; }

.note { background: var(--mist); border-radius: 10px; padding: 18px 20px; margin: 8px 0 24px; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.note strong { color: var(--ink); }
.note-warn { background: #FEF4E8; }

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 14px; font-size: 26px; font-weight: 400; color: var(--blue); }
.faq details[open] summary::after { content: '−'; }
.faq .faq-a { padding: 0 0 20px; font-size: 17px; line-height: 1.65; color: var(--text-2); max-width: 720px; }
.faq .faq-a p { margin-bottom: 10px; }
.faq .faq-a a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.faq-group { font-size: 22px; font-weight: 800; color: var(--ink); margin: 48px 0 6px; letter-spacing: -0.01em; scroll-margin-top: 96px; }
.faq-group:first-child { margin-top: 0; }

.sources { margin-top: 48px; padding-top: 20px; border-top: 2px solid var(--ink); font-size: 15px; color: var(--text-2); }
.sources h2 { font-size: 18px; margin: 0 0 10px; }
.sources ol { margin-left: 20px; list-style: decimal; }
.sources li { margin-bottom: 6px; }
.sources a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }

.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.link-card { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--rule); border-radius: 10px; padding: 24px; color: var(--ink); background: #fff; transition: border-color 0.15s; }
.link-card:hover { border-color: var(--ink); }
.link-card h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.link-card p { font-size: 16px; color: var(--text-2); line-height: 1.55; }
.link-card .more { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 600; color: var(--blue); }

.range-bar { position: relative; flex: 1; height: 10px; background: var(--rule-2); border-radius: 5px; min-width: 80px; }
.range-bar span { position: absolute; top: 0; bottom: 0; background: var(--green); border-radius: 5px; }

/* ── Photos and illustrations ───────────────────────────────── */
.figure { margin: 28px 0 32px; }
.figure img { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--mist); }
.figure figcaption { margin-top: 10px; font-size: 14px; line-height: 1.5; color: var(--grey); }
.figure-render img { border-radius: 0; background: none; mix-blend-mode: multiply; }
.figure-wide { max-width: 960px; margin: 0 auto 40px; }
.photo-cards { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.photo-card { display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: #fff; color: var(--ink); transition: border-color 0.15s; }
.photo-card:hover { border-color: var(--ink); }
.photo-card img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; background: var(--mist); }
.photo-card-body { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px 24px; flex: 1; }
.photo-card h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.photo-card p { font-size: 16px; line-height: 1.55; color: var(--text-2); }
.photo-card .more { margin-top: auto; padding-top: 6px; font-size: 15px; font-weight: 600; color: var(--blue); }


/* ── HALF HOURLY INSIGHTS: HOME AND PAGE PIECES ─────────────── */
.hero-wrap { position: relative; overflow: hidden; isolation: isolate; background: var(--ink-deep); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transform-origin: 50% 50%; will-change: transform;
  animation: hero-drift 36s ease-in-out infinite alternate; }
/* Pan and zoom across the town illustration. Each step keeps the shift (times the scale)
   within half the extra size, so the image edges never come into view. */
@keyframes hero-drift {
  0%   { transform: scale(1.12) translate(0, 0); }
  25%  { transform: scale(1.30) translate(-9%, 5%); }
  50%  { transform: scale(1.20) translate(7%, -6%); }
  75%  { transform: scale(1.35) translate(-6%, -9%); }
  100% { transform: scale(1.15) translate(5%, 4%); }
}
@media (prefers-reduced-motion: reduce) { .hero-media img { animation: none; transform: scale(1.1); } }
.hero-wrap::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(4,42,60,0.96) 0%, rgba(4,42,60,0.86) 38%, rgba(4,42,60,0.45) 70%, rgba(4,42,60,0.25) 100%); }
.hero { max-width: 1248px; margin: 0 auto; padding: 88px 24px 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.hero-pre { font-size: 16px; color: #C9D9E2; margin-bottom: 18px; }
.hero-audience { display: inline-block; font-size: 15px; font-weight: 700; color: var(--ink); background: var(--lime); border-radius: 999px; padding: 7px 16px; margin-bottom: 22px; line-height: 1.35; }
.hero-check { margin-top: 16px; font-size: 16px; color: #C9D9E2; }
.hero-check a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero-not { margin-top: 6px; font-weight: 600; color: #fff; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); line-height: 1; letter-spacing: -0.03em; font-weight: 800; color: #fff; }
.hero-lead { margin-top: 24px; font-size: 20px; line-height: 1.55; color: #E2EBF0; max-width: 560px; }
.hero-points { margin-top: 36px; display: flex; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.28); max-width: 600px; }
.hero-points div { flex: 1 1 160px; padding: 16px 20px 0 0; }
.hero-points strong { display: block; font-size: 17px; color: #fff; }
.hero-points span { display: block; font-size: 15px; color: #C9D9E2; margin-top: 4px; }

.start-card { flex: 1 1 400px; min-width: 0; max-width: 480px; background: #fff; border-radius: 10px; padding: 30px; box-shadow: 0 24px 60px rgba(4,42,60,0.35); }
.start-card h2 { font-size: 22px; font-weight: 700; }
.start-card p { margin-top: 8px; font-size: 16px; color: var(--text-2); line-height: 1.55; }
.start-card .btn { width: 100%; margin-top: 16px; }
.start-card .or { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--text-2); }
.start-card .or a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.start-result { margin-top: 20px; background: var(--ink); color: #fff; border-radius: 8px; padding: 20px 22px; }
.start-result .k { font-size: 15px; color: var(--lime); font-weight: 600; }
.start-result .big { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-top: 2px; }
.start-result .small { font-size: 14px; color: #C9D9E2; margin-top: 4px; }

.reasons { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 36px 48px; }
.reasons div { border-top: 2px solid var(--ink); padding-top: 16px; }
.reasons h3 { font-size: 20px; font-weight: 700; }
.reasons p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--text-2); }

.head-row { display: flex; flex-wrap: wrap; gap: 20px 64px; align-items: flex-end; justify-content: space-between; }
.head-row p { font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 460px; }
.steps { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 36px; }
.step-head { display: flex; align-items: center; gap: 14px; }
.step-n { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--blue); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.step-line { flex: 1; height: 2px; background: var(--rule); }
.steps h3 { margin-top: 18px; font-size: 21px; font-weight: 700; }
.steps p { margin-top: 8px; font-size: 16px; line-height: 1.55; color: var(--text-2); }

.shot { margin-top: 40px; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-xl); background: #fff; }
.shot img { width: 100%; height: auto; }
.shot-caption { margin-top: 12px; font-size: 14px; color: var(--grey); }
.split { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: center; }
.split > div { flex: 1 1 380px; min-width: 0; }
.ticks { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; font-size: 17px; line-height: 1.5; color: var(--text-2); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.ticks strong { color: var(--ink); }
.band-mist { background: var(--mist); }
.privacy-band { background: var(--ink); color: #fff; }
.privacy-band .section-title { color: #fff; }
.privacy-band .section-lead { color: #C9D9E2; }
.privacy-band .reasons div { border-top-color: rgba(255,255,255,0.4); }
.privacy-band .reasons h3 { color: #fff; }
.privacy-band .reasons p { color: #C9D9E2; }

/* Forms */
.form { display: grid; gap: 18px; max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: block; font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form .req { color: var(--blue); }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--field); border-radius: 6px; background: #fff; color: var(--ink); font: 500 16px var(--font); }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(0,101,164,0.25); border-color: var(--blue); }
.form .help { font-size: 14px; color: var(--grey); margin-top: 6px; line-height: 1.45; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-2); font-weight: 400; }
.form .check input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .hero-wrap::before { background: linear-gradient(180deg, rgba(4,42,60,0.50) 0%, rgba(4,42,60,0.72) 30%, rgba(4,42,60,0.88) 60%, rgba(4,42,60,0.94) 100%); }
  .hero { padding: 56px 16px 48px; gap: 32px; }
  .hero-points { display: none; }
  .hero-lead { font-size: 18px; margin-top: 18px; }
}
.skip { position: absolute; left: -10000px; top: 8px; z-index: 2000; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip:focus { left: 16px; }

/* Contact: sponsor and contact card beside the form, as on the UK Solar Calculator */
.contact-grid { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: flex-start; }
.contact-grid .form { flex: 1 1 520px; }
.contact-info { flex: 1 1 300px; max-width: 420px; }
.kec-logo-link { display: inline-block; margin-bottom: 20px; }
.kec-sponsored-by { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--grey); margin-bottom: 6px; }
.kec-logo-img { width: 220px; height: auto; transition: opacity 0.2s; }
.kec-logo-link:hover .kec-logo-img { opacity: 0.85; }
.contact-info h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.contact-info p { margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.contact-details { margin-top: 24px; display: grid; gap: 14px; border-top: 1px solid var(--rule); padding-top: 18px; }
.contact-details dt { font-size: 14px; color: var(--grey); }
.contact-details dd { font-size: 17px; font-weight: 600; color: var(--ink); }
.contact-details a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
/* Cards inside guide text keep card styling, not link underlines */
.prose .link-grid { margin: 8px 0 24px; }
.prose a.link-card { text-decoration: none; color: var(--ink); }
.prose a.link-card h3 { margin: 0; }
.prose a.link-card p { margin: 0; }
/* Glossary */
.glossary { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.glossary > div { padding: 16px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 96px; }
.glossary dt { font-size: 19px; font-weight: 700; color: var(--ink); }
.glossary dd { margin-top: 4px; font-size: 17px; line-height: 1.6; color: var(--text-2); }
.prose sup a { text-decoration: none; font-size: 12px; }

/* Guide title cards on link cards */
.link-card.has-thumb { padding: 0 0 24px; overflow: hidden; }
.link-card.has-thumb > :not(.card-thumb) { padding: 0 24px; }
.link-card .card-thumb { flex: none; display: block; width: 100%; aspect-ratio: 2 / 1; overflow: hidden; margin-bottom: 8px; border-bottom: 1px solid var(--rule); }
.link-card .card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.form-error { color: #b42c2c; font-weight: 600; margin: 4px 0 0; }

/* Sample report */
.start-sample { margin: 12px 0 18px; text-align: center; }
.start-sample a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sample .section-title { margin-top: 40px; }
.sample .note + .section-title { margin-top: 28px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 20px 0 28px; }
.stat-grid > div { border: 1px solid var(--rule); border-radius: 10px; padding: 20px; background: #fff; }
.stat-grid strong { display: block; font-size: clamp(28px, 4vw, 36px); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
.stat-grid span { display: block; margin-top: 6px; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.finding-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 20px 0; }
.finding { border: 1px solid var(--rule); border-radius: 10px; padding: 22px; background: #fff; }
.finding h3 { font-size: 20px; font-weight: 800; color: var(--ink); margin: 10px 0 4px; }
.finding p { font-size: 15px; line-height: 1.55; color: var(--text-2); margin: 8px 0; }
.finding .finding-value { font-size: 26px; font-weight: 800; color: var(--blue); margin: 2px 0 8px; }
.finding .finding-note { font-weight: 700; color: var(--ink); }
.finding-tag { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; }
.finding-tag.high { background: #fbe9e9; color: #9b2c2c; }
.finding-tag.medium { background: #fdf3e1; color: #8a5a10; }
.finding-tag.low { background: #e9f3ea; color: #2f6b36; }
.sample-steps { margin: 12px 0 8px 22px; }
.sample-steps li { margin-bottom: 8px; line-height: 1.6; }
.sample-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 18px; }
.sample p a:not(.btn), .sample li a:not(.btn) { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* Tab landing pages with a photo header: the same slow pan and zoom as the home
   page (hero-drift), held still for visitors who prefer reduced motion. The
   photos are dark on the left; the overlay keeps the heading readable on any crop. */
.page-hero-photo { position: relative; overflow: hidden; isolation: isolate; background: var(--ink-deep); border-bottom: 0; padding: 96px 24px 88px; }
.page-hero-photo .hero-media img { opacity: 1; object-position: 70% 50%; }
.page-hero-photo::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(4,42,60,0.92) 0%, rgba(4,42,60,0.80) 40%, rgba(4,42,60,0.35) 75%, rgba(4,42,60,0.15) 100%); }
.page-hero-photo .page-hero-title { color: #fff; }
.page-hero-photo .page-hero-kicker, .page-hero-photo .page-hero-lead { color: #D6E4EC; }
.page-hero-photo .page-hero-lead a, .page-hero-photo .breadcrumb a { color: #fff; text-decoration: underline; }
.page-hero-photo .breadcrumb, .page-hero-photo .breadcrumb span { color: #C9D9E2; }
@media (max-width: 700px) {
  .page-hero-photo { padding: 64px 16px 56px; }
  .page-hero-photo::before { background: linear-gradient(180deg, rgba(4,42,60,0.88) 0%, rgba(4,42,60,0.82) 100%); }
}

/* Energy price section: the five-part diagram and simple charts */
.price-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 20px 0 8px; }
.price-part { background: var(--mist); border-top: 4px solid var(--ink); border-radius: 8px; padding: 16px 18px; }
.price-part:first-child { border-top-color: var(--blue); }
.price-part h3 { font-size: 18px; margin: 0 0 8px; }
.price-part p, .price-part li { font-size: 15px; line-height: 1.5; margin: 0; }
.price-part ul { margin: 0; padding-left: 18px; }
.hbars { margin: 24px 0; display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 12px; align-items: center; }
.hbar-label { font-size: 15px; color: var(--text-2); text-align: right; line-height: 1.3; }
.hbar-track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hbar-fill { display: block; height: 22px; background: var(--blue); border-radius: 0 4px 4px 0; min-width: 2px; flex: none; }
.hbar-value { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.hbar-track .hbar-fill { max-width: calc(100% - 92px); }
.cols { margin: 24px 0; }
.cols-plot { display: flex; align-items: flex-end; gap: 6px; height: 260px; border-bottom: 1px solid var(--rule); padding-top: 24px; }
.col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; min-width: 0; }
.col-bar { display: block; width: 100%; max-width: 46px; background: var(--blue); border-radius: 4px 4px 0 0; }
.col-hi .col-bar { background: var(--ink); }
.col-value { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.col-year { position: absolute; bottom: -24px; font-size: 13px; color: var(--grey); }
.cols figcaption { margin-top: 34px; font-size: 14px; color: var(--grey); line-height: 1.5; }
@media (max-width: 700px) { .hbar { grid-template-columns: 1fr; gap: 4px; } .hbar-label { text-align: left; } .col-value { font-size: 11px; } .cols-plot { gap: 3px; } }

/* Home: compact lists of further guides */
.home-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 40px; margin-top: 40px; }
.home-more h3 { font-size: 18px; margin-bottom: 10px; }
.home-more ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.home-more a { color: var(--blue); text-decoration: underline; font-size: 16px; }

/* About page */
.about { max-width: 860px; }
.about-person { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; margin: 32px 0 48px; }
.about-person img { width: 100%; height: auto; border-radius: 10px; }
.about-person h2 { margin: 0 0 4px; }
.about-role { color: var(--grey); font-weight: 600; margin-bottom: 16px; }
.about-person p a, .about li a, .about p a { color: var(--blue); text-decoration: underline; }
.about h2 { margin-top: 8px; }
.about ul { padding-left: 20px; display: grid; gap: 10px; margin-bottom: 32px; }
@media (max-width: 700px) { .about-person { grid-template-columns: 1fr; } .about-person img { max-width: 220px; } }
.byline a { color: inherit; text-decoration: underline; }
.about p { margin: 0 0 16px; line-height: 1.65; }
.about h2 { margin: 40px 0 16px; }
.about-person h2 { margin: 0 0 4px; }
.hero-media picture { display: contents; }

/* Sister-site card (Solar page hero) */
.sister-card { display: grid; gap: 8px; max-width: 560px; margin-top: 4px; padding: 20px 24px; background: #fff; border: 1px solid var(--rule); border-left: 5px solid #F8C05D; border-radius: 10px; color: var(--ink); text-decoration: none; box-shadow: 0 6px 20px rgba(6, 60, 85, 0.12); }
.sister-card:hover { border-color: var(--blue); border-left-color: #F8C05D; }
.sister-card:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.sister-label { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey); }
.sister-brand { display: flex; align-items: center; gap: 10px; }
.sister-brand svg { width: 38px; height: 38px; flex: none; }
.sister-brand img { display: block; height: 56px; width: auto; }
.sister-name { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.sister-text { font-size: 16px; line-height: 1.5; color: var(--text-2); }
.sister-go { font-weight: 600; color: var(--blue); }
.sister-card:hover .sister-go { text-decoration: underline; }
.sister-logo { display: inline-block; margin-top: 20px; }
.sister-logo img { display: block; height: 64px; width: auto; }
