/* ABOUTME: The class and token conventions BrandSpark's section patterns are drawn with, on the front end and in */
/* ABOUTME: the editor. Each convention reads tokens a look or the brand sets, and draws nothing while none is set. */

/*
 * Classes a pattern carries:
 *   .bs-section    a composed section: its vertical rhythm
 *   .bs-ornament   a section or block that may carry a corner ornament (the built-in star, or the brand's motif)
 *   .bs-ornament-start  puts a section's ornament at the start corner rather than the end
 *   .bs-ornament-squiggle, .bs-ornament-sparkle  the built-in set's other shapes for a section's ornament
 *   .bs-sticker    a short label set on a coloured tab, turned by the look
 *   .bs-tilt-card  a card in a row of columns or of a Query Loop's items, turned by the look, alternating direction
 *   .bs-arch       a block whose images (or, holding nothing focusable, itself) take the look's image shape
 *   .bs-motif      a filled block (a gallery tile) that carries the brand's motif over its fill
 *   .bs-frame      a filled block standing in for a picture: square, covered by the picture placed in it (an image,
 *                  or a work record's featured image in a gallery's Query Loop item)
 *   .bs-card       one item of a row of services (a service record in a Query Loop's item, or the plan's in a
 *                  preview): its words a little clear of the row above and below
 *   .bs-header, .bs-header-row, .bs-header-menu  the header part, its row and the wrapper the menu row is filled on
 *                  (the logo, where a Brand has one, stands in for the title in every look: theme.json)
 *   .bs-menu-action, .bs-menu-action-link  the open phone menu's main button (the plugin's `Main_Action`), shown only in the open menu, aligned with its items
 *   .bs-header-brand  the header's logo and title, which narrow, down to a floor, before the menu leaves the row
 *   .bs-footer     the footer part; inside it .bs-footer-inner (its one wide row, which holds the ornament),
 *                  .bs-footer-main (.bs-footer-brand, .bs-footer-details with .bs-footer-visit and .bs-footer-hello,
 *                  .bs-footer-out) and .bs-footer-base (the plugin's footer menu, .bs-footer-small: the legal lines and
 *                  the copyright); a detail's .bs-footer-row and its .bs-footer-label; .bs-socials and each .bs-social;
 *                  .bs-footer-action (shop, booking). The plugin drops a .bs-footer-set holding no .bs-footer-item and,
 *                  where the page drew a contact-details row, the .bs-unless-contact-details details
 *   .bs-address-line, .bs-address-sep  the footer's address a line at a time, and the comma between its lines
 *   .bs-link-name  the name a link gives its field (WhatsApp), which a look drops where the row's label shows it
 *   .bs-hero, .bs-hero-words, .bs-hero-picture  the hero's words and picture, laid out by the look
 *   .bs-services-teaser, .bs-range-card, .bs-card-picture, .bs-card-words  the services teaser's row of cards
 *   .bs-gallery-teaser, .bs-gallery-tiles  the gallery teaser and its row of frames
 *   .bs-about-teaser, .bs-about, .bs-about-picture, .bs-about-words  the about teaser's picture and words
 *   .bs-points, .bs-point  why-us's points
 *   .bs-band       the call-to-action band
 *   .bs-detail     a Business details row in the contact section: a static label beside its bound value
 *   .bs-detail-link  a detail's value that is a link (an email, a phone), on core/button: drawn as text
 *   .bs-legal      a legal line in the footer: a static label (but the registered name's) beside its value
 *   .bs-contact-form  the plugin's contact-form block: labelled fields, a send button in a row of its own, and its
 *                  trap field hidden
 *   .bs-contact-actions  an actions row, tagged at render by the plugin's `Second_Button` by its buttons' bindings: the
 *                  contact section's (WhatsApp, the shop, booking), and the footer's shop and booking row, which is
 *                  never painted; a main button and a detail's link are never tagged
 *
 * Tokens (theme.json `settings.custom`, so `--wp--custom--*`):
 *   --wp--custom--look--*   set by a look: section-space; tilt-sticker, sticker-display, sticker-padding,
 *                           sticker-background, sticker-text; tilt-card, card-outline; image-mask, arch-height;
 *                           ornament, band-edge; and each section's own (header-*, menu-*, hero-*, headline-*, range-*,
 *                           card-*, gallery-*, about-*, why-us-*, band-*, footer-*, section-heading-*), each read
 *                           straight into a property, its fallback the Classic look. A look that draws stickers paints
 *                           them in a lever pair: the sticker pair, falling back to the tint pair.
 *   --wp--custom--lever--*  colour pairs the app computes from the brand (tint, band, sticker, ink, accent, and the
 *                           Kit's button), single colours (ornament, ink-accent) and the heading family's light and
 *                           heavy weights, which only a look names
 *   --wp--custom--kit--*    the Kit's own headings, which every site prints from its global styles (functions.php):
 *                           headline-weight (h1), section-heading-size and section-heading-weight (h2)
 *   --wp--custom--space--*  the site's style, never a look's: section-scale, which multiplies a section's rhythm (1)
 *   --wp--custom--nav--*    the site's style, never a look's: the menu items' family, weight, transform and tracking,
 *                           in the header's row and the open menu, read only under the body class `bs-has-nav-type`
 *                           (the plugin's `Nav_Type`, while the brand sends them), so without them the items keep the
 *                           Link role's type (the open menu's weight the look's menu-item-weight); the menu's main
 *                           button and its Menu and Close words keep their own type
 *   --wp--custom--card--*   the site's style, never a look's: a card's padding, radius, shadow, border-width,
 *                           border-color, background, text, image-inset, image-radius and block-size (a Query Loop's
 *                           card filling its row's track), from the brand's Components, each falling back to the card
 *                           drawn without it (text to the section's colour); a sent border width replaces a look's
 *                           card-outline
 *   --wp--custom--field--*  the site's style, never a look's: the contact form's fields' padding, radius, border-width,
 *                           refused-border-width, border-color, background, text, placeholder, gap, label-columns
 *                           and control-column (Send's row's too, so Send starts where the controls do), control-row
 *                           (the row a label beside shares with its control) and
 *                           label-offset (a label beside set down level with its control's text at rest), each falling back to
 *                           the field drawn without it
 *   the second button's lever (`secondary--background`, `-text` and `-border` among the levers above) and
 *   --wp--custom--secondary--hover-decoration  the site's style, never a look's: the brand's second button, painting
 *                           the contact section's actions row only under the body class `bs-has-second-button` (the
 *                           plugin's `Second_Button`, while the brand sends the lever)
 *   --wp--custom--motif--*  the brand's motif: image, and builtin (0 hides the built-in ornament)
 *   --wp--custom--shape--*  the theme's own unpainted masks (wave, star, squiggle, sparkle), in theme.json
 *   --wp--custom--icon--*   the footer's social icons (instagram, facebook, linkedin, tiktok, youtube): masks drawn in
 *                           the link's colour, in theme.json
 *
 * With no token set every convention draws nothing of its own, and each section draws as the Classic look: a site
 * without a look renders plainly. A token whose Classic value is the Kit's own (a section heading's size, every
 * heading's weight) falls back to the Kit's variable, and that to theme.json's own h1 or h2 value, so a page drawn
 * without the variables (a request served by older theme PHP during a deploy) keeps a heading's size and weight.
 * Colours come only from the brand's presets and levers; no colour value is written here (D5).
 */

/* A composed page's sections carry their own rhythm. The front page outranks a page's template and keeps
 * its main's padding for a page written by hand; a page that opens or closes with a section drops it on
 * that edge only, so a section placed mid-page leaves the title clear of the header. The padding is
 * inline, so only !important overrides it. */
main:has(> .wp-block-post-content > .bs-section:first-child) {
	padding-block-start: 0 !important;
}

main:has(> .wp-block-post-content > .bs-section:last-child) {
	padding-block-end: 0 !important;
}

/* A page's regions meet: core spaces a template's top-level blocks by the root block gap (`:where(.wp-site-blocks) > *`,
 * of no weight), which would draw a strip of the page above main and above the footer. Each region keeps its own
 * padding. The Site Editor's canvas root carries `wp-site-blocks` too, so the template is edited as it is drawn. */
.wp-site-blocks > :is(main, footer) {
	margin-block-start: 0;
}

.bs-section {
	position: relative;
	padding-block: calc(var(--wp--custom--look--section-space, var(--wp--preset--spacing--16)) * var(--wp--custom--space--section-scale, 1));
	overflow-x: clip;
}

/* Full-bleed sections touch: no strip of the root block gap between two of them. */
.bs-section + .bs-section {
	margin-block-start: 0;
}

/* A section clips what overflows it, so a word wider than the screen wraps rather than being cut off; a
 * heading may break anywhere, so a long word in it also narrows its column instead of pushing past it. A
 * heading's lines are balanced, so a short last word never sits alone under a narrow measure. */
:where(.bs-section) {
	overflow-wrap: break-word;
}

:where(.bs-section) :is(h1, h2, h3, h4, h5, h6) {
	overflow-wrap: anywhere;
	text-wrap: balance;
}

/* A sticker is hidden until a look that draws stickers shows it: the hero's tagline is one. Shown, it takes its words'
 * width, placed as the hero's words are (centred, or at their start), and longer words wrap inside its own box. */
.bs-sticker {
	display: var(--wp--custom--look--sticker-display, none);
	inline-size: fit-content;
	rotate: var(--wp--custom--look--tilt-sticker, 0deg);
	padding: var(--wp--custom--look--sticker-padding, 0);
	background-color: var(--wp--custom--look--sticker-background, transparent);
	color: var(--wp--custom--look--sticker-text, inherit);
}

/* Core's layout spaces every child but the first, so a sticker carries the gap after itself: a hidden one leaves the
 * block after it at the top of the hero's words, where it stands with no sticker at all. */
.bs-hero-words > .bs-sticker {
	margin-block-end: var(--wp--style--block-gap);
}

.bs-hero-words > .bs-sticker + * {
	margin-block-start: 0;
}

.bs-arch {
	min-block-size: var(--wp--custom--look--arch-height, auto);
}

/* The mask clips everything inside it, a focus ring included, so it never goes on a block that holds
 * something focusable: there it shapes the images, and the links and buttons keep their rings. */
.bs-arch img {
	clip-path: var(--wp--custom--look--image-mask, none);
}

.bs-arch:not(:has(a, button, input, select, textarea, [tabindex], iframe, video[controls])) {
	clip-path: var(--wp--custom--look--image-mask, none);
}

/* A picture's place: its fill shows until a picture is placed, which then covers it whatever its own size
 * or shape. The picture is an image block, or a record's featured image in a Query Loop's item. */
.bs-frame {
	aspect-ratio: 1;
}

.bs-frame > .wp-block-post-featured-image,
.bs-frame > .wp-block-image {
	block-size: 100%;
	margin: 0;
}

.bs-frame .wp-block-post-featured-image img,
.bs-frame .wp-block-image img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

/* One card of a row of services: its words a little clear of the row above and below, under a short rule in the
 * brand's primary, the one fill every brand has. The rule is decorative, drawn by the stylesheet so it reaches no
 * assistive technology; the services teaser's cards open with their picture instead. The brand's card tokens give it
 * padding all round, a ground, an edge, corners, a shadow and its words' colour, read on its own ground rather than
 * the section's (the services teaser's tint pair); with none sent it has none of them, and its words keep the section's
 * colour. No rule inside a card names a colour, so its heading and words follow its own, as do the services teaser's
 * links, which take their text's colour. */
.bs-card {
	padding-block: var(--wp--custom--card--padding, var(--wp--preset--spacing--4));
	padding-inline: var(--wp--custom--card--padding, 0px);
	border: var(--wp--custom--card--border-width, 0px) solid var(--wp--custom--card--border-color, var(--wp--preset--color--primary));
	border-radius: var(--wp--custom--card--radius, 0);
	background-color: var(--wp--custom--card--background, transparent);
	box-shadow: var(--wp--custom--card--shadow, none);
	color: var(--wp--custom--card--text, inherit);
}

.bs-card:not(.bs-range-card)::before {
	content: "";
	display: block;
	inline-size: 3rem;
	block-size: 0.25rem;
	margin-block-end: var(--wp--preset--spacing--4);
	background-color: var(--wp--preset--color--primary);
}

/* A row of cards is a grid of equal tracks no narrower than a heading word: three on a row where they fit,
 * fewer where they do not, and a card left on a row of its own keeps its track's width. A row of columns (the
 * plan's cards a preview draws) and a Query Loop's list of records (a site's services) are drawn alike: core's
 * own layout gives each the block gap between its cards, and this rule the tracks. */
.wp-block-columns:has(> .bs-tilt-card),
.wp-block-post-template:has(> li > .bs-tilt-card) {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

.wp-block-columns > .bs-tilt-card:nth-child(odd),
.wp-block-post-template > li:nth-child(odd) .bs-tilt-card {
	rotate: var(--wp--custom--look--tilt-card, 0deg);
}

.wp-block-columns > .bs-tilt-card:nth-child(even),
.wp-block-post-template > li:nth-child(even) .bs-tilt-card {
	rotate: calc(-1 * var(--wp--custom--look--tilt-card, 0deg));
}

/* A row's cards share a height where the brand's card tokens say so, so cards that paint a ground, an edge or a shadow
 * end level: a Query Loop's card fills the list item its row's grid stretches to the track (a row of columns' card is
 * that item itself, stretched already). With no token each card is as tall as its words. */
.wp-block-post-template > li > .bs-card {
	block-size: var(--wp--custom--card--block-size, auto);
}

/* A look may outline a row's cards in the brand's primary, the one fill every brand has; an outlined card's words keep
 * ten outline-widths from its sides. With no outline the card has neither a border nor room kept for one. The brand's
 * own card wins: the brand sends both its border width and its padding, so the look's outline is never read, and the
 * brand's None draws no edge on any look. */
.bs-card.bs-tilt-card {
	border: var(--wp--custom--card--border-width, var(--wp--custom--look--card-outline, 0px)) solid var(--wp--custom--card--border-color, var(--wp--preset--color--primary));
	padding-inline: var(--wp--custom--card--padding, calc(var(--wp--custom--look--card-outline, 0px) * 10));
}

.bs-ornament {
	position: relative;
}

.bs-ornament::before,
.bs-ornament::after {
	content: "";
	position: absolute;
	inset-block-start: 0.5rem;
	/* At the wide column's corner, so on a wide screen it stands by the section's words, not the screen's edge. */
	inset-inline-end: max(0.5rem, calc((100% - var(--wp--style--global--wide-size, 1200px)) / 2));
	inline-size: 3rem;
	block-size: 3rem;
	pointer-events: none;
	display: var(--wp--custom--look--ornament, none);
}

/* The built-in star, painted by the brand's ornament lever or its accent where masks are drawn: without them the paint
 * would fill the ornament's whole box. */
@supports (mask-image: none) or (-webkit-mask-image: none) {
	.bs-ornament::before {
		background-color: var(--wp--custom--lever--ornament, var(--wp--preset--color--accent));
	}

	/* A filled section's ornament takes the section's own paint, since the brand's ornament paint (the accent) may be
	 * its fill. */
	.bs-section-why-us.bs-ornament::before {
		background-color: var(--wp--custom--look--why-us-ornament, var(--wp--custom--lever--ornament, var(--wp--preset--color--accent)));
	}

	.bs-band .bs-ornament::before {
		background-color: var(--wp--custom--look--band-ornament, var(--wp--custom--lever--ornament, var(--wp--preset--color--accent)));
	}

	/* The footer's, in a colour that reads on its fill. */
	.bs-footer .bs-ornament::before {
		background-color: var(--wp--custom--look--footer-ornament, var(--wp--custom--lever--ornament, var(--wp--preset--color--accent)));
	}
}

.bs-ornament::before {
	-webkit-mask: var(--wp--custom--shape--star, none) center / contain no-repeat;
	mask: var(--wp--custom--shape--star, none) center / contain no-repeat;
	opacity: var(--wp--custom--motif--builtin, 1);
}

/* A section may put its ornament at the start corner instead: the hero's, so it stays clear of the sticker. */
.bs-ornament.bs-ornament-start::before,
.bs-ornament.bs-ornament-start::after {
	inset-inline-end: auto;
	inset-inline-start: max(0.5rem, calc((100% - var(--wp--style--global--wide-size, 1200px)) / 2));
}

/* The built-in set's other shapes: a section names one in place of the star, shown only where the ornament is.
 * The brand's motif still draws over any of them. */
.bs-ornament.bs-ornament-squiggle::before {
	display: var(--wp--custom--look--ornament, none);
	-webkit-mask-image: var(--wp--custom--shape--squiggle, none);
	mask-image: var(--wp--custom--shape--squiggle, none);
}

.bs-ornament.bs-ornament-sparkle::before {
	display: var(--wp--custom--look--ornament, none);
	-webkit-mask-image: var(--wp--custom--shape--sparkle, none);
	mask-image: var(--wp--custom--shape--sparkle, none);
}

/* The brand's motif, drawn over the star's place when it has one. */
.bs-ornament::after {
	background: var(--wp--custom--motif--image, none) center / contain no-repeat;
}

/* The brand's motif over a block's palette fill, inside the block's padding; with no motif the fill shows
 * alone. Longhands only, so the fill's background colour is kept. */
.bs-motif {
	background-image: var(--wp--custom--motif--image, none);
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
	background-origin: content-box;
}

/* The sections a look lays out. Each reads its section's tokens straight into a property, and each fallback is the
 * Classic look. A section a look fills names its lever pair then the page in the look's own value; Classic fills the
 * header's menu row and the services teaser with the tint pair, then the page, and the band (styles/sections/band.json)
 * with the ink pair, then the tint pair, then the ink and surface presets. Links in a section a look may fill take its
 * words' colour. Phone width is under 600px, where WordPress's navigation turns into its menu button. */

/* A composed section's heading face is never synthesised: a weight the family lacks draws as the nearest face it
 * has. Pages outside the sections (an M5 starter's) draw their headings as they always have. */
:where(.bs-section) :where(h1, h2, h3, h4, h5, h6) {
	font-synthesis-weight: none;
}

/* The header: Classic stacks the title over a menu row filled with the tint pair from edge to edge (the fill is a
 * border image, which reaches the screen's edges without widening the page); a look may set one row instead. The menu's
 * wrapper stretches across Classic's stack and down a row's height, and holds its menu in its middle either way, so in a
 * row the nav (and on a phone the menu button) sits on the logo's centre. In a row, a logo or name too wide for the room
 * beside the menu narrows inside its box (Toby, 2026-11-27), so the menu keeps the row, but never under a floor: past
 * it the row wraps and the menu drops under the logo, so a menu a customer lengthens never squeezes the logo away. */
.wp-block-group.bs-header-row {
	flex-direction: var(--wp--custom--look--header-direction, column);
	justify-content: var(--wp--custom--look--header-justify, center);
	row-gap: var(--wp--preset--spacing--4);
}

/* The logo and title's group. The row decides whether the menu fits beside it at its floor (its basis is 0 and its
 * least width the floor its logo or name holds: theme.json, which holds their own rules), then it grows back to its
 * logo's or name's own width, so it narrows only as far as the menu needs. The floor is the shortest the Smaller size
 * draws any logo: the area rule's least height, 40px, at Smaller's presence, 0.8 (the app's `PRESENCE`). A narrowed
 * logo is never drawn shorter than that, its aspect capped at 16 so the floor (512px at most) fits the row at 600px, the
 * narrowest width wider than a phone (568px between its gutters); a name holds the width of the typical 5:1 wordmark at
 * that height, or of its longest word. */
.bs-header-brand {
	--bs-logo-floor: calc(40px * 0.8);
	flex: 1 1 0;
	max-inline-size: max-content;
}

.bs-header-menu {
	align-self: stretch;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding-block: var(--wp--preset--spacing--3);
	background-color: var(--wp--custom--look--header-menu-background, var(--wp--custom--lever--tint--background, transparent));
	color: var(--wp--custom--look--header-menu-text, var(--wp--custom--lever--tint--text, currentColor));
	border-image: conic-gradient(var(--wp--custom--look--header-menu-background, var(--wp--custom--lever--tint--background, transparent)) 0 0) fill 0 / / 0 100vw;
}

/* At tablet width the menu's items close up so a capitals menu keeps its row beside a wide logo at its floor (Toby,
 * 2026-11-27): 1em apart up to 48 times the base size, opening with the width to the look's own block gap, which every
 * look reaches by 64 times the base size: 768px and 1024px at a 16px base, wider for a Kit with larger type, whose
 * menu is wider too (the brand sets the base and spacing presets). The nav's lists inherit it; the lines a long menu
 * wraps onto keep core's spacing. */
.bs-header-menu .wp-block-navigation {
	column-gap: clamp(1em, 6.25vw - 2em, var(--wp--style--block-gap));
}

/* The menu's items take the site's menu type only while the brand sends one: the plugin's `Nav_Type` marks the body
 * then. Without it the items draw as links do, in the Link role's type, which no fallback here could restore. The row
 * never reads the look's menu weight; the open menu's items read the same tokens below. The Site Editor's canvas
 * carries no front-end body class, so it draws the menu without the menu's type. */
.bs-has-nav-type .bs-header-menu .wp-block-navigation-item__content {
	font-family: var(--wp--custom--nav--family, inherit);
	font-weight: var(--wp--custom--nav--weight, inherit);
	text-transform: var(--wp--custom--nav--transform, inherit);
	letter-spacing: var(--wp--custom--nav--tracking, inherit);
}

/* The menu button and the open menu, which WordPress's navigation shows under 600px. Classic's button is the word
 * Menu beside three drawn bars (`menuIconBars`; core's icon is kept only under forced colours), its close control the word Close beside the cross; a look may draw the icons alone, or a
 * filled circle. Both are 44px targets. The words are drawn, not read: each button's name stays core's aria-label. Core
 * shows and hides the menu button by width, so its display is core's. A ring shows each when focused by keyboard, in a
 * colour that reads where it stands: the menu button's on the page, the open menu's in its words. */
.bs-header-menu .wp-block-navigation__responsive-container-open,
.bs-header-menu .wp-block-navigation__responsive-container-close {
	min-inline-size: 44px;
	min-block-size: 44px;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--2);
	border-radius: var(--wp--custom--look--menu-button-radius, 0);
}

.bs-header-menu .wp-block-navigation__responsive-container-open {
	background-color: var(--wp--custom--look--menu-button-background, transparent);
	color: var(--wp--custom--look--menu-button-text, currentColor);
}

.bs-header-menu .wp-block-navigation__responsive-container-close {
	display: flex;
	background-color: var(--wp--custom--look--menu-close-background, transparent);
	color: var(--wp--custom--look--menu-close-text, currentColor);
}

/* The menu button's icon: core's two-bar icon is replaced by bars drawn from the look's `menuIconBars`, one box-shadow
 * a bar on a bar-wide box with no height (so no shadow is clipped), in the button's own colour: Classic draws three,
 * a look sets two. A forced-colours mode removes box-shadows, so it keeps core's icon. */
.bs-header-menu .wp-block-navigation__responsive-container-open svg {
	display: none;
}

.bs-header-menu .wp-block-navigation__responsive-container-open::after {
	content: "";
	display: block;
	inline-size: 19px;
	block-size: 0;
	box-shadow: var(--wp--custom--look--menu-icon-bars, 0 -6px 0 0.75px, 0 0 0 0.75px, 0 6px 0 0.75px);
}

@media (forced-colors: active) {
	.bs-header-menu .wp-block-navigation__responsive-container-open svg {
		display: block;
	}

	.bs-header-menu .wp-block-navigation__responsive-container-open::after {
		display: none;
	}
}

.bs-header-menu .wp-block-navigation__responsive-container-open::before {
	content: "Menu";
	display: var(--wp--custom--look--menu-label, block);
}

.bs-header-menu .wp-block-navigation__responsive-container-close::before {
	content: "Close";
	display: var(--wp--custom--look--menu-label, block);
}

.bs-header-menu .wp-block-navigation__responsive-container-open:focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
}

/* The open menu fills the screen in the look's pair: Classic's tint pair (its desktop menu row), then the page, never
 * see-through. Core paints it white on black unless the navigation block names colours; these are core's own selectors
 * with the header menu's class before them, so they outrank core's wherever the stylesheets print. Its close control
 * stands where the menu button was; its items run one to a row, the row the link itself, at the look's size, weight
 * and height, centred (Classic) or at the start, ruled where a look rules them. The menu holds the nav's items alone:
 * no logo. */
.bs-header-menu .wp-block-navigation:not(.has-background) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
	background-color: var(--wp--custom--look--menu-background, var(--wp--custom--lever--tint--background, var(--wp--preset--color--surface)));
}

.bs-header-menu .wp-block-navigation:not(.has-text-color) .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
	color: var(--wp--custom--look--menu-text, var(--wp--custom--lever--tint--text, var(--wp--preset--color--ink)));
}

.bs-header-menu .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
	padding: var(--wp--preset--spacing--6) var(--wp--preset--spacing--4);
}

.bs-header-menu .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-content {
	padding-block-start: calc(44px + var(--wp--preset--spacing--8));
	align-items: stretch;
}

.bs-header-menu .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__container {
	gap: 0;
	align-items: stretch;
}

.bs-header-menu .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation-item {
	align-items: var(--wp--custom--look--menu-align, center);
	border-block-end: var(--wp--custom--look--menu-rule, 0px) solid;
}

.bs-header-menu .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	min-block-size: var(--wp--custom--look--menu-item-height, 56px);
	font-size: var(--wp--custom--look--menu-item-size, var(--wp--preset--font-size--xl));
	font-weight: var(--wp--custom--look--menu-item-weight, inherit);
	line-height: 1.3;
}

/* While the brand sends the menu's type (`Nav_Type`'s body class), the open menu's items take it, the weight falling
 * back to the look's; their size and layout stay the look's. */
.bs-has-nav-type .bs-header-menu .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation-item__content {
	font-family: var(--wp--custom--nav--family, inherit);
	font-weight: var(--wp--custom--nav--weight, var(--wp--custom--look--menu-item-weight, inherit));
	text-transform: var(--wp--custom--nav--transform, inherit);
	letter-spacing: var(--wp--custom--nav--tracking, inherit);
}

.bs-header-menu .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation__responsive-container-close:focus-visible,
.bs-header-menu .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .wp-block-navigation-item__content:focus-visible {
	outline: 2px solid var(--wp--custom--look--menu-text, var(--wp--custom--lever--tint--text, var(--wp--preset--color--ink)));
	outline-offset: 2px;
}

/* The open menu ends with the site's main button, drawn only while the menu is open: filled with the look's colour,
 * else the menu's text, and labelled in the look's colour, else what reads on the tint pair's text (`onText`); its
 * edge is the look's colour, else the fill. Its text is at the look's size (the lg step unless the look sets one), it
 * is as wide as the look says (it hugs its label, or spans the row) and at least 44px tall, in the page's button
 * shape (radius, face and padding come from the button element), and hovering changes no colour. */
.bs-menu-action {
	display: none;
}

.bs-header-menu .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .bs-menu-action {
	display: flex;
	justify-content: var(--wp--custom--look--menu-align, center);
	margin-block-start: var(--wp--preset--spacing--6);
}

.bs-header-menu .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .bs-menu-action-link {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	inline-size: var(--wp--custom--look--menu-action-width, auto);
	font-size: var(--wp--custom--look--menu-action-size, var(--wp--preset--font-size--lg));
	min-block-size: 44px;
	text-align: center;
	text-decoration: none;
	background-color: var(--wp--custom--look--menu-action-background, var(--wp--custom--look--menu-text, var(--wp--custom--lever--tint--text, var(--wp--preset--color--ink))));
	border-color: var(--wp--custom--look--menu-action-border, var(--wp--custom--look--menu-action-background, var(--wp--custom--look--menu-text, var(--wp--custom--lever--tint--text, var(--wp--preset--color--ink)))));
	color: var(--wp--custom--look--menu-action-text, var(--wp--custom--lever--tint--on-text, var(--wp--preset--color--surface)));
}

.bs-header-menu .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .bs-menu-action-link:hover {
	background-color: var(--wp--custom--look--menu-action-background, var(--wp--custom--look--menu-text, var(--wp--custom--lever--tint--text, var(--wp--preset--color--ink))));
	border-color: var(--wp--custom--look--menu-action-border, var(--wp--custom--look--menu-action-background, var(--wp--custom--look--menu-text, var(--wp--custom--lever--tint--text, var(--wp--preset--color--ink)))));
	color: var(--wp--custom--look--menu-action-text, var(--wp--custom--lever--tint--on-text, var(--wp--preset--color--surface)));
}

.bs-header-menu .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) .bs-menu-action-link:focus-visible {
	outline: 2px solid var(--wp--custom--look--menu-text, var(--wp--custom--lever--tint--text, var(--wp--preset--color--ink)));
	outline-offset: 2px;
}

/* The footer, on the page unless a look fills it: the brand's title and tagline; wherever the page has no contact
 * section the contact details (where to visit, how to say hello); the social, shop and booking links; then, under a soft rule, the
 * footer menu, the legal lines and the copyright. Classic stacks it all, centred; a look sets columns (Quiet's ruled
 * list beside the title, Handmade's two columns beside the brand). A detail's label shows where a look shows labels
 * (Quiet). Rules are the words' colour at the look's opacity, so they are never a colour of their own. */
.bs-footer {
	background-color: var(--wp--custom--look--footer-background, transparent);
	color: var(--wp--custom--look--footer-text, currentColor);
	text-align: var(--wp--custom--look--footer-text-align, center);
}

.bs-footer a:where(:not(.wp-element-button)) {
	color: currentColor;
}

.bs-footer a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* The regions and sets space themselves: a doubled class outranks core's flow-layout margins. */
/* The one wide row holds the ornament, at the wide column's corner, raised into the footer's top padding so it never
 * sits on the words. */
.bs-footer-inner {
	position: relative;
}

.bs-footer .bs-ornament::before,
.bs-footer .bs-ornament::after {
	inset-block-start: calc(var(--wp--preset--spacing--12) * -1 + 0.25rem);
	inline-size: 2.5rem;
	block-size: 2.5rem;
}

.bs-footer .bs-footer-main,
.bs-footer .bs-footer-base,
.bs-footer .bs-footer-main > *,
.bs-footer .bs-footer-set > *,
.bs-footer .bs-footer-base > * {
	margin-block: 0;
}

.bs-footer-main {
	display: grid;
	grid-template-columns: var(--wp--custom--look--footer-columns, 1fr);
	column-gap: var(--wp--custom--look--footer-column-gap, var(--wp--preset--spacing--12));
	row-gap: var(--wp--custom--look--footer-row-gap, var(--wp--preset--spacing--6));
	align-items: start;
}

.bs-footer-details {
	display: grid;
	grid-template-columns: var(--wp--custom--look--footer-details-columns, 1fr);
	grid-column-start: var(--wp--custom--look--footer-details-column, auto);
	grid-row-start: var(--wp--custom--look--footer-details-row-start, auto);
	grid-row-end: var(--wp--custom--look--footer-details-row-end, auto);
	column-gap: var(--wp--custom--look--footer-column-gap, var(--wp--preset--spacing--12));
	row-gap: var(--wp--custom--look--footer-list-gap, var(--wp--preset--spacing--1));
}

.bs-footer-out {
	grid-column-start: var(--wp--custom--look--footer-out-column, auto);
}

.bs-footer-visit,
.bs-footer-out {
	display: flex;
	flex-direction: column;
	gap: var(--wp--custom--look--footer-list-gap, var(--wp--preset--spacing--1));
}

.bs-footer-hello {
	display: flex;
	flex-direction: var(--wp--custom--look--footer-hello-direction, row);
	flex-wrap: wrap;
	justify-content: var(--wp--custom--look--footer-text-align, center);
	column-gap: var(--wp--preset--spacing--6);
	row-gap: var(--wp--custom--look--footer-list-gap, var(--wp--preset--spacing--1));
}

/* A set's sticker heads it where the look draws stickers (Handmade): in the heading face, the second turned the other way. */
.bs-footer .bs-sticker {
	margin-block-end: var(--wp--preset--spacing--4);
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--lg);
	font-weight: 700;
	line-height: 1.3;
}

.bs-footer-hello > .bs-sticker {
	rotate: calc(var(--wp--custom--look--tilt-sticker, 0deg) * -0.6);
}

/* The brand: the title in the heading face at the look's headline weight, then the tagline. */
.bs-footer .bs-footer-title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--custom--look--footer-title-size, var(--wp--preset--font-size--2-xl));
	font-weight: var(--wp--custom--look--headline-weight, var(--wp--custom--kit--headline-weight, 700));
	font-synthesis-weight: none;
	line-height: 1.1;
}

.bs-footer .bs-footer-tagline {
	margin-block-start: var(--wp--preset--spacing--2);
	font-size: var(--wp--custom--look--footer-tagline-size, var(--wp--preset--font-size--base));
}

/* A detail's row: its label (shown where the look shows labels) beside its value, set closer than blocks are; a row of
 * a ruled list carries its rule above it, and the list's last row one below it too. */
.bs-footer .wp-block-group.bs-footer-row {
	position: relative;
	justify-content: var(--wp--custom--look--footer-text-align, center);
	align-items: baseline;
	column-gap: var(--wp--preset--spacing--3);
	row-gap: 0;
	padding-block: var(--wp--custom--look--footer-row-padding, 0px);
}

.bs-footer-label {
	display: var(--wp--custom--look--footer-label, none);
	min-inline-size: 9rem;
	font-family: var(--wp--preset--font-family--heading);
}

.bs-footer-details .bs-footer-row::before,
.bs-footer-out .bs-footer-row::before,
.bs-footer-main > .bs-footer-set:last-child > .bs-footer-row:last-child::after,
.bs-footer-main > .bs-footer-set:last-child > .bs-footer-set:last-child > .bs-footer-row:last-child::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-start: 0;
	block-size: var(--wp--custom--look--footer-row-rule, 0px);
	background-color: currentColor;
	opacity: var(--wp--custom--look--footer-rule-opacity, 0.3);
	pointer-events: none;
}

.bs-footer-main > .bs-footer-set:last-child > .bs-footer-row:last-child::after,
.bs-footer-main > .bs-footer-set:last-child > .bs-footer-set:last-child > .bs-footer-row:last-child::after {
	inset-block: auto 0;
}

/* The data blocks (the details, the legal lines) set their lines close (Toby's note): a token, with a tight default. */
.bs-footer-details,
.bs-footer-small {
	line-height: var(--wp--custom--look--footer-data-line-height, 1.35);
}

/* The address: its lines on one line, comma-separated (Classic on a wide screen), or each on its own (a look, a phone).
 * No country: BrandSpark's businesses are in the UK. */
.bs-footer .bs-address-line {
	display: var(--wp--custom--look--footer-address-line, inline);
}

.bs-footer .bs-address-sep {
	display: var(--wp--custom--look--footer-address-sep, inline);
}

/* A link that names its field (WhatsApp) drops the name where the row's label shows it. */
.bs-footer .bs-link-name {
	display: var(--wp--custom--look--footer-link-name, inline);
}

/* Every footer link is a button only so its address can be bound: it reads as text, underlined, a 44px-tall target
 * at every width (and 44px wide on a phone). */
.bs-footer .wp-block-buttons {
	gap: 0 var(--wp--preset--spacing--6);
	justify-content: var(--wp--custom--look--footer-text-align, center);
}

.bs-footer .wp-block-button .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-align: start;
	text-decoration: underline;
	text-transform: inherit;
}

/* Shop and booking links carry an arrow where the look draws one (Handmade); it is not read out. */
.bs-footer-action .wp-block-button__link::after {
	content: "\2192";
	content: "\2192" / "";
	display: var(--wp--custom--look--footer-link-arrow, none);
}

/* A social link: its service's icon in a 44px target, its name the link's words, kept for the screen reader and drawn
 * off the target; outlined as a circle where the look draws one. */
.bs-footer .wp-block-buttons.bs-socials {
	gap: var(--wp--custom--look--footer-social-gap, var(--wp--preset--spacing--1));
}

.bs-footer .bs-social .wp-block-button__link {
	position: relative;
	justify-content: center;
	inline-size: 44px;
	block-size: 44px;
	overflow: hidden;
	border: var(--wp--custom--look--footer-social-outline, 0px) solid currentColor;
	border-radius: 999px;
	text-decoration: none;
	text-indent: 200%;
	white-space: nowrap;
}

/* The editor's rich text keeps its words on the target whatever the indent says, so there they are drawn at no size. */
.editor-styles-wrapper .bs-footer .bs-social .wp-block-button__link {
	font-size: 0;
}

.bs-footer .bs-social .wp-block-button__link::before {
	content: "";
	position: absolute;
	inset: 0;
	margin: auto;
	inline-size: var(--wp--custom--look--footer-social-icon, 24px);
	block-size: var(--wp--custom--look--footer-social-icon, 24px);
	background-color: currentColor;
	-webkit-mask: var(--bs-social-icon, none) center / contain no-repeat;
	mask: var(--bs-social-icon, none) center / contain no-repeat;
}

.bs-footer .bs-social-instagram .wp-block-button__link::before {
	--bs-social-icon: var(--wp--custom--icon--instagram, none);
}

.bs-footer .bs-social-facebook .wp-block-button__link::before {
	--bs-social-icon: var(--wp--custom--icon--facebook, none);
}

.bs-footer .bs-social-linkedin .wp-block-button__link::before {
	--bs-social-icon: var(--wp--custom--icon--linkedin, none);
}

.bs-footer .bs-social-tiktok .wp-block-button__link::before {
	--bs-social-icon: var(--wp--custom--icon--tiktok, none);
}

.bs-footer .bs-social-youtube .wp-block-button__link::before {
	--bs-social-icon: var(--wp--custom--icon--youtube, none);
}

/* In a forced-colours mode the icon keeps the link colour the system gives it, rather than losing its fill. */
@media (forced-colors: active) {
	.bs-footer .bs-social .wp-block-button__link::before {
		forced-color-adjust: none;
		background-color: LinkText;
	}
}

/* The base: a soft rule, then the footer menu, the legal lines and the copyright, stacked (Classic) or in a row with the
 * menu at its end (a look). */
.bs-footer .bs-footer-base {
	position: relative;
	display: flex;
	flex-direction: var(--wp--custom--look--footer-base-direction, column);
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: var(--wp--custom--look--footer-text-align, center);
	gap: var(--wp--preset--spacing--3) var(--wp--preset--spacing--8);
	margin-block-start: var(--wp--custom--look--footer-base-space, var(--wp--preset--spacing--6));
	padding-block-start: var(--wp--custom--look--footer-base-space, var(--wp--preset--spacing--6));
}

.bs-footer-base::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-start: 0;
	block-size: var(--wp--custom--look--footer-rule, 1px);
	background-color: currentColor;
	opacity: var(--wp--custom--look--footer-rule-opacity, 0.3);
	pointer-events: none;
}

.bs-footer-menu {
	order: var(--wp--custom--look--footer-menu-order, 0);
	font-size: var(--wp--preset--font-size--sm);
}

.bs-footer-menu ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: var(--wp--custom--look--footer-text-align, center);
	gap: 0 var(--wp--preset--spacing--6);
	margin: 0;
	padding: 0;
	list-style: none;
}

.bs-footer-menu a {
	display: inline-flex;
	align-items: center;
	min-block-size: 44px;
}

.bs-footer .wp-block-group.bs-legal {
	justify-content: var(--wp--custom--look--footer-text-align, center);
}

.bs-footer .bs-legal + .bs-legal {
	margin-block-start: var(--wp--custom--look--footer-legal-gap, var(--wp--preset--spacing--1));
}

.bs-footer .bs-copyright {
	margin-block-start: var(--wp--preset--spacing--3);
	font-size: var(--wp--preset--font-size--sm);
}

/* The hero: its words, then its picture, in one column (Classic) or the look's columns. Its headline takes a display
 * step; its button is the Kit's, or the look's on its fill. A wave under it, coloured as its fill, where the look draws
 * one: positioned against the section, which clips only sideways. */
.bs-section-hero {
	background-color: var(--wp--custom--look--hero-background, transparent);
	color: var(--wp--custom--look--hero-text, currentColor);
}

.bs-hero {
	display: grid;
	grid-template-columns: var(--wp--custom--look--hero-columns, 1fr);
	gap: var(--wp--preset--spacing--12);
	align-items: center;
}

/* The grid's gap spaces its items: a doubled class outranks core's flow-layout margins (`:root :where(.is-layout-flow)
 * > *`, one class's weight) whichever stylesheet prints last. */
.bs-hero.bs-hero > * {
	margin-block: 0;
}

.bs-hero-words {
	display: flex;
	flex-direction: column;
	align-items: var(--wp--custom--look--hero-text-align, center);
	justify-self: var(--wp--custom--look--hero-text-align, center);
	inline-size: 100%;
	max-inline-size: var(--wp--style--global--content-size, 720px);
	text-align: var(--wp--custom--look--hero-text-align, center);
}

.bs-section-hero h1 {
	font-size: var(--wp--custom--look--headline-size, var(--wp--preset--font-size--display-2, var(--wp--preset--font-size--3-xl)));
	font-weight: var(--wp--custom--look--headline-weight, var(--wp--custom--kit--headline-weight, 700));
}

.bs-section-hero a:where(:not(.wp-element-button)) {
	color: currentColor;
}

.bs-section-hero .wp-element-button {
	background-color: var(--wp--custom--look--hero-button-background, var(--wp--custom--lever--button--background, var(--wp--preset--color--ink)));
	color: var(--wp--custom--look--hero-button-text, var(--wp--custom--lever--button--text, var(--wp--preset--color--surface)));
	border-color: var(--wp--custom--look--hero-button-border, var(--wp--custom--lever--button--border, transparent));
}

.bs-section-hero .wp-element-button:focus-visible {
	outline: 2px solid var(--wp--custom--look--hero-text, var(--wp--preset--color--ink));
	outline-offset: 2px;
}

.bs-frame.bs-hero-picture {
	box-sizing: border-box;
	aspect-ratio: var(--wp--custom--look--hero-picture-ratio, 2.67);
	overflow: hidden;
	border: var(--wp--custom--look--hero-picture-outline, 0px) solid var(--wp--custom--look--hero-picture-outline-colour, currentColor);
	border-radius: var(--wp--custom--look--hero-picture-radius, 0);
}

.bs-hero::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-start: 100%;
	z-index: 1;
	block-size: 14px;
	background-color: var(--wp--custom--look--hero-background, transparent);
	-webkit-mask: var(--wp--custom--shape--wave, none) repeat-x bottom / 56px 14px;
	mask: var(--wp--custom--shape--wave, none) repeat-x bottom / 56px 14px;
	rotate: 180deg;
	pointer-events: none;
	display: var(--wp--custom--look--hero-edge, none);
}

/* Section headings: the Kit's h2 unless a look names a display step or a weight. The band's are its own. */
.bs-section:not(.bs-band) h2 {
	font-size: var(--wp--custom--look--section-heading-size, var(--wp--custom--kit--section-heading-size, var(--wp--preset--font-size--2-xl)));
	font-weight: var(--wp--custom--look--section-heading-weight, var(--wp--custom--kit--section-heading-weight, 700));
}

/* The services teaser: a row of cards on the tint pair (Classic), each a picture, its name and description, and the
 * link to the services; its words centred, or at the start where a look sets its content size to the wide column. */
.bs-services-teaser {
	background-color: var(--wp--custom--look--range-background, var(--wp--custom--lever--tint--background, transparent));
	color: var(--wp--custom--look--range-text, var(--wp--custom--lever--tint--text, currentColor));
	text-align: var(--wp--custom--look--range-text-align, center);
}

.bs-services-teaser.is-layout-constrained {
	--wp--style--global--content-size: var(--wp--custom--look--range-content-size, 720px);
}

.bs-services-teaser a:where(:not(.wp-element-button)) {
	color: currentColor;
}

/* A card's picture is margined by the brand's image inset less the card's padding, as the Kit's specimen draws it: an
 * inset picture sits inside the padding, never doubled, and a flush one reaches the card's top and side edges. Its
 * corners are the brand's image radius, as the specimen draws them (a flush picture's top corners the card's inside its
 * border, an inset one's all four), and it clips its own image to them; the card clips nothing, so no focus ring in it
 * is cut off. With no tokens it has no margin and square corners. */
.bs-frame.bs-card-picture {
	display: var(--wp--custom--look--card-picture, block);
	aspect-ratio: var(--wp--custom--look--card-picture-ratio, 1.5);
	margin-block-start: calc(var(--wp--custom--card--image-inset, 0px) - var(--wp--custom--card--padding, 0px));
	margin-inline: calc(var(--wp--custom--card--image-inset, 0px) - var(--wp--custom--card--padding, 0px));
	margin-block-end: var(--wp--preset--spacing--4);
	border-radius: var(--wp--custom--card--image-radius, 0);
	overflow: clip;
}

.bs-card-words {
	display: flex;
	flex-direction: var(--wp--custom--look--card-direction, column);
	justify-content: space-between;
	gap: var(--wp--preset--spacing--2) var(--wp--preset--spacing--4);
}

/* A doubled class, so core's flow-layout margins never outrank it (as `.bs-hero.bs-hero > *`). */
.bs-card-words.bs-card-words > *,
.bs-card-words p {
	margin-block: 0;
}

.bs-range-card .bs-slot-more {
	display: var(--wp--custom--look--card-link, block);
}

/* The gallery teaser: three frames in a row (Classic), or the look's columns, ratio, shapes and outline. A shape is a
 * corner radius, so the outline follows it. */
.bs-gallery-teaser {
	text-align: var(--wp--custom--look--gallery-text-align, center);
}

.bs-gallery-teaser.is-layout-constrained {
	--wp--style--global--content-size: var(--wp--custom--look--gallery-content-size, 720px);
}

.bs-gallery-teaser .bs-gallery-tiles.is-layout-grid {
	grid-template-columns: var(--wp--custom--look--gallery-columns, repeat(3, 1fr));
}

.bs-gallery-teaser .bs-gallery-tiles > :nth-child(n + 2) {
	display: var(--wp--custom--look--gallery-extra, block);
}

.bs-gallery-teaser .bs-frame {
	box-sizing: border-box;
	aspect-ratio: var(--wp--custom--look--gallery-ratio, 1.25);
	overflow: hidden;
	border: var(--wp--custom--look--gallery-outline, 0px) solid var(--wp--custom--look--gallery-outline-colour, currentColor);
}

.bs-gallery-tiles > :nth-child(1):where(.bs-frame),
.bs-gallery-tiles > :nth-child(1) > .bs-frame {
	border-radius: var(--wp--custom--look--gallery-radius-1, 0);
}

.bs-gallery-tiles > :nth-child(2):where(.bs-frame),
.bs-gallery-tiles > :nth-child(2) > .bs-frame {
	border-radius: var(--wp--custom--look--gallery-radius-2, 0);
}

.bs-gallery-tiles > :nth-child(3):where(.bs-frame),
.bs-gallery-tiles > :nth-child(3) > .bs-frame {
	border-radius: var(--wp--custom--look--gallery-radius-3, 0);
}

.bs-gallery-teaser > .bs-slot-more {
	display: var(--wp--custom--look--gallery-link, block);
}

/* The about teaser: a square picture beside its words across the wide column (Classic), or the look's columns,
 * column, ratio, shape and outline. */
.bs-about-teaser.is-layout-constrained {
	--wp--style--global--content-size: var(--wp--custom--look--about-content-size, var(--wp--style--global--wide-size, 1200px));
}

.bs-about {
	display: grid;
	grid-template-columns: var(--wp--custom--look--about-columns, 1fr 1fr);
	gap: var(--wp--preset--spacing--12);
	align-items: center;
}

/* A doubled class, so core's flow-layout margins never outrank it (as `.bs-hero.bs-hero > *`). */
.bs-about.bs-about > * {
	margin-block: 0;
}

.bs-frame.bs-about-picture {
	box-sizing: border-box;
	aspect-ratio: var(--wp--custom--look--about-picture-ratio, 1);
	overflow: hidden;
	border: var(--wp--custom--look--about-picture-outline, 0px) solid var(--wp--custom--look--about-picture-outline-colour, currentColor);
	border-radius: var(--wp--custom--look--about-picture-radius, 0);
}

/* Why us: three centred points across the wide column (Classic), or a look's ruled list in its own column, on the
 * page unless a look fills it, the points in their own colour. */
.bs-section-why-us {
	background-color: var(--wp--custom--look--why-us-background, transparent);
	color: var(--wp--custom--look--why-us-text, currentColor);
	text-align: var(--wp--custom--look--why-us-text-align, center);
}

.bs-section-why-us.is-layout-constrained {
	--wp--style--global--content-size: var(--wp--custom--look--why-us-content-size, var(--wp--style--global--wide-size, 1200px));
}

.bs-section-why-us a:where(:not(.wp-element-button)) {
	color: currentColor;
}

.wp-block-columns.bs-points {
	display: grid;
	grid-template-columns: var(--wp--custom--look--why-us-columns, repeat(3, 1fr));
	gap: var(--wp--preset--spacing--4) var(--wp--preset--spacing--8);
}

/* A rule between points, never above the first. */
.bs-point + .bs-point {
	padding-block-start: calc(var(--wp--custom--look--why-us-rule, 0px) * 16);
	border-block-start: var(--wp--custom--look--why-us-rule, 0px) solid;
}

.bs-section-why-us .bs-slot-usp {
	color: var(--wp--custom--look--why-us-point, currentColor);
}

/* The call-to-action band: its colours and edges are the Band section style's; its column, alignment and type here. */
.bs-band.is-layout-constrained {
	--wp--style--global--content-size: var(--wp--custom--look--band-content-size, 720px);
}

.bs-band {
	text-align: var(--wp--custom--look--band-text-align, center);
}

.bs-band .wp-block-buttons {
	justify-content: var(--wp--custom--look--band-text-align, center);
}

/* The band's heading: the Kit's h2 unless a look names a display step or a weight. */
.bs-band h2 {
	font-size: var(--wp--custom--look--band-heading-size, var(--wp--custom--kit--section-heading-size, var(--wp--preset--font-size--2-xl)));
	font-weight: var(--wp--custom--look--band-heading-weight, var(--wp--custom--kit--section-heading-weight, 700));
}

/* Phone width: one column everywhere, words before pictures; the header one row that never wraps, its menu WordPress's
 * menu button, the logo narrowing beside it rather than pushing it onto a row of its own. */
@media (max-width: 599.98px) {
	/* The logo takes most of the header's height: 8px above and below it, beside the menu button's 44px. */
	.bs-header {
		padding-block: var(--wp--preset--spacing--2) !important;
	}

	.wp-block-group.bs-header-row {
		flex-direction: row;
		justify-content: space-between;
		flex-wrap: nowrap;
	}

	/* The logo in it narrows too, with no floor: theme.json, which holds the logo's own rules. */
	.bs-header-brand {
		min-inline-size: 0;
		--bs-logo-floor: 0px;
	}

	.bs-header-menu {
		flex-shrink: 0;
		padding-block: 0;
		background-color: transparent;
		color: inherit;
		border-image: none;
	}

	.bs-hero,
	.bs-about,
	.bs-gallery-teaser .bs-gallery-tiles.is-layout-grid,
	.wp-block-columns.bs-points {
		grid-template-columns: 1fr;
	}

	.bs-card-words {
		flex-direction: column;
	}

	/* A label beside its field goes above it, set down by nothing, its error and control in the rows below, and Send
	 * starts at the form's start edge. The form's class outranks the field's and Send's rules, which come later. */
	.bs-contact-form .bs-contact-form__field,
	.bs-contact-form .bs-contact-form__send-row {
		grid-template-columns: 1fr;
	}

	.bs-contact-form .bs-contact-form__field > :not(label) {
		grid-column: auto;
		grid-row: auto;
	}

	.bs-contact-form .bs-contact-form__field label {
		grid-row: auto;
		padding-block-start: 0;
	}

	.bs-contact-form .bs-contact-form__send {
		grid-column: auto;
	}

	/* The footer: one column, in the look's order; the brand clear of what follows it; each detail under its label and
	 * each address line its own; the menu first in the base; every link a 44px target. */
	.bs-footer-main,
	.bs-footer-details {
		grid-template-columns: 1fr;
	}

	.bs-footer-details,
	.bs-footer-out {
		grid-column-start: auto;
		grid-row-start: auto;
		grid-row-end: auto;
	}

	.bs-footer-details {
		order: var(--wp--custom--look--footer-details-order, 0);
	}

	.bs-footer .bs-footer-main > .bs-footer-brand {
		margin-block-end: calc(var(--wp--preset--spacing--8) - var(--wp--custom--look--footer-row-gap, var(--wp--preset--spacing--6)));
	}

	.bs-footer-hello {
		flex-direction: column;
	}

	.bs-footer .bs-footer-title {
		font-size: var(--wp--preset--font-size--2-xl);
	}

	/* Where stickers show (Handmade), Say hello stands clear of the address above it. */
	.bs-footer .bs-footer-hello > .bs-sticker {
		margin-block-start: var(--wp--preset--spacing--6);
	}

	.bs-footer .wp-block-group.bs-footer-row {
		flex-direction: column;
		align-items: var(--wp--custom--look--footer-text-align, center);
	}

	.bs-footer .bs-address-line {
		display: block;
	}

	.bs-footer .bs-address-sep {
		display: none;
	}

	.bs-footer .bs-footer-base {
		flex-direction: column;
	}

	.bs-footer-menu {
		order: 0;
	}

	.bs-footer-menu ul {
		gap: 0 var(--wp--preset--spacing--3);
	}

	.bs-footer .wp-block-button .wp-block-button__link,
	.bs-footer-menu a {
		justify-content: center;
		min-inline-size: 44px;
	}
}

/* Business details: a row is a static label beside its value. In the contact section the labels share a
 * column where the row is wide enough; rows in a run, there and in the footer, sit closer than blocks do. A
 * label sits on its value's first line, not centred against a value that wraps (core's flex rows centre). */
.wp-block-group:is(.bs-detail, .bs-legal) {
	align-items: baseline;
	column-gap: var(--wp--preset--spacing--3);
	row-gap: 0;
}

.bs-detail > :first-child {
	min-inline-size: 9rem;
}

/* The value takes the row's room beside its label and wraps within it, so a long address stays beside its label
 * like the rest; only a row too narrow for the label and 12rem of value (a phone) puts every value under its
 * label alike. */
.bs-detail > :last-child {
	flex: 1 1 12rem;
	min-inline-size: 0;
}

.bs-detail + .bs-detail {
	margin-block-start: var(--wp--preset--spacing--3);
}

/* A detail's value that is a link is a button only so its address can be bound (core binds a button's url,
 * not a link inside a paragraph): it reads as the row's text, underlined, never as a filled button. */
.wp-block-button.bs-detail-link > .wp-block-button__link {
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: inherit;
	font: inherit;
	letter-spacing: inherit;
	text-align: start;
	text-decoration: underline;
	text-transform: inherit;
}

/* The contact section's actions row (WhatsApp, the shop, booking) is the brand's second button while it sends one:
 * the plugin's `Second_Button` tags the row by its bindings and marks the body only while the lever is sent, so a site
 * whose brand sends none draws the row as the brand's button, a fill no fallback here could restore. Hovered, it keeps
 * its colours, and a ghost one is underlined. Type, padding and corners stay the brand's button's. The Site Editor's
 * canvas carries no front-end body class, so it draws the row as the brand's button whatever is sent. The footer's
 * shop and booking row binds the same links and is never painted: the rule is held to the contact section. */
.bs-has-second-button .bs-section-contact .bs-contact-actions .wp-block-button__link,
.bs-has-second-button .bs-section-contact .bs-contact-actions .wp-block-button__link:hover {
	background-color: var(--wp--custom--lever--secondary--background, transparent);
	color: var(--wp--custom--lever--secondary--text, inherit);
	border: 2px solid var(--wp--custom--lever--secondary--border, transparent);
}

.bs-has-second-button .bs-section-contact .bs-contact-actions .wp-block-button__link:hover {
	text-decoration: var(--wp--custom--secondary--hover-decoration, none);
}

/* The contact form: each label above its control, or beside it from 600px wide where the brand's field tokens say so;
 * controls fill their column at any width, at least 44px tall, bordered in ink (the brand's text colour, so 3:1
 * against the page) with a visible focus ring in it, unless the brand's field tokens give their padding, edge, corners,
 * ground and words. A refused control's border thickens beside its error, on the edges the brand's field draws (an
 * underlined field stays an underline). The send button takes the theme's button style, starting where the controls
 * do. The visible-input test sits in :where() so the rule stays at one class and one element: the text area's height
 * and the refused border outrank it. */
.bs-contact-form__field + .bs-contact-form__field {
	margin-block-start: var(--wp--custom--field--gap, var(--wp--preset--spacing--4));
}

/* A field is a grid of one column, its label above its control, unless the brand sends a label column; every child
 * but the label (the control, and a refused one's error) then takes the control's. Beside, the brand sends the row the
 * label and control share (the second), so a refused field's error takes the first row's control column, above the box,
 * and with no error that row is empty and takes no space (the grid has no row gap). Each item sits at its row's start,
 * since a text area's baseline is not alike in every browser; the label is set down by the brand's label offset (the
 * control's top padding and edge), so its first line is level with the control's text at rest. With none sent each child has a
 * row of its own. Send's row is laid out as a field is, so beside, Send takes the control's column and starts where the
 * boxes do; with none sent it starts at the form's start, as the labels above do. Send stays as wide as its words. */
.bs-contact-form__field,
.bs-contact-form__send-row {
	display: grid;
	grid-template-columns: var(--wp--custom--field--label-columns, 1fr);
	column-gap: var(--wp--preset--spacing--4);
}

.bs-contact-form__field {
	align-items: start;
}

.bs-contact-form__send-row {
	justify-items: start;
}

.bs-contact-form__send {
	grid-column: var(--wp--custom--field--control-column, auto);
}

.bs-contact-form__field > :not(label) {
	grid-column: var(--wp--custom--field--control-column, auto);
}

.bs-contact-form__field > :not(.bs-contact-form__error) {
	grid-row: var(--wp--custom--field--control-row, auto);
}

.bs-contact-form__field label {
	display: block;
	margin-block-end: 0.25rem;
	padding-block-start: var(--wp--custom--field--label-offset, 0px);
}

.bs-contact-form :is(input, textarea):where(:not([type=hidden])) {
	box-sizing: border-box;
	display: block;
	inline-size: 100%;
	min-block-size: 44px;
	padding: var(--wp--custom--field--padding, var(--wp--preset--spacing--3));
	border-style: solid;
	border-width: var(--wp--custom--field--border-width, 1px);
	border-color: var(--wp--custom--field--border-color, var(--wp--preset--color--ink));
	border-radius: var(--wp--custom--field--radius, 0);
	background: var(--wp--custom--field--background, var(--wp--preset--color--surface));
	color: var(--wp--custom--field--text, var(--wp--preset--color--ink));
	font: inherit;
}

.bs-contact-form :is(input, textarea)::placeholder {
	color: var(--wp--custom--field--placeholder, currentColor);
}

.bs-contact-form textarea {
	min-block-size: 9rem;
	resize: vertical;
}

.bs-contact-form [aria-invalid="true"] {
	border-width: var(--wp--custom--field--refused-border-width, 3px);
}

.bs-contact-form button {
	min-block-size: 44px;
	margin-block-start: var(--wp--preset--spacing--6);
	cursor: pointer;
}

.bs-contact-form :is(input, textarea, button):focus-visible {
	outline: 2px solid var(--wp--preset--color--ink);
	outline-offset: 2px;
}

.bs-contact-form :is(.bs-contact-form__error, .bs-contact-form__summary-title) {
	margin-block: 0 0.25rem;
	font-weight: 600;
}

.bs-contact-form__summary {
	margin-block-end: var(--wp--preset--spacing--6);
	padding: var(--wp--preset--spacing--4);
	border: 3px solid var(--wp--preset--color--ink);
}

.bs-contact-form__privacy {
	margin-block-start: var(--wp--preset--spacing--3);
}

/* The trap a bot fills: never shown, so a person, and a screen reader, never meets it. */
.bs-contact-form__trap {
	display: none;
}
