/*
Theme Name: Sandbar
Theme URI: https://gridwerkthemes.com/themes/sandbar/
Author: Gridwerk Themes
Author URI: https://gridwerkthemes.com/
Description: A block theme for family-run surf camps: the surf weeks ready to book, the tents, bungalows and rooms, the lessons and the beach.
Requires at least: 6.9
Tested up to: 7.1
Requires PHP: 7.4
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sandbar
Tags: e-commerce, holiday, custom-colors, custom-logo, featured-images, full-site-editing, block-patterns, block-styles, rtl-language-support, style-variations, wide-blocks, editor-style, translation-ready
*/

/* 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. */
.sandbar-legal-links {
	display: flex;
	flex-wrap: wrap;
	column-gap: var(--wp--preset--spacing--40);
}

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

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

@media (pointer: coarse) {
	:where(.sandbar-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: sandbar-unfold;
	animation-duration: 0.3s;
	animation-timing-function: ease-out;
}

@keyframes sandbar-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.
   --sandbar-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) {
	--sandbar-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). */
.sandbar-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;
}

.sandbar-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"] > .sandbar-video-toggle__pause,
[aria-pressed="false"] > .sandbar-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,
	.sandbar-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 sandbar-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. */
.sandbar-hours-today .is-style-hours:where(:has(.is-today)) {
	margin: 0;
}

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

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

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

.sandbar-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%;
}

/* 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(.sandbar-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.sandbar-loader::before {
	content: "";
	position: static;
	min-width: 0;
	min-height: 0;
}

body:not(.editor-styles-wrapper) .sandbar-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: sandbar-loader-lift;
}

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

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

.wp-block-spacer.sandbar-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: sandbar-loader-spin;
}

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

.wp-block-spacer.sandbar-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: sandbar-loader-dots;
}

@keyframes sandbar-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. */
.sandbar-loader-bar {
	place-items: start stretch;
}

.wp-block-spacer.sandbar-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: sandbar-loader-bar;
}

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

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

@keyframes sandbar-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) .sandbar-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. */
.sandbar-shop-category {
	border-top: var(--wp--custom--hairline);
}

/* Sandbar. Everything below is this theme's own; the base layer above comes from the starter. */

/* The hero's headline: heavy and tight, its lines close. */
.has-display-font-size {
	line-height: 0.98;
}

/* Running text a step softer than headings and prices, mixed from the text colour so it follows every section. */
:where(
	.sandbar-head > p,
	.is-style-card > .wp-block-group:not(.sandbar-card-price) > p,
	.sandbar-included__head > p,
	.sandbar-place .wp-block-group > p:not(:last-child),
	.sandbar-camp__line,
	.sandbar-band-split .wp-block-media-text__content > p,
	.sandbar-row .wp-block-column > p,
	.sandbar-newsletter__copy > p,
	.is-style-rows > .wp-block-details > p,
	.sandbar-quote cite,
	.sandbar-step > p:last-child
) {
	color: color-mix(in srgb, currentcolor 80%, transparent);
}

/* Book on the inverted bar (the header, the footer) takes the bar's light pair, so it stands off the bar in every
   look as violet on neoprene can't. A colour the buyer picks for the button still wins (core's preset classes). */
.is-style-section-3 .is-style-book > .wp-block-button__link {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

/* A filled button darkens (or, light on dark, lightens) a little under the pointer: a wash of its own text colour
   over whatever background the buyer gives it. The outline button keeps the base layer's doubled ring. */
.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover,
:where(.wp-element-button:not(.wp-block-button__link)):hover {
	background-image: linear-gradient(
		color-mix(in srgb, currentcolor 12%, transparent) 0 0
	);
}

/* Lycra (block style on a Group): the school's rash vest. Its scoop neck is cut into the top edge (a mask, so the
   page shows through), and two stitched raglan seams run from the neck to the arms in the text colour, so they
   follow the Group's colour controls. The background sits in :where(), so the Group's own colour wins, and so does
   the padding: a Group without its own keeps the words clear of the neck. */
:where(.is-style-lycra) {
	padding: calc(
			var(--wp--custom--lycra--neck-depth) +
				var(--wp--preset--spacing--40)
		)
		var(--wp--preset--spacing--50) var(--wp--preset--spacing--50);
	background-color: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--contrast);
}

.is-style-lycra {
	position: relative;
	isolation: isolate;
	mask: radial-gradient(
		var(--wp--custom--lycra--neck-width)
			var(--wp--custom--lycra--neck-depth) at 50% 0,
		transparent 98%,
		#000 100%
	);
}

.is-style-lycra::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	z-index: -1;
	block-size: min(100%, 26rem);
	background-color: color-mix(
		in srgb,
		currentcolor var(--wp--custom--lycra--seam),
		transparent
	);
	mask: url(assets/images/lycra-seams.svg) 0 0 / 100% 100% no-repeat;
	pointer-events: none;
}

/* The school's print under the neck, and a printed number's figures sitting on their line. */
.sandbar-print {
	margin-block-end: var(--wp--preset--spacing--20);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.is-style-number {
	font-variant-numeric: lining-nums;
	white-space: nowrap;
}

/* A number on a square of lycra colour (families, what's included), its words beside or under it. */
p.sandbar-swatch {
	display: grid;
	flex: none;
	place-items: center;
	min-inline-size: 5.5rem;
	min-block-size: 5.5rem;
	margin: 0;
	padding: 0.12em 0.15em 0;
}

@media (max-width: 599px) {
	p.sandbar-swatch {
		min-inline-size: 4.5rem;
		min-block-size: 4.5rem;
	}
}

/* The header: the camp's name at the start; the menu, Book and the basket at the end, on the neoprene bar. */
.sandbar-header__end .wp-block-navigation__container {
	gap: var(--wp--preset--spacing--50);
}

.sandbar-header__bar .wp-block-navigation-item__content {
	text-decoration: none;
}

.sandbar-header__bar
	.wp-block-navigation
	.wp-block-navigation-item__content:hover {
	text-decoration: underline 2px;
	text-underline-offset: 0.4em;
}

.sandbar-header__book .wp-element-button {
	padding: 0.75rem 1.25rem;
	white-space: nowrap;
}

/* On a phone the hero's own Book leads to the weeks, so the header keeps the name, the basket and the menu on one row. */
@media (max-width: 599px) {
	.sandbar-header__book {
		display: none;
	}
}

/* The centred hero over the water. */
.sandbar-hero-centre .wp-block-cover__inner-container {
	text-align: center;
}

/* The hero: the lycra at the start of the photo's foot, the season's facts on the photo at the end. This outweighs
   core's width: auto for a Cover with its content at a corner. */
.wp-block-cover.sandbar-hero.sandbar-hero.has-custom-content-position.has-custom-content-position
	> .wp-block-cover__inner-container {
	width: 100%;
}

.sandbar-hero__row {
	align-items: flex-end;
}

.sandbar-hero__lycra {
	--wp--custom--lycra--neck-width: 8rem;
	--wp--custom--lycra--neck-depth: 2.4rem;

	flex: 0 1 44rem;
}

.sandbar-hero__lycra h1 {
	max-inline-size: 12ch;
}

.sandbar-hero__price {
	text-align: end;
}

.sandbar-hero__foot,
.sandbar-card-price,
.sandbar-close__body {
	inline-size: 100%;
}

/* The season's facts: each a neoprene tag on the photo, its label in the photo pair's accent. */
.sandbar-facts {
	font-weight: 500;
	line-height: 1.3;
}

.wp-block-group.sandbar-facts > p {
	margin: 0;
	padding: 0.45rem 0.8rem;
	background-color: var(--wp--custom--photo--overlay);
	color: var(--wp--custom--photo--text);
}

.sandbar-facts strong {
	color: var(--wp--custom--photo--label);
	font-weight: 700;
}

/* On a phone the photo is a band above the lycra, which runs the screen's width, its neck showing the photo; the
   season's facts, which also stand in what's included and the close, are left out. */
@media (max-width: 781px) {
	.sandbar-hero > .wp-block-cover__image-background {
		inset: 0 0 auto;
		block-size: 19rem;
	}

	.sandbar-hero .sandbar-hero__row {
		flex-direction: column;
		align-items: stretch;
		margin-block-start: 9.5rem;
	}

	.sandbar-hero .sandbar-hero__facts {
		display: none;
	}

	.sandbar-hero .sandbar-hero__lycra {
		--wp--custom--lycra--neck-width: 5.5rem;
		--wp--custom--lycra--neck-depth: 1.7rem;

		flex-basis: auto;
		margin-inline: calc(var(--wp--style--root--padding-left) * -1)
			calc(var(--wp--style--root--padding-right) * -1);
	}

	.sandbar-hero__price {
		text-align: start;
	}
}

/* A section's head: the heading at the start, its sentence beside it on the foot line, or under it once it wraps. */
.sandbar-head > :last-child {
	max-inline-size: 32em;
}

/* The product page's photo fills its column. */
.wp-block-woocommerce-product-image-gallery .woocommerce-product-gallery img {
	inline-size: 100%;
}

/* The week's photo crops square beside its choices and facts, so both columns end together whatever the photo's
   shape, and 4:3 once they stack; the lightbox still opens the whole photo. */
.wp-block-woocommerce-product-image-gallery
	.woocommerce-product-gallery__image
	img {
	aspect-ratio: 4 / 3;
	block-size: auto;
	object-fit: cover;
}

@media (min-width: 782px) {
	.wp-block-woocommerce-product-image-gallery
		.woocommerce-product-gallery__image
		img {
		aspect-ratio: 1;
	}
}

/* A week or a place: the price and Book at the foot, so the lycras in a row end on one line. */
.sandbar-card-price {
	align-items: flex-end;
}

:is(.is-style-lycra, .is-style-card) > .sandbar-card-price:last-child {
	margin-block-start: auto;
}

.sandbar-price {
	white-space: nowrap;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.04em;
}

/* A week's number in the middle of its lycra, with room above and below. */
.sandbar-week > .is-style-number {
	margin-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--60);
}

/* A place's number printed over the end of its photo's foot, its name below. */
.sandbar-stay > .sandbar-stay__name {
	margin-block-start: calc(
		var(--wp--preset--font-size--numeral-small) * -0.42
	);
	padding-inline: var(--wp--preset--spacing--20);
}

.wp-block-group.sandbar-stay > h3,
.wp-block-group.sandbar-stay > p,
.wp-block-group.sandbar-stay > .sandbar-card-price {
	padding-inline: var(--wp--preset--spacing--20);
}

/* Card (block style on a Group): a flat panel a step lighter than the page, its first photo running to the edges
   and its last row (the price, Book, a post's date) on a hairline at the foot. The background sits in :where(), so
   the Group's own colour control wins. */
:where(.is-style-card) {
	background-color: var(--wp--custom--card--background);
	color: var(--wp--preset--color--contrast);
}

.is-style-card {
	overflow: clip;
}

.is-style-card
	> :is(
		.wp-block-image,
		.wp-block-post-featured-image,
		.wp-block-woocommerce-product-image
	) {
	margin: 0;
}

.is-style-card
	> :is(
		.wp-block-image,
		.wp-block-post-featured-image,
		.wp-block-woocommerce-product-image
	)
	img {
	display: block;
	width: 100%;
}

.is-style-card .sandbar-card-price:last-child:not(:first-child) {
	border-top: var(--wp--custom--hairline);
}

/* Plus list (the Tags block style on a List): what a week includes, each thing after a plus. */
.wp-block-list.is-style-tags {
	display: grid;
	gap: 0.15rem;
	margin-block-end: 0;
	padding-inline-start: 0;
	list-style: none;
	font-weight: 500;
}

.is-style-tags > li::before {
	content: "+\00a0";
	font-weight: 700;
}

/* The beach and the close: a photo filling its half beside a lycra, edge to edge. */
:is(.sandbar-beach, .sandbar-close) > .wp-block-column {
	display: flex;
	flex-direction: column;
}

:is(.sandbar-beach, .sandbar-close) > .wp-block-column > * {
	flex: 1 1 auto;
	margin: 0;
}

:is(.sandbar-beach, .sandbar-close) .wp-block-image {
	position: relative;
	min-block-size: 15rem;
}

:is(.sandbar-beach, .sandbar-close) .wp-block-image img {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.sandbar-beach {
	min-block-size: 37.5rem;
}

.sandbar-beach__lycra {
	--wp--custom--lycra--neck-width: 8rem;
	--wp--custom--lycra--neck-depth: 2.4rem;
}

.wp-block-group.sandbar-beach__lycra > p {
	max-inline-size: 34em;
}

.sandbar-beach__facts {
	inline-size: 100%;
}

.sandbar-close__copy {
	flex: 1 1 20rem;
}

.sandbar-close__nights {
	flex: 0 1 auto;
	min-inline-size: 0;
}

/* On a phone the beach's photo follows its words, and the close's photo follows the lycra. */
@media (max-width: 781px) {
	.sandbar-beach > .wp-block-column:first-child {
		order: 2;
	}

	.sandbar-close .sandbar-close__nights.is-layout-flex {
		flex-direction: row;
		align-items: flex-end;
		order: -1;
	}

	.sandbar-close__nights > .is-style-number {
		font-size: var(--wp--preset--font-size--numeral-small);
	}
}

/* The camp: columns of photos that fill their places, the lycra note over the path, the meadow large in the
   middle, the pines tall at the end; the walk across the foot. Each photo fills what its column leaves. */
.sandbar-mosaic {
	align-items: stretch;
}

.sandbar-mosaic > .wp-block-column {
	display: flex;
	flex-direction: column;
}

.sandbar-mosaic > .wp-block-column > .wp-block-image {
	position: relative;
	flex: 1 1 auto;
	min-block-size: 14rem;
	margin: 0;
}

.sandbar-mosaic > .wp-block-column > .wp-block-image img {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.sandbar-mosaic > .wp-block-column > .is-style-lycra {
	--wp--custom--lycra--neck-width: 4.5rem;
	--wp--custom--lycra--neck-depth: 1.6rem;

	flex: 1 1 auto;
}

/* The walk across the foot as a 3:1 band. WordPress 6.9's editor clears the aspect ratio of a wide image, so the
   crop lives here, not on the block. */
.wp-block-image.alignwide.sandbar-walk img {
	aspect-ratio: 3 / 1;
	object-fit: cover;
}

/* Mosaic (block style on a Gallery): the first photo large over two rows, the others beside it. More or fewer
   photos fill further rows of the same grid. The :not(#…) matches the weight of core's gallery rules. */
.wp-block-gallery.has-nested-images.is-style-mosaic {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-auto-rows: 16.25rem;
}

.wp-block-gallery.has-nested-images.is-style-mosaic
	figure.wp-block-image:not(#individual-image) {
	width: auto;
	height: 100%;
	margin: 0;
	overflow: clip;
}

.wp-block-gallery.has-nested-images.is-style-mosaic
	figure.wp-block-image:not(#individual-image):first-child {
	grid-row: span 2;
}

/* Four photos: the last one takes the row's two places, so no gap is left. */
.wp-block-gallery.has-nested-images.is-style-mosaic
	figure.wp-block-image:not(#individual-image):nth-child(4):last-child {
	grid-column: span 2;
}

.wp-block-gallery.has-nested-images.is-style-mosaic
	figure.wp-block-image:not(#individual-image)
	img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (max-width: 781px) {
	.wp-block-gallery.has-nested-images.is-style-mosaic {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 13.75rem;
		grid-auto-rows: 9.5rem;
	}

	.wp-block-gallery.has-nested-images.is-style-mosaic
		figure.wp-block-image:not(#individual-image):first-child {
		grid-column: span 2;
		grid-row: span 1;
	}
}

/* A split band (a family's day, the photo and text rows): the photo edge to edge beside the words, which end on
   the wide edge. */
.sandbar-band-split {
	min-height: 37.5rem;
}

.sandbar-band-split > .wp-block-media-text__content {
	padding: var(--wp--preset--spacing--80) var(--sandbar-edge)
		var(--wp--preset--spacing--80) var(--wp--preset--spacing--70);
}

:where(.has-media-on-the-right).sandbar-band-split
	> .wp-block-media-text__content {
	padding: var(--wp--preset--spacing--80) var(--wp--preset--spacing--70)
		var(--wp--preset--spacing--80) var(--sandbar-edge);
}

.sandbar-band-split > .wp-block-media-text__content > * + * {
	margin-block-start: var(--wp--preset--spacing--40);
}

.sandbar-band-split > .wp-block-media-text__content > p {
	max-inline-size: 30em;
}

@media (max-width: 600px) {
	.sandbar-band-split > .wp-block-media-text__media {
		min-height: 22.5rem;
	}

	.sandbar-band-split > .wp-block-media-text__content {
		padding-block: var(--wp--preset--spacing--70);
	}
}

.sandbar-beach__term,
.sandbar-term {
	flex: 0 0 8.5rem;
}

/* Families: the child's group named on a pistachio tag at the photo's foot (the image's caption). */
.sandbar-tagged {
	position: relative;
}

.sandbar-tagged figcaption {
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: 0;
	margin: 0;
	padding: 0.7rem 1.1rem;
	background-color: var(--wp--preset--color--accent-2);
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

/* A photo that runs edge to edge on a phone, above its words. */
@media (max-width: 781px) {
	.wp-block-columns > .sandbar-bleed-phone,
	.wp-block-columns > .sandbar-bleed-start {
		margin-inline: calc(var(--wp--style--root--padding-left) * -1)
			calc(var(--wp--style--root--padding-right) * -1);
	}
}

/* Lessons and other pages: the photo runs off the page's start edge beside the words. */
@media (min-width: 782px) {
	.wp-block-columns > .sandbar-bleed-start {
		margin-inline-start: calc(var(--sandbar-edge) * -1);
	}

	/* A photo beside a long column (the Contact page's details and form) stays in view while the words scroll by. */
	.wp-block-columns > .sandbar-held {
		position: sticky;
		top: var(--wp--preset--spacing--50);
	}
}

/* What every week includes: each thing under its number, or beside it on a phone, as the families rows. */
@media (max-width: 599px) {
	.sandbar-included-item.is-layout-flex.is-layout-flex {
		flex-direction: row;
		align-items: center;
	}
}

/* Hairline rows of what a week includes (older pages). */
.sandbar-item {
	border-top: var(--wp--custom--hairline);
}

/* A place to stay, a row at a time: the photo beside its words, every other row the other way round. On a phone
   the photo is always above. */
@media (min-width: 782px) {
	.wp-block-columns.sandbar-row-flip {
		flex-direction: row-reverse;
	}
}

/* Questions in ruled rows: the question in the heading weight, the answer a step softer under it. */
.is-style-rows > .wp-block-details > summary {
	font-weight: 700;
}

.is-style-rows > .wp-block-details > p {
	margin-block-start: var(--wp--preset--spacing--30);
	max-inline-size: 40em;
}

/* A dated row: the date in the term column, the title and its line beside it; on a phone, all three stacked. */
.sandbar-dated {
	display: grid;
	gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
}

.wp-block-group.sandbar-dated > * {
	margin: 0;
}

@media (min-width: 600px) {
	.sandbar-dated {
		grid-template-columns: 8.5rem 1fr;
	}

	.sandbar-dated > :first-child {
		grid-row: span 2;
	}

	.sandbar-dated > :not(:first-child) {
		grid-column: 2;
	}
}

/* On a phone the term column of ruled rows narrows, so the text beside a time or a short word keeps its room. */
@media (max-width: 599px) {
	.sandbar-beach__term,
	.sandbar-term {
		flex-basis: 6.5rem;
	}
}

/* The statement quote: heavy and close, at the start, the person who said it in the body size. */
.wp-block-pullquote.sandbar-statement {
	padding: 0;
	border: 0;
	text-align: start;
}

.wp-block-pullquote.sandbar-statement p {
	max-inline-size: 22em;
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.025em;
}

.wp-block-pullquote.sandbar-statement cite {
	display: block;
	margin-block-start: var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 700;
}

/* Guests' words: no rule beside them, only the text and who said it. */
.wp-block-quote.sandbar-quote {
	margin: 0;
	padding: 0;
	border: 0;
}

/* The newsletter panel: the words take the room, the form or button sits at the end. */
.sandbar-newsletter__copy {
	flex: 1 1 24rem;
	max-inline-size: 38em;
}

/* The footer: its credits on a hairline across the wide width. */
.sandbar-footer__foot {
	border-top: var(--wp--custom--hairline);
}

/* A post's or a week's title on a card in the text colour, as a card's other headings. */
.is-style-card .wp-block-post-title a {
	color: inherit;
}

/* The product page: the description on a reading measure under a heading a step below the week's name, the
   photo filling its column, the price on the facts' start edge. */
.woocommerce-tabs .wc-tab > p {
	max-inline-size: 42rem;
}

.woocommerce-tabs .wc-tab > h2 {
	font-size: var(--wp--preset--font-size--large);
}

.woocommerce main .wp-block-woocommerce-product-image-gallery {
	max-inline-size: none;
}

:is(.add-to-cart-price) {
	text-align: start;
}

/* The week cards need room for a sentence and the price beside Book: no column narrower than 15rem, where
   WooCommerce allows 150px, so a phone shows one card across and a tablet two. */
.wp-block-woocommerce-product-collection
	.wc-block-product-template__responsive.columns-2 {
	grid-template-columns: repeat(
		auto-fill,
		minmax(min(100%, max(15rem, calc(50% - 0.625em))), 1fr)
	);
}

.wp-block-woocommerce-product-collection
	.wc-block-product-template__responsive.columns-3 {
	grid-template-columns: repeat(
		auto-fill,
		minmax(min(100%, max(15rem, calc(33.333% - 0.8333em))), 1fr)
	);
}

.wp-block-woocommerce-product-collection
	.wc-block-product-template__responsive.columns-4 {
	grid-template-columns: repeat(
		auto-fill,
		minmax(min(100%, max(15rem, calc(25% - 0.9375em))), 1fr)
	);
}

/* A week's choices (where you sleep, the week it starts) stand apart, each its own group of chips. */
.wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute
	+ .wp-block-woocommerce-add-to-cart-with-options-variation-selector-attribute {
	margin-block-start: var(--wp--preset--spacing--40);
}

/* Each choice is a tag on the button's corners, as every other control a guest presses; a colour swatch keeps
   its round shape. */
.wp-block-woocommerce-add-to-cart-with-options
	.wc-block-product-filter-chips__item:not(.is-style-swatch *) {
	padding: 0.5em 1.1em;
	border-radius: var(--wp--custom--button--radius);
}

/* The end of a post: one row on a hairline. */
.sandbar-post-end {
	border-top: var(--wp--custom--hairline);
}
