/* cl-site.css: Range Technology's tokens, fonts, reset and chrome (header, menu drawer, footer, the primary
   button), on every page, from their measurements (review/pages/home.json). cl-shop.css reads only these tokens,
   so the title band and the cart follow.

   The cascade (the kit's static/parts/tokens.css): `@layer base, kit, site;` below sets the order; the tokens sit
   on :root outside any layer, the reset in @layer base (under the kit's rules), every other rule in @layer site.
   The kit's shop pages and vehicle band take the site's brand colour and font from the --parts-* tokens alone: no
   rule here names a kit class.

   Two layouts: from 980px their desktop; below 980px their phone layout, measured in a 390px stage, so --u is
   1px on desktop and one stage pixel (100vw / 390) on phones. */
@layer base, kit, site;

/* their fonts (static/fonts/FONTS.md): Oswald, one variable file for 400 to 700, and Open Sans */
@font-face { font-family: "Oswald"; src: url("fonts/oswald-latin.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/opensans-normal-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/opensans-semibold.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/opensans-bold-latin.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* colours: their white page, black chrome and red; text stays full contrast, so their #444 text is near black */
  --site-bg: #FFFFFF;
  --site-fg: #222222;
  --site-muted: #222222;
  --site-line: #DDDDDD;
  --site-band: #F4F4F4;
  --site-card: #F7F7F7;
  --site-accent: #E1251B;
  --site-accent-fg: #FFFFFF;
  --site-dark: #000000;
  --site-shadow: 0 0 4px 0.5px rgba(0, 0, 0, 0.15);
  --site-field-bg: #FFFFFF;
  --site-button-bg: #000000;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #E1251B;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #E4E4E4;
  --site-disabled-fg: #222222;
  /* the chrome's own colours, each a token so the dark block below can turn it: the black header's and footer's
     white ink and rules, the search fields, the suggest panel, a photo's white plate */
  --site-ink: #000000;
  --site-dark-fg: #FFFFFF;
  --site-dark-rule: #E7E7E7;
  --site-dark-line: #333333;
  --site-field-fg: #000000;
  --site-field-line: #000000;
  --site-placeholder: #444444;
  --site-panel: #FFFFFF;
  --site-photo: #FFFFFF;
  --site-tile: #FFFFFF;
  --site-soft: #F8F8F8;
  --site-rule-mid: #9A9A9A;
  --site-go-bg: #777777;
  --site-go-fg: #000000;
  --site-plate: transparent;  /* under a tile's photo: none on the light page, a white plate on the dark one */

  /* fonts: Open Sans for the page and their menu, Oswald for headings, tiles and buttons */
  --site-font-body: "Open Sans", Verdana, Geneva, sans-serif;
  --site-font-heading: "Oswald", Verdana, Geneva, sans-serif;
  --site-font-button: "Oswald", Verdana, Geneva, sans-serif;

  /* shape and layout: square boxes, their 1312px content (64px gutters at 1440) */
  --site-radius: 0;
  --site-max: 1312px;

  /* the phone layout's unit: one phone-stage pixel (their 390px stage scaled to the screen) */
  --mx: calc(100vw / 390);
  /* the unit the chrome is written in: 1px on desktop, var(--mx) on phones */
  --u: 1px;
}
/* the kit's shop pages and vehicle band (storefront_kit/static/parts/tokens.css): only the brand tokens a site
   owns, drawn from the tokens above. Every other --parts-* default is the kit's counter look (storefront-kit ADR
   0007): never set one here. */
:root {
  --parts-accent: var(--site-accent);
  --parts-accent-strong: var(--site-accent);
  --parts-font: var(--site-font-body);
  /* the vehicle band: white with black ink, as their Find Your Parts row, a grey rule under it */
  --parts-band-bg: #FFFFFF;
  --parts-band-ink: #000000;
  --parts-band-edge: var(--site-line);
}
@media (max-width: 979.98px) {
  :root { --u: var(--mx); }
}
/* the dark page (storefront-kit 0.10.0: the kit's head block sets data-parts-theme="dark" from 21:30 to 04:30 by the
   shopper's clock, or on the shopper's pick): the kit's warm near black for the page, near-white text, dark grey
   rules, cards a step up; the header, the footer and the popular-parts row stay black, their red lifted a touch so
   it reads as text on the dark; photos keep their white plates */
:root[data-parts-theme="dark"] {
  color-scheme: dark;
  --site-bg: #121110;
  --site-fg: #F6F3EF;
  --site-muted: #F6F3EF;
  --site-line: #3D3833;
  --site-band: #1C1A18;
  --site-card: #1C1A18;
  --site-accent: #EA3A30;
  --site-accent-fg: #FFFFFF;
  --site-dark: #000000;
  --site-shadow: 0 0 0 1px #3D3833;
  --site-field-bg: #1C1A18;
  --site-button-bg: #F6F3EF;
  --site-button-fg: #121110;
  --site-button-hover-bg: #EA3A30;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #EBE6E0;
  --site-ink: #F6F3EF;
  --site-dark-fg: #FFFFFF;
  --site-dark-rule: #3D3833;
  --site-dark-line: #333333;
  --site-field-fg: #F6F3EF;
  --site-field-line: #3D3833;
  --site-placeholder: #DDD7CF;
  --site-panel: #1C1A18;
  --site-photo: #FFFFFF;
  --site-tile: #1C1A18;
  --site-soft: #1C1A18;
  --site-rule-mid: #6B635B;
  --site-go-bg: #777777;
  --site-go-fg: #000000;
  --site-plate: #FFFFFF;
  --cs-muted: var(--site-fg);
  --parts-band-bg: #121110;
  --parts-band-ink: #F6F3EF;
  --parts-band-edge: #3D3833;
}

@layer base {

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--site-bg); }
body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-fg);
  font: 400 16px/1.5 var(--site-font-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-weight: inherit; font-size: inherit; }
ul, ol { list-style: none; }
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
.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; }

}

@layer site {

/* ---------- the primary button: their red, Oswald caps ---------- */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  background: var(--site-accent); color: var(--site-accent-fg); border: 0; border-radius: var(--site-radius);
  font: 500 16px/1 var(--site-font-button); text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: filter 0.2s ease;
}
.cl-btn:hover { filter: brightness(1.1); }
.cl-btn:focus-visible { outline: 2px solid var(--site-fg); outline-offset: 2px; }

/* ---------- header: the 92px black bar, its rule, the 48px menu row (their Shop by vehicle box left out: the kit's
   band sits under the header, so the search takes the box's place) ---------- */
.cl-hd { position: relative; z-index: 50; background: var(--site-dark); color: var(--site-dark-fg); }
.cl-hd__top { height: 93px; padding: 0 32px; display: flex; align-items: center; border-bottom: 1px solid var(--site-dark-rule); }
.cl-hd__logo { flex: none; width: 275px; display: flex; align-items: center; }
.cl-hd__logo img { width: auto; height: 50px; }
.cl-hd__toggle { display: none; }
.cl-hd__find { flex: 0 1 899px; min-width: 0; margin: 0 24px 0 77px; position: relative; }
.cl-hd__search { display: flex; height: 44px; background: var(--site-field-bg); border: 1px solid var(--site-field-line); border-radius: var(--site-radius); }
.cl-hd__search input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; border-radius: var(--site-radius); background: var(--site-field-bg); color: var(--site-field-fg);
  font: 400 16px/1 var(--site-font-body); }
.cl-hd__search input::placeholder { color: var(--site-placeholder); }
.cl-hd__search input:focus { outline: 2px solid var(--site-accent); outline-offset: -2px; }
.cl-hd__search button { flex: none; width: 64px; display: flex; align-items: center; justify-content: center; color: var(--site-field-fg); }
.cl-hd__tools { flex: none; display: flex; align-items: center; gap: 12px; margin-left: auto; margin-right: -4px; }
.cl-hd__account, .cl-hd__cart { flex: none; position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--site-dark-fg); }
.cl-hd__account:hover, .cl-hd__cart:hover { color: var(--site-accent); }
/* the kit's theme switch (parts/theme_switch.html, 40px square, currentColor) between the account and the cart, in the bar's white */
.cl-hd__tools .parts-theme-switch { flex: none; color: var(--site-dark-fg); }
.cl-hd__tools .parts-theme-switch:hover { color: var(--site-accent); }
.cl-hd__cart-count { position: absolute; top: -2px; right: -8px; min-width: 18px; padding: 0 4px; font: 600 12px/18px var(--site-font-body); text-align: center;
  border-radius: 9px; background: var(--site-accent); color: var(--site-accent-fg); }
.cl-hd__cart-count:empty { display: none; }
.cl-hd__nav { height: 48px; padding: 0 32px; display: flex; align-items: center; }
.cl-hd__close { display: none; }
.cl-hd__list { display: flex; gap: 0 26px; }
.cl-hd__link { font: 400 18px/24px var(--site-font-body); color: var(--site-dark-fg); white-space: nowrap; }
.cl-hd__link:hover, .cl-hd__link.is-current { color: var(--site-accent); }

/* ---------- the search's suggest dropdown (partials/suggest.html, the kit's GET /suggest): an opaque white panel
   under the field, square, black text, rows at least 40px ---------- */
.fm-suggest { position: absolute; top: 100%; left: 0; right: 0; z-index: 60; max-height: min(70vh, 560px); overflow-y: auto;
  background: var(--site-panel); color: var(--site-ink); border: 1px solid var(--site-field-line); border-top: 0; border-radius: 0; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
  font: 400 15px/20px var(--site-font-body); text-align: left; }
.fm-suggest-section + .fm-suggest-section { border-top: 1px solid var(--site-line); }
.fm-suggest-title { padding: 10px 14px 4px; font: 700 14px/20px var(--site-font-body); text-transform: uppercase; color: var(--site-ink); }
.fm-suggest-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 14px; color: var(--site-ink); }
.fm-suggest-item.is-active, .fm-suggest-item:hover { background: var(--site-band); }
.fm-suggest-item mark { background: none; color: inherit; font-weight: 700; }
.fm-suggest-glyph { flex: none; width: 16px; height: 16px; }
.fm-suggest-thumb { flex: none; width: 44px; height: 44px; object-fit: contain; background: var(--site-photo); }
.fm-suggest-thumb--blank { display: block; background: var(--site-band); }
.fm-suggest-text { flex: 1; min-width: 0; display: grid; }
.fm-suggest-note { font-size: 13px; line-height: 18px; color: var(--site-ink); }
.fm-suggest-search .fm-suggest-note { margin-left: auto; }
.fm-suggest-fit { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--site-ink); }
.fm-suggest-count, .fm-suggest-price { flex: none; font-weight: 700; }
.fm-suggest-all { justify-content: center; border-top: 1px solid var(--site-line); font-weight: 600; }
.fm-suggest-empty { padding: 12px 14px; }

/* ---------- footer: the shop and contact columns ---------- */
.cl-ft { background: var(--site-dark); color: var(--site-dark-fg); }
.cl-ft__in { max-width: 1200px; margin: 0 auto; padding: 20px 5px 30px; display: grid; grid-template-columns: 690px 450px; }
.cl-ft__h { margin-bottom: 7px; font: 400 26px/39px var(--site-font-heading); color: var(--site-dark-fg); }
.cl-ft__links { display: flex; flex-wrap: wrap; margin-top: 2px; font: 400 14px/20px var(--site-font-body); }
.cl-ft__links li { display: flex; align-items: center; }
.cl-ft__links li + li::before { content: "|"; padding: 0 6px; }
.cl-ft__links a { display: inline-flex; align-items: center; min-height: 40px; }
.cl-ft__links a:hover { text-decoration: underline; }
.cl-ft__contact .cl-ft__h { margin-bottom: 0; font-size: 25.5px; line-height: 37px; }
.cl-ft__email { display: flex; align-items: center; gap: 12px; min-height: 40px; font: 400 15px/20px var(--site-font-body); }
.cl-ft__email:hover { text-decoration: underline; }
.cl-ft__search { margin-top: 12px; }
.cl-ft__search label { display: block; font: 700 16.5px/23px var(--site-font-body); text-transform: uppercase; }
.cl-ft__row { display: flex; width: 421px; height: 32px; }
.cl-ft__field { flex: 1; min-width: 0; padding: 0 10px; border: 0; border-radius: var(--site-radius); background: var(--site-field-bg); color: var(--site-field-fg); font: 400 16px/1 var(--site-font-body); }
.cl-ft__field::placeholder { color: var(--site-placeholder); font-style: italic; }
.cl-ft__go { flex: none; width: 58px; background: var(--site-go-bg); color: var(--site-go-fg); font: 700 18px/1 Arial, sans-serif; text-transform: uppercase; }
.cl-ft__go:hover { background: var(--site-accent); color: var(--site-accent-fg); }
.cl-ft__copy { margin-top: 10px; font: 500 13px/18px var(--site-font-body); }

/* ---------- phones: their phone header, the menu drawer, the centred footer ---------- */
@media (max-width: 979.98px) {
  .cl-hd__top { height: auto; padding: 0; display: grid; grid-template-columns: calc(96 * var(--u)) 1fr calc(96 * var(--u)); grid-template-areas: "toggle logo cart" "search search search"; border: 0; }
  .cl-hd__toggle { grid-area: toggle; display: flex; align-items: center; justify-content: flex-start; height: calc(65 * var(--u)); padding-left: calc(16 * var(--u)); color: var(--site-dark-fg); }
  .cl-hd__toggle svg { width: auto; height: calc(28 * var(--u)); }
  .cl-hd__logo { grid-area: logo; width: auto; height: calc(65 * var(--u)); justify-content: center; }
  .cl-hd__logo img { height: calc(36 * var(--u)); }
  .cl-hd__tools { grid-area: cart; justify-self: end; align-self: center; gap: 4px; margin: 0 calc(12 * var(--u)) 0 0; }
  /* the phone bar's right column holds the account and the cart only: the switch sits beside the menu button, in
     the left column's free space, so the mark in the middle keeps its room */
  .cl-hd__tools .parts-theme-switch { position: absolute; top: calc((65 * var(--u) - 40px) / 2); left: calc(48 * var(--u)); }
  .cl-hd__find { grid-area: search; margin: 0 calc(15 * var(--u)) calc(15 * var(--u)); }
  .cl-hd__search button { width: 44px; }
  .fm-suggest { max-height: 70vh; }
  .cl-hd__nav { position: fixed; inset: 0 auto 0 0; z-index: 200; width: min(320px, 86vw); height: 100vh; height: 100dvh; padding: 64px 0 24px; display: block;
    background: var(--site-dark); overflow-y: auto; transform: translateX(-100%); visibility: hidden; transition: transform 0.25s ease, visibility 0.25s; }
  .cl-hd__nav.is-open { transform: none; visibility: visible; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.6); }
  .cl-hd__close { position: absolute; top: 12px; right: 12px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--site-dark-fg); }
  .cl-hd__list { display: block; }
  .cl-hd__link { display: block; padding: 13px 20px; border-top: 1px solid var(--site-dark-line); font-size: 17px; white-space: normal; }

  .cl-ft__in { display: block; max-width: none; padding: 0 calc(39 * var(--u)) calc(50 * var(--u)); text-align: center; }
  .cl-ft__h { display: none; }
  .cl-ft__links { justify-content: center; margin-top: calc(14 * var(--u)); font-size: 14px; }
  .cl-ft__email { justify-content: center; margin-top: 4px; }
  .cl-ft__search { display: none; }
  .cl-ft__copy { margin-top: 8px; }
}

/* ---------- the 404 (templates/404.html) ---------- */
.cl-404__home { text-align: center; padding: 0 20px 80px; }

/* the footer's trademark line: "owner" links the client's site in the line's own colour, underlined (Greg 2026-10-01) */
/* padded to a 40px tap target, the negative margin keeping the line's height */
.cl-owner, .cl-owner:visited { display: inline-block; padding: 11px 0; margin: -11px 0; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cl-owner:hover { opacity: .8; }

}
