/* ==========================================================================
   Lvdong — Design System
   All visual values come from semantic tokens. Components must not hardcode
   colours, radii or spacing.
   Typeface: Inter (SIL Open Font License 1.1) — self-hosted, commercial use OK.
   ========================================================================== */

/* ---------- Font: self-hosted. Do not swap for a font CDN. -------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  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: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* brand green ramp */
  --green-900: #0A2E1C;
  --green-800: #0B3D25;
  --green-700: #0F5533;
  --green-600: #146C42;
  --green-500: #1A8451;
  --green-400: #34A06A;
  --green-300: #7DC4A0;
  --green-200: #B9DFC9;
  --green-100: #DCEFE4;
  --green-50:  #EFF7F2;

  /* neutral ramp */
  --ink-900: #101614;
  --ink-800: #1D2521;
  --ink-700: #2E3833;
  --ink-600: #47524C;
  --ink-500: #5A6660;
  --ink-400: #7C8883;
  --ink-300: #9CA8A3;
  --border-strong: #CBD4CF;
  --border: #E3E8E5;
  --border-soft: #EFF2F0;
  --surface: #FFFFFF;
  --surface-alt: #F6F8F7;
  --surface-sunken: #EDF1EF;

  /* status */
  --amber-600: #9A6407;
  --amber-100: #FBEED2;
  --amber-border: #F0D9A8;
  --slate-600: #4A5568;
  --slate-100: #EDF0F4;

  /* semantic */
  --color-primary: var(--green-600);
  --color-primary-hover: var(--green-700);
  --color-primary-active: var(--green-800);
  --color-primary-soft: var(--green-50);
  --color-primary-line: var(--green-200);
  --color-text: var(--ink-900);
  --color-text-secondary: var(--ink-600);
  --color-text-muted: var(--ink-400);
  --color-text-inverse: #FFFFFF;
  --color-bg: var(--surface-alt);
  --color-surface: var(--surface);
  --color-border: var(--border);
  --color-focus: var(--green-500);
  --color-dark-surface: var(--green-900);

  /* type scale */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;
  --text-3xl: 2.25rem;
  --text-4xl: 2.875rem;
  --leading-tight: 1.22;
  --leading-snug: 1.4;
  --leading-normal: 1.65;

  /* spacing */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --space-12: 48px; --space-16: 64px; --space-20: 80px;

  /* radii — industrial, low roundness */
  --radius-xs: 3px; --radius-sm: 5px; --radius-md: 8px; --radius-lg: 12px;
  --radius-pill: 999px;

  /* elevation — restrained */
  --shadow-xs: 0 1px 2px rgba(16, 22, 20, 0.04);
  --shadow-sm: 0 1px 3px rgba(16, 22, 20, 0.06), 0 1px 2px rgba(16, 22, 20, 0.04);
  --shadow-md: 0 4px 14px rgba(16, 22, 20, 0.08);
  --shadow-lg: 0 12px 32px rgba(16, 22, 20, 0.12);

  /* layout */
  --container: 1200px;
  --container-narrow: 820px;
  --header-h: 68px;

  --transition: 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* In-page anchors (sidebar section links, chip links) must stop BELOW the sticky
   header, otherwise the jumped-to heading hides underneath it and the jump
   looks like nothing happened. */
[id] { scroll-margin-top: calc(var(--header-h) + var(--space-4)); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv05' 1, 'ss01' 1;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; line-height: var(--leading-tight); letter-spacing: -0.015em; }
/* Headings scale with the viewport instead of snapping at a breakpoint, so a
   360px phone never renders a 46px h1. The upper bound is the desktop size,
   reached from roughly 700px upwards — desktop type is unchanged. */
h1 { font-size: clamp(1.75rem, 6.4vw, var(--text-4xl)); }
h2 { font-size: clamp(1.375rem, 5vw, var(--text-3xl)); }
h3 { font-size: clamp(1.125rem, 3.6vw, var(--text-xl)); }
h4 { font-size: var(--text-lg); }
/* Section headings that used to hardcode --text-2xl inline */
.h2-sm { font-size: clamp(1.25rem, 4.4vw, var(--text-2xl)); }
.h1-sm { font-size: clamp(1.5rem, 5.6vw, var(--text-3xl)); }
p { margin: 0 0 var(--space-4); }
p:last-child { margin-bottom: 0; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); text-decoration: underline; text-underline-offset: 3px; }
ul, ol { margin: 0 0 var(--space-4); padding-left: var(--space-5); }
li { margin-bottom: var(--space-2); }
button { font: inherit; }
:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 200;
  background: var(--color-primary); color: #fff; padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm); transition: top var(--transition);
}
.skip-link:focus { top: var(--space-4); color: #fff; text-decoration: none; }

/* ---------- Preview build banner ----------
   Rendered only while site.stage !== "live". Removed from the build
   automatically once the content is verified. */
.build-banner {
  background: var(--amber-100); color: #6B4405; border-bottom: 1px solid var(--amber-border);
  padding: var(--space-2) var(--space-6); font-size: var(--text-xs); text-align: center; line-height: 1.5;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6); }
.container-narrow { width: 100%; max-width: var(--container-narrow); margin: 0 auto; padding: 0 var(--space-6); }
.section { padding: var(--space-16) 0; }
.section-sm { padding: var(--space-12) 0; }
.section-alt { background: var(--color-bg); }
.section-dark { background: var(--color-dark-surface); color: var(--color-text-inverse); }
@media (max-width: 720px) {
  .section { padding: var(--space-12) 0; }
  .section-sm { padding: var(--space-10) 0; }
  .container, .container-narrow { padding: 0 var(--space-4); }
}

.section-head { max-width: 720px; margin-bottom: var(--space-10); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: var(--space-4); color: var(--color-text-secondary); font-size: var(--text-md); }
.eyebrow {
  display: inline-block; font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--color-primary); margin-bottom: var(--space-3);
}
.section-dark .eyebrow { color: var(--green-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: 0 var(--space-6); height: 44px; border-radius: var(--radius-sm);
  font-size: var(--text-base); font-weight: 500; line-height: 1;
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-primary); color: var(--color-text-inverse); }
.btn-primary:hover { background: var(--color-primary-hover); color: #fff; }
.btn-primary:active { background: var(--color-primary-active); }
.btn-secondary { background: var(--color-surface); color: var(--color-text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-soft); }
.btn-ghost { background: transparent; color: var(--color-text); border-color: transparent; padding: 0 var(--space-3); }
.btn-ghost:hover { color: var(--color-primary); background: var(--color-primary-soft); }
.btn-on-dark { background: #fff; color: var(--green-800); }
.btn-on-dark:hover { background: var(--green-100); color: var(--green-900); }
.btn-outline-on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.btn-outline-on-dark:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
.btn-sm { height: 36px; padding: 0 var(--space-4); font-size: var(--text-sm); }
.btn-lg { height: 52px; padding: 0 var(--space-8); font-size: var(--text-md); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.link-arrow::after { content: '\2192'; transition: transform var(--transition); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--space-6);
  height: var(--header-h); max-width: var(--container); margin: 0 auto; padding: 0 var(--space-6);
}
@media (max-width: 720px) { .site-header__inner { padding: 0 var(--space-4); height: 60px; } }

/* The brand block must never shrink: a wide logo squeezed by flexbox bleeds over
   the navigation instead of pushing it, which is how a menu button ends up
   unclickable. Its width is capped instead. */
.brand { display: flex; align-items: center; gap: var(--space-3); flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 32px; height: 32px; border-radius: var(--radius-sm); background: var(--color-primary);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.brand__mark span { color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.brand__logo { display: block; height: 34px; width: auto; max-width: 120px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__name, .brand__sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__name { font-size: var(--text-md); font-weight: 600; color: var(--color-text); letter-spacing: -0.01em; }
.brand__sub { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); }

.nav { display: flex; align-items: center; gap: var(--space-1); margin-left: var(--space-2); }
.nav__item { position: static; }
.nav__link {
  display: inline-flex; align-items: center; gap: 5px; height: var(--header-h);
  padding: 0 var(--space-3); font-size: var(--text-base); font-weight: 500;
  color: var(--color-text-secondary); border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav__link:hover, .nav__item.is-open .nav__link { color: var(--color-primary); text-decoration: none; }
.nav__item.is-current .nav__link { color: var(--color-text); border-bottom-color: var(--color-primary); }
.nav__link[aria-expanded]::after {
  content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px);
  transition: transform var(--transition);
}
.nav__item.is-open .nav__link[aria-expanded]::after { transform: rotate(225deg) translateY(-1px); }

.header-actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.header-contact {
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3;
  padding-right: var(--space-4); border-right: 1px solid var(--color-border); margin-right: var(--space-2);
  white-space: nowrap;
}
.header-contact a, .header-contact span { font-size: var(--text-sm); }
.header-contact .label { font-size: var(--text-xs); color: var(--color-text-muted); }

/* mega menu
   Positioned against .site-header (position:sticky establishes the containing
   block), not against the narrow nav item — so the panel is always centred on
   the viewport regardless of which trigger opened it. */
.mega {
  position: absolute; left: 50%; transform: translateX(-50%); top: 100%;
  width: min(1100px, calc(100vw - 32px)); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: var(--space-8); display: none;
  /* The Freezer Racks column alone is ~700px tall (9 carry-handle tiers).
     Cap the panel to the viewport and let it scroll — otherwise the groups at
     the bottom (Drawer storage racks, Specialty) sit below the fold on
     anything shorter than a 1080p screen and are simply unreachable. */
  max-height: calc(100vh - var(--header-h) - 32px);
  overflow-y: auto;
}
.mega--narrow { width: min(640px, calc(100vw - 32px)); }
.nav__item.is-open .mega { display: block; }
.mega__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-6); }
@media (max-width: 960px) { .mega__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mega__col-title {
  font-size: var(--text-sm); font-weight: 600; color: var(--color-text);
  padding-bottom: var(--space-2); border-bottom: 1px solid var(--color-border); margin-bottom: var(--space-3);
}
.mega__group { margin-bottom: var(--space-4); }
.mega__group-title {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--color-primary); margin-bottom: var(--space-2);
}
.mega ul { list-style: none; padding: 0; margin: 0; }
.mega li { margin-bottom: var(--space-1); }
.mega a {
  display: block; padding: 6px var(--space-2); margin-left: calc(-1 * var(--space-2));
  border-radius: var(--radius-xs); font-size: var(--text-sm); color: var(--color-text-secondary);
  line-height: 1.35;
}
.mega a:hover { background: var(--color-primary-soft); color: var(--color-primary); text-decoration: none; }
.mega a em { display: block; font-style: normal; font-size: var(--text-xs); color: var(--color-text-muted); }
/* Buttons inside the mega panel (e.g. "Get a quote" in .mega__foot) must keep
   their own colors: `.mega a` above is more specific than `.btn-primary` and
   would otherwise paint grey text on the green background. */
.mega a.btn-primary { color: var(--color-text-inverse); }
.mega__foot {
  margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
}
.mega__foot p { margin: 0; font-size: var(--text-sm); color: var(--color-text-secondary); }
.mega__foot strong { color: var(--color-text); }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--color-border); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--color-text); position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--color-text);
}
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
/* Full horizontal navigation needs roughly 1250px of header once a logo, the
   actions and the gaps are accounted for (measured, not estimated). Below that
   the drawer takes over — an always-working menu beats a cramped one. */
@media (max-width: 1240px) {
  .nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-contact { display: none; }
}
/* The "Talk to an engineer" block is a nice-to-have; between 1240 and 1360 it
   would push the navigation into the logo, so it only returns on wide screens. */
@media (max-width: 1360px) {
  .header-contact { display: none; }
}
@media (max-width: 560px) { .header-actions .btn-primary { display: none; } }

/* mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 150; background: var(--color-surface);
  display: none; flex-direction: column; overflow-y: auto;
}
.drawer.is-open { display: flex; }
.drawer__bar {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 var(--space-4); border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; background: var(--color-surface); flex: none;
}
.drawer__body { padding: var(--space-4); flex: 1; }
.drawer__close {
  width: 40px; height: 40px; background: none; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); cursor: pointer; font-size: 18px; line-height: 1; color: var(--color-text);
}
.drawer details { border-bottom: 1px solid var(--color-border); }
.drawer summary {
  padding: var(--space-4) 0; font-weight: 500; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; font-size: var(--text-md);
}
.drawer summary::-webkit-details-marker { display: none; }
.drawer summary::after { content: '+'; font-weight: 400; color: var(--color-text-muted); font-size: 18px; }
.drawer details[open] summary::after { content: '\2013'; }
.drawer .drawer__plain { display: block; padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); font-weight: 500; color: var(--color-text); }
.drawer details ul { list-style: none; padding: 0 0 var(--space-3); margin: 0; }
.drawer details .drawer__line-title {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--color-text-muted); margin: var(--space-3) 0 var(--space-2); font-weight: 600;
}
.drawer details a { display: block; padding: 7px 0; font-size: var(--text-base); color: var(--color-text-secondary); }
.drawer__foot { padding: var(--space-5) 0 0; display: grid; gap: var(--space-3); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { padding: var(--space-4) 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; }
.breadcrumb li { margin: 0; display: flex; gap: var(--space-2); align-items: center; }
.breadcrumb li + li::before { content: '/'; color: var(--border-strong); }
.breadcrumb a { color: var(--color-text-secondary); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--color-dark-surface); color: #fff; overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-16); align-items: center;
  padding: var(--space-20) 0;
}
.hero h1 { color: #fff; max-width: 15ch; }
.hero__lead { font-size: var(--text-lg); color: var(--green-100); margin: var(--space-5) 0 var(--space-8); max-width: 52ch; }
.hero__facts { display: flex; flex-wrap: wrap; gap: var(--space-6); margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,0.16); }
.hero__fact { min-width: 130px; }
.hero__fact dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-300); margin-bottom: 4px; }
.hero__fact dd { margin: 0; font-size: var(--text-md); font-weight: 500; color: #fff; }
.hero__media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid rgba(255,255,255,0.14); }
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-10); padding: var(--space-12) 0; }
  .hero h1 { max-width: none; }
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1024px) { .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card--hover:hover { border-color: var(--color-primary-line); box-shadow: var(--shadow-sm); }
.card__media { background: var(--surface-sunken); border-bottom: 1px solid var(--color-border); }
.card__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__media--square img { aspect-ratio: 1 / 1; }
.card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.card__title { font-size: var(--text-md); font-weight: 600; margin: 0; }
.card__title a { color: var(--color-text); }
.card__title a:hover { color: var(--color-primary); text-decoration: none; }.card__text { margin: 0; font-size: var(--text-sm); color: var(--color-text-secondary); }
.card__foot { margin-top: auto; padding-top: var(--space-3); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }

.cat-card { position: relative; display: block; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-5); background: var(--color-surface); transition: all var(--transition); }
.cat-card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); text-decoration: none; }
.cat-card__name { font-size: var(--text-md); font-weight: 600; color: var(--color-text); margin-bottom: var(--space-2); }
.cat-card__desc { font-size: var(--text-sm); color: var(--color-text-secondary); margin: 0; line-height: 1.5; }

/* product line block (home) */
.line-block { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-12); align-items: center; padding: var(--space-10) 0; border-bottom: 1px solid var(--color-border); }
.line-block:last-child { border-bottom: none; }
.line-block:nth-child(even) .line-block__media { order: -1; }
.line-block__media { border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; background: var(--surface-sunken); }
.line-block h3 { font-size: clamp(1.375rem, 5vw, var(--text-2xl)); margin-bottom: var(--space-4); }
.line-block__lead { font-size: var(--text-md); color: var(--color-text-secondary); margin-bottom: var(--space-6); }
@media (max-width: 900px) {
  .line-block { grid-template-columns: 1fr; gap: var(--space-6); }
  .line-block:nth-child(even) .line-block__media { order: 0; }
}

/* ---------- Sales team (contact page) ---------- */
/* The avatar box has a fixed size whether or not a photograph exists, so adding
   the pictures later does not move anything else on the page. */
.person--vacant { background: var(--color-bg); }
.person__head { display: flex; gap: var(--space-4); align-items: flex-start; }
.person__avatar { flex: none; width: 88px; }
.person__avatar img {
  display: block; width: 88px; height: 88px; object-fit: cover;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--surface-sunken);
}
.person__avatarnote { display: block; margin-top: 6px; font-size: var(--text-xs); color: var(--color-text-muted); text-align: center; }
.person__name { font-size: var(--text-md); font-weight: 600; margin: 0 0 2px; }
.person__role { font-size: var(--text-sm); color: var(--color-text-secondary); margin: 0; }
.person__contacts { list-style: none; padding: 0; margin: 0; font-size: var(--text-sm); }
.person__contacts li { display: flex; gap: var(--space-3); align-items: baseline; padding: 9px 0; border-top: 1px solid var(--color-border); }
.person__contacts li:first-child { border-top: none; }
.person__label { flex: none; width: 72px; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); }
/* A link is a tap target: the text line box alone is ~21px, under the WCAG 2.5.8
   floor of 24px, so the padding is what makes it legally clickable rather than
   the font size. */
.person__contacts a { display: inline-block; word-break: break-word; padding: 4px 0; }
@media (max-width: 400px) { .person__label { width: 64px; } }

/* ---------- Sales team table (contact page) ---------- */
/* Region, contact and the two channels as columns rather than four cards. The
   visitor arrives with one question — "who covers my region" — and that is a
   lookup, which aligned columns answer faster than four blocks that each repeat
   the same four field names. It also keeps the shared inbox from reading as one
   of four equals: it is the catch-all row, and the region column is where the
   difference is visible. */
.team-table__region { width: 19%; font-weight: 600; color: var(--color-text); }
.team-table__who { width: 27%; }
.team-table__name { display: block; font-weight: 600; color: var(--color-text); }
.team-table__role { display: block; margin-top: 2px; font-size: var(--text-xs); color: var(--color-text-secondary); }
.team-table__link { overflow-wrap: anywhere; }
/* A link in a cell is a tap target: the text line box alone is ~21px, under the
   WCAG 2.5.8 floor of 24px, so the padding is what makes it legally clickable. */
.data.team-table td a { display: inline-block; padding: 4px 0; }

@media (max-width: 860px) {
  /* Four columns cannot be read on a phone, and a table that scrolls sideways
     hides the WhatsApp column — the one most visitors actually use. Below this
     width each person becomes a labelled block instead, which also lets the
     region sit on its own line where it can wrap freely. */
  .data.team-table thead { display: none; }
  .data.team-table, .data.team-table tbody, .data.team-table tr, .data.team-table td { display: block; width: auto; }
  .data.team-table tr { padding: var(--space-5) 0; border-bottom: 1px solid var(--color-border); }
  .data.team-table tbody tr:first-child { padding-top: 0; }
  .data.team-table tbody tr:last-child { padding-bottom: 0; border-bottom: none; }
  .data.team-table td { padding: 0; border-bottom: none; }
  .data.team-table td + td { margin-top: var(--space-3); }
  .data.team-table td[data-label]::before {
    content: attr(data-label);
    display: block; margin-bottom: 2px;
    font-size: var(--text-xs); font-weight: 500; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--color-text-muted);
  }
  /* Stacked, the region is a caption rather than a heading: keeping it bold
     would put two bold lines at the top of every block and the name — the thing
     being looked for — would stop standing out. */
  .data.team-table .team-table__region { font-weight: 500; color: var(--color-text-secondary); }
}

/* Company-level details under the table: they belong to the office rather than
   to a person, so they cannot be a row in it. The heading is load-bearing — a
   bare address trailing a table of names reads as a fifth contact. */
.contact-office { margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.contact-office__title { font-size: var(--text-md); margin-bottom: var(--space-4); }
.contact-office__rows { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-8); }
.contact-office p { display: flex; gap: var(--space-3); margin: 0; font-size: var(--text-sm); color: var(--color-text-secondary); }
/* The switchboard number is the one link here, and a link is a tap target:
   same 24px floor as the table cells above it. */
.contact-office p a { display: inline-block; padding: 4px 0; }
.contact-office strong { flex: none; align-self: center; font-size: var(--text-xs); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); }
.contact-team__notice { margin-top: var(--space-6); }

/* ---------- Trust bar ---------- */
.trust-bar { background: var(--color-primary-soft); border-top: 1px solid var(--color-primary-line); border-bottom: 1px solid var(--color-primary-line); }
.trust-bar__grid { display: grid; gap: var(--space-5); padding: var(--space-6) 0; }
/* Column count comes from the markup as a modifier class, never an inline style:
   an inline grid-template-columns outranks the media queries below and keeps the
   bar multi-column on a phone, which widens the whole document. */
.trust-bar__grid > * { min-width: 0; }
.trust-bar__grid--1 { grid-template-columns: 1fr; }
.trust-bar__grid--2 { grid-template-columns: repeat(2, 1fr); }
.trust-bar__grid--3 { grid-template-columns: repeat(3, 1fr); }
.trust-bar__grid--4 { grid-template-columns: repeat(4, 1fr); }
.trust-bar__grid--5 { grid-template-columns: repeat(5, 1fr); }
.trust-item { display: flex; gap: var(--space-3); align-items: flex-start; }
.trust-item__icon {
  width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--color-primary);
}
.trust-item__label { font-size: var(--text-sm); font-weight: 600; color: var(--color-text); line-height: 1.3; }
.trust-item__detail { font-size: var(--text-xs); color: var(--color-text-secondary); line-height: 1.45; margin-top: 2px; }
@media (max-width: 1024px) { .trust-bar__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust-bar__grid { grid-template-columns: 1fr; } }

/* ---------- Finder ---------- */
.finder { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-8); box-shadow: var(--shadow-sm); }
.finder__ref { font-size: var(--text-sm); margin: 0 0 var(--space-5); color: var(--color-text-secondary); }
.finder__brands {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-4);
  margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--color-border);
}
.finder__brands-label { font-size: var(--text-sm); color: var(--color-text-secondary); }
/* Brand names are links on a row of text: the line box alone is ~21px, under the
   WCAG 2.5.8 floor of 24px, so the padding — not a bigger font — is what makes
   each one tappable. Vertical padding inside a flex row costs nothing visually. */
.finder__brands a { display: inline-block; padding: 4px 0; font-size: var(--text-sm); color: var(--color-text); text-decoration: none; }
.finder__brands a:hover { color: var(--color-primary); text-decoration: underline; }
.finder__brands .muted { color: var(--color-text-secondary); font-size: var(--text-xs); }
.finder__steps { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: var(--space-4); align-items: end; }
@media (max-width: 900px) { .finder__steps { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--text-sm); font-weight: 500; color: var(--color-text); }
.field .hint { font-size: var(--text-xs); color: var(--color-text-muted); }
/* Custom file picker: native input kept for a11y but visually hidden
   (browser renders its own localized button text on <input type=file>) */
.file-field { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; min-width: 0; }
.file-input-native { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.file-input-native:focus-visible + .file-button { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.file-button { display: inline-flex; align-items: center; min-height: 40px; padding: 8px var(--space-4); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--color-surface); font: inherit; font-size: var(--text-sm); font-weight: 500; color: var(--color-text); cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.file-button:hover { background: var(--color-surface-alt, #f2f5f3); border-color: var(--color-accent); }
.file-name { font-size: var(--text-sm); color: var(--color-text-muted); overflow-wrap: anywhere; min-width: 0; }
select, input[type=text], input[type=email], input[type=tel], input[type=number], textarea {
  width: 100%; min-height: 44px; padding: 10px var(--space-3);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: var(--text-base); color: var(--color-text); background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%235A6660' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
select:disabled { background-color: var(--surface-sunken); color: var(--color-text-muted); cursor: not-allowed; }
select:focus, input:focus, textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--green-100); outline: none; }
textarea { min-height: 120px; resize: vertical; }
.finder__result { margin-top: var(--space-6); padding-top: var(--space-6); border-top: 1px solid var(--color-border); }
.finder__empty { display: flex; gap: var(--space-4); align-items: flex-start; background: var(--color-primary-soft); border: 1px solid var(--color-primary-line); border-radius: var(--radius-md); padding: var(--space-5); }
.finder__empty h4 { margin-bottom: 6px; }
.finder__hint { background: var(--surface-alt); border: 1px dashed var(--color-border); border-radius: var(--radius-md); padding: var(--space-5); }
.finder__hint p { margin: 0; font-size: var(--text-sm); color: var(--color-text-secondary); }
.finder__hint--warn { border-color: var(--color-primary-line); background: var(--color-primary-soft); }
.finder__hint--warn p { color: var(--color-text); }
.finder__cta { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--color-border); }
.finder__cta p { margin: 0 0 var(--space-4); font-size: var(--text-sm); color: var(--color-text-secondary); max-width: 68ch; }
.finder__cta strong { color: var(--color-text); }

/* ---------- Spec table ----------
   Data tables are the densest content on the site. They must never be clipped
   and must never widen the page: the wrapper scrolls horizontally instead. */
.table-wrap { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap--scroll { overflow-x: auto; }
.table-wrap:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.table-scroll-hint { display: none; }
@media (max-width: 720px) {
  .table-scroll-hint {
    display: block; font-size: var(--text-xs); color: var(--color-text-muted); margin-bottom: var(--space-2);
  }
}
table.data { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
table.data caption {
  text-align: left; padding: var(--space-4) var(--space-5); font-size: var(--text-xs);
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border); font-weight: 600; background: var(--surface-alt);
}
table.data th, table.data td { text-align: left; padding: var(--space-3) var(--space-5); border-bottom: 1px solid var(--color-border-soft, var(--border-soft)); vertical-align: top; }
table.data th { font-weight: 600; color: var(--color-text); background: var(--surface-alt); white-space: nowrap; }
table.data thead th { border-bottom: 1px solid var(--color-border); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-secondary); }
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-bottom: none; }
table.data td.num, table.data th.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data.spec th { width: 40%; color: var(--color-text-secondary); font-weight: 500; background: var(--color-surface); }
table.data tr:hover td, table.data tr:hover th { background: var(--color-primary-soft); }
table.data tr:hover th[scope=row] { background: var(--color-primary-soft); }

@media (max-width: 720px) {
  /* Narrow label/value tables reflow so they fit the phone screen.
     Wide comparison tables keep their columns and scroll inside the wrapper. */
  table.data th { white-space: normal; }
  table.data th, table.data td { padding: var(--space-3) var(--space-4); }
  .table-wrap--scroll table.data { min-width: 620px; }
}

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
  border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 500; line-height: 1.5;
  background: var(--color-primary-soft); color: var(--green-700); border: 1px solid var(--color-primary-line);
}
.chip--pending { background: var(--amber-100); color: var(--amber-600); border-color: var(--amber-border); }
.chip--neutral { background: var(--surface-sunken); color: var(--color-text-secondary); border-color: var(--color-border); }
.chip--dark { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.28); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: var(--space-6); border-top: 2px solid var(--color-primary-line); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: calc(-2px - 15px); left: 0; background: var(--color-surface);
  padding-right: var(--space-3); font-size: var(--text-sm); font-weight: 600; color: var(--color-primary);
  font-variant-numeric: tabular-nums;
}
.step h2 { font-size: var(--text-md); margin-bottom: var(--space-2); }
.step p { font-size: var(--text-sm); color: var(--color-text-secondary); margin: 0; }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--color-border); }
.accordion details { border-bottom: 1px solid var(--color-border); }
.accordion summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-5);
  padding: var(--space-5) 0; cursor: pointer; list-style: none;
  font-size: var(--text-md); font-weight: 500; color: var(--color-text);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; flex: none; color: var(--color-primary); font-size: 20px; line-height: 1; font-weight: 400; }
.accordion details[open] summary::after { content: '\2013'; }
.accordion .accordion__body { padding: 0 var(--space-10) var(--space-5) 0; color: var(--color-text-secondary); }
@media (max-width: 560px) { .accordion .accordion__body { padding-right: 0; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--color-dark-surface); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); padding: var(--space-10) 0; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.25rem, 4.6vw, var(--text-2xl)); max-width: 22ch; }
.cta-band p { color: var(--green-100); margin: var(--space-3) 0 0; max-width: 46ch; }

/* ---------- Forms ---------- */
.form-layout { position: relative; }
.form-split { display: grid; grid-template-columns: 1.55fr 1fr; gap: var(--space-12); align-items: start; }
@media (max-width: 960px) { .form-split { grid-template-columns: 1fr; gap: var(--space-8); } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.form-grid .field--full { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }
.field .req { color: var(--amber-600); }
.field-error { font-size: var(--text-xs); color: #B42318; display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #D92D20; }
.field.has-error .field-error { display: block; }
.checkbox { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); color: var(--color-text-secondary); }
.checkbox input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--color-primary); }
.form-note { font-size: var(--text-xs); color: var(--color-text-muted); }
.form-alert { display: none; padding: var(--space-4) var(--space-5); border-radius: var(--radius-sm); font-size: var(--text-sm); margin-bottom: var(--space-5); }
.form-alert.is-visible { display: block; }
.form-alert--error { background: #FEF3F2; border: 1px solid #FDA29B; color: #B42318; }
.form-alert--info { background: var(--color-primary-soft); border: 1px solid var(--color-primary-line); color: var(--green-700); }
.form-aside { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-6); }
.form-aside h3 { font-size: var(--text-md); margin-bottom: var(--space-4); }
.form-aside ul { list-style: none; padding: 0; margin: 0; }
.form-aside li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); color: var(--color-text-secondary); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
.form-aside li:last-child { border-bottom: none; }
.form-aside li::before { content: '\2713'; color: var(--color-primary); font-weight: 600; flex: none; }

/* ---------- Direct contact block ----------
   Stands in for the enquiry form while the site is served as plain static
   files with nothing behind it. Each channel is a full card rather than a
   line of text so the tap target clears the 24 px floor on a phone, and the
   value is the largest thing in the card because it is what gets copied out. */
.direct__lead { color: var(--color-text-secondary); margin-bottom: var(--space-6); }
.direct__channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.direct__card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none; color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.direct__card:hover { border-color: var(--color-primary); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.direct__card-label { font-size: var(--text-xs); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); }
.direct__card-value { font-size: var(--text-md); font-weight: 600; color: var(--color-primary); overflow-wrap: anywhere; }
.direct__card-note { font-size: var(--text-sm); color: var(--color-text-secondary); }
/* The "what to tell us" list. It began inside the direct-contact block and now
   also stands on its own beside the region table on /contact/, so the box is a
   component in its own right and only the spacing is contextual. */
.checklist-card { padding: var(--space-6); background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.checklist-card h3 { font-size: var(--text-md); margin-bottom: var(--space-4); }
.checklist-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.checklist-card li { position: relative; padding-left: var(--space-6); font-size: var(--text-sm); color: var(--color-text-secondary); }
.checklist-card li::before {
  content: ''; position: absolute; left: 0; top: 6px;
  width: 13px; height: 7px;
  border-left: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
}
.direct .checklist-card { margin-top: var(--space-6); }
@media (max-width: 900px) { .direct__channels { grid-template-columns: 1fr; } }

/* ---------- Page header ---------- */
.page-head { background: var(--color-bg); border-bottom: 1px solid var(--color-border); padding: var(--space-12) 0 var(--space-10); }
.page-head h1 { font-size: clamp(1.5rem, 5.6vw, var(--text-3xl)); max-width: 40ch; }
.page-head__lead { font-size: var(--text-lg); color: var(--color-text-secondary); margin-top: var(--space-5); max-width: 62ch; }
.page-head__meta { margin-top: var(--space-5); }

/* two-column content layout
   Column ratios live here as modifier classes, never as inline styles on the
   element: an inline grid-template-columns outranks the media query below and
   would keep these blocks two-column on a phone. */
.layout-aside { display: grid; grid-template-columns: 280px 1fr; gap: var(--space-12); align-items: start; }
.layout-aside--half { grid-template-columns: 1fr 1fr; gap: var(--space-16); }
.layout-aside--faq { grid-template-columns: 1fr 1.4fr; gap: var(--space-16); }
.layout-aside--media { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 960px) {
  .layout-aside,
  .layout-aside--half,
  .layout-aside--faq,
  .layout-aside--media { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
}
.side-nav { position: sticky; top: calc(var(--header-h) + var(--space-4)); }
.side-nav .side-nav__title { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); margin: 0 0 var(--space-2); font-weight: 600; }
.side-nav ul { list-style: none; padding: 0; margin: 0 0 var(--space-2); }
.side-nav li { margin: 0; }
.side-nav a {
  display: block; padding: 4px var(--space-3); margin-left: calc(-1 * var(--space-3));
  border-left: 2px solid transparent; font-size: var(--text-sm); color: var(--color-text-secondary); border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}
.side-nav a:hover { background: var(--color-bg); color: var(--color-text); text-decoration: none; }
.side-nav a.is-current { border-left-color: var(--color-primary); color: var(--color-primary); font-weight: 500; }
/* Colour hierarchy (matches the top nav): product lines are brand green with
   the current line on a soft green pill; group titles shrink to small grey
   caps; leaves sit indented on a pale green rail. */
.side-nav ul.side-nav__lines a { color: var(--color-primary); font-weight: 500; }
.side-nav ul.side-nav__lines a:hover { background: var(--color-primary-soft); color: var(--color-primary-hover); }
.side-nav ul.side-nav__lines a.is-current {
  border-left-color: transparent; background: var(--color-primary-soft);
  color: var(--color-primary); border-radius: var(--radius-sm);
}
.side-nav a[data-nav-parent] {
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--color-text-muted); font-weight: 500; padding-top: 6px; padding-bottom: 6px;
}
.side-nav a[data-nav-parent]:hover { background: transparent; color: var(--color-primary); }
.side-nav ul.side-nav__sub { border-left: 2px solid var(--color-primary-line); }
/* Nested format tree under each material on category pages. A leaf without a
   product page is greyed out and non-clickable, never a dead link. */
/* Two classes needed to out-rank `.side-nav ul { padding: 0 }` above — a bare
   `.side-nav__sub` loses the specificity fight and the indent silently dies. */
.side-nav ul.side-nav__sub { list-style: none; padding: 2px 0 2px var(--space-4); margin: 0 0 var(--space-1); }
/* Leaf spans (items without a product page, and parents like 100-well) must
   align flush with the <a> rows: same padding + same negative left margin.
   Without the margin they sit --space-3 further right than every link. */
.side-nav__leaf { display: block; padding: 4px var(--space-3); margin-left: calc(-1 * var(--space-3)); font-size: var(--text-sm); color: var(--color-text-secondary); }
.side-nav__leaf.is-disabled { color: var(--color-text-muted); opacity: .75; cursor: default; }
/* Material sections on the right; each product card carries id="prod-<slug>". */
.cat-group { scroll-margin-top: calc(var(--header-h) + var(--space-4)); margin-bottom: var(--space-10); }
.cat-group__title { font-size: var(--text-lg); margin-bottom: var(--space-3); }
.cat-group__note { font-size: var(--text-sm); margin-bottom: var(--space-4); }
@keyframes cardFlash {
  0%   { box-shadow: 0 0 0 2px var(--color-primary); border-color: var(--color-primary); }
  100% { box-shadow: var(--shadow-sm); border-color: var(--color-border); }
}
.card.is-flash { animation: cardFlash 1.3s ease; border-color: var(--color-primary); }
@media (max-width: 960px) {
  /* the -12px overhang that aligns the desktop list to the container edge
     would push the full-width phone list 12px past the viewport */
  .side-nav { position: static; }
  .side-nav a, .side-nav__leaf { margin-left: 0; padding-left: 0; }
}

/* utility */
.placeholder-badge {
  position: absolute; top: var(--space-3); left: var(--space-3); z-index: 2;
  background: var(--amber-100); color: var(--amber-600); border: 1px solid var(--amber-border);
  border-radius: var(--radius-xs); padding: 2px 8px; font-size: var(--text-xs); font-weight: 500;
}
.media-frame { position: relative; }

/* ---------- Product gallery (product detail page) ----------
   One horizontal scroll-snap track holds every shot at 100% width: touch
   users swipe, and once site.js mounts (.gallery--on) everyone gets
   prev/next buttons plus a clickable thumb strip that stays in sync.
   Without JS the track still scrolls natively, so no image is locked away. */
.gallery { position: relative; }
.gallery__track {
  display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory;
  border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-surface);
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
/* contain, never crop — a product shot cut 25% off is not a silent decision */
.gallery__slide img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.gallery__btn {
  display: none;
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text); cursor: pointer;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), color var(--transition);
}
.gallery--on .gallery__btn { display: flex; }
.gallery__btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.gallery__btn--prev { left: var(--space-3); }
.gallery__btn--next { right: var(--space-3); }
.gallery__btn svg { width: 18px; height: 18px; }
.gallery__thumbs {
  display: flex; gap: var(--space-2); margin-top: var(--space-3);
  overflow-x: auto; padding-bottom: var(--space-1);
  scrollbar-width: thin;
}
.gallery__thumb {
  flex: 0 0 auto; width: 68px; height: 68px; padding: 0;
  border: 2px solid var(--color-border); border-radius: var(--radius-sm);
  background: var(--color-surface); cursor: pointer; overflow: hidden;
  transition: border-color var(--transition);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { border-color: var(--color-primary-line); }
.gallery__thumb.is-active { border-color: var(--color-primary); }
/* The full model cross-reference, folded. The rows stay in the HTML — readable
   without JavaScript and still indexable — they are just not unrolled before the
   visitor has picked anything. */
.finder__full { margin-top: var(--space-5); border-top: 1px solid var(--color-border); padding-top: var(--space-3); }
.finder__full > summary {
  cursor: pointer; font-size: var(--text-sm); font-weight: 600; color: var(--color-primary);
  padding: var(--space-2) 0; min-height: 44px; display: flex; align-items: center;
}
.finder__full > summary:hover { text-decoration: underline; }
/* On-image declaration for generated scenes (see media() in components.mjs).
   Bottom-left so it never collides with the amber placeholder badge at top-left. */
.media-flag {
  position: absolute; left: var(--space-3); bottom: var(--space-3); z-index: 2;
  background: rgba(17, 32, 28, 0.72); color: #FFFFFF;
  border-radius: var(--radius-xs); padding: 3px 8px;
  font-size: var(--text-xs); line-height: 1.35; max-width: calc(100% - var(--space-6));
}
.notice {
  display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm); font-size: var(--text-sm);
  background: var(--amber-100); border: 1px solid var(--amber-border); color: #6B4405;
}
.notice--neutral { background: var(--color-bg); border-color: var(--color-border); color: var(--color-text-secondary); }
/* A notice that carries its own action button next to the copy */
.notice--split { display: grid; grid-template-columns: 1fr auto; gap: var(--space-8); align-items: center; padding: var(--space-8); }
@media (max-width: 720px) { .notice--split { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); padding: var(--space-5); } }
.notice strong { color: inherit; }
.card__caption { margin: 0; padding: var(--space-3) var(--space-4) var(--space-4); font-size: var(--text-sm); color: var(--color-text-secondary); }
.muted { color: var(--color-text-muted); }
.table-note { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); max-width: 76ch; }
/* A menu / list entry that has no page behind it. Rendered as text rather than a
   link so nothing in the navigation leads to a 404 while the subcategory page is
   still to be written. */
.item-plain { color: var(--color-text); font-weight: 600; }
.pending-val { color: var(--color-text-muted); font-style: italic; }
.divider { height: 1px; background: var(--color-border); margin: var(--space-10) 0; border: 0; }
.prose h2 { font-size: var(--text-xl); margin: var(--space-10) 0 var(--space-4); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--text-lg); margin: var(--space-8) 0 var(--space-3); }
.prose ul { color: var(--color-text-secondary); }
.prose p { color: var(--color-text-secondary); }

/* A list of links used as navigation inside a content block.
   The link is the target, so on phones each row must be thumb-sized. */
.link-list { list-style: none; padding: 0; font-size: var(--text-sm); }
.link-list li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-dark-surface); color: var(--green-100); padding: var(--space-10) 0 var(--space-8); }
.site-footer a { color: var(--green-100); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.4fr; gap: var(--space-10); }
@media (max-width: 1080px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: var(--space-8); } }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__sub { color: var(--green-300); }
.site-footer .brand__mark { background: rgba(255,255,255,0.14); }
/* White chip under the footer logo: the mark is green, the footer is green,
   and green-on-green at 30px is a smudge. Solid white, slight radius. */
.brand__mark--chip { background: #fff; width: 40px; height: 40px; border-radius: var(--radius-md); }
.brand__mark--chip img { width: 30px; height: 30px; object-fit: contain; display: block; }
.footer-blurb { font-size: var(--text-sm); color: var(--green-200); max-width: 40ch; margin-top: var(--space-4); line-height: 1.6; }
.footer-social { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
/* Brand glyphs, not words: same 24px tap-target floor as every other link
   in the footer, met here by button size rather than text padding. */
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  color: var(--green-200);
}
.footer-social a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-col .footer-col__title { font-size: var(--text-sm); color: #fff; margin: 0 0 var(--space-4); font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--space-2); }
.footer-col a { font-size: var(--text-sm); color: var(--green-200); }
.footer-contact { list-style: none; padding: 0; margin: 0; font-size: var(--text-sm); }
.footer-contact li { margin-bottom: var(--space-3); color: var(--green-200); }
.footer-contact .label { display: block; font-size: var(--text-xs); color: var(--green-300); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 2px; }
.footer-bottom {
  margin-top: var(--space-12); padding-top: var(--space-6); border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; justify-content: space-between;
  font-size: var(--text-xs); color: var(--green-300);
}
/* Trademark / compatibility disclaimer. Sits above the copyright row so it reads
   as a statement about the whole site rather than a footnote to the links below. */
.footer-notices {
  margin: var(--space-8) 0 0; max-width: 78ch;
  font-size: var(--text-xs); line-height: 1.6; color: var(--green-300); opacity: 0.9;
}
.footer-notices p { margin: 0; }
.footer-notices p + p { margin-top: var(--space-2); }
.footer-notices + .footer-bottom { margin-top: var(--space-6); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.footer-bottom a { color: var(--green-300); }
.footer-newsletter { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.footer-newsletter input { min-height: 40px; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: #fff; }
.footer-newsletter input::placeholder { color: var(--green-300); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; background: var(--color-surface);
  border-top: 1px solid var(--color-border); box-shadow: 0 -4px 20px rgba(16,22,20,0.1);
  padding: var(--space-5) 0; display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner__inner { display: flex; gap: var(--space-6); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie-banner p { margin: 0; font-size: var(--text-sm); color: var(--color-text-secondary); max-width: 70ch; }

/* ---------- Tables of contents on long pages ---------- */
.toc { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-5); }
.toc h4 { font-size: var(--text-sm); margin-bottom: var(--space-3); }
.toc ol { margin: 0; padding-left: var(--space-5); font-size: var(--text-sm); }
.toc a { color: var(--color-text-secondary); }

/* ---------- Sticky quote bar (mobile) ---------- */
.mobile-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 110;
  background: var(--color-surface); border-top: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-4); gap: var(--space-3);
}
.mobile-cta .btn { flex: 1; }
@media (max-width: 720px) { .mobile-cta { display: flex; } body { padding-bottom: 68px; } }

/* ==========================================================================
   Mobile — phone-specific behaviour
   Everything here is either (a) preventing a phone-only defect or (b) raising
   a control to a comfortable touch size. Nothing here changes desktop output.
   ========================================================================== */
@media (max-width: 720px) {
  /* iOS Safari zooms the whole page when a focused control renders below 16px.
     That is fatal on the quote form, so form controls get 16px on phones. */
  select,
  input[type=text], input[type=email], input[type=tel], input[type=number],
  textarea { font-size: 16px; }
  /* the file picker renders as a ~25px tall control unless given a height */
  input[type=file] { min-height: 44px; font-size: var(--text-base); width: 100%; }
  input[type=file]::file-selector-button {
    min-height: 38px; margin-right: var(--space-3); padding: 0 var(--space-4);
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    background: var(--color-surface); color: var(--color-text); font: inherit; cursor: pointer;
  }

  /* Touch targets. Inline links inside running text are deliberately left
     alone — WCAG excludes targets in a sentence. */
  .brand { min-height: 44px; }
  .brand__sub { font-size: var(--text-xs); }
  .btn-sm { height: 44px; }
  .link-arrow { min-height: 44px; }
  .footer-col a,
  .footer-bottom a { display: flex; align-items: center; min-height: 44px; }
  .footer-col li { margin-bottom: 0; }
  .side-nav a { min-height: 44px; display: flex; align-items: center; }
  .drawer details a { min-height: 44px; display: flex; align-items: center; }
  .checkbox { align-items: center; min-height: 44px; }
  .checkbox input { width: 24px; height: 24px; }
  .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
  /* Links that carry the navigation inside a content block or a table cell:
     the whole row becomes the target, not the 16px line box. */
  .link-list li { margin-bottom: 0; }
  .link-list a,
  .card__title a,
  table.data th a,
  table.data td a { display: inline-flex; align-items: center; min-height: 44px; }

  /* Consent banner: compact, stackable, and it never covers the quote bar. */
  .cookie-banner { padding: var(--space-4) 0; max-height: 60vh; overflow-y: auto; }
  .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: var(--space-4); }
  .cookie-banner p { font-size: var(--text-xs); line-height: 1.55; }
  .cookie-banner .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
  .cookie-banner .btn-row .btn { width: 100%; padding: 0 var(--space-3); }
  body.consent-pending .mobile-cta { display: none; }
  body.consent-pending { padding-bottom: 0; }
}

/* Very narrow phones (iPhone SE class, 320-360px) */
@media (max-width: 380px) {
  .header-actions .btn { padding: 0 var(--space-3); }
  .brand__name { font-size: var(--text-base); }
  .brand__logo { height: 24px; max-width: 84px; }
  .mobile-cta { flex-direction: column; }
  /* `flex: 1` is harmless while the bar is a row — the main axis is horizontal,
     so it only splits the width. Stacked, the main axis is vertical and the
     same shorthand sets flex-basis: 0% on the *height*, overriding height: 44px
     and collapsing both buttons to a 17px text line. So when the bar stacks,
     the buttons go back to a fixed height. */
  .mobile-cta .btn { flex: none; width: 100%; }
  /* Two stacked rows instead of one: 12 padding + 44 + 12 gap + 44 + 12.
     Without this the bar covers the last of the page. */
  body { padding-bottom: 124px; }
}

/* The header tagline is decorative and long; below this width it squeezes the
   logo and the menu button, so it goes. The brand name stays. */
@media (max-width: 900px) {
  .site-header .brand__sub { display: none; }
  .site-header .brand__logo { height: 28px; max-width: 108px; }
}
