/*
 * PRICE-3: fee list.
 * A ruled list of what is offered and what it costs: the name with a line on
 * what it covers, and the fee at the end of the line in the heading font. For
 * a clinic, a studio or a workshop that states its fees.
 */

/* One fee under another at every width. */
.wprk-section.wprk-price-3 .wprk-price-3__list {
	border-block-start: 1px solid var(--wprk-border);
	gap: 0;
	grid-template-columns: minmax(0, 1fr);
}

.wprk-price-3 .wprk-price-3__item {
	align-items: baseline;
	border-block-end: 1px solid var(--wprk-border);
	column-gap: var(--wp--preset--spacing--40);
	display: flex;
	justify-content: space-between;
	padding-block: var(--wp--preset--spacing--30);
}

.wprk-price-3 .wprk-price-3__item > *,
.wprk-price-3 .wprk-price-3__text > * {
	margin: 0;
	min-width: 0;
}

.wprk-price-3 .wprk-price-3__text > * + * {
	margin-block-start: 0.2rem;
}

.wprk-price-3 .wprk-price-3__item :where(h3) {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.3;
}

.wprk-price-3 .wprk-price-3__item .wprk-muted {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
}

.wprk-price-3 .wprk-price-3__fee {
	color: var(--wprk-heading);
	flex: none;
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-variant-numeric: lining-nums tabular-nums;
	font-weight: var(--wp--custom--heading--weight);
	letter-spacing: var(--wp--custom--heading--tracking);
	line-height: 1.3;
	max-width: 45%;
	text-align: end;
}

/*
 * The list reads best at the width of a column of text, not across a wide
 * screen. The column starts where the heading starts: at the edge in a design
 * with headings at the side, on the centre line in one that centres them
 * (assets/css/switches/heading-align-centre.css sets the variable).
 */
@media (min-width: 1024px) {
	.wprk-section.wprk-price-3 .wprk-price-3__list {
		border-block-start: 0;
		grid-template-columns: minmax(0, 52rem);
		justify-content: var(--wprk-follow-head, start);
	}

	.wprk-price-3 .wprk-price-3__item:first-child {
		border-block-start: 1px solid var(--wprk-border);
	}

	.wprk-price-3 .wprk-section__foot {
		display: grid;
		grid-template-columns: minmax(0, 52rem);
		justify-content: var(--wprk-follow-head, start);
	}
}
