/* PAGE-7: page title with a button and a phone line. The words on the left, what to do next on the right. */

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

.wprk-page-7 .wprk-page-7__inner {
	align-items: end;
	column-gap: var(--wp--preset--spacing--60);
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.wprk-page-7 .wprk-page-7__inner > * {
	grid-column: 1;
	margin-block: 0;
	min-width: 0;
}

.wprk-page-7 .wprk-page-7__inner > * + * {
	margin-block-start: var(--wp--preset--spacing--20);
}

.wprk-page-7 .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-7 .wprk-page-7__inner > .wp-block-breadcrumbs {
	margin-block: calc((1.6em - 2.75rem) / 2);
}

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

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

.wprk-page-7 :where(h1) {
	font-size: var(--wp--preset--font-size--huge);
	line-height: 1.12;
	max-width: 16em;
}

.wprk-page-7 .wprk-page-7__inner > .wprk-lead {
	margin-block-start: var(--wp--preset--spacing--30);
	max-width: 36rem;
}

/* The button, and beside it the phone number of the business with its small label above. */
.wprk-page-7 .wprk-page-7__inner > .wprk-page-7__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	margin-block-start: var(--wp--preset--spacing--40);
}

.wprk-page-7 .wprk-page-7__actions > * {
	margin: 0;
}

.wprk-page-7 .wprk-page-7__phone > *,
.wprk-page-7 .wprk-page-7__phone .wprk-business > * {
	margin: 0;
}

.wprk-page-7 .wprk-page-7__phone-label {
	color: var(--wprk-muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
}

.wprk-page-7 .wprk-page-7__phone :where(a) {
	color: var(--wprk-heading);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--x-large);
	font-variant-numeric: lining-nums;
	font-weight: var(--wp--custom--heading--weight);
	line-height: 1.25;
	text-decoration: none;
	white-space: nowrap;
}

.wprk-page-7 .wprk-page-7__phone :where(a):hover {
	text-decoration: underline;
	text-decoration-thickness: 0.06em;
	text-underline-offset: 0.2em;
}

/*
 * Wide screens: the button and the number move to a second column, level with
 * the last line of the words.
 */
@media (min-width: 1024px) {
	.wprk-page-7 .wprk-page-7__inner:has(> .wprk-page-7__actions) {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.wprk-page-7 .wprk-page-7__inner > .wp-block-breadcrumbs {
		grid-column: 1 / -1;
	}

	.wprk-page-7 .wprk-page-7__inner > .wprk-page-7__actions {
		align-items: flex-end;
		align-self: end;
		flex-direction: column;
		grid-column: 2;
		grid-row: 2 / span 4;
		margin-block-start: 0;
		text-align: end;
	}
}
