/* =============================================================================
   MONTSERRAT -- self-hosted

   Was a render-blocking request to fonts.googleapis.com that global.css then
   depended on, so none of the theme CSS could start downloading until a
   third party answered (front-end audit pass 2, §9.1).

   Google serves Montserrat as a variable font, so one file per style covers
   the whole 100-900 axis -- the 500, 800 and 900 the theme uses included.
   Latin subset only; the unicode-range is Google's own, so a character
   outside it falls through to the next family in --font-base rather than
   downloading anything.

   To update: fetch the css2 URL with a modern browser UA, take the latin
   @font-face blocks, and replace the two files in assets/fonts/.
   ============================================================================= */

@font-face {
	font-family:   'Montserrat';
	font-style:    normal;
	font-weight:   100 900;
	font-display:  swap;
	src:           url('../fonts/montserrat-latin-normal.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
	               U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
	               U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family:   'Montserrat';
	font-style:    italic;
	font-weight:   100 900;
	font-display:  swap;
	src:           url('../fonts/montserrat-latin-italic.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
	               U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
	               U+2212, U+2215, U+FEFF, U+FFFD;
}


/* =============================================================================
   DESIGN TOKENS
   ============================================================================= */

:root {
	/* Colors (mapped from the production site's Oxygen globals)
	   color(1) accent | color(2) text | color(3) border | color(4) subtle bg | color(5) white */
	--color-accent:        #96001B;
	--color-accent-hover:  #7A0016;
	--color-text-primary:  #0A0A0A;
	--color-text-secondary:#4A4E52;
	--color-border-subtle: #E0E0E0;
	--color-border-hover:  #B0B5BA;

	/* Form control boundaries and placeholder text.
	   WCAG 1.4.11 wants 3:1 for the edge of a control and 1.4.3 wants 4.5:1
	   for placeholder text; --color-border-subtle (1.32:1) and the old
	   #9aa0a5 placeholder (2.64:1) met neither. These are deliberately
	   separate tokens: the lighter --color-border-subtle stays correct for
	   decorative dividers and card edges, which carry no information.
	   Measured on #FFFFFF / #F5F5F5: 3.62 / 3.32, 5.98 / 5.48, 5.00 / 4.59. */
	--color-border-input:       #82878C;
	--color-border-input-hover: #5F6469;
	--color-text-placeholder:   #6B7075;
	--color-bg-subtle:     #F5F5F5;
	--color-bg-primary:    #FFFFFF;

	/* Status colours. Every one of these was in use as a one-off hex before
	   the design-system pass (the backorder notice, the checkout result
	   badges, the form validation messages). All three clear AA on white:
	   5.24:1, 4.53:1 and 7.33:1. The hover variants are the pressed/hover
	   states the warning and error links already carried. */
	--color-success:       #2d7a4f;
	--color-success-hover: #22603D;
	--color-warning:       #b06f1c;
	--color-warning-hover: #8f5716;
	--color-error:         #b00020;
	--color-error-hover:   #670013;
	/* Info: a neutral "here is how this works" blue, for non-stock items
	   (available to order) -- deliberately not the warning amber, which read
	   as "we don't have it". 6.9:1 on white. */
	--color-info:          #1d5c96;

	/* Font family
	   Montserrat: 500, 500 italic, 800, 800 italic, 900, 900 italic */
	--font-base: 'Montserrat', system-ui, -apple-system, sans-serif;

	/* Heading sizes. These are the desktop values; the media query at the
	   foot of this file redefines h1-h3 for phones, so anything built on
	   var(--text-h1) scales down with the bare <h1> rather than having to
	   repeat the override. */
	--text-h1: 48px;
	--text-h2: 36px;
	--text-h3: 28px;
	--text-h4: 22px;
	--text-h5: 18px;
	--text-h6: 16px;

	/* Display: the footer contact title, and nothing else so far. Kept out
	   of the heading scale because it does not follow the h1 mobile step. */
	--text-display:    62px;
	--text-display-md: 44px;
	--text-display-sm: 34px;

	/* Body and UI sizes.
	   --text-body-large  standfirst paragraphs under a heading
	   --text-ui          buttons, nav links, table cells: the one interface
	                      size, sitting between body and body-small because
	                      the button metrics came over from production at 15px
	   --text-2xs         uppercase micro-labels only (badges, status pills,
	                      the product-card price label), never running text */
	--text-body-large: 20px;
	--text-body:       16px;
	--text-ui:         15px;
	--text-body-small: 14px;
	--text-xs:         12px;
	--text-2xs:        11px;

	/* Line heights */
	--leading-tight:   1.15;
	--leading-normal:  1.5;
	--leading-slim:    1.4;
	--leading-relaxed: 1.7;

	/* Font weights */
	--weight-regular: 500;
	--weight-bold:    800;
	--weight-black:   900;

	/* Corner radius scale. Pick by the element's shortest side:
	   <=32px xs | 32-64px s (buttons, fields) | 64px+ m (cards, panels).
	   Nesting: outer = inner + padding, capped at the next token; a
	   container is never rounder than its children, and never less. */
	--radius-xs:  4px;   /* checkboxes, chips, icon buttons, focus rings on text links */
	--radius-s:   6px;   /* buttons, inputs, selects, table wrappers, KPI tiles, menu items */
	--radius-m:   8px;   /* cards, panels, modals, dropdown menus, tooltips */
	--radius-l:   12px;  /* containers with ~16px padding around s-radius children */
	--radius-xl:  16px;  /* reserved: full-screen sheets with >=24px padding */
	--radius-max: 999px; /* pills, status/count badges, avatars, dots */

	/* -------------------------------------------------------------------
	   SPACING
	   4px base. Use these for gap, margin and padding; a raw pixel value
	   in those properties should be replaced, not added to. 2px is the one
	   deliberate half-step, for hairline nudges that 4px overshoots.
	   ------------------------------------------------------------------- */
	--space-3xs:   2px;
	--space-2xs:   4px;
	--space-xs:    8px;
	--space-s:    12px;
	--space-m:    16px;
	--space-l:    24px;
	--space-xl:   32px;
	--space-2xl:  40px;
	--space-3xl:  48px;
	--space-4xl:  64px;
	--space-5xl:  96px;
	--space-6xl: 128px;

	/* -------------------------------------------------------------------
	   SECTION RHYTHM
	   The vertical padding a full-width section gets. There used to be two
	   competing scales -- a legacy 125/100/75/50 inherited from the Oxygen
	   build and a 64/40/32 one on the pages added during remediation. The
	   newer scale won; these three tokens are the whole vocabulary.

	   --section-y       default band, top and bottom
	   --section-y-hero  a band sitting on a full-bleed photograph
	   --section-y-md    a band that sits tight against its neighbour, and
	                     the value every --section-y drops to below --bp-md
	   --section-y-sm    the narrowest band, and the phone value

	   The default band is 96px on desktop. It steps back to 64px below
	   --bp-md: 96px of air reads as generous on a 1440px page and as dead
	   space on a 390px one, and plenty of sections using this token have no
	   mobile override of their own. 64px is what they showed on a phone
	   before this bump, so the step-down keeps mobile exactly as it was.

	   The hero band is the exception and stays at 64px. Those sections are
	   a headline on a photograph: the image already gives the top of the
	   page its weight, and 96px on top of it only pushes the headline
	   further from the fold. Used by .home-hero and .split-contact-hero
	   (cleanrooms, services, products and the four service subpages); both
	   already drop to --section-y-sm on a phone.
	   ------------------------------------------------------------------- */
	--section-y:      var(--space-5xl); /* 96px, 64px below --bp-md */
	--section-y-hero: var(--space-4xl); /* 64px */
	--section-y-md:   var(--space-2xl); /* 40px */
	--section-y-sm:   var(--space-xl);  /* 32px */

	/* Horizontal gutter and max content width, used by .layout-section. */
	--layout-gutter: var(--space-l); /* 24px */
	--layout-max:    1280px;

	/* -------------------------------------------------------------------
	   BREAKPOINTS
	   Four tiers. Custom properties cannot be used inside a media query
	   condition, so these are documentation and a handle for JS -- the
	   @media rules below and in every page stylesheet must repeat the
	   literal. Keep them in step.

	     --bp-sm    600px   phone
	     --bp-md    768px   tablet portrait; most single-column switches
	     --bp-lg   1024px   tablet landscape / small laptop
	     --bp-xl   1200px   where the widest grids start to crowd

	   Anything outside this set is a bug unless it carries a comment
	   explaining what it measured. There is exactly one such exception,
	   product-card.css, and it says why.
	   ------------------------------------------------------------------- */
	--bp-sm:  600px;
	--bp-md:  768px;
	--bp-lg: 1024px;
	--bp-xl: 1200px;

	/* -------------------------------------------------------------------
	   ELEVATION
	   One recipe, three depths. --shadow-card is the site's signature and
	   was previously written three different ways, including once in the
	   non-standard `rgba(...) 0px 2px 8px 0px` order.
	   ------------------------------------------------------------------- */
	--shadow-card:    0 2px 8px rgba(99, 99, 99, 0.2);
	--shadow-raised:  0 4px 12px rgba(99, 99, 99, 0.15);
	--shadow-overlay: 0 12px 28px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);

	/* -------------------------------------------------------------------
	   MOTION
	   --duration-fast is the default for every hover, focus and colour
	   change. --duration-slow is only for movement a visitor should be
	   able to follow: panels sliding, accordions opening, the cart drawer.
	   ------------------------------------------------------------------- */
	/* -------------------------------------------------------------------
	   STICKY HEADER OFFSET
	   Two page stylesheets each hardcoded "76px, or 108px with the admin
	   bar" and derived their own scroll offsets from it, so the header
	   height lived in two places and the 32px admin bar in two more.
	   They derive from these now.
	   ------------------------------------------------------------------- */
	--header-h:    122px; /* header bottom edge once stuck; 76px below --bp-lg */
	/* Where sticky sidebars and columns pin: the 122px header plus breathing
	   room. Add var(--admin-bar-h) where used. Only desktop two-column
	   layouts stick; the columns stack at 1024px and stop sticking. */
	--sticky-top:  145px;
	--admin-bar-h: 0px;  /* replaced below when the bar is present */

	--duration-fast: 150ms;
	--duration-slow: 250ms;
	--ease-standard: ease;
}

/* Section rhythm, below the tablet breakpoint. Sections that set their own
   smaller band still win; this only moves the default one. */
@media ( max-width: 768px ) {

	:root {
		--section-y: var(--space-4xl); /* 64px */
	}

}

/* The whole header sticks: two rows on desktop, only the main bar below
   1024px, where the category row moves into the mobile menu. */
@media ( max-width: 1024px ) {

	:root {
		--header-h: 76px;
	}

}

/* The admin bar is 32px tall on desktop and pushes the sticky header down by
   that much. Page stylesheets derive their own offsets from this rather than
   restating the total. */
body.admin-bar {
	--admin-bar-h: 32px;
}


/* =============================================================================
   BASE STYLES
   ============================================================================= */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, figure, blockquote, dl, dd {
	margin: 0;
	padding: 0;
}

ul,
ol {
	list-style: none;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
	/* Keep the aspect ratio when max-width shrinks an image below its
	   width/height attributes (WP prints those on post thumbnails). */
	height: auto;
}

input,
button,
textarea,
select {
	font: inherit;
}

/* Placeholder text is a hint, not a label, but it still has to be readable.
   Page styles that set their own placeholder colour inherit this token. */
::placeholder {
	color:   var(--color-text-placeholder);
	opacity: 1; /* Firefox dims placeholders by default. */
}

/* iOS Safari zooms the viewport whenever a focused field is under 16px and
   never zooms back out, which strands the visitor mid-form. Several pages
   style their fields at --text-body-small (14px); this floors every text
   control at 16px on phones and tablets without touching the desktop scale.

   !important is deliberate. Page rules reach these fields through a class
   (.site-footer__form input[type="text"], .careers-form input) and so outrank
   a bare type selector. This is an accessibility floor, not a preference, and
   it has to win. */
@media ( max-width: 768px ) {


	input[type="text"],
	input[type="email"],
	input[type="tel"],
	input[type="url"],
	input[type="number"],
	input[type="password"],
	input[type="search"],
	input[type="date"],
	select,
	textarea {
		font-size: var(--text-body) !important;
	}

}

[hidden] { display: none !important; }

body {
	font-family:           var(--font-base);
	font-size:             var(--text-body);
	font-weight:           var(--weight-regular);
	color:                 var(--color-text-primary);
	background-color:      var(--color-bg-primary);
	line-height:           var(--leading-normal);
	font-variant-ligatures: none;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-base);
	font-weight: var(--weight-black);
	line-height: var(--leading-tight);
	color:       var(--color-text-primary);
}

h1 { font-size: var(--text-h1); }
h2 { font-size: var(--text-h2); }
h3 { font-size: var(--text-h3); }
h4 { font-size: var(--text-h4); }
h5 { font-size: var(--text-h5); }
h6 { font-size: var(--text-h6); }

p {
	margin-bottom: var(--space-m);
}

p:last-of-type {
	margin-bottom: 0;
}

p strong,
ul strong {
	color: var(--color-text-primary);
}

a {
	color:           var(--color-accent);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

p a {
	font-weight: var(--weight-bold);
}

/* =============================================================================
   LAYOUT
   ============================================================================= */

.layout-section {
	width:         100%;
	padding-left:  var(--layout-gutter);
	padding-right: var(--layout-gutter);
}

.layout-section__inner {
	width:     100%;
	max-width: var(--layout-max);
	margin:    0 auto;
}

.layout-section__inner--1000 {
	max-width: 1000px;
}

.layout-section__inner--800 {
	max-width: 800px;
}

/* Standard vertical padding for interior page content sections */
.page-padding {
	padding-top: var(--section-y-md);
	padding-bottom: var(--section-y);
}

/* Pins an element (e.g. a sidebar box stack) below the sticky header */
.sticky {
	position: sticky;
	top:      calc(var(--sticky-top) + var(--admin-bar-h));
}

/* Tighter line height for short supporting copy */
.slim-line-height {
	line-height: var(--leading-slim);
}

/* =============================================================================
   SCREEN-READER UTILITIES

   Both of these were in use before they were defined anywhere in the theme.
   The skip link and the search labels only looked right because WordPress's
   block-library stylesheet happens to ship a .screen-reader-text rule -- an
   accidental dependency that turns into visible body text at the top of every
   page the moment that stylesheet is dequeued (front-end audit pass 2, §8.21).
   ============================================================================= */

/* Visually hidden, still announced. clip-path does the work in modern
   browsers; the clip/width/height trio is the long-standing fallback.
   Never use display:none or visibility:hidden here -- both remove the text
   from the accessibility tree, which is the opposite of the point. */
.screen-reader-text {
	position:       absolute;
	width:          1px;
	height:         1px;
	padding:        0;
	margin:         -1px;
	overflow:       hidden;
	clip:           rect(0, 0, 0, 0);
	clip-path:      inset(50%);
	border:         0;
	white-space:    nowrap;
	word-wrap:      normal;
}

/* The skip link is hidden until it takes focus, then becomes a real,
   visible control pinned to the top-left. :focus as well as :focus-visible
   because it is reached only by keyboard anyway. */
.screen-reader-text:focus,
.screen-reader-text:focus-visible {
	clip:      auto;
	clip-path: none;
	height:    auto;
	width:     auto;
	margin:    0;
	overflow:  visible;
}

.skip-link:focus,
.skip-link:focus-visible {
	position:         fixed;
	z-index:          100000;
	top:              var(--space-xs);
	left:             var(--space-xs);
	display:          block;
	padding:          var(--space-s) var(--space-m);
	font-size:        var(--text-ui);
	font-weight:      var(--weight-bold);
	line-height:      1;
	text-decoration:  none;
	color:            var(--color-bg-primary);
	background-color: var(--color-accent);
	border-radius:    var(--radius-s);
	outline:          2px solid var(--color-text-primary);
	outline-offset:   2px;
}

/* =============================================================================
   FIELD -- the one text-input primitive

   Before this there were three: 10px/12px padding at 16px type on contact,
   careers and the calculators; 12px/14px at 14px on login and checkout;
   11px/13px in the footer. The 14px ones also made iOS Safari zoom the page
   on focus (front-end audit pass 2, §3.4), which is why the shared size is
   --text-body: anything under 16px triggers that zoom and the visitor has
   to pinch back out.

   Applies to text inputs, selects and textareas. Checkboxes, radios and the
   quantity steppers are not fields and do not take this class. Page
   stylesheets should only add genuine deviations on top -- a fixed height,
   a monospace value, a compact variant -- never restate the recipe.
   ============================================================================= */

.field {
	width:            100%;
	padding:          var(--space-s);
	font-family:      var(--font-base);
	font-size:        var(--text-body);
	font-weight:      var(--weight-regular);
	line-height:      var(--leading-normal);
	color:            var(--color-text-primary);
	background-color: var(--color-bg-primary);
	border:           1px solid var(--color-border-input);
	border-radius:    var(--radius-s);
	transition:       border-color var(--duration-fast) ease;
}

.field::placeholder {
	color:   var(--color-text-placeholder);
	opacity: 1;
}

.field:hover {
	border-color: var(--color-border-input-hover);
}

.field:focus-visible {
	border-color: var(--color-accent);
	box-shadow:   0 0 0 3px color-mix(in srgb, var(--color-accent) 16%, transparent);
	/* Transparent, not none: forced-colours mode repaints outlines and
	   would otherwise leave the field with no focus indicator at all. */
	outline:        2px solid transparent;
	outline-offset: 2px;
}

/* Fields go inert while a submission is in flight. */
.field:disabled {
	background-color: var(--color-bg-subtle);
	color:            var(--color-text-secondary);
	cursor:           not-allowed;
}

textarea.field {
	resize:     vertical;
	min-height: var(--space-5xl);
}

select.field {
	cursor: pointer;
}

/* -----------------------------------------------------------------------------
   FLOATING LABELS

   The label starts inside the control and rises above the value on focus or
   once there is content. Pure CSS: the label is the input's next sibling, so
   :focus and :placeholder-shown can reach it with the adjacent selector. That
   is why the markup puts the control first and the label second -- <label for>
   still associates them, so reading order for assistive tech is unchanged.

   Every control that takes a floating label needs placeholder=" " (a single
   space) when it has no real placeholder, or :placeholder-shown never matches
   and the label never comes back down. fss_field() handles that.
   ----------------------------------------------------------------------------- */

:root {
	/* One field recipe, so every control on the site is the same height and
	   rows line up across a grid.

	   The geometry: a 56px box, 1px border each side, a 22px line box for the
	   value, and the space above it is the strip the risen label moves into.
	   The value therefore sits below the middle of the box -- unavoidable
	   with a floating label, and the reason the resting label is centred
	   rather than sitting on the value's line: an empty field should read as
	   balanced, and only fills from the top once there is something in it. */
	--field-h:           56px;
	--field-pad-x:       14px;
	--field-pad-top:     24px;
	--field-pad-bottom:   8px;
	--field-line:        22px;

	/* Centred (28px) to risen (16px from the top of the box). */
	--field-label-rise:  -12px;
	--field-label-scale: 0.75;

	/* Between stacked fields, and between the columns of a two-up row. */
	--field-gap:         14px;
}

.field-group {
	position: relative;
}

.field-group .field {
	height:      var(--field-h);
	padding:     var(--field-pad-top) var(--field-pad-x) var(--field-pad-bottom);
	line-height: var(--field-line);
}

/* A textarea grows downwards, so it keeps the top strip but sets its own
   height. Four lines of message is enough to start with. */
.field-group textarea.field {
	height:     auto;
	min-height: 124px;
}

/* Most fields have no placeholder at all: the label says what goes in, and
   saying it twice is noise. The few that keep a genuine format hint show it
   only once the label is out of the way. */
.field-group .field:not(:focus)::placeholder {
	color: transparent;
}

.field-group__label {
	position:         absolute;
	top:              0;
	left:             calc(var(--field-pad-x) + 1px); /* + the border */
	max-width:        calc(100% - (var(--field-pad-x) * 2) - 2px);
	/* Centred at rest by the line box, not by padding, so the same rule
	   holds for a one-line input and a four-line textarea. */
	height:           var(--field-h);
	line-height:      var(--field-h);
	font-size:        var(--text-body);
	font-weight:      var(--weight-regular);
	color:            var(--color-text-placeholder);
	transform-origin: left center;
	transition:       transform var(--duration-fast) cubic-bezier(0.2, 0, 0.2, 1),
	                  color var(--duration-fast) ease;
	/* Clicks fall through to the control underneath. */
	pointer-events:   none;
	white-space:      nowrap;
	overflow:         hidden;
	text-overflow:    ellipsis;
}

/* A page stylesheet that styles bare `label` would otherwise win on
   specificity and drag the floating label back to 14px bold with a margin.
   The primitive owns these. */
.field-group .field-group__label {
	display:     block;
	margin:      0;
	padding:     0;
	font-size:   var(--text-body);
	font-weight: var(--weight-regular);
}

/* Risen: on focus, once there is a value, when the browser has autofilled,
   and always for a select -- a select always displays something, so its
   label has nowhere to rest. */
.field-group .field:focus + .field-group__label,
.field-group .field:not(:placeholder-shown) + .field-group__label,
.field-group .field:-webkit-autofill + .field-group__label,
.field-group select.field + .field-group__label {
	transform: translateY(var(--field-label-rise)) scale(var(--field-label-scale));
}

.field-group .field:focus + .field-group__label {
	color: var(--color-accent);
}

/* Required is not marked. Nearly every field on this site is required, so an
   asterisk on nearly every label is decoration that carries no information --
   and the `required` attribute already tells assistive tech and the browser.
   The handful of fields people may skip say so instead. */
.field-group__optional {
	font-size: 0.875em; /* relative, so it shrinks with the risen label */
	color:     var(--color-text-placeholder);
}

/* Guidance that has to stay visible -- it cannot be a placeholder, because a
   placeholder is hidden exactly when the field is being filled in. */
.field-group__hint {
	margin:      6px 0 0;
	font-size:   var(--text-body-small);
	line-height: var(--leading-slim);
	color:       var(--color-text-secondary);
}

.field-group__error {
	margin:      6px 0 0;
	font-size:   var(--text-body-small);
	line-height: var(--leading-slim);
	font-weight: var(--weight-bold);
	color:       var(--color-error);
}

/* The stack of fields inside any public form. */
[data-fss-form-body] {
	display:        flex;
	flex-direction: column;
	gap:            var(--field-gap);
}

/* Reduced motion: the label still moves, it just arrives immediately. */
@media ( prefers-reduced-motion: reduce ) {

	.field-group__label {
		transition: none;
	}

}
/* The field the visitor actually got wrong, flagged by the form scripts. */
.field.is-invalid {
	border-color:     var(--color-error);
	background-color: color-mix(in srgb, var(--color-error) 3%, var(--color-bg-primary));
}

.field.is-invalid:focus-visible {
	border-color: var(--color-error);
	box-shadow:   0 0 0 3px color-mix(in srgb, var(--color-error) 16%, transparent);
}

/* The label goes with it, so the field reads as wrong from the label down. */
.field-group .field.is-invalid + .field-group__label,
.field-group .field.is-invalid:focus + .field-group__label {
	color: var(--color-error);
}

/* =============================================================================
   BREADCRUMBS -- shared component, rendered by fss_breadcrumbs()
   ============================================================================= */

.fss-breadcrumbs {
	padding-top: var(--section-y-md);
	padding-bottom: 0;
}

.fss-breadcrumbs__list {
	display:     flex;
	align-items: center;
	flex-wrap:   wrap;
	gap:         6px;
}

.fss-breadcrumbs__item {
	display:     flex;
	align-items: center;
	gap:         6px;
	font-size:   var(--text-body-small);
	color:       var(--color-text-secondary);
}

/* Chevron separator before every item except the first */
.fss-breadcrumbs__item + .fss-breadcrumbs__item::before {
	content:     '›';
	color:       var(--color-text-secondary);
	flex-shrink: 0;
}

.fss-breadcrumbs__link {
	color:      var(--color-text-secondary);
	transition: color var(--duration-fast) ease;
}

.fss-breadcrumbs__link:hover {
	color:           var(--color-accent);
	text-decoration: none;
}

.fss-breadcrumbs__item--current {
	font-weight: var(--weight-bold);
}

/* =============================================================================
   EYEBROW
   ============================================================================= */

.eyebrow {
	font-size:      var(--text-body-small);
	font-weight:    var(--weight-bold);
	letter-spacing: 2.5px;
	line-height:    1;
	text-transform: uppercase;
	color:          var(--color-accent);
	margin-bottom:  var(--space-2xs);
}

/* =============================================================================
   BUTTONS
   Metrics from production; hover / active / focus states carried from dev.
   ============================================================================= */

.button--solid,
.button--outline {
	display:         inline-flex;
	align-items:     center;
	justify-content: center;
	font-family:     var(--font-base);
	font-size:       var(--text-ui);
	font-weight:     var(--weight-bold);
	line-height:     1.3;
	border:          2px solid;
	padding:         var(--space-xs) var(--space-l);
	min-height:      44px;
	text-align:      center;
	text-decoration: none;
	white-space:     nowrap;
	border-radius:   var(--radius-s);
	cursor:          pointer;
	transition:      transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.button--solid:hover,
.button--outline:hover {
	text-decoration: none;
	transform:       translateY(-1px);
	box-shadow:      0 4px 8px rgba(0, 0, 0, 0.10);
}

.button--solid:active,
.button--outline:active {
	transform:  translateY(0);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Full-width button. The base used to carry min-width: 200px, which every
   form in the theme then had to undo with its own __submit rule -- five of
   them, four of which existed for nothing else. Width is the caller's
   business, so the base no longer has an opinion and this modifier states
   the one case that is not inline. */
.button--block {
	display: flex;
	width:   100%;
}

/* The ring used to be `3px solid currentColor`, which on a burgundy solid
   button means white -- drawn on the white page at 1.0:1, i.e. invisible.
   An explicit near-black ring reads on every light background; the white
   variant, which only ever sits on dark imagery, inverts it. */
.button--solid:focus-visible,
.button--outline:focus-visible {
	outline:        3px solid var(--color-text-primary);
	outline-offset: 3px;
}

.button--white:focus-visible {
	outline-color: var(--color-bg-primary);
}

/* -- Burgundy --------------------------------------------------------------- */

.button--solid.button--burgundy {
	background-color: var(--color-accent);
	border-color:     var(--color-accent);
	color:            var(--color-bg-primary);
}

.button--outline.button--burgundy {
	background-color: transparent;
	border-color:     var(--color-accent);
	color:            var(--color-accent);
}

/* -- Black ------------------------------------------------------------------ */

.button--solid.button--black {
	background-color: var(--color-text-primary);
	border-color:     var(--color-text-primary);
	color:            var(--color-bg-primary);
}

.button--outline.button--black {
	background-color: transparent;
	border-color:     var(--color-text-primary);
	color:            var(--color-text-primary);
}

/* -- Gray ------------------------------------------------------------------- */

.button--solid.button--gray {
	background-color: var(--color-bg-subtle);
	border:           1px solid var(--color-border-subtle);
	color:            var(--color-text-primary);
}

/* -- White ------------------------------------------------------------------ */

.button--white {
	border-color: var(--color-bg-primary);
	color:        var(--color-bg-primary);
}

/* =============================================================================
   PUBLIC FORMS -- shared chrome
   The five lead-capture forms (footer, /contact/, service quote, careers,
   newsletter) keep their own field styling; what lives here is the plumbing
   every one of them shares: the honeypot trap, the required marker, the
   per-field error and the status region. See inc/forms.php and
   assets/js/fss-forms.js.
   ============================================================================= */

/* The honeypot. Off-screen rather than display:none -- a bot that skips
   hidden inputs is exactly the bot we want to catch. */
.fss-form__trap {
	position:  absolute;
	left:      -9999px;
	width:     1px;
	height:    1px;
	overflow:  hidden;
}

.fss-form__sr {
	position:     absolute;
	width:        1px;
	height:       1px;
	margin:       -1px;
	padding:      0;
	overflow:     hidden;
	clip-path:    inset(50%);
	white-space:  nowrap;
	border:       0;
}

.fss-form__required {
	color: var(--color-accent);
}

.fss-form__legend {
	margin:      0 0 var(--space-m);
	font-size:   var(--text-body-small);
	color:       var(--color-text-secondary);
}

/* Field-level error, injected next to the control it describes. Same look
   as .field-group__error, which is the markup version of the same thing. */
.fss-form__error {
	margin:      6px 0 0;
	font-size:   var(--text-body-small);
	line-height: var(--leading-slim);
	font-weight: var(--weight-bold);
	color:       var(--color-error);
}

[data-field].is-invalid input,
[data-field].is-invalid select,
[data-field].is-invalid textarea {
	border-color: var(--color-error);
}

/* Form-level result. */
.fss-form__status {
	margin:        var(--space-m) 0 0;
	padding:       14px var(--space-m);
	font-size:     var(--text-body-small);
	line-height:   var(--leading-normal);
	border:        1px solid var(--color-border-subtle);
	border-radius: var(--radius-s);
	background:    var(--color-bg-primary);
	color:         var(--color-text-primary);
}

.fss-form__status:focus-visible {
	outline:        3px solid var(--color-accent);
	outline-offset: 2px;
}

.fss-form__status--success {
	border-color: var(--color-success);
	background:   rgba(45, 122, 79, 0.08);
}

.fss-form__status--error {
	border-color: var(--color-error);
	background:   rgba(176, 0, 32, 0.06);
}

/* Field-level error under a floating-label field. */
.field-group__error {
	margin:      6px 0 0;
	font-size:   var(--text-body-small);
	font-weight: var(--weight-bold);
	color:       var(--color-error);
}

/* A button waiting on the server. The ring is drawn rather than animated
   into place, so it costs one element and no layout. */
form[aria-busy="true"] [type="submit"]::before {
	content:       '';
	display:       inline-block;
	width:         1em;
	height:        1em;
	margin-right:  var(--space-xs);
	vertical-align: -0.125em;
	border:        2px solid currentColor;
	border-top-color: transparent;
	border-radius:  var(--radius-max);
	animation:     fss-spin 0.6s linear infinite;
}

@keyframes fss-spin {
	to { transform: rotate(360deg); }
}

form[aria-busy="true"] [type="submit"]:disabled {
	cursor:  default;
	opacity: 0.75;
}

/* Reduced motion: the button still says what it is doing, it just does
   not spin about it. */
@media ( prefers-reduced-motion: reduce ) {

	form[aria-busy="true"] [type="submit"]::before {
		animation: none;
	}

}

/* A form mid-submit: the button says so, the fields stop responding. */
form[aria-busy="true"] [data-fss-form-body] {
	opacity:        0.6;
	pointer-events: none;
}

form[data-fss-form] [type="submit"]:disabled {
	cursor:  default;
	opacity: 0.75;
}

/* =============================================================================
   TOOLTIP
   Shared hover/focus tooltip. Named .product-tooltip-* because it started on
   the product page; it lives here because the checkout uses it too and this is
   the only stylesheet loaded on every page.
   ============================================================================= */

.product-tooltip-wrap {
	position:    relative;
	display:     inline-flex;
	align-items: center;
}

.product-tooltip-btn {
	display:         flex;
	align-items:     center;
	justify-content: center;
	padding:         0;
	background:      none;
	border:          none;
	color:           var(--color-text-secondary);
	cursor:          pointer;
	flex-shrink:     0;
	line-height:     1;
}

.product-tooltip__content {
	position:         absolute;
	bottom:           calc(100% + 10px);
	left:             50%;
	transform:        translateX(-50%);
	width:            260px;
	background-color: var(--color-text-primary);
	border-radius:    var(--radius-m);
	padding:          var(--space-s) 14px;
	font-size: var(--text-body-small);
	font-weight:      var(--weight-regular);
	line-height:      var(--leading-relaxed);
	color:            var(--color-bg-primary);
	text-transform:   none;
	letter-spacing:   0;
	visibility:       hidden;
	opacity:          0;
	pointer-events:   none;
	transition:       opacity var(--duration-fast) ease, visibility var(--duration-fast) ease;
	z-index:          100;
	white-space:      normal;
}

.product-tooltip__content::after {
	content:          '';
	position:         absolute;
	top:              100%;
	left:             50%;
	transform:        translateX(-50%);
	border:           6px solid transparent;
	border-top-color: var(--color-text-primary);
}

.product-tooltip__content.is-visible {
	visibility:     visible;
	opacity:        1;
	pointer-events: auto;
}

.product-tooltip__content a {
	color:           #7dd3a8;
	text-decoration: underline;
}

/* =============================================================================
   STOCK PILL
   Per-line stock status on the cart and in the checkout order summary,
   rendered by fss_stock_pill() (inc/stock-status.php). Same chip as
   .account-status. The product page shows the same statuses as a coloured
   dot (single-product.css), in the same colours.
   ============================================================================= */

.stock-pill {
	display:        inline-flex;
	align-items:    center;
	gap:            var(--space-2xs);
	align-self:     flex-start;
	padding:        var(--space-3xs) var(--space-xs);
	border-radius:  var(--radius-max);
	font-size:      var(--text-2xs);
	font-weight:    var(--weight-bold);
	line-height:    var(--leading-slim);
	letter-spacing: 0.5px;
	text-transform: uppercase;
	white-space:    nowrap;
}

.stock-pill svg {
	flex-shrink: 0;
}

.stock-pill--stock {
	background: color-mix(in srgb, var(--color-success) 8%, var(--color-bg-primary));
	border:     1px solid color-mix(in srgb, var(--color-success) 30%, transparent);
	color:      var(--color-success-hover);
}

/* The longest label ("Non-stock item: available to order"), so it may wrap
   on a narrow line rather than push the line wider than the screen. */
.stock-pill--non-stock {
	background:  color-mix(in srgb, var(--color-info) 8%, var(--color-bg-primary));
	border:      1px solid color-mix(in srgb, var(--color-info) 30%, transparent);
	color:       var(--color-info);
	white-space: normal;
}

.stock-pill--discontinued {
	background: var(--color-bg-subtle);
	border:     1px solid var(--color-border-subtle);
	color:      var(--color-text-secondary);
}

/* =============================================================================
   MEDIA QUERIES
   ============================================================================= */

/* Phone heading scale. Redefining the tokens rather than the elements means
   a component that reaches for var(--text-h2) steps down with the bare <h2>
   instead of staying at the desktop size. */
@media ( max-width: 768px ) {

	:root {
		--text-h1: 34px;
		--text-h2: 30px;
		--text-h3: 26px;
		--text-h4: 22px;
	}

}

/* =============================================================================
   CART TOAST
   Raised by single-product.js on add-to-cart, by cart.js when a quantity
   update or a removal fails, and by favorites.js. Shared, because several
   pages need it and none loads the others' stylesheets.
   ============================================================================= */

.fss-cart-toast {
	position:         fixed;
	bottom:           24px;
	right:            24px;
	background-color: var(--color-text-primary);
	color:            var(--color-bg-primary);
	padding:          var(--space-s) 20px;
	border-radius:    var(--radius-s);
	font-size: var(--text-body-small);
	font-weight:      var(--weight-bold);
	opacity:          0;
	transform:        translateY(8px);
	transition:       opacity var(--duration-fast) ease, transform var(--duration-fast) ease;
	pointer-events:   none;
	z-index:          9999;
}

.fss-cart-toast.is-visible {
	opacity:   1;
	transform: translateY(0);
}

.fss-cart-toast.is-error {
	background-color: var(--color-error);
}

/* =============================================================================
   FAVORITE STAR
   Customer-only toggle (inc/favorites.php, favorites.js). Placement lives with
   the component it sits on: product-card.css for archive cards,
   single-product.css over the product image.

   The glyph is the solid star from the icon registry. Unpressed, it is drawn
   as an outline by overriding the SVG's fill attribute; pressed, it fills with
   the accent, like the review stars on the home page. The unpressed outline
   is a light grey so it recedes over the product image. The button is 36px,
   a deliberate exception to the 44px touch-target rule to keep it small over
   the image, with the 20px star centred in it.
   ============================================================================= */

.favorite-toggle {
	display:          inline-flex;
	align-items:      center;
	justify-content:  center;
	flex-shrink:      0;
	width:            36px;
	height:           36px;
	padding:          0;
	border:           0;
	border-radius:    var(--radius-max);
	background:       transparent;
	color:            var(--color-border-hover);
	cursor:           pointer;
	transition:       color var(--duration-fast) ease, background-color var(--duration-fast) ease;
}

.favorite-toggle:hover {
	color:            var(--color-accent);
	background-color: var(--color-bg-subtle);
}

.favorite-toggle:focus-visible {
	outline:        2px solid var(--color-accent);
	outline-offset: 2px;
}

.favorite-toggle__icon {
	fill:            transparent;
	stroke:          currentColor;
	stroke-width:    1.75;
	stroke-linejoin: round;
	transition:      fill var(--duration-fast) ease;
}

.favorite-toggle[aria-pressed="true"] {
	color: var(--color-accent);
}

.favorite-toggle[aria-pressed="true"] .favorite-toggle__icon {
	fill: currentColor;
}
