/*
Theme Name: Your FSE Theme by Fusion Studios 2026
Theme URI: https://fusionstudiosinc.com
Author: Kevin, Fusion Studios
Author URI: https://fusionstudiosinc.com
Description: A lean block (full site editing) starter theme by Fusion Studios.
Version: 2.2.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: MIT
License URI: https://opensource.org/licenses/mit-license.php
*/

/* THE RULES THAT GOVERN WHERE CSS IS PUT
 * Any style that is used on more than one page of the site (including the header, navigation and footer) is found in this document.
 * Within this document, the GENERAL STYLES half (the top part of this document, marked by its BEGIN and END comments) stays the same from site to site: change it only to improve the theme for every site (each site's own settings, like logo sizes and menu colours, go in its CSS VARIABLES). Any style that affects more than one page but is unique to this particular site goes in the UNIQUE STYLES half (the bottom part, also marked by its BEGIN and END comments).
 * Any style that affects only one block on one page AND doesn't need a media query is found in the WP admin for that page, in that block's "Additional CSS" panel. Things inside the block can still be targeted there with "&" (e.g. "& img { ... }"). Note: rules entered there are "weak" in the cascade, so this stylesheet or WordPress's own styles can override them; add "!important" if a rule doesn't take effect.
 * Any style that affects only one block on one page AND DOES need a media query is found in the WP admin for that page, in a "Custom HTML" block (under its "CSS" tab) just above the block it affects.
 * Any style that affects more than one block on one page is found in a "Custom HTML" block (under its "CSS" tab) at the top of that page.
 * Any "Custom HTML" block used for styling should be renamed "Custom CSS: [a short description of what it does]" and locked against removal (in the three-dot menu beside the block: "Lock > Prevent removal"). When the block(s) it affects are no longer needed, unlock and delete the related "Custom CSS" block as well. */

/* GENERAL STYLES (THOSE THAT AFFECT ALL SITES BUILT WITH THIS THEME) BEGIN */

/* GENERAL STYLES > CSS VARIABLES BEGIN
 * Settings you'll usually change for each new site, such as menu sizes, spacing and borders, and the header's height when it's stuck to the top. Change a value here and it updates everywhere it's used in this stylesheet.
 * Colours WordPress can already set are NOT here. Brand colours are WordPress's Primary and Secondary colours (Appearance > Editor > Styles > Colors); to use them in CSS, write var(--wp--preset--color--primary) or var(--wp--preset--color--secondary). Menu colours such as menu text, link hover and mobile menu text are set in the Navigation block or in the WP "Styles" editor. */

:root {
	/* General */
	--fs-sticky-header-offset: 100px; /* space kept above anchor-link targets so the sticky header doesn't cover them */
	--fs-scrollbar-thumb: var(--wp--preset--color--primary); /* the moving part of scrollbars; any colour works, e.g. var(--wp--preset--color--secondary) or #0b4c8b */
	/* Forms */
	--fs-submit-hover-background: var(--wp--preset--color--secondary); /* the colour that sweeps across form Submit buttons on hover. Any colour works, e.g. #0b4c8b, or a darker Primary: color-mix(in srgb, var(--wp--preset--color--primary) 80%, black) */
	/* Header */
	--fs-logo-width: 275px; /* header logo at the top of the page */
	--fs-logo-width-scrolled: 140px; /* header logo once the page is scrolled (it shrinks smoothly) */
	--fs-header-scrolled-border-bottom: 1px solid grey; /* line under the header once the page is scrolled; use none for no line */
	--fs-menu-logo-width-scrolled: 100px; /* only needed if the logo is placed inside the menu (centred-logo layouts): its width once the page is scrolled */
	/* Desktop menu */
	--fs-desktop-submenu-text-transform: capitalize;
	--fs-desktop-submenu-font-size: 16px;
	--fs-desktop-submenu-padding: 10px 20px;
	--fs-desktop-submenu-border: none; /* border around the whole submenu (overrides WordPress's default) */
	--fs-desktop-submenu-item-border-bottom: 1px solid gray;
	--fs-desktop-submenu-hover-background: transparent;
	--fs-desktop-menu-hover-color: var(--wp--preset--color--primary); /* main menu items and the line above them on hover, and submenu items on hover; change it if the Primary colour doesn't show up against the header */
	--fs-desktop-menu-current-page-color: gray; /* menu item for the page being viewed (aria-current) */
	/* Mobile menu */
	--fs-mobile-hamburger-size: 50px;
	--fs-mobile-menu-item-padding: 16px 0px 16px 10px;
	--fs-mobile-menu-item-border: 1px solid gray; /* line under each item, and beside the submenu arrows */
	--fs-mobile-menu-current-page-color: gray; /* menu item for the page being viewed (aria-current) */
	--fs-mobile-submenu-text-transform: lowercase;
	--fs-mobile-submenu-arrow-color: white;
	--fs-mobile-submenu-background: #0b6cbd;
	--fs-mobile-submenu-border-bottom: 1px solid white;
	--fs-mobile-sub-submenu-background: #59a2cf; /* submenus inside submenus */
	--fs-mobile-sub-submenu-border-bottom: 1px solid white;
}

/* GENERAL STYLES > CSS VARIABLES END */

/* GENERAL STYLES > BASE STYLES BEGIN
 * Defaults and automatic behaviour that apply on every page, with nothing to add. */

* {
	box-sizing: border-box;
	/* Long words, emails and URLs wrap only if they'd otherwise stick out past the edge; normal words are never split. */
	overflow-wrap: break-word;
}
html {
	overflow-x: clip; /* "clip", not "hidden", so position: sticky still works */
	scroll-padding-top: var(--fs-sticky-header-offset); /* anchor links land below the sticky header */
	scrollbar-gutter: stable; /* stops the layout shifting when a scrollbar appears */
	scrollbar-color: var(--fs-scrollbar-thumb) #f1f1f1; /* scrollbars (the page's and any inside it): the thumb in the colour set in CSS VARIABLES (--fs-scrollbar-thumb), on a light grey track close to the browser's default. CSS can't colour the thumb alone, so a track colour has to be given too. Shows mainly on Windows; Macs and phones show their own thin overlays. */
}
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth; /* smooth scrolling to anchor links */
	}
}
body {
	overflow-x: clip; /* "clip", not "hidden", so position: sticky still works */
}
a {
	/* Link colours are set in WordPress (Styles > Elements > Links), but WordPress has no fade between them, so it's added here. */
	transition: color .4s, background-color .4s, text-decoration-color .4s;
}
a:focus-visible {
	/* Shows keyboard users which link they're on. Mouse clicks don't trigger it. */
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
:is(.wp-block-paragraph, .wp-block-list, figcaption, .wp-block-table, .wp-block-post-content > :is(p, ul, ol, dl), .wp-block-comment-content) a:where(:not(.wp-element-button)) {
	/* Links inside text are underlined, so they don't rely on colour alone (some visitors can't tell the colours apart; Lighthouse accessibility check). This includes plain paragraphs and lists from classic-editor (or imported) content, and comments. Menus, buttons and other stand-alone links aren't affected. */
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); /* a faded version of the link colour, so the line is a hint rather than a heavy rule */
	text-underline-offset: 3px;
}
:is(.wp-block-paragraph, .wp-block-list, figcaption, .wp-block-table, .wp-block-post-content > :is(p, ul, ol, dl), .wp-block-comment-content) a:where(:not(.wp-element-button)):hover {
	/* on hover the line takes the full link colour */
	text-decoration-color: currentColor;
}
h1, h2, h3, h4, h5, h6 {
	/* Evens out heading lines so a single word isn't left alone on the last line. */
	text-wrap: balance;
}
iframe {
	/* Stops embeds pasted as HTML (e.g. Google Maps) being wider than the screen. WordPress's own Embed blocks already handle this. */
	max-width: 100%;
}
img {
	/* Images never overflow their container and keep their proportions (covers images outside Image blocks, e.g. custom HTML or plugins). */
	max-width: 100%;
	height: auto;
}
li::marker {
	/* Bullet and number colour in lists. */
	color: var(--wp--preset--color--secondary);
}
p:empty {
	/* Hides empty paragraphs (e.g. from pasted text, shortcodes or plugins) that would add unwanted gaps. Use a Spacer block for intentional space. */
	display: none;
}
@media (prefers-reduced-motion: no-preference) {
	:root {
		/* Allows animating things that normally can't be animated, such as sliding to and from an element's natural height (height: auto). The Details and Accordion blocks and the mobile menu's submenus use it to slide open and closed, among other things. Only for visitors who haven't asked their device to reduce motion; browsers that don't support it simply skip the animation. */
		interpolate-size: allow-keywords;
	}
}

/* --------------------------------------------------------------------------
   Blog Read More link, styled to match the buttons: it has no hover colour setting in the editor, so the fade and hover colours are added here. !important is needed because WordPress's colour classes use it too. (Button blocks get their hover colours in the editor; see BUTTON CURTAIN HOVER.) */

a.wp-block-read-more {
	transition: background .4s, color .4s;
}
a.wp-block-read-more:hover {
	background: var(--wp--preset--color--primary) !important;
	color: white !important;
}
/* -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Browsers treat images like a letter in a line of text, which leaves a few pixels of empty space below them (room for the tails of letters like "g" and "y"). Next to thin images, such as dividers or curve graphics, that shows up as an unwanted gap. These rules make images in Image blocks (and the link around a linked image) behave as blocks instead, so the gap disappears. Centred images still centre, because WordPress centres the block around them. */

.wp-block-image img,
.wp-block-image > a,
.wp-block-image > figure > a {
	display: block;
}
.wp-block-image > a,
.wp-block-image > figure > a {
	width: fit-content; /* a linked image's clickable area stays the size of the image */
}
/* -------------------------------------------------------------------------- */

/* GENERAL STYLES > BASE STYLES > PAGE TRANSITIONS BEGIN
 * When moving between pages on this site, the old page fades out while drifting slightly left, and the new page fades in drifting from the right. The header stays still. Supported in Chrome, Edge and recent Safari; other browsers just load the next page normally. Skipped for visitors who've asked their device to reduce motion. To change the effect per site, edit the two @keyframes at the bottom (and the duration). Technique: Kevin Powell, youtube.com/watch?v=quvE1uu1f_I */

@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto; /* turns on transitions between pages */
	}
	::view-transition-group(root) {
		animation-duration: 0.5s; /* length of the transition */
		animation-timing-function: ease;
	}
	::view-transition-old(root) {
		animation-name: fs-fade-out;
	}
	::view-transition-new(root) {
		animation-name: fs-fade-in;
	}
	header.wp-block-template-part {
		/* Keeps the site header still during the transition. Must match exactly one element on the page, or the browser cancels the transition. */
		view-transition-name: site-header;
	}
}

@keyframes fs-fade-out {
	to { opacity: 0; translate: -60px 0; }
}

@keyframes fs-fade-in {
	from { opacity: 0; translate: 60px 0; }
}

/* GENERAL STYLES > BASE STYLES > PAGE TRANSITIONS END */

/* GENERAL STYLES > BASE STYLES > PRINTING BEGIN
 * When a visitor prints a page, they get the content in black on white, without the header, menus, buttons or forms. (Browsers don't print background colours by default, so white text would vanish on the white paper; that's why the color: #000 is needed below.) The footer stays, for the contact details. */

@media print {
	header.wp-block-template-part,
	.wp-block-navigation,
	.wp-block-buttons,
	.wpcf7,
	.skip-link {
		display: none !important;
	}
	body,
	body *:not(#fs-print) {
		/* :not(#fs-print) matches everything; it just makes this rule strong enough to beat colours set in the editor */
		color: #000 !important;
		text-shadow: none !important;
		transition: none !important;
	}
	.wp-block-cover {
		/* the hero prints at the height of its text, not most of the first page (!important beats the height set in the editor) */
		min-height: 0 !important;
	}
	.wp-block-cover.fs-fixed-background > .wp-block-cover__image-background {
		/* a photo pinned to the screen would print on every page (!important: the fixed-background rule comes later in this file) */
		position: absolute !important;
		height: 100% !important;
	}
	h1, h2, h3, h4, h5, h6 {
		break-after: avoid; /* a heading never ends a page, away from its text */
	}
	img, figure, li {
		break-inside: avoid; /* photos and list items aren't split across two pages */
	}
}

/* GENERAL STYLES > BASE STYLES > PRINTING END */

/* GENERAL STYLES > BASE STYLES END */

/* GENERAL STYLES > WORDPRESS CORE/OVERRIDE STYLES BEGIN */

.wp-site-blocks > * {
	/* WordPress puts a 24px gap between the page's main parts (header, content and footer); this removes it so they sit flush against each other. */
	margin: 0;
}
@media (max-width: 781px) {
	.alignleft:not(.wp-block-social-links), .alignright:not(.wp-block-social-links) {
		/* Phones (social icons excepted, which keep their own spacing): an image (or other block) set to align left or right normally sits beside the text, which is too cramped on a small screen. Here it sits on its own line instead, centred, with space above and below; its caption stays the width of the image. (Tip: if text wraps oddly around such an image on wider screens, put the image and its text in a Group.) */
		float: none !important;
		display: table !important; /* shrinks to the image's width, so it can be centred */
		margin: 20px auto !important;
		text-align: center;
	}
}

/* --------------------------------------------------------------------------
   Old captioned images from the classic editor (or imported content) have a fixed width written onto them, so on phones they spill past the edge of the screen and get cut off. This keeps them, and the image inside, no wider than the screen. !important is needed because WordPress's own width limit for blocks in the content area is stronger. */

.wp-caption {
	max-width: 100% !important;
}
.wp-caption img {
	max-width: 100%;
	height: auto;
}
/* -------------------------------------------------------------------------- */

.wp-block-button__link {
	/* Button blocks: long button text wraps onto even lines instead of running off small screens, and the button sits level with its surroundings (without vertical-align, a button leaves about 10px of empty space below itself) */
	max-width: 100%;
	white-space: normal;
	text-wrap: balance;
	vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Media & Text blocks with "Stack on mobile" on: stack below 1024px wide (WordPress's default is 600px), image on top, text below. Turn "Stack on mobile" off on a block to keep it side by side. !important is needed to override the width split WordPress writes onto the block itself. */

@media (max-width: 1023px) {
	.wp-block-media-text.is-stacked-on-mobile {
		grid-template-columns: 100% !important;
	}
	.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__media {
		grid-column: 1;
		grid-row: 1;
	}
	.wp-block-media-text.is-stacked-on-mobile .wp-block-media-text__content {
		grid-column: 1;
		grid-row: 2;
	}
}
/* -------------------------------------------------------------------------- */

/* ==========================================================================
   GENERAL STYLES > WORDPRESS CORE/OVERRIDE STYLES > BUTTON CURTAIN HOVER BEGIN
   The hover background sweeps in from the left instead of switching instantly.
   Set hover colours in the editor: site-wide in Styles > Blocks > Button (theme default in theme.json), or for one button with the Button block's state dropdown set to Hover. A button with no hover background shows no sweep. Add the class noCurtain to a Button block for a plain colour change. Outline buttons and gradient backgrounds switch instantly (the trick needs a solid normal colour). The "More on..." title buttons in Query Loops have their own simpler curtain (see makeTitleIntoButton in UTILITY CLASSES > QUERY LOOP).
   ========================================================================== */

:where(.wp-block-button:not(.noCurtain)) > .wp-block-button__link {
	/* isolation keeps the two layers behind the text but inside the button; overflow keeps it within the rounded corners */
	position: relative;
	isolation: isolate;
	overflow: hidden;
	transition: color 0.5s;
}
:where(.wp-block-button:not(.noCurtain)) > .wp-block-button__link::before,
:where(.wp-block-button:not(.noCurtain)) > .wp-block-button__link::after {
	/* two layers that take the button's current background colour */
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: inherit;
}
:where(.wp-block-button:not(.noCurtain)) > .wp-block-button__link::before {
	/* MOUSE IN: a cover in the normal colour shrinks away to the right, uncovering the hover colour from the left. When the mouse leaves it grows back (hidden under the hover colour sliding out, or visible if the mouse left before the sweep finished, so a quick pass reverses smoothly). */
	transform-origin: right center;
	transition: transform 0.5s ease-out;
}
:where(.wp-block-button:not(.noCurtain)) > .wp-block-button__link:is(:hover, :focus-visible)::before {
	/* the delay keeps the cover in the old colour until it has finished shrinking */
	transform: scaleX(0);
	transition: transform 0.5s ease-out, background-color 0s 0.5s;
}
:where(.wp-block-button:not(.noCurtain)) > .wp-block-button__link::after {
	/* MOUSE OUT: the hover colour slides back out to the left. The delay keeps it in the hover colour until it has finished. */
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.5s ease-out, background-color 0s 0.5s;
}
:where(.wp-block-button:not(.noCurtain)) > .wp-block-button__link:is(:hover, :focus-visible)::after {
	/* fills the button only once the mouse-in sweep has finished, ready to slide out */
	transform: scaleX(1);
	transition: transform 0s 0.5s, background-color 0s;
}
@media (prefers-reduced-motion: reduce) {
	:where(.wp-block-button:not(.noCurtain)) > .wp-block-button__link:is(*, :hover, :focus-visible)::before,
	:where(.wp-block-button:not(.noCurtain)) > .wp-block-button__link:is(*, :hover, :focus-visible)::after {
		/* no sweep: the colour simply changes */
		transition: none;
	}
}

/* --------------------------------------------------------------------------
   The bounce: the hover colour sweeps across, overshoots slightly (a thin strip of the normal colour springs back at the right edge), then settles. It all happens within the curtain's half second, before the cover takes on the hover colour. To turn it off for one site, add "animation: none" for the same selector in that site's UNIQUE STYLES. Only for visitors who haven't asked for reduced motion. */

@media (prefers-reduced-motion: no-preference) {
	:where(.wp-block-button:not(.noCurtain)) > .wp-block-button__link:is(:hover, :focus-visible)::before {
		animation: fs-curtain-bounce 0.5s ease-out;
	}
}
@keyframes fs-curtain-bounce {
	0% { transform: scaleX(1); }
	70% { transform: scaleX(0); }
	85% { transform: scaleX(0.08); }
	100% { transform: scaleX(0); }
}
/* -------------------------------------------------------------------------- */

/* GENERAL STYLES > WORDPRESS CORE/OVERRIDE STYLES > BUTTON CURTAIN HOVER END */

/* ==========================================================================
   GENERAL STYLES > WORDPRESS CORE/OVERRIDE STYLES > PAGE NUMBERS BEGIN
   The page numbers and Previous/Next links under a list of posts (the Pagination block in a Query Loop) look like buttons: outlined in the Primary colour, with the current page filled in, and the same curtain sweep on hover as the buttons. Each one is at least 48px by 48px, the size Google recommends for anything tapped on a phone.
   ========================================================================== */

.wp-block-query-pagination-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px; /* Google's minimum tap size */
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid var(--wp--preset--color--primary);
	border-radius: 7px;
	color: var(--wp--preset--color--primary);
	text-decoration: none;
	position: relative;
	isolation: isolate; /* keeps the sweep behind the text but inside the button */
	overflow: hidden;
	transition: color 0.5s;
}
.wp-block-query-pagination .page-numbers.current {
	/* the page being viewed */
	background: var(--wp--preset--color--primary);
	color: white;
}
.wp-block-query-pagination .page-numbers.dots {
	/* the "..." between numbers isn't a link, so it gets no box */
	min-width: 0;
	padding: 0 4px;
	border-color: transparent;
}
:is(.wp-block-query-pagination a.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next)::after {
	/* the curtain: the Primary colour sweeps in from the left on hover and slides back out to the left */
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--wp--preset--color--primary);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.5s ease-out;
}
:is(.wp-block-query-pagination a.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next):is(:hover, :focus-visible) {
	color: white;
}
:is(.wp-block-query-pagination a.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next):is(:hover, :focus-visible)::after {
	transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
	:is(.wp-block-query-pagination a.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next)::after {
		transition: none; /* no sweep: the colour simply changes */
	}
}

/* GENERAL STYLES > WORDPRESS CORE/OVERRIDE STYLES > PAGE NUMBERS END */

/* ==========================================================================
   GENERAL STYLES > WORDPRESS CORE/OVERRIDE STYLES > COVER BLOCK: FIXED BACKGROUND BEGIN
   When a Cover block's "Fixed background" is turned on, WordPress paints the photo as a CSS background. Browsers find that kind of photo late, which slows the page down, and iPhones and iPads ignore the fixed effect altogether. So the theme changes it: functions.php (COVER BLOCK: FASTER FIXED BACKGROUND) swaps WordPress's background for a real <img>, which loads quickly, and adds the class fs-fixed-background. The rules below then pin that photo to the screen and make the Cover act as a window onto it (clip-path), so the section scrolls over a still photo, on iPhones and iPads too. Just use the editor's "Fixed background" setting as normal.
   ========================================================================== */

.wp-block-cover.fs-fixed-background {
	clip-path: inset(0);
}
.wp-block-cover.fs-fixed-background > .wp-block-cover__image-background {
	/* pinned to the screen; lvh = the screen's full height, so the photo doesn't jump when a phone's address bar hides or shows */
	position: fixed;
	height: 100lvh;
}

/* GENERAL STYLES > WORDPRESS CORE/OVERRIDE STYLES > COVER BLOCK: FIXED BACKGROUND END */

/* ==========================================================================
   GENERAL STYLES > WORDPRESS CORE/OVERRIDE STYLES > DETAILS BLOCK BEGIN
   Smooth open/close and a custom arrow.
   The theme always draws its own arrow, even though it looks like the default ▶. The default comes from the browser: it differs slightly from browser to browser and can't turn smoothly as the block opens. Our own arrow looks the same everywhere, rotates smoothly, and is easy to swap. TO CHANGE THE ARROW: swap the icon line below for any SVG (see the chevron example) and set the rotation. The arrow takes the summary's text colour.
   ========================================================================== */

.wp-block-details {
	--fs-details-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4l13 8-13 8z'/%3E%3C/svg%3E");
	/* chevron example: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") with rotation 180deg */
	--fs-details-icon-size: 14px;
	--fs-details-icon-open-rotation: 90deg;
}
.wp-block-details summary {
	list-style: none; /* hides the browser's own arrow */
	cursor: pointer;
}
.wp-block-details > summary + * {
	margin-top: 10px; /* a small gap between the summary line and the first block inside the Details block (it sits inside the part that opens and closes, so it doesn't show when the block is closed) */
}
.wp-block-details summary::-webkit-details-marker {
	display: none; /* hides the arrow in Safari */
}
.wp-block-details summary::before {
	content: "";
	display: inline-block;
	width: var(--fs-details-icon-size);
	height: var(--fs-details-icon-size);
	margin-right: 10px;
	vertical-align: middle;
	background: currentColor;
	mask: var(--fs-details-icon) center / contain no-repeat;
}
.wp-block-details[open] summary::before {
	transform: rotate(var(--fs-details-icon-open-rotation));
}

/* --------------------------------------------------------------------------
   These styles affect the part of the Details block that opens and closes (everything below the summary line). Closed, it's squashed to zero height; open, it grows to fit its contents. Don't add margin or padding in this stylesheet to this part itself: padding still takes up space when the height is zero, so the block would never fully close. Margin and padding set in the WP admin are fine, whether on the Details block itself or on the blocks inside it. */

.wp-block-details::details-content {
	height: 0;
	overflow: hidden;
}
.wp-block-details[open]::details-content {
	height: auto;
}
/* -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Details block motion: only for visitors who haven't asked for reduced motion (they get an instant open/close). Animating to height: auto needs interpolate-size, set in Base Styles. */

@media (prefers-reduced-motion: no-preference) {
	.wp-block-details::details-content {
		transition: height 1s, content-visibility 1s;
		transition-behavior: allow-discrete; /* lets content-visibility wait until the slide finishes */
	}
	.wp-block-details summary::before {
		transition: transform 0.4s ease-in-out;
	}
}
/* -------------------------------------------------------------------------- */

/* GENERAL STYLES > WORDPRESS CORE/OVERRIDE STYLES > DETAILS BLOCK END */

/* ==========================================================================
   GENERAL STYLES > WORDPRESS CORE/OVERRIDE STYLES > ACCORDION BLOCK BEGIN
   Smooth open/close and a custom icon.
   The theme always draws its own icon, even though it looks like WordPress's default +. WordPress's + is a text character, so its size and thickness change with the heading's font; our own icon looks the same with any font, turns smoothly into an x when the panel opens, and is easy to swap. TO CHANGE THE ICON: swap the icon line below for any SVG (see the chevron example) and set the rotation. The icon takes the heading's text colour. Closed panels use WordPress's hidden="until-found", so browser Find (Ctrl+F) can still search inside them, and links inside closed panels can't be tabbed to.
   ========================================================================== */

.wp-block-accordion {
	--fs-accordion-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
	/* chevron example: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") with rotation 180deg */
	--fs-accordion-icon-size: 16px;
	--fs-accordion-icon-open-rotation: 45deg;
}
.wp-block-accordion-heading__toggle-icon {
	flex: none;
	width: var(--fs-accordion-icon-size);
	height: var(--fs-accordion-icon-size);
	font-size: 0; /* hides WordPress's "+" character */
	background: currentColor;
	mask: var(--fs-accordion-icon) center / contain no-repeat;
}
.wp-block-accordion-item.is-open > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon {
	transform: rotate(var(--fs-accordion-icon-open-rotation));
}
.wp-block-accordion-panel {
	height: auto;
	overflow: hidden;
}
.wp-block-accordion-panel[hidden] {
	height: 0;
}

/* --------------------------------------------------------------------------
   Remove top/bottom margins inside the accordion panel so it doesn't jump at the end of the slide */

.wp-block-accordion-panel > *:first-child {
	margin-top: 0 !important;
}
.wp-block-accordion-panel > *:last-child {
	margin-bottom: 0 !important;
}
/* -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Accordion block motion: only for visitors who haven't asked for reduced motion (they get an instant open/close). Animating to height: auto needs interpolate-size, set in Base Styles. */

@media (prefers-reduced-motion: no-preference) {
	.wp-block-accordion-panel {
		transition: height 1s ease, content-visibility 1s;
		transition-behavior: allow-discrete; /* lets the content stay visible until the slide finishes */
	}
	.wp-block-accordion-item > .wp-block-accordion-heading .wp-block-accordion-heading__toggle-icon {
		transition: transform 0.6s ease;
	}
}
/* -------------------------------------------------------------------------- */

/* GENERAL STYLES > WORDPRESS CORE/OVERRIDE STYLES > ACCORDION BLOCK END */

/* GENERAL STYLES > WORDPRESS CORE/OVERRIDE STYLES END */

/* GENERAL STYLES > UTILITY CLASSES BEGIN
 * Add these classes to any block (by selecting the block, then going to "Advanced > Additional CSS class(es)" and typing the class name there. To add more than one class, separate them with a space). The block will now have the behaviour(s) defined in any of the utility classes below.
 *
 * QUICK LIST OF THE THEME'S CLASSES (full instructions are with each class)
 *
 * In this section:
 *   textWrapBalance                   evens out line lengths (any text block)
 *   hideOnDesktop                     hides a block or menu item at 1024px and wider
 *   hideOnMobile                      hides a block or menu item below 1024px
 *   stackColumnsAt1023                Columns stack below 1024px (Columns block)
 *   twoColumnsAt1023                  Columns go to 2 per row from 782-1023px (Columns block)
 *   tabletTwoColumns-phoneOneColumn   Query Loop grid: 2 per row on tablets, 1 on phones (Post Template)
 *   makeTitleIntoButton               post title becomes a "More on..." button (Title block in a Query Loop)
 *   alignButtonsToBottomOfAllColumns  lines those buttons up across a row (Post Template)
 *   curveTop                          section's top edge bulges up into the section above (Group)
 *   curveBottom                       section's bottom edge bulges down into the section below (Group)
 *
 * In other sections:
 *   formWrapper                       form fields side by side, wrapping on small screens (div in a Contact Form 7 form; Forms)
 *   noCurtain                         plain hover colour change instead of the curtain sweep (Button block; WordPress Core)
 */

.textWrapBalance {
	/* Make line lengths more even, so a single word isn't left alone on the last line (headings already do this automatically). */
	text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Hide something on desktop or on mobile (the switch is at 1024px, the same as the menu). Works on menu items too, e.g. a "Home" link only for the mobile menu. */

@media (min-width: 1024px) {
	.hideOnDesktop {
		display: none !important;
	}
}
@media (max-width: 1023px) {
	.hideOnMobile,
	.wp-block-navigation-item:has(> .hideOnMobile) {
		display: none !important;
	}
}
/* -------------------------------------------------------------------------- */

/* GENERAL STYLES > UTILITY CLASSES > COLUMNS BEGIN
   Classes for the Columns block. */

/* --------------------------------------------------------------------------
   Make columns stack into one column below 1024px wide (WordPress's default is 781px). Add the class "stackColumnsAt1023" to the Columns block (Advanced > Additional CSS class(es)). */

@media (max-width: 1023px) {
	.stackColumnsAt1023.wp-block-columns {
		flex-wrap: wrap !important;
	}
	.stackColumnsAt1023 .wp-block-column {
		flex-basis: 100% !important;
	}
}
/* -------------------------------------------------------------------------- */

/* Make three or four columns become rows of two between 782px and 1023px wide; below that WordPress stacks them into one column as usual. Add the class "twoColumnsAt1023" to the Columns block (Advanced > Additional CSS class(es)). Uses grid, so the block's own column gap is always respected. */

@media (min-width: 782px) and (max-width: 1023px) {
	.twoColumnsAt1023.wp-block-columns {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* GENERAL STYLES > UTILITY CLASSES > COLUMNS END */

/* GENERAL STYLES > UTILITY CLASSES > QUERY LOOP BEGIN
   Classes for the Query Loop block (on its Post Template block, or on the Title block inside it). */

/* --------------------------------------------------------------------------
   Make a Query Loop grid show 2 columns on tablets and 1 column on phones.
   Put the class "tabletTwoColumns-phoneOneColumn" on the Post Template block inside the Query. On its own, the WordPress grid keeps every column until 600px, then drops to 1.
   NOTE: these breakpoints are deliberately different from the 1023/782 ones used elsewhere:
   1024 catches iPads in landscape, and 767 keeps 768px tablets on 2 columns. */

@media (min-width: 768px) and (max-width: 1024px) {
	.wp-block-post-template.is-layout-grid.tabletTwoColumns-phoneOneColumn {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}
@media (min-width: 601px) and (max-width: 767px) {
	.wp-block-post-template.is-layout-grid.tabletTwoColumns-phoneOneColumn {
		grid-template-columns: 1fr !important;
	}
}
/* -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Make the post TITLE in a Query Loop into a button, instead of a generic "Read more" link.
   The post title becomes the link text, which is better for SEO than "Read more". ("More on" below is a visual label only: search engines ignore CSS content, but screen readers usually read it.) How to use: in the Query Loop use the Title block (not Read More), turn on "Make title a link", and put the class "makeTitleIntoButton" on the Title block. Set all other styles (colours, font, border, radius) on the Title block in the editor. Padding, width and display must stay here. On hover, the Primary colour sweeps across like the curtain on Button blocks. */

.makeTitleIntoButton a {
	display: block; /* a link is inline by default, so width and padding wouldn't work without this */
	padding: 14px;
	width: 100%;
	position: relative;
	isolation: isolate; /* keeps the sweep behind the text but inside the button */
	overflow: hidden;
	border-radius: inherit; /* the sweep follows the Title block's rounded corners */
	transition: color 0.5s;
}
.makeTitleIntoButton a::before {
	content: 'More on '; /* adjust as needed */
}
.makeTitleIntoButton a::after {
	/* the curtain: the Primary colour sweeps in from the left on hover and slides back out to the left, matching the Button blocks (see BUTTON CURTAIN HOVER) */
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--wp--preset--color--primary);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.5s ease-out;
}
.makeTitleIntoButton a:is(:hover, :focus-visible) {
	color: white !important;
}
.makeTitleIntoButton a:is(:hover, :focus-visible)::after {
	transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
	.makeTitleIntoButton a::after {
		transition: none; /* no sweep: the colour simply changes */
	}
}
/* -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Make the title buttons in a Query Loop line up at the bottom of every card in a row, even when one post's excerpt is longer than another's. (The grid already makes the cards equal height; this pushes the button to the bottom.) How to use: put the class "alignButtonsToBottomOfAllColumns" on the Post Template block, and "makeTitleIntoButton" on the Title block. Works with any heading level. */

.alignButtonsToBottomOfAllColumns > li {
	display: flex;
	flex-direction: column;
}
.alignButtonsToBottomOfAllColumns > li .makeTitleIntoButton {
	margin-top: auto !important;
}
/* -------------------------------------------------------------------------- */

/* GENERAL STYLES > UTILITY CLASSES > QUERY LOOP END */

/* GENERAL STYLES > UTILITY CLASSES > CURVED SECTION EDGES BEGIN
   HOW TO USE: select a section's Group > Advanced > Additional CSS class(es), and add:
     curveTop    = this section's TOP edge bulges UP into the section above it
     curveBottom = this section's BOTTOM edge bulges DOWN into the section below it
   - The curve is always this section's own background colour, so pick the class on the section whose colour you want the bulge to be. Wrong one? Just swap the class.
   - The section MUST have a background colour set in the editor (even plain White), or the curve will be invisible.
   - Change the section's colour and the curve follows automatically.
   - The neighbouring section automatically gets a band of extra space (in its own colour) for the curve to sit in, so the curve never covers its content.
   - Solid colours only: a see-through background colour won't match its neighbour. */

:root {
	--fs-curve-depth: 5.2vw; /* how deep the curves are: 5.2vw = 100px on a 1920px screen, 20px on a phone. A px value gives the same depth on every screen */
}
.curveTop,
.curveBottom {
	position: relative;
}
.curveTop::before,
.curveBottom::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: calc(var(--fs-curve-depth) + 1px); /* 1px overlap into its own section hides any hairline seam */
	background: inherit; /* the section's own colour */
	z-index: 1;
	mask-size: 100% 100%;
	mask-repeat: no-repeat;
}
.curveTop::before {
	bottom: calc(100% - 1px);
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100Q960-100 1920 100Z'/%3E%3C/svg%3E");
}
.curveBottom::after {
	top: calc(100% - 1px);
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1920 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0Q960 200 1920 0Z'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   Make room for the curve: give the section next to a curved edge a band of extra space for the curve to sit in, so it never covers that section's content. The band is a see-through border, so it shows that section's own colour. */

*:has(+ .curveTop),
*:has(+ :is(style, script) + .curveTop) {
	border-bottom: var(--fs-curve-depth) solid transparent;
}
.curveBottom + :not(style, script),
.curveBottom + :is(style, script) + * {
	/* the second line skips over a Custom CSS (HTML) block placed between the two sections */
	border-top: var(--fs-curve-depth) solid transparent;
}
/* -------------------------------------------------------------------------- */

/* GENERAL STYLES > UTILITY CLASSES > CURVED SECTION EDGES END */

/* GENERAL STYLES > UTILITY CLASSES END */

/* GENERAL STYLES > FORMS BEGIN
 * A sensible starting point so new forms (Contact Form 7 etc.) look tidy before they're styled, including a pill-shaped Submit button in the Primary colour with the curtain hover. Each site's own form design (colours, borders, a different button) goes in the UNIQUE STYLES half of this file, in a CONTACT FORM section under SITE-WIDE STYLES. */

input:not([type="checkbox"], [type="radio"], [type="submit"], [type="file"]), textarea, select {
	width: 100%;
	font: inherit;
}
textarea {
	resize: vertical;
}
.grecaptcha-badge {
	/* Hides Google's floating reCAPTCHA badge (bottom-right corner) on sites that use reCAPTCHA v3 for their forms. Google's rules allow this ONLY if each protected form shows this sentence, with both links: "This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply." (Privacy Policy: https://policies.google.com/privacy, Terms of Service: https://policies.google.com/terms). "visibility", not "display: none", so reCAPTCHA keeps working. */
	visibility: hidden;
}
input[type="submit"]:not(.wp-element-button) {
	/* Submit buttons in forms (Contact Form 7 and other plugins): a pill in the Primary colour, at least 48px tall (Google's minimum tap size), with the same curtain sweep on hover as the other buttons. Buttons WordPress already styles, such as the comment form's, keep the theme's button look. A Submit button can't have the extra layers the other curtains use, so here the hover colour is a strip in the background that starts at zero width on the left and widens to fill the button. Set the hover colour in CSS VARIABLES (--fs-submit-hover-background). */
	min-height: 48px;
	padding: 12px 40px;
	border: none;
	border-radius: 999px; /* any value larger than half the height makes fully round ends */
	background: linear-gradient(var(--fs-submit-hover-background), var(--fs-submit-hover-background)) left / 0% 100% no-repeat, var(--wp--preset--color--primary); /* the hover strip (zero width), on top of the normal Primary colour */
	color: white;
	font: inherit;
	cursor: pointer;
	transition: background-size 0.5s ease-out;
}
input[type="submit"]:not(.wp-element-button):is(:hover, :focus-visible) {
	background-size: 100% 100%, auto; /* the strip widens to fill the button, sweeping in from the left; on mouse-out it shrinks back to the left. (The "auto" is for the Primary layer underneath, which must stay unchanged or the browser skips the sweep.) */
}
@media (prefers-reduced-motion: reduce) {
	input[type="submit"]:not(.wp-element-button) {
		transition: none; /* no sweep: the colour simply changes */
	}
}

/* --------------------------------------------------------------------------
   Put fields side by side in a row that wraps on smaller screens: wrap them in <div class="formWrapper"> in the form. Each field is at least 325px wide (or the full width, on screens narrower than that). */

.formWrapper {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	column-gap: 20px;
}
.formWrapper > * {
	flex: 1 1 325px;
}
/* -------------------------------------------------------------------------- */

/* GENERAL STYLES > FORMS END */

/* GENERAL STYLES > HEADER BEGIN */

.header {
	position: sticky;
	top: 0;
	z-index: 999;
}
.header.scrolled {
	border-bottom: var(--fs-header-scrolled-border-bottom);
}

/* --------------------------------------------------------------------------
   Logo shrinks when the page is scrolled (scripts.js adds .scrolled to the header) */

.header .logo img {
	width: var(--fs-logo-width);
}
.header.scrolled .logo img {
	width: var(--fs-logo-width-scrolled);
}
@media (prefers-reduced-motion: no-preference) {
	.header .logo img {
		transition: width 0.5s;
	}
}
/* -------------------------------------------------------------------------- */

/* GENERAL STYLES > HEADER END */

/* ==========================================================================
   GENERAL STYLES > NAVIGATION BEGIN
   Set colours, fonts, item spacing, alignment, the hamburger icon and how submenus open (hover or click) in the Navigation block's own settings. This section only adds what the editor can't do. Variables are at the top of this file. Desktop menu: 1024px and wider. Mobile menu (hamburger): 1023px and narrower. The mobile menu's contents are the "Navigation Overlay" template part (parts/navigation-overlay.html), chosen in the header's Navigation block under Overlay.
   ========================================================================== */

/* GENERAL STYLES > NAVIGATION > DESKTOP MENU BEGIN (1024px and wider) */

@media (min-width: 1024px) {
	/* --------------------------------------------------------------------------
	   Line that grows across the top of a main menu item on hover */

	.wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item::before {
		content: "";
		position: absolute;
		top: -10px;
		left: 0;
		width: 100%;
		height: 2px;
		background: var(--fs-desktop-menu-hover-color);
		scale: 0;
		transform-origin: right;
	}
	.wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item:is(:hover, :focus-within)::before {
		scale: 1;
		transform-origin: left;
	}
	/* -------------------------------------------------------------------------- */

	/* --------------------------------------------------------------------------
	   Main menu item colours: the hover colour and the current-page colour (both set in CSS VARIABLES) */

	.wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:not([aria-current]):hover {
		color: var(--fs-desktop-menu-hover-color);
	}
	.wp-block-navigation .wp-block-navigation-item__content[aria-current] {
		color: var(--fs-desktop-menu-current-page-color);
	}
	/* -------------------------------------------------------------------------- */

	/* --------------------------------------------------------------------------
	   Submenus (any level). WordPress shows a submenu by making it visible; the theme keeps it full size while hidden, so it can fade and slide out as well as in. */

	.wp-block-navigation .has-child .wp-block-navigation__submenu-container {
		width: auto;
		min-width: 200px;
		height: auto;
		overflow: visible;
		border: var(--fs-desktop-submenu-border);
		translate: 0 10px;
	}
	.wp-block-navigation .has-child:is(:hover, :focus-within) > .wp-block-navigation__submenu-container,
	.wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
		translate: none;
	}
	.wp-block-navigation__submenu-container .wp-block-navigation-item {
		border-bottom: var(--fs-desktop-submenu-item-border-bottom);
	}
	.wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		padding: var(--fs-desktop-submenu-padding);
		font-size: var(--fs-desktop-submenu-font-size);
		text-transform: var(--fs-desktop-submenu-text-transform);
	}
	.wp-block-navigation__submenu-container .wp-block-navigation-item__content:not([aria-current]):hover {
		background: var(--fs-desktop-submenu-hover-background);
		color: var(--fs-desktop-menu-hover-color);
	}
	/* -------------------------------------------------------------------------- */

	/* --------------------------------------------------------------------------
	   A bigger (invisible) tap area around the small submenu arrows, for touch screens */

	.wp-block-navigation .wp-block-navigation__submenu-icon {
		position: relative;
	}
	.wp-block-navigation .wp-block-navigation__submenu-icon::after {
		content: "";
		position: absolute;
		inset: -12px;
	}
	/* -------------------------------------------------------------------------- */

	.header.scrolled .wp-block-navigation__container .wp-block-site-logo img {
		/* Only for a logo placed inside the menu (centred-logo layouts): shrinks on scroll like the header logo */
		width: var(--fs-menu-logo-width-scrolled);
	}
}

/* --------------------------------------------------------------------------
   Desktop menu motion: the hover line, submenus fading and sliding, the submenu arrows turning, and the in-menu logo shrinking. Only for visitors who haven't asked for reduced motion. */

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
	.wp-block-navigation__responsive-container-content > .wp-block-navigation__container > .wp-block-navigation-item::before {
		transition: scale 250ms ease-in;
	}
	.wp-block-navigation .has-child .wp-block-navigation__submenu-container {
		transition: opacity 0.3s ease-in-out, translate 0.3s ease-in-out, visibility 0.3s;
	}
	.wp-block-navigation .wp-block-navigation__submenu-icon svg {
		transition: transform 0.3s ease-in-out;
	}
	.wp-block-navigation__container .wp-block-site-logo img {
		transition: width 0.5s;
	}
}
/* -------------------------------------------------------------------------- */

/* GENERAL STYLES > NAVIGATION > DESKTOP MENU END */

/* GENERAL STYLES > NAVIGATION > MOBILE MENU BEGIN (1023px and narrower)
   WordPress switches to the hamburger at 600px; these rules move that to 1024px. Make sure the Navigation block's "Overlay Menu" setting is "Mobile". */

@media (max-width: 1023px) {
	.wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
	.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
		position: fixed; /* the mobile menu stays full screen while it animates closed */
		inset: 0;
		z-index: 100000;
	}
	nav.wp-block-navigation {
		justify-content: flex-end !important; /* hamburger on the right, whatever the block's alignment */
	}
	.wp-block-navigation__responsive-container-open svg {
		width: var(--fs-mobile-hamburger-size);
		height: var(--fs-mobile-hamburger-size);
	}
	.wp-block-navigation:has(.is-menu-open) .wp-block-navigation__responsive-container-open {
		/* Hamburger spins and fades out while the menu is open, and spins back when it closes */
		opacity: 0;
		rotate: 760deg;
	}

	/* --------------------------------------------------------------------------
	   Make the menu grow out of the top-left corner when it opens, and shrink back when it closes */

	.wp-block-navigation__responsive-container {
		scale: 0;
		transform-origin: top left;
	}
	.wp-block-navigation__responsive-container.is-menu-open {
		scale: 1;
		overflow-x: hidden; /* the menu only ever scrolls up and down, never sideways */
	}
	@starting-style {
		.wp-block-navigation__responsive-container.is-menu-open {
			scale: 0;
		}
	}
	/* -------------------------------------------------------------------------- */

	/* --------------------------------------------------------------------------
	   Keep showing the custom overlay (not WordPress's plain list) while it animates closed */

	.wp-block-navigation__responsive-container.disable-default-overlay .wp-block-navigation__overlay-container {
		display: block;
	}
	.wp-block-navigation__responsive-container.disable-default-overlay .wp-block-navigation__responsive-container-content > :not(.wp-block-navigation__overlay-container) {
		display: none;
	}
	/* -------------------------------------------------------------------------- */
}

/* --------------------------------------------------------------------------
   Mobile menu motion (the menu opening and closing): only for visitors who haven't asked for reduced motion */

@media (max-width: 1023px) and (prefers-reduced-motion: no-preference) {
	.wp-block-navigation__responsive-container-open {
		transition: opacity 0.7s, rotate 0.7s;
	}
	.wp-block-navigation__responsive-container {
		transition: scale 0.4s ease-in-out, display 0.4s allow-discrete;
	}
	.is-menu-open .wp-block-navigation-overlay-close svg {
		animation: fs-close-spin-in 0.6s ease-out; /* the X spins in as the menu opens */
	}
}
@keyframes fs-close-spin-in {
	from {
		rotate: -180deg;
		opacity: 0;
	}
}
/* -------------------------------------------------------------------------- */

/* scripts.js adds .fs-no-anim for a moment when the window crosses the mobile breakpoint (resizing the window, or rotating a tablet), so the menu doesn't flash on screen */

.fs-no-anim .wp-block-navigation__responsive-container,
.fs-no-anim .wp-block-navigation__responsive-container-open {
	transition: none !important;
}

/* GENERAL STYLES > NAVIGATION > MOBILE MENU END */

/* GENERAL STYLES > NAVIGATION > MOBILE MENU CONTENTS BEGIN (the menu inside the Navigation Overlay template part)
   Build the overlay itself (logo, close button, colours, padding) in the Site Editor. Leave the menu inside it set to open submenus on Hover (WordPress's default): that keeps each parent item a real link, with its own arrow button. These rules turn it into full-width rows with sliding accordion submenus. */

.wp-block-navigation__overlay-container .wp-block-navigation__container,
.wp-block-navigation__overlay-container .wp-block-navigation-item {
	width: 100%;
}
.wp-block-navigation__overlay-container .wp-block-navigation .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: var(--fs-mobile-menu-item-padding);
	border-bottom: var(--fs-mobile-menu-item-border);
	text-align: left;
}
.wp-block-navigation__overlay-container .wp-block-navigation-item__content[aria-current] {
	color: var(--fs-mobile-menu-current-page-color);
}
.wp-block-navigation__overlay-container .wp-block-navigation-overlay-close {
	/* The overlay's close X: a 48px tap area (Google's recommended minimum) without moving the X */
	min-width: 48px;
	min-height: 48px;
	margin: -12px -10px -12px -14px; /* right: -10px matches the bar's 10px padding, so it never sticks out past the screen */
	color: inherit; /* the X takes the overlay's text colour (browsers make buttons black otherwise, invisible on a dark overlay) */
}

/* --------------------------------------------------------------------------
   Items with a submenu: the label goes to that page; the arrow box on the right opens the submenu. (A label linked to "#" opens the submenu too: see scripts.js.) */

.wp-block-navigation__overlay-container .wp-block-navigation-item.has-child {
	display: grid;
	grid-template-columns: 1fr 60px;
}
.wp-block-navigation__overlay-container .wp-block-navigation .wp-block-navigation-item .wp-block-navigation__submenu-icon {
	grid-area: 1 / 2 / 2 / 3;
	align-self: stretch;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	margin: 0;
	padding: 0;
	border-left: var(--fs-mobile-menu-item-border);
	border-bottom: var(--fs-mobile-menu-item-border);
}
.wp-block-navigation__overlay-container .wp-block-navigation .has-child .wp-block-navigation__submenu-icon svg {
	width: 24px;
	height: 24px;
	margin: 0;
	stroke: var(--fs-mobile-submenu-arrow-color);
	transform: none;
}
.wp-block-navigation__overlay-container .wp-block-navigation__submenu-icon svg path {
	stroke-width: 0.9px; /* a thin, sleek arrow */
}
.wp-block-navigation__overlay-container .wp-block-navigation .wp-block-navigation-submenu__toggle[aria-expanded="true"] > svg {
	transform: rotate(180deg);
}
/* -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   Submenus: closed until their row is tapped, then slide open below it */

.wp-block-navigation__overlay-container .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
	grid-column: 1 / -1;
	position: static;
	width: auto; /* full width even while closed, so text doesn't reflow as it slides open */
	min-width: 0;
	height: 0;
	overflow: hidden;
	padding: 0;
	border: none;
	color: inherit;
	background: var(--fs-mobile-submenu-background);
}
.wp-block-navigation__overlay-container .wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
	overflow: hidden; /* keeps items tucked in while it slides open */
}
.wp-block-navigation__overlay-container .wp-block-navigation .has-child:not(:has(> [aria-expanded="true"])) > .wp-block-navigation__submenu-container {
	/* A mouse hovering over a parent item doesn't open its submenu here; only taps and clicks do */
	visibility: hidden;
	opacity: 0;
	height: 0;
}
.wp-block-navigation__overlay-container .wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: var(--fs-mobile-menu-item-padding);
	padding-left: 20px;
	border-bottom: var(--fs-mobile-submenu-border-bottom);
	text-transform: var(--fs-mobile-submenu-text-transform);
}
.wp-block-navigation__overlay-container .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item .wp-block-navigation__submenu-icon {
	border-bottom: var(--fs-mobile-submenu-border-bottom);
}
/* -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Submenus inside submenus */

.wp-block-navigation__overlay-container .wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container {
	background: var(--fs-mobile-sub-submenu-background);
}
.wp-block-navigation__overlay-container .wp-block-navigation .has-child .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding-left: 30px;
	border-bottom: var(--fs-mobile-sub-submenu-border-bottom);
}
/* -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Mobile submenu motion: only for visitors who haven't asked for reduced motion. Sliding to height: auto needs interpolate-size, set in Base Styles. */

@media (prefers-reduced-motion: no-preference) {
	.wp-block-navigation__overlay-container .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
		transition: height 0.6s ease-in-out, opacity 0.6s ease-in-out, visibility 0.6s;
	}
	.wp-block-navigation__overlay-container .wp-block-navigation .has-child .wp-block-navigation__submenu-icon svg {
		transition: transform 0.4s;
	}
}
/* -------------------------------------------------------------------------- */

/* GENERAL STYLES > NAVIGATION > MOBILE MENU CONTENTS END */

/* GENERAL STYLES > NAVIGATION END */

/* GENERAL STYLES (THOSE THAT AFFECT ALL SITES BUILT WITH THIS THEME) END */

/* UNIQUE STYLES (USED ONLY FOR THIS SITE) BEGIN */

/* UNIQUE STYLES > SITE-WIDE STYLES BEGIN
   Forms, plus anything used across many pages. */

/* UNIQUE STYLES > SITE-WIDE STYLES END */

/* UNIQUE STYLES > FOOTER STYLES BEGIN */

/* --------------------------------------------------------------------------
   Phones and tablets: the footer columns stack (stackColumnsAt1023 on the footer's Columns block). These rules put the logo first, then the phone number, then the email, all centred. */

@media (max-width: 1023px) {
	.footerFirstColumn {
		order: 2;
		text-align: center;
	}
	.footerThirdColumn {
		order: 3;
	}
	.footer .footerThirdColumn p {
		/* the paragraphs have their own alignment set in the editor (right), so centring the column alone wouldn't override them; the extra .footer makes this rule strong enough to beat WordPress's alignment rule */
		text-align: center;
	}
}
/* -------------------------------------------------------------------------- */

/* UNIQUE STYLES > FOOTER STYLES END */

/* UNIQUE STYLES (USED ONLY FOR THIS SITE) END */
