/*
Theme Name: Basalt
Theme URI: https://gridwerkthemes.com/themes/basalt/
Author: Gridwerk Themes
Author URI: https://gridwerkthemes.com/
Description: A block theme for relaxation and wellness massage studios: treatments with their times and prices, the therapists, the rooms, and gift vouchers through WooCommerce.
Requires at least: 6.9
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: basalt
Tags: full-site-editing, block-patterns, block-styles, style-variations, wide-blocks, editor-style, translation-ready, e-commerce
*/

/* Base layer shared by every theme (from starter/). Theme-specific CSS goes below it. Rules on html, body and
   .wp-site-blocks sit in :where(), so a theme's own rule on the same element always wins and is no duplicate. */

/* Visible keyboard focus (WordPress.org requirement). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid currentcolor;
	outline-offset: 2px;
}

/* Buttons draw the ring inside, in their text color: outside, it would sit on a section background of the
   same color as the button (a gilded button on a gilded band). */
.wp-element-button:focus-visible {
	outline-offset: -5px;
}

/* The skip link (core's, the first Tab on every page) shows as the theme's button, not as core's grey box: core's
   selector, so its position and size stay and only its look changes; the ring inside, as on the buttons. */
.skip-link.screen-reader-text:focus {
	padding: var(--wp--custom--button--padding--block)
		var(--wp--custom--button--padding--inline);
	border-radius: var(--wp--custom--button--radius);
	background-color: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	outline-offset: -5px;
}

/* The browser's own surfaces take the palette too: selected text and checkboxes, radios and range sliders. A theme
   picks its own selection pair through settings.custom.selection, never a second ::selection rule. */
::selection {
	background-color: var(
		--wp--custom--selection--background,
		var(--wp--preset--color--accent-1)
	);
	color: var(--wp--custom--selection--text, var(--wp--preset--color--base));
}

:where(:root) {
	accent-color: var(--wp--preset--color--accent-1);
}

/* Form fields follow the palette, so a dark theme never shows white boxes, and stand as full 44px touch targets like
   the buttons, whatever the theme's text size (their padding is in em): a plain field (a password-protected post's, a
   plugin's without its own styles) and a plain select (WooCommerce's sort order) alike. A control sized by its height
   alone keeps it, since a min-height outweighs any height: sliders (WooCommerce's price slider is 0 high), colour and
   image buttons, the toolbar's 24px search, and WooCommerce's quantity stepper, whose rules weigh as little as these
   and load first. */
:where(
	input:not(
		[type="checkbox"],
		[type="radio"],
		[type="submit"],
		[type="button"],
		[type="reset"],
		[type="image"],
		[type="range"],
		[type="color"],
		[type="hidden"],
		.adminbar-input,
		.wc-block-components-quantity-selector__input
	),
	textarea,
	select
) {
	box-sizing: border-box;
	min-height: 2.75rem;
	padding: 0.5em 0.75em;
	border: 1px solid currentcolor;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

/* Browsers give form controls their own font (Arial), not the page's, and theme.json has no element for them: they
   take the theme's type. Zero specificity, so a block's or plugin's own font still wins. */
:where(input, select, textarea, button) {
	font: inherit;
}

/* Product cards: the photo moves a little under the pointer, and as the card's link takes keyboard focus; with
   reduced motion it stays still. Zero specificity, so a theme's own rule on its images wins. */
:where(.wc-block-product .wp-block-woocommerce-product-image) img {
	transition: scale 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

:where(
		.wc-block-product:is(:hover, :focus-within)
			.wp-block-woocommerce-product-image
	)
	img {
	scale: 1.02;
}

@media (prefers-reduced-motion: reduce) {
	:where(.wc-block-product .wp-block-woocommerce-product-image) img {
		scale: none;
	}
}

/* Content made with core's default palette (another theme's posts, the test data) sets a background but no text
   colour, so it would inherit this theme's text colour. Each default background takes black or white, whichever
   contrasts more, and its headings and links follow. */
:is(
	.has-cyan-bluish-gray-background-color,
	.has-white-background-color,
	.has-pale-pink-background-color,
	.has-luminous-vivid-orange-background-color,
	.has-luminous-vivid-amber-background-color,
	.has-light-green-cyan-background-color,
	.has-vivid-green-cyan-background-color,
	.has-pale-cyan-blue-background-color,
	.has-vivid-cyan-blue-background-color,
	.has-vivid-purple-background-color
):not(.has-text-color) {
	color: var(--wp--preset--color--black);
}

:is(.has-black-background-color, .has-vivid-red-background-color):not(
	.has-text-color
) {
	color: var(--wp--preset--color--white);
}

:is(
		.has-black-background-color,
		.has-cyan-bluish-gray-background-color,
		.has-white-background-color,
		.has-pale-pink-background-color,
		.has-vivid-red-background-color,
		.has-luminous-vivid-orange-background-color,
		.has-luminous-vivid-amber-background-color,
		.has-light-green-cyan-background-color,
		.has-vivid-green-cyan-background-color,
		.has-pale-cyan-blue-background-color,
		.has-vivid-cyan-blue-background-color,
		.has-vivid-purple-background-color
	):not(.has-text-color)
	:is(h1, h2, h3, h4, h5, h6, a:not(.wp-element-button)) {
	color: inherit;
}

/* The byline reads "By Name" on one line, not as a tiny label above the name. */
.wp-block-post-author__content {
	display: flex;
	flex-wrap: wrap;
	gap: 0 0.3em;
	align-items: baseline;
}

.wp-block-post-author__byline {
	width: auto;
	font-size: inherit;
}

/* The comment beside its avatar may shrink below its longest word, so a long word wraps instead of widening the page. */
:where(.wp-block-comment-template li > .is-layout-flex) > .wp-block-group {
	flex: 1;
	min-width: 0;
}

/* The post author's own replies are marked, so readers can tell them from a guest's. */
:where(.wp-block-comment-template .bypostauthor) > .wp-block-group {
	border-inline-start: 2px solid currentcolor;
	padding-inline-start: var(--wp--preset--spacing--30);
}

/* One long word in a large heading (a name, a URL) wraps instead of widening the page. */
:where(h1, h2, h3, h4, h5, h6) {
	overflow-wrap: break-word;
}

/* The same for the next post's title, a flex item: only anywhere lowers its min-content width. */
:where(.wp-block-post-navigation-link) {
	overflow-wrap: anywhere;
}

/* Headings break into even lines, and running text avoids a lone word on its last line. */
:where(h1, h2, h3, h4, h5, h6, .wp-block-post-title) {
	text-wrap: balance;
}

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

/* Quotes in running text read as quotes, not as plain paragraphs: a rule in the text colour at their start (in place
   of the browser's indent), the source smaller under them, and a pull quote between two rules in the heading face.
   Only a quote written in a post's or page's body, so one inside a section (the testimonials) keeps its section's
   look; weightless, so a theme's theme.json styles for core/quote and core/pullquote still win. */
:where(
	.wp-block-post-content
		> .wp-block-quote:not(
			.is-style-plain,
			.has-text-align-center,
			.has-text-align-right
		)
) {
	margin-inline: 0;
	padding-inline-start: var(--wp--preset--spacing--40);
	border-inline-start: 2px solid currentcolor;
}

/* A pull quote's source is never set at the quote's size, inside a section too (the statement quote). */
:where(
	.wp-block-post-content > .wp-block-quote cite,
	.wp-block-pullquote cite
) {
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
}

:where(.wp-block-post-content > .wp-block-pullquote) {
	border-block: 2px solid currentcolor;
	font-family: var(--wp--preset--font-family--heading);
}

/* Links inside running text stay recognizable without color. */
.wp-block-post-content
	:where(p, li:not(.wp-block-post))
	a:where(:not(.wp-element-button)) {
	text-decoration: underline;
}

/* Classic and comment content (captions, sized images, preformatted text) must not widen the page;
   :is() outranks the layout's content-size cap. */
:is(.wp-block-post-content, .wp-block-comment-content)
	:is(img, .wp-caption, embed, iframe, video) {
	max-width: 100%;
}

:where(.wp-block-post-content, .wp-block-comment-content) :where(img, video) {
	height: auto;
}

:where(.wp-block-post-content, .wp-block-comment-content) pre {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

/* Logo-only social icons take the text color, not each brand's; the block's icon color (inline) still wins. */
.wp-block-social-links.is-style-logos-only .wp-social-link {
	color: currentcolor;
}

/* The mobile menu's open and close buttons are touch targets, however short their label (WCAG 2.5.8). */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	min-width: 2.75rem;
	min-height: 2.75rem;
	justify-content: center;
	align-items: center;
}

/* On a touch screen every menu link is a 44px target too; core draws it only as tall as its text. */
@media (pointer: coarse) {
	.wp-block-navigation .wp-block-navigation-item__content {
		display: flex;
		min-height: 2.75rem;
		align-items: center;
	}
}

/* The opened phone menu sets its links in the theme's menu type, each a row on the theme's rule, from
   settings.custom.menu; without it the overlay stays core's. On a touch screen its links are 44px targets (above).
   Only core's own overlay, as core's rules do: a custom overlay the buyer builds keeps its own design. These weigh as
   much as core's overlay rules and come after them; a submenu's links keep core's padding. The element they style sits
   in :where() or :is(), so a theme's own rule on menu links elsewhere (the header bar's, the footer's) needn't
   outweigh them. */
.wp-block-navigation__responsive-container.is-menu-open:where(
		:not(.disable-default-overlay)
	)
	.wp-block-navigation__responsive-container-content
	:is(
		.wp-block-navigation__container,
		.wp-block-page-list,
		.wp-block-navigation__submenu-container
	) {
	gap: var(--wp--custom--menu--gap, inherit);
}

.wp-block-navigation__responsive-container.is-menu-open:where(
		:not(.disable-default-overlay)
	)
	.wp-block-navigation__responsive-container-content
	:where(.wp-block-navigation-item) {
	border-bottom: var(--wp--custom--menu--rule, none);
}

/* The rows, a submenu's too, run the overlay's width, so each rule is one line across it, not a stub under its word;
   the words keep the menu's justification. Without a rule a row looks as core draws it. */
.wp-block-navigation__responsive-container.is-menu-open:where(
		:not(.disable-default-overlay)
	)
	.wp-block-navigation__responsive-container-content
	:where(
		.wp-block-navigation__container,
		.wp-block-page-list,
		.wp-block-navigation-item,
		.wp-block-navigation__submenu-container
	) {
	align-self: stretch;
}

.wp-block-navigation__responsive-container.is-menu-open:where(
		:not(.disable-default-overlay)
	)
	.wp-block-navigation__responsive-container-content
	.wp-block-navigation-item
	> :where(.wp-block-navigation-item__content) {
	padding-block: var(--wp--custom--menu--padding, 0);
	font-family: var(--wp--custom--menu--font-family, inherit);
	font-size: var(--wp--custom--menu--font-size, inherit);
	font-weight: var(--wp--custom--menu--font-weight, inherit);
	letter-spacing: var(--wp--custom--menu--letter-spacing, inherit);
}

/* A dropdown submenu is edged in the theme's rule, not core's 15% black, which vanishes on a dark style. As much weight
   as core's border rule and after it, so a theme's own rule wins; the phone overlay's border: none outweighs both. */
.wp-block-navigation .has-child .wp-block-navigation__submenu-container {
	border: var(--wp--custom--hairline);
}

/* Each row is as wide as its link, so the panel fits its longest link on one line (core shrinks it to 200px under a
   short parent), and as wide as the panel, short links too; never wider than the screen, where a link wraps. Not in
   the phone overlay, whose rows run its width. */
:where(.wp-block-navigation__submenu-container:not(.is-menu-open *))
	> :where(.wp-block-navigation-item) {
	width: max-content;
	min-width: 100%;
	max-width: calc(100vw - 2rem);
}

/* Page numbers, Previous and Next, and a comment's Reply and Edit are targets of at least 24px (WCAG 2.5.8), 44px on a
   touch screen; core draws them only as large as their text, a page number about 10px wide. */
:where(
	.wp-block-query-pagination a,
	.wp-block-comments-pagination a,
	:is(a, span).page-numbers,
	.wp-block-comment-reply-link a,
	.wp-block-comment-edit-link a
) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5rem;
	min-height: 1.5rem;
}

@media (pointer: coarse) {
	:where(
		.wp-block-query-pagination a,
		.wp-block-comments-pagination a,
		:is(a, span).page-numbers,
		.wp-block-comment-reply-link a,
		.wp-block-comment-edit-link a
	) {
		min-width: 2.75rem;
		min-height: 2.75rem;
	}
}

/* A phone number or a mail address is a target of at least 24px wherever it sits in running text, and as one box it
   moves to the next line whole rather than breaking. Only one longer than the line breaks, inside the line (a long
   address in a narrow column, a sentence linked to an address). A button or a Mail icon keeps its own box. */
:where(
	a:is([href^="tel:"], [href^="mailto:"]):not(
			.wp-element-button,
			.wp-block-social-link-anchor
		)
) {
	display: inline-block;
	max-width: 100%;
	min-height: 1.5rem;
	overflow-wrap: break-word;
}

/* The footer's legal links (inc/legal.php) stand apart as targets of at least 24px, 44px on a touch screen, and take
   no room once the buyer empties them. */
.basalt-legal-links {
	display: flex;
	flex-wrap: wrap;
	column-gap: var(--wp--preset--spacing--40);
}

.basalt-legal-links:empty {
	display: none;
}

:where(.basalt-legal-links a) {
	display: inline-flex;
	align-items: center;
	min-height: 1.5rem;
}

@media (pointer: coarse) {
	:where(.basalt-legal-links a) {
		min-height: 2.75rem;
	}
}

/* Core's Sticky position on a header Group sticks only inside the template part's <header>, which is just as tall,
   so the header scrolled away. The <header> sticks instead, below the admin bar, and at the very top on phones
   (600px and narrower) where the admin bar scrolls away, as core offsets sticky blocks. */
.wp-site-blocks > .wp-block-template-part:has(> .is-position-sticky) {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 10;
}

@media screen and (max-width: 600px) {
	.wp-site-blocks > .wp-block-template-part:has(> .is-position-sticky) {
		top: 0;
	}
}

/* Keyboard focus and anchor links scroll to just below a sticky header, never under it (WCAG 2.4.11). All of it
   inside :where(), since :has() weighs as much as its argument and a theme's own scroll-padding-top must win. */
:where(
	html:has(.wp-site-blocks > .wp-block-template-part > .is-position-sticky)
) {
	scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 8rem);
}

/* On a very short screen (a phone held sideways) a sticky header would take most of it; it scrolls away there. */
@media (max-height: 30rem) {
	.wp-site-blocks > .wp-block-template-part:has(> .is-position-sticky) {
		position: static;
	}
}

/* A page built from full-width sections shows the template's title on the sections' wide edge, not on the text
   column centred above them (the page patterns' own title bands sit there too). */
.page:has(.wp-block-post-content > .alignfull:first-child)
	.wp-block-post-title {
	max-width: var(--wp--style--global--wide-size);
}

/* Coming soon: its first section holds most of the screen, its words centred in it, so the band after it (contact
   details or the newsletter) sits at the foot instead of over an empty screen; the page ends on space of its own,
   since the template has no footer for a band to hang above. Before the title-band rules below, which outweigh these. */
.page-template-page-coming-soon .wp-block-post-content > :first-child {
	min-height: 60svh;
	align-content: center;
}

.page-template-page-coming-soon .wp-block-post-content {
	padding-bottom: var(--wp--preset--spacing--50);
}

/* A page whose content opens with its own title band (a page pattern's full-width group with an h1) shows that
   title; the template's smaller one steps aside, so the page never says its name twice. Only the template's: the
   titles in the content and in a query or product grid (a shop section's product names) stay. */
.wp-site-blocks:has(.wp-block-post-content > .alignfull:first-child h1)
	.wp-block-post-title:not(
		.wp-block-post-content *,
		:is(.wp-block-post-template, .wc-block-product-template) *
	) {
	display: none;
}

/* That title band starts right under the header, without a strip of page background above it (a photo page head
   runs up to the header). The template's padding on <main> is inline, so only !important outranks it. */
.wp-site-blocks
	> main:has(> .wp-block-post-content > .alignfull:first-child h1) {
	margin-block-start: 0;
	padding-top: 0 !important;
}

.wp-site-blocks
	> main
	> .wp-block-post-content:has(> .alignfull:first-child h1) {
	margin-block-start: 0;
}

/* Short pages end with the footer, not with a strip of page background below it. */
:where(.wp-site-blocks) {
	display: flex;
	flex-direction: column;
	min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
}

:where(.wp-site-blocks > main) {
	flex-grow: 1;
}

/* A page that ends in a full-width band (a call to action, a photo) runs it into the footer, without a strip of
   page background between them. The template's padding on <main> is inline, so only !important outranks it. The
   page's content is itself full width, so it counts only by its own last block: a page ending in words keeps its
   space above the footer. */
:where(.wp-site-blocks) > footer {
	margin-block-start: 0;
}

.wp-site-blocks
	> main:is(
		:has(> .alignfull:not(.wp-block-post-content):last-child),
		:has(> .wp-block-post-content:last-child > .alignfull:last-child)
	) {
	padding-bottom: 0 !important;
}

/* Inside a page, full-width bands follow each other without the content's block gap between them, a strip of page
   background that shows wherever two band colours meet or a photo runs down to the next band. */
:where(.wp-block-post-content) > .alignfull + .alignfull {
	margin-block-start: 0;
}

/* The menu marks the page you are on, and so do the page numbers; a theme restyles it to match its own hover. */
.wp-block-navigation .wp-block-navigation-item__content[aria-current="page"],
.page-numbers.current {
	text-decoration-line: underline;
	text-decoration-thickness: max(1px, 0.08em);
	text-underline-offset: 0.3em;
}

/* So that mark stands out, the other page numbers drop the link underline (their place says they are links); under the
   pointer they take the theme's own link style back, its hover included. With the element, since the theme's link
   underline (theme.json, on a) outranks a weightless rule. */
a.page-numbers:not(:hover) {
	text-decoration-line: none;
}

/* Details (the FAQ component) open with a chevron drawn in the text colour instead of the browser's triangle.
   A block style of Details (a booking card, say) keeps its own summary. */
.wp-block-details:not([class*="is-style-"]) > summary {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1em;
	cursor: pointer;
	list-style: none;
}

.wp-block-details:not([class*="is-style-"]) > summary::-webkit-details-marker {
	display: none;
}

.wp-block-details:not([class*="is-style-"]) > summary::after {
	flex: none;
	width: 0.5em;
	height: 0.5em;
	border-right: 1.5px solid currentcolor;
	border-bottom: 1.5px solid currentcolor;
	content: "";
	transform: translateY(-0.15em) rotate(45deg);
	transition: transform 0.2s ease-out;
}

.wp-block-details:not([class*="is-style-"])[open] > summary::after {
	transform: translateY(0.1em) rotate(-135deg);
}

/* Motion that answers the visitor: an answer unfolds as its question opens, and a button settles into its hover
   colours and gives under the press. On translate, so a theme's own transform on either stays; reduced motion makes
   all of it instant (below). */
.wp-block-details:not([class*="is-style-"])[open] > :not(summary) {
	animation-name: basalt-unfold;
	animation-duration: 0.3s;
	animation-timing-function: ease-out;
}

@keyframes basalt-unfold {
	from {
		opacity: 0;
		translate: 0 -0.4em;
	}
}

:where(.wp-element-button, .wp-block-button__link) {
	transition:
		background-color 0.15s ease-out,
		border-color 0.15s ease-out,
		box-shadow 0.15s ease-out,
		color 0.15s ease-out,
		translate 0.15s ease-out;
}

:where(.wp-element-button, .wp-block-button__link):active {
	translate: 0 1px;
}

/* An outline button answers the pointer with its ring doubled, inside so nothing moves, on every section style and
   variation. Never a fill: a wash of the text colour behind the label lowers the label's own contrast. */
:where(.wp-block-button.is-style-outline > .wp-block-button__link:hover) {
	box-shadow: inset 0 0 0 1px currentcolor;
}

/* A face without an italic stays upright rather than slanted by the browser; themes bundle the italics they use.
   --basalt-edge is the wide column's edge, where the header and the wide sections start: the root padding, or the
   space beside the wide size once the window is wider. What runs edge to edge reads it to line its words up there (a
   full-width hero's copy) or to bleed past it (a photo off the page's edge); in 100vw, so it means the same at any
   depth. */
:where(body) {
	--basalt-edge: max(
		var(--wp--style--root--padding-left),
		(100vw - var(--wp--style--global--wide-size)) / 2
	);

	font-synthesis-style: none;
}

/* A full-height Cover means the visible screen: on phones 100vh runs under the browser's toolbar. A browser without
   svh drops the declaration and keeps the Cover's own 100vh. */
.wp-block-cover[style*="min-height:100vh"] {
	min-height: 100svh !important;
}

/* A full-width Cover's text starts on the page's gutter, the root padding the sections around it start from, not on
   core's 1em. Two classes, since core's padding weighs one and its sheet may load after this one; a Cover's own
   padding (inline) still wins. */
.wp-block-cover.alignfull {
	padding-right: var(--wp--style--root--padding-right);
	padding-left: var(--wp--style--root--padding-left);
}

/* So does a full-width Media & Text's text once it stacks under its photo on a phone (core's breakpoint), not core's
   8%. */
@media (max-width: 600px) {
	.wp-block-media-text.alignfull.is-stacked-on-mobile
		> .wp-block-media-text__content {
		padding-right: var(--wp--style--root--padding-right);
		padding-left: var(--wp--style--root--padding-left);
	}
}

/* A Cover's content may shrink below its longest word, so one long word wraps instead of widening the Cover. */
:where(.wp-block-cover__inner-container) {
	min-width: 0;
}

/* A Cover whose overlay and words are the base and contrast pair is a photo cover: it takes the pair from
   settings.custom.photo, so a variation whose palette turns light (or dark) still keeps a dark overlay with light
   words, or whatever pair the variation names. A buyer's own overlay or text colour (another slug) still wins.
   The preset colour classes carry !important, so these do too, and the overlay rule weighs two classes: one more
   than the preset class, no more than a theme's own `.<hero> .wp-block-cover__background` after it. */
.wp-block-cover__background:is(
		.has-base-background-color,
		.has-contrast-background-color
	):where(.wp-block-cover:is(.has-base-color, .has-contrast-color) > *) {
	background-color: var(--wp--custom--photo--overlay) !important;
}

.wp-block-cover:is(.has-base-color, .has-contrast-color):has(
		> .wp-block-cover__background:is(
				.has-base-background-color,
				.has-contrast-background-color
			)
	) {
	color: var(--wp--custom--photo--text) !important;
}

/* A photo Cover's scrim, its Darker at the foot or Darker at the start style (functions.php): the overlay is masked
   so it stays deepest where the words sit and lightens towards the rest of the photograph, along the mask stops in
   custom.photo.scrimFoot or scrimStart (black keeps the overlay, transparent drops it). The start side turns with
   the writing direction. On a phone the words run the full width, so the start scrim runs towards the foot instead,
   along scrimStartPhone (the whole overlay by default). One class each, so a theme's own rules on the overlay after
   these weigh no less. */
.is-style-scrim-foot > .wp-block-cover__background {
	mask-image: linear-gradient(to top, var(--wp--custom--photo--scrim-foot));
}

.is-style-scrim-start > .wp-block-cover__background {
	mask-image: linear-gradient(
		to top,
		var(--wp--custom--photo--scrim-start-phone)
	);
}

@media (min-width: 782px) {
	.is-style-scrim-start > .wp-block-cover__background {
		mask-image: linear-gradient(
			to right,
			var(--wp--custom--photo--scrim-start)
		);
	}

	:where(.rtl) .is-style-scrim-start > .wp-block-cover__background {
		mask-image: linear-gradient(
			to left,
			var(--wp--custom--photo--scrim-start)
		);
	}
}

/* Rows (functions.php), the shared style for a list set as rows on hairlines: each block inside is a row with a
   hairline under it, the first with one over it too. Weightless, so a theme's own rules on .is-style-rows restyle it
   wherever they sit. */
:where(.is-style-rows > *) {
	padding-block: var(--wp--preset--spacing--40);
	border-bottom: var(--wp--custom--hairline);
}

:where(.is-style-rows > :first-child) {
	border-top: var(--wp--custom--hairline);
}

/* The front page's header over the hero's photograph ("Over the hero" style on its group, in the Front page header
   part); never sticky, and in the photo cover's words. */
.wp-site-blocks > header:has(> .is-style-over-hero) {
	position: absolute;
	inset-inline: 0;
	z-index: 10;
}

.admin-bar .wp-site-blocks > header:has(> .is-style-over-hero) {
	top: var(--wp-admin--admin-bar--height, 0);
}

/* Its own scrim in the photo overlay's colour (custom.photo.scrim strong at the top, fading out below the menu),
   so the name and menu read over any sky. */
.is-style-over-hero {
	background-image: linear-gradient(
		color-mix(
			in srgb,
			var(--wp--custom--photo--overlay) var(--wp--custom--photo--scrim),
			transparent
		),
		transparent
	);
}

/* A front page that opens on something other than a photo Cover has no photograph under the header's light words:
   there the header stands on a band of the overlay colour, so they read in every palette. A page on the Front page
   (own content) template opens on its content's first block instead. (No :has() inside :has(): browsers drop the rule.) */
.wp-site-blocks:has(
		> main > :first-child:not(.wp-block-cover, .wp-block-post-content),
		> main > .wp-block-post-content > :first-child:not(.wp-block-cover)
	)
	> header
	> .is-style-over-hero {
	background-color: var(--wp--custom--photo--overlay);
	background-image: none;
}

/* Such a page whose content opens on text takes the header into the flow above it, so it covers none of it. */
.wp-site-blocks:has(
		> main > .wp-block-post-content > :first-child:not(.wp-block-cover)
	)
	> header:has(> .is-style-over-hero) {
	position: static;
}

/* Pause button on Cover background videos (inc/cover-video.php), above the overlay and the content, on the page's
   gutter. It always sits on a video, so it takes the photo Cover's pair (settings.custom.photo). */
.basalt-video-toggle {
	position: absolute;
	z-index: 2;
	inset-inline-end: var(
		--wp--style--root--padding-right,
		var(--wp--preset--spacing--40)
	);
	bottom: var(--wp--preset--spacing--40);
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 2px solid currentcolor;
	border-radius: 50%;
	background-color: var(
		--wp--custom--photo--overlay,
		var(--wp--preset--color--base)
	);
	color: var(--wp--custom--photo--text, var(--wp--preset--color--contrast));
	cursor: pointer;
}

.basalt-video-toggle svg {
	width: 1rem;
	height: 1rem;
	fill: currentcolor;
}

/* The slug once per selector, so a long slug still fits Prettier's line. */
[aria-pressed="true"] > .basalt-video-toggle__pause,
[aria-pressed="false"] > .basalt-video-toggle__play {
	display: none;
}

/* Complianz's cookie banner on the theme's tokens, so it follows the palette, the style variations and the type.
   Complianz sets these properties on :root; set on the banner itself, they win without !important. Deny looks
   exactly like Accept: rejecting must be as easy as accepting. A hairline frame keeps it apart from a page of
   the same colour. A theme's own section sets position and shape. */
.cmplz-cookiebanner {
	--cmplz_banner_background_color: var(--wp--preset--color--base);
	--cmplz_banner_border_color: var(--wp--preset--color--contrast);
	--cmplz_banner_border_width: 1px;
	--cmplz_banner_border_radius: 0;
	--cmplz_text_color: var(--wp--preset--color--contrast);
	--cmplz_hyperlink_color: var(--wp--preset--color--contrast);
	--cmplz_title_font_size: var(--wp--preset--font-size--medium);
	--cmplz_text_font_size: var(--wp--preset--font-size--small);
	--cmplz_link_font_size: var(--wp--preset--font-size--small);
	--cmplz_category_body_font_size: var(--wp--preset--font-size--small);
	--cmplz_category_header_title_font_size: var(
		--wp--preset--font-size--small
	);
	--cmplz_category_header_active_font_size: var(
		--wp--preset--font-size--small
	);
	--cmplz_category_header_always_active_color: var(
		--wp--preset--color--contrast
	);
	--cmplz_button_font_size: var(--wp--preset--font-size--small);
	--cmplz_button_border_radius: var(--wp--custom--button--radius);
	--cmplz_button_accept_background_color: var(--wp--preset--color--accent-1);
	--cmplz_button_accept_border_color: var(--wp--preset--color--accent-1);
	--cmplz_button_accept_text_color: var(--wp--preset--color--base);
	--cmplz_button_deny_background_color: var(--wp--preset--color--accent-1);
	--cmplz_button_deny_border_color: var(--wp--preset--color--accent-1);
	--cmplz_button_deny_text_color: var(--wp--preset--color--base);
	--cmplz_button_settings_background_color: var(--wp--preset--color--base);
	--cmplz_button_settings_border_color: var(--wp--preset--color--contrast);
	--cmplz_button_settings_text_color: var(--wp--preset--color--contrast);
	--cmplz_slider_active_color: var(--wp--preset--color--accent-1);
	--cmplz_slider_inactive_color: var(--wp--preset--color--contrast);
	--cmplz_slider_bullet_color: var(--wp--preset--color--base);

	font-family: var(--wp--preset--font-family--body);
}

/* Complianz's stylesheet loads after this one, so these start from its container's id. The focus ring sits
   inside the buttons: outside, Accept's base-colored ring would vanish on the base-colored banner. */
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn:focus-visible {
	outline: 2px solid currentcolor;
	outline-offset: -5px;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-category {
	background-color: var(--wp--preset--color--accent-2);
}

/* CookieYes's banner and preferences dialog on the same tokens as Complianz's. Its stylesheet loads after this
   one, so these start from two of its classes; it writes its own colours into style attributes and rounds the
   banner with a rule of the same weight, so only !important outranks those. */
:is(
	.cky-consent-container .cky-consent-bar,
	.cky-modal .cky-preference-center
) {
	border-radius: 0 !important;
	border-color: var(--wp--preset--color--contrast) !important;
	background-color: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
	font-family: var(--wp--preset--font-family--body);
}

:is(.cky-consent-container .cky-consent-bar, .cky-modal .cky-preference-center)
	:is(
		.cky-title,
		.cky-notice-des,
		.cky-preference-title,
		.cky-preference-content-wrapper,
		.cky-show-desc-btn,
		.cky-accordion-btn,
		.cky-accordion-header-des,
		.cky-always-active,
		.cky-btn-close,
		a
	) {
	color: var(--wp--preset--color--contrast) !important;
}

:is(.cky-consent-container .cky-consent-bar, .cky-modal .cky-preference-center)
	:is(
		.cky-notice-des,
		.cky-notice-des *,
		.cky-preference-content-wrapper,
		.cky-preference-content-wrapper *,
		.cky-accordion-btn,
		.cky-always-active,
		.cky-accordion-header-des,
		.cky-accordion-header-des *,
		.cky-audit-table *,
		.cky-btn
	) {
	font-size: var(--wp--preset--font-size--small);
}

:is(.cky-consent-container .cky-consent-bar, .cky-modal .cky-preference-center)
	:is(.cky-title, .cky-preference-title) {
	font-size: var(--wp--preset--font-size--medium);
}

/* Reject looks exactly like Accept, as Complianz's Deny does; Customise and Save look like its settings button. */
:is(.cky-consent-container .cky-consent-bar, .cky-modal .cky-preference-center)
	.cky-btn {
	border-radius: var(--wp--custom--button--radius);
	border-color: var(--wp--preset--color--accent-1) !important;
	background-color: var(--wp--preset--color--accent-1) !important;
	color: var(--wp--preset--color--base) !important;
}

:is(.cky-consent-container .cky-consent-bar, .cky-modal .cky-preference-center)
	:is(.cky-btn-customize, .cky-btn-preferences) {
	border-color: var(--wp--preset--color--contrast) !important;
	background-color: var(--wp--preset--color--base) !important;
	color: var(--wp--preset--color--contrast) !important;
}

.cky-modal .cky-preference-center .cky-switch input[type="checkbox"] {
	background-color: var(--wp--preset--color--contrast) !important;
}

.cky-modal .cky-preference-center .cky-switch input[type="checkbox"]:checked {
	background-color: var(--wp--preset--color--accent-1) !important;
}

.cky-modal .cky-preference-center .cky-switch input[type="checkbox"]::before {
	background-color: var(--wp--preset--color--base);
}

/* The fade over the dialog's last lines, which its script paints white. */
.cky-modal .cky-preference-center .cky-footer-shadow {
	background: linear-gradient(
		transparent,
		var(--wp--preset--color--base)
	) !important;
}

/* Its close button is a fixed grey image, lost on a dark palette: an X in the text colour instead. CookieYes never
   sets the image's display, so the rule needs no more weight, and a theme's later image rules stay in order. */
.cky-btn-close img {
	display: none;
}

.cky-modal .cky-preference-center .cky-btn-close::before {
	content: "";
	display: block;
	width: 0.75rem;
	height: 0.75rem;
	background-color: currentcolor;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 1l8 8M9 1L1 9' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E")
		center / contain no-repeat;
}

/* Its focus ring is a fixed blue: the starter's ring in the text colour. */
:is(.cky-consent-container .cky-consent-bar, .cky-modal .cky-preference-center)
	:is(a, button, input[type="checkbox"]):focus-visible {
	outline: 2px solid currentcolor;
	outline-offset: 2px;
}

/* Inside its buttons, as Complianz's: outside, Accept's base-colored ring would vanish on the banner. */
:is(.cky-consent-container .cky-consent-bar, .cky-modal .cky-preference-center)
	button.cky-btn:focus-visible {
	outline-offset: -5px;
}

/* A category's cookie list on the tinted surface, as Complianz's categories. */
.cky-modal .cky-preference-center .cky-audit-table {
	border-color: var(--wp--preset--color--contrast) !important;
	background-color: var(--wp--preset--color--accent-2) !important;
	color: var(--wp--preset--color--contrast) !important;
}

/* Contact Form 7's and Mailchimp for WordPress's forms on the tokens: their submit is the theme's own button
   (functions.php gives it wp-element-button, so theme.json styles it), their fields take the form fields above,
   across the form's width, and their messages drop Contact Form 7's fixed reds, greens and yellows, which fail
   contrast on a dark palette: the words carry the state, on the token pairs every variation passes. */
:is(.wpcf7, .mc4wp-form)
	:is(
		input:not([type="checkbox"], [type="radio"], [type="submit"]),
		textarea,
		select
	) {
	width: 100%;
}

/* A file field's button is the theme's outline control, not the browser's grey rounded one. */
:is(.wpcf7, .mc4wp-form) input[type="file"]::file-selector-button {
	margin-inline-end: 0.75em;
	padding: 0.25em 0.75em;
	border: 1px solid currentcolor;
	border-radius: var(--wp--custom--button--radius);
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

/* A field with an error doubles its line (inside, so nothing moves) and names the error under it. */
.wpcf7 .wpcf7-not-valid {
	box-shadow: inset 0 0 0 1px currentcolor;
}

.wpcf7 .wpcf7-not-valid-tip {
	margin-top: 0.35em;
	color: inherit;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
}

/* The form's status after sending, on the theme's tinted surface (the highlight once sent), with room
   below it, so it never meets what follows the form. As strong as its per-state rules (form.invalid …);
   this stylesheet loads after its own. */
.wpcf7 form.wpcf7-form .wpcf7-response-output {
	margin: var(--wp--preset--spacing--30) 0 var(--wp--preset--spacing--60);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	border: 0;
	background-color: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--contrast);
}

.wpcf7 form.wpcf7-form.sent .wpcf7-response-output {
	background-color: var(--wp--preset--color--accent-3);
}

.wpcf7 .wpcf7-spinner {
	background-color: currentcolor;
}

/* Mailchimp for WordPress's answer after signing up, on the same surfaces as Contact Form 7's status. */
.mc4wp-form .mc4wp-alert {
	margin-block: var(--wp--preset--spacing--30);
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	background-color: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--contrast);
}

.mc4wp-form .mc4wp-success {
	background-color: var(--wp--preset--color--accent-3);
}

/* As light as a bare p, so no theme rule ending in p later on outranks it. */
:where(.mc4wp-form .mc4wp-alert) > p {
	margin: 0;
}

/* Contact Form 7's groups of choices (radios, checkboxes) are fieldsets their legends name, laid out like a labelled
   field, without the browser's frame. Each choice is a 44px target, its box (in the text's size) and its words one
   label, from the field's edge on. */
.wpcf7 fieldset:not(.hidden-fields-container) {
	min-width: 0;
	margin: 0 0 1em;
	padding: 0;
	border: 0;
}

.wpcf7 legend {
	padding: 0;
}

/* Contact Form 7 puts the choices in a paragraph, whose margin would part them from their legend. As light as a bare
   p, so no theme rule ending in p later on outranks it. */
:where(.wpcf7 fieldset) > p {
	margin: 0;
}

.wpcf7 .wpcf7-list-item {
	margin: 0;
	margin-inline-end: 1.5em;
}

/* As light as a bare label, so a theme's own form rule ending in label (Gridwerk's sign-up form) needn't come first. */
:where(.wpcf7 .wpcf7-list-item) label {
	display: inline-flex;
	gap: 0.5em;
	align-items: center;
	min-height: 2.75rem;
	cursor: pointer;
}

.wpcf7 .wpcf7-list-item input {
	width: 1.25em;
	height: 1.25em;
	margin: 0;
}

/* WPForms on the tokens. It styles its forms through these properties, set on :root; set on the container, they
   win without !important, and a form the buyer styles in its block (on #wpforms-<id>) still wins over them. Its
   errors take the text colour, like Contact Form 7's: its fixed red fails contrast on a dark palette, and the
   words and its warning sign carry the state. Its submit keeps its own rules, which outrank the theme's button,
   so it takes the button's colours from the token contract. */
.wpforms-container {
	--wpforms-field-background-color: var(--wp--preset--color--base);
	--wpforms-field-border-color: var(--wp--preset--color--contrast);
	--wpforms-field-border-color-spare: var(--wp--preset--color--contrast);
	--wpforms-field-border-radius: 0;
	--wpforms-field-text-color: var(--wp--preset--color--contrast);
	--wpforms-field-menu-color: var(--wp--preset--color--base);
	--wpforms-field-size-font-size: 1em;
	--wpforms-label-color: var(--wp--preset--color--contrast);
	--wpforms-label-sublabel-color: var(--wp--preset--color--contrast);
	--wpforms-label-error-color: var(--wp--preset--color--contrast);
	--wpforms-label-size-font-size: 1em;
	--wpforms-label-size-sublabel-font-size: var(
		--wp--preset--font-size--small
	);
	--wpforms-button-background-color: var(--wp--preset--color--accent-1);
	--wpforms-button-border-color: var(--wp--preset--color--accent-1);
	--wpforms-button-text-color: var(--wp--preset--color--base);
	--wpforms-button-border-radius: var(--wp--custom--button--radius);
	--wpforms-button-size-font-size: var(--wp--preset--font-size--small);
}

/* Polylang's language switcher (its block, in every layout) on the tokens. Its dropdown opens on white with black
   words whatever the palette: it takes the page's pair instead, framed by a hairline, unless the buyer gives the
   block its own colours. The language being read is marked like the page you are on in the menu, and the others drop
   the link underline until the pointer is on them. Its stylesheet loads before this one, so these rules weigh what its
   own do and no more: a theme's later rules on lists, links and images stay in specificity order. */
.pll-switcher:not(.has-background) {
	--pll-dropdown-background-color: var(--wp--preset--color--base);
}

.pll-switcher:not(.has-text-color) {
	--pll-dropdown-text-color: var(--wp--preset--color--contrast);
}

.pll-switcher-inner ul {
	border: var(--wp--custom--hairline);
	color: var(--pll-dropdown-text-color);
}

.pll-switcher a:where(:not(:hover, [aria-current="true"])) {
	text-decoration-line: none;
}

.pll-switcher a[aria-current="true"] {
	text-decoration-line: underline;
	text-decoration-thickness: max(1px, 0.08em);
	text-underline-offset: 0.3em;
}

/* The dropdown's open button is a 24px target, 44px on a touch screen; Polylang draws it about 16px. */
.pll-switcher .pll-switcher-inner .pll-submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5rem;
	min-height: 1.5rem;
}

@media (pointer: coarse) {
	.pll-switcher .pll-switcher-inner .pll-submenu-toggle {
		min-width: 2.75rem;
		min-height: 2.75rem;
	}
}

/* Polylang aligns the switcher left or right (right by default on a right-to-left site) through flex start and end,
   which swap sides once the page mirrors: there they take the side they name, where its dropdown opens. */
.rtl .pll-alignment-left:is(.pll-layout-select, .pll-layout-dropdown),
.rtl .pll-alignment-left.pll-layout-horizontal ul,
:where(.rtl) .pll-alignment-left a {
	justify-content: flex-end;
}

.rtl .pll-alignment-right:is(.pll-layout-select, .pll-layout-dropdown),
.rtl .pll-alignment-right.pll-layout-horizontal ul,
:where(.rtl) .pll-alignment-right a {
	justify-content: flex-start;
}

/* The Events Calendar on the tokens: its list, month and day views and its single event, in its default styles or
   its skeleton, which both paint through these properties. It declares them on :root, the rest built from these
   (its buttons, events bar, month grid, tooltips), so set on :root:root, which outweighs it whichever loads first
   and leaves a theme's later html rules in specificity order, these carry the palette, the type and the button
   corners of the style in effect into all of them. Its greys become the text colour and its tints the tinted and
   highlight surfaces, the pairs every variation passes. */
:root:root {
	--tec-color-text-primary: var(--wp--preset--color--contrast);
	--tec-color-text-primary-light: var(--wp--preset--color--contrast);
	--tec-color-text-secondary: var(--wp--preset--color--contrast);
	--tec-color-text-disabled: color-mix(
		in srgb,
		var(--wp--preset--color--contrast) 40%,
		transparent
	);
	--tec-color-icon-primary: var(--wp--preset--color--contrast);
	--tec-color-icon-primary-alt: var(--wp--preset--color--contrast);
	--tec-color-icon-secondary: var(--wp--preset--color--contrast);
	--tec-color-icon-active: var(--wp--preset--color--contrast);
	--tec-color-icon-disabled: var(--tec-color-text-disabled);
	--tec-color-icon-focus: var(--wp--preset--color--accent-1);
	--tec-color-icon-error: var(--wp--preset--color--contrast);
	--tec-color-event-icon: var(--wp--preset--color--contrast);
	--tec-color-event-icon-hover: var(--wp--preset--color--accent-1);
	--tec-color-accent-primary: var(--wp--preset--color--accent-1);
	--tec-color-accent-primary-hover: color-mix(
		in srgb,
		var(--wp--preset--color--accent-1) 85%,
		var(--wp--preset--color--contrast)
	);
	--tec-color-accent-primary-active: var(--tec-color-accent-primary-hover);
	--tec-color-accent-primary-background: var(--wp--preset--color--accent-2);
	--tec-color-accent-secondary: var(--wp--preset--color--contrast);
	--tec-color-accent-secondary-hover: var(--wp--preset--color--contrast);
	--tec-color-accent-secondary-active: var(--wp--preset--color--contrast);
	--tec-color-accent-secondary-background: var(--wp--preset--color--accent-2);
	--tec-color-link-accent-hover: var(--wp--preset--color--contrast);
	--tec-color-border-default: color-mix(
		in srgb,
		var(--wp--preset--color--contrast) 25%,
		transparent
	);
	--tec-color-border-secondary: var(--tec-color-border-default);
	--tec-color-border-tertiary: var(--wp--preset--color--contrast);
	--tec-color-border-hover: var(--wp--preset--color--contrast);
	--tec-color-border-active: var(--wp--preset--color--contrast);
	--tec-color-background: var(--wp--preset--color--base);
	--tec-color-background-transparent: color-mix(
		in srgb,
		var(--wp--preset--color--base) 60%,
		transparent
	);
	--tec-color-background-secondary: var(--wp--preset--color--accent-2);
	--tec-color-background-secondary-hover: var(--wp--preset--color--accent-2);
	--tec-color-background-messages: var(--wp--preset--color--accent-2);
	--tec-color-background-error: var(--wp--preset--color--accent-2);
	--tec-color-background-primary-multiday: var(--wp--preset--color--accent-3);
	--tec-color-background-primary-multiday-hover: var(
		--wp--preset--color--accent-3
	);
	--tec-color-background-secondary-multiday: var(
		--wp--preset--color--accent-2
	);
	--tec-color-background-secondary-multiday-hover: var(
		--wp--preset--color--accent-2
	);
	--tec-font-family-sans-serif: var(--wp--preset--font-family--body);
	--tec-font-family-base: var(--wp--preset--font-family--body);
	--tec-border-radius-default: var(--wp--custom--button--radius);

	/* On a phone its list rows reach their half gutter (21px) out from the page gutter (19.5px) and widen the page. */
	--tec-grid-gutter-page-small: var(--tec-grid-gutter-small-half);
}

/* Event and view titles, dates and the single event's headings in the theme's heading face. */
.tribe-common [class*="tribe-common-h"],
.tribe-events-pg-template :is(h1, h2, h3) {
	--tec-font-family-sans-serif: var(--wp--preset--font-family--heading);
}

/* Its styles drop the focus outline from its links, buttons and fields: they get the theme's back, inside the
   filled buttons, where an outside ring in their text colour would vanish on the page. */
:is(.tribe-common, .tribe-events-pg-template)
	:is(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 2px solid currentcolor;
	outline-offset: 2px;
}

.tribe-common .tribe-common-c-btn:focus-visible {
	outline-offset: -5px;
}

/* Smash Balloon Instagram Feed on the tokens: its header in the text colour (its name an h3, so already in the
   theme's heading type, at the header size the buyer picks), its grid on the theme's spacing, Load More and Follow
   on the button's colours, its focus ring in the text colour. Its rules start from #sb_instagram and may load before
   or after this sheet, so these outweigh them. */
#sb_instagram {
	--sb-focus-ring: var(--wp--preset--color--contrast);
	--sb-text-secondary: var(--wp--preset--color--contrast);
	--sb-text-tertiary: var(--wp--preset--color--contrast);
}

#sb_instagram .sb_instagram_header .sbi_header_link {
	color: var(--wp--preset--color--contrast);
}

/* Its stock gap is a style attribute; a buyer's own spacing is another value and stays. */
#sb_instagram #sbi_images[style="gap: 10px;"] {
	gap: var(--wp--preset--spacing--20) !important;
}

#sb_instagram #sbi_load :is(.sbi_load_btn, .sbi_follow_btn a) {
	margin-block-start: var(--wp--preset--spacing--20);
	padding: var(--wp--custom--button--padding--block)
		var(--wp--custom--button--padding--inline);
	border-radius: var(--wp--custom--button--radius);
	background: var(--wp--preset--color--accent-1);
	color: var(--wp--preset--color--base);
	font-family: inherit;
	font-size: var(--wp--preset--font-size--small);
	line-height: inherit;
}

/* Its stock Follow blue (white on it fails contrast) is a style attribute; a buyer's own colour stays. */
#sb_instagram .sbi_follow_btn a[style="background: rgb(64,139,209);"] {
	background: var(--wp--preset--color--accent-1) !important;
}

/* Hovered, both take the page's own pair, in place of its fixed blue and white glows. */
#sb_instagram #sbi_load :is(.sbi_load_btn, .sbi_follow_btn a):hover {
	box-shadow: inset 0 0 0 100vmax var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

#sb_instagram
	#sbi_load
	:is(.sbi_load_btn, .sbi_follow_btn a):focus:not(:hover) {
	box-shadow: none;
}

/* Its minified stylesheet drops its focus ring but keeps Load More's outline: none. */
#sb_instagram #sbi_load :is(.sbi_load_btn, .sbi_follow_btn a):focus-visible {
	outline: 2px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}

#sb_instagram #sbi_load .sbi_follow_btn svg {
	margin-inline: 0 0.5em;
}

#sb_instagram #sbi_load .sbi_loader {
	background-color: currentcolor !important;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

/* On paper: the page's words and pictures in ink on white, whatever the palette, without the header, footer, menus,
   motion or a Cover's photo and screen height, and each link in running text followed by its address. !important
   because blocks set their colours and a Cover its height inline, and at a class's weight to outrank core's
   !important preset colour classes (.has-base-color). */
@media print {
	.wp-site-blocks > :is(header, footer),
	.skip-link,
	.wp-block-navigation,
	.wp-block-cover__image-background,
	.wp-block-cover__video-background,
	.basalt-video-toggle {
		display: none !important;
	}

	:is(*, [class]),
	:is(*, [class])::before,
	:is(*, [class])::after {
		background: transparent !important;
		color: #000 !important;
		box-shadow: none !important;
		text-shadow: none !important;
		animation: none !important;
		transition: none !important;
	}

	.wp-block-cover {
		min-height: 0 !important;
	}

	.wp-block-post-content
		:where(p, li:not(.wp-block-post))
		a[href^="http"]::after {
		content: " (" attr(href) ")";
		overflow-wrap: anywhere;
	}
}

/* Opening hours (inc/hours.php): one ruled row per day, and today's row (assets/js/hours.js) set stronger.
   A two-column list, never a scrolling data table (core's overflow-x: auto needs a tabindex keyboards never get):
   in a column too narrow for it, its times wrap instead. Its style and rows sit in :is() and :where(), so a theme's
   own rules on the table after it are no duplicates, and a cell's own rule needn't outweigh today's or the last's. */
.wp-block-table:is(.is-style-hours) {
	overflow: visible;
}

.wp-block-table:is(.is-style-hours) :is(th, td) {
	padding: 0.5em 0;
	border: 0;
	border-bottom: var(--wp--custom--hairline);
	overflow-wrap: anywhere;
}

.wp-block-table:is(.is-style-hours) td:where(:last-child) {
	text-align: end;
}

.wp-block-table:is(.is-style-hours) :where(tr.is-today) td {
	font-weight: 700;
}

/* Today only: an Opening hours part with the basalt-hours-today class shows just today's row, once the script
   has lit it, and on a closed day the rows up to the next opening (assets/js/today.js); without the script, the whole
   week. Its size and colours are the theme's: these weigh no more than the hours table's own rules, so a theme's
   restyle of the table after them still wins. */
.basalt-hours-today .is-style-hours:where(:has(.is-today)) {
	margin: 0;
}

.basalt-hours-today .is-style-hours:where(:has(.is-today)) table {
	width: auto;
}

.basalt-hours-today
	table:where(:has(.is-today))
	tr:where(:not(.is-today, .is-next)) {
	display: none;
}

.basalt-hours-today .is-style-hours:where(:has(.is-today)) :is(th, td) {
	padding: 0;
	border: 0;
}

.basalt-hours-today
	.is-style-hours:where(:has(.is-today))
	td:where(:last-child) {
	padding-inline-start: 1em;
}

/* Service menu: a Dotted leader separator runs from the service's name to its price, in the text colour, on the
   last line's baseline (a name and a price of different line heights, bottom-aligned, sat at different heights). It
   keeps 2em however long the name, so the name wraps and the price keeps its line. */
.is-layout-flex:has(> .wp-block-separator.is-style-leader) {
	align-items: last baseline;
}

.wp-block-separator.is-style-leader {
	flex: 1 0 2em;
	margin: 0;
	border: 0;
	border-bottom: 0.15em dotted;
}

/* At 200% text the name's longest word could outgrow the row; a flex item wraps it only with anywhere. */
:where(.is-layout-flex:has(> .is-style-leader) > :first-child) {
	overflow-wrap: anywhere;
}

/* Find us: the Street plan group draws a town (blocks, a square, water, streets) in its text colour over its
   background, as a mask, so its colour controls repaint it and nothing loads from a map service (WP.org allows no
   external requests). Its paragraph is the pin, its tail's tip on the plan's middle, where the plan has a crossing.
   A theme redraws its streets by replacing the mask's image. Its colours are the theme's settings.custom.streetPlan
   (ground, ink, pin, pinText), so each theme gives the map its own roles; without them it takes accent-2 and contrast,
   the pin accent-1 and base. A colour the buyer picks in the block's controls still wins (core's preset classes). */
.wp-block-group.is-style-street-plan {
	position: relative;
	isolation: isolate;
	overflow: clip;
	background-color: var(
		--wp--custom--street-plan--ground,
		var(--wp--preset--color--accent-2)
	);
	color: var(
		--wp--custom--street-plan--ink,
		var(--wp--preset--color--contrast)
	);
}

.wp-block-group.is-style-street-plan::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: color-mix(in srgb, currentcolor 20%, transparent);
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 800'%3E%3Cmask id='m'%3E%3Crect width='1200' height='800' fill='%23999'/%3E%3Cpath d='M382 172h208v218H382z' fill='%23fff'/%3E%3Cpath d='M-10 70C250 20 520 100 760 55s350-30 460 15' fill='none' stroke='%23fff' stroke-width='56'/%3E%3Cg fill='none' stroke='%23000'%3E%3Cpath d='M140-10l25 820M380-10l-8 820M600-10v820M835-10l23 820M1065-10l-15 820M-10 160l1220 22M-10 400h1220M-10 628l1220-18M690 810q210-210 520-290' stroke-width='22'/%3E%3Cpath d='M262 182v218M490 400v228M725-10l5 182M952 400v215M600 518l258 6M165 290l207-4M-10 520h150M1058 290h152M372 718l228-4' stroke-width='10'/%3E%3C/g%3E%3C/mask%3E%3Crect width='1200' height='800' mask='url(%23m)'/%3E%3C/svg%3E")
		center / cover no-repeat;
}

/* The pin weighs as little as a bare p, so no theme rule ending in p later on outranks it. */
:where(.wp-block-group.is-style-street-plan) > p {
	position: relative;
	background-color: var(
		--wp--custom--street-plan--pin,
		var(--wp--preset--color--accent-1)
	);
	color: var(
		--wp--custom--street-plan--pin-text,
		var(--wp--preset--color--base)
	);
	max-width: min(100%, 16rem);
	text-align: center;
	translate: 0 calc(-50% - 0.75rem);
}

:where(.wp-block-group.is-style-street-plan) > p::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	width: 1.5rem;
	height: 0.75rem;
	background-color: inherit;
	clip-path: polygon(0 0, 100% 0, 50% 100%);
	translate: -50%;
}

/* Carousel (the Carousel group style): the group's blocks in one row that visitors swipe or scroll through, each
   slide snapping to the row's start and the next one peeking in, so the row reads as more to see. A full-width one
   starts on the wide column's edge, in line with the header, and runs off the screen's far side. Nothing moves on its
   own: autoplay needs a pause button (WCAG 2.2.2) and would compete with the theme's signature effect. */
.wp-block-group.is-style-carousel {
	--basalt-carousel-inset: 0px;

	display: flex;
	flex-wrap: nowrap;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--basalt-carousel-inset);
	scrollbar-color: currentcolor transparent;
	scrollbar-width: thin;
}

.wp-block-group.is-style-carousel.alignfull {
	--basalt-carousel-inset: var(--basalt-edge);

	padding-inline: var(--basalt-carousel-inset);
}

/* Weightless, so a slide's own Width (Fixed, in its sidebar) wins: slides Fixed at 100% make a hero slider. */
:where(.wp-block-group.is-style-carousel) > * {
	box-sizing: border-box;
	flex: 0 0 min(85%, 34rem);
	margin: 0;
	scroll-snap-align: start;
}

@media (prefers-reduced-motion: no-preference) {
	.wp-block-group.is-style-carousel {
		scroll-behavior: smooth;
	}
}

/* Where the browser draws a scroller's own buttons (Chromium's ::scroll-button), the row gets Previous and Next
   arrows instead of its scrollbar: real buttons in the tab order, disabled at either end (CSS can't translate, so
   their spoken names come from _carousel_labels). They sit under the slides' end, in the row's own padding, in its
   text colour; the anchor scope keeps each carousel's arrows on its own row. No dots: a scroll marker takes its
   slide's colour (white on a photo Cover), never the row's. Elsewhere the row keeps its scrollbar and the swipe. */
@supports selector(::scroll-button(*)) {
	:has(> .wp-block-group.is-style-carousel) {
		anchor-scope: --basalt-carousel;
	}

	.wp-block-group.is-style-carousel {
		anchor-name: --basalt-carousel;
		padding-block-end: calc(2.75rem + var(--wp--preset--spacing--30));
		scrollbar-width: none;
	}

	.wp-block-group.is-style-carousel::scroll-button(*) {
		position: absolute;
		position-anchor: --basalt-carousel;
		inset-block-end: anchor(end);
		inset-inline-end: anchor(end);
		width: 2.75rem;
		height: 2.75rem;
		margin-inline-end: var(--basalt-carousel-inset);
		border: 1px solid currentcolor;
		border-radius: 50%;
		background-color: transparent;
		color: inherit;
		font-size: var(--wp--preset--font-size--medium);
		cursor: pointer;
	}

	.wp-block-group.is-style-carousel::scroll-button(inline-start) {
		content: "←" / var(--basalt-carousel-previous, "Previous");
		margin-inline-end: calc(var(--basalt-carousel-inset) + 3.25rem);
	}

	.wp-block-group.is-style-carousel::scroll-button(inline-end) {
		content: "→" / var(--basalt-carousel-next, "Next");
	}

	.wp-block-group.is-style-carousel::scroll-button(*):disabled {
		cursor: default;
		opacity: 0.35;
	}

	.wp-block-group.is-style-carousel::scroll-button(*):focus-visible {
		outline: 2px solid currentcolor;
		outline-offset: 2px;
	}

	.wp-block-group.is-style-carousel:dir(rtl)::scroll-button(*) {
		scale: -1 1;
	}
}

/* Page loader (inc/loader.php): in the editor a box showing its spinner, so the buyer sees and can delete it;
   on the page a cover until assets/js/loader.js lifts it, or until the cap lifts it if the script never runs. */
:where(.basalt-loader) {
	display: grid;
	place-items: center;
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--accent-1);
}

/* The editor draws a spacer's ::before as an absolute box filling it (a selector of the same weight as these), so
   every loader rule on it names the spacer and sets its size outright. */
.wp-block-spacer.basalt-loader::before {
	content: "";
	position: static;
	min-width: 0;
	min-height: 0;
}

body:not(.editor-styles-wrapper) .basalt-loader {
	position: fixed;
	z-index: 100000;
	inset: 0;
	max-width: none;

	/* The spacer's inline height is only for the editor. */
	height: auto !important;
	margin: 0;

	/* The name on a line of its own, so a long slug never changes how Prettier wraps the rest. */
	animation: 0.3s 3s forwards;
	animation-name: basalt-loader-lift;
}

body:not(.editor-styles-wrapper) .basalt-loader.is-loaded {
	visibility: hidden;
	opacity: 0;
	transition:
		opacity 0.3s,
		visibility 0s 0.3s;
}

@keyframes basalt-loader-lift {
	to {
		visibility: hidden;
		opacity: 0;
	}
}

.wp-block-spacer.basalt-loader-ring::before {
	width: 2.5rem;
	height: 2.5rem;
	border: 3px solid color-mix(in srgb, currentcolor 20%, transparent);
	border-top-color: currentcolor;
	border-radius: 50%;
	animation: 0.8s linear infinite;
	animation-name: basalt-loader-spin;
}

@keyframes basalt-loader-spin {
	to {
		transform: rotate(1turn);
	}
}

.wp-block-spacer.basalt-loader-dots::before {
	width: 3.5rem;
	height: 0.875rem;
	background: radial-gradient(
			circle closest-side,
			currentcolor 90%,
			transparent
		)
		0 / calc(100% / 3) 100% space;
	clip-path: inset(0 100% 0 0);
	animation: 1s steps(4) infinite;
	animation-name: basalt-loader-dots;
}

@keyframes basalt-loader-dots {
	to {
		clip-path: inset(0 -34% 0 0);
	}
}

/* The bar runs along the top and covers nothing: the page shows beneath it as it loads. */
.basalt-loader-bar {
	place-items: start stretch;
}

.wp-block-spacer.basalt-loader-bar::before {
	width: 100%;
	height: 3px;
	background-color: currentcolor;
	transform-origin: left;
	animation: 3s cubic-bezier(0.1, 0.7, 0.3, 1) infinite;
	animation-name: basalt-loader-bar;
}

.rtl .wp-block-spacer.basalt-loader-bar::before {
	transform-origin: right;
}

body:not(.editor-styles-wrapper) .basalt-loader-bar {
	bottom: auto;
	background-color: transparent;
	pointer-events: none;
}

@keyframes basalt-loader-bar {
	from {
		transform: scaleX(0);
	}

	to {
		transform: scaleX(0.9);
	}
}

/* A spinner standing still reads as a frozen page, so reduced motion gets no loader. */
@media (prefers-reduced-motion: reduce) {
	body:not(.editor-styles-wrapper) .basalt-loader {
		display: none;
	}
}

/* WooCommerce hard-codes its sale badge colors; the theme's style.css loads after it. */
.woocommerce span.onsale {
	background-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

/* Product facts (the product-specifications block) as facts on hairlines in the text color, not a boxed table. */
.wp-block-woocommerce-product-specifications :is(th, td) {
	padding-block: var(--wp--preset--spacing--20);
	padding-inline: 0 var(--wp--preset--spacing--30);
	border: 0;
	border-bottom: var(--wp--custom--hairline);
	text-align: start;
	vertical-align: top;
}

.wp-block-woocommerce-product-specifications
	th.wp-block-product-specifications-item__label {
	min-width: min-content;
	overflow-wrap: normal; /* WooCommerce's break-word would let min-content break inside a word. */
	word-break: normal;
}

.wp-block-woocommerce-product-specifications td p {
	margin: 0;
}

/* A product with no facts beyond its choices shows no empty "The details" (inc/woocommerce.php keeps the choices
   out); the editor keeps the section, so it can still be edited. */
body:not(.editor-styles-wrapper)
	.product-facts:not(:has(.wp-block-product-specifications-item)) {
	display: none;
}

/* WooCommerce's classic sheet floats the product gallery at 48% of its box (`.woocommerce div.product div.images`,
   which the single-product template's wrapper matches); its gallery block widens it to 100% but leaves it floating,
   out of the flow of the block that holds it. In flow here, with the gallery block's own selector, which outranks it. */
.woocommerce
	.wp-block-woocommerce-product-image-gallery
	.woocommerce-product-gallery.images {
	width: 100%;
	float: none;
}

/* A product with a single tab (reviews off: only its description) shows that description without a tab bar, since
   one tab is no choice. The panel keeps its heading, and the hidden tab still names it. */
.woocommerce-tabs .wc-tabs:has(> li:only-child) {
	display: none;
}

/* WooCommerce leaves the closed mini-cart drawer focusable while aria-hidden; take it out of the tab order. */
.wc-block-mini-cart__drawer[aria-hidden="true"] {
	visibility: hidden;
}

/* Prices line up in their columns. */
.wc-block-components-product-price,
.wp-block-woocommerce-product-price {
	font-variant-numeric: tabular-nums;
}

/* A variable product's choices (WooCommerce's variation chips) on the tokens: the chosen one in accent-1, the
   colour of the buy action. Set through WooCommerce's own variables, so the block's colour controls still apply. */
.wp-block-woocommerce-add-to-cart-with-options {
	--wc-product-filter-chips-selected-background: var(
		--wp--preset--color--accent-1
	);
	--wc-product-filter-chips-selected-border: var(
		--wp--preset--color--accent-1
	);
	--wc-product-filter-chips-selected-text: var(--wp--preset--color--base);
}

/* The price beside quantity and Add to cart (parts/*-product-add-to-cart-with-options.html): it follows the
   chosen variation, so it keeps one width and the buttons stay put. */
.add-to-cart-price {
	min-width: 6.5ch;
	margin: 0;
	text-align: end;
	font-size: var(--wp--preset--font-size--large);
}

/* WooCommerce gives a variation chip a 1px focus line in its own text colour, which vanishes on the chosen chip:
   every chip shows a 2px focus outline in the text colour, clear of the chip, on paper and on the accent alike. */
.wp-block-woocommerce-add-to-cart-with-options
	.wc-block-product-filter-chips__item:focus-visible {
	outline: 2px solid var(--wp--preset--color--contrast);
	outline-offset: 2px;
}

/* On a touch screen the shop's controls are full 44px targets: WooCommerce draws a variation chip about 37px tall
   (and only as wide as its label, so "£30" or "XL" came out narrower), the mini-cart button 40px, the quantity steps
   30px wide, the drawer's Remove and checkout's Cart link 24px, the gallery's zoom 36px, and a product card's title
   link only as tall as its text. */
@media (pointer: coarse) {
	.wc-block-components-quantity-selector {
		min-height: 2.75rem;
	}

	.wp-block-woocommerce-add-to-cart-with-options
		.wc-block-product-filter-chips__items
		.wc-block-product-filter-chips__item,
	.wc-block-mini-cart__button,
	.wc-block-components-quantity-selector
		.wc-block-components-quantity-selector__button,
	.wc-block-cart-item__remove-link,
	.woocommerce-product-gallery__trigger,
	.wc-block-cart-link {
		min-width: 2.75rem;
		min-height: 2.75rem;
	}

	.wc-block-product .wp-block-post-title a {
		display: inline-block;
		padding-block: max(0px, (2.75rem - 1lh) / 2);
	}
}

/* WooCommerce's quantity stepper drops the focus outline for a faint inset ring: the whole stepper shows the
   theme's focus outline while focus is inside it. */
.wc-block-components-quantity-selector:has(:focus-visible) {
	outline: 2px solid var(--wp--preset--color--accent-1);
	outline-offset: 2px;
}

/* Cart and checkout fields on the theme's own pair: WooCommerce keeps its inputs white with dark text while their
   floating labels inherit the theme's text colour, so in a dark variation the labels vanished (about 1.1:1). The doubled
   class matches WooCommerce's own field rules in weight, so this later sheet wins. */
.wc-block-components-text-input.wc-block-components-text-input
	:is(input[type], textarea),
.wc-blocks-components-select .wc-blocks-components-select__select,
.wc-block-components-checkbox .wc-block-components-checkbox__input {
	border-color: color-mix(
		in srgb,
		var(--wp--preset--color--contrast) 45%,
		transparent
	);
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

.wc-block-components-text-input.wc-block-components-text-input label,
.wc-blocks-components-select .wc-blocks-components-select__label {
	color: color-mix(
		in srgb,
		var(--wp--preset--color--contrast) 75%,
		var(--wp--preset--color--base)
	);
}

/* Fields and WooCommerce's buttons ("Proceed to Checkout", "Place Order") take the theme's focus outline: their own
   faint focus styles outrank the base layer's zero-specificity ring. */
.wc-block-components-text-input.wc-block-components-text-input
	:is(input[type], textarea):focus,
.wc-blocks-components-select .wc-blocks-components-select__select:focus,
.wc-block-components-button:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent-1);
	outline-offset: 2px;
	box-shadow: none;
}

/* WooCommerce caps the cart and checkout titles at 1000px, so a wide title sat indented from its table. */
:is(.woocommerce-cart, .woocommerce-checkout) .wp-block-post-title.alignwide {
	max-width: var(--wp--style--global--wide-size);
}

/* WooCommerce's notices (added to the cart, a checkout error) on the theme's highlight surface in its text colour,
   not WooCommerce's mint, pink and grey; the round icon keeps the colour that says success, error or warning. Its
   links set their grey with !important, so only !important lets them follow the text. */
.wc-block-components-notice-banner,
.wc-block-components-notice-banner:is(
	.is-success,
	.is-error,
	.is-info,
	.is-warning
) {
	border-color: currentcolor;
	background-color: var(--wp--preset--color--accent-3);
	color: var(--wp--preset--color--contrast);
}

.wc-block-components-notice-banner
	> .wc-block-components-notice-banner__content
	.wc-forward {
	color: inherit !important;
	opacity: 1;
}

/* The store notice (a demo shop's "no orders shall be fulfilled") where WooCommerce prints it, atop the page, in
   the theme's colours: WooCommerce fixes it over the bottom of the screen in its own purple, so it covered text.
   With the element, so it matches WooCommerce's own p.demo_store rule, which this file follows. */
p.woocommerce-store-notice {
	position: static;
	width: auto; /* WooCommerce's 100% plus this padding would widen the page. */
	margin: 0;
	padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
	box-shadow: none;
}

p.woocommerce-store-notice a {
	color: inherit;
}

/* The shop's categories (shop-categories) each start under a hairline, like the theme's other ruled rows. */
.basalt-shop-category {
	border-top: var(--wp--custom--hairline);
}

/* ===== Basalt ===== */

/* Secondary words (a treatment's line, the header's address) in a lighter shade of the text colour, so they hold
   contrast on every section style. */
.basalt-muted,
.basalt-header__visit,
.basalt-header__tagline,
.basalt-hero__card .has-small-font-size {
	color: color-mix(in oklab, currentcolor 74%, transparent);
}

/* The header: address, centred name and the tools on one row, the menu centred under it (the split header puts the
   menu between the name and the tools). On a phone the name, the basket and Book, then the menu button. */
.basalt-header__row {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	grid-template-areas: "visit brand tools" "nav nav nav";
	column-gap: var(--wp--preset--spacing--40);
	align-items: center;
	padding: var(--wp--preset--spacing--30) var(--basalt-edge)
		var(--wp--preset--spacing--30);
}

.basalt-header__visit {
	grid-area: visit;
	margin: 0;
}

.basalt-header__brand {
	grid-area: brand;
	text-align: center;
}

.basalt-header__tools {
	grid-area: tools;
}

.basalt-header__nav {
	grid-area: nav;
	margin-top: var(--wp--preset--spacing--40);
}

.basalt-header__tagline {
	font-size: var(--wp--preset--font-size--small);
}

.basalt-header-split .basalt-header__row {
	grid-template-columns: auto 1fr auto;
	grid-template-areas: "brand nav tools";
	padding-bottom: var(--wp--preset--spacing--30);
}

.basalt-header-split .basalt-header__brand {
	text-align: start;
	align-items: flex-start;
}

.basalt-header-split .basalt-header__nav {
	margin-top: 0;
}

/* On a phone the row wraps rather than overflows, so larger text puts Book on a line of its own. */
@media (max-width: 599px) {
	.basalt-header__row,
	.basalt-header-split .basalt-header__row {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--wp--preset--spacing--20);
		padding-bottom: var(--wp--preset--spacing--20);
	}

	.basalt-header__brand {
		flex: 1 1 auto;
		text-align: start;
		align-items: flex-start;
	}

	.basalt-header__tools {
		order: 1;
	}

	.basalt-header__nav {
		order: 2;
		margin-top: 0;
	}

	.basalt-header__visit,
	.basalt-header__tagline {
		display: none;
	}

	/* The header's Book rests at the foot of the screen, in reach of a thumb on every screen of a long page; the page
	   ends with room for it. The editor keeps it in the header. */
	:where(body:not(.editor-styles-wrapper)) .basalt-header__book {
		position: fixed;
		z-index: 20;
		inset-inline: var(--wp--style--root--padding-left);
		bottom: max(
			var(--wp--preset--spacing--30),
			env(safe-area-inset-bottom)
		);
	}

	:where(body:not(.editor-styles-wrapper))
		.basalt-header__book
		.wp-block-button,
	:where(body:not(.editor-styles-wrapper))
		.basalt-header__book
		.wp-block-button__link {
		width: 100%;
	}

	:where(body:not(.editor-styles-wrapper))
		.wp-site-blocks:has(.basalt-header__book) {
		padding-bottom: calc(3.25rem + 2 * var(--wp--preset--spacing--30));
	}

	/* A field that takes focus scrolls clear of the bar, and while a visitor types in a form the bar steps aside, so
	   it never covers the message they are writing. */
	:root:has(.basalt-header__book) {
		scroll-padding-bottom: calc(
			3.25rem + 3 * var(--wp--preset--spacing--30)
		);
	}

	:where(body:not(.editor-styles-wrapper)):has(
			form :is(input, textarea, select):focus
		)
		.basalt-header__book {
		display: none;
	}
}

/* The hero: the photo fills the screen under the voucher bar and the header (9.5rem together), its words in the
   middle of its darker side and the caption at their foot. */
.basalt-hero__photo[style*="min-height:40rem"] {
	min-height: max(
		36rem,
		calc(100svh - 9.5rem)
	) !important; /* Outweighs the pattern's own 40rem, its fallback; a height the buyer sets holds. */
}

.basalt-hero__photo {
	padding-inline: var(
		--basalt-edge
	) !important; /* The words start where the header and the card do. */
}

/* The words sit in the middle of the photo's darker side, the caption at its foot. */
.basalt-hero__photo .basalt-hero__copy {
	max-width: min(40rem, 56vw);
	margin-block: auto; /* Outweighs the layout's block margins, which print after this file. */
}

/* The one Book button on the photo is its brightest thing, in the photo's text colour; Give a voucher stays outline. */
.basalt-hero__photo
	.wp-block-button:not(.is-style-outline)
	> .wp-block-button__link {
	background-color: var(--wp--custom--photo--text);
	color: var(--wp--custom--photo--overlay);
}

.basalt-hero__photo > .wp-block-cover__inner-container {
	align-self: stretch;
	display: flex;
	flex-direction: column;
}

.basalt-hero__photo h1 {
	letter-spacing: -0.02em;
	line-height: 1;
	overflow-wrap: break-word;
	min-width: 0;
}

.basalt-hero__lede {
	max-width: 28ch;
}

.basalt-hero__caption {
	padding-top: var(--wp--preset--spacing--40);
}

/* Lights down: as the hero scrolls away the room's light dims and warms; still where unsupported or reduced. */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.basalt-hero__photo > .wp-block-cover__image-background {
			animation: basalt-lights-down linear both;
			animation-timeline: view();
			animation-range: exit-crossing 0% exit-crossing 100%;
		}
	}
}

@keyframes basalt-lights-down {
	to {
		filter: brightness(0.55) sepia(0.25);
	}
}

/* The counter: a card of today's hours and the most-booked treatments. On a wide screen it shares the photo's cell at
   the end of the wide column, centred against the words; narrower, it hangs just below the photo, clear of them. */
.basalt-hero__card {
	position: relative;
	z-index: 2;
	width: auto;
	margin: -3rem var(--basalt-edge) 0 !important; /* Outweighs the layout's block margins. */
}

@media (min-width: 960px) {
	.basalt-hero {
		display: grid;
	}

	/* The words take what the card leaves of the column, so the two never meet. */
	.basalt-hero__photo .basalt-hero__copy {
		max-width: min(40rem, calc(100vw - 2 * var(--basalt-edge) - 33rem));
	}

	.basalt-hero > * {
		grid-area: 1 / 1;
	}

	.basalt-hero__card {
		align-self: center;
		justify-self: end;
		width: 31rem;
		margin: 0 var(--basalt-edge) 0 0 !important;
	}
}

.basalt-hero__treatments > .wp-block-group {
	padding-block: 0.7rem;
}

/* A long treatment name wraps before its price does. */
.basalt-hero__treatments > .wp-block-group > .wp-block-group {
	flex: 1 1 0;
	min-width: 0;
}

.basalt-hero__treatments .is-style-price {
	white-space: nowrap;
}

.basalt-hero__card a:not(.wp-element-button) {
	color: inherit;
	text-underline-offset: 0.25em;
}

/* On a phone a 3:4 photo, the hands and their stones above and the words at its foot. */
@media (max-width: 781px) {
	.basalt-hero__photo[style*="min-height:40rem"] {
		min-height: calc(100vw * 4 / 3) !important;
	}

	.basalt-hero__photo {
		padding-bottom: var(
			--wp--preset--spacing--60
		) !important; /* Room for the card's overlap under the buttons. */
	}

	/* The phone crop of the theme's own photo at its own focal point: another photo or point the buyer picks holds. */
	.basalt-hero__photo
		> .wp-block-cover__image-background[src*="hero-stones"][style*="object-position:62% 45%"] {
		object-position: 58% 70% !important; /* Outweighs the Cover's focal point, set for the wide crop. */
	}

	.basalt-hero__photo .basalt-hero__copy {
		max-width: none;
		margin-block: auto 0;
	}

	.basalt-hero__card {
		width: auto;
		margin: -1.5rem var(--wp--style--root--padding-right) 0
			var(--wp--style--root--padding-left) !important;
		padding-inline: var(--wp--preset--spacing--50) !important;
	}

	.basalt-hero__caption {
		display: none;
	}
}

/* Fields take Basalt's softer edge: a border light enough to sit with the hairlines yet at 3:1 against the page, and
   rounded corners. A select (the shop's sort order) is a rounded control like the buttons, its own chevron drawn in
   the text colour so it follows every palette. */
:where(
	input:not(
		[type="checkbox"],
		[type="radio"],
		[type="submit"],
		[type="button"],
		[type="reset"],
		[type="image"],
		[type="range"],
		[type="color"],
		[type="hidden"]
	),
	textarea,
	select
) {
	border-color: color-mix(in oklab, currentcolor 55%, transparent);
	border-radius: 0.5rem;
}

:where(select) {
	appearance: none;
	border-radius: var(--wp--custom--button--radius);
	padding-inline: 1.1em 2.6em;
	background-image:
		linear-gradient(45deg, transparent 50%, currentcolor 50%),
		linear-gradient(135deg, currentcolor 50%, transparent 50%);
	background-position:
		calc(100% - 1.35em) 55%,
		calc(100% - 1em) 55%;
	background-size: 0.35em 0.35em;
	background-repeat: no-repeat;
}

/* In a form the select stands among the fields, so it takes their corners rather than the buttons' pill. */
:where(.wpcf7, .mc4wp-form) select {
	border-radius: 0.5rem;
}

/* A form's Send is the outline button: Book stays the one filled control on the screen. Its padding alone falls just
   short of a 44px target at Basalt's button size, so it takes the fields' height. */
.wpcf7 .wpcf7-submit {
	min-height: 2.75rem;
	padding: calc(var(--wp--custom--button--padding--block) - 1px)
		calc(var(--wp--custom--button--padding--inline) - 1px);
	border: 1px solid currentcolor;
	background-color: transparent;
	color: inherit;
}

.wpcf7 .wpcf7-submit:hover {
	box-shadow: inset 0 0 0 1px currentcolor;
}

/* The voucher's amounts and lengths are rounded controls like the buttons, and so is the quantity stepper. */
.wp-block-woocommerce-add-to-cart-with-options
	.wc-block-product-filter-chips
	.wc-block-product-filter-chips__item {
	min-width: 3.5rem;
	padding: 0.5rem 1rem;
	border-radius: var(--wp--custom--button--radius);
	justify-content: center;
}

:root .wp-block-woocommerce-add-to-cart-with-options-quantity-selector,
:root .wc-block-components-quantity-selector,
:root .wc-block-components-quantity-selector::after {
	border-radius: var(--wp--custom--button--radius);
}

/* The card's first line is today's hours from the Opening hours part (the starter's today only), small, its label in
   the lighter shade. */
.basalt-hero__today {
	margin-bottom: var(--wp--preset--spacing--40);
}

.basalt-hero__today .wp-block-table {
	font-size: var(--wp--preset--font-size--small);
}

.basalt-hero__today .is-style-label {
	color: color-mix(in oklab, currentcolor 74%, transparent);
}

/* Product photos sit on warm sand, so a voucher card drawn on a clear ground shows as a card on the table; an opaque
   photo simply covers it. */
.wc-block-components-product-image img,
.woocommerce-product-gallery__image img,
.wc-block-cart-item__image img {
	background-color: var(--wp--preset--color--accent-3);
}

/* The basket's column heads and totals title in the Label style, sentence case: WooCommerce sets them in tracked
   capitals, which Basalt never uses. */
table.wc-block-cart-items .wc-block-cart-items__header,
.wc-block-cart .wc-block-cart__totals-title {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
}

/* A product's description runs the wide column for its tabs, but its lines keep a reading measure. */
.wp-block-woocommerce-product-details .wc-tab > p {
	max-width: 40rem;
}

/* Voucher in envelope (inc/block-styles.php): on the voucher's page the card slides up out of a linen envelope as the
   page opens, once, and rests tucked in its pocket; with reduced motion it simply rests there. The envelope's back
   sits behind the photo and its pocket in front, both mixed from the palette and tilted a little. */
.is-style-envelope .woocommerce-product-gallery__image {
	position: relative;
	overflow: clip;
	background-color: var(--wp--preset--color--accent-3);
}

.is-style-envelope .woocommerce-product-gallery__image::before,
.is-style-envelope .woocommerce-product-gallery__image::after {
	content: "";
	position: absolute;
	inset-inline: 13%;
	bottom: 13%;
	transform: rotate(-3deg);
	pointer-events: none;
}

.is-style-envelope .woocommerce-product-gallery__image::before {
	top: 44%;
	z-index: 0;
	background: color-mix(
		in oklab,
		var(--wp--preset--color--base) 55%,
		var(--wp--preset--color--accent-3)
	);
	box-shadow: 0 1.5rem 2.5rem -1.25rem var(--wp--custom--envelope--shadow);
}

/* The pocket carries the envelope's two folds, meeting at the middle of its foot. */
.is-style-envelope .woocommerce-product-gallery__image::after {
	top: 61%;
	z-index: 2;
	background:
		linear-gradient(
				to top right,
				transparent calc(50% - 0.5px),
				var(--wp--custom--envelope--fold) 50%,
				transparent calc(50% + 0.5px)
			)
			left / 50% 100% no-repeat,
		linear-gradient(
				to top left,
				transparent calc(50% - 0.5px),
				var(--wp--custom--envelope--fold) 50%,
				transparent calc(50% + 0.5px)
			)
			right / 50% 100% no-repeat,
		color-mix(
			in oklab,
			var(--wp--preset--color--base) 75%,
			var(--wp--preset--color--accent-3)
		);
	box-shadow: 0 -0.75rem 1.5rem -1rem var(--wp--custom--envelope--shadow);
}

.is-style-envelope .woocommerce-product-gallery__image > a {
	display: block;
	position: relative;
	z-index: 1;
}

.is-style-envelope .woocommerce-product-gallery__image > img {
	z-index: 3;
}

.is-style-envelope .woocommerce-product-gallery__image .wp-post-image {
	transform: translateY(-4%);
}

/* The slide starts when WooCommerce's script reveals the gallery (its opacity: 1), so it is never over unseen. */
@media (prefers-reduced-motion: no-preference) {
	.is-style-envelope
		.woocommerce-product-gallery[style*="opacity: 1"]
		.woocommerce-product-gallery__image
		.wp-post-image {
		animation: basalt-out-of-envelope 1.6s cubic-bezier(0.22, 0.8, 0.24, 1)
			0.35s both;
	}
}

@keyframes basalt-out-of-envelope {
	from {
		transform: translateY(12%);
	}

	to {
		transform: translateY(-4%);
	}
}

/* The footer's credit line sits under a hairline. */
.basalt-footer__base {
	border-top: var(--wp--custom--hairline);
}

/* The colophon: address, hours and phone as one paragraph, held to a reading measure. */
.basalt-footer__colophon {
	max-width: 46ch;
}

/* The treatment menu: name, what it is for and the prices in three columns; on a phone the name and prices on one
   line, the line under them. */
.basalt-treatment {
	margin: 0;
	padding-block: var(--wp--preset--spacing--40);
}

.basalt-treatment__prices {
	white-space: nowrap;
}

@media (max-width: 781px) {
	.basalt-treatment.wp-block-columns {
		display: grid;
		grid-template-columns: 1fr auto;
		gap: 0.4rem var(--wp--preset--spacing--30);
	}

	.basalt-treatment__about {
		grid-column: 1;
		grid-row: 2;
	}

	/* The prices span both rows, so a second length never pushes the line away from its name. */
	.basalt-treatment__prices {
		grid-column: 2;
		grid-row: 1 / span 2;
	}
}

/* Beside the menu its heading, line and Book stay in view while the rows scroll past. */
@media (min-width: 782px) {
	.basalt-menu__head {
		position: sticky;
		top: var(--wp--preset--spacing--60);
		align-self: flex-start;
	}
}

/* The therapists: one row on a hairline each, the photo, the name and days, and what they are known for. */
.basalt-therapist {
	margin: 0;
	padding-block: var(--wp--preset--spacing--50);
}

.basalt-team__photo {
	margin: 0;
}

/* The vouchers sit straight on the sand band, which is their own ground, cropped close so the card fills its frame,
   and choosing one is a quiet outline control beside the page's one filled Book. */

/* The column may shrink below the vouchers' row, so the phone's swipe row scrolls inside it, not the page. */
.basalt-vouchers .wp-block-column {
	min-width: 0;
}

.basalt-vouchers .wc-block-components-product-image {
	overflow: clip;
}

.basalt-vouchers .wc-block-components-product-image img {
	aspect-ratio: 4 / 3 !important; /* Outweighs WooCommerce's square crop. */
	transform: scale(1.45);
}

/* Everywhere products are listed (the front page, the shop, More vouchers) the card's button is the quiet outline and its
   name is in the ink, not the link colour: the filled control on a screen stays Book. */
.wc-block-product .wp-element-button {
	background-color: transparent;
	color: currentcolor;
	box-shadow: inset 0 0 0 1px currentcolor;
}

.wc-block-product .wp-block-post-title a:where(:not(:hover)) {
	color: inherit;
}

/* The street plan is drawn in eucalyptus on warm sand, the ground the product photos stand on, its blocks a clear
   step darker than the streets, so it reads as a printed plan rather than a box still loading. As heavy as the
   starter's rule, which it follows. */
:root .is-style-street-plan::before {
	background-color: color-mix(in srgb, currentcolor 34%, transparent);
}

/* Find us: the week's hours as a strip of seven days, today's marked by a heavier rule; on a phone the usual rows. */
@media (min-width: 782px) {
	.basalt-visit__week .is-style-hours tbody {
		display: grid;
		grid-template-columns: repeat(7, minmax(0, 1fr));
		column-gap: var(--wp--preset--spacing--30);
	}

	.basalt-visit__week .is-style-hours tr {
		display: flex;
		flex-direction: column;
		gap: var(--wp--preset--spacing--20);
		padding-top: var(--wp--preset--spacing--30);
		border-top: var(--wp--custom--hairline);
	}

	.basalt-visit__week .is-style-hours tr.is-today {
		border-top: 2px solid currentcolor;
	}

	.basalt-visit__week .is-style-hours :is(th, td) {
		padding: 0;
		border: 0;
		text-align: start;
	}

	/* Each day's name is set like a treatment's, so the week holds its band. */
	.basalt-visit__week .is-style-hours td:first-child {
		font-family: var(--wp--preset--font-family--heading);
		font-size: var(--wp--preset--font-size--large);
		font-weight: 400;
	}
}

/* A page's first section follows its title closely, so the title and what it names share the first screen. */
.basalt-page .wp-block-post-content > .alignfull:first-child {
	padding-top: var(
		--wp--preset--spacing--50
	) !important; /* Outweighs the section's own padding, set for the front page. */
}

/* Contact details: one row on a hairline each, what it is at the start and how to reach us at the end. */
.basalt-contact-row {
	padding-block: var(--wp--preset--spacing--40);
}

/* First-visit questions: two columns of rows, each on a hairline like the menu's. */
.basalt-first-visit__questions > .wp-block-details {
	padding-top: var(--wp--preset--spacing--30);
	border-top: var(--wp--custom--hairline);
}

/* A therapist's line keeps a reading measure beside the photo. */
.basalt-therapist__about {
	max-width: 44ch;
}

/* The harbour runs edge to edge in a wide 21:9 band, cropped here: WordPress 6.9's editor drops an aspect ratio set on a
   full-width image block. On a phone it stands taller, so the boat and the quay still read. */
.wp-block-image.basalt-harbour img {
	width: 100%;
	aspect-ratio: 21 / 9;
	object-fit: cover;
}

@media (max-width: 781px) {
	.wp-block-image.basalt-harbour img {
		aspect-ratio: 4 / 3;
		object-position: 70% 60%;
	}
}

/* On a phone the vouchers run as a row to swipe through, the next one cut by the edge, rather than three screens. */
@media (max-width: 599px) {
	.basalt-vouchers .wc-block-product-template {
		position: relative; /* Holds the prices' screen-reader text, absolutely placed, inside the row. */
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 78%;
		gap: var(--wp--preset--spacing--40);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		overscroll-behavior-x: contain;
	}

	.basalt-vouchers .wc-block-product-template > li {
		scroll-snap-align: start;
	}
}
