/* Stats Grid Block -- self-contained styles (no theme dependency). */

:root {
	--sgb-accent: #2946f3;
	--sgb-value: #0f172a;
	--sgb-label: #475569;
	--sgb-divider: #e7eaf3;
}

.sgb-grid {
	display: grid;
	grid-template-columns: repeat(var(--sgb-cols, 4), 1fr);
	border-top: 1px solid var(--sgb-divider);
	border-left: 1px solid var(--sgb-divider);
	border-radius: 16px;
	overflow: hidden;
}

.sgb-item {
	border-right: 1px solid var(--sgb-divider);
	border-bottom: 1px solid var(--sgb-divider);
	padding: 32px 20px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.sgb-item__icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: color-mix(in srgb, var(--sgb-accent) 12%, white);
	color: var(--sgb-accent);
	margin-bottom: 4px;
}
.sgb-icon {
	width: 28px;
	height: 28px;
	stroke: currentColor;
	fill: none;
}

.sgb-item__value {
	font-size: clamp(1.8rem, 3vw, 2.6rem);
	font-weight: 800;
	color: var(--sgb-value);
	line-height: 1;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.sgb-item__label {
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--sgb-label);
}

@media (max-width: 780px) {
	.sgb-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 420px) {
	.sgb-grid { grid-template-columns: 1fr !important; }
}
