/* cl-site.css: the site's tokens, fonts, reset and chrome (the announcement line, the header, RaceQuip's red
   category bar, the footer, the primary button) in the look RaceQuip's page wears on holley.com: white pages,
   a black header between red bars, Oswald headings and menus over Open Sans, a near-black footer.
   Measured on their home and the RaceQuip page (review/pages/home.json, brands-racequip.json).
   `@layer base, kit, site;` sets the cascade: 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 only the three --parts-* tokens.
   Two layouts: from 980px the desktop bars; below it the phone header (their 390 stage) with the menu in a drawer. */
@layer base, kit, site;

@font-face { font-family: "Oswald"; src: url("fonts/oswald-var.woff2") format("woff2"); font-weight: 200 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("fonts/open-sans-var.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }

:root {
  /* colours */
  --site-bg: #FFFFFF;
  --site-fg: #000000;
  --site-muted: #737373;
  --site-line: #D1D1D1;
  --site-band: #F0F0F0;
  --site-card: #F5F5F5;
  --site-accent: #DA2B1F;
  --site-accent-fg: #FFFFFF;
  --site-bar: #ED333E;
  --site-cats: #EE1C2F;
  --site-dark: #000000;
  --site-foot: #141414;
  --site-foot-line: #333333;
  --site-button-bg: #DA2B1F;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #000000;
  --site-button-hover-fg: #FFFFFF;
  --site-accent-ink: #DA2B1F;     /* the red as words (a hovered tile or link): the accent itself in the light */
  --site-on-dark: #FFFFFF;        /* words and icons on the black header, the red bars, the hero and the footer */
  --site-on-dark-line: rgba(255, 255, 255, .35);  /* the rules between the phone drawer's headings */
  --site-field-bg: #FFFFFF;       /* the header search */
  --site-search-edge: transparent;  /* the header search's edge on the black bar: none in the light */
  --site-placeholder: #444444;    /* the header search's hint */
  --site-panel: #FFFFFF;          /* the suggest dropdown, the home's cards */
  --site-plate: #FFFFFF;          /* behind a product photo: white in both themes, the photos are drawn for white */
  --site-help-bg: #000000;        /* the home's support band */
  --site-help-btn: #EE3A46;       /* its button */
  --site-ok: #1B8A2E;             /* the Ready to ship square where the kit's tokens are not loaded (a landing page without the band) */

  /* fonts */
  --site-font-body: "Open Sans", Verdana, Geneva, sans-serif;
  --site-font-heading: "Oswald", "Arial Narrow", sans-serif;
  --site-font-button: var(--site-font-heading);

  /* shape and layout */
  --site-radius: 0;
  --site-max: 1320px;
  --site-gutter: 49px;
}
/* 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: #B0231A;
  --parts-font: var(--site-font-heading);
}
/* the night look (kit 0.10.0, Site(dark="night")): the kit stamps data-parts-theme="dark" on <html> from 21:30 to
   04:30 or when the shopper picks it. The page a warm near black in the kit's family, words near white, rules a dark
   grey, cards, fields and panels a step up; the black header, the red bars, the red hero and the footer stay as they
   are, the red stays for every fill and lifts to #FF6B5E as words (6.7:1 on the page); product 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: #2A2622;
  --site-card: #1C1A18;
  --site-button-hover-bg: #F6F3EF;
  --site-button-hover-fg: #121110;
  --site-accent-ink: #FF6B5E;
  --site-field-bg: #1C1A18;
  --site-search-edge: #5A534C;
  --site-placeholder: #D9D3CC;
  --site-panel: #1C1A18;
  --site-help-bg: #1C1A18;
  /* the kit's vehicle band on the listings and the product page: a step over the page, a dark rule under it */
  --parts-band-bg: #1C1A18;
  --parts-band-ink: #F6F3EF;
  --parts-band-edge: #3D3833;
  /* the cart's words in the red: the lifted red */
  --cs-accent: var(--site-accent-ink);
}
@media (max-width: 979.98px) {
  :root { --site-gutter: 16px; }
}

@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 14.4px/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: square, red, white Oswald uppercase ---------- */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px;
  background: var(--site-button-bg); color: var(--site-button-fg); border: 0; border-radius: var(--site-radius);
  font: 500 15px/20px var(--site-font-button); text-transform: uppercase; cursor: pointer;
  transition: background-color .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-fg); outline-offset: 2px; }

/* ---------- the announcement line ---------- */
.cl-bar { background: var(--site-bar); color: var(--site-on-dark); text-align: center; }
.cl-bar__msg { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; font: 400 14px/18px var(--site-font-heading); text-transform: uppercase; }
.cl-bar__msg:hover { text-decoration: underline; }

/* ---------- the header: the help line, the Orbital Parts mark, the search, the cart ---------- */
.cl-hd { position: relative; z-index: 50; background: var(--site-dark); color: var(--site-on-dark); }
.cl-hd__top { height: 40px; padding: 0 var(--site-gutter); display: flex; justify-content: flex-end; }
.cl-hd__help { font: 400 13px/18px var(--site-font-heading); letter-spacing: .3px; }
.cl-hd__help a { display: inline-flex; align-items: center; min-height: 40px; }
.cl-hd__help a:hover { text-decoration: underline; }
.cl-hd__in { height: 84px; padding: 0 var(--site-gutter) 12px; display: flex; align-items: center; gap: 24px; }
.cl-hd__logo { flex: none; display: flex; flex-direction: column; align-items: flex-start; }
.cl-hd__logo img { width: auto; height: 50px; }
.cl-hd__find { flex: 0 1 486px; position: relative; min-width: 0; margin-left: auto; }
.cl-hd__search { display: flex; height: 44px; background: var(--site-field-bg); color: var(--site-fg); box-shadow: inset 0 0 0 1px var(--site-search-edge); }
.cl-hd__search input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border: 0; background: transparent; color: var(--site-fg); font: 400 16px/1 var(--site-font-body); outline: none; }
.cl-hd__search input::placeholder { color: var(--site-placeholder); }
.cl-hd__search button { flex: none; width: 52px; height: 44px; display: grid; place-items: center; color: var(--site-fg); }
.cl-hd__search:focus-within { outline: 2px solid var(--site-bar); }
.cl-hd__cart { flex: none; position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-right: 46px; color: var(--site-on-dark); }
.cl-hd__cart:hover { color: var(--site-bar); }
/* the end of the bar: the kit's theme switch (parts/theme_switch.html, 21:30 to 04:30, the bar's white by inheritance), red on hover like the cart, then the cart */
.cl-hd__end { flex: none; display: flex; align-items: center; gap: 8px; }
.cl-hd__end > button:hover { color: var(--site-bar); }
.cl-hd__cart-icon { overflow: visible; }
.cl-hd__cart-count { position: absolute; top: 0; right: -4px; min-width: 18px; padding: 0 4px; font: 600 12px/18px var(--site-font-body); text-align: center; background: var(--site-bar); color: var(--site-on-dark); }
.cl-hd__cart-count:empty { display: none; }

/* ---------- the header search's suggest dropdown (partials/suggest.html in #fm-suggest; fm-site.js its keys):
   an opaque white panel under the field, square, black text, rows 44px tall ---------- */
.fm-suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60; max-height: min(70vh, 560px); overflow-y: auto; background: var(--site-panel); color: var(--site-fg); border: 1px solid var(--site-line); border-radius: var(--site-radius); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.fm-suggest-section + .fm-suggest-section { border-top: 1px solid var(--site-line); }
.fm-suggest-title { padding: 10px 14px 4px; font: 600 13px/20px var(--site-font-heading); letter-spacing: .5px; text-transform: uppercase; color: var(--site-fg); }
.fm-suggest-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 14px; color: var(--site-fg); font: 400 14px/20px var(--site-font-body); text-decoration: none; }
.fm-suggest-item:hover, .fm-suggest-item.is-active { background: var(--site-band); }
.fm-suggest-item b { font-weight: 700; }
.fm-suggest-glyph { flex: none; }
.fm-suggest-thumb { flex: none; width: 44px; height: 44px; object-fit: contain; background: var(--site-plate); }
.fm-suggest-thumb--blank { display: block; background: var(--site-band); }
.fm-suggest-text { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.fm-suggest-note { font-size: 13px; line-height: 18px; color: var(--site-fg); }
.fm-suggest-fit { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--site-fg); }
.fm-suggest-count, .fm-suggest-price { flex: none; margin-left: auto; font-weight: 600; white-space: nowrap; }
.fm-suggest-all { justify-content: center; border-top: 1px solid var(--site-line); font-weight: 600; }
.fm-suggest-empty { padding: 12px 14px; font: 400 14px/20px var(--site-font-body); color: var(--site-fg); }

/* ---------- RaceQuip's red category bar: our tree's headings ---------- */
.cl-hd__cats { background: var(--site-cats); }
.cl-hd__toggle { display: none; }
.cl-hd__list { min-height: 50px; padding: 0 var(--site-gutter); display: flex; align-items: center; justify-content: space-evenly; }
.cl-hd__link { display: flex; align-items: center; height: 44px; padding: 0 8px; white-space: nowrap; font: 400 15.6px/18px var(--site-font-heading); text-transform: uppercase; color: var(--site-on-dark); }
.cl-hd__link:hover, .cl-hd__link.is-current { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- the footer ---------- */
.cl-ft { background: var(--site-foot); color: var(--site-on-dark); }
.cl-ft__in { width: min(1325px, 100% - 2 * var(--site-gutter)); margin: 0 auto; padding: 30px 0 28px; }
.cl-ft__lead { width: min(360px, 100%); margin: 0 auto; padding: 30px 0 60px; text-align: center; }
.cl-ft__lead-h { font: 500 20px/30px var(--site-font-heading); text-transform: uppercase; }
.cl-ft__lead-line { margin-top: 12px; }
.cl-ft__lead-line a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; background: var(--site-accent); font: 500 15px/20px var(--site-font-heading); }
.cl-ft__lead-line a:hover { background: var(--site-on-dark); color: var(--site-dark); }
.cl-ft__cols { display: grid; grid-template-columns: repeat(4, 1fr); padding: 30px 0; border-top: 1px solid var(--site-foot-line); }
.cl-ft__h { font: 700 13px/20px var(--site-font-heading); text-transform: uppercase; }
.cl-ft__col ul { margin-top: 14px; }
.cl-ft__col a { display: inline-block; font: 400 15px/29px var(--site-font-body); }
.cl-ft__col a:hover, .cl-ft__small a:hover { text-decoration: underline; }
.cl-ft__small { padding-top: 10px; text-align: center; font: 400 13px/20px var(--site-font-heading); text-transform: uppercase; }

/* ---------- phones: the mark and the cart, the search under them, the red bar's Menu toggle and drawer ---------- */
@media (max-width: 979.98px) {
  .cl-bar__msg { font-size: 13px; line-height: 16px; }
  .cl-hd__top { display: none; }
  .cl-hd__in { height: auto; padding: 8px var(--site-gutter) 10px; flex-wrap: wrap; gap: 8px 16px; }
  .cl-hd__search, .cl-hd__search input, .cl-hd__search button { height: 40px; }
  .cl-hd__logo img { height: 40px; }
  .cl-hd__cart { margin: 0 -2px 0 auto; order: 2; }
  .cl-hd__end { order: 2; margin-left: auto; }
  .cl-hd__find { order: 3; flex: 1 1 100%; margin-left: 0; }
  .cl-hd__cats { position: relative; }
  .cl-hd__toggle { display: flex; align-items: center; gap: 6px; margin-left: auto; height: 40px; padding: 0 var(--site-gutter); font: 400 14px/18px var(--site-font-heading); text-transform: uppercase; color: var(--site-on-dark); }
  .cl-hd__cats { display: flex; flex-wrap: wrap; }
  .cl-hd__toggle[aria-expanded="true"] .cl-hd__chev { transform: rotate(180deg); }
  .cl-js .cl-hd__nav:not(.is-open) { display: none; }
  .cl-hd__nav { flex: 1 1 100%; }
  .cl-hd__nav.is-open { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: var(--site-cats); padding: 0 var(--site-gutter) 12px; }
  .cl-hd__list { min-height: 0; padding: 0; flex-direction: column; align-items: stretch; }
  .cl-hd__link { height: 44px; padding: 0; border-top: 1px solid var(--site-on-dark-line); font-size: 14px; }
  .cl-ft__in { padding-top: 0; }
  .cl-ft__lead { padding: 30px 0 32px; }
  .cl-ft__cols { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .cl-ft__col a { display: block; padding: 6px 0; font-size: 14px; line-height: 28px; }
  .cl-ft__lead-h { font-size: 18px; line-height: 26px; }
  .cl-ft__col ul { margin-top: 6px; }
}

/* ---------- the 404 (templates/404.html) ---------- */
.cl-404 { width: min(var(--site-max), 100% - 2 * var(--site-gutter)); margin: 0 auto; padding: 72px 0 96px; }
.cl-404__h { padding-left: 12px; border-left: 5px solid var(--site-bar); font: 600 34px/44px var(--site-font-heading); text-transform: uppercase; }
.cl-404__p { margin: 16px 0 32px; font-size: 16px; }
@media (max-width: 979.98px) {
  .cl-404 { padding: 24px 0 64px; }
  .cl-404__h { font-size: 36px; line-height: 1.05; }
  .cl-404__p { font-size: 15px; }
}

/* the client's phone menu opened by cl-site.js when its own script is gone */
.cl-open, .cl-open > ul, .cl-open > div { display: block !important; visibility: visible !important; opacity: 1 !important;
  transform: none !important; left: 0 !important; right: auto !important; max-height: none !important; height: auto !important;
  pointer-events: auto !important; }
nav.cl-open, .cl-open { position: relative; z-index: 9999; }
html.cl-menu-open { overflow-x: hidden; }

/* 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 { display: inline-block; min-height: 40px; padding: 0 3px; margin: 0 -3px; line-height: 40px; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cl-owner:hover { opacity: .8; }

}
