/* cl-site.css: the site's tokens, fonts, reset and chrome in AEM's look (aemintakes.com, measured at 1440 and in
   the 390 phone stage): the orange line, the blue header box with the dark menu bar, the black footer, on every page.
   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;` 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.
   From 980px the desktop layout; below it the phone layout, the menu behind the three bars (cl-site.js). */
@layer base, kit, site;

/* Palanquin (Google Fonts, SIL OFL), the client's only family, served from static/fonts (FONTS.md) */
@font-face { font-family: "Palanquin"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/palanquin-400-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: "Palanquin"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/palanquin-400-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; }
@font-face { font-family: "Palanquin"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/palanquin-500-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: "Palanquin"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/palanquin-500-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; }
@font-face { font-family: "Palanquin"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/palanquin-600-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: "Palanquin"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/palanquin-600-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; }
@font-face { font-family: "Palanquin"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("fonts/palanquin-700-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: "Palanquin"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("fonts/palanquin-700-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: AEM blue is the accent (the measured green is the cookie banner's button, not the brand's) */
  --site-bg: #FFFFFF;
  --site-fg: #000000;
  --site-muted: #1A1A1A;
  --site-line: #D1D1D1;
  --site-band: #F0F0F0;
  --site-card: #F5F5F5;
  --site-accent: #003595;
  --site-accent-strong: #002670;
  --site-accent-fg: #FFFFFF;
  --site-promo: #FE6000;
  --site-bar: #1A1A1A;
  --site-rule: #E31B23;
  --site-ft-bg: #000000;
  --site-ft-fg: #FFFFFF;
  --site-field-bg: #FFFFFF;
  --site-button-bg: #000000;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #003595;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #E4E4E4;
  --site-disabled-fg: #4D4D4D;
  /* the same colours named for their roles, so the dark block below can turn each (or keep it) */
  --site-accent-ink: var(--site-accent);   /* the blue as words, a ring or a rule on the page */
  --site-hd-fg: #FFFFFF;                   /* words and icons on the orange line, the blue box and the menu bar */
  --site-hd-rule: rgba(255, 255, 255, .3); /* the rules between the phone menu's rows */
  --site-ft-rule: #555555;                 /* the footer's rule over the logo */
  --site-field-edge: #000000;              /* the header search's box and the suggestions panel */
  --site-icon: #333333;                    /* the search's glass */
  --site-panel: #FFFFFF;                   /* the suggestions panel */
  --site-plate: #FFFFFF;                   /* behind a product photo, white in both themes */

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

  /* shape and layout: square boxes, the 16px blue frame of their page (8px on phones) */
  --site-radius: 0;
  --site-max: 1320px;
  --site-frame: 16px;
}
/* the kit's shop pages and vehicle band: only the brand tokens a site owns (storefront-kit 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-frame: 8px; }
}

/* the dark theme (storefront-kit 0.10.0: the kit's head block writes data-parts-theme="dark" on <html> from 21:30 to
   04:30 by the shopper's clock, or when the shopper picks it): the page a warm near black in the kit's family, text
   near white, the rules dark grey, the cards a step up. AEM's chrome keeps its colours: the orange line, the blue
   header box and frame, the dark menu bar, the black footer. Photos and the tiles' pictures keep white plates. The
   blue stays the fill of a button; as words or a ring on the dark page it is the lifted --site-accent-ink. */
: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-accent: #003595;
  --site-accent-strong: #3861AC;
  --site-accent-fg: #FFFFFF;
  --site-accent-ink: #8EAEF0;
  --site-promo: #FE6000;
  --site-bar: #1A1A1A;
  --site-rule: #E31B23;
  --site-ft-bg: #000000;
  --site-ft-fg: #FFFFFF;
  --site-ft-rule: #555555;
  --site-hd-fg: #FFFFFF;
  --site-hd-rule: rgba(255, 255, 255, .3);
  --site-field-bg: #121110;
  --site-field-edge: #3D3833;
  --site-icon: #F6F3EF;
  --site-panel: #1C1A18;
  --site-plate: #FFFFFF;
  --site-button-bg: #F6F3EF;
  --site-button-fg: #121110;
  --site-button-hover-bg: #003595;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #EBE6E0;
}

@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/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 buttons: the primary fill, and AEM's outlined capitals ---------- */
.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: 700 14px/1 var(--site-font-button); text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.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, .cl-out:focus-visible { outline: 2px solid var(--site-accent-ink); outline-offset: 2px; }
.cl-out {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--site-fg); color: var(--site-fg); background: transparent;
  font: 700 14px/14px var(--site-font-button); text-transform: uppercase; white-space: nowrap;
}
.cl-out:hover { background: var(--site-fg); color: var(--site-bg); }

/* ---------- the orange line ---------- */
.cl-promo { background: var(--site-promo); color: var(--site-hd-fg); font: 700 16px/24px var(--site-font-body); text-align: center; padding: 0 16px; }

/* ---------- header: the blue box ---------- */
.cl-hd { position: relative; z-index: 50; background: var(--site-accent); padding: var(--site-frame) var(--site-frame) 21px; color: var(--site-hd-fg); }
.cl-hd__util { display: flex; justify-content: flex-end; gap: 20px; height: 48px; padding: 14px 25px 0; }
.cl-hd__util a { font: 500 13px/19.5px var(--site-font-body); text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; }
.cl-hd__util a:hover { text-decoration: none; }
.cl-hd__main { position: relative; display: flex; align-items: center; height: 80px; padding: 0 25px; }
.cl-hd__logo { flex: none; display: block; }
.cl-hd__logo img { width: auto; height: 50px; }
/* the search: the host sits centred in the row (the dropdown hangs under it), the white box with the glass first */
.cl-hd__find { position: absolute; left: 50%; top: 17px; transform: translateX(-50%); width: 452px; }
.cl-hd__search { width: 100%; height: 46px; display: flex; align-items: center;
  background: var(--site-field-bg); color: var(--site-fg); border: 1px solid var(--site-field-edge); border-radius: var(--site-radius); }
.cl-hd__search button { flex: none; display: grid; place-items: center; width: 40px; height: 44px; color: var(--site-icon); }
.cl-hd__search input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; padding: 0 12px 0 0; color: var(--site-fg);
  font: 600 14px/21px var(--site-font-body); outline: 0; }
.cl-hd__search input::placeholder { color: var(--site-fg); opacity: 1; }
.cl-hd__search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.cl-hd__search:focus-within { outline: 2px solid var(--site-hd-fg); outline-offset: 2px; }
.cl-hd__toggle, .cl-hd__phone { display: none; }

/* the search's suggestions (partials/suggest.html, swapped in by htmx; fm-site.js the keys): an opaque white panel
   under the box, square, black text, every row at least 44px, nothing under 13px */
.fm-suggest {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60; max-height: min(70vh, 640px); overflow-y: auto;
  background: var(--site-panel); color: var(--site-fg); border: 1px solid var(--site-field-edge); border-radius: var(--site-radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35); text-align: left; font: 500 14px/1.35 var(--site-font-body);
}
.fm-suggest-section + .fm-suggest-section { border-top: 1px solid var(--site-line); }
.fm-suggest-title { padding: 10px 14px 4px; font: 700 13px/18px var(--site-font-heading); letter-spacing: .5px; text-transform: uppercase; color: var(--site-fg); }
.fm-suggest-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px; color: var(--site-fg); text-decoration: none; cursor: pointer; }
.fm-suggest-item.is-active, .fm-suggest-item:hover { background: var(--site-band); }
.fm-suggest-item b { font-weight: 700; }
.fm-suggest-glyph { flex: none; }
.fm-suggest-text { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.fm-suggest-text > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-suggest-note, .fm-suggest-count, .fm-suggest-fit { font-size: 13px; color: var(--site-fg); }
.fm-suggest-term .fm-suggest-note, .fm-suggest-search .fm-suggest-note, .fm-suggest-count { margin-left: auto; }
.fm-suggest-thumb { flex: none; width: 44px; height: 44px; object-fit: contain; background: var(--site-plate); border: 1px solid var(--site-line); border-radius: var(--site-radius); }
.fm-suggest-thumb--blank { display: block; background: var(--site-card); }
.fm-suggest-price { margin-left: auto; font-weight: 700; white-space: nowrap; }
.fm-suggest-all { justify-content: center; border-top: 1px solid var(--site-line); font-weight: 700; }
.fm-suggest-empty { padding: 14px; font-size: 14px; }
/* the theme switch (the kit's 40px button, its icons in currentColor) beside the cart, in the header's ink */
.cl-hd__theme { margin-left: auto; display: flex; align-items: center; color: var(--site-hd-fg); }
.cl-hd__theme + .cl-hd__cart { margin-left: 4px; }
.cl-hd__cart { margin-left: auto; position: relative; display: grid; place-items: center; width: 40px; height: 40px; color: var(--site-hd-fg); }
.cl-hd__cart-icon { overflow: visible; }
.cl-hd__cart-count { position: absolute; top: 0; right: -4px; min-width: 18px; font: 700 13px/18px var(--site-font-body); text-align: center; border-radius: 9px;
  background: var(--site-promo); color: var(--site-hd-fg); }
.cl-hd__cart-count:empty { display: none; }
.cl-hd__nav { background: var(--site-bar); }
.cl-hd__list { display: flex; justify-content: space-between; height: 41px; padding: 0 45px; }
.cl-hd__link { display: flex; align-items: center; height: 41px; padding: 0 16px; font: 700 14px/21px var(--site-font-body); text-transform: uppercase; color: var(--site-hd-fg); }
.cl-hd__link:hover, .cl-hd__link.is-current { color: var(--site-promo); }

/* ---------- footer: black, four columns, then the logo and the copyright ---------- */
.cl-ft { background: var(--site-ft-bg); color: var(--site-ft-fg); font: 500 13px/20px var(--site-font-body); }
.cl-ft__cols { display: grid; grid-template-columns: repeat(3, 1fr); padding: 61px 0 70px; }
.cl-ft__col { padding: 20px 16px 0; min-height: 463px; }
.cl-ft__h { font: 900 13px/19.5px var(--site-font-heading); letter-spacing: .5px; text-transform: uppercase; }
.cl-ft__h::after { content: ""; display: block; width: 20px; height: 2px; margin: 10px 0 12px; background: var(--site-rule); }
.cl-ft__list li { padding: 6px 0; }
.cl-ft__list a:hover { text-decoration: underline; }
.cl-ft__bar { border-top: 1px solid var(--site-ft-rule); padding: 30px 16px 40px; }
.cl-ft__logo img { display: block; }
.cl-ft__logo { display: inline-block; padding: 5px 0; }
.cl-ft__logo img { width: auto; height: 30px; }
.cl-ft__small { margin-top: 16px; font: 500 16px/24px var(--site-font-body); color: var(--site-ft-fg); }

/* ---------- phones: the row of bars, logo and cart, the search as a row under it; the menu opens below ---------- */
@media (max-width: 979.98px) {
  .cl-promo { padding: 0 12px; font-size: 14px; }
  .cl-hd { padding-bottom: 0; }
  .cl-hd__util { display: none; }
  .cl-hd__main { display: grid; grid-template-columns: 40px 40px 1fr 40px 40px; grid-template-rows: 71px auto; align-items: center; height: auto; padding: 0 10px 12px; }
  .cl-hd__toggle { display: grid; place-items: center; width: 40px; height: 40px; color: var(--site-promo); }
  .cl-hd__logo { grid-column: 3; grid-row: 1; justify-self: center; display: flex; align-items: center; min-height: 40px; }
  .cl-hd__logo img { height: 28px; }
  .cl-hd__theme { grid-column: 4; grid-row: 1; margin-left: 0; }
  .cl-hd__theme + .cl-hd__cart { margin-left: 0; }
  .cl-hd__cart { grid-column: 5; grid-row: 1; }
  .cl-hd__find { position: relative; left: auto; top: auto; transform: none; grid-column: 1 / -1; grid-row: 2; width: auto; }
  .cl-hd__search { height: 44px; }
  .cl-hd__search input { height: 42px; font-size: 16px; }
  .cl-hd__phone { display: block; }
  .cl-hd__nav { background: var(--site-accent); }
  .cl-js .cl-hd__nav:not(.is-open) { display: none; }
  .cl-hd__list { flex-direction: column; height: auto; padding: 0 10px; }
  .cl-hd__link { height: auto; min-height: 48px; padding: 12px 0; font-size: 16px; border-top: 1px solid var(--site-hd-rule); }
  .cl-ft__cols { grid-template-columns: 1fr; padding: 28px 20px 54px; }
  .cl-ft__col { min-height: 0; padding: 15px 15px 12px; }
  .cl-ft__list li { padding: 0; }
  .cl-ft__list a { display: inline-block; padding: 10px 0; }
  .cl-ft__bar { padding: 24px 16px 40px; text-align: center; }
  .cl-ft__logo img { margin: 0 auto; }
  .cl-ft__small { font-size: 13px; line-height: 20px; }
}

/* ---------- the 404 (templates/404.html) ---------- */
.cl-404 { max-width: var(--site-max); margin: 0 auto; padding: 80px 16px 100px; text-align: center; }
.cl-404__h { font: 900 64px/64px var(--site-font-heading); text-transform: uppercase; }
.cl-404__h::after { content: ""; display: block; width: 40px; height: 4px; margin: 24px auto; background: var(--site-fg); }
.cl-404__p { margin-bottom: 32px; }
@media (max-width: 979.98px) {
  .cl-404 { padding: 48px 16px 64px; }
  .cl-404__h { font-size: 40px; line-height: 44px; }
}

/* 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 vehicle pickers around the kit's band (Greg 2026-10-30) ---------- */
/* a landing page: the kit's band at the top from 980px (as before the phone clean-up), the page's own row under the
   H1 below it (proto-pages-aem.css) */
@media (max-width: 979.98px) {
  .aem-band-top { display: none; }
}
/* the kit's listings under 980px: one 48px bar names the vehicle (or asks for it) and opens the kit's band under it */
.aem-bar { display: none; }
@media (max-width: 979.98px) {
  .aem-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 48px; margin: 0; padding: 0 16px;
    background: var(--site-band); color: var(--site-fg); border: 0; border-bottom: 1px solid var(--site-line); border-radius: var(--site-radius);
    font: 700 16px/1.2 var(--site-font-body); text-align: left; cursor: pointer;
  }
  .aem-bar__text { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .aem-bar svg { flex: none; transition: transform .15s; }
  .aem-bar[aria-expanded="true"] svg { transform: rotate(180deg); }
  .cl-js .aem-bandbox:not(.is-open) { display: none; }
}
/* a product page: the picked vehicle in one line under the header, Change to the listings with the band open */
.aem-veh { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; max-width: var(--site-max); margin: 0 auto; padding: 4px 24px; color: var(--site-fg); font: 700 16px/1.25 var(--site-font-body); }
.aem-veh a { display: inline-flex; align-items: center; min-height: 40px; color: var(--site-accent-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 979.98px) {
  .aem-veh { padding: 4px 16px; }
}

}
