/* Apuração TSE 2026 — Presidente (2º turno) */
:root {
	--ap26-fundo: #0f1622;
	--ap26-fundo2: #182233;
	--ap26-texto: #ffffff;
	--ap26-suave: #a9b4c6;
	--ap26-ouro: #f5b800;
	--ap26-verde: #00a650;
	--ap26-aovivo: #e4002b;
}

/* ---------- comum ---------- */
.ap26-aovivo { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: #fff; background: var(--ap26-aovivo); padding: 3px 8px; border-radius: 3px; line-height: 1.2; white-space: nowrap; }
.ap26-aovivo i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: ap26-pisca 1.2s infinite; }
@keyframes ap26-pisca { 50% { opacity: .2; } }

.ap26-foto { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--ap26-cor, #445); border: 2px solid var(--ap26-cor, #889); color: #fff; font-weight: 800; font-size: 15px; }
.ap26-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; background: #dde3ea; }
.ap26-foto-g { width: 64px; height: 64px; font-size: 20px; border-width: 3px; }
.ap26-foto-xg { width: 120px; height: 120px; font-size: 34px; border-width: 4px; }

.ap26-selo { display: inline-block; background: var(--ap26-ouro); color: #1a1300; font-weight: 900; font-size: 11px; letter-spacing: .08em; padding: 3px 8px; border-radius: 3px; }
.ap26-carregando { color: var(--ap26-suave); font-size: 14px; padding: 6px 0; }

.ap26-split { position: relative; display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: #3a4558; }
.ap26-split span { display: block; height: 100%; transition: width .8s ease; }
.ap26-split .ap26-meio { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: #fff; transform: translateX(-1px); box-shadow: 0 0 0 1px rgba(0,0,0,.25); }

/* ---------- barra flutuante ---------- */
body.ap26-com-barra { padding-bottom: 84px !important; }
.ap26-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000; background: linear-gradient(180deg, var(--ap26-fundo2), var(--ap26-fundo)); color: var(--ap26-texto); box-shadow: 0 -6px 24px rgba(0,0,0,.28); font-family: inherit; border-top: 3px solid var(--ap26-ouro); }
.ap26-barra * { box-sizing: border-box; }
.ap26-barra a { color: inherit; text-decoration: none; }
.ap26-barra-in { max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 10px 46px 10px 16px; min-height: 76px; }

.ap26-b-info { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; flex: 0 0 auto; min-width: 150px; }
.ap26-b-titulo { font-size: 12px; font-weight: 700; color: #fff; line-height: 1.2; }
.ap26-b-urnas { font-size: 12px; color: var(--ap26-suave); }
.ap26-b-urnas b { color: #fff; font-size: 14px; }

.ap26-b-corpo { flex: 1 1 auto; display: flex; align-items: center; gap: 14px; min-width: 0; }
.ap26-b-cand { display: flex; align-items: center; gap: 10px; flex: 0 1 auto; min-width: 0; }
.ap26-b-cand.ap26-dir { flex-direction: row-reverse; text-align: right; }
.ap26-b-nome { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.ap26-b-nome strong { font-size: 14px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap26-b-nome span { font-size: 11px; color: var(--ap26-suave); }
.ap26-b-nome .ap26-nm-curto { display: none; }
.ap26-b-pct { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; color: #fff; letter-spacing: -.02em; border-bottom: 3px solid var(--ap26-cor); line-height: 1.05; }
.ap26-b-disputa { flex: 1 1 160px; display: flex; flex-direction: column; gap: 4px; min-width: 90px; }
.ap26-b-disputa small { font-size: 10px; color: var(--ap26-suave); text-align: center; }

.ap26-b-link { flex: 0 0 auto; font-size: 13px; font-weight: 800; background: var(--ap26-ouro); color: #1a1300 !important; padding: 9px 14px; border-radius: 4px; white-space: nowrap; }
.ap26-b-link:hover { filter: brightness(1.08); }

.ap26-min { position: absolute; top: 8px; right: 10px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; font-size: 13px; cursor: pointer; line-height: 28px; padding: 0; }
.ap26-min:hover { background: rgba(255,255,255,.22); }

/* eleito na barra */
.ap26-barra.ap26-tem-eleito { background: linear-gradient(90deg, #1b1400, #2b2100 40%, #0f1622); }
.ap26-b-eleito { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.ap26-b-eleito .ap26-foto { border-color: var(--ap26-ouro); box-shadow: 0 0 0 3px rgba(245,184,0,.35), 0 0 18px rgba(245,184,0,.55); animation: ap26-brilho 2s infinite; }
@keyframes ap26-brilho { 50% { box-shadow: 0 0 0 5px rgba(245,184,0,.2), 0 0 28px rgba(245,184,0,.8); } }
.ap26-b-eleito-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.ap26-b-eleito-txt strong { font-size: 20px; text-transform: uppercase; color: var(--ap26-ouro); line-height: 1.1; }
.ap26-b-eleito-txt span:last-child { font-size: 12px; color: #e8dcb5; }
.ap26-b-perd { display: flex; align-items: center; gap: 8px; opacity: .7; font-size: 12px; flex: 0 0 auto; }
.ap26-b-perd .ap26-foto { width: 32px; height: 32px; font-size: 11px; }

/* minimizada */
.ap26-barra.ap26-minimizada { left: auto; right: 14px; bottom: 14px; border-radius: 30px; border: 2px solid var(--ap26-ouro); }
.ap26-barra.ap26-minimizada .ap26-barra-in,
.ap26-barra.ap26-minimizada .ap26-min { display: none; }
.ap26-pill { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ap26-pill[hidden] { display: none; }

/* celular */
@media (max-width: 760px) {
	body.ap26-com-barra { padding-bottom: 112px !important; }
	.ap26-barra-in { flex-wrap: wrap; gap: 6px 10px; padding: 8px 12px 10px; min-height: 0; }
	.ap26-b-info { flex-direction: row; align-items: center; gap: 8px; min-width: 0; width: calc(100% - 34px); }
	.ap26-b-titulo { display: none; }
	.ap26-b-corpo { order: 3; width: 100%; gap: 8px; }
	.ap26-b-link { position: absolute; top: 7px; right: 44px; padding: 4px 9px; font-size: 11px; }
	.ap26-min { top: 6px; right: 8px; }
	.ap26-b-nome > span { display: none; }
	.ap26-b-nome strong { font-size: 12px; max-width: 96px; }
	.ap26-b-pct { font-size: 19px; }
	.ap26-barra .ap26-foto { width: 34px; height: 34px; font-size: 12px; }
	.ap26-b-nome .ap26-nm-longo { display: none; }
	.ap26-b-nome .ap26-nm-curto { display: inline; }
	.ap26-b-disputa { flex: 1 1 40px; min-width: 40px; }
	.ap26-b-disputa small { display: none; }
	.ap26-b-cand { gap: 6px; }
	.ap26-b-eleito-txt strong { font-size: 15px; }
	.ap26-b-eleito-txt span:last-child { font-size: 11px; }
	.ap26-b-perd span { display: none; }
	.ap26-barra .ap26-foto-g { width: 46px; height: 46px; }
}

/* ---------- página de apuração ---------- */
.ap26-pagina { --ap26-borda: #e3e7ee; color: #141a24; max-width: 980px; margin: 0 auto 30px; font-family: inherit; }
.ap26-pagina * { box-sizing: border-box; }
.ap26-pg-topo { background: linear-gradient(135deg, #0f1622, #1d2a40); color: #fff; border-radius: 10px; padding: 22px 24px; border-bottom: 4px solid var(--ap26-ouro); margin-bottom: 18px; }
.ap26-pg-titulo { color: #fff !important; margin: 10px 0 4px !important; font-size: clamp(22px, 4vw, 32px) !important; line-height: 1.15 !important; }
.ap26-pg-sub { margin: 0 !important; color: #b8c2d3; font-size: 14px; }

.ap26-pg-eleito { display: flex; align-items: center; gap: 22px; background: linear-gradient(120deg, #fff6d6, #ffe58a); border: 2px solid var(--ap26-ouro); border-radius: 12px; padding: 22px; margin-bottom: 18px; animation: ap26-entra .6s ease; }
.ap26-pg-eleito[hidden] { display: none; }
.ap26-pg-eleito .ap26-foto { border-color: var(--ap26-ouro); box-shadow: 0 0 0 6px rgba(245,184,0,.3); }
.ap26-pg-eleito h3 { margin: 8px 0 4px !important; font-size: clamp(24px, 4.5vw, 38px) !important; text-transform: uppercase; line-height: 1.05 !important; color: #1a1300 !important; }
.ap26-pg-eleito p { margin: 0 0 4px !important; font-size: 16px; font-weight: 700; color: #3d3000; }
.ap26-pg-eleito small { color: #5e4c00; }
@keyframes ap26-entra { from { transform: scale(.96); opacity: 0; } }

.ap26-pg-urnas { background: #f5f7fa; border: 1px solid var(--ap26-borda); border-radius: 10px; padding: 14px 18px; margin-bottom: 18px; }
.ap26-pg-urnas-txt { font-size: 15px; margin-bottom: 8px; }
.ap26-pg-urnas-txt strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.ap26-trilho { height: 10px; border-radius: 6px; background: #dfe4ec; overflow: hidden; }
.ap26-trilho-fill { display: block; height: 100%; width: 0; background: var(--ap26-verde); transition: width .8s ease; }

.ap26-pg-cands { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.ap26-card { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "foto info" "num num" "barra barra"; gap: 12px 14px; background: #fff; border: 1px solid var(--ap26-borda); border-top: 5px solid var(--ap26-cor); border-radius: 10px; padding: 18px; box-shadow: 0 2px 10px rgba(15,22,34,.06); }
.ap26-card > .ap26-foto { grid-area: foto; }
.ap26-card-info { grid-area: info; align-self: center; min-width: 0; }
.ap26-card-info h3 { margin: 4px 0 2px !important; font-size: 20px !important; text-transform: uppercase; line-height: 1.15 !important; color: #141a24 !important; }
.ap26-card-info p { margin: 0 !important; color: #5b6575; font-size: 13px; }
.ap26-card-num { grid-area: num; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ap26-card-num strong { font-size: clamp(34px, 6vw, 48px); font-weight: 900; color: var(--ap26-cor); font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1; }
.ap26-card-num span { color: #5b6575; font-size: 14px; font-variant-numeric: tabular-nums; }
.ap26-card-barra { grid-area: barra; height: 8px; border-radius: 5px; background: #eef1f5; overflow: hidden; }
.ap26-card-barra span { display: block; height: 100%; background: var(--ap26-cor); transition: width .8s ease; }
.ap26-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--ap26-cor); padding: 2px 7px; border-radius: 3px; }
.ap26-card-eleito { border-color: var(--ap26-ouro); box-shadow: 0 0 0 3px rgba(245,184,0,.45), 0 6px 22px rgba(245,184,0,.25); }
.ap26-pagina.ap26-tem-eleito .ap26-card:not(.ap26-card-eleito) { opacity: .72; }

.ap26-pg-disputa { margin-bottom: 18px; }
.ap26-split-g { height: 18px; border-radius: 9px; }
.ap26-pg-disputa p { text-align: center; margin: 8px 0 0 !important; font-size: 14px; color: #3b4454; }

.ap26-pg-extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.ap26-pg-extras div { background: #f5f7fa; border: 1px solid var(--ap26-borda); border-radius: 8px; padding: 10px 12px; }
.ap26-pg-extras span { display: block; font-size: 12px; color: #5b6575; }
.ap26-pg-extras strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.ap26-pg-rodape { font-size: 12px; color: #6b7585; text-align: center; margin: 6px 0 0 !important; }

@media (max-width: 640px) {
	.ap26-pg-cands { grid-template-columns: 1fr; }
	.ap26-pg-extras { grid-template-columns: 1fr 1fr; }
	.ap26-pg-eleito { flex-direction: column; text-align: center; }
	.ap26-foto-xg { width: 96px; height: 96px; }
}
.ap26-b-nome em { font-style: normal; }

/* ---------- mapa da apuração ---------- */
.ap26-mapa { position: relative; margin: 22px 0 18px; background: #fff; border: 1px solid var(--ap26-borda, #e3e7ee); border-radius: 12px; padding: 18px; }
.ap26-mapa * { box-sizing: border-box; }
.ap26-mapa-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ap26-mapa-topo h3 { margin: 0 !important; font-size: 22px !important; color: #141a24 !important; }
.ap26-mapa-abas { display: inline-flex; background: #eef1f5; border-radius: 8px; padding: 3px; }
.ap26-aba { border: 0; background: transparent; padding: 7px 14px; border-radius: 6px; font-weight: 700; font-size: 14px; color: #3b4454; cursor: pointer; }
.ap26-aba.ativo { background: #0f1622; color: #fff; }
.ap26-mapa-dica { margin: 8px 0 6px !important; font-size: 13px; color: #5b6575; }
.ap26-migalha { font-size: 14px; color: #3b4454; min-height: 30px; display: flex; align-items: center; gap: 6px; }
.ap26-volta { border: 1px solid #cfd5de; background: #fff; border-radius: 6px; padding: 5px 10px; font-weight: 700; cursor: pointer; font-size: 13px; color: #141a24; }
.ap26-volta:hover { background: #f2f4f7; }
.ap26-mapa-corpo { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.ap26-mapa-svg { min-height: 300px; display: flex; align-items: center; justify-content: center; }
.ap26-mapa-svg svg { width: 100%; height: auto; max-height: 640px; display: block; }
.ap26-area { stroke: #fff; stroke-width: 6; stroke-linejoin: round; cursor: pointer; transition: fill .5s ease, opacity .2s; vector-effect: non-scaling-stroke; }
.ap26-svg-br .ap26-area { stroke-width: 1.2; }
.ap26-svg-uf .ap26-area { stroke-width: .5; }
.ap26-area:hover { opacity: .78; }
.ap26-area.ap26-sel { stroke: #0f1622; stroke-width: 2.5; }
.ap26-svg-uf .ap26-area.ap26-sel { stroke-width: 2; }
.ap26-modo-regiao .ap26-area { stroke-width: .6; stroke: rgba(255,255,255,.55); }
.ap26-modo-regiao .ap26-area.ap26-sel { stroke: #0f1622; stroke-width: 1.6; }
.ap26-sigla { font: 700 150px/1 Arial, sans-serif; fill: #fff; text-anchor: middle; dominant-baseline: middle; pointer-events: none; paint-order: stroke; stroke: rgba(15,22,34,.45); stroke-width: 22px; }
.ap26-sigla-p { font-size: 105px; }

.ap26-mapa-painel { background: #f5f7fa; border: 1px solid var(--ap26-borda, #e3e7ee); border-radius: 10px; padding: 14px; font-size: 14px; color: #141a24; }
.ap26-mapa-painel h4 { margin: 0 0 8px !important; font-size: 18px !important; color: #141a24 !important; }
.ap26-p-selo { display: inline-block; background: var(--ap26-cor); color: #fff; font-weight: 800; padding: 4px 10px; border-radius: 4px; font-size: 13px; margin-bottom: 8px; }
.ap26-p-status { display: inline-block; background: #e3e6eb; color: #3b4454; font-weight: 700; padding: 4px 10px; border-radius: 4px; font-size: 12px; margin-bottom: 8px; }
.ap26-p-urnas { font-size: 12px; color: #5b6575; margin-bottom: 10px; }
.ap26-p-trilho { height: 6px; background: #dfe4ec; border-radius: 4px; overflow: hidden; margin-top: 4px; }
.ap26-p-trilho span { display: block; height: 100%; background: var(--ap26-verde, #00a650); }
.ap26-p-cand { margin-bottom: 10px; }
.ap26-p-linha { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ap26-p-nome { font-weight: 700; text-transform: uppercase; font-size: 13px; }
.ap26-p-nome i, .ap26-p-cont i, .ap26-p-reg i, .ap26-mapa-legenda i, .ap26-tip i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; background: var(--ap26-cor); margin-right: 6px; vertical-align: -1px; }
.ap26-p-nome b { color: #a07800; font-size: 11px; }
.ap26-p-linha strong { font-size: 20px; color: var(--ap26-cor); font-variant-numeric: tabular-nums; }
.ap26-p-barra { height: 6px; background: #e3e6eb; border-radius: 4px; overflow: hidden; margin: 3px 0 2px; }
.ap26-p-barra span { display: block; height: 100%; background: var(--ap26-cor); }
.ap26-p-cand small { color: #6b7585; font-size: 11px; }
.ap26-p-venceu { background: #fff; border-radius: 8px; padding: 8px; box-shadow: inset 0 0 0 2px var(--ap26-cor); }
.ap26-p-cont { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; }
.ap26-p-cont span { font-size: 14px; }
.ap26-cinza { background: #c9ced6 !important; }
.ap26-p-sub { margin: 10px 0 4px !important; font-size: 12px; font-weight: 700; text-transform: uppercase; color: #5b6575; letter-spacing: .03em; }
.ap26-p-dica, .ap26-p-vazio { font-size: 12px; color: #6b7585; margin: 8px 0 0 !important; }
.ap26-p-btn, .ap26-p-fechar { display: block; width: 100%; margin-top: 10px; border: 0; border-radius: 6px; padding: 9px 12px; font-weight: 800; cursor: pointer; font-size: 13px; }
.ap26-p-btn { background: #0f1622; color: #fff; }
.ap26-p-fechar { background: transparent; color: #3b4454; text-align: left; padding-left: 0; }
.ap26-p-ufs { display: flex; flex-wrap: wrap; gap: 6px; }
.ap26-p-ufs button { border: 0; border-radius: 5px; padding: 6px 9px; font-weight: 800; color: #fff; background: var(--ap26-cor); cursor: pointer; font-size: 12px; }
.ap26-p-reg { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; border: 1px solid #dde2ea; background: #fff; border-radius: 8px; padding: 8px 10px; margin-top: 6px; cursor: pointer; }
.ap26-p-reg span { font-weight: 800; font-size: 14px; color: #141a24; }
.ap26-p-reg small { color: #5b6575; font-size: 12px; }
.ap26-p-reg:hover { border-color: #9aa5b5; }

.ap26-mapa-legenda { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 13px; color: #3b4454; }
.ap26-tip { position: absolute; z-index: 5; pointer-events: none; background: #0f1622; color: #fff; border-radius: 8px; padding: 9px 11px; font-size: 12px; line-height: 1.45; max-width: 230px; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.ap26-tip[hidden] { display: none; }
.ap26-tip strong { display: block; font-size: 13px; margin-bottom: 2px; }
.ap26-tip span { display: block; color: #d5dbe5; }

@media (max-width: 760px) {
	.ap26-mapa { padding: 12px; }
	.ap26-mapa-corpo { grid-template-columns: 1fr; }
	.ap26-mapa-svg { min-height: 220px; }
	.ap26-tip { display: none !important; }
}
