/* =================================================================
   Emerald Stats Bar — desktop row / mobile 2×2
   ================================================================= */

.emerald-stats-bar {
	--emerald-stats-bg: var(--emerald-secondary-color, #1d5f51);
	--emerald-stats-divider: rgba(255, 255, 255, 0.28);
	--emerald-stats-ink: #ffffff;
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 28px 12px;
	border-radius: 40px;
	background: var(--emerald-stats-bg);
	box-shadow: 0 12px 40px rgba(31, 45, 42, 0.18);
	color: var(--emerald-stats-ink);
}

.emerald-stats-bar__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: stretch;
	margin: 0;
	padding: 0;
	list-style: none;
}

.emerald-stats-bar__item {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 8px 16px;
	text-align: center;
}

/* Vertical dividers (desktop) — inset from top/bottom */
.emerald-stats-bar__item + .emerald-stats-bar__item::before {
	content: '';
	position: absolute;
	left: 0;
	top: 18%;
	bottom: 18%;
	width: 1px;
	background: var(--emerald-stats-divider);
	pointer-events: none;
}

.emerald-stats-bar__value {
	display: flex;
	margin: 0;
	color: var(--emerald-stats-ink);
	font-family: var(--emerald-heading-font-family, 'Manrope', sans-serif);
	font-size: clamp(22px, 2.2vw, 32px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.emerald-stats-bar__prefix,
.emerald-stats-bar__suffix,
.emerald-stats-bar__num {
	display: inline;
}

.emerald-stats-bar__label {
	margin: 0;
	color: var(--emerald-stats-ink);
	font-family: var(--emerald-body-font-family, 'Source Sans 3', sans-serif);
	font-size: clamp(13px, 1.1vw, 16px);
	font-weight: 400;
	line-height: 1.35;
	opacity: 0.95;
}

/* —— Mobile: 2×2 with cross dividers —— */
@media (max-width: 767px) {
	.emerald-stats-bar {
		padding: 8px 4px;
		border-radius: 32px;
	}

	.emerald-stats-bar__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.emerald-stats-bar__item {
		padding: 28px 12px;
	}

	/* Reset desktop vertical-only rule */
	.emerald-stats-bar__item + .emerald-stats-bar__item::before {
		content: none;
	}

	/* Vertical divider on right column cells */
	.emerald-stats-bar__item:nth-child(odd)::after {
		content: '';
		position: absolute;
		top: 16%;
		bottom: 16%;
		right: 0;
		width: 1px;
		background: var(--emerald-stats-divider);
		pointer-events: none;
	}

	/* Horizontal divider under top row */
	.emerald-stats-bar__item:nth-child(-n + 2)::before {
		content: '';
		position: absolute;
		left: 12%;
		right: 12%;
		bottom: 0;
		top: auto;
		width: auto;
		height: 1px;
		background: var(--emerald-stats-divider);
		pointer-events: none;
	}

	.emerald-stats-bar__value {
		font-size: 24px;
	}

	.emerald-stats-bar__label {
		font-size: 14px;
	}
}
