/* =================================================================
   Kasper Marketplace — shared stylesheet
   Brand source: LOGISTICS/05_Brand_Design/Kasper_Brand_Guidelines.html
   Do not hardcode hex values in page markup — use these variables.
   ================================================================= */

/* =================================================================
   Self-hosted Fonts (UX-3 / SF-2)
   ================================================================= */

/* Material Icons */
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('/assets/fonts/MaterialIcons-Regular.woff2') format('woff2');
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Space Grotesk */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/SpaceGrotesk-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/SpaceGrotesk-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/SpaceGrotesk-700.woff2') format('woff2');
}

/* Hanken Grotesk */
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/HankenGrotesk-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/HankenGrotesk-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/HankenGrotesk-600.woff2') format('woff2');
}

/* Space Mono */
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/SpaceMono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/SpaceMono-700.woff2') format('woff2');
}

:root {
  /* Brand constants: never themed */
  --brand-ink: #141518;
  --brand-yellow: #FFC400;
  --brand-yellow-dark: #E6AF00;
  --brand-yellow-tint: #FFF6D6;

  /* Semantic role tokens */
  --bg: #F6F6F3;
  --surface: #FFFFFF;
  --surface-rgb: 255, 255, 255;
  --surface-2: #F6F6F3;
  --surface-muted: #F6F6F3;
  --text: #141518;
  --text-muted: #5B5F66;
  --text-subtle: #6B6E74;
  --border: #E8E8E3;
  --border-strong: #D8D6CE;
  --field-bg: #FFFFFF;
  --field-border: #8E9198;

  --accent: var(--brand-yellow);
  --on-accent: var(--brand-ink);

  --inverse-bg: var(--brand-ink);
  --on-inverse: #FFFFFF;
  --on-inverse-muted: #B5B7BC;
  --on-inverse-rgb: 255, 255, 255;
  --scrim-rgb: 20, 21, 24;

  --emphasis: #141518;
  --on-emphasis: #FFFFFF;

  --success: #0E6A47;
  --success-tint: #E7F6EF;
  --danger: #C23B3B;
  --danger-tint: #FBEAEA;
  --warning: #B45309;

  color-scheme: light;

  /* Legacy aliases to maintain backward compatibility during migration */
  --ink: var(--text);
  --ink-rgb: 20, 21, 24;
  --canvas: var(--bg);
  --line: var(--border);
  --line-strong: var(--border-strong);
  --slate: var(--text-muted);
  --muted: var(--text-subtle);
  --yellow: var(--brand-yellow);
  --yellow-rgb: 255, 196, 0;
  --yellow-dark: var(--brand-yellow-dark);
  --yellow-tint: var(--brand-yellow-tint);
  --slate-tint: #EEEFEC;
  --amber-tint: #FBEFE6;
  --green: var(--success);
  --green-tint: var(--success-tint);
  --error: var(--danger);
  --error-tint: var(--danger-tint);
  --amber: var(--warning);
  --meta-grey: var(--text-subtle);
  --dark-bg: var(--inverse-bg);
  --dark-raised: #1E1F23;
  --dark-line: #2E3036;
  --dark-secondary: var(--on-inverse-muted);

  /* Admin layout tokens */
  --admin-sidebar-width: 260px;
  --admin-sidebar-collapsed: 72px;
  --admin-topbar-height: 60px;
  --admin-breadcrumb-height: 48px;
  --admin-sidebar-bg: var(--surface);
  --admin-sidebar-border: var(--border);
  --admin-active-bg: var(--yellow-tint);
  --admin-active-text: var(--text);
  --admin-hover-bg: var(--surface-2);
  --admin-text: var(--text);
  --admin-text-muted: var(--text-muted);

  /* Type */
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', -apple-system, Arial, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
  --type-display: 700 52px/1 var(--font-heading);
  --type-heading: 600 32px/1.15 var(--font-heading);
  --type-body: 400 18px/1.6 var(--font-body);
  --type-mono: 400 14px/1.35 var(--font-mono);

  /* Radius */
  --radius-button: 10px;
  --radius-card: 16px;
  --radius-pill: 999px;

  /* Spacing grid: multiples of 8px */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
}

/* =================================================================
   Dark Mode Tokens
   ================================================================= */
[data-theme="dark"] {
  --bg: #0F1012;
  --surface: #18191D;
  --surface-rgb: 24, 25, 29;
  --surface-2: #1F2126;
  --surface-muted: #131417;
  --text: #F3F4F6;
  --text-muted: #A1A6AF;
  --text-subtle: #8B919B;
  --border: #2A2C33;
  --border-strong: #3A3D46;
  --field-bg: #121316;
  --field-border: #666C78;

  --accent: var(--brand-yellow);
  --on-accent: var(--brand-ink);

  --inverse-bg: var(--brand-ink);
  --on-inverse: #FFFFFF;
  --on-inverse-muted: #B5B7BC;
  --on-inverse-rgb: 255, 255, 255;
  --scrim-rgb: 20, 21, 24;

  --emphasis: #F3F4F6;
  --on-emphasis: #141518;

  --success: #4ADE80;
  --success-tint: rgba(74, 222, 128, 0.15);
  --danger: #F07272;
  --danger-tint: rgba(240, 114, 114, 0.15);
  /* Tints behind text must be dark-friendly too, or light text sits on a
     light pastel (selected rows, badges, highlights). */
  --brand-yellow-tint: rgba(255, 196, 0, 0.16);
  --slate-tint: rgba(255, 255, 255, 0.08);
  --amber-tint: rgba(245, 158, 11, 0.16);
  --warning: #F59E0B;

  color-scheme: dark;

  /* Admin layout tokens in dark */
  --admin-sidebar-bg: var(--surface);
  --admin-sidebar-border: var(--border);
  --admin-active-bg: rgba(255, 196, 0, 0.15);
  --admin-active-text: var(--text);
  --admin-hover-bg: var(--surface-2);
  --admin-text: var(--text);
  --admin-text-muted: var(--text-muted);
}

/* One logo per theme, everywhere (storefront header uses .logo-img, admin
   sidebar does not). Both selectors are needed: `.logo-img { display:block }`
   later in this file would otherwise re-show the dark logo in light mode. */
.logo--on-dark,
.logo-img.logo--on-dark { display: none; }
[data-theme="dark"] .logo--on-light,
[data-theme="dark"] .logo-img.logo--on-light { display: none; }
[data-theme="dark"] .logo--on-dark,
[data-theme="dark"] .logo-img.logo--on-dark { display: block; }

input, select, textarea {
  background-color: var(--field-bg);
  color: var(--text);
  border-color: var(--field-border);
}

/* =================================================================
   Arabic & RTL Typography & Layout
   ================================================================= */
:root[lang="ar"],
[dir="rtl"] {
  direction: rtl;
  text-align: start;
  --font-heading: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --font-body:    'Cairo', 'Segoe UI', Tahoma, sans-serif;
  --font-mono:    'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

:root[lang="ar"] body {
  line-height: 1.75;
}

:root[lang="ar"] * {
  letter-spacing: 0 !important;
}

:root[lang="ar"] :is(.eyebrow, .hero-brand-tag, .search-label, .card-badge, .stat-card-label, .flatbed-feature__photo-label) {
  text-transform: none;
  font-size: 13px;
}

[dir="rtl"] .primary-nav,
[dir="rtl"] .header-actions {
  flex-direction: row;
}

[dir="rtl"] .site-header__row {
  flex-direction: row;
}

[dir="rtl"] :is(.ltr-token, bdi, [dir="ltr"], .badge, .status-badge, .tel-link, .phone-number, code, .font-mono) {
  direction: ltr;
  unicode-bidi: isolate;
}

/* ---------------- Reset ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  min-height: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  font: var(--type-body);
}
main, #main-content {
  flex: 1 0 auto;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
/* Disable spin buttons on number inputs to prevent accidental price/rate/quantity changes */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
a { color: inherit; }

/* ---------------- Typography ---------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0;
}
h1 { font: var(--type-display); }
h2 { font: var(--type-heading); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate);
}
/* Signature mark: yellow dot prefixing a page/section-intro eyebrow.
   Use on light backgrounds; .hero-eyebrow is the dark-hero equivalent.
   Do not add to inline microcopy labels (form fields, stat labels). */
.eyebrow-dot { display:flex; align-items:center; gap:9px; }
.eyebrow-dot::before { content:""; width:8px; height:8px; border-radius:var(--radius-pill); background:var(--yellow); flex-shrink:0; }

/* ---------------- Brand Elements (Brand Guidelines v2.1) ---------------- */

/* The coil as a bullet:
   A solid circle 0.75x the text's cap height (8px at 15px), centred on the first line,
   gap 0.6em. Ink on light and on yellow; Signal Yellow only on Ink, where it is a fill.
   Marks list items only; status keeps its semantic dots. */
.coil-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.coil-bullets > li {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.6em;
  font-size: 15px;
  line-height: 1.5;
  color: inherit;
}
.coil-bullets > li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  flex-shrink: 0;
  transform: translateY(-1px);
}
/* Yellow coil bullets (for dark surfaces, or explicit modifier) */
.coil-bullets--yellow > li::before,
.cta-band .coil-bullets > li::before,
.flatbed-feature .coil-bullets > li::before,
.hero .coil-bullets > li::before,
.quote-rail .coil-bullets--yellow > li::before {
  background: var(--yellow);
}

/* The frame as a corner / sign-off:
   The trailer frame on its own anchors a photo, card or panel in the
   bottom-right corner. It sits deck along the bottom, headboard up the right side,
   inset from both edges by at least the frame's own thickness. */
.frame-corner {
  position: relative;
}
.frame-corner::after {
  content: "";
  position: absolute;
  inset-inline-end: 20px;
  bottom: 20px;
  width: 34px;
  height: 34px;
  background-color: var(--yellow);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M24 0l10 10v24H10L0 24h24V0z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 34'%3E%3Cpath d='M24 0l10 10v24H10L0 24h24V0z'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
  z-index: 2;
}
.frame-corner--ink::after {
  background-color: var(--ink);
}
/* A captioned photo (.photo[data-cap]) also uses ::after for its caption.
   When it carries the frame too, the frame wins and stays bottom-right
   (the caption used to pull the mark to the bottom-left, over the text). */
.photo.frame-corner[data-cap]:not([data-cap=""])::after {
  content: "";
  inset-inline-start: auto;
  inset-inline-end: 20px;
  bottom: 20px;
  text-shadow: none;
}
@media (max-width: 720px) {
  .frame-corner::after {
    inset-inline-end: 14px;
    bottom: 14px;
    width: 28px;
    height: 28px;
  }
}

/* ---------------- Layout shell ---------------- */
/* One page width for the whole storefront (10 Nov): content lines up with the
   header's logo and the footer at every zoom. Reading sections that set their own
   max-width (FAQ, contact FAQ) stay centred inside it. */
:root { --page-gutter: clamp(24px, 3.2vw, 48px); }
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}
/* The body is a flex column (sticky footer), where auto margins make a
   top-level container shrink to its content: pages then change width as
   content opens or closes. Always take the full width, up to max-width. */
body:not(.admin-page) > .container,
body:not(.admin-page) > main {
  width: 100%;
  box-sizing: border-box;
}
.site-header .container,
.site-footer .container {
  max-width: 100%;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}
.logo-img { height:32px; width:auto; display:block; }
.util-label { white-space:nowrap; }
@media (max-width: 860px) { .util-label { display:none; } }
@media (max-width: 720px) {
  :root { --page-gutter: 20px; }
}

/* ---------------- Buttons ---------------- */
.btn {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-button);
  min-height: 44px;
  padding: 12px 24px;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease, transform 100ms ease;
}
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover {
  background: var(--brand-yellow-dark);
  box-shadow: 0 4px 14px rgba(var(--yellow-rgb),.35);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font-weight: 600;
}
.btn-secondary:hover {
  background: var(--surface-muted);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(var(--ink-rgb),.08);
  transform: translateY(-1px);
}
.btn-full { width: 100%; }
.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.btn:disabled {
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}
.btn:disabled:hover { background: var(--line); }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-button);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.btn-icon:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}
.btn-icon:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
[data-theme="dark"] .btn-icon:focus-visible {
  outline: 2px solid var(--accent);
}
@media (max-width: 640px) {
  .header-actions .btn-icon { display: none; }
}

/* ---------------- Cards ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}

/* ---------------- Chips / pills ---------------- */
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 13px;
  padding: 11px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--slate);
  transition: background-color 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out, transform 80ms ease-out;
}
.chip:active {
  transform: translateY(1px);
}
.chip[aria-pressed="true"] {
  background: var(--emphasis);
  color: var(--on-emphasis);
  border-color: var(--ink);
}
.chip:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---------------- Photo placeholder ----------------
   Real images replace these; until then, keep a labeled
   placeholder block so layout can be reviewed. */
.photo {
  position: relative;
  background: var(--line-strong);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: inherit;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.placeholder { background: var(--ink); display: grid; place-items: center; }
.photo.placeholder::after { content: "Kasper"; position: static; font: 700 20px/1 var(--font-heading); letter-spacing: -.02em; color: var(--on-inverse); text-transform: none; text-shadow: none; }
.photo[data-cap]:not([data-cap=""])::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  bottom: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(var(--ink-rgb),.6), rgba(var(--ink-rgb),0)); /* taste-skill-ignore: neutral scrim over photo */
  border-radius: inherit;
  pointer-events: none;
}
.photo[data-cap]:not([data-cap=""])::after {
  content: attr(data-cap);
  position: absolute;
  inset-inline-start: 12px;
  bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--on-inverse);
  text-shadow: 0 1px 3px rgba(var(--ink-rgb),.5);
}

/* ---------------- Footer ---------------- */
.site-footer {
  margin-top: auto;
  background: var(--inverse-bg);
  color: rgba(var(--on-inverse-rgb), 0.7);
  padding: 48px 0;
  border-top: 4px solid var(--accent);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------------- Utility ---------------- */
.u-success { color: var(--success) !important; }
.u-warning { color: var(--warning) !important; }
.u-danger  { color: var(--danger) !important; }
.u-muted   { color: var(--text-muted) !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;
}

/* ---------------- Marketplace build components ---------------- */
.section { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.section-lg { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.section-title { display:flex; align-items:baseline; justify-content:space-between; gap:var(--space-2); margin-bottom:var(--space-3); }
.section-title h2 { font-size:26px; }
.text-muted { color:var(--slate); }
.link-muted { color:var(--slate); font-size:14px; text-decoration:none; }
.hero-section-wrapper { padding-bottom:24px; }
.hero-section { position:relative; overflow:hidden; }
.hero-media { position:absolute; inset:0; background-color:var(--inverse-bg); background-size:cover; background-position:center; background-repeat:no-repeat; }
.hero-scrim { position:absolute; inset:0; background:linear-gradient(180deg, rgba(var(--scrim-rgb),.55) 0%, rgba(var(--scrim-rgb),.72) 45%, rgba(var(--scrim-rgb),.9) 100%), linear-gradient(90deg, rgba(var(--scrim-rgb),.65) 0%, rgba(var(--scrim-rgb),.3) 55%); /* taste-skill-ignore: neutral scrim over photo */ }
.hero { position:relative; z-index:1; padding:64px 48px 40px; display:flex; flex-direction:column; justify-content:center; }
.hero h1 { max-width:820px; font-size:clamp(32px, 7vw, 66px); line-height:.98; margin-bottom:20px; color:var(--on-inverse); }
.hero p { max-width:940px; color:rgba(var(--on-inverse-rgb),.82); font-size:19px; line-height:1.55; margin:0 0 36px; }
.hero-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--on-inverse-rgb), 0.9);
  margin-bottom: 16px;
}
.hero-brand-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}
.search-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text);
  margin-bottom: 4px;
}
.search-panel { display:flex; align-items:stretch; gap:4px; max-width:940px; background:var(--surface); border:1.5px solid var(--ink); border-radius:var(--radius-card); padding:10px; box-shadow:0 10px 30px rgba(var(--ink-rgb),.06); }
.search-field { flex:1; padding:12px 16px; }
.search-field strong { display:block; margin-top:4px; font-weight:500; }
.divider { width:1px; background:var(--line); margin:8px 0; }
.stat-label { font-family:var(--font-mono); font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--slate); margin-top:2px; }
/* ---------------- Equipment & Freight Product Card Architecture ---------------- */
.card-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap:24px; min-width:0; }
.results-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap:24px; min-width:0; }

.listing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(var(--ink-rgb), 0.04);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  height: 100%;
}
.listing-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(var(--ink-rgb), 0.10);
}
.listing-card:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(var(--ink-rgb), 0.06);
}

.card-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--canvas);
}
.card-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.card-photo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background-size: cover;
  background-position: center;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.listing-card:hover .card-photo img {
  transform: scale(1.05);
}
.card-photo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--ink-rgb), 0.32) 0%, transparent 40%, rgba(var(--ink-rgb), 0.20) 100%); /* taste-skill-ignore: neutral scrim over photo */
  pointer-events: none;
}

/* Badges on top of card photo */
.card-badges {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  pointer-events: none;
}
.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.card-badge--cat {
  background: rgba(var(--ink-rgb), 0.88);
  color: #FFFFFF;
  backdrop-filter: blur(6px);
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.card-badge--avail {
  background: rgba(255, 255, 255, 0.94);
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.25);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}

/* Wishlist heart toggle */
.wishlist-toggle {
  all: unset;
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
  z-index: 3;
}
.wishlist-toggle:hover {
  transform: scale(1.1);
  background: var(--surface-2);
  border-color: var(--text-muted);
}
.wishlist-toggle:active {
  transform: scale(0.92);
}
.wishlist-toggle svg {
  fill: none;
  stroke: var(--text);
  transition: fill 0.15s ease, stroke 0.15s ease, transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wishlist-toggle[aria-pressed="true"] svg {
  fill: #e11d48;
  stroke: #be123c;
  transform: scale(1.15);
}
.wishlist-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Card Body Content */
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 18px 12px;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--slate);
  margin-bottom: 6px;
}
.card-brand {
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.card-meta-sep { color: var(--line-strong); }
.card-location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.card-location svg { color: var(--slate); flex-shrink: 0; }

.card-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--ink);
}
.card-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.14s;
}
.card-name a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Specification Chips */
.card-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.card-spec-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--canvas);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--ink);
  white-space: nowrap;
}
.card-spec-chip strong {
  color: var(--slate);
  font-weight: 600;
  margin-inline-end: 4px;
}

/* Pricing Row */
.card-pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.card-price-block {
  display: flex;
  flex-direction: column;
}
.price-label {
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--slate);
}
.price-val {
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--ink);
}
.operator-tag {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--slate);
  background: var(--canvas);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Card Actions */
.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 16px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.card-actions .btn-sm {
  min-height: 40px;
  height: 40px;
  padding: 0 14px;
  font-size: 13.5px;
  border-radius: 8px;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}
.card-actions .btn-secondary {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 600;
}
.card-actions .btn-secondary:hover {
  background: var(--canvas);
  border-color: var(--ink);
}
.card-actions .btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.card-actions .btn-primary:hover {
  background: var(--yellow-dark);
}
.steps-band { position:relative; overflow:hidden; display:grid; grid-template-columns:1.1fr 1fr 1fr 1fr; gap:var(--space-4); align-items:start; background:var(--inverse-bg); color:var(--on-inverse); border-radius:20px; padding:44px 48px; }
.steps-band::before { content:''; position:absolute; inset:0; background:linear-gradient(rgba(10,12,16,.88),rgba(10,12,16,.92)),url('../assets/freight-steps-container-truck.webp') center 54%/cover no-repeat; pointer-events:none; }
.steps-band > div { position:relative; z-index:1; }
.steps-band h2 { color:#FFFFFF; }
.steps-band p, .step-copy { color:rgba(255,255,255,.94); }
.step-number { font-family:var(--font-mono); font-size:12px; font-weight:700; color:var(--brand-yellow,#FFC400); margin-bottom:10px; }
.steps-band.steps-3 { grid-template-columns: repeat(3, 1fr); padding: 28px 48px; }
.faq-list { background:var(--line); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.faq-item { background:var(--surface); padding:20px 22px; }
.faq-item + .faq-item { border-top:1px solid var(--line); }
.faq-item p { margin:0 0 0 16px; font-size:14px; color:var(--slate); line-height:1.6; }
.faq-item summary { cursor:pointer; list-style:none; font:700 15px/1.4 var(--font-heading); display:flex; gap:10px; min-height:24px; align-items:center; }
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content:"+"; margin-inline-start:auto; font:400 18px/1 var(--font-mono); display:inline-block; transition:transform 180ms cubic-bezier(0.16, 1, 0.3, 1); transform-origin:center; }
.faq-item[open] summary::after { transform:rotate(45deg); }
.faq-item > p { margin:10px 0 0; }
.faq-item summary:focus-visible { outline:2px solid var(--ink); outline-offset:4px; border-radius:3px; }
.site-header { position:sticky; top:0; z-index:40; background:var(--surface); border-bottom:1px solid var(--line); }
.site-header__row { display:flex; align-items:center; gap:32px; min-height:72px; }
.site-header .logo {
  display:flex;
  align-items:center;
  flex-shrink:0;
  text-decoration:none;
  -webkit-tap-highlight-color:transparent;
  -webkit-user-select:none;
  user-select:none;
}
.site-header .logo:focus-visible { outline:2px solid var(--ink); outline-offset:4px; border-radius:2px; }
.site-header .logo-img { height:42px; width:auto; -webkit-user-drag:none; }
.primary-nav { display:flex; align-items:center; gap:24px; }
.primary-nav a { color:var(--ink); font-size:15px; font-weight:600; text-decoration:none; padding:27px 0 25px; border-bottom:2px solid transparent; white-space:nowrap; }
.primary-nav a:hover { border-bottom-color:var(--line-strong); }
.primary-nav a[aria-current="page"] { border-bottom-color:var(--yellow); }
.header-actions { display:flex; align-items:center; gap:8px; margin-inline-start:auto; }
.icon-link { position:relative; display:grid; place-items:center; width:44px; height:44px; border-radius:10px; color:var(--ink); text-decoration:none; }
.icon-link:hover { background:var(--canvas); }
.icon-link:focus-visible, .text-link:focus-visible, .menu-toggle:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
.count-badge { position:absolute; top:4px; inset-inline-end:3px; min-width:16px; height:16px; padding:0 4px; border-radius:999px; background:var(--emphasis); color:var(--on-emphasis); font:700 10px/16px var(--font-mono); text-align:center; }
.count-badge[hidden] { display:none; }
.text-link { color:var(--ink); font-size:14px; font-weight:600; text-decoration:none; padding:12px 8px; white-space:nowrap; }
.text-link:hover { text-decoration:underline; text-underline-offset:4px; }
.menu-toggle { display:none; width:44px; height:44px; border:0; background:transparent; color:var(--ink); border-radius:10px; cursor:pointer; }
.mobile-menu { border-top:1px solid var(--line); padding:8px max(20px, calc((100vw - 1180px) / 2 + 32px)) 16px; display:flex; flex-direction:column; background:var(--surface); }
.mobile-menu a { min-height:48px; display:flex; align-items:center; padding:12px 0; color:var(--ink); font-size:16px; font-weight:600; text-decoration:none; border-bottom:1px solid var(--line); }
.mobile-menu a:last-child { color:var(--on-accent); border-bottom:0; }
.mobile-menu a:last-child { justify-content:center; margin-top:12px; padding:0 16px; background:var(--accent); border-radius:10px; }
.mobile-menu[hidden] { display:none; }
.page-freight .mobile-menu a:last-child { display:none; }
.primary-nav a:focus-visible, .mobile-menu a:focus-visible { outline:2px solid var(--ink); outline-offset:2px; border-radius:4px; }
.nav-client-auth { display:flex; align-items:center; gap:6px; }
.btn-header-login { display:inline-flex; align-items:center; gap:8px; height:40px; padding:0 16px; border:1px solid var(--line-strong); border-radius:var(--radius-button); background:var(--surface); color:var(--ink); font-family:var(--font-heading); font-size:14px; font-weight:600; text-decoration:none; white-space:nowrap; transition:border-color .14s ease, background-color .14s ease, box-shadow .14s ease, transform .1s ease; }
.btn-header-login svg { color:var(--slate); flex-shrink:0; transition:color .14s ease; }
.btn-header-login:hover { border-color:var(--ink); background:var(--surface-muted); color:var(--ink); transform:translateY(-1px); box-shadow:0 4px 12px rgba(var(--ink-rgb),.08); }
.btn-header-login:hover svg { color:var(--ink); }
.btn-header-login:active { transform:translateY(1px); box-shadow:none; }
.btn-header-login:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
.nav-user-chip { display:inline-flex; align-items:center; background:var(--surface); border:1px solid var(--line-strong); border-radius:var(--radius-button); padding:3px 4px 3px 12px; gap:10px; height:40px; box-sizing:border-box; }
.nav-user-btn { display:inline-flex; align-items:center; gap:7px; color:var(--ink); font-family:var(--font-heading); font-size:13.5px; font-weight:600; text-decoration:none; white-space:nowrap; }
.nav-user-btn:hover { color:var(--ink); }
/* Quotes waiting for the customer's answer (header + menus). */
.nav-awaiting { display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0 5px; margin-inline-start:6px; border-radius:999px; background:var(--brand-yellow,#FFC400); color:#111; font:700 11px/1 var(--font-heading); vertical-align:middle; }
.icon-link .nav-awaiting,
.nav-awaiting--icon { position:absolute; top:4px; inset-inline-end:3px; min-width:16px; height:16px; padding:0 4px; margin:0; border-radius:999px; background:var(--brand-yellow,#FFC400); color:#111; font:700 10px/16px var(--font-mono); text-align:center; box-shadow:0 0 0 1.5px var(--surface); z-index:2; }
.nav-user-btn .nav-user-icon { color:var(--ink); }
.nav-signout-btn { all:unset; display:inline-flex; align-items:center; padding:5px 12px; font-family:var(--font-heading); font-size:12px; font-weight:600; color:var(--slate); background:var(--canvas); border-radius:6px; cursor:pointer; white-space:nowrap; transition:color .14s ease, background-color .14s ease; }
.nav-signout-btn:hover { color:var(--ink); background:var(--line); }
.nav-signout-btn:focus-visible { outline:2px solid var(--ink); outline-offset:1px; }
.btn-admin-nav { display:inline-flex; align-items:center; gap:7px; height:40px; padding:0 14px; border:1px solid var(--border); border-radius:var(--radius-button); background:var(--inverse-bg); color:var(--accent); font-family:var(--font-heading); font-size:13.5px; font-weight:700; text-decoration:none; white-space:nowrap; letter-spacing:.02em; transition:background-color .14s ease, border-color .14s ease, transform .1s ease, box-shadow .14s ease; }
.btn-admin-nav:hover { background:var(--inverse-bg); border-color:var(--accent); color:var(--accent); transform:translateY(-1px); box-shadow:0 4px 12px rgba(var(--scrim-rgb),.16); }
.btn-admin-nav svg { flex-shrink:0; }
.btn-admin-nav:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
[data-auth-only][hidden], [data-admin-only][hidden] { display:none !important; }
/* The hidden attribute always wins (FE-2): .btn / flex rules must not re-show a hidden element. */
[hidden] { display:none !important; }

/* Language toggle is hidden while Arabic is disabled (KASPER_FLAGS.arabic: false) */
[data-lang-toggle],
#btn-site-lang-toggle,
#btn-admin-lang-toggle,
.mobile-menu-toggles [data-lang-toggle] {
  display: none !important;
}

/* SF-1: Prevent header auth flicker for signed-in users */
html[data-auth="in"] [data-auth-only]:not([hidden]) { display: revert; }
html[data-auth="in"] .icon-link[data-auth-only]:not([hidden]) { display: grid; }
html[data-auth="in"] .btn-header-login,
html[data-auth="in"] .nav-client-auth > .btn-header-login { display: none !important; }
html[data-auth="out"] [data-auth-only] { display: none !important; }


/* Signed in, the header also holds the Admin button and the user chip; below 1240px that
   overflowed the screen (a sideways scroll and a white strip on the right). Compact both:
   the greeting text and the Admin label hide, their icons and hover titles stay. */
@media (max-width: 1240px) {
  .nav-user-name { display:none; }
  .btn-admin-nav { font-size:0; gap:0; padding:0 12px; }
  .primary-nav { gap: 16px; }
}
/* Collapse to mobile menu below 1024px; tablets and laptops at 1024px+ keep full nav */
@media (max-width: 1023px) {
  .site-header__row { min-height:64px; gap:12px; }
  .site-header .logo-img { height:36px; }
  .primary-nav, .header-actions > .nav-client-auth, html[data-auth] .header-actions > .nav-client-auth { display:none !important; }
  .header-actions { gap:4px; }
  .menu-toggle { display:grid; place-items:center; }
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px 16px;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tabs[hidden] { display: none; }
.category-tabs button {
  all: unset;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  box-sizing: border-box;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  white-space: nowrap;
  transition: all 0.14s ease-out;
}
.category-tabs button:hover {
  background: var(--canvas);
  border-color: var(--ink);
}
.category-tabs button[aria-current="true"] {
  background: var(--emphasis);
  color: var(--on-emphasis);
  border-color: var(--emphasis);
}
.category-tabs button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width:720px) {
  .category-tabs { flex-wrap: nowrap; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .category-tabs button { min-height: 38px; padding: 6px 14px; font-size: 13px; }
}

/* Freight shares the equipment tabs' base and active-state styles. */
.freight-layout .category-tabs { margin-top: 16px; }
.freight-type-card {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: none;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
}
.freight-type-card > img {
  display: block;
  width: min(30%, 220px);
  aspect-ratio: 3 / 2;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 10px;
}
.freight-type-card__copy h2 {
  margin: 0 0 6px;
  font: 700 19px/1.25 var(--font-heading);
}
.freight-type-card__copy p {
  margin: 0 0 10px;
  color: var(--text-muted);
  line-height: 1.5;
}
.freight-type-card__copy > span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-yellow-tint);
  color: var(--brand-ink);
  font-size: 12px;
  font-weight: 700;
}
@media (max-width:560px) {
  .freight-type-card { align-items: stretch; flex-direction: column; gap: 12px; }
  .freight-type-card > img { width: 100%; max-height: 180px; }
}

.browse-layout.container,
.freight-layout.container {
  max-width: 100%;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}
.browse-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); padding-top: 24px; padding-bottom: 72px; }

.browse-search-section { margin-top: 4px; }
.browse-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 14px;
  padding: 4px 18px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(var(--ink-rgb), 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.browse-search-bar:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(var(--yellow-rgb), 0.28);
}
.browse-search-icon {
  width: 20px;
  height: 20px;
  color: var(--slate);
  flex-shrink: 0;
}
.browse-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--ink);
  outline: none;
}
.browse-search-input::placeholder {
  color: var(--slate);
}
.filter-group { margin-bottom:22px; }
.filter-title { font-family:var(--font-mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--slate); margin-bottom:10px; }
.filter-stack { display:flex; flex-direction:column; gap:9px; }
.check-row { display:flex; align-items:center; gap:9px; font-size:14px; min-height:48px; }
.check-row:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.fake-check { width:17px; height:17px; border-radius:5px; border:1.5px solid var(--line-strong); transition: background-color .15s ease, border-color .15s ease; }
.fake-check[data-on="true"] { display:inline-flex; align-items:center; justify-content:center; background:var(--emphasis); border-color:var(--emphasis); color:var(--accent); font-size:11px; }
.toggle { width:34px; height:20px; border-radius:var(--radius-pill); background:var(--emphasis); position:relative; display:inline-block; transition: background-color .18s ease; }
.toggle::after { content:""; position:absolute; left:2px; top:2px; width:16px; height:16px; border-radius:var(--radius-pill); background:var(--accent); transform: translateX(14px); transition: transform .18s ease, background-color .18s ease; }
.results-header { display:flex; align-items:baseline; justify-content:space-between; gap:var(--space-2); margin-bottom:var(--space-2); }
.results-count { font-family:var(--font-heading); font-weight:700; font-size:20px; }
.results-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:18px; min-width:0; }
.results-grid .card-photo { height:auto; }
.results-grid .card-name { font-size:16px; }
.detail-layout { display:grid; grid-template-columns:minmax(0, 1fr) clamp(420px, 32vw, 520px); gap:clamp(24px, 2.5vw, 36px); padding-top:16px; padding-bottom:48px; }
.detail-layout .detail-hero { width:100%; }
.detail-layout { align-items:start; }
.detail-layout .detail-content > .breadcrumbs { margin-top:0; }
#detail-title:not(.sr-only) { margin:4px 0 18px; }
.detail-hero { height:auto; border-radius:var(--radius-card); }
.thumb-row { display:grid; grid-template-columns:repeat(4, 1fr); gap:12px; margin-top:12px; }
.spec-hero-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(130px, 1fr)); gap:12px; margin:28px 0 20px; }
.spec-hero-card { background:var(--surface); border:1.5px solid var(--ink); border-radius:12px; padding:16px 14px; display:flex; flex-direction:column; justify-content:space-between; box-shadow:0 2px 0 var(--ink); transition:transform 80ms ease, box-shadow 80ms ease; }
.spec-hero-card:hover { transform:translateY(-1px); box-shadow:0 3px 0 var(--ink); }
.spec-hero-val { font-family:var(--font-mono); font-weight:700; font-size:clamp(17px, 2.2vw, 22px); line-height:1.15; color:var(--ink); letter-spacing:-0.02em; word-break:break-word; }
.spec-hero-lbl { font-family:var(--font-mono); font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--slate); margin-top:8px; }
.spec-table { display:grid; grid-template-columns:1fr 1fr; gap:1px; background:var(--line); border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.spec-cell { background:var(--surface); padding:16px 18px; }
/* A lone or odd last option spans the full row (no half-empty card). */
.spec-cell:last-child:nth-child(odd) { grid-column:1 / -1; }
.spec-cell span { display:block; font-family:var(--font-mono); font-size:11px; color:var(--slate); margin-bottom:3px; }
.spec-cell strong { display:block; font-family:var(--font-heading); font-size:16px; }
.quote-rail { position:sticky; top:80px; background:var(--surface); border:1.5px solid var(--ink); border-radius:16px; padding:16px 18px; }
.form-stack { display:flex; flex-direction:column; gap:12px; }
.field-label { display:block; font:var(--type-mono); letter-spacing:.08em; text-transform:uppercase; color:var(--slate); margin-bottom:7px; }
/* A field placed inside its label (My requests › Create PO, Request revision) must not inherit
   the label's mono / uppercase / letter-spaced text: what the customer types looks like the
   rest of the site's inputs (10 Nov). */
.field-label :is(input, select, textarea) { display:block; margin-top:6px; font:400 16px/1.4 var(--font-body); letter-spacing:normal; text-transform:none; color:var(--ink); }
.input-control { width:100%; min-height:48px; border:1px solid var(--field-border); border-radius:10px; padding:12px 14px; background:var(--surface); color:var(--ink); }
.field-icon-wrap { position:relative; display:block; }
.field-icon-wrap svg { position:absolute; z-index:1; inset-inline-start:14px; top:50%; width:18px; height:18px; transform:translateY(-50%); color:var(--ink); pointer-events:none; }
.field-icon-wrap .input-control { padding-inline-start:44px; }
.input-control:focus { outline:2px solid var(--ink); outline-offset:2px; border-color:var(--ink); }
/* Message boxes grow in height only; their width stays the form's width. */
textarea.input-control { resize:vertical; max-width:100%; }
.field-error { margin:4px 0 0; color:var(--error); font-size:12px; line-height:1.4; }
.field-hint { margin:4px 0 0; color:var(--slate); font-size:12px; line-height:1.4; }
.field-error:not(:empty) + .field-hint { display:none; }
.field-error:empty { display:none; }
.input-control[aria-invalid="true"], .date-picker-trigger[aria-invalid="true"] { border-color:var(--error); }
.date-picker-trigger[aria-invalid="true"] { box-shadow:0 0 0 1px var(--error); }
.password-control { display:flex; align-items:stretch; gap:8px; }
.password-toggle { display:inline-flex; align-items:center; justify-content:center; width:48px; min-width:48px; min-height:48px; padding:0; border:1px solid var(--field-border); border-radius:10px; background:var(--surface); color:var(--slate); cursor:pointer; transition:color 140ms ease, border-color 140ms ease, background-color 140ms ease; }
.password-toggle:hover { border-color:var(--ink); color:var(--ink); background:var(--canvas); }
.password-toggle:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
.password-toggle .eye-icon { width:20px; height:20px; display:block; }
.phone-page { min-height:calc(100svh - 180px); background:var(--canvas); display:flex; flex-direction:column; align-items:center; padding:40px 20px 60px; }
.phone-card { width:340px; max-width:100%; background:var(--surface); border:1.5px solid var(--ink); border-radius:32px; overflow:hidden; box-shadow:0 24px 60px rgba(var(--ink-rgb),.14); }
.phone-body { padding:18px 20px 22px; }
.map-panel { height:230px; border-radius:0; overflow:hidden; }
.eta-card { border:1px solid var(--line); border-radius:12px; padding:14px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
.timeline { margin-bottom:18px; }
.timeline-item { display:flex; gap:12px; }
.timeline-marker { display:flex; flex-direction:column; align-items:center; }
.dot { width:14px; height:14px; border-radius:var(--radius-pill); border:2px solid var(--line-strong); background:var(--surface); }
.dot.done { display:flex; align-items:center; justify-content:center; background:var(--green); border-color:var(--green); color:#FFFFFF; font-size:9px; }
.dot.active { background:var(--yellow); border-color:var(--ink); }
.timeline-line { width:2px; min-height:22px; flex:1; background:var(--line); }
.timeline-line.done { background:var(--green); }
.timeline-line.active { background:var(--yellow); }
.timeline-copy { padding-bottom:16px; font-size:14px; }
.timeline-copy span { display:block; font-size:12px; color:var(--slate); margin-top:2px; }
.phone-actions { display:flex; gap:10px; }
.approval-summary { border:1px solid var(--line); border-radius:12px; overflow:hidden; margin:16px 0; }
.summary-row { display:flex; justify-content:space-between; gap:var(--space-2); padding:12px 14px; font-size:14px; }
.summary-row + .summary-row { border-top:1px solid var(--line); }
.summary-row span:first-child { color:var(--slate); }
.price-line { font-family:var(--font-heading); font-size:24px; font-weight:700; }
@media (max-width:480px) {
  .phone-page { min-height:auto; padding:0 0 32px; align-items:stretch; }
  .phone-page > .eyebrow { margin:16px 20px 12px !important; }
  .phone-card { width:100%; max-width:none; min-height:calc(100svh - 48px); border:0; border-radius:0; box-shadow:none; }
  .phone-body { padding:20px; }
}
@media (max-width:900px) {
  .card-grid, .results-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .steps-band, .steps-band.steps-3, .browse-layout { grid-template-columns:minmax(0, 1fr); }
  .detail-layout { display: flex; flex-direction: column; }
  .detail-layout > #quote-rail { order: -1; }
  .detail-layout .detail-content, #detail-main { min-height: 680px; }
  .quote-rail { position:static; }
  .steps-band, .steps-band.steps-3 { padding: 32px 24px; gap: 24px; }
  .freight-type-card--strip { min-height: 120px; }
  .freight-type-card--strip .freight-type-card__copy p { min-height: 4.5em; }
  #freight-results { min-height: 160px; }
}
@media (max-width:640px) { h1 { font-size:clamp(32px, 10vw, 44px); } h2 { font-size:28px; } .search-panel, .results-header, .section-title { align-items:stretch; flex-direction:column; } .divider { display:block; width:100%; height:1px; margin:8px 0; } .card-grid, .results-grid, .spec-table { grid-template-columns:1fr; } .card-actions, .phone-actions { flex-direction:column; align-items:stretch; } .footer-inner { flex-direction:column; align-items:flex-start; gap:20px; } }

.check-row {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  text-align: start;
}
.check-row[aria-pressed="false"] .toggle { background: var(--line-strong); }
.check-row[aria-pressed="false"] .toggle::after {
  transform: translateX(0);
  background: var(--surface);
}
.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: 10px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--emphasis);
  color: var(--on-emphasis);
  border-radius: var(--radius-button);
  padding: 10px 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }
.breadcrumbs, .breadcrumb, nav[aria-label="Breadcrumb"] { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:20px 0 14px; font: var(--type-mono); color:var(--slate); font-size:13px; }
.breadcrumbs a, .breadcrumb a, nav[aria-label="Breadcrumb"] a { color:var(--slate); text-decoration:none; transition:color .15s ease; }
.breadcrumbs a:hover, .breadcrumb a:hover, nav[aria-label="Breadcrumb"] a:hover { color:var(--ink); text-decoration:underline; }
.breadcrumbs span[aria-current="page"], .breadcrumb span[aria-current="page"] { color:var(--ink); font-weight:500; }
.browse-heading { padding-top:24px; }
.browse-heading h1 { font-size:clamp(30px,4vw,38px); }
.browse-heading p { margin:8px 0 0; font-size:16px; }
.load-more { display:flex; margin:24px auto 0; }
.detail-content { min-width:0; }

.search-control {
  display: block;
  width: 100%;
  min-width: 0;
  margin-top: 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  outline: none;
}
.search-control:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 6px;
}
.date-picker { position:relative; min-width:0; width:100%; }
.date-picker-trigger { appearance:none; border:0; background:transparent; color:var(--ink); cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:32px; width:100%; min-width:0; padding:4px 0; text-align:start; font:500 15px/1.3 var(--font-body); box-sizing:border-box; }
.rfq-summary .date-picker-trigger { min-height:48px; border:1px solid var(--field-border); border-radius:10px; padding:12px 14px; background:var(--surface); }
.rfq-summary .date-picker-trigger:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
.freight-form .date-picker-trigger { min-height:48px; border:1px solid var(--field-border); border-radius:10px; padding:12px 14px; background:var(--surface); }
.freight-form .date-picker-trigger:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
.date-picker-trigger:hover .date-picker-value[data-empty="true"] { color:var(--ink); }
.date-picker-value[data-empty="true"] { color:var(--slate); }
.date-picker-value { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; flex:1 1 auto; }
.date-picker-trigger:focus-visible { outline:2px solid var(--ink); outline-offset:3px; border-radius:4px; }
.date-picker-trigger svg { flex:0 0 auto; }
.date-picker-popover { position:absolute; z-index:60; top:calc(100% + 12px); inset-inline-start:0; width:min(320px, calc(100vw - 32px)); padding:16px; background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:0 18px 48px rgba(var(--ink-rgb),.22); color:var(--ink); transform-origin:top left; animation:popoverSlideIn 150ms cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.date-picker-popover.is-above { top:auto; bottom:calc(100% + 12px); transform-origin:bottom left; animation-name:popoverSlideInAbove; }
.date-picker--align-right .date-picker-popover { inset-inline-start:auto; inset-inline-end:0; transform-origin:top right; }
.date-picker-popover.is-flipped-x { inset-inline-start:auto; inset-inline-end:0; transform-origin:top right; }
.date-picker--align-right .date-picker-popover.is-flipped-x { inset-inline-start:0; inset-inline-end:auto; transform-origin:top left; }
.date-picker--align-right .date-picker-popover.is-above { transform-origin:bottom right; }
.date-picker-popover[hidden] { display:none; }
@keyframes popoverSlideIn { 0% { opacity:0; transform:translateY(-4px) scale(0.97); } 100% { opacity:1; transform:translateY(0) scale(1); } }
@keyframes popoverSlideInAbove { 0% { opacity:0; transform:translateY(4px) scale(0.97); } 100% { opacity:1; transform:translateY(0) scale(1); } }
.date-picker-calendar-head { display:grid; grid-template-columns:36px 1fr 36px; align-items:center; gap:8px; margin-bottom:12px; }
.date-picker-month { margin:0; text-align:center; font:600 15px/1.3 var(--font-heading); }
.date-picker-nav { appearance:none; border:1px solid var(--line); background:var(--surface); color:var(--ink); border-radius:8px; width:36px; height:36px; display:grid; place-items:center; cursor:pointer; }
.date-picker-nav:hover { background:var(--canvas); }
.date-picker-nav:focus-visible, .date-picker-day:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
.date-picker-weekdays, .date-picker-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); text-align:center; }
.date-picker-weekdays { margin-bottom:4px; color:var(--slate); font:500 11px/32px var(--font-mono); text-transform:uppercase; }
.date-picker-day { appearance:none; border:0; background:transparent; color:var(--ink); border-radius:9px; min-width:0; height:36px; font:500 13px/1 var(--font-body); cursor:pointer; }
.date-picker-foot { display:flex; justify-content:flex-end; margin-top:10px; padding-top:10px; border-top:1px solid var(--line); }
.date-picker-clear { appearance:none; border:0; background:transparent; color:var(--slate); font:600 13px/1 var(--font-body); text-decoration:underline; cursor:pointer; padding:6px 4px; }
.date-picker-clear:hover { color:var(--ink); }
/* Hover only on real day buttons (the blank other-month cells are spans). */
button.date-picker-day:hover:not(:disabled):not(.is-selected) { background:var(--yellow-tint); color:var(--ink); }
[data-theme="dark"] button.date-picker-day:hover:not(:disabled):not(.is-selected) { background:rgba(var(--yellow-rgb), .18); color:var(--ink); }
.date-picker-day.is-selected { background:var(--accent); color:var(--on-accent); font-weight:700; }
.date-picker-day.is-today:not(.is-selected) { box-shadow:inset 0 0 0 1px var(--line-strong); }
span.date-picker-day.is-outside { cursor:default; background:none; pointer-events:none; }
/* Dates before today: clearly unavailable but still readable in both themes. */
.date-picker-day:disabled { cursor:not-allowed; color:var(--muted); opacity:.75; }
.search-summary {
  background: var(--yellow-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-2);
  margin-bottom: var(--space-2);
  color: var(--ink);
  font-size: 14px;
}
.freight-layout {
  display: grid;
  /* minmax(0, …) lets the left column shrink so the scrollable vehicle chips
     don't push the 360px form off-screen on ~1000px-wide windows. */
  grid-template-columns: minmax(0, 1.05fr) 360px;
  gap: 32px;
  padding-top: 22px;
  padding-bottom: 40px;
}
@media (max-width:900px) { .freight-layout > aside { order:-1; } }
.freight-form {
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  padding: var(--space-2);
}
.freight-form .form-stack { gap: 8px; }
.freight-form .field-label { margin-bottom: 4px; }
.route-connector-group { position:relative; display:flex; flex-direction:column; gap:10px; padding:2px 0; }
.route-node { position:relative; display:flex; gap:12px; align-items:flex-start; }
.route-marker { display:flex; align-items:center; justify-content:center; flex:0 0 20px; width:20px; height:20px; margin-top:33px; position:relative; z-index:2; }
.route-marker__dot { width:13px; height:13px; border-radius:50%; border:2.5px solid var(--ink); background:var(--surface); box-sizing:border-box; }
.route-marker--destination .route-marker__dot { background:var(--yellow); border-color:var(--ink); box-shadow:0 0 0 2px rgba(var(--yellow-rgb),.3); }
.route-connector-line { position:absolute; left:9px; top:46px; bottom:36px; width:2px; background:repeating-linear-gradient(to bottom, var(--ink) 0, var(--ink) 5px, transparent 5px, transparent 10px); z-index:1; pointer-events:none; /* taste-skill-ignore: dashed timeline connector */ }
.route-node__content { flex:1; min-width:0; }
.freight-hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; margin-bottom: 28px; }
.freight-hero-grid .eyebrow { color: var(--slate); }
.vehicle-preview { aspect-ratio: 16 / 9; height: auto; width: 100%; border-radius: var(--radius-card); background-size: cover; background-position: center; }
/* FE-13: one fixed hero picture; below 1100 px it stacks under the heading, full width. */
@media (max-width: 1100px) { .freight-hero-grid { grid-template-columns: 1fr; } }
/* FE-13: all vehicle chips visible, wrapped onto more lines. */
.freight-layout .category-tabs, #freight-category-tabs { flex-wrap: wrap !important; overflow-x: visible !important; }
.not-found-panel {
  background: var(--surface);
  border: 1.5px solid var(--error);
  border-radius: 18px;
  padding: var(--space-4);
}
@media (max-width: 900px) {
  .freight-layout { grid-template-columns: minmax(0, 1fr); }
  .search-control, .input-control, .browse-search-input { font-size: 16px; }
}
.mobile-filter-bar { display: none; }
@media (max-width: 900px) {
  .mobile-filter-bar { display: block; margin-bottom: 20px; }
  #filters[data-filters-open="false"] { display: none; }
}
@media (max-width: 400px) {
  :root { --page-gutter: 16px; }
  .steps-band { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------- Page hero band (Contact / About) ---------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--inverse-bg);
  color: var(--on-inverse);
  padding: 56px 0 48px;
  margin-bottom: var(--space-4);
}
/* Same subtle-texture treatment as .steps-band on the homepage - reusing
   the existing map-texture asset instead of introducing a new visual. */
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../assets/map-texture.webp') center/cover;
  opacity: 0.1;
  mix-blend-mode: luminosity;
  pointer-events: none;
}
.page-about .page-hero::before {
  background-image: linear-gradient(90deg, rgba(var(--ink-rgb),.50) 0%, rgba(var(--ink-rgb),.48) 50%, rgba(var(--ink-rgb),.58) 100%), url('../assets/about-freight-equipment-v1.webp'); /* taste-skill-ignore: neutral scrim over photo */
  background-position: center 53%;
  opacity: 1;
  mix-blend-mode: normal;
}
.page-hero .container { position: relative; z-index: 1; }
.page-contact .page-hero::before {
  background-image: linear-gradient(90deg, rgba(var(--ink-rgb),.82) 0%, rgba(var(--ink-rgb),.65) 58%, rgba(var(--ink-rgb),.4) 100%), url('../assets/contact-freight-banner-v1.webp'); /* taste-skill-ignore: neutral scrim over photo */
  opacity: 1;
  mix-blend-mode: normal;
}
.page-about .about-statement {
  text-align: start;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}
.page-about .about-statement__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 860px;
  margin: 0 0 20px;
}
.page-about .about-statement__lead {
  max-width: 820px;
  margin: 0 0 36px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--slate);
}
.page-about .about-visual {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--ink);
}
.page-about .about-visual--photo {
  height: clamp(280px, 36vw, 460px);
}
.page-about .about-visual--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.page-about .about-visual--photo figcaption {
  position: absolute;
  inset-inline-start: 20px;
  bottom: 20px;
  padding: 9px 14px;
  border: 1px solid rgba(var(--on-inverse-rgb), .35);
  border-radius: 8px;
  background: rgba(var(--ink-rgb), .82);
  color: var(--on-inverse);
  font: 700 11px/1 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-about .about-visual--photo figcaption span:nth-child(2) {
  color: var(--on-inverse);
  font-size: 14px;
}
@media (max-width: 720px) {
  .page-contact .page-hero::before { background-position: 72% center; }
  .page-about .about-statement__lead { margin-bottom: 24px; font-size: 15px; }
  .page-about .about-visual--photo { height: clamp(220px, 45vw, 320px); }
  .page-about .about-visual--photo figcaption { inset-inline-start: 14px; bottom: 14px; padding: 7px 10px; font-size: 10px; }
}
.page-hero .eyebrow { color: var(--on-inverse-muted); }
.page-hero h1 { font-size: 34px; margin-top: 10px; color: var(--on-inverse); }
.page-hero p { margin-top: 10px; color: rgba(var(--on-inverse-rgb),.82); max-width: 620px; }

/* ---------------- Info cards (Contact) ---------------- */
.info-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-bottom: var(--space-3); }
.info-card {
  padding: var(--space-3);
  min-height: 160px;
  display: flex;
  flex-direction: column;
}
.info-card .icon-box {
  width: 44px; height: 44px; border-radius: var(--radius-button);
  background: var(--canvas); border: 1px solid var(--line); color: var(--ink); display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.info-card h3 { font-size: 17px; margin-bottom: 6px; font-weight: 700; }
.info-card p { margin: 0; font-size: 14px; color: var(--slate); line-height: 1.55; }
.info-card p strong { color: var(--ink); font-weight: 600; }
.info-card a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.info-card a:hover { color: var(--slate); }

.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-4); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.empty-state-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
@media (max-width:640px) {
  .empty-state-actions { align-items:stretch; flex-direction:column; }
}

/* ---------------- About: value grid & enterprise layout ---------------- */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.value-grid--2 { grid-template-columns: repeat(2, 1fr); }
.value-grid--4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.about-direction { margin: 0 0 var(--space-4); }
.value-card { padding: var(--space-3) var(--space-2); text-align: start; }
.value-card .icon-box {
  width: 44px; height: 44px; border-radius: var(--radius-button);
  background: var(--inverse-bg); color: var(--accent); display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.value-card h3 { font-size: 17px; margin-bottom: 6px; }
.value-card p { margin: 0; font-size: 14px; color: var(--slate); line-height: 1.6; }

/* About: Stat & KPI Cards */
.stat-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); margin: var(--space-3) 0; }
.stat-kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  text-align: start;
}
.stat-kpi-num {
  font-family: var(--font-heading);
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
[data-theme="light"] .stat-kpi-num {
  color: var(--brand-ink);
}
.stat-kpi-label {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.stat-kpi-desc {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.5;
  margin: 0;
}

/* About: Edge Banner Box */
.about-edge-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 48px);
  margin: var(--space-4) 0;
  position: relative;
  overflow: hidden;
}
.about-edge-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
}
.about-edge-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-4);
  align-items: center;
}

/* About: Client Logo / Pill Badges */
.client-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
}
.client-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

@media (max-width: 960px) {
  .stat-kpi-grid, .value-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .about-edge-grid { grid-template-columns: 1fr; gap: var(--space-3); }
}

@media (max-width: 720px) {
  .info-card-grid, .value-grid, .value-grid--2 { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .stat-kpi-grid, .value-grid--4 { grid-template-columns: 1fr; }
}

/* ---------------- Client sign in / sign up nav slot ---------------- */
.nav-account {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-inline-end: 4px;
}
.nav-signout {
  all: unset;
  font-size: 12px;
  color: var(--slate);
  text-decoration: underline;
  cursor: pointer;
}
.nav-signout:hover { color: var(--ink); }
.nav-client-auth { display: flex; align-items: center; gap: 6px; }

/* ---------------- Auth pages (login / signup) ---------------- */
.auth-shell {
  min-height: calc(100svh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-2);
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--space-4) var(--space-3) var(--space-3);
}
.auth-card h1 { font-size: 22px; margin: 10px 0 4px; }
.auth-card > p.text-muted { margin: 0 0 var(--space-3); font-size: 13px; }
.auth-card .btn-full { width: 100%; justify-content: center; }
.auth-switch {
  margin-top: var(--space-2);
  text-align: center;
  font-size: 13px;
  color: var(--slate);
}
.auth-switch a { color: var(--ink); font-weight: 600; text-decoration: underline; }
.auth-note {
  margin-top: var(--space-2);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

/* ---------------- Contact Map Tile ---------------- */
/* The map follows the site theme: a light map in light mode, the dark map in dark mode. */
.contact-map-tile {
  --map-bg: #ECEEE7;
  --map-grid: rgba(20, 21, 24, 0.06);
  --map-road: #141518;
  --map-route: var(--brand-yellow-dark);
  --map-pin-ring: #141518;
  --map-badge-bg: rgba(255, 255, 255, 0.94);
  --map-badge-border: rgba(20, 21, 24, 0.14);
  --map-text: #141518;
  --map-text-muted: rgba(20, 21, 24, 0.68);
  --map-action: #8A6400;
  position: relative;
  display: block;
  min-height: 180px;
  background: var(--map-bg);
  color: var(--map-text);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  border: 1.5px solid var(--border);
  box-shadow: 0 4px 16px rgba(var(--scrim-rgb),.12);
  transition: transform 80ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .contact-map-tile:hover {
    border-color: rgba(var(--yellow-rgb),.4);
    box-shadow: 0 10px 30px rgba(var(--ink-rgb),.28);
  }
}
[data-theme="dark"] .contact-map-tile {
  --map-bg: var(--inverse-bg);
  --map-grid: rgba(255, 255, 255, 0.06);
  --map-road: #FFFFFF;
  --map-route: var(--yellow);
  --map-pin-ring: var(--ink);
  --map-badge-bg: rgba(20, 21, 24, 0.92);
  --map-badge-border: rgba(255, 255, 255, 0.22);
  --map-text: var(--on-inverse);
  --map-text-muted: rgba(var(--on-inverse-rgb), 0.72);
  --map-action: var(--yellow);
}
.contact-map-tile:active {
  transform: translateY(1px);
  transition-duration: 80ms;
}
.contact-map-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.contact-map-vector {
  width: 100%;
  height: 100%;
  display: block;
}
.contact-map-overlay {
  position: relative;
  z-index: 1;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}
.contact-map-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--map-badge-bg);
  border: 1px solid var(--map-badge-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--map-text);
  width: fit-content;
}
.contact-map-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 8px var(--yellow);
}
.contact-map-coords {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--map-text-muted);
  margin-top: auto;
  padding-top: 14px;
  letter-spacing: 0.04em;
}
.contact-map-action {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--map-action);
  margin-top: 4px;
}

.footer-copy p { margin:0; }

/* ---------------- 3-Tier Equipment Rental Hierarchy & Category Showcase ---------------- */
.category-showcase-wrap {
  margin-top: 12px;
}
.category-showcase-header {
  margin-bottom: 24px;
}
.category-showcase-header h2 {
  font-size: 24px;
  margin-bottom: 6px;
}
.category-showcase-header p {
  margin: 0;
  font-size: 15px;
}
.category-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}
.category-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}
.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand, #FFCC00);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
}
.category-card-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
}
.category-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.category-card:hover .category-card-photo img {
  transform: scale(1.05);
}
.category-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.category-card-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 6px;
}
.category-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}
.category-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.category-card-count {
  font-size: 12px;
  font-weight: 600;
  color: #B45309;
  background: rgba(245, 158, 11, 0.14);
  padding: 3px 10px;
  border-radius: 20px;
}
[data-theme="dark"] .category-card-count {
  color: #FBBF24;
  background: rgba(245, 158, 11, 0.2);
}
.category-card-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 4px;
}
.category-card:hover .category-card-cta {
  color: var(--brand, #FFCC00);
}

/* Compact layout when only a few categories exist — avoids a lonely oversized card. */
.category-showcase--few .category-showcase-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 720px;
}
.category-card--compact .category-card-photo {
  aspect-ratio: 4 / 3;
  max-height: 200px;
}
.category-card--compact .category-card-body {
  padding: 14px 16px;
}
.category-card--compact .category-card-title {
  font-size: 17px;
  margin-bottom: 4px;
}

/* Category View Header & Breadcrumbs */
.browse-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
}
.browse-breadcrumbs a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.browse-breadcrumbs a:hover {
  text-decoration: underline;
}
.browse-breadcrumbs .sep {
  color: var(--border-strong);
}
.browse-breadcrumbs .current {
  color: var(--text-muted);
  font-weight: 500;
}
.category-view-banner {
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.category-view-banner h2 {
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--text);
}
.category-view-banner p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Rental Configuration Panel & Coordination Notice (Dark & Light theme safe) */
.rental-config-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin: 0;
  padding: 14px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.rental-config-panel .form-field {
  display: flex;
  flex-direction: column;
}
.rental-config-panel .form-field--full {
  grid-column: 1 / -1;
}
.rental-config-panel label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 4px;
}
.rental-config-panel .form-control {
  width: 100%;
  height: 38px;
  font-weight: 500;
  font-size: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background-color: var(--field-bg);
  color: var(--text);
  margin-bottom: 0;
  padding: 0 10px;
  box-sizing: border-box;
}
.rental-config-panel textarea.form-control {
  height: auto;
  min-height: 44px;
  max-height: 72px;
  padding: 6px 10px;
  line-height: 1.35;
}
.rental-config-panel .date-picker-trigger {
  height: 38px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rental-config-panel .form-control:focus {
  outline: 2px solid var(--brand, #FFCC00);
  border-color: var(--brand, #FFCC00);
}
@media (max-width: 480px) {
  .rental-config-panel { grid-template-columns: 1fr; }
  .rental-config-panel .form-field { grid-column: 1 / -1; }
}
/* Prevent long unbroken text from overflowing layout containers, cards and tables */
.rfq-item, .rfq-item-body, .orders-card, .table td, .table th, .detail-block, .remarks-text {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.detail-steps {
  margin-top: 20px !important;
  padding: 16px 20px !important;
  gap: 16px !important;
}

/* Contact Form 2-Column Grid (CT-1) */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.contact-field-label {
  display: block;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
  margin-bottom: 5px;
}
.contact-form-grid .form-field--full {
  grid-column: 1 / -1;
}
.contact-form-grid .input-control {
  min-height: 42px;
  height: 42px;
  padding: 8px 12px;
  font-size: 15px;
  border-radius: 8px;
}
.contact-form-grid textarea.input-control {
  height: auto;
  min-height: 56px;
  max-height: 90px;
  padding: 8px 12px;
  font-size: 15px;
}
@media (max-width: 900px) {
  .contact-form-grid .input-control,
  .contact-form-grid textarea.input-control {
    font-size: 16px; /* Prevents iOS Safari auto-zoom on input focus */
    min-height: 44px;
    height: 44px;
  }
}
@media (max-width: 600px) {
  .contact-form-grid { grid-template-columns: 1fr; }
}
.contact-info-col {
  display: flex;
  flex-direction: column;
}
.contact-info-col .info-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 0;
}
@media (min-width: 601px) and (max-width: 900px) {
  .contact-info-col .info-card-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 24px;
  }
}
/* Contact: 2-column balanced layout on desktop (>900px).
   Left column (Headquarters + Direct Contact) stretches to match the form card height,
   with cards distributing space evenly. */
@media (min-width: 901px) {
  .contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: var(--space-4, 32px);
    align-items: stretch;
  }
  .contact-info-col .info-card-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    margin-bottom: 0;
  }
  .contact-info-col .info-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 28px;
    box-sizing: border-box;
  }
  .contact-form-card {
    display: flex;
    flex-direction: column;
    padding: 24px 28px;
    box-sizing: border-box;
  }
  .contact-form-card .contact-form-grid {
    display: grid;
    gap: 14px 16px;
  }
  .contact-message-field {
    display: flex;
    flex-direction: column;
  }
  .contact-message-field textarea.input-control {
    min-height: 96px;
    resize: vertical;
  }
}
.coordination-callout {
  margin: 16px 0 20px;
  padding: 14px 18px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
}
.coordination-callout svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #D97706;
}
[data-theme="dark"] .coordination-callout svg {
  color: #FBBF24;
}
.coordination-callout-title {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}
.coordination-callout-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Keep wishlist control glyphs legible over both light and dark photography. */
.wishlist-toggle {
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-ink);
}
.wishlist-toggle svg { stroke: var(--brand-ink); }

.card-badge--sample {
  background: #FFF6D6;
  color: #513D00;
  border: 1px solid #E6AF00;
}
.sample-preview-note {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

/* Saved items are off for launch: no card has a save button yet, so the
   header heart and menu link are hidden. Remove this rule to bring them back. */
a[href="wishlist.html"] { display: none !important; }

/* Equipment rental page: full width (the flex body otherwise shrinks the
   page to its content), a filter sidebar, and at least 4 cards a row. */
.browse-layout.container { width: 100%; }
.browse-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.browse-filters { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card, 16px); padding: 16px 18px; }
.browse-filters[hidden] { display: block; visibility: hidden; }
.browse-filters-summary { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; list-style: none; }
.browse-filters-summary::-webkit-details-marker { display: none; }
.browse-filters-summary h2 { font-size: 16px; margin: 0; }
.browse-filters-clear { appearance: none; border: 0; background: none; color: var(--slate); font: 600 13px/1 var(--font-body); text-decoration: underline; cursor: pointer; padding: 4px; }
.browse-filter-group { border: 0; margin: 12px 0 0; padding: 0; }
.browse-filter-group legend { font: 600 11px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--slate); margin-bottom: 8px; padding: 0; }
.browse-filter-option { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; color: var(--ink); cursor: pointer; }
.browse-filter-option input { width: 18px; height: 18px; accent-color: var(--ink); }
/* Equipment grid: 4 per row at 1280+, 3 at 1024, 2 below (handoff 30 Oct). */
.browse-body .category-showcase-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1279px) { .browse-body .category-showcase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .browse-body .category-showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.browse-body .category-showcase--few .category-showcase-grid { max-width: none; }
/* 7 Nov meeting: one page scroll. The grid is part of the page (no inner
   scroll pane, so the last row and the footer are reached with the wheel);
   the filter stays in view beside it on desktop. The results keep a minimum
   height so picking a small group doesn't pull the footer up (31 Oct call). */
@media (min-width: 901px) {
  .browse-body #results { min-height: calc(100vh - 200px); }
  /* 11 Nov: the search bar stays pinned under the header too, so only the
     machines scroll. The canvas-coloured ring hides cards passing beneath it;
     the filter sits pinned below the bar. */
  .browse-search-bar { position: sticky; top: 73px; z-index: 20; box-shadow: 0 0 0 12px var(--canvas); }
  .browse-search-bar:focus-within { box-shadow: 0 0 0 4px rgba(var(--yellow-rgb), 0.28), 0 0 0 12px var(--canvas); }
  .browse-filters { top: 147px; max-height: calc(100vh - 163px); overflow-y: auto; overscroll-behavior: contain; }
  .browse-filters-summary { pointer-events: none; }
  .browse-filters-clear { pointer-events: auto; }
  .browse-filters-content { display: block !important; }
}
@media (max-width: 900px) {
  .browse-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .browse-filters { position: static; padding: 0; border: 0; background: transparent; }
  .browse-filters-details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card, 16px); }
  .browse-filters-summary { height: 44px; padding: 0 16px; cursor: pointer; margin-bottom: 0; }
  .browse-filters-content { padding: 12px 16px 16px; border-top: 1px solid var(--border); }
  .browse-body #results { min-height: 600px; }
}

/* Request page while loading: grey placeholder blocks, no error styling. */
.detail-skeleton { display: grid; gap: 14px; }
.skeleton-block { background: var(--surface-2, #F6F6F3); border-radius: 12px; animation: skeletonPulse 1.4s ease-in-out infinite; }
.skeleton-photo { aspect-ratio: 4 / 3; max-height: 420px; }
.skeleton-line { height: 18px; width: 70%; }
.skeleton-line--short { width: 40%; }
.skeleton-field { height: 48px; }
.skeleton-button { height: 52px; margin-top: 8px; }
@keyframes skeletonPulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .skeleton-block { animation: none; } }
[data-theme="dark"] .skeleton-block { background: rgba(255, 255, 255, .07); }

/* Dark mode: muted badges and outline buttons use theme colours, never the
   light-mode fallbacks. */
[data-theme="dark"] .status-draft { color: var(--text-muted); }
[data-theme="dark"] .btn-outline { background: var(--surface); }
[data-theme="dark"] .btn:disabled,
[data-theme="dark"] .btn-outline:disabled { background: var(--surface-2); color: var(--text-muted); }

/* Dark mode: stat/KPI icon tiles are styled inline with light pastels; give
   them the raised surface and readable icon colour. Filter dropdown options too. */
[data-theme="dark"] .stat-card-icon { background: var(--surface-2) !important; color: var(--text) !important; }
[data-theme="dark"] .admin-table .filter-input option { background: var(--surface); color: var(--text); }

/* Small button everywhere (it used to exist only under .card-actions). */
body:not(.admin-page) .btn.btn-sm { min-height:36px; height:36px; padding:0 14px; font-size:13px; }

/* Equipment page: products grouped under their group heading (handoff 28). */
.browse-group + .browse-group { margin-top: 32px; }
.browse-group-title { font-size: 20px; margin: 0 0 14px; }
.category-card-group { display: inline-block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); margin-bottom: 4px; }
.category-card-cta { display: inline-block; margin-top: 8px; font-weight: 600; font-size: 14px; color: var(--ink); }

/* Freight: one photo (the big picture follows the vehicle), a slim info strip
   under the tabs, and the vehicle name captioned on the picture. */
.freight-type-card--strip { padding: 18px 22px; }
.freight-type-card--strip .freight-type-card__copy p { margin-bottom: 12px; }
.freight-chips { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.freight-chip-group { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.freight-chip-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--slate); margin-right: 2px; }
.freight-chip { display: inline-flex; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); font-size: 13px; font-weight: 600; color: var(--ink); }
.vehicle-preview { position: relative; transition: opacity .25s ease; }
.vehicle-preview.is-swapping { animation: vehicle-fade .35s ease; }
@keyframes vehicle-fade { from { opacity: .35; } to { opacity: 1; } }
.vehicle-caption { position: absolute; left: 16px; bottom: 16px; padding: 7px 14px; border-radius: 999px; background: rgba(17, 17, 17, .72); color: #fff; font: 700 14px/1.2 var(--font-heading); backdrop-filter: blur(4px); }
@media (prefers-reduced-motion: reduce) { .vehicle-preview.is-swapping { animation: none; } }

/* Desktop scale (2 Nov audit, 31 Oct call "zoom out"): the site read as
   zoomed in on laptops (18px body, 79px header, 48px buttons). From 861px up
   everything steps down ~12%; phones keep their sizes. */
@media (min-width: 861px) {
  :root {
    --type-display: 700 44px/1.02 var(--font-heading);
    --type-heading: 600 28px/1.15 var(--font-heading);
    --type-body: 400 16px/1.6 var(--font-body);
    --type-mono: 400 13px/1.35 var(--font-mono);
  }
  .site-header__row { min-height: 60px; gap: 28px; }
  .site-header .logo-img { height: 34px; }
  .primary-nav a { font-size: 14px; padding: 19px 0 17px; }
  .btn { min-height: 40px; padding: 9px 20px; font-size: 14px; }
  .input-control { min-height: 42px; padding: 9px 12px; }
  .hero h1 { font-size: clamp(30px, 5.5vw, 56px); }
  .page-hero h1 { font-size: 30px; }
  .browse-heading h1 { font-size: clamp(28px, 3.4vw, 34px); }
  .detail-layout { padding-top: 18px; gap: 32px; }
  /* Request page: the photo no longer fills the screen. */
  .detail-hero { aspect-ratio: 16 / 9; max-height: 400px; }
  .detail-hero img { height: 100%; }
}

/* Quote hub tab row: shared by cart.html (Quote list) and orders.html (My requests). */
.orders-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.orders-tabs[hidden] { display: none; }
nav.orders-tabs { margin-top: 20px; }
.orders-tabs .orders-tab-link { text-decoration: none; }

/* Customer account menu (FE-50) */
.nav-user-chip--menu { position:relative; padding:3px 6px 3px 12px; }
.nav-user-chip--menu .nav-user-btn { all:unset; display:inline-flex; align-items:center; gap:7px; color:var(--ink); font-family:var(--font-heading); font-size:13.5px; font-weight:600; white-space:nowrap; cursor:pointer; padding:6px 4px; border-radius:6px; }
.nav-user-chip--menu .nav-user-btn:focus-visible { outline:2px solid var(--ink); outline-offset:1px; }
.nav-user-caret { color:var(--slate); }
.nav-user-menu { position:absolute; top:calc(100% + 6px); inset-inline-end:0; min-width:200px; background:var(--surface); border:1px solid var(--line-strong); border-radius:10px; box-shadow:0 12px 32px rgba(0,0,0,.12); padding:6px; z-index:200; display:flex; flex-direction:column; }
.nav-user-menu[hidden] { display:none; }
.nav-user-menu a, .nav-user-menu button { all:unset; display:block; padding:9px 12px; border-radius:6px; font-size:14px; color:var(--ink); cursor:pointer; }
.nav-user-menu a:hover, .nav-user-menu button:hover, .nav-user-menu a:focus-visible, .nav-user-menu button:focus-visible { background:var(--canvas); }
.nav-user-menu-divider { height:1px; background:var(--line); margin:4px 0; }
/* Company profile page (FE-49) */
.profile-shell { max-width: 960px; margin: 32px auto 64px; }
.profile-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  margin-bottom: 24px;
}
.profile-user-info { display: flex; align-items: center; gap: 16px; }
.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--inverse-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.profile-user-titles h1 { font-size: 22px; margin: 0 0 4px; }
.profile-badge-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--canvas);
  color: var(--slate);
  border: 1px solid var(--line);
}
.profile-badge--active { color: var(--success); }
.profile-badge--active::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

.profile-actions-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); margin: 0 0 32px; align-items: stretch; }
@media (max-width: 768px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-header-card { flex-direction: column; align-items: flex-start; }
}

.profile-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
}
.profile-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.profile-card-head .icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--canvas);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-card-head h2 { font-size: 17px; margin: 0; font-weight: 700; color: var(--ink); }

.profile-facts { display: flex; flex-direction: column; gap: 14px; margin: 0; flex: 1; }
.profile-fact-row { display: flex; flex-direction: column; gap: 2px; }
.profile-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate); font-weight: 600; }
.profile-facts dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); overflow-wrap: break-word; }

.profile-card-foot {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.profile-card-foot a {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.profile-card-foot a:hover { color: var(--accent); }
.profile-card .auth-error:empty { display:none; }
.profile-ok { margin:0 0 12px; }
.profile-note { font-size:13px; color:var(--slate); margin:14px 0 0; line-height:1.5; }
.profile-ok { color:var(--success); font-weight:600; }

/* Equipment request page: same layout as the freight page - title and
   description beside the photo, then options, then the three steps. */
.detail-hero-grid { display:grid; grid-template-columns:1.15fr 1fr; gap:32px; align-items:center; margin:8px 0 28px; }
.detail-hero-text #detail-title:not(.sr-only) { font-size:clamp(28px, 3.4vw, 38px); line-height:1.08; margin:0 0 12px; }
.detail-description { font-size:15px; line-height:1.6; margin:0; }
.detail-layout .detail-hero-grid .detail-hero { aspect-ratio:16 / 9; height:auto; max-height:none; width:100%; }
.detail-layout .detail-hero-grid .detail-hero img { height:100%; }
.detail-options-label { margin:0 0 14px; }
.detail-steps { margin-top:28px; }
.detail-steps::before { background:linear-gradient(rgba(var(--scrim-rgb),.80),rgba(var(--scrim-rgb),.84)),url('../assets/equipment-rental-excavator-v1.webp') center 50%/cover no-repeat; }
@media (max-width:1100px) { .detail-hero-grid { grid-template-columns:1fr; gap:20px; } }
/* Options card (chips from the product's specs) and other machines in the group: real content
   that brings the left column level with the request rail. */
.detail-options { margin: 0; }
.detail-options .freight-type-card__copy p { min-height: 0; margin-bottom: 10px; }
.detail-options + .detail-steps { margin-top: 20px; }
.detail-related { margin-top: 28px; }
.detail-related h2 { font-size: 18px; margin: 0 0 12px; }
.detail-related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .detail-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.detail-related-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card, 16px); color: var(--ink); text-decoration: none; transition: border-color .15s ease; }
.detail-related-card:hover { border-color: var(--ink); }
.detail-related-card:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.detail-related-photo { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: var(--canvas); }
.detail-related-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.detail-related-name { font-weight: 600; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.detail-related-cta { margin-top: auto; font-size: 12.5px; font-weight: 600; color: var(--slate); }

/* Freight vehicle chips: one row on desktop at every width. Chips share the
   row; a long name wraps inside its chip instead of pushing a chip down. */
@media (min-width:1041px) {
  .freight-layout .category-tabs, #freight-category-tabs {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 48px), transparent 100%);
    mask-image: linear-gradient(to right, black calc(100% - 48px), transparent 100%);
  }
  #freight-category-tabs button { flex:0 0 auto; justify-content:center; text-align:center; white-space:nowrap; line-height:1.2; padding:6px 12px; font-size:13.5px; border-radius:14px; min-width:0; }
}
@media (min-width:1041px) and (max-width:1199px) { #freight-category-tabs button { font-size:12.5px; padding:6px 8px; } }

/* ---- Handoff 116 RL-1 / 117 NB-1..4: one request rail, no blinking ---- */
/* NB-1: storefront page changes keep the header and footer in place (Chrome/Edge). */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  .site-footer { view-transition-name: site-footer; }
  ::view-transition-group(*) { animation-duration: .12s; }
}
/* NB-2: reserve the header's right side so signing-in state never changes its width on desktop. */
.header-actions { min-height: 44px; }
@media (min-width: 1041px) {
  html[data-auth="in"] .nav-client-auth { min-width: 150px; display: flex; justify-content: flex-end; }
  html[data-auth="out"] .nav-client-auth { min-width: 92px; display: flex; justify-content: flex-end; }
}
@media (max-width: 1040px) {
  .nav-client-auth { display: none !important; }
}
/* NB-3 / NB-4: fixed heights where content is swapped or filled after load. */
#freight-category-tabs { min-height: 48px; }
#freight-results { min-height: 150px; }
.freight-specs.is-empty { height: 0; margin-top: -10px; overflow: hidden; }
.vehicle-preview, .vehicle-preview.is-swapping { transition: none; animation: none; }
#results[aria-busy="true"] { min-height: 900px; }
/* RL-1: the freight card matches the equipment request card. */
.freight-layout { grid-template-columns: minmax(0, 1fr) clamp(420px, 32vw, 520px); gap: clamp(24px, 2.5vw, 36px); padding-top: 16px; align-items: start; }
.freight-layout > aside { position: sticky; top: 80px; }
.freight-form { border-radius: 16px; padding: 16px 18px; }
.quote-rail .field-label,
.rental-config-panel .field-label,
.freight-form .field-label {
  font: 700 11px/1.2 var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.freight-form h2 { margin-bottom: 4px; }
#freightRequestForm { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
#freightRequestForm > * { min-width: 0; max-width: 100%; }
#freightRequestForm > .route-connector-group, #freightRequestForm > #freightSpecs, #freightRequestForm > button, #freightRequestForm > p { grid-column: 1 / -1; }
#freightSpecs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
#freightSpecs > * { min-width: 0; max-width: 100%; }
@media (max-width: 900px) {
  .freight-layout { grid-template-columns: minmax(0, 1fr); }
  .freight-layout > aside { position: static; }
  #freightRequestForm, #freightSpecs { grid-template-columns: 1fr; }
}
/* NB-3/NB-4 (cont.): browse filters keep their column while they load; quote list keeps its height. */
.browse-filters[hidden] { display: block; visibility: hidden; }
#rfq-content { min-height: 560px; }

/* KASPER_FLAGS.wishlist off: no Saved entry points (header icon, menus, links). */
html[data-wishlist="off"] a[href="wishlist.html"],
html[data-wishlist="off"] a[href="/wishlist.html"] { display: none !important; }

/* QA 13 Nov: request rails show one field per row on both the equipment and the freight card.
   Two columns left half-empty rows (Working height, Deck length) and cut select text on phones. */
.rental-config-panel,
#freightRequestForm,
#freightSpecs { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rental-config-panel .form-field,
#freightSpecs > * { grid-column: 1 / -1; }
/* The rail is already the bordered card; the equipment form no longer sits in a second box. */
.rental-config-panel { padding: 0; background: none; border: 0; border-radius: 0; }
/* One control height on both rails. */
.rental-config-panel .form-control,
.rental-config-panel .date-picker-trigger,
.freight-form select,
.freight-form .date-picker-trigger { height: 44px; min-height: 44px; }
.freight-form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]) { height: 44px; min-height: 44px; }
.rental-config-panel textarea.form-control { height: auto; min-height: 72px; max-height: 120px; }
/* Freight: vehicle capacity dropdown smoothly indicates loading when changing vehicles;
   universal fields (route, cargo, date) remain visible immediately so the user can begin typing. */
#freightRequestForm.is-syncing #vehicleCapacity:disabled { opacity: 0.6; }
/* Same text size in both rails; 16px on phones so iOS doesn't zoom into the field. */
.rental-config-panel .form-control,
.rental-config-panel .date-picker-trigger,
.freight-form select,
.freight-form input,
.freight-form .date-picker-trigger { font-size: 15px; }
@media (max-width: 900px) {
  .rental-config-panel .form-control,
  .rental-config-panel .date-picker-trigger,
  .freight-form select,
  .freight-form input,
  .freight-form .date-picker-trigger { font-size: 16px; }
}
/* Request page: the breadcrumb fills in after load (0 → 18px) and the rail grows from empty to its
   full one-field-per-row height; reserve both so the content column and footer don't move. */
.detail-content > .breadcrumbs { min-height: 18px; }
@media (min-width: 901px) {
  /* the aside wrapper, not the bordered card inside it, so no empty space shows in the card */
  .detail-layout > aside#quote-rail { min-height: 700px; }
}
/* A sticky rail taller than the screen would hide its button. On short screens it scrolls with the
   page instead (not overflow:auto, which would clip the date picker that opens inside the rail). */
@media (min-width: 901px) and (max-height: 860px) {
  .quote-rail,
  .freight-layout > aside { position: static; }
}

/* Kasper Tech / telematics page temporarily hidden */
a[href*="telematics.html"],
a[href*="/telematics"] {
  display: none !important;
}



/* ---------------- For vendors page (vendors.html) ---------------- */
.page-vendors .page-hero::before {
  background-image: linear-gradient(90deg, rgba(var(--ink-rgb),.86) 0%, rgba(var(--ink-rgb),.70) 58%, rgba(var(--ink-rgb),.45) 100%), url('../assets/about-mission-fleet.webp'); /* taste-skill-ignore: neutral scrim over photo */
  background-position: center 55%;
  background-size: cover;
  opacity: 1;
  mix-blend-mode: normal;
}
.vendor-hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:24px; }
.page-hero p.vendor-hero-note { font-size:13px; margin-top:12px; color:rgba(var(--on-inverse-rgb),.7); }
.vendor-btn-dark { background:rgba(255,255,255,.06); color:#FFFFFF; border:1.5px solid rgba(255,255,255,.38); }
.vendor-btn-dark:hover { background:rgba(255,255,255,.12); color:#FFFFFF; border-color:rgba(255,255,255,.62); }
.vendor-btn-dark:focus-visible { outline:3px solid var(--brand-yellow, #FFC400); outline-offset:3px; }
.vendor-type-grid { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:var(--space-2); }
.vendor-type-card { padding:var(--space-3) var(--space-2); }
.vendor-type-card h3 { font-size:17px; margin-bottom:6px; }
.vendor-type-card > p { margin:0 0 14px; font-size:14px; color:var(--slate); line-height:1.6; }
.vendor-type-list { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); column-gap:16px; margin:0; }
.vendor-ready { display:grid; grid-template-columns:1fr 1fr; gap:var(--space-4); padding:var(--space-4); align-items:start; }
.page-vendors .cta-band { background:var(--inverse-bg); color:var(--on-inverse); border:1px solid var(--border); border-radius:24px; padding:clamp(36px, 4.5vw, 64px); display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:24px; }
.page-vendors .cta-band h2 { color:var(--on-inverse); font-size:clamp(26px, 2.4vw, 36px); }
.page-vendors .cta-band p { color:var(--on-inverse-muted); margin:8px 0 0; font-size:16px; }
@media (max-width: 900px) {
  .page-vendors .steps-band { grid-template-columns:minmax(0, 1fr); }
  .vendor-ready { grid-template-columns:1fr; padding:var(--space-3); }
  .page-vendors .cta-band { align-items:flex-start; }
}
@media (max-width: 720px) {
  .vendor-type-grid { grid-template-columns:1fr; }
}

/* ---------------- Vendor registration (vendor-register.html) ---------------- */
.vreg { display:grid; grid-template-columns:260px minmax(0, 1fr); gap:var(--space-3); align-items:start; }
.vr-side { position:sticky; top:88px; padding:20px; }
.vr-steps { list-style:none; margin:0 0 16px; padding:0; display:flex; flex-direction:column; gap:4px; }
.vr-steps li { display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:10px; color:var(--slate); font-weight:600; font-size:14px; }
.vr-steps li .vr-n { width:26px; height:26px; border-radius:50%; border:1.5px solid var(--line); display:grid; place-items:center; font-size:12px; font-weight:700; flex:none; }
.vr-steps li.done { color:var(--ink); cursor:pointer; }
.vr-steps li.done .vr-n { background:var(--brand-yellow); border-color:var(--brand-yellow); color:#141518; }
.vr-steps li.active { background:var(--surface-2); color:var(--ink); }
.vr-steps li.active .vr-n { border-color:var(--ink); }
.vr-back { font-size:13px; font-weight:600; color:var(--slate); text-decoration:underline; }
.vr-main { padding:clamp(20px, 3.5vw, 40px); }
.vr-progress { height:4px; background:var(--line); border-radius:4px; overflow:hidden; margin-bottom:28px; }
.vr-progress i { display:block; height:100%; width:0; background:var(--brand-yellow); transition:width .35s ease; }
.vr-eyebrow { font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--slate); }
.vreg h2 { font-size:24px; margin:6px 0 6px; }
.vr-sub { color:var(--slate); margin:0 0 24px; }
section.vr-step { display:none; }
section.vr-step.on { display:block; }
.vr-field { margin-bottom:20px; }
.vr-field[hidden] { display:none; }
.vr-q { display:block; font-weight:600; margin-bottom:8px; font-size:15px; color:var(--ink); }
.vr-q .vr-req { color:var(--danger); margin-inline-start:2px; }
.vr-q small { font-weight:400; color:var(--slate); margin-inline-start:6px; }
.vr-grid2 { display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
.vreg input[type=text], .vreg input[type=email], .vreg input[type=tel], .vreg input[type=number], .vreg select {
  width:100%; min-height:48px; font:inherit; font-size:15px; color:var(--ink); background:var(--surface); border:1px solid var(--field-border); border-radius:var(--radius-button); padding:12px 14px; }
.vreg input:focus-visible, .vreg select:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
.vreg .invalid input, .vreg .invalid select, .vreg .invalid .vr-drop { border-color:var(--danger) !important; }
.vr-err { color:var(--danger); font-size:13px; margin-top:6px; display:none; }
.vreg .invalid .vr-err { display:block; }
.vr-phone { display:flex; }
.vr-phone span { display:grid; place-items:center; padding:0 14px; border:1px solid var(--field-border); border-inline-end:0; border-radius:var(--radius-button) 0 0 var(--radius-button); background:var(--surface-2); font-weight:600; color:var(--slate); }
.vreg .vr-phone input { border-radius:0 var(--radius-button) var(--radius-button) 0; }
.vr-chips { display:flex; flex-wrap:wrap; gap:8px; }
.vr-chip { position:relative; }
.vr-chip input { position:absolute; opacity:0; pointer-events:none; }
.vr-chip span { display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:9px 14px; border:1px solid var(--line); border-radius:999px; background:var(--surface); color:var(--ink); cursor:pointer; font-weight:500; font-size:14px; user-select:none; }
.vr-chip span:hover { border-color:var(--field-border); }
.vr-chip input:checked + span { background:var(--emphasis); border-color:var(--ink); color:var(--on-emphasis); }
.vr-chip input:checked + span::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--brand-yellow); }
.vr-chip input:focus-visible + span, .vr-opt input:focus-visible + span { outline:2px solid var(--ink); outline-offset:2px; }
.vr-link { background:none; border:0; padding:0; font:inherit; font-size:13px; color:var(--ink); text-decoration:underline; cursor:pointer; margin-top:8px; }
.vr-cards { display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; }
.vr-cards.two { grid-template-columns:repeat(2, 1fr); max-width:420px; }
.vr-opt { position:relative; }
.vr-opt input { position:absolute; opacity:0; }
.vr-opt span { display:block; height:100%; padding:16px; border:1px solid var(--line); border-radius:12px; background:var(--surface); cursor:pointer; }
.vr-opt span b { display:block; font-size:15px; color:var(--ink); }
.vr-opt span em { font-style:normal; color:var(--slate); font-size:13px; }
.vr-opt input:checked + span { border-color:var(--ink); box-shadow:inset 0 0 0 1px var(--ink); background:var(--brand-yellow-tint); }
[data-theme="dark"] .vr-opt input:checked + span { background:rgba(255,196,0,.12); }
.vr-drop { border:1.5px dashed var(--field-border); border-radius:12px; background:var(--surface); padding:18px; display:flex; align-items:center; gap:14px; cursor:pointer; }
.vr-drop:hover, .vr-drop.over { border-color:var(--ink); }
.vr-drop .vr-ic { width:42px; height:42px; border-radius:10px; background:var(--surface-2); color:var(--ink); display:grid; place-items:center; flex:none; font-weight:700; }
.vr-drop .vr-t b { display:block; color:var(--ink); word-break:break-all; }
.vr-drop .vr-t em { font-style:normal; color:var(--slate); font-size:13px; }
.vr-drop.has { border-style:solid; border-color:var(--success); }
.vr-drop.has .vr-ic { background:var(--success-tint); color:var(--success); }
.vr-drop input { display:none; }
.vr-x { margin-inline-start:auto; background:none; border:0; font-size:20px; color:var(--slate); cursor:pointer; padding:4px 8px; }
.vr-decl { display:flex; gap:12px; align-items:flex-start; padding:14px 16px; border:1px solid var(--line); border-radius:12px; background:var(--surface); margin-bottom:10px; cursor:pointer; font-size:14px; color:var(--ink); }
.vr-decl input { width:20px; height:20px; accent-color:var(--ink); margin-top:1px; flex:none; }
.vr-decl.invalid { border-color:var(--danger); }
.vr-nav { display:flex; gap:12px; align-items:center; margin-top:32px; }
.vr-nav .btn:disabled { opacity:.6; cursor:wait; }
.vr-review { border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.vr-grp { padding:16px 20px; border-bottom:1px solid var(--line); }
.vr-grp:last-child { border-bottom:0; }
.vr-gh { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.vr-gh b { font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink); }
.vr-review dl { display:grid; grid-template-columns:200px 1fr; gap:6px 16px; margin:0; font-size:14px; }
.vr-review dt { color:var(--slate); }
.vr-review dd { margin:0; word-break:break-word; color:var(--ink); }
.vr-alert { padding:12px 16px; border-radius:10px; background:var(--danger-tint); color:var(--danger); font-size:14px; margin-top:16px; display:none; }
.vr-hp { position:absolute; left:-9999px; }
.vr-done { max-width:620px; }
.vr-done-hero { background:var(--inverse-bg); color:var(--on-inverse); border-radius:18px; padding:32px 28px 28px; }
.vr-mk { width:64px; height:64px; margin-bottom:20px; }
.vr-mk svg { width:100%; height:100%; overflow:visible; }
.vr-done .vr-eyebrow { color:var(--brand-yellow); }
.vreg .vr-done h2 { color:var(--on-inverse); font-size:28px; }
.vr-done-hero p { color:var(--on-inverse-muted); margin:0; max-width:440px; }
.vr-ref { display:flex; align-items:center; gap:12px; margin-top:22px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.14); border-radius:12px; padding:12px 14px; }
.vr-ref small { display:block; color:var(--on-inverse-muted); font-size:11px; letter-spacing:.1em; text-transform:uppercase; font-weight:700; }
.vr-ref b { font-size:20px; letter-spacing:.06em; color:var(--brand-yellow); white-space:nowrap; }
.vr-copy { margin-inline-start:auto; background:var(--brand-yellow); color:#141518; border:0; border-radius:8px; padding:9px 14px; font:inherit; font-weight:700; font-size:13px; cursor:pointer; }
.vr-next { margin-top:24px; }
.vr-next h3 { font-size:13px; letter-spacing:.08em; text-transform:uppercase; color:var(--slate); margin:0 0 12px; }
.vr-next ol { list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.vr-next li { display:flex; gap:14px; align-items:flex-start; border:1px solid var(--line); border-radius:12px; padding:14px 16px; }
.vr-next li .vr-n { width:28px; height:28px; border-radius:8px; background:var(--brand-yellow-tint); color:#141518; display:grid; place-items:center; font-weight:800; font-size:13px; flex:none; }
.vr-next li b { display:block; color:var(--ink); }
.vr-next li span { color:var(--slate); font-size:14px; }
.vr-sign { margin-top:20px; font-size:13px; color:var(--slate); }
.vr-sign b { color:var(--ink); }
@media (max-width: 960px) {
  .vreg { grid-template-columns:1fr; }
  .vr-side { position:static; padding:12px 16px; }
  .vr-steps { display:none; }
}
@media (max-width: 640px) {
  .vr-grid2, .vr-cards { grid-template-columns:1fr; }
  .vr-review dl { grid-template-columns:1fr; }
  .vr-review dt { margin-top:6px; }
}

/* Brand P4/P5: three trust facts directly under the request form (W-13). */
.trust-line { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 13px; font-weight: 600; color: var(--slate); }
.trust-line li { display: inline-flex; align-items: center; gap: 8px; }
.trust-line li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); flex: none; }
.trust-line--hero { justify-content: flex-start; color: rgba(255, 255, 255, 0.88); }
