/* cl-site.css: Kenda's tokens, Roboto, the reset and the chrome (the top bar, the header and its menu, the
   footer, the primary button) on every page, written from the measurements of kendatire.com's home.
   cl-shop.css and the kit's shop pages read only these tokens (the kit only the 3 --parts-* ones).

   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, and no
   rule here names a kit class.
   Two layouts: from 980px their desktop header; below it their phone bar with the red MENU button. */
@layer base, kit, site;

@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/roboto-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* colours */
  --site-bg: #FFFFFF;
  --site-fg: #222222;
  --site-muted: #4D4D4D;
  --site-line: #D7D7D7;
  --site-band: #F2F2F2;
  --site-card: #F6F6F6;
  --site-accent: #CB202D;
  --site-accent-strong: #A51A25;
  --site-accent-fg: #FFFFFF;
  --site-field-bg: #FFFFFF;
  --site-button-bg: #CB202D;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #A51A25;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #E4E4E4;
  --site-disabled-fg: #4D4D4D;
  /* the chrome: their top bar, their #212121 header and footer, the footer's grey bar, the rule under the mark */
  --site-top: #F3F2F2;
  --site-dark: #212121;
  --site-dark-bar: #646464;
  --site-dark-line: #515151;
  --site-on-dark: #FFFFFF;

  /* fonts */
  --site-font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --site-font-heading: var(--site-font-body);
  --site-font-button: var(--site-font-body);

  /* shape and layout */
  --site-radius: 0;
  --site-max: 1325px;
  --site-gutter: 24px;
}
/* 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 (storefront-kit ADR 0007) */
: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: <html data-parts-theme="dark">, picked by the kit's head block at night or by the
   shopper's switch): the page the kit's warm near black, text near white, rules a dark grey, the cart's cards and
   bands a step up, the light top bar dark like the page. Their #212121 header and footer keep their values, the
   red button stays red with white words, and the red as text lifts a touch so it reads on the dark (4.8:1).
   Photos keep their white plates (--cs-photo). */
: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-accent: #EE3B44;
  --site-accent-strong: #F4666D;
  --site-accent-fg: #FFFFFF;
  --site-field-bg: #1C1A18;
  --site-button-bg: #CB202D;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #E23441;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #EBE6E0;
  --site-top: #1C1A18;
  --site-dark: #212121;
  --site-dark-bar: #646464;
  --site-dark-line: #515151;
  --site-on-dark: #FFFFFF;

  /* the kit's vehicle band under the header: a step over the page, its rule a dark grey */
  --parts-band-bg: #1C1A18;
  --parts-band-ink: #F6F3EF;
  --parts-band-edge: #3D3833;
}
@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 18px/28px 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: their red Load More ---------- */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 20px;
  background: var(--site-button-bg); color: var(--site-button-fg); border: 1px solid var(--site-button-bg); border-radius: var(--site-radius);
  font: 400 18px/1.2 var(--site-font-button); 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); color: var(--site-button-hover-fg); }
.cl-btn:focus-visible { outline: 2px solid var(--site-fg); outline-offset: 2px; }

/* ---------- the top bar: 38px, light grey ---------- */
.cl-top { background: var(--site-top); }
.cl-top__in { width: min(var(--site-max), 100% - 2 * var(--site-gutter)); margin: 0 auto; min-height: 38px; display: flex; align-items: center; justify-content: flex-end; }
.cl-top__mail { font: 400 14.4px/19px var(--site-font-body); letter-spacing: 1px; color: var(--site-fg); }
.cl-top__mail:hover { color: var(--site-accent); }

/* ---------- header: 204px of #212121 at 1440 ---------- */
.cl-hd { position: relative; z-index: 50; background: var(--site-dark); color: var(--site-on-dark); }
.cl-hd__in { width: min(var(--site-max), 100% - 2 * var(--site-gutter)); margin: 0 auto; padding-bottom: 10px; }
.cl-hd__bar { display: flex; align-items: center; gap: 24px; height: 73px; padding: 18px 0 10px; }
.cl-hd__logo { flex: none; margin-right: auto; }
.cl-hd__logo img { width: auto; height: 45px; }
.cl-hd__cart { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font: 400 15.2px/30px var(--site-font-body); text-transform: uppercase; color: var(--site-on-dark); }
.cl-hd__cart:hover { color: var(--site-accent); }
/* the kit's theme switch (shown 21:30 to 04:30), before the cart; it takes the bar's white (the kit's color: inherit) */
.cl-hd__bar .parts-theme-switch:hover { opacity: .8; }
.cl-hd__count { min-width: 20px; padding: 0 5px; font: 500 13px/20px var(--site-font-body); text-align: center; background: var(--site-accent); color: var(--site-accent-fg); }
.cl-hd__count:empty { display: none; }
.cl-hd__toggle { display: none; }
.cl-hd__menu { border-top: 1px solid var(--site-dark-line); padding: 20px 0; }
.cl-hd__list { display: flex; flex-wrap: wrap; }
.cl-hd__link { display: block; padding: 0 20px; font: 400 15.2px/30px var(--site-font-body); text-transform: uppercase; color: var(--site-on-dark); }
.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); }
.cl-hd__tools { display: flex; align-items: center; gap: 22px; height: 50px; }
.cl-search { display: flex; align-items: stretch; width: 340px; height: 34px; border: 1px solid var(--site-dark-line); }
.cl-search__input { flex: 1; min-width: 0; padding: 0 12px; border: 0; background: transparent; color: var(--site-on-dark); font: 400 16px/1 var(--site-font-body); border-radius: 0; -webkit-appearance: none; appearance: none; }
.cl-search__input::placeholder { color: #D0D0D0; opacity: 1; }
.cl-search__input:focus { outline: none; }
.cl-search:focus-within { border-color: var(--site-on-dark); }
.cl-search__btn { flex: none; width: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--site-on-dark); }
.cl-search__btn:hover { color: var(--site-accent); }

/* ---------- footer: the 80px grey bar, then 634px of #212121 ---------- */
.cl-ft { color: var(--site-on-dark); }
.cl-ft__in { width: min(var(--site-max), 100% - 2 * var(--site-gutter)); margin: 0 auto; }
.cl-ft__bar { background: var(--site-dark-bar); }
.cl-ft__bar-in { display: flex; align-items: center; gap: 22px; min-height: 80px; }
.cl-ft__menu { display: flex; flex-wrap: wrap; margin: 0 auto 0 -11px; }
.cl-ft__menu a { display: block; padding: 0 11px; font: 400 14.8px/50px var(--site-font-body); text-transform: uppercase; }
.cl-ft__menu a:hover, .cl-ft__links a:hover, .cl-ft__mail:hover { color: var(--site-on-dark); text-decoration: underline; }
.cl-ft__reach { display: flex; align-items: center; gap: 22px; }
.cl-ft__mail { display: inline-flex; align-items: center; min-height: 41px; padding: 0 12px; border: 1px solid var(--site-on-dark); font: 400 16px/21px var(--site-font-body); }
.cl-ft__main { background: var(--site-dark); }
.cl-ft__cols { display: flex; flex-wrap: wrap; gap: 0 26px; min-height: 545px; padding-top: 60px; }
.cl-ft__col { width: 199px; }
.cl-ft__h { font: 700 15.7px/23.6px var(--site-font-heading); text-transform: uppercase; }
.cl-ft__links { margin-top: 3px; }
.cl-ft__links a { display: block; padding: 5px 0; font: 400 14.2px/26px var(--site-font-body); text-transform: uppercase; color: #E6E6E6; }
.cl-ft__small { min-height: 89px; font: 400 14px/24px var(--site-font-body); text-align: center; color: #E6E6E6; }

/* ---------- below 980px: their phone bar and an opaque drawer ---------- */
@media (max-width: 979.98px) {
  .cl-top__in { min-height: 31px; }
  .cl-top__mail { font-size: 13px; }
  .cl-hd__in { width: 100%; padding: 0; }
  .cl-hd__bar { height: 56px; padding: 0 var(--site-gutter); gap: 12px; }
  .cl-hd__logo img { height: 30px; }
  .cl-hd__cart-label { display: none; }
  .cl-hd__cart { min-width: 40px; justify-content: center; }
  /* the 40px target overlaps the gaps either side, so the phone bar keeps room for the logo and MENU */
  .cl-hd__bar .parts-theme-switch { margin: 0 -8px; }
  .cl-hd__toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; align-self: flex-start; margin-top: 6px; width: 86px; height: 41px; background: var(--site-accent); color: var(--site-accent-fg); font: 400 13px/20px var(--site-font-body); text-transform: uppercase; }
  .cl-hd__nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--site-dark); border-top: 1px solid var(--site-dark-line); padding: 0 var(--site-gutter) 16px; box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3); }
  .cl-js .cl-hd__nav:not(.is-open) { display: none; }
  .cl-hd__menu { border-top: 0; padding: 4px 0; }
  .cl-hd__list { flex-direction: column; }
  .cl-hd__link, .cl-hd__list li:first-child .cl-hd__link { padding: 5px 0; line-height: 30px; font-size: 16px; }
  .cl-hd__tools { flex-direction: column-reverse; align-items: stretch; height: auto; gap: 8px; }
  .cl-search { width: 100%; height: 40px; }

  .cl-ft__bar-in { flex-direction: column; gap: 0; padding: 20px 0 26px; }
  .cl-ft__menu { justify-content: center; margin: 0; }
  .cl-ft__menu a { font-size: 13.4px; }
  .cl-ft__reach { flex-direction: column; gap: 0; }
  .cl-ft__mail { min-height: 32px; font-size: 13px; }
  .cl-ft__cols { flex-direction: column; align-items: center; min-height: 314px; padding: 60px 0 20px; gap: 19px; }
  .cl-ft__col { width: 100%; text-align: center; }
  .cl-ft__h { font-size: 13.7px; line-height: 20.5px; }
  .cl-ft__h a { display: inline-block; }
  .cl-ft__links { display: none; }
  .cl-ft__small { min-height: 74px; font-size: 13px; line-height: 20px; }
}

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

}
