/* Prévia de UI/UX. Mantém as cores semânticas, limites e bases eleitorais. */
:root{--ux-surface:#fff;--ux-soft:#eef3fa;--ux-edge:#dce4ef;--ux-copy:#506176;--ux-primary:#245bd7;--ux-shadow:0 5px 22px #172e5210;--ux-radius:16px;--bg:#f3f6fa;--muted:#5e6f85}
html[data-theme=dark]{--ux-surface:#142238;--ux-soft:#192d47;--ux-edge:#30465f;--ux-copy:#b2c2d7;--ux-primary:#a2c3ff;--ux-shadow:0 8px 28px #0002;--bg:#0a1320;--muted:#b2c2d7;--subtext:#b2c2d7}
body{line-height:1.5}h1,h2,h3{text-wrap:balance}h1{font-size:clamp(30px,3.2vw,48px);line-height:1.15;letter-spacing:-1.7px}h2{font-size:24px;line-height:1.3}.heading p,.section-head p{font-size:15px;max-width:65ch;color:var(--ux-copy)}.eyebrow{font-size:11px;letter-spacing:1.1px;color:var(--ux-copy)}
header{padding-inline:4%;height:88px;background:var(--ux-surface);gap:20px}header nav{gap:22px}header nav>a{font-size:14px;color:var(--ux-copy)}header nav>a.nav-active{color:var(--ux-primary);border-bottom-color:var(--ux-primary)}@media(hover:hover) and (pointer:fine){header nav>a:hover{color:var(--ux-primary);border-bottom-color:var(--ux-primary)}}header nav button{font-size:13px}.brand small{font-size:10px;letter-spacing:1px}.state-tag{display:none}main{max-width:1512px;padding:40px 4% 0}.heading{margin-bottom:28px;align-items:flex-end}.heading-actions{flex-shrink:0}.button{min-height:46px;border-radius:10px;font-size:13px;padding:12px 16px;gap:8px}.button:not(.primary){background:var(--ux-surface);border-color:var(--ux-edge)}.button.primary{background:#245bd7;color:#fff;border-color:#245bd7;box-shadow:none}@media(hover:hover) and (pointer:fine){.button:hover{filter:brightness(.97)}}
.ux-skip{position:fixed;top:12px;left:12px;transform:translateY(-160%);z-index:1000;background:var(--ux-surface);border:2px solid var(--ux-primary);border-radius:8px;padding:12px 18px}.ux-skip:focus{transform:none} :is(button,a,input,select,summary,textarea):focus-visible{outline:3px solid #669df4;outline-offset:3px}button,a,select,summary{touch-action:manipulation}section[id]{scroll-margin-top:24px}.ux-preview-label{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--ux-copy);margin:0 0 16px;padding:6px 10px;background:var(--ux-soft);border:1px solid var(--ux-edge);border-radius:6px}
.history-cards{gap:16px;margin-bottom:40px}.history-card{border-radius:var(--ux-radius);padding:22px 24px;box-shadow:var(--ux-shadow);transition:border-color .18s,transform .18s;background:var(--ux-surface)}.history-card.active{border:2px solid #316be4;padding:21px 23px}.history-card strong{font-size:36px;font-variant-numeric:tabular-nums;margin-top:12px}.card-label{font-size:12px;letter-spacing:.5px}.card-label .selected-badge{font-size:10px;letter-spacing:0;padding:4px 8px}.card-foot{font-size:12px;line-height:1.6;gap:12px}.card-line{height:4px}
:is(.year-switch,.panorama-year-switch,.role-tabs,.group-switch){border-radius:12px;padding:5px;gap:5px;border:1px solid var(--ux-edge);background:var(--ux-soft)}:is(.year-switch,.panorama-year-switch,.role-tabs,.group-switch) button{min-height:44px;border-radius:8px;font-size:14px;font-weight:650;padding:9px 18px;white-space:nowrap;color:var(--ux-copy)}:is(.year-switch,.panorama-year-switch,.role-tabs,.group-switch) button.active,:is(.year-switch,.panorama-year-switch,.role-tabs,.group-switch) button[aria-pressed=true]{background:var(--ux-surface);color:var(--ux-primary);box-shadow:0 2px 5px #10213912}.section-head{gap:20px;margin-bottom:22px}.section-head>div:first-child{min-width:0}.workspace{gap:24px;grid-template-columns:minmax(0,1.6fr) minmax(340px,1fr)}.map-panel,.detail-panel,.panorama-map,.scope-panel{border-radius:var(--ux-radius);box-shadow:var(--ux-shadow)}.detail-panel{padding:26px;background:var(--ux-surface)}.search-wrap{min-height:50px;border-radius:11px;margin-bottom:26px;border-color:var(--ux-edge);background:var(--ux-soft)}.search-wrap input{font-size:15px}.search-results{border-radius:10px;background:var(--ux-surface)}.search-results button{font-size:14px;padding:13px 14px;min-height:46px}.city-name{font-size:30px}.city-location{font-size:13px}.detail-eyebrow{font-size:11px}.vote-hero-label{font-size:13px}.vote-hero strong{font-size:54px;font-variant-numeric:tabular-nums}.delta-pill{font-size:12px;padding:6px 9px}.delta-context{font-size:12px;display:inline-block;margin-top:5px}.mini-stats span{font-size:12px}.mini-stats strong{font-size:24px}.mini-stats small{font-size:11px}.detail-title{font-size:13px}.detail-title span{font-size:11px}.bar-col strong,.bar-col span{font-size:12px}.detail-note{font-size:12px;line-height:1.7;padding:14px;border-radius:9px}.overview-summary>div{font-size:12px;padding:12px}.overview-summary b{font-size:23px}
.map-mode button{min-height:40px;font-size:13px}.map-toolbar .eyebrow{font-size:11px;color:#b0c2d8}.map-caption{font-size:12px;color:#b0c2d8}.map-legend{font-size:11px;color:#c2d0df;gap:12px 16px}.legend-note{font-size:11px;color:#9eb1c8}.map-footer{font-size:11px;color:#a4b9cf;align-items:center;gap:10px}.map-footer button{min-height:40px}.zoom-controls button,.panorama-zoom button{width:40px;height:40px}.comparison-controls{font-size:13px;gap:10px}.comparison-controls select{font-size:13px;min-height:40px;padding:8px;border-radius:8px}.region-filter label{font-size:12px}.region-filter select{min-height:44px;font-size:14px;border-radius:8px}.region-filter small{font-size:11px;line-height:1.5}.touch-map-hint{font-size:12px!important;line-height:1.6}
.regions-panel,.results,.comparison-panel,.history-panel,.data-note{border-radius:var(--ux-radius);border-color:var(--ux-edge);box-shadow:var(--ux-shadow);background:var(--ux-surface)}.regions-panel{margin-top:36px}.regions-panel>.section-head{align-items:flex-start}.regions-panel>.section-head>a{font-size:12px;color:var(--ux-copy)}.region-year-controls{gap:14px}.region-year-controls p{font-size:12px;line-height:1.7}.region-year-label{font-size:13px}#regionList button{min-height:48px;border-radius:10px}#regionList{gap:12px}.smart-search input,#historySearch,.candidate-tools input,.filter-panel select,.candidate-tools select,.table-controls select{font-size:15px;min-height:50px;padding:12px 14px;border-radius:10px;background:var(--ux-surface);color:var(--ink);border:1px solid var(--ux-edge)}.smart-search label{font-size:14px;margin-bottom:8px}.smart-search>p{font-size:13px}#searchGuide summary{font-size:13px;padding:10px 0;cursor:pointer}#searchGuide p{font-size:13px;line-height:1.8}.search-examples button{font-size:12px;padding:9px 12px;min-height:40px;border-radius:8px}table{font-variant-numeric:tabular-nums}th{font-size:12px}th button{min-height:40px;font-size:12px}td{font-size:14px;padding-block:17px!important}@media(hover:hover) and (pointer:fine){tbody tr:hover{background:var(--ux-soft)}}td:first-child{color:var(--ux-copy)}.table-bottom{font-size:13px}.table-bottom button{min-height:44px}
.panorama-year-switch{display:inline-flex;margin-bottom:16px}.role-tabs{margin-bottom:24px}.panorama-stats{gap:16px}.panorama-stats article{padding:22px;border-radius:14px;box-shadow:var(--ux-shadow)}.panorama-stats span{font-size:13px}.panorama-stats strong{font-size:32px;font-variant-numeric:tabular-nums}.panorama-stats small{font-size:12px}.filter-panel{padding:20px 22px;gap:18px;background:var(--ux-surface);border:1px solid var(--ux-edge);border-radius:14px;margin:24px 0}.filter-panel label{font-size:13px;gap:8px}.reset-button{font-size:13px;min-height:44px;padding:10px 14px;border-radius:9px}.panorama-workspace{gap:24px}.scope-panel{padding:26px}.scope-panel h2{font-size:28px}.scope-panel>p,.scope-note{font-size:13px;line-height:1.7}.scope-metric>span{font-size:13px}.scope-metric strong{font-size:46px;font-variant-numeric:tabular-nums}.scope-metric small{font-size:12px}.scope-section-title{font-size:12px}.leader-row{padding-block:14px}.panorama-map-head h2{font-size:22px}.panorama-map-head p{font-size:13px;line-height:1.6}.panorama-map-head button{min-height:42px;font-size:12px}.panorama-map-foot{font-size:12px;line-height:1.6}
.candidates-section,.comparison-panel,.history-panel{margin-top:36px}.comparison-heading p{font-size:14px;line-height:1.7;max-width:75ch}.comparison-heading h2{font-size:26px}.comparison-scope{border-radius:12px}.candidate-tools{gap:12px}.candidate-grid{gap:20px}.candidate-card{padding:24px;border-radius:14px;box-shadow:var(--ux-shadow);transition:border-color .18s}@media(hover:hover) and (pointer:fine){.candidate-card:hover{border-color:#7b9ed7}}.candidate-person-top{gap:14px}.candidate-person-top .candidate-identity h3{font-size:19px;line-height:1.4}.candidate-person-top .candidate-identity p{font-size:12px}.candidate-vote-top strong{font-variant-numeric:tabular-nums;font-size:34px}.candidate-vote-top small,.candidate-result-line>small,.candidate-context{font-size:12px}.status-tag{font-size:11px;padding:5px 9px}.candidate-map-button,.party-elected-button{min-height:44px;font-size:13px;border-radius:9px;margin-top:18px}.ranking-explainer,.denominator-note{font-size:12px;line-height:1.75}.party-breakdown{font-size:12px}.load-more{min-height:48px;font-size:14px;border-radius:10px}.data-note strong{font-size:15px}.data-note p{font-size:13px;line-height:1.85}.data-note a,#sourceDate{font-size:12px}.comparison-third-add{min-height:44px}.comparison-sources{font-size:12px}.comparison-slot{border-radius:14px}.history-empty{font-size:14px}.history-panel>label{font-size:14px}.history-search-results button{min-height:48px}
dialog{border-radius:18px;overscroll-behavior:contain;max-height:calc(100dvh - 32px)}dialog .popup-heading{align-items:flex-start;gap:20px}dialog .popup-heading button{min-height:44px;font-size:13px;border-radius:9px}.popup-note{font-size:13px}.comparison-search-dialog>input{font-size:16px;min-height:50px;border-radius:10px}.report-actions button{min-height:44px}footer{margin-top:36px;font-size:12px}
@media(max-width:1100px){header nav{gap:14px}header nav>a{font-size:12px}.heading{flex-wrap:wrap}.heading-actions{flex-wrap:wrap}.workspace{grid-template-columns:minmax(0,1.4fr) minmax(310px,1fr)}.candidate-person-top{grid-template-columns:52px minmax(0,1fr) auto;gap:10px}.candidate-person-top .candidate-identity h3{font-size:16px}.candidate-vote-top strong{font-size:29px}}
@media(max-width:760px){main{padding:26px 5% 0}header{height:auto;min-height:76px;padding:14px 5%;gap:14px}header .brand{font-size:11px}header nav{width:100%;gap:12px;overflow-x:auto;justify-content:flex-start}header nav>a{font-size:13px;min-height:42px;white-space:nowrap}.heading{gap:20px}.heading h1{font-size:32px;letter-spacing:-1.2px}.heading p{font-size:14px}.heading-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.heading-actions .button{justify-content:center;padding:10px;font-size:12px}.history-cards{grid-template-columns:1fr 1fr;gap:12px;margin-bottom:30px}.history-card{padding:18px 16px}.history-card.active{padding:17px 15px}.history-card strong{font-size:29px}.card-foot{font-size:11px;align-items:flex-start;flex-direction:column;gap:4px}.card-label{font-size:11px}.card-label .selected-badge{font-size:9px;padding:3px 5px}.section-head{flex-wrap:wrap;align-items:flex-start;gap:16px}.section-head h2{font-size:23px}.section-head p{font-size:13px}.year-switch{width:100%;justify-content:space-between}.year-switch button{flex:1;min-width:0;padding:9px 12px}.workspace{grid-template-columns:1fr;gap:18px}.map-toolbar{padding:20px 18px 0;gap:10px}.map-toolbar h3{font-size:22px}.map-mode button{padding:8px 10px;font-size:12px}.detail-panel,.scope-panel{padding:22px}.map-caption{font-size:11px;left:18px;max-width:70%}.map-legend{padding-inline:18px}.map-footer{padding-inline:18px;flex-wrap:wrap}.zoom-controls{right:14px}.region-year-controls{flex-wrap:wrap}.regions-panel>.section-head>a{font-size:12px}.region-year-controls .year-switch{width:100%}.results>.section-head{padding:22px}.table-controls{width:100%}.table-controls select{width:100%}.smart-search{padding-inline:20px}.smart-search input{font-size:16px}.role-tabs{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:5px}.role-tabs button{font-size:13px;padding:11px 8px;white-space:normal}.panorama-year-switch{width:100%;display:flex}.panorama-year-switch button{flex:1;padding:10px}.panorama-stats{gap:12px}.panorama-stats article{padding:16px}.panorama-stats strong{font-size:28px}.filter-panel{padding:18px;gap:16px}.filter-panel select{font-size:16px}.filter-panel .reset-button{padding:10px;width:100%;background:var(--ux-soft)}.panorama-map-head h2{font-size:21px}.panorama-map-head button{font-size:11px;flex-shrink:0}.candidate-grid{grid-template-columns:1fr;gap:14px}.candidate-card{padding:20px}.candidate-person-top{grid-template-columns:52px minmax(0,1fr) auto;gap:10px}.candidate-person-top .candidate-identity h3{font-size:16px}.candidate-vote-top strong{font-size:28px}.candidate-person-top .candidate-identity p{font-size:11px}.candidate-result-line{align-items:flex-start}.candidate-result-line>small{font-size:11px}.comparison-heading h2{font-size:23px}.comparison-heading p{font-size:13px}.candidates-section .group-switch{width:100%;display:flex}.group-switch button{flex:1}.candidate-tools select{width:100%;font-size:16px}.data-note{padding:22px}.data-note p{font-size:12px}.popup-heading h2{font-size:21px}dialog{width:calc(100vw - 24px);padding:20px!important}.ux-preview-label{font-size:11px}.theme-switch button{min-height:36px}.mobile-bottom-nav a,.mobile-bottom-nav button{min-width:66px;min-height:66px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
@media print{.ux-preview-label,.ux-skip{display:none!important}}
@media(max-width:760px){header nav{display:grid;grid-template-columns:1fr 1fr;gap:4px 16px;overflow:visible;height:auto}header nav>a{display:flex;height:auto;min-height:38px;padding:6px 0;border:0;font-size:13px}header nav>a.nav-active{color:var(--ux-primary)}header nav button{min-height:38px;text-align:left}@media(hover:hover) and (pointer:fine){header nav>a:hover{border:0}}.heading-actions>:last-child:nth-child(3){grid-column:1/-1}}
/* O mesmo fundo de Fortaleza em todos os níveis e temas do mapa. */
:root{--map-canvas:#102139}
html body :is(.map-panel,.panorama-map,.ft-map-panel),html[data-theme] body :is(.map-panel,.panorama-map,.ft-map-panel){background-color:var(--map-canvas)}
html body :is(.map-stage,.panorama-map-stage,.ft-map-stage),html[data-theme] body :is(.map-stage,.panorama-map-stage,.ft-map-stage){background:var(--map-canvas)}
