/* cl-site.css: S&S Cycle's tokens, reset and chrome (header, menu, footer, the primary button), on every page,
   from the measurements of their home (review/pages/home.json): Sora throughout, near-black #011421 text, their
   blue #0067B1 and its deeper #035189, a black header and a light grey footer, 4px corners.

   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 --parts-* tokens below alone: no rule here names a kit class.
   Two layouts: from 980px their desktop, below it their phone layout (the 390px stage). */
@layer base, kit, site;

/* Sora, a variable font (Google Fonts, SIL OFL): one file a subset serves every weight they use */
@font-face { font-family: "Sora"; font-weight: 100 800; font-style: normal; font-display: swap; src: url("fonts/sora-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: "Sora"; font-weight: 100 800; font-style: normal; font-display: swap; src: url("fonts/sora-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; }

:root {
  /* colours */
  --site-bg: #FFFFFF;
  --site-fg: #011421;
  --site-muted: #737E85;
  --site-line: #ACACAC;
  --site-band: #F2F2F2;
  --site-card: #F5F6F6;
  --site-dark: #000000;
  --site-accent: #0067B1;
  --site-accent-strong: #035189;
  --site-accent-fg: #FFFFFF;
  --site-field-bg: #FFFFFF;
  --site-field-line: #8F8F8F;                         /* the footer's mail field */
  --site-accent-ink: var(--site-accent);              /* the blue as text on the page: the footer's links and name, the home's links */
  --site-accent-ink-strong: var(--site-accent-strong);  /* the same on hover, and the featured cards' outlined button */
  --site-card-line: #E5E5E5;                          /* the home's featured cards */
  --site-button-bg: #0067B1;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #035189;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #E4E4E4;
  --site-disabled-fg: #5C5C5C;

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

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

  /* the phone layout's unit (cl-shop.css's title band): one pixel of their 390px phone stage, scaled to the screen */
  --mx: calc(100vw / 390);
}
/* 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);
}
/* the dark theme (kit 0.10.0: the attribute on <html>, by the visitor's clock or their pick). The black header and the
   home's black rows are dark by design and stay so; the white page and the grey footer turn the kit's warm near black,
   text near white, rules a dark grey. Their blue stays the fill (buttons, the footer's box, the cart's count, Go) with
   white on it, and is lifted to a light blue as text on the dark page. Photos keep their 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-field-line: #57504A;
  --site-accent-ink: #6CB4FF;
  --site-accent-ink-strong: #9ACBFF;
  --site-card-line: #3D3833;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #EBE6E0;
  --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: 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 blue, 2px border, 4px corners, Sora semibold ---------- */
.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: 2px solid var(--site-button-bg); border-radius: var(--site-radius);
  font: 600 16px/1 var(--site-font-button); 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: their 120px black bar ---------- */
.cl-hd { position: relative; z-index: 50; background: var(--site-dark); color: #FFFFFF; }
.cl-hd__in { height: 120px; padding: 0 100px; display: flex; align-items: stretch; }
.cl-hd__logo { flex: none; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding-right: 24px; font: 700 28px/1 var(--site-font-heading); letter-spacing: 0.25px; color: #FFFFFF; white-space: nowrap; }
.cl-hd__nav { flex: 1; min-width: 0; display: flex; }
.cl-hd__nav .cl-hd__search { display: none; }
.cl-hd__list { display: flex; align-items: stretch; }
.cl-hd__link { display: flex; align-items: center; height: 100%; padding: 0 8px; font: 600 16px/24px var(--site-font-body); color: #FFFFFF; white-space: nowrap; }
.cl-hd__link:hover, .cl-hd__link.is-current { color: #FFFFFF; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.cl-hd__tools { flex: none; display: flex; align-items: center; gap: 4px; }
.cl-hd__search { position: relative; display: flex; align-items: center; }
.cl-hd__search input {
  width: 320px; height: 40px; padding: 0 42px 0 14px;
  background: var(--site-dark); color: #FFFFFF; border: 1px solid #FFFFFF; border-radius: var(--site-radius);
  font: 400 14px/1 var(--site-font-body);
}
.cl-hd__search input::placeholder { color: #FFFFFF; opacity: 0.85; }
.cl-hd__search input:focus { outline: 2px solid var(--site-accent); outline-offset: 0; }
.cl-hd__search button { position: absolute; right: 0; top: 0; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #FFFFFF; }
.cl-hd__icon { position: relative; width: 51px; height: 100%; display: flex; align-items: center; justify-content: center; color: #FFFFFF; }
.cl-hd__icon:hover { color: #FFFFFF; opacity: 0.8; }
.cl-hd__icon--search, .cl-hd__toggle { display: none; }
/* the kit's theme switch (shown at night only, the kit's head block): a 40px square in the tools row before the cart,
   in the header's white */
.cl-hd .parts-theme-switch { flex: none; }
.cl-hd__cart-count { position: absolute; top: calc(50% - 22px); right: 4px; min-width: 18px; padding: 0 4px; font: 600 13px/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; }

/* ---------- footer: their light grey under a grey rule ---------- */
.cl-ft { background: var(--site-band); color: var(--site-fg); border-top: 1px solid var(--site-line); }
.cl-ft__in { padding: 60px 24px 60px; display: grid; grid-template-columns: 335px 1fr; column-gap: 105px; }
.cl-ft__box { padding: 30px 20px; background: var(--site-accent); color: #FFFFFF; }
.cl-ft__box-title { font: 600 24px/36px var(--site-font-heading); letter-spacing: 0.25px; }
.cl-ft__box-text { margin-top: 0; font: 400 15px/22.5px var(--site-font-body); }
.cl-ft__box-label { margin-top: 23px; font: 600 14px/21px var(--site-font-body); }
.cl-ft__box-mail {
  display: flex; align-items: center; min-height: 48px; margin-top: 8px; padding: 0 14px;
  background: var(--site-field-bg); border: 1px solid var(--site-field-line); border-radius: var(--site-radius); font: 400 16px/1.2 var(--site-font-body); color: var(--site-fg);
}
.cl-ft__box-mail:hover { text-decoration: underline; }
.cl-ft__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); min-height: 284px; }
.cl-ft__head { display: flex; align-items: center; justify-content: space-between; font: 600 24px/36px var(--site-font-heading); letter-spacing: 0.25px; color: var(--site-fg); cursor: default; text-align: left; }
.cl-ft__plus { display: none; color: var(--site-accent-ink); }
.cl-ft__list { display: grid; gap: 20px; margin-top: 24px; }
.cl-ft__list a { font: 600 16px/24px var(--site-font-body); color: var(--site-accent-ink); }
.cl-ft__list a:hover { text-decoration: underline; }
.cl-ft__bar { margin-top: 70px; min-height: 163px; border-top: 1px solid var(--site-line); padding: 0 12px 0 10px; display: grid; grid-template-columns: auto 1fr; align-items: start; column-gap: 24px; }
.cl-ft__name { margin-top: 58px; font: 700 28px/40px var(--site-font-heading); letter-spacing: 0.25px; color: var(--site-accent-ink); white-space: nowrap; }
.cl-ft__legal { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 0 8px; grid-column: 1 / -1; margin-top: 27px; }
.cl-ft__legal > li > a { font: 600 14px/21px var(--site-font-body); color: var(--site-accent-ink); }
.cl-ft__legal > li > a:hover { text-decoration: underline; }
.cl-ft__small { font: 400 14px/21px var(--site-font-body); color: var(--site-fg); }

/* ---------- phones: their 70px bar, the menu under it, the footer stacked ---------- */
.cl-hd__tag { font: 700 14px/1 var(--site-font-body); letter-spacing: 3px; text-transform: uppercase; color: #FFFFFF; }
@media (max-width: 979.98px) {
  .cl-hd__in { height: 70px; padding: 0 20px; position: relative; }
  .cl-hd__logo { flex: 1; min-width: 0; font-size: 24px; padding-right: 8px; gap: 4px; }
  .cl-hd__tag { font-size: 13px; letter-spacing: 1px; }
  .cl-hd__tools { gap: 0; margin-right: -8px; }
  .cl-hd__tools > .cl-hd__search { display: none; }
  .cl-hd__icon--search, .cl-hd__toggle { display: flex; }
  .cl-hd__icon { width: 44px; }
  .cl-hd__toggle { flex-direction: column; gap: 7px; width: 44px; }
  .cl-hd__toggle span { display: block; width: 25px; height: 2px; background: #FFFFFF; transition: transform 0.2s ease, opacity 0.2s ease; }
  .cl-hd__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .cl-hd__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .cl-hd__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .cl-hd__nav { position: absolute; left: 0; right: 0; top: 70px; z-index: 60; display: block; padding: 8px 20px 20px; background: var(--site-dark); border-top: 1px solid #333333; }
  .cl-js .cl-hd__nav:not(.is-open) { display: none; }
  .cl-hd__list { display: block; }
  .cl-hd__link { height: auto; min-height: 48px; padding: 0; border-bottom: 1px solid #333333; font-size: 18px; }
  .cl-hd__nav .cl-hd__search { display: flex; margin-top: 16px; }
  .cl-hd__nav .cl-hd__search input { width: 100%; height: 44px; font-size: 16px; }
  .cl-hd__nav .cl-hd__search button { height: 44px; width: 44px; }

  .cl-ft__in { display: block; padding: 21px 24px 40px; }
  .cl-ft__box { margin: 0 20px; padding: 30px 20px 30px; min-height: 331px; }
  .cl-ft__cols { display: block; min-height: 0; margin-top: 31px; border-bottom: 1px solid var(--site-line); }
  .cl-ft__col { border-top: 1px solid var(--site-line); }
  .cl-ft__head { width: 100%; min-height: 55px; padding: 0 16px 0 18px; font-size: 18px; line-height: 24px; cursor: pointer; }
  .cl-ft__plus { display: block; }
  .cl-ft__list { margin: 0; padding: 0 18px 20px; gap: 16px; }
  .cl-js .cl-ft__col:not(.is-open) .cl-ft__list { display: none; }
  .cl-ft__col.is-open .cl-ft__plus { transform: rotate(45deg); }
  .cl-ft__bar { display: block; margin-top: 29px; min-height: 0; border-top: 0; padding: 20px 12px 0; }
  .cl-ft__name { display: inline-block; margin-top: 0; line-height: 80px; }
  .cl-ft__legal { display: grid; justify-items: start; gap: 11px; margin-top: 82px; }
  .cl-ft__legal > li:last-child { margin-top: 9px; }
  .cl-ft__legal > li > a { display: flex; align-items: center; min-height: 40px; }
  .cl-ft__small { padding-top: 0; }
}

/* a narrow phone at night: the row's icons narrow to 40px, so the switch fits beside the name */
@media (max-width: 379.98px) {
  :root[data-parts-night] .cl-hd__icon { width: 40px; }
}

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

}
