/* ==========================================================================
   Plant protein isolate characteristics
   A quiet specification sheet on ivory. The protein figure leads as one
   full row in display type; the other nine follow as plain rows under thin
   hairlines. No icons and no numerals: rules and type do the separating.
   ========================================================================== */

.ph-iso {
	--ph-sec-muted: rgb(var(--ph-deep-rgb) / 0.78);
	--ph-sec-line: rgb(var(--ph-deep-rgb) / 0.14);

	padding-block: var(--ph-section-space);
	background: var(--ph-ivory); /* alternates with the cream applications section above */
	color: var(--ph-deep);
}

/* Head
   ========================================================================== */

.ph-iso__head {
	display: grid;
	gap: var(--ph-stack-space);
	justify-items: center; /* section heads are centred on the page */
	text-align: center;
	margin-bottom: var(--ph-block-space);
}

.ph-iso__title {
	font-size: var(--ph-fs-h2);
	font-weight: var(--ph-fw-display);
	letter-spacing: -0.022em;
	line-height: 1.08;
	text-wrap: balance;
}

/* Specification rows
   ========================================================================== */

.ph-iso__spec {
	display: grid;
	align-content: start;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 40rem) {
	.ph-iso__spec {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: var(--ph-space-l);
	}
}

/* In two columns an odd item count leaves the last row half empty; that row
   spans both columns so it stays centred. (The lead row is child 1, so an
   unpaired last item is an even child.) */
@media (min-width: 40rem) and (max-width: 63.99rem) {
	.ph-iso__item:last-child:nth-child(even) {
		grid-column: 1 / -1;
	}
}

@media (min-width: 64rem) {
	.ph-iso__spec {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		column-gap: var(--ph-space-xl);
	}
}

/* Rows are centred in their columns so the sheet sits evenly under the
   centred head; left-aligned text left the right side visibly emptier. */
.ph-iso__item {
	position: relative;
	padding-block: var(--ph-space-s);
	border-top: 1px solid var(--ph-sec-line);
	text-align: center;
}

.ph-iso__name {
	font-family: var(--ph-font-heading);
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
	font-weight: var(--ph-fw-heading);
	letter-spacing: -0.005em;
	line-height: 1.3;
}

/* The lead row: the protein figure
   ========================================================================== */

.ph-iso__item--lead {
	grid-column: 1 / -1;
	padding-block: var(--ph-space-m);
}

/* The figure and its label stack on one centre line, so the heavy numerals
   are not pushed left by the label beside them. */
.ph-iso__lead {
	display: flex;
	flex-direction: column;
	align-items: center;
	row-gap: var(--ph-space-2xs);
}

.ph-iso__figure {
	font-family: var(--ph-font-heading);
	font-size: clamp(3.5rem, 1.75rem + 6.5vw, 7rem);
	font-weight: var(--ph-fw-display);
	letter-spacing: -0.03em;
	line-height: 0.95;
	color: var(--ph-forest);
	font-variant-numeric: lining-nums;
	white-space: nowrap;
}

/* "to" sits small between the two numbers so the range reads as one figure. */
.ph-iso__to {
	font-size: 0.3em;
	letter-spacing: 0;
	color: var(--ph-sec-muted);
}

.ph-iso__label {
	font-family: var(--ph-font-heading);
	font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem);
	font-weight: var(--ph-fw-display);
	letter-spacing: -0.015em;
	line-height: 1.15;
}
