/*
 * Mijn Trouwwebsite: the builder on /begin/.
 * A step card and the example sheet it fills in, lying on vellum.
 * Only role tokens from theme.css; the sheet takes its three colours
 * (--e envelope, --c card, --t text) from the .style--{slug} classes there.
 */

.mtw-main--builder .wp-block-post-content {
	padding-inline: 0;
}

.mtw-builder {
	padding-block: 0.25rem var(--section);
}

.bld [hidden] {
	display: none !important;
}

.bld__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.bld__hp {
	position: absolute;
	left: -9999px;
}

.bld {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	color: var(--ink);
}

/* ---------- intro ---------- */

.bld__intro {
	text-align: center;
}

.bld__title {
	margin: 0;
	font: 400 1.5rem/1.15 var(--display);
}

.bld__lede {
	margin: 0.35rem 0 0;
	font-size: clamp(0.8125rem, 3.7vw, 1rem);
	line-height: 1.45;
	color: var(--ink-soft);
}

/* ---------- the example sheet ---------- */

.bld__stage {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
}

.bsite {
	width: min(380px, 100%);
	background: var(--c);
	color: var(--t);
	box-shadow: var(--paper-shadow);
	font-family: var(--ui);
	text-align: center;
	--hair: color-mix(in srgb, var(--t) 18%, transparent);
}

/* browser window, so the example reads as a website */
.bsite__bar {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 8px 10px;
	background: color-mix(in srgb, var(--e) 16%, #fff);
}

.bsite__bar i {
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--e) 45%, #fff);
}

.bsite__url {
	flex: 1;
	height: 14px;
	margin-left: 8px;
	border-radius: 7px;
	background: rgb(255 255 255 / 0.7);
}

.bsite.is-dipped {
	animation: bld-dip 0.5s var(--ease);
}

@keyframes bld-dip {
	from {
		translate: 0 10px;
	}
}

.bsite p,
.bsite ul,
.bsite ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.bsite__head {
	padding: 1.75rem 1.5rem 1.4rem;
	border-top: 8px solid var(--e);
}

.bsite__line {
	font: 500 0.8125rem/1.3 var(--ui);
}

.bsite__names {
	margin-top: 0.45rem !important;
	font: 400 2.125rem/1.05 var(--display);
	letter-spacing: -0.012em;
	overflow-wrap: anywhere;
}

.bsite.style--salie .bsite__names,
.bsite.style--mist .bsite__names {
	font-family: var(--ui);
	font-weight: 500;
	letter-spacing: -0.02em;
}

.bsite.style--nacht .bsite__names {
	font-family: var(--text);
	font-style: italic;
}

.bsite__date {
	margin-top: 0.55rem !important;
	font: 500 0.875rem/1.3 var(--ui);
}

.bsite__menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.15rem 0.9rem;
	margin-top: 0.9rem !important;
	font: 600 0.75rem/1.4 var(--ui);
}

.bsite__body {
	padding: 0 1.5rem 1.6rem;
}

.bsite__part {
	display: grid;
	grid-template-rows: 1fr;
}

.bsite__part.is-unfolding {
	animation: bld-unfold 0.5s var(--ease);
}

@keyframes bld-unfold {
	from {
		grid-template-rows: 0fr;
	}
}

.bsite__fold {
	min-height: 0;
	overflow: hidden;
}

.bsite__fold::before {
	content: "";
	display: block;
	margin: 0.4rem 0 1.15rem;
	border-top: 1px solid var(--hair);
}

.bsite__part--rsvp .bsite__fold::before {
	margin-bottom: 0;
	border-top: 0;
}

.bsite__title {
	font: 400 1.25rem/1.2 var(--display);
}

.bsite__text {
	margin-top: 0.35rem !important;
	font: 400 1rem/1.4 var(--text);
	overflow-wrap: anywhere;
}

.bsite__small {
	margin-top: 0.3rem !important;
	font: 400 0.8125rem/1.4 var(--ui);
}

.bsite__rows {
	margin-top: 0.6rem !important;
	font: 400 0.9375rem/1.3 var(--ui);
	text-align: left;
}

.bsite__rows li {
	display: flex;
	gap: 1rem;
	padding: 0.5rem 0;
	border-top: 1px solid var(--hair);
}

.bsite__rows li:first-child {
	border-top: 0;
}

.bsite__rows--plain {
	font-family: var(--text);
}

.bsite__time {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.bsite__rsvp {
	margin-top: 0.7rem !important;
	padding: 0.7rem 1rem !important;
	border-radius: 2px;
	background: var(--t);
	color: var(--c);
	font: 600 0.875rem/1.2 var(--ui);
}

.bsite__qr {
	box-sizing: content-box;
	display: block;
	width: 84px;
	height: 84px;
	margin-inline: auto;
	padding-bottom: 0.35rem;
}

.bld__caption {
	max-width: 380px;
	margin-top: 0.9rem;
	font: 400 0.8125rem/1.45 var(--ui);
	color: var(--ink-soft);
	text-align: center;
}

/* ---------- text buttons ---------- */

.bld__text {
	min-height: 2.75rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--ink);
	font: 600 0.9375rem/1.3 var(--ui);
	text-decoration: underline;
	text-decoration-color: var(--foil-deep);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
	cursor: pointer;
}

a.bld__text {
	display: inline-flex;
	align-items: center;
}

.bld__text:hover {
	text-decoration-color: var(--ink);
}

/* ---------- form, progress, step card ---------- */

.bld__form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 0;
}

.bld__progress {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.bld__progress-label {
	margin: 0;
	font: 600 0.8125rem/1.3 var(--ui);
	color: var(--ink-soft);
}

.bld__rules {
	display: flex;
	gap: 0.35rem;
}

.bld__rules i {
	flex: 1 1 0;
	height: 2px;
	background: var(--rule);
}

.bld__rules i.is-on {
	background: var(--foil-deep);
}

.bld__step {
	min-width: 0;
	margin: 0;
	padding: clamp(1.25rem, 5vw, 2.25rem);
	border: 0;
	background: var(--cotton);
	box-shadow: var(--paper-shadow);
}

.bld__heading {
	margin: 0;
	font: 400 clamp(1.625rem, 4.4vw, 2.125rem)/1.12 var(--display);
	scroll-margin-top: 2rem;
}

.bld__heading:focus-visible,
.bld__subheading:focus-visible {
	outline: 0;
}

.bld__subheading {
	margin: 0;
	font: 400 1.5rem/1.2 var(--display);
	scroll-margin-top: 1.5rem;
}

.bld__hint,
.bld__note,
.bld__privacy,
.bld__welcome {
	margin: 0.6rem 0 0;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--ink-soft);
}

.bld__note,
.bld__privacy {
	margin-top: 1.25rem;
	font: 400 0.875rem/1.5 var(--ui);
}

.bld__privacy a {
	color: var(--ink);
}

.bld__welcome {
	margin: 0 0 1.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--rule);
	color: var(--ink);
}

.bld__welcome .bld__text {
	margin-left: 0.25rem;
}

.bld__error {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin: 1rem 0 0;
	font: 600 0.9375rem/1.4 var(--ui);
	color: var(--error);
}

/* A warning mark in the colour of the text: the state does not rest on weight and place alone. */
.bld__error::before {
	content: "";
	flex: none;
	width: 1.125rem;
	height: 1.125rem;
	margin-top: 0.1rem;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1zm-.95 3.1h1.9l-.3 5.2h-1.3zM8 10.5a1.1 1.1 0 1 1 0 2.2 1.1 1.1 0 0 1 0-2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1zm-.95 3.1h1.9l-.3 5.2h-1.3zM8 10.5a1.1 1.1 0 1 1 0 2.2 1.1 1.1 0 0 1 0-2.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bld input,
.bld__heading,
.bld__subheading {
	scroll-margin-top: 2rem;
}

/* names: two lines to write on, as on the envelope card */

.bld__names {
	margin-top: 1.5rem;
}

/* A field with an error keeps its heavier line while it has focus. */
.bld__names input[aria-invalid="true"],
.bld__field input[aria-invalid="true"],
.bld__names input[aria-invalid="true"]:focus-visible,
.bld__field input[aria-invalid="true"]:focus-visible {
	border-bottom-color: var(--error);
	box-shadow: 0 3px 0 var(--error);
}

/* style swatches: three by two */

.bld__swatches {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.6rem;
	margin-top: 1.5rem;
}

.bld__swatch {
	position: relative;
	display: block;
	cursor: pointer;
}

.bld__swatch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.bld__swatch-box {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	height: 100%;
	min-height: 2.75rem;
	padding: 0.45rem 0.45rem 0.55rem;
	border-radius: 2px;
	outline: 1px solid var(--rule);
	outline-offset: -1px;
}

.bld__swatch input:hover + .bld__swatch-box {
	background: color-mix(in srgb, var(--liner) 14%, transparent);
}

.bld__swatch input:checked + .bld__swatch-box {
	outline: 2px solid var(--ink);
	outline-offset: -2px;
}

.bld__swatch input:focus-visible + .bld__swatch-box {
	outline: 2px solid var(--foil-deep);
	outline-offset: 3px;
}

/* each swatch is a tiny trouwwebsite in that style */
.bld__chip {
	position: relative;
	display: block;
	aspect-ratio: 7 / 4.6;
	padding: 10% 14% 0;
	background: color-mix(in srgb, var(--e) 22%, var(--c));
	overflow: hidden;
}

.bld__chip-page {
	display: flex;
	height: 100%;
	flex-direction: column;
	align-items: center;
	gap: 9%;
	padding: 10% 10% 0;
	border-top: 3px solid var(--e);
	background: var(--c);
	box-shadow: 0 1px 2px rgb(0 0 0 / 0.12);
}

.bld__chip-names {
	width: 62%;
	height: 13%;
	border-radius: 1px;
	background: var(--t);
}

.bld__chip-menu,
.bld__chip-lines {
	display: flex;
	width: 100%;
	justify-content: center;
	gap: 8%;
}

.bld__chip-menu i {
	width: 18%;
	height: 3px;
	background: color-mix(in srgb, var(--t) 45%, transparent);
}

.bld__chip-lines {
	flex-direction: column;
	align-items: center;
	gap: 3px;
}

.bld__chip-lines i {
	width: 86%;
	height: 2px;
	background: color-mix(in srgb, var(--t) 22%, transparent);
}

.bld__chip-lines i + i {
	width: 64%;
}

.bld__chip-btn {
	width: 70%;
	height: 12%;
	border-radius: 1px;
	background: var(--e);
}

.bld__swatch-name {
	font: 600 0.8125rem/1.25 var(--ui);
	overflow-wrap: anywhere;
}

.bld__swatch-tick {
	position: absolute;
	top: 0;
	right: 0;
	display: none;
	width: 1.5rem;
	height: 1.5rem;
	align-items: center;
	justify-content: center;
	border-radius: 0 2px 0 2px;
	background: var(--ink);
	color: var(--on-ink);
}

.bld__swatch-tick .ico {
	width: 14px;
	height: 14px;
}

.bld__swatch input:checked + .bld__swatch-box .bld__swatch-tick {
	display: flex;
}

/* date, e-mail and tick rows */

.bld__field {
	margin-top: 1.5rem;
}

.bld__field input {
	min-height: 2.75rem;
	font-size: 1.25rem;
}

.bld__field input[type="date"] {
	font-family: var(--text);
}

.bld__field input:disabled {
	border-bottom-style: dashed;
	color: var(--ink-soft);
	opacity: 0.6;
}

.bld__choice,
.bld__parts {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 0;
	margin: 1rem 0 0;
}

.bld__choice label,
.bld__part {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	min-height: 2.75rem;
	padding-block: 0.7rem;
	font: 500 1rem/1.35 var(--ui);
	cursor: pointer;
}

.bld__choice input,
.bld__part input {
	margin-top: 0.1rem;
}

.bld__choice input:focus-visible,
.bld__part input:focus-visible {
	outline-offset: 3px;
}

.bld__choice--consent label {
	font-weight: 400;
	font-size: 0.9375rem;
	line-height: 1.45;
}

.bld__parts {
	margin-top: 1.25rem;
}

.bld__part {
	border-top: 1px solid var(--rule);
}

.bld__part:last-child {
	border-bottom: 1px solid var(--rule);
}

.bld__part-text {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
	min-width: 0;
}

.bld__part-label {
	font: 600 1rem/1.3 var(--ui);
}

.bld__part-hint {
	font: 400 0.875rem/1.4 var(--ui);
	color: var(--ink-soft);
}

/* step navigation: the primary action, the way back under it */

.bld__nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	margin-top: 1.75rem;
}

.bld__nav .btn {
	width: 100%;
}

.bld__nav .btn:disabled {
	cursor: progress;
	transform: none;
	opacity: 0.75;
}

/* ---------- the save step ---------- */

.bld__step--save {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 0;
	background: none;
	box-shadow: none;
}

.bld__jump {
	display: none;
	margin: 0;
}

.bld__jump a {
	min-height: 2.75rem;
}

.bld__save {
	padding: clamp(1.25rem, 5vw, 2.25rem);
	background: var(--cotton);
	box-shadow: var(--paper-shadow);
}

.bld__save .terms {
	margin-top: 1.25rem;
	color: var(--ink-soft);
}

/* ---------- done ---------- */

.bld__done {
	padding: clamp(1.25rem, 5vw, 2.25rem);
	background: var(--cotton);
	box-shadow: var(--paper-shadow);
	scroll-margin-top: 1rem;
}

.bld__seal {
	width: 76px;
	margin: -0.25rem 0 1.1rem -0.35rem;
}

.bld__done .bld__subheading {
	margin-top: 1.75rem;
}

.bld__email {
	color: var(--ink);
	overflow-wrap: anywhere;
}

.bld__links {
	display: flex;
	flex-direction: column;
	margin: 0.5rem 0 0;
	padding: 0;
	list-style: none;
}

.bld__links li {
	border-bottom: 1px solid var(--rule);
}

.bld__links .more {
	display: flex;
	justify-content: space-between;
	min-height: 3rem;
	text-decoration: none;
}

.bld__links .more:hover {
	text-decoration: underline;
	text-decoration-color: var(--foil-deep);
	text-decoration-thickness: 2px;
}

.bld__handoff {
	margin: 1.5rem 0 0;
}

.bld__restart {
	margin: 1.25rem 0 0;
}

/* ---------- the block in the editor ---------- */

.bld-placeholder {
	padding: 2rem 1.5rem;
	border: 1px dashed var(--rule);
	background: var(--cotton);
	color: var(--ink-soft);
	font: 500 1rem/1.4 var(--ui);
	text-align: center;
}

/* ---------- phone and tablet: the strip follows the questions ---------- */

@media (max-width: 899.98px) {
	.bld__nav .bld__text {
		padding-inline: 1rem;
	}

	/* Steps 1 to 4, once builder.js runs: only the head of the sheet, sticky. */
	.mtw-builder[data-step="namen"] .bld__stage,
	.mtw-builder[data-step="stijl"] .bld__stage,
	.mtw-builder[data-step="dag"] .bld__stage,
	.mtw-builder[data-step="onderdelen"] .bld__stage {
		position: sticky;
		top: 0;
		z-index: 2;
		margin-inline: calc(-1 * var(--gutter));
		padding: 0.5rem var(--gutter) 0;
		background: var(--vellum);
	}

	.mtw-builder[data-step="namen"] .bld__stage:not(.is-open) .bsite,
	.mtw-builder[data-step="stijl"] .bld__stage:not(.is-open) .bsite,
	.mtw-builder[data-step="dag"] .bld__stage:not(.is-open) .bsite,
	.mtw-builder[data-step="onderdelen"] .bld__stage:not(.is-open) .bsite {
		width: 100%;
	}

	.mtw-builder[data-step="namen"] .bld__stage:not(.is-open) .bsite__bar,
	.mtw-builder[data-step="stijl"] .bld__stage:not(.is-open) .bsite__bar,
	.mtw-builder[data-step="dag"] .bld__stage:not(.is-open) .bsite__bar,
	.mtw-builder[data-step="onderdelen"] .bld__stage:not(.is-open) .bsite__bar {
		display: none;
	}

	.mtw-builder[data-step="namen"] .bld__stage:not(.is-open) .bsite__head,
	.mtw-builder[data-step="stijl"] .bld__stage:not(.is-open) .bsite__head,
	.mtw-builder[data-step="dag"] .bld__stage:not(.is-open) .bsite__head,
	.mtw-builder[data-step="onderdelen"] .bld__stage:not(.is-open) .bsite__head {
		padding: 0.6rem 1rem 0.65rem;
		border-top-width: 6px;
	}

	.mtw-builder[data-step="namen"] .bld__stage:not(.is-open) .bsite__line,
	.mtw-builder[data-step="stijl"] .bld__stage:not(.is-open) .bsite__line,
	.mtw-builder[data-step="dag"] .bld__stage:not(.is-open) .bsite__line,
	.mtw-builder[data-step="onderdelen"] .bld__stage:not(.is-open) .bsite__line,
	.mtw-builder[data-step="namen"] .bld__stage:not(.is-open) .bsite__body,
	.mtw-builder[data-step="stijl"] .bld__stage:not(.is-open) .bsite__body,
	.mtw-builder[data-step="dag"] .bld__stage:not(.is-open) .bsite__body,
	.mtw-builder[data-step="onderdelen"] .bld__stage:not(.is-open) .bsite__body {
		display: none;
	}

	.mtw-builder[data-step="namen"] .bld__stage:not(.is-open) .bsite__names,
	.mtw-builder[data-step="stijl"] .bld__stage:not(.is-open) .bsite__names,
	.mtw-builder[data-step="dag"] .bld__stage:not(.is-open) .bsite__names,
	.mtw-builder[data-step="onderdelen"] .bld__stage:not(.is-open) .bsite__names {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		margin-top: 0 !important;
		font-size: 1.75rem;
		overflow: hidden;
		text-wrap: balance;
	}

	/* Two long names (builder.js): a smaller hand and a third line, so both are shown. */
	.mtw-builder[data-step="namen"] .bld__stage:not(.is-open) .bsite.is-long .bsite__names,
	.mtw-builder[data-step="stijl"] .bld__stage:not(.is-open) .bsite.is-long .bsite__names,
	.mtw-builder[data-step="dag"] .bld__stage:not(.is-open) .bsite.is-long .bsite__names,
	.mtw-builder[data-step="onderdelen"] .bld__stage:not(.is-open) .bsite.is-long .bsite__names {
		-webkit-line-clamp: 3;
		line-clamp: 3;
		font-size: 1.125rem;
		line-height: 1.2;
	}

	.mtw-builder[data-step="namen"] .bld__stage:not(.is-open) .bsite__date,
	.mtw-builder[data-step="stijl"] .bld__stage:not(.is-open) .bsite__date,
	.mtw-builder[data-step="dag"] .bld__stage:not(.is-open) .bsite__date,
	.mtw-builder[data-step="onderdelen"] .bld__stage:not(.is-open) .bsite__date {
		margin-top: 0.25rem !important;
		font-size: 0.8125rem;
	}

	.mtw-builder[data-step="namen"] .bld__stage:not(.is-open) .bsite__menu,
	.mtw-builder[data-step="stijl"] .bld__stage:not(.is-open) .bsite__menu,
	.mtw-builder[data-step="dag"] .bld__stage:not(.is-open) .bsite__menu,
	.mtw-builder[data-step="onderdelen"] .bld__stage:not(.is-open) .bsite__menu {
		gap: 0 0.6rem;
		margin-top: 0.4rem !important;
		padding-top: 0.35rem !important;
		border-top: 1px solid var(--hair);
		font-size: 0.8125rem;
	}

	.mtw-builder[data-step="namen"] .bld__stage:not(.is-open) .bld__caption,
	.mtw-builder[data-step="stijl"] .bld__stage:not(.is-open) .bld__caption,
	.mtw-builder[data-step="dag"] .bld__stage:not(.is-open) .bld__caption,
	.mtw-builder[data-step="onderdelen"] .bld__stage:not(.is-open) .bld__caption {
		max-width: none;
		margin-top: 0.4rem;
		line-height: 1.35;
	}

	/* The strip keeps the caption to its first sentence; the whole sheet shows all of it. */
	.mtw-builder[data-step="namen"] .bld__stage:not(.is-open) .bld__caption-more,
	.mtw-builder[data-step="stijl"] .bld__stage:not(.is-open) .bld__caption-more,
	.mtw-builder[data-step="dag"] .bld__stage:not(.is-open) .bld__caption-more,
	.mtw-builder[data-step="onderdelen"] .bld__stage:not(.is-open) .bld__caption-more {
		display: none;
	}

	.bld__toggle {
		min-height: 2.75rem;
		font-size: 0.8125rem;
		scroll-margin-bottom: 1rem;
	}

	/*
	 * The whole sheet, in the flow of the page, while it is open. The strip
	 * also lets go (builder.js) when large text makes it too tall to share
	 * the screen with the question.
	 */
	.mtw-builder[data-step] .bld__stage.is-open,
	.mtw-builder[data-step] .bld__stage.is-loose {
		position: static;
	}

	.mtw-builder[data-step] .bld__stage.is-open .bld__toggle {
		margin-top: 0.25rem;
	}

	/* A focused field and its heading clear the strip, whatever its height is (builder.js measures it). */
	.mtw-builder[data-step] .bld input,
	.mtw-builder[data-step] .bld__heading {
		scroll-margin-top: calc(var(--bld-strip, 12rem) + 0.5rem);
	}

	/*
	 * Save step: heading, jump link, the whole sheet, then the card. The
	 * form and the fieldset step aside so their children can be ordered
	 * around the sheet; the DOM order does not change.
	 */
	.mtw-builder[data-step="bewaren"] .bld__form,
	.mtw-builder[data-step="bewaren"] .bld__step--save {
		display: contents;
	}

	.mtw-builder[data-step="bewaren"] .bld__intro {
		order: 1;
	}

	.mtw-builder[data-step="bewaren"] .bld__progress {
		order: 2;
	}

	.mtw-builder[data-step="bewaren"] .bld__step--save > .bld__heading {
		order: 3;
		scroll-margin-top: 4rem;
	}

	.mtw-builder[data-step="bewaren"] .bld__jump {
		display: block;
		order: 4;
		margin-block: -1.25rem -0.5rem;
	}

	.mtw-builder[data-step="bewaren"] .bld__stage {
		order: 5;
	}

	.mtw-builder[data-step="bewaren"] .bld__save {
		order: 6;
	}

	.mtw-builder[data-step="bewaren"] .bld input {
		scroll-margin-top: 6rem;
	}
}

/* ---------- from 900px: the card on the left, the sheet beside it ---------- */

@media (min-width: 900px) {
	.mtw-builder {
		padding-top: clamp(1rem, 3vw, 2.5rem);
	}

	.bld {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
		gap: 2rem clamp(2rem, 5vw, 4.5rem);
		align-items: start;
		max-width: 1100px;
	}

	.bld__intro {
		grid-column: 1 / -1;
		text-align: left;
	}

	.bld__title {
		font-size: clamp(2.2rem, 4vw, 2.75rem);
		line-height: 1.08;
	}

	.bld__lede {
		margin-top: 0.6rem;
		font-size: 1.125rem;
	}

	.bld__form,
	.bld__done {
		grid-column: 1;
		grid-row: 2;
	}

	.bld__stage {
		grid-column: 2;
		grid-row: 2;
		position: sticky;
		top: 2rem;
		max-height: calc(100svh - 4rem);
		padding-inline: 0.5rem;
	}

	.bsite {
		flex: 0 1 auto;
		width: 380px;
		max-width: 100%;
		min-height: 0;
		overflow-y: auto;
		scrollbar-width: thin;
		scrollbar-color: var(--hair) transparent;
	}

	.bld__caption {
		flex: none;
	}

	.bld__toggle {
		display: none;
	}

	/*
	 * The way back to the left of the primary action. Labels stay on one
	 * line: where the two do not fit side by side, the way back drops under
	 * the action.
	 */
	.bld__nav {
		flex-flow: row wrap-reverse;
		justify-content: space-between;
		gap: 0.35rem 1.5rem;
	}

	.bld__nav .btn {
		flex: none;
		width: auto;
		max-width: 100%;
		white-space: nowrap;
	}

	.bld__nav .bld__text {
		order: -1;
		white-space: nowrap;
	}

	/* The save card is a small form of its own: the action as wide as the field above it. */
	.bld__save .bld__nav {
		flex-flow: column nowrap;
		align-items: center;
	}

	.bld__save .bld__nav .btn {
		width: 100%;
	}

	.bld__save .bld__nav .bld__text {
		order: 0;
	}

	.bld__save .terms {
		justify-content: flex-start;
	}
}
