/*
 * MENU-1: menu with prices.
 * A menu set as a printed card. The courses fill two columns, and under each
 * course stand its dishes: the name, a dotted line that leads the eye to the
 * price, and a line on what is in the dish. Prices are stated; nothing here
 * takes an order or a payment.
 */

/*
 * The courses fill columns from the top, as on a card. A course is never cut
 * between two columns. The room under a course is its own padding, not a
 * margin: a browser drops a margin at the foot of a column, and the row would
 * then end at a different height from one menu to the next.
 */
.wprk-section.wprk-menu-1 .wprk-menu-1__courses {
	column-gap: var(--wp--preset--spacing--60);
	columns: 2 24rem;
	display: block;
	margin-block-end: calc(var(--wp--preset--spacing--50) * -1);
}

.wprk-menu-1 .wprk-menu-1__course {
	break-inside: avoid;
	padding-block-end: var(--wp--preset--spacing--50);
}

.wprk-menu-1 .wprk-menu-1__course > * {
	margin: 0;
}

.wprk-menu-1 .wprk-menu-1__course > :where(h3) {
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.25;
}

.wprk-menu-1 .wprk-menu-1__about {
	color: var(--wprk-muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	margin-block-start: 0.25rem;
}

/* The dishes of a course, one under another, under a line the width of the column. */
.wprk-section.wprk-menu-1 .wprk-menu-1__dishes {
	border-block-start: 2px solid var(--wprk-heading);
	gap: var(--wp--preset--spacing--30);
	grid-template-columns: minmax(0, 1fr);
	margin-block-start: var(--wp--preset--spacing--20);
	padding-block-start: var(--wp--preset--spacing--30);
}

.wprk-menu-1 .wprk-menu-1__dish > * {
	margin: 0;
	min-width: 0;
}

/* The name, the dotted line and the price share one line of text. A long name wraps, and the line keeps to its last row. */
.wprk-menu-1 .wprk-menu-1__line {
	align-items: baseline;
	align-items: last baseline;
	column-gap: 0.6rem;
	display: flex;
}

.wprk-menu-1 .wprk-menu-1__line > * {
	margin: 0;
	min-width: 0;
}

.wprk-menu-1 .wprk-menu-1__line::before {
	border-block-end: 2px dotted color-mix(in srgb, var(--wprk-heading) 42%, transparent);
	content: "";
	flex: 1 1 1.5rem;
	min-width: 1.5rem;
	order: 1;
}

.wprk-menu-1 .wprk-menu-1__line:not(:has(> .wprk-menu-1__price))::before {
	content: none;
}

.wprk-menu-1 .wprk-menu-1__line :where(h4) {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.3;
	overflow-wrap: break-word;
}

.wprk-menu-1 .wprk-menu-1__line > .wprk-menu-1__price {
	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;
	order: 2;
}

/* What is in the dish stays clear of the column of prices. */
.wprk-menu-1 .wprk-menu-1__dish > .wprk-muted {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	margin-block-start: 0.2rem;
	max-width: calc(100% - 4.5rem);
}

/*
 * Editor: every course has a button that adds a dish. It stands in the
 * course, under its dishes; hung under the row, as the base rule has it, it
 * would lie over the name of the next course.
 */
.wprk-menu-1 .wprk-menu-1__dishes > .block-list-appender {
	inset-block-start: auto;
	position: static;
}
