/*
 * NetRhyme WP Theme: base styles.
 * Loaded on every page and inside the editor canvas.
 * Sections never set colours. They read the variables below.
 */

/* ---------- 1. Section colour styles ---------- */

/*
 * "Tinted" and "dark" also cover their variants (tinted abstract, tinted gradient, dark abstract,
 * dark gradient), hence the selectors on part of the class name. The variants add their
 * drawing or gradient in effects.css.
 *
 * The colour of a label (--wprk-accent-text) is the accent colour with some of
 * the dark colour mixed in, so that small text in it can be read. A theme whose
 * accent is very bright, a yellow for one, keeps less of it: in its theme.json,
 * "custom": { "label": { "accent": "40%" } } for light and tinted grounds, and
 * "accentOnDark" for dark ones, where the page colour is mixed in instead.
 * Without those lines the shares are the kit's own: 68%, 62% and 72%.
 */

:root,
.is-style-wprk-light {
	--wprk-bg: var(--wp--preset--color--base);
	--wprk-fg: var(--wp--preset--color--neutral);
	--wprk-heading: var(--wp--preset--color--dark);
	--wprk-muted: color-mix(in srgb, var(--wp--preset--color--neutral) 90%, var(--wp--preset--color--base));
	--wprk-border: color-mix(in srgb, var(--wp--preset--color--dark) 14%, transparent);
	--wprk-card-bg: var(--wp--preset--color--base);
	--wprk-soft: color-mix(in srgb, var(--wp--preset--color--primary) 7%, var(--wp--preset--color--base));
	--wprk-link: var(--wp--preset--color--primary);
	--wprk-accent: var(--wp--preset--color--accent);
	--wprk-accent-text: color-mix(in srgb, var(--wp--preset--color--accent) var(--wp--custom--label--accent, 68%), var(--wp--preset--color--dark));
	--wprk-btn-bg: var(--wp--preset--color--primary);
	--wprk-btn-fg: var(--wp--preset--color--base);
	--wprk-focus: var(--wp--preset--color--primary);
}

[class*="is-style-wprk-tinted"] {
	--wprk-bg: var(--wp--preset--color--light);
	--wprk-fg: var(--wp--preset--color--neutral);
	--wprk-heading: var(--wp--preset--color--dark);
	--wprk-muted: color-mix(in srgb, var(--wp--preset--color--neutral) 93%, var(--wp--preset--color--light));
	--wprk-border: color-mix(in srgb, var(--wp--preset--color--dark) 14%, transparent);
	--wprk-card-bg: var(--wp--preset--color--base);
	--wprk-soft: color-mix(in srgb, var(--wp--preset--color--primary) 9%, var(--wp--preset--color--light));
	--wprk-link: var(--wp--preset--color--primary);
	--wprk-accent: var(--wp--preset--color--accent);
	--wprk-accent-text: color-mix(in srgb, var(--wp--preset--color--accent) var(--wp--custom--label--accent, 62%), var(--wp--preset--color--dark));
	--wprk-btn-bg: var(--wp--preset--color--primary);
	--wprk-btn-fg: var(--wp--preset--color--base);
	--wprk-focus: var(--wp--preset--color--primary);
}

[class*="is-style-wprk-dark"] {
	--wprk-bg: var(--wp--preset--color--dark);
	--wprk-fg: color-mix(in srgb, var(--wp--preset--color--base) 84%, var(--wp--preset--color--dark));
	--wprk-heading: var(--wp--preset--color--base);
	--wprk-muted: color-mix(in srgb, var(--wp--preset--color--base) 66%, var(--wp--preset--color--dark));
	--wprk-border: color-mix(in srgb, var(--wp--preset--color--base) 20%, transparent);
	--wprk-card-bg: color-mix(in srgb, var(--wp--preset--color--base) 7%, var(--wp--preset--color--dark));
	--wprk-soft: color-mix(in srgb, var(--wp--preset--color--base) 10%, var(--wp--preset--color--dark));
	--wprk-link: var(--wp--preset--color--base);
	--wprk-accent: var(--wp--preset--color--accent);
	--wprk-accent-text: color-mix(in srgb, var(--wp--preset--color--accent) var(--wp--custom--label--accent-on-dark, 72%), var(--wp--preset--color--base));
	--wprk-btn-bg: var(--wp--preset--color--base);
	--wprk-btn-fg: var(--wp--preset--color--dark);
	--wprk-focus: var(--wp--preset--color--base);
}

/* ---------- 2. Document ---------- */

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

:where(h1, h2, h3, h4, h5, h6) {
	color: var(--wprk-heading);
	font-stretch: var(--wp--custom--heading--stretch, normal);
	text-wrap: balance;
}

:where(p, li) {
	text-wrap: pretty;
}

:where(img, video) {
	height: auto;
	max-width: 100%;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wprk-focus);
	outline-offset: 3px;
}

:where(a:not(.wp-element-button)) {
	text-decoration-thickness: 0.06em;
	text-underline-offset: 0.2em;
}

:where(a:not(.wp-element-button)):hover {
	text-decoration-thickness: 0.12em;
}

/* ---------- 3. Section frame ---------- */

.wprk-section {
	background-color: var(--wprk-bg);
	color: var(--wprk-fg);
	padding-block: var(--wp--preset--spacing--70);
}

/* Sections sit flush against each other. */
.wprk-section.wprk-section {
	margin-block: 0;
}

.wprk-section :where(a:not(.wp-element-button)) {
	color: var(--wprk-link);
}

.wprk-section__head {
	margin-block-end: var(--wp--preset--spacing--60);
}

/* Editor: WordPress's own spacing comes later there and would close the gap under the head. */
.editor-styles-wrapper .wprk-section__head {
	margin-block-end: var(--wp--preset--spacing--60);
}

/*
 * The head itself is as wide as the content below it, so the two line up.
 * Its lines are kept to a comfortable reading length.
 */
.wprk-section__head > * {
	margin-block: 0;
	max-width: 46rem;
}

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

.wprk-section__head > * + .wprk-lead {
	margin-block-start: var(--wp--preset--spacing--30);
}

.wprk-section__head.has-text-align-center,
.wprk-section__head.is-centered {
	text-align: center;
}

.wprk-section__head.has-text-align-center > *,
.wprk-section__head.is-centered > * {
	margin-inline: auto;
}

/*
 * What closes a section under its content: a line of small print, a button, or
 * both. The small print stands close under the table or list it belongs to.
 */
.wprk-section__foot,
.editor-styles-wrapper .wprk-section__foot {
	margin-block-start: var(--wp--preset--spacing--50);
}

.wprk-section__foot:has(> .wprk-table-note:first-child),
.editor-styles-wrapper .wprk-section__foot:has(> .wprk-table-note:first-child) {
	margin-block-start: var(--wp--preset--spacing--30);
}

.wprk-section__foot > * {
	margin-block: 0;
}

.wprk-section__foot > * + * {
	margin-block-start: var(--wp--preset--spacing--40);
}

.wprk-eyebrow {
	color: var(--wprk-accent-text);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.09em;
	line-height: 1.3;
	text-transform: uppercase;
}

/*
 * A label that is a link (the category above the title of a post) keeps the
 * colour of a label. That colour is mixed to read on every ground a label
 * stands on, a pill included; the link colour is not.
 */
.wprk-eyebrow :where(a:not(.wp-element-button)) {
	color: inherit;
}

.wprk-lead {
	color: var(--wprk-muted);
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.5;
}

.wprk-muted {
	color: var(--wprk-muted);
}

/* ---------- 4. Cards ---------- */

.wprk-card {
	background-color: var(--wprk-card-bg);
	border: 1px solid var(--wprk-border);
	border-radius: var(--wp--custom--radius--lg);
	padding: var(--wp--preset--spacing--40);
}

.wprk-card > * {
	margin-block: 0;
}

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

/* ---------- 4b. Rows of items (wprk/row and wprk/item, inc/rows.php) ---------- */

/*
 * A row arranges itself. Left alone, it places as many items side by side as
 * fit at the smallest width its section asks for, and every full line reaches
 * both edges. A section styles its own row through its own class and these
 * three properties, or arranges it by its own breakpoints.
 */
.wp-block-wprk-row {
	--wprk-row-gap: var(--wp--preset--spacing--40);
	display: grid;
	gap: var(--wprk-row-gap);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--wprk-row-min, 15rem)), 1fr));
}

/*
 * "Items per row" set by staff. On a wide screen it is exactly that number,
 * in every section, whatever the section would have done by itself. On a
 * smaller screen a row that arranges itself never places more than that
 * number, and a section with its own breakpoints keeps them.
 */
.wp-block-wprk-row.has-columns {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, max(var(--wprk-row-min, 15rem), (100% - (var(--wprk-row-cols) - 1) * var(--wprk-row-gap)) / var(--wprk-row-cols))), 1fr));
}

@media (min-width: 1024px) {
	.wp-block-wprk-row.wp-block-wprk-row.wp-block-wprk-row.has-columns:not([class*="is-style-wprk-carousel"], .is-style-wprk-scroller) {
		grid-auto-flow: row;
		grid-template-columns: repeat(var(--wprk-row-cols), minmax(0, 1fr));
	}
}

/* One per row means one under another at every width. */
.wp-block-wprk-row.wp-block-wprk-row.wp-block-wprk-row.is-stacked:not([class*="is-style-wprk-carousel"], .is-style-wprk-scroller) {
	grid-auto-flow: row;
	grid-template-columns: minmax(0, 1fr);
}

.wp-block-wprk-row > .wp-block-wprk-item {
	margin: 0;
	min-width: 0;
}

/*
 * Editor: the button that adds an item hangs under the row and takes no place
 * in it, so the row looks in the editor as it will on the page. In a carousel
 * it stands at the end of the line, where the next item will be.
 */
.wp-block-wprk-row.block-editor-block-list__block:not([class*="is-style-wprk-carousel"], .is-style-wprk-scroller) {
	position: relative;
}

.wp-block-wprk-row:not([class*="is-style-wprk-carousel"], .is-style-wprk-scroller) > .block-list-appender {
	inset-block-start: calc(100% + var(--wp--preset--spacing--20));
	inset-inline-start: 0;
	margin: 0;
	position: absolute;
}

.wp-block-wprk-row:is([class*="is-style-wprk-carousel"], .is-style-wprk-scroller) > .block-list-appender {
	align-self: center;
	position: static;
}

/*
 * Editor: where something follows the row (small print, a button, the foot of
 * a panel), the row keeps room under it for that button, which would otherwise
 * lie over what follows and take the click meant for it. The room is the
 * button's height and its distance from the row, twice.
 */
.wp-block-wprk-row.block-editor-block-list__block:not([class*="is-style-wprk-carousel"], .is-style-wprk-scroller):has(> .block-list-appender):not(:last-child) {
	margin-block-end: calc(2.5rem + var(--wp--preset--spacing--20) * 2);
}

/* ---------- 5. Buttons ---------- */

.wp-block-button__link {
	letter-spacing: var(--wp--custom--button--tracking, normal);
	text-transform: var(--wp--custom--button--transform, none);
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.wp-block-button:not(.is-style-outline):not(.is-style-wprk-text) > .wp-block-button__link:not(.has-background) {
	background-color: var(--wprk-btn-bg);
	color: var(--wprk-btn-fg);
}

.wp-block-button:not(.is-style-outline):not(.is-style-wprk-text) > .wp-block-button__link:not(.has-background):hover {
	background-color: color-mix(in srgb, var(--wprk-btn-bg) 86%, var(--wprk-btn-fg));
}

.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) {
	background-color: transparent;
	border: 1.5px solid currentColor;
	color: var(--wprk-heading);
	padding: calc(0.85em - 1.5px) calc(1.5em - 1.5px);
}

.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color):hover {
	background-color: var(--wprk-soft);
}

.wp-block-button.is-style-wprk-text > .wp-block-button__link {
	align-items: center;
	background: none;
	border-radius: 0;
	color: var(--wprk-link);
	display: inline-flex;
	min-height: 2.75rem;
	padding: 0.35em 0;
	text-decoration: underline;
	text-decoration-thickness: 0.06em;
	text-underline-offset: 0.3em;
}

.wp-block-button.is-style-wprk-text > .wp-block-button__link::after {
	content: "\2192";
	display: inline-block;
	margin-inline-start: 0.4em;
	transition: transform 0.18s ease;
}

.wp-block-button.is-style-wprk-text > .wp-block-button__link:hover::after {
	transform: translateX(0.2em);
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-button__link,
	.wp-block-button.is-style-wprk-text > .wp-block-button__link::after {
		transition: none;
	}
}

/* ---------- 6. Media ---------- */

/*
 * The corners of pictures. A theme may name another shape with its design
 * switches (inc/switches.php), which set the properties read here. Left alone,
 * a picture has the corner the look gives it.
 */
.wprk-section :where(.wp-block-image img, .wp-block-post-featured-image img) {
	border-radius: var(--wprk-picture-radius, var(--wp--custom--radius--md));
	display: block;
}

/*
 * The one picture a section is built around: beside a text, in a hero, a
 * portrait. A theme may give these a shape or a frame of their own. A new
 * section marks such a picture with the class wprk-picture.
 */
.wprk-section :is(.wprk-picture, .wprk-about-1__image, .wprk-hero-1__image, .wprk-hero-6__main, .wprk-serv-4__image, .wprk-text-1__image, .wprk-text-3__image, .wprk-team-1__card > .wp-block-post-featured-image, .wprk-team-3__item > .wp-block-post-featured-image, .wprk-test-3__slide > .wp-block-post-featured-image) img {
	background: var(--wprk-feature-frame, none);
	border-radius: var(--wprk-feature-radius, var(--wprk-picture-radius, var(--wp--custom--radius--md)));
	box-shadow: var(--wprk-feature-shadow, none);
	clip-path: var(--wprk-feature-clip, none);
	padding: var(--wprk-feature-pad, 0);
}

/* ---------- 7. Header ---------- */

.wprk-header {
	background-color: var(--wp--preset--color--base);
	border-block-end: 1px solid var(--wprk-border);
}

/*
 * The header stays at the top of the screen while the page scrolls. The sticky
 * element is the header region itself: a block inside it could only stick
 * within the header. With a header of two rows (a top bar, or the logo above
 * the menu) only the row with the menu stays: header.js measures the row above
 * it and lifts the header by that much. Without JavaScript the whole header
 * stays. To switch this off on a site, give the header's outer Group the
 * additional CSS class "wprk-header-static".
 *
 * A hello bar of the NetRhyme Popups plugin that stays at the top of the
 * screen sets its height on body as --nr-pop-top while it shows: the header
 * then stays under the bar, not behind it. Without such a bar the property
 * does not exist and counts as nothing.
 */
.wp-site-blocks > header.wp-block-template-part:has(> .wprk-header:not(.wprk-header-static)) {
	box-shadow: var(--wp--custom--shadow--sm);
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--nr-pop-top, 0px) - var(--wprk-header-lift, 0px));
	z-index: 50;
}

/* On a phone the admin bar scrolls away with the page. */
@media (max-width: 600px) {
	.wp-site-blocks > header.wp-block-template-part:has(> .wprk-header:not(.wprk-header-static)) {
		top: calc(var(--nr-pop-top, 0px) - var(--wprk-header-lift, 0px));
	}
}

/* A link to a place on the page stops below the header, not under it. */
html:has(.wp-site-blocks > header.wp-block-template-part > .wprk-header:not(.wprk-header-static)) {
	scroll-padding-top: calc(var(--wprk-header-height, 5rem) + var(--wp-admin--admin-bar--height, 0px));
}

/* It also stops below a hello bar that stays at the top. The bar's height is known on body only, so the place itself keeps clear of it. */
:target {
	scroll-margin-block-start: var(--nr-pop-top, 0px);
}

.wprk-header__bar {
	gap: var(--wp--preset--spacing--40);
	min-height: 4.75rem;
	padding-block: var(--wp--preset--spacing--20);
}

.wprk-header__brand {
	gap: var(--wp--preset--spacing--20);
}

.wprk-header__brand :where(.wp-block-site-title a) {
	color: var(--wprk-heading);
}

.wprk-header__nav {
	gap: var(--wp--preset--spacing--40);
}

/* The header's button stays one line, however little room the row has. */
.wprk-header__nav .wp-block-button__link {
	white-space: nowrap;
}

.wprk-header .wp-block-navigation {
	gap: var(--wp--preset--spacing--40);
}

.wprk-header .wp-block-navigation :where(.wp-block-navigation-item__content) {
	color: var(--wprk-heading);
	padding-block: 0.4em;
}

.wprk-header .wp-block-navigation :where(.wp-block-navigation-item__content):hover,
.wprk-header .wp-block-navigation :where(.current-menu-item > .wp-block-navigation-item__content) {
	color: var(--wprk-link);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.45em;
}

@media (max-width: 599px) {
	.wprk-header__nav .wp-block-buttons {
		display: none;
	}

	/* The header stays in view, so on a phone a tall logo is held to a modest height. */
	.wprk-header .wp-block-site-logo img {
		height: auto;
		max-height: 3.25rem;
		object-fit: contain;
		object-position: left center;
		width: auto;
	}
}

/* ---------- 8. Footer ---------- */

.wprk-footer {
	background-color: var(--wprk-bg);
	/* A hairline, so the footer still reads as separate under a section of the same colour. */
	border-block-start: 1px solid var(--wprk-border);
	color: var(--wprk-fg);
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
}

.wprk-footer :where(a:not(.wp-element-button)) {
	color: var(--wprk-fg);
	text-decoration: none;
}

.wprk-footer :where(a:not(.wp-element-button)):hover {
	color: var(--wprk-heading);
	text-decoration: underline;
}

.wprk-footer__title {
	color: var(--wprk-heading);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.wprk-footer :where(ul) {
	list-style: none;
	padding-inline-start: 0;
}

.wprk-footer :where(li) {
	margin-block: 0.45em;
}

/* "Powered by": always on the right, also when the row wraps on a phone. */
.wprk-footer__credit {
	margin-inline-start: auto;
	text-align: end;
}

.wprk-footer__bottom {
	border-block-start: 1px solid var(--wprk-border);
	color: var(--wprk-muted);
	font-size: var(--wp--preset--font-size--small);
	margin-block-start: var(--wp--preset--spacing--50);
	padding-block-start: var(--wp--preset--spacing--40);
}

/* Footer extras (the action wprk_footer_end, inc/footer.php): a small row that plugins fill, such as the Human | Machine links. */
.wprk-footer-extras {
	align-items: center;
	color: var(--wprk-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--wp--preset--font-size--small);
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
	margin-block-start: var(--wp--preset--spacing--30);
}

.wprk-footer-extras :where(nav, ul) {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	margin: 0;
}

/* Legal links from the content kit ([wprk_legal_links]): Privacy, Terms, Cookies, Disclaimer, Cookie settings. */
.wprk-launch-legal > * + *::before {
	content: "·";
	content: "·" / "";
	display: inline-block;
	margin-inline-end: 0.3em;
	text-decoration: none;
}

/* ---------- 9. Forms (Contact Form 7 uses these classes) ---------- */

.wprk-form :where(label) {
	color: var(--wprk-heading);
	display: block;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.wprk-form :where(input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea) {
	background-color: var(--wprk-card-bg);
	box-sizing: border-box;
	border: 1px solid color-mix(in srgb, var(--wprk-heading) 35%, transparent);
	border-radius: var(--wp--custom--radius--md);
	color: var(--wprk-heading);
	font: inherit;
	font-weight: 400;
	margin-block-start: 0.4em;
	min-height: 3rem;
	padding: 0.7em 0.9em;
	width: 100%;
}

.wprk-form :where(textarea) {
	min-height: 9rem;
	resize: vertical;
}

.wprk-form :where(.wprk-field) {
	margin-block: 0 var(--wp--preset--spacing--30);
}

.wprk-form :where(.wprk-actions) {
	margin: 0;
}

/* The submit button follows the section's button colours, like every other button. */
.wprk-form :where(input[type="submit"], button[type="submit"]) {
	background-color: var(--wprk-btn-bg);
	border: 0;
	border-radius: var(--wp--custom--button--radius);
	color: var(--wprk-btn-fg);
	cursor: pointer;
	font: inherit;
	font-weight: var(--wp--custom--button--weight);
	letter-spacing: var(--wp--custom--button--tracking, normal);
	line-height: 1.2;
	min-height: 2.75rem;
	padding: 0.85em 1.5em;
	text-transform: var(--wp--custom--button--transform, none);
}

/* ---------- 9b. The place of a form (CTA-7, BOOK-1) ---------- */

/*
 * Forms come to the kit in a later version. Until then a section that needs
 * one shows where it will stand: the name of the form, its fields and its
 * button as plain paragraphs that staff can reword. Nothing in it can be
 * typed into or pressed, and a line under it says that it is a sample.
 */
.wprk-form-place > * {
	margin-block: 0;
}

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

.wprk-form-place .wprk-form-place__title {
	color: var(--wprk-heading);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	font-weight: var(--wp--custom--heading--weight);
	letter-spacing: var(--wp--custom--heading--tracking);
	line-height: 1.3;
}

.wprk-form-place .wprk-form-place__field {
	border: 1px solid color-mix(in srgb, var(--wprk-heading) 35%, transparent);
	border-radius: var(--wp--custom--radius--md);
	box-sizing: border-box;
	color: var(--wprk-muted);
	min-height: 3rem;
	padding: 0.7em 0.9em;
}

.wprk-form-place .wprk-form-place__pair {
	display: grid;
	gap: var(--wp--preset--spacing--20);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
}

.wprk-form-place .wprk-form-place__pair > * {
	margin: 0;
}

.wprk-form-place .wprk-form-place__send {
	background-color: var(--wprk-btn-bg);
	border-radius: var(--wp--custom--button--radius);
	box-sizing: border-box;
	color: var(--wprk-btn-fg);
	font-weight: var(--wp--custom--button--weight);
	letter-spacing: var(--wp--custom--button--tracking, normal);
	line-height: 1.2;
	margin-block-start: var(--wp--preset--spacing--30);
	min-height: 2.75rem;
	padding: 0.85em 1.5em;
	text-align: center;
	text-transform: var(--wp--custom--button--transform, none);
	width: fit-content;
}

.wprk-form-place .wprk-form-place__note {
	color: var(--wprk-muted);
	font-size: var(--wp--preset--font-size--small);
}

.wprk-form :where(.wpcf7-not-valid-tip) {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	margin-block-start: 0.35em;
}

/*
 * A one-line form: field and button side by side (sign-up strips). The plugin
 * may wrap the two in a paragraph, so the row is set on both.
 */
.wprk-form .wprk-form-inline,
.wprk-form .wprk-form-inline > p {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20);
	margin: 0;
}

.wprk-form .wprk-form-inline > p {
	flex: 1 1 100%;
}

.wprk-form .wprk-form-inline :where(.wpcf7-form-control-wrap) {
	flex: 1 1 14rem;
	min-width: 0;
}

.wprk-form .wprk-form-inline :where(input:not([type="submit"])) {
	margin-block-start: 0;
}

.wprk-form .wprk-form-inline :where(input[type="submit"], button[type="submit"]) {
	min-height: 3rem;
}

/* The plugin's progress mark only takes room while the form is being sent. */
.wprk-form .wprk-form-inline .wpcf7-spinner {
	display: none;
}

.wpcf7-form.submitting .wprk-form-inline .wpcf7-spinner {
	align-self: center;
	display: inline-block;
	margin: 0;
}

/*
 * File and consent fields (the apply form on job pages). The file field keeps
 * the browser's own button, framed like the other fields. The consent tick
 * sits on the line of its text.
 */
.wprk-form :where(input[type="file"]) {
	background-color: var(--wprk-card-bg);
	border: 1px dashed color-mix(in srgb, var(--wprk-heading) 35%, transparent);
	border-radius: var(--wp--custom--radius--md);
	box-sizing: border-box;
	color: var(--wprk-fg);
	font: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 400;
	margin-block-start: 0.4em;
	max-width: 100%;
	padding: 0.7em 0.9em;
	width: 100%;
}

.wprk-form :where(.wprk-consent) {
	font-size: var(--wp--preset--font-size--small);
}

.wprk-form :where(.wpcf7-acceptance .wpcf7-list-item) {
	margin: 0;
}

.wprk-form :where(.wpcf7-acceptance label) {
	align-items: flex-start;
	color: var(--wprk-fg);
	display: flex;
	font-weight: 400;
	gap: 0.6em;
}

.wprk-form :where(.wpcf7-acceptance input[type="checkbox"]) {
	accent-color: var(--wprk-btn-bg);
	flex: none;
	height: 1.1em;
	margin-block-start: 0.2em;
	width: 1.1em;
}

/* ---------- 9b. Careers: job facts and the apply box ---------- */

/* One line under a job's title: type, place, experience, last date. */
.wprk-job-facts--inline {
	color: var(--wprk-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--wp--preset--font-size--small);
	gap: 0.25em 0;
}

.wprk-job-facts--inline .wprk-job-facts__item + .wprk-job-facts__item::before {
	content: "\00B7";
	padding-inline: 0.6em;
}

/* Labelled facts in the card beside a job. */
.wprk-job-facts {
	margin: 0;
}

dl.wprk-job-facts {
	display: grid;
	gap: var(--wp--preset--spacing--20);
}

.wprk-job-facts__row {
	margin: 0;
}

.wprk-job-facts__row :where(dt) {
	color: var(--wprk-muted);
	font-size: var(--wp--preset--font-size--small);
}

.wprk-job-facts__row :where(dd) {
	color: var(--wprk-heading);
	font-weight: 600;
	margin: 0;
}

.wprk-job-facts__row--closed :where(dd) {
	color: var(--wprk-accent-text);
}

.wprk-apply :where(.wprk-apply__privacy) {
	color: var(--wprk-muted);
	font-size: var(--wp--preset--font-size--small);
	margin-block: var(--wp--preset--spacing--30) 0;
}

.wprk-apply--closed {
	background-color: var(--wprk-soft);
	border-radius: var(--wp--custom--radius--md);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
}

.wprk-apply--closed > p {
	margin: 0;
}

/* ---------- 10. Helpers ---------- */

.wprk-visually-hidden:not(:focus):not(:active) {
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

/* ---------- 11. Page frame ---------- */

/* No gap between header, main and footer. */
.wp-site-blocks > * {
	margin-block-start: 0;
}

.wprk-main.wprk-main > * {
	margin-block: 0;
}

/*
 * Plain content that is not a kit section still gets room above and below.
 * Not inside an entry (news, service, resource): there the frame already has it.
 */
.wprk-main > .wp-block-post-content > :first-child:not(.wprk-section) {
	margin-block-start: var(--wp--preset--spacing--60);
}

.wprk-main > .wp-block-post-content > :last-child:not(.wprk-section) {
	margin-block-end: var(--wp--preset--spacing--70);
}

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

.wprk-titlebar__inner > * {
	margin-block: 0;
}

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

.wprk-titlebar :where(.wp-block-breadcrumbs) {
	color: var(--wprk-muted);
	font-size: var(--wp--preset--font-size--small);
}

/*
 * One title per page: when the content brings its own title section or hero,
 * the title bar of the template steps aside. The front end leaves it out in PHP;
 * this rule does the same inside the editor.
 */
.wprk-main:has([class*="wprk-page-"], [class*="wprk-hero-"]) > .wprk-titlebar {
	display: none;
}

/* A page's title uses the h1 size, so it is always larger than the h2 headings below it. */
.wprk-titlebar :where(h1) {
	font-size: var(--wp--preset--font-size--huge);
	max-width: 22em;
}

/*
 * Title bar on a picture. A template may build its title bar with a Cover block
 * instead of a Group (same class), for example with the featured image of the
 * entry behind the title. It then looks like the section PAGE-2. Without a
 * picture it is a plain band in the colour of the overlay.
 */
.wprk-titlebar.wp-block-cover {
	color: var(--wprk-heading);
	min-height: clamp(16rem, 40vh, 26rem);
	padding-left: var(--wp--style--root--padding-left, clamp(1rem, 4vw, 2rem));
	padding-right: var(--wp--style--root--padding-right, clamp(1rem, 4vw, 2rem));
}

.wprk-titlebar.wp-block-cover > .wp-block-cover__inner-container {
	padding-inline: 0;
}

.wprk-titlebar.wp-block-cover > .wp-block-cover__background.has-dark-background-color {
	background-color: var(--wprk-bg) !important;
}

.wprk-titlebar.wp-block-cover:not(:has(> .wp-block-cover__image-background)) {
	min-height: 0;
}

.wprk-titlebar.wp-block-cover:not(:has(> .wp-block-cover__image-background)) > .wp-block-cover__background {
	opacity: 1;
}

/* The same graded layer as in PAGE-2: denser where the words are. */
.wprk-titlebar.wp-block-cover:has(> .wp-block-cover__image-background)::before {
	--wprk-titlebar-start: max(0px, (100% - var(--wp--style--global--wide-size)) / 2);
	background-image: linear-gradient(
		90deg,
		color-mix(in srgb, var(--wprk-bg) 50%, transparent) var(--wprk-titlebar-start),
		color-mix(in srgb, var(--wprk-bg) 35%, transparent) calc(var(--wprk-titlebar-start) + 30rem),
		color-mix(in srgb, var(--wprk-bg) 15%, transparent) calc(var(--wprk-titlebar-start) + 48rem),
		transparent calc(var(--wprk-titlebar-start) + 70rem)
	);
	content: "";
	inset: 0;
	opacity: 1;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

.rtl .wprk-titlebar.wp-block-cover::before {
	transform: scaleX(-1);
}

/* Layers, bottom to top: picture, the two overlays, text. */
.wprk-titlebar.wp-block-cover {
	isolation: isolate;
}

.wprk-titlebar.wp-block-cover > .wp-block-cover__image-background {
	z-index: 0;
}

.wprk-titlebar.wp-block-cover > .wp-block-cover__background {
	z-index: 1;
}

.wprk-titlebar.wp-block-cover > .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

.wprk-titlebar.wp-block-cover .wprk-titlebar__inner {
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
}

.wprk-titlebar.wp-block-cover .wprk-titlebar__inner::before {
	background-color: var(--wprk-accent);
	content: "";
	display: block;
	height: 2px;
	margin-block-end: var(--wp--preset--spacing--30);
	width: 3rem;
}

/* On a picture every line takes the text colour; links keep their underline. */
.wprk-titlebar.wp-block-cover .wprk-eyebrow,
.wprk-titlebar.wp-block-cover .wprk-eyebrow a,
.wprk-titlebar.wp-block-cover .wprk-muted,
.wprk-titlebar.wp-block-cover .wprk-lead,
.wprk-titlebar.wp-block-cover .wp-block-breadcrumbs,
.wprk-titlebar.wp-block-cover .wp-block-breadcrumbs a,
.wprk-titlebar.wp-block-cover .wp-block-post-date {
	color: inherit;
}

.wprk-titlebar.wp-block-cover :where(h1) {
	line-height: 1.15;
}

/* ---------- 12. Card grids and post cards ---------- */

.wprk-cards {
	gap: var(--wp--preset--spacing--40);
}

.wprk-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/*
 * The picture runs to the top and side edges of the card. WordPress resets the
 * top margin of a first child with a two-class rule, hence the longer selector.
 */
.wprk-card.wprk-post-card .wp-block-post-featured-image {
	margin: calc(var(--wp--preset--spacing--40) * -1 - 1px) calc(var(--wp--preset--spacing--40) * -1 - 1px) var(--wp--preset--spacing--30);
}

.wprk-post-card :where(.wp-block-post-featured-image img) {
	border-radius: var(--wp--custom--radius--lg) var(--wp--custom--radius--lg) 0 0;
	width: 100%;
}

.wprk-post-card :where(.wp-block-post-title a) {
	color: var(--wprk-heading);
	text-decoration: none;
}

.wprk-post-card :where(.wp-block-post-title a):hover {
	text-decoration: underline;
}

/*
 * A person who has a page of their own (inc/people-pages.php): in every list
 * of people the name and the photograph lead to it. The name keeps the colour
 * of a heading and is underlined when it is pointed at.
 */
.wp-block-post.type-wprk_team :where(.wp-block-post-title a) {
	color: inherit;
	text-decoration: none;
}

.wp-block-post.type-wprk_team :where(.wp-block-post-title a):hover {
	text-decoration: underline;
	text-decoration-color: var(--wprk-accent);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.2em;
}

.wprk-post-card :where(.wp-block-post-terms a) {
	color: inherit;
	text-decoration: none;
}

.wprk-post-card :where(.wp-block-post-date) {
	margin-block-start: auto;
	padding-block-start: var(--wp--preset--spacing--20);
}

.wprk-listing :where(.wp-block-query-pagination) {
	margin-block-start: var(--wp--preset--spacing--50);
}

.wprk-article > * + * {
	margin-block-start: var(--wp--preset--spacing--50);
}

/* Headings inside the text of an entry are a step smaller than section headings. */
.wprk-article :where(.wp-block-post-content) :where(h2) {
	font-size: var(--wp--preset--font-size--x-large);
}

.wprk-article :where(.wp-block-post-content) :where(h3) {
	font-size: var(--wp--preset--font-size--large);
}

.wprk-article :where(.wp-block-post-content) > :where(h2, h3) {
	margin-block-start: var(--wp--preset--spacing--50);
}

.wprk-article :where(.wp-block-post-content) :where(ul, ol) > li::marker {
	color: var(--wprk-accent);
}

/* The main picture of an entry is wide, but not as wide as the page. */
.wprk-article > .wp-block-post-featured-image.alignwide {
	max-width: 62rem;
}

.wprk-article :where(.wp-block-post-featured-image img) {
	border-radius: var(--wprk-picture-radius, var(--wp--custom--radius--lg));
	width: 100%;
}

/* Summary under the title of an entry. */
.wprk-titlebar__inner > .wprk-lead {
	max-width: 46rem;
}

.wprk-titlebar__inner > .wprk-lead :where(p) {
	margin: 0;
}

/* Entry with a side column: text on the left, a contact card that stays in view on the right. */
.wprk-split {
	display: grid;
	gap: var(--wp--preset--spacing--60);
}

.wprk-split > * {
	margin-block: 0;
	min-width: 0;
}

.wprk-split__main > * {
	margin-block: 0;
}

.wprk-split__main > * + * {
	margin-block-start: var(--wp--preset--spacing--50);
}

.wprk-aside-card :where(p) {
	color: var(--wprk-muted);
}

.wprk-aside-card :where(.wp-block-buttons) {
	margin-block-start: var(--wp--preset--spacing--40);
}

@media (min-width: 960px) {
	.wprk-split {
		align-items: start;
		grid-template-columns: minmax(0, 1fr) 20rem;
	}

	.wprk-split__side {
		position: sticky;
		top: var(--wp--preset--spacing--60);
	}
}

.wprk-article__nav {
	border-block-start: 1px solid var(--wprk-border);
	padding-block-start: var(--wp--preset--spacing--40);
}

/*
 * Editor only: an Excerpt block offers an empty "read more" field. Inside a kit
 * section that field is never used (sections have their own link), so its
 * placeholder is hidden.
 */
.wprk-section .wp-block-post-excerpt__more-text:has([data-rich-text-placeholder]) {
	display: none;
}

/* ---------- 13. Small screens ---------- */

/* The menu button needs a finger-sized target. */
.wprk-header .wp-block-navigation__responsive-container-open,
.wprk-header .wp-block-navigation__responsive-container-close {
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	min-width: 2.75rem;
}

/* Stacked footer columns get a little more room between them. */
@media (max-width: 781px) {
	.wprk-footer__cols.wp-block-columns {
		row-gap: var(--wp--preset--spacing--50);
	}
}

/* Footer columns: two by two on tablets, instead of one long stack. */
@media (min-width: 600px) and (max-width: 781px) {
	.wprk-footer__cols.wp-block-columns {
		flex-wrap: wrap !important;
	}

	.wprk-footer__cols.wp-block-columns > .wp-block-column {
		flex-basis: calc(50% - var(--wp--preset--spacing--40)) !important;
		flex-grow: 0;
	}
}

/* ---------- 14. Header and footer options ---------- */

/* HDR-2: top bar with contact details above the main bar. */
.wprk-header__top {
	background-color: var(--wprk-bg);
	color: var(--wprk-fg);
	font-size: var(--wp--preset--font-size--small);
	padding-block: 0.45rem;
}

.wprk-header__top.wprk-header__top {
	margin-block: 0;
}

.wprk-header__top :where(p) {
	margin: 0;
}

.wprk-header__top :where(a) {
	color: var(--wprk-fg);
	text-decoration: none;
}

.wprk-header__top :where(a):hover {
	color: var(--wprk-heading);
	text-decoration: underline;
}

.wprk-header__top-inner {
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
}

.wprk-hdr-2 > .wprk-header__bar {
	margin-block-start: 0;
}

/* HDR-3: logo centred, menu centred below. */
.wprk-hdr-3 > .wprk-header__brand {
	padding-block: var(--wp--preset--spacing--30) var(--wp--preset--spacing--20);
}

.wprk-hdr-3 > .wprk-header__nav {
	border-block-start: 1px solid var(--wprk-border);
	margin-block-start: 0;
	padding-block: var(--wp--preset--spacing--10);
}

@media (max-width: 599px) {
	/* On phones the centred header becomes one row: logo left, menu button right. */
	.wprk-hdr-3 {
		align-items: center;
		display: flex;
		justify-content: space-between;
	}

	.wprk-hdr-3 > .wprk-header__brand,
	.wprk-hdr-3 > .wprk-header__nav {
		border: 0;
		margin: 0 !important;
		max-width: none;
		padding-block: var(--wp--preset--spacing--20);
		width: auto;
	}
}

/* FTR-2: compact footer. */
.wprk-footer__row {
	align-items: center;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
}

.wprk-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
	margin: 0;
}

.wprk-ftr-2 .wprk-footer__bottom {
	margin-block-start: var(--wp--preset--spacing--40);
}

/* FTR-3: contact-led footer. */
.wprk-footer__cta {
	align-items: center;
	border-block-end: 1px solid var(--wprk-border);
	gap: var(--wp--preset--spacing--30);
	margin-block-end: var(--wp--preset--spacing--50);
	padding-block-end: var(--wp--preset--spacing--50);
}

.wprk-footer__cta :where(h2) {
	margin: 0;
}

.wprk-footer :where(.wp-block-social-links) {
	gap: var(--wp--preset--spacing--20);
}

/*
 * Icons take the text colour of the section. WordPress gives "logos only" icons
 * their brand colours with a three-class rule, hence the longer selector here.
 */
.wprk-footer .wp-block-social-links .wp-social-link.wp-social-link,
.wprk-header .wp-block-social-links .wp-social-link.wp-social-link {
	background: none;
	color: var(--wprk-fg);
}

.wprk-footer .wp-block-social-links .wp-social-link:hover,
.wprk-header .wp-block-social-links .wp-social-link:hover {
	color: var(--wprk-accent-text, var(--wprk-fg));
}

@media (max-width: 599px) {
	/* Keep the top bar to one line on phones. */
	.wprk-header__top .wp-block-social-links {
		display: none;
	}
}

/* ---------- 15. Facts of the business (inc/site-parts.php) ---------- */

/*
 * Editor only: the detail of a fact is a Shortcode block, and WordPress draws
 * that as a large white box. Here it is small and takes the colours of the
 * place it stands in, so a header or footer keeps its shape while it is edited.
 */
.wprk-fact .wp-block-shortcode > .components-placeholder {
	background: transparent;
	box-shadow: inset 0 0 0 1px var(--wprk-border);
	color: inherit;
	min-height: 0;
	padding: 0.5rem 0.625rem;
}

.wprk-fact .wp-block-shortcode > .components-placeholder .components-placeholder__label {
	color: inherit;
	font-size: 0.75rem;
	margin-block-end: 0.375rem;
}

.wprk-fact .wp-block-shortcode > .components-placeholder .components-placeholder__label :where(svg) {
	height: 1.125rem;
	width: 1.125rem;
}

.wprk-fact .wp-block-shortcode > .components-placeholder :where(textarea) {
	font-size: 0.75rem;
	min-height: 0;
	padding: 0.25rem 0.5rem;
}

/* ---------- 16. Hints for optional parts (inc/empty-parts.php) ---------- */

/*
 * Editor only: a picture of a section that has no picture yet says, in the
 * grey box WordPress draws for it, that it may stay empty. The words come from
 * assets/js/editor/empty-parts.js. A box that is selected shows WordPress's
 * own buttons for choosing a picture, and the hint makes room for them.
 */
.wprk-section .wp-block-image[data-wprk-hint]:not(.is-selected)::after {
	color: var(--wprk-fg, currentColor);
	content: attr(data-wprk-hint);
	font-size: 0.8125rem;
	inset-block-end: 0.75rem;
	inset-inline: 0.5rem;
	line-height: 1.3;
	opacity: 0.62;
	pointer-events: none;
	position: absolute;
	text-align: center;
}

/* ---------- 17. Tables in sections (inc/tables.php) ---------- */

/*
 * WordPress's Table block, drawn with the section's own lines and colours:
 * a hairline under every row, a firmer line under the header row, no box
 * around the cells. Figures line up in their columns. The borders are not
 * collapsed, so a cell that stays in view on a phone keeps its line.
 */
.wprk-section .wp-block-table {
	margin-block: 0;
	overflow-x: auto;
}

.wprk-section .wp-block-table table {
	border-collapse: separate;
	border-spacing: 0;
	font-variant-numeric: lining-nums tabular-nums;
	width: 100%;
}

.wprk-section .wp-block-table thead {
	border-block-end: 0;
}

.wprk-section .wp-block-table tfoot {
	border-block-start: 0;
}

.wprk-section .wp-block-table :where(th, td) {
	border: 0;
	border-block-end: 1px solid var(--wprk-border);
	line-height: 1.45;
	overflow-wrap: break-word;
	padding: 0.85rem 1rem;
	vertical-align: top;
	word-break: normal;
}

.wprk-section .wp-block-table :where(th, td):first-child {
	padding-inline-start: 0;
}

.wprk-section .wp-block-table :where(th, td):last-child {
	padding-inline-end: 0;
}

.wprk-section .wp-block-table th {
	color: var(--wprk-heading);
	font-weight: 600;
}

.wprk-section .wp-block-table th:not([class*="has-text-align"]) {
	text-align: start;
}

.wprk-section .wp-block-table thead :where(th, td) {
	border-block-end: 2px solid var(--wprk-heading);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.3;
	vertical-align: bottom;
}

.wprk-section .wp-block-table tfoot :where(th, td) {
	border-block-end: 0;
	color: var(--wprk-muted);
	font-size: var(--wp--preset--font-size--small);
}

/* A line of small print under a table or a list. */
.wprk-section .wprk-table-note {
	color: var(--wprk-muted);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	max-width: 46rem;
}

/*
 * Phone: a table keeps columns wide enough to read and scrolls sideways inside
 * its own box, never the page. Where the first column holds the names of the
 * rows, it stays in view while the values scroll past it.
 */
@media (max-width: 781px) {
	.wprk-section .wp-block-table table {
		min-width: 100%;
		table-layout: auto;
		width: max-content;
	}

	.wprk-section .wp-block-table :where(th, td) {
		max-width: 15rem;
		min-width: 7rem;
		padding-inline: 0.75rem;
	}

	.wprk-section .wp-block-table tbody th:first-child,
	.wprk-section .wp-block-table :where(table:has(tbody th:first-child) thead) :where(th, td):first-child {
		background-color: var(--wprk-bg);
		border-inline-end: 1px solid var(--wprk-border);
		inset-inline-start: 0;
		max-width: 9.5rem;
		padding-inline-end: 0.75rem;
		position: sticky;
		z-index: 1;
	}

	/*
	 * A soft shade at the far edge of the box while there are columns still
	 * out of view, gone at the last column. It follows the scrolling by
	 * itself, in browsers that can do that; in others, and for a table that
	 * fits, there is no shade, and the next column peeking in is the sign.
	 */
	@supports (animation-timeline: scroll()) {
		.wprk-section .wp-block-table:has(> table) {
			display: grid;
			grid-template-columns: minmax(100%, max-content);
		}

		.wprk-section .wp-block-table > table {
			grid-area: 1 / 1;
		}

		.wprk-section .wp-block-table:has(> table)::after {
			animation: wprk-table-more 1ms linear both;
			animation-timeline: scroll(inline nearest);
			background: linear-gradient(to left, color-mix(in srgb, var(--wprk-heading) 16%, transparent), transparent);
			content: "";
			grid-area: 1 / 1;
			inset-inline-end: 0;
			justify-self: end;
			opacity: 0;
			pointer-events: none;
			position: sticky;
			width: 1.25rem;
			z-index: 2;
		}

		.wprk-section .wp-block-table:has(> table):dir(rtl)::after {
			background: linear-gradient(to right, color-mix(in srgb, var(--wprk-heading) 16%, transparent), transparent);
		}
	}
}

@keyframes wprk-table-more {
	0%,
	85% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

/*
 * Editor: a click anywhere in a cell puts the cursor in it. WordPress makes
 * only the line of text in a cell take the cursor, so in a row made tall by a
 * neighbour a click in the lower part of an empty cell did nothing, and that
 * is the first click after "Add a row" or "Add a column". The text box of the
 * cell is given an unseen sheet that covers the cell, behind the words, so a
 * click on the words still lands between the letters.
 */
.editor-styles-wrapper :where(.wprk-section .wp-block-table) :where(th, td) {
	position: relative;
	z-index: 0;
}

.editor-styles-wrapper .wprk-section .wp-block-table :where(th, td) > [contenteditable="true"]::after {
	content: "";
	inset: 0;
	position: absolute;
	z-index: -1;
}

/* ---------- 18. A heading with a link at its side ---------- */

/*
 * The head of a list with the link to the whole list beside it ("All
 * products"). Stacked on a small screen, one row from 782px, where the link
 * rests on the last line of the heading. The head inside it is not a direct
 * child of the section, so a design that centres its headings leaves it at
 * the side, where the link needs it.
 */
.wprk-section__top {
	margin-block-end: var(--wp--preset--spacing--60);
}

.wprk-section__top > *,
.wprk-section__top > .wprk-section__head {
	margin-block: 0;
}

.wprk-section__top > .wp-block-buttons {
	margin-block-start: var(--wp--preset--spacing--10);
}

/* The padding makes a tap target of full height. */
.wprk-section__top .wp-block-button.is-style-wprk-text > .wp-block-button__link {
	padding-block: 0.8em;
	white-space: nowrap;
}

@media (min-width: 782px) {
	.wprk-section__top {
		align-items: flex-end;
		align-items: last baseline;
		display: flex;
		gap: var(--wp--preset--spacing--50);
		justify-content: space-between;
	}

	.wprk-section__top > .wprk-section__head {
		min-width: 0;
	}

	.wprk-section__top > .wp-block-buttons {
		flex: none;
		margin-block: 0 -0.5em;
	}
}
