/**
 * Hub de loteria (loterias-hub.php, template-parts/loteria-hub.php) e o link
 * de volta para ele nos posts de resultado. Carrega só nessas páginas.
 * As bolas são as do [dci_loteria], cujo CSS está no style.css.
 */

/* --- Topo ---------------------------------------------------------------- */
.dci-hub {
	margin-bottom: 30px;
}
.dci-hub__lead {
	margin: 0 0 16px;
	font-size: 16px;
}
.dci-hub__atualizado {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: #656565;
}
.dci-hub__ultimo {
	padding: 18px 20px;
	background: #f2f2f2;
	border-radius: 8px;
}
.dci-hub__ultimo .dci-loteria {
	margin-bottom: 16px;
}
.dci-hub__cta {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 6px;
	background: #260085;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
}
.dci-hub__cta:hover,
.dci-hub__cta:focus-visible {
	filter: brightness(1.15);
}

/* --- Seções -------------------------------------------------------------- */
.dci-hub__secao {
	margin-bottom: 30px;
}
.dci-hub__sobre p {
	max-width: 760px;
}
.dci-hub__noticias {
	margin-bottom: 15px;
}

/* --- Tabela de concursos ------------------------------------------------- */
.dci-hub__tabela {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}
.dci-hub__tabela th,
.dci-hub__tabela td {
	padding: 10px 8px;
	border-bottom: 1px solid #e5e5e5;
	text-align: left;
	vertical-align: middle;
}
.dci-hub__tabela thead th {
	font-size: 13px;
	text-transform: uppercase;
	color: #656565;
	border-bottom-width: 2px;
}
.dci-hub__tabela tbody th {
	font-weight: 700;
	white-space: nowrap;
}
.dci-hub__dezenas span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	margin: 2px 2px 2px 0;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: var(--dci-bola-fg, #fff);
	background: var(--dci-bola-bg, #444);
}
@media (max-width: 480px) {
	.dci-hub__ultimo {
		padding: 14px;
	}
	.dci-hub__tabela {
		font-size: 14px;
	}
	.dci-hub__tabela th,
	.dci-hub__tabela td {
		padding: 8px 4px;
	}
	/* Data embaixo do concurso, para as bolas caberem em 360 px. */
	.dci-hub__tabela thead th:nth-child(2),
	.dci-hub__tabela td:nth-child(2) {
		display: none;
	}
	.dci-hub__dezenas span {
		width: 26px;
		height: 26px;
		font-size: 12px;
	}
}

/* --- Link de volta no post ----------------------------------------------- */
.dci-hub-link {
	margin: 0 0 24px;
	padding: 12px 16px;
	border-left: 4px solid #260085;
	background: #f2f2f2;
}
.dci-hub-link p {
	margin: 0;
}

