/* AVM_MUNICIPIOS_LOCAIS_V32: mapa municipal abre automaticamente com pontos confiaveis e navegacao real. */
.avm32-citymap{background:#fff;margin:12px 0 16px;border:1px solid #d7e4ee;border-radius:12px;padding:12px;color:#173b59}
.avm32-citymap[hidden]{display:none!important}
.avm32-citynav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.avm32-city-back{display:inline-flex;align-items:center;gap:5px;padding:9px 12px;border-radius:8px;border:1px solid #bdd4e6;color:#174d75;background:#f3f8fc;text-decoration:none;font-size:12px;font-weight:750}
.avm32-city-back:hover,.avm32-city-back:focus-visible{background:#e5f2fb;outline:2px solid #b4d4eb}
.avm32-city-title{margin:4px 0 6px;font-size:17px;color:#173b59}
.avm32-city-note{margin:5px 0 9px;font-size:12px;line-height:1.6;color:#557189}
.avm32-city-drawing{border:1px solid #d7e4ee;background:#f5f9fc;border-radius:10px;overflow:hidden;width:100%}
.avm32-city-drawing svg{display:block;width:100%;height:auto;max-height:480px}
.avm32-city-boundary{fill:#d1e8f5;stroke:#17649b;stroke-width:2.25;stroke-linejoin:round}
.avm32-city-pin{fill:#e47e20;stroke:#fff;stroke-width:2;cursor:pointer}
.avm32-city-pin:hover,.avm32-city-pin:focus{fill:#d33d32;stroke:#153b57;stroke-width:3;outline:none}
.avm32-city-cluster{font-size:8px;fill:#fff;font-weight:850;text-anchor:middle;pointer-events:none}
.avm32-city-info{padding:10px;background:#eef6fc;border:1px solid #cadeee;border-radius:9px;margin:10px 0;font-size:12px}
.avm32-city-info[hidden]{display:none}
.avm32-city-poplist{max-height:250px;overflow:auto}
.avm32-city-toolbar{display:flex;align-items:center;gap:12px;margin:12px 0 8px}
.avm32-city-search{flex:1;min-width:0;padding:10px;border:1px solid #bed0df;border-radius:9px;font-size:13px}
.avm32-city-count{font-size:11px;color:#59738b;white-space:nowrap}
.avm32-city-list{max-height:300px;overflow:auto;border:1px solid #e2eaf1;border-radius:9px}
.avm32-place-row{border-bottom:1px solid #ebf0f5}
.avm32-place-row:last-child{border-bottom:none}
.avm32-place-link{padding:9px 12px;display:flex;flex-direction:column;gap:3px;color:#194b73;text-decoration:none;font-size:12px}
.avm32-place-link:hover,.avm32-place-link:focus-visible{background:#f2f8fd;outline:2px solid #a6c8e1;outline-offset:-2px}
.avm32-place-link strong{font-size:12px}
.avm32-place-link small{color:#627c92}
.avm32-city-goto{font-weight:750!important;color:#165b8d!important}
.avm32-city-unknown{color:#677b89!important}
.avm32-city-message{font-size:12px;line-height:1.5;color:#62798d}
.avm32-city-more{width:100%;margin:9px 0 0;border:1px solid #bbd3e5;background:#edf6fc;border-radius:8px;padding:11px 12px;font:inherit;font-size:12px;font-weight:750;color:#18517d;cursor:pointer}
.avm32-city-more[hidden]{display:none}
.avm32-city-active .avm2-mapcontainer{display:none!important}
.avm32-city-active .avm2-controls{display:none!important}
.avm32-city-active .avm2-below{margin-top:5px}
@media(max-width:850px){.avm32-citymap{padding:9px;margin:8px 0}.avm32-city-title{font-size:15px}.avm32-city-drawing svg{max-height:410px}.avm32-city-back{flex:1;justify-content:center}.avm32-city-toolbar{flex-wrap:wrap}.avm32-city-search{flex-basis:100%}.avm32-city-count{width:100%}}

/* Detalhamento por local na coluna direita e abaixo do mapa. */
.avm32-place-row{display:flex;flex-direction:column;gap:3px;padding:9px 12px}
.avm32-place-select{text-align:left;border:0;background:transparent;color:#164b73;font:inherit;font-size:13px;font-weight:800;padding:0;cursor:pointer}
.avm32-place-select:hover,.avm32-place-select:focus-visible{text-decoration:underline}
.avm32-place-row>small{color:#617b90;font-size:11px}
.avm32-place-row>span{color:#425d74;font-size:11px}
.avm32-anchor{font-size:11px;font-weight:800!important;color:#0b6095!important;padding:5px 0;display:inline-block;text-decoration:underline}
.avm32-local-results{border:1px solid #bdd4e5;background:#f4f9fd;border-radius:11px;padding:12px;margin:0 0 15px;color:#173a56}
.avm32-local-results[hidden]{display:none!important}
.avm32-local-heading{font-size:17px;margin:0 0 5px}
.avm32-local-context{font-size:12px;margin:4px 0 9px;color:#526c80;line-height:1.5}
.avm32-local-total{display:flex;flex-direction:column;padding:11px;margin:8px 0;background:#e2eff9;border-radius:8px}
.avm32-local-total span{font-size:12px}.avm32-local-total strong{font-size:24px}
.avm32-local-ranking{max-height:340px;overflow:auto}
.avm32-local-candidate{display:grid;grid-template-columns:30px minmax(0,1fr);gap:3px 8px;border-bottom:1px solid #e0e9f0;padding:8px 0;font-size:12px}
.avm32-local-candidate strong{font-size:12px}.avm32-local-candidate small{grid-column:2;color:#536e82}
.avm32-local-position{color:#164d76;font-weight:850}
.avm32-local-more{margin:7px 0;border:1px solid #b4cfe1;border-radius:7px;background:#fff;color:#124e7a;padding:8px;cursor:pointer;width:100%}
.avm32-local-cta{display:block;padding:10px 12px;margin-top:9px;background:#175687;color:white!important;border-radius:9px;text-align:center;text-decoration:none}
.avm32-inline-total{font-size:13px;display:block;margin:6px 0}
@media(min-width:851px){.avm32-local-results{margin:0 0 20px}}

/* AVM UX v3.2.1: hover/foco legiveis no link de apuracao do local. */
.avm32-local-results a.avm32-local-cta,
.avm32-local-results a.avm32-local-cta:visited{background:#175687!important;color:#fff!important;text-decoration:none!important;font-weight:800}
.avm32-local-results a.avm32-local-cta:hover,
.avm32-local-results a.avm32-local-cta:focus-visible,
.avm32-local-results a.avm32-local-cta:active{background:#103f65!important;color:#fff!important;text-decoration:none!important;outline:2px solid #8ab9dc;outline-offset:2px}

/* AVM v3.2.2: marcador por lider no proprio local, neutro em empate/sem dados. */
.avm32-city-points .avm32-city-pin{fill:var(--avm32-pin-color,#94a3b8)!important;stroke:#fff;stroke-width:2.25;transition:filter .12s ease,stroke-width .12s ease}
.avm32-city-points .avm32-city-pin:hover,.avm32-city-points .avm32-city-pin:focus-visible{filter:brightness(.82);stroke:#143f62;stroke-width:3.2;outline:none}
.avm32-local-leader{display:flex;align-items:flex-start;gap:7px;font-size:12px;font-weight:750;color:#234c6a;margin:8px 0 10px;line-height:1.45}
.avm32-local-leader-swatch{flex:0 0 12px;height:12px;border:1px solid #91a9b8;border-radius:50%;margin-top:2px}

/* AVM URNA1 — miniaturas oficiais por local */
.avm32-local-results .avm32-local-candidate{grid-template-columns:28px 36px minmax(0,1fr);align-items:start;gap:8px;padding:8px 0}
.avm32-local-results .avm32-local-face,.avm32-local-results .avm32-local-face-fallback{width:36px;height:44px;border-radius:7px;object-fit:cover;object-position:top;background:#e4edf5;color:#244d6a;display:flex;align-items:center;justify-content:center;font-weight:800}
.avm32-local-results .avm32-local-details{display:flex;flex-direction:column;gap:4px;min-width:0}
.avm32-local-results .avm32-local-details strong{font-size:12px;overflow-wrap:anywhere}
.avm32-local-results .avm32-local-details small{grid-column:auto;color:#536e82}
