/* cl-site.css: bushwacker.ca's tokens, fonts, reset and chrome (the notice strip, the header and its menu, the footer,
   the yellow button), on every page, written from the measurements of realtruck.com (review/pages/home.json):
   their near-black bars, their yellow, Roboto for every word and their condensed brand face for the big headings.
   cl-shop.css and the kit's shop pages read only these tokens (the kit only --parts-accent, --parts-accent-strong
   and --parts-font).

   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.
   Two layouts: from 980px the desktop one, measured in a 1440 window; below it their phone one, measured at 390. */
@layer base, kit, site;

/* Roboto (their PlatformFont) and All Terrain Pro (their PlatformBrandFont), the capture's files (static/fonts/FONTS.md) */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/platformfont-400.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/platformfont-700.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/platformfont-900.woff2") format("woff2"); }
@font-face { font-family: "All Terrain Pro"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/platformbrandfont-900.woff2") format("woff2"); }

:root {
  /* colours */
  --site-bg: #FFFFFF;
  --site-fg: #1E1E1E;
  --site-muted: #1E1E1E;
  --site-line: #D6D6D6;
  --site-band: #F2F2F2;
  --site-card: #F6F6F6;
  --site-dark: #1E1E1E;
  --site-dark-fg: #FFFFFF;
  --site-yellow: #FFC600;
  --site-accent: #0077A2;
  --site-accent-fg: #FFFFFF;
  --site-field-bg: #FFFFFF;
  --site-field-line: #D5D5D5;
  --site-button-bg: #FFC600;
  --site-button-fg: #1E1E1E;
  --site-button-hover-bg: #E6B200;
  --site-button-hover-fg: #1E1E1E;
  --site-disabled-bg: #E4E4E4;
  --site-disabled-fg: #1E1E1E;
  /* the plate under a photo or a product image: white in both themes, since the photos are drawn for white */
  --site-plate: #FFFFFF;
  /* the rules inside the near-black bars (the phone menu's top, the footer's columns) */
  --site-dark-line: #3A3A3A;

  /* fonts */
  --site-font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --site-font-heading: "All Terrain Pro", "Roboto Condensed", "Arial Narrow", Impact, sans-serif;
  --site-font-button: var(--site-font-body);

  /* shape and layout */
  --site-radius: 4px;
  --site-max: 1320px;
  --site-wide: 1280px;
  /* the space between the viewport's edge and the content, at every width: the header's own 16px */
  --site-gutter: 16px;

  /* the phone stage (390) and the unit the chrome is written in: 1px on desktop and phones alike, their site is fluid */
  --mx: calc(100vw / 390);
  --u: 1px;
}
/* the kit's shop pages and vehicle band: their blue for the one main action (the kit draws it with white ink), Roboto */
:root {
  --parts-accent: var(--site-accent);
  --parts-accent-strong: #005F82;
  --parts-font: var(--site-font-body);
}
/* the dark page (data-parts-theme="dark" on <html>, the kit's night pick or the shopper's switch): the white page turns
   the kit's warm near black, text near white, rules a dark grey, cards and the band grey a step up from the page; the
   near-black strip, header and footer stay as they are, the yellow and its near-black ink stay, the blue lifts a touch to
   read on the dark; photos keep their white plates (--site-plate) */
:root[data-parts-theme="dark"] {
  color-scheme: dark;
  --site-bg: #121110;
  --site-fg: #F6F3EF;
  --site-muted: #F6F3EF;
  --site-line: #3D3833;
  --site-band: #1C1A18;
  --site-card: #1C1A18;
  --site-accent: #0A8BBD;
  --site-field-bg: #1C1A18;
  --site-field-line: #5A534C;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #F6F3EF;
  --parts-accent-strong: color-mix(in srgb, var(--parts-accent) 78%, #fff);
  --parts-band-bg: #24201C;
  --parts-band-ink: #FFFFFF;
  --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 yellow button (their 42px yellow box, upper-case Roboto 700) ---------- */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 32px;
  background: var(--site-button-bg); color: var(--site-button-fg); border: 1px solid var(--site-button-bg); border-radius: var(--site-radius);
  font: 700 16px/24px var(--site-font-button); 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 notice strip: 32px of near-black over the header ---------- */
.cl-strip { background: var(--site-dark); color: var(--site-dark-fg); }
.cl-strip__in { height: 32px; padding: 8px 16px 0; display: flex; justify-content: space-between; gap: 32px; font: 700 14px/21px var(--site-font-body); }
.cl-strip__links { display: flex; gap: 32px; font-weight: 400; }
.cl-strip__links a:hover { text-decoration: underline; }

/* ---------- header: the brand's name in words, the search, support and the cart; then the menu bar ---------- */
.cl-hd { position: relative; z-index: 50; background: var(--site-dark); color: var(--site-dark-fg); }
.cl-hd__bar { height: 68px; padding: 16px 16px 0; display: flex; align-items: flex-start; gap: 32px; }
.cl-hd__toggle { display: none; }
.cl-hd__logo { flex: none; height: 36px; display: flex; align-items: center; }
.cl-hd__logo img, .cl-ft__logo img { display: block; width: auto; height: 40px; }  /* the Orbital Parts mark, white letters on the near-black, 5:1 */
.cl-hd__find { position: relative; flex: 1; min-width: 0; max-width: 744px; }
.cl-hd__search { display: flex; height: 40px; margin-top: -2px; }
.cl-hd__search input {
  flex: 1; min-width: 0; height: 40px; margin: 0; padding: 0 12px; background: var(--site-field-bg); color: var(--site-fg);
  border: 1px solid var(--site-field-line); border-right: 0; border-radius: var(--site-radius) 0 0 var(--site-radius);
  font: 400 16px/38px var(--site-font-body); -webkit-appearance: none; appearance: none;
}
.cl-hd__search input::placeholder { color: var(--site-fg); opacity: 1; }
.cl-hd__search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.cl-hd__search button { flex: none; width: 44px; height: 40px; display: grid; place-items: center; background: var(--site-yellow); color: var(--site-button-fg); border: 1px solid var(--site-yellow); border-radius: 0 var(--site-radius) var(--site-radius) 0; }
.cl-hd__tools { flex: none; margin-left: auto; height: 36px; display: flex; align-items: center; gap: 32px; }
.cl-hd__help { display: flex; align-items: center; gap: 8px; min-height: 40px; font: 700 14px/24px var(--site-font-body); }
.cl-hd__help:hover span { text-decoration: underline; }
.cl-hd__cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 0 -6px; color: var(--site-dark-fg); }
.cl-hd__cart-count { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 3px; font: 700 13px/18px var(--site-font-body); text-align: center; border-radius: 9px; background: var(--site-yellow); color: var(--site-button-fg); }
.cl-hd__cart-count:empty { display: none; }
.cl-hd__tools .parts-theme-switch { margin: 0 -6px; color: var(--site-dark-fg); }

/* the search's suggestions (partials/suggest.html, shown by fm-site.js): an opaque white box under the field, square,
   full-contrast type, each row a 40px tap target with the row in hand marked in the band grey */
.cl-suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 70; max-height: min(70vh, 640px); overflow-y: auto; background: var(--site-bg); color: var(--site-fg); border: 1px solid var(--site-line); border-radius: var(--site-radius); box-shadow: 0 12px 32px rgba(0, 0, 0, .35); text-align: left; font: 400 14px/20px var(--site-font-body); }
.cl-suggest .fm-suggest-section + .fm-suggest-section { border-top: 1px solid var(--site-line); }
.cl-suggest .fm-suggest-title { padding: 12px 12px 4px; font: 700 14px/20px var(--site-font-body); text-transform: uppercase; }
.cl-suggest .fm-suggest-item { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 6px 12px; color: var(--site-fg); }
.cl-suggest .fm-suggest-item.is-active, .cl-suggest .fm-suggest-item:hover { background: var(--site-band); }
.cl-suggest .fm-suggest-item b, .cl-suggest .fm-suggest-item strong { font-weight: 700; }
.cl-suggest .fm-suggest-glyph { flex: none; }
.cl-suggest .fm-suggest-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cl-suggest .fm-suggest-text > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-suggest .fm-suggest-note, .cl-suggest .fm-suggest-count, .cl-suggest .fm-suggest-fit { font-size: 13px; line-height: 18px; }
.cl-suggest .fm-suggest-count, .cl-suggest .fm-suggest-price, .cl-suggest .fm-suggest-term .fm-suggest-note, .cl-suggest .fm-suggest-search .fm-suggest-note { margin-left: auto; white-space: nowrap; }
.cl-suggest .fm-suggest-price { font-weight: 700; }
.cl-suggest .fm-suggest-thumb { flex: none; width: 44px; height: 44px; object-fit: contain; background: var(--site-plate); border: 1px solid var(--site-line); }
.cl-suggest .fm-suggest-thumb--blank { display: block; background: var(--site-card); }
.cl-suggest .fm-suggest-all { justify-content: center; border-top: 1px solid var(--site-line); font-weight: 700; text-decoration: underline; }
.cl-suggest .fm-suggest-empty { padding: 12px; }

.cl-hd__row { height: 52px; display: flex; justify-content: space-between; padding: 0 var(--site-gutter) 0 calc(var(--site-gutter) - 12px); }
.cl-hd__list { display: flex; gap: 16px; }
.cl-hd__link { display: flex; align-items: center; height: 52px; padding: 0 12px; border-bottom: 2px solid transparent; font: 700 14px/21px var(--site-font-body); color: var(--site-dark-fg); }
.cl-hd__link:hover, .cl-hd__link.is-current { border-bottom-color: var(--site-yellow); }
.cl-hd__vehicle { flex: none; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 16px; background: var(--site-yellow); color: var(--site-button-fg); font: 700 14px/21px var(--site-font-body); }
.cl-hd__vehicle img { width: 48px; height: auto; }
.cl-hd__vehicle:hover span { text-decoration: underline; }
.cl-hd + * { margin-top: 0; }

/* ---------- footer: their near-black columns, our shop, policies and support ---------- */
.cl-ft { min-height: 629px; display: flex; flex-direction: column; background: var(--site-dark); color: var(--site-dark-fg); }
.cl-ft__in { flex: 1 0 auto; width: min(var(--site-wide), 100% - 2 * var(--site-gutter)); margin: 0 auto; padding: 40px 0 0; display: grid; grid-template-columns: minmax(0, 320px) repeat(4, minmax(0, 180px)); justify-content: space-between; column-gap: 32px; }
.cl-ft__brand { display: grid; align-content: start; justify-items: start; gap: 0; }
.cl-ft__h { font: 700 16px/16px var(--site-font-body); text-transform: uppercase; margin: 0 0 16px; }
.cl-ft__brand .cl-ft__h { margin: 32px 0 0; font-size: 18px; line-height: 20px; }
.cl-ft__text { font: 400 16px/24px var(--site-font-body); margin: 0 0 24px; }
.cl-ft__brand .cl-btn { width: 288px; max-width: 100%; }
.cl-ft__list li { padding: 4px 0 12px; font: 400 14px/21px var(--site-font-body); }
.cl-ft__list a:hover { text-decoration: underline; }
.cl-ft__col + .cl-ft__col .cl-ft__h { margin-top: 0; }
.cl-ft__sub { margin-top: 28px !important; }
.cl-ft__base { width: min(var(--site-wide), 100% - 2 * var(--site-gutter)); margin: 0 auto; padding: 40px 0 48px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 32px; font: 400 13px/24px var(--site-font-body); }
.cl-ft__base a:hover { text-decoration: underline; }
/* the footer's trademark line (the scrub step): "owner" links the client's site in the line's own colour */
.cl-owner, .cl-owner:visited { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cl-owner:hover { opacity: .8; }

/* ---------- the 404 (templates/404.html) ---------- */
.cl-404 { max-width: var(--site-wide); margin: 0 auto; padding: 96px 16px 120px; text-align: center; }
.cl-404__h { font: 900 72px/72px var(--site-font-heading); text-transform: uppercase; }
.cl-404__p { margin: 24px 0 32px; font: 700 16px/24px var(--site-font-body); }
@media (max-width: 979.98px) {
  .cl-404 { padding: 24px 16px 64px; }
  .cl-404__h { font-size: 36px; line-height: 1.05; }
  .cl-404__p { margin: 16px 0 24px; font-size: 15px; }
}

/* ---------- phones: their phone header (menu behind the bars, the search on its own row, the vehicle bar) ---------- */
@media (max-width: 979.98px) {
  .cl-strip__in { justify-content: center; padding: 8px 8px 0; }
  .cl-strip__links { display: none; }
  .cl-hd__bar { height: 104px; padding: 8px 16px 0; flex-wrap: wrap; align-items: center; gap: 0; }
  .cl-hd__toggle { display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin: -6px 2px -6px -6px; }
  .cl-hd__toggle img { width: 28px; height: 28px; }
  .cl-hd__logo { height: 40px; }
  .cl-hd__logo img, .cl-ft__logo img { height: 32px; }
  .cl-hd__tools { height: 40px; gap: 0; }
  .cl-hd__help { width: 40px; justify-content: center; }
  .cl-hd__help span { display: none; }
  .cl-hd__find { order: 3; flex: 1 1 100%; max-width: none; margin-top: 10px; }
  .cl-hd__search { margin-top: 0; }
  .cl-hd__row { height: 52px; position: relative; padding: 0; }
  .cl-hd__nav { position: absolute; top: 0; left: 0; right: 0; z-index: 60; background: var(--site-dark); border-top: 1px solid var(--site-dark-line); }
  .cl-js .cl-hd__nav:not(.is-open) { display: none; }
  .cl-hd__list { flex-direction: column; gap: 0; padding: 8px 0 16px; }
  .cl-hd__link { height: 48px; padding: 0 16px; font-size: 15px; border-bottom: 0; }
  .cl-hd__vehicle { flex: 1; justify-content: center; }

  .cl-ft { min-height: 896px; }
  .cl-ft__in { width: 100%; padding: 32px var(--site-gutter) 0; grid-template-columns: 1fr; row-gap: 0; }
  .cl-ft__brand { justify-items: center; text-align: center; }
  /* every footer link a 40px tap on a phone: the mark, the lists, the base line's links and its trademark owner */
  .cl-ft__logo a { display: inline-flex; align-items: center; min-height: 40px; }
  .cl-ft__base .cl-owner { display: inline-block; padding: 8px 0; margin: -8px 0; }
  .cl-ft__text { font-size: 15px; line-height: 22px; }
  .cl-ft__brand .cl-ft__h { font-size: 16px; }
  .cl-ft__h { font-size: 14px; }
  .cl-ft__list li { padding: 0; }
  .cl-ft__list a { display: flex; align-items: center; min-height: 40px; }
  .cl-ft__base > a { display: inline-flex; align-items: center; min-height: 40px; }
  .cl-ft__brand .cl-ft__h { margin-top: 32px; justify-self: stretch; text-align: left; }
  .cl-ft__brand .cl-ft__text { text-align: left; }
  .cl-ft__brand .cl-btn { width: 100%; margin: 0; }
  .cl-ft__col { border-top: 1px solid var(--site-dark-line); padding: 18px 16px 6px; }
  .cl-ft__col:first-of-type { margin-top: 32px; }
  .cl-ft__base { width: 100%; padding: 32px var(--site-gutter) 48px; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; }
}

}

@layer site {
.cl-ft__col > summary { list-style: none; pointer-events: none; }
.cl-ft__col > summary::-webkit-details-marker { display: none; }
@media (max-width: 979.98px) {
  .cl-ft__col > summary { pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 40px; margin: 0 0 8px; }
  .cl-ft__col > summary::after { content: "+"; font: 400 20px/30px var(--site-font-body); }
  .cl-ft__col[open] > summary::after { content: "\2212"; }
}
}
