:root {
  color-scheme: light;
  --green: #128052;
  --green-hover: #0d6d44;
  --unknown: #9fbcaa;
  --gap: #ee8b35;
  --ink: #123829;
  --muted: #596960;
  --paper: #fff;
  --warm: #f3f4ef;
  --line: #dce3da;
  --focus: #123829;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 36px; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input { font: inherit; min-width: 0; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; }
button:not(:disabled), a { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
a { color: inherit; }
img, svg { display: block; }
svg { flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
::selection { color: var(--ink); background: #cbe6d7; }
h1, h2, h3, p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 50; top: 12px; left: 12px; padding: 14px 20px; border-radius: 8px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.icon { width: 22px; height: 22px; }
.section-shell { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 18px; min-height: 48px; border: 1px solid transparent; border-radius: 100px; padding: 13px 23px; text-decoration: none; font-size: 15px; line-height: 1.2; font-weight: 550; white-space: nowrap; transition: background-color .2s ease, border-color .2s ease, transform .2s ease; }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover { background: var(--green-hover); }
.button-primary:active { transform: translateY(1px); }
.button-primary:focus-visible { outline-offset: 4px; }
.button-large { min-height: 64px; gap: 27px; padding: 18px 31px; font-size: 18px; }
.text-button { border: 0; padding: 9px 0; background: none; text-decoration: underline; text-underline-offset: 5px; font-size: 13px; line-height: 1.5; }
.text-button:hover { color: var(--green); }

.hero { position: relative; height: 100vh; height: 100svh; isolation: isolate; background: var(--warm); overflow: hidden; }
.site-header { position: absolute; z-index: 8; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 29px 42px; gap: 24px; }
.wordmark { display: inline-block; color: var(--ink); text-decoration: none; font-size: 27px; font-weight: 800; line-height: 1; letter-spacing: -.075em; }
.wordmark span { font-weight: 450; letter-spacing: -.065em; }
.header-cta { box-shadow: 0 0 0 5px var(--warm); }
.header-cta .icon { width: 18px; height: 18px; }
.header-municipality-link { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; padding: 12px 18px; border: 1px solid #cbd6cb; border-radius: 100px; background: #f3f4eff2; text-decoration: none; font-size: 14px; line-height: 1.3; white-space: nowrap; }
.header-municipality-link:hover { background: #fff; border-color: var(--green); }
.municipality-entry-link { margin-top: 22px; font-size: 14px; line-height: 1.6; }
.municipality-entry-link a { color: var(--green); text-underline-offset: 5px; }
.municipality-entry-link span { display: inline-block; margin-left: 8px; }
.hero-map, .hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-map { z-index: 1; opacity: 0; transition: opacity 1.2s ease; }
.hero-fallback { z-index: 2; object-fit: contain; padding: 98px 9vw 127px; pointer-events: none; opacity: 1; transition: opacity 1.2s ease, visibility 1.2s; }
.map-ready #hero-map, #hero-map.map-ready { opacity: 1; }
.is-ready .site-header, .is-ready .scroll-cue, .is-ready .hero-legend { animation: arrive .9s ease both; }
.is-ready .hero-fallback { animation: map-arrive 1.35s ease both; }
.map-ready #hero-fallback, #hero-map.map-ready ~ #hero-fallback { opacity: 0; visibility: hidden; animation: none; }
.hero-map-status { position: absolute; z-index: 5; top: 104px; left: 50%; transform: translateX(-50%); max-width: min(480px, calc(100% - 48px)); padding: 10px 16px; border-radius: 8px; color: var(--muted); background: rgb(243 244 239 / .93); text-align: center; font-size: 12px; line-height: 1.6; }
.hero-map-status:empty { display: none; }
.hero-legend { position: absolute; z-index: 4; left: 42px; bottom: 37px; display: grid; gap: 9px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.hero-legend > span { display: flex; align-items: center; gap: 9px; }
.swatch, .postcode-swatch { display: inline-block; flex: 0 0 auto; width: 12px; height: 12px; border: 1px solid #7c8782; border-radius: 2px; background: var(--unknown); }
.swatch.is-white, .postcode-swatch.is-white, .is-white > .postcode-swatch, .is-white > .swatch, .swatch.white, .postcode-swatch.white { background: var(--gap); border-color: #b63838; }
.swatch.is-other, .postcode-swatch.is-other, .is-other > .postcode-swatch, .is-other > .swatch, .swatch.other, .postcode-swatch.other { background: var(--unknown); border-color: #739581; }
.hero-reset { position: absolute; z-index: 5; right: 42px; bottom: 41px; display: flex; align-items: center; gap: 8px; min-height: 40px; border: 1px solid #cad6ca; border-radius: 100px; background: rgb(243 244 239 / .92); padding: 9px 15px; font-size: 12px; }
.hero-reset:hover { border-color: var(--green); }
.hero-reset .icon { width: 17px; height: 17px; }
.scroll-cue { position: absolute; z-index: 5; bottom: 27px; left: 50%; display: grid; justify-items: center; gap: 13px; width: max-content; max-width: calc(100% - 48px); padding: 8px 10px; color: var(--ink); font-size: 14px; line-height: 1.5; text-decoration: none; transform: translateX(-50%); }
.scroll-cue .icon { width: 22px; height: 22px; transition: transform .2s ease; }
.scroll-cue:hover .icon { transform: translateY(3px); }
.hero .maplibregl-ctrl-bottom-left, .hero .maplibregl-ctrl-bottom-right { bottom: 110px; }
.hero .maplibregl-ctrl-bottom-left { left: 32px; }
.hero .maplibregl-ctrl-bottom-right { right: 32px; }

.postcode-check { max-width: 840px; padding-block: clamp(90px, 10vw, 150px) 110px; text-align: center; }
.postcode-check h1, .postcode-check h2 { font-size: clamp(43px, 5.2vw, 73px); font-weight: 500; letter-spacing: -.057em; line-height: 1.04; }
.section-intro { max-width: 480px; margin: 26px auto 0; color: var(--muted); font-size: 17px; line-height: 1.65; text-wrap: balance; }
.postcode-form { max-width: 566px; margin: 41px auto 0; text-align: left; }
.postcode-form > label { display: block; margin-bottom: 10px; color: var(--ink); font-size: 13px; font-weight: 550; }
.postcode-field { display: flex; align-items: center; gap: 8px; padding: 7px; border: 1px solid #b8c8bc; border-radius: 17px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.postcode-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px #12805214; }
.postcode-field input { flex: 1; width: 100%; height: 57px; border: 0; border-radius: 10px; padding: 8px 15px; color: var(--ink); background: transparent; font-size: 25px; font-weight: 450; line-height: 1.3; letter-spacing: .09em; text-transform: uppercase; }
.postcode-field input::placeholder { color: #7d8f81; opacity: 1; }
.postcode-field input:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.postcode-field input[aria-invalid="true"] { outline-color: #a33629; }
.postcode-field .button { min-height: 57px; border-radius: 11px; gap: 18px; padding: 15px 20px; }
.form-error { margin-top: 10px; color: #993b2c; font-size: 13px; line-height: 1.6; }
.form-error:empty { display: none; }
.source-note { max-width: 570px; margin: 30px auto 0; color: var(--muted); font-size: 12px; line-height: 1.75; text-wrap: pretty; }
.noscript-note { max-width: 580px; margin: 20px auto 0; font-size: 14px; line-height: 1.65; }

.result-section { padding-block: 0 115px; }
.result-section.is-visible .result-intro { opacity: 1; animation: result-arrive .55s ease both; }
.result-intro { display: flex; align-items: flex-start; gap: 23px; max-width: 870px; margin: 0 auto 82px; padding-top: 62px; border-top: 1px solid var(--line); opacity: 0; }
.result-symbol { display: flex; justify-content: center; align-items: center; flex: 0 0 auto; width: 46px; height: 46px; margin-top: 4px; border: 1px solid #bed1c4; border-radius: 50%; color: var(--green); background: #f4f8f4; font-size: 23px; line-height: 1; }
.result-symbol:empty { display: none; }
.result-symbol.is-white, .result-section[data-status="white"] .result-symbol { background: #fff0df; border-color: #efc79e; color: #8b410e; }
.result-section[data-status="other"] .result-symbol { background: #edf4ef; border-color: #afc5b7; color: #38664b; }
.result-section[data-status="unknown"] .result-symbol { background: #f1f3ef; border-color: #c8d0c5; color: var(--muted); }
.result-eyebrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 13px; color: var(--muted); font-size: 12px; line-height: 1.6; }
#result-postcode { color: var(--ink); font-weight: 650; font-size: 15px; letter-spacing: .05em; }
#result-postcode:empty, #result-status-label:empty { display: none; }
.result-text h2 { max-width: 760px; font-size: clamp(29px, 3.4vw, 45px); line-height: 1.12; letter-spacing: -.04em; font-weight: 500; }
.result-copy { max-width: 690px; margin-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.result-copy:empty { display: none; }
.neighborhood-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 25px; }
.neighborhood-heading h3 { margin-bottom: 9px; font-size: 27px; line-height: 1.15; letter-spacing: -.035em; font-weight: 500; }
.radius-note { max-width: 690px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.radius-control { min-width: 0; margin: 0; padding: 0; border: 0; }
.radius-control legend { margin-bottom: 10px; padding: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.segmented-control { display: inline-flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 100px; background: #f5f7f3; }
.segmented-control button { min-width: 82px; min-height: 40px; border: 0; border-radius: 100px; padding: 10px 16px; background: transparent; font-size: 13px; white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.segmented-control button[aria-pressed="true"] { background: var(--green); color: #fff; }
.segmented-control button:hover:not([aria-pressed="true"]) { background: #e7eee5; }
.nearby-status { padding-bottom: 17px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.nearby-status:empty { display: none; }
.neighborhood-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: stretch; border-block: 1px solid var(--line); }
.neighborhood-map-shell { position: relative; height: 600px; min-width: 0; overflow: hidden; background: var(--warm); }
#neighborhood-map { position: absolute; inset: 0; width: 100%; height: 100%; }
.detail-fallback { position: absolute; z-index: 3; inset: 0; display: flex; align-items: center; justify-content: center; padding: 40px; color: var(--muted); background: var(--warm); text-align: center; font-size: 14px; line-height: 1.7; }
.detail-fallback:empty { display: none; }
.neighborhood-map-shell.map-ready .detail-fallback, #neighborhood-map.map-ready ~ .detail-fallback { opacity: 0; visibility: hidden; pointer-events: none; }
.map-selected { position: absolute; z-index: 4; bottom: 35px; left: 16px; max-width: calc(100% - 90px); padding: 9px 12px; border: 1px solid #d0dcd0; border-radius: 5px; background: rgb(255 255 255 / .96); color: var(--ink); font-size: 12px; line-height: 1.5; pointer-events: none; }
.map-selected:empty { display: none; }
.nearby-panel { display: flex; flex-direction: column; min-width: 0; max-height: 600px; border-left: 1px solid var(--line); padding: 24px 0 16px 24px; overflow: hidden; }
.nearby-panel > h3 { padding-right: 8px; font-size: 15px; line-height: 1.5; font-weight: 550; }
#nearby-summary strong { display: block; font-size: 17px; font-weight: 550; }
#nearby-summary span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 400; }
.nearby-filters { display: flex; gap: 4px; margin-top: 18px; padding: 0 6px 16px 0; border-bottom: 1px solid var(--line); }
.nearby-filters button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; border: 1px solid transparent; border-radius: 100px; padding: 7px 13px; background: transparent; color: var(--muted); font-size: 12px; line-height: 1.3; }
.nearby-filters button[aria-pressed="true"] { border-color: #c3d3c7; background: #eff4ef; color: var(--ink); }
.nearby-filters button:hover { background: #f3f6f1; }
.nearby-filters .swatch { width: 9px; height: 9px; }
.nearby-list { min-height: 0; margin: 0; padding: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c7d2c7 transparent; }
.nearby-list ul, .nearby-list ol { margin: 0; padding: 0; list-style: none; }
.nearby-list li { margin: 0; padding: 0; list-style: none; }
.nearby-row, .nearby-list > button, .nearby-list li > button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 55px; border: 0; border-bottom: 1px solid #e7ece4; border-radius: 0; padding: 15px 12px 15px 2px; color: var(--ink); background: transparent; text-align: left; text-decoration: none; font-size: 14px; line-height: 1.4; }
.nearby-row:hover, .nearby-list > button:hover, .nearby-list li > button:hover { background: #f3f7f1; }
.nearby-row[aria-current="true"], .nearby-row[aria-selected="true"], .nearby-row.is-selected { background: #eaf3eb; }
.nearby-row:focus-visible, .nearby-list button:focus-visible { position: relative; z-index: 1; outline-offset: -3px; }
.nearby-postcode { min-width: 0; font-weight: 550; letter-spacing: .025em; }
.nearby-postcode small { display: block; margin-top: 3px; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 400; letter-spacing: 0; }
.nearby-distance { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nearby-row > svg, .nearby-arrow { width: 15px; height: 15px; color: #829787; }
.nearby-row small { color: var(--muted); }
.nearby-empty { margin: 23px 14px 23px 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.nearby-more { flex: 0 0 auto; min-height: 43px; margin: 14px 12px 0 0; border: 0; padding: 10px 4px; background: transparent; color: var(--green); text-align: left; font-size: 13px; line-height: 1.4; }
.nearby-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.nearby-more span { margin-left: 6px; }
.map-context-note { flex: 0 0 auto; margin-top: 16px; padding: 12px 12px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; line-height: 1.6; }

.call-to-action { padding-block: clamp(88px, 9vw, 134px); border-top: 1px solid var(--line); background: #f2f5ee; text-align: center; }
.call-to-action h2 { font-size: clamp(34px, 4.2vw, 57px); font-weight: 450; letter-spacing: -.045em; line-height: 1.12; }
.call-to-action p { margin-top: 24px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.call-to-action .button { margin-top: 34px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 34px; padding-block: 37px 40px; }
.footer-wordmark { font-size: 22px; }
.footer-source { margin-left: auto; color: var(--muted); font-size: 11px; line-height: 1.9; }
.site-footer .text-button { flex-shrink: 0; }

.data-dialog { width: min(650px, calc(100% - 36px)); max-height: calc(100svh - 48px); margin: auto; border: 1px solid #dce3da; border-radius: 18px; padding: 0; color: var(--ink); background: var(--paper); box-shadow: 0 28px 100px #12382929; }
.data-dialog::backdrop { background: rgb(14 36 25 / .38); backdrop-filter: blur(3px); }
.dialog-heading { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 25px 30px 19px; border-bottom: 1px solid var(--line); background: #fff; }
.dialog-heading h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.03em; font-weight: 550; }
.dialog-close { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.dialog-close:hover { background: var(--warm); }
.dialog-content { padding: 6px 30px 34px; font-size: 14px; line-height: 1.75; }
.dialog-content h3 { margin-top: 27px; font-size: 16px; line-height: 1.5; font-weight: 600; }
.dialog-content p { margin-top: 10px; color: var(--muted); }
.dialog-content a { color: var(--green); text-underline-offset: 3px; }
.data-legend { display: grid; gap: 12px; margin: 17px 0; }
.data-legend > div { display: grid; grid-template-columns: 82px minmax(0,1fr); gap: 9px; }
.data-legend dt { display: flex; align-items: baseline; gap: 9px; font-weight: 550; }
.data-legend dd { margin: 0; color: var(--muted); }
.postcode-codes { color: var(--ink); }
.maplibregl-map { font-family: inherit; }
.maplibregl-ctrl-group { border-radius: 7px; box-shadow: 0 0 0 1px #1238291a !important; }
.maplibregl-ctrl-group button { min-width: 34px; min-height: 34px; }
.maplibregl-ctrl-attrib { font-size: 10px; }
.maplibregl-popup-content { border-radius: 8px; padding: 16px 20px 17px 16px; color: var(--ink); font-family: inherit; box-shadow: 0 3px 22px #1238291c; }
.maplibregl-popup-content p { margin-top: 5px; color: var(--muted); line-height: 1.5; }
.maplibregl-popup-close-button { width: 28px; height: 28px; font-size: 19px; }
@keyframes arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes map-arrive { from { opacity: 0; } to { opacity: 1; } }
@keyframes result-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 440px) {
  .site-header { display: grid; grid-template-columns: 1fr auto; gap: 12px 8px; }
  .header-cta { grid-column: 2; grid-row: 1; }
  .header-municipality-link { grid-column: 2; grid-row: 2; justify-self: end; }
  .hero .hero-reset { top: 129px; }
  .hero .hero-map-status { top: 130px; }
}
@media (min-width: 1600px) {
  .hero-fallback { padding-top: 105px; padding-bottom: 140px; }
}
@media (max-width: 1000px) {
  .section-shell { width: calc(100% - 56px); }
  .site-header { padding: 25px 28px; }
  .hero-legend { left: 28px; }
  .hero-reset { right: 28px; }
  .neighborhood-layout { grid-template-columns: minmax(0,1fr) 275px; }
  .nearby-panel { padding-left: 18px; }
  .nearby-filters button { padding-inline: 11px; }
  .neighborhood-heading { align-items: flex-start; }
  .radius-note { max-width: 380px; }
  .site-footer { gap: 24px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 22px; }
  .section-shell { width: calc(100% - 40px); }
  .site-header { padding: 23px 20px; gap: 16px; }
  .wordmark { font-size: 25px; }
  .header-cta { min-height: 43px; gap: 12px; padding: 11px 16px; font-size: 12px; }
  .header-cta .icon { width: 16px; height: 16px; }
  .header-municipality-link { font-size: 12px; gap: 6px; padding: 10px 12px; }
  .hero-fallback { padding: 106px 14px 171px; }
  .hero-map-status { top: 84px; font-size: 11px; }
  .hero-legend { right: 18px; left: 18px; bottom: 111px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; font-size: 10px; }
  .hero-legend > span { gap: 6px; }
  .hero-legend .swatch { width: 10px; height: 10px; }
  .hero-reset { top: 85px; right: 19px; bottom: auto; min-height: 35px; gap: 6px; padding: 7px 10px; font-size: 10px; }
  .hero-reset .icon { width: 14px; height: 14px; }
  .scroll-cue { bottom: 25px; gap: 10px; font-size: 13px; }
  .hero .maplibregl-ctrl-bottom-left, .hero .maplibregl-ctrl-bottom-right { bottom: 146px; }
  .hero .maplibregl-ctrl-bottom-left { left: 10px; }
  .hero .maplibregl-ctrl-bottom-right { right: 10px; }
  .postcode-check { padding-block: 89px 77px; }
  .postcode-check h1, .postcode-check h2 { font-size: clamp(39px, 9vw, 57px); }
  .section-intro { max-width: 330px; margin-top: 21px; font-size: 15px; }
  .postcode-form { max-width: 500px; margin-top: 31px; }
  .postcode-field { gap: 5px; padding: 6px; border-radius: 14px; }
  .postcode-field input { height: 53px; padding-inline: 11px; font-size: 21px; letter-spacing: .055em; }
  .postcode-field .button { min-height: 53px; gap: 10px; padding: 14px 14px; font-size: 13px; }
  .postcode-field .button .icon { width: 18px; height: 18px; }
  .source-note { max-width: 460px; margin-top: 25px; font-size: 11px; }
  .result-section { padding-bottom: 75px; }
  .result-intro { gap: 15px; margin-bottom: 49px; padding-top: 39px; }
  .result-symbol { width: 37px; height: 37px; font-size: 19px; }
  .result-eyebrow { gap: 4px 11px; margin-bottom: 9px; font-size: 11px; }
  #result-postcode { font-size: 13px; }
  .result-text h2 { font-size: 29px; }
  .result-copy { margin-top: 14px; font-size: 14px; }
  .neighborhood-heading { display: grid; gap: 21px; padding-bottom: 20px; }
  .neighborhood-heading h3 { font-size: 25px; }
  .radius-note { max-width: 540px; font-size: 12px; }
  .radius-control legend { margin-bottom: 8px; }
  .segmented-control { width: 100%; max-width: 380px; }
  .segmented-control button { flex: 1; min-width: 84px; min-height: 43px; padding-inline: 18px; }
  .neighborhood-layout { grid-template-columns: minmax(0,1fr); }
  .neighborhood-map-shell { height: 450px; }
  .nearby-panel { max-height: 520px; border-top: 1px solid var(--line); border-left: 0; padding: 23px 0 15px; }
  .nearby-panel > h3 { font-size: 16px; }
  .nearby-filters { margin-top: 14px; padding-bottom: 13px; }
  .nearby-filters button { min-height: 38px; padding-inline: 16px; }
  .nearby-row, .nearby-list > button, .nearby-list li > button { min-height: 57px; padding-left: 3px; padding-right: 8px; }
  .nearby-more { margin-top: 10px; }
  .call-to-action { padding-block: 81px; }
  .call-to-action h2 { font-size: clamp(30px, 6.6vw, 43px); }
  .call-to-action p { max-width: 280px; margin: 22px auto 0; font-size: 14px; }
  .call-to-action .button { margin-top: 27px; }
  .button-large { min-height: 59px; padding: 17px 26px; font-size: 16px; }
  .site-footer { align-items: flex-start; flex-wrap: wrap; gap: 22px 20px; padding-block: 29px 32px; }
  .footer-wordmark { font-size: 23px; }
  .footer-source { order: 3; width: 100%; margin-left: 0; font-size: 10px; line-height: 1.9; }
  .site-footer .text-button { margin-left: auto; padding: 2px 0; font-size: 12px; }
  .data-dialog { max-height: calc(100svh - 32px); }
  .dialog-heading { padding: 19px 21px 16px; }
  .dialog-heading h2 { font-size: 22px; }
  .dialog-content { padding: 1px 21px 28px; font-size: 13px; }
  .dialog-content h3 { font-size: 15px; }
  .data-legend > div { grid-template-columns: 71px minmax(0,1fr); }
}
@media (max-width: 370px) {
  .site-header { padding-inline: 17px; }
  .wordmark { font-size: 23px; }
  .header-cta { gap: 9px; padding-inline: 13px; }
  .section-shell { width: calc(100% - 32px); }
  .postcode-field input { padding-inline: 8px; font-size: 19px; }
  .postcode-field .button { gap: 7px; padding-inline: 10px; font-size: 12px; }
  .postcode-field .button .icon { width: 16px; height: 16px; }
}
@media (max-height: 650px) and (min-width: 721px) {
  .hero-fallback { padding-top: 70px; padding-bottom: 98px; }
  .site-header { padding-top: 21px; }
  .hero-legend { bottom: 24px; }
  .scroll-cue { bottom: 16px; gap: 7px; }
  .hero-reset { bottom: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Primary route: municipality first, postcode tools only on request. */
.municipality-first .site-header{position:relative;max-width:1404px;margin-inline:auto;padding:25px 42px;background:var(--paper)}
.municipality-first .header-cta{box-shadow:none}
.municipality-first #gemeente{padding-block:43px 55px;border-top:0}
.municipality-first #municipality-heading{font-size:clamp(39px,5.1vw,68px);font-weight:450;letter-spacing:-.055em;line-height:1.08}
.municipality-first .municipality-intro>.municipality-eyebrow{margin-bottom:20px}
.municipality-first .municipality-intro>p:last-child{max-width:620px;margin-top:21px}
.municipality-first .municipality-form{margin-top:32px}
.municipality-first .municipality-result{margin-top:45px}
.postcode-alternative{margin:25px auto 0;text-align:center}
.button-outline{border-color:#cbd5cc;background:transparent;color:var(--ink);font-size:13px;gap:16px}
.button-outline:hover{border-color:var(--ink);background:var(--warm)}
.button-outline .icon{width:18px;height:18px;transition:transform .2s ease}
#postcode-toggle[aria-expanded="true"] .icon{transform:rotate(180deg)}
.postcode-tools{border-top:1px solid var(--line);background:#f7f8f4;animation:arrive .35s ease both}
.postcode-tools .postcode-check{padding-block:45px 55px}
.postcode-tools .postcode-check h2{font-size:clamp(35px,4.3vw,58px)}
.postcode-close{margin-bottom:27px;color:var(--muted);text-decoration:none}
.postcode-close:hover{color:var(--ink)}
.postcode-tools .result-section{padding-bottom:75px}
@media(max-width:720px){
  .municipality-first .site-header{padding:22px 24px;gap:18px}
  .municipality-first #gemeente{padding-block:30px 38px}
  .municipality-first #municipality-heading{font-size:clamp(35px,7.8vw,51px)}
  .municipality-first .municipality-intro>p:last-child{font-size:15px;line-height:1.6}
  .municipality-first .municipality-form{margin-top:27px}
  .postcode-alternative{margin-top:19px}
  .postcode-alternative .button{white-space:normal;min-height:48px;padding-inline:18px}
  .postcode-tools .postcode-check{padding-block:35px 45px}
}

/* Introductory explanation, national overview and municipal action plan. */
.national-first .site-header{position:relative;padding:24px 42px;background:var(--warm)}
.national-first .header-cta{box-shadow:none}
.national-first .header-municipality-link{background:transparent}
.national-overview{height:calc(100svh - 96px);min-height:620px;background:var(--warm)}
.national-map-title{position:absolute;z-index:4;top:13px;left:50%;transform:translateX(-50%);width:calc(100% - 48px);max-width:850px;text-align:center;font-size:clamp(25px,3.1vw,39px);font-weight:450;letter-spacing:-.045em;line-height:1.16;pointer-events:none;text-wrap:balance}
.national-map-subtitle{position:absolute;z-index:4;top:64px;left:50%;transform:translateX(-50%);width:calc(100% - 48px);max-width:630px;text-align:center;color:var(--muted);font-size:12px;line-height:1.6;pointer-events:none}
.national-overview .hero-fallback{padding:92px 8vw 126px}
.national-overview .hero-legend{bottom:32px;left:42px;max-width:330px;font-size:11px;gap:11px}
.national-overview .hero-legend>span{align-items:center}
.national-overview .hero-legend small{display:block;margin-top:2px;color:var(--muted);font-size:10px;line-height:1.5}
.national-overview .hero-reset{top:auto;right:42px;bottom:35px}
.national-overview .hero-map-status{top:auto;bottom:115px;max-width:600px;font-size:11px;padding:7px 12px}
.hero-legend-note{font-size:10px;color:var(--muted);line-height:1.5}
.national-overview .scroll-cue{bottom:28px;font-size:12px;gap:9px}
.national-overview .maplibregl-ctrl-top-right{top:95px;right:32px}
.why-section{max-width:1060px;padding-block:85px 80px}
.why-intro{max-width:780px}
.why-intro :is(h1, h2){font-size:clamp(31px,4vw,49px);line-height:1.12;font-weight:450;letter-spacing:-.045em;text-wrap:balance}
.why-intro>p{max-width:690px;margin-top:20px;color:var(--muted);font-size:16px;line-height:1.75}
.why-intro>.national-eyebrow{margin:0 0 17px;font-size:11px;font-weight:550;letter-spacing:.09em;text-transform:uppercase;color:#a72d2d}
.why-bullets{list-style:none;display:grid;gap:21px;margin:34px 0 0;padding:0;max-width:910px}
.why-bullets>li{position:relative;padding-left:25px;color:var(--muted);font-size:15px;line-height:1.8;text-wrap:pretty}
.why-bullets>li::before{content:'';position:absolute;left:0;top:.7em;width:6px;height:6px;border-radius:50%;background:var(--gap)}
.why-bullets strong{color:var(--ink);font-weight:600}
.coverage-short-note{max-width:830px;margin-top:23px;color:var(--muted);font-size:12px;line-height:1.75}
.why-actions{display:flex;align-items:center;flex-wrap:wrap;gap:15px;margin-top:31px}
.coverage-explanation{margin-top:35px;border:1px solid var(--line);border-radius:12px;background:#f8f9f6}
.coverage-explanation>summary{padding:23px 25px;font-size:14px;line-height:1.6;font-weight:550;cursor:pointer;color:var(--ink)}
.coverage-explanation>summary::marker{color:var(--green);font-size:12px}
.coverage-explanation[open]>summary{border-bottom:1px solid var(--line)}
.coverage-explanation-body{padding:1px 28px 30px;max-width:940px;font-size:14px;line-height:1.85;color:var(--muted)}
.coverage-explanation-body :is(h2, h3){margin:29px 0 9px;color:var(--ink);font-size:17px;line-height:1.5;font-weight:600;letter-spacing:-.01em}
.coverage-explanation-body h4{margin:24px 0 8px;color:var(--ink);font-size:15px;line-height:1.5;font-weight:600}
.coverage-explanation-body p+p{margin-top:13px}
.coverage-explanation-body a{color:#18633f;text-decoration-thickness:1px;text-underline-offset:3px;overflow-wrap:anywhere}
.coverage-explanation-body strong{color:var(--ink);font-weight:600}
.coverage-sources{padding-left:22px;margin:14px 0 0;font-size:12px;line-height:1.8}
.coverage-sources li+li{margin-top:12px}
.coverage-data-source{margin-top:23px;padding-top:19px;border-top:1px solid var(--line);font-size:11px;line-height:1.8}
.national-first #gemeente{padding-block:85px 80px}
.national-first .municipality-intro>p:last-child{max-width:620px}
@media(max-width:1000px){
  .national-first .site-header{padding-inline:28px}
  .national-overview .hero-legend{left:28px;max-width:280px}
  .national-overview .hero-reset{right:28px}
}
@media(max-width:720px){
  .national-first .site-header{padding:20px;gap:14px}
  .national-first .header-municipality-link{padding:10px 0;border:0;text-underline-offset:4px}
  .national-overview{height:calc(100svh - 90px);min-height:580px}
  .national-map-title{top:12px;max-width:430px;font-size:28px}
  .national-map-subtitle{top:52px;font-size:11px;max-width:340px}
  .national-overview .hero-fallback{padding:94px 18px 157px}
  .national-overview .hero-legend{left:18px;right:18px;bottom:96px;max-width:none;gap:7px 18px;font-size:10px}
  .national-overview .hero-legend>span{gap:7px}
  .national-overview .hero-legend small{font-size:9px}
  .national-overview .hero-legend-note{width:100%;text-align:center;font-size:9px}
  .national-overview .hero-reset{top:auto;right:18px;bottom:43px;font-size:10px}
  .national-overview .scroll-cue{left:20px;bottom:29px;transform:none;justify-items:start;gap:7px;font-size:11px}
  .national-overview .hero-map-status{top:auto;bottom:155px;max-width:calc(100% - 40px);font-size:10px;line-height:1.5}
  .national-overview .maplibregl-ctrl-top-right{top:108px;right:10px}
  .national-overview .maplibregl-ctrl-bottom-left,.national-overview .maplibregl-ctrl-bottom-right{bottom:133px}
  .why-section{padding-block:58px 58px}
  .why-intro :is(h1, h2){font-size:34px}
  .why-intro>p{font-size:14px;margin-top:17px}
  .why-bullets{margin-top:26px;gap:17px}
  .why-bullets>li{padding-left:21px;font-size:14px;line-height:1.75}
  .why-actions{margin-top:27px}
  .coverage-explanation{margin-top:28px}
  .coverage-explanation>summary{padding:20px 18px;font-size:13px}
  .coverage-explanation-body{padding:0 19px 24px;font-size:13px;line-height:1.8}
  .coverage-explanation-body :is(h2, h3){font-size:16px;margin-top:24px}
  .coverage-sources{font-size:11px;padding-left:17px}
  .national-first #gemeente{padding-block:58px 60px}
}

/* Keep the legend legible over the detailed, interactive map. */
.national-overview .hero-legend{padding:14px 17px;max-width:355px;border:1px solid #dce3da;border-radius:12px;background:#fffffff2;box-shadow:0 3px 18px #12382908;gap:9px}
.swatch.is-ring{width:13px;height:13px;border:2px solid #cf3f3f;border-radius:50%;background:transparent}
.population-scale{width:100%;color:var(--muted);font-size:10px;line-height:1.45}
.population-scale>strong{display:block;color:var(--ink);font-size:10px;font-weight:600;margin-bottom:6px}
.population-scale-bands{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;text-align:center}
.population-scale-bands span{display:grid;gap:3px}
.population-scale-bands i{display:block;height:14px;border:1px solid #975d262b}
.population-band-1{background:#fbd9ad;border-radius:3px 0 0 3px}
.population-band-2{background:#f5b567}
.population-band-3{background:#ee8b35}
.population-band-4{background:#bc570b;border-radius:0 3px 3px 0}
.population-scale>small{display:block;margin-top:5px;font-size:9px;line-height:1.5}
.population-scale-detail{max-width:340px;margin:0 0 18px;padding:12px 14px;background:#fff;border:1px solid var(--line);border-radius:9px}
.result-population{margin-top:13px;font-size:13px;line-height:1.65;color:var(--muted)}
.national-population-title{border-top:1px solid #dce3da;padding-top:10px;font-weight:600;color:var(--ink)}
.national-hotspot-popup>.national-population-title:first-child{border-top:0;padding-top:0}
#population-method{scroll-margin-top:24px}
.national-hotspot-popup{padding:6px;color:var(--ink);font-family:inherit;line-height:1.6}
.national-hotspot-popup strong{display:block;font-size:15px;padding-right:12px}
.national-hotspot-popup p{font-size:12px;margin-top:5px}
.national-hotspot-popup a{display:inline-block;margin-top:12px;color:var(--green);font-size:12px;font-weight:600;text-underline-offset:3px}
@media(max-width:720px){.national-overview .hero-legend{max-width:none;bottom:87px;padding:11px 13px;font-size:10px;gap:6px 12px}.national-overview .hero-legend-note{text-align:left}.national-overview .hero-map-status{bottom:232px}.national-overview .maplibregl-ctrl-bottom-left,.national-overview .maplibregl-ctrl-bottom-right{bottom:203px}}
@media(max-width:720px){.national-overview{min-height:740px}.national-overview .hero-legend .population-scale{order:1}.national-overview .hero-legend-note{order:2}.national-overview .hero-map-status{bottom:302px}.national-overview .maplibregl-ctrl-bottom-left,.national-overview .maplibregl-ctrl-bottom-right{bottom:280px}.national-overview .hero-fallback{padding-bottom:280px}.population-scale>strong{font-size:10px}.population-scale-bands i{height:12px}}
