/* cl-site.css: the site's tokens, reset and chrome (header, phone drawer, footer, the primary button) in
   spcalignment.com's look, written by hand from the capture's measurements (review/pages/home.json) and
   shots. 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, 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, as spcalignment.com serves them: from 980px the desktop header (the red bar with the
   row of dark red buttons and the search); below 980px its phone header (the logo and 3
   white icons on the red bar). */
@layer base, kit, site;

:root {
  /* colours: spcalignment.com's red, its dark red buttons, its near-black footer, Bootstrap's greys */
  --site-bg: #FFFFFF;
  --site-fg: #212529;
  --site-muted: #5C5F62;
  --site-line: #D7D8D8;
  --site-band: #F2F2F2;
  --site-card: #F6F6F6;
  --site-accent: #ED1C24;
  --site-accent-strong: #6E1113;
  --site-accent-fg: #FFFFFF;
  --site-dark: #1A0000;
  --site-dark-fg: #F2F2F2;
  --site-field-bg: #FFFFFF;
  --site-field-line: #575756;
  --site-button-bg: #ED1C24;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #6E1113;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #E4E4E4;
  --site-disabled-fg: #6B6B6B;
  --site-ink: #000000;                    /* their black words: a field's text, the drawer's links, the home's row of links */
  --site-accent-ink: var(--site-accent);  /* the red as words on the page */
  --site-placeholder: #575756;
  --site-field-rule: rgba(51, 51, 51, .72);  /* the drawer's and the home's 3px field rule */

  /* fonts: spcalignment.com sets Bootstrap's system stack everywhere (static/fonts/FONTS.md) */
  --site-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif;
  --site-font-heading: var(--site-font-body);
  --site-font-button: var(--site-font-body);

  /* shape and layout: Bootstrap's 1170 container with 15px gutters at 1440 */
  --site-radius: 0;
  --site-max: 1320px;
  --site-container: 1170px;
}
/* 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 look (the kit's head block sets data-parts-theme="dark" at night or on the shopper's pick): the page a warm
   near black in the kit's family, text near white, rules a dark grey, boxes a step up, fields dark with light words,
   their red lifted a touch where it is words; the red bar, the near-black footer and the photo bands stay as they are. */
:root[data-parts-theme="dark"] {
  color-scheme: dark;
  --site-bg: #121110;
  --site-fg: #F6F3EF;
  --site-muted: #EBE6E0;
  --site-line: #3D3833;
  --site-band: #1C1A18;
  --site-card: #1C1A18;
  --site-field-bg: #1C1A18;
  --site-field-line: #3D3833;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #EBE6E0;
  --site-ink: #F6F3EF;
  --site-accent-ink: #FF4A50;
  --site-placeholder: #CFC8C0;
  --site-field-rule: #5A534C;
  --parts-band-bg: #24201C;
  --parts-band-ink: #F6F3EF;
  --parts-band-edge: #3D3833;
}

@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;
}
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: spcalignment.com's red 150 by 46 button (Learn More, Search, Sign Up) ---------- */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 150px; min-height: 46px; padding: 0 16px;
  background: var(--site-button-bg); color: var(--site-button-fg); border: 2px solid transparent; border-radius: var(--site-radius);
  font: 500 18px/27px var(--site-font-button); text-decoration: none; cursor: pointer;
}
.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; }

/* ---------- header: the red bar, the mark, the row of buttons and the search ---------- */
.cl-hd { position: relative; z-index: 50; background: var(--site-accent); }
.cl-hd__in { max-width: var(--site-container); height: 88px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; }
/* the Orbital Parts mark, white-lettered, on a block of the buttons' dark red the bar's height, where its orange reads */
.cl-hd__logo { flex: none; display: flex; align-items: center; padding: 0 20px; background: var(--site-accent-strong); }
.cl-hd__logo img { display: block; width: auto; height: 44px; }
.cl-hd__right { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; }
.cl-hd__row { display: flex; align-items: center; height: 35px; }
.cl-hd__list { display: flex; gap: 10px; }
.cl-hd__btn {
  display: inline-flex; align-items: center; gap: 6px; width: 110px; height: 35px; padding: 0 8px;
  background: var(--site-accent-strong); color: #FFFFFF; font: 500 16px/24px var(--site-font-body); white-space: nowrap;
}
.cl-hd__btn:hover, .cl-hd__btn.is-current { background: #000000; }
/* the kit's theme switch (a 40px square in currentColor, shown at night), in a box of ours so no rule names a kit class */
.cl-hd__theme { flex: none; display: flex; align-items: center; margin-left: 10px; color: #FFFFFF; }
.cl-hd__cart { position: relative; margin-left: 10px; }
.cl-hd__cart-count { min-width: 18px; padding: 0 4px; font: 700 12px/18px var(--site-font-body); text-align: center; border-radius: 9px; background: #FFFFFF; color: var(--site-accent-strong); }
.cl-hd__cart-count:empty { display: none; }
.cl-hd__search { display: flex; gap: 10px; margin-left: 15px; }
.cl-hd__field { display: flex; align-items: center; width: 110px; height: 35px; padding: 0 10px; background: var(--site-field-bg); border: 1px solid var(--site-field-line); color: var(--site-ink); }
.cl-hd__field input { flex: 1; min-width: 0; height: 24px; padding: 0; border: 0; background: none; color: var(--site-ink); font: 400 14px/24px var(--site-font-body); outline: none; }
.cl-hd__field input::placeholder { color: var(--site-placeholder); }
.cl-hd__field:focus-within { outline: 2px solid #000000; }
.cl-hd__go { width: 115px; justify-content: center; }
.cl-hd__icons, .cl-hd__drawer { display: none; }

/* ---------- footer: the near-black band ---------- */
.cl-ft { background: var(--site-dark); color: var(--site-dark-fg); }
.cl-ft__in { max-width: var(--site-container); margin: 0 auto; padding: 55px 15px 55px; }
.cl-ft__h { color: #FFFFFF; font: 700 32px/38.4px var(--site-font-heading); text-transform: uppercase; }
.cl-ft__btns { display: flex; flex-wrap: wrap; gap: 12px 50px; margin-top: 49px; }
.cl-ft__btns .cl-btn { width: 150px; padding: 0 8px; }
.cl-ft__bottom { display: flex; min-height: 269px; margin-top: 50px; }
.cl-ft__brand { width: 558px; }
.cl-ft__email { margin-top: 0; font: 700 32px/43px var(--site-font-heading); }
.cl-ft__email a { color: var(--site-accent); }
.cl-ft__email a:hover { text-decoration: underline; }
.cl-ft__small { margin-top: 49px; font: 400 14px/18px var(--site-font-body); color: var(--site-dark-fg); }
.cl-ft__links { margin: 36px 0 0 147px; }
.cl-ft__links a { display: block; color: var(--site-dark-fg); font: 500 18px/21px var(--site-font-body); }
.cl-ft__links a:hover { color: #FFFFFF; text-decoration: underline; }

/* ---------- phones: the mark and 3 icons on the red bar, the drawer ---------- */
@media (max-width: 979.98px) {
  .cl-hd__in { height: 65px; padding: 0 10px 0 15px; justify-content: flex-start; align-items: flex-start; }
  .cl-hd__logo { height: 65px; margin: 0 auto 0 -15px; padding: 0 14px 0 15px; }
  .cl-hd__logo img { height: 30px; }
  .cl-hd__right, .cl-hd__row { display: contents; }
  .cl-hd__nav, .cl-hd__search { display: none; }
  .cl-hd__cart { width: 40px; height: 40px; margin: 8px 0 0; padding: 0; justify-content: center; background: none; }
  .cl-hd__cart-label { display: none; }
  .cl-hd__cart .fm-icon { width: 26px; height: 24px; }
  .cl-hd__cart-count { position: absolute; top: 0; right: -2px; }
  .cl-hd__theme { margin: 8px 0 0; }
  .cl-hd__icons { display: flex; margin-top: 8px; }
  .cl-hd__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: #FFFFFF; }
  .cl-hd__toggle { flex-direction: column; gap: 6px; }
  .cl-hd__toggle span { display: block; width: 28px; height: 3px; background: #FFFFFF; }
  .cl-hd__toggle[aria-expanded="true"] { background: var(--site-accent-strong); }
  .cl-hd__drawer.is-open { display: block; position: absolute; left: 0; right: 0; top: 65px; background: var(--site-bg); border-bottom: 3px solid var(--site-accent); box-shadow: 0 6px 12px rgba(0, 0, 0, .18); }
  .cl-hd__dsearch { display: flex; gap: 10px; padding: 16px; }
  .cl-hd__dsearch input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 3px solid var(--site-field-rule); border-radius: 0; background: var(--site-field-bg); color: var(--site-ink); font: 400 16px/24px var(--site-font-body); }
  .cl-hd__dsearch .cl-hd__go { display: inline-flex; align-items: center; height: 46px; width: 110px; background: var(--site-accent); color: #FFFFFF; font: 500 18px/27px var(--site-font-button); }
  .cl-hd__dlist a { display: flex; align-items: center; min-height: 48px; padding: 0 16px; border-top: 1px solid var(--site-line); font: 500 16px/24px var(--site-font-body); color: var(--site-ink); }
  .cl-hd__dlist a[aria-current] { color: var(--site-accent-ink); }

  .cl-ft__in { padding: 55px 15px; }
  .cl-ft__h { font-size: 28px; line-height: 30px; }
  .cl-ft__btns { flex-direction: column; gap: 18px; margin-top: 48px; }
  .cl-ft__btns .cl-btn { width: 100%; }
  .cl-ft__bottom { flex-direction: column-reverse; min-height: 0; margin-top: 31px; }
  .cl-ft__brand { width: auto; min-height: 267px; }
  .cl-ft__email { font-size: 26px; line-height: 35px; }
  .cl-ft__links { margin: 0 0 24px; }
  .cl-ft__links a { display: flex; align-items: center; min-height: 40px; font-size: 18px; }
}

/* ---------- the 404 (templates/404.html) ---------- */
.cl-404__home { text-align: center; padding: 0 20px 80px; }

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

}
