/* cl-site.css: the site's tokens, fonts, reset and chrome (header, menu, footer, the primary button) in
   pertronixbrands.com's look, on every page: white pages with near-black type, the PerTronix blue (#026EB9)
   for actions, near-black bars, condensed italic capitals for headings. 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 site's brand colour and font from the --parts-* tokens alone.

   Fonts: the client sets Adobe's Acumin Pro and Acumin Pro Condensed, which we cannot ship; Barlow stands
   in for the body, Barlow Semi Condensed ExtraBold Italic for the headings and Roboto Condensed Bold for
   the menu (all SIL OFL or Apache, static/fonts/FONTS.md).

   Two layouts: from 980px the desktop one, below it the phone one (their 390px stage). */
@layer base, kit, site;

@font-face { font-family: "Barlow"; src: url("fonts/barlow-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-400-italic-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-500-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-700-latin.woff2") format("woff2"); font-weight: 600 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("fonts/barlow-semi-condensed-800-italic-latin.woff2") format("woff2"); font-weight: 600 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("fonts/roboto-condensed-700-latin.woff2") format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }

:root {
  /* colours */
  --site-bg: #FFFFFF;
  --site-fg: #16181B;
  --site-muted: #3A3D42;
  --site-line: #DCDBDC;
  --site-band: #F1F1F1;
  --site-card: #F6F6F6;
  --site-dark: #16181B;
  --site-accent: #026EB9;
  --site-accent-strong: #015A98;
  --site-accent-fg: #FFFFFF;
  --site-field-bg: #FFFFFF;
  --site-button-bg: #026EB9;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #015A98;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #E4E4E4;
  --site-disabled-fg: #16181B;
  --site-accent-ink: #026EB9;     /* the blue as words (a current or hovered link): the accent itself in the light */
  --site-on-dark: #FFFFFF;        /* words and icons on the near-black bar, the footer and the hero */
  --site-on-dark-hover: #B9D9F0;  /* the cart icon hovered on the bar */
  --site-on-dark-line: rgba(255, 255, 255, .3);   /* the footer's rule */
  --site-strip-line: rgba(255, 255, 255, .08);    /* the hairline under the blue strip */
  --site-placeholder: #55575B;    /* the header search's hint */
  --site-plate: #FFFFFF;          /* behind a product photo: white in both themes, the photos are drawn for white */
  --site-search-edge: var(--site-field-bg);  /* the header search's edge on the bar: none to see in the light */

  /* fonts (the @font-face rules above) */
  --site-font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --site-font-heading: "Barlow Semi Condensed", Impact, "Arial Narrow", sans-serif;
  --site-font-cond: "Roboto Condensed", "Arial Narrow", sans-serif;
  --site-font-button: var(--site-font-body);

  /* shape and layout */
  --site-radius: 0;
  --site-max: 1340px;
  --site-gutter: 50px;
}
/* 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 (ADR 0007). */
:root {
  --parts-accent: var(--site-accent);
  --parts-accent-strong: var(--site-accent-strong);
  --parts-font: var(--site-font-body);
}
@media (max-width: 979.98px) {
  :root { --site-gutter: 16px; }
}
/* 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 and fields a step up; the near-black bar and footer stay as they are, the blue stays for every fill
   (white on it 5.3:1) and lifts to #4A9BDB as words (6.3: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: #1C1A18;
  --site-card: #1C1A18;
  --site-field-bg: #1C1A18;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #F6F3EF;
  --site-accent-ink: #4A9BDB;
  --site-placeholder: #D9D3CC;
  --site-search-edge: #5A534C;
  /* the kit's vehicle band on /parts and the product page: the header's near-black bar, a dark rule under it */
  --parts-band-bg: #16181B;
  --parts-band-ink: #FFFFFF;
  --parts-band-edge: #3D3833;
  /* the cart's words in the blue: the lifted blue */
  --cs-accent: var(--site-accent-ink);
}

@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 {

@layer site {

/* ---------- the layout's column and the primary button ---------- */
.cl-wrap { max-width: calc(var(--site-max) + 2 * var(--site-gutter)); margin: 0 auto; padding: 0 var(--site-gutter); }
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 30px;
  background: var(--site-button-bg); color: var(--site-button-fg); border: 1px solid var(--site-button-bg); border-radius: var(--site-radius);
  font: 700 14px/1.2 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-button-hover-bg); border-color: var(--site-button-hover-bg); }
.cl-btn:focus-visible { outline: 2px solid var(--site-fg); outline-offset: 2px; }

/* ---------- header ---------- */
.cl-hd { position: relative; z-index: 50; background: var(--site-bg); border-bottom: 1px solid var(--site-line); }
.cl-hd__strip { height: 40px; display: flex; align-items: center; justify-content: center; padding: 0 16px; background: var(--site-accent); border-bottom: 1px solid var(--site-strip-line); }
.cl-hd__strip a { font: 400 14px/22px var(--site-font-body); letter-spacing: 1px; text-transform: uppercase; color: var(--site-accent-fg); text-decoration: underline; text-underline-offset: 3px; }
.cl-hd__bar { background: var(--site-dark); color: var(--site-on-dark); }
.cl-hd__row { height: 93px; display: flex; align-items: center; gap: 24px; }
.cl-hd__toggle { display: none; }
.cl-hd__logo { flex: none; width: 280px; margin-right: 110px; }
.cl-hd__logo img { width: 280px; height: auto; }   /* 56px, the PerTronix logo's height, the search where it was */
.cl-hd__search { flex: 0 1 478px; display: flex; height: 46px; background: var(--site-field-bg); border: 1px solid var(--site-search-edge); }
.cl-hd__search input { flex: 1; min-width: 0; height: 100%; padding: 0 10px; border: 0; background: transparent; color: var(--site-fg); font: 400 16px/1.3 var(--site-font-body); letter-spacing: 1px; outline: none; }
.cl-hd__search input::placeholder { color: var(--site-placeholder); font-size: 14px; }
.cl-hd__search button { flex: none; width: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--site-fg); }
.cl-hd__cart { flex: none; position: relative; margin-left: auto; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--site-on-dark); }
.cl-hd__cart:hover { color: var(--site-on-dark-hover); }
/* 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) and the cart */
.cl-hd__end { flex: none; margin-left: auto; display: flex; align-items: center; }
.cl-hd__end > button:hover { color: var(--site-on-dark-hover); }
.cl-hd__cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; padding: 0 4px; font: 700 12px/18px var(--site-font-body); text-align: center; border-radius: 9px; background: var(--site-accent); color: var(--site-accent-fg); }
.cl-hd__cart-count:empty { display: none; }
.cl-hd__nav { background: var(--site-bg); }
.cl-hd__list { display: flex; flex-wrap: wrap; height: 48px; align-items: stretch; }
.cl-hd__link { display: flex; align-items: center; height: 46px; padding: 0 10px; font: 700 16px/20.8px var(--site-font-cond); letter-spacing: .6px; text-transform: uppercase; color: var(--site-fg); }
.cl-hd__list li:first-child .cl-hd__link { padding-left: 0; }
.cl-hd__link:hover, .cl-hd__link.is-current { color: var(--site-accent-ink); }

/* ---------- footer ---------- */
.cl-ft { background: var(--site-dark); color: var(--site-on-dark); padding-top: 36px; }
.cl-ft__top { display: grid; grid-template-columns: repeat(6, 185px); justify-content: space-between; padding-bottom: 51px; min-height: 393px; }
.cl-ft__logo img { width: 180px; height: auto; }   /* inside the 185px column */
.cl-ft__brand .cl-ft__h { margin-top: 46px; }
.cl-ft__h { display: flex; align-items: center; justify-content: space-between; font: 700 16px/1 var(--site-font-cond); letter-spacing: .5px; text-transform: uppercase; color: var(--site-on-dark); list-style: none; cursor: default; }
.cl-ft__h::-webkit-details-marker { display: none; }
.cl-ft__chev { display: none; }
.cl-ft__links { margin-top: 20px; }
.cl-ft__links a { display: inline-block; padding: 4px 0; font: 400 14px/20px var(--site-font-body); letter-spacing: .6px; color: var(--site-on-dark); }
.cl-ft__links a:hover { text-decoration: underline; }
.cl-ft__bottom { border-top: 1px solid var(--site-on-dark-line); padding-top: 30px; padding-bottom: 90px; text-align: center; }
.cl-ft__small { font: 400 13px/1.5 var(--site-font-body); color: var(--site-on-dark); }

/* ---------- phones: the menu behind its toggle (cl-site.js), the footer's columns folded ---------- */
@media (max-width: 979.98px) {
  .cl-hd__strip { height: 41px; }
  .cl-hd__strip a { display: inline-flex; align-items: center; min-height: 40px; font-size: 13px; }
  .cl-hd__bar .cl-hd__row { height: auto; flex-wrap: wrap; gap: 0; padding: 0 var(--site-gutter) 16px; }
  .cl-hd__toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 49px; margin-left: -12px; color: var(--site-on-dark); }
  .cl-hd__logo { order: 0; flex: 1; width: auto; margin: 0; height: 49px; display: flex; align-items: center; justify-content: center; }
  .cl-hd__logo img { width: 165px; }   /* 33px, the logo's height */
  .cl-hd__cart { order: 1; margin: 0 -12px 0 0; height: 49px; }
  .cl-hd__end { order: 1; }
  .cl-hd__search { order: 2; flex: 1 1 100%; height: 42px; }
  .cl-hd__nav { position: absolute; left: 0; right: 0; top: 100%; border-bottom: 1px solid var(--site-line); box-shadow: 0 8px 16px rgba(0, 0, 0, .15); }
  .cl-js .cl-hd__nav:not(.is-open) { display: none; }
  .cl-hd__list { height: auto; flex-direction: column; padding: 8px var(--site-gutter); }
  .cl-hd__link, .cl-hd__list li:first-child .cl-hd__link { height: 48px; padding: 0; }
  .cl-ft { padding-top: 27px; }
  .cl-ft__top { grid-template-columns: 1fr; min-height: 0; padding-bottom: 20px; }
  .cl-ft__brand { display: flex; flex-direction: column; align-items: center; padding-bottom: 40px; }
  .cl-ft__brand .cl-ft__h { margin-top: 46px; }
  .cl-ft__col + .cl-ft__col { margin-top: 32px; }
  .cl-ft__col .cl-ft__h { min-height: 40px; cursor: pointer; font-size: 14px; }
  .cl-ft__chev { display: block; transition: transform .2s ease; }
  .cl-ft__col[open] .cl-ft__chev { transform: rotate(180deg); }
  .cl-ft__links { margin: 0 0 12px; }
  .cl-ft__links a { padding: 10px 0; }
  .cl-ft__bottom { padding-top: 40px; padding-bottom: 70px; }
  /* the trademark line's two links: a 40px tap box from inline padding, the lines keep their height */
  .cl-ft__small a { padding: 12px 0; }
}

/* ---------- the 404 (templates/404.html) ---------- */
.cl-404 { padding-top: 60px; padding-bottom: 80px; text-align: center; }
.cl-404__h { display: flex; align-items: center; gap: 16px; font: italic 800 45px/38.25px var(--site-font-heading); letter-spacing: .6px; text-transform: uppercase; }
.cl-404__h::before, .cl-404__h::after { content: ""; flex: 1; height: 1px; background: var(--site-line); }
.cl-404__home { margin-top: 30px; }
@media (max-width: 979.98px) {
  .cl-404 { padding-top: 32px; padding-bottom: 40px; }
  .cl-404__h { gap: 12px; font-size: 42px; line-height: 40px; }
  .cl-404__home { margin-top: 24px; }
}

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

}
