/* cl-site.css: the site's tokens, reset and chrome on every page, in Mickey Thompson's look: their near-black
   header and footer, the yellow and red of their marks, and their condensed capitals (Knockout, which cannot
   ship, so Barlow Condensed stands in: static/fonts/FONTS.md).
   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 3 --parts-* tokens alone: no rule here names a kit class.
   Two layouts: from 980px the desktop header and footer measured in a 1440 window; below 980px their phone
   layout, measured in a 390 stage. */
@layer base, kit, site;

@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-condensed-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600-latin.woff2") format("woff2"); }

:root {
  /* colours: the shop pages' white and black, the chrome's near-black, their yellow and red */
  --site-bg: #FFFFFF;
  --site-fg: #000000;
  --site-muted: #737373;
  --site-line: #D1D1D1;
  --site-band: #F0F0F0;
  --site-card: #F5F5F5;
  --site-dark: #141414;
  --site-dark-fg: #FFFFFF;
  --site-yellow: #EBC600;
  --site-yellow-line: #E7C61B;
  --site-red: #ED1C24;
  --site-red-strong: #C8141B;
  --site-drawer: #BABABA;
  --site-drawer-fg: #000000;           /* the drawer's words, close and field rule */
  --site-drawer-line: rgba(0, 0, 0, 0.14);
  --site-accent: var(--site-red);
  --site-accent-fg: #FFFFFF;
  --site-field-bg: #FFFFFF;
  --site-button-bg: var(--site-red);
  --site-button-fg: #FFFFFF;
  --site-button-hover-bg: var(--site-red-strong);
  --site-button-hover-fg: #FFFFFF;
  --site-disabled-bg: #E4E4E4;
  --site-disabled-fg: #6B6B6B;

  /* fonts: Knockout 50 on theirs, Barlow Condensed here */
  --site-font-body: "Barlow Condensed", "Helvetica Neue", Arial, Helvetica, sans-serif;
  --site-font-heading: var(--site-font-body);
  --site-font-button: var(--site-font-body);

  /* shape and layout */
  --site-radius: 0;
  --site-max: 1320px;
  --site-gutter: 80px;
}
/* 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-red-strong);
  --parts-font: var(--site-font-body);
}
@media (max-width: 979.98px) {
  :root { --site-gutter: 40px; }
}
/* the dark theme (kit 0.10.0: the kit's head block sets data-parts-theme="dark" on <html> at night or on the
   shopper's pick): the kit's warm near black for the white page, near-white text, dark grey rules, cards a step up,
   the red lifted a touch so it reads as text on the dark. The header, the footer and the home are near-black by
   design and keep their values; the grey drawer turns a dark panel. */
: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-red: #F02C2C;
  --site-drawer: #1C1A18;
  --site-drawer-fg: #F6F3EF;
  --site-drawer-line: #3D3833;
  --site-field-bg: #1C1A18;
  --site-disabled-bg: #3D3833;
  --site-disabled-fg: #EBE6E0;
  --parts-band-bg: #24201C;
  --parts-band-ink: #FFFFFF;
  --parts-band-edge: #36312C;
}

@layer base {

*, *::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 primary button: their red ---------- */
.cl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 43px; 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: 600 16px/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); }
.cl-btn:focus-visible { outline: 2px solid var(--site-yellow); outline-offset: 2px; }

/* ---------- header: the Orbital Parts mark, the top row (search, cart), the headings, the slash and the menu button ---------- */
.cl-hd { position: relative; z-index: 50; background: var(--site-dark); color: var(--site-dark-fg); }
.cl-hd--over { position: absolute; top: 0; left: 0; right: 0; background: linear-gradient(rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 90%); }
.cl-hd__in {
  max-width: 1440px; height: 180px; margin: 0 auto; padding: 40px var(--site-gutter) 0 95px;
  display: grid; grid-template-columns: 270px 1fr 24px; grid-template-rows: 25px 15px 50px 10px; column-gap: 43px;
}
.cl-hd__logo { grid-column: 1; grid-row: 1 / 5; align-self: center; }
.cl-hd__logo img { width: 270px; height: auto; }   /* the M/T logo's 54px height */
.cl-hd__top { grid-column: 2 / 4; grid-row: 1; justify-self: end; margin-right: 15px; display: flex; align-items: center; gap: 13px; }
.cl-hd__search { display: flex; align-items: center; height: 25px; border-bottom: 1px solid var(--site-dark-fg); }
.cl-hd__search input { width: 170px; height: 24px; padding: 0 4px; border: 0; background: none; color: var(--site-dark-fg); font: 500 13px/1 var(--site-font-body); letter-spacing: 0.48px; text-transform: uppercase; }
.cl-hd__search input::placeholder { color: var(--site-dark-fg); opacity: 1; }
.cl-hd__search input:focus { outline: none; }
.cl-hd__search button { display: grid; place-items: center; width: 24px; height: 24px; color: var(--site-dark-fg); }
.cl-hd__search:focus-within { border-color: var(--site-yellow); }
.cl-hd__cart { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px; background: var(--site-yellow-line); color: #000; font: 600 12px/1 var(--site-font-body); letter-spacing: 0.48px; text-transform: uppercase; }
.cl-hd__cart:hover { background: var(--site-dark-fg); }
.cl-hd__cart-icon { overflow: visible; }
.cl-hd__cart-count { min-width: 16px; font: 600 12px/16px var(--site-font-body); text-align: center; background: #000; color: var(--site-yellow); }
.cl-hd__cart-count:empty { display: none; }
.cl-hd__nav { grid-column: 2; grid-row: 3; justify-self: end; }
.cl-hd__list { display: flex; gap: 13px; }
.cl-hd__link { display: block; padding: 0 11px; font: 600 16.2px/50px var(--site-font-heading); letter-spacing: 0.486px; text-transform: uppercase; color: var(--site-dark-fg); }
.cl-hd__link:hover, .cl-hd__link.is-current { color: var(--site-yellow); }
.cl-hd__toggle { grid-column: 3; grid-row: 3; align-self: center; position: relative; display: grid; align-content: space-between; width: 24px; height: 18px; margin-top: 4px; }
.cl-hd__toggle span { display: block; height: 2px; background: var(--site-dark-fg); }
.cl-hd__toggle::before { content: ""; position: absolute; left: -32px; top: -24px; width: 1px; height: 67px; background: rgba(255, 255, 255, 0.5); transform: rotate(42deg); }
.cl-hd__toggle::after { content: ""; position: absolute; inset: -11px -8px; }

/* ---------- the drawer: their grey side panel, opaque, at every width ---------- */
.cl-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: 320px; max-width: 100%; overflow-y: auto;
  padding: 40px 40px 48px; background: var(--site-drawer); color: var(--site-drawer-fg);
  transform: translateX(100%); visibility: hidden; transition: transform 0.25s ease, visibility 0s linear 0.25s;
}
.cl-drawer.is-open { transform: none; visibility: visible; transition: transform 0.25s ease; box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4); }
.cl-drawer__close { position: absolute; top: 30px; right: 25px; display: grid; place-items: center; width: 40px; height: 40px; color: var(--site-drawer-fg); }
.cl-drawer__logo { display: block; width: 160px; margin-bottom: 30px; }
.cl-drawer__logo img { width: 160px; height: auto; }
.cl-drawer__mark--dark, :root[data-parts-theme="dark"] .cl-drawer__mark--light { display: none; }
:root[data-parts-theme="dark"] .cl-drawer__mark--dark { display: block; }
.cl-drawer__search { margin-bottom: 24px; }
.cl-drawer__search input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--site-drawer-fg); background: var(--site-field-bg); color: var(--site-fg); font: 500 16px/1 var(--site-font-body); border-radius: var(--site-radius); }
.cl-drawer__h { margin-bottom: 6px; font: 600 12px/12px var(--site-font-heading); letter-spacing: 0.84px; text-transform: uppercase; color: var(--site-drawer-fg); }
.cl-drawer__list { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--site-drawer-line); }
.cl-drawer__list a { display: block; padding: 7px 0; font: 500 14px/25.2px var(--site-font-body); text-transform: uppercase; color: var(--site-drawer-fg); overflow-wrap: anywhere; }
.cl-drawer__list a:hover { text-decoration: underline; }

/* ---------- footer: near-black, our email where their newsletter sits, the yellow search and the line ---------- */
.cl-ft { background: var(--site-dark); color: var(--site-dark-fg); }
.cl-ft__in {
  max-width: 1440px; margin: 0 auto; padding: 80px var(--site-gutter) 74px;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px;
  grid-template-areas: "mail search" "links small";
  align-items: start;
}
.cl-ft__mail { grid-area: mail; display: inline-flex; justify-self: start; height: 43px; margin-bottom: 30px; }
.cl-ft__mail-box { display: flex; align-items: center; width: 250px; padding: 0 10px; border: 1px solid var(--site-red); font: 500 16px/1 var(--site-font-body); color: var(--site-dark-fg); }
.cl-ft__mail-btn { display: flex; align-items: center; justify-content: center; width: 125px; background: var(--site-red); border: 1px solid var(--site-red); font: 600 14px/1 var(--site-font-button); text-transform: uppercase; color: var(--site-button-fg); }
.cl-ft__mail:hover .cl-ft__mail-btn { background: var(--site-red-strong); border-color: var(--site-red-strong); }
.cl-ft__search { grid-area: search; justify-self: end; width: 384px; }
.cl-ft__search input { width: 100%; height: 43px; padding: 0 10px; border: 1px solid var(--site-yellow-line); background: none; color: var(--site-dark-fg); font: 600 18px/1 var(--site-font-body); border-radius: var(--site-radius); }
.cl-ft__search input::placeholder { color: var(--site-yellow); opacity: 1; }
.cl-ft__search input:focus { outline: 1px solid var(--site-yellow-line); }
.cl-ft__links { grid-area: links; font: 500 14px/26px var(--site-font-body); }
.cl-ft__links a:hover { color: var(--site-yellow); }
.cl-ft__small { grid-area: small; justify-self: end; max-width: 625px; text-align: right; font: 600 14.4px/1.2 var(--site-font-body); text-transform: uppercase; color: var(--site-dark-fg); }
.cl-ft__small a[href^="mailto:"] { text-transform: none; }

/* ---------- phones: the mark centred, the cart and the menu button; the footer stacked ---------- */
@media (max-width: 979.98px) {
  .cl-hd__in { height: 100px; padding: 0 43px; grid-template-columns: 24px 1fr 24px; grid-template-rows: 100px; column-gap: 0; }
  .cl-hd__logo { grid-column: 2; grid-row: 1; justify-self: center; align-self: start; margin-top: 38px; }
  .cl-hd__logo img { width: 170px; }   /* 34px tall, on the cart's and the menu button's line and clear of both at 390 */
  .cl-hd__top { grid-column: 1; grid-row: 1; align-self: start; justify-self: start; margin: 37px 0 0; }
  .cl-hd__search, .cl-hd__nav, .cl-hd__cart-label, .cl-hd__toggle::before { display: none; }
  .cl-hd__cart { position: relative; height: 40px; width: 40px; margin-left: -8px; padding: 0; justify-content: center; background: none; color: var(--site-dark-fg); }
  .cl-hd__cart .fm-icon { width: 22px; height: 18px; }
  .cl-hd__cart-count { position: absolute; top: 2px; right: 0; background: var(--site-yellow); color: #000; }
  .cl-hd__toggle { grid-column: 3; grid-row: 1; align-self: start; margin-top: 46px; }

  .cl-ft__in { grid-template-columns: 1fr; grid-template-areas: "mail" "search" "links" "small"; padding: 40px var(--site-gutter); }
  .cl-ft__mail { width: 100%; margin-bottom: 70px; }
  .cl-ft__mail-box { flex: 1; min-width: 0; width: auto; font-size: 16px; }
  .cl-ft__mail-btn { width: 93px; flex: none; }
  .cl-ft__search { width: 100%; margin-bottom: 30px; }
  .cl-ft__search input { font-size: 18px; }
  .cl-ft__links { margin-bottom: 10px; }
  .cl-ft__links a { display: inline-block; min-height: 26px; }
  .cl-ft__small { font-size: 14px; }
}

/* the kit's theme switch (shown 21:30 to 04:30), before the cart in the top row: the header's white ink, sized to
   the 25px row on desktop; on a phone it sits left of the cart in the bar's first column */
.cl-hd .parts-theme-switch { margin: -8px 0; }
.cl-hd .parts-theme-switch:hover { color: var(--site-yellow); }
@media (max-width: 979.98px) {
  .cl-hd .parts-theme-switch { margin: 0 0 0 -8px; }
  :root[data-parts-night] .cl-hd__top { gap: 0; }
}

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

}

@layer site {
/* ---------- the 404 (templates/404.html) ---------- */
.cl-404-page { background: var(--site-dark); }
.cl-404 { max-width: 1440px; margin: 0 auto; padding: 120px var(--site-gutter) 140px; color: var(--site-dark-fg); text-align: center; }
.cl-404__h { font: 600 72px/1 var(--site-font-heading); text-transform: uppercase; color: var(--site-yellow); }
.cl-404__p { margin: 20px 0 32px; font: 500 20px/1.4 var(--site-font-body); }
@media (max-width: 979.98px) {
  .cl-404 { padding: 64px var(--site-gutter) 80px; }
  .cl-404__h { font-size: 44px; }
}
}
