/* cl-site.css: sinisterdiesel.ca's tokens, reset and chrome (header, menu, footer, the primary button), on every
   page, in Sinister Diesel's look from their measurements (review/pages/home.json): the dark strip over their blue
   67px bar (#1833B8), the menu in Uniform-Bold capitals, Play for the text and the headings on their light grey
   page, their charcoal footer over a blue bar. cl-shop.css and the kit's shop pages read only these tokens.

   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 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 bar, below it their phone stack with the menu behind the toggle. */
@layer base, kit, site;

/* Sinister Diesel's 2 families (static/fonts/FONTS.md) */
@font-face { font-family: "Play"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/play-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; }
@font-face { font-family: "Play"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/play-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Play"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/play-700-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; }
@font-face { font-family: "Play"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/play-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Uniform-Bold"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/uniform-bold.woff2") format("woff2"); }

:root {
  /* colours */
  --site-bg: #F7F7F7;
  --site-fg: #0F0F0F;
  --site-text: #4A4A52;
  --site-muted: #4A4A52;
  --site-line: #CDCDCD;
  --site-band: #E9E9E9;
  --site-card: #EEEEEE;
  --site-panel: #F6F7F9;
  --site-accent: #1833B8;
  --site-accent-fg: #FFFFFF;
  --site-bar: #1E36B2;
  --site-strip: #3B3B3B;
  --site-dark: #404040;
  --site-gold: #F2C200;
  --site-field-bg: #FFFFFF;
  --site-button-bg: #1833B8;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #10248A;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #E4E4E4;
  --site-disabled-fg: #5A5A5A;
  --site-accent-ink: var(--site-accent);  /* the blue as text, a focus ring or a hover rule on the page */
  --site-heading: #111114;                /* the section headings */
  --site-surface: #FFFFFF;                /* the white boxes on the page: the support box, the search's panel, the phone drawer, the part-type links, the white brand band */
  --site-tile-line: #E4E6ED;              /* a white box's rule */
  --site-panel-line: #E0E2EA;             /* the rule under the Shop by Truck panel */

  /* fonts */
  --site-font-body: Play, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --site-font-heading: var(--site-font-body);
  --site-font-button: var(--site-font-body);
  --site-font-menu: "Uniform-Bold", Play, Helvetica, Arial, sans-serif;

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

  /* one phone-stage pixel (their stage is 390), which cl-shop.css's phone title band is 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, 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-button-hover-bg);
  --parts-font: var(--site-font-body);
  /* the vehicle band in their Shop by Truck grey (the --parts-band-* tokens a site owns, storefront/CLAUDE.md) */
  --parts-band-bg: #969696;
  --parts-band-ink: #FFFFFF;
  --parts-band-edge: #969696;
}
/* the dark look (the kit's head block sets data-parts-theme="dark" at night or on the shopper's pick): the page a warm
   near black in the kit's family, text near white, rules a dark grey, boxes a step up; the strip, the blue bar, the
   charcoal footer and its blue bar stay as they are, the category tiles keep their white plates (their photos are
   drawn for white). */
:root[data-parts-theme="dark"] {
  color-scheme: dark;
  --site-bg: #121110;
  --site-fg: #F6F3EF;
  --site-text: #EBE6E0;
  --site-muted: #EBE6E0;
  --site-line: #3D3833;
  --site-band: #24201C;
  --site-card: #1C1A18;
  --site-panel: #1C1A18;
  --site-field-bg: #1C1A18;
  --site-button-hover-bg: #2C49D9;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #EBE6E0;
  --site-accent-ink: #A9B8FF;
  --site-heading: #F6F3EF;
  --site-surface: #1C1A18;
  --site-tile-line: #3D3833;
  --site-panel-line: #3D3833;
  --parts-band-bg: #24201C;
  --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/28.8px 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): their blue, square, Play capitals ---------- */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 24px;
  background: var(--site-button-bg); color: var(--site-button-fg); border: 1px solid var(--site-button-bg); border-radius: var(--site-radius);
  font: 700 14px/1 var(--site-font-button); letter-spacing: 1px; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease;
}
.cl-btn:hover { background: var(--site-button-hover-bg); border-color: var(--site-button-hover-bg); color: var(--site-button-hover-fg); }
.cl-btn:focus-visible { outline: 2px solid var(--site-fg); outline-offset: 2px; }

/* ---------- the strip and the support box ---------- */
.cl-strip { display: flex; align-items: center; justify-content: center; height: 37.2px; padding: 0 16px; background: var(--site-strip); color: #F4F4F4; font: 400 14px/25.2px var(--site-font-body); text-align: center; }
.cl-help { display: inline-flex; flex: none; margin-left: auto; align-items: center; justify-content: center; gap: 8px; width: 200.8px; height: 44px; padding: 0 12px;
  background: var(--site-surface); color: var(--site-accent-ink); font: 700 16px/1 var(--site-font-menu); letter-spacing: 0.4px; text-transform: uppercase; }
.cl-help:hover { background: var(--site-panel); }
.cl-help--phone { display: none; }

/* ---------- header: the Orbital Parts mark, our headings, the support box, the magnifier and the cart on their blue ---------- */
.cl-hd { position: relative; z-index: 50; background: var(--site-accent); color: #FFFFFF; }
.cl-hd__in { position: relative; height: 67.4px; padding: 0 17px 0 95.5px; display: flex; align-items: center; }
.cl-hd__toggle { display: none; }
.cl-hd__logo { flex: none; width: 280.5px; }
.cl-hd__logo img { display: block; width: auto; height: 40px; }
.cl-hd__nav { flex: 1; min-width: 0; display: flex; align-items: center; height: 100%; }
.cl-hd__menu, .cl-hd__list { display: flex; height: 100%; }
.cl-hd__link { display: flex; align-items: center; height: 100%; padding: 0 44px; font: 700 16px/1 var(--site-font-menu); letter-spacing: 0.4px; text-transform: uppercase; color: #FFFFFF; }
.cl-hd__link:hover, .cl-hd__link.is-current { text-decoration: underline; text-underline-offset: 6px; }
/* the search: their magnifier; the field opens under it while it has focus (the label focuses it) */
.cl-hd__search { position: relative; flex: none; margin: 0 8px 0 16px; }
.cl-hd__open { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; color: #FFFFFF; cursor: pointer; }
.cl-hd__field { position: absolute; top: 58px; right: -60px; display: flex; width: 380px; padding: 10px; background: var(--site-surface); border: 1px solid var(--site-line); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  opacity: 0; pointer-events: none; }
.cl-hd__search:focus-within .cl-hd__field { opacity: 1; pointer-events: auto; }
.cl-hd__q { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--site-line); border-radius: var(--site-radius); background: var(--site-field-bg);
  font: 400 16px/1 var(--site-font-body); color: var(--site-fg); }
.cl-hd__q:focus { outline: 2px solid var(--site-accent-ink); outline-offset: -1px; }
.cl-hd__go { flex: none; height: 44px; padding: 0 16px; background: var(--site-accent); color: var(--site-accent-fg); font: 700 14px/1 var(--site-font-button); letter-spacing: 1px; text-transform: uppercase; }
/* the kit's theme switch (a 40px square in currentColor, shown at night), in a box of ours so no rule names a kit class */
.cl-hd__theme { flex: none; display: flex; margin-right: 4px; color: #FFFFFF; }
.cl-hd__cart { flex: none; position: relative; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #FFFFFF; }
.cl-hd__cart-icon { overflow: visible; }
.cl-hd__cart-count { position: absolute; top: 0; right: 0; min-width: 18px; padding: 0 4px; font: 700 13px/18px var(--site-font-body); text-align: center; border-radius: 9px;
  background: #E00000; color: #FFFFFF; }
.cl-hd__cart-count:empty { display: none; }

/* ---------- footer: their charcoal block, the search box, the name, the blue bar, the legal line ---------- */
.cl-ft { margin-top: 32px; color: #FFFFFF; font: 400 14px/24px var(--site-font-body); }
.cl-ft__main { background: var(--site-dark); padding: 10px 16px 64px; }
.cl-ft__cols { display: grid; grid-template-columns: repeat(3, 360px); justify-content: center; gap: 48px; height: 293px; padding-top: 48px; }
.cl-ft__h { font: 700 16px/28.8px var(--site-font-heading); text-transform: uppercase; margin-bottom: 8px; }
.cl-ft__links li { line-height: 24px; }
.cl-ft__links a { color: #E8E8E8; }
.cl-ft__links a:hover { color: #FFFFFF; text-decoration: underline; }
.cl-ft__search { width: 680px; height: 177.2px; margin: 0 auto; padding: 29px 33px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12); text-align: center; }
.cl-ft__sh { font: 700 18px/32.4px var(--site-font-heading); text-transform: uppercase; letter-spacing: 1px; }
.cl-ft__sp { font: 400 13px/18.8px var(--site-font-body); color: #E8E8E8; margin: 6px 0 18px; }
.cl-ft__row { display: flex; justify-content: center; gap: 8px; }
.cl-ft__q { width: 260px; height: 44px; 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-body); }
.cl-ft__go { height: 44px; padding: 0 22px; background: #333333; color: #FFFFFF; font: 400 13.3px/1 var(--site-font-button); text-transform: uppercase; }
.cl-ft__go:hover { background: var(--site-accent); }
.cl-ft__bar { display: flex; align-items: center; justify-content: center; gap: 40px; height: 143.2px; padding: 0 16px; background: var(--site-bar); font: 400 14px/24px var(--site-font-body); }
.cl-ft__bar a { display: inline-flex; align-items: center; gap: 8px; }
.cl-ft__bar a:hover { text-decoration: underline; }
.cl-ft__legal { display: flex; align-items: flex-start; justify-content: center; height: 155.3px; padding: 70px 16px 0; background: var(--site-bg); color: var(--site-fg); }
.cl-ft__small { font: 400 13px/23px var(--site-font-body); text-align: center; }

/* 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; }

/* ---------- phones: the strip on two lines, the white support bar, the blue bar with the toggle and magnifier at the left ---------- */
@media (max-width: 979.98px) {
  body { line-height: 24px; }
  .cl-strip { height: 57px; padding: 0 60px; line-height: 19.5px; }
  .cl-help--phone { position: static; display: flex; width: 100%; height: 40px; margin: 0; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
  .cl-hd__in { height: 67.4px; padding: 0; justify-content: center; }
  .cl-hd__toggle { position: absolute; left: 8px; top: 12px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #FFFFFF; }
  .cl-hd__logo { width: auto; }
  .cl-hd__logo img { height: 34px; }
  .cl-hd__cart { position: absolute; right: 12px; top: 12px; }
  .cl-hd__theme { position: absolute; right: 52px; top: 14px; margin: 0; }
  /* the drawer: opaque, under the bar, the tree's headings then the search */
  .cl-hd__nav { position: absolute; top: 100%; left: 0; right: 0; height: auto; display: block; background: var(--site-surface); color: var(--site-fg); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); }
  .cl-js .cl-hd__nav:not(.is-open) { display: none; }
  .cl-hd__menu, .cl-hd__list { display: block; height: auto; }
  .cl-hd__link { min-height: 48px; padding: 0 16px; border-bottom: 1px solid var(--site-line); color: var(--site-fg); }
  .cl-hd__nav .cl-help { display: none; }
  .cl-hd__search { margin: 0; padding: 16px; }
  .cl-hd__open { display: none; }
  .cl-hd__field { position: static; width: auto; padding: 0; border: 0; box-shadow: none; opacity: 1; pointer-events: auto; }

  .cl-ft { margin-top: 16px; }
  .cl-ft__main { padding: 16px 16px 32px; }
  .cl-ft__cols { grid-template-columns: 1fr 1fr; gap: 12px 16px; height: auto; padding: 8px 0 20px; }
  .cl-ft__col:last-child { grid-column: 1 / -1; }
  .cl-ft__h { font-size: 13px; margin: 0; }
  .cl-ft__links a { display: inline-flex; align-items: center; min-height: 40px; }
  .cl-ft__search { width: 100%; height: 230.5px; padding: 22px 16px; }
  .cl-ft__sp { margin: 4px 0 16px; }
  .cl-ft__row { flex-direction: column; align-items: center; }
  .cl-ft__q, .cl-ft__go { width: 100%; max-width: 300px; }
  .cl-ft__bar { flex-direction: column; gap: 12px; height: 238.8px; }
  .cl-ft__legal { height: 235px; padding-top: 60px; }
}

/* ---------- the 404 (templates/404.html) ---------- */
.cl-404 { padding: 72px 16px 96px; text-align: center; }
.cl-404__h { font: 700 28px/42px var(--site-font-heading); letter-spacing: 1.5px; text-transform: uppercase; color: var(--site-heading); }
.cl-404__p { margin: 12px 0 32px; color: var(--site-fg); }

}
