/* =========================================================
   Paws & Pantry · site-2026.css
   Shared foundation for the 2026 redesign: tokens, base, buttons, forms kit, utility bar, header, menu,
   footer, product card and the .img-fade / .img-frame utilities. Every page links this file first.

   BRAND: "the pantry shelf". Chalk paper (--bg) and deep navy ink (--ink), ONE accent: marigold (--brand #f5b82e),
   always used as a FILL with navy text on it (never as text on light). Navy (--navy) is the dark band colour,
   --blue is the navy family's text-accent on light surfaces (eyebrows, links, selected states).
   Three species tints (dog sky / cat blush / small-pet mint) sit behind pack-shots only.
   Display: Bricolage Grotesque (variable, optical size). Text: Figtree. Two families, both self-hosted.
   Do not use a generic accent variable name: this theme uses brand-specific names (--brand, --blue, --navy).

   CONTRAST (WCAG 2.x relative luminance)
     ink on bg 15.2:1 · on surface 16.9:1 · on surface-2 14.0:1 · ink-soft on bg 10.3:1 · muted on bg 6.6:1 · on surface-3 5.3:1
     ink on brand 9.5:1 · on brand-hover 7.6:1 · blue on bg 7.1:1 · on surface 7.9:1 · on brand-tint 6.9:1
     on dark: dim on navy 9.7:1 · on navy-2 8.0:1 · on navy-3 6.2:1 · on navy-deep 11.5:1 · brand on navy 8.2:1 · on navy-deep 9.7:1
     tints: ink on dog 13.3 · cat 12.9 · small 13.5 · muted on dog 5.8 · cat 5.6 · small 5.9
     non-text 3:1: control-line on bg 4.9:1 · on surface 5.5:1 · on surface-2 4.5:1 · danger on surface 7.3:1 · success 6.5:1

   NO MOTION: no transitions, animations, keyframes, smooth scrolling or hover lifts anywhere. Hover is an
   instant colour change; the focus ring stays. (document.getAnimations().length is 0 at rest.)
   ONE EXCEPTION (owner's request): the soft hover/focus edge on the three companion tiles fades its opacity in 200ms
   ease-out, only under prefers-reduced-motion: no-preference (home-2026.css). Nothing else transitions.

   READABILITY (standing rules): nothing under 14px; body 16 -> 17; small 15 -> 16; meta 14 -> 15; tap targets >= 44px;
   spacing on a 4px scale (--s-1..--s-10); figures use tabular-nums; paragraphs cap at 66ch.
   ========================================================= */
@font-face { font-family: "Bricolage Grotesque"; src: url("../assets/fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../assets/fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
/* Metric-matched fallbacks, measured from the shipped woff2 files (average advance, hhea): the swap moves nothing. */
@font-face { font-family: "Bricolage Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"), local("Arial"); size-adjust: 98.7%; ascent-override: 94.2%; descent-override: 27.4%; line-gap-override: 0%; font-weight: 700; }
@font-face { font-family: "Figtree Fallback"; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"); size-adjust: 101.6%; ascent-override: 93.5%; descent-override: 24.6%; line-gap-override: 0%; }

:root {
  /* neutrals: chalk paper */
  --bg: #f4f3ec;
  --surface: #ffffff;
  --surface-2: #eceadf;
  --surface-3: #dfdccd;
  --line: #dedacb;
  --line-strong: #c3beaa;
  --control-line: #6b6a5c;       /* 4.9:1 on bg, 5.5:1 on surface, 4.5:1 on surface-2 */
  --ink: #101d33;
  --ink-soft: #2b3a55;
  --muted: #4a5670;
  /* the accent: marigold fill (navy text on it) and its tint */
  --brand: #f5b82e;
  --brand-hover: #e3a312;
  --brand-tint: #fdeec2;
  /* navy family text accent on light */
  --blue: #2a4f95;
  --on-ink-accent: #f5b82e;      /* marigold on ink-filled controls (checked boxes, selected segment) */
  /* species tints behind pack-shots */
  --tint-dog: #d9e6f7;
  --tint-cat: #f6dcd3;
  --tint-small: #dcebd3;
  --tint-gold: #fbecbe;
  /* dark bands */
  --navy: #14284a;
  --navy-2: #1c365f;
  --navy-3: #274677;
  --navy-deep: #0c1a33;
  --navy-line: #38588c;
  --navy-dim: #c6d3ea;
  --navy-edge: #8ea6d0;
  /* semantics */
  --danger: #a3262f;
  --danger-night: #ffb4b0;
  --success: #1f6b43;
  --focus: #2a4f95;

  /* type */
  --font-display: "Bricolage Grotesque", "Bricolage Fallback", "Arial Black", ui-sans-serif, system-ui, sans-serif;
  --font-text: "Figtree", "Figtree Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-display: clamp(2.5rem, 1.3rem + 4.6vw, 4.5rem);
  --t-h2: clamp(1.75rem, 1.15rem + 2.3vw, 3rem);
  --t-h3: clamp(1.25rem, 1.12rem + .5vw, 1.5rem);
  --t-lede: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --t-body: clamp(1rem, .98rem + .1vw, 1.0625rem);
  --t-small: clamp(.9375rem, .92rem + .07vw, 1rem);
  --t-meta: clamp(.875rem, .86rem + .07vw, .9375rem);
  --lh-body: 1.6;
  --lh-small: 1.5;
  --lh-head: 1.08;
  --track-label: .06em;
  --measure: 66ch;

  /* spacing: 4px scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* shape: two levels + pill */
  --r-control: 10px;
  --r-card: 16px;
  --r-panel: 28px;
  --r-pill: 999px;
  --shadow-overlay: 0 24px 64px -16px rgba(16, 29, 51, .4);

  /* layout */
  --max: 1280px;
  --gutter: 24px;
  --margin: clamp(20px, 4vw, 56px);
  --header-h: 68px;
  --section: clamp(56px, 36px + 5vw, 112px);

  /* imagery tokens (see .img-fade / .img-frame below) */
  --img-grade: contrast(1.03) saturate(1.05);
  --img-radius: 16px;
  --img-ring: rgb(16 29 51 / .14);
  --img-shadow: 0 1px 2px rgb(16 29 51 / .06), 0 16px 32px -16px rgb(16 29 51 / .3);
  --img-ph: var(--surface-2);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--s-4)); background: var(--navy-deep); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--t-body)/var(--lh-body) var(--font-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, table, fieldset, blockquote { margin: 0; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; padding: 0; margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .site-footer :focus-visible, .utility :focus-visible { outline-color: var(--brand); }
.utility :focus-visible { outline-color: var(--navy); }
::selection { background: var(--brand); color: var(--navy); }
.wrap { width: 100%; max-width: calc(var(--max) + var(--margin) * 2); margin-inline: auto; padding-inline: var(--margin); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: var(--s-4); top: -64px; z-index: 100; background: var(--brand); color: var(--navy); font-weight: 700; padding: var(--s-3) var(--s-4); border-radius: var(--r-control); }
.skip-link:focus { top: var(--s-3); }
.num { font-variant-numeric: tabular-nums; }
:where(p) { max-width: var(--measure); text-wrap: pretty; }
:where(li, dd, figcaption, summary, blockquote) { text-wrap: pretty; }
:where(h1, h2, h3, h4, .h3, .display, .h2) { text-wrap: balance; }

/* ---------- type ---------- */
.meta { font: 600 var(--t-meta)/1.4 var(--font-text); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
.on-dark .meta { color: var(--navy-dim); }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s-2); color: var(--blue); }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--brand); flex: none; }
.on-dark .eyebrow { color: var(--brand); }
.display { font: 700 var(--t-display)/1 var(--font-display); font-variation-settings: "opsz" 96; letter-spacing: -.035em; }
.h2 { font: 700 var(--t-h2)/var(--lh-head) var(--font-display); font-variation-settings: "opsz" 72; letter-spacing: -.03em; }
.h3 { font: 650 var(--t-h3)/1.2 var(--font-display); font-variation-settings: "opsz" 24; letter-spacing: -.015em; }
/* emphasis in a heading = a solid marigold highlighter stripe behind the words (not gradient text) */
:is(.display, .h2, .h3) em { font-style: normal; background: linear-gradient(transparent 62%, var(--brand) 62%, var(--brand) 92%, transparent 92%); padding-inline: .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.on-dark :is(.display, .h2, .h3) em { background: none; color: var(--brand); padding: 0; }
.lede { font-size: var(--t-lede); line-height: 1.55; color: var(--ink-soft); max-width: 54ch; text-wrap: pretty; }
.on-dark .lede { color: var(--navy-dim); }
.fine { font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); }
.on-dark .fine { color: var(--navy-dim); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 0 var(--s-5); border-radius: var(--r-pill);
  border: 2px solid transparent; font: 650 var(--t-small)/1.2 var(--font-text);
  text-decoration: none; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: var(--brand); color: var(--navy); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--navy-3); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ctl-line); border-width: 1px; }
.btn-line:hover { border-color: var(--control-line); background: var(--surface); }
.on-dark .btn-line { color: #fff; border-color: var(--navy-edge); }
.on-dark .btn-line:hover { border-color: #fff; background: transparent; }
.on-dark .btn-ink { background: #fff; color: var(--navy); }
.btn-sm { min-height: 44px; padding: 0 var(--s-4); }
.btn-lg { min-height: 56px; padding: 0 var(--s-6); font-size: var(--t-body); }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; font-weight: 650; color: var(--ink); text-decoration: underline; text-decoration-color: var(--brand); text-underline-offset: 5px; text-decoration-thickness: 3px; }
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { text-decoration-color: var(--ink); }
.on-dark .link-arrow { color: #fff; }
.on-dark .link-arrow:hover { text-decoration-color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--surface-2); color: var(--muted); border-color: var(--line-strong); cursor: not-allowed; }
.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"]::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; }
/* pressed state for toggle buttons (Save / Saved) */
.btn[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- small shared pieces ---------- */
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 2px var(--s-3); border-radius: var(--r-pill); background: var(--brand-tint); color: var(--ink); font: 650 var(--t-meta)/1.2 var(--font-text); letter-spacing: .01em; white-space: nowrap; }
.tag--ink { background: var(--ink); color: #fff; }
.tag--line { background: transparent; border: 1px solid var(--ctl-line); }
/* "Demo" / "Sample" marker used wherever a flow is not real */
.demo-tag { display: inline-flex; align-items: center; min-height: 28px; padding: 2px var(--s-3); border-radius: var(--r-pill); border: 1.5px dashed var(--control-line); background: var(--surface); color: var(--ink); font: 650 var(--t-meta)/1.2 var(--font-text); letter-spacing: var(--track-label); text-transform: uppercase; }
.on-dark .demo-tag { background: transparent; color: var(--navy-dim); border-color: var(--navy-edge); }
.note { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4) var(--s-5); background: var(--surface); border: 1px solid var(--line-strong); border-left: 6px solid var(--brand); border-radius: var(--r-control); font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-soft); }
.note strong { color: var(--ink); }
.note p { max-width: 72ch; }

/* the pack-shot tile: species tint behind a vector pack-shot (the original site has no photographs) */
.pack { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 4; background: var(--tint-dog); border-radius: var(--r-card) var(--r-card) 0 0; overflow: hidden; }
.pack svg { width: 62%; height: auto; max-height: 92%; aspect-ratio: 1; }
.pack[data-t="cat"] { background: var(--tint-cat); }
.pack[data-t="small"] { background: var(--tint-small); }
.pack[data-t="gold"] { background: var(--tint-gold); }
.pack .tag { position: absolute; left: var(--s-3); top: var(--s-3); background: #fff; }

/* food photography tile: the photo is the main image (.img-frame supplies grade, vignette and placeholder; the tile supplies
   the radius and clip), the illustrated pack-shot stays as a small chip on the species tint. Toys and accessories have no photo. */
.pack--photo { display: block; }
.pack-photo { position: absolute; inset: 0; --ring: transparent; }
.pack-photo.img-frame picture { border-radius: 0; box-shadow: none; }
.pack-photo picture img { width: 100%; object-fit: cover; }
.pack-chip { position: absolute; right: var(--s-3); bottom: var(--s-3); width: clamp(52px, 30%, 104px); aspect-ratio: 1; display: grid; place-items: center; background: inherit; border: 2px solid #fff; border-radius: 14px; box-shadow: 0 1px 2px rgb(16 29 51 / .18), 0 6px 14px -6px rgb(16 29 51 / .35); }
.pack.pack--photo .pack-chip svg { width: 88%; height: auto; max-height: 94%; aspect-ratio: 1; }
.photo-note { position: absolute; left: var(--s-4); bottom: var(--s-4); display: inline-flex; align-items: center; min-height: 28px; padding: 2px var(--s-3); border-radius: var(--r-pill); background: #fff; color: var(--ink); font: 600 var(--t-meta)/1.2 var(--font-text); letter-spacing: var(--track-label); }

/* product card (shelf label): home, shelves, finder results, product page "more", saved list */
.product-grid { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr)); }
.product-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-card); min-width: 0; }
.product-card .pack { border-bottom: 1px solid var(--line); }
.product-card__body { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-4) var(--s-4) var(--s-4); flex: 1; }
.product-card .brand { font: 600 var(--t-meta)/1.3 var(--font-text); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
.product-card h3 { font: 650 1.1875rem/1.2 var(--font-display); font-variation-settings: "opsz" 24; letter-spacing: -.015em; }
.product-card h3 a { text-decoration: none; }
.product-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-card); }  /* whole card is the link; buttons sit above it */
.product-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.product-card .price { display: flex; align-items: baseline; gap: var(--s-2); margin-top: var(--s-2); font: 700 1.375rem/1.1 var(--font-display); font-variation-settings: "opsz" 36; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.product-card .price small { font: 500 var(--t-small)/1.2 var(--font-text); color: var(--muted); letter-spacing: 0; }
.product-card .blurb { font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-soft); }
.product-card .avoid-note, .avoid-note { margin-top: var(--s-1); padding: var(--s-2) var(--s-3); border-radius: var(--r-control); background: #fde8e6; color: #7a1d24; font: 600 var(--t-small)/1.35 var(--font-text); }
.product-card.is-avoid { border-color: var(--danger); }
.card-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: auto; padding-top: var(--s-3); position: relative; z-index: 1; }
.card-actions .btn { flex: 1 1 auto; }
.ing { margin-top: var(--s-2); font-size: var(--t-small); line-height: var(--lh-small); color: var(--muted); }
.ing summary { display: flex; align-items: center; gap: var(--s-2); min-height: 44px; cursor: pointer; font-weight: 600; color: var(--ink); position: relative; z-index: 1; list-style: none; }
.ing summary::-webkit-details-marker { display: none; }
.ing summary::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor; -webkit-mask: var(--i-chev) center / contain no-repeat; mask: var(--i-chev) center / contain no-repeat; }
.ing[open] summary::before { rotate: 180deg; }
.ing p { padding-bottom: var(--s-2); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ctl-line); background: transparent; color: var(--ink); flex: none; }
.icon-btn:hover { border-color: var(--field-line-hover); background: var(--surface-2); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--brand); }
.empty { padding: var(--s-6) var(--s-5); border: 2px dashed var(--line-strong); border-radius: var(--r-card); color: var(--ink-soft); background: var(--surface); }

/* =========================================================
   FORMS · reusable component layer (plain CSS, no build step)
   ---------------------------------------------------------
   Markup contract (see forms-demo.html for every state):
     .field            stacked label + control + .field-hint / .field-error
     .field--float     floating-label variant (input needs placeholder=" ")
     .input-group      input with .affix prefix/suffix (£, m, kW)
     select            native <select>; styled closed state everywhere,
                       styled popup where `appearance: base-select` exists
     .check / .switch  checkbox + radio / toggle (label wraps the input)
     input[type=range] + <output> readout, .seg segmented radio group
     .btn[aria-busy]   loading, .btn:disabled
   Validation: :user-invalid / :user-valid (after interaction),
   [aria-invalid="true"] or .field[data-invalid] for server-side errors.
   Targets >= 44px, input text >= 16px (no iOS zoom). Soft hairline fields (see the FORMS REFINEMENT tokens) with a documented 1.4.11 trade-off; checkbox, radio, switch and outline buttons keep a 3:1 line.
   Customizable-select pattern informed by Open Props UI (MIT, github.com/argyleink/open-props).
   ========================================================= */
/* FORMS REFINEMENT (soft fields). Tokens for every form control; hairlines are deliberately lighter than --control-line.
   --field-bg         #f2f0e9  gentle fill (70% surface-2, 30% surface): reads as a field on bg and on white cards; goes to --surface on focus
   --field-line       #a2a196  1px hairline at rest: 2.3:1 on bg, 2.6:1 on surface, 2.3:1 on the field fill
   --field-line-hover #6b6a5c  = --control-line, 4.9:1 on bg (instant swap on hover, no transition)
   --ctl-line         #8c8b7f  3:1 line (3.1:1 on bg, 3.4:1 on surface) for controls with NO fill or other boundary: checkbox, radio, switch,
                          range track, outline buttons, icon buttons, chips
   WCAG 1.4.11 TRADE-OFF (documented, chosen by the site owner): text fields, selects, textareas and segmented controls rest on a
   hairline of ~2.3:1 plus a fill and a visible label above, which is below the strict 3:1 boundary rule. Mitigations: hover shows the
   4.9:1 line, focus shows a 2px focus-coloured ring plus a white fill, errors and valid states carry an icon and text, forced-colors
   and prefers-contrast: more restore the full --control-line. To meet 3:1 everywhere set --field-line to --ctl-line. */
:root {
  --field-h: 48px; --field-px: var(--s-4); --r-field: 12px;
  --field-bg: #f2f0e9; --field-bg-focus: var(--surface); --field-line: #a2a196; --field-line-hover: var(--control-line); --ctl-line: #8c8b7f;
  --field-danger-bg: #fdf1ef;
}
@media (prefers-contrast: more) { :root { --field-line: var(--control-line); --ctl-line: var(--control-line); } }

.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field > label, .field > .label, .label {
  font: 600 var(--t-small)/1.3 var(--font-text); letter-spacing: 0; color: var(--form-label);
}
.field-opt { font-weight: 400; color: var(--form-hint); margin-left: var(--s-1); }
.field-hint, .field-error { margin: 0; font-size: var(--t-small); line-height: var(--lh-small); color: var(--form-hint); }
.field-error { display: none; gap: var(--s-2); align-items: flex-start; color: var(--form-error); font-weight: 500; }
.field-error::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: .15em; background: currentColor;
  -webkit-mask: var(--i-alert) center / contain no-repeat; mask: var(--i-alert) center / contain no-repeat;
}
.field:has(:user-invalid, [aria-invalid="true"]) .field-error, .field[data-invalid] .field-error { display: flex; }
.field:has(:user-invalid, [aria-invalid="true"]) .field-hint, .field[data-invalid] .field-hint { display: none; }
.field:has(:disabled) > label { color: var(--form-hint); }
:root {
  --i-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13Zm-.75 3.25h1.5v4h-1.5v-4Zm.75 6.9a.9.9 0 1 1 0-1.8.9.9 0 0 1 0 1.8Z'/%3E%3C/svg%3E");
  --i-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 7.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  --i-chev-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232b3a55' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 7.75 5 5 5-5'/%3E%3C/svg%3E");
  --i-chev-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23101d33' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 7.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  --i-chev-muted: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%234a5670' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 7.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 8.5 3.2 3.2L13 4.8'/%3E%3C/svg%3E");
}

/* --- text-like controls --- */
.input,
.field input:not([type="range"], [type="radio"], [type="checkbox"], [type="hidden"], [type="submit"], [type="button"], [type="file"]),
.field textarea {
  width: 100%; min-height: var(--field-h); padding: 0 var(--field-px);
  background: var(--field-bg); color: var(--ink);
  border: 1px solid var(--field-line); border-radius: var(--r-field);
  font: 400 var(--t-body)/1.4 var(--font-text);   /* >= 16px: no iOS zoom */
}
.field textarea { min-height: 7.5rem; padding-block: 14px; resize: vertical; field-sizing: content; }
.input:hover, .field input:hover:not(:disabled), .field textarea:hover:not(:disabled) { border-color: var(--field-line-hover); }
.input:focus-visible, .field input:focus-visible, .field textarea:focus-visible {
  border-color: var(--focus); background-color: var(--field-bg-focus); outline: 2px solid var(--focus); outline-offset: 1px;
}
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.input:user-invalid, .field input:user-invalid, .field textarea:user-invalid, select:user-invalid,
[aria-invalid="true"], .field[data-invalid] :where(input, select, textarea) {
  border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); background-color: var(--field-danger-bg);
}
/* valid tick: required fields only, so optional blanks never turn green */
.field input:required:user-valid:not([type="range"], [type="radio"], [type="checkbox"]) {
  border-color: var(--success); padding-inline-end: calc(var(--field-px) + 28px);
  background: var(--field-bg) var(--i-check) no-repeat right var(--field-px) center / 18px;
}
.input:disabled, .field input:disabled:not([type="range"], [type="radio"], [type="checkbox"]), .field textarea:disabled, select:disabled {
  background-color: var(--surface-2); border-color: var(--line); color: var(--muted); cursor: not-allowed;
}
.field input:read-only:not(:disabled, [type="range"]) { background: var(--bg); border-style: dashed; }
.field input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--field-bg) inset; -webkit-text-fill-color: var(--ink); }

/* floating label (needs placeholder=" ") */
.field--float { position: relative; }
.field--float > label {
  position: absolute; z-index: 1; inset: 15px auto auto calc(var(--field-px) + 1px); max-width: calc(100% - 2 * var(--field-px));
  font: 400 var(--t-body)/1.3 var(--font-text); color: var(--muted); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.field.field--float input[placeholder] { min-height: 56px; padding-top: 22px; padding-bottom: 4px; }
.field--float input::placeholder { color: transparent; }
.field--float:has(input:focus, input:not(:placeholder-shown)) > label { top: 6px; font-size: var(--t-meta); font-weight: 600; color: var(--ink-soft); }
.field--float:has(input:disabled) > label { color: var(--form-hint); }

/* input with affixes */
.input-group {
  display: flex; align-items: stretch; min-height: var(--field-h); background: var(--field-bg);
  border: 1px solid var(--field-line); border-radius: var(--r-field); overflow: hidden;
}
.input-group:hover { border-color: var(--field-line-hover); }
.input-group:has(input:focus-visible) { border-color: var(--focus); background: var(--field-bg-focus); outline: 2px solid var(--focus); outline-offset: 1px; }
.input-group:has(:user-invalid, [aria-invalid="true"]) { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); background: var(--field-danger-bg); }
.input-group:has(input:disabled) { background: var(--surface-2); border-color: var(--line); }
.field .input-group input {
  flex: 1; min-width: 0; min-height: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; outline: 0;
}
.affix {
  display: grid; place-items: center; padding-inline: var(--s-4); background: var(--surface-3); color: var(--ink-soft);
  font: 500 var(--t-small)/1 var(--font-text); white-space: nowrap;
}
.affix:first-child { border-inline-end: 1px solid var(--field-line); }
.affix:last-child { border-inline-start: 1px solid var(--field-line); }

/* --- select: closed state (every browser) --- */
select {
  appearance: none; width: 100%; min-height: var(--field-h); padding: 0 var(--s-7) 0 var(--field-px);
  background: var(--field-bg) var(--i-chev-soft) no-repeat right 14px center / 18px;
  color: var(--ink); border: 1px solid var(--field-line); border-radius: var(--r-field);
  font: 400 var(--t-body)/1.4 var(--font-text); text-overflow: ellipsis; white-space: nowrap; cursor: pointer;
}
select:hover:not(:disabled) { border-color: var(--field-line-hover); }
select:focus-visible { border-color: var(--focus); background-color: var(--field-bg-focus); outline: 2px solid var(--focus); outline-offset: 1px; }
select:disabled { background-image: var(--i-chev-muted); }

/* --- select: customizable popup (Chrome/Edge 135+, Safari 27+, fine pointers only) ---
   Touch devices keep the native OS picker (better UX); Firefox keeps the native popup. */
@media (hover: hover) and (pointer: fine) {
  @supports (appearance: base-select) {
    select, select::picker(select) { appearance: base-select; }
    select, select:disabled { display: flex; align-items: center; background-image: none; }
    select::picker-icon {
      content: ""; width: 18px; height: 18px; margin-inline-start: auto; background: var(--ink-soft);
      -webkit-mask: var(--i-chev) center / contain no-repeat; mask: var(--i-chev) center / contain no-repeat;
    }
    select:open::picker-icon { rotate: 180deg; }
    select::picker(select) {
      box-sizing: border-box; min-inline-size: anchor-size(width); max-block-size: min(22rem, 50svh); margin-block: var(--s-1);
      padding: var(--s-1); background: var(--surface); color: var(--ink);
      border: 1px solid var(--field-line); border-radius: calc(var(--r-field) + 2px); box-shadow: var(--shadow-overlay);
      font: 400 var(--t-body)/1.4 var(--font-text);
    }
    select option {
      display: flex; align-items: center; gap: var(--s-3); min-height: 44px; padding: 0 var(--s-3);
      border-radius: 8px; color: var(--ink); cursor: pointer;
    }
    select option:hover, select option:focus-visible { background: var(--surface-2); }
    select option:checked { background: var(--brand-tint); color: var(--ink); font-weight: 600; }
    select option:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
    select option:disabled { color: var(--muted); cursor: not-allowed; }
    select option::checkmark { order: 1; margin-inline-start: auto; color: var(--blue); font-weight: 700; }
    select optgroup label { display: block; padding: var(--s-3) var(--s-3) var(--s-1); font: 500 var(--t-meta)/1.3 var(--font-text); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); }
  }
}
@media (forced-colors: active) {   /* system colours + native arrow */
  select, select::picker(select) { appearance: auto; background-image: none; }
}

/* --- checkbox / radio --- */
.check, .switch { display: flex; align-items: center; gap: var(--s-3); min-height: 44px; cursor: pointer; font-size: var(--t-body); line-height: 1.35; color: var(--form-label); }
.check:has(:disabled), .switch:has(:disabled) { color: var(--form-hint); cursor: not-allowed; }
.check input, .switch input {
  appearance: none; flex: none; margin: 0; display: grid; place-content: center; cursor: inherit;
  background: var(--surface); border: 2px solid var(--ctl-line);
}
.check input { width: 24px; height: 24px; border-radius: 6px; }
.check input[type="radio"] { border-radius: 50%; }
.check input:hover:not(:disabled), .switch input:hover:not(:disabled) { border-color: var(--control-line); }
.check input[type="checkbox"]::after {
  content: ""; width: 16px; height: 16px; background: var(--on-ink-accent); scale: 0;
  -webkit-mask: var(--i-check) center / contain no-repeat; mask: var(--i-check) center / contain no-repeat;
}
.check input[type="checkbox"]:indeterminate::after { -webkit-mask: none; mask: none; height: 2px; width: 12px; scale: 1; }
.check input:checked, .check input[type="checkbox"]:indeterminate { background: var(--ink); border-color: var(--ink); }
.check input[type="checkbox"]:checked::after { scale: 1; }
.check input[type="radio"]:checked { background: var(--on-ink-accent); box-shadow: inset 0 0 0 4px var(--ink); }
.check input:user-invalid { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.check input:disabled, .switch input:disabled { background: var(--surface-2); border-color: var(--line); }
.check input:checked:disabled { background: var(--line-strong); }

/* --- toggle (checkbox with role="switch") --- */
.switch input { position: relative; width: 48px; height: 28px; border-radius: 14px; background: var(--surface-2); }
.switch input::after {
  content: ""; position: absolute; inset: 2px auto 2px 2px; width: 20px; border-radius: 50%;
  background: var(--ink-soft);
}
.switch input:checked { background: var(--ink); border-color: var(--ink); }
.switch input:checked::after { translate: 20px 0; background: var(--on-ink-accent); }
.switch input:disabled::after { background: var(--muted); }
@media (forced-colors: active) {
  .check input, .switch input { appearance: auto; }
  .switch input::after { display: none; }
}

/* --- range slider + readout --- */
input[type="range"] {
  --fill: var(--ink); --track: var(--form-track); --p: 16%;
  appearance: none; -webkit-appearance: none; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; accent-color: var(--ink);
}
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--fill) var(--p), var(--track) var(--p)); box-shadow: inset 0 0 0 1px var(--ctl-line); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--on-ink-accent); border: 3px solid var(--ink); box-shadow: 0 1px 4px rgba(16, 29, 51, .3); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--track); box-shadow: inset 0 0 0 1px var(--ctl-line); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--fill); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--on-ink-accent); border: 3px solid var(--ink); box-shadow: 0 1px 4px rgba(16, 29, 51, .3); }
input[type="range"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
input[type="range"]:disabled { cursor: not-allowed; --fill: var(--muted); }
input[type="range"]:disabled::-webkit-slider-thumb { border-color: var(--muted); background: var(--surface-2); }
input[type="range"]:disabled::-moz-range-thumb { border-color: var(--muted); background: var(--surface-2); }
.range-ends { display: flex; justify-content: space-between; margin-top: calc(-1 * var(--s-1)); font: 400 var(--t-meta)/1.3 var(--font-text); color: var(--form-hint); font-variant-numeric: tabular-nums; }
.calc-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.calc-row output { font: 600 1.25rem/1.2 var(--font-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (forced-colors: active) {
  input[type="range"] { appearance: auto; accent-color: Highlight; }
}

/* --- surfaces: controls are always light boxes; only the text around them flips ---
   .on-dark flips labels/hints/errors/track; .on-light switches back inside a light card. */
:root, .on-light { --form-label: var(--ink); --form-hint: var(--muted); --form-error: var(--danger); --form-track: var(--surface-2); }
.on-dark { --form-label: #fff; --form-hint: var(--navy-dim); --form-error: var(--danger-night); --form-track: var(--navy-line); }

/* --- fieldset + segmented radio group --- */
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: var(--s-2); font: 600 var(--t-small)/1.3 var(--font-text); color: var(--form-label); }
.seg { display: grid; grid-template-columns: repeat(var(--seg-n, 3), 1fr); border: 1px solid var(--field-line); border-radius: var(--r-field); overflow: hidden; background: var(--field-bg); }
.seg label { position: relative; display: block; }
.seg label + label { border-left: 1px solid var(--field-line); }
.seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; text-align: center; padding: var(--s-2) var(--s-2); min-height: var(--field-h); font: 500 var(--t-small)/1.25 var(--font-text); color: var(--ink-soft); }
.seg input:hover + span { background: var(--surface); }
.seg input:checked + span { background: var(--ink); color: var(--on-ink-accent); font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: -4px; }
.seg input:disabled + span { color: var(--muted); background: var(--surface-2); cursor: not-allowed; }
@media (forced-colors: active) {
  .seg input:checked + span { background: Highlight; color: HighlightText; forced-color-adjust: none; }
}


/* ---------- shared layout helpers ---------- */
.section { padding-block: var(--section); }
.section-head { display: grid; gap: var(--s-3); margin-bottom: var(--s-7); }
.stack { display: grid; gap: var(--s-5); align-content: start; }

/* ---------- utility bar (marigold) ---------- */
.utility { background: var(--brand); color: var(--navy); font-size: var(--t-small); line-height: var(--lh-small); font-weight: 500; }
.utility .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-5); min-height: 44px; }
.utility p { margin: 0; max-width: none; }
.utility .facts { display: none; gap: var(--s-5); padding: 0; margin: 0; list-style: none; white-space: nowrap; }
.utility strong { font-weight: 700; }
.utility .quick { display: none; gap: var(--s-1); align-items: center; }
.utility .quick a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); font-weight: 650; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.utility .quick a:hover { text-decoration-thickness: 3px; background: rgb(255 255 255 / .35); }
.status { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 650; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 2px var(--navy); flex: none; }
.status[data-state="open"]::before { background: var(--navy); box-shadow: none; }
@media (max-width: 719px) { .utility .wrap { justify-content: center; } }
@media (min-width: 900px) { .utility .facts { display: flex; } }
@media (min-width: 1100px) { .utility .quick { display: flex; } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s-2); min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; margin-right: auto; color: var(--ink); text-decoration: none; font: 800 1.3125rem/1 var(--font-display); font-variation-settings: "opsz" 36; letter-spacing: -.03em; }
.logo svg { width: 34px; height: 34px; flex: none; }
.logo span em { font-style: normal; color: var(--blue); }
.nav { display: none; }
.nav a { display: inline-flex; align-items: center; white-space: nowrap; min-height: 44px; padding: 0 var(--s-3); font: 600 var(--t-small)/1 var(--font-text); color: var(--ink-soft); text-decoration: none; border-radius: var(--r-pill); }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--brand-tint); color: var(--ink); box-shadow: inset 0 -3px 0 var(--brand); border-radius: var(--r-pill); }
.tool { position: relative; display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; min-width: 44px; justify-content: center; padding: 0 var(--s-3); border: 0; background: none; border-radius: var(--r-pill); font: 600 var(--t-small)/1 var(--font-text); text-decoration: none; color: var(--ink); }
.tool:hover { background: var(--surface-2); }
.tool svg { width: 24px; height: 24px; }
.tool-count { position: absolute; top: 2px; right: 0; min-width: 22px; height: 22px; padding: 0 var(--s-1); display: grid; place-items: center; border-radius: 11px; background: var(--ink); color: var(--brand); font: 700 .875rem/1 var(--font-text); font-variant-numeric: tabular-nums; }
.tool-count[data-n="0"] { display: none; }
.pet-chip { display: none; align-items: center; gap: var(--s-2); min-height: 44px; padding: 0 var(--s-4) 0 var(--s-1); border: 1px solid var(--ctl-line); border-radius: var(--r-pill); font: 600 var(--t-small)/1 var(--font-text); color: var(--ink); text-decoration: none; white-space: nowrap; max-width: 15rem; }
.pet-chip:hover { border-color: var(--ink); background: var(--surface-2); }
.pet-chip svg { width: 34px; height: 34px; flex: none; }
.pet-chip span { overflow: hidden; text-overflow: ellipsis; }
.header-cta { display: none; }
.menu-btn { border: 2px solid var(--ctl-line); }
@media (min-width: 1000px) {
  :root { --header-h: 76px; }
  .nav { display: flex; gap: var(--s-1); margin-right: var(--s-2); }
  .logo { margin-right: var(--s-5); }
  .menu-btn { display: none; }
  .pet-chip { display: inline-flex; }
}
@media (min-width: 1240px) { .header-cta { display: inline-flex; margin-left: var(--s-2); } }
.nav-spacer { flex: 1; }
@media (min-width: 1000px) { .nav { margin-right: auto; } .logo { margin-right: var(--s-4); } }

/* menu: native popover */
.menu { margin: 0; inset: 0 0 0 auto; width: min(420px, 100%); height: 100%; max-height: none; border: 0; padding: 0; background: var(--bg); color: var(--ink); box-shadow: var(--shadow-overlay); overflow: auto; }
.menu::backdrop { background: rgba(12, 26, 51, .6); }
.menu:popover-open { display: flex; flex-direction: column; }
.menu-head { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); padding: 0 var(--margin); border-bottom: 1px solid var(--line-strong); background: var(--surface); }
.menu nav { display: grid; padding: var(--s-3) var(--margin); }
.menu nav a { display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--line); font: 700 1.5rem/1 var(--font-display); font-variation-settings: "opsz" 36; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.menu nav a svg { width: 18px; height: 18px; color: var(--muted); }
.menu nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--brand); padding-left: var(--s-3); }
.menu nav a.sub { min-height: 48px; font: 600 var(--t-body)/1 var(--font-text); letter-spacing: 0; color: var(--ink-soft); }
.menu-foot { margin-top: auto; padding: var(--s-5) var(--margin) var(--s-6); display: grid; gap: var(--s-3); }
.menu-foot .btn { width: 100%; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--navy-dim); }
.site-footer a { color: #fff; text-decoration-line: none; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.site-footer a:hover { text-decoration-line: underline; }
.footer-groom { background: var(--brand); color: var(--navy); padding-block: var(--s-6); }
.footer-groom .wrap { display: grid; gap: var(--s-4); align-items: center; }
.site-footer .footer-groom h2 { font: 700 var(--t-h3)/1.2 var(--font-display); letter-spacing: -.02em; text-transform: none; color: var(--navy); margin-bottom: var(--s-1); }
.footer-groom p { font-size: var(--t-body); line-height: 1.5; max-width: 60ch; }
.site-footer .footer-groom .btn-ink { background: var(--navy); color: #fff; justify-self: start; }
.site-footer .footer-groom .btn-ink:hover { background: var(--navy-3); }
@media (min-width: 720px) { .footer-groom .wrap { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-7); } }
.footer-news { background: var(--navy); border-bottom: 1px solid var(--navy-line); padding-block: var(--s-7); }
.footer-news .wrap { display: grid; gap: var(--s-5); align-items: center; }
.footer-news h2 { font: 700 var(--t-h3)/1.2 var(--font-display); color: #fff; letter-spacing: -.02em; margin-bottom: var(--s-2); }
.footer-news p { font-size: var(--t-body); line-height: 1.5; }
.news-form { display: grid; gap: var(--s-2); }
.news-form .row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.news-form .row .field { flex: 1 1 14rem; }
.footer-main { padding-block: var(--s-8) var(--s-6); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-5); }
.footer-col { padding-top: var(--s-4); border-top: 2px solid var(--navy-line); min-width: 0; }
.site-footer h2 { margin: 0 0 var(--s-2); font: 650 var(--t-meta)/1.4 var(--font-text); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--brand); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-size: var(--t-small); line-height: 1.3; }
.site-footer li.plain { display: flex; align-items: center; min-height: 32px; font-size: var(--t-small); }
.footer-brand { display: grid; gap: var(--s-3); max-width: 44ch; margin-bottom: var(--s-7); }
.footer-brand .logo { color: #fff; margin: 0; }
.footer-brand .logo span em { color: var(--brand); }
.footer-brand p { font-size: var(--t-body); line-height: 1.5; }
.footer-legal { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--navy-line); display: grid; gap: var(--s-3); font-size: var(--t-small); line-height: var(--lh-small); }
.footer-legal p { max-width: 76ch; }
.footer-legal .to-top { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-self: start; }
@media (min-width: 900px) { .footer-news .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); } }
@media (min-width: 720px) { .footer-legal { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--s-5); } }
@media (min-width: 1000px) { .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); } }

/* print: checklists and the basket print cleanly */
@media print {
  .utility, .site-header, .site-footer, .menu, .no-print, .skip-link { display: none !important; }
  body { background: #fff; }
}

/* =========================================================
   PREMIUM IMAGERY  ·  .img-fade (dissolving edges)  +  .img-frame (crisp, rounded, ringed)
   ---------------------------------------------------------
   Both are reusable CSS utilities. They style whatever <picture>/<img> sits inside the wrapper, so
   REPLACING THE PHOTO (new src, new <picture>, new file) KEEPS EVERYTHING. Nothing is baked into
   the image files. Captions, flags and badges live outside <picture>, so they stay crisp.

   MARKUP
     <figure class="img-fade"><picture>...<img ...></picture><figcaption>..</figcaption></figure>
     <figure class="img-frame"><picture>...<img ...></picture></figure>
   Use .img-fade for atmospheric / full-width photographs that should melt into the page (hero,
   flow, workshop). Use .img-frame for photographs inside cards and lists, where a crisp rounded
   edge reads as more premium than a soft one.

   WHAT EVERY PHOTO GETS (all tokens live in :root)
     tonal grade   filter: var(--img-grade)     very light contrast/saturation lift, never heavy
     vignette      picture::after, --vig        radial edge darkening, 0.16 by default, 0 = off
     placeholder   background: var(--img-ph)    shows while a lazy photo loads
     stability     keep width/height + aspect-ratio on the wrapper; object-fit: cover; no layout shift
   .img-fade extras
     --fade-size / --fade-x / --fade-y   fade length (default clamp(24px, 6vw, 88px))
     .img-fade--l .--r .--t .--b .--x .--y   which edges fade (or --fade-t/-r/-b/-l: 1 or 0)
     smootherstep ramp (9 stops per edge), so the dissolve has no visible start line
     hairline ring appears ONLY on edges that stay crisp (a 1px ring on a fading edge would be wrong)
   .img-frame extras
     radius var(--img-radius) 12px, inset hairline ring var(--img-ring), soft depth var(--img-shadow)
   --ring: transparent  on a wrapper turns the ring off (hero touches the viewport edges)

   FALLBACKS
     No mask support or forced-colors: the mask is dropped and the photo shows in full with the
     normal media radius. Photos are always static: no fade-in, zoom or Ken Burns.
   ========================================================= */
.img-fade {
  --fade-size: clamp(24px, 6vw, 88px);
  --fade-x: var(--fade-size);
  --fade-y: var(--fade-size);
  --fade-t: 1; --fade-r: 1; --fade-b: 1; --fade-l: 1;
}
.img-fade--l { --fade-t: 0; --fade-r: 0; --fade-b: 0; }
.img-fade--r { --fade-t: 0; --fade-b: 0; --fade-l: 0; }
.img-fade--t { --fade-r: 0; --fade-b: 0; --fade-l: 0; }
.img-fade--b { --fade-t: 0; --fade-r: 0; --fade-l: 0; }
.img-fade--x { --fade-t: 0; --fade-b: 0; }
.img-fade--y { --fade-r: 0; --fade-l: 0; }

/* shared photo treatment */
:where(.img-fade, .img-frame) picture { position: relative; display: block; height: 100%; overflow: hidden; background: var(--img-ph); }
:where(.img-fade, .img-frame) picture img { height: 100%; filter: var(--img-grade); }
:where(.img-fade, .img-frame) picture::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(125% 100% at 50% 42%, transparent 58%, rgb(16 29 51 / var(--vig, .16)) 100%);
  border: 0 solid var(--ring, var(--img-ring));
}
/* ring only on crisp sides of a fading photo */
.img-fade picture::after {
  border-width: calc((1 - var(--fade-t)) * 1px) calc((1 - var(--fade-r)) * 1px) calc((1 - var(--fade-b)) * 1px) calc((1 - var(--fade-l)) * 1px);
}
/* crisp, rounded, ringed, soft depth */
.img-frame picture { border-radius: var(--img-radius); box-shadow: var(--img-shadow); }
.img-frame picture::after { border-width: 1px; }

@supports ((-webkit-mask-image: linear-gradient(#000, #000)) or (mask-image: linear-gradient(#000, #000))) {
  @media not (forced-colors: active) {
    .img-fade picture, .img-fade > img {
      /* smootherstep-eased ramps: alpha = 1 - fade * (1 - s(t)), s(t) = 6t^5 - 15t^4 + 10t^3 */
      --_ax: linear-gradient(to right,
        rgb(0 0 0 / calc(1 - var(--fade-l) * 1.000)) 0,
        rgb(0 0 0 / calc(1 - var(--fade-l) * 0.984)) calc(var(--fade-x) * 0.125),
        rgb(0 0 0 / calc(1 - var(--fade-l) * 0.896)) calc(var(--fade-x) * 0.25),
        rgb(0 0 0 / calc(1 - var(--fade-l) * 0.725)) calc(var(--fade-x) * 0.375),
        rgb(0 0 0 / calc(1 - var(--fade-l) * 0.500)) calc(var(--fade-x) * 0.5),
        rgb(0 0 0 / calc(1 - var(--fade-l) * 0.275)) calc(var(--fade-x) * 0.625),
        rgb(0 0 0 / calc(1 - var(--fade-l) * 0.104)) calc(var(--fade-x) * 0.75),
        rgb(0 0 0 / calc(1 - var(--fade-l) * 0.016)) calc(var(--fade-x) * 0.875),
        rgb(0 0 0 / calc(1 - var(--fade-l) * 0.000)) calc(var(--fade-x) * 1),
        #000 var(--fade-x),
        #000 calc(100% - var(--fade-x)),
        rgb(0 0 0 / calc(1 - var(--fade-r) * 0.000)) calc(100% - var(--fade-x) * 1),
        rgb(0 0 0 / calc(1 - var(--fade-r) * 0.016)) calc(100% - var(--fade-x) * 0.875),
        rgb(0 0 0 / calc(1 - var(--fade-r) * 0.104)) calc(100% - var(--fade-x) * 0.75),
        rgb(0 0 0 / calc(1 - var(--fade-r) * 0.275)) calc(100% - var(--fade-x) * 0.625),
        rgb(0 0 0 / calc(1 - var(--fade-r) * 0.500)) calc(100% - var(--fade-x) * 0.5),
        rgb(0 0 0 / calc(1 - var(--fade-r) * 0.725)) calc(100% - var(--fade-x) * 0.375),
        rgb(0 0 0 / calc(1 - var(--fade-r) * 0.896)) calc(100% - var(--fade-x) * 0.25),
        rgb(0 0 0 / calc(1 - var(--fade-r) * 0.984)) calc(100% - var(--fade-x) * 0.125),
        rgb(0 0 0 / calc(1 - var(--fade-r) * 1.000)) 100%);
      --_ay: linear-gradient(to bottom,
        rgb(0 0 0 / calc(1 - var(--fade-t) * 1.000)) 0,
        rgb(0 0 0 / calc(1 - var(--fade-t) * 0.984)) calc(var(--fade-y) * 0.125),
        rgb(0 0 0 / calc(1 - var(--fade-t) * 0.896)) calc(var(--fade-y) * 0.25),
        rgb(0 0 0 / calc(1 - var(--fade-t) * 0.725)) calc(var(--fade-y) * 0.375),
        rgb(0 0 0 / calc(1 - var(--fade-t) * 0.500)) calc(var(--fade-y) * 0.5),
        rgb(0 0 0 / calc(1 - var(--fade-t) * 0.275)) calc(var(--fade-y) * 0.625),
        rgb(0 0 0 / calc(1 - var(--fade-t) * 0.104)) calc(var(--fade-y) * 0.75),
        rgb(0 0 0 / calc(1 - var(--fade-t) * 0.016)) calc(var(--fade-y) * 0.875),
        rgb(0 0 0 / calc(1 - var(--fade-t) * 0.000)) calc(var(--fade-y) * 1),
        #000 var(--fade-y),
        #000 calc(100% - var(--fade-y)),
        rgb(0 0 0 / calc(1 - var(--fade-b) * 0.000)) calc(100% - var(--fade-y) * 1),
        rgb(0 0 0 / calc(1 - var(--fade-b) * 0.016)) calc(100% - var(--fade-y) * 0.875),
        rgb(0 0 0 / calc(1 - var(--fade-b) * 0.104)) calc(100% - var(--fade-y) * 0.75),
        rgb(0 0 0 / calc(1 - var(--fade-b) * 0.275)) calc(100% - var(--fade-y) * 0.625),
        rgb(0 0 0 / calc(1 - var(--fade-b) * 0.500)) calc(100% - var(--fade-y) * 0.5),
        rgb(0 0 0 / calc(1 - var(--fade-b) * 0.725)) calc(100% - var(--fade-y) * 0.375),
        rgb(0 0 0 / calc(1 - var(--fade-b) * 0.896)) calc(100% - var(--fade-y) * 0.25),
        rgb(0 0 0 / calc(1 - var(--fade-b) * 0.984)) calc(100% - var(--fade-y) * 0.125),
        rgb(0 0 0 / calc(1 - var(--fade-b) * 1.000)) 100%);
      -webkit-mask-image: var(--_ax), var(--_ay);
      -webkit-mask-composite: source-in;
      mask-image: var(--_ax), var(--_ay);
      mask-composite: intersect;
    }
  }
}
/* no mask support, or forced colours: show the whole photo with the normal media radius */
@supports not ((-webkit-mask-image: linear-gradient(#000, #000)) or (mask-image: linear-gradient(#000, #000))) {
  .img-fade picture, .img-fade > img { border-radius: var(--img-radius); overflow: hidden; }
}
@media (forced-colors: active) {
  .img-fade picture, .img-fade > img { border-radius: var(--img-radius); overflow: hidden; }
  :where(.img-fade, .img-frame) picture::after { display: none; }
}
