/* cl-site.css: the site's tokens, reset and chrome in corsaperformance.com's look: the near-black bar with the
   red and white logo, the bold light menu and the icons; the dark vehicle band under it; the white footer with the
   black logo and its columns. Barlow throughout, square boxes, their red for the buttons.

   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 in a 1440 window; below it the phone, measured in their 390 stage. */
@layer base, kit, site;

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-n5-a193a1990790eba0cc5cca569d23799830e90f07.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-n6-329f582a81f63f125e63c20a5a80ae9477df68e1.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-n7-691d1d11f150e857dcbc1c10ef03d825bc378d81.woff2") format("woff2"); }

:root {
  /* colours: their light grey page, near-black text and bars, red accent, white footer */
  --site-bg: #F2F2F2;
  --site-fg: #1A1A1A;
  --site-muted: #7B7B7B;
  --site-line: #CBCBCB;
  --site-band: #E5E5E5;
  --site-card: #E9E9E9;
  --site-dark: #1A1A1A;
  --site-on-dark: #F2F2F2;
  --site-dark-line: rgba(242, 242, 242, 0.15);
  --site-footer-bg: #FFFFFF;
  --site-accent: #E41E30;
  --site-accent-fg: #FFFFFF;
  --site-badge: #13BC57;
  --site-field-bg: #FFFFFF;
  --site-button-bg: #E41E30;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #1A1A1A;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #E5E5E5;
  --site-disabled-fg: #1A1A1A;
  --site-chip: rgba(26, 26, 26, 0.1);          /* the grey chip behind a chevron, the scroll row's track */
  --site-field-line: rgba(26, 26, 26, 0.12);   /* the footer search's rule */
  --site-find-bg: #EFEFEF;                     /* the phone search box under the home's band */
  --site-find-line: #C4CDD5;

  /* fonts */
  --site-font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --site-font-heading: var(--site-font-body);
  --site-font-button: var(--site-font-body);

  /* shape and layout: their content runs 48px in from the window's edges, 20px on phones */
  --site-radius: 0;
  --site-max: 1440px;
  --site-gutter: 48px;
}
/* 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: #B81626;
  --parts-font: var(--site-font-body);
}
@media (max-width: 979.98px) {
  :root { --site-gutter: 20px; }
}
/* the dark page (data-parts-theme="dark" on <html>, the kit's night pick or the shopper's switch): the kit's warm
   near black for the page, near-white text, dark grey rules, cards a step up; the near-black header, band and box
   stay, the white footer turns the header's black, the red is lifted a touch where it is text */
:root[data-parts-theme="dark"] {
  color-scheme: dark;
  --site-bg: #121110;
  --site-fg: #F6F3EF;
  --site-muted: #EBE6E0;
  --site-line: #3D3833;
  --site-band: #24201C;
  --site-card: #1C1A18;
  --site-dark: #1A1A1A;
  --site-on-dark: #F2F2F2;
  --site-dark-line: rgba(242, 242, 242, 0.15);
  --site-footer-bg: #1A1A1A;
  --site-accent: #E41E30;
  --site-accent-fg: #FFFFFF;
  --site-badge: #13BC57;
  --site-field-bg: #1C1A18;
  --site-button-bg: #E41E30;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #F6F3EF;
  --site-button-hover-fg: #121110;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #F6F3EF;
  --site-chip: rgba(246, 243, 239, 0.12);
  --site-field-line: #3D3833;
  --site-find-bg: #1C1A18;
  --site-find-line: #3D3833;
  --cs-accent: #F0414F;
  --parts-accent-strong: color-mix(in srgb, var(--parts-accent) 78%, #fff);
  --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: 500 16px/1.6 var(--site-font-body);
  letter-spacing: 0.01em;
  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 {

.cl-wrap { max-width: var(--site-max); margin: 0 auto; padding: 0 var(--site-gutter); }

/* ---------- the primary button: their red, square ---------- */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 60px; padding: 0 40px;
  background: var(--site-button-bg); color: var(--site-button-fg); border: 0; border-radius: var(--site-radius);
  font: 700 16px/1 var(--site-font-button); letter-spacing: 0.01em; 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-on-dark); outline-offset: 2px; }

/* ---------- header: the Orbital Parts mark, our headings, search and cart on the near-black bar ---------- */
.cl-hd { position: relative; z-index: 50; background: var(--site-dark); color: var(--site-on-dark); }
.cl-hd__in { display: flex; align-items: center; height: 112px; }
.cl-hd__logo { flex: none; display: block; }
.cl-hd__logo img { width: 220px; height: auto; }
.cl-hd__nav { flex: 1; min-width: 0; margin-left: 40px; }
.cl-hd__list { display: flex; flex-wrap: wrap; gap: 0 40px; }
.cl-hd__link { display: block; padding: 3px 0; border-bottom: 1px solid transparent; font: 700 16px/25.6px var(--site-font-body); letter-spacing: 0.16px; }
.cl-hd__link:hover, .cl-hd__link[aria-current] { border-bottom-color: var(--site-accent); }
.cl-hd__btn, .cl-hd__cart { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--site-on-dark); }
.cl-hd__btn svg, .cl-hd__cart svg { overflow: visible; }
.cl-hd__toggle { display: none; }
.cl-hd__find { margin-right: 6px; }
.cl-hd__cart { margin-right: -9px; }
.cl-hd__btn:hover, .cl-hd__cart:hover { color: #FFFFFF; }
.cl-hd__cart-count { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--site-badge); color: #FFFFFF; font: 700 13px/18px var(--site-font-body); text-align: center; }
.cl-hd__cart-count:empty { display: none; }

/* the panel under the bar: the search on desktop, the search and the headings on phones; opaque */
.cl-hd__panel { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--site-dark); border-top: 1px solid var(--site-dark-line); }
.cl-hd__panel.is-open { display: block; }
.cl-hd__panel-in { padding-top: 24px; padding-bottom: 32px; }
.cl-hd__search { display: flex; max-width: 640px; margin: 0 auto; }
.cl-hd__search input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--site-line); border-right: 0; border-radius: var(--site-radius); background: var(--site-field-bg); color: var(--site-fg); font: 500 16px/1 var(--site-font-body); }
.cl-hd__search button { flex: none; width: 56px; height: 52px; display: inline-flex; align-items: center; justify-content: center; background: var(--site-accent); color: var(--site-accent-fg); }
.cl-hd__plist { display: none; }

/* ---------- the vehicle band under the header: their dark Search Your Vehicle strip ---------- */
.cl-search { background: var(--site-dark); }

/* ---------- footer: white, the brand's line and our search, then the columns ---------- */
.cl-ft { background: var(--site-footer-bg); color: var(--site-fg); }
.cl-ft__in { padding-top: 64px; padding-bottom: 64px; }
.cl-ft__grid { min-height: 326px; display: grid; grid-template-columns: minmax(0, 389px) minmax(0, 250px) minmax(0, 127px) minmax(0, 250px); column-gap: clamp(40px, 6.67vw, 96px); align-items: start; }
.cl-ft__line { font: 600 28px/33.6px var(--site-font-heading); letter-spacing: -0.56px; }
.cl-ft__search { position: relative; display: flex; margin-top: 24px; }
.cl-ft__search input { flex: 1; min-width: 0; height: 60px; padding: 0 56px 0 20px; border: 1px solid var(--site-field-line); border-radius: var(--site-radius); background: var(--site-footer-bg); color: var(--site-fg); font: 500 16px/1 var(--site-font-body); }
.cl-ft__search input::placeholder { color: var(--site-fg); opacity: 1; }
.cl-ft__search button { position: absolute; right: 8px; top: 10px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.cl-ft__search button svg { box-sizing: content-box; width: 6px; padding: 7px 9px; background: var(--site-chip); }
.cl-ft__title { font: 700 16px/25.6px var(--site-font-body); }
.cl-ft__links { display: grid; gap: 12px; margin-top: 23px; }
.cl-ft__links a { display: inline-block; font: 500 16px/25.6px var(--site-font-body); }
.cl-ft__links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cl-ft__small { min-height: 90px; margin-top: 48px; display: grid; gap: 22px; align-content: start; font: 500 14px/22.4px var(--site-font-body); }
.cl-ft__small a { text-decoration: underline; text-underline-offset: 2px; }

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

/* ---------- the 404 (templates/404.html) ---------- */
.cl-404 { padding: 96px var(--site-gutter) 120px; text-align: center; }
.cl-404__title { font: 600 48px/52.8px var(--site-font-heading); letter-spacing: -0.96px; }
.cl-404__text { margin-top: 24px; }
.cl-404 .cl-btn { margin-top: 40px; }

/* ---------- phones: the 62px bar with the menu and search buttons, the mark centred, the cart ---------- */
@media (max-width: 979.98px) {
  .cl-hd__in { position: relative; height: 62px; }
  .cl-hd__toggle { display: inline-flex; margin-left: -9px; }
  .cl-hd__find { margin-right: auto; }
  .cl-hd__logo { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); }
  .cl-hd__logo img { width: 150px; }
  .cl-hd__nav { display: none; }
  .cl-hd__cart { margin-left: 0; }
  .cl-hd__panel-in { padding-top: 16px; padding-bottom: 16px; }
  .cl-hd__plist { display: block; margin-top: 8px; }
  .cl-hd__plist a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--site-dark-line); font: 700 16px/1.4 var(--site-font-body); }

  .cl-ft__in { padding-top: 48px; padding-bottom: 48px; }
  .cl-ft__grid { min-height: 790px; grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: 40px; }
  .cl-ft__brand { grid-column: 1 / -1; }
  .cl-ft__line { font-size: 22px; line-height: 26.4px; letter-spacing: -0.44px; }
  .cl-ft__title { font-size: 14px; line-height: 22.4px; }
  .cl-ft__links { margin-top: 16px; gap: 4px; }
  .cl-ft__links a { display: flex; align-items: center; min-height: 40px; font-size: 14px; line-height: 1.4; }
  .cl-ft__small { min-height: 132px; margin-top: 81px; gap: 16px; font-size: 13px; line-height: 20px; }

  .cl-404 { padding: 64px var(--site-gutter) 80px; }
  .cl-404__title { font-size: 28px; line-height: 30.8px; }
}

}

/* the kit's night switch (parts/theme_switch.html, between the search and the cart), in the bar's ink like the
   icons beside it; outside the layers, since the kit's head block styles it unlayered */
.parts-theme-switch { margin-right: 6px; }
.parts-theme-switch:hover { color: #FFFFFF; }
@media (max-width: 979.98px) {
  .parts-theme-switch { margin-right: 0; }
}
