/*
Theme Name: Fizzics Shop 2026
Theme URI: https://fizzicseducation.com.au
Author: CoolRunning for Fizzics Education
Author URI: https://fizzicseducation.com.au
Description: WooCommerce storefront theme for Fizzics Education. Forked from Fizzics 2026 (theme/) at 8322f766d845b957c362e79d2f9045cde6c5bf7e. Carries the Q-v5 chrome — 3-token green palette, green-dominant header, navy footer with green accent, trust bar Variant A, awards strip — and implements the approved Q-shop-R4 browse surfaces. Programme / podcast / experiment / trivia templates, patterns and stylesheets are deliberately NOT carried; the shop has none of those post types. System fonts (no Google Fonts), WebP images, WCAG 2.1 AA, Australian English throughout.
Version: 0.1.1
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.2
License: Proprietary
License URI: https://fizzicseducation.com.au
Text Domain: fizzics-shop
Tags: e-commerce, education, science, block-theme, accessibility-ready, custom-colors, full-site-editing
*/

/* ==========================================================================
   DO NOT EDIT THIS FILE DIRECTLY.

   theme-shop/style.css is ASSEMBLED by scripts/shop-buildout/build-shop-css.sh
   from three audited sources:

     A. theme/style.css                       — production foundations
     B. wireframes/q-v5/css/main.css          — shop base selectors
     C. theme/wireframes/q-shop-r4/style.css  — the approved R4 shop layer

   Hand-authored layers live in scripts/shop-buildout/style.head.css (this banner) and
   scripts/shop-buildout/style.shop.css (the WooCommerce bridge). Edit those,
   then re-run the build.
   ========================================================================== */

/* ==========================================================================
   FOUNDATIONS — tokens, reset, layout, buttons, chrome, footer
   Source: theme/style.css (region foundations)
   ========================================================================== */

/* --- 1. Tokens --- */
:root {
	/* Canonical palette (LOCKED — reference_fizzics_brand_colours memory) */
	--navy:    #1B1464;
	--green:   #529F3B;
	--paper:   #FFFFFF;
	--orange:  #EB7923;

	/* Green ramp — 3 tokens only (Sean mandate 2026-04-21; verified in Q-v5). */
	--green-900: #1C3A12;
	--green-050: #ECF5E8;

	/* Navy secondary ramp */
	--navy-900: #0F0A3A;
	--navy-700: #2A1F85;
	--navy-050: #EEEDF5;

	/* Orange ramp */
	--orange-700: #C25F15;
	--orange-050: #FDEEDC;

	/* Trust-bar Variant A (homepage only) — lighter blue + glassmorphism */
	--trustbar-blue-a:      #3A6EA8;
	--trustbar-blue-a-deep: #243F7D;

	/* Ink / neutrals */
	--ink:      #181421;
	--ink-soft: #4A4557;
	--muted:    #6C6978;
	--line:     #D4D9D1;
	--line-soft: #EBEFE9;
	--surface:  #F5F8F3;

	/* Per-programme accent slot — Wave 4 polish assigns values via
	   .prog-kitchen-chem / .prog-forensics / etc. Default: fall back to green. */
	--accent: var(--green);

	/* Links in running content (Ben, 23 Oct 2026). 4.6:1 or better on white,
	   --surface, --green-050, --navy-050 and --orange-050; 3.4:1 against
	   --ink body text, so a link reads as a link even before the underline. */
	--link: #2F7A1F;
	--link-hover: var(--green-900);

	/* Semantic */
	--success: #529F3B;
	--warn:    #B8651A;
	--error:   #B01B1B;

	/* Typography — system stack, no Google Fonts */
	--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
	             'Helvetica Neue', Arial, sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas,
	             'Liberation Mono', monospace;

	/* Fluid type scale */
	--step--2: clamp(0.75rem, 0.72rem + 0.10vw, 0.82rem);
	--step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.95rem);
	--step-0:  clamp(1.00rem, 0.95rem + 0.25vw, 1.125rem);
	--step-1:  clamp(1.20rem, 1.10rem + 0.50vw, 1.375rem);
	--step-2:  clamp(1.44rem, 1.30rem + 0.70vw, 1.75rem);
	--step-3:  clamp(1.73rem, 1.55rem + 0.90vw, 2.25rem);
	--step-4:  clamp(2.07rem, 1.80rem + 1.35vw, 2.90rem);
	--step-5:  clamp(2.49rem, 2.10rem + 1.95vw, 3.75rem);
	--step-6:  clamp(3.00rem, 2.50rem + 2.50vw, 4.75rem);

	/* Spacing */
	--s-1: 0.25rem;
	--s-2: 0.5rem;
	--s-3: 0.75rem;
	--s-4: 1rem;
	--s-5: 1.5rem;
	--s-6: 2rem;
	--s-7: 3rem;
	--s-8: 4rem;
	--s-9: 6rem;

	/* Radii */
	--r-sm:   0.5rem;
	--r-md:   1rem;
	--r-lg:   1.5rem;
	--r-xl:   2rem;
	--r-pill: 999px;

	/* Motion */
	--ease-out:  cubic-bezier(0.2, 0.8, 0.2, 1);
	--ease-bob:  cubic-bezier(0.25, 1.4, 0.5, 1);
	--dur-quick: 150ms;
	--dur-base:  250ms;
	--dur-slow:  300ms;

	/* Shadows */
	--shadow-1: 0 1px 2px rgba(28, 58, 18, 0.10);
	--shadow-2: 0 8px 24px rgba(28, 58, 18, 0.12);
	--shadow-3: 0 18px 48px rgba(28, 58, 18, 0.20);
	--shadow-focus: 0 0 0 3px var(--orange);

	/* Layout — Sean 2026-04-27 ultrawide feedback: bump from 1200 to 1440 + clamp.
	   The .container utility now scales up on wide viewports without overshooting
	   on narrow ones. Default: 1440 hard cap; clamp lets very large viewports
	   (≥1920) use 90vw up to 1600. Phone/tablet still capped by viewport. */
	--container: clamp(1200px, 90vw, 1600px);
	--container-narrow: 840px;
}

/* --- 2. Reset + base typography --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: var(--step-0);
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }

a { color: var(--green-900); }
a:hover {
	color: var(--green-900);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

/* WCAG 1.4.1: links inside running text are underlined, not told apart by
 * colour alone. Classed links (buttons, cards, chips) and inline-styled
 * button links in pasted content keep their own styling. Hover and focus
 * thicken the underline; focus also gets the global 3px orange outline. */
:where(main, .site-main) :is(p, li, td, dd, blockquote) a:not([class]):not([style*="background"]),
.privacy-note a {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
:where(main, .site-main) :is(p, li, td, dd, blockquote) a:not([class]):not([style*="background"]):is(:hover, :focus-visible),
.privacy-note a:is(:hover, :focus-visible) {
	text-decoration-thickness: 2px;
}

/* Links in page and post content, site-wide (Ben, 23 Oct 2026).
 * PR #147 underlined links only inside p / li / td / dd / blockquote and
 * kept the near-black --green-900, so links sitting straight in a div (old
 * imported content: `<div class="bg-white p-3"><a>...`), in headings or in
 * tables read as plain text. The Tailwind build (main.css) also loads after
 * this file and its preflight sets `a { color: inherit }`, so these rules
 * carry a class to outrank it.
 * Covers the post content of pages, articles, programmes and podcasts, the
 * experiment article body and the legacy .fzp wrapper. Buttons, cards, chips,
 * pills, image links, inline-styled button links and anything inside nav,
 * header or footer keep their own styling. */
:is(.wp-block-post-content, .entry-content, .experiment-single__article) a:where(:not(
	.wp-block-button__link, .wp-element-button, [class*="btn"], [class*="button"],
	[class*="card"], [class*="chip"], [class*="pill"], [class*="cta"], [role="button"],
	[style*="background"],
	nav *, header *, footer *, .trustpilot-widget *
)) {
	color: var(--link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	text-decoration-skip-ink: auto;
}
:is(.wp-block-post-content, .entry-content, .experiment-single__article) a:where(:not(
	.wp-block-button__link, .wp-element-button, [class*="btn"], [class*="button"],
	[class*="card"], [class*="chip"], [class*="pill"], [class*="cta"], [role="button"],
	[style*="background"],
	nav *, header *, footer *, .trustpilot-widget *
)):is(:hover, :focus-visible) {
	color: var(--link-hover);
	text-decoration-thickness: 2px;
}
:is(.wp-block-post-content, .entry-content, .experiment-single__article) a:where(:not(
	.wp-block-button__link, .wp-element-button, [class*="btn"], [class*="button"],
	[class*="card"], [class*="chip"], [class*="pill"], [class*="cta"], [role="button"],
	[style*="background"],
	nav *, header *, footer *, .trustpilot-widget *
)):focus-visible {
	background: var(--green-050);
	border-radius: 2px;
}

/* Old imported content hard-codes link styling inline, for example
 * `style="color: #0073aa; text-decoration: none"` in the experiment
 * "science" author bio (axe link-in-text-block). Only !important beats an
 * inline style. Inline-styled button links (with a background) are left. */
:is(.wp-block-post-content, .entry-content, .experiment-single__article) a[style]:not([style*="background"]):not(nav *, header *, footer *) {
	color: var(--link) !important;
	text-decoration: underline !important;
}

/* The same bio paints its paragraphs #28a745 inline: 2.6:1 on the callout's
 * pale green (axe color-contrast). Text in the callout uses the ink colour. */
.experiment-single .science-callout [style*="color"]:not(a) {
	color: var(--ink) !important;
}

/* Image links: no underline under the picture. Kept apart so a browser
 * without :has() drops only this rule, not the link styling above. */
:is(.wp-block-post-content, .entry-content, .experiment-single__article) a:has(img, picture, svg, video) {
	text-decoration: none;
}

/* Legal and policy pages: long-form layout (Ben, 23 Oct 2026).
 * The `fz-policy` body class comes from inc/policy-pages.php. The Tailwind
 * preflight in main.css resets every heading to body size with no margin,
 * which is why these pages read as one run of text. */
body.fz-policy article > .wp-block-post-title,
body.fz-policy article > .wp-block-post-content {
	/* About 70 characters of body text; in rem so the title lines up too. */
	max-width: 42.5rem;
	margin-inline: auto;
}
body.fz-policy .wp-block-post-title {
	font-size: var(--step-5);
	line-height: 1.05;
	letter-spacing: -0.03em;
	font-weight: 700;
	color: var(--navy);
	margin-top: var(--s-7);
	margin-bottom: var(--s-6);
	padding-bottom: var(--s-5);
	border-bottom: 3px solid var(--green);
	overflow-wrap: break-word;
	hyphens: auto;
}
body.fz-policy .wp-block-post-content {
	font-size: var(--step-0);
	line-height: 1.7;
	margin-bottom: var(--s-8);
}
body.fz-policy .wp-block-post-content :is(h1, h2, h3, h4) {
	color: var(--navy);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: var(--s-4);
	text-align: left !important;
}
body.fz-policy .wp-block-post-content h1 {
	font-size: var(--step-4);
	letter-spacing: -0.022em;
	margin-top: var(--s-8);
}
body.fz-policy .wp-block-post-content h2 {
	font-size: var(--step-3);
	letter-spacing: -0.015em;
	margin-top: var(--s-7);
}
body.fz-policy .wp-block-post-content h3 {
	font-size: var(--step-2);
	margin-top: var(--s-6);
}
body.fz-policy .wp-block-post-content h4 {
	font-size: var(--step-1);
	margin-top: var(--s-5);
}
body.fz-policy .wp-block-post-content :is(p, ul, ol, table, blockquote) {
	margin-top: 0;
	margin-bottom: var(--s-5);
}
body.fz-policy .wp-block-post-content :is(ul, ol) {
	padding-left: 1.5em;
}
body.fz-policy .wp-block-post-content ul { list-style: disc; }
body.fz-policy .wp-block-post-content ol { list-style: decimal; }
body.fz-policy .wp-block-post-content li { margin-bottom: var(--s-2); }
body.fz-policy .wp-block-post-content li > :is(ul, ol) { margin: var(--s-2) 0 0; }
body.fz-policy .wp-block-post-content strong { font-weight: 700; }
body.fz-policy .wp-block-post-content :is(h1, h2, h3, h4):first-child { margin-top: 0; }

/* Policy menu (Ben, 21 Nov 2026): one shared list on every policy page,
 * from the [fizzics_policy_nav] shortcode in inc/policy-pages.php. Pills
 * that wrap; the page you are on stays in the list, filled navy. */
.fz-policy-nav {
	margin: 0 0 var(--s-6);
}
.wp-block-post-content .fz-policy-nav ul.fz-policy-nav__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-2);
	list-style: none;
	margin: 0;
	padding: 0;
}
.wp-block-post-content .fz-policy-nav li.fz-policy-nav__item {
	margin: 0;
}
.wp-block-post-content .fz-policy-nav a.fz-policy-nav__link {
	display: inline-block;
	padding: var(--s-1) var(--s-3);
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--paper);
	color: var(--navy);
	font-size: var(--step--1);
	line-height: 1.4;
	text-decoration: none;
}
.wp-block-post-content .fz-policy-nav a.fz-policy-nav__link:hover,
.wp-block-post-content .fz-policy-nav a.fz-policy-nav__link:focus-visible {
	border-color: var(--navy);
	background: var(--navy-050);
	text-decoration: none;
}
.wp-block-post-content .fz-policy-nav a.fz-policy-nav__link[aria-current="page"] {
	background: var(--navy);
	border-color: var(--navy);
	color: var(--paper);
	font-weight: 600;
}

h1, h2, h3, h4, h5 {
	line-height: 1.1;
	margin: 0 0 var(--s-4);
	font-weight: 700;
	letter-spacing: -0.015em;
	color: var(--navy);
}
h1 { font-size: var(--step-5); letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: var(--step-4); letter-spacing: -0.022em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
h5 {
	font-size: var(--step--1);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--muted);
	font-weight: 700;
}
p { margin: 0 0 var(--s-4); }

:focus-visible {
	outline: 3px solid var(--orange);
	outline-offset: 3px;
	border-radius: 4px;
}

.skip-link {
	position: absolute; left: -9999px; top: 0;
	background: var(--green-900); color: var(--paper);
	padding: var(--s-3) var(--s-4);
	z-index: 999;
	text-decoration: none;
}
.skip-link:focus { left: 0; }
.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --- 3. Layout utilities --- */
.container {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--s-5);
}
.container-narrow {
	max-width: var(--container-narrow);
	margin: 0 auto;
	padding: 0 var(--s-5);
}
.section { padding: var(--s-8) 0; }
.section--tight { padding: var(--s-5) 0; }
.eyebrow {
	font-family: var(--font-mono);
	font-size: 12px;
	letter-spacing: 0.10em;
	text-transform: uppercase;
	color: var(--green-900);
	margin-bottom: var(--s-3);
	display: inline-block;
	font-weight: 700;
}
.text-sm { font-size: var(--step--1); }
.text-muted { color: var(--muted); }

/* --- 4. Buttons --- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	padding: var(--s-3) var(--s-5);
	border-radius: var(--r-pill);
	border: 2px solid var(--green);
	background: var(--paper);
	color: var(--green-900);
	text-decoration: none;
	font-weight: 700;
	font-size: var(--step-0);
	font-family: inherit;
	transition:
		transform var(--dur-quick) var(--ease-out),
		background var(--dur-quick) var(--ease-out),
		color var(--dur-quick) var(--ease-out),
		border-color var(--dur-quick) var(--ease-out),
		box-shadow var(--dur-quick) var(--ease-out);
}
.btn:hover {
	transform: translateY(-2px);
	background: var(--green-050);
}
/* Accessibility audit 22 Oct 2026 (docs/audits/accessibility-statement-2026-10-22):
 * buttons keep the site-wide 3px orange outline rather than a box-shadow ring
 * that some CTAs lost on mobile. */
.btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* WCAG AA contrast, locked tokens only: --navy-900 on --orange 6.5:1 (white
 * was 2.88:1, the pair PR #144 used on programme pages); white on --green-900
 * 12.6:1 (white on --green was 3.29:1); --navy-900 / --green-900 on white
 * hover 18.9 / 12.6:1. */
.btn--primary {
	background: var(--orange);
	color: var(--navy-900);
	border-color: var(--orange);
}
.btn--primary:hover,
.btn--primary:focus-visible {
	background: var(--paper);
	border-color: var(--orange);
	color: var(--navy-900);
	box-shadow: var(--shadow-2);
}

.btn--green {
	background: var(--green-900);
	color: var(--paper);
	border-color: var(--green-900);
}
.btn--green:hover,
.btn--green:focus-visible {
	background: var(--paper);
	border-color: var(--green-900);
	color: var(--green-900);
	box-shadow: var(--shadow-2);
}

.btn--navy {
	background: var(--navy);
	color: var(--paper);
	border-color: var(--navy);
}
.btn--navy:hover {
	background: var(--navy-700);
	border-color: var(--navy-700);
	color: var(--paper);
}

.btn--ghost {
	background: transparent;
	border-color: var(--line);
	color: var(--ink-soft);
}
.btn--ghost:hover {
	border-color: var(--green-900);
	color: var(--green-900);
	background: var(--surface);
}

.btn--lg { padding: var(--s-4) var(--s-6); font-size: var(--step-1); }
.btn--sm { padding: 6px var(--s-4); font-size: var(--step--1); }

/* --- 5. B1G1 strip --- */
.b1g1-strip {
	background: var(--navy);
	color: var(--paper);
	padding: var(--s-2) 0;
	font-size: var(--step--2);
	text-align: center;
	border-bottom: 3px solid var(--green);
}
.b1g1-strip a {
	color: var(--paper);
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 3px;
}
.b1g1-strip a:hover { color: var(--orange); }
@media (max-width: 600px) {
	.b1g1-strip {
		font-size: 11px;
		padding: 6px var(--s-3);
		line-height: 1.4;
	}
}

/* --- 6. Site header — Q-v5 §4.1 full-width green chrome --- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 40;
	background: var(--green);
	border-bottom: 4px solid var(--green);
	box-shadow: var(--shadow-1);
}
.site-header__upper {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: var(--s-5);
	align-items: center;
	padding: var(--s-3) var(--s-5);
	max-width: var(--container);
	margin: 0 auto;
	color: var(--paper);
}
.brand {
	display: flex;
	align-items: center;
	gap: var(--s-3);
	text-decoration: none;
}
/* `wp:site-logo` renders a WRAPPER `<div class="wp-block-site-logo brand-logo">`
   containing `<a class="custom-logo-link"><img class="custom-logo">`. The old
   `height: 44px` therefore sized the wrapper, never the image — so the wrapper
   lied about its own content: at 1440 the img rendered 220x66.45 and overflowed
   its 44px wrapper by 22.45px, which pushed the logo ~11px below the optical
   centre of the header row (measured `imgCentreOffset: +11.2`). Size the IMAGE
   and let the wrapper follow its content. See
   docs/audits/header-trustbar-polish/implementation-notes.html */
.brand-logo {
	height: auto;
	width: auto;
	display: block;
	border-radius: 4px;
}
.brand-logo img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
}
/* Sean 2026-07-31 (staging home @1440): "this logo looks stupid with it size
   compared to the search and phone". Header upper row is 102px of content box
   (set by `.header-search` 78px + WP block-gap 24px), so the logo can grow to
   ~100px tall without changing header height at all. 278px wide = 83.9px tall
   ≈ 1.5x the 56.8px CTA pill and ~4x the 22px phone number — it reads as the
   primary brand anchor. Measured alternatives: 244px is free but reads barely
   changed; 310px crowds the tagline and drops the search input to 246px.
   278px leaves the search input at 277.8px (from 312px) and header height
   unchanged at 126px. Scoped to >=1200px: below that the header row is already
   width-constrained and the image shrink-to-fit is doing the right thing. */
@media (min-width: 1200px) {
	.brand-logo img {
		width: clamp(244px, 19.3vw, 278px);
	}
}
.brand-word {
	display: grid;
	line-height: 1.1;
	color: var(--paper);
}
.brand-word strong {
	font-weight: 700;
	font-size: var(--step-1);
	letter-spacing: -0.02em;
	color: var(--paper);
}
/* Tagline: --navy-900 on the --green header is 5.7:1 (white at 0.92 opacity
 * was 3.02:1 at 11px). */
.brand-word em {
	font-style: normal;
	font-size: 11px;
	color: var(--navy-900);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.header-search {
	display: flex;
	align-items: center;
	gap: var(--s-2);
	background: var(--paper);
	border: 1.5px solid rgba(255, 255, 255, 0.4);
	border-radius: var(--r-pill);
	padding: var(--s-2) var(--s-4);
	max-width: 440px;
	width: 100%;
	justify-self: center;
}
.header-search:focus-within {
	border-color: var(--paper);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.header-search input {
	flex: 1;
	border: 0;
	background: transparent;
	font: inherit;
	color: var(--ink);
	padding: 4px 0;
	min-width: 0;
}
.header-search input:focus { outline: none; }
.header-search input:focus-visible {
	outline: 3px solid var(--orange);
	outline-offset: 3px;
	border-radius: 4px;
}
.header-search svg { flex: none; stroke: var(--green-900); opacity: 0.75; }

/* Header search submit (Ben, 23 Oct 2026: "looks good except the blocky
   magnifier button"). Core renders a square 76x52 grey wp-element-button.
   Now: a 46px navy circle sitting inside the white pill, flush to its right
   edge, with the stroked magnifier from inc/header-search.php.
   Contrast: white icon on --navy 15.6:1, on --navy-700 hover 12.4:1 (both
   clear AA 3:1 for UI graphics); the navy disc on the white pill is 15.6:1.
   Focus: the locked 3px --orange ring (#147). Selectors match core's
   `.wp-block-search.wp-block-search__button-inside ... .wp-block-search__button`
   specificity so core padding/radius never wins. */
form.wp-block-search.header-search {
	padding: 5px 5px 5px var(--s-4);
}
form.wp-block-search.header-search .wp-block-search__inside-wrapper {
	display: flex;
	align-items: center;
	gap: var(--s-2);
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
}
form.wp-block-search.header-search .wp-block-search__inside-wrapper .wp-block-search__button {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	min-width: 46px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--navy);
	color: var(--paper);
	cursor: pointer;
	transition: background-color 150ms ease, transform 150ms ease;
}
form.wp-block-search.header-search .wp-block-search__inside-wrapper .wp-block-search__button:hover {
	background: var(--navy-700);
}
form.wp-block-search.header-search .wp-block-search__inside-wrapper .wp-block-search__button:active {
	transform: scale(0.96);
}
form.wp-block-search.header-search .wp-block-search__inside-wrapper .wp-block-search__button:focus-visible {
	outline: 3px solid var(--orange);
	outline-offset: 2px;
}
form.wp-block-search.header-search .wp-block-search__button svg {
	width: 22px;
	height: 22px;
	min-width: 0;
	min-height: 0;
	fill: none;
	stroke: currentcolor;
	opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
	form.wp-block-search.header-search .wp-block-search__inside-wrapper .wp-block-search__button { transition: none; }
}

.header-contact {
	display: flex;
	align-items: center;
	gap: var(--s-4);
	justify-self: end;
}
.header-phone {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: var(--step--1);
	text-decoration: none;
	color: var(--paper);
}
.header-phone svg { stroke: var(--paper); }
.header-phone:hover {
	color: var(--paper);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.site-header__lower {
	border-top: 1px solid var(--green-050);
	background: var(--green-050);
}
.primary-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 var(--s-5);
	gap: var(--s-5);
	min-height: 52px;
}
.primary-nav a {
	color: var(--ink);
	text-decoration: none;
	font-weight: 500;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] { color: var(--green-900); }

.nav-cta {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	background: var(--orange);
	color: var(--navy-900);
	padding: var(--s-3) var(--s-5);
	border-radius: var(--r-pill);
	text-decoration: none;
	font-weight: 700;
	border: 2px solid var(--orange);
	transition:
		transform var(--dur-quick) var(--ease-out),
		background var(--dur-quick) var(--ease-out);
}
.nav-cta:hover,
.nav-cta:focus-visible {
	background: var(--paper);
	border-color: var(--orange);
	transform: translateY(-1px);
	color: var(--navy-900);
	text-decoration: none;
}

@media (max-width: 720px) {
	.header-search { display: none; }
	.site-header__upper { grid-template-columns: auto 1fr; padding: var(--s-3); }
	.brand-word em { display: none; }
}

/* --- 7. Skip-link target helper --- */
.skip-link-target { scroll-margin-top: 80px; }

/* --- 8. Site footer — Q-v5 navy-900 with green top accent --- */
.site-footer {
	background: var(--navy-900);
	color: #CFC9DE;
	padding: var(--s-8) 0 var(--s-5);
	margin-top: var(--s-9);
	border-top: 4px solid var(--green);
}
.site-footer :is(h2, h4) {
	color: var(--paper);
	font-size: var(--step-0);
	margin-bottom: var(--s-4);
}
.site-footer a { color: #D6D2E6; text-decoration: none; }
.site-footer a:hover { color: var(--orange); text-decoration: underline; }
.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1fr;
	gap: var(--s-6);
	margin-bottom: var(--s-6);
}
.footer-grid ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: var(--s-2);
	font-size: var(--step--1);
}
.footer-newsletter p.privacy-note {
	font-size: 11px;
	color: #9990B7;
	line-height: 1.5;
	margin: 6px 0 0;
}
.footer-newsletter p.privacy-note a { color: #CFC9DE; text-decoration: underline; }
/* Social icons (Ben, 21 Nov 2026): small single-colour white marks under the
   brand blurb. White is a permitted monochrome version under each brand's
   guidelines, so the marks are never tinted; hover and focus only add a soft
   disc behind them. 36px targets on desktop, 44px on touch-size screens. */
.site-footer .footer-social {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-1);
	margin: var(--s-4) 0 0 -8px;
	padding: 0;
}
.site-footer .footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: var(--paper);
	transition: background-color 0.15s ease;
}
.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible {
	background-color: rgb(255 255 255 / 0.12);
	color: var(--paper);
	text-decoration: none;
}
.site-footer .footer-social a:focus-visible {
	outline: 2px solid var(--orange);
	outline-offset: 2px;
}
.site-footer .footer-social svg { width: 20px; height: 20px; display: block; }
@media (max-width: 920px) {
	.site-footer .footer-social { margin-left: -12px; }
	.site-footer .footer-social a { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
	.site-footer .footer-social a { transition: none; }
}
/* Newsletter sign-up band, top of the footer on every page: a compact pitch plus "Subscribe now".
   The Zoho CRM form B sits in a native <dialog> (inc/zoho-forms.php, assets/src/newsletter-popout.js). */
.fz-newsletter-band {
	max-width: 640px;
	margin: 0 auto var(--s-5);
	padding-bottom: var(--s-4);
	border-bottom: 1px solid var(--navy-700);
}
.fz-nl__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--s-3);
}
.fz-nl__copy { flex: 1 1 16rem; min-width: 0; }
.fz-nl__title { font-size: var(--step-1); margin: 0; }
.fz-nl__copy p { font-size: var(--step--1); margin: 0.25rem 0 0; }
.fz-nl__open { flex: 0 0 auto; }
/* The dialog opens with show(), not showModal(): the top layer would hide Google's reCAPTCHA
   challenge popup (a <body> child at z-index 2000000000) behind it. So the dialog is its own
   full-screen backdrop and .fz-nl__panel is the white box; z-index stays well below reCAPTCHA's. */
.fz-nl__dialog {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #1a1a1a;
}
.fz-nl__dialog[open] {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	padding: 1rem;
	background: rgb(15 10 50 / 0.7);
	overflow-y: auto;
}
.fz-nl__panel {
	position: relative;
	box-sizing: border-box;
	width: min(34rem, 100%);
	max-height: 100%;
	overflow-y: auto;
	padding: var(--s-4);
	border-radius: 8px;
	background: #fff;
	color: #1a1a1a;
}
/* Stop the page scrolling behind the open dialog (showModal() did this for free). */
html.fz-nl-open { overflow: hidden; }
.fz-nl__dialog :is(p, h2) { color: #1a1a1a; }
.fz-nl__dialog-title { font-size: var(--step-1); margin: 0 2.5rem 0.5rem 0; }
.fz-nl__dialog p { font-size: var(--step--1); }
.fz-nl__close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 2.75rem;
	height: 2.75rem;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #1a1a1a;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
}
.fz-nl__close:focus-visible { outline: 3px solid #1B1464; outline-offset: 2px; }
/* After a successful submit (newsletter-popout.js adds .is-submitted): only the thank-you
   text and the Close button remain. The title stays for screen readers (aria-labelledby). */
.fz-nl__dialog.is-submitted .fz-zoho-form,
.fz-nl__dialog.is-submitted .fz-nl__intro { display: none; }
.fz-nl__dialog.is-submitted .fz-nl__dialog-title {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.fz-nl__thanks:focus { outline: none; }
.fz-nl__thanks { margin: 0 2.5rem 0 0; font-size: var(--step-0); font-weight: 600; }
/* Zoho's 5-second toast is replaced by the inline thank-you above. */
.fz-nl__dialog #wf_splash { display: none !important; } /* stylelint-disable-line selector-id-pattern -- id is injected by Zoho's form script */
/* /contact-us/ enquiry forms: after a successful submit zoho-forms.js adds .is-submitted to the
   slot. The form, heading and intro go; the persistent thank-you and the call/email line stay. */
.fzp-form-slot.is-submitted .fz-zoho-form,
.fzp-form-slot.is-submitted > h2,
.fzp-form-slot.is-submitted > p:not([data-fz-enquiry-thanks], .fz-zoho-alt) { display: none; }
.fz-zoho-thanks { scroll-margin-block: 5rem; margin: 0 0 1rem; font-size: var(--step-1); font-weight: 600; }
.fz-zoho-thanks:focus { outline: none; }
/* A submit that did not get through (zoho-form-loader.js): shown next to Submit, hard to miss. */
.fz-zoho-send-error { margin: 0.75rem 0; padding: 0.75rem 1rem; border: 2px solid #b3261e; border-radius: 6px; background: #fdecea; color: #7a1712; font-weight: 600; }
.fz-zoho-send-error[hidden] { display: none; }
.fz-zoho-send-error a { color: inherit; text-decoration: underline; }
/* A required field that was missed (zoho-form-loader.js): red border and a short note under it.
   Zoho paints its form white with black text in every colour scheme, so the red, the tint and the
   dark red text are tokens set once here and each note is a self-contained tinted strip. The field
   border is !important, with a longer selector, because Zoho sets its text-field border with !important. */
.fz-zoho-form {
	--fz-field-error: #b3261e;
	--fz-field-error-bg: #fdecea;
	--fz-field-error-ink: #7a1712;
}
.fz-zoho-form .crmWebToEntityForm .zcwf_col_fld :is(input, select, textarea).fz-zoho-invalid {
	border: 2px solid var(--fz-field-error) !important;
}
.fz-zoho-form .crmWebToEntityForm .zcwf_col_fld :is(input, select, textarea).fz-zoho-invalid:focus-visible {
	outline: 2px solid var(--fz-field-error);
	outline-offset: 1px;
}
.fz-zoho-field-error {
	clear: both;
	display: block;
	margin: 0.25rem 0;
	padding: 0.25rem 0.5rem;
	border-left: 3px solid var(--fz-field-error, #b3261e);
	background: var(--fz-field-error-bg, #fdecea);
	color: var(--fz-field-error-ink, #7a1712);
	font: 600 0.875rem/1.3 Arial, sans-serif;
}
/* Zoho's 5-second toast is replaced by the inline thank-you above. */
.fzp-form-slot.is-submitted #wf_splash { display: none !important; } /* stylelint-disable-line selector-id-pattern -- id is injected by Zoho's form script */
/* No JS: hide the button and show the form in place, as the band was before the pop-out. */
.fz-nl:not(.is-enhanced) .fz-nl__open,
.fz-nl:not(.is-enhanced) .fz-nl__close { display: none; }
.fz-nl:not(.is-enhanced) .fz-nl__dialog {
	display: block;
	position: static;
	width: auto;
	max-height: none;
	margin: var(--s-3) 0 0;
}
.fz-nl:not(.is-enhanced) .fz-nl__panel { max-height: none; width: auto; }
.fz-newsletter-band .fz-zoho-form {
	background: #fff;
	color: #1a1a1a;
	border-radius: 6px;
	max-width: 100%;
}
.fz-newsletter-band .fz-zoho-form .crmWebToEntityForm {
	max-width: 100%;
	padding: var(--s-2) 0 0;
	margin: 0;
}
.fz-newsletter-band .fz-zoho-form :is(input[type="text"], select) {
	width: 100%;
	min-height: 2.5rem;
	font-size: 1rem;
}
.fz-newsletter-band .fz-zoho-form .zcwf_col_lab,
.fz-newsletter-band .fz-zoho-form .zcwf_col_fld {
	width: 100%;
	float: none;
}
.fz-newsletter-band .fz-zoho-form .zcwf_row { margin: 0.75rem 0; }
.fz-newsletter-band .fz-zoho-form .zcwf_col_lab { margin-bottom: 0.25rem; }
.fz-newsletter-band .fz-zoho-form a { color: #1B1464; text-decoration: underline; }
.footer-legal {
	border-top: 1px solid var(--navy-700);
	padding-top: var(--s-4);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: var(--s-3);
	font-size: var(--step--1);
	color: #9990B7;
}
.footer-legal ul {
	list-style: none;
	padding: 0; margin: 0;
	display: flex;
	gap: var(--s-4);
	flex-wrap: wrap;
	font-size: var(--step--2);
}
.footer-consent-link {
	cursor: pointer;
	border: 0;
	background: transparent;
	padding: 0;
	color: inherit;
	text-decoration: underline;
	font: inherit;
}
@media (max-width: 920px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   SHARED PATTERN — trust-bar + awards-strip
   Source: theme/style.css (region trust-awards)
   ========================================================================== */

/* ==========================================================================
   SHARED BLOCK PATTERNS — Q-v5 chrome used across CPT templates.
   ========================================================================== */

/* --- Pattern: trust-bar (homepage-only; Variant A locked) --- */
.trust-bar {
	padding: var(--s-5) 0;
	margin: var(--s-7) 0 var(--s-5);
	border-radius: var(--r-md);
	position: relative;
	overflow: hidden;
}
.trust-bar__inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--s-5);
	align-items: center;
	padding: var(--s-4) var(--s-6);
	text-align: center;
	position: relative;
	z-index: 1;
}
.trust-bar__stat {
	font-size: var(--step-3);
	font-weight: 700;
	letter-spacing: -0.025em;
	display: block;
	line-height: 1;
	margin-bottom: 4px;
}
.trust-bar__label {
	font-size: var(--step--1);
	line-height: 1.4;
}
.trust-bar--a {
	background: var(--trustbar-blue-a);
	color: var(--paper);
	border: 1px solid var(--trustbar-blue-a-deep);
	box-shadow:
		inset 0 -28px 48px -20px rgba(255, 255, 255, 0.22),
		inset 0 -1px 0 0 rgba(255, 255, 255, 0.40);
}
.trust-bar--a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 10px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0.00), rgba(255, 255, 255, 0.14));
	pointer-events: none;
	z-index: 0;
}
.trust-bar--a .trust-bar__stat { color: var(--paper); }
.trust-bar--a .trust-bar__label { color: #DCE3F5; }
@media (max-width: 720px) {
	.trust-bar__inner { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
}

/* --- Pattern: awards-strip --- */
.awards-strip {
	background: var(--green-050);
	border-top: 1px solid var(--line-soft);
	border-bottom: 1px solid var(--line-soft);
	padding: var(--s-6) 0;
}
.awards-strip__head {
	text-align: center;
	margin-bottom: var(--s-5);
}
.awards-strip__head h3 {
	margin: 0 0 var(--s-2);
	font-size: var(--step-2);
	color: var(--navy);
}
.awards-strip__head p {
	color: var(--ink-soft);
	margin: 0;
	font-size: var(--step--1);
}
.awards-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: var(--s-4);
	align-items: stretch;
}
.award-badge {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: var(--s-4) var(--s-3);
	background: var(--paper);
	border: 1.5px solid var(--line);
	border-radius: var(--r-md);
	text-align: center;
	transition: transform var(--dur-base) var(--ease-out),
	            border-color var(--dur-base) var(--ease-out);
}
.award-badge:hover {
	transform: translateY(-2px);
	border-color: var(--green-900);
}
.award-badge__img-wrap {
	width: 100%;
	max-width: 140px;
	aspect-ratio: 1 / 1;
	display: grid;
	place-items: center;
	margin-bottom: var(--s-2);
}
.award-badge__img {
	max-width: 100%;
	max-height: 100%;
	height: auto;
	width: auto;
	display: block;
	object-fit: contain;
}
/* Target the <img> element directly so source-asset crop differences (the
   Australian Small Business Champion PNG Sean flagged) cannot stretch the
   rendered height. Locks every award badge to a uniform 1:1 box. */
.awards-strip .award-badge img,
.awards-strip__badge img {
	aspect-ratio: 1 / 1;
	object-fit: contain;
	object-position: center;
	height: auto;
	width: 100%;
	max-width: 120px;
	display: block;
	margin: 0 auto;
}
.award-badge__name {
	font-size: var(--step--1);
	font-weight: 700;
	color: var(--navy);
	line-height: 1.3;
}
.award-badge__year {
	font-family: var(--font-mono);
	font-size: 10px;
	color: var(--muted);
	letter-spacing: 0.05em;
}
.award-badge__sub {
	font-size: 10px;
	color: var(--muted);
	font-style: italic;
	line-height: 1.3;
	margin-top: 2px;
}

/* Awards strip — explicit 5-in-row at desktop widths so the auto-fit grid
   doesn't wrap to 4+1 when the container leaves just under 5 minmax slots.
   `align-items: start` top-aligns every badge; the margin-block-start: 0
   override neutralises WP's `is-layout-flow` rule that injects 24px between
   siblings (irrelevant for grid items but still applied because the wp:group
   keeps the `is-layout-flow` class). */
@media (min-width: 1280px) {
	.awards-row { grid-template-columns: repeat(5, 1fr); }
}
.awards-row { align-items: start; }
/* WP's `.is-layout-flow > :not(:first-child)` injects margin-block-start which
   shifts grid items down; reset with !important so it doesn't break the
   single-row alignment. (Specificity-only override didn't win — rule order
   reversed by Gutenberg inline injection.) */
.awards-row > .award-badge {
	margin-top: 0 !important;
	margin-block-start: 0 !important;
}

/* ==========================================================================
   SHARED PATTERN — closing-cta-block
   Source: theme/style.css (region closing-cta)
   ========================================================================== */

/* --- Pattern: closing-cta-block (round-3 §11.5 + round-5 §3.8) --- */
.closing-cta {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: var(--s-6);
	background: var(--paper);
	border: 1.5px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
	margin: var(--s-8) 0 var(--s-7);
	box-shadow: var(--shadow-1);
}
.closing-cta__hero {
	background: var(--green-050);
	min-height: 320px;
	position: relative;
	overflow: hidden;
}
.closing-cta__hero img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.closing-cta__copy {
	padding: var(--s-6);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--s-4);
}
.closing-cta__copy h3 {
	margin: 0;
	font-size: var(--step-3);
	color: var(--navy);
	letter-spacing: -0.02em;
}
.closing-cta__copy p {
	margin: 0;
	color: var(--ink-soft);
	font-size: var(--step-1);
	line-height: 1.5;
}
.closing-cta__cta-row {
	display: flex;
	flex-wrap: wrap;
	gap: var(--s-3);
	margin-top: var(--s-2);
}
@media (max-width: 820px) {
	.closing-cta { grid-template-columns: 1fr; }
	.closing-cta__hero { min-height: 220px; }
}


/* ==========================================================================
   Reduced motion
   Source: theme/style.css (region reduced-motion)
   ========================================================================== */

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


/* ==========================================================================
   Ultrawide container / menu wrap / awards uniform height / cookie width
   Source: theme/style.css (regions ultrawide-menu-awards + cookie-width)
   ========================================================================== */

/* --- 12.1 · #7 Ultrawide container width ----------------------------------
   Diagnostic root-cause walk (Playwright): on the home page, every level
   from <article> → .entry-content (wp-block-post-content) → <section> rendered
   at 840px because each is `is-layout-constrained` and inherits contentSize
   from its constrained ancestor. Widening the leaf `.container` alone did
   nothing — the parent capped first. Fix: scope to body.home and lift the
   constrained-layout cap on every descendant that isn't already alignwide /
   alignfull. Other pages keep their narrow text-column reading width. */
body.home .wp-block-group.is-layout-constrained > *:not(.alignwide):not(.alignfull),
body.home .wp-block-post-content.is-layout-constrained > *:not(.alignwide):not(.alignfull),
body.home article.is-layout-constrained,
body.home .entry-content.is-layout-constrained {
	max-width: min(1600px, calc(100vw - 2rem));
}
body.home .wp-block-group.container,
body.home .container {
	max-width: min(1600px, calc(100vw - 2rem));
}
body.home .wp-block-group.container-narrow,
body.home .container-narrow {
	max-width: min(840px, calc(100vw - 2rem));
}

/* --- 12.2 · #2 Menu wrap at 1440 ----------------------------------------
   10 nav items wrapped "Contact Us" to row 2 at 1440 viewport. Tighten gap
   and reduce link size at desktop widths so all items fit. Combined with
   the wider container (#12.1) this gives nav ~1408px to share at 1440 vs
   prior 1168px. */
.primary-nav {
	max-width: min(1600px, calc(100vw - 2rem));
	gap: var(--s-3);
	padding: 0 var(--s-3);
}
@media (min-width: 1024px) and (max-width: 1599px) {
	.primary-nav a,
	.primary-nav .wp-block-navigation-item__content,
	.primary-nav .wp-block-navigation-item a {
		font-size: var(--step--1);
		padding: var(--s-3) 0;
		letter-spacing: -0.005em;
	}
	.primary-nav,
	.primary-nav .wp-block-navigation__container {
		gap: var(--s-3);
	}
}
@media (min-width: 1024px) and (max-width: 1279px) {
	.primary-nav a,
	.primary-nav .wp-block-navigation-item__content,
	.primary-nav .wp-block-navigation-item a {
		font-size: 0.84rem;
	}
	.primary-nav,
	.primary-nav .wp-block-navigation__container {
		gap: 0.6rem;
	}
}

/* --- 12.3 · #4 Awards strip uniform card height -------------------------
   Card heights were [281, 281, 300, 307, 319] (range 38px) due to badge name
   text wrapping unevenly. Lock min-height + push spare vertical space into
   the name slot via flex-grow so all cards bottom-align. */
.awards-strip .award-badge {
	min-height: 320px;
	justify-content: flex-start;
}
.awards-strip .award-badge__name {
	flex-grow: 1;
	display: flex;
	align-items: flex-start;
}

/* --- 12.3a · Bigger award images (Ben, 26 Oct) ----------------------------
   The images were capped at 120px in ~227px (desktop) / ~310px (phone)
   cells. Let them fill the cell width, less side padding, still 1:1 with
   object-fit: contain. Capped at 250px: the sources are 500x500, so 250px
   stays sharp on 2x screens and nothing is upscaled past its real size.
   The taller cards outgrow the 320px min-height, so stretch each row to
   keep the cards in it the same height. */
.awards-strip .awards-row {
	align-items: stretch;
}
.awards-strip .award-badge {
	padding-left: var(--s-2);
	padding-right: var(--s-2);
}
.awards-strip .award-badge__img-wrap {
	max-width: 250px;
}
.awards-strip .award-badge__img-wrap > figure,
.awards-strip .award-badge__img {
	width: 100%;
	margin: 0;
}
.awards-strip .award-badge img {
	width: 100%;
	max-width: 250px;
}
/* --- 12.6 · #9 Cookie banner inner width on ultrawide -------------------
   The compiled main.css applies `.cookie-consent__inner { max-width: 1200px }`
   from Tailwind's `max-w-wide` utility. At 2560 viewport that leaves the
   banner cramped while the rest of the page widens. Override with the same
   clamp formula used for `.container` so the banner scales with content.
   Specificity beats main.css (loaded after style.css) by chaining classes. */
.cookie-consent .cookie-consent__inner {
	max-width: min(1600px, calc(100vw - 2rem));
}


/* ==========================================================================
   Header refinements — site-title, nav wrap, phone + nav-link sizing
   Source: theme/style.css (region header-refinements)
   ========================================================================== */

/* --- 13.1 · Hide redundant site-title in header -----------------------------
   The header part renders a wp:site-title block (`.brand-word__title`) AND
   a wp:site-logo (`.brand-logo`). The wordmark image already contains the
   "Fizzics Education" word, so the duplicate text reads redundant beside it.
   Q-v5 wireframe header (wireframes/q-v5/index.html L52) keeps the wordmark
   text inside `<strong>` only when the logo image is absent. Hide the
   site-title text via CSS so reverting is one-line. The tagline below stays. */
.site-header__upper .brand-word__title,
.site-header .brand-word__title,
.brand-word__title.wp-block-site-title,
.brand-word .wp-block-site-title { display: none !important; }

/* --- 13.1.b · 2026-04-28 PM follow-up: chip B's media-query nav rule
   (`.primary-nav .wp-block-navigation-item a`) has higher specificity
   (0,2,1) than 13.2's `.primary-nav a` (0,1,1), so 13.2 lost at 1440.
   Same for `.header-phone a`. Re-state at matching specificity with
   !important to override the 1024–1599 media-query down-scale. */
.site-header .primary-nav a,
.site-header .primary-nav .wp-block-navigation-item__content,
.site-header .primary-nav .wp-block-navigation-item a {
	font-size: var(--step-0) !important;
	letter-spacing: 0 !important;
}
.site-header .header-phone,
.site-header .header-phone a {
	font-size: var(--step-1) !important;
	font-weight: 700 !important;
}

/* --- 13.2 · Phone font-size ≥18px + nav-link ≥16px (NEW protocol 5.3) ------
   BEFORE-state probe (docs/audits/wave-n1a/before-after/home-1440-staging-before.json):
     headerPhonePx: 14.96 (FAIL — needs ≥18px)
     navLinkPx:     14.96 (FAIL — needs ≥16px)
     ctaPx:         18    (PASS)
   Bump both selectors; colour + flex layout unchanged. CTA already passes. */
.header-phone,
.header-phone a {
	font-size: var(--step-1);
	font-weight: 700;
}
.primary-nav a {
	font-size: var(--step-0);
}


/* ==========================================================================
   Trust-bar uniform layout
   Source: theme/style.css (region trust-bar-uniform)
   ========================================================================== */

/* --- 13.3 · Stats bar / trust-bar uniform layout ----------------------------
   Sean 2026-04-28: trust-bar 4 children must be visually uniform across all
   viewports — same grid-row height, labels y-aligned within ±2px, no column
   collapse at 1920+. Original CSS dropped to 1fr 1fr at ≤720px AND let label
   text wrap differently between cards (variable card heights). Fix:
     * grid-template-rows defines stat-row + label-row so labels share a
       baseline regardless of label length;
     * min-height ≥140px gives every card a uniform vertical footprint;
     * label `align-self: end` anchors short labels to the bottom of their
       row, matching tall-label cards. */
.trust-bar__inner {
	grid-template-rows: auto 1fr;
	min-height: 140px;
}
.trust-bar__inner > div {
	display: grid;
	grid-template-rows: subgrid;
	grid-row: span 2;
	row-gap: var(--s-2);
	align-content: start;

	/* 2026-07-31 · Sean: "the 4M+ is not inline". Root cause is NOT the
	   `align-items: center` on the base `.trust-bar__inner` rule above —
	   subgrid stretches its items regardless, and toggling that declaration
	   to stretch/start in-browser changed nothing (measured). The real cause
	   is WordPress's flow-layout block gap: `.trust-bar__inner` carries
	   `wp-block-group is-layout-flow`, so core emits
	   `:where(.is-layout-flow) > :not(:first-child) { margin-block-start: 24px }`.
	   Columns 1-3 inherited that 24px top margin; column 0 (first child) did
	   not. Inside a grid the margin offsets each item within its grid area, so
	   `4M+` sat 24px above its siblings (top 985.53 vs 1009.53 @1440) and its
	   column measured 116.92px against their 92.92px. The block gap is
	   meaningless on a grid container — zero it. Specificity (0,1,1) beats
	   core's `:where()`-wrapped (0,1,0), so no `!important` is needed. */
	margin-block-start: 0;
}
.trust-bar__stat {
	align-self: start;
}
.trust-bar__label {
	align-self: end;
}
/* Restore 4-col grid at every breakpoint ≥768px (was 1fr 1fr ≤720px only —
   between 720px and the 4-col default it was 4-col but at 1920 a downstream
   media query was dropping WWCC; force 4-col at all widths ≥768px). */
@media (min-width: 768px) {
	.trust-bar__inner {
		grid-template-columns: repeat(4, 1fr);
	}
}


/* ==========================================================================
   SHARED PATTERN — free-resources (4-card)
   Source: theme/style.css (region free-resources)
   ========================================================================== */

/* --- 14.3 · Free-resources (4-card) ---------------------------------------- */
.free-resources {
	padding: var(--s-8) 0;
	background: var(--green-050);
	border-top: 1px solid var(--line-soft);
	border-bottom: 1px solid var(--line-soft);
}
.free-resources__head {
	max-width: 70ch;
	margin: 0 0 var(--s-6);
}
.free-resources__head h2 {
	margin: var(--s-2) 0 var(--s-3);
	font-size: var(--step-3);
	color: var(--navy);
	letter-spacing: -0.015em;
}
.fr-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: var(--s-5);
}
.fr-card {
	display: flex;
	flex-direction: column;
	gap: var(--s-3);
	padding: var(--s-5);
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	text-decoration: none;
	color: var(--ink);
	box-shadow: var(--shadow-1);
	transition:
		transform var(--dur-base, 200ms) var(--ease-out),
		box-shadow var(--dur-base, 200ms) var(--ease-out);
}
.fr-card:hover,
.fr-card:focus-visible {
	transform: translateY(-2px);
	box-shadow: var(--shadow-2, 0 6px 24px rgba(27, 20, 100, 0.10));
}
.fr-card--has-media {
	padding-top: 0;
	overflow: hidden;
}
.fr-card__media {
	margin: 0 calc(-1 * var(--s-5));
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--green-050);
}
.fr-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.fr-card__icon {
	width: 40px;
	height: 40px;
	border-radius: 999px;
	background: var(--green-050);
	color: var(--green-900);
	display: flex;
	align-items: center;
	justify-content: center;
}
.fr-card h3 {
	margin: 0;
	font-size: var(--step-2);
	color: var(--navy);
	letter-spacing: -0.01em;
}
.fr-card p {
	margin: 0;
	color: var(--ink-soft);
	font-size: var(--step-0);
	line-height: 1.5;
}
.fr-card__link {
	margin-top: auto;
	color: var(--green-900);
	font-weight: 600;
	font-size: var(--step-0);
}


/* ==========================================================================
   Mobile containment — long strings, embedded media
   Source: theme/style.css (regions mobile-containment-text + mobile-containment-media)
   ========================================================================== */

/* ============================================================================
 * 17 · Mobile containment — session-theme-publish-blockers
 * Spawn prompt: docs/spawn-prompts/session-theme-publish-blockers.md
 * Evidence:     docs/audits/theme-publish-blockers/
 *
 * Every rule here fixes a measured horizontal-overflow cause. Deliberately NOT
 * `overflow-x: hidden` on body/html — that hides the symptom, breaks
 * position: sticky on the booking rail, and would let the real defect through
 * the G8.4 gate.
 * ========================================================================= */

/* --- 17.1 · Long unbreakable strings must wrap ----------------------------- */

/* Migrated Rippa bodies and ACF URL fields carry 65–95 character URLs with no
 * break opportunity. At 375px an unbroken token sets the block's min-content
 * width and the document scrolls sideways with no element box exceeding the
 * viewport — which is why an element-level probe finds no offender. Measured
 * across all 268 programmes: 203 overflowed, 0 after this rule. */
.site-main,
.entry-content,
.wp-block-post-content {
	overflow-wrap: break-word;
}

/* --- 17.3 · Embedded media never exceeds its container -------------------- */

/* Rippa bodies embed raw <iframe width="560"> players and fixed-width tables
 * that predate responsive-embeds. add_theme_support('responsive-embeds') only
 * covers core embed blocks, not hand-written markup inside post_content. */
.entry-content img,
.entry-content iframe,
.entry-content video,
.entry-content embed,
.entry-content object {
	max-width: 100%;
}

/* height: auto is for players that size themselves (aspect-ratio rules, video). It is not
 * applied to Facebook post/video plugin iframes: they are plain iframes whose only height is
 * the height attribute, and height: auto beat that attribute and collapsed them to the 150px
 * replaced-element default, cutting the post off inside overflow-hidden wrappers (Ben, FCA-I350).
 * Excluded here so the attribute applies again, site-wide, whatever the wrapper.
 * The hand-written height attributes are also a little short for some posts (the Binnaway post
 * needs 757px at the 500px Facebook lays it out at; its attribute says 700), so the action bar
 * was clipped even once the attribute applied. Facebook renders the post at the width= in its
 * URL, so the content height does not change with the viewport: one floor covers every width. */
.entry-content iframe:not([src*="facebook.com/plugins/"]),
.entry-content video {
	height: auto;
}

.entry-content iframe[src*="facebook.com/plugins/post.php"],
.entry-content iframe[src*="facebook.com/plugins/video.php"] {
	min-height: 760px;
	border: 0;
}

/* Facebook reels (Ben, 23 Nov 2026). The 760px floor above is right for landscape videos and
 * posts, but a reel is a 9:16 clip about 267x476, so it sat at the top of a 760px box with a
 * blank band beneath it (podcast ep 221). Reel embeds (video.php with a reel href, encoded or
 * not) drop the floor, take the 9:16 ratio from their width, and stop at 360px wide.
 * height: auto is needed because the height attribute (often wrong on hand-pasted reels: 591,
 * 750) would otherwise still set the box. Reels with show_text=true print a caption under the
 * clip, so they keep the old floor. Specificity (0,3,1) beats the rule above. */
.entry-content iframe[src*="facebook.com/plugins/video.php"][src*="%2Freel%2F"]:not([src*="show_text=true"]),
.entry-content iframe[src*="facebook.com/plugins/video.php"][src*="/reel/"]:not([src*="show_text=true"]) {
	min-height: 0;
	height: auto;
	aspect-ratio: 9 / 16;
	max-width: min(100%, 360px);
}

.entry-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}


/* ==========================================================================
   Header — sticky bar, compact mobile bar and menu (main site 19.1-19.4)
   Source: theme/style.css (region header-sticky-mobile)
   ========================================================================== */

/* 19.1 · Make the sticky header actually stick. `position: sticky` on
   .site-header was confined to its template-part wrapper
   (<header class="wp-block-template-part">), which holds only the B1G1 strip
   and the header, so it scrolled away with the wrapper. `display: contents`
   removes the wrapper's box; the sticky containing block becomes the page. */
.wp-block-template-part:has(> .site-header) {
	display: contents;
}
.site-header {
	z-index: 100; /* above sticky rails (5) and page content, below cookie banner (999) */
}

/* 19.2 · Anchor jumps and sticky rails clear the header. --fz-header-h is the
   live header height (mobile-nav.js); fallback is no offset. */
html {
	scroll-padding-top: calc(var(--fz-header-h, 0px) + 16px);
}

/* 19.2a · Zoho web form thank-you banner. Zoho injects #wf_splash as a
   position:fixed toast at top:20px with z-index 11000 for 5 seconds after a
   submit; it sat behind the sticky green header, so visitors missed it.
   Lift it below the header (live height from mobile-nav.js) on desktop and
   mobile, and keep it above page content. */
.crmWebToEntityForm #wf_splash { /* stylelint-disable-line selector-id-pattern -- id is injected by Zoho's form script */
	top: calc(var(--fz-header-h, 96px) + 16px) !important;
	z-index: 1000 !important;
}

/* scroll-margin-top on the target ADDS to scroll-padding-top, so anchor
   targets must not carry their own header offset. The imported Science At
   Home page content has an inline `#register { scroll-margin-top: 180px
   !important }` from the old site; with the padding above it landed 264px
   down the screen. `html body` out-ranks it. */
html body #requirements-cost,
html body #cost,
html body #register,
html body #week1,
html body #FAQs, /* stylelint-disable-line selector-id-pattern -- id from imported page content */
html body #connect-section,
html body #differentiated-anchor {
	scroll-margin-top: 0 !important;
}

/* 19.3 · Compact phone/tablet header, 60px tall. One row: logo left,
   hamburger right. The search, phone, CTA and B1G1 strip move out of the bar
   (phone, CTA and B1G1 note are copied into the menu by mobile-nav.js). */
@media (max-width: 768px) {
	.b1g1-strip { display: none; }

	/* Doubled class: main.css (Tailwind `.site-header { py-4 }`) loads after
	   this sheet and would otherwise add 16px top and bottom. */
	.site-header.site-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--s-3);
		min-height: 60px;
		padding: 6px 6px 6px 12px;
		border-bottom: 0;
	}
	.site-header.site-header > * {
		margin-top: 0;
		margin-bottom: 0;
	}
	.site-header__upper {
		display: flex;
		flex: 1 1 auto;
		min-width: 0;
		padding: 0;
		margin: 0;
		gap: 0;
		grid-template-columns: none;
	}
	.site-header .header-search,
	.site-header .header-contact,
	.site-header .brand-word { display: none; }
	.site-header .brand { gap: 0; min-width: 0; }
	.site-header .brand-logo img {
		width: auto !important;
		height: 40px;
		max-width: min(200px, 55vw);
		object-fit: contain;
	}

	.site-header__lower {
		flex: none;
		border: 0;
		background: transparent;
	}
	.site-header .primary-nav {
		min-height: 0;
		padding: 0;
		margin: 0;
		max-width: none;
	}

	/* Hamburger: 48x48 tap target, white icon on the green bar. Shown up to
	   768px (core switches to the inline menu at 600px). */
	.site-header .primary-nav .wp-block-navigation__responsive-container-open {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 48px;
		height: 48px;
		padding: 0;
		margin: 0;
		color: var(--paper);
		background: rgba(255, 255, 255, 0.14);
		border: 2px solid rgba(255, 255, 255, 0.55);
		border-radius: 10px;
		cursor: pointer;
	}
	.site-header .primary-nav .wp-block-navigation__responsive-container-open svg {
		width: 28px;
		height: 28px;
		fill: currentColor;
	}
	.site-header .primary-nav .wp-block-navigation__responsive-container-open:focus-visible,
	.site-header .primary-nav .wp-block-navigation__responsive-container-close:focus-visible,
	.site-header .primary-nav .fz-subtoggle:focus-visible,
	.site-header .primary-nav .is-menu-open a:focus-visible {
		outline: 3px solid var(--orange);
		outline-offset: 2px;
	}

	/* 600-768px: keep the overlay pattern instead of core's inline menu. */
	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

	/* 19.4 · Opened menu: full-screen, scrollable, full-width 48px+ rows. */
	.site-header .primary-nav .wp-block-navigation__responsive-container.is-menu-open {
		display: flex;
		position: fixed;
		inset: 0;
		z-index: 100000;
		padding: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		background: var(--paper);
		color: var(--ink);
	}
	.site-header .primary-nav .is-menu-open .wp-block-navigation__responsive-close,
	.site-header .primary-nav .is-menu-open .wp-block-navigation__responsive-dialog {
		width: 100%;
		max-width: none;
		margin: 0;
	}
	.site-header .primary-nav .is-menu-open .wp-block-navigation__responsive-container-close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 6px;
		right: 6px;
		width: 48px;
		height: 48px;
		padding: 0;
		color: var(--ink);
		background: var(--green-050);
		border: 0;
		border-radius: 10px;
	}
	.site-header .primary-nav .is-menu-open .wp-block-navigation__responsive-container-close svg {
		width: 28px;
		height: 28px;
		fill: currentColor;
	}
	.site-header .primary-nav .is-menu-open .wp-block-navigation__responsive-container-content {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: var(--s-4);
		width: 100%;
		padding: 66px 16px 32px;
		margin: 0;
	}
	.site-header .primary-nav .is-menu-open .wp-block-navigation__container {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		width: 100%;
		margin: 0;
		padding: 0;
	}
	.site-header .primary-nav .is-menu-open .wp-block-navigation-item {
		display: flex;
		/* Core's overlay rule sets flex-direction: column on every item, which
		   put the accordion arrow under its parent link (Ben, 20 Nov 2026). Row
		   keeps link and arrow side by side; the sub-menu still wraps below on
		   its own line via flex-basis: 100%. */
		flex-direction: row;
		flex-wrap: wrap;
		align-items: stretch;
		width: 100%;
		margin: 0;
		padding: 0;
	}
	.site-header .primary-nav .is-menu-open .wp-block-navigation-item__content {
		display: flex;
		align-items: center;
		flex: 1 1 0;
		min-width: 0;
		min-height: 52px;
		padding: 12px 16px !important;
		font-size: 18px !important;
		font-weight: 600;
		line-height: 1.3;
		color: var(--ink);
		background: var(--green-050);
		border-radius: 10px;
		text-decoration: none;
	}
	.site-header .primary-nav .is-menu-open .wp-block-navigation-item__content:hover,
	.site-header .primary-nav .is-menu-open .wp-block-navigation-item__content[aria-current="page"] {
		color: var(--green-900);
		box-shadow: inset 4px 0 0 var(--green);
	}

	/* Sub-menus: accordions with their own 48px toggle (mobile-nav.js). */
	.site-header .primary-nav .is-menu-open .wp-block-navigation-submenu__toggle { display: none; }
	.site-header .primary-nav .is-menu-open .fz-subtoggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		flex: none;
		width: 52px;
		min-height: 52px;
		margin-left: 8px;
		padding: 0;
		color: var(--ink);
		background: var(--green-050);
		border: 0;
		border-radius: 10px;
		cursor: pointer;
	}
	.site-header .primary-nav .is-menu-open .fz-subtoggle svg { transition: transform 150ms ease; }
	.site-header .primary-nav .is-menu-open .fz-subtoggle[aria-expanded="true"] svg { transform: rotate(180deg); }
	.site-header .primary-nav .is-menu-open .fz-has-subtoggle > .wp-block-navigation__submenu-container {
		display: none !important;
	}
	.site-header .primary-nav .is-menu-open .fz-has-subtoggle.fz-sub-open > .wp-block-navigation__submenu-container {
		display: flex !important;
		flex-direction: column;
		gap: 8px;
		flex-basis: 100%;
		position: static;
		width: 100%;
		margin: 8px 0 0;
		padding: 0 0 0 16px !important;
		opacity: 1;
		visibility: visible;
		height: auto;
		border: 0;
		background: transparent;
	}
	.site-header .primary-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		font-size: 16px !important;
		font-weight: 500;
		background: var(--surface);
	}

	/* Phone, CTA and B1G1 note at the foot of the menu. */
	.site-header .fz-menu-extras {
		display: flex;
		flex-direction: column;
		gap: 8px;
		padding-top: var(--s-3);
		border-top: 1px solid var(--line);
	}
	.site-header .fz-menu-extras__phone,
	.site-header .fz-menu-extras__cta {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 52px;
		padding: 12px 16px;
		font-size: 18px !important;
		font-weight: 700;
		border-radius: var(--r-pill);
		text-decoration: none;
	}
	.site-header .fz-menu-extras__phone {
		gap: 0.3em;
		color: var(--paper) !important;
		background: var(--green-900);
	}
	.site-header .fz-menu-extras__cta {
		color: var(--navy-900);
		background: var(--orange);
		border: 2px solid var(--orange);
	}
	.site-header .fz-menu-extras__note {
		margin: var(--s-2) 0 0;
		font-size: 16px;
		line-height: 1.5;
		color: var(--ink-soft);
	}
	.site-header .fz-menu-extras__note a {
		display: inline-block;
		padding: 4px 0;
		color: var(--green-900);
	}
}
@media (min-width: 769px) {
	.site-header .fz-menu-extras { display: none; }
}

/* Body scroll lock while the menu is open (mobile-nav.js sets the class). */
html.fz-menu-open,
body.fz-menu-open {
	overflow: hidden;
}


/* ==========================================================================
   Header — condensed desktop bar, drop-downs, search toggle, focus ring (main site 19.7-19.10)
   Source: theme/style.css (region header-condensed-dropdowns-search)
   ========================================================================== */

/* 19.7 · Compact desktop header on scroll (22 Oct 2026). The full sticky
   header is 236px at 1440, a quarter of a 900px-high screen, and pushed the
   sticky rails down to 260px. At the top of the page the full header shows.
   After 80px of scroll mobile-nav.js adds html.fz-header-condensed and the
   header becomes one 68px bar: smaller logo, main nav, enquiry CTA. The
   search box, phone number and tagline are hidden (the B1G1 strip sits above
   the sticky header and has already scrolled away). .fz-header-spacer takes
   up the height the header gives away, so the content does not jump.
   --fz-header-h (rails, scroll-padding-top) is the condensed height on
   desktop. 1200px and up only: below that the nav does not fit on one row
   beside the logo and CTA. Phones keep the 60px bar from §19.3. */
.fz-header-spacer {
	display: block;
	height: 0;
	margin: 0 !important;
	padding: 0;
	pointer-events: none;
}

@media (min-width: 1200px) {
	:root { --fz-header-h: 68px; } /* before mobile-nav.js runs */

	html.fz-header-condensed .site-header.site-header {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		align-items: center;
		column-gap: var(--s-4);
		box-sizing: border-box;
		height: 68px;
		padding: 6px max(var(--s-4), calc((100% - 1600px) / 2));
		animation: fz-header-in 220ms var(--ease-out, ease-out);
	}
	html.fz-header-condensed .site-header.site-header > *,
	html.fz-header-condensed .site-header__upper > * {
		margin-top: 0;
		margin-bottom: 0;
	}
	html.fz-header-condensed .site-header__upper { display: contents; }
	html.fz-header-condensed .site-header .brand {
		grid-column: 1;
		grid-row: 1;
	}
	html.fz-header-condensed .site-header .brand-logo img {
		width: auto;
		height: 44px;
	}
	html.fz-header-condensed .site-header .brand-word,
	html.fz-header-condensed .site-header .header-search,
	html.fz-header-condensed .site-header .header-phone { display: none; }
	html.fz-header-condensed .site-header .header-contact {
		grid-column: 3;
		grid-row: 1;
	}
	html.fz-header-condensed .site-header .nav-cta {
		padding: 8px var(--s-4);
		font-size: 15px;
		white-space: nowrap;
	}
	html.fz-header-condensed .site-header__lower {
		grid-column: 2;
		grid-row: 1;
		display: flex;
		justify-content: center;
		min-width: 0;
		background: transparent;
		border: 0;
	}
	html.fz-header-condensed .site-header .primary-nav {
		justify-content: center;
		min-height: 0;
		max-width: none;
		padding: 0;
	}
	html.fz-header-condensed .site-header .primary-nav .wp-block-navigation__container {
		flex-wrap: nowrap;
		justify-content: center;
		gap: 8px;
	}

	/* The logo links home, so "Home" is dropped from the bar. */
	html.fz-header-condensed .site-header .primary-nav .wp-block-navigation__container > li:first-child:not(.has-child) { display: none; }
	/* "Contact Us" is dropped from the bar too: the "Find out more" CTA beside the
	 * search icon does the same job, and the last menu item ran over the search icon
	 * at 1200 to 1280px (Ben, 20 Nov 2026). It stays in the full header and the mobile
	 * menu. Matched by link target, top level only, so reordering the menu is safe. */
	html.fz-header-condensed .site-header .primary-nav .wp-block-navigation__container > li:has(> a[href*="contact"]) { display: none; }
	html.fz-header-condensed .site-header .primary-nav a,
	html.fz-header-condensed .site-header .primary-nav .wp-block-navigation-item__content {
		padding: 8px 0;
		font-size: 14px !important;
		/* 700 (was 600): thin strokes were hard to read on a TV (Ben, 20 Nov 2026).
		 * Colour stays --ink on the green bar, 5.5:1. White would be 3.29:1, below AA. */
		font-weight: 700;
		color: var(--ink);
		white-space: nowrap;
	}
	html.fz-header-condensed .site-header .primary-nav .wp-block-navigation__container > li > a:hover,
	html.fz-header-condensed .site-header .primary-nav .wp-block-navigation__container > li > a[aria-current="page"] {
		color: var(--ink);
		text-decoration: underline;
		text-decoration-thickness: 2px;
		text-underline-offset: 6px;
	}
	html.fz-header-condensed .site-header .primary-nav .wp-block-navigation__submenu-container a {
		padding: 8px 12px;
		white-space: normal;
	}

	html.fz-header-expanded .site-header {
		animation: fz-header-settle 180ms var(--ease-out, ease-out);
	}
}

@media (min-width: 1200px) and (max-width: 1279px) {
	html.fz-header-condensed .site-header .primary-nav a,
	html.fz-header-condensed .site-header .primary-nav .wp-block-navigation-item__content {
		font-size: 13px !important;
	}
	html.fz-header-condensed .site-header .primary-nav .wp-block-navigation__container { gap: 6px; }
}

@media (min-width: 1440px) {
	html.fz-header-condensed .site-header .primary-nav a,
	html.fz-header-condensed .site-header .primary-nav .wp-block-navigation-item__content {
		font-size: 15px !important;
	}
	html.fz-header-condensed .site-header .primary-nav .wp-block-navigation__container { gap: 12px; }
}

@keyframes fz-header-in {
	from { transform: translateY(-100%); }
	to { transform: none; }
}

@keyframes fz-header-settle {
	from {
		opacity: 0.6;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	html.fz-header-condensed .site-header.site-header,
	html.fz-header-expanded .site-header { animation: none; }
}

/* Legacy image buttons rendered as theme buttons (inc/legacy-buttons.php,
 * Ben 23 Oct 2026): natural size, never the full column width. */
.fz-legacy-btn,
.fz-copy-citation {
	display: inline-flex;
	width: auto;
	max-width: 100%;
}

/* WordPress content images at their real size (Ben, 25 Oct 2026). WordPress
 * gives full-size images class="size-full" (and wp-image-<ID>), which collided
 * with Tailwind's `.size-full { width:100%; height:100% }` utility: a 500x500
 * photo rendered 840x840 and the 124x47 "Read more" graphic 840x318. Tailwind
 * no longer generates the utility (tailwind.config.js blocklist); this rule
 * also pins content images to the size in their width/height attributes,
 * never wider than their container. Scoped to post content and kept at
 * (0,1,0) specificity so component rules (.equipment-box__image img, award
 * badges, cards) still size their own images. Replaces the 25 Oct (#302)
 * Read-more-button-only rule. */
/* No `width: auto` here: it would override the width attribute, and on
 * images with sizes="auto" (lazy-loaded srcset) Chrome then sized them to
 * the column (212x300 cover shown 840x1189). The attribute sets the width. */
.entry-content :where(img.size-full, img[class*="wp-image-"]) {
	height: auto;
	max-width: 100%;
}

/* 19.8 · Desktop header drop-downs (Ben, 23 Oct 2026: "rollovers on the
   header for the desktop version"). From 769px the primary menu is the inline
   bar; Outreach Programmes, Free Resources and About carry sub-menus.
   header-dropdowns.js adds .fz-dd-open on hover (closing 250ms after the
   pointer leaves), on keyboard focus and on a chevron click, and keeps the
   chevron's aria-expanded in step. Phones (<=768px, §19.3) keep the
   hamburger overlay and its accordions: every rule here is scoped to the
   inline bar (:not(.is-menu-open)) and to >=769px. */
@media (min-width: 769px) {
	/* The accordion button mobile-nav.js adds is for the overlay only; core's
	   own chevron stays on the bar. */
	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .fz-subtoggle { display: none; }

	/* Centre the menu row in the tall header (Ben, 26 Oct: "header options
	   are shifted to the left" before scrolling). The menu <ul> also carries
	   .primary-nav, so it was meant to centre with `margin: 0 auto`, but core's
	   `.wp-block-navigation ul { margin-left: 0 }` is more specific and left
	   only the right margin auto: at 1920px the row sat at 156-1373px in a
	   144-1744px bar (370px gap on the right). The condensed bar was already
	   centred, so both states now line up. */
	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container {
		margin-left: auto;
		margin-right: auto;
	}

	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .wp-block-navigation-item {
		position: relative;
	}

	/* Top-level hover / focus / open highlight: a 3px green bar under the
	   label (no padding change, so the 10 items still fit on one row). */
	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > li > .wp-block-navigation-item__content {
		text-decoration: none;
		box-shadow: inset 0 -3px 0 transparent;
		transition: box-shadow 120ms ease, color 120ms ease;
	}
	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > li > .wp-block-navigation-item__content:hover,
	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > li > .wp-block-navigation-item__content:focus-visible,
	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > li.fz-dd-open > .wp-block-navigation-item__content,
	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > li > .wp-block-navigation-item__content[aria-current="page"] {
		color: var(--green-900);
		box-shadow: inset 0 -3px 0 var(--green);
	}
	html.fz-header-condensed .site-header .primary-nav .wp-block-navigation__container > li > a:hover { text-decoration: none; }

	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-submenu__toggle {
		border-radius: 4px;
		color: var(--ink);
	}
	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-submenu__toggle svg { transition: transform 150ms ease; }
	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-submenu__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-submenu__toggle:hover { color: var(--green-900); }

	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-item__content:focus-visible,
	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-submenu__toggle:focus-visible {
		outline: 3px solid var(--orange);
		outline-offset: 2px;
		border-radius: 4px;
	}

	/* The drop-down panel. */
	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > li > .wp-block-navigation__submenu-container {
		top: 100%;
		left: -12px;
		/* Closed: core's width/height 0 must really be 0. A min-width or
		 * padding here kept every hidden panel 260px wide, and the one under
		 * the right-most items (Impact) ran ~36px past the viewport, so every
		 * desktop page scrolled sideways (session 21). Size comes with .fz-dd-open. */
		min-width: 0;
		padding: 0;
		background: var(--paper);
		border: 1px solid var(--line);
		border-top: 3px solid var(--green);
		border-radius: 0 0 10px 10px;
		box-shadow: 0 12px 28px rgba(24, 20, 33, 0.16);
		z-index: 30;
		transition: opacity 120ms ease;
	}
	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > li.fz-dd-open > .wp-block-navigation__submenu-container {
		visibility: visible;
		overflow: visible;
		opacity: 1;
		width: auto;
		height: auto;
		min-width: 260px;
		padding: 8px;
	}
	/* Opened near the right edge: header-dropdowns.js adds .fz-dd-flip when the
	 * panel would pass the viewport, so it hangs leftwards from the item instead. */
	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > li.fz-dd-flip > .wp-block-navigation__submenu-container {
		left: auto;
		right: -12px;
	}
	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item { width: 100%; }
	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
		display: block;
		width: 100%;
		padding: 10px 14px !important;
		border-radius: 6px;
		font-size: 16px !important;
		font-weight: 500;
		line-height: 1.35;
		color: var(--ink);
		white-space: normal;
		text-decoration: none;
	}
	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible,
	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content[aria-current="page"] {
		background: var(--green-050);
		color: var(--green-900);
	}
}
@media (min-width: 769px) and (prefers-reduced-motion: reduce) {
	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation-submenu__toggle svg,
	.site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container { transition: none; }
}

/* 19.8.1 · On the condensed green bar (§19.7) the green label and green
   underline from §19.8 vanish into the background: keep ink text with an
   ink underline there, as §19.7 had. */
@media (min-width: 1200px) {
	html.fz-header-condensed .site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > li > .wp-block-navigation-item__content:hover,
	html.fz-header-condensed .site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > li > .wp-block-navigation-item__content:focus-visible,
	html.fz-header-condensed .site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > li.fz-dd-open > .wp-block-navigation-item__content,
	html.fz-header-condensed .site-header .primary-nav .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > li > .wp-block-navigation-item__content[aria-current="page"] {
		color: var(--ink);
		box-shadow: inset 0 -2px 0 var(--ink);
	}
}

/* 19.9 · Header search button (Ben, 23 Oct 2026: "On mobile I cannot see a
   search bar in the header"). The inline search pill is hidden on the 60px
   phone bar (§19.3, <=768px) and on the condensed desktop bar (§19.7,
   >=1200px after scrolling). In those two states header-search-toggle.js
   adds .fz-search-toggle: a magnifier button beside the hamburger (phone) or
   before the enquiry CTA (condensed bar). It opens the same core search form
   as a pill just under the bar (.site-header.fz-search-open), so a search
   still goes to the normal results page. The full desktop header, and
   769-1199px, are unchanged: the button is not shown there. */
.fz-search-toggle { display: none; }
.fz-search-toggle {
	align-items: center;
	justify-content: center;
	flex: none;
	width: 48px;
	height: 48px;
	padding: 0;
	margin: 0;
	color: var(--paper);
	background: rgba(255, 255, 255, 0.14);
	border: 2px solid rgba(255, 255, 255, 0.55);
	border-radius: 10px;
	cursor: pointer;
}
.fz-search-toggle:hover { background: rgba(255, 255, 255, 0.24); }
.fz-search-toggle:focus-visible {
	outline: 3px solid var(--orange);
	outline-offset: 2px;
}
.fz-search-toggle svg { width: 24px; height: 24px; }
.fz-search-toggle .fz-search-toggle__close { display: none; }
.fz-search-toggle[aria-expanded="true"] .fz-search-toggle__open { display: none; }
.fz-search-toggle[aria-expanded="true"] .fz-search-toggle__close { display: block; }

@media (max-width: 768px) {
	.site-header .fz-search-toggle { display: inline-flex; }
	/* Logo, search, hamburger: search sits 8px from the hamburger. */
	.site-header.site-header .site-header__lower { margin-left: -4px; }
	.site-header.fz-search-open form.wp-block-search.header-search {
		display: flex;
		position: absolute;
		top: calc(100% + 8px);
		left: 12px;
		right: 12px;
		z-index: 2;
		justify-self: stretch; /* base .header-search centres it, which shrinks an absolute box */
		width: auto;
		max-width: none;
		margin: 0;
		box-shadow: 0 8px 24px rgb(0 0 0 / 22%);
	}
	/* 16px stops iOS zooming the page when the field takes focus. */
	.site-header.fz-search-open form.wp-block-search.header-search input { font-size: 16px; }
}

@media (min-width: 1200px) {
	html.fz-header-condensed .site-header.site-header {
		grid-template-columns: auto minmax(0, 1fr) auto auto;
	}
	html.fz-header-condensed .site-header .fz-search-toggle {
		display: inline-flex;
		grid-column: 3;
		grid-row: 1;
		width: 44px;
		height: 44px;
	}
	html.fz-header-condensed .site-header .header-contact { grid-column: 4; }
	html.fz-header-condensed .site-header.fz-search-open form.wp-block-search.header-search {
		display: flex;
		position: absolute;
		top: calc(100% + 8px);
		right: max(var(--s-4), calc((100% - 1600px) / 2));
		z-index: 2;
		width: min(440px, calc(100% - 2 * var(--s-4)));
		max-width: none;
		margin: 0;
		box-shadow: 0 8px 24px rgb(0 0 0 / 22%);
	}
}

/* 19.10 · Header focus ring contrast (WCAG 2.1 AA 1.4.11 and 2.4.7, Ben
   item 8, 24 Oct 2026). The site-wide ring is 3px --orange: 1.14:1 against
   the green header bar (--green #529F3B) and 2.6:1 against the --green-050
   nav bar, so keyboard focus on the logo, phone, search, CTA, hamburger, the
   desktop menu, its chevrons and drop-down links was close to invisible.
   Inside the header the ring is --navy instead: 4.8:1 on green, 14:1 on
   green-050, 16:1 on the white drop-down panel and the phone overlay.
   !important because §19.3, §19.8 and §19.9 set the orange ring with long
   selectors; only the colour changes, their width and offset stay. */
.site-header :focus-visible {
	outline-color: var(--navy) !important;
}


/* ==========================================================================
   SHOP BASE — breadcrumbs
   Source: wireframes/q-v5/css/main.css (lines 1356-1382)
   ========================================================================== */

/* ========== 14. Breadcrumbs ========== */
.crumbs {
  display: flex;
  gap: var(--s-2);
  font-size: var(--step--1);
  color: var(--muted);
  margin-bottom: var(--s-4);
  flex-wrap: wrap;
}
.crumbs ol {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.crumbs a {
  text-decoration: none;
  color: var(--green-900);   /* Q-v2: breadcrumb links green */
}
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before {
  content: "›";
  margin-right: var(--s-2);
  color: var(--line);
}


/* ==========================================================================
   SHOP BASE — toolbar, layout, category list, product grid + card
   Source: wireframes/q-v5/css/main.css (lines 2577-2772)
   ========================================================================== */

/* ========== 21. Shop ========== */
.shop-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-5);
  padding: var(--s-4) var(--s-5);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: var(--s-5);
  align-items: center;
}
.shop-toolbar__search {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  padding: var(--s-2) var(--s-4);
  transition: border-color var(--dur-quick) var(--ease-out);
}
.shop-toolbar__search:focus-within { border-color: var(--green-900); }
.shop-toolbar__search input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
}
.shop-toolbar__search input:focus { outline: none; }
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: flex-end;
}
.shop-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px var(--s-4);
  font-size: var(--step--1);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  cursor: pointer;
  transition: border-color var(--dur-quick) var(--ease-out);
}
.shop-filter:has(input:checked) {
  border-color: var(--green-900);      /* Q-v2: green checked filter */
  background: var(--green-050);
  color: var(--green-900);
  font-weight: 700;
}
.shop-filter input { accent-color: var(--green-900); }

.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--s-6);
}
@media (max-width: 900px) { .shop-layout { grid-template-columns: 1fr; } }

.category-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--paper);
}
.category-list li {
  border-bottom: 1px solid var(--line-soft);
}
.category-list li:last-child { border-bottom: 0; }
.category-list label {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  font-size: var(--step--1);
  cursor: pointer;
}
.category-list label:hover { background: var(--green-050); }
.category-list input { accent-color: var(--green-900); }
.category-list__count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-4);
}
/* Mobile: 2 cols per Ben */
@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
  .product-card__body { padding: var(--s-3); }
  .product-card h3 { font-size: var(--step-0); }
}
.product-card {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.product-card__media {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}
.product-card__body {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-card h3 {
  font-size: var(--step-1);
  margin: 0;
  color: var(--navy);
}
.product-card__price {
  font-size: var(--step-1);
  font-weight: 700;
  color: var(--orange-700);
  margin-top: auto;
}
.product-card__tag {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10px;
  color: var(--green-900);
  font-family: var(--font-mono);
  font-weight: 700;
}
.product-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--ink-soft);
}
.product-card__rating .star {
  color: var(--orange);
  font-weight: 700;
}

.shop-cross {
  background: var(--green-050);              /* Q-v2: green brand emphasis */
  border: 1.5px solid var(--green-050);
  border-left: 5px solid var(--green);
  border-radius: var(--r-md);
  padding: var(--s-5) var(--s-6);
  margin: var(--s-6) 0;
}
.shop-cross h3 { margin: 0 0 var(--s-3); color: var(--navy); }
.shop-cross p { margin: 0 0 var(--s-3); color: var(--ink-soft); }

.shop-guarantees {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin: var(--s-5) 0;
}
.shop-guar {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  text-align: center;
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.shop-guar strong {
  display: block;
  color: var(--navy);
  font-size: var(--step-0);
  margin-bottom: 4px;
}
@media (max-width: 700px) { .shop-guarantees { grid-template-columns: 1fr; } }


/* ==========================================================================
   SHOP BASE — missing-image placeholder (Ben-approved visible gap)
   Source: wireframes/q-v5/css/main.css (lines 2823-2873)
   ========================================================================== */

/* ========== 23. MISSING-IMAGE placeholder ========== */
.missing {
  position: absolute; inset: 0;
  background: var(--missing-soft);
  border: 2px dashed var(--missing);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--s-4);
  text-align: center;
  color: var(--missing-ink);
  overflow: hidden;
}
.missing__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--missing);
  color: var(--paper);
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: var(--s-3);
}
.missing__title {
  font-weight: 700;
  font-size: var(--step-0);
  margin: 0 0 var(--s-2);
  color: var(--missing-ink);
}
.missing__spec {
  font-size: var(--step--1);
  color: var(--missing-ink);
  margin: 0 0 var(--s-2);
  opacity: 0.85;
}
.missing__suggest {
  font-size: 11px;
  color: var(--missing-ink);
  border-top: 1px dotted var(--missing);
  padding-top: var(--s-2);
  margin-top: var(--s-2);
  opacity: 0.85;
}
.ratio-16x9 { aspect-ratio: 16 / 9; position: relative; }
.ratio-3x4  { aspect-ratio: 3 / 4; position: relative; }
.ratio-4x5  { aspect-ratio: 4 / 5; position: relative; }
.ratio-1x1  { aspect-ratio: 1 / 1; position: relative; }


/* ==========================================================================
   SHOP BASE — section scaffolding (.section-head)
   Source: wireframes/q-v5/css/main.css (lines 2874-2902)
   ========================================================================== */

/* ========== 24. Section scaffolding ========== */
.section { padding: var(--s-8) 0; }
.section--tight { padding: var(--s-6) 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 0;
  color: var(--navy);
  position: relative;
  padding-bottom: 10px;
}
.section-head h2::after {
  content: "";
  position: absolute;
  left: 0; right: 35%;
  bottom: 0;
  height: 6px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 6' preserveAspectRatio='none'><path d='M1 3 Q 15 0, 30 3 T 60 3 T 90 3 T 119 3' stroke='%23EB7923' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.section-head .btn { flex: none; }


/* ==========================================================================
   SHOP BASE — related content
   Source: wireframes/q-v5/css/main.css (lines 3035-3050)
   ========================================================================== */

/* ========== 27. Related content ========== */
.related {
  background: var(--surface);
  padding: var(--s-7) 0;
  border-top: 1px solid var(--line);
}
.related h2 {
  margin-bottom: var(--s-5);
  color: var(--navy);
}
.related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--s-4);
}


/* ==========================================================================
   R4 SHOP LAYER — browse surfaces (R1-R4 carried forward)
   Source: theme/wireframes/q-shop-r4/style.css (lines 27-48, 90-191, 287-323, 330-430, 439-451, 463-541, 563-571, 675-678, 690-743, 784-975)
   ========================================================================== */

/* ===== R1 PRESERVED — Mobile fixes for shop-toolbar ===== */
@media (max-width: 600px) {
  .shop-toolbar { grid-template-columns: 1fr; gap: var(--s-3); }
  .shop-filters { justify-content: flex-start; }
  .shop-filter { flex: 1 1 calc(50% - var(--s-2)); justify-content: center; }
}

/* ===== R1 PRESERVED — Shop chips (kept for legacy reference; R2 uses left sidebar on landing) ===== */
.shop-chips { display: flex; gap: var(--s-2); flex-wrap: wrap; margin: var(--s-4) 0 var(--s-6); }
.shop-chips a { display: inline-block; padding: 6px var(--s-4); border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper); color: var(--green-900); font-size: var(--step--1); font-weight: 600; text-decoration: none; }
.shop-chips a:hover { background: var(--green-050); border-color: var(--green); }
.shop-chips a.is-active { background: var(--green); color: var(--paper); border-color: var(--green); }

/* ===== Free-ship progress + badge (R1) ===== */
.free-ship-progress { background: var(--green-050); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); margin: 0 0 var(--s-5); }
.free-ship-progress__head { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--step--1); margin-bottom: var(--s-2); }
.free-ship-progress__head strong { color: var(--green-900); }
.free-ship-progress__bar { height: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.free-ship-progress__fill { height: 100%; background: linear-gradient(90deg, var(--green) 0%, var(--green-900) 100%); border-radius: var(--r-pill); }
.free-ship-progress__msg { margin-top: var(--s-2); font-size: var(--step--1); color: var(--ink-soft); }
.free-ship-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px var(--s-3); background: var(--green-050); color: var(--green-900); border: 1px solid var(--green); border-radius: var(--r-pill); font-size: var(--step--1); font-weight: 600; }

/* ===== Product single — R2 sticky right rail (desktop) ===== */
.product-single-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s-7); margin: var(--s-5) 0 var(--s-7); align-items: start; }
@media (max-width: 900px) { .product-single-grid { grid-template-columns: 1fr; gap: var(--s-5); } }
.product-gallery__main { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); aspect-ratio: 4/3; position: relative; overflow: hidden; cursor: zoom-in; }
.product-gallery__main .missing { width: 100%; height: 100%; min-height: auto; border-radius: var(--r-md); }
.product-gallery__zoom-hint { position: absolute; right: var(--s-3); bottom: var(--s-3); background: rgba(0,0,0,0.6); color: #fff; padding: 4px 10px; border-radius: var(--r-pill); font-size: var(--step--2); pointer-events: none; }
.product-gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--s-3); margin-top: var(--s-3); }
.product-gallery__thumb { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); aspect-ratio: 1/1; cursor: pointer; position: relative; overflow: hidden; }
.product-gallery__thumb.is-active { border-color: var(--green); border-width: 2px; }
.product-gallery__thumb .missing { width: 100%; height: 100%; min-height: auto; border-radius: var(--r-sm); }
.product-gallery__thumb--more { display: flex; align-items: center; justify-content: center; background: var(--green-050); color: var(--green-900); font-weight: 700; font-size: var(--step--1); }
.product-gallery__thumb--more:hover { background: var(--green); color: var(--paper); }

/* R2 — sticky right rail */
.product-details {
  display: flex; flex-direction: column; gap: var(--s-4);
  position: sticky; top: var(--s-5); align-self: start;
}
@media (max-width: 900px) { .product-details { position: static; } }
.product-details h1 { margin: 0; }

/* R2 — clickable category breadcrumb above product title */
.product-details__cat-link { display: inline-block; color: var(--green-900); font-size: var(--step--1); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; }
.product-details__cat-link:hover { text-decoration: underline; }

.product-details__rating { font-size: var(--step--1); color: var(--ink-soft); }
.product-details__price { font-size: var(--step-3); font-weight: 700; color: var(--green-900); }
.product-details__price del { color: var(--muted); font-size: var(--step-1); margin-right: var(--s-3); font-weight: 500; }
.product-details__price small { display: block; font-size: var(--step--1); font-weight: 500; color: var(--ink-soft); }
.product-details__short { color: var(--ink-soft); }
.product-details__cart { display: flex; gap: var(--s-3); align-items: stretch; margin-top: var(--s-2); flex-wrap: wrap; }
.qty-input { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); overflow: hidden; }
.qty-input button { background: var(--surface); border: 0; width: 40px; height: 100%; font-size: var(--step-1); color: var(--green-900); cursor: pointer; }
.qty-input input { width: 56px; border: 0; text-align: center; font: inherit; height: 40px; appearance: textfield; }
.qty-input input::-webkit-outer-spin-button, .qty-input input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.qty-input button:hover { background: var(--green-050); }
.qty-input button:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }

/* R2 — wishlist + share-to-friend small actions */
.product-actions-row { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; font-size: var(--step--1); }
.product-actions-row a { color: var(--green-900); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.product-actions-row a:hover { text-decoration: underline; }

/* R2 — secure connection visual near Add-to-Cart */
.product-secure-line { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; background: #fff8e1; color: #7a5c00; border: 1px solid #f0d27a; border-radius: var(--r-pill); font-size: var(--step--2); font-weight: 600; }
.product-secure-line svg { stroke: currentColor; }

/* R2 — tiered / buy-more-save pricing table */
.tiered-pricing { margin-top: var(--s-4); border: 1px solid var(--line-soft); border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.tiered-pricing__head { background: var(--green-050); color: var(--green-900); padding: var(--s-3) var(--s-4); font-weight: 700; font-size: var(--step--1); }
.tiered-pricing table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.tiered-pricing th, .tiered-pricing td { padding: var(--s-3); text-align: left; border-bottom: 1px solid var(--line-soft); }
.tiered-pricing th { color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-size: var(--step--2); font-weight: 700; }
.tiered-pricing tr:last-child td { border-bottom: 0; }

.product-meta { font-size: var(--step--1); color: var(--ink-soft); border-top: 1px solid var(--line-soft); padding-top: var(--s-3); }
.product-meta dt { display: inline; font-weight: 700; color: var(--ink); margin-right: 6px; }
.product-meta dd { display: inline; margin: 0 var(--s-3) 0 0; }
.product-meta div { display: inline; }
.product-meta div + div::before { content: " · "; margin: 0 var(--s-2); color: var(--line); }

/* R2 — product codes (GTIN/UPC/EAN/ISBN/ASIN) — only render rows with values */
.product-codes { font-size: var(--step--2); color: var(--muted); margin-top: var(--s-2); }
.product-codes dt { display: inline; font-weight: 700; }
.product-codes dd { display: inline; margin: 0 var(--s-3) 0 0; }
.product-codes div { display: inline; }
.product-codes div + div::before { content: " · "; margin: 0 var(--s-2); color: var(--line); }

.product-single-trust { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-3); }
.product-single-trust .free-ship-badge { font-size: var(--step--2); }

/* ===== Trustpilot mini beside gallery (product page R2) ===== */
.trustpilot-mini-side {
  margin-top: var(--s-4);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  padding: var(--s-4);
  text-align: center;
}
.trustpilot-mini-side .trustpilot-slot { margin-top: var(--s-2); }

/* ===== Product tabs (stacked, no JS) — R1 preserved ===== */
.product-tabs { margin: var(--s-7) 0; display: grid; gap: var(--s-5); }
.product-tab-panel { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: var(--s-5); }
.product-tab-panel h2 { font-size: var(--step-2); margin-bottom: var(--s-3); color: var(--navy); }
.product-tab-panel table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
.product-tab-panel th, .product-tab-panel td { padding: 6px var(--s-3); border-bottom: 1px solid var(--line-soft); text-align: left; }
.product-tab-panel th { color: var(--muted); width: 30%; font-weight: 600; }

/* R2 — Trustpilot per-SKU long-form widget annotation */
.trustpilot-skug { margin-top: var(--s-3); padding: var(--s-4); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-sm); font-size: var(--step--1); color: var(--ink-soft); }

/* ===== Lightbox (CSS-only, :target activated) ===== */
.lb-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; z-index: 9000; padding: var(--s-5); }
.lb-overlay:target { display: flex; }
.lb-stage { max-width: min(900px, 95vw); max-height: 85vh; background: var(--paper); border-radius: var(--r-md); padding: var(--s-5); position: relative; }
.lb-stage .missing { width: 100%; aspect-ratio: 4/3; min-height: auto; }
.lb-close { position: absolute; top: 8px; right: 12px; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 50%; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 22px; line-height: 1; }
.lb-nav { display: flex; justify-content: space-between; margin-top: var(--s-3); }
.lb-nav a { color: var(--green-900); text-decoration: none; font-weight: 700; }

/* ===== Related categories ===== */
.related-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin: var(--s-5) 0; }
@media (max-width: 720px) { .related-cats { grid-template-columns: repeat(2, 1fr); } }
.related-cat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-4); text-decoration: none; color: var(--green-900); text-align: center; font-weight: 600; transition: transform var(--dur-quick) var(--ease-out), border-color var(--dur-quick); }
.related-cat:hover { transform: translateY(-2px); border-color: var(--green); text-decoration: none; }
.related-cat__count { display: block; font-size: var(--step--2); color: var(--muted); font-weight: 500; margin-top: 4px; }

/* ===== Cart cross-sell + empty-state note ===== */
.cart-empty-note { background: var(--surface); border: 1px dashed var(--line); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); font-size: var(--step--1); color: var(--ink-soft); margin: 0 0 var(--s-5); }

/* ===== Pagination ===== */
.shop-pagination { display: flex; justify-content: center; align-items: center; gap: var(--s-2); margin: var(--s-6) 0; font-size: var(--step--1); flex-wrap: wrap; }
.shop-pagination a, .shop-pagination span { padding: 6px var(--s-3); border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--green-900); text-decoration: none; background: var(--paper); }
.shop-pagination .is-current { background: var(--green); color: var(--paper); border-color: var(--green); }
.shop-pagination a:hover { background: var(--green-050); }

/* R2 — Load more / Load all buttons next to pagination */
.shop-pagination__loadmore { padding: 6px var(--s-4); background: var(--green-900); color: var(--paper); border-color: var(--green-900); font-weight: 700; }
.shop-pagination__loadmore:hover { background: var(--green); border-color: var(--green); color: var(--paper); }
.shop-pagination__loadall { padding: 6px var(--s-4); background: var(--paper); color: var(--green-900); border-color: var(--green); font-weight: 600; }

/* ===== Login + register split ===== */
.account-anon-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
@media (max-width: 720px) { .account-anon-grid { grid-template-columns: 1fr; } }

/* ===== Closing CTA ===== */
.shop-closing { background: var(--green-050); border-top: 1px solid var(--line-soft); padding: var(--s-7) 0 var(--s-6); margin-top: var(--s-7); }
.shop-closing__inner { text-align: center; max-width: 720px; margin: 0 auto; }
.shop-closing h2 { color: var(--navy); margin-bottom: var(--s-3); }
.shop-closing p { color: var(--ink-soft); margin-bottom: var(--s-5); }

/* ===== R2 — Trustpilot mini on left rail (under Free shipping over $120) ===== */
.left-rail-trustpilot { margin-top: var(--s-4); padding: var(--s-3); background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--r-sm); font-size: var(--step--1); }
.left-rail-trustpilot__head { display: flex; align-items: center; gap: 6px; color: var(--green-900); font-weight: 700; margin-bottom: 4px; }
.left-rail-trustpilot__rating { font-size: var(--step--2); color: var(--ink-soft); }
.left-rail-trustpilot__star { color: #00b67a; font-size: 16px; letter-spacing: -1px; }

/* ===== R2 — Mobile sticky bottom bar (product / shop / category) ===== */
.mobile-sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: none;
  z-index: 800;
  padding: var(--s-3);
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
  gap: var(--s-3);
}
.mobile-sticky-bar .btn { flex: 1 1 0; justify-content: center; }
@media (max-width: 720px) {
  .mobile-sticky-bar { display: flex; }
  body.has-sticky-bar { padding-bottom: 80px; }
}

/* --- Header lower row: nav + WooCommerce account/mini-cart inline ----------
   WooCommerce hooks `customer-account` and `mini-cart` in as siblings AFTER the
   navigation block, inside `.site-header__lower`. That group is a flow layout,
   so they stacked under the menu (Sean, 17 Nov). Make the row a flex line: nav
   takes the space, the two icons sit at the right end. The band background stays
   full width; the inner width matches `.primary-nav` (1600px max).
   Phone/tablet (<=768px): the main site's compact bar (section 19.3) owns the
   row layout. It is one line, logo left; here the account + basket icons sit
   beside the hamburger, which is moved last (order) so the menu button stays at
   the far right like the main site. */
.site-header__lower {
	display: flex;
	align-items: center;
	gap: var(--s-3);
}
@media (min-width: 769px) {
	.site-header__lower {
		padding: 0 max(var(--s-3), calc((100% - 1600px) / 2 + var(--s-3)));
	}
}
.site-header__lower > .primary-nav {
	flex: 1 1 auto;
	min-width: 0;
	max-width: none;
	margin: 0;
	padding: 0;
}
.site-header__lower > .wp-block-woocommerce-customer-account,
.site-header__lower > .wp-block-woocommerce-mini-cart {
	flex: 0 0 auto;
	margin: 0;
}
/* Condensed desktop bar (main site 19.7): the nav fills the middle column and the
   main site's one-row bar has no room for the "Cart" pill AND two icons. Keep one
   basket control: the pill goes, the mini-cart icon stays; the account icon is back
   as soon as the page is scrolled to the top. */
@media (min-width: 1200px) {
	html.fz-header-condensed .site-header__lower > .wp-block-woocommerce-customer-account,
	html.fz-header-condensed .site-header .header-cart {
		display: none;
	}
}
/* The phone number is a link inside a white-on-green pill, as on the main site. */
.site-header .header-phone a {
	color: inherit;
	text-decoration: none;
}
.site-header .header-phone a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}
@media (max-width: 768px) {
	.site-header__lower {
		gap: 4px;
	}
	/* Logo + 4 controls (search, account, basket, menu) must fit a 375px bar. */
	.site-header .brand-logo img {
		height: 34px;
	}
	.site-header__lower > .primary-nav {
		flex: 0 0 auto;
		order: 3;
	}
	.site-header__lower > .wp-block-woocommerce-customer-account { order: 1; }
	.site-header__lower > .wp-block-woocommerce-mini-cart { order: 2; }
	.site-header__lower .wc-block-mini-cart__button,
	.site-header__lower .wc-block-customer-account__account-link {
		min-width: 44px;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		color: var(--paper);
	}
	.site-header__lower .wc-block-customer-account__account-icon,
	.site-header__lower .wc-block-mini-cart__icon {
		color: var(--paper);
		fill: currentColor;
	}
}

/* --- Condensed header: keep the titles clear of the cart (Ben, 20 Nov) -------
   The shop's condensed bar carries the mini-cart beside the menu, so the bold
   titles (PR #528) overflowed the nav column at 1200-1365px and ran over the
   cart icon (64px at 1200, 50px at 1280). Win back the row padding and some
   column gap, and tighten title size and spacing in that band only. Bold stays.
   Measured on live: cart clear by 14px at 1200 and 21px at 1280. */
@media (min-width: 1200px) and (max-width: 1365px) {
	html.fz-header-condensed .site-header.site-header { column-gap: 10px; }
	html.fz-header-condensed .site-header .site-header__lower {
		padding-left: 0;
		padding-right: 0;
	}
	html.fz-header-condensed .site-header .primary-nav .wp-block-navigation__container { gap: 10px; }
	html.fz-header-condensed .site-header .primary-nav .wp-block-navigation__container > li > a,
	html.fz-header-condensed .site-header .primary-nav .wp-block-navigation__container > li > .wp-block-navigation-item__content {
		font-size: 13px !important;
	}
}

@media (min-width: 1200px) and (max-width: 1279px) {
	html.fz-header-condensed .site-header .primary-nav .wp-block-navigation__container { gap: 8px; }
	html.fz-header-condensed .site-header .primary-nav .wp-block-navigation__container > li > a,
	html.fz-header-condensed .site-header .primary-nav .wp-block-navigation__container > li > .wp-block-navigation-item__content {
		font-size: 12px !important;
	}
}
/* ===== R2 — Mobile header collapse ===== */
@media (max-width: 720px) {
  .site-header__upper {
    padding: var(--s-2) var(--s-3);
    gap: var(--s-2);
  }
  .brand--wordmark { gap: 6px; }
  .brand-logo { max-height: 36px; width: auto; }
  .brand-word strong { font-size: var(--step-0); }
  .brand-word em { display: none; }
  .header-search { display: none; }
  .header-phone span { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; padding: 8px 12px; }
}
@media (max-width: 720px) and (orientation: landscape) {
  .site-header { /* enforce ≤30% landscape height target */
    max-height: 30vh;
  }
  .site-header__upper { padding: 4px var(--s-3); }
  .brand-logo { max-height: 28px; }
}

/* ===== R2 — Category-rail collapsible on mobile ===== */
@media (max-width: 720px) {
  .category-rail-mobile-toggle {
    display: block; width: 100%;
    padding: var(--s-3) var(--s-4);
    background: var(--green-050);
    border: 1px solid var(--green);
    border-radius: var(--r-sm);
    color: var(--green-900);
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    margin-bottom: var(--s-3);
  }
  .category-rail-mobile-toggle::after { content: ' ▾'; float: right; }
  .category-rail-mobile-toggle.is-open::after { content: ' ▴'; }
  details.category-rail-mobile { background: transparent; border: 0; padding: 0; margin-bottom: var(--s-4); }
  details.category-rail-mobile > summary { list-style: none; cursor: pointer; }
  details.category-rail-mobile > summary::-webkit-details-marker { display: none; }
  .shop-layout > aside .category-list { padding-left: 0; }
}
.category-rail-mobile-summary {
  display: none;
}
@media (max-width: 720px) {
  .category-rail-mobile-summary {
    display: block;
    padding: var(--s-3) var(--s-4);
    background: var(--green-050);
    border: 1px solid var(--green);
    border-radius: var(--r-sm);
    color: var(--green-900);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
  }
  .category-rail-mobile-summary::-webkit-details-marker { display: none; }
  .category-rail-mobile-summary::after { content: '▾'; float: right; transition: transform 0.2s; }
  details[open] .category-rail-mobile-summary::after { transform: rotate(180deg); }
}

/* ===== R2 — Shop layout (left sidebar on landing too) ===== */
.shop-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s-6); margin: var(--s-4) 0 var(--s-7); }
.shop-layout > * { min-width: 0; }
@media (max-width: 900px) { .shop-layout { grid-template-columns: 1fr; } }
.category-list { list-style: none; padding: 0; margin: 0; font-size: var(--step--1); }
.category-list li { margin: 0; }
.category-list label { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; }
.category-list__count { color: var(--muted); margin-left: auto; font-size: var(--step--2); }

/* ===== R2 — Trash icon in cart Remove ===== */
.cart-trash-icon { stroke: currentColor; }

/* ===== R2 — Hero image flow note ===== */
.hero-image-note { font-size: var(--step--2); color: var(--muted); margin-top: var(--s-2); font-style: italic; }

/* ===== R2 — Subcategory expansion future-state note (category page) ===== */
.subcat-future-note { margin-top: var(--s-3); padding: var(--s-3); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-sm); font-size: var(--step--2); color: var(--muted); }

/* ===== R2 — TODO note styling (used for gift-registry deferral, Q1-Q3 markers) ===== */
.r2-todo {
  display: block;
  font-size: var(--step--2);
  color: var(--muted);
  background: #fffaf0;
  border: 1px dashed var(--orange);
  padding: 6px var(--s-3);
  border-radius: var(--r-sm);
  margin: var(--s-2) 0;
}
.r2-todo strong { color: var(--orange-700); }

/* R3 — Header cart icon (Ben Shop landing 12:50:52: "typically in the top right-hand corner")
   Visible at desktop in the top-right of the header. Hidden on mobile (mobile uses sticky bottom bar). */
.header-cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px var(--s-3);
  color: var(--green-900);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--step--1);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  position: relative;
  white-space: nowrap;
}
.header-cart:hover { background: var(--green-050); border-color: var(--green); }
.header-cart svg { stroke: currentColor; flex: 0 0 auto; }
.header-cart__count {
  background: var(--green);
  color: var(--paper);
  border-radius: var(--r-pill);
  font-size: var(--step--2);
  font-weight: 700;
  padding: 1px 7px;
  min-width: 18px;
  text-align: center;
}
@media (max-width: 720px) { .header-cart { display: none; } }

/* R3 — QS-B5 fix: explicit sticky right rail on product page
   R2 used `top: var(--s-5)` and Ben observed the rail did not visibly pin.
   Root cause: var(--s-5) plus shorter rail content vs. taller gallery meant
   the rail was never tall enough for the sticky transition to be apparent
   AND any ancestor with `overflow: clip|hidden` would break sticky.
   Fix: pin with an explicit pixel top, disable any inherited overflow on
   ancestor containers, raise stacking. */
.product-details {
  position: sticky;
  top: 16px;
  align-self: start;
  z-index: 5;
}
.product-single-grid,
.product-single-grid > .product-gallery,
.product-single-grid > .product-details,
main#main,
main#main > .container {
  overflow: visible;
}
/* On mobile, sticky behaviour disabled (single-column layout) */
@media (max-width: 900px) {
  .product-details { position: static; top: auto; z-index: auto; }
}

/* R3 — QS-B6 fix: visible whitespace between GTIN/UPC label and number.
   Ben: GTIN9341234500047 → must read GTIN 9341234500047.
   The dt + dd are display: inline; we add an explicit left-margin on dd. */
.product-codes dd { margin-left: 0.4em; }
.product-meta dd { margin-left: 0.25em; }

/* R3 — QS-B7 fix: cart hero image visible in basket at desktop.
   R2 used .missing div placeholder; R3 renders an explicit <img> with a
   small inline SVG data URI so naturalWidth > 0 and the column visibly
   shows a thumbnail-shaped hero. */
.cart-table .cart-thumb,
.cart-table .cart-row__thumb { width: 96px; padding: var(--s-4); }
.cart-table .cart-thumb img,
.cart-table .cart-row__thumb img {
  width: 80px;
  height: 80px;
  display: block;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-soft);
  background: var(--surface);
  object-fit: contain;
}

/* R5 — Subcategory chevron: a WORKING disclosure.
   Ben's Round 3 sign-off condition, shop category transcript 13:45:10:
   "As long as, on clicking the chevron, it unfurls the subcategories. And
   then we can… furl them back up again. That is more than enough for me."

   R3/R4 shipped this as three broken halves: the rule below targeted
   `li[data-has-subcats] > label::after`, but the built rail renders an <a>,
   not a <label> (the <label> came from the wireframe's static demo, where
   the link sat INSIDE the label — invalid, and it would have made the whole
   row a toggle). So no glyph ever painted. The open state was `[open]` /
   `.is-open` set server-side only, and no toggle existed in any layer.

   Now: <details>/<summary>, the same disclosure primitive the main theme
   uses for quiz questions, programme FAQs and curriculum grades. No
   JavaScript, focusable, Enter AND Space both operate it, and the
   expanded/collapsed state is exposed natively to assistive technology.

   The <summary> is the chevron ONLY — a 44px sibling control pinned to the
   right of the row. The category link underneath it still navigates. The
   summary is anchored to `top: 0` rather than stretched, so it stays on the
   row's first line when a long category name wraps, and does not grow to
   cover the unfurled subcategory list. */
.category-list li[data-has-subcats] { position: relative; }
.category-list li[data-has-subcats] > a { padding-right: 46px; }

.category-list .subcat-disclosure > summary {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  padding: var(--s-3) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  color: var(--green-900);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  /* stylelint-disable-next-line property-no-vendor-prefix --
     iOS Safari needed -webkit-user-select until Safari 17. Kept deliberately
     alongside the standard property; removing it regresses older iOS. */
  -webkit-user-select: none;
  user-select: none;
}
.category-list .subcat-disclosure > summary::-webkit-details-marker { display: none; }
.category-list .subcat-disclosure > summary::after {
  content: "▾";
  transition: transform 0.2s ease;
}
.category-list .subcat-disclosure[open] > summary::after { transform: rotate(180deg); }
.category-list .subcat-disclosure > summary:hover { background: var(--green-050); }
.category-list .subcat-disclosure > summary:focus-visible {
  outline: 3px solid var(--green-900);
  outline-offset: -3px;
}
@media (prefers-reduced-motion: reduce) {
  .category-list .subcat-disclosure > summary::after { transition: none; }
}

.category-list .subcat-list {
  list-style: none;
  margin: 0 0 var(--s-2) var(--s-4);
  padding-left: var(--s-3);
  border-left: 2px solid var(--green-050);
}
.category-list .subcat-list a {
  display: block;
  padding: 4px 0;
  font-size: var(--step--2);
  color: var(--ink-soft);
  text-decoration: none;
}
.category-list .subcat-list a:hover { color: var(--green-900); text-decoration: underline; }

/* ====================================================================
   R4 DELTAS — applied on top of R3 baseline
   Per docs/wireframes/q-shop/ben-feedback-round3/round-4-scope.md
   ==================================================================== */
/* R4 — STICKY RAIL CLEARS HEADER (closes R3 verification gap)
   Root cause Ben's R3 complaint: site-header is `position: sticky; top: 0;
   z-index: 40;` (wireframes/q-v5/css/main.css L375-376). R3 set rail to
   `top: 16px; z-index: 5;` so the rail pinned to viewport top BEHIND the
   header — the header chrome occluded the rail's category breadcrumb
   and product title. Fix: rail's `top` clears the sticky header stack
   (measured height at 1280×720 viewport = 137.6px, verified via
   `getBoundingClientRect`) with a small breathing margin so both the
   category breadcrumb AND the product title sit below the header
   bottom edge. Rail stays at z-index 5 so it sits BEHIND the header
   on intentional scroll-through (correct behaviour — header is the
   higher-priority chrome). */
.product-single-grid > .product-details {
  top: 144px;
}

/* R4 — MOBILE DOM REORDER on product-single (closes Ben's "this on mobile
   is not gonna work" complaint). At <=900px (existing single-column
   breakpoint) we flatten .product-gallery via `display: contents` and use
   `order:` on each direct child of `.product-single-grid` so the rail
   surfaces right after the trustpilot strip — BEFORE the description.
   Target order:
     images -> trustpilot -> RAIL (category/title/price/qty/Add) ->
     description -> tabs -> related -> cross-sell                          */
@media (max-width: 900px) {
  .product-single-grid {
    display: flex;
    flex-direction: column;
    gap: var(--s-5);
  }
  /* Flatten .product-gallery's children into the flex container so they
     can sit beside .product-details in the same flex order space */
  .product-single-grid > .product-gallery { display: contents; }

  /* Reorder — rail moves to position 4 (immediately after trustpilot) */
  .product-single-grid > .product-gallery > .product-gallery__main { order: 1; }
  .product-single-grid > .product-gallery > .product-gallery__thumbs { order: 2; }
  .product-single-grid > .product-gallery > .trustpilot-mini-side { order: 3; }
  .product-single-grid > .product-details { order: 4; }
  /* "About this kit" description block — the only direct section without .shop-cross */
  .product-single-grid > .product-gallery > section:not(.shop-cross) { order: 5; }
  .product-single-grid > .product-gallery > .product-tabs { order: 6; }
  .product-single-grid > .product-gallery > .section-head { order: 7; }
  .product-single-grid > .product-gallery > .product-grid { order: 8; }
  .product-single-grid > .product-gallery > .shop-cross { order: 9; }

  /* On mobile the rail is not sticky (single-col layout) */
  .product-details {
    position: static;
    top: auto;
    z-index: auto;
  }
}

/* ==========================================================================
   R4 FIX A · SELECTABLE-ROW — whole-container click target
   --------------------------------------------------------------------------
   Sean 2026-07-31, reviewing R4:
     "The shipping method: you're forced to click the radio button, which is a
      very small piece of landscape. You should be able to click anywhere in
      the container. For Australia Post Standard, I should be able to click
      anywhere, including the $12, to be able to select that."
     "anywhere where a guest can click and it is not a direct button, that
      whole container is clickable."

   MEASURED BEFORE (Playwright, 1440): each `.payment-list li` was 570x70px but
   only 27% of that area actually selected the radio — the `<label for>` wrapped
   the title text alone (423x24). The `$12.00` region returned false: dead.

   THE PATTERN — native label-wrapping, zero JavaScript.
   The `<label>` IS the row and the `<input>` lives inside it, so the entire
   box is the click target by HTML's own label-activation behaviour. No `for`
   attribute: implicit association only, which avoids the double-association
   ambiguity and gives the control a rich accessible name (title +
   description + price read as one).

   Nested links (the "Terms of Trade" anchor) do NOT double-fire: per the HTML
   spec, label activation is skipped for events targeted at interactive-content
   descendants. Verified in-browser, not assumed.
   ========================================================================== */
.selectable-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-3) var(--s-4);
  min-height: 44px;              /* WCAG 2.5.8 target size */
  margin: 0;
  cursor: pointer;
  font-weight: 400;
  border-radius: var(--r-sm);
}
.selectable-row__body { display: block; }
.selectable-row__title {
  display: block;
  font-weight: 600;
  color: var(--navy);
  font-size: var(--step--1);
}
/* The radio/checkbox stays visually present — Sean asked for a bigger target,
   not a hidden control. */
.selectable-row input[type="radio"],
.selectable-row input[type="checkbox"] {
  accent-color: var(--green-900);
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  flex: none;
}
/* Focus ring on the CONTAINER, not just the input: keyboard users see the
   whole row highlight, matching what the mouse can hit. */
.selectable-row:has(input:focus-visible) {
  outline: 3px solid var(--green-900);
  outline-offset: 2px;
}
/* Inline variant — single-line checkbox rows (opt-ins, "Remember me"). */
.selectable-row--inline {
  grid-template-columns: auto 1fr;
  gap: var(--s-2);
  padding: var(--s-2) 0;
}
.selectable-row__text {
  display: block;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-2);
}
.selectable-row__text a { position: relative; }

/* Payment/shipping lists: padding moves from the <li> onto the <label> so the
   label fills the bordered box edge-to-edge. Without this the padding ring
   stays dead — the exact defect Sean hit. */
.payment-list li { display: block; padding: 0; }
/* Specificity note for the staging build: the host form declares
   `.checkout-form label { display: block }` at (0,1,1), which outranks the
   bare `.selectable-row { display: grid }` at (0,1,0) and silently flattened
   the row into a stack (measured 119px tall against the intended 70px).
   Re-declare the grid at (0,2,0) rather than reaching for !important. */
.payment-list .selectable-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: var(--s-3) var(--s-4);
  font-size: var(--step--1);
}
.payment-list .selectable-row small {
  display: block;
  font-size: var(--step--2);
  color: var(--ink-soft);
  font-weight: 400;
}
.checkout-form .selectable-row__title { margin-bottom: 0; }

/* Sort chips were already label-wrapped (~97% live) but only 38px tall.
   Raise to the WCAG 2.5.8 floor and give them the same container focus ring. */
.shop-filter {
  min-height: 44px;
  cursor: pointer;
}
.shop-filter:has(input:focus-visible) {
  outline: 3px solid var(--green-900);
  outline-offset: 2px;
}
.shop-filter input { width: 16px; height: 16px; cursor: pointer; }

/* ==========================================================================
   R4 FIX B · TRUST BAR — ported from the main site
   --------------------------------------------------------------------------
   Sean 2026-07-31: "The blue bar with the 22 years, the four million students,
   is a goddamn fucking mess. It also doesn't match the layout and the format
   of the main site. Get the one from the main site."

   ROOT CAUSE (PM9's diagnosis, verified by measurement): R4 nested
   `.trust-bar__label` INSIDE `.trust-bar__stat` as an inline <span>, so the
   number and its label ran together — measured textContent was literally
   "22 yearsHands-on science", label computed `display: inline`. The main site
   has them as SIBLINGS inside a wrapper <div>. Porting CSS alone would not
   have fixed it; the markup had to change, and it has (index.html).

   BEFORE @1440: stat[0] top 3511.38 / height 36 vs stats[1-3] top 3475.38 /
   height 108 — a 36px vertical break across the four cards.

   CSS below is the PR #207-corrected version from theme/style.css §13.3
   (read-only source; not edited by this chip). It defines an explicit
   stat-row + label-row via subgrid so labels share a baseline regardless of
   label length, and zeroes the flow-layout block-gap that was offsetting
   non-first children. The `margin-block-start: 0` line is inert here (these
   wireframes carry no WordPress flow-layout classes) but is ported verbatim
   so the staging build inherits an identical rule.
   ========================================================================== */
.trust-bar__inner {
  grid-template-rows: auto 1fr;
  min-height: 140px;
}
.trust-bar__inner > div {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  row-gap: var(--s-2);
  align-content: start;
  margin-block-start: 0;
}
.trust-bar__stat { align-self: start; margin: 0; }
.trust-bar__label { align-self: end; margin: 0; }
@media (min-width: 768px) {
  .trust-bar__inner { grid-template-columns: repeat(4, 1fr); }
}
/* Mobile 2-col: the ported base rule uses `1fr 1fr`, which resolves to
   minmax(auto, 1fr) — so a long stat like "150 free experiments" claims more
   than its half and the bar renders lopsided (measured 158.3px vs 110.7px at
   375). Pin both tracks to minmax(0, 1fr) for true equal halves. This is the
   one addition beyond a straight port of theme/style.css §13.3; it serves the
   same intent (uniform cards) the main-site fix was written for, and the
   staging build should carry it across. */
@media (max-width: 720px) {
  .trust-bar__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* The main site's stats are short tokens ("4M+", "WWCC", "22 yrs"), so its
     display size never overflows a half-width column. Ben's shop copy uses
     long phrases ("150 free experiments") which, at --step-3 in a ~150px
     track, overran the column and collided with the neighbouring card.
     Copy is immutable, so the type scales instead. */
  .trust-bar__stat {
    font-size: var(--step-1);
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .trust-bar__label { overflow-wrap: break-word; }
}

/* Disclosure rows (<details>/<summary>) are selectable non-button containers
   under Sean's rule too. The whole <summary> is already the native click
   target — measured 100% live on po-flow-stub — but at 29px tall it missed the
   WCAG 2.5.8 44px floor, and it carried no container focus ring. No markup
   change needed here; native <summary> already does the hard part. */
.checkout-form details > summary,
.category-rail-mobile-summary {
  min-height: 44px;
  padding-block: var(--s-2);
  cursor: pointer;
}
.checkout-form details > summary:focus-visible,
.category-rail-mobile-summary:focus-visible {
  outline: 3px solid var(--green-900);
  outline-offset: 2px;
}

/* ==========================================================================
   WOOCOMMERCE BRIDGE — hand-authored, fizzics-shop-2026 only.

   The R4 wireframes were drawn against hand-written markup. These rules bridge
   the real WooCommerce template output onto the same visual system, plus the
   graceful-degradation rules the live catalogue actually needs.

   Measured on shop staging 2026-09-04:
     369 of 408 products have exactly ONE image. 0 products have a gallery.
   So the single-image path is the DEFAULT path, not the edge case.
   ========================================================================== */

/* --- Product media: real image replaces the placeholder, same box ---------- */

.product-card__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--surface);
}
.product-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	background: #fff;
}
.product-card__media .missing {
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 0;
}

/* --- Gallery: degrade gracefully to a single image ------------------------ */

/* 369 of 408 products have one image and no gallery. When there is nothing to
   thumb through, the thumb strip is removed entirely rather than rendered as a
   lonely single tile — a one-item carousel reads as broken. */
.product-gallery__thumbs:empty,
.product-gallery--single .product-gallery__thumbs {
	display: none;
}
.product-gallery--single .product-gallery__zoom-hint {
	/* Still zoomable — the lightbox works with one image. */
	opacity: 0.85;
}
.product-gallery__main {
	display: block;
	position: relative;
	background: #fff;
	border: 1.5px solid var(--line);
	border-radius: var(--r-md);
	overflow: hidden;
	aspect-ratio: 4 / 3;
}
.product-gallery__main img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.product-gallery__main .missing {
	width: 100%;
	height: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
}
.product-gallery__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #fff;
}

/* --- Image-gap placeholder: honest, labelled, unmistakable ----------------
   Ben, 2026-09-04, approving this pattern on experiment steps:
     "you can see how it's got a pink box for some images, but not everything…
      I'm cool with that, this is a better way to show it."
   It must never be mistaken for product photography. No stock imagery is used
   anywhere in this theme. -------------------------------------------------- */

.missing--product {
	display: grid;
	place-content: center;
	gap: 4px;
	text-align: center;
	padding: var(--s-3);
}
.missing--product .missing__sku {
	font-family: var(--font-mono);
	font-size: 10px;
	opacity: 0.8;
	word-break: break-all;
}

/* --- WooCommerce notices -------------------------------------------------- */

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
	list-style: none;
	margin: 0 0 var(--s-4);
	padding: var(--s-3) var(--s-4);
	border-radius: var(--r-sm);
	border: 1px solid var(--green);
	background: var(--green-050);
	color: var(--green-900);
	font-size: var(--step--1);
}
.woocommerce-notices-wrapper .woocommerce-error {
	border-color: var(--orange);
	background: #fff4ec;
	color: var(--orange-700, #9a4a12);
}
.woocommerce-notices-wrapper .woocommerce-message .button,
.woocommerce-notices-wrapper .woocommerce-info .button {
	float: right;
}

/* --- Add-to-cart form ----------------------------------------------------- */

.product-details__cart .qty-input input[type="number"] {
	appearance: textfield;
}
.product-details__cart .qty-input input::-webkit-outer-spin-button,
.product-details__cart .qty-input input::-webkit-inner-spin-button {
	appearance: none;
	margin: 0;
}
.product-details__cart .added_to_cart {
	display: none;
}
.product-details__cart .btn--primary[disabled],
.product-details__cart .btn--primary.disabled {
	opacity: 0.55;
	cursor: not-allowed;
}
.product-details__stock--out {
	color: var(--orange-700, #9a4a12);
	font-weight: 700;
}

/* --- Product description: Ben's copy, rendered verbatim -------------------
   post_content arrives from Rippa with raw <iframe>, fixed-width tables and
   long unbroken URLs. Contain them without touching a character of the copy. */

.product-description {
	margin-top: var(--s-6);
}
.product-description > h2 {
	font-size: var(--step-2);
	color: var(--navy);
}
.product-description img {
	max-width: 100%;
	height: auto;
}
.product-description table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}
.product-description iframe,
.product-description embed,
.product-description object {
	max-width: 100%;
}

/* --- Category rail: real taxonomy, curated order --------------------------- */

.category-list li > a {
	display: flex;
	align-items: center;
	gap: var(--s-2);
	padding: var(--s-3) var(--s-4);
	font-size: var(--step--1);
	text-decoration: none;
	color: var(--ink);
}
.category-list li > a:hover,
.category-list li > a:focus-visible {
	background: var(--green-050);
	color: var(--green-900);
}
.category-list li.is-current > a {
	font-weight: 700;
	color: var(--green-900);
	background: var(--green-050);
}
.category-list__more {
	display: block;
	padding: var(--s-3) var(--s-4);
	font-size: var(--step--2);
	text-align: center;
	color: var(--green-900);
}

/* --- Toolbar: real sort form --------------------------------------------- */

.shop-filter input:focus-visible + span,
.shop-filter:focus-within {
	outline: 3px solid var(--green-900);
	outline-offset: 2px;
}
.shop-toolbar__search button {
	border: 0;
	background: transparent;
	cursor: pointer;
	color: var(--green-900);
	font: inherit;
}

/* Phone: keep the search pill and sort chips inside the green band (Ben,
   19 Nov: "the buttons spill outside the green area"). The single `1fr` track
   is minmax(auto, 1fr), so the search input's intrinsic width (~20ch) set the
   track 21px wider than the band's content box at 390px and pushed the pill and
   the right-hand chips against and past the band's edge. minmax(0, 1fr) plus
   min-width: 0 lets the track and its children shrink to the band. */
@media (max-width: 600px) {
	.shop-toolbar { grid-template-columns: minmax(0, 1fr); }
	.shop-toolbar__search,
	.shop-filters,
	.shop-filter { min-width: 0; }
	.shop-toolbar__search input { min-width: 0; }
}

/* --- Pagination ----------------------------------------------------------- */

.shop-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 var(--s-3);
	border: 1.5px solid var(--line);
	border-radius: var(--r-sm);
	text-decoration: none;
	color: var(--green-900);
	font-weight: 600;
}
.shop-pagination .page-numbers.current {
	background: var(--green-900);
	border-color: var(--green-900);
	color: #fff;
}
.shop-pagination .page-numbers.dots {
	border-color: transparent;
}

/* --- Empty states --------------------------------------------------------- */

.shop-empty {
	padding: var(--s-6);
	border: 1.5px dashed var(--line);
	border-radius: var(--r-md);
	background: var(--surface);
	text-align: center;
	color: var(--ink-soft);
}

/* --- Draft badge (69 of 408 products are drafts on staging) ---------------- */

.product-card__status,
.product-details__status {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px var(--s-2);
	border-radius: var(--r-pill);
	background: var(--orange);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

/* --- Product meta / codes: only populated rows render ---------------------- */

.product-meta div,
.product-codes div {
	display: flex;
	gap: var(--s-2);
}
.product-meta dt,
.product-codes dt {
	flex: 0 0 auto;
}
.product-meta dd,
.product-codes dd {
	margin-left: var(--s-2);
}

/* --- Mobile sticky bar clearance ------------------------------------------ */

@media (max-width: 900px) {
	body.has-sticky-bar .site-footer {
		padding-bottom: 88px;
	}
}

/* --- Grid/flex children may shrink below their content --------------------
   Replaces theme/style.css §17.2, whose selector list names programme and
   experiment articles — post types this shop does not have. */

.product-single-grid > .product-gallery,
.product-single-grid > .product-details,
.shop-layout > *,
.product-card__body {
	min-width: 0;
}

/* --- Visually-hidden text must not widen the page ------------------------
   Measured at 1440 on staging 2026-09-04: `.wp-block-search__label` carried
   `position: absolute; clip-path: inset(50%)` but a full 1425px box, pushing
   document scrollWidth to 1810 against a 1425 clientWidth. Clipped is not the
   same as collapsed — the element still occupied layout width.
   Declared with both class names because WordPress core blocks emit
   `.screen-reader-text` while this theme's own markup uses `.sr-only`. */

.screen-reader-text,
.sr-only,
.wp-block-search__label.screen-reader-text {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* --- Sticky buy-rail offset, derived from the REAL header ------------------
   R4 fixed the rail at `top: 144px`, tuned to a header measured at 137.6px in
   the wireframe. The rendered header is not that height — it depends on how
   many rows the primary navigation wraps to, which depends on the menu the site
   owner assigns. On staging (no menu assigned, WordPress falling back to a page
   list) it renders 334px, and the rail's category link and product title sat
   behind the header again — exactly Ben's R3 complaint,
   "the menu obscures the top parts of those words" (13:47:45).

   So the offset is now measured rather than assumed: assets/src/shop-ui.js sets
   --fz-header-h from the header's own bounding box and keeps it current on
   resize. The literal fallback matches R4's value for the no-JS case. */

.product-single-grid > .product-details {
	top: calc(var(--fz-header-h, 138px) + 6px);
}

/* --- Section-head buttons must shrink to their container ------------------
   Measured at 375 on staging: the "Shop more <category> →" ghost button held
   358px inside a 312px content box, pushing document scrollWidth to 382. */

.section-head .btn {
	max-width: 100%;
	min-width: 0;
	white-space: normal;
	overflow-wrap: anywhere;
}

/* --- Product page: long copy left, buy details right (Ben, 17 Nov) --------
   "The product description is stopping me from getting purchase details on the
   right-hand column." The short description (bullets, links, images) now sits
   in the left column as .product-short, so the sticky rail holds only the
   title, price, stock, quantity, Add to cart, delivery link and meta. The
   purchase button is inside the first viewport at 1440x900.

   Mobile order stays: title, price, purchase, then the descriptions. The
   gallery is flattened with display:contents (R4 reorder in the R4 layer
   above), so .product-short takes the same order slot as the description and
   comes first by DOM order. */

.product-short {
	margin-top: var(--s-5);
	color: var(--ink-soft);
}
.product-short img,
.product-short iframe,
.product-short table {
	max-width: 100%;
	height: auto;
}

@media (max-width: 900px) {
	.product-single-grid > .product-gallery > .product-short {
		order: 5;
		margin-top: 0;
	}
}

/* --- Closing CTA without a hero image --------------------------------------
   The shop's closing-cta-block has no photograph to show. The empty hero column
   left a blank panel on the left (Ben, 17 Nov), so the block is a single
   full-width column. */

.closing-cta.closing-cta--no-hero {
	grid-template-columns: 1fr;
	gap: 0;
}
.closing-cta--no-hero .closing-cta__copy {
	padding: var(--s-6) var(--s-7);
}
.closing-cta--no-hero .closing-cta__copy > * {
	max-width: 62ch;
}

/* --- Footer newsletter band, shop version (FCA-I360) ---------------------
   On the main site the band's "Subscribe now" is a <button> and its title is a
   Tailwind-reset heading. On the shop the band links to the main site's sign-up,
   so it is an <a>: keep it from taking the footer link colour, and match the
   main site's unbolded title. */
.site-footer a.fz-nl__open,
.site-footer a.fz-nl__open:hover,
.site-footer a.fz-nl__open:focus-visible {
	color: var(--green-900);
	text-decoration: none;
}
.fz-nl__title { font-weight: 400; }

/* --- Product page: the whole buy rail fits the viewport (Ben, 20 Nov) -------
   "The right hand column that is fixed has the SKU, categories and tags below
   the fold." The sticky rail had no height cap (the main site got one in
   rail-layout.css on 27 Oct; the shop never did), so on a viewport shorter
   than header + rail the meta block sat under the fold and could not be
   reached while the rail was pinned. Measured on live, 20 Nov: rail 584-606px
   tall; meta bottom 662px at 1280x720 and 666px at 1366x650 once the compact
   header (68px) is showing.

   1. The rail is capped to the space under the sticky header and scrolls on
      its own when taller (wheel scrolling still chains to the page); a rail
      that fits never reaches the cap.
   2. The rail's spacing is tightened (one 12px rhythm, no stacked margins) so
      the meta fits without the cap at common desktop heights. */
@media (min-width: 901px) {
	.product-single-grid > .product-details {
		gap: var(--s-3);
		max-height: calc(100vh - var(--fz-header-h, 138px) - 6px - var(--s-3));
		overflow-y: auto;
		scrollbar-width: thin;
	}
	.product-single-grid > .product-details > * {
		margin-top: 0;
		margin-bottom: 0;
	}
	.product-single-grid > .product-details .product-meta {
		padding-top: var(--s-2);
		line-height: 1.4;
	}
}

/* --- Cookie banner ----------------------------------------------------------
   Markup and behaviour are the main theme's (inc/cookie-consent.php,
   assets/src/cookie-consent.js). Its rules live in the main site's Tailwind
   build, which the shop does not load, so the banner is restyled here in plain
   CSS (same look: white panel, slim green ribbon, 4-up categories). Needed now
   the shop loads the consent script that switches GA4 on (card FCA-I312). */
.cookie-consent {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 999;
	background: var(--paper);
	border-top: 2px solid var(--green);
	box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.18);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent__heading {
	margin: 0 0 var(--s-1);
	font-size: var(--step-1);
	font-weight: 700;
	color: var(--ink);
}
.cookie-consent__text p {
	margin: 0 0 var(--s-3);
	font-size: var(--step--1);
	color: var(--ink-soft);
}
.cookie-consent__categories {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--s-4);
	margin: 0 0 var(--s-3);
	padding: 0;
	border: 0;
}
@media (max-width: 900px) {
	.cookie-consent__categories { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
	.cookie-consent__categories { grid-template-columns: 1fr; }
}
.cookie-consent__category {
	display: flex;
	flex-direction: column;
	gap: var(--s-1);
	cursor: pointer;
}
.cookie-consent__category > input[type="checkbox"] {
	width: 1rem;
	height: 1rem;
	margin-right: var(--s-2);
}
.cookie-consent__category input[type="checkbox"]:disabled { opacity: 0.6; cursor: not-allowed; }
.cookie-consent__label { font-size: var(--step--1); font-weight: 600; color: var(--ink); }
.cookie-consent__desc { font-size: var(--step--2); color: var(--muted); }
.cookie-consent__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.cookie-consent__btn {
	padding: 0.65rem 1.25rem;
	font: inherit;
	font-size: var(--step--1);
	font-weight: 600;
	border: 1px solid transparent;
	border-radius: 0.375rem;
	cursor: pointer;
}
.cookie-consent__btn--accept-all { background: var(--link); color: #fff; }
.cookie-consent__btn--accept-all:hover { background: var(--green-900); }
.cookie-consent__btn--save { background: var(--surface); color: var(--ink); border-color: var(--line); }
.cookie-consent__btn--save:hover { background: var(--line); }
.cookie-consent__btn--reject { background: transparent; color: var(--muted); text-decoration: underline; }
.cookie-consent__btn--reject:hover { color: var(--ink); }

/* ==========================================================================
   Cookie banner — compact on phones (main site 12.7)
   Source: theme/style.css (region cookie-compact)
   ========================================================================== */

/* --- 12.7 · Compact cookie banner on phones (Ben, 21 Nov) -----------------
   The banner covered 71% of a 390x844 phone and 81% of a 360x740 one. On
   phones the first layer is now a heading, one short line with the privacy
   link, and three equal buttons: Accept all, Reject all, Manage. Manage
   unfolds the four categories and Save preferences (cookie-consent.js adds
   .is-managing). Nothing is pre-ticked and consent gating is unchanged.
   Reject all is a full outlined button at every width (it was an underlined
   text link), so refusing is as easy to see and tap as accepting.
   Chained selectors beat the single-class Tailwind rules in main.css and the
   shop's plain rules, whichever loads later. */
.cookie-consent .cookie-consent__short-text,
.cookie-consent .cookie-consent__btn--manage {
	display: none;
}
.cookie-consent .cookie-consent__text a {
	color: var(--link);
	text-decoration: underline;
}
.cookie-consent .cookie-consent__btn--reject {
	background: var(--paper);
	color: var(--ink);
	text-decoration: none;
	box-shadow: inset 0 0 0 2px var(--ink);
}
.cookie-consent .cookie-consent__btn--reject:hover {
	background: var(--ink);
	color: var(--paper);
}
@media (max-width: 640px) {
	.cookie-consent .cookie-consent__inner {
		max-height: 85vh;
		overflow-y: auto;
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
	}
	.cookie-consent .cookie-consent__heading {
		margin: 0 0 2px;
		font-size: 1rem;
		line-height: 1.3;
	}
	.cookie-consent .cookie-consent__text p {
		margin: 0 0 10px;
		font-size: 0.8125rem;
		line-height: 1.4;
	}
	.cookie-consent .cookie-consent__long-text {
		display: none;
	}
	.cookie-consent .cookie-consent__short-text {
		display: inline;
	}
	.cookie-consent:not(.is-managing) .cookie-consent__categories,
	.cookie-consent:not(.is-managing) .cookie-consent__btn--save {
		display: none;
	}
	.cookie-consent .cookie-consent__categories {
		gap: 8px;
		margin-bottom: 10px;
	}
	.cookie-consent .cookie-consent__actions {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}
	.cookie-consent .cookie-consent__btn {
		min-height: 44px;
		margin: 0;
		padding: 8px 4px;
		font-size: 0.875rem;
		line-height: 1.2;
		text-align: center;
	}
	.cookie-consent .cookie-consent__btn--manage {
		display: block;
		background: transparent;
		color: var(--ink);
		text-decoration: underline;
		box-shadow: inset 0 0 0 1px var(--line);
	}
	.cookie-consent .cookie-consent__btn--save {
		order: 1;
		grid-column: 1 / -1;
	}
	.cookie-consent .cookie-consent__category {
		display: grid;
		grid-template-columns: auto 1fr;
		column-gap: 8px;
		row-gap: 0;
		align-items: center;
	}
	.cookie-consent .cookie-consent__category > input[type="checkbox"] {
		margin: 0;
	}
	.cookie-consent .cookie-consent__desc {
		grid-column: 2;
		margin: 0;
	}
}
/* The heading takes focus when the banner opens so screen readers announce it;
   it is not a control, so no focus ring is drawn round it. */
.cookie-consent .cookie-consent__heading:focus {
	outline: none;
}

/* --- Secure checkout (basket + checkout) ------------------------------------
   Ben via Sean, 17 Nov, modelled on Amazon's "Secure checkout" bar. The header
   itself is swapped in PHP (inc/checkout-header.php); the layout rules below only
   apply under body.is-secure-checkout.

   BAR: one slim sticky full-width strip in brand navy. Logo left on a white pill
   (the wordmark is dark-on-transparent), "Secure checkout" with a lock centred,
   cart link right. Compacts at phone width.

   LAYOUT: WooCommerce's Checkout block nests the Place order button inside the
   form, in the left column. To put it at the top of the order-summary card
   without touching the block, `.wc-block-checkout__main` and its form become
   `display: contents`, so the field groups, the actions row and the sidebar are
   all direct grid items of `.wc-block-checkout`:
     desktop  col 1 = fields (rows 1..n)   col 2 = Place order (row 1) + summary
     <=900px  one column: fields, summary, then Place order pinned to the bottom
              of the viewport so it is always reachable. */
.checkout-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--navy);
	color: #fff;
	box-shadow: 0 2px 8px rgba(15, 10, 58, 0.35);
}
.checkout-header__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: var(--s-3);
	box-sizing: border-box;
	min-height: 64px;
	max-width: 1600px;
	margin: 0 auto;
	padding: var(--s-2) var(--s-5);
}
.checkout-header__logo {
	justify-self: start;
	display: inline-flex;
	padding: 4px 12px;
	background: #fff;
	border-radius: var(--r-sm);
}
.checkout-header__logo img {
	display: block;
	width: auto;
	height: 40px;
}
.checkout-header__title {
	display: inline-flex;
	align-items: center;
	gap: var(--s-2);
	margin: 0;
	font-size: var(--step-1);
	font-weight: 600;
	letter-spacing: 0.01em;
	color: #fff;
}
.checkout-header__cart {
	position: relative;
	justify-self: end;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	color: #fff;
	text-decoration: none;
}
.checkout-header__cart:hover,
.checkout-header__cart:focus-visible { color: var(--orange-050); }
.checkout-header__count {
	position: absolute;
	top: 2px;
	right: -2px;
	min-width: 18px;
	padding: 0 4px;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	color: #fff;
	background: var(--orange);
	border-radius: var(--r-pill);
}
@media (max-width: 600px) {
	.checkout-header__inner { min-height: 52px; padding: 4px var(--s-3); }
	.checkout-header__logo { padding: 3px 8px; }
	.checkout-header__logo img { height: 28px; }
	.checkout-header__title { font-size: var(--step-0); gap: 6px; }
	.checkout-header__lock { width: 16px; height: 16px; }
}
html:has(body.is-secure-checkout) { scroll-padding-top: 80px; }

.is-secure-checkout .wc-block-checkout.wc-block-components-sidebar-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(320px, 400px);
	column-gap: var(--s-6);
	align-items: start;
}
.is-secure-checkout .wc-block-checkout__main,
.is-secure-checkout .wc-block-checkout__form { display: contents; }
.is-secure-checkout .wc-block-checkout__form > *,
.is-secure-checkout .wc-block-checkout__main > *:not(.wc-block-checkout__form) { grid-column: 1; }

/* Place order: top of the summary card. */
.is-secure-checkout .wc-block-checkout__form > .wc-block-checkout__actions {
	grid-column: 2;
	grid-row: 1;
	box-sizing: border-box;
	/* Fixed height, cancelled out of row 1 by the negative margin, so the card
	   does not push the first field group down; the sidebar's margin-top below
	   puts the summary under it. The basket link lives in the bar, so the
	   "Return to Basket" link is dropped on desktop. */
	height: var(--co-place-h);
	margin: 0 0 calc(-1 * var(--co-place-h));
	padding: var(--s-4);
	background: var(--paper);
	border: 1px solid var(--line);
	border-bottom: 0;
	border-radius: var(--r-md) var(--r-md) 0 0;
}
.is-secure-checkout .wc-block-checkout.wc-block-components-sidebar-layout { --co-place-h: 84px; }
.is-secure-checkout .wc-block-checkout__actions .wc-block-checkout__actions_row {
	display: flex;
	flex-direction: column-reverse;
	align-items: stretch;
	gap: var(--s-3);
}
.is-secure-checkout .wc-block-checkout__actions .wc-block-components-checkout-place-order-button { width: 100%; }
.is-secure-checkout .wc-block-checkout__actions .wc-block-components-checkout-return-to-cart-button {
	align-self: center;
	font-size: var(--step--1);
}
@media (min-width: 901px) {
	.is-secure-checkout .wc-block-checkout__actions .wc-block-components-checkout-return-to-cart-button { display: none; }
}
.is-secure-checkout .wc-block-checkout__sidebar {
	grid-column: 2;
	grid-row: 2 / span 20;
	align-self: start;
	position: sticky;
	top: 80px;
	box-sizing: border-box;
	width: auto;
	margin: var(--co-place-h) 0 0;
	padding: 0;
	background: var(--paper);
	border: 1px solid var(--line);
	border-radius: 0 0 var(--r-md) var(--r-md);
}

@media (max-width: 900px) {
	.is-secure-checkout .wc-block-checkout.wc-block-components-sidebar-layout {
		display: flex;
		flex-direction: column;
	}
	.is-secure-checkout .wc-block-checkout__sidebar {
		order: 1;
		position: static;
		margin-top: var(--s-5);
		border-radius: var(--r-md);
	}
	.is-secure-checkout .wc-block-checkout__form > .wc-block-checkout__actions {
		order: 2;
		position: sticky;
		bottom: 0;
		z-index: 50;
		height: auto;
		margin: var(--s-4) 0 0;
		border: 0;
		border-top: 1px solid var(--line);
		border-radius: 0;
		box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.12);
	}
}
