/* cl-site.css: the site's tokens, fonts, reset and chrome in kingshocks.com's look, on every page: their black
   header bar of 90 with the Orbital Parts mark in white, our tree's headings in white and the Search and Cart
   tools at the right; their dark footer of our email and three columns over a darker copyright bar. cl-shop.css
   reads these tokens, so the title band and the cart follow.

   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 3 --parts-* tokens alone: no rule here names a kit class.

   Two layouts: from 980px the desktop measured at 1440; below it their phone layout, measured in a 390 stage:
   a black bar of 80 with Search at the left, the mark, and the menu button opening an opaque drawer. */
@layer base, kit, site;

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/montserrat-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: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/montserrat-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 */
  --site-bg: #FFFFFF;
  --site-fg: #000000;
  --site-muted: #1F1F1F;
  --site-line: #D1D1D1;
  --site-band: #F0F0F0;
  --site-card: #F5F5F5;
  --site-accent: #005CB8;
  --site-accent-strong: #004A94;
  --site-accent-fg: #FFFFFF;
  --site-field-bg: #FFFFFF;
  --site-button-bg: #005CB8;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #004A94;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #E4E4E4;
  --site-disabled-fg: #1F1F1F;
  /* their dark surfaces: the header bar and the feature bands, the footer, the copyright bar */
  --site-dark: #111111;
  --site-footer: #1A1A1A;
  --site-footer-base: #222222;
  /* the search panel's field rule and the phone menu's rows */
  --site-field-line: #AAAAAA;
  --site-menu-bg: #EEEEEE;

  /* fonts: Lato is named but never served on their site, so it renders as Helvetica or Arial (FONTS.md) */
  --site-font-body: Lato, Helvetica, Arial, sans-serif;
  --site-font-heading: Montserrat, Helvetica, Arial, sans-serif;
  --site-font-button: var(--site-font-body);

  /* shape and layout */
  --site-radius: 0;
  --site-max: 1320px;

  /* one phone-stage pixel (their stage is 390), which cl-shop.css's phone rules are written in */
  --mx: calc(100vw / 390);
}
/* the kit's shop pages and vehicle band (storefront_kit/static/parts/tokens.css): only the brand tokens a site
   owns (storefront-kit ADR 0007) */
:root {
  --parts-accent: var(--site-accent);
  --parts-accent-strong: var(--site-accent-strong);
  --parts-font: var(--site-font-body);
}

/* the dark theme (kit 0.10.0: <html data-parts-theme="dark">, picked by the kit's head block at night or by the
   shopper's switch): the page the kit's warm near black, text near white, rules a dark grey, the cart's cards,
   the search panel and the phone menu a step up. Their #111 header, footer and King blue fills keep their
   values; the blue as text and rules (--cs-accent: the cart's tick, focus and errors) lifts so it reads on the
   dark (6.4:1), and a hover lifts toward white where the light page deepens it. 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: #005CB8;
  --site-accent-strong: #1F74C9;
  --site-accent-fg: #FFFFFF;
  --site-field-bg: #1C1A18;
  --site-button-bg: #005CB8;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #1F74C9;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #EBE6E0;
  --site-dark: #111111;
  --site-footer: #1A1A1A;
  --site-footer-base: #222222;
  --site-field-line: #57504A;
  --site-menu-bg: #1C1A18;
  --cs-accent: #4A9BEA;

  /* the kit's vehicle band under the header: a step over the page, its rule a dark grey */
  --parts-band-bg: #1C1A18;
  --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 {

/* ---------- the primary button (Add to Cart, Check out) ---------- */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 20px;
  background: var(--site-accent); color: var(--site-accent-fg); border: 1px solid var(--site-accent); border-radius: var(--site-radius);
  font: 400 16px/1 var(--site-font-button); text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease;
}
.cl-btn:hover { background: var(--site-accent-strong); border-color: var(--site-accent-strong); }
.cl-btn:focus-visible { outline: 2px solid var(--site-fg); outline-offset: 2px; }

/* ---------- header: the mark, the headings, Search and Cart ---------- */
.cl-hd { position: relative; z-index: 50; background: var(--site-dark); color: #FFFFFF; }
.cl-hd__in { display: flex; align-items: stretch; height: 90px; padding: 0 30px 0 70px; }
.cl-hd__logo { flex: none; display: flex; align-items: center; }
.cl-hd__logo img { width: 280px; height: auto; }
.cl-hd__toggle { display: none; }
.cl-hd__nav { flex: 1; min-width: 0; display: flex; justify-content: center; }
.cl-hd__list { display: flex; }
.cl-hd__link { display: flex; align-items: center; height: 90px; padding: 0 15px; font: 500 14px/18.2px var(--site-font-body); color: #FFFFFF; }
.cl-hd__link:hover, .cl-hd__link.is-current { color: #FFFFFF; box-shadow: inset 0 -4px 0 var(--site-accent); }
.cl-hd__tools { flex: none; width: 263px; display: flex; justify-content: flex-end; gap: 15px; }
.cl-hd__tool { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 40px; padding-top: 18px; color: #FFFFFF; font: 400 12px/24px var(--site-font-body); }
.cl-hd__tool .fm-icon { height: 24px; margin-bottom: 6px; }
.cl-hd__tool:hover { color: #FFFFFF; opacity: .85; }
/* the kit's theme switch (shown 21:30 to 04:30), between Search and Cart, its icon level with theirs */
.cl-hd__tools .parts-theme-switch { align-self: flex-start; margin-top: 10px; }
.cl-hd__tools .parts-theme-switch:hover { opacity: .85; }
.cl-hd__cart-count { position: absolute; top: 10px; left: 50%; margin-left: 6px; min-width: 18px; padding: 0 4px; font: 700 12px/18px var(--site-font-body); text-align: center; border-radius: var(--site-radius); background: var(--site-accent); color: var(--site-accent-fg); }
.cl-hd__cart-count:empty { display: none; }

/* the search panel the Search tool opens (cl-site.js): an opaque box of the page's colour under the bar */
.cl-hd__search { position: absolute; top: 100%; left: 0; right: 0; z-index: 60; background: var(--site-bg); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.cl-js .cl-hd__search:not(.is-open) { display: none; }
.cl-hd__search-in { display: flex; max-width: 1224px; margin: 0 auto; padding: 20px; }
.cl-hd__search input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--site-field-line); border-right: 0; border-radius: 0; background: var(--site-field-bg); color: var(--site-fg); font: 400 16px var(--site-font-body); }
.cl-hd__search button { flex: none; width: 239px; height: 52px; background: var(--site-accent); color: #FFFFFF; font: 400 16px/32px var(--site-font-body); }
.cl-hd__search button:hover { background: var(--site-accent-strong); }

/* ---------- footer: our email, three columns, the copyright bar ---------- */
.cl-ft { background: var(--site-footer); color: #FFFFFF; font: 400 14px/28px var(--site-font-body); }
.cl-ft__in { display: grid; grid-template-columns: 396px 1fr; gap: 40px; padding: 70px 40px 95px; }
.cl-ft__contact li { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.cl-ft__contact .fm-icon { width: 14px; flex: none; }
.cl-ft__contact a:hover, .cl-ft__links a:hover { text-decoration: underline; }
.cl-ft__cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.cl-ft__col { padding: 0 15px; }
.cl-ft__h { margin-bottom: 15px; padding-bottom: 26px; border-bottom: 1px solid #FFFFFF; font: 700 16px/17.6px var(--site-font-heading); }
.cl-ft__fold { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; cursor: default; }
.cl-ft__fold .fm-icon { display: none; }
.cl-ft__links li { margin-bottom: 5px; }
.cl-ft__links a { display: inline-block; line-height: 32px; color: #FFFFFF; }
.cl-ft__base { background: var(--site-footer-base); padding: 20px; text-align: center; font: 400 10px/20px var(--site-font-body); text-transform: uppercase; color: #FFFFFF; }

/* the footer's trademark line: "owner" links the client's site in the line's own colour (Greg 2026-10-01) */
.cl-owner, .cl-owner:visited { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cl-owner:hover { opacity: .8; }

/* ---------- phones: the black bar, the menu in an opaque drawer (cl-site.js) ---------- */
@media (max-width: 979.98px) {
  .cl-hd__in { position: relative; height: 80px; padding: 0; }
  .cl-hd__logo { position: absolute; top: 0; bottom: 0; left: 77px; right: 0; width: auto; background: none; pointer-events: none; }
  .cl-hd__logo img { width: 170px; pointer-events: auto; }
  .cl-hd__tools { position: relative; z-index: 1; width: auto; justify-content: flex-start; gap: 0; }
  .cl-hd__tool { width: 77px; padding-top: 16px; font: 400 13px/16px var(--site-font-body); }
  .cl-hd__tool .fm-icon { width: auto; height: 30px; margin-bottom: 2px; }
  .cl-hd__cart { width: 56px; }
  .cl-hd__cart .fm-icon { width: auto; height: 26px; margin-bottom: 6px; }
  .cl-hd__cart-count { top: 8px; }
  /* at night the switch joins the tools: Search and Cart narrow and the mark centres between them and Menu */
  .cl-hd__tools .parts-theme-switch { margin-top: 20px; }
  :root[data-parts-night] .cl-hd__tool { width: 56px; }
  :root[data-parts-night] .cl-hd__cart { width: 48px; }
  :root[data-parts-night] .cl-hd__logo { left: 144px; right: 64px; }
  .cl-hd__toggle { position: absolute; top: 24px; right: 12px; z-index: 1; display: flex; flex-direction: column; align-items: center; min-width: 48px; min-height: 48px; color: #FFFFFF; font: 400 13px/16px var(--site-font-body); }
  .cl-hd__bars { display: flex; flex-direction: column; gap: 5px; width: 32px; padding: 1px 0 3px; }
  .cl-hd__bars span { display: block; height: 4px; background: #FFFFFF; }
  .cl-hd__nav { position: absolute; top: 100%; left: 0; right: 0; z-index: 60; display: block; background: var(--site-bg); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
  .cl-js .cl-hd__nav:not(.is-open) { display: none; }
  .cl-hd__list { flex-direction: column; padding: 8px 0; }
  .cl-hd__list li + li { margin-top: 3px; }
  .cl-hd__link { height: 44px; padding: 0 30px; background: var(--site-menu-bg); color: var(--site-fg); font: 400 16px/20px var(--site-font-body); }
  .cl-hd__link:hover, .cl-hd__link.is-current { color: var(--site-fg); box-shadow: inset 4px 0 0 var(--site-accent); }
  .cl-hd__search-in { padding: 16px; }
  .cl-hd__search button { width: 96px; }

  .cl-ft__in { grid-template-columns: 1fr; gap: 25px; padding: 25px 20px 20px; }
  /* the room their phone number and hours took, so the copyright bar sits where theirs does */
  .cl-ft__brand { padding-bottom: 76px; }
  .cl-ft__cols { order: -1; grid-template-columns: 1fr; gap: 4.5px; }
  .cl-ft__col { padding: 0; background: var(--site-footer-base); }
  .cl-ft__h { margin: 0; padding: 0; border: 0; }
  .cl-ft__fold { min-height: 58px; padding: 0 20px; cursor: pointer; }
  .cl-ft__fold .fm-icon { display: block; transition: transform .2s ease; }
  .cl-ft__col.is-open .cl-ft__fold .fm-icon { transform: rotate(180deg); }
  .cl-ft__links { padding: 0 20px 12px; }
  .cl-ft__links a { display: flex; align-items: center; min-height: 40px; line-height: 20px; }
  .cl-js .cl-ft__col:not(.is-open) .cl-ft__links { display: none; }
  .cl-ft__contact li { min-height: 28px; }
  .cl-ft__base { padding: 20px; font-size: 13px; }
}

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

}
