/* AN Eleicoes — barra da serie Dossies dos Presidenciaveis.
   Paleta propria (azul-noite institucional), distinta da tira do Olho na Rua,
   para o leitor reconhecer que sao produtos diferentes do mesmo portal.
   Mobile-first: testada em 360px. */

.an-ele {
	display: block;
	margin: 26px 0 30px !important;
	font-family: var(--an-corpo, 'Inter', system-ui, -apple-system, sans-serif);
}

.an-ele__faixa {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px;
	padding: 18px 20px;
	border-radius: var(--an-radius, 10px);
	background: linear-gradient(135deg, #0a1a3f 0%, #10265c 55%, #0a1a3f 100%);
	border-left: 4px solid var(--an-azul, #0B5FFF);
	box-shadow: 0 4px 18px rgba(10, 26, 63, .22);
	color: #fff;
}

.an-ele__esq { flex: 1 1 260px; min-width: 0; }
.an-ele__dir {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 16px;
}

.an-ele__tag {
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #7db4ff;
	margin-bottom: 4px;
}

.an-ele__tit {
	font-family: var(--an-display, 'Libre Franklin', sans-serif);
	font-size: 19px;
	font-weight: 800;
	line-height: 1.15;
	color: #fff;
}

.an-ele__sub {
	font-size: 12.5px;
	line-height: 1.5;
	color: #c3d3ee;
	margin-top: 5px;
}

.an-ele__sub strong { color: #fff; }

/* Rodizio: todos os nomes ocupam a mesma celula da grade; so o .ativo aparece.
   Assim nao ha salto de layout quando o nome troca de tamanho. */
.an-ele__rot {
	display: inline-grid;
	margin-top: 9px;
	min-height: 1.5em;
}

.an-ele__nome {
	grid-area: 1 / 1;
	font-size: 13.5px;
	font-weight: 700;
	color: #ffd98a;
	opacity: 0;
	transform: translateY(5px);
	transition: opacity .45s ease, transform .45s ease;
	white-space: nowrap;
}

.an-ele__nome.ativo {
	opacity: 1;
	transform: translateY(0);
}

.an-ele__contador {
	text-align: center;
	padding: 6px 14px;
	border-radius: 10px;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .14);
	min-width: 92px;
}

.an-ele__num {
	display: block;
	font-family: var(--an-display, 'Libre Franklin', sans-serif);
	font-size: 27px;
	font-weight: 800;
	line-height: 1;
	color: #fff;
}

.an-ele__rot-txt {
	display: block;
	font-size: 10.5px;
	line-height: 1.3;
	color: #a9c2e8;
	margin-top: 4px;
}

.an-ele__btn {
	display: inline-flex;
	align-items: center;
	padding: 12px 20px;
	border-radius: 30px;
	background: var(--an-azul, #0B5FFF);
	color: #fff !important;
	font-size: 13.5px;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
	box-shadow: 0 4px 14px rgba(11, 95, 255, .38);
	transition: transform .15s, box-shadow .15s, background .15s;
}

.an-ele__btn:hover,
.an-ele__btn:focus {
	background: #0847C4;
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(11, 95, 255, .5);
	color: #fff !important;
}

.an-ele__btn:active { transform: translateY(0); }

@media (max-width: 620px) {
	.an-ele__faixa {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		padding: 16px;
	}
	.an-ele__dir {
		justify-content: space-between;
		gap: 12px;
	}
	.an-ele__tit { font-size: 17.5px; }
	.an-ele__btn {
		flex: 1 1 auto;
		justify-content: center;
		padding: 13px 16px;
	}
	.an-ele__nome { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
	.an-ele__nome { transition: none; }
	.an-ele__btn { transition: none; }
	.an-ele__btn:hover { transform: none; }
}

/* ---------- Hub da serie (pagina-mae, shortcode [an_dossies]) ---------- */

.an-hub { margin: 6px 0 10px; }

.an-hub__intro {
	font-size: 15px;
	line-height: 1.65;
	color: var(--an-tinta-media, #374151);
	margin: 0 0 20px;
}

.an-hub__grade {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
}

.an-hub__card {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 16px 16px 14px;
	border: 1px solid var(--an-hairline, #E5E7EB);
	border-left: 4px solid var(--an-azul, #0B5FFF);
	border-radius: var(--an-radius, 10px);
	background: var(--an-papel, #fff);
	text-decoration: none !important;
	transition: transform .15s, box-shadow .15s;
}

.an-hub__card--pronto:hover,
.an-hub__card--pronto:focus {
	transform: translateY(-3px);
	box-shadow: 0 8px 22px rgba(11, 95, 255, .16);
}

.an-hub__card--breve {
	border-left-color: #c8cfda;
	background: var(--an-nuvem, #F5F7FA);
	opacity: .82;
}

.an-hub__nome {
	font-family: var(--an-display, 'Libre Franklin', sans-serif);
	font-size: 16.5px;
	font-weight: 800;
	color: var(--an-tinta, #111827);
}

.an-hub__tit {
	font-size: 13px;
	line-height: 1.45;
	color: var(--an-tinta-media, #374151);
}

.an-hub__data {
	font-size: 11px;
	color: var(--an-cinza, #6B7280);
	margin-top: 2px;
}

.an-hub__cta {
	font-size: 12.5px;
	font-weight: 700;
	color: var(--an-azul, #0B5FFF);
	margin-top: 6px;
}

.an-hub__nota {
	font-size: 12.5px;
	line-height: 1.6;
	color: var(--an-cinza, #6B7280);
	margin-top: 22px;
	padding-top: 14px;
	border-top: 1px solid var(--an-hairline, #E5E7EB);
}

@media (prefers-reduced-motion: reduce) {
	.an-hub__card { transition: none; }
	.an-hub__card--pronto:hover { transform: none; }
}

/* v1.2.0 — segundo botao opcional (ex.: mapa das convencoes) */
.an-ele__btn--sec {
	background: transparent !important;
	border: 1px solid rgba(255,255,255,0.55) !important;
	color: #fff !important;
	margin-top: 6px;
}
.an-ele__btn--sec:hover {
	background: rgba(255,255,255,0.12) !important;
}
