:root{--res-green:#07543c;--res-bright:#088b58;--res-yellow:#ffda1a;--res-ink:#15372b;--res-muted:#61786d;--res-bg:#f3f7f4;--res-border:#dce7df;--res-shell:1240px}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;font-family:Manrope,Arial,sans-serif;color:var(--res-ink)}
[hidden]{display:none!important}
button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}
button,a,select,input{touch-action:manipulation}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #d9ac13;outline-offset:3px}

.res-main{background:var(--res-bg);min-height:100vh;padding-bottom:48px}
.res-shell{width:min(calc(100% - 48px),var(--res-shell));margin-inline:auto}
.res-kicker{font-weight:800;font-size:10px;letter-spacing:.14em;line-height:1.4;color:var(--res-bright);text-transform:uppercase}
.res-hero{padding:67px 0 76px;background:radial-gradient(circle at 85% 5%,rgba(15,169,112,.32),transparent 37%),linear-gradient(110deg,#012d20,#074f37 74%,#063c2b);color:white}
.res-hero__grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(235px,.55fr);gap:34px;align-items:center}
.res-hero .res-kicker{color:var(--res-yellow)}.res-hero h1{font-family:Sora,Manrope,sans-serif;font-weight:800;font-size:clamp(32px,3.9vw,53px);line-height:1.10;letter-spacing:-.045em;margin:13px 0 17px;max-width:670px}.res-hero h1 span{display:block;color:var(--res-yellow)}.res-hero p{font-size:14px;line-height:1.7;max-width:700px;margin:0;color:#d5eee1}
.res-hero__badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px}.res-hero__badges span{font-size:10px;font-weight:800;border:1px solid #ffffff45;padding:8px 12px;border-radius:999px;color:#ebfff3;background:#ffffff0a}
.res-live-card{padding:26px 22px;display:flex;gap:15px;border:1px solid #ffffff35;border-radius:20px;background:#fff1;box-shadow:0 16px 35px #00190c2c}
.res-live-dot{flex:0 0 12px;width:12px;height:12px;margin-top:4px;background:#9fc9b1;border-radius:50%;box-shadow:0 0 0 5px #ffffff12}
.res-live-card strong{display:block;color:#fff;font:800 16px Sora,Manrope,sans-serif;line-height:1.45}.res-live-card small{display:block;margin:6px 0 14px;color:#bfe1ce;font-size:11px;line-height:1.45}.res-live-card a{font-size:11px;font-weight:800;color:#ffe968;text-decoration:none}.res-live-card.is-stale .res-live-dot{background:#ffbd72}
.res-modebar{display:flex;align-items:center;gap:8px;padding-top:22px}.res-modebar button{border:1px solid var(--res-border);padding:12px 18px;border-radius:12px;background:white;color:#365445;font-size:12px;font-weight:800;min-height:44px}.res-modebar button.is-active{background:var(--res-green);color:white;border-color:var(--res-green)}.res-modebar>span{margin-left:auto;font-size:11px;color:var(--res-muted);text-align:right;max-width:300px}
.res-toolbar{display:grid;grid-template-columns:minmax(155px,1fr) minmax(160px,1fr) minmax(140px,.8fr) minmax(180px,1.25fr) auto;gap:12px;padding:20px;background:white;border:1px solid var(--res-border);border-radius:18px;margin-top:14px;box-shadow:0 6px 18px #163d2805}
.res-filter{display:grid;gap:7px;min-width:0}.res-filter label{font-size:10px;letter-spacing:.05em;color:#4d6c5c;font-weight:800}.res-filter select,.res-filter input{width:100%;height:45px;border:1px solid #cfded4;border-radius:9px;padding:0 11px;background:#f9fcf9;color:#163c2c;font-weight:600;font-size:12px;min-width:0}.res-filter input::placeholder{color:#728679;font-weight:500}.res-refresh{align-self:end;border:0;padding:0 16px;min-height:45px;border-radius:9px;background:var(--res-green);color:white;font-weight:800;font-size:11px}.res-refresh:hover{background:#096848}.res-extra{grid-column:span 2}
.res-demo{margin-top:16px;background:#fff5d1;border:2px solid #cda526;color:#6e5107;padding:15px;border-radius:12px;display:flex;gap:12px;flex-wrap:wrap;font-size:12px}.res-demo a{font-weight:800;color:inherit;margin-left:auto}
.res-update{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:12px;margin-bottom:18px;color:#4d6958;font-size:11px;line-height:1.5}.res-update p{margin:0;border-left:3px solid #268961;padding:6px 0 6px 11px}.res-update .is-stale{color:#805219;border-color:#d59942}.res-update .is-error{color:#a43730;border-color:#cd5d55}.res-update>span{flex-shrink:0;max-width:280px;text-align:right;font-size:10px;color:#708374}
.res-overview,.res-results,.res-info{margin-top:18px;padding:27px;background:white;border:1px solid var(--res-border);border-radius:22px;box-shadow:0 7px 25px #1b4a3004}
.res-section-head{display:flex;justify-content:space-between;gap:25px;align-items:center;margin-bottom:21px}.res-section-head h2{font-family:Sora,Arial,sans-serif;font-size:24px;letter-spacing:-.035em;line-height:1.25;margin:6px 0}.res-section-head p{font-size:12px;line-height:1.6;margin:0;color:var(--res-muted)}
.res-summary{text-align:right;flex-shrink:0}.res-summary strong{font-family:Sora,Arial,sans-serif;font-size:30px;font-weight:800;display:block;color:var(--res-green)}.res-summary span{font-size:10px;line-height:1.5;color:var(--res-muted)}
.res-map-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(270px,1fr);gap:28px;align-items:center}.res-map-wrap{padding:14px 18px 8px;background:radial-gradient(ellipse at center,#eaf1e9,transparent 72%);min-width:0}.res-map-wrap svg{display:block;width:100%;max-height:455px;margin:auto;overflow:visible}.res-map-state{outline:0;cursor:pointer}.res-map-state path{fill:#cedfd2;stroke:white;stroke-width:1.4;transition:fill .18s}.res-map-state.is-progress path{fill:#62ae87}.res-map-state.is-final path{fill:#167653}.res-map-state.is-active path{fill:#f2d44a;stroke:#986f08;stroke-width:2}.res-map-state:hover path,.res-map-state:focus-visible path{stroke:#695309;stroke-width:3;fill:#e1c651}.res-map-state.is-region-match path{fill:#0b8f61;stroke:#fff;stroke-width:1.7}.res-map-state.is-region-muted path{fill:#e7ebe8;stroke:#fff;stroke-width:1.2}.res-map-state.is-region-match:hover path,.res-map-state.is-region-match:focus-visible path{fill:#08774f;stroke:var(--res-yellow);stroke-width:2.5}.res-map-state.is-region-muted:hover path,.res-map-state.is-region-muted:focus-visible path{fill:#d8ddda;stroke:#aeb9b2;stroke-width:2}.res-map-wrap text{font:900 12px Arial,sans-serif;fill:#254f36;text-anchor:middle;dominant-baseline:middle;pointer-events:none;transition:fill .18s,stroke .18s}.res-map-label.is-region-match:not(.is-external){fill:#fff;stroke:#07543c;stroke-width:2.2px;paint-order:stroke fill;stroke-linejoin:round}.res-map-label.is-region-match.is-external{fill:#07543c;stroke:#fff;stroke-width:1.4px;paint-order:stroke fill}.res-map-label.is-region-muted{fill:#697b71;stroke:#f7faf8;stroke-width:1px;paint-order:stroke fill}.res-map-leader{fill:none;stroke:#687d65;stroke-width:1;pointer-events:none;transition:stroke .18s,stroke-width .18s}.res-map-leader.is-region-match{stroke:#0b8f61;stroke-width:1.6}.res-map-leader.is-region-muted{stroke:#b4c0b9;stroke-width:1}
.res-map-legend{display:flex;justify-content:center;gap:19px;padding-top:10px;font-size:10px;color:var(--res-muted)}.res-map-legend span{display:flex;align-items:center;gap:6px}.res-map-legend i{width:9px;height:9px;background:#cedfd2;border-radius:3px}.res-map-legend span:nth-child(2) i{background:#62ae87}.res-map-legend span:nth-child(3) i{background:#167653}.res-map-legend .is-region i{background:var(--res-green)!important}.res-map-legend .is-muted i{background:#e7ebe8!important;border:1px solid #cfd7d2}
.res-map-detail{border:1px solid #dce8db;background:#f8fbf7;border-radius:17px;padding:24px}.res-map-detail h3{font-family:Sora,Arial,sans-serif;font-size:28px;margin:6px 0 14px;letter-spacing:-.04em}.res-map-percent{font-family:Sora,Arial,sans-serif;color:var(--res-green);font-size:43px;font-weight:800;line-height:1.1}.res-map-detail>p{margin:4px 0;font-size:12px;color:#607764}.res-map-detail dl{margin:20px 0 16px}.res-map-detail dl div{padding:10px 0;border-bottom:1px solid #e0e9dd;display:flex;justify-content:space-between;gap:16px;font-size:10px}.res-map-detail dt{color:var(--res-muted)}.res-map-detail dd{font-weight:800;text-align:right;margin:0}.res-map-detail button{border:0;border-radius:9px;background:var(--res-green);color:white;font-size:12px;font-weight:800;padding:13px 12px;width:100%;min-height:44px;margin-top:7px}.res-map-detail .res-map-footnote{font-size:10px;line-height:1.5;margin-top:14px}
.res-states-details{border-top:1px solid #e4ece3;margin-top:23px;padding-top:15px}.res-states-details summary{font-size:11px;font-weight:800;cursor:pointer;color:var(--res-green);padding:5px 0;min-height:33px}.res-uf-grid{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:8px;margin-top:15px}.res-uf{background:#f6faf6;border:1px solid #d5e3d5;border-radius:10px;padding:10px;text-align:left;min-width:0}.res-uf strong{font-size:13px}.res-uf>span{display:block;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#607965;margin:3px 0 8px}.res-uf b{display:block;font-size:13px}.res-uf small{font-size:9px;display:block;color:var(--res-muted);margin-top:3px;line-height:1.3}.res-uf.is-active{background:#0b5c40;color:white;border-color:#0b5c40}.res-uf.is-active>span,.res-uf.is-active small{color:#d0e0d1}
.res-stage{max-width:280px;text-align:right;flex-shrink:0}.res-stage span{display:inline-block;border:1px solid #d5e4d7;background:#eff6ee;border-radius:22px;padding:8px 12px;font-size:10px;font-weight:800;color:var(--res-green)}.res-stage small{font-size:10px;display:block;color:var(--res-muted);margin-top:6px}
.res-progress{height:7px;background:#edf3ec;border-radius:10px;overflow:hidden;margin-bottom:17px}.res-progress>span{display:block;height:100%;width:0;background:linear-gradient(90deg,#167d53,#ead440);transition:width .3s}
.res-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:20px}.res-stat{padding:15px;background:#f6faf5;border:1px solid #e2ebe0;border-radius:11px;min-width:0}.res-stat strong{display:block;font-family:Sora,Arial,sans-serif;font-size:18px;line-height:1.35;overflow-wrap:anywhere}.res-stat>span{font-size:9px;font-weight:700;color:var(--res-muted);text-transform:uppercase;letter-spacing:.045em;display:block;margin-top:4px}
.res-list-tools{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:6px 0 15px;font-size:11px;color:var(--res-muted)}.res-list-tools label{display:flex;align-items:center;gap:8px}.res-list-tools select{border:1px solid #cfddce;border-radius:8px;background:white;font-size:11px;color:var(--res-green);padding:8px;min-height:40px}.res-proportional{font-size:11px;line-height:1.6;padding:12px 14px;background:#eff5fa;border-radius:9px;color:#2a5670}
.res-candidates{display:grid;gap:10px}.res-candidate{display:grid;grid-template-columns:60px minmax(0,1fr) 156px;gap:17px;align-items:center;border:1px solid #dce7db;border-radius:14px;padding:16px;background:white}.res-candidate__photo{width:60px;height:76px;border-radius:10px;object-fit:contain;background:#eff4ee;border:1px solid #dfe8dd}.res-candidate__info{min-width:0}.res-candidate h3{font-family:Sora,Arial,sans-serif;letter-spacing:-.01em;font-size:15px;line-height:1.4;margin:4px 0 6px;overflow-wrap:anywhere}.res-candidate__office{font-size:9px;font-weight:800;color:#287453;text-transform:uppercase;letter-spacing:.055em}.res-candidate__meta{display:flex;gap:8px;flex-wrap:wrap;align-items:center;font-size:10px;line-height:1.5;color:#536d59}.res-candidate__meta>span:first-child{font-weight:800}.res-candidate__status{padding:3px 7px;background:#eff4ee;border-radius:5px;font-size:9px}.res-candidate__status.is-elected{background:#0e744b;color:white}.res-candidate__dest,.res-candidate__process{display:block;color:var(--res-muted);font-size:10px;line-height:1.6;margin-top:5px;overflow-wrap:anywhere}.res-candidate__detail{border:0;padding:7px 0;background:none;color:#146e4c;font-size:10px;font-weight:800;min-height:35px}.res-candidate__numbers{text-align:right}.res-candidate__number{font-family:Sora,Arial,sans-serif;font-weight:800;font-size:22px;color:#125683;display:block}.res-candidate__percent{font-family:Sora,Arial,sans-serif;font-size:22px;font-weight:800;color:var(--res-green);display:block;margin-top:5px}.res-candidate__votes{font-size:11px;color:#657a66;display:block;margin-top:4px}.res-empty{padding:30px 18px;text-align:center;font-size:13px;line-height:1.6;background:#f5f8f3;border:1px dashed #cddccc;border-radius:12px;color:var(--res-muted)}.res-load-more{display:block;margin:20px auto 0;min-height:44px;border:1px solid #b7d3bb;color:var(--res-green);border-radius:10px;background:#f5faf3;padding:12px 24px;font-size:12px;font-weight:800}
.res-info h2{font-family:Sora,Arial,sans-serif;font-size:20px;margin:0 0 20px}.res-info__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.res-info article{padding:18px;border:1px solid #e2ebe0;border-radius:12px;position:relative}.res-info article>b{display:block;color:#9bab91;font-size:12px;margin-bottom:12px}.res-info h3{font-size:13px;margin:0 0 8px}.res-info p{font-size:11px;line-height:1.7;color:var(--res-muted);margin:0}.res-info .res-election-note{margin-top:18px;padding-top:18px;border-top:1px solid #e0e9dc;font-size:11px}
.campaign-source-note{padding:18px 24px;text-align:center;background:#eaf0e7;color:#57705b;font-size:10px;line-height:1.7}.campaign-source-note a{color:var(--res-green);font-weight:800}
.res-dialog{width:min(620px,calc(100% - 28px));max-height:85vh;border:1px solid #c7d9c4;border-radius:20px;padding:29px;color:var(--res-ink);background:white;box-shadow:0 25px 90px #06251545}.res-dialog::backdrop{background:#052518ab}.res-dialog h2{font-family:Sora,Arial,sans-serif;font-size:22px;margin:9px 30px 18px 0}.res-dialog-close{position:absolute;right:12px;top:12px;width:40px;height:40px;background:#eff4ed;border:0;border-radius:50%;font-size:25px;color:#34503b}.res-dialog p{font-size:12px;line-height:1.6}.res-dialog-fields>div{display:grid;grid-template-columns:160px 1fr;gap:18px;padding:11px 0;border-bottom:1px solid #e4ece0;font-size:12px;line-height:1.5}.res-dialog-fields dt{color:var(--res-muted)}.res-dialog-fields dd{margin:0;font-weight:700;overflow-wrap:anywhere}.res-official-link{display:inline-block;background:var(--res-green);color:white;padding:13px 17px;border-radius:9px;font-size:12px;font-weight:800;text-decoration:none;margin-top:14px}.res-dialog .res-dialog-source{font-size:10px;color:var(--res-muted)}
#resultTitle{scroll-margin-top:160px}
@media(max-width:1100px){.res-toolbar{grid-template-columns:1fr 1fr 1fr}.res-filter--search{grid-column:span 2}.res-refresh{width:100%}.res-extra{grid-column:span 1}.res-hero__grid{grid-template-columns:minmax(0,1fr) 280px}.res-uf-grid{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(max-width:800px){.res-shell{width:calc(100% - 28px)}.res-hero{padding:52px 0 58px}.res-hero__grid{grid-template-columns:1fr;gap:25px}.res-hero h1{font-size:39px}.res-live-card{max-width:500px;padding:18px}.res-live-card small{margin-bottom:8px}.res-modebar{flex-wrap:wrap}.res-modebar>span{max-width:none;flex:1 0 100%;text-align:left;font-size:10px;margin-top:3px}.res-overview,.res-results,.res-info{padding:20px}.res-map-grid{grid-template-columns:1fr 1fr;gap:15px}.res-map-wrap{padding:0}.res-map-detail{padding:18px}.res-map-detail h3{font-size:23px}.res-map-percent{font-size:33px}.res-map-detail dl div{flex-direction:column;gap:3px}.res-map-detail dd{text-align:left}.res-uf-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.res-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.res-section-head h2{font-size:21px}.res-section-head{gap:16px}.res-stage{max-width:200px}.res-info__grid{gap:10px}.res-update{align-items:flex-start}.res-update>span{max-width:170px}.res-candidate{grid-template-columns:56px minmax(0,1fr) 125px}.res-candidate__photo{width:56px;height:70px}}
@media(max-width:580px){.res-shell{width:calc(100% - 24px)}.res-hero{padding:40px 0 55px}.res-hero h1{font-size:33px}.res-hero p{font-size:13px}.res-hero__badges{gap:6px;margin-top:18px}.res-hero__badges span{font-size:9px;padding:6px 8px}.res-toolbar{grid-template-columns:1fr 1fr;gap:12px;padding:15px}.res-filter--search{grid-column:1/-1}.res-refresh{grid-column:1/-1}.res-modebar button{flex:1;padding:11px 9px;font-size:11px}.res-update{display:block}.res-update>span{display:block;text-align:left;max-width:none;margin-top:6px;padding-left:14px}.res-overview,.res-results,.res-info{padding:18px;border-radius:17px}.res-section-head{align-items:flex-start;flex-wrap:wrap;margin-bottom:18px}.res-section-head>div:first-child{min-width:0}.res-summary{text-align:left}.res-summary strong{font-size:25px}.res-map-grid{grid-template-columns:1fr}.res-map-wrap svg{max-height:340px}.res-map-wrap text{font-size:13px}.res-map-detail{padding:19px}.res-map-detail h3{margin:5px 0 9px}.res-map-detail dl{margin:10px 0}.res-map-detail dl div{flex-direction:row;font-size:10px;gap:10px}.res-map-detail dd{text-align:right}.res-map-detail .res-map-footnote{margin-top:11px}.res-map-legend{font-size:9px;gap:12px}.res-uf-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.res-uf{padding:9px}.res-stage{text-align:left;max-width:none}.res-section-head h2{font-size:21px}.res-stat{padding:12px}.res-stat strong{font-size:16px}.res-candidate{grid-template-columns:48px minmax(0,1fr);gap:12px;padding:13px}.res-candidate__photo{width:48px;height:64px}.res-candidate__numbers{grid-column:2;display:flex;align-items:center;gap:12px;flex-wrap:wrap;text-align:left;border-top:1px solid #e5ece2;padding-top:9px}.res-candidate__number{font-size:18px}.res-candidate__percent{font-size:17px;margin:0}.res-candidate__votes{font-size:10px;margin:0}.res-candidate h3{font-size:13px}.res-candidate__office{font-size:8px;line-height:1.5}.res-info__grid{grid-template-columns:1fr}.res-info article{padding:17px}.res-dialog{padding:24px 18px}.res-dialog-fields>div{grid-template-columns:1fr;gap:3px}.res-dialog h2{font-size:19px}.res-list-tools{align-items:flex-start}.res-list-tools label{font-size:10px;gap:5px}.res-list-tools select{font-size:10px;padding:7px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Bandeiras locais e retratos oficiais, sem deformação. */
.res-state-flag{display:inline-block;width:28px;height:20px;object-fit:contain;vertical-align:middle;flex:0 0 auto;border:1px solid #d7e3d9;background:#fff;border-radius:3px}.res-uf-picker{position:relative;display:block;width:100%;min-width:0}.res-uf-picker>button{display:flex;align-items:center;gap:8px;text-align:left;min-height:52px;width:100%;padding:8px 12px;border:1px solid rgba(255,255,255,.18);border-radius:16px;background:linear-gradient(180deg,#083d2c,#052a20);color:#fff;font:700 16px Manrope,Arial,sans-serif;cursor:pointer;box-shadow:inset 0 0 0 2px #f0c928,0 0 0 1px rgba(240,201,40,.08)}.res-uf-picker>button>span:nth-child(2){min-width:0;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.res-uf-picker__list{position:absolute;z-index:40;top:calc(100% + 8px);left:0;right:0;max-height:350px;overflow:auto;background:linear-gradient(180deg,#062f23,#031a14);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:8px;box-shadow:0 18px 40px rgba(0,18,12,.35)}.res-uf-picker__list button{width:100%;border:0;background:transparent;color:#f5fff9;text-align:left;padding:10px 12px;border-radius:12px;display:flex;align-items:center;gap:10px;font:700 15px Manrope,Arial,sans-serif;cursor:pointer}.res-uf-picker__list button:hover,.res-uf-picker__list button[aria-selected="true"]{background:rgba(135,202,154,.25)}.res-uf-picker__list button:focus-visible,.res-uf-picker>button:focus-visible{outline:3px solid #ecc53a;outline-offset:2px}
.res-uf>span{display:flex;align-items:center;gap:4px}.res-uf>span>span{min-width:0;overflow:hidden;text-overflow:ellipsis}.res-uf .res-state-flag{width:19px;height:14px;margin:0}.res-map-detail .res-state-flag{width:34px;height:24px;margin-left:9px}
.res-candidate{grid-template-columns:76px minmax(0,1fr) 156px}.res-candidate__photo{width:76px;height:96px;object-position:center;object-fit:contain}.res-candidate h3 .res-state-flag{margin-top:-2px}
.res-dialog-photo{width:104px;height:136px;object-fit:contain;background:#f0f5ef;border:1px solid #d9e4d6;border-radius:10px}.res-dialog h2 .res-state-flag{margin-left:8px}
@media(max-width:800px){.res-candidate{grid-template-columns:68px minmax(0,1fr) 125px}.res-candidate__photo{width:68px;height:88px}}
@media(max-width:580px){.res-candidate{grid-template-columns:60px minmax(0,1fr)}.res-candidate__photo{width:60px;height:80px}.res-state-flag{width:25px;height:18px}.res-uf .res-state-flag{width:19px;height:14px}.res-candidate__numbers{grid-column:2}}

/* Filtros por recorte e identificação do número de urna. */
.res-toolbar{grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}
.res-filter--state,.res-filter--office{grid-column:span 4}
#turnFilter,.res-refresh{grid-column:span 2}
.res-toolbar[data-view="registry"] .res-filter--state,.res-toolbar[data-view="registry"] .res-filter--office{grid-column:span 5}
.res-filter--search{grid-column:span 9}
.res-toolbar[data-view="registry"] .res-filter--search{grid-column:span 6}
.res-extra{grid-column:span 3}
.res-toolbar:has(#partyFilter[hidden]):has(#statusFilter[hidden]) .res-filter--search{grid-column:1/-1}
.res-filter label{font-size:11px;letter-spacing:.02em}
.res-filter select,.res-filter input{height:48px;font-size:13px;border-radius:11px;background:#f7faf7}
.res-filter select:disabled{color:#78877e;cursor:default}
.res-filter input:focus-visible,.res-filter select:focus-visible{border-color:#b08b13;outline:2px solid var(--res-yellow);outline-offset:2px}
.res-refresh{min-height:48px;border-radius:11px}
.res-filter-help{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #e4ece5;padding-top:12px}
.res-filter-help p{font-size:11px;line-height:1.55;color:var(--res-muted);margin:0}
.res-filter-help button{flex:0 0 auto;border:1px solid #c5daca;border-radius:9px;min-height:40px;padding:8px 13px;background:#fff;color:var(--res-green);font-size:11px;font-weight:800}
.res-filter-help button:hover{background:#edf5ee}
.res-candidate__ballot{display:inline-grid;gap:4px;padding:9px 13px;border:1px solid #d6e5db;border-radius:10px;background:#f3f8f3;text-align:center}
.res-candidate__ballot small{font-size:9px;font-weight:700;color:var(--res-muted);line-height:1.4}
.res-candidate__ballot .res-candidate__number{font-variant-numeric:tabular-nums;line-height:1.2}
@media(max-width:1100px){
 .res-filter--state,.res-filter--office,.res-toolbar[data-view="registry"] .res-filter--state,.res-toolbar[data-view="registry"] .res-filter--office{grid-column:span 6}
 #turnFilter,.res-refresh{grid-column:span 6}
 .res-toolbar[data-view="registry"] .res-refresh{grid-column:1/-1}
 .res-filter--search,.res-toolbar[data-view="registry"] .res-filter--search{grid-column:1/-1}
 .res-extra{grid-column:span 6}
}
@media(max-width:580px){
 .res-toolbar{gap:14px;padding:17px}
 .res-filter--state,.res-filter--office,.res-toolbar[data-view="registry"] .res-filter--state,.res-toolbar[data-view="registry"] .res-filter--office{grid-column:1/-1}
 .res-filter select,.res-filter input{font-size:16px}
 .res-toolbar[data-view="results"] #partyFilter,.res-toolbar[data-view="registry"] #partyFilter,.res-toolbar[data-view="registry"] #statusFilter{grid-column:1/-1}
 .res-filter-help{align-items:flex-start;flex-direction:column;gap:9px}
 .res-candidate__ballot{padding:7px 11px}
}

/* V8.5.73 — multieleição, regiões, relatórios e números longos */
.res-print-only,.res-print-footer{display:none}
.res-round-notice{margin-top:12px;padding:14px 18px;border:1px solid #d5c36a;border-radius:12px;background:#fff9dc;color:#5d5117;font-size:12px;line-height:1.6;font-weight:700}
.res-regions{margin:20px auto;background:#fff;border:1px solid #dce7db;border-radius:20px;padding:26px;box-shadow:0 10px 30px #1138240a}
.res-region-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.res-region-card{border:1px solid #dde8de;border-radius:14px;padding:15px;background:#f8fbf7;min-width:0}
.res-region-card h3{margin:0 0 4px;font-family:Sora,Arial,sans-serif;font-size:14px;color:var(--res-green)}
.res-region-card>small{display:block;color:var(--res-muted);font-size:9px;line-height:1.45;margin-bottom:11px}
.res-region-candidate{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 9px;padding:8px 0;border-top:1px solid #e2ebe1;font-size:10px;align-items:center}
.res-region-candidate strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.res-region-candidate b{font-variant-numeric:tabular-nums;white-space:nowrap;color:#0a6346}.res-region-candidate span{color:var(--res-muted);font-size:9px}.res-region-candidate em{font-style:normal;text-align:right;font-size:9px;white-space:nowrap}
.res-region-warning{margin-top:10px;color:#8b5c18;font-size:9px;line-height:1.4}
.res-list-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.res-list-actions>button{min-height:36px;border:1px solid #bfd3c1;background:#fff;color:var(--res-green);border-radius:9px;padding:7px 12px;font-size:10px;font-weight:800;cursor:pointer}.res-list-actions>button:hover{background:#eff6ef}
.res-filter--year{grid-column:span 2}.res-filter--state{grid-column:span 3}.res-filter--municipality{grid-column:span 3}.res-filter--office{grid-column:span 3}#turnFilter{grid-column:span 2}.res-refresh{grid-column:span 2}
.res-toolbar[data-view="results"]:not(:has(.res-filter--municipality:not([hidden]))) .res-filter--state{grid-column:span 3}
.res-toolbar[data-view="registry"] .res-filter--year{grid-column:span 2}.res-toolbar[data-view="registry"] .res-filter--state{grid-column:span 4}.res-toolbar[data-view="registry"] .res-filter--office{grid-column:span 4}.res-toolbar[data-view="registry"] .res-refresh{grid-column:span 2}
.res-candidate{grid-template-columns:76px minmax(0,1fr) minmax(180px,210px)}
.res-candidate__numbers{min-width:0;display:grid;justify-items:end;align-content:center;gap:3px;text-align:right}
.res-candidate__votes,.res-candidate__percent,.res-candidate__number{font-variant-numeric:tabular-nums;white-space:nowrap;max-width:100%}
.res-candidate__votes{font-size:clamp(10px,1vw,12px);font-weight:700}.res-candidate__percent{font-size:clamp(18px,1.7vw,23px)}
.res-candidate__status.is-not-elected{background:#f0f0ee;color:#5a635e}
@media(max-width:1150px){.res-region-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.res-filter--year{grid-column:span 3}.res-filter--state,.res-filter--office,.res-filter--municipality{grid-column:span 5}#turnFilter,.res-refresh{grid-column:span 3}.res-candidate{grid-template-columns:68px minmax(0,1fr) minmax(160px,185px)}}
@media(max-width:800px){.res-region-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.res-candidate{grid-template-columns:68px minmax(0,1fr) minmax(145px,170px)}.res-filter--year,.res-filter--state,.res-filter--office,.res-filter--municipality,#turnFilter,.res-refresh,.res-toolbar[data-view="registry"] .res-filter--year,.res-toolbar[data-view="registry"] .res-filter--state,.res-toolbar[data-view="registry"] .res-filter--office,.res-toolbar[data-view="registry"] .res-refresh{grid-column:span 6}}
@media(max-width:580px){.res-region-grid{grid-template-columns:1fr}.res-filter--year,.res-filter--state,.res-filter--office,.res-filter--municipality,#turnFilter,.res-refresh,.res-toolbar[data-view="registry"] .res-filter--year,.res-toolbar[data-view="registry"] .res-filter--state,.res-toolbar[data-view="registry"] .res-filter--office,.res-toolbar[data-view="registry"] .res-refresh{grid-column:1/-1}.res-candidate{grid-template-columns:60px minmax(0,1fr)}.res-candidate__numbers{grid-column:2;display:grid;grid-template-columns:auto auto;justify-content:start;justify-items:start;gap:5px 12px;width:100%;text-align:left}.res-candidate__ballot{grid-row:1/3}.res-candidate__votes{white-space:nowrap}.res-list-tools{align-items:flex-start}.res-list-actions{justify-content:flex-start;width:100%}}
@media print{
 @page{size:A4;margin:18mm 13mm 17mm}
 body{background:#fff!important;color:#111!important;font-family:Arial,sans-serif!important}
 .site-ticker,.site-header,.res-hero,.res-modebar,.res-toolbar,.res-update,.res-round-notice,.res-overview,.res-regions,.res-info,.campaign-source-note,.campaign-footer,.res-dialog,.res-progress,.res-list-actions,.res-load-more,.res-candidate__detail,#proportionalNote{display:none!important}
 .res-main{padding:0!important}.res-shell{width:100%!important;max-width:none!important}.res-results{border:0!important;box-shadow:none!important;padding:0!important;margin:0!important}
 .res-print-only{display:flex!important;flex-direction:column;gap:4px;border-bottom:2px solid #07533b;padding-bottom:10px;margin-bottom:14px}
 .res-print-footer{display:block!important;position:fixed;left:13mm;right:13mm;bottom:5mm;border-top:1px solid #cfd9d1;padding-top:4px;font-size:7px;color:#52635a;background:#fff}
.res-print-only strong{font-size:18px;color:#07533b}.res-print-only span{font-size:11px;font-weight:700}.res-print-only small{font-size:9px;color:#555}
 .res-section-head{margin-bottom:10px!important}.res-section-head .res-stage{display:none!important}.res-section-head h2{font-size:17px!important}.res-section-head p{font-size:9px!important}
 .res-stats{grid-template-columns:repeat(4,1fr)!important;gap:5px!important}.res-stat{padding:7px!important}.res-stat strong{font-size:11px!important}.res-stat span{font-size:7px!important}
 .res-list-tools{margin:10px 0!important}.res-candidates{gap:4px!important}.res-candidate{break-inside:avoid;grid-template-columns:42px minmax(0,1fr) 130px!important;padding:7px!important;border-radius:5px!important;gap:8px!important}.res-candidate__photo{width:42px!important;height:52px!important}.res-candidate h3{font-size:10px!important;margin:2px 0 3px!important}.res-candidate__office,.res-candidate__meta,.res-candidate__dest,.res-candidate__process{font-size:7px!important}.res-candidate__numbers{display:grid!important;grid-column:3!important;justify-items:end!important;border:0!important;padding:0!important}.res-candidate__ballot{padding:4px 6px!important}.res-candidate__number,.res-candidate__percent{font-size:10px!important}.res-candidate__votes{font-size:8px!important}
}

/* V8.5.73 — filtro presidencial por região e disponibilidade oficial do 2º turno */
.res-filter--region{grid-column:span 3}
.res-region-card{cursor:pointer;transition:border-color .18s,box-shadow .18s,transform .18s}
.res-region-card:hover,.res-region-card:focus-visible{border-color:#87ad91;box-shadow:0 6px 18px #0d553115;transform:translateY(-1px);outline:none}
.res-region-card.is-selected{border:2px solid var(--res-green);background:#f0f8f1;box-shadow:0 0 0 3px #0b664510}
#turnFilter[data-second-round="scheduled"]::after{content:"2º turno ainda não liberado pelo TSE";display:block;margin-top:4px;color:#806a19;font-size:9px;line-height:1.35}
@media(max-width:1150px){.res-filter--region{grid-column:span 5}}
@media(max-width:800px){.res-filter--region{grid-column:span 6}}
@media(max-width:580px){.res-filter--region{grid-column:1/-1}}

/* V8.5.73 R4 — resumo do eleitorado e impressão institucional */
.res-electorate{margin-top:28px;padding-top:24px;border-top:1px solid #dce7dc}.res-electorate__head h3{font:800 21px/1.2 Sora,Arial,sans-serif;color:var(--res-green);margin:4px 0 6px}.res-electorate__head p{margin:0 0 16px;color:var(--res-muted);font-size:11px;line-height:1.55}.res-electorate__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.res-electorate__card{position:relative;padding:14px 15px;border:1px solid #dfe9df;border-radius:12px;background:#f8fbf7;min-width:0}.res-electorate__card.is-total{grid-column:1/-1;background:#eef7ef;border-color:#bad0bd}.res-electorate__card span{display:block;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.045em;color:var(--res-muted)}.res-electorate__card strong{display:block;margin-top:5px;font:800 18px/1.25 Sora,Arial,sans-serif;overflow-wrap:anywhere}.res-electorate__card b{position:absolute;right:15px;top:15px;font:800 14px/1 Sora,Arial,sans-serif;color:var(--res-green)}.res-electorate__card small{display:block;margin-top:3px;color:var(--res-muted);font-size:8px}.res-print-only img{display:none}
@media(max-width:580px){.res-electorate__grid{grid-template-columns:1fr 1fr}.res-electorate__card.is-total{grid-column:1/-1}.res-electorate__card{padding:12px}.res-electorate__card strong{font-size:16px}.res-electorate__card b{font-size:12px}}
@media print{.res-print-only{align-items:center!important;text-align:center!important;border-bottom:0!important;padding:5mm 0 0!important;overflow:hidden!important}.res-print-only::after{content:"";display:block!important;width:100%!important;height:3px!important;margin-top:7px!important;background:linear-gradient(90deg,#075b43 0 50%,#f2ca12 50% 100%)!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.res-print-only img{display:block!important;width:118px!important;max-width:38%!important;height:auto!important;object-fit:contain!important;margin:0 auto 3px!important}.res-print-only strong{font-size:12px!important;letter-spacing:.07em!important}.res-print-only span{margin-top:5px!important}.res-electorate{display:block!important;break-inside:avoid;margin-top:18px!important;padding-top:12px!important}.res-electorate__head h3{font-size:14px!important}.res-electorate__head p{font-size:7px!important}.res-electorate__grid{grid-template-columns:repeat(3,1fr)!important;gap:5px!important}.res-electorate__card{padding:7px!important;border-radius:5px!important}.res-electorate__card strong{font-size:10px!important}.res-electorate__card b{font-size:8px!important;right:7px!important;top:8px!important}.res-electorate__card span{font-size:6px!important}.res-electorate__card small{font-size:5.5px!important}}

/* V8.5.73 R7 — seletor presidencial por regiões em blocos e destaque no mapa */
.res-filter--region{grid-column:1/-1}
.res-region-select--sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.res-region-selector{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;width:100%}
.res-region-option{min-width:0;min-height:46px;border:1px solid #d7deda;border-radius:11px;background:#eef1ef;color:#526159;font:800 12px/1.2 Manrope,Arial,sans-serif;padding:10px 8px;cursor:pointer;transition:background .16s,border-color .16s,color .16s,box-shadow .16s,transform .16s}
.res-region-option:hover{background:#e4e8e5;border-color:#c9d2cc}
.res-region-option:focus-visible{outline:3px solid var(--res-yellow);outline-offset:2px}
.res-region-option.is-selected{background:var(--res-green);border-color:var(--res-green);color:#fff;box-shadow:0 5px 14px #0b664523}
.res-region-option.is-selected:hover{background:#07563e;border-color:#07563e}
.res-region-selected{display:block;margin-top:7px;color:var(--res-green);font-size:10px;font-weight:800;letter-spacing:.01em}
/* O quadro regional também evidencia o recorte escolhido. */
.res-region-card{background:#f0f2f1;border-color:#dce2de}
.res-region-card.is-selected{background:var(--res-green);border-color:var(--res-green);color:#fff;box-shadow:0 8px 20px #0b664526}
.res-region-card.is-selected h3{color:#fff}
.res-region-card.is-selected>small,.res-region-card.is-selected .res-region-candidate span,.res-region-card.is-selected .res-region-candidate em{color:#e3eee8}
.res-region-card.is-selected .res-region-candidate{border-top-color:#ffffff2e}
.res-region-card.is-selected .res-region-candidate b{color:#ffe16a}
.res-region-card.is-selected .res-region-warning{color:#ffe6a6}
@media(max-width:900px){.res-region-selector{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:580px){.res-region-selector{grid-template-columns:repeat(2,minmax(0,1fr))}.res-region-option{font-size:11px;min-height:44px}}

/* V8.5.73 R8 — contraste das siglas no mapa regional. */
html[data-theme="dark"] .res-map-state.is-region-match path{fill:#12a873}
html[data-theme="dark"] .res-map-state.is-region-muted path{fill:#31433a;stroke:#18271f}
html[data-theme="dark"] .res-map-label.is-region-match:not(.is-external){fill:#fff;stroke:#064530;stroke-width:2.4px}
html[data-theme="dark"] .res-map-label.is-region-match.is-external{fill:#80e6b7;stroke:#07120e;stroke-width:1.5px}
html[data-theme="dark"] .res-map-label.is-region-muted{fill:#b7c7be;stroke:#07120e;stroke-width:1.2px}
html[data-theme="dark"] .res-map-leader.is-region-match{stroke:#63d7a2}
html[data-theme="dark"] .res-map-leader.is-region-muted{stroke:#65786e}


/* R28 — Votação à direita e situação eleitoral imediatamente abaixo do nome.
   Não posicionar o total de votos abaixo do candidato em telas pequenas. */
.res-candidate{grid-template-columns:76px minmax(0,1fr) minmax(172px,194px);gap:14px;align-items:center}
.res-candidate__info{min-width:0;align-self:center}
.res-candidate__statusrow{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:2px 0 7px}
.res-candidate__statusrow .res-candidate__status{display:inline-flex;align-items:center;font-weight:800;font-size:10px;line-height:1.3;padding:4px 9px;border-radius:6px}
.res-candidate__meta{margin-top:4px}
.res-candidate__numbers{display:grid;grid-template-columns:minmax(70px,auto) minmax(0,1fr);justify-content:end;justify-items:end;gap:12px;align-items:center;width:100%;min-width:0;text-align:right}
.res-candidate__ballot{grid-column:1;grid-row:1;min-width:0;max-width:100%;padding:8px 9px}
.res-candidate__ballot .res-candidate__number{font-size:clamp(15px,1.6vw,21px)}
.res-candidate__vote-total{grid-column:2;grid-row:1;min-width:0;display:flex;flex-direction:column;gap:2px;align-items:flex-end;text-align:right;font-variant-numeric:tabular-nums}
.res-candidate__vote-total .res-candidate__percent{font-size:clamp(15px,1.5vw,21px);margin:0;line-height:1.2;white-space:nowrap}
.res-candidate__vote-total .res-candidate__votes{font-size:clamp(9px,.88vw,11px);margin:0;white-space:nowrap;line-height:1.35}
@media(max-width:800px){
 .res-candidate{grid-template-columns:60px minmax(0,1fr) minmax(125px,150px);gap:10px;padding:12px}
 .res-candidate__photo{width:60px;height:82px}
 .res-candidate__numbers{grid-column:3;grid-template-columns:1fr;justify-items:end;gap:6px;align-self:center}
 .res-candidate__ballot{grid-column:1;grid-row:1;padding:5px 8px}
 .res-candidate__vote-total{grid-column:1;grid-row:2}
 .res-candidate__vote-total .res-candidate__percent{font-size:18px}
}
@media(max-width:580px){
 .res-candidate{grid-template-columns:52px minmax(0,1fr) minmax(94px,112px);gap:8px;padding:10px 8px;align-items:start}
 .res-candidate__photo{width:52px;height:70px}
 .res-candidate h3{font-size:12px;line-height:1.3;margin:3px 0 5px}
 .res-candidate__office{font-size:8px;line-height:1.45}
 .res-candidate__numbers{grid-column:3;grid-row:1;justify-items:end;display:grid;grid-template-columns:1fr;gap:7px;text-align:right;width:100%;align-self:start}
 .res-candidate__ballot{grid-column:1;grid-row:1;padding:5px 6px}
 .res-candidate__ballot small{font-size:8px}
 .res-candidate__ballot .res-candidate__number{font-size:16px}
 .res-candidate__vote-total{grid-column:1;grid-row:2;align-items:flex-end;text-align:right}
 .res-candidate__vote-total .res-candidate__percent{font-size:17px}
 .res-candidate__vote-total .res-candidate__votes{font-size:9px}
 .res-candidate__statusrow{margin:4px 0 6px}
 .res-candidate__statusrow .res-candidate__status{font-size:9px;max-width:100%;white-space:normal}
 .res-candidate__meta{font-size:9px}
 .res-candidate__detail{font-size:9px;min-height:30px}
}
@media(max-width:360px){
 .res-candidate{grid-template-columns:44px minmax(0,1fr) 89px;gap:6px;padding:9px 7px}
 .res-candidate__photo{width:44px;height:62px}
 .res-candidate__ballot small{font-size:7px}
 .res-candidate__ballot .res-candidate__number{font-size:15px}
 .res-candidate__vote-total .res-candidate__percent{font-size:15px}
 .res-candidate__vote-total .res-candidate__votes{font-size:8px}
}
@media print{
 .res-candidate{grid-template-columns:42px minmax(0,1fr) 170px!important}
 .res-candidate__numbers{grid-column:3!important;display:grid!important;grid-template-columns:65px 1fr!important;gap:7px!important;justify-items:end!important}
 .res-candidate__ballot{grid-column:1!important;grid-row:1!important}
 .res-candidate__vote-total{grid-column:2!important;grid-row:1!important}
 .res-candidate__statusrow .res-candidate__status{font-size:8px!important;padding:2px 5px!important}
 .res-candidate__vote-total .res-candidate__percent{font-size:10px!important}
 .res-candidate__vote-total .res-candidate__votes{font-size:8px!important}
}

/* R32 — siglas das 27 UFs brancas e legíveis SOMENTE no tema escuro.
   Contorno escuro mantém contraste também nos estados selecionados em amarelo. */
@media screen {
  html[data-theme="dark"] #brazilMap text,
  html[data-theme="dark"] #brazilMap .res-map-label,
  html[data-theme="dark"] #brazilMap .res-map-label.is-region-match,
  html[data-theme="dark"] #brazilMap .res-map-label.is-region-muted {
    fill: #ffffff !important;
    stroke: #0b2018 !important;
    stroke-width: 2.5px !important;
    stroke-linejoin: round;
    paint-order: stroke fill;
  }
  html[data-theme="dark"] #brazilMap .res-map-leader {
    stroke: #b9d5c3;
    stroke-width: 1.4px;
  }
  html[data-theme="dark"] #brazilMap .res-map-leader.is-region-muted { stroke: #829e8a; }
  html[data-theme="dark"] #brazilMap .res-map-leader.is-region-match { stroke: #d4efdd; }
}
/* R32: siglas do mapa dimensionadas para o espaço disponível em celulares. */
@media screen and (max-width:580px){
  #brazilMap text{font-size:18px;letter-spacing:.15px}
}


/* R36 — mobile filters full width and safer dark-mode layout. */
.res-filter,.res-uf-picker,.res-uf-picker>button,.res-filter select,.res-filter input{width:100%;max-width:100%;min-width:0}
.res-filter select,.res-filter input{width:100%;max-width:100%;min-width:0}
#partyFilter,#statusFilter,#turnFilter,.res-filter--year,.res-filter--state,.res-filter--office,.res-filter--municipality,.res-filter--search,.res-refresh{min-width:0}
@media(max-width:760px){
 .res-toolbar{grid-template-columns:1fr!important;gap:14px}
 .res-filter--year,.res-filter--state,.res-filter--office,.res-filter--municipality,.res-filter--search,.res-filter--region,#partyFilter,#statusFilter,#turnFilter,.res-extra,.res-refresh,.res-filter-help{grid-column:1/-1!important}
 .res-filter,.res-uf-picker,.res-uf-picker>button,.res-filter select,.res-filter input{width:100%!important;max-width:100%!important}
}

/* R39: correção isolada do filtro de turno e botão Atualizar, todos os tamanhos. */
.res-toolbar #turnFilter { align-self:stretch; }
.res-toolbar #turnFilter select {display:block; min-height:48px;}
.res-toolbar #refreshBtn {align-self:start; margin-top:19px; height:48px; min-height:48px;}
@media (max-width:580px) {
  .res-toolbar #refreshBtn {margin-top:0; min-height:48px;}
}

/* R42: tipografia institucional consistente entre páginas internas. */
.res-hero h1{font-family:Sora,Manrope,sans-serif;font-size:clamp(32px,3.9vw,53px);font-weight:800;line-height:1.1;letter-spacing:-.045em}
.res-hero .res-kicker{font-size:10px;font-weight:900;letter-spacing:.14em;line-height:1.4}
@media(max-width:540px){.res-hero h1{font-size:33px}}

html[data-theme="dark"] .res-uf-picker>button{background:linear-gradient(180deg,#083d2c,#052a20);color:#fff;border-color:rgba(255,255,255,.18)}
html[data-theme="dark"] .res-uf-picker__list{background:linear-gradient(180deg,#062f23,#031a14)}
@media(max-width:580px){.res-uf-picker>button{min-height:48px;padding:7px 10px;font-size:14px}.res-uf-picker__list button{font-size:14px;padding:9px 10px}}

/* R47: Seletor UF do Painel Eleições — tema claro coerente com os demais filtros.
   Tema escuro mantém o padrão original da Central de Debates. */
html:not([data-theme="dark"]) .res-uf-picker > button {
  background: #f7faf7;
  color: #163c2c;
  border: 1px solid #cfded4;
  box-shadow: none;
}
html:not([data-theme="dark"]) .res-uf-picker__list {
  background: #ffffff;
  border-color: #cfded4;
  box-shadow: 0 18px 40px rgba(11, 50, 31, .16);
}
html:not([data-theme="dark"]) .res-uf-picker__list button {
  color: #163c2c;
  background: transparent;
}
html:not([data-theme="dark"]) .res-uf-picker__list button:hover,
html:not([data-theme="dark"]) .res-uf-picker__list button[aria-selected="true"] {
  background: #e5f2ea;
  color: #07543c;
}
html:not([data-theme="dark"]) .res-uf-picker > button:focus-visible {
  outline: 3px solid #ffda1a;
  outline-offset: 2px;
}

/* R49 — somente as três palavras-chave amarelas como na Central de Debates. */
.res-hero h1 span{color:#fff}
.res-hero h1 .res-hero-keyword{display:inline;color:#ffda1a!important;background:transparent!important;padding:0!important;font:inherit;letter-spacing:inherit}
html[data-theme="dark"] .res-hero h1 .res-hero-keyword{color:#ffda1a!important;background:transparent!important}

/* R58 — Eleições: legibilidade das siglas com tema claro e escuro. */
@media screen{
 #brazilMap .res-map-label:not(.is-external),
 html:not([data-theme="dark"]) #brazilMap .res-map-label:not(.is-external),
 html[data-theme="dark"] #brazilMap .res-map-label:not(.is-external){
   fill:#fff!important;stroke:#103a2a!important;stroke-width:2.2px!important;
   paint-order:stroke fill!important;stroke-linejoin:round!important;
 }
 #brazilMap .res-map-label.is-external,
 html:not([data-theme="dark"]) #brazilMap .res-map-label.is-external,
 html[data-theme="dark"] #brazilMap .res-map-label.is-external{
   fill:#163b2d!important;stroke:#f5faf6!important;stroke-width:2.1px!important;
   paint-order:stroke fill!important;stroke-linejoin:round!important;
 }
 html[data-theme="dark"] #brazilMap .res-map-label.is-external{
   fill:#fff!important;stroke:#10251c!important;stroke-width:2px!important;
 }
 #brazilMap .res-map-leader{stroke:#739386!important;stroke-width:1.4px!important}
 html[data-theme="dark"] #brazilMap .res-map-leader{stroke:#d3e8dc!important}
}

/* R60 — Rótulos uniformes em ambas as aparências; preservar cores de apuração. */
#brazilMap .res-map-label,
html:not([data-theme="dark"]) #brazilMap .res-map-label,
html[data-theme="dark"] #brazilMap .res-map-label,
#brazilMap .res-map-label.is-external,
#brazilMap .res-map-label.is-region-muted,
#brazilMap .res-map-label.is-region-match {
  fill: #fff !important;
  stroke: #10261c !important;
  stroke-width: 2.15px !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
  paint-order: stroke fill !important;
  filter: none !important;
  pointer-events: none !important;
}
#brazilMap .res-map-leader,
html[data-theme="dark"] #brazilMap .res-map-leader {
  stroke: #567d6a !important;
  stroke-width: 1.55px !important;
  vector-effect: non-scaling-stroke;
}
html[data-theme="dark"] #brazilMap .res-map-leader {stroke:#c6e4d2!important}
#brazilMap .res-map-state.is-active path {
  stroke: #ffda1a !important;
  stroke-width: 2.8px !important;
  stroke-linejoin: round !important;
}
#brazilMap .res-map-state:not(.is-active):hover path,
#brazilMap .res-map-state:not(.is-active):focus-visible path {
  stroke: #587966 !important;
  stroke-width: 2px !important;
}
#brazilMap .r60-state-outline {
  fill: none !important;
  stroke: #ffda1a !important;
  stroke-width: 2.9px !important;
  stroke-linejoin: round !important;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
@media (max-width: 480px) {
  #brazilMap .res-map-label {stroke-width: 1.9px !important}
}

/* R67 — histórico eleitoral e registro partidário; escopo restrito. */
.r67-history,.r67-parties{margin-top:18px;margin-bottom:18px;border:1px solid var(--res-line,#d9e1e8);border-radius:17px;padding:20px;background:var(--surface,#fff);color:inherit}
.r67-history h2{font-size:clamp(1.1rem,2.6vw,1.5rem);margin:6px 0}
.r67-history p,.r67-parties p{line-height:1.55;margin:9px 0}
.r67-history__actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}
.r67-history__actions a,.r67-history__actions button{border:1px solid currentColor;border-radius:10px;padding:10px 14px;font:inherit;font-weight:700;background:transparent;color:inherit;text-decoration:none;cursor:pointer}
.r67-parties summary{cursor:pointer;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;list-style:disclosure-closed}
.r67-parties[open] summary{list-style:disclosure-open}.r67-parties summary small{font-weight:400;opacity:.8}
.r67-parties__inner{margin-top:16px}.r67-parties select{font:inherit;max-width:100%;padding:8px;border-radius:8px;background:var(--surface,#fff);color:inherit;border:1px solid #8d9ca9}
.r67-parties__tablewrap{overflow-x:auto;max-height:360px;overflow-y:auto;margin-top:12px}
.r67-parties table{border-collapse:collapse;width:100%;font-size:.93rem}
.r67-parties th,.r67-parties td{border-bottom:1px solid rgba(120,130,140,.28);padding:8px 10px;text-align:left}
.r67-parties th{position:sticky;top:0;background:var(--surface,#fff);color:inherit}
.r67-parties__footer{font-size:.88rem;opacity:.85}
@media(max-width:520px){.r67-history,.r67-parties{padding:13px}.r67-history__actions a,.r67-history__actions button{width:100%;text-align:center}.r67-parties th,.r67-parties td{padding:7px 6px}}


/* R76 — correções de largura e espaçamento no smartphone */
html,body{max-width:100%;overflow-x:hidden}
.res-main,.res-shell,.res-toolbar,.res-overview,.res-results,.res-info,.res-electorate__grid,.res-candidates,.res-candidate,.res-candidate__info,.res-candidate__numbers{min-width:0;max-width:100%}
.res-candidate h3 .res-state-flag,.res-dialog h2 .res-state-flag{margin-left:8px;vertical-align:-2px}
.res-candidate__detail{margin-top:10px;display:inline-flex;align-items:center;gap:4px}
.res-electorate__card{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label pct" "value value" "meta meta";column-gap:10px;row-gap:4px}
.res-electorate__card span{grid-area:label;padding-right:0;min-width:0}
.res-electorate__card b{position:static;grid-area:pct;justify-self:end;white-space:nowrap}
.res-electorate__card strong{grid-area:value;margin-top:0}
.res-electorate__card small{grid-area:meta}
.res-candidate__vote-total .res-candidate__votes{white-space:normal;overflow-wrap:anywhere}
@media(max-width:580px){
 .res-shell{width:min(calc(100% - 20px),var(--res-shell))}
 .res-toolbar,.res-overview,.res-results,.res-info{max-width:100%}
 .res-overview,.res-results,.res-info{padding:16px}
 .res-toolbar{padding:14px}
 .res-filter-help{align-items:flex-start;flex-direction:column}
 .res-candidate{grid-template-columns:52px minmax(0,1fr) minmax(104px,116px)!important;gap:8px;padding:10px 8px}
 .res-candidate__photo{width:52px;height:70px}
 .res-candidate__info{padding-right:2px}
 .res-candidate h3{font-size:12px;line-height:1.32;margin:3px 0 6px}
 .res-candidate__numbers{grid-column:3;grid-row:1;display:grid!important;grid-template-columns:1fr;justify-items:end;gap:7px;align-self:start;border:0;padding:0;text-align:right}
 .res-candidate__ballot{grid-column:1;grid-row:1;justify-self:end;width:100%;max-width:100%;padding:6px 7px}
 .res-candidate__ballot small{display:block;white-space:normal}
 .res-candidate__vote-total{grid-column:1;grid-row:2;align-items:flex-end;text-align:right}
 .res-candidate__vote-total .res-candidate__percent{font-size:17px;line-height:1.1}
 .res-candidate__vote-total .res-candidate__votes{font-size:9px;line-height:1.25;max-width:100%}
 .res-candidate__meta,.res-candidate__dest,.res-candidate__process{overflow-wrap:anywhere}
 .res-candidate__detail{margin-top:8px;padding:6px 0}
 .res-electorate__grid{grid-template-columns:1fr 1fr}
 .res-electorate__card{padding:12px}
}
@media(max-width:420px){
 .res-stats{grid-template-columns:1fr}
 .res-candidate{grid-template-columns:48px minmax(0,1fr) minmax(98px,108px)!important}
 .res-candidate__photo{width:48px;height:66px}
 .res-candidate__ballot .res-candidate__number{font-size:15px}
 .res-candidate__vote-total .res-candidate__percent{font-size:16px}
 .res-electorate__card{grid-template-columns:minmax(0,1fr);grid-template-areas:"label" "pct" "value" "meta";row-gap:3px}
 .res-electorate__card b{justify-self:start}
}
