/* cl-site.css: Edge'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 text and red; text stays full contrast, so muted is near black */
  --site-bg: #FFFFFF;
  --site-fg: #000000;
  --site-muted: #222222;
  --site-line: #D1D1D1;
  --site-band: #F0F0F0;
  --site-card: #F7F7F7;
  --site-accent: #E1251B;
  --site-accent-fg: #FFFFFF;
  --site-promo: #ED333E;
  --site-dark: #000000;
  --site-foot: #141414;
  --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 that stays black in both themes (the header, the footer, the drawer): its ink and its two rules */
  --site-on-dark: #FFFFFF;
  --site-on-dark-rule: #E7E7E7;
  --site-on-dark-line: #333333;
  /* a field's placeholder, and the white plate a product photo sits on whatever the theme */
  --site-placeholder: #444444;
  --site-plate: #FFFFFF;

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

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

  /* 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 (the --parts-band-* tokens a site owns, storefront/CLAUDE.md): white with black ink, as their
     Find Your Parts widget, a grey rule under it */
  --parts-band-bg: #FFFFFF;
  --parts-band-ink: #000000;
  --parts-band-edge: var(--site-line);
}
/* the dark page (data-parts-theme="dark" on <html>, the kit's night pick): the kit's warm near black, text near white,
   cards and the band a step up, rules dark grey; the red bar, the black header and the #141414 footer stay as they
   are, photos keep their white plates. The red lifts a touch so it reads as text on the dark (4.6:1). */
:root[data-parts-theme="dark"] {
  color-scheme: dark;
  --site-bg: #121110;
  --site-fg: #F6F3EF;
  --site-muted: #EBE6E0;
  --site-line: #3D3833;
  --site-band: #24201C;
  --site-card: #1C1A18;
  --site-accent: #E93A30;
  --site-field-bg: #1C1A18;
  --site-button-bg: #F6F3EF;
  --site-button-fg: #121110;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #EBE6E0;
  --site-placeholder: #D6D0C8;
  --parts-band-bg: #1C1A18;
  --parts-band-ink: #F6F3EF;
  --parts-band-edge: var(--site-line);
}
/* the kit's theme switch (parts/theme_switch.html, shown 21:30 to 04:30 by the kit's head block, whose rules sit in
   no layer, so these do not either): white on the black bar like Account and the cart, red on hover; on a phone it
   takes Account's place at night, which the menu drawer carries */
.cl-hd__icons .parts-theme-switch { color: var(--site-on-dark); }
.cl-hd__icons .parts-theme-switch:hover { color: var(--site-accent); }
@media (max-width: 979.98px) {
  :root[data-parts-night] .cl-hd__account { display: none; }
}
@media (max-width: 979.98px) {
  :root { --u: var(--mx); }
}

@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, 14px Oswald caps ---------- */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 45px; padding: 0 20px;
  background: var(--site-accent); color: var(--site-accent-fg); border: 0; border-radius: var(--site-radius);
  font: 500 14px/1 var(--site-font-button); letter-spacing: 1px; 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 red bar, the black bar (the Orbital Parts mark, search, Account, cart), the menu row ---------- */
.cl-hd { position: relative; z-index: 50; background: var(--site-dark); color: var(--site-on-dark); }
.cl-hd__promo { height: 40px; display: flex; align-items: center; justify-content: center; background: var(--site-promo);
  font: 400 14px/1 var(--site-font-body); text-transform: uppercase; color: var(--site-on-dark); }
.cl-hd__top { height: 93px; padding: 0 32px; display: flex; align-items: center; border-bottom: 1px solid var(--site-on-dark-rule); }
.cl-hd__logo { flex: none; width: 245px; }
.cl-hd__logo img { width: 200px; height: auto; }
.cl-hd__toggle { display: none; }
/* the search: the host holds the box and the suggestions panel that hangs under it */
.cl-hd__find { position: relative; flex: 0 1 607px; min-width: 0; margin-left: auto; }
.cl-hd__search { display: flex; height: 44px; background: var(--site-field-bg); border: 1px solid var(--site-dark); 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-fg);
  font: 400 16px/1 var(--site-font-text); }
.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 input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.cl-hd__search button { flex: none; width: 64px; display: flex; align-items: center; justify-content: center; color: var(--site-fg); }

/* the search's suggestions (partials/suggest.html, swapped in by htmx; fm-site.js the keys): an opaque white panel
   under the box, square, black text, every row at least 44px, nothing under 13px */
.fm-suggest {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60; max-height: min(70vh, 640px); overflow-y: auto;
  background: var(--site-bg); color: var(--site-fg); border: 1px solid var(--site-fg); border-radius: var(--site-radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35); text-align: left; font: 400 14px/1.35 var(--site-font-text);
}
.fm-suggest-section + .fm-suggest-section { border-top: 1px solid var(--site-line); }
.fm-suggest-title { padding: 10px 14px 4px; font: 500 14px/18px var(--site-font-heading); letter-spacing: .5px; text-transform: uppercase; color: var(--site-fg); }
.fm-suggest-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px; color: var(--site-fg); text-decoration: none; cursor: pointer; }
.fm-suggest-item.is-active, .fm-suggest-item:hover { background: var(--site-band); }
.fm-suggest-item b { font-weight: 700; }
.fm-suggest-glyph { flex: none; }
.fm-suggest-text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.fm-suggest-text > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-suggest-note, .fm-suggest-count, .fm-suggest-fit { font-size: 13px; color: var(--site-fg); }
.fm-suggest-term .fm-suggest-note, .fm-suggest-search .fm-suggest-note, .fm-suggest-count { margin-left: auto; }
.fm-suggest-thumb { flex: none; width: 44px; height: 44px; object-fit: contain; background: var(--site-plate); border: 1px solid var(--site-line); border-radius: var(--site-radius); }
.fm-suggest-thumb--blank { display: block; background: var(--site-card); }
.fm-suggest-price { margin-left: auto; font-weight: 700; white-space: nowrap; }
.fm-suggest-all { justify-content: center; border-top: 1px solid var(--site-line); font-weight: 700; }
.fm-suggest-empty { padding: 14px; font-size: 14px; }

/* Account and the cart, white icons in 40px squares */
.cl-hd__icons { flex: none; display: flex; align-items: center; gap: 12px; margin-left: 77px; }
.cl-hd__icon { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--site-on-dark); }
.cl-hd__icon:hover { color: var(--site-accent); }
.cl-hd__phone { display: none; }
.cl-hd__cart-count { position: absolute; top: -2px; right: -8px; min-width: 18px; padding: 0 4px; font: 600 12px/18px var(--site-font-text); 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 16px/22px var(--site-font-text); color: var(--site-on-dark); white-space: nowrap; }
.cl-hd__link:hover, .cl-hd__link.is-current { color: var(--site-accent); }

/* ---------- footer ---------- */
.cl-ft { background: var(--site-foot); color: var(--site-on-dark); }
.cl-ft__in { max-width: 1440px; margin: 0 auto; padding: 29px 58px 0; }
.cl-ft__ask { width: 450px; max-width: 100%; margin: 0 auto; padding-bottom: 36px; text-align: center; }
.cl-ft__ask-h { margin-bottom: 7px; font: 500 16px/24px var(--site-font-body); text-transform: uppercase; }
.cl-ft__ask-h label { display: inline-flex; align-items: center; min-height: 40px; }
.cl-ft__ask-row { display: flex; align-items: center; height: 54px; padding: 0 8px 0 0; background: var(--site-field-bg); }
.cl-ft__field { flex: 1; min-width: 0; height: 100%; padding: 0 16px; border: 0; background: var(--site-field-bg); color: var(--site-fg); font: 400 16px/1 var(--site-font-text); }
.cl-ft__field::placeholder { color: var(--site-placeholder); }
.cl-ft__btn { flex: none; display: flex; align-items: center; height: 40px; padding: 0 14px; background: var(--site-accent); color: var(--site-accent-fg);
  font: 500 14.4px/1 var(--site-font-body); text-transform: uppercase; }
.cl-ft__cols { display: grid; grid-template-columns: repeat(4, 1fr); min-height: 184px; padding-top: 30px; }
.cl-ft__fold { display: none; }
.cl-ft__h-text { display: block; margin-bottom: 15px; font: 700 13px/20px var(--site-font-body); color: var(--site-on-dark); }
.cl-ft__links { display: grid; gap: 1px; }
.cl-ft__links a { font: 400 14px/20px var(--site-font-text); color: var(--site-on-dark); }
.cl-ft__links a:hover { text-decoration: underline; }
.cl-ft__experts { grid-column: 4; }
.cl-ft__email { display: inline-block; padding: 14px 0 2px; border-bottom: 2px solid var(--site-accent); font: 600 16px/22px var(--site-font-text); color: var(--site-on-dark); }
.cl-ft__copy { padding: 28px 0 32px; text-align: center; font: 400 13px/19px var(--site-font-text); color: var(--site-on-dark); }

/* ---------- phones: their phone header, the menu drawer, the folded footer ---------- */
@media (max-width: 979.98px) {
  .cl-hd__top { height: auto; padding: 0; display: grid; grid-template-columns: 96px 1fr 96px; grid-template-areas: "toggle logo icons" "search search search"; border: 0; }
  .cl-hd__toggle { grid-area: toggle; display: flex; align-items: center; justify-content: flex-start; height: 65px; padding-left: 16px; color: var(--site-on-dark); }
  .cl-hd__logo { grid-area: logo; width: auto; height: 65px; display: flex; align-items: center; justify-content: center; }
  .cl-hd__logo img { width: 160px; }
  .cl-hd__icons { grid-area: icons; justify-self: end; gap: 4px; margin: 0 8px 0 0; }
  .cl-hd__find { grid-area: search; flex: none; margin: 0 15px 15px; }
  .cl-hd__search button { width: 44px; }
  .cl-hd__phone { display: list-item; }
  .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-on-dark); }
  .cl-hd__list { display: block; }
  .cl-hd__link { display: block; padding: 13px 20px; border-top: 1px solid var(--site-on-dark-line); font-size: 15px; white-space: normal; }

  .cl-ft__in { padding: 0 16px; }
  .cl-ft__ask { width: auto; padding: 30px 0 30px; }
  .cl-ft__ask-h { margin-bottom: 0; }
  .cl-ft__ask-row { height: 54px; }
  .cl-ft__cols { display: flex; flex-direction: column; min-height: 0; padding: 0 0 42px; }
  .cl-ft__experts { order: -1; padding: 10px 0 85px; }
  .cl-ft__experts .cl-ft__h-text { display: block; margin-bottom: 14px; font: 400 13px/19px var(--site-font-body); }
  .cl-ft__col { border-bottom: 1px solid var(--site-on-dark); }
  .cl-ft__h-text { display: none; }
  .cl-ft__fold { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 60px; padding: 14px 0 4px;
    font: 600 20px/1.2 var(--site-font-body); text-align: left; color: var(--site-on-dark); }
  .cl-js .cl-ft__col:not(.is-open) .cl-ft__links { display: none; }
  .cl-ft__links { padding: 0 0 14px; gap: 0; }
  .cl-ft__links a { display: flex; align-items: center; min-height: 40px; padding: 10px 0; font-size: 14px; }
  .cl-ft__copy { padding: 18px 0 25px; }

  /* the title band of the policies, the cart and the 404 (cl-shop.css) at the landing pages' H1 size in 16px gutters,
     the lede a step smaller (MOBILE-BRIEF-2) */
  main.cl-shop .cl-band { padding: 32px 16px 24px; }
  main.cl-shop .cl-band__h1 { font-size: 36px; line-height: 1.05; letter-spacing: 0; }
  main.cl-shop .cl-band__text { margin-top: 14px; }
  main.cl-shop .cl-band__text p { font-size: 15px; line-height: 1.5; letter-spacing: 0; }
}

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

/* the footer's trademark line: "owner" links the client's site in the line's own colour, underlined (Greg 2026-10-01) */
.cl-owner, .cl-owner:visited { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* its tap height: 40px of padding around the line, which an inline link takes without moving the line */
.cl-owner { padding: 11px 1px; }
.cl-owner:hover { opacity: .8; }

}
