/* Raio-X do candidato (assets/politica/raio-x.js) */
.rx { margin-top: 12px; padding: 14px 16px; border: 1px solid #363a3f; border-radius: 10px; background: rgba(255,255,255,.015); display: grid; gap: 12px; font-size: 14px; line-height: 1.45; }
.rx-t { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.35; }
.rx-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 12px; }
.rx-kpi { padding: 10px 12px; border-radius: 10px; background: #1c1d20; border: 1px solid #2a2d32; display: grid; gap: 2px; min-width: 0; }
.rx-kpi b { font-size: 20px; font-weight: 600; line-height: 1.2; overflow-wrap: break-word; }
.rx-kpi span { font-size: 12px; color: #b0b4ba; }
.rx-comp { margin: 0; font-size: 14px; line-height: 1.45; }
.rx-nota, .rx-fonte { margin: 0; font-size: 12px; line-height: 1.5; color: #b0b4ba; }
.rx-bloco { display: grid; gap: 4px; }
.rx-bloco h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.rx-linha { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 14px; min-height: 32px; border-top: 1px solid #2a2d32; }
.rx-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rx-barra { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.rx-barra i { display: block; height: 100%; border-radius: 4px; background: #f0b061; opacity: .55; }
.rx-linha--eu .rx-nome { font-weight: 600; }
.rx-linha--eu .rx-barra i { opacity: 1; }
.rx-val { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 13px; color: #b0b4ba; }
@media (max-width: 560px) { .rx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rx-linha { grid-template-columns: minmax(0, 1fr) auto; } .rx-barra { display: none; } }

/* mapa por zona eleitoral (hoje só a capital paulista) */
.rx-mapa__svg { width: 100%; max-height: 560px; display: block; margin: 4px auto 0; }
.rx-mapa__zona { fill: #f0b061; stroke: #141517; stroke-width: 1.2; cursor: pointer; outline: none; transition: stroke 120ms; }
.rx-mapa__zona:hover, .rx-mapa__zona:focus { stroke: #fff; stroke-width: 2; }
.rx-mapa__info { margin: 4px 0 0; font-size: 13px; font-weight: 500; min-height: 1.5em; text-align: center; }
.rx-mapa__zona--cidade { stroke-width: .6; stroke: rgba(10,10,12,.85); }
.rx-mapa__zona--cidade:hover { stroke-width: 1.6; }

/* mapa de pontos por local de votação (Leaflet + OpenStreetMap) */
.rx-mapa__ruas { height: 480px; border-radius: 10px; overflow: hidden; background: #0e0e12; color: #F2F2F4; font-size: 13px; border: 1px solid #363a3f; }
.rx-mapa__ruas.leaflet-container { background: #0e0e12; }
.rx-mapa__ruas .leaflet-control-zoom a { background: #1c1c22; color: #F2F2F4; border-color: rgba(255,255,255,.15); }
.rx-mapa__ruas--falhou { display: grid; place-items: center; height: 80px; opacity: .7; }
.rx-mapa__ruas .leaflet-popup-content { margin: 10px 12px; font: 13px/1.45 Inter, system-ui, sans-serif; color: #111; }
@media (max-width: 560px) { .rx-mapa__ruas { height: 360px; } }

/* lista da busca de candidato por nome (assets/politica/busca-candidato.js) */
.busca-cand { display: grid; gap: 2px; text-align: left; width: 100%; }
.busca-nota { margin: 6px 0 0; }

/* mapa de zonas no estilo do painel: faixas de cor, legenda e nomes */
.rx-mapa__zona--faixa { fill-opacity: 1; stroke: #0A0A0C; stroke-width: 1.4; }
.rx-mapa__rotulo { font: 600 11px Inter, system-ui, sans-serif; fill: #fff; paint-order: stroke; stroke: rgba(10,10,12,.85); stroke-width: 3px; pointer-events: none; }
.rx-mapa__legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-top: 6px; }
.rx-mapa__legenda span { display: inline-flex; align-items: center; gap: 6px; }
.rx-mapa__legenda i { width: 14px; height: 12px; border-radius: 3px; border: 1px solid rgba(255,255,255,.18); display: inline-block; }
.rx-mapa__legenda small { font-size: 12px; color: #b0b4ba; }

.rx-mapa__zona--faixa { stroke: #141517; }
.rx :focus-visible, .rx-mapa__zona:focus-visible { outline: 2px solid #F2B266; outline-offset: 2px; }
@media (max-width: 560px) { .rx { padding: 12px; } .rx-linha { min-height: 40px; } }
