/*
 * site.css — my.iidiesel.com v2.0
 * Design source: ChatGPT prototype concept 02 (styles.css + public.css, read 2026-11-17).
 * Order: tokens · base · header · breadcrumb · buttons · home sections · footer · responsive.
 *
 * THEME. Colours are tokens. Light is the default; dark applies when the visitor's system asks for it or when
 * theme.js sets <html data-theme="dark">. data-theme="light" overrides a dark system. The dark values are
 * written twice on purpose (media query + attribute): plain CSS has no way to share them.
 * The site header, hero and dealer band are black in both themes (--chrome-*), as in the prototype.
 */

/* ── Tokens ─────────────────────────────────────────────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --red: #d90d20;
  --red-dark: #b20919;
  --red-button: #d90d20;
  --ink: #191b1e;
  --muted: #747981;
  --line: #e1e3e6;
  --bg: #f3f4f5;
  --surface: #fff;
  --soft: #fafafa;
  --green: #22724a;
  --shadow: 0 16px 60px #0002;
  --focus: #e84b56;

  /* always-dark chrome */
  --chrome-bg: #111214;
  --chrome-panel: #161719;
  --chrome-line: #2b2d30;
  --chrome-ink: #fff;
  --chrome-muted: #b6b8be;
  --chrome-accent: #ef8994;

  --font-body: 'Barlow', Arial, sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --page-max: 1370px;
  --gutter: 36px;
  --radius: 5px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --red: #f25363;
    --red-dark: #b20919;
    --red-button: #cf0b20;
    --ink: #eceef1;
    --muted: #a0a6af;
    --line: #34373c;
    --bg: #1b1d21;
    --surface: #24272c;
    --soft: #292c32;
    --green: #7bd6a0;
    --shadow: 0 16px 60px #0006;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --red: #f25363;
  --red-dark: #b20919;
  --red-button: #cf0b20;
  --ink: #eceef1;
  --muted: #a0a6af;
  --line: #34373c;
  --bg: #1b1d21;
  --surface: #24272c;
  --soft: #292c32;
  --green: #7bd6a0;
  --shadow: 0 16px 60px #0006;
}

/* ── Base ───────────────────────────────────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 var(--font-body);
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); }
h1 { font-size: 42px; font-weight: 700; letter-spacing: -.6px; line-height: 1.04; }
h2 { font-size: 35px; font-weight: 600; line-height: 1.05; }
h3 { font-size: 28px; font-weight: 600; line-height: 1.1; }

a { color: inherit; text-decoration: none; transition: background .18s, color .18s, transform .18s; }
button { font: inherit; border: 0; cursor: pointer; }
img { max-width: 100%; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip { position: fixed; left: 10px; top: -100px; z-index: 100; background: var(--surface); color: var(--ink); padding: 15px; }
.skip:focus { top: 10px; }

.eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
}

main {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 var(--gutter) 45px;
  min-height: calc(100vh - 300px);
}
main:focus { outline: 0; }

/* ── Site header (always dark) ──────────────────────────────────────────────────────────────────────────── */
.site-header { background: var(--chrome-bg); color: var(--chrome-ink); }

.site-utility {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px max(32px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid var(--chrome-line);
  font-size: 9px;
  letter-spacing: 1.4px;
  color: var(--chrome-muted);
}
.site-utility a { letter-spacing: .4px; }
.site-utility a:hover { color: var(--chrome-ink); }
.site-utility-links { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; }
.site-utility form { display: inline; margin: 0; }
.site-utility button { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: .4px; cursor: pointer; }
.site-utility button:hover { color: var(--chrome-ink); }
.site-account { color: var(--chrome-ink); letter-spacing: .4px; }
.site-cart { color: var(--chrome-ink); white-space: nowrap; }
/* The mini cart's panel (assets/js/minicart.js). It hangs under the header's cart link and uses the page's
   own surface colours, so it follows the light and dark theme while the header stays black. */
.mini-cart { position: relative; display: inline-block; }
.mini-cart-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: 360px; max-width: calc(100vw - 24px); padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); font-family: var(--font-body); font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; text-align: left; white-space: normal; }
.mini-cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.mini-cart-panel .text-link, .mini-cart-panel a.text-link:hover { color: var(--red); letter-spacing: 0; }
.mini-cart-lines { max-height: 320px; margin: 0 0 10px; padding: 0; overflow-y: auto; list-style: none; }
.mini-cart-lines li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mini-cart-lines img, .mini-cart-nopic { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.mini-cart-extra .mini-cart-nopic { visibility: hidden; }
.mini-cart-body { flex: 1 1 auto; min-width: 0; }
.mini-cart-body strong { display: block; font-size: 12px; overflow-wrap: anywhere; }
.mini-cart-body span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.mini-cart-body small { color: var(--muted); }
.mini-cart-extra .mini-cart-body strong { font-weight: 600; color: var(--muted); }
.mini-cart-amount { flex: 0 0 auto; font-weight: 600; white-space: nowrap; }
.mini-cart-totals { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0 0 14px; }
.mini-cart-totals dt { color: var(--muted); }
.mini-cart-totals dd { margin: 0; text-align: right; }
.mini-cart-totals dt:last-of-type, .mini-cart-totals dd:last-of-type { font-size: 14px; font-weight: 700; color: var(--ink); }
.mini-cart-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mini-cart-actions .btn { flex: 1 1 auto; height: 36px; padding: 0 12px; letter-spacing: 0; }
.mini-cart-actions .btn:not(.red) { color: var(--ink); }
.mini-cart-note { margin: 8px 0 0; color: var(--muted); }
/* The panel sits inside the black utility bar, whose links turn white on hover — not here. */
.mini-cart-panel a.btn:not(.red):hover { color: var(--ink); }
.mini-cart-panel a.btn.red:hover { color: #fff; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 35px;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 26px var(--gutter);
  border-bottom: 2px solid #d90d20;
}
.site-brand img { display: block; width: 230px; height: auto; }

.site-nav nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.site-nav nav a {
  padding: 13px 0;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 600;
  color: #d9dadd;
}
.site-nav nav a:hover, .site-nav nav a[aria-current] { color: var(--chrome-ink); border-bottom-color: #d90d20; }

.site-search { position: relative; display: flex; }
.site-suggest {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  width: max(100%, 380px);
  max-width: calc(100vw - 2 * var(--gutter));
  margin: 0;
  padding: 5px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px #00000038;
  color: var(--ink);
}
.site-suggest a { display: flex; align-items: baseline; gap: 10px; padding: 9px 10px; border-radius: 3px; font-size: 12px; }
.site-suggest strong { flex-shrink: 0; font-weight: 700; }
.site-suggest span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.site-suggest li[aria-selected="true"] a, .site-suggest a:hover { background: var(--bg); color: var(--red); }
.site-search input {
  width: 190px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--chrome-line);
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: #202124;
  color: var(--chrome-ink);
  font: inherit;
  font-size: 12px;
}
.site-search input::placeholder { color: var(--chrome-muted); }
.site-search input:focus { outline: 2px solid #d90d20; outline-offset: -2px; }
.site-search button {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: #d90d20;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.site-search button:hover { background: #b20919; }

/* The search box on /Search itself */
.search-form { display: flex; gap: 10px; max-width: 560px; margin-bottom: 20px; }
.search-form input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.search-form input:focus { outline: 2px solid var(--red); outline-offset: -2px; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: transparent;
  color: #d9dadd;
  font-size: 22px;
  line-height: 1;
}
.theme-toggle:hover { background: #202124; color: var(--chrome-ink); }

/* ── Breadcrumb (Breadcrumbs::render) ───────────────────────────────────────────────────────────────────── */
.breadcrumb { padding-top: 28px; margin-bottom: 23px; font-size: 11px; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: '/'; margin-right: 9px; color: var(--line); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb [aria-current] { color: var(--ink); }

/* ── Buttons and links ──────────────────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 19px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.btn:hover { background: var(--soft); border-color: #9c9fa4; }
.btn.red { background: var(--red-button); border-color: var(--red-button); color: #fff; }
.btn.red:hover { background: var(--red-dark); border-color: var(--red-dark); }

.text-link { display: inline-flex; align-items: center; gap: 9px; color: var(--red); font-size: 12px; font-weight: 700; }
.text-link:hover { text-decoration: underline; }

.hero-link { font-size: 11px; font-weight: 600; line-height: 1.6; color: #ddd; }
.hero-link:hover { color: #fff; text-decoration: underline; }

/* ── Home: hero (always dark) ───────────────────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 405px;
  margin-top: 30px;
  background: var(--chrome-panel);
  color: var(--chrome-ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-copy { padding: 45px; }
.hero .eyebrow { color: var(--chrome-accent); }
.hero h1 { margin-top: 21px; font-size: 92px; text-transform: uppercase; letter-spacing: -1px; line-height: .9; }
.hero h1 span { color: #f4273e; }
.hero p { max-width: 360px; margin: 22px 0; font-size: 14px; line-height: 1.7; color: #b9bdc3; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: #e8e9eb;
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-art img { width: 94%; height: 380px; padding: 25px; object-fit: contain; mix-blend-mode: multiply; transform: rotate(-6deg); }
.hero-watermark {
  position: absolute;
  top: 27px;
  right: 24px;
  z-index: -1;
  font-family: var(--font-display);
  font-size: 104px;
  font-weight: 800;
  line-height: .85;
  letter-spacing: -2px;
  text-align: right;
  color: #cdd0d4;
}
.hero-tag {
  position: absolute;
  right: 25px;
  bottom: 23px;
  padding-left: 9px;
  border-left: 3px solid #d90d20;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #35383d;
}

/* ── Home: proof strip ──────────────────────────────────────────────────────────────────────────────────── */
.proof {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 23px 15px;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.proof li { display: flex; align-items: center; gap: 10px; font-size: 10px; font-weight: 600; letter-spacing: 1px; }
.proof li::before { content: ''; width: 7px; height: 7px; background: var(--red); flex-shrink: 0; }

/* ── Home: sections ─────────────────────────────────────────────────────────────────────────────────────── */
.section { margin: 45px 0; scroll-margin-top: 20px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 15px; margin-bottom: 22px; }

.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.category {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: var(--radius);
}
.category-index { font-size: 8px; font-weight: 600; letter-spacing: 1px; color: var(--muted); }
.category h3 { margin-top: 14px; }
.category h3 a:hover { color: var(--red); }
.home-strip .section-head .text-link { white-space: nowrap; }
.home-strip h2 { font-size: 30px; }
.category p { margin-top: 10px; font-size: 12px; line-height: 1.65; color: var(--muted); }

.platform-feature {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 65px;
  padding: 35px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.platform-feature h2 { font-size: 40px; }
.platform-feature p { max-width: 450px; margin-top: 16px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.platform-list { display: grid; gap: 12px; align-content: center; margin: 0; padding: 25px; list-style: none; background: var(--bg); border-radius: var(--radius); }
.platform-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 2px solid var(--red);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}
.platform-list li a { display: flex; flex: 1; justify-content: space-between; align-items: baseline; gap: 12px; }
.platform-list li a:hover { color: var(--red); }
.platform-list small { font-family: var(--font-body); font-size: 11px; font-weight: 400; color: var(--muted); }

/* ── Home: dealer band (always dark) ────────────────────────────────────────────────────────────────────── */
.dealer-band {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 35px;
  margin-top: 45px;
  padding: 35px 40px;
  background: var(--chrome-panel);
  color: var(--chrome-ink);
  border-radius: var(--radius);
  scroll-margin-top: 20px;
}
.dealer-band .eyebrow { color: var(--chrome-accent); font-size: 9px; }
.dealer-band h2 { font-size: 40px; }
.dealer-band p { max-width: 570px; margin-top: 16px; font-size: 12px; line-height: 1.8; color: #b9bdc3; }
.dealer-band-actions { display: grid; justify-items: start; gap: 17px; }

/* ── Lists: page head, category tiles, product tiles, pager (categories.php, product_card.php) ──────────── */
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-head p { margin-top: 9px; font-size: 13px; color: var(--muted); }

a.category-link { display: block; }
a.category-link:hover { border-color: #babec4; border-top-color: var(--red); box-shadow: 0 6px 24px #00000012; }
a.category-link:hover h3 { color: var(--red); }
.category-grid-compact { margin-bottom: 30px; }
.category-grid-compact .category { padding: 15px 18px; border-top-width: 2px; }
.category-grid-compact .category h3 { margin-top: 8px; font-size: 21px; }

.list-count { margin-bottom: 14px; font-size: 12px; color: var(--muted); }
.list-empty { padding: 30px 0; font-size: 14px; color: var(--muted); }

.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
/* Tiles · List switch and the list layout of the same cards (ListView, 261120/046) */
.list-count:has(.view-switch) { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.view-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; font-weight: 600; }
.view-switch a, .view-switch strong { padding: 6px 12px; }
.view-switch strong { background: var(--ink); color: var(--surface); }
.view-switch a:hover { color: var(--red); }
.products.products-list { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.products-list .product-card { display: flex; align-items: center; }
.products-list .product-photo { flex: none; width: 60px; height: 60px; padding: 5px; font-size: 8px; }
.products-list .product-body { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 100px 215px 190px; column-gap: 16px; align-items: center; padding: 5px 14px; }
.products-list .product-body > * { grid-column: 1; }
.products-list .product-body h3 { min-height: 0; font-size: 13px; }
.products-list .product-body .eyebrow { margin-bottom: 2px; }
.products-list .product-body .sku { margin-top: 2px; }
.products-list .card-stock { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
.products-list .product-bottom { grid-column: 3; grid-row: 1 / span 4; margin: 0; padding: 0; border: 0; }
.products-list .card-price { white-space: nowrap; }
.products-list .card-add { grid-column: 4; grid-row: 1 / span 4; margin: 0; }
@media (max-width: 820px) {
  .products-list .product-body { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .products-list .card-stock, .products-list .product-bottom, .products-list .card-add { grid-column: 1 / -1; grid-row: auto; }
  .products-list .product-bottom { justify-content: flex-start; gap: 16px; }
  .products-list .card-add { max-width: 260px; }
}
.product-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.product-card:hover { border-color: #babec4; box-shadow: 0 6px 24px #00000012; }
.product-photo { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; height: 188px; padding: 22px; background: #fff; }
.product-photo img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; transition: transform .25s; }
.product-photo:hover img { transform: scale(1.06); }
.product-body { padding: 18px; }
.product-body .eyebrow { margin-bottom: 6px; font-size: 8px; letter-spacing: 1.2px; color: var(--red); }
.product-body h3 { min-height: 39px; font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.product-body h3 a:hover { color: var(--red); }
.product-body .sku { margin: 8px 0 0; font-size: 10px; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.card-price { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.card-signin { font-size: 11px; font-weight: 600; color: var(--muted); }

.pager { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.pager ol { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pager li a, .pager li span { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font-size: 12px; font-weight: 600; }
.pager li a:hover { border-color: var(--red); color: var(--red); }
.pager li [aria-current] { background: var(--red-button); border-color: var(--red-button); color: #fff; }
.pager .pager-gap { color: var(--muted); }

/* ── Sign-in (signin.php) ───────────────────────────────────────────────────────────────────────────────── */
.signin-form { display: grid; gap: 16px; max-width: 380px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.signin-form label span { display: block; margin-bottom: 6px; font-size: 9px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.signin-form input[type="text"], .signin-form input[type="password"] {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.signin-form input:focus { outline: 2px solid var(--red); outline-offset: -2px; }
.signin-form .btn { height: 44px; }
.form-note { max-width: 380px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid #1f8a4c; border-left-width: 3px; border-radius: 4px; background: var(--surface); font-size: 13px; line-height: 1.6; color: var(--ink); }
.form-error { max-width: 380px; margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--red); border-left-width: 3px; border-radius: 4px; background: var(--surface); font-size: 13px; line-height: 1.6; color: var(--ink); }

/* ── Vehicle lookup (vehicle.php) ───────────────────────────────────────────────────────────────────────── */
.vehicle-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 14px;
  align-items: end;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.vehicle-form label span { display: block; margin-bottom: 6px; font-size: 9px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.vehicle-form select {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}
.vehicle-form select:focus { outline: 2px solid var(--red); outline-offset: -2px; }
.vehicle-form .btn { height: 42px; }
.vehicle-note { margin: 12px 0 26px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.vehicle-note .text-link { margin-left: 10px; }
/* "Shopping for" vehicle (vehicle_strip.php, product.php, vehicle.php) */
.vehicle-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 22px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 4px; font-size: 12px; }
.vehicle-strip a, .vehicle-strip button { color: var(--red); font-size: 12px; font-weight: 700; }
.vehicle-strip form { display: inline; margin: 0; }
.vehicle-strip button { padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
.vehicle-shop { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 22px; font-size: 12px; color: var(--muted); }
.fit-line { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.fit-line.yes { color: #1f8a4c; }
.fit-line a { color: var(--red); font-weight: 700; }
@media (max-width: 820px) {
  .vehicle-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vehicle-form .btn { grid-column: 1 / -1; }
}

@media (max-width: 1180px) {
  .products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head { align-items: start; }
}
@media (max-width: 560px) {
  .products { gap: 10px; }
  .product-photo { height: 150px; padding: 18px; }
  .product-body { padding: 13px; }
  .product-body h3 { font-size: 12px; min-height: 50px; }
  .product-bottom { flex-wrap: wrap; gap: 7px; }
  .category-grid-compact .category h3 { font-size: 18px; }
}

/* ── Product page (product.php) ─────────────────────────────────────────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 45px; }
.detail-art {
  position: relative;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);   /* without this a tall photo sizes the row and spills out of the box */
  place-items: center;
  height: 480px;
  padding: 45px;
  background: #fff;                 /* product photos are shot on white — same box in both themes */
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.detail-art img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.detail-art .tag { position: absolute; top: 18px; left: 18px; padding: 7px; border: 1px solid #e0e0e0; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: #666; }
.detail-noimage { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #8a8e95; }
.detail-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.detail-thumbs a { display: block; width: 72px; height: 72px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.detail-thumbs a:hover { border-color: var(--red); }
.detail-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.detail-info h1 { margin-top: 8px; font-size: 43px; line-height: 1.08; overflow-wrap: anywhere; }
.sku { margin: 16px 0; font-size: 11px; letter-spacing: .2px; color: var(--muted); overflow-wrap: anywhere; }
.product-intro { margin: 0 0 22px; font-size: 14px; line-height: 1.8; color: var(--muted); }

.price-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 20px; }
.price-box .eyebrow { flex-basis: 100%; margin-bottom: 0; font-size: 9px; }
.price { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1.1; }
.price-box small { font-size: 11px; color: var(--muted); }
.price-signin { font-family: var(--font-display); font-size: 26px; font-weight: 600; }

/* Signed-in dealer: stock, price ladder, core charge (product.php, DealerCatalogRepo) */
.dealer-box { margin-bottom: 20px; }
.stock-line { margin-bottom: 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.stock-line.in, .card-stock.in { color: #1f8a4c; }
.stock-line.out { padding: 8px 10px; border-left: 3px solid var(--red); background: var(--soft); color: var(--ink); }
.price-ladder { width: 100%; max-width: 460px; border-collapse: collapse; font-size: 12px; }
.price-ladder th, .price-ladder td { padding: 7px 10px; border: 1px solid var(--line); text-align: right; }
.price-ladder th { font-size: 9px; font-weight: 600; letter-spacing: 1px; color: var(--muted); background: var(--surface); }
.price-ladder td:last-child { font-weight: 700; }
.core-line { margin-top: 12px; font-size: 12px; }
.core-bom { max-width: 460px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 12px; }
.core-bom li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.core-bom .core-total { font-weight: 700; border-bottom: 0; }
.card-core { display: block; margin-top: 2px; font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.invoice-pastdue { color: var(--red); }
small.invoice-pastdue { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.card-stock { margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--muted); }
.card-price small { font-family: var(--font-body); font-size: 9px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }

.application-box { padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.application-box .eyebrow { font-size: 9px; }
.application-box strong { font-size: 13px; font-weight: 600; }
.application-box p { margin-top: 10px; font-size: 11px; color: var(--muted); }

.dealer-unlock { margin-top: 22px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 4px; }
.dealer-unlock .eyebrow { font-size: 9px; color: var(--red); }
.dealer-unlock h3 { font-size: 25px; }
.dealer-unlock p { margin: 10px 0 15px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.product-help { margin-top: 20px; font-size: 11px; }

.product-section h2 { padding-bottom: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line); font-size: 28px; }
.product-copy { max-width: 900px; font-size: 14px; line-height: 1.9; color: var(--muted); }
.product-copy p + p { margin-top: 10px; }
.spec-table { width: 100%; max-width: 900px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.spec-table th, .spec-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.spec-table th { width: 34%; font-weight: 600; color: var(--muted); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.fit-summary { margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.table-scroll { max-width: 100%; overflow-x: auto; }
.fit-table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.fit-table th, .fit-table td { padding: 10px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fit-table thead th { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); background: var(--soft); }
.fit-table tbody tr:last-child td { border-bottom: 0; }
.fit-table td:nth-child(3) { white-space: nowrap; }

.notice-page { max-width: 620px; padding: 30px 0 60px; }
.notice-page p { margin: 16px 0 24px; font-size: 14px; line-height: 1.8; color: var(--muted); }

@media (max-width: 1180px) {
  .product-detail { gap: 30px; }
  .detail-art { height: 430px; padding: 25px; }
  .detail-info h1 { font-size: 37px; }
}
@media (max-width: 820px) {
  .product-detail { grid-template-columns: 1fr 1fr; gap: 25px; }
  .detail-art { height: 350px; }
  .detail-info h1 { font-size: 32px; }
  .product-intro { font-size: 13px; }
  .dealer-unlock { padding: 18px; }
}
@media (max-width: 560px) {
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .detail-art { height: 330px; padding: 30px; }
  .detail-info h1 { font-size: 36px; }
  .spec-table th { width: 42%; }
}

/* ── Dealer account: dashboard, orders (Phase 2 step 5) ─────────────────────────────────────────────────── */
.account-nav { display: flex; flex-wrap: wrap; gap: 0 26px; margin: 0 0 26px; border-bottom: 1px solid var(--line); }
.account-nav a { margin-bottom: -1px; padding: 10px 0; border-bottom: 2px solid transparent; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.account-nav a:hover, .account-nav a[aria-current] { color: var(--ink); border-bottom-color: var(--red); }
.account-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 45px; }
.account-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); }
.account-card .eyebrow { font-size: 9px; }
.account-card p { font-size: 12px; line-height: 1.7; color: var(--muted); }
.account-card > .text-link, .account-card-links { margin-top: auto; padding-top: 6px; }
.account-card-value { font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1; }
.account-card-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.order-summary { max-width: 620px; }
.order-summary small { font-size: 11px; color: var(--muted); }
.order-table { width: 100%; min-width: 640px; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.order-table th, .order-table td { padding: 10px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.order-table thead th { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); background: var(--soft); }
.order-table tbody tr:last-child td { border-bottom: 0; }
.order-table .num { text-align: right; white-space: nowrap; }
.order-table td a { color: var(--red); font-weight: 700; }
.order-table td a:hover { text-decoration: underline; }
.order-table small { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.order-flag, .order-table small.order-flag, .order-short { color: var(--red); font-weight: 600; }
.line-badge { display: inline-block; margin-left: 6px; padding: 1px 7px; border: 1px solid var(--muted); border-radius: 3px; font-size: 10px; font-weight: 700; letter-spacing: .4px; color: var(--muted); }
.line-badge.available { border-color: var(--green); color: var(--green); }
.line-badge.backordered { border-color: var(--red); color: var(--red); }
td > .line-badge:first-child { margin-left: 0; }
.backorder-table td:nth-child(1), .backorder-table td:nth-child(2), .backorder-table td:nth-child(4), .backorder-table td:nth-child(9) { white-space: nowrap; }
.order-table .track-link { display: block; white-space: nowrap; }
.order-table span.track-link { color: var(--ink); }
.invoice-paid { color: var(--green); font-weight: 600; }
@media (max-width: 820px) {
  .account-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .account-cards { grid-template-columns: 1fr; gap: 12px; }
  .account-nav { gap: 0 20px; }
}

/* ── Cart (Phase 3) ─────────────────────────────────────────────────────────────────────────────────────── */
.order-table tfoot td { padding: 8px 16px; border-bottom: 0; font-size: 12px; color: var(--muted); }
.order-table tfoot tr:first-child td { border-top: 1px solid var(--line); }
.order-table tfoot .cart-total td { font-size: 15px; font-weight: 700; color: var(--ink); }
.order-table .cart-core td, .order-table .cart-freight td { background: var(--soft); color: var(--muted); }
.order-table .cart-core td:first-child { padding-left: 30px; }
.cart-flash { max-width: 760px; }
/* The search box above the order, shipment and invoice lists (261120/038). */
.list-search { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; max-width: 760px; margin: 0 0 16px; }
.list-search input[type="search"] { flex: 1 1 280px; max-width: 440px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.list-search input[type="search"]:focus { outline: 2px solid var(--red); outline-offset: -2px; }
/* Staff only (D-97): the mark on an unpublished tile and the staff box on a product page. */
.card-unpublished { margin: 8px 0 0; padding: 5px 8px; border-left: 3px solid #b7791f; background: var(--soft); font-size: 10px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.staff-box { margin: 0 0 22px; padding: 14px 16px; border: 1px dashed var(--line); border-left: 3px solid #2b6cb0; border-radius: 4px; background: var(--soft); }
.staff-box.unpublished { border-left-color: #b7791f; }
.staff-box .eyebrow { font-size: 9px; }
.staff-status { margin: 0 0 10px; font-size: 13px; line-height: 1.6; }
.staff-stock { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.staff-box .price-ladder { margin: 0; }
.card-add { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.card-add input[type="number"] { width: 62px; height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; text-align: right; }
.card-add input:focus { outline: 2px solid var(--red); outline-offset: -2px; }
.card-add .btn { flex: 1; height: 34px; padding: 0 10px; }
.cart-item { display: inline-flex; align-items: center; gap: 10px; }
.cart-item img { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 4px; }
.cart-close { border-left-color: var(--red); }
.cart-stock { font-size: 12px; white-space: nowrap; color: var(--green); }
.cart-stock .cart-short { color: #b7791f; }
.cart-stock small { display: block; font-size: 10px; color: var(--muted); white-space: normal; }
.cart-short-note { padding: 10px 12px; border-left: 3px solid #b7791f; background: var(--soft); color: var(--ink) !important; }
.cart-find [hidden] { display: none !important; }
.cart-find { max-width: 980px; margin: 0 0 30px; }
.cart-find h2 { margin-bottom: 10px; font-size: 24px; }
.cart-find input[type="search"] { flex: 1 1 260px; max-width: 420px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.cart-find input[type="search"]:focus { outline: 2px solid var(--red); outline-offset: -2px; }
.core-table th.num, .core-table td.num { white-space: nowrap; }
.card-saved { margin-top: 10px; }
.card-saved button, .saved-toggle button { padding: 0; border: 0; background: none; font: inherit; font-size: 12px; cursor: pointer; }
.saved-toggle { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 22px; font-size: 12px; }
.quick-form { display: grid; gap: 10px; max-width: 760px; margin: 0 0 14px; }
.quick-form label { font-size: 12px; font-weight: 600; color: var(--muted); }
.quick-form textarea { width: 100%; min-height: 220px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: 13px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; resize: vertical; }
.quick-form textarea:focus { outline: 2px solid var(--red); outline-offset: -2px; }
.quick-report { max-width: 900px; margin: 0 0 30px; }
.quick-report h2 { margin-bottom: 14px; font-size: 24px; }
.order-table .quick-miss td { background: var(--soft); color: var(--muted); }
.cart-new { margin: 0 0 22px; }
.cart-qty { white-space: nowrap; }
.cart-qty form { display: inline-flex; align-items: center; gap: 6px; }
.cart-qty input[type="number"], .cart-add input[type="number"] { width: 78px; height: 32px; padding: 0 8px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; text-align: right; }
.cart-qty input:focus, .cart-add input:focus { outline: 2px solid var(--red); outline-offset: -2px; }
.cart-qty .text-link, .cart-qty span { margin-left: 10px; }
.cart-qty span { font-size: 12px; color: var(--muted); }
.cart-add { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 22px; }
.cart-add label { display: inline-flex; align-items: center; gap: 8px; }
.cart-add label span { font-size: 9px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.cart-add input[type="number"] { height: 42px; }
.cart-add small { font-size: 11px; color: var(--muted); }
.cart-details { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 16px; max-width: 760px; margin: 0 0 30px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-details .wide { grid-column: 1 / -1; }
.cart-details label span { display: block; margin-bottom: 6px; font-size: 9px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.cart-details input[type="text"] { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; }
.cart-details input:focus { outline: 2px solid var(--red); outline-offset: -2px; }
.cart-details-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.cart-details-actions small { font-size: 11px; color: var(--muted); }
.cart-review { max-width: 760px; margin: 0 0 30px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 4px; }
.cart-review.done { border-left-color: var(--green); }
.cart-review .eyebrow { font-size: 9px; }
.cart-review h2 { margin: 8px 0 12px; font-size: 28px; }
.cart-review p { margin: 0 0 14px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.cart-review form { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.cart-review .form-error { max-width: none; }
.cart-submit { margin: 0 0 14px; }
.cart-shipping { max-width: 760px; margin: 0 0 26px; }
.cart-shipping h2 { margin-bottom: 10px; font-size: 24px; }
.cart-shipping .vehicle-note { margin: 0 0 12px; }
.cart-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin: 0 0 12px; font-size: 13px; }
.cart-inline label { display: inline-flex; align-items: center; gap: 7px; }
.cart-rates { min-width: 0; }
.cart-saved { max-width: 900px; margin: 0 0 30px; }
.cart-saved h2 { margin-bottom: 14px; font-size: 24px; }
@media (max-width: 560px) {
  .cart-details { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; }
}

/* ── Staff: the "viewing as" bar and the staff page (Phase 2 step 7) ────────────────────────────────────── */
.viewas-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 20px; padding: 9px max(32px, calc((100vw - 1280px) / 2)); background: #d90d20; color: #fff; font-size: 12px; }
.viewas-links { display: flex; align-items: center; gap: 18px; }
.viewas-bar a, .viewas-bar button { color: #fff; font-size: 12px; font-weight: 700; text-decoration: underline; }
.viewas-bar form { display: inline; margin: 0; }
.viewas-bar button { padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
.staff-out { margin: 30px 0 45px; }
.staff-out button { padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
.order-table form { margin: 0; }
.order-table .btn { height: 32px; padding: 0 14px; }
@media (max-width: 820px) {
  .viewas-bar { padding: 9px 22px; }
}
@media (max-width: 560px) {
  .viewas-bar { padding: 9px 16px; }
}

/* ── Footer ─────────────────────────────────────────────────────────────────────────────────────────────── */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 26px max(32px, calc((100vw - 1280px) / 2));
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.site-footer > div { display: flex; gap: 25px; }
.site-footer a:hover { color: var(--red); }
.site-footer b { margin: 0 7px; color: var(--red); }

/* ── Responsive ─────────────────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  :root { --gutter: 28px; }
  .site-nav { gap: 22px; }
  .site-nav nav { gap: 20px; }
  .site-brand img { width: 195px; }
  .site-search input { width: 150px; }
  .hero h1 { font-size: 78px; }
  .hero-copy { padding: 35px; }
  .hero-watermark { font-size: 85px; }
  .category-grid { gap: 13px; }
  .category { padding: 15px; }
  .category h3 { font-size: 25px; }
  .platform-feature { gap: 30px; }
}

@media (max-width: 820px) {
  :root { --gutter: 22px; }
  .site-utility { padding: 10px 22px; font-size: 8px; }
  .site-nav { flex-wrap: wrap; gap: 20px; padding-top: 20px; padding-bottom: 20px; }
  .site-brand img { width: 180px; }
  .theme-toggle { margin-left: auto; }
  .site-search { order: 4; flex-basis: 100%; }
  .site-search input { flex: 1; width: auto; min-width: 0; }
  .site-nav nav { order: 3; flex-basis: 100%; justify-content: center; gap: 40px; margin: 0; }
  .site-nav nav a { padding: 7px 0; }
  .hero { min-height: 350px; }
  .hero h1 { font-size: 65px; }
  .hero-copy { padding: 30px; }
  .hero p { font-size: 12px; }
  .hero-art img { width: 110%; height: 320px; padding: 0; }
  .hero-watermark { top: 45px; right: 15px; font-size: 65px; }
  .proof { padding: 18px 0; gap: 12px; }
  .proof li { font-size: 8px; letter-spacing: .3px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .category { padding: 20px; }
  .platform-feature { grid-template-columns: 1fr; gap: 25px; padding: 27px; }
  .dealer-band { grid-template-columns: 1fr; gap: 25px; padding: 30px; }
  .site-footer { flex-wrap: wrap; gap: 18px; padding: 22px; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .site-utility { padding: 9px 16px; letter-spacing: .6px; }
  .site-brand img { width: 161px; }
  .site-nav nav { gap: 28px; }
  .site-nav nav a { font-size: 11px; }
  .hero { grid-template-columns: 1fr; margin-top: 20px; }
  .hero-copy { padding: 29px; }
  .hero h1 { font-size: 76px; }
  .hero p { font-size: 13px; }
  .hero-art { height: 240px; clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
  .hero-art img { width: 95%; height: 235px; padding: 14px; }
  .hero-watermark { top: 30px; right: 16px; font-size: 85px; }
  .proof { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 20px 4px; }
  .proof li { font-size: 9px; letter-spacing: .8px; }
  .section { margin: 30px 0; }
  .section-head { align-items: start; flex-wrap: wrap; }
  h2 { font-size: 31px; }
  .category-grid { gap: 12px; }
  .category { padding: 14px; }
  .category h3 { font-size: 25px; }
  .category p { font-size: 11px; }
  .platform-feature { padding: 23px; gap: 20px; }
  .platform-feature h2, .dealer-band h2 { font-size: 36px; }
  .dealer-band { margin-top: 30px; padding: 27px; }
  .site-footer { padding: 20px 16px; }
  .site-footer > div { flex-wrap: wrap; gap: 15px; font-size: 10px; }
}

/* ── "How to" (261120/060): the link on every page, the panel, the guides ─────────────────────────────── */
.help-link { float: right; margin-top: 22px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 11px; font-weight: 700; letter-spacing: .4px; color: var(--muted); }
.help-link span { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 5px; border-radius: 50%; background: var(--red); color: #fff; font-size: 11px; }
.help-link:hover { color: var(--ink); border-color: #9c9fa4; }
.help-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; display: flex; flex-direction: column; width: min(460px, 100vw); background: var(--surface); border-left: 1px solid var(--line); box-shadow: -12px 0 40px #00000026; }
.help-panel[hidden] { display: none; }
.help-panel-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.help-panel-body { flex: 1; overflow-y: auto; padding: 20px 22px 40px; outline: 0; }
.help-title { font-size: 26px; line-height: 1.1; }
.help-summary { margin: 8px 0 18px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.help-more { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; }
.help-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; align-items: start; margin-bottom: 60px; }
.help-index h2 { margin: 22px 0 8px; font-family: var(--font-body); font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.help-index ul { list-style: none; margin: 0; padding: 0; }
.help-index li a { display: block; padding: 6px 10px; border-left: 2px solid transparent; font-size: 13px; }
.help-index li a:hover { color: var(--red); }
.help-index li a[aria-current] { border-left-color: var(--red); background: var(--soft); font-weight: 600; }
.help-search { display: flex; gap: 6px; }
.help-search input { flex: 1; min-width: 0; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; }
.help-search .btn { height: 36px; padding: 0 12px; }
.help-area { margin: 26px 0 12px; font-size: 22px; }
.help-area:first-child { margin-top: 0; }
.help-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.help-card { display: block; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.help-card:hover { border-color: #babec4; box-shadow: 0 6px 24px #00000012; }
.help-card h3 { font-family: var(--font-body); font-size: 15px; font-weight: 700; }
.help-card p { margin-top: 6px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.help-main > .help-card { margin-bottom: 10px; }
.help-updated { margin-top: 30px; font-size: 11px; color: var(--muted); }
.kb-body { max-width: 760px; font-size: 14px; line-height: 1.75; }
.kb-body h2 { margin: 30px 0 10px; font-size: 24px; line-height: 1.15; }
.kb-body h3 { margin: 22px 0 8px; font-family: var(--font-body); font-size: 15px; font-weight: 700; }
.kb-body h2:first-child, .kb-body h3:first-child { margin-top: 0; }
.kb-body p { margin: 0 0 12px; }
.kb-body ul, .kb-body ol { margin: 0 0 14px; padding-left: 22px; }
.kb-body li { margin-bottom: 5px; }
.kb-body a { color: var(--red); font-weight: 600; }
.kb-body a:hover { text-decoration: underline; }
.kb-body code { padding: 1px 5px; border-radius: 3px; background: var(--soft); font-size: 12.5px; }
.kb-body hr { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.kb-body .table-scroll { margin: 0 0 16px; }
.kb-body .kb-table { font-size: 13px; }
.kb-quote { margin: 0 0 14px; padding: 8px 14px; border-left: 3px solid var(--line); color: var(--muted); }
.kb-callout { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--muted); background: var(--soft); font-size: 13px; }
.kb-callout strong:first-child { margin-right: 6px; text-transform: uppercase; font-size: 10px; letter-spacing: 1px; }
.kb-callout.kb-tip { border-left-color: #1f8a4c; }
.kb-callout.kb-warning, .kb-callout.kb-caution { border-left-color: var(--red); }
.help-panel .kb-body { font-size: 13px; }
.help-panel .kb-body h2 { font-size: 19px; }
@media (max-width: 820px) {
  .help-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .help-link { margin-top: 14px; }
}

/* The Ask box in the help panel (261120/061) */
.help-ask { border-top: 1px solid var(--line); padding: 12px 20px 16px; background: var(--soft); }
.help-ask-log { max-height: 38vh; overflow-y: auto; margin-bottom: 10px; }
.help-ask-log:empty { display: none; }
.help-msg { margin: 0 0 10px; padding: 9px 12px; border-radius: 6px; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.help-msg.me { margin-left: 34px; background: var(--ink); color: var(--surface); }
.help-msg.it { margin-right: 14px; background: var(--surface); border: 1px solid var(--line); }
.help-msg.it.wait { color: var(--muted); font-style: italic; }
.help-rate { display: flex; gap: 10px; margin: -4px 0 10px; font-size: 11px; color: var(--muted); }
.help-rate button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.help-ask form { display: flex; gap: 8px; align-items: flex-end; }
.help-ask textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 140px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; resize: vertical; }
.help-ask .btn { height: 44px; }
.help-ask small { display: block; margin-top: 6px; font-size: 10px; line-height: 1.5; color: var(--muted); }
