:root{color-scheme:light}
html{scroll-behavior:smooth}
body.joeri-election-portal-page{margin:0!important;overflow-x:hidden;background:var(--joeri-portal-bg,#edf5fb);color:var(--joeri-portal-text,#18293a);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased}
body.joeri-election-portal-page *{box-sizing:border-box}
body.joeri-election-portal-page button,body.joeri-election-portal-page select{font:inherit}
body.joeri-election-portal-page button,body.joeri-election-portal-page a,body.joeri-election-portal-page select{-webkit-tap-highlight-color:transparent}
.joeri-v2-shell{width:min(1180px,calc(100% - 36px));margin:0 auto}

/* Cabeçalho do portal */
.joeri-v2-sitebar{position:relative;z-index:30;width:100%;background:var(--joeri-logo-area-bg,var(--joeri-portal-bar,#0e548d));box-shadow:0 1px 0 rgba(0,0,0,.06)}
.joeri-v2-logo-area{width:100%;overflow:hidden;background:var(--joeri-logo-area-bg,var(--joeri-portal-bar,#0e548d))}
.joeri-v2-logo-shell.joeri-v2-shell{display:flex;width:100%;max-width:none;align-items:center;justify-content:center;padding:0}
.joeri-v2-brand{display:flex;width:100%;align-items:center;justify-content:center;margin:0;color:#fff;text-decoration:none;font-size:24px;font-weight:900;line-height:1.1;text-align:center}
.joeri-v2-brand.has-image{line-height:0}
.joeri-v2-brand.has-image .joeri-v2-brand-image,.joeri-v2-brand.has-image img{display:block;width:auto;height:auto;max-width:100%;margin:0 auto;object-fit:contain;object-position:center}
.joeri-v2-brand.has-image.logo-size-full .joeri-v2-brand-image,.joeri-v2-brand.has-image.logo-size-full img{max-width:100%}
.joeri-v2-brand.has-image.logo-size-medium .joeri-v2-brand-image,.joeri-v2-brand.has-image.logo-size-medium img{max-width:min(880px,82vw)}
.joeri-v2-brand.has-image.logo-size-small .joeri-v2-brand-image,.joeri-v2-brand.has-image.logo-size-small img{max-width:min(520px,64vw)}
.joeri-v2-brand.has-image.is-wide-image.logo-size-full .joeri-v2-brand-image,.joeri-v2-brand.has-image.is-wide-image.logo-size-full img{width:100%;max-width:var(--joeri-logo-wide-max,100%)}
.joeri-v2-brand.is-text{padding:18px 24px}
.joeri-v2-sitebar-actions{background:color-mix(in srgb,var(--joeri-portal-bar,#0e548d) 88%,#000)}
.joeri-v2-sitebar-inner{display:flex;min-height:50px;align-items:center;justify-content:flex-end}
.joeri-v2-site-button{display:inline-flex;min-height:34px;align-items:center;justify-content:center;padding:0 16px;color:#fff!important;border:1px solid rgba(255,255,255,.28);border-radius:999px;font-size:11px;font-weight:800;text-decoration:none!important;transition:.2s ease}
.joeri-v2-site-button:hover{background:rgba(255,255,255,.1);transform:translateY(-1px)}

/* Conteúdo */
.joeri-v2-main{padding-top:30px;padding-bottom:54px}
.joeri-election-portal-v3{width:100%;color:var(--joeri-portal-text,#18293a)}
.joeri-p3-hero{position:relative;display:flex;min-height:170px;align-items:flex-end;justify-content:space-between;gap:30px;padding:34px 38px;overflow:hidden;background:linear-gradient(135deg,var(--joeri-portal-bar,#0e548d),var(--joeri-portal-primary,#1769aa));border-radius:28px;box-shadow:0 22px 48px color-mix(in srgb,var(--joeri-portal-bar,#0e548d) 24%,transparent)}
.joeri-p3-hero:before,.joeri-p3-hero:after{position:absolute;border:1px solid rgba(255,255,255,.12);border-radius:50%;content:"";pointer-events:none}
.joeri-p3-hero:before{right:-80px;bottom:-160px;width:360px;height:360px}
.joeri-p3-hero:after{right:145px;bottom:-120px;width:240px;height:240px}
.joeri-p3-hero-copy{position:relative;z-index:2;max-width:760px;color:#fff}
.joeri-p3-kicker{display:inline-flex;align-items:center;min-height:28px;margin-bottom:12px;padding:0 12px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.2);border-radius:999px;font-size:10px;font-weight:900;letter-spacing:.1em}
.joeri-p3-hero h1{margin:0;font-size:clamp(32px,5vw,58px);font-weight:950;line-height:.98;letter-spacing:-.045em}
.joeri-p3-hero p{max-width:650px;margin:14px 0 0;color:rgba(255,255,255,.78);font-size:15px;line-height:1.55}
.joeri-p3-live{position:relative;z-index:2;display:inline-flex;min-height:40px;flex:0 0 auto;align-items:center;gap:9px;padding:0 15px;color:#fff;background:rgba(0,0,0,.16);border:1px solid rgba(255,255,255,.18);border-radius:999px;font-size:11px;font-weight:900;letter-spacing:.02em;text-transform:uppercase;backdrop-filter:blur(8px)}
.joeri-p3-live span{width:9px;height:9px;background:#fff;border-radius:50%;box-shadow:0 0 0 5px rgba(255,255,255,.12)}
.joeri-p3-live.is-running span{animation:joeriPulse 1.4s infinite}
.joeri-p3-live.is-completed span{background:#d8ffe9}
.joeri-p3-live.is-error span{background:#ffd5d5}
@keyframes joeriPulse{50%{opacity:.35;transform:scale(.78)}}

/* Filtros */
.joeri-p3-filter-panel{position:relative;z-index:5;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;margin:-18px 24px 28px;padding:15px;background:var(--joeri-portal-surface,#fff);border:1px solid var(--joeri-portal-border,#c6daeb);border-radius:22px;box-shadow:0 16px 40px color-mix(in srgb,var(--joeri-portal-bar,#0e548d) 12%,transparent)}
.joeri-p3-scope-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;padding:5px;background:var(--joeri-portal-surface-alt,#e3eef8);border-radius:16px}
.joeri-p3-scope-tabs button{min-height:46px;padding:0 18px;color:var(--joeri-portal-muted,#607285);background:transparent;border:0;border-radius:12px;cursor:pointer;font-size:11px;font-weight:950;letter-spacing:.035em;text-transform:uppercase;transition:.18s ease}
.joeri-p3-scope-tabs button:hover{color:var(--joeri-portal-primary,#1769aa);background:color-mix(in srgb,var(--joeri-portal-surface,#fff) 65%,transparent)}
.joeri-p3-scope-tabs button.is-active{color:#fff;background:var(--joeri-portal-primary,#1769aa);box-shadow:0 6px 16px color-mix(in srgb,var(--joeri-portal-primary,#1769aa) 28%,transparent)}
.joeri-p3-filter-fields{display:flex;align-items:center;gap:10px}
.joeri-p3-select-field{display:grid;min-width:190px;gap:5px;color:var(--joeri-portal-muted,#607285);font-size:9px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.joeri-p3-select-field select{width:100%;height:46px;padding:0 38px 0 13px;color:var(--joeri-portal-text,#18293a);background:var(--joeri-portal-surface,#fff);border:1px solid var(--joeri-portal-border,#c6daeb);border-radius:12px;outline:none;font-size:13px;font-weight:800;text-transform:none;transition:.18s ease}
.joeri-p3-select-field select:focus{border-color:var(--joeri-portal-primary,#1769aa);box-shadow:0 0 0 3px color-mix(in srgb,var(--joeri-portal-primary,#1769aa) 14%,transparent)}
.joeri-p3-city-field{min-width:240px}

/* Bloco de totalização */
.joeri-p3-overview{margin-bottom:18px;padding:28px 30px;background:var(--joeri-portal-surface,#fff);border:1px solid var(--joeri-portal-border,#c6daeb);border-radius:24px;box-shadow:0 12px 30px color-mix(in srgb,var(--joeri-portal-bar,#0e548d) 7%,transparent)}
.joeri-p3-overview-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
.joeri-p3-eyebrow{display:block;margin-bottom:7px;color:var(--joeri-portal-primary,#1769aa);font-size:10px;font-weight:950;letter-spacing:.09em;text-transform:uppercase}
.joeri-p3-overview h2{margin:0;color:var(--joeri-portal-text,#18293a);font-size:clamp(24px,3vw,34px);font-weight:950;line-height:1.05;letter-spacing:-.025em}
.joeri-p3-source{display:inline-flex;min-height:34px;align-items:center;gap:7px;padding:0 12px;color:var(--joeri-portal-elected,#125f9d);background:color-mix(in srgb,var(--joeri-portal-elected,#125f9d) 9%,var(--joeri-portal-surface,#fff));border:1px solid color-mix(in srgb,var(--joeri-portal-elected,#125f9d) 22%,transparent);border-radius:999px;font-size:10px;font-weight:900;white-space:nowrap}
.joeri-p3-source i{display:grid;width:17px;height:17px;place-items:center;color:#fff;background:var(--joeri-portal-elected,#125f9d);border-radius:50%;font-size:10px;font-style:normal}
.joeri-p3-progress-head{display:flex;align-items:flex-end;justify-content:space-between;gap:30px}
.joeri-p3-progress-number strong{display:block;color:var(--joeri-portal-primary,#1769aa);font-size:clamp(38px,5vw,62px);font-weight:950;line-height:.92;letter-spacing:-.055em}
.joeri-p3-progress-number span,.joeri-p3-progress-sections span{display:block;margin-top:8px;color:var(--joeri-portal-muted,#607285);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.joeri-p3-progress-sections{text-align:right}
.joeri-p3-progress-sections strong{display:block;font-size:17px;font-weight:900}
.joeri-p3-progress-track{height:10px;margin-top:20px;overflow:hidden;background:var(--joeri-portal-track,#d8e7f3);border-radius:999px}
.joeri-p3-progress-track i{display:block;width:0;height:100%;background:linear-gradient(90deg,var(--joeri-portal-primary,#1769aa),var(--joeri-portal-secondary,#3f8fc6));border-radius:inherit;transition:width .45s ease}
.joeri-p3-updated{margin:10px 0 0;color:var(--joeri-portal-muted,#607285);font-size:10px;font-weight:700}
.joeri-p3-loading,.joeri-p3-empty{display:flex;min-height:94px;align-items:center;justify-content:center;gap:10px;color:var(--joeri-portal-muted,#607285);background:var(--joeri-portal-surface-alt,#e3eef8);border-radius:16px;font-size:12px;font-weight:800;text-align:center}
.joeri-p3-spinner{width:18px;height:18px;border:2px solid var(--joeri-portal-border,#c6daeb);border-top-color:var(--joeri-portal-primary,#1769aa);border-radius:50%;animation:joeriSpin .8s linear infinite}
@keyframes joeriSpin{to{transform:rotate(360deg)}}

.joeri-p3-message{margin:0 0 18px;padding:13px 16px;color:var(--joeri-portal-text,#18293a);background:color-mix(in srgb,var(--joeri-portal-primary,#1769aa) 7%,var(--joeri-portal-surface,#fff));border:1px solid color-mix(in srgb,var(--joeri-portal-primary,#1769aa) 17%,var(--joeri-portal-border,#c6daeb));border-radius:14px;font-size:11px;font-weight:750;line-height:1.5}

/* Confronto presidencial */
.joeri-p3-race{position:relative;padding:30px;background:var(--joeri-portal-surface,#fff);border:1px solid var(--joeri-portal-border,#c6daeb);border-radius:28px;box-shadow:0 18px 44px color-mix(in srgb,var(--joeri-portal-bar,#0e548d) 9%,transparent)}
.joeri-p3-candidates{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.joeri-p3-candidates:after{position:absolute;top:50%;left:50%;z-index:4;display:grid;width:42px;height:42px;place-items:center;color:var(--joeri-portal-muted,#607285);background:var(--joeri-portal-surface,#fff);border:1px solid var(--joeri-portal-border,#c6daeb);border-radius:50%;box-shadow:0 6px 18px rgba(0,0,0,.08);content:"×";font-size:18px;font-weight:800;transform:translate(-50%,-50%)}
.joeri-p3-candidate{position:relative;display:grid;grid-template-columns:minmax(150px,38%) minmax(0,1fr);align-items:center;gap:24px;min-height:320px;padding:30px;overflow:hidden;background:linear-gradient(145deg,var(--joeri-portal-surface,#fff),color-mix(in srgb,var(--candidate-accent) 7%,var(--joeri-portal-surface,#fff)));border:1px solid color-mix(in srgb,var(--candidate-accent) 18%,var(--joeri-portal-border,#c6daeb));border-radius:24px}
.joeri-p3-candidate.is-candidate-1{--candidate-accent:var(--joeri-portal-primary,#1769aa)}
.joeri-p3-candidate.is-candidate-2{--candidate-accent:var(--joeri-portal-secondary,#3f8fc6)}
.joeri-p3-candidate:before{position:absolute;right:-70px;bottom:-90px;width:220px;height:220px;background:color-mix(in srgb,var(--candidate-accent) 10%,transparent);border-radius:50%;content:""}
.joeri-p3-candidate-visual{position:relative;z-index:2;display:flex;align-items:center;justify-content:center}
.joeri-p3-number{position:absolute;top:-5px;right:5px;z-index:4;display:grid;min-width:42px;height:42px;padding:0 10px;place-items:center;color:#fff;background:var(--candidate-accent);border:4px solid var(--joeri-portal-surface,#fff);border-radius:999px;font-size:14px;font-weight:950;box-shadow:0 8px 18px color-mix(in srgb,var(--candidate-accent) 28%,transparent)}
.joeri-p3-photo{display:grid;width:min(190px,100%);aspect-ratio:1/1;overflow:hidden;place-items:center;color:#fff;background:linear-gradient(145deg,var(--candidate-accent),color-mix(in srgb,var(--candidate-accent) 58%,#fff));border:7px solid color-mix(in srgb,var(--candidate-accent) 13%,var(--joeri-portal-surface,#fff));border-radius:50%;font-size:56px;font-weight:950;box-shadow:0 16px 36px color-mix(in srgb,var(--candidate-accent) 18%,transparent)}
.joeri-p3-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}
.joeri-p3-candidate-copy{position:relative;z-index:2;min-width:0}
.joeri-p3-party{display:inline-flex;margin-bottom:8px;color:var(--candidate-accent);font-size:11px;font-weight:950;letter-spacing:.07em;text-transform:uppercase}
.joeri-p3-candidate h3{margin:0;color:var(--joeri-portal-text,#18293a);font-size:clamp(24px,3.2vw,42px);font-weight:950;line-height:.98;letter-spacing:-.04em;text-transform:uppercase;overflow-wrap:anywhere}
.joeri-p3-vice{margin:10px 0 0;color:var(--joeri-portal-muted,#607285);font-size:11px;font-weight:700;line-height:1.35}
.joeri-p3-candidate-result{margin-top:24px}
.joeri-p3-candidate-result strong{display:block;color:var(--candidate-accent);font-size:clamp(34px,4vw,54px);font-weight:950;line-height:.9;letter-spacing:-.055em}
.joeri-p3-candidate-result span{display:block;margin-top:8px;color:var(--joeri-portal-muted,#607285);font-size:11px;font-weight:800}
.joeri-p3-status{display:inline-flex;min-height:28px;align-items:center;margin-top:16px;padding:0 10px;border-radius:999px;font-size:9px;font-weight:950;letter-spacing:.04em;text-transform:uppercase}
.joeri-p3-status.is-elected{color:#12633f;background:#ddf4e7}
.joeri-p3-status.is-not-elected{color:#7c6262;background:#f4eaea}
.joeri-p3-status.is-runoff{color:var(--candidate-accent);background:color-mix(in srgb,var(--candidate-accent) 11%,var(--joeri-portal-surface,#fff))}
.joeri-p3-status.is-counting,.joeri-p3-status.is-waiting{color:#7b5a11;background:#fff1cf}
.joeri-p3-empty-wide{grid-column:1/-1;min-height:180px;padding:24px}

.joeri-p3-comparison{margin-top:24px;padding-top:22px;border-top:1px solid var(--joeri-portal-border,#c6daeb)}
.joeri-p3-comparison-labels{display:flex;justify-content:space-between;gap:20px;margin-bottom:9px;color:var(--joeri-portal-muted,#607285);font-size:10px;font-weight:900;text-transform:uppercase}
.joeri-p3-comparison-labels .is-first{color:var(--joeri-portal-primary,#1769aa)}
.joeri-p3-comparison-labels .is-second{color:var(--joeri-portal-secondary,#3f8fc6);text-align:right}
.joeri-p3-comparison-bar{display:flex;height:12px;overflow:hidden;background:var(--joeri-portal-track,#d8e7f3);border-radius:999px}
.joeri-p3-comparison-bar i{display:block;height:100%;transition:width .4s ease}
.joeri-p3-comparison-bar .is-first{background:var(--joeri-portal-primary,#1769aa)}
.joeri-p3-comparison-bar .is-second{background:var(--joeri-portal-secondary,#3f8fc6)}

/* Estatísticas */
.joeri-p3-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-top:18px}
.joeri-p3-stat{min-width:0;padding:18px 15px;background:var(--joeri-portal-surface,#fff);border:1px solid var(--joeri-portal-border,#c6daeb);border-radius:16px;box-shadow:0 8px 22px color-mix(in srgb,var(--joeri-portal-bar,#0e548d) 5%,transparent)}
.joeri-p3-stat strong{display:block;overflow:hidden;color:var(--joeri-portal-text,#18293a);font-size:16px;font-weight:950;line-height:1.1;text-overflow:ellipsis;white-space:nowrap}
.joeri-p3-stat span{display:block;margin-top:6px;color:var(--joeri-portal-muted,#607285);font-size:9px;font-weight:850;letter-spacing:.025em;text-transform:uppercase}
.joeri-p3-stat-wide{grid-column:1/-1;text-align:center}

/* Rodapé */
.joeri-v2-footer{border-top:1px solid var(--joeri-portal-border,#c6daeb);background:var(--joeri-portal-surface,#fff)}
.joeri-v2-footer .joeri-v2-shell{display:flex;min-height:82px;align-items:center;justify-content:space-between;gap:20px;color:var(--joeri-portal-muted,#607285);font-size:10px;font-weight:700}
.joeri-v2-footer p{margin:0}
.joeri-v2-footer a{color:var(--joeri-portal-primary,#1769aa);font-weight:950;text-decoration:none}

@media(max-width:1020px){
 .joeri-p3-filter-panel{grid-template-columns:1fr;margin-right:12px;margin-left:12px}
 .joeri-p3-filter-fields{justify-content:flex-end}
 .joeri-p3-candidate{grid-template-columns:1fr;text-align:center;padding:26px 22px}
 .joeri-p3-candidate-visual{max-width:180px;margin:0 auto}
 .joeri-p3-party{justify-content:center}
 .joeri-p3-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:760px){
 .joeri-v2-shell{width:min(100% - 20px,680px)}
 .joeri-v2-sitebar-inner{min-height:46px;justify-content:center}
 .joeri-v2-site-button{min-height:34px}
 .joeri-v2-brand.has-image.logo-size-medium .joeri-v2-brand-image,.joeri-v2-brand.has-image.logo-size-medium img{max-width:88vw}
 .joeri-v2-brand.has-image.logo-size-small .joeri-v2-brand-image,.joeri-v2-brand.has-image.logo-size-small img{max-width:70vw}
 .joeri-v2-main{padding-top:14px;padding-bottom:34px}
 .joeri-p3-hero{min-height:0;align-items:flex-start;flex-direction:column;padding:26px 22px 40px;border-radius:23px}
 .joeri-p3-hero h1{font-size:38px}
 .joeri-p3-hero p{font-size:13px}
 .joeri-p3-live{min-height:36px}
 .joeri-p3-filter-panel{margin:-20px 8px 20px;padding:10px;border-radius:18px}
 .joeri-p3-scope-tabs{grid-template-columns:1fr 1fr 1fr;overflow-x:auto}
 .joeri-p3-scope-tabs button{min-width:0;min-height:42px;padding:0 9px;font-size:9px}
 .joeri-p3-filter-fields{display:grid;grid-template-columns:1fr;justify-content:stretch}
 .joeri-p3-select-field,.joeri-p3-city-field{min-width:0}
 .joeri-p3-overview{padding:22px 18px;border-radius:20px}
 .joeri-p3-overview-head{align-items:flex-start;flex-direction:column}
 .joeri-p3-source{align-self:flex-start}
 .joeri-p3-progress-head{align-items:flex-start;flex-direction:column;gap:14px}
 .joeri-p3-progress-sections{text-align:left}
 .joeri-p3-race{padding:14px;border-radius:22px}
 .joeri-p3-candidates{grid-template-columns:1fr;gap:12px}
 .joeri-p3-candidates:after{display:none}
 .joeri-p3-candidate{grid-template-columns:130px minmax(0,1fr);min-height:0;gap:16px;padding:18px;text-align:left;border-radius:19px}
 .joeri-p3-candidate-visual{max-width:none;margin:0}
 .joeri-p3-photo{width:126px;border-width:5px}
 .joeri-p3-number{top:-5px;right:-2px;min-width:34px;height:34px;border-width:3px;font-size:12px}
 .joeri-p3-party{justify-content:flex-start;margin-bottom:5px;font-size:9px}
 .joeri-p3-candidate h3{font-size:25px}
 .joeri-p3-vice{margin-top:6px;font-size:10px}
 .joeri-p3-candidate-result{margin-top:14px}
 .joeri-p3-candidate-result strong{font-size:33px}
 .joeri-p3-candidate-result span{font-size:9px}
 .joeri-p3-status{margin-top:11px}
 .joeri-p3-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .joeri-v2-footer .joeri-v2-shell{min-height:92px;align-items:center;flex-direction:column;justify-content:center;text-align:center}
}

@media(max-width:460px){
 .joeri-v2-shell{width:calc(100% - 16px)}
 .joeri-p3-hero{padding:22px 17px 37px}
 .joeri-p3-kicker{font-size:9px}
 .joeri-p3-hero h1{font-size:34px}
 .joeri-p3-filter-panel{margin-right:4px;margin-left:4px}
 .joeri-p3-scope-tabs{gap:4px;padding:4px}
 .joeri-p3-scope-tabs button{padding:0 6px;font-size:8px}
 .joeri-p3-candidate{grid-template-columns:102px minmax(0,1fr);gap:12px;padding:14px}
 .joeri-p3-photo{width:98px}
 .joeri-p3-candidate h3{font-size:21px}
 .joeri-p3-candidate-result strong{font-size:29px}
 .joeri-p3-status{font-size:8px}
 .joeri-p3-stat{padding:15px 12px}
 .joeri-p3-stat strong{font-size:14px}
}
