#regioes{padding:28px 30px;margin-top:24px}
#regioes .regions-title h2{font-size:28px;letter-spacing:-1px;margin:8px 0}
#regioes .regions-title p{font-size:12px;line-height:1.6}
.presidential-map-stage{position:relative;display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);gap:30px;align-items:center;min-height:510px;margin:18px 0;background:radial-gradient(ellipse at 35% 45%,#eaf0e4 0,transparent 65%);border-radius:16px}
.presidential-map-canvas{min-width:0;padding:12px;align-self:start}
#regioes .brazil-map{display:block;width:100%;height:auto;max-height:610px;overflow:visible;filter:drop-shadow(0 9px 9px #25382913)}
#brazil-map [data-uf]{cursor:pointer;stroke:#fffefa;stroke-width:.7;vector-effect:non-scaling-stroke;transition:fill .3s,filter .2s}
#brazil-map [data-uf]:hover,#brazil-map [data-uf]:focus,#brazil-map [aria-pressed=true]{stroke:#17251f;stroke-width:2;outline:none;filter:brightness(1.06)}
.map-invitation{max-width:290px;padding:20px}.map-invitation>span{font:500 10px var(--mono);color:#6b7e6b;text-transform:uppercase;letter-spacing:1.3px}.map-invitation h3{font:800 36px/1.2 var(--display);letter-spacing:-1.4px;margin:18px 0;color:#244c39}.map-invitation p{font-size:14px;line-height:1.7;color:#647368}.map-invitation small{display:block;font-size:11px;line-height:1.6;color:#849084}
.map-detail{min-width:0;align-self:center;padding:20px;border:1px solid #dce4d8;border-radius:14px;background:#fffefa;box-shadow:0 12px 35px #293f3510}
.map-detail-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.map-detail-heading h3{margin:0;font:750 18px var(--display)}.map-close{flex:none;width:30px;height:30px;background:#f0f3ec;border:0;border-radius:50%;font-size:22px;color:#43624e;cursor:pointer}.map-detail-scope{font:500 9px var(--mono);letter-spacing:1px;color:#778577;margin:8px 0 16px}.map-detail-progress{font-size:11px;line-height:1.6;margin:0;color:#526957}.map-data-time{font-size:10px;color:#798779}.map-detail-outcome{font-weight:700;font-size:13px;margin:15px 0 6px}.map-valid-caption{display:block;color:#7b877c;font-size:10px;margin-bottom:12px}.map-stale{padding:8px;border-radius:5px;background:#fff1d8;color:#87571f;font-size:11px;line-height:1.5}.map-no-data{line-height:1.7;color:#738174}
.map-leader{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:10px;border-top:1px solid #e9ede5;padding:13px 0;border-left:3px solid var(--candidate-color);padding-left:9px;margin-bottom:5px}.map-portrait{position:relative;display:grid;place-items:center;width:48px;height:55px;overflow:hidden;border-radius:9px;background:#e9eee5;color:#6a7e6c;font-size:13px;font-weight:700}.map-portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top}.map-candidate-info{display:grid;gap:4px}.map-candidate-info>strong{font-size:12px;overflow-wrap:anywhere}.map-candidate-info>small{font-size:10px;color:#778375}.map-candidate-info .map-rank{color:var(--candidate-color);font-weight:700}.map-candidate-votes{text-align:right;display:grid;gap:5px}.map-candidate-votes strong{font:700 17px var(--display);color:var(--candidate-color)}.map-candidate-votes small{font-size:9px;color:#7a867b;white-space:nowrap}
.map-others-toolbar{display:flex;align-items:center;gap:6px;margin:18px 0 9px;font-size:11px;color:#687b68}.map-others-toolbar span{margin-right:auto}.map-others-toolbar button{cursor:pointer;border:1px solid #d9e2d6;background:#f6f8f0;border-radius:5px;font-size:19px;color:#355b43;width:28px;height:27px}.map-others{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding-bottom:5px}.map-runner{flex:0 0 130px;display:grid;justify-items:center;text-align:center;gap:7px;padding:10px;background:#f4f6ef;border-radius:8px;scroll-snap-align:start}.map-runner .map-portrait{width:36px;height:40px}.map-runner .map-candidate-info{gap:3px}.map-runner .map-candidate-info strong{font-size:10px}.map-runner .map-candidate-votes{text-align:center}.map-runner .map-candidate-votes strong{font-size:13px}
.map-others-toolbar .map-carousel-toggle{display:grid;place-items:center;padding:0;line-height:1}
.map-others-toolbar .map-carousel-toggle::before{content:"";display:block;width:10px;height:11px;border-radius:1px;background:linear-gradient(to right,currentColor 0 3px,transparent 3px 7px,currentColor 7px 10px)}
.map-others-toolbar .map-carousel-toggle.is-paused::before{background:currentColor;clip-path:polygon(0 0,100% 50%,0 100%)}
.map-others-toolbar button:focus-visible{outline:2px solid #355b43;outline-offset:2px}
.presidential-map-legend{display:flex;flex-wrap:wrap;justify-content:center;gap:12px 23px;padding:18px 0;border-top:1px solid #e1e7dc}.presidential-map-legend span{display:flex;align-items:center;gap:7px;font-size:11px;color:#647260}.presidential-map-legend i{width:16px;height:12px;border-radius:3px;background:#d9dfd7}.presidential-map-legend .map-red{background:#c62f37}.presidential-map-legend .map-blue{background:#1d68c7}.presidential-map-legend .map-other{background:#79638e}.presidential-map-legend .map-tie{background:repeating-linear-gradient(108deg,#c62f37 0 4px,#1d68c7 4px 8px)}.presidential-map-status{font-size:10px;text-align:center;color:#7c8779;line-height:1.7;margin:0 0 22px}
#regioes .regions-content{display:block;border-top:1px solid #e1e7dc;padding-top:12px}#regioes .region-carousel-toolbar{font-size:10px;margin:0 0 12px}#regioes .region-cards{overflow:visible}#regioes .region-carousel-track{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;transform:none!important}#regioes .region-card{min-width:0;padding:14px 10px}#regioes .region-card-head{gap:9px}#regioes .region-mini-map{width:48px;height:58px;flex:none}#regioes .region-name{font-size:10px}#regioes .region-percent{font-size:18px}#regioes .region-count{font-size:8px;line-height:1.5}#regioes .region-substatus{font-size:7px}
@media(max-width:1100px){.presidential-map-stage{grid-template-columns:minmax(0,1.25fr) minmax(300px,1fr);gap:12px;min-height:430px}#regioes .region-carousel-track{grid-template-columns:repeat(3,minmax(0,1fr))}.map-detail{padding:14px}}
@media(max-width:700px){#regioes{padding:20px 14px}#regioes .regions-title h2{font-size:24px}.presidential-map-stage{grid-template-columns:1fr;gap:5px;min-height:0;margin-top:10px}.presidential-map-canvas{padding:0}#regioes .brazil-map{width:100%;height:auto;max-height:450px}.map-invitation{max-width:none;padding:5px 8px 15px;text-align:center}.map-invitation>span,.map-invitation h3{display:none}.map-invitation p{font-size:12px;margin:5px 0}.map-invitation small{font-size:10px}.map-detail{margin:8px 0 15px}.presidential-map-legend{gap:10px 15px}.presidential-map-legend span{font-size:10px}#regioes .region-carousel-track{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#regioes .region-card{padding:11px 7px}#regioes .region-mini-map{width:37px;height:45px}#regioes .region-percent{font-size:15px}#regioes .region-name{font-size:9px}}
@media(prefers-reduced-motion:reduce){#brazil-map [data-uf]{transition:none}}
/* Municipal view: preserve the geographic canvas while details float above it. */
#regioes .presidential-map-stage{display:block;background:transparent;min-height:0;isolation:isolate;overflow:hidden;border-radius:12px;margin:20px 0 0}
#regioes .presidential-map-canvas{padding:20px 0 10px;width:100%}
#regioes .brazil-map{width:100%;height:auto;max-height:860px;filter:none;overflow:visible}
#brazil-map .municipal-shapes path{stroke:#111213;stroke-opacity:.65;stroke-width:.12;stroke-linejoin:round;cursor:crosshair;transition:none}
#brazil-map .municipal-shapes path:hover{stroke:#fff;stroke-width:.5;stroke-opacity:1}
#brazil-map path[data-uf]{pointer-events:none!important;fill:none;stroke:#090a0c;stroke-opacity:.9;stroke-width:1.2;filter:none}
#brazil-map path[data-uf].is-scope-selected{stroke:#08775c;stroke-opacity:1;stroke-width:2.4}
#brazil-map .state-labels{font-family:Arial,sans-serif;pointer-events:none}
#brazil-map .state-label{pointer-events:all;cursor:pointer;outline:none}
#brazil-map .state-label text{fill:#fff;font-size:4.5px;font-weight:700;paint-order:stroke;stroke:#1118;stroke-width:.6;pointer-events:none}
#brazil-map .state-label .state-value{font-size:4.1px}
#brazil-map .state-label-hit{fill:transparent;stroke:transparent;stroke-width:.5}
#brazil-map .state-connector{fill:none;stroke:#777;stroke-width:.27;pointer-events:none}
#brazil-map .state-chip{stroke:#ddd7;stroke-width:.22}
#brazil-map .state-callout text{font-size:4px;stroke:none}
#brazil-map .state-label:focus .state-label-hit,#brazil-map .state-label:focus .state-chip,#brazil-map .state-label[aria-pressed=true] .state-chip{stroke:#fff;stroke-width:.7}
body.is-second-round #brazil-map .state-label text{fill:#263b31;stroke:#fffefa;stroke-width:1.2}
body.is-second-round #brazil-map .state-label[aria-disabled=true]{opacity:.45!important;cursor:not-allowed}
body.is-second-round #brazil-map .state-label[aria-pressed=true] .state-chip{fill:#08775c;stroke:#fffefa;stroke-width:.8}
#regioes .map-invitation{position:absolute;left:20px;bottom:22px;max-width:235px;padding:0;pointer-events:none;color:#65756b}
#regioes .map-invitation p{color:#56675d;font-size:11px;line-height:1.6}
#regioes .map-invitation small{color:#77827a;font-size:9px}
#regioes .map-detail{position:absolute;z-index:3;right:18px;top:18px;width:350px;max-width:calc(100% - 36px);max-height:calc(100% - 36px);overflow-y:auto;box-shadow:0 15px 55px #0007;margin:0;overscroll-behavior:contain}
#regioes .map-detail[data-side=left]{left:18px;right:auto}
#regioes .presidential-map-legend{border-top:0;margin-top:0;padding-top:18px}
#regioes .presidential-map-legend .map-red{background:#f92b36}
#regioes .presidential-map-legend .map-blue{background:#4169ed}
#regioes .presidential-map-legend .map-empty{background:#45433f}
body.is-second-round #regioes .presidential-map-legend .map-empty{background:#d9dfd7}
#regioes .municipal-color-guide{text-align:center;font-size:11px;color:#627261;line-height:1.6;margin:0 0 10px}
#regioes #municipal-map-status{margin-bottom:6px}
#regioes #presidential-map-status{margin-bottom:22px}
@media(max-width:700px){
  #regioes .presidential-map-stage{overflow:visible;border-radius:8px}
  #regioes .presidential-map-canvas{padding:14px 0 8px}
  #regioes .brazil-map{max-height:none}
  #regioes .map-detail,#regioes .map-detail[data-side=left]{position:relative;left:auto;right:auto;top:auto;width:auto;max-width:none;max-height:none;margin:0 8px 12px}
  #regioes .map-invitation{position:static;max-width:none;text-align:center;padding:0 12px 14px}
  #regioes .map-invitation p{margin:0;font-size:10px}
  #regioes .map-invitation small{font-size:9px}
  #regioes .municipal-color-guide{font-size:10px}
  #brazil-map .state-label text{font-size:5px}
  #brazil-map .state-label .state-value{font-size:4.6px}
  #brazil-map .state-callout text{font-size:4.2px}
}
.municipal-map-sources{text-align:center;font-size:10px;color:#7c8779;margin:-12px 0 20px;line-height:1.7}.municipal-map-sources a{color:#4b7058;text-underline-offset:3px}
.map-state-picker{display:none}
@media(max-width:700px){#regioes .map-state-picker{display:grid;gap:7px;margin:0 12px 14px;color:#65756b;font-size:11px;font-weight:600}#regioes .map-state-picker select{width:100%;min-height:44px;background:#fffefa;color:#27372e;border:1px solid #dce4d9;border-radius:7px;padding:10px;font:13px var(--sans)}}
