/* ===========================================================================
   DEKS UK — shared components
   Mobile-first: base rules are the small-screen layout, min-width queries add
   the desktop layout. Visual language inherited from the DEKS US artifact:
   square corners, 2px functional borders, flat colour, gold on navy as the
   brand moment, IBM Plex Mono for anything a trade customer reads as data
   (part numbers, sizes, loads, dimensions).
   =========================================================================== */

/* --- Icons -----------------------------------------------------------
   Font Awesome Pro 7 sharp-solid, inlined as SVG rather than loaded as a
   webfont or kit script: these templates have to open from disk and render on
   the design canvas, and neither can fetch a kit. Every glyph inherits
   currentColor and is sized by CSS, so swapping one is a path swap.
   Licensed under the client's Font Awesome Pro kit (9ae5bf3f7d). */
.fa { width: 1em; height: 1em; display: inline-block; fill: currentColor; vertical-align: -.125em; flex: 0 0 auto; }
.fa-caret { width: .62em; height: .62em; }

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

/* [hidden] is only a default of display:none, so any class setting display
   overrides it. Several components here do. Make the attribute authoritative. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--c-white);
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--c-ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-blue); }
a:hover { color: var(--c-blue-hover); }

img, svg { max-width: 100%; }

[id] { scroll-margin-top: 96px; }

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -.03em; line-height: 1.08; color: var(--c-navy); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

/* Focus is two-tone: no single palette colour clears 3:1 on both white and navy. */
:focus-visible {
  outline: 3px solid var(--c-navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--c-white);
}
.on-dark :focus-visible,
.bg-navy :focus-visible {
  outline-color: var(--c-white);
  box-shadow: 0 0 0 6px var(--c-navy);
}

/* Visually hidden, still announced. */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--c-navy); color: var(--c-white);
  padding: 14px 20px; font-weight: 700; text-decoration: none;
}
.skip:focus { left: 0; color: var(--c-white); }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* --- Layout helpers --------------------------------------------------- */
.wrap    { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.sec     { padding-block: var(--sec-y); }
.sec-lg  { padding-block: var(--sec-y-lg); }
.sec-tight { padding-block: clamp(20px, 3vw, 36px); }
.bg-navy { background: var(--c-navy); color: var(--c-on-dark); }
.bg-surface { background: var(--c-surface); }
.bg-navy h1, .bg-navy h2, .bg-navy h3,
.pagehead h1, .pagehead h2, .pagehead h3 { color: var(--c-white); }
.rule-top { border-top: var(--rule-w) solid var(--c-rule); }
.rule-bot { border-bottom: var(--rule-w) solid var(--c-rule); }

.sec-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: baseline; margin-bottom: clamp(18px, 2.4vw, 28px); }
.sec-head h2 { font-size: var(--t-h2); margin: 0; }
.sec-head .sec-link { margin-left: auto; color: var(--c-red); font-weight: 700; font-size: 15px; text-decoration: none; }
.sec-head .sec-link:hover { color: var(--c-navy); }

.lead { font-size: var(--t-lead); line-height: 1.6; color: var(--c-muted); max-width: 64ch; }
/* White rather than the softer on-dark grey: body copy on navy is the one
   place the extra contrast is worth spending. */
.bg-navy .lead,
.pagehead .lead,
.heritage .lead,
.lead-dark { color: var(--c-white); }

/* Eyebrow: mono, tracked, uppercase. Inherited from the US artifact, where it
   signals "this is spec data" rather than decorating the heading. */
.eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--c-muted); display: block;
}
/* On navy the muted ink lands around 2.3:1. Gold on navy is 8.60:1 and is the
   palette's strongest pairing, so the eyebrow takes it on every dark ground —
   listed explicitly because .pagehead and .heritage paint navy themselves
   rather than carrying .bg-navy. */
.bg-navy .eyebrow,
.pagehead .eyebrow,
.heritage .eyebrow,
.eyebrow-dark { color: var(--c-gold); }

/* Product codes only. Part numbers, and nothing else — not phone numbers,
   not dimensions, not dates. Dimensions use .fig, which is Inter with
   tabular figures so columns still align. */
.code { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 500; }
.fig  { font-variant-numeric: tabular-nums; }

/* --- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--ctl-lg); padding: 0 28px;
  font-family: var(--font-sans); font-weight: 700; font-size: 17px;
  text-decoration: none; border: 0; cursor: pointer; border-radius: var(--radius);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sm { min-height: var(--ctl); padding: 0 22px; font-size: 16px; }
.btn-xs { min-height: var(--ctl-sm); padding: 0 18px; font-size: 15px; }

.btn-primary { background: var(--c-red); color: var(--c-white); }
.btn-primary:hover { background: var(--c-navy); color: var(--c-white); }
/* On a navy ground the navy hover makes the button vanish into the page.
   Anywhere dark, a primary button inverts to white with navy text instead. */
.site-footer .btn-primary:hover,
.bg-navy .btn-primary:hover,
.pagehead .btn-primary:hover,
.heritage .btn-primary:hover { background: var(--c-white); color: var(--c-navy); }

/* On navy, red drops to 2.93:1 against the ground — gold takes over. */
.btn-gold { background: var(--c-gold); color: var(--c-navy); }
.btn-gold:hover { background: var(--c-white); color: var(--c-navy); }

.btn-ghost-dark { border: var(--border-w) solid var(--c-white); color: var(--c-white); background: transparent; }
.btn-ghost-dark:hover { background: var(--c-white); color: var(--c-navy); }

.btn-ghost { border: var(--border-w) solid var(--c-navy); color: var(--c-navy); background: transparent; }
.btn-ghost:hover { background: var(--c-navy); color: var(--c-white); }

.btn-ghost-red { border: var(--border-w) solid var(--c-red); color: var(--c-red); background: transparent; }
.btn-ghost-red:hover { background: var(--c-red); color: var(--c-white); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* The chevron is the logo's own device, reused for direction. */
.chev::after { content: '\276F'; font-size: .85em; }

.link-arrow { color: var(--c-red); font-weight: 700; text-decoration: none; }
.link-arrow:hover { color: var(--c-navy); }

/* --- Image slots ------------------------------------------------------
   Photography is out of scope. Every slot is labelled and countable so an
   image audit can be scoped straight off these pages. In brand mode they read
   as photography slots; in wireframe mode as dashed frames. */
.img {
  position: relative; overflow: hidden; display: block;
  background: var(--c-surface-2) url("assets/placeholder-image.png") center / cover no-repeat;
}
/* Once a real image is dropped in, the slot carries it and the recommendation
   label comes off — the note is scaffolding, not part of the design. */
.img[data-filled="true"] { background-image: var(--slot-img); }
.img[data-filled="true"]::after { content: none; }
.img-dark { background-color: var(--c-navy-raised); }
.img::after {
  content: attr(data-img);
  position: absolute; inset: 0; padding: 8px;
  display: grid; place-items: start end; text-align: right;
  font-size: 10px; font-weight: 600; line-height: 1.5;
  color: var(--c-border); pointer-events: none;
}
html[data-mode="wireframe"] .img::after { border: 1px dashed var(--c-border); }

.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-1-1 { aspect-ratio: 1 / 1; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-3-4 { aspect-ratio: 3 / 4; }

/* --- Header ----------------------------------------------------------- */
.site-header { background: var(--c-white); border-bottom: var(--rule-w) solid var(--c-rule); position: sticky; top: 0; z-index: 100; }

.util { display: none; }
@media (min-width: 1081px) {
  .util {
    display: flex; align-items: center; gap: 20px; justify-content: flex-end;
    padding: 8px var(--gutter); background: var(--c-surface);
    border-bottom: var(--rule-w) solid var(--c-rule);
    font-size: var(--t-micro); color: var(--c-muted);
  }
  .util > :first-child { margin-right: auto; }
  .util a { color: var(--c-blue); font-weight: 600; text-decoration: none; }
}

.bar { display: flex; align-items: center; gap: 16px; padding: 12px var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand img { height: clamp(34px, 3.6vw, 42px); width: auto; display: block; }
.brand span {
  font-weight: 700; font-size: clamp(10px, 1vw, 12px); letter-spacing: .12em;
  text-transform: uppercase; color: var(--c-muted); line-height: 1.3;
}

.mainnav { display: none; }
.deskcta { display: none; }

.icon-btn {
  display: grid; place-items: center; width: var(--tap); height: var(--tap);
  background: transparent; border: 0; padding: 0; cursor: pointer; color: var(--c-navy);
}
.icon-btn:hover { background: var(--c-navy); color: var(--c-white); }
.icon-btn svg { width: 19px; height: 19px; }
.burger { margin-left: auto; background: var(--c-navy); color: var(--c-white); }

.mobcta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 var(--gutter) 12px; }
.mobcta a { min-height: 48px; font-size: 15px; padding: 0 12px; }

.searchbar { border-top: var(--rule-w) solid var(--c-rule); background: var(--c-surface); padding: 14px var(--gutter); }
.searchbar form { max-width: var(--max); margin: 0 auto; display: flex; gap: 10px; }
.searchbar input {
  flex: 1; min-width: 0; height: var(--ctl); padding: 0 16px;
  border: var(--rule-w) solid var(--c-rule); background: var(--c-white);
  font-family: var(--font-sans); font-size: 16px; color: var(--c-navy);
}
.searchbar input:focus { border-color: var(--c-navy); }

.drawer { display: none; border-top: var(--rule-w) solid var(--c-rule); background: var(--c-white); }
.drawer[data-open="true"] { display: block; }
.drawer a { display: block; padding: 14px var(--gutter); color: var(--c-navy); text-decoration: none; font-weight: 600; border-bottom: var(--rule-w) solid var(--c-rule); }
.drawer .sub a { padding-left: calc(var(--gutter) + 18px); font-weight: 400; color: var(--c-ink); font-size: 15px; }
.drawer .grp { padding: 14px var(--gutter) 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--c-muted); }

@media (min-width: 1081px) {
  .burger, .mobcta, .drawer { display: none !important; }
  .mainnav { display: flex; gap: clamp(16px, 2vw, 28px); align-items: stretch; margin-left: 12px; align-self: stretch; }
  .navitem { position: relative; display: flex; align-items: stretch; }
  /* Full-height target: with a padded inline link, the gap between the text
     and the bottom of the bar dropped the hover and closed the panel. */
  .navitem > a {
    display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 500;
    color: var(--c-navy); text-decoration: none; white-space: nowrap;
    border-bottom: 3px solid transparent; padding: 0; margin: 0 0 -1px;
  }
  .bar { align-items: stretch; padding-block: 0; }
  .bar > .brand, .bar > .deskcta { align-items: center; padding-block: 12px; }
  .navitem[aria-current] > a, .navitem:hover > a, .navitem:focus-within > a { border-bottom-color: var(--c-red); font-weight: 700; }
  /* Flush to the bar: no bridging padding needed now the nav item is full
     height, and a 1px overlap kills any sub-pixel seam. */
  .dropdown { display: none; position: absolute; top: calc(100% - 1px); left: -14px; padding-top: 0; z-index: 60; min-width: 272px; }
  .navitem:hover .dropdown, .navitem:focus-within .dropdown { display: block; }
  .dropdown > * { display: block; background: var(--c-white); border: var(--rule-w) solid var(--c-rule); border-top: 0; box-shadow: 0 18px 40px rgba(27,40,50,.16); }
  .dropdown a { display: block; padding: 12px 18px; font-size: 15px; font-weight: 500; color: var(--c-navy); text-decoration: none; border-bottom: var(--rule-w) solid #EDEFF2; }
  .dropdown a:hover { background: var(--c-surface); color: var(--c-red); }
  .deskcta { display: flex; align-items: center; gap: clamp(10px, 1.4vw, 18px); margin-left: auto; flex: 0 0 auto; }
  .tel { display: inline-flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; color: var(--c-navy); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; padding: 6px 0 3px; }
  .tel:hover { border-bottom-color: var(--c-red); color: var(--c-navy); }
  .tel svg { width: 15px; height: 15px; color: var(--c-red); }
}

/* --- Mega-menu ---------------------------------------------------------
   Sidebar is top-level categories only, so the panel height is five rows
   rather than five nested lists. Ranges and products sit in the panel. */
.mega { display: none; }
@media (min-width: 1081px) {
  .navitem.has-mega { position: static; }
  .navitem > a { position: relative; }
  .navitem > a::after {
    content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 16px;
  }
  .mega {
    position: absolute; left: 0; right: 0; top: calc(100% - 1px); z-index: 70;
    background: var(--c-white); border-top: var(--rule-w) solid var(--c-rule);
    border-bottom: var(--border-w) solid var(--c-navy);
    box-shadow: 0 24px 48px rgba(27,40,50,.18);
  }
  .navitem.has-mega:hover .mega,
  .navitem.has-mega:focus-within .mega { display: block; }
  .mega-inner {
    max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
    display: grid; grid-template-columns: 268px minmax(0, 1fr);
  }
  .mega-side { padding: 22px 28px 26px 0; border-right: var(--rule-w) solid var(--c-rule); }
  .mega-cat {
    display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px;
    font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--c-navy);
    text-decoration: none; border-left: 3px solid transparent;
  }
  .mega-arrow { margin-left: auto; width: 11px; height: 11px; opacity: 0; color: var(--c-red); }
  .mega-cat:hover, .mega-cat[data-active="true"] {
    background: var(--c-surface); border-left-color: var(--c-red); color: var(--c-navy);
  }
  .mega-cat[data-active="true"] .mega-arrow { opacity: 1; }
  .mega-all {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; padding: 10px 12px;
    font-size: 14px; font-weight: 700; color: var(--c-red); text-decoration: none;
  }
  .mega-all:hover { color: var(--c-navy); }

  .mega-panel { padding: 22px 0 26px 32px; display: grid; grid-template-columns: minmax(0,1fr) 272px; gap: 32px; align-items: start; }
  .mega-group { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 32px; }
  .mega-group[hidden] { display: none; }
  .mega-col { display: flex; flex-direction: column; }
  .mega-col > a, .mega-prods a {
    padding: 7px 0; font-size: 15px; color: var(--c-navy); text-decoration: none;
    border-bottom: var(--rule-w) solid #EDEFF2;
  }
  .mega-col > a:hover, .mega-prods a:hover { color: var(--c-red); }
  .mega-col .eyebrow { margin-bottom: 8px; }
  .mega-prods { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 28px; }
  .mega-more { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--c-red); border-bottom: 0 !important; }
  .mega-more:hover { color: var(--c-navy); }
  .mega-feature { grid-column: 2; grid-row: 1; border: var(--rule-w) solid var(--c-rule); text-decoration: none; display: block; }
  .mega-feature:hover { border-color: var(--c-navy); }
  .mega-feature-body { display: block; padding: 15px 17px 17px; }
  .mega-feature-body strong { display: block; font-size: 17px; color: var(--c-navy); margin-top: 6px; line-height: 1.25; }
  .mega-feature-body .chev { display: inline-flex; gap: 8px; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--c-red); }
}

/* --- Breadcrumb ------------------------------------------------------- */
.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: var(--t-small); color: var(--c-muted); }
.crumb a { color: inherit; text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb .sep { color: var(--c-red); }
.crumb [aria-current] { color: var(--c-navy); font-weight: 600; }
/* Dark-ground variant, set explicitly rather than inherited from an ancestor
   class — .pagehead and .stockhead paint navy without carrying .bg-navy, which
   is how the muted ink ended up at roughly 2.3:1 on the category pages. */
.crumb-dark { color: var(--c-on-dark); }
.crumb-dark .sep { color: var(--c-gold); }
.crumb-dark a { color: var(--c-on-dark); }
.crumb-dark a:hover { color: var(--c-gold); }
.crumb-dark [aria-current] { color: var(--c-white); }

/* --- Page head (navy) ------------------------------------------------- */
.pagehead { background: var(--c-navy); padding: clamp(20px,3vw,32px) var(--gutter) clamp(28px,4vw,44px); }
.pagehead h1 { font-size: var(--t-h1); color: var(--c-white); margin: 18px 0 0; }
.pagehead .lead { margin-top: 16px; }
.pagehead-grid { display: grid; gap: clamp(20px, 3vw, 44px); align-items: center; }
@media (min-width: 1081px) { .pagehead-grid { grid-template-columns: minmax(0,7fr) minmax(0,5fr); } }

/* Spec-at-a-glance — the four figures a trade customer checks first. */
.specstrip { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: #33475A; margin-top: clamp(22px,3vw,30px); }
@media (min-width: 760px) { .specstrip { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.specstrip > div { background: var(--c-navy); padding: 16px 18px; }
.specstrip dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-on-dark); margin: 0; }
.specstrip dd { margin: 6px 0 0; font-size: clamp(17px,2vw,21px); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--c-white); }

/* --- Chips / filters -------------------------------------------------- */
.chiprow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px var(--gutter); background: var(--c-surface); border-bottom: var(--rule-w) solid var(--c-rule); }
.chiprow .label { font-size: 11px; letter-spacing: .1em; font-weight: 700; text-transform: uppercase; color: var(--c-muted); }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px;
  background: var(--c-white); color: var(--c-navy); border: var(--rule-w) solid var(--c-border);
  font-family: var(--font-sans); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.chip:hover { border-color: var(--c-navy); color: var(--c-navy); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--c-navy); color: var(--c-white); border-color: var(--c-navy); }

.tag { display: inline-flex; align-items: center; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; padding: 6px 10px; background: var(--c-gold); color: var(--c-navy); }

/* --- Cards ------------------------------------------------------------ */
.grid { display: grid; gap: 20px; }
@media (min-width: 620px) { .grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 620px) { .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1081px) { .grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.card { border: var(--rule-w) solid var(--c-rule); display: flex; flex-direction: column; background: var(--c-white); }
.card:hover { border-color: var(--c-navy); }
.card .card-img { height: 190px; border-bottom: var(--rule-w) solid var(--c-rule); background-color: var(--c-white); }

/* Product card grids: 1 / 2 / 3 / 4 across — mobile, tablet, laptop, 1080p.
   The image is a fixed 4:3 that scales with the card width, never a fixed height. */
.grid-products { grid-template-columns: minmax(0,1fr); }
@media (min-width: 620px)  { .grid-products { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1081px) { .grid-products { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1600px) { .grid-products { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.grid-products .card .card-img, .grid-img-43 .card .card-img { height: auto; width: 100%; aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { display: block; font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: var(--c-navy); line-height: 1.15; text-decoration: none; }
.card-note { display: block; font-size: var(--t-small); color: var(--c-muted); line-height: 1.55; }

.speclist { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.speclist > div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; border-bottom: var(--rule-w) solid var(--c-rule); padding-bottom: 5px; }
.speclist > div:last-child { border-bottom: 0; }
.speclist span:first-child { color: var(--c-muted); }
.speclist span:last-child { color: var(--c-navy); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Full-bleed photographic tile with a title sitting in a scrim. */
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 260px; background: var(--c-navy-raised); text-decoration: none; overflow: hidden; }
.tile .img { position: absolute; inset: 0; }
.tile-body { display: block; position: relative; z-index: 2; padding: 22px; background: linear-gradient(transparent, rgba(27,40,50,.94)); }
.tile-title { display: block; font-weight: 800; font-size: var(--t-h3); letter-spacing: -.02em; line-height: 1.1; color: var(--c-white); transition: color .18s ease; }
.tile-note { display: block; font-size: var(--t-small); color: var(--c-on-dark); margin-top: 4px; }
.tile::after { content: ''; position: absolute; inset: 0; border: 3px solid var(--c-gold); opacity: 0; transition: opacity .18s ease; pointer-events: none; z-index: 3; }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; }
.tile:hover .tile-title { color: var(--c-gold); }

/* --- Rows (the alternative to another card grid) ---------------------- */
.row-item { display: grid; gap: clamp(16px, 2.4vw, 36px); align-items: center; padding: clamp(20px,2.6vw,28px) 0; border-bottom: var(--rule-w) solid var(--c-rule); }
@media (min-width: 1081px) { .row-item { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); } }
.row-item .img { height: clamp(200px, 22vw, 260px); }
.row-title { font-weight: 800; font-size: clamp(24px,3vw,32px); letter-spacing: -.025em; color: var(--c-navy); line-height: 1.1; text-decoration: none; display: block; }
.row-facts { display: flex; gap: clamp(18px,3vw,36px); align-items: center; margin-top: 18px; flex-wrap: wrap; }
.row-facts dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-muted); margin: 0; }
.row-facts dd { margin: 2px 0 0; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--c-navy); }
.row-facts .btn { margin-left: auto; }

/* --- Tables ----------------------------------------------------------- */
.table-scroll { overflow-x: auto; }
table.spec { width: 100%; border-collapse: collapse; font-size: 15px; }
table.spec caption { text-align: left; font-size: var(--t-small); color: var(--c-muted); padding-bottom: 10px; }
table.spec thead tr { background: var(--c-navy); color: var(--c-white); text-align: left; }
table.spec th { padding: 14px; font-size: 13px; font-weight: 700; white-space: nowrap; }
table.spec td { padding: 13px 14px; border-bottom: var(--rule-w) solid var(--c-rule); vertical-align: top; }
table.spec tbody tr:hover { background: var(--c-surface); }
table.spec .fig { font-variant-numeric: tabular-nums; color: var(--c-navy); white-space: nowrap; }
table.spec .code { color: var(--c-navy); white-space: nowrap; }

/* Mobile fallback: stacked cards, not horizontal scroll. A part number
   scrolled away from the size column it belongs to is useless. */
.table-cards { display: flex; flex-direction: column; gap: 12px; }
.table-cards > article { border: var(--rule-w) solid var(--c-rule); padding: 16px; }
.table-cards dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 10px 0 0; font-size: 14px; }
.table-cards dt { color: var(--c-muted); }
.table-cards dd { margin: 0; color: var(--c-navy); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
@media (min-width: 900px) { .table-cards { display: none; } }
.table-wide { display: none; }
@media (min-width: 900px) { .table-wide { display: block; } }

/* --- Forms ------------------------------------------------------------ */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: var(--t-small); font-weight: 700; color: var(--c-navy); }
.field .hint { font-size: 13px; color: var(--c-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; min-height: var(--ctl); padding: 12px 14px;
  border: var(--rule-w) solid var(--c-border); background: var(--c-white);
  font-family: var(--font-sans); font-size: 16px; color: var(--c-navy); border-radius: var(--radius);
}
/* The native chevron sits hard against the field edge and differs per OS.
   Replaced with the sharp-solid one, inset 14px, with room reserved for it. */
.field select, select {
  -webkit-appearance: none; appearance: none;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20512%20512%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M256.3%20429.3l214.6-214.6%2022.6-22.6-45.3-45.3-22.6%2022.6-169.4%20169.4-169.4-169.4-22.6-22.6-45.3%2045.3%2022.6%2022.6%20192%20192%2022.6%2022.6z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 11px 11px;
}
.field select::-ms-expand { display: none; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--c-navy); }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .form-grid .half { grid-column: span 1; } .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }

/* Errors never rely on colour: the error red and the brand red are 1.73:1
   apart and will not separate for anyone with red-deficient vision. */
.err { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--c-error); font-weight: 600; }
.err::before {
  content: ''; width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px;
  background: var(--c-error); -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20576%20512%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M560%20480L16%20480%20288-16%20560%20480zM260%20356l0%2056%2056%200%200-56-56%200zm-4-196l12.8%20160%2038.4%200%2012.8-160-64%200z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20576%20512%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M560%20480L16%20480%20288-16%20560%20480zM260%20356l0%2056%2056%200%200-56-56%200zm-4-196l12.8%20160%2038.4%200%2012.8-160-64%200z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}

/* --- Document rows ---------------------------------------------------- */
.doc { display: flex; align-items: center; gap: 14px; border-top: var(--rule-w) solid var(--c-rule); padding: 15px 0; text-decoration: none; flex-wrap: wrap; }
.doc:hover { background: var(--c-surface); }
.doc .fmt { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--c-white); background: var(--c-blue); padding: 5px 8px; }
.doc .name { flex: 1; min-width: 180px; font-size: 16px; color: var(--c-navy); font-weight: 600; line-height: 1.4; }
.doc .meta .more { color: var(--c-muted); font-weight: 600; }
.doc .meta { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--c-muted); }

/* --- Accreditation marks --------------------------------------------- */
.marks { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 16px; flex: 1; min-width: 240px; }
.marks span { height: 70px; border: 1px dashed var(--c-border); display: grid; place-items: center; font-size: 10px; font-weight: 600; color: var(--c-muted); text-align: center; padding: 4px; }

/* --- Split (two half-width panels) ------------------------------------ */
.split { display: grid; }
@media (min-width: 1081px) { .split { grid-template-columns: 1fr 1fr; } }
.split > * { padding: clamp(28px,4.4vw,56px) var(--gutter); }

/* --- Footer ----------------------------------------------------------- */
.site-footer { background: var(--c-navy); color: var(--c-on-dark); }
.site-footer .wrap { padding-top: clamp(36px,6vw,72px); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(24px,3vw,40px); align-items: start; }
.foot-grid h2 { font-weight: 700; font-size: var(--t-small); letter-spacing: .1em; text-transform: uppercase; color: var(--c-gold); margin: 0 0 16px; }
.foot-links { display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.foot-links a { color: var(--c-on-dark); text-decoration: none; }
.foot-links a:hover { color: var(--c-gold); }
.foot-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot-actions .btn { width: 100%; max-width: 260px; }
.site-footer address { font-style: normal; font-size: 15px; line-height: 1.8; color: var(--c-on-dark); }
.site-footer .foot-tel { display: block; font-size: 17px; font-weight: 600; color: var(--c-white); margin-top: 14px; text-decoration: none; }
.foot-base { margin-top: clamp(28px,4vw,56px); border-top: var(--rule-w) solid var(--c-ink); padding: 22px 0; display: flex; align-items: center; gap: clamp(14px,2vw,28px); flex-wrap: wrap; font-size: var(--t-small); }
.foot-base .legal { margin-left: auto; font-size: 13px; color: var(--c-border); }
.foot-base .mark { width: 64px; height: 34px; border: 1px dashed var(--c-border); display: grid; place-items: center; font-size: 9px; font-weight: 600; color: var(--c-on-dark); }

/* The band sits directly on the footer, so it needs the same hairline the
   footer uses internally or the two navy blocks merge into one. */
[data-block="becomeStockist"] > .wrap { border-bottom: var(--rule-w) solid var(--c-ink); }

/* --- Sticky mobile action bar (product pages) ------------------------- */
.stickybar { position: sticky; bottom: 0; z-index: 80; display: grid; grid-template-columns: 1fr; gap: 8px; padding: 10px var(--gutter); background: var(--c-white); border-top: var(--border-w) solid var(--c-navy); }
@media (min-width: 1081px) { .stickybar { display: none; } }

/* --- Accordion (native) ----------------------------------------------- */
details.acc { border-bottom: var(--rule-w) solid var(--c-rule); }
details.acc summary { cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px; color: var(--c-navy); list-style: none; display: flex; gap: 14px; align-items: center; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after {
  content: ''; margin-left: auto; width: 15px; height: 15px; flex: 0 0 auto;
  background: var(--c-red); -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20448%20512%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M256%2064l0-32-64%200%200%20192-192%200%200%2064%20192%200%200%20192%2064%200%200-192%20192%200%200-64-192%200%200-160z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20448%20512%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M256%2064l0-32-64%200%200%20192-192%200%200%2064%20192%200%200%20192%2064%200%200-192%20192%200%200-64-192%200%200-160z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}
details.acc[open] summary::after { -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20448%20512%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M0%20224l448%200%200%2064-448%200%200-64z%22%2F%3E%3C%2Fsvg%3E"); mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20448%20512%22%3E%3Cpath%20fill%3D%22currentColor%22%20d%3D%22M0%20224l448%200%200%2064-448%200%200-64z%22%2F%3E%3C%2Fsvg%3E"); }
details.acc .acc-body { padding: 0 0 18px; max-width: 72ch; color: var(--c-ink); }

/* --- Notice (used for ranges still in development) -------------------- */
.notice { display: flex; gap: 14px; align-items: flex-start; border-left: 4px solid var(--c-gold); background: var(--c-surface); padding: 18px 20px; font-size: 15px; }
.notice strong { color: var(--c-navy); }
