/* cl-site.css: CSF's look on every page: the tokens, the fonts, the reset and the chrome (the header with its
   menu, the footer, the primary button, the 404). Written by hand from the capture of csfradiators.com: the
   grey diamond pattern around a white 1242px column, the Orbital Parts mark over a bar of
   bold upper-case links, the dark slate footer, four centred columns and the copyright bar.

   The cascade: `@layer base, kit, site;` sets the order; the tokens sit on :root outside any layer, the reset in
   @layer base (under the kit's rules), every other rule in @layer site. The kit's shop pages and vehicle band
   take only the three --parts-* tokens below; no rule here names a kit class. Below 980px the menu folds
   behind its toggle (cl-site.js) into an opaque panel under the bar. */
@layer base, kit, site;

@font-face { font-family: "Open Sans"; font-style: normal; font-weight: 300 800; font-stretch: 100%; font-display: swap; src: url("fonts/open-sans-300-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: "Open Sans"; font-style: normal; font-weight: 300 800; font-stretch: 100%; font-display: swap; src: url("fonts/open-sans-300-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: "Open Sans"; font-style: italic; font-weight: 300 800; font-stretch: 100%; font-display: swap; src: url("fonts/open-sans-400-italic-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: "Open Sans"; font-style: italic; font-weight: 300 800; font-stretch: 100%; font-display: swap; src: url("fonts/open-sans-400-italic-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: "Exo"; font-style: italic; font-weight: 900; font-display: swap; src: url("fonts/exo-900-italic-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: "Exo"; font-style: italic; font-weight: 900; font-display: swap; src: url("fonts/exo-900-italic-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: the white column, CSF's slate text and dark bands, their red, the hairlines and the pale bands */
  --site-bg: #FFFFFF;
  --site-fg: #2D3748;
  --site-ink: #1A202C;
  --site-muted: #4A5568;
  --site-line: #CAD4DE;
  --site-band: #E1EBF4;
  --site-card: #E5EFF8;
  --site-red: #EC0E10;
  --site-accent: #2D3748;
  --site-accent-strong: #1A202C;
  --site-accent-fg: #FFFFFF;
  --site-field-bg: #FFFFFF;
  --site-button-bg: #2D3748;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #1A202C;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #E1EBF4;
  --site-disabled-fg: #4A5568;
  --site-foot-bg: #1A202C;
  --site-foot-cols: #2D3748;
  --site-foot-fg: #E4E4E4;
  --site-pattern: #BBBBBB url("img/chrome/grey-pattern-dark.png") 50% 50% repeat;
  --site-pattern-light: url("img/site/home/grey-pattern-light.png") 50% 50% repeat;  /* the home's part tags */

  /* fonts: Open Sans for every word, Exo black italic for the footer headings */
  --site-font-body: "Open Sans", Arial, sans-serif;
  --site-font-heading: var(--site-font-body);
  --site-font-button: var(--site-font-body);
  --site-font-display: Exo, "Open Sans", Arial, sans-serif;
  --site-font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;

  /* shape and layout: the white column is 1242px, its content 1194px */
  --site-radius: 3px;
  --site-col: 1242px;
  --site-max: 1194px;
}
/* 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-strong);
  --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
   column turns the kit's warm near black on a darker ground, the slate text near white, the rules dark grey, the
   pale bands a step up; the slate footer and the red name stay; the slate button lifts a step so it reads on the
   dark, and the cart's accent (a tick, a focus ring, a note) is near white */
:root[data-parts-theme="dark"] {
  color-scheme: dark;
  --site-bg: #121110;
  --site-fg: #F6F3EF;
  --site-ink: #F6F3EF;
  --site-muted: #EBE6E0;
  --site-line: #3D3833;
  --site-band: #24201C;
  --site-card: #1C1A18;
  --site-red: #EC0E10;
  --site-accent: #4A5568;
  --site-accent-strong: #5A6578;
  --site-accent-fg: #FFFFFF;
  --site-field-bg: #1C1A18;
  --site-button-bg: #4A5568;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #5A6578;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #EBE6E0;
  --site-foot-bg: #1A202C;
  --site-foot-cols: #2D3748;
  --site-foot-fg: #E4E4E4;
  --site-pattern: #0A0908;
  --site-pattern-light: #1C1A18;
  --cs-accent: #F6F3EF;
  --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.6 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: CSF's slate, white upper-case type ---------- */
.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: 0; border-radius: var(--site-radius);
  font: 700 15px/1 var(--site-font-button); letter-spacing: 0.6px; text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color 0.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-red); outline-offset: 2px; }

/* ---------- header: the pattern, the white column, the Orbital Parts mark, the menu bar ---------- */
.cl-hd { position: relative; z-index: 50; background: var(--site-pattern); }
.cl-hd__in { position: relative; max-width: var(--site-col); margin: 0 auto; background: var(--site-bg); }
.cl-hd__top { height: 200px; display: flex; align-items: center; justify-content: center; }
.cl-hd__logo { flex: none; display: block; }
/* the mark at the height CSF's name stood (80px), dark lettering on the white column, white on the night one */
.cl-hd__mark { width: 400px; height: auto; }
.cl-hd__mark--dark { display: none; }
:root[data-parts-theme="dark"] .cl-hd__mark--light { display: none; }
:root[data-parts-theme="dark"] .cl-hd__mark--dark { display: block; }
.cl-hd__bar { height: 80px; display: flex; justify-content: center; }
.cl-hd__nav { display: flex; }
.cl-hd__list { display: flex; }
.cl-hd__link {
  position: relative; display: flex; align-items: center; height: 80px; padding: 0 9.75px;
  font: 800 16px/16px var(--site-font-body); letter-spacing: 0.16px; text-transform: uppercase; color: var(--site-muted);
}
.cl-hd__link:hover, .cl-hd__link.is-current { color: var(--site-ink); }
.cl-hd__link.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--site-ink); }
.cl-hd__nav .cl-hd__form { display: none; }
.cl-hd__tools { position: absolute; right: 24px; top: 200px; height: 80px; display: flex; align-items: center; gap: 4px; }
.cl-hd__icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--site-muted); cursor: pointer; list-style: none; }
.cl-hd__icon::-webkit-details-marker { display: none; }
.cl-hd__icon:hover { color: var(--site-ink); }
.cl-hd__icon:focus-visible { outline: 2px solid var(--site-red); outline-offset: 2px; }
.cl-hd__cart-count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--site-red); color: #FFFFFF; font: 700 13px/18px var(--site-font-body); text-align: center;
}
.cl-hd__cart-count:empty { display: none; }
.cl-hd__toggle { display: none; }
.cl-hd__find { position: static; }
.cl-hd__find[open] .cl-hd__icon { color: var(--site-ink); }
.cl-hd__panel {
  position: absolute; right: 0; top: 100%; width: 400px; padding: 16px;
  background: var(--site-bg); border: 1px solid var(--site-line); box-shadow: 0 12px 24px -12px rgba(26, 32, 44, 0.35);
}

/* the search form (the menu bar's panel, and the phone menu) */
.cl-search { display: flex; gap: 8px; }
.cl-search input {
  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); color: var(--site-ink);
  font: 400 16px/1 var(--site-font-body);
}
.cl-search input:focus { outline: 2px solid var(--site-fg); outline-offset: 0; border-color: var(--site-fg); }

/* ---------- footer: the social row, the four columns, the copyright bar ---------- */
.cl-ft { background: var(--site-pattern); color: #FFFFFF; }
.cl-ft__in { max-width: var(--site-col); margin: 0 auto; text-align: center; }
.cl-ft__cols { min-height: 324px; padding: 30px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; background: var(--site-foot-cols); }
.cl-ft__col h2 { font: italic 900 20px/30px var(--site-font-display); text-transform: uppercase; }
.cl-ft__col ul { margin-top: 10px; }
.cl-ft__col a { display: block; font: 400 16px/32px var(--site-font-system); letter-spacing: 1.6px; color: var(--site-foot-fg); }
.cl-ft__col a:hover { color: #FFFFFF; text-decoration: underline; }
.cl-ft__small { display: flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 24px; background: var(--site-foot-bg); font: 700 13px/1.4 var(--site-font-body); }
.cl-owner, .cl-owner:visited { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cl-owner:hover { opacity: .8; }

/* ---------- the 404 (templates/404.html): the white column on the pattern ---------- */
.cl-404-page { background: var(--site-pattern); }
.cl-404 { max-width: var(--site-col); margin: 0 auto; padding: 80px 24px 96px; text-align: center; background: var(--site-bg); }
.cl-404__h { font: italic 900 56px/1.1 var(--site-font-display); color: var(--site-fg); text-transform: uppercase; }
.cl-404__p { margin: 16px 0 32px; font: 400 18px/1.6 var(--site-font-body); color: var(--site-fg); }

/* ---------- phones: the 80px bar with the mark, the cart and the menu toggle ---------- */
@media (max-width: 979.98px) {
  .cl-hd { padding: 0 8px; }
  .cl-hd__top { height: 80px; justify-content: flex-start; padding: 0 96px 0 24px; }
  .cl-hd__mark { width: 170px; }
  .cl-hd__tools { top: 0; right: 16px; height: 80px; }
  .cl-hd__find { display: none; }
  .cl-hd__toggle { display: inline-flex; }
  .cl-hd__bar { height: auto; display: block; }
  .cl-hd__nav { display: block; padding: 0 16px 16px; border-top: 1px solid var(--site-line); background: var(--site-bg); }
  .cl-js .cl-hd__nav:not(.is-open) { display: none; }
  .cl-hd__list { flex-direction: column; }
  .cl-hd__link { height: 48px; padding: 0 8px; border-bottom: 1px solid var(--site-line); }
  .cl-hd__link.is-current::after { display: none; }
  .cl-hd__nav .cl-hd__form { display: flex; margin-top: 16px; }
  .cl-ft { padding: 0 24px; }
  .cl-ft__cols { min-height: 1025px; grid-template-columns: 1fr; align-content: start; padding: 30px 24px; }
  .cl-ft__col a { line-height: 40px; }
  .cl-ft__col:nth-child(1) { min-height: 270px; }
  .cl-ft__col:nth-child(2) { min-height: 309px; }
  .cl-ft__col:nth-child(3) { min-height: 155px; }
  .cl-404 { margin: 0 8px; padding: 56px 16px 72px; }
  .cl-404__h { font-size: 40px; }
}

}

/* the kit's night switch (parts/theme_switch.html, between the search and the cart), in the slate of the icons
   beside it; outside the layers and a step more specific, since the kit's head block styles it unlayered after this sheet */
.cl-hd__tools .parts-theme-switch { color: var(--site-muted); }
.cl-hd__tools .parts-theme-switch:hover { color: var(--site-ink); }
/* with the switch shown (the night hours) the three icons no longer clear the centred menu under 1170px: they move
   up to the right of the mark, where the phone bar keeps them */
@media (min-width: 980px) and (max-width: 1169.98px) {
  :root[data-parts-night] .cl-hd__tools { top: 60px; }
}
