/* cl-site.css: redarcelectronics.ca's tokens, reset and chrome (header, menu, footer, the primary button), on
   every page, in REDARC's look from their measurements (review/pages/home.json): Eurostile for the text and the
   menu, Eurostile Extended in heavy capitals for the name and the headings, their near-black (#231F20) and red
   (#EE3124), the white bar over a hairline strip, and the near-black footer beside its red panel. cl-shop.css and
   the kit's shop pages read only these tokens.

   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 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 header and footer; below it their 110px phone header with the menu
   behind the toggle, and the footer centred with its columns folding shut. */
@layer base, kit, site;

/* REDARC's 2 families (static/fonts/FONTS.md), the faces the site draws */
@font-face { font-family: "eurostile"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/eurostile-500.woff2") format("woff2"); }
@font-face { font-family: "eurostile"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/eurostile-700.woff2") format("woff2"); }
@font-face { font-family: "eurostile"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/eurostile-900.woff2") format("woff2"); }
@font-face { font-family: "eurostile-extended"; font-style: normal; font-weight: 900; font-display: swap; src: url("fonts/eurostile-extended-900.woff2") format("woff2"); }

:root {
  /* colours */
  --site-bg: #FFFFFF;
  --site-fg: #231F20;
  --site-muted: #868484;
  --site-line: #D7D7D7;
  --site-hair: #EBEBEB;
  --site-band: #F2F2F2;
  --site-card: #F6F6F6;
  --site-accent: #EE3124;
  --site-accent-fg: #FFFFFF;
  --site-dark: #231F20;
  --site-field-bg: #FFFFFF;
  --site-button-bg: #EE3124;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #C9241A;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #E4E4E4;
  --site-disabled-fg: #5A5A5A;
  --site-on-dark: #FFFFFF;                        /* words on the near-black footer and over the home's photos */
  --site-on-dark-line: rgba(255, 255, 255, 0.25); /* the phone footer's rule between its folded columns */
  --site-ft-field: #FFFFFF;                       /* the part search field in the footer's red panel */
  --site-ft-go-hover: #000000;                    /* that search's button on hover */
  --site-photo: #FFFFFF;                          /* the plate under a product photo, white in both themes */

  /* fonts */
  --site-font-body: eurostile, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --site-font-heading: eurostile-extended, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --site-font-button: eurostile, "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* shape and layout */
  --site-radius: 0;
  --site-max: 1320px;

  /* one phone-stage pixel (their stage is 390), which cl-shop.css's phone title band is written in */
  --mx: calc(100vw / 390);
}
/* 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-button-hover-bg);
  --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 kit's warm
   near black for the page and the white bars, near-white text, dark grey rules, cards a step up; the near-black
   footer and REDARC's red stay (#EE3124 reads 4.6:1 on the page), 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-hair: #3D3833;
  --site-band: #24201C;
  --site-card: #1C1A18;
  --site-accent: #EE3124;
  --site-accent-fg: #FFFFFF;
  --site-dark: #231F20;
  --site-field-bg: #1C1A18;
  --site-button-bg: #EE3124;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #C9241A;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #EBE6E0;
  --site-on-dark: #FFFFFF;
  --site-on-dark-line: rgba(255, 255, 255, 0.25);
  --site-ft-field: #121110;
  --site-ft-go-hover: #000000;
  --site-photo: #FFFFFF;
  --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: 500 16px/24px 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; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
[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 buttons): their red, square ---------- */
.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: 1px solid var(--site-button-bg); border-radius: var(--site-radius);
  font: 700 16px/20px var(--site-font-button); text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.cl-btn:hover { background: var(--site-button-hover-bg); border-color: 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 strip, then the Orbital Parts mark, the menu, the search and the cart ---------- */
.cl-hd { position: relative; z-index: 50; background: var(--site-bg); }
.cl-hd__strip { display: flex; align-items: center; justify-content: space-between; height: 31px; padding: 0 20px 0 30px; border-bottom: 1px solid var(--site-hair);
  font: 500 13px/18px var(--site-font-body); text-transform: uppercase; }
.cl-hd__mail { text-transform: none; }
.cl-hd__aux { display: flex; gap: 19px; }
.cl-hd__strip a:hover { color: var(--site-accent); }
.cl-hd__in { position: relative; display: flex; align-items: center; height: 80px; padding: 0 20px; }
.cl-hd__toggle { display: none; }
.cl-hd__logo { flex: none; }
.cl-hd__logo img { display: block; width: auto; height: 40px; }
.cl-hd__logo .cl-hd__mark--night { display: none; }
:root[data-parts-theme="dark"] .cl-hd__logo .cl-hd__mark { display: none; }
:root[data-parts-theme="dark"] .cl-hd__logo .cl-hd__mark--night { display: block; }
.cl-hd__nav { flex: 1; min-width: 0; align-self: stretch; margin-left: 36px; }
.cl-hd__list { display: flex; gap: 10px; height: 100%; }
.cl-hd__link { display: flex; align-items: center; height: 100%; padding: 0 0 0 0; font: 700 16px/20px var(--site-font-body); text-transform: uppercase; color: var(--site-fg); }
.cl-hd__link:hover, .cl-hd__link.is-current { color: var(--site-accent); }
/* the search: their 452 x 44 field under a hairline, the red magnifier inside at its right */
.cl-hd__search { position: relative; flex: 0 1 452px; display: flex; margin-right: 131px; }
.cl-hd__q { flex: 1; min-width: 0; height: 44px; padding: 0 48px 0 20px; border: 1px solid var(--site-hair); border-radius: var(--site-radius); background: var(--site-field-bg);
  font: 500 16px/24px var(--site-font-body); color: var(--site-fg); }
.cl-hd__q::placeholder { color: var(--site-fg); opacity: 1; }
.cl-hd__q:focus { outline: 2px solid var(--site-accent); outline-offset: -1px; }
.cl-hd__go { position: absolute; top: 0; right: 0; display: flex; align-items: center; justify-content: center; width: 48px; height: 44px; color: var(--site-accent); }
.cl-hd__cart { flex: none; position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: -8px; color: var(--site-fg); }
.cl-hd__cart:hover { color: var(--site-accent); }
.cl-hd__cart-icon { overflow: visible; }
.cl-hd__cart-count { position: absolute; top: 3px; right: 2px; min-width: 15px; padding: 0 3px; font: 700 13px/15px var(--site-font-body); text-align: center; border-radius: var(--site-radius);
  background: var(--site-accent); color: var(--site-accent-fg); }
.cl-hd__cart-count:empty { display: none; }
/* the kit's theme switch (parts/theme_switch.html, shown at night): the bar's ink, red on hover, beside the cart */
.parts-theme-switch { margin-right: 4px; color: var(--site-fg); }
.parts-theme-switch:hover { color: var(--site-accent); }

/* ---------- footer: the near-black band beside the red panel, then the white bar ---------- */
.cl-ft { background: var(--site-dark); color: var(--site-on-dark); }
.cl-ft__main { display: grid; grid-template-columns: minmax(0, 360fr) minmax(0, 238fr) minmax(0, 340fr) minmax(0, 462fr); min-height: 661px; padding: 0 20px 0 20px; }
.cl-ft__brand { padding: 60px 20px 40px 0; }
.cl-ft__name { display: block; width: max-content; }
.cl-ft__name img { display: block; width: auto; height: 40px; }
.cl-ft__mail { display: inline-block; margin-top: 24px; }
.cl-ft__mail:hover { color: var(--site-accent); }
.cl-ft__col { padding: 82px 20px 40px 0; }
.cl-ft__h { display: flex; align-items: center; justify-content: space-between; font: 700 18px/24px var(--site-font-body); text-transform: uppercase; pointer-events: none; }
.cl-ft__chev { display: none; }
.cl-ft__links { padding-top: 12px; }
.cl-ft__links li { padding: 2px 0; }
.cl-ft__links a { overflow-wrap: anywhere; }
.cl-ft__links a:hover { color: var(--site-accent); }
/* their red panel: our part search where their sign-up sits */
.cl-ft__find { padding: 82px 30px 40px; background: var(--site-accent); }
.cl-ft__find-h { display: block; font: 700 18px/24px var(--site-font-body); text-transform: uppercase; }
.cl-ft__field { position: relative; display: flex; margin-top: 16px; }
.cl-ft__q { flex: 1; min-width: 0; height: 44px; padding: 0 186px 0 16px; border: 1px solid var(--site-hair); border-radius: var(--site-radius); background: var(--site-ft-field);
  font: 500 16px/24px var(--site-font-body); color: var(--site-fg); }
.cl-ft__q::placeholder { color: var(--site-fg); opacity: 1; }
.cl-ft__q:focus { outline: 2px solid var(--site-dark); outline-offset: -1px; }
.cl-ft__go { position: absolute; top: 0; right: 0; width: 170px; height: 44px; background: var(--site-dark); color: var(--site-on-dark); font: 700 16px/20px var(--site-font-button); text-transform: uppercase; }
.cl-ft__go:hover { background: var(--site-ft-go-hover); }
.cl-ft__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 33px; min-height: 115px; padding: 24px 20px; background: var(--site-bg); color: var(--site-fg); }
.cl-ft__small { font: 700 16px/24px var(--site-font-body); text-align: center; }
.cl-ft__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 28px; }
.cl-ft__legal a:hover { color: var(--site-accent); }

/* 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: their 110px header (the toggle, the mark centred, the cart; the search under them) ---------- */
@media (max-width: 979.98px) {
  .cl-hd { box-shadow: 0 1px 0 var(--site-hair); }
  .cl-hd__strip { display: none; }
  .cl-hd__in { flex-wrap: wrap; justify-content: center; height: 110px; padding: 8px 15px 6px; align-content: space-between; }
  .cl-hd__toggle { position: absolute; left: 7px; top: 6px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--site-accent); }
  .cl-hd__logo img { height: 32px; margin: 4px 0; }
  .cl-hd__cart { position: absolute; right: 9px; top: 6px; margin: 0; }
  .parts-theme-switch { position: absolute; right: 49px; top: 6px; margin: 0; }
  .cl-hd__search { flex: 1 1 100%; margin: 0; }
  .cl-hd__q { padding-left: 15px; }
  /* the drawer: opaque, under the header, our tree's headings */
  .cl-hd__nav { position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: var(--site-bg); border-top: 1px solid var(--site-hair); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); }
  .cl-js .cl-hd__nav:not(.is-open) { display: none; }
  .cl-hd__list { display: block; height: auto; }
  .cl-hd__link { min-height: 48px; padding: 0 15px; border-bottom: 1px solid var(--site-hair); }

  .cl-ft__main { display: block; min-height: 0; padding: 0; }
  .cl-ft__brand { display: flex; flex-direction: column; align-items: center; padding: 30px 15px 30px; text-align: center; }
  .cl-ft__col { padding: 0 15px; border-top: 1px solid var(--site-on-dark-line); }
  .cl-ft__h { min-height: 64px; pointer-events: auto; cursor: pointer; }
  .cl-ft__chev { display: block; transition: transform 0.2s ease; }
  .cl-ft__col[open] .cl-ft__chev { transform: rotate(180deg); }
  .cl-ft__links { padding: 0 0 16px; }
  .cl-ft__links a { display: inline-block; padding: 8px 0; }
  .cl-ft__links li { padding: 0; }
  .cl-ft__find { min-height: 306px; padding: 36px 15px 40px; }
  .cl-ft__find-h { text-align: center; }
  .cl-ft__q { padding-right: 136px; }
  .cl-ft__go { width: 125px; }
  .cl-ft__bar { flex-direction: column; gap: 8px; min-height: 146px; padding: 20px 15px 24px; }
  .cl-ft__small { font-size: 14px; line-height: 20px; }
}

/* ---------- the 404 (templates/404.html) ---------- */
.cl-404 { padding: 96px 20px 120px; text-align: center; }
.cl-404__h { font: 900 30px/42px var(--site-font-heading); text-transform: uppercase; }
.cl-404__p { margin: 16px 0 32px; }

}
