/* cl-site.css: Flowmaster's tokens, fonts, reset and chrome (the header, its menu, the footer, the primary
   button), on every page. Measured on flowmastermufflers.com at 1440 and in its 390 phone stage
   (review/pages/home.json); boxes are square, one radius across the site.
   cl-shop.css reads only these tokens, so the title band and the cart follow.

   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 (under the kit's rules, so it never undoes
   a kit button or list), every other rule in @layer site. The kit's shop pages and vehicle band take the
   site's brand colour and font from the --parts-* tokens below alone: no rule here names a kit class.
   Two layouts: from 980px the desktop one, below it the phone one. */
@layer base, kit, site;

@font-face { font-family: "Oswald"; src: url("fonts/oswald-var.woff2") format("woff2"); font-weight: 400 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: #1A1A1A;
  --site-line: #D1D1D1;
  --site-band: #F0F0F0;
  --site-card: #F7F7F7;
  --site-accent: #CE0E2D;
  --site-accent-strong: #A50B24;
  --site-accent-fg: #FFFFFF;
  --site-promo: #ED333E;
  --site-dark: #000000;
  --site-footer: #141414;
  --site-dark-line: #E7E7E7;
  --site-field-bg: #FFFFFF;
  --site-button-bg: #CE0E2D;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #A50B24;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #E4E4E4;
  --site-disabled-fg: #1A1A1A;
  --site-accent-ink: var(--site-accent);  /* the red as text (a price, a hovered name): lifted on the dark page */
  --site-dark-fg: #FFFFFF;    /* ink on the black chrome (the header, the promise bar, the footer) in both themes */
  --site-dark-rule: #333333;  /* a rule inside the black chrome */
  --site-field-line: var(--site-dark);  /* the header search's edge */
  --site-placeholder: #333333;
  --site-photo: #FFFFFF;      /* the plate under a photo: white in both themes, the photos are drawn for white */
  --site-veil: rgba(255, 255, 255, 0.75);  /* the box over a feature photo */

  /* fonts */
  --site-font-body: "Oswald", Verdana, Geneva, sans-serif;
  --site-font-heading: "Oswald", sans-serif;
  --site-font-button: "Oswald", sans-serif;
  --site-font-text: "Open Sans", Verdana, Geneva, sans-serif;

  /* shape and layout */
  --site-radius: 0;
  --site-max: 1440px;
  --site-gutter: 64px;
}
/* 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-accent-strong);
  --parts-font: var(--site-font-body);
}
/* the dark theme (kit 0.10.0, Site(dark="night")): the kit stamps data-parts-theme="dark" on <html> from 21:30 to 04:30
   by the visitor's clock, or when the shopper picks it. The header's black bar, the promise bar and the footer stay
   as they are; the white page, the bands, the cards and the fields turn the kit's warm near black with near-white
   text; photos keep white plates; the red fills stay the brand's red and the red as text lifts to read on the dark. */
: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-accent-strong: #E0203D;
  --site-accent-ink: #FF4D63;
  --site-field-bg: #1C1A18;
  --site-field-line: #3D3833;
  --site-placeholder: #D9D3CC;
  --site-button-hover-bg: #E0203D;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #EBE6E0;
  --site-footer: #000000;  /* black like the header, so the footer still parts from the page */
  --site-veil: rgba(18, 17, 16, 0.8);
  --parts-band-bg: #24201C;
  --parts-band-ink: #FFFFFF;
  --parts-band-edge: #36312C;
}
@media (max-width: 979.98px) {
  :root { --site-gutter: 16px; }
}

@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/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 (Add to Cart, Check out, the home's Shop Now) ---------- */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 20px;
  background: var(--site-accent); color: var(--site-accent-fg); border: 1px solid var(--site-accent); border-radius: var(--site-radius);
  font: 500 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-accent-strong); border-color: var(--site-accent-strong); }
.cl-btn:focus-visible { outline: 2px solid var(--site-fg); outline-offset: 2px; }

/* ---------- header: the promise bar, the black bar, the menu row ---------- */
.cl-hd { position: relative; z-index: 50; background: var(--site-dark); color: var(--site-dark-fg); }
.cl-hd__promo { display: flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; background: var(--site-accent-strong);
  font: 400 14px/1 var(--site-font-body); text-transform: uppercase; color: var(--site-dark-fg); text-align: center; }
.cl-hd__promo:hover { text-decoration: underline; }
.cl-hd__bar { display: grid; grid-template-columns: 352px minmax(0, 1fr) 125px; grid-template-areas: "logo search cart"; align-items: center;
  height: 93px; padding: 0 32px; border-bottom: 1px solid var(--site-dark-line); }
.cl-hd__toggle { display: none; }
.cl-hd__logo { grid-area: logo; justify-self: start; display: flex; }
/* the Orbital Parts mark, white on the black bar, at the height the brand's name had (53px, 35px on a phone) */
.cl-hd__mark { width: auto; height: 53px; }
.cl-hd__find { grid-area: search; position: relative; min-width: 0; }
.cl-hd__search { display: flex; height: 44px; background: var(--site-field-bg); border: 1px solid var(--site-field-line); border-radius: var(--site-radius); }
.cl-hd__q { flex: 1; min-width: 0; height: 100%; padding: 0 16px; border: 0; background: transparent; color: var(--site-fg);
  font: 400 16px/1 var(--site-font-text); border-radius: var(--site-radius); -webkit-appearance: none; appearance: none; }
.cl-hd__q::placeholder { color: var(--site-placeholder); opacity: 1; }
.cl-hd__q:focus { outline: 2px solid var(--site-accent); outline-offset: -2px; }
.cl-hd__go { flex: none; display: flex; align-items: center; justify-content: center; width: 56px; color: var(--site-fg); }
.cl-hd__cart { grid-area: cart; justify-self: end; position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; color: var(--site-dark-fg); }
.cl-hd__cart:hover { color: var(--site-promo); }
.cl-hd__cart-icon { overflow: visible; }
.cl-hd__cart-count { position: absolute; top: 0; right: -6px; min-width: 18px; padding: 0 4px; font: 600 13px/18px var(--site-font-text); text-align: center;
  background: var(--site-accent); color: var(--site-accent-fg); }
.cl-hd__cart-count:empty { display: none; }
/* the kit's theme switch (the kit shows it at night): in the cart's cell at its left, in the bar's ink */
.cl-hd__bar .parts-theme-switch { grid-area: cart; justify-self: end; margin-right: 48px; color: var(--site-dark-fg); }
.cl-hd__bar .parts-theme-switch:hover { color: var(--site-promo); }
.cl-hd__nav { height: 48px; padding: 0 32px; }
.cl-hd__list { display: flex; align-items: center; height: 100%; gap: 0 26px; }
.cl-hd__link { display: block; padding: 13px 0; font: 400 16px/22px var(--site-font-text); color: var(--site-dark-fg); white-space: nowrap; }
.cl-hd__link:hover, .cl-hd__link.is-current { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 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-bg); 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-text); 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-photo); }
.fm-suggest-thumb--blank { display: block; background: var(--site-band); }
.fm-suggest-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.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-text); color: var(--site-fg); }

/* ---------- footer ---------- */
.cl-ft { background: var(--site-footer); color: var(--site-dark-fg); }
.cl-ft__in { max-width: var(--site-max); margin: 0 auto; padding: 59px 58px 0; }
.cl-ft__ask { display: flex; flex-direction: column; align-items: center; justify-content: space-between; min-height: 164px; }
.cl-ft__ask-h { font: 500 20px/30px var(--site-font-heading); text-transform: uppercase; text-align: center; }
.cl-ft__ask-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 421px; max-width: 100%; height: 51px; padding: 0 7px 0 16px;
  background: var(--site-field-bg); color: var(--site-fg); font: 400 15px/1 var(--site-font-text); }
.cl-ft__ask-btn { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; background: var(--site-accent); color: var(--site-accent-fg);
  font: 500 14.4px/1 var(--site-font-button); text-transform: uppercase; }
.cl-ft__ask-box:hover .cl-ft__ask-btn { background: var(--site-accent-strong); }
.cl-ft__cols { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 60px; }
.cl-ft__col--ask { order: 4; }
.cl-ft__h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; padding-right: 24px; list-style: none;
  font: 700 13px/20px var(--site-font-heading); letter-spacing: 1px; text-transform: uppercase; color: var(--site-dark-fg); }
.cl-ft__h::-webkit-details-marker { display: none; }
summary.cl-ft__h { pointer-events: none; }
.cl-ft__chev { display: none; }
.cl-ft__links { min-height: 174px; }
.cl-ft__links li { min-height: 29px; }
.cl-ft__links a, .cl-ft__mail a { font: 400 15px/20px var(--site-font-text); color: var(--site-dark-fg); }
.cl-ft__links a:hover, .cl-ft__mail a:hover { text-decoration: underline; }
.cl-ft__mail { display: flex; align-items: center; gap: 8px; }
.cl-ft__mail a { font-weight: 600; font-size: 16px; }
.cl-ft__small { padding: 43px 0 36px; font: 400 13px/19px var(--site-font-heading); letter-spacing: 1px; text-transform: uppercase; text-align: center; color: var(--site-dark-fg); }
.cl-ft__small a[href^="mailto:"] { text-transform: none; }

/* 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: toggle, name and cart over the search; the menu opens under them (cl-site.js) ---------- */
@media (max-width: 979.98px) {
  .cl-hd__bar { grid-template-columns: 96px minmax(0, 1fr) 96px; grid-template-areas: "toggle logo cart" "search search search";
    grid-template-rows: 65px 59px; height: auto; padding: 0; border-bottom: 0; }
  .cl-hd__toggle { grid-area: toggle; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: 5px; color: var(--site-dark-fg); }
  .cl-hd__logo { justify-self: center; }
  .cl-hd__mark { height: 35px; }
  .cl-hd__find { align-self: start; margin: 0 16px; }
  .cl-hd__cart { margin-right: 18px; }
  .cl-hd__bar .parts-theme-switch { grid-area: toggle; margin-right: 0; }
  .cl-hd__nav { height: auto; padding: 0 16px; border-top: 1px solid var(--site-dark-line); background: var(--site-dark); }
  .cl-js .cl-hd__nav:not(.is-open) { display: none; }
  .cl-hd__list { flex-direction: column; align-items: stretch; height: auto; }
  .cl-hd__link { padding: 9px 0; font-size: 16px; border-bottom: 1px solid var(--site-dark-rule); }
  .cl-hd__list li:last-child .cl-hd__link { border-bottom: 0; }

  .cl-ft__in { padding: 30px 16px 0; }
  .cl-ft__ask { align-items: stretch; min-height: 166px; }
  .cl-ft__ask-h { text-align: left; }
  .cl-ft__ask-box { width: auto; height: 54px; }
  .cl-ft__cols { grid-template-columns: 1fr; margin-top: 30px; }
  .cl-ft__col--ask { order: 0; min-height: 109px; padding-top: 10px; }
  .cl-ft__col--ask .cl-ft__h { margin-bottom: 12px; }
  .cl-ft__col[data-cl-fold] { border-top: 1px solid var(--site-dark-rule); }
  .cl-ft__col[data-cl-fold] .cl-ft__h { min-height: 67px; margin: 0; padding-right: 0; cursor: pointer; pointer-events: auto; }
  .cl-ft__chev { display: block; transition: transform 0.2s ease; }
  .cl-ft__col[open] .cl-ft__chev { transform: rotate(180deg); }
  .cl-ft__links { min-height: 0; padding-bottom: 12px; }
  .cl-ft__links li { min-height: 40px; display: flex; align-items: center; }
  .cl-ft__links a { flex: 1; display: flex; align-items: center; min-height: 40px; }
  .cl-ft__mail a { display: inline-flex; align-items: center; min-height: 40px; }
  .cl-owner { display: inline-block; padding: 10px 0; margin: -10px 0; line-height: 20px; }
  .cl-ft__small { padding: 10px 0 29px; }
}

/* ---------- the 404 (templates/404.html) ---------- */
.cl-404__strip { display: block; width: 100%; height: 120px; object-fit: cover; }
.cl-404__home { text-align: center; padding: 0 20px 80px; }
@media (max-width: 979.98px) { .cl-404__home { text-align: left; padding: 0 16px 56px; } }

}
