body[data-view=election-map]{--map-gutter:clamp(20px,5vw,64px);background:var(--color-paper);color:var(--color-forest);-webkit-font-smoothing:antialiased}
body[data-view=election-map] .map-shell{width:min(1400px,calc(100% - 2 * var(--map-gutter)));margin-inline:auto}
body[data-view=election-map] .map-masthead{background:var(--color-forest);color:var(--color-paper)}
body[data-view=election-map] .map-masthead .masthead-inner{display:flex;align-items:center;justify-content:space-between;min-height:88px;border-bottom:1px solid rgba(242,242,242,.24)}
body[data-view=election-map] .brand{display:block;min-height:44px} body[data-view=election-map] .brand img{display:block;width:160px;height:auto}
body[data-view=election-map] .map-masthead nav{display:flex;align-items:center;gap:28px} body[data-view=election-map] .map-masthead nav a{min-height:44px;display:inline-flex;align-items:center;font-size:14px;font-weight:600;text-decoration:none} body[data-view=election-map] .map-masthead nav a:hover{text-decoration:underline} body[data-view=election-map] .map-masthead nav .listen{padding:0 18px;border-radius:999px;background:var(--color-sun);color:var(--color-navy)}
body[data-view=election-map] .map-masthead nav .listen:hover{text-decoration:none;background:#f7a54b}
body[data-view=election-map] .intro{padding:24px 0 20px} body[data-view=election-map] .eyebrow{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase} body[data-view=election-map] h1{margin-top:8px;font-size:clamp(36px,5vw,40px);line-height:1;letter-spacing:-.05em;color:var(--color-navy)} body[data-view=election-map] .lede{max-width:none;margin-top:10px;font-size:17px}
body[data-view=election-map] .controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:18px 0;border-block:1px solid var(--color-border)} body[data-view=election-map] .mode-switch{display:flex;gap:4px;margin-right:auto} body[data-view=election-map] button{border-radius:8px} body[data-view=election-map] .mode-switch button[aria-pressed=true]{background:var(--color-forest);color:var(--color-paper)} body[data-view=election-map] .field{min-width:190px} body[data-view=election-map] label{display:block;margin-bottom:4px;font-size:12px;font-weight:700} body[data-view=election-map] select{width:100%;min-height:44px;padding:7px 12px;border:1px solid var(--color-forest);border-radius:8px;background:#fff;color:var(--color-navy)} body[data-view=election-map] .secondary{min-height:44px;background:transparent}
body[data-view=election-map] .status-row{display:flex;justify-content:space-between;gap:20px;padding:12px 0 32px;border-top:1px solid var(--color-border);font-size:13px} body[data-view=election-map] #map-status{font-weight:700} body[data-view=election-map] .dataset-note{color:var(--color-forest);text-align:right}
body[data-view=election-map] .map-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,.8fr);height:600px;border-top:1px solid var(--color-border)} body[data-view=election-map] .map-panel{position:relative;min-height:0;border-right:1px solid var(--color-border)} body[data-view=election-map] .map-viewport{position:relative;height:100%;min-height:0;overflow:hidden;background:#dbe6df;touch-action:none;cursor:grab} body[data-view=election-map] .map-viewport:active{cursor:grabbing} body[data-view=election-map] .tile-layer{position:absolute;inset:0;background:#e1e9e2} body[data-view=election-map] .tile{position:absolute;width:256px;height:256px;object-fit:cover} body[data-view=election-map] .map-svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none} body[data-view=election-map] .map-point{pointer-events:all;cursor:pointer;stroke:var(--color-paper);stroke-width:3} body[data-view=election-map] .map-point.is-selected{stroke:var(--color-navy);stroke-width:5} body[data-view=election-map] .map-toolbar{position:absolute;z-index:3;top:16px;left:16px;display:grid;gap:4px} body[data-view=election-map] .map-toolbar button{width:44px;min-height:44px;padding:0;background:#fff;color:var(--color-navy);font-size:25px;line-height:1} body[data-view=election-map] .map-attribution{position:absolute;right:8px;bottom:6px;padding:2px 5px;background:rgba(255,255,255,.85);font-size:11px;color:#26352f} body[data-view=election-map] .map-attribution a{color:inherit} body[data-view=election-map] .tile-failure{position:absolute;right:16px;top:16px;max-width:270px;padding:10px 12px;background:var(--color-warning-bg);color:var(--color-warning);font-size:13px;font-weight:700}
body[data-view=election-map] .location-panel{padding:24px 24px 12px;max-height:600px;overflow:auto} body[data-view=election-map] .panel-heading{display:flex;align-items:end;justify-content:space-between;gap:16px} body[data-view=election-map] h2{margin-top:5px;font-size:30px;line-height:1.05;letter-spacing:-.04em;color:var(--color-navy)} body[data-view=election-map] .panel-heading strong{font:700 42px/1 var(--font-display);color:var(--color-sun)} body[data-view=election-map] .scope-note{margin:10px 0 18px;font-size:14px} body[data-view=election-map] .section-picker{padding:12px 0 16px;border-top:1px solid var(--color-border)} body[data-view=election-map] .location-list{display:grid;gap:0;margin:0;padding:0;list-style:none} body[data-view=election-map] .location-list li{border-top:1px solid var(--color-border)} body[data-view=election-map] .location-list button{display:block;width:100%;padding:15px 0;border:0;border-radius:0;background:transparent;color:var(--color-navy);text-align:left} body[data-view=election-map] .location-list button:hover,body[data-view=election-map] .location-list button[aria-current=true]{background:#e4ebe8} body[data-view=election-map] .location-list strong,body[data-view=election-map] .location-list span{display:block} body[data-view=election-map] .location-list strong{font:650 17px/1.2 var(--font-display)} body[data-view=election-map] .location-list span{margin-top:4px;font-size:13px} body[data-view=election-map] .empty-state{padding:32px 0;font-weight:600}
body[data-view=election-map] .detail{display:grid;grid-template-columns:1.4fr .6fr 1fr;gap:28px;margin-top:28px;padding:24px 0;border-block:1px solid var(--color-border)} body[data-view=election-map] .detail h2{font-size:34px} body[data-view=election-map] .detail-meta{display:grid;grid-template-columns:auto 1fr;align-content:start;gap:3px 12px;font-size:13px} body[data-view=election-map] .detail-meta strong{font:700 25px/1.1 var(--font-display);color:var(--color-navy)} body[data-view=election-map] .detail-sections h3{font-size:16px} body[data-view=election-map] .detail-sections ul{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0 0;padding:0;list-style:none} body[data-view=election-map] .detail-sections li{padding:4px 8px;background:#e4ebe8;font-size:13px} body[data-view=election-map] .detail-note{grid-column:1/-1;font-size:13px}
body[data-view=election-map] .map-footnote{padding:18px 0;font-size:13px;color:var(--color-forest)}
@media(prefers-reduced-motion:reduce){body[data-view=election-map] *{scroll-behavior:auto!important;transition:none!important}}
body[data-view=election-map] .detail-result{grid-column:1/-1;border-top:1px solid var(--color-border);padding-top:20px}
body[data-view=election-map] .detail-sections button[aria-pressed=true]{background:var(--color-forest);color:var(--color-paper)}
body[data-view=election-map] .detail-result h3{font-size:22px;color:var(--color-navy)}
body[data-view=election-map] .section-offices{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 16px}
body[data-view=election-map] .section-offices button{min-height:44px;padding:8px 16px;border:1px solid var(--color-forest);background:transparent;color:var(--color-forest);font-size:15px}
body[data-view=election-map] .section-offices button:hover{background:#e4ebe8}
body[data-view=election-map] .section-offices button[aria-pressed=true]{background:var(--color-forest);color:var(--color-paper)}
body[data-view=election-map] .detail-result p{margin-top:8px;font-size:14px}
body[data-view=election-map] #detail-candidates{list-style:none;padding:0;margin:16px 0 0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px 24px}
body[data-view=election-map] #detail-candidates li{border-top:1px solid var(--color-border);padding:10px 0}
body[data-view=election-map] #detail-candidates strong,body[data-view=election-map] #detail-candidates span{display:block}
body[data-view=election-map] #detail-candidates span{font-size:13px;margin-top:4px}
body[data-view=election-map] button:disabled{opacity:.5;cursor:wait}
body[data-view=election-map] .tile{user-select:none;-webkit-user-drag:none}
body[data-view=election-map][data-map-mode=goias] .field-city{flex:1}
body[data-view=election-map][data-map-mode=goias] .city-search{position:relative;min-width:280px}
body[data-view=election-map][data-map-mode=goias] .city-search input{width:100%;min-height:44px;padding:7px 12px;border:1px solid var(--color-forest);border-radius:8px;background:#fff;color:var(--color-navy);font:inherit}
body[data-view=election-map][data-map-mode=goias] #city-options{position:absolute;z-index:5;top:100%;left:0;right:0;max-height:280px;overflow:auto;margin:4px 0 0;padding:4px;list-style:none;background:#fff;border:1px solid var(--color-border);border-radius:8px;box-shadow:0 8px 24px rgba(0,46,92,.16)}
body[data-view=election-map][data-map-mode=goias] #city-options li{display:block;width:100%;padding:10px 12px;border:0;background:transparent;color:var(--color-navy);text-align:left;font:inherit}
body[data-view=election-map][data-map-mode=goias] #city-options [role=option]{cursor:pointer}
body[data-view=election-map][data-map-mode=goias] #city-options [role=option]:hover,body[data-view=election-map][data-map-mode=goias] #city-options [aria-selected=true]{background:#e4ebe8}
body[data-view=election-map][data-map-mode=goias] #city-error{margin-top:5px;color:var(--color-warning);font-size:13px}
body[data-view=election-map][data-map-mode=goias] .result-panel{padding:28px 24px 20px;max-height:600px;overflow:auto;border-left:1px solid var(--color-border);color:var(--color-forest)}
body[data-view=election-map][data-map-mode=goias] .result-panel h2{font-size:34px}
body[data-view=election-map][data-map-mode=goias] .result-panel #detail-address{margin-top:8px;font-size:14px}
body[data-view=election-map][data-map-mode=goias] .result-panel .detail-result{margin-top:28px}
body[data-view=election-map] .boundaries-view,body[data-view=election-map] .boundaries-view .tile-layer{background:#e6eeeb}
body[data-view=election-map] .municipality{fill:#f7f7f1;stroke:#8ca79c;stroke-width:1;pointer-events:all;cursor:pointer}
body[data-view=election-map] .municipality.is-context{fill:#eef2ee;stroke:#b2c2ba}
body[data-view=election-map] .municipality:hover,body[data-view=election-map] .municipality:focus{fill:#d3e2d9;outline:none;stroke:var(--color-forest);stroke-width:2}
body[data-view=election-map] .municipality.is-selected{fill:#d3e2d9;stroke:var(--color-sun);stroke-width:3}
body[data-view=election-map] .state-boundary{fill:none;stroke:var(--color-forest);stroke-width:1.5;pointer-events:none}
body[data-view=election-map] .municipality-labels,body[data-view=election-map] .zone-label{pointer-events:none;fill:var(--color-navy);font:600 11px var(--font-body);paint-order:stroke;stroke:#f7f7f1;stroke-width:3;stroke-linejoin:round}
body[data-view=election-map] .zone-label{font-size:12px}
body[data-view=election-map] .boundary-failure{position:absolute;z-index:2;left:76px;right:16px;top:16px;max-width:370px;padding:12px;background:var(--color-paper);border:1px solid var(--color-border);border-radius:8px;font-size:14px}
body[data-view=election-map] .boundary-failure button{display:block;margin-top:10px;min-height:44px}
@media(max-width:800px){body[data-view=election-map] .map-layout{grid-template-columns:1fr;height:auto}body[data-view=election-map] .map-panel{height:420px;border-right:0;border-bottom:1px solid var(--color-border)}body[data-view=election-map] .map-viewport{height:420px}body[data-view=election-map] .location-panel,body[data-view=election-map] .result-panel{height:420px;max-height:420px;padding-inline:0}body[data-view=election-map] .status-row{display:block}body[data-view=election-map] .dataset-note{margin-top:4px;text-align:left}body[data-view=election-map] .detail{grid-template-columns:1fr 1fr}body[data-view=election-map] .detail-sections{grid-column:1/-1}}
@media(max-width:520px){body[data-view=election-map] .map-masthead .masthead-inner{min-height:76px}body[data-view=election-map] .map-masthead nav{gap:12px}body[data-view=election-map] .map-masthead nav a:first-child{display:none}body[data-view=election-map] .brand img{width:140px}body[data-view=election-map] .controls{align-items:stretch;display:grid;grid-template-columns:1fr 1fr}body[data-view=election-map] .mode-switch{grid-column:1/-1}body[data-view=election-map] .field{min-width:0}body[data-view=election-map] .secondary{grid-column:1/-1}body[data-view=election-map] .detail{grid-template-columns:1fr}}
@media(max-width:520px){body[data-view=election-map][data-map-mode=goias] .field-city{grid-column:1/-1}}
body[data-view=election-map]:not([data-map-mode=goias]){--voting-map-height:clamp(240px,calc(100svh - 390px),520px)}
body[data-view=election-map]:not([data-map-mode=goias]) .map-layout{height:var(--voting-map-height)}
body[data-view=election-map]:not([data-map-mode=goias]) .location-panel{max-height:var(--voting-map-height)}
@media(max-width:800px){body[data-view=election-map]:not([data-map-mode=goias]){--voting-map-height:clamp(180px,calc(100svh - 500px),320px)}body[data-view=election-map]:not([data-map-mode=goias]) .map-layout{height:auto}body[data-view=election-map]:not([data-map-mode=goias]) .map-panel{height:var(--voting-map-height)}body[data-view=election-map]:not([data-map-mode=goias]) .map-viewport{height:100%}body[data-view=election-map]:not([data-map-mode=goias]) .location-panel{max-height:420px}}

body[data-view=election-map] .scope-totals{display:grid;gap:4px;margin:0 0 18px;font-size:14px}
body[data-view=election-map] .scope-totals>div{display:flex;justify-content:space-between;gap:16px}
body[data-view=election-map] .scope-totals dd{margin:0;font-weight:700;color:var(--color-navy)}
body[data-view=election-map][data-site-shell]{--map-gutter:var(--gutter)}
@media(max-width:520px){body[data-view=election-map][data-site-shell]{--voting-map-height:clamp(70px,calc(100svh - 610px),320px)}}
