/**
 * Stafford Boat Club — component styles.
 *
 * Design tokens (colour, type, spacing) come from theme.json.
 * This file styles the components those tokens are used by, plus the custom
 * block styles registered in functions.php.
 *
 * Loaded on the front end AND inside the block editor, so what an editor sees
 * while writing is what visitors get.
 */

/* -------------------------------------------------------------------------
 * 1. Base
 * ---------------------------------------------------------------------- */

:root {
	--sbc-ring: 0 0 0 3px rgba(0, 39, 107, 0.18);
	--sbc-ease: 220ms cubic-bezier(0.2, 0, 0.2, 1);
	--sbc-header-h: 84px;
}

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

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

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-optical-sizing: auto;
}

::selection {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy-deep);
}

/* A focus ring that is genuinely easy to see — this site has a lot of
   keyboard and screen-magnifier users. */
:where(a, button, input, select, textarea, summary, .wp-block-button__link):focus-visible {
	outline: 3px solid var(--wp--preset--color--navy);
	outline-offset: 3px;
	border-radius: 4px;
	box-shadow: 0 0 0 6px rgba(251, 194, 24, 0.45);
}

.sbc-on-dark :where(a, button, summary):focus-visible,
.has-navy-background-color :where(a, button, summary):focus-visible,
.has-navy-deep-background-color :where(a, button, summary):focus-visible,
.wp-block-cover :where(a, button, summary):focus-visible {
	outline-color: var(--wp--preset--color--gold);
	box-shadow: 0 0 0 6px rgba(0, 39, 107, 0.55);
}

/* Comfortable touch/click targets everywhere. */
:where(.wp-block-button__link, .wp-block-navigation-item__content, .wp-block-search__button) {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Body links: underlined, with room to breathe so they stay legible. */
.wp-block-post-content a:not(.wp-block-button__link),
.sbc-linkcard__body a:not(.wp-block-button__link) {
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1.5px;
}

/* Skip link */
.skip-link.screen-reader-text:focus {
	background: var(--wp--preset--color--navy);
	color: #fff;
	border-radius: var(--wp--custom--radius--sm);
	padding: 0.75rem 1.25rem;
	z-index: 100000;
}

/* Balanced headline wrapping — stops one orphan word on a line. */
h1, h2, h3, .wp-block-post-title, .wp-block-site-title {
	text-wrap: balance;
}

p, li {
	text-wrap: pretty;
}

/* Hyphenate long words on narrow screens rather than overflow. */
@media (max-width: 600px) {
	h1, h2, .wp-block-post-title { overflow-wrap: break-word; }
}

/* -------------------------------------------------------------------------
 * 2. Layout helpers
 * ---------------------------------------------------------------------- */

/* Give any full-width section sensible inner gutters. */
.alignfull > :where(.wp-block-group__inner-container, .wp-block-cover__inner-container) {
	padding-inline: 0;
}

/* A slightly narrower measure for long-form prose. */
.sbc-prose :where(p, ul, ol, h2, h3, h4, blockquote) {
	max-width: 42rem;
}

/* -------------------------------------------------------------------------
 * 3. Notice bar + header
 * ---------------------------------------------------------------------- */

.sbc-notice-bar {
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.01em;
}

.sbc-notice-bar a {
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid rgba(255, 255, 255, 0.28);
	transition: border-color var(--sbc-ease), color var(--sbc-ease);
}

.sbc-notice-bar a:hover,
.sbc-notice-bar a:focus {
	color: var(--wp--preset--color--gold);
	border-bottom-color: var(--wp--preset--color--gold);
}

/*
 * Deliberately no backdrop-filter here. A filtered element becomes the
 * containing block for fixed-position descendants, which traps the mobile
 * navigation overlay inside the header instead of covering the viewport.
 */
.sbc-header {
	position: sticky;
	top: 0;
	z-index: 90;
	background: #fff;
	transition: box-shadow var(--sbc-ease);
}

/* Club colours as a fine rule under the header — navy, gold, red. */
.sbc-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: linear-gradient(90deg,
		var(--wp--preset--color--navy) 0%,
		var(--wp--preset--color--navy) 34%,
		var(--wp--preset--color--gold) 34%,
		var(--wp--preset--color--gold) 67%,
		var(--wp--preset--color--red) 67%,
		var(--wp--preset--color--red) 100%);
}

body.sbc-scrolled .sbc-header {
	box-shadow: 0 1px 0 rgba(13, 22, 38, 0.04), 0 10px 30px rgba(13, 22, 38, 0.09);
}

/* Editor: the sticky header shouldn't detach inside the canvas. */
.editor-styles-wrapper .sbc-header {
	position: relative;
}

/* The burgee is the club's identity — give it room, and never let the flex
   row squash it (a nowrap flex parent will happily shrink an image to 0). */
.sbc-header .wp-block-site-logo,
.sbc-header .sbc-brand-lockup {
	flex: 0 0 auto;
}

.sbc-header .wp-block-site-logo img {
	height: 68px;
	width: auto;
	max-width: none;
	transition: height var(--sbc-ease);
}

body.sbc-scrolled .sbc-header .wp-block-site-logo img {
	height: 54px;
}

@media (max-width: 600px) {
	.sbc-header .wp-block-site-logo img,
	body.sbc-scrolled .sbc-header .wp-block-site-logo img {
		height: 50px;
	}
}

.sbc-brand-lockup {
	line-height: 1.1;
}

.sbc-brand-lockup .wp-block-site-title {
	white-space: nowrap;
}

.sbc-brand-lockup .sbc-brand-sub {
	display: block;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--red);
	margin-top: 0.45em;
}

/* On narrow phones the wordmark would crowd the burgee — the logo carries it. */
@media (max-width: 480px) {
	.sbc-brand-lockup { display: none; }
}

/* -------------------------------------------------------------------------
 * 4. Navigation
 * ---------------------------------------------------------------------- */

.sbc-header .wp-block-navigation {
	--navigation-layout-gap: 0.15rem;
}

.sbc-header .wp-block-navigation .wp-block-navigation-item__content {
	padding: 0.7rem 0.72rem;
	border-radius: var(--wp--custom--radius--sm);
	color: var(--wp--preset--color--navy-deep);
	font-weight: 500;
	position: relative;
	transition: color var(--sbc-ease), background var(--sbc-ease);
}

.sbc-header .wp-block-navigation .wp-block-navigation-item__content:hover {
	background: var(--wp--preset--color--navy-tint);
}

/* Top-level labels stay on one line — a wrapped menu looks broken. */
.sbc-header .wp-block-navigation > ul > li,
.sbc-header .wp-block-navigation .wp-block-page-list > li {
	flex-shrink: 0;
}

.sbc-header .wp-block-navigation .wp-block-navigation-item__label,
.sbc-header .wp-block-navigation .wp-block-navigation-item__content {
	white-space: nowrap;
}

/*
 * Switch to the overlay menu well before the bar gets tight. Core flips at
 * 600px, which is far too late for a menu this size — and a roomy tap-target
 * list suits the club's members better than a cramped row of small links.
 */
@media (max-width: 1199.98px) {
	.sbc-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
	.sbc-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}
}

.sbc-header .wp-block-navigation .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0.72rem;
	right: 0.72rem;
	bottom: 0.35rem;
	height: 3px;
	background: var(--wp--preset--color--red);
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform var(--sbc-ease);
}

.sbc-header .wp-block-navigation .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.sbc-header .wp-block-navigation .wp-block-navigation-item:focus-within > .wp-block-navigation-item__content::after,
.sbc-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content::after,
.sbc-header .wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

.sbc-header .wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.sbc-header .wp-block-navigation .current-menu-ancestor > .wp-block-navigation-item__content {
	color: var(--wp--preset--color--navy);
	font-weight: 600;
}

/*
 * Submenus — a plain white card. The selectors are deliberately specific
 * because core also emits colour classes on the submenu container, and a
 * navy-on-navy dropdown is unreadable.
 */
.sbc-header .wp-block-navigation .wp-block-navigation__submenu-container,
.sbc-header .wp-block-navigation .wp-block-navigation__submenu-container.has-background {
	background-color: #fff;
	color: var(--wp--preset--color--navy-deep);
	border: 1px solid var(--wp--preset--color--sand);
	border-radius: var(--wp--custom--radius--md);
	box-shadow: 0 2px 4px rgba(13, 22, 38, 0.06), 0 20px 44px rgba(13, 22, 38, 0.16);
	padding: 0.45rem;
	min-width: 16rem;
	overflow: hidden;
}

/* A gold hairline along the top edge ties the dropdown to the club colours. */
.sbc-header .wp-block-navigation .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 3px;
	background: var(--wp--preset--color--gold);
}

.sbc-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content,
.sbc-header .wp-block-navigation .wp-block-navigation__submenu-container a {
	padding: 0.75rem 0.9rem;
	border-radius: var(--wp--custom--radius--sm);
	white-space: nowrap;
	justify-content: flex-start;
	color: var(--wp--preset--color--navy-deep);
	font-weight: 500;
}

.sbc-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after {
	display: none;
}

.sbc-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.sbc-header .wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus,
.sbc-header .wp-block-navigation .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content {
	background-color: var(--wp--preset--color--navy-tint);
	color: var(--wp--preset--color--navy);
}

/*
 * Keep the parent item highlighted while its dropdown is open. Core renders the
 * chevron as a sibling button of the link, so the highlight goes on the list
 * item — otherwise the arrow sits outside the tint and looks detached.
 */
.sbc-header .wp-block-navigation .wp-block-navigation-item.has-child {
	border-radius: var(--wp--custom--radius--sm);
	padding-right: 0.3rem;
	transition: background-color var(--sbc-ease);
}

.sbc-header .wp-block-navigation .wp-block-navigation-item.has-child:hover,
.sbc-header .wp-block-navigation .wp-block-navigation-item.has-child:focus-within {
	background-color: var(--wp--preset--color--navy-tint);
}

/* The link inside a parent item must not paint its own box on top. */
.sbc-header .wp-block-navigation .wp-block-navigation-item.has-child > .wp-block-navigation-item__content:hover {
	background-color: transparent;
}

.sbc-header .wp-block-navigation .wp-block-navigation__submenu-icon {
	color: var(--wp--preset--color--navy-deep);
	padding: 0.35rem;
	border-radius: var(--wp--custom--radius--sm);
}

.sbc-header .wp-block-navigation .wp-block-navigation__submenu-icon svg {
	stroke: currentColor;
}

/* ---------------------------------------------------------------
 * Mobile overlay menu
 *
 * This is how most people will navigate the site on a phone, so it gets
 * full-width rows, large text and generous tap targets rather than a
 * shrunken copy of the desktop bar.
 * --------------------------------------------------------------- */

/* A bigger, labelled menu button — "☰" alone is not obvious to everyone. */
.wp-block-navigation__responsive-container-open {
	font-size: 1.0625rem;
	font-weight: 600;
	gap: 0.5rem;
	padding: 0.6rem 0.9rem;
	border: 1.5px solid var(--wp--preset--color--navy);
	border-radius: var(--wp--custom--radius--pill);
	color: var(--wp--preset--color--navy);
}

.wp-block-navigation__responsive-container-open::after {
	content: "Menu";
}

/* !important is needed: core sets `background-color: inherit` on the open
   overlay, which would otherwise leave it transparent over the page. */
.wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--navy-deep) !important;
	color: #fff !important;
	padding: clamp(1.25rem, 5vw, 2.5rem);
	align-items: flex-start;
	justify-content: flex-start;
}

/* Everything reads left-to-right, whatever the desktop bar's alignment is. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-page-list {
	align-items: flex-start;
	justify-content: flex-start;
	width: 100%;
	gap: 0;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	align-items: flex-start;
	width: 100%;
	border-radius: 0;
	padding-right: 0;
	background-color: transparent;
}

/* Top-level rows, separated by a hairline. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item > .wp-block-navigation-item__content {
	color: #fff;
	font-family: var(--wp--preset--font-family--display);
	font-size: 1.5rem;
	font-weight: 500;
	padding: 0.7rem 0;
	width: 100%;
	justify-content: flex-start;
	background-color: transparent;
	border-radius: 0;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > li + li {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after {
	display: none;
}

/* Sub-items: a plain indented list, not the desktop dropdown card. */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	background-color: transparent;
	border: 0;
	box-shadow: none;
	padding: 0 0 0.5rem 1rem;
	min-width: 0;
	border-left: 2px solid rgba(251, 194, 24, 0.55);
	margin-left: 0.15rem;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container::before {
	display: none;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1.0625rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.85);
	padding: 0.55rem 0;
	background-color: transparent;
	border-radius: 0;
	white-space: normal;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus {
	color: var(--wp--preset--color--gold);
	background-color: transparent;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon {
	color: var(--wp--preset--color--gold);
	padding: 0.5rem;
}

.wp-block-navigation__responsive-container-close {
	color: #fff;
	padding: 0.5rem;
	min-width: 48px;
	min-height: 48px;
}

.wp-block-navigation__responsive-container-close svg {
	width: 28px;
	height: 28px;
	fill: currentColor;
}

/*
 * These two need to out-specify the desktop dropdown rules above, which are
 * scoped to `.sbc-header .wp-block-navigation …` and would otherwise repaint
 * the overlay's sub-items with the white-card treatment.
 */
.sbc-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	padding: 0 0 0.5rem 1rem;
	margin-left: 0.15rem;
	border-left: 2px solid rgba(251, 194, 24, 0.55);
}

.sbc-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.sbc-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus {
	background-color: transparent;
	color: var(--wp--preset--color--gold);
}

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

.wp-block-button__link {
	transition: transform var(--sbc-ease), background-color var(--sbc-ease),
		color var(--sbc-ease), box-shadow var(--sbc-ease), border-color var(--sbc-ease);
	box-shadow: 0 1px 2px rgba(0, 26, 74, 0.12);
	will-change: transform;
	white-space: nowrap;
}

/* The header CTA must never be squeezed into a two-line pill. */
.sbc-header .sbc-header-cta {
	flex: 0 0 auto;
}

.wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(0, 26, 74, 0.20);
}

.wp-block-button__link:active {
	transform: translateY(0);
}

/* Outline (core style) */
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 1.5px solid currentColor;
	box-shadow: none;
	background: transparent;
}

.wp-block-button.is-style-outline > .wp-block-button__link:not(.has-text-color) {
	color: var(--wp--preset--color--navy);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--navy);
	border-color: var(--wp--preset--color--navy);
	color: #fff;
}

/* Gold */
.wp-block-button.is-style-sbc-gold > .wp-block-button__link {
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy-deep);
}

.wp-block-button.is-style-sbc-gold > .wp-block-button__link:hover {
	background: #ffcf3f;
	color: var(--wp--preset--color--navy-deep);
}

/* Club red */
.wp-block-button.is-style-sbc-red > .wp-block-button__link {
	background: var(--wp--preset--color--red);
	color: #fff;
}

.wp-block-button.is-style-sbc-red > .wp-block-button__link:hover {
	background: #a80e13;
	color: #fff;
}

/* Ghost — for use on navy/photographic backgrounds */
.wp-block-button.is-style-sbc-ghost > .wp-block-button__link {
	background: rgba(255, 255, 255, 0.10);
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.55);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	box-shadow: none;
}

.wp-block-button.is-style-sbc-ghost > .wp-block-button__link:hover {
	background: #fff;
	color: var(--wp--preset--color--navy-deep);
	border-color: #fff;
}

/* Text link with arrow */
.wp-block-button.is-style-sbc-link > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--navy);
	padding: 0.25em 0;
	border-radius: 0;
	box-shadow: none;
	font-weight: 600;
	border-bottom: 2px solid var(--wp--preset--color--gold);
}

.wp-block-button.is-style-sbc-link > .wp-block-button__link::after {
	content: " →";
	transition: transform var(--sbc-ease);
	display: inline-block;
}

.wp-block-button.is-style-sbc-link > .wp-block-button__link:hover {
	transform: none;
	color: var(--wp--preset--color--red);
	border-bottom-color: var(--wp--preset--color--red);
}

.wp-block-button.is-style-sbc-link > .wp-block-button__link:hover::after {
	transform: translateX(4px);
}

/* -------------------------------------------------------------------------
 * 6. Cards & panels
 * ---------------------------------------------------------------------- */

.wp-block-group.is-style-sbc-card,
.wp-block-column.is-style-sbc-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--sand);
	border-radius: var(--wp--custom--radius--lg);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	box-shadow: 0 1px 2px rgba(13, 22, 38, 0.04), 0 8px 24px rgba(13, 22, 38, 0.05);
	transition: transform var(--sbc-ease), box-shadow var(--sbc-ease), border-color var(--sbc-ease);
}

.wp-block-group.is-style-sbc-card-outline,
.wp-block-column.is-style-sbc-card-outline {
	background: transparent;
	border: 1px solid var(--wp--preset--color--sand);
	border-radius: var(--wp--custom--radius--lg);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	transition: border-color var(--sbc-ease), background var(--sbc-ease);
}

.wp-block-group.is-style-sbc-card-outline:hover,
.wp-block-column.is-style-sbc-card-outline:hover {
	border-color: var(--wp--preset--color--navy);
	background: rgba(255, 255, 255, 0.6);
}

.wp-block-group.is-style-sbc-panel {
	background: var(--wp--preset--color--navy-tint);
	border-radius: var(--wp--custom--radius--lg);
	padding: clamp(1.5rem, 3vw, 2.25rem);
}

.wp-block-group.is-style-sbc-notice {
	background: var(--wp--preset--color--gold-tint);
	border-left: 4px solid var(--wp--preset--color--gold);
	border-radius: var(--wp--custom--radius--md);
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.wp-block-group.is-style-sbc-notice :where(h2, h3, h4, h5) {
	margin-top: 0;
}

.wp-block-group.is-style-sbc-deck {
	border-top: 3px solid var(--wp--preset--color--gold);
	padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* Linked cards: lift the whole tile on hover. */
.sbc-linkcard {
	position: relative;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--lg);
	background: #fff;
	border: 1px solid var(--wp--preset--color--sand);
	box-shadow: 0 1px 2px rgba(13, 22, 38, 0.04), 0 8px 24px rgba(13, 22, 38, 0.05);
	transition: transform var(--sbc-ease), box-shadow var(--sbc-ease);
	height: 100%;
}

.sbc-linkcard:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 8px rgba(13, 22, 38, 0.06), 0 24px 48px rgba(13, 22, 38, 0.12);
}

.sbc-linkcard .wp-block-image {
	margin: 0;
	overflow: hidden;
}

.sbc-linkcard .wp-block-image img {
	display: block;
	width: 100%;
	transition: transform 600ms cubic-bezier(0.2, 0, 0.2, 1);
}

.sbc-linkcard:hover .wp-block-image img {
	transform: scale(1.045);
}

.sbc-linkcard .sbc-linkcard__body {
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

/* Columns given the "Cards" style get equal-height children. */
.wp-block-columns.is-style-sbc-cards > .wp-block-column {
	display: flex;
	flex-direction: column;
}

.wp-block-columns.is-style-sbc-cards > .wp-block-column > * {
	flex-grow: 0;
}

/* -------------------------------------------------------------------------
 * 7. Lists
 * ---------------------------------------------------------------------- */

.wp-block-list.is-style-sbc-ticks {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}

.wp-block-list.is-style-sbc-ticks > li {
	position: relative;
	padding-left: 2rem;
	margin-bottom: 0.6rem;
	line-height: 1.55;
}

.wp-block-list.is-style-sbc-ticks > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.28em;
	width: 1.15rem;
	height: 1.15rem;
	border-radius: 50%;
	background: var(--wp--preset--color--navy-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2300276b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}

/* On dark backgrounds */
:where(.has-navy-background-color, .has-navy-deep-background-color, .sbc-on-dark) .wp-block-list.is-style-sbc-ticks > li::before {
	background-color: rgba(255, 255, 255, 0.14);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fbc218' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E");
}

.wp-block-list.is-style-sbc-columns,
.sbc-2col {
	columns: 2;
	column-gap: 2.5rem;
}

.wp-block-list.is-style-sbc-columns > li,
.sbc-2col > li {
	break-inside: avoid;
}

@media (max-width: 782px) {
	.wp-block-list.is-style-sbc-columns,
	.sbc-2col { columns: 1; }
}

.wp-block-list.is-style-sbc-plain {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}

/* -------------------------------------------------------------------------
 * 8. Separators
 * ---------------------------------------------------------------------- */

.wp-block-separator.is-style-sbc-rope {
	border: 0;
	height: 6px;
	max-width: 6rem;
	margin-inline: auto;
	opacity: 1;
	background-image: radial-gradient(circle at 3px 3px, var(--wp--preset--color--gold) 2.4px, transparent 2.6px);
	background-size: 10px 6px;
}

.wp-block-separator.is-style-sbc-rope.alignleft,
.wp-block-separator.is-style-sbc-rope:not(.aligncenter):not(.alignright) {
	margin-inline: 0;
}

.wp-block-separator.is-style-sbc-mark {
	border: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--wp--preset--color--sand) 20%, var(--wp--preset--color--sand) 80%, transparent);
	opacity: 1;
	position: relative;
	overflow: visible;
	max-width: 100%;
	margin-block: 2.5rem;
}

.wp-block-separator.is-style-sbc-mark::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 26px;
	height: 18px;
	transform: translate(-50%, -50%);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Cpath d='M2 2 L28 10 L2 18 Z' fill='none' stroke='%2300276b' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
	padding: 0 6px;
}

/* -------------------------------------------------------------------------
 * 9. Headings & text
 * ---------------------------------------------------------------------- */

.wp-block-heading.is-style-sbc-underline {
	position: relative;
	padding-bottom: 0.45em;
}

.wp-block-heading.is-style-sbc-underline::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 3.25rem;
	height: 3px;
	border-radius: 3px;
	background: var(--wp--preset--color--gold);
}

.wp-block-heading.is-style-sbc-underline.has-text-align-center::after {
	left: 50%;
	transform: translateX(-50%);
}

.wp-block-heading.is-style-sbc-eyebrow {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--red);
	line-height: 1.4;
	margin-bottom: 0.5rem;
}

:where(.has-navy-background-color, .has-navy-deep-background-color, .sbc-on-dark) .wp-block-heading.is-style-sbc-eyebrow {
	color: var(--wp--preset--color--gold);
}

p.is-style-sbc-lead {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.55;
	color: var(--wp--preset--color--muted);
	letter-spacing: -0.01em;
}

:where(.has-navy-background-color, .has-navy-deep-background-color, .sbc-on-dark) p.is-style-sbc-lead {
	color: rgba(255, 255, 255, 0.82);
}

/* Text on dark sections */
.sbc-on-dark :where(h1, h2, h3, h4, h5, .wp-block-heading),
.has-navy-background-color :where(h1, h2, h3, h4, h5, .wp-block-heading),
.has-navy-deep-background-color :where(h1, h2, h3, h4, h5, .wp-block-heading) {
	color: #fff;
}

.sbc-on-dark a:not(.wp-block-button__link),
.has-navy-background-color a:not(.wp-block-button__link),
.has-navy-deep-background-color a:not(.wp-block-button__link) {
	color: var(--wp--preset--color--gold);
}

.sbc-on-dark a:not(.wp-block-button__link):hover,
.has-navy-background-color a:not(.wp-block-button__link):hover,
.has-navy-deep-background-color a:not(.wp-block-button__link):hover {
	color: #fff;
}

/* -------------------------------------------------------------------------
 * 10. Images
 * ---------------------------------------------------------------------- */

.wp-block-image img {
	border-radius: var(--wp--custom--radius--md);
}

.wp-block-image.is-style-sbc-rounded img {
	border-radius: var(--wp--custom--radius--lg);
}

.wp-block-image.is-style-sbc-framed img {
	border-radius: var(--wp--custom--radius--lg);
	box-shadow: 0 2px 4px rgba(13, 22, 38, 0.05), 0 22px 48px rgba(13, 22, 38, 0.14);
}

.wp-block-image.is-style-sbc-offset {
	position: relative;
}

.wp-block-image.is-style-sbc-offset img {
	border-radius: var(--wp--custom--radius--lg);
	position: relative;
	z-index: 1;
}

.wp-block-image.is-style-sbc-offset::before {
	content: "";
	position: absolute;
	inset: auto -14px -14px auto;
	width: 62%;
	height: 62%;
	border: 2px solid var(--wp--preset--color--gold);
	border-radius: var(--wp--custom--radius--lg);
	z-index: 0;
}

/* Rounded corners for media & text and covers too. */
.wp-block-media-text.is-style-sbc-rounded .wp-block-media-text__media img,
.wp-block-cover.is-style-sbc-rounded {
	border-radius: var(--wp--custom--radius--lg);
	overflow: hidden;
}

/* -------------------------------------------------------------------------
 * 11. Hero cover
 * ---------------------------------------------------------------------- */

.wp-block-cover.is-style-sbc-hero {
	isolation: isolate;
}

/*
 * Core sets `width: auto` on the inner container of any cover that uses a
 * custom content position, which makes it shrink to fit its text and drift out
 * of alignment with the rest of the page. Full-width covers are page sections
 * here, so their inner container must span the cover and let the constrained
 * layout do the aligning.
 */
.wp-block-cover.alignfull.has-custom-content-position:not(.is-position-center-center) > .wp-block-cover__inner-container,
.wp-block-cover.alignwide.has-custom-content-position:not(.is-position-center-center) > .wp-block-cover__inner-container {
	width: 100%;
	max-width: none;
}

.wp-block-cover.is-style-sbc-hero .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

.sbc-hero-title {
	text-shadow: 0 2px 24px rgba(0, 15, 40, 0.35);
}

/* Decorative water line at the foot of a hero. */
.sbc-wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	z-index: 3;
	line-height: 0;
	pointer-events: none;
}

.sbc-wave svg {
	display: block;
	width: 100%;
	height: clamp(28px, 4vw, 56px);
}

/* -------------------------------------------------------------------------
 * 11b. Club crest
 * ---------------------------------------------------------------------- */

/*
 * Optional decorative burgee, bled off the right edge of a dark band.
 * Not used by default — it competes with content on any section that fills the
 * full width. Add the class "sbc-crest" to a Group or Cover block that has
 * genuine empty space on the right if you want it.
 */
.sbc-crest {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.sbc-crest::before {
	content: "";
	position: absolute;
	right: -4rem;
	top: 50%;
	width: min(24rem, 38%);
	aspect-ratio: 1 / 0.965;
	transform: translateY(-50%);
	background: url("../images/burgee.png") center / contain no-repeat;
	opacity: 0.055;
	pointer-events: none;
	z-index: 0;
}

.sbc-crest > * {
	position: relative;
	z-index: 1;
}

@media (max-width: 782px) {
	.sbc-crest::before { width: 60%; right: -6rem; opacity: 0.05; }
}

/* Inline crest mark, e.g. above a section heading. */
.sbc-crest-mark {
	display: block;
	width: 56px;
	height: 54px;
	background: url("../images/burgee.png") center / contain no-repeat;
	margin-bottom: 1rem;
}

.sbc-crest-mark.aligncenter,
.has-text-align-center > .sbc-crest-mark {
	margin-inline: auto;
}

/* -------------------------------------------------------------------------
 * 12. Stats
 * ---------------------------------------------------------------------- */

.sbc-stat {
	text-align: center;
}

.sbc-stat .sbc-stat__num {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(2.25rem, 4vw, 3.25rem);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--navy);
	display: block;
}

.sbc-on-dark .sbc-stat .sbc-stat__num,
.has-navy-background-color .sbc-stat .sbc-stat__num,
.has-navy-deep-background-color .sbc-stat .sbc-stat__num {
	color: var(--wp--preset--color--gold);
}

.sbc-stat .sbc-stat__label {
	display: block;
	margin-top: 0.6rem;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

.sbc-on-dark .sbc-stat .sbc-stat__label,
.has-navy-background-color .sbc-stat .sbc-stat__label,
.has-navy-deep-background-color .sbc-stat .sbc-stat__label {
	color: rgba(255, 255, 255, 0.72);
}

/* -------------------------------------------------------------------------
 * 13. Tables & prices
 * ---------------------------------------------------------------------- */

.wp-block-table table {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
}

.wp-block-table :where(th, td) {
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--sand);
	padding: 0.9rem 1rem;
	text-align: left;
	vertical-align: top;
}

.wp-block-table thead th {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	border-bottom: 2px solid var(--wp--preset--color--navy);
}

.wp-block-table.is-style-sbc-price table {
	background: #fff;
	border: 1px solid var(--wp--preset--color--sand);
	border-radius: var(--wp--custom--radius--lg);
	overflow: hidden;
}

.wp-block-table.is-style-sbc-price :where(th, td):last-child {
	text-align: right;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--wp--preset--color--navy);
	white-space: nowrap;
}

.wp-block-table.is-style-sbc-price tbody tr:last-child :where(th, td) {
	border-bottom: 0;
}

.wp-block-table.is-style-sbc-price tbody tr:hover {
	background: var(--wp--preset--color--canvas);
}

/* Let wide tables scroll rather than break the page on phones. */
.wp-block-table {
	overflow-x: auto;
}

/* -------------------------------------------------------------------------
 * 14. Quotes & testimonials
 * ---------------------------------------------------------------------- */

.wp-block-quote.is-style-sbc-testimonial {
	background: #fff;
	border: 1px solid var(--wp--preset--color--sand);
	border-left: 0;
	border-radius: var(--wp--custom--radius--lg);
	padding: clamp(1.75rem, 3.5vw, 2.75rem);
	box-shadow: 0 1px 2px rgba(13, 22, 38, 0.04), 0 10px 30px rgba(13, 22, 38, 0.06);
	position: relative;
}

.wp-block-quote.is-style-sbc-testimonial::before {
	content: "\201C";
	position: absolute;
	top: 0.1em;
	left: 0.32em;
	font-family: var(--wp--preset--font-family--display);
	font-size: 5rem;
	line-height: 1;
	color: var(--wp--preset--color--gold);
	opacity: 0.5;
	pointer-events: none;
}

.wp-block-quote.is-style-sbc-testimonial p {
	position: relative;
	z-index: 1;
}

.wp-block-quote.is-style-sbc-testimonial cite {
	display: block;
	margin-top: 1.1rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-style: normal;
	font-weight: 600;
	color: var(--wp--preset--color--muted);
}

/* -------------------------------------------------------------------------
 * 15. Details / accordion (used for FAQs and long lists)
 * ---------------------------------------------------------------------- */

.wp-block-details {
	border: 1px solid var(--wp--preset--color--sand);
	border-radius: var(--wp--custom--radius--md);
	padding: 1rem 1.25rem;
	background: #fff;
	transition: border-color var(--sbc-ease);
}

.wp-block-details[open] {
	border-color: var(--wp--preset--color--navy);
}

.wp-block-details summary {
	font-weight: 600;
	color: var(--wp--preset--color--navy-deep);
	cursor: pointer;
	list-style-position: outside;
}

/* -------------------------------------------------------------------------
 * 16. Posts / news listing
 * ---------------------------------------------------------------------- */

.sbc-postcard {
	background: #fff;
	border: 1px solid var(--wp--preset--color--sand);
	border-radius: var(--wp--custom--radius--lg);
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: transform var(--sbc-ease), box-shadow var(--sbc-ease);
}

.sbc-postcard:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 8px rgba(13, 22, 38, 0.06), 0 22px 44px rgba(13, 22, 38, 0.10);
}

.sbc-postcard .wp-block-post-featured-image {
	margin: 0;
}

.sbc-postcard .wp-block-post-featured-image img {
	border-radius: 0;
	width: 100%;
}

.sbc-postcard .wp-block-post-title {
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.25;
}

.sbc-postcard .wp-block-post-title a {
	text-decoration: none;
}

.sbc-postcard .wp-block-post-date {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--red);
}

.wp-block-query-pagination {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
}

.wp-block-query-pagination-numbers .page-numbers {
	display: inline-block;
	min-width: 2.4rem;
	padding: 0.4rem 0.5rem;
	text-align: center;
	border-radius: var(--wp--custom--radius--sm);
	text-decoration: none;
}

.wp-block-query-pagination-numbers .page-numbers.current {
	background: var(--wp--preset--color--navy);
	color: #fff;
}

/* -------------------------------------------------------------------------
 * 17. Footer
 * ---------------------------------------------------------------------- */

.sbc-footer {
	border-top: 4px solid var(--wp--preset--color--gold);
}

.sbc-footer .wp-block-heading {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
	margin-bottom: 1rem;
}

.sbc-footer a:not(.wp-block-button__link),
.sbc-footer .wp-block-list a,
.sbc-footer p a {
	color: rgba(255, 255, 255, 0.82);
	text-decoration: none;
	transition: color var(--sbc-ease);
}

.sbc-footer a:not(.wp-block-button__link):hover,
.sbc-footer a:not(.wp-block-button__link):focus {
	color: var(--wp--preset--color--gold);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.sbc-footer p,
.sbc-footer li {
	color: rgba(255, 255, 255, 0.78);
}

.sbc-footer .wp-block-list {
	list-style: none;
	padding-left: 0;
	margin-left: 0;
}

.sbc-footer .wp-block-list li {
	margin-bottom: 0.5rem;
}

.sbc-footer .sbc-footer__legal {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-size: var(--wp--preset--font-size--x-small);
	color: rgba(255, 255, 255, 0.55);
}

.sbc-footer .wp-block-site-logo img {
	height: 72px;
	width: auto;
}

/* -------------------------------------------------------------------------
 * 18. Reveal-on-scroll (progressive enhancement)
 * ---------------------------------------------------------------------- */

body.sbc-js .sbc-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 600ms cubic-bezier(0.2, 0, 0.2, 1), transform 600ms cubic-bezier(0.2, 0, 0.2, 1);
}

body.sbc-js .sbc-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	body.sbc-js .sbc-reveal { opacity: 1; transform: none; }
}

/* Never hide content inside the editor. */
.editor-styles-wrapper .sbc-reveal {
	opacity: 1 !important;
	transform: none !important;
}

/* -------------------------------------------------------------------------
 * 19. Misc
 * ---------------------------------------------------------------------- */

/* Give the last block before the footer breathing room on short pages. */
.wp-site-blocks > main {
	min-height: 40vh;
}

/* Contact / detail rows */
.sbc-detail {
	display: flex;
	gap: 0.85rem;
	align-items: flex-start;
}

.sbc-detail__icon {
	flex: 0 0 auto;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--navy-tint);
	display: grid;
	place-items: center;
	color: var(--wp--preset--color--navy);
}

/* Print */
@media print {
	.sbc-header, .sbc-footer, .sbc-notice-bar, .wp-block-navigation { display: none !important; }
	body { color: #000; }
}

/* -------------------------------------------------------------------------
 * 20. Enquiry form (WPForms)
 *
 * The plugin ships its own look; these rules bring it into the club's design
 * so the contact page doesn't read as a bolt-on. Fields are deliberately
 * large — this form is mostly filled in by older members and visiting boaters.
 * ---------------------------------------------------------------------- */

/*
 * WPForms drives its own look from CSS custom properties, so the reliable way
 * to re-skin it is to redefine those rather than fight its selectors.
 */
.wpforms-container {
	margin: 0;
	max-width: 42rem;

	--wpforms-button-background-color: var(--wp--preset--color--navy) !important;
	--wpforms-button-background-color-alt: var(--wp--preset--color--navy-deep) !important;
	--wpforms-button-text-color: #ffffff !important;
	--wpforms-button-text-color-alt: #ffffff !important;
	--wpforms-button-border-color: transparent !important;
	--wpforms-button-border-radius: 999px !important;
	--wpforms-button-size-height: 52px !important;
	--wpforms-button-size-font-size: 18px !important;
	--wpforms-button-size-padding-h: 32px !important;

	--wpforms-field-border-color: var(--wp--preset--color--sand) !important;
	--wpforms-field-border-radius: 12px !important;
	--wpforms-field-background-color: #ffffff !important;
	--wpforms-field-text-color: var(--wp--preset--color--ink) !important;
	--wpforms-field-size-input-height: 52px !important;
	--wpforms-field-size-font-size: 18px !important;

	--wpforms-label-color: var(--wp--preset--color--navy-deep) !important;
	--wpforms-label-sublabel-color: var(--wp--preset--color--muted) !important;
	--wpforms-label-error-color: var(--wp--preset--color--red) !important;
	--wpforms-label-size-font-size: 16px !important;
}

.wpforms-container .wpforms-field {
	padding: 0 0 1.25rem;
}

.wpforms-container .wpforms-field-label {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 600;
	color: var(--wp--preset--color--navy-deep);
	margin-bottom: 0.4rem;
}

.wpforms-container .wpforms-required-label {
	color: var(--wp--preset--color--red);
}

.wpforms-container .wpforms-field-sublabel,
.wpforms-container .wpforms-field-description {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--muted);
}

.wpforms-container .wpforms-form input[type="text"],
.wpforms-container .wpforms-form input[type="email"],
.wpforms-container .wpforms-form input[type="tel"],
.wpforms-container .wpforms-form input[type="url"],
.wpforms-container .wpforms-form input[type="number"],
.wpforms-container .wpforms-form select,
.wpforms-container .wpforms-form textarea {
	width: 100%;
	max-width: 100%;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.5;
	color: var(--wp--preset--color--ink);
	background: #fff;
	border: 1.5px solid var(--wp--preset--color--sand);
	border-radius: var(--wp--custom--radius--md);
	padding: 0.75rem 0.9rem;
	min-height: 52px;
	box-shadow: none;
	transition: border-color var(--sbc-ease), box-shadow var(--sbc-ease);
}

.wpforms-container .wpforms-form textarea {
	min-height: 10rem;
	resize: vertical;
}

.wpforms-container .wpforms-form input:focus,
.wpforms-container .wpforms-form select:focus,
.wpforms-container .wpforms-form textarea:focus {
	border-color: var(--wp--preset--color--navy);
	outline: 3px solid var(--wp--preset--color--navy);
	outline-offset: 2px;
	box-shadow: 0 0 0 6px rgba(251, 194, 24, 0.35);
}

.wpforms-container .wpforms-form .wpforms-submit,
.wpforms-container .wpforms-form button[type="submit"] {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #fff;
	background-color: var(--wp--preset--color--navy);
	border: 0;
	border-radius: var(--wp--custom--radius--pill);
	padding: 0.85em 2em;
	min-height: 52px;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 26, 74, 0.12);
	transition: transform var(--sbc-ease), background-color var(--sbc-ease), box-shadow var(--sbc-ease);
}

.wpforms-container .wpforms-form .wpforms-submit:hover,
.wpforms-container .wpforms-form button[type="submit"]:hover {
	background-color: var(--wp--preset--color--navy-deep);
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(0, 26, 74, 0.20);
}

.wpforms-container .wpforms-form label.wpforms-error {
	color: var(--wp--preset--color--red);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 600;
	margin-top: 0.35rem;
}

.wpforms-container .wpforms-form input.wpforms-error,
.wpforms-container .wpforms-form textarea.wpforms-error,
.wpforms-container .wpforms-form select.wpforms-error {
	border-color: var(--wp--preset--color--red);
}

.wpforms-confirmation-container-full,
div[submit-success] > .wpforms-confirmation-container-full:not(.wpforms-redirection-message) {
	background: var(--wp--preset--color--gold-tint);
	border: 0;
	border-left: 4px solid var(--wp--preset--color--gold);
	border-radius: var(--wp--custom--radius--md);
	padding: clamp(1.25rem, 2.5vw, 1.75rem);
	color: var(--wp--preset--color--ink);
}

.wpforms-confirmation-container-full p:last-child {
	margin-bottom: 0;
}

/* -------------------------------------------------------------------------
 * 21. Navigation refinements
 *
 * Appended last so these win on source order over both the base rules above
 * and core's own navigation CSS.
 * ---------------------------------------------------------------------- */

/* --- Desktop bar: sleeker rows -------------------------------------- */

/*
 * The base rule sets a 48px min-height for tap targets and then adds vertical
 * padding on top, which made every row 70px tall and the bar look empty.
 * A flat 44px row is still a comfortable target and reads far tidier.
 */
.sbc-header .wp-block-navigation .wp-block-navigation-item__content {
	min-height: 44px;
	padding: 0.3rem 0.7rem;
	gap: 0.3rem;
}

.sbc-header .wp-block-navigation .wp-block-navigation-item__content::after {
	left: 0.7rem;
	right: 0.7rem;
	bottom: 0.28rem;
	height: 2px;
}

/* The chevron is a sibling button, so it needs its own box to sit neatly
   beside the label rather than floating a few pixels off. */
.sbc-header .wp-block-navigation .wp-block-navigation__submenu-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	min-height: 0;
	padding: 0;
	margin: 0 0.15rem 0 -0.35rem;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--navy-deep);
	opacity: 0.65;
	transition: opacity var(--sbc-ease), transform var(--sbc-ease);
}

.sbc-header .wp-block-navigation .wp-block-navigation__submenu-icon svg {
	width: 12px;
	height: 12px;
	stroke: currentColor;
	display: block;
}

.sbc-header .wp-block-navigation .has-child:hover > .wp-block-navigation__submenu-icon,
.sbc-header .wp-block-navigation .has-child:focus-within > .wp-block-navigation__submenu-icon {
	opacity: 1;
	transform: rotate(180deg);
}

.sbc-header .wp-block-navigation .wp-block-navigation-item.has-child {
	padding-right: 0.1rem;
}

/* --- Mobile overlay: left-aligned and compact ----------------------- */

/*
 * The nav block is justified right on desktop, and core carries that through
 * to the overlay as `align-items: flex-end`. In a full-screen menu that reads
 * as broken, so it is forced back to the left here at a specificity that
 * beats the generated layout rule.
 */
.sbc-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open,
.sbc-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-dialog,
.sbc-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content,
.sbc-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.sbc-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	align-items: flex-start !important;
	justify-content: flex-start !important;
	text-align: left;
	width: 100%;
}

.sbc-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0;
}

/* Top-level rows */
.sbc-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > li > .wp-block-navigation-item__content {
	font-size: 1.25rem;
	font-weight: 600;
	min-height: 44px;
	padding: 0.5rem 0;
	width: 100%;
}

.sbc-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container > li + li {
	border-top: 1px solid rgba(255, 255, 255, 0.13);
}

/* Sub-items sit as a compact, clearly subordinate list. */
.sbc-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	padding: 0.1rem 0 0.65rem 0.9rem;
	margin: 0 0 0 0.1rem;
	border-left: 2px solid rgba(251, 194, 24, 0.5);
	gap: 0;
}

.sbc-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: 1rem;
	font-weight: 400;
	min-height: 40px;
	padding: 0.3rem 0;
	color: rgba(255, 255, 255, 0.86);
}

/* In the overlay core expands every submenu, so the chevrons are redundant. */
.sbc-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon {
	display: none;
}

/* Give the menu a header row so the close button has something to sit against. */
.sbc-header .wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	top: clamp(1rem, 4vw, 1.75rem);
	right: clamp(1rem, 4vw, 1.75rem);
}
