/*
 * The equation (prototype methodology.html "categorisation-matrix" + index.html "how-categorisation-works"):
 * Affected Population + Financial Impact = Category. Synced pattern "Equation" (wp_block) and patterns/equation.php.
 * The three cards are core Groups (white, 1px salmon border, radius 10, padding 35, gap 16); this file only lays them
 * out: one column with 16px gaps, from 1024 the five-track row card / 72px operator / card / 72px / card.
 * No margins of its own: the section that uses it sets the gap above (Methodology 60px, Home 42px).
 */
.wp-block-group.is-style-equation {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}

.wp-block-group.is-style-equation > * {
	margin: 0;
}

/* "+" and "=": centred in their track (prototype: flex items-center justify-center) */
.wp-block-group.is-style-equation > p {
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (width >= 1024px) {
	.wp-block-group.is-style-equation {
		grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr) 72px minmax(0, 1fr);
		gap: 0;
	}
}

/* The Cat 0–5 ramp: six equal chips, 72px tall, 4px apart (prototype ul.flex.gap-4 > li.h-72.flex-1) */
.is-style-equation .cat-ramp > * {
	flex: 1 1 0%;
	min-width: 0;
	height: 72px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--wp--custom--radius--btn);
}

.is-style-equation .cat-ramp > :nth-child(1) { background-color: var(--wp--custom--cat--0); border-color: rgba(48, 59, 56, 0.15); }
.is-style-equation .cat-ramp > :nth-child(2) { background-color: var(--wp--custom--cat--1); }
.is-style-equation .cat-ramp > :nth-child(3) { background-color: var(--wp--custom--cat--2); }
.is-style-equation .cat-ramp > :nth-child(4) { background-color: var(--wp--custom--cat--3); }
.is-style-equation .cat-ramp > :nth-child(5) { background-color: var(--wp--custom--cat--4); color: var(--wp--preset--color--white); }
.is-style-equation .cat-ramp > :nth-child(6) { background-color: var(--wp--custom--cat--5); color: var(--wp--preset--color--white); }
