/* Tema RiachãoNet para o TSE Widget (cores, fontes e modo escuro do portal) */
.tser-faixa, .tser, .tser-pn {
	--tser-accent: #0D5AA0;
	--tser-texto: #1e293b;
	--tser-suave: #64748b;
	--tser-borda: #e2e8f0;
	--tser-fundo: #fff;
	--tser-fundo-2: #f4f7f9;
	font-family: 'Roboto', sans-serif;
}
.tser-pn-h, .tser-pn-cargo, .tser-pn-cands-head h4, .tser-pn-stats h3,
.tser-p-cargo b, .tser-titulo, .tser-pn-nome, .tser-p-nome, .tser-nome { font-family: 'Roboto Condensed', 'Roboto', sans-serif; }

/* ---------- Faixa da home: destaque ---------- */
.rn-eleicoes-home { grid-column: 1 / -1; margin: 0 0 30px; }
.rn-eleicoes-home .tser-faixa { margin: 0; border-left: 0; border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 46, 80, .12); grid-template-columns: 170px 1fr 150px; }
.rn-eleicoes-home .tser-f-rotulo { background: linear-gradient(160deg, #002e50 0%, #0D5AA0 100%); color: #fff; position: relative; }
.rn-eleicoes-home .tser-f-rotulo strong { color: #fff; font-family: 'Roboto Condensed', sans-serif; font-weight: 700; font-size: 24px; text-transform: uppercase; }
.rn-eleicoes-home .tser-f-rotulo small { color: rgba(255, 255, 255, .8); }
.rn-eleicoes-home .tser-f-rotulo::before {
	content: "● AO VIVO"; align-self: flex-start; font: 800 10px/1 'Roboto', sans-serif; letter-spacing: .08em;
	background: #e11d48; color: #fff; padding: 5px 8px; border-radius: 3px; animation: rn-pisca 1.6s infinite;
}
.rn-eleicoes-home .tser-f-mais { background: #0D5AA0; color: #fff; font-family: 'Roboto Condensed', sans-serif; font-size: 15px; text-transform: uppercase; border-left: 0; }
.rn-eleicoes-home .tser-f-mais:hover { background: #002e50; color: #fff; }
.rn-eleicoes-home .tser-f-mais i { font-size: 20px; }
.rn-eleicoes-home [data-tse-widget]:empty { display: block; min-height: 236px; border-radius: 10px; background: linear-gradient(90deg, #eef2f6 25%, #f8fafc 50%, #eef2f6 75%); background-size: 200% 100%; animation: rn-skel 1.4s infinite; }
@keyframes rn-pisca { 50% { opacity: .55; } }
@keyframes rn-skel { to { background-position: -200% 0; } }
@media (max-width: 900px) {
	.rn-eleicoes-home .tser-faixa { grid-template-columns: 1fr; border-top: 0; }
	.rn-eleicoes-home .tser-f-rotulo { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
	.rn-eleicoes-home .tser-f-rotulo::before { align-self: center; }
	.rn-eleicoes-home .tser-f-rotulo strong { font-size: 18px; }
	.rn-eleicoes-home .tser-f-rotulo small { color: rgba(255, 255, 255, .8); margin-left: auto; }
	.rn-eleicoes-home [data-tse-widget]:empty { min-height: 330px; }
}
@media (prefers-reduced-motion: reduce) {
	.rn-eleicoes-home .tser-f-rotulo::before, .rn-eleicoes-home [data-tse-widget]:empty { animation: none; }
}

/* ---------- Modo escuro do portal ---------- */
[data-theme="dark"] .tser-faixa, [data-theme="dark"] .tser, [data-theme="dark"] .tser-pn {
	--tser-texto: #f1f5f9;
	--tser-suave: #94a3b8;
	--tser-borda: #334155;
	--tser-fundo: #1e293b;
	--tser-fundo-2: #0f172a;
	--tser-accent: #3b82f6;
}
[data-theme="dark"] .tser-faixa, [data-theme="dark"] .tser-card, [data-theme="dark"] .tser-pn-box,
[data-theme="dark"] .tser-pn-btn, [data-theme="dark"] .tser-pn-mais { background: #1e293b; }
[data-theme="dark"] .tser-pn-btn.is-ativo { background: var(--tser-accent); }
[data-theme="dark"] .tser-pn-estado select, [data-theme="dark"] .tser-pn-busca input,
[data-theme="dark"] .tser-seletor select { background: #0f172a; color: #f1f5f9; border-color: #334155; }
[data-theme="dark"] .tser-pn-aba { color: #cbd5e1; }
[data-theme="dark"] .tser-pn-aba.is-ativo { color: #60a5fa; }
[data-theme="dark"] .tser-pn-aba:disabled { color: #475569; }
[data-theme="dark"] .tser-pn-h, [data-theme="dark"] .tser-pn-cargo, [data-theme="dark"] .tser-p-cargo b { color: #f1f5f9; }
[data-theme="dark"] .rn-eleicoes-home [data-tse-widget]:empty { background: #1e293b; animation: none; }
