:root{--res-green:#07543c;--res-bright:#088b58;--res-yellow:#f6da35;--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}
.skip-link{position:fixed;left:16px;top:-90px;z-index:9999;background:white;color:#063f2f;padding:12px;border-radius:8px}.skip-link:focus{top:12px}
.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:48px 0 38px;background:radial-gradient(ellipse at 90% 0,rgba(246,218,53,.14),transparent 55%),linear-gradient(115deg,#053c2c,#086246 68%,#064d70);color:white}
.res-hero__grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:36px;align-items:center}
.res-hero .res-kicker{color:#f4df65}.res-hero h1{font-family:Sora,Arial,sans-serif;font-weight:800;font-size:clamp(32px,3.9vw,53px);line-height:1.1;letter-spacing:-.045em;margin:13px 0 16px}.res-hero h1 span{display:block;color:#ffe45b}.res-hero p{font-size:15px;line-height:1.7;max-width:700px;margin:0;color:#e0eae2}
.res-hero__badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px}.res-hero__badges span{font-size:10px;font-weight:700;border:1px solid #ffffff35;padding:7px 10px;border-radius:24px;background:#ffffff0a}
.res-live-card{padding:24px 21px;display:flex;gap:15px;border:1px solid #ffffff30;border-radius:20px;background:#003d2c65;box-shadow:0 12px 32px #002c2326}
.res-live-dot{flex:0 0 10px;width:10px;height:10px;margin-top:6px;background:#f7db42;border-radius:50%;box-shadow:0 0 0 5px #f7db421a}
.res-live-card strong{font-size:14px;line-height:1.5;display:block}.res-live-card small{display:block;margin:6px 0 14px;color:#d0e0d4;font-size:10px;line-height:1.5}.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-wrap text{font:800 12px Arial,sans-serif;fill:#254f36;text-anchor:middle;dominant-baseline:middle;pointer-events:none}.res-map-leader{fill:none;stroke:#687d65;stroke-width:1;pointer-events:none}
.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-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:35px 0}.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 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;margin-left:7px;border:1px solid #d5ded3;background:#fff;border-radius:2px}
.res-uf-select{position:relative;min-width:0}.res-uf-select select{padding-right:58px}.res-uf-select>.res-state-flag{position:absolute;right:24px;top:12px;pointer-events:none;margin:0}
.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}
}
