/* cl-site.css: the site's tokens, fonts, reset and chrome (the promo strip, header, menu, footer, the primary
   button) in Griot's Garage's look, written from their measured home: white pages, #343434 text, their red
   #EC0928, a navy strip, Benton Sans in three faces, and a footer on their red water-drop photo.

   The cascade (the kit's static/parts/tokens.css): `@layer base, kit, site;` 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 --parts-* tokens alone: no rule here names a kit class.

   Two layouts: from 980px the desktop one, measured in a 1440 window; below 980px their phone layout, drawn in
   stage units: --mx is one pixel of their 390px phone stage, --u is 1px on desktop and var(--mx) on phones. */
@layer base, kit, site;

@font-face { font-family: "BentonSansStdRegular"; src: url("fonts/bentonsansstdregular-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "BentonSansStdCondensedBold"; src: url("fonts/bentonsansstdcondensedbold-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "BentonSansStdCondensedBlack"; src: url("fonts/bentonsansstdcondensedblack-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* colours */
  --site-bg: #FFFFFF;
  --site-fg: #343434;
  --site-muted: #8F8F8F;
  --site-line: #DADADA;
  --site-band: #F3F3F3;
  --site-card: #F7F7F7;
  --site-accent: #EC0928;
  --site-accent-fg: #FFFFFF;
  --site-accent-dark: #C20620;
  --site-navy: #0F1435;
  --site-promo-bg: #CCCCCC;
  --site-field-bg: #FFFFFF;
  --site-field-line: #787878;
  --site-button-bg: #EC0928;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #C20620;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #E4E4E4;
  --site-disabled-fg: #343434;
  --site-footer-bg: #7A0A10;
  --site-footer-fg: #FFFFFF;
  --site-footer-edge: #E5E5E5;
  --site-placeholder: #5E5E5E;
  --site-navy-ink: #0F1435;
  --site-veil: rgba(255, 255, 255, 0.85);

  /* fonts: Benton Sans (static/fonts/FONTS.md), Arial where it is missing */
  --site-font-body: BentonSansStdRegular, Arial, Helvetica, sans-serif;
  --site-font-heading: BentonSansStdCondensedBlack, Arial, Helvetica, sans-serif;
  --site-font-button: BentonSansStdCondensedBold, Arial, Helvetica, sans-serif;
  --site-font-tag: Georgia, "DejaVu Serif", "Times New Roman", serif;

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

  /* the phone layout's unit: one pixel of their 390px phone stage */
  --mx: min(1px, 100vw / 390);
  --u: 1px;
}
/* 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);
  --parts-font: var(--site-font-body);
}
@media (max-width: 979.98px) {
  :root { --u: var(--mx); }
}
/* 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, near-white text, dark grey rules, cards a step up, fields dark with light words; the
   navy strip, the red promises band and the red water-drop footer stay as they are, and the red holds its fills,
   lifted a touch where the cart writes it as small text */
: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-promo-bg: #24201C;
  --site-field-bg: #1C1A18;
  --site-field-line: #6B635B;
  --site-button-hover-bg: #F4243F;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #F6F3EF;
  --site-footer-edge: #3D3833;
  --site-placeholder: #D9D3CC;
  --site-navy-ink: #F6F3EF;
  --site-veil: rgba(18, 17, 16, 0.85);
  --cs-accent: #FF4D60;
  --parts-accent-strong: color-mix(in srgb, var(--parts-accent) 78%, #fff);
  --parts-band-bg: #24201C;
  --parts-band-ink: #F6F3EF;
  --parts-band-edge: #3D3833;
}
/* the hero's outlined button fills white on hover over the photo: its words stay dark */
:root[data-parts-theme="dark"] .cl-hm-hero__btn:hover { color: #121110; }
/* the phone's grey arrows paging the picks: near white on the dark page */
:root[data-parts-theme="dark"] .cl-hm-picks .cl-hm-arrow { color: var(--site-fg); }

@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: their red, condensed capitals ---------- */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; 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: 400 20px/1 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); }
.cl-btn:focus-visible { outline: 2px solid var(--site-fg); outline-offset: 2px; }

/* ---------- the promo strip: navy, 40px ---------- */
.cl-promo { background: var(--site-navy); color: #FFFFFF; }
.cl-promo__in { padding: 8px 16px; font: 700 16px/24px var(--site-font-body); text-align: center; }
.cl-promo__in a { border-bottom: 1px solid #FFFFFF; line-height: 19px; }

/* ---------- header: 155px, the mark over our headings at the left, the search and the policies beside it ---------- */
.cl-hd { position: relative; z-index: 50; background: var(--site-bg); border-bottom: 1px solid var(--site-fg); }
.cl-hd__in {
  position: relative; max-width: 1440px; height: 154px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 135px 220px minmax(0, 551px) 1fr auto; grid-template-rows: 30px 44px 17px 34px 1fr;
  align-items: center;
}
.cl-hd__logo { grid-column: 1 / 3; grid-row: 2; justify-self: start; display: flex; }
.cl-hd__logo img { width: auto; height: 48px; }
.cl-hd__search { grid-column: 3; grid-row: 2; position: relative; }
.cl-hd__search input {
  width: 100%; height: 44px; padding: 0 12px 0 36px; background: var(--site-field-bg); color: var(--site-fg);
  border: 1px solid var(--site-field-line); border-radius: var(--site-radius); font: 400 16px/24px var(--site-font-body);
}
.cl-hd__search input::placeholder { color: var(--site-placeholder); }
.cl-hd__search-icon { position: absolute; left: 11px; top: 13px; color: var(--site-fg); pointer-events: none; }
.cl-hd__util { grid-column: 4 / 6; grid-row: 2; justify-self: end; padding-left: 20px; }
.cl-hd__util ul { display: flex; align-items: center; }
.cl-hd__util li + li { border-left: 1px solid var(--site-muted); }
.cl-hd__util a { display: block; padding: 0 15px; font: 400 16px/24px var(--site-font-button); text-transform: uppercase; color: var(--site-fg); }
.cl-hd__util li:last-child a { padding-right: 0; }
.cl-hd__nav { grid-column: 1 / 5; grid-row: 4; margin-left: -10px; }
.cl-hd__list { display: flex; flex-wrap: wrap; }
.cl-hd__link { display: block; padding: 6px 10px; font: 400 16px/22.4px var(--site-font-button); text-transform: uppercase; color: var(--site-fg); }
.cl-hd__link:hover, .cl-hd__link.is-current, .cl-hd__util a:hover { color: var(--site-accent); }
.cl-hd__cart { grid-column: 5; grid-row: 4; position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 40px; color: var(--site-fg); border-left: 1px solid var(--site-muted); }
.cl-hd__cart:hover { color: var(--site-accent); }
.cl-hd__cart-icon { overflow: visible; }
.cl-hd__cart-count { position: absolute; top: 0; right: 2px; min-width: 18px; font: 400 12px/18px var(--site-font-button); text-align: center; border-radius: 9px; background: var(--site-accent); color: var(--site-accent-fg); }
.cl-hd__cart-count:empty { display: none; }
.cl-hd__toggle { display: none; }

/* ---------- footer: their water-drop photo, 787px at 1440 ---------- */
.cl-ft { background: var(--site-footer-bg) url("img/chrome/footer-background-image-compress.jpg") center top / cover no-repeat;
  color: var(--site-footer-fg); border-top: 1px solid var(--site-footer-edge); }
.cl-ft a:hover { text-decoration: underline; }
.cl-ft__in {
  max-width: 1440px; min-height: 730px; margin: 0 auto; padding: 64px 16px 24px;
  display: grid; grid-template-columns: 352px 1fr 352px;
  grid-template-areas: "lead lead lead" "shop help service" "tag tag tag" "bottom bottom bottom";
  grid-template-rows: auto 308px auto 1fr;
}
.cl-ft__lead { grid-area: lead; text-align: center; padding-bottom: 80px; }
.cl-ft__lead-h { font: 400 32px/32px var(--site-font-heading); text-transform: uppercase; letter-spacing: 0.25px; }
.cl-ft__btn, .cl-ft__mail {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 30px; margin-top: 24px;
  background: var(--site-bg); color: var(--site-fg); border: 1px solid var(--site-fg); border-radius: var(--site-radius);
  font: 400 20px/20px var(--site-font-button); text-transform: uppercase;
}
.cl-ft__btn:hover, .cl-ft__mail:hover { text-decoration: none; background: var(--site-band); }
.cl-ft__col { padding: 0 12px; }
.cl-ft__col--shop { grid-area: shop; text-align: right; }
.cl-ft__col--help { grid-area: help; text-align: center; }
.cl-ft__col--service { grid-area: service; }
.cl-ft__h { display: block; list-style: none; font: 400 20px/20px var(--site-font-heading); text-transform: uppercase; letter-spacing: 0.25px; cursor: default; }
.cl-ft__h::-webkit-details-marker { display: none; }
.cl-ft__chev { display: none; }
.cl-ft__list { margin-top: 40px; }
.cl-ft__list a { display: inline-block; padding: 4px 0; font: 400 16px/24px var(--site-font-body); }
.cl-ft__help-h { font: 400 28px/28px var(--site-font-heading); text-transform: uppercase; letter-spacing: 0.25px; }
.cl-ft__help-p { max-width: 350px; margin: 24px auto 0; font: 400 22px/33px var(--site-font-body); }
.cl-ft__mail { margin-top: 32px; text-transform: none; font: 400 18px/20px var(--site-font-body); }
.cl-ft__tag { grid-area: tag; padding-top: 56px; text-align: center; font: italic 700 40px/47px var(--site-font-tag); letter-spacing: -0.5px; }
.cl-ft__tag sup { font-style: normal; }
.cl-ft__tag sup { font-size: 12px; vertical-align: 24px; }
.cl-ft__bottom { grid-area: bottom; align-self: end; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 16px; }
.cl-ft__copy { font: 400 13px/18px var(--site-font-body); }
.cl-ft__legal { display: flex; flex-wrap: wrap; }
.cl-ft__legal li + li::before { content: "|"; padding: 0 8px; }
.cl-ft__legal a { font: 400 13px/18px var(--site-font-body); }

/* ---------- phones: their 390px stage ---------- */
@media (max-width: 979.98px) {
  .cl-promo__in { padding: calc(17.5 * var(--u)) 16px; font-size: calc(16 * var(--u)); line-height: calc(24 * var(--u)); }
  .cl-promo__in a { line-height: calc(19 * var(--u)); }
  .cl-hd__in {
    height: calc(156 * var(--u)); padding: 0 calc(8 * var(--u));
    grid-template-columns: calc(60 * var(--u)) 1fr calc(40 * var(--u)) calc(40 * var(--u)); grid-template-rows: calc(89 * var(--u)) calc(44 * var(--u)) 1fr;
    column-gap: calc(10 * var(--u));
  }
  .cl-hd__logo { grid-row: 1; grid-column: 1 / 3; }
  .cl-hd__logo img { height: calc(40 * var(--u)); }
  .cl-hd__search { grid-row: 2; grid-column: 1 / -1; margin: 0; }
  .cl-hd__search input { height: calc(44 * var(--u)); font-size: 16px; }
  .cl-hd__cart { grid-row: 1; grid-column: 3; width: 40px; height: 40px; border: 0; }
  .cl-hd__toggle { grid-row: 1; grid-column: 4; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
  .cl-hd__toggle span, .cl-hd__toggle span::before, .cl-hd__toggle span::after { display: block; width: 20px; height: 2px; background: var(--site-fg); position: relative; }
  .cl-hd__toggle span::before, .cl-hd__toggle span::after { content: ""; position: absolute; left: 0; }
  .cl-hd__toggle span::before { top: -7px; }
  .cl-hd__toggle span::after { top: 7px; }
  .cl-hd__toggle[aria-expanded="true"] span { background: transparent; }
  .cl-hd__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .cl-hd__toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
  /* the menu: an opaque white panel under the bar with our headings; the policies sit in the footer */
  .cl-hd__util { display: none; }
  .cl-hd__nav { grid-column: 1 / -1; grid-row: 1 / -1; position: absolute; top: 100%; left: calc(-8 * var(--u)); right: calc(-8 * var(--u)); margin: 0; background: var(--site-bg); z-index: 60;
    border-top: 1px solid var(--site-fg); border-bottom: 1px solid var(--site-fg); }
  .cl-js .cl-hd__nav:not(.is-open) { display: none; }
  .cl-hd__list { display: block; padding: 0 16px; }
  .cl-hd__list li + li { border-top: 1px solid var(--site-line); }
  .cl-hd__link { display: flex; align-items: center; min-height: 48px; padding: 0; font-size: 18px; }

  .cl-ft { background-image: url("img/chrome/footer-background-mobile-image-compress.jpg"); background-size: calc(390 * var(--u)) auto; background-position: left top; }
  .cl-ft__in {
    padding: calc(64 * var(--u)) calc(16 * var(--u)) calc(24 * var(--u));
    grid-template-columns: 1fr; grid-template-areas: "lead" "help" "service" "shop" "tag" "bottom"; grid-template-rows: none; align-content: start;
  }
  .cl-ft__lead { padding: 0 calc(16 * var(--u)) calc(79 * var(--u)); border-bottom: 1px solid rgba(255, 255, 255, 0.6); }
  .cl-ft__lead-h { font-size: calc(32 * var(--u)); line-height: calc(32 * var(--u)); }
  .cl-ft__btn { min-width: calc(251 * var(--u)); margin-top: calc(24 * var(--u)); }
  .cl-ft__col--help { min-height: calc(406 * var(--u)); padding: calc(80 * var(--u)) calc(12 * var(--u)) 0; }
  .cl-ft__help-h { font-size: calc(22 * var(--u)); line-height: calc(22 * var(--u)); }
  .cl-ft__help-p { margin-top: calc(16 * var(--u)); font-size: calc(20 * var(--u)); line-height: calc(30 * var(--u)); }
  .cl-ft__mail { min-width: calc(234 * var(--u)); padding: 0 12px; margin-top: calc(40 * var(--u)); font-size: 16px; }
  .cl-ft__col--shop, .cl-ft__col--service { margin: 0 calc(12 * var(--u)); padding: 0; text-align: left; border-top: 1px solid rgba(255, 255, 255, 0.6); }
  .cl-ft__col--shop { border-bottom: 1px solid rgba(255, 255, 255, 0.6); }
  .cl-ft__h { display: flex; justify-content: space-between; align-items: center; min-height: calc(84 * var(--u)); cursor: pointer; font-size: calc(20 * var(--u)); }
  .cl-ft__chev { display: block; transition: transform 0.2s ease; }
  details[open] > .cl-ft__h .cl-ft__chev { transform: rotate(180deg); }
  .cl-ft__list { margin: 0 0 calc(16 * var(--u)); }
  .cl-ft__list a { display: flex; align-items: center; min-height: 40px; }
  .cl-ft__tag { padding: calc(64 * var(--u)) 0; border-bottom: 1px solid rgba(255, 255, 255, 0.6); font-size: calc(30 * var(--u)); line-height: calc(36 * var(--u)); }
  .cl-ft__tag sup { font-size: 9px; vertical-align: 18px; }
  .cl-ft__bottom { flex-direction: column-reverse; gap: calc(8 * var(--u)); padding: calc(14 * var(--u)) 0 0; text-align: center; align-self: start; }
  .cl-ft__legal { justify-content: center; }
  .cl-ft__legal a { display: inline-flex; align-items: center; min-height: 40px; }
}

/* their phone stage is 390 wide: a phone a few pixels wider keeps the stage's layout, as theirs does */
@media (min-width: 390.02px) and (max-width: 399.98px) {
  .cl-promo__in, .cl-hd__in, .cl-ft__in { max-width: 390px; margin: 0; }
}

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

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

}

/* the kit's theme switch (shown 21:30 to 04:30 by the kit's head block): left of the cart on the desktop bar, beside
   the search under the cart on phones; outside any layer, like the kit's own rule for it.
   The Orbital Parts mark: the light one on the white bar, the dark one on the night theme's near black. */
.cl-hd__mark--dark, :root[data-parts-theme="dark"] .cl-hd__mark--light { display: none; }
:root[data-parts-theme="dark"] .cl-hd__mark--dark { display: block; }
.cl-hd .parts-theme-switch { grid-column: 4; grid-row: 4; justify-self: end; color: var(--site-fg); }
.cl-hd .parts-theme-switch:hover { color: var(--site-accent); }
@media (max-width: 979.98px) {
  .cl-hd .parts-theme-switch { grid-column: 3; grid-row: 2; justify-self: center; }
  :root[data-parts-night] .cl-hd__search { grid-column: 1 / 3; }
}
