/* cl-site.css: Titan Fuel Tanks' tokens, type and chrome on every page: the black strip, the #333 bar with the
   brand's name in words where their logo sits, our menu in their Raleway, the search and the cart, the pale
   grey-blue footer in four columns over its copyright row, and the dark button.

   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 (under the kit's rules, so it never undoes
   a kit button or list), 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 below alone: no rule here names a kit class.

   Two layouts: from 980px the desktop one, measured at 1440; below 980px their phone layout, measured in
   their 390px stage, where --u (1px on desktop, one stage pixel on phones) is the unit cl-shop.css writes in. */
@layer base, kit, site;

:root {
  /* colours */
  --site-bg: #FFFFFF;
  --site-fg: #333333;
  --site-muted: #333333;
  --site-line: #DADADA;
  --site-band: #F3F3F3;
  --site-card: #F7F7F7;
  --site-accent: #E05200;
  --site-accent-strong: #B84300;
  --site-accent-fg: #FFFFFF;
  --site-field-bg: #FFFFFF;
  --site-button-bg: #333333;
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: #E05200;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #E4E4E4;
  --site-disabled-fg: #555555;
  --site-field-line: #EBEBEB;
  --site-heading: #000000;
  --site-rule: #CECECE;
  --site-tile-bg: #FFFFFF;
  --site-tile-line: #E5E7EB;
  --site-photo-bg: #FFFFFF;
  --site-hero-bg: #111111;

  /* colours: their chrome */
  --site-strip-bg: #000000;
  --site-bar-bg: #333333;
  --site-bar-fg: #F2F2F2;
  --site-bar-soft: #D9D9D9;
  --site-bar-strong: #FFFFFF;
  --site-bar-field-line: #8F8F8F;
  --site-bar-rule: #555555;
  --site-bar-line: #E5E7EB;
  --site-foot-bg: #EDF1F3;
  --site-foot-line: rgba(182, 164, 117, 0.4);
  --site-finder-bg: #F3F4F6;

  /* fonts: their Raleway, the @font-face rule below */
  --site-font-body: Raleway, -apple-system, "Segoe UI", Roboto, 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: 1280px;
  --site-gutter: 24px;

  /* the phone layout's unit cl-shop.css writes in: one pixel of their 390px stage, 1px on desktop */
  --mx: calc(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 (storefront-kit
   ADR 0007): never set one here. */
:root {
  --parts-accent: var(--site-accent);
  --parts-accent-strong: var(--site-accent-strong);
  --parts-font: var(--site-font-body);
  /* the vehicle band in their grey Search By Vehicle box (the --parts-band-* tokens a site owns, storefront/CLAUDE.md) */
  --parts-band-bg: var(--site-finder-bg);
  --parts-band-ink: var(--site-fg);
  --parts-band-edge: var(--site-line);
}
@media (max-width: 979.98px) {
  :root { --site-gutter: 16px; --u: var(--mx); }
}

/* The dark page (kit 0.10.0, Site(dark="night"): the kit's head block sets data-parts-theme="dark" on <html> from
   21:30 to 04:30 or on the shopper's pick). The kit's warm near black family (its tokens.css): the page #121110,
   cards, bands and the footer a step up, rules #3d3833, text near white. Their black strip and #333 bar stay as
   they are, the dark button turns near white with dark words, 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-accent: #E05200;
  --site-accent-strong: #B84300;
  --site-accent-fg: #FFFFFF;
  --site-field-bg: #121110;
  --site-field-line: #3D3833;
  --site-button-bg: #F6F3EF;
  --site-button-fg: #121110;
  --site-button-hover-bg: #E05200;
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #2A2622;
  --site-disabled-fg: #DDD7CF;
  --site-heading: #F6F3EF;
  --site-rule: #3D3833;
  --site-tile-bg: #1C1A18;
  --site-tile-line: #3D3833;
  --site-photo-bg: #FFFFFF;
  --site-hero-bg: #111111;

  --site-strip-bg: #000000;
  --site-bar-bg: #333333;
  --site-bar-fg: #F2F2F2;
  --site-bar-soft: #D9D9D9;
  --site-bar-strong: #FFFFFF;
  --site-bar-field-line: #8F8F8F;
  --site-bar-rule: #555555;
  --site-bar-line: #3D3833;
  --site-foot-bg: #1C1A18;
  --site-foot-line: #3D3833;
  --site-finder-bg: #24201C;

  /* the vehicle band in the finder's colours, as in the light */
  --parts-band-bg: #24201C;
  --parts-band-ink: #F6F3EF;
  --parts-band-edge: #3D3833;
  /* the orange as text and rings (an error line, the tick, a focus ring) lifted to read on the dark; fills keep #E05200 */
  --cs-accent: #FF7A33;
}
/* the checkout's Pay is white words on --kc-accent: the orange, since the button colour is near white in the dark */
:root[data-parts-theme="dark"] main.kc-page { --kc-accent: var(--site-accent); }

@font-face { font-family: Raleway; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/raleway-medium.woff2") format("woff2"); }

@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; }
input { font: inherit; color: inherit; }
[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 button (Add to Cart, Check out, the home's cards): their dark #333 one ---------- */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; 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: 500 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-accent); outline-offset: 2px; }

/* ---------- header: the black strip, the #333 bar with the Orbital Parts mark where their logo sits ---------- */
.cl-hd { position: relative; z-index: 50; }
.cl-hd__strip { background: var(--site-strip-bg); color: var(--site-bar-fg); padding: 12px 16px; font: 500 14px/20px var(--site-font-body); text-align: center; }
.cl-hd__strip a:hover { text-decoration: underline; }
.cl-hd__bar { background: var(--site-bar-bg); color: var(--site-bar-fg); border-bottom: 1px solid var(--site-bar-line); }
.cl-hd__in { max-width: var(--site-max); margin: 0 auto; padding: 0 var(--site-gutter); min-height: 104px; display: flex; align-items: flex-start; }
.cl-hd__logo { flex: none; height: 75px; margin-top: 14px; display: flex; align-items: center; justify-content: center; }
.cl-hd__logo img { width: 200px; height: auto; }
.cl-hd__toggle { display: none; }
.cl-hd__nav { flex: 1; min-width: 0; padding: 12px 32px 0; }
.cl-hd__list { display: flex; flex-wrap: wrap; gap: 0 28px; }
.cl-hd__link { display: flex; align-items: center; min-height: 40px; font: 500 16px/24px var(--site-font-body); color: var(--site-bar-fg); }
.cl-hd__link:hover, .cl-hd__link.is-current { color: var(--site-accent); }
.cl-hd__tools { flex: none; align-self: center; display: flex; align-items: center; gap: 12px; }
.cl-hd__search { display: flex; align-items: center; width: 220px; height: 36px; border: 1px solid var(--site-bar-field-line); border-radius: var(--site-radius); }
.cl-hd__q { flex: 1; min-width: 0; height: 100%; padding: 0 10px; background: transparent; border: 0; color: var(--site-bar-fg); font: 500 15px/1 var(--site-font-body); outline: none; }
.cl-hd__q::placeholder { color: var(--site-bar-soft); opacity: 1; }
.cl-hd__q:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 1px; }
.cl-hd__go { flex: none; display: flex; align-items: center; justify-content: center; width: 36px; height: 100%; color: var(--site-bar-fg); }
.cl-hd__go:hover, .cl-hd__cart:hover { color: var(--site-accent); }
.cl-hd__cart { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--site-bar-fg); }
.cl-hd__cart-icon { overflow: visible; }
.cl-hd__cart-count { position: absolute; top: 0; right: -4px; min-width: 18px; padding: 0 4px; font: 500 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 pale grey-blue band, four columns, the copyright row ---------- */
.cl-ft { background: var(--site-foot-bg); color: var(--site-fg); }
.cl-ft__main { max-width: var(--site-max); margin: 0 auto; padding: 64px var(--site-gutter) 32px; display: grid; grid-template-columns: repeat(4, 248px); justify-content: space-between; min-height: 453px; }
.cl-ft__col--service { margin-left: 32px; }
.cl-ft__ask { margin-top: 16px; font: 500 25px/37.5px var(--site-font-heading); }
.cl-ft__mail { margin-top: 32px; }
.cl-ft__mail a { text-decoration: underline; text-underline-offset: 2px; }
.cl-ft__h { display: block; width: 100%; margin-top: 16px; text-align: left; font: 500 25px/30px var(--site-font-heading); letter-spacing: 1.25px; color: var(--site-heading); }
.cl-ft__h--wrap { max-width: 150px; }
.cl-ft__h--wide { letter-spacing: 2.5px; }
.cl-ft__fold { display: none; }
.cl-ft__links { margin-top: 24px; }
.cl-ft__links li + li { margin-top: 8px; }
.cl-ft__links a:hover, .cl-ft__mail a:hover, .cl-ft__bottom a:hover { color: var(--site-accent); }
.cl-ft__search { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cl-ft__search input { width: 100%; height: 44px; padding: 0 12px; background: var(--site-field-bg); border: 2px solid var(--site-field-line); border-radius: var(--site-radius); font: 500 16px/1 var(--site-font-body); }
.cl-ft__search input:focus-visible { outline: 2px solid var(--site-accent); outline-offset: 0; }
.cl-ft__search .cl-btn { min-width: 139px; margin-left: 8px; }
.cl-ft__bottom { border-top: 1px solid var(--site-foot-line); }
.cl-ft__bottom-in { max-width: var(--site-max); margin: 0 auto; padding: 24px var(--site-gutter); display: flex; justify-content: space-between; gap: 8px 24px; font: 500 16px/24px var(--site-font-body); }
.cl-ft__policies a + a::before { content: "|"; display: inline-block; margin: 0 20px; }

/* ---------- phones: their phone header and the folded footer ---------- */
@media (max-width: 979.98px) {
  .cl-hd__strip { padding: 12px 16px; }
  .cl-hd__in { position: relative; flex-wrap: wrap; align-items: center; min-height: 156px; padding: 12px 16px 0; }
  .cl-hd__logo { order: 1; flex: 1 1 100%; height: 76px; margin: 0; }
  .cl-hd__logo img { width: 180px; }
  .cl-hd__toggle { order: 2; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin: 8px 0 0 -12px; color: var(--site-bar-fg); }
  .cl-hd__tools { order: 3; flex: 1; justify-content: flex-end; gap: 4px; margin-top: 8px; }
  .cl-hd__search { flex: 1; width: auto; max-width: 240px; height: 40px; }
  .cl-hd__q { font-size: 16px; }
  .cl-hd__go { width: 40px; }
  .cl-hd__nav { order: 4; flex: 1 1 100%; padding: 0; margin: 8px -16px 0; background: var(--site-bar-bg); border-top: 1px solid var(--site-bar-rule); }
  .cl-js .cl-hd__nav:not(.is-open) { display: none; }
  .cl-hd__list { flex-direction: column; gap: 0; }
  .cl-hd__link { min-height: 48px; padding: 0 16px; border-bottom: 1px solid var(--site-bar-rule); }

  .cl-ft__main { grid-template-columns: 1fr; padding: 16px 24px 32px; min-height: 0; }
  .cl-ft__col { margin-top: 24px; }
  .cl-ft__col--name { display: none; }
  .cl-ft__col--service { margin-left: 0; }
  .cl-ft__h { display: flex; align-items: center; justify-content: space-between; min-height: 52px; margin: 0; max-width: none; font-size: 20px; line-height: 20px; }
  .cl-ft__fold { display: inline-flex; }
  .cl-js .cl-ft__col:not(.is-open) .cl-ft__links { display: none; }
  .cl-ft__col.is-open .cl-ft__fold { transform: rotate(180deg); }
  .cl-ft__links { margin: 8px 0 16px; }
  .cl-ft__links a { display: inline-flex; align-items: center; min-height: 40px; }
  .cl-ft__links li + li { margin-top: 0; }
  .cl-ft__h--static { min-height: 0; margin-top: 16px; font-size: 18px; }
  .cl-ft__search { margin-top: 12px; }
  .cl-ft__search .cl-btn { margin-left: 8px; }
  .cl-ft__bottom-in { flex-direction: column; padding: 24px; }
}

/* ---------- the 404 (templates/404.html) ---------- */
.cl-404 { max-width: var(--site-max); margin: 0 auto; padding: 80px var(--site-gutter) 96px; text-align: center; }
.cl-404__h { font: 500 40px/60px var(--site-font-heading); color: var(--site-fg); }
.cl-404__p { margin-top: 16px; font: 500 18px/28px var(--site-font-body); }
.cl-404__home { margin-top: 32px; }

/* the footer's trademark line: "owner" links the client's site in the line's own colour, underlined, whatever the theme gives footer links (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 (parts/theme_switch.html) before the cart: the bar's ink, the orange on hover. Outside any
   layer, since the kit's head block sets its colour unlayered (color: inherit) and a layered rule would lose to it. */
.cl-hd__tools .parts-theme-switch { flex: none; color: var(--site-bar-fg); }
.cl-hd__tools .parts-theme-switch:hover { color: var(--site-accent); }
