/* PAGE-9: slim page title strip. The title and the crumbs on one line, and little room around them. */

.wprk-page-9.wprk-section {
	padding-block: var(--wp--preset--spacing--30);
}

.wprk-page-9 .wprk-page-9__inner {
	align-items: center;
	column-gap: var(--wp--preset--spacing--40);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	row-gap: var(--wp--preset--spacing--10);
}

/* Anything else a template puts in its bar goes on a line of its own under the two. */
.wprk-page-9 .wprk-page-9__inner > * {
	grid-column: 1 / -1;
	margin-block: 0;
	min-width: 0;
}

.wprk-page-9 .wp-block-breadcrumbs {
	color: var(--wprk-muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.6;
}

/*
 * Every crumb is a tap target 2.75rem high. The negative margin gives the
 * extra height back, so the crumbs take the room of one line of small text.
 */
.wprk-page-9 .wprk-page-9__inner > .wp-block-breadcrumbs {
	grid-row: 2;
	margin-block: calc((1.6em - 2.75rem) / 2);
}

.wprk-page-9 .wp-block-breadcrumbs :where(li) {
	min-height: 2.75rem;
}

.wprk-page-9 .wp-block-breadcrumbs :where(a) {
	align-items: center;
	align-self: stretch;
	display: flex;
}

/* The title comes first, whatever the order in the page. It stays the one h1. */
.wprk-page-9 .wprk-page-9__inner > :where(h1) {
	font-size: var(--wp--preset--font-size--x-large);
	grid-row: 1;
	line-height: 1.2;
	max-width: none;
}

.wprk-page-9 .wprk-page-9__inner > .wprk-lead {
	font-size: var(--wp--preset--font-size--medium);
	max-width: 46rem;
}

.wprk-page-9 .wprk-page-9__inner > .wprk-lead :where(p) {
	margin: 0;
}

/* A search field in a template's bar keeps to a width that reads as a field. */
.wprk-page-9 .wprk-page-9__inner > :where(.wp-block-search) {
	max-width: 40rem;
}

/* From a tablet up the crumbs stand at the end of the title's own line. */
@media (min-width: 600px) {
	.wprk-page-9 .wprk-page-9__inner:has(> .wp-block-breadcrumbs) {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.wprk-page-9 .wprk-page-9__inner:has(> .wp-block-breadcrumbs) > :where(h1) {
		grid-column: 1;
	}

	.wprk-page-9 .wprk-page-9__inner > .wp-block-breadcrumbs {
		grid-column: 2;
		grid-row: 1;
	}
}
