/* cl-site.css: SSR's tokens, 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, 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 bar; below it their 390px phone stage (white bar, drawer from the right). */
@layer base, kit, site;

@font-face {
  font-family: "Roboto Condensed"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/roboto-condensed-400-latin-ext.woff2") format("woff2");
  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;
}
@font-face {
  font-family: "Roboto Condensed"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/roboto-condensed-400-latin.woff2") format("woff2");
  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;
}

:root {
  /* colours: their white page, black text and rules, the soft greys of their bands, their blue pager as the accent */
  --site-bg: #FFFFFF;
  --site-fg: #000000;
  --site-muted: #333333;
  --site-line: #DCDCDC;
  --site-band: #F5F5F5;
  --site-card: #ECECEC;
  --site-accent: #09A1DA;
  --site-accent-strong: #077FAD;
  --site-accent-fg: #000000;
  --site-field-bg: #FFFFFF;
  --site-button-bg: #F5F5F5;
  --site-button-fg: #000000;
  --site-button-border: #000000;
  --site-button-hover-bg: #000000;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #E4E4E4;
  --site-disabled-fg: #595959;
  --site-bar: #000000;
  --site-bar-over: rgba(0, 0, 0, 0.7);
  --site-bar-fg: #FFFFFF;
  --site-drawer: #595959;
  --site-drawer-line: #CFD0D0;
  --site-bar-field-line: rgba(255, 255, 255, 0.5);
  --site-icon-filter: none;
  --site-pay: var(--site-button-bg);

  /* fonts: their body stack (Japanese system faces, falling back to the system sans-serif) and Roboto Condensed headings */
  --site-font-body: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
  --site-font-heading: "Roboto Condensed", Arial, Helvetica, sans-serif;
  --site-font-button: var(--site-font-body);

  /* shape and layout */
  --site-radius: 0;
  --site-max: 1320px;
  --site-content: 960px;
}
/* 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 (ADR 0007). */
:root {
  --parts-accent: var(--site-accent);
  --parts-accent-strong: var(--site-accent-strong);
  --parts-font: var(--site-font-body);
}
/* the dark page (the kit's data-parts-theme="dark" on <html>, picked by the visitor's clock or the shopper's switch):
   the kit's warm near black family. The desktop bar, the footer and the home's hero bar stay black; the phone's white
   bar, the page, the bands and the tiles turn dark; the button keeps their outline look in light ink on the dark; the
   blue accent reads as is on the dark and its hover lifts toward white, as the kit's does. Photos keep white plates. */
: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-strong: #3FB6E2;
  --site-field-bg: #1C1A18;
  --site-button-bg: #1C1A18;
  --site-button-fg: #F6F3EF;
  --site-button-border: #F6F3EF;
  --site-button-hover-bg: #F6F3EF;
  --site-button-hover-fg: #121110;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #EBE6E0;
  --site-drawer: #24201C;
  --site-drawer-line: #3D3833;
  --site-icon-filter: brightness(0) invert(.96);
  --site-pay: #077FAD;
  --parts-band-bg: #24201C;
  --parts-band-ink: #FFFFFF;
  --parts-band-edge: #36312C;
}

@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 14px/1.6 var(--site-font-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { 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 "Detail" box, black on their light grey with a 2px black rule ---------- */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 28px;
  background: var(--site-button-bg); color: var(--site-button-fg); border: 2px solid var(--site-button-border); border-radius: var(--site-radius);
  font: 700 15px/1 var(--site-font-button); text-decoration: none; cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s 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: their 62px black bar ---------- */
.cl-hd { position: relative; z-index: 50; display: flex; align-items: center; height: 62px; padding: 0 24px; background: var(--site-bar); color: var(--site-bar-fg); }
.cl-home-page .cl-hd { position: absolute; top: 0; left: 0; right: 0; background: var(--site-bar-over); }
/* the Orbital Parts mark, white lettering on the black bar; the dark lettering only on the phone's white bar by day */
.cl-hd__logo { flex: none; transition: opacity 0.5s; }
.cl-hd__mark { display: block; width: 160px; height: auto; }
.cl-hd__mark--light { display: none; }
.cl-hd__logo:hover { opacity: 0.7; }
.cl-hd__nav { flex: 1; min-width: 0; display: flex; align-items: center; gap: 32px; padding-left: 78px; }
.cl-hd__close, .cl-hd__toggle, .cl-hd__phone-only { display: none; }
.cl-hd__list { display: flex; gap: 100px; }
.cl-hd__link { display: block; border-top: 3px solid transparent; font: 400 14px/57px var(--site-font-body); text-transform: uppercase; color: var(--site-bar-fg); transition: border-color 0.3s; }
.cl-hd__link:hover, .cl-hd__link.is-current { border-top-color: var(--site-accent); }
.cl-hd__search { position: relative; margin-left: auto; width: 260px; }
.cl-hd__search input {
  width: 100%; height: 34px; padding: 0 36px 0 12px; border: 1px solid var(--site-bar-field-line); border-radius: var(--site-radius);
  background: transparent; color: var(--site-bar-fg); font: 400 14px/1 var(--site-font-body);
}
.cl-hd__search input::placeholder { color: var(--site-bar-fg); opacity: 0.85; }
.cl-hd__search button { position: absolute; top: 0; right: 0; width: 36px; height: 34px; display: grid; place-items: center; color: var(--site-bar-fg); }
/* the kit's theme switch (its partial, 40px, currentColor): the bar's ink, beside the cart */
.cl-hd .parts-theme-switch { flex: none; margin-left: 12px; }
.cl-hd__cart { flex: none; position: relative; display: grid; place-items: center; width: 40px; height: 40px; margin-left: 16px; color: var(--site-bar-fg); transition: opacity 0.3s; }
.cl-hd__cart:hover { opacity: 0.7; }
.cl-hd__cart-count { position: absolute; top: 2px; right: 0; min-width: 16px; padding: 0 3px; font: 700 11px/16px var(--site-font-body); text-align: center; border-radius: 8px; background: var(--site-accent); color: var(--site-accent-fg); }
.cl-hd__cart-count:empty { display: none; }

/* ---------- footer: their black band, small white links behind chevrons, the copyright line ---------- */
.cl-ft { background: var(--site-bar); color: var(--site-bar-fg); }
.cl-ft__in { max-width: var(--site-content); margin: 0 auto; padding: 24px 0 22px; min-height: 100px; }
.cl-ft__links { display: flex; flex-wrap: wrap; gap: 6px 26px; font: 400 12px/14px var(--site-font-body); }
.cl-ft__links a::before { content: "\203A"; margin-right: 8px; }
.cl-ft__links a:hover { text-decoration: underline; }
.cl-ft__copy { margin: 10px 0 0 174px; font: 400 13px/15px var(--site-font-body); }

/* ---------- phones: their 67px white bar and the drawer from the right ---------- */
@media (max-width: 979.98px) {
  .cl-hd, .cl-home-page .cl-hd { position: relative; height: 67px; padding: 0 2px 0 20px; background: var(--site-bg); color: var(--site-fg); }
  .cl-hd__logo { margin-right: auto; }
  :root:not([data-parts-theme="dark"]) .cl-hd__mark--light { display: block; }
  :root:not([data-parts-theme="dark"]) .cl-hd__mark--dark { display: none; }
  .cl-hd__cart { margin-left: 0; color: var(--site-fg); }
  .cl-hd .parts-theme-switch { margin-left: 0; }
  .cl-hd__toggle img { filter: var(--site-icon-filter); }
  .cl-hd__toggle, .cl-hd__close { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 58px; height: 67px; font: 400 13px/1 var(--site-font-body); text-transform: uppercase; }
  .cl-hd__nav { display: block; padding: 0; }
  .cl-js .cl-hd__nav {
    position: fixed; z-index: 100; top: 0; right: 0; bottom: 0; width: min(351px, 90vw); overflow-y: auto;
    background: var(--site-drawer); color: var(--site-bar-fg); transform: translateX(100%); visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }
  .cl-js .cl-hd__nav.is-open { transform: none; visibility: visible; transition: transform 0.3s ease; }
  .cl-hd__close { height: 72px; margin-left: auto; color: var(--site-bar-fg); }
  .cl-hd__phone-only { display: block; }
  .cl-hd__list { flex-direction: column; gap: 0; }
  .cl-hd__list li { border-bottom: 1px solid var(--site-drawer-line); }
  .cl-hd__link { border: 0; padding: 20px; font: 400 18px/28.8px var(--site-font-body); }
  .cl-hd__search { margin: 20px; width: auto; }
  .cl-hd__search input { height: 44px; font-size: 16px; border-color: var(--site-bar-fg); }
  .cl-hd__search button { width: 44px; height: 44px; }

  .cl-ft__in { min-height: 0; padding: 12px 16px 16px; text-align: center; }
  .cl-ft__links { justify-content: center; gap: 0 18px; font-size: 13px; line-height: 16px; }
  .cl-ft__links a { display: inline-flex; align-items: center; min-height: 40px; }
  .cl-ft__copy { margin: 6px 0 0; line-height: 18px; }
}

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

}
