/*
 * Statement figures band (prototype statement.html "statement-figures"). Pattern cmc/statement-figures, placed by
 * templates/single-statement.html:
 *   outer Group  section-statement-figures is-style-section is-style-statement-figures, off-white (the corners)
 *     <section>  .on-dark charcoal, off-white text, 40 / 40, constrained
 *       .statement-figures__row       badge (100x100) + three figures; col gap 25, lg row gap 30
 *         .statement-figures__figures three figures, each with a 2px white rule before it at lg
 *       hr.statement-figures__rule    1px white/25, mt-25
 *       .statement-figures__dates     "Categorised 22 October 2025 · Event began late August 2025", mt-20
 * Every value is bound to a statement field; an empty figure (all three paragraphs empty) is not shown.
 */
.section-statement-figures .statement-figures__row {
	display: flex;
	flex-direction: column;
	gap: 25px;
}

/* The badge here: 100x100, "Cat" text-8 regular over a text-4 semibold numeral */
.section-statement-figures .is-style-category-badge {
	width: 100px;
	height: 100px;
	font-size: var(--wp--preset--font-size--text-4);
	font-weight: 600;
	line-height: 1.1;
}

.section-statement-figures .is-style-category-badge::before {
	font-size: var(--wp--preset--font-size--text-8);
	line-height: 1.3;
}

.section-statement-figures .statement-figures__figures {
	display: flex;
	flex: 1 1 0%;
	flex-direction: column;
	gap: 25px;
	min-width: 0;
}

.section-statement-figures .statement-figures__figure {
	flex: 1 1 0%;
	min-width: 0;
}

.section-statement-figures .statement-figures__figure > * + * {
	margin-top: 8px;
}

.section-statement-figures .statement-figures__figure > :empty,
.section-statement-figures .statement-figures__figure:not(:has(> :not(:empty))) {
	display: none;
}

.section-statement-figures .statement-figures__rule {
	width: 100%;
	height: 1px;
	margin-top: 25px;
	margin-bottom: 0;
	border: 0;
	background-color: rgb(255 255 255 / 0.25);
	opacity: 1;
}

/* One line of text from three blocks: label, post date, event dates */
.section-statement-figures .statement-figures__dates {
	margin-top: 20px;
}

.section-statement-figures .statement-figures__dates > * {
	display: inline;
}

.section-statement-figures .statement-figures__dates > .wp-block-post-date::before {
	content: " ";
}

.section-statement-figures .statement-figures__dates > .statement-figures__event::before {
	content: " \00B7\0020";
	color: color-mix(in srgb, var(--wp--preset--color--off-white) 40%, transparent);
}

.section-statement-figures .statement-figures__dates > :empty {
	display: none;
}

@media (width >= 1024px) {
	.section-statement-figures .statement-figures__row {
		flex-direction: row;
		align-items: flex-start;
		gap: 30px;
	}

	.section-statement-figures .statement-figures__figures {
		flex-direction: row;
		gap: 30px;
	}

	.section-statement-figures .statement-figures__figure {
		padding-left: 30px;
		border-left: 2px solid var(--wp--preset--color--white);
	}
}
