/* Shared map-first presentation. Electoral data and calculations stay unchanged. */
body.atlas-map-page main{max-width:1840px}
body.atlas-map-page:has(#mapView) header{padding:12px 4%}
body.atlas-map-page:has(#mapView) main{padding-top:12px}
body.atlas-map-page:has(#mapView) .eyebrow{font-size:11px;margin:0}
body.atlas-map-page:has(#mapView) h1{font-size:28px;margin:5px 0 10px}
body.atlas-map-page:has(#mapView) .filters{gap:10px;margin-top:8px;margin-bottom:8px}
body.atlas-map-page:has(#mapView) .filters label{font-size:12px;gap:4px}
body.atlas-map-page:has(#mapView) .filters input,body.atlas-map-page:has(#mapView) .filters select{font-size:14px;padding:7px;min-height:34px}
body.atlas-map-page:has(#mapView) .view-tabs{padding:4px 0;margin-top:4px}
body.atlas-map-page:has(#mapView) .view-tabs button{padding:8px 12px;font-size:13px}
html.atlas-embedded .controls{padding:6px!important;gap:8px!important}
html.atlas-embedded .controls label{font-size:12px;gap:4px}
html.atlas-embedded .controls select,html.atlas-embedded .controls button{font-size:13px;padding:6px;min-height:32px;height:34px}
body.atlas-map-page:not(.embedded) h1{font-size:clamp(26px,3vw,36px);margin-top:8px;margin-bottom:12px}
.atlas-map-page #map,.atlas-map-page .area-map,html.atlas-embedded #map{height:72vh!important;min-height:540px!important;max-height:900px!important}
.atlas-map-page .map-layout,.atlas-map-page .map-grid{grid-template-columns:minmax(0,1fr) 290px!important;gap:16px}
.atlas-map-page .map-shell:has(>aside){grid-template-columns:minmax(0,1fr) 270px}
.atlas-map-page .map-layout>.sidebar,.atlas-map-page .map-grid>aside{max-height:900px;overflow:auto}
.atlas-map-page #content:has(>#mapView){display:flex;flex-direction:column}
.atlas-map-page #content>.view-tabs{order:0;margin-top:8px}
.atlas-map-page #content>#sharedFilters{order:1;margin:10px 0;padding:10px 14px;background:#f8f7f5;border:1px solid #ded8d1}
.atlas-map-page #content>#mapView{order:2;padding-top:8px}
.atlas-map-page #mapView h2{font-size:23px;margin:0 0 5px}
.atlas-map-page #mapNote{font-size:12px;margin:0 0 10px}
.atlas-map-page #mapHost{border-top:4px solid #85253b;box-shadow:0 8px 28px #2524220c}
.atlas-map-page #mapHost iframe{display:block;width:100%;height:1050px!important}
.atlas-map-page #content>#analysisView,.atlas-map-page #content>#tableView,.atlas-map-page #content>#compareView,.atlas-map-page #content>#sourcesView{order:3}
.atlas-map-page #content>#leaders{order:4;margin-top:22px}
.atlas-map-page #content>#kpis{order:5}
.atlas-map-page #content>.warning{order:6}
.atlas-map-page #content>#presidencyBreakdown{order:7}
.atlas-map-page [data-view=map]{order:-1;font-weight:800}
.atlas-map-page .scope-controls{padding:12px 16px}
.atlas-map-page #coverage{margin:7px 0;font-size:13px}
.map-first-link{display:inline-block;font:700 13px Arial,sans-serif;color:#85253b;padding:9px 14px;border:1px solid #d7c5ca;border-radius:4px;text-decoration:none;margin:0 0 12px;background:#faf6f7}
.map-first-link:hover{background:#f1e4e8}
.map-first-link:focus-visible{outline:3px solid #b39455;outline-offset:3px}
.electoral-map-panel{margin:18px 0 24px;border-top:3px solid #85253b;padding-top:16px}
.atlas-map-page #areaIndicators{margin-top:20px}
@media(max-width:850px){.atlas-map-page .map-layout,.atlas-map-page .map-grid,.atlas-map-page .map-shell:has(>aside){grid-template-columns:1fr!important}.atlas-map-page #map,.atlas-map-page .area-map,html.atlas-embedded #map{height:65vh!important;min-height:380px!important;max-height:680px!important}.atlas-map-page #mapHost iframe{height:1450px!important}.atlas-map-page .map-layout>.sidebar,.atlas-map-page .map-grid>aside{max-height:none}.atlas-map-page .scope-controls{padding:10px}.atlas-map-page .view-tabs{flex-wrap:wrap}}
