/* cl-site.css: ITP's tokens, reset and chrome (header, menu, footer, the yellow button), on every page, from
   their measurements at 1440 and in the 390 phone stage (review/pages/home.json): the black two-row header
   with the Orbital Parts mark, the shop row in bold uppercase and the yellow button, the near-black footer of columns.

   The cascade (the kit's static/parts/tokens.css): `@layer base, kit, site;` sets the order; the tokens sit on
   :root outside any layer, the reset in @layer base, every other rule in @layer site. The kit's shop pages and
   vehicle band take the brand colour and font from the --parts-* tokens alone: no rule here names a kit class.
   Two layouts: from 980px the desktop one, below it the phone one (the menu in a drawer, cl-site.js). */
@layer base, kit, site;

@font-face { font-family: "Warpaint"; src: url("fonts/warpaint.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/open-sans-latin.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap;
  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: "Open Sans"; src: url("fonts/open-sans-latin-ext.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* colours */
  --site-bg: #FFFFFF;
  --site-fg: #212121;
  --site-muted: #858585;
  --site-line: #D7D7D7;
  --site-band: #F2F2F2;
  --site-card: #F6F6F6;
  --site-accent: #003577;
  --site-accent-fg: #FFFFFF;
  --site-field-bg: #FFFFFF;
  --site-button-bg: #FFCC00;
  --site-button-fg: #212121;
  --site-button-hover-bg: #212121;
  --site-button-hover-fg: #FFCC00;
  --site-disabled-bg: #E4E6EF;
  --site-disabled-fg: #212121;
  --site-black: #000000;
  --site-foot: #1B1C21;
  --site-yellow: #FFCC00;
  --site-blue: #0445B5;
  --site-yellow-hover: #FFD633;

  /* the black header and the footer, the same in both themes */
  --site-chrome-fg: #FFFFFF;
  --site-chrome-line: #333333;
  --site-chrome-fade: #333333;
  --site-placeholder: #595959;

  /* the home's fitment bar under the hero (white in the light) */
  --site-find-bg: #FFFFFF;
  --site-find-ink: #212121;

  /* fonts */
  --site-font-body: "Open Sans", Arial, sans-serif;
  --site-font-heading: Warpaint, Impact, "Arial Narrow", sans-serif;
  --site-font-button: "Open Sans", Arial, sans-serif;

  /* shape and layout */
  --site-radius: 0;
  --site-max: 1320px;
}
/* the kit's shop pages and vehicle band: only the brand tokens a site owns (storefront-kit ADR 0007) */
:root {
  --parts-accent: var(--site-accent);
  --parts-accent-strong: var(--site-accent);
  --parts-font: var(--site-font-body);
}

/* the dark theme (the kit's data-parts-theme="dark" on <html>: Site(dark="night") sets it from 21:30 to 04:30 or
   on the shopper's pick): the white page turns the kit's warm near black, text near white (the grey muted text
   too), rules a dark grey, the cart's cards and summary and the home's fitment bar a step up from the page, the
   header's search field dark. The black header and the footer stay; the yellow buttons keep their dark words;
   the navy accent (the kit's Add, a focus ring) lifts so it shows on the dark. */
:root[data-parts-theme="dark"] {
  color-scheme: dark;
  --site-bg: #121110;
  --site-fg: #F6F3EF;
  --site-muted: #EBE6E0;
  --site-line: #3D3833;
  --site-band: #1C1A18;
  --site-card: #1C1A18;
  --site-accent: #2F5FA8;
  --site-field-bg: #121110;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #EBE6E0;
  --site-placeholder: #EBE6E0;
  --site-find-bg: #1C1A18;
  --site-find-ink: #F6F3EF;
  --cs-accent: #7FA6E8;
  --parts-band-bg: #24201C;
  --parts-band-ink: #F6F3EF;
  --parts-band-edge: #3D3833;
}

@layer base {

*, *::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 {

/* ---------- their yellow button: 46px, 24px sides, 14px extra-bold uppercase ---------- */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 24px;
  background: var(--site-button-bg); color: var(--site-button-fg); border: 0; border-radius: var(--site-radius);
  font: 800 14px/14px var(--site-font-button); text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.cl-btn:hover { background: var(--site-button-hover-bg); color: var(--site-button-hover-fg); }
.cl-btn:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 2px; }

/* ---------- header: the Orbital Parts mark (white on the black bar by day and at night), the search row over the shop row, the yellow cart ---------- */
.cl-hd { position: relative; z-index: 50; background: var(--site-black); color: var(--site-chrome-fg); }
.cl-hd__in { height: 88px; padding: 0 80px; display: flex; align-items: center; }
.cl-hd__logo { flex: none; display: block; }
.cl-hd__logo img { width: auto; height: 46px; }
@media (max-width: 1199.98px) { .cl-hd__logo img { height: 36px; } }
.cl-hd__nav { flex: 1; min-width: 0; align-self: stretch; margin: 0 44px 0 45px; display: flex; flex-direction: column; }
.cl-search { order: 1; height: 44px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(90deg, var(--site-black) 0%, var(--site-chrome-fade) 20%, var(--site-chrome-fade) 80%, var(--site-black) 100%); }
.cl-search__input { width: 360px; height: 28px; padding: 0 12px; border: 0; border-radius: 0; background: var(--site-field-bg); color: var(--site-fg);
  font: 400 14px/28px var(--site-font-body); }
.cl-search__input::placeholder { color: var(--site-placeholder); }
.cl-search__btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 28px; background: var(--site-yellow); color: var(--site-button-fg); }
.cl-hd__list { order: 2; height: 44px; display: flex; align-items: center; justify-content: center; }
.cl-hd__link { display: block; padding: 0 17.5px; font: 700 18px/23.94px var(--site-font-body); text-transform: uppercase; color: var(--site-chrome-fg); }
.cl-hd__link:hover, .cl-hd__link.is-current { color: var(--site-yellow); }
.cl-hd__cart { flex: none; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 157px; height: 46px; background: var(--site-yellow); color: var(--site-button-fg); font: 800 14px/14px var(--site-font-button); text-transform: uppercase; }
.cl-hd__cart:hover { background: var(--site-chrome-fg); }
.cl-hd__count { min-width: 20px; padding: 0 5px; font: 800 13px/20px var(--site-font-body); text-align: center; background: var(--site-button-fg); color: var(--site-yellow); }
.cl-hd__count:empty { display: none; }
.cl-hd__toggle { display: none; }

/* ---------- footer: the brand column, three columns, the bottom line ---------- */
.cl-ft { background: var(--site-foot); color: var(--site-chrome-fg); }
.cl-ft__in { width: 1180px; max-width: 100%; margin: 0 auto; padding: 60px 0 25px;
  min-height: 581px; display: grid; grid-template-columns: minmax(0, 1fr) 182px 235px; grid-template-rows: auto 1fr; }
.cl-ft__note { margin-top: 15px; font: 400 16px/20px var(--site-font-body); text-transform: uppercase; }
.cl-ft__btns { margin-top: 44px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cl-ft__h { margin-top: 15px; font: 800 18px/18px var(--site-font-body); text-transform: uppercase; }
.cl-ft__links { margin-top: 15px; }
.cl-ft__links a { display: block; padding: 8px 0; font: 400 16px/20px var(--site-font-body); text-transform: uppercase; }
.cl-ft__links a:hover, .cl-ft__legal a:hover { color: var(--site-yellow); }
.cl-ft__col .cl-btn { margin-top: 15px; }
.cl-ft__bottom { grid-column: 1 / -1; align-self: end; margin-top: 40px; display: flex; flex-wrap: wrap; gap: 4px 25px; font: 400 16px/20px var(--site-font-body); }
.cl-ft__legal { display: flex; gap: 25px; }
.cl-ft__mail { display: inline-block; padding: 12px 0; }

/* ---------- phones: the 65px bar, the menu in an opaque black drawer (cl-site.js) ---------- */
@media (max-width: 979.98px) {
  .cl-hd__in { height: 65px; padding: 0 16px 0 24px; gap: 8px; }
  .cl-hd__logo { margin-right: auto; }
  .cl-hd__logo img { height: 34px; }
  .cl-hd__cart { width: 40px; height: 40px; gap: 0; }
  .cl-hd__cart-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .cl-hd__count { position: absolute; top: -6px; right: -6px; }
  .cl-hd__toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 40px; height: 40px; padding: 0 6px; }
  .cl-hd__toggle span { display: block; height: 3px; background: var(--site-yellow); }
  .cl-hd__nav { position: absolute; top: 65px; left: 0; right: 0; margin: 0; padding: 8px 16px 20px; background: var(--site-black); border-top: 1px solid var(--site-chrome-line); }
  .cl-js .cl-hd__nav:not(.is-open) { display: none; }
  .cl-search { order: 2; height: auto; margin-top: 12px; background: none; }
  .cl-search__input { flex: 1; width: auto; height: 44px; font-size: 16px; }
  .cl-search__btn { width: 44px; height: 44px; }
  .cl-hd__list { order: 1; height: auto; flex-direction: column; align-items: stretch; }
  .cl-hd__link { padding: 10px 0; border-bottom: 1px solid var(--site-chrome-line); }

  .cl-ft__in { min-height: 0; padding: 75px 25px 25px; grid-template-columns: 1fr; grid-template-rows: none; }
  .cl-ft__brand { grid-column: 1 / -1; }
  .cl-ft__btns { margin-top: 44px; }
  .cl-ft__col--1 { margin-top: 30px; }
  .cl-ft__col--2 { margin-top: 30px; }
  .cl-ft__h { font-size: 16px; line-height: 16px; }
  .cl-ft__links a { padding: 5px 0; font-size: 14px; }
  .cl-ft__bottom { margin-top: 40px; flex-direction: column; font-size: 13px; line-height: 16px; }
  .cl-ft__legal { flex-direction: column; gap: 0; }
  .cl-ft__legal a { display: block; padding: 7px 0; }
}

/* ---------- 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, underlined (Greg 2026-10-01) */
.cl-owner, .cl-owner:visited { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cl-owner:hover { opacity: .8; }

}

/* the cart's Check out in the dark: cl-shop.css's `.cl-shop a { color: inherit }` outranks .cl-btn, so the label
   took the page's ink, near white on the dark; it takes the button's own words colour */
@layer site {
:root[data-parts-theme="dark"] .cl-shop .cl-btn { color: var(--site-button-fg); }
}

/* the kit's dark-mode switch before the yellow cart (shown from 21:30 to 04:30): 12px apart */
@layer site {
.cl-hd__in .parts-theme-switch { margin-right: 12px; }
@media (max-width: 979.98px) { .cl-hd__in .parts-theme-switch { margin-right: 0; } }
}
