/* ================================================================
   Hospital Energy Insights: solar calculator styles (from the UK Solar Calculator, recoloured)
   Clean ledger look: white ground, dark-blue type, one blue action
   colour, green for money saved. Schibsted Grotesk throughout.
   ================================================================ */

:root {
  /* Palette */
  --ink:        #0B2E4F;   /* headings, body emphasis, dark bands */
  --ink-deep:   #071F36;   /* footer */
  --blue:       #0A66B7;   /* buttons, links */
  --blue-dark:  #084F8E;   /* hover */
  --blue-tint:  rgba(10,102,183,0.08);
  --green:      #00806F;   /* savings, positive numbers */
  --lime:       #5FD3C6;   /* highlights on dark backgrounds */
  --sun:        #F5B335;   /* 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:    #0E3F69;
  --navy-light:  #13507F;
  --kec-blue:    var(--blue);
  --kec-blue-2:  var(--blue);
  --kec-blue-lt: #5AB0F0;
  --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:  #5AB0F0;
  --gold-dim:    var(--blue-tint);
  --gold-mid:    rgba(10,102,183,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(11,46,79,0.08);
  --shadow-lg:   0 12px 32px rgba(11,46,79,0.10);
  --shadow-xl:   0 16px 40px rgba(11,46,79,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%; 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(10,102,183,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: 1320px;
  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 10px;
  font-size: 15px;
  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 16px;
  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: 1240px) {
  .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(11,46,79,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-shot img { border: 1px solid var(--rule); background: #fff; }
.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); }

/* Sister-site card (Your energy data page) */
.sister-card { display: grid; gap: 8px; max-width: 560px; margin-top: 24px; padding: 20px 24px; background: #fff; border: 1px solid var(--rule); border-left: 5px solid #F5B335; border-radius: 10px; color: var(--ink); text-decoration: none; box-shadow: 0 6px 20px rgba(6, 60, 85, 0.08); }
.sister-card:hover { border-color: var(--blue); border-left-color: #F5B335; }
.sister-card:focus-visible { outline: 3px solid var(--blue); 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; }
.sister-text { font-size: 16px; line-height: 1.5; color: var(--text-2, #3d5563); }
.sister-go { font-weight: 600; color: var(--blue); }
.sister-card:hover .sister-go { text-decoration: underline; }

/* Hospital Energy Insights: skip link, as on the rest of the site */
.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; }
