/* National Dispatch. Layout concept: an interstate at dusk. The page is a drive; sections read like blue highway signs,
   the quote is the first exit, prices print like a load ticket. */
:root {
  --bg: #eef1f5;          /* concrete, cool */
  --surface: #fbfcfd;
  --surface-2: #e1e7ef;
  --ink: #121a26;
  --muted: #536072;
  --line: #cbd4e0;
  --sign: #004485;        /* National Dispatch blue (logo field) */
  --sign-deep: #00346a;
  --on-sign: #f5f8fc;
  --red: #e31e24;         /* National Dispatch red */
  --on-red: #ffffff;
  --red-bright: #ff5359;  /* red text on dark surfaces */
  --link: #0055a2;
  --link-hover: #00346a;
  --yellow: #f5b800;      /* lane-line yellow */
  --on-yellow: #1a1505;
  --asphalt: #1f242c;
  --on-dark: #f1f4ef;
  --on-dark-muted: #b9c2bc;
  --night: #1e2546;
  --danger: #b3261e;
  --ok: #0a6b3c;
  --shadow: 0 1px 2px rgba(20, 32, 25, .08), 0 8px 24px rgba(20, 32, 25, .10);

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Overpass", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Overpass Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: .875rem; --step-0: 1rem; --step-1: 1.2rem; --step-2: 1.5rem;
  --step-3: 2rem; --step-4: clamp(2.3rem, 4.6vw, 3.3rem); --step-5: clamp(2.7rem, 5.6vw, 4.6rem);
  --radius: 6px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1218; --surface: #161c25; --surface-2: #1e2632; --ink: #e6ebf2; --muted: #97a3b4;
    --line: #2a3442; --sign: #1a5fae; --sign-deep: #134d90; --on-sign: #f5f8fc; --yellow: #f5c02a;
    --on-yellow: #1a1505; --asphalt: #171b22; --red: #ec2a30; --red-bright: #ff6268; --link: #8ab8ff; --link-hover: #b5d1ff; --danger: #f2867d; --ok: #4cc584;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1218; --surface: #161c25; --surface-2: #1e2632; --ink: #e6ebf2; --muted: #97a3b4;
  --line: #2a3442; --sign: #1a5fae; --sign-deep: #134d90; --on-sign: #f5f8fc; --yellow: #f5c02a;
  --on-yellow: #1a1505; --asphalt: #171b22; --red: #ec2a30; --red-bright: #ff6268; --link: #8ab8ff; --link-hover: #b5d1ff; --danger: #f2867d; --ok: #4cc584;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

:root { padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--asphalt);
}
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: .005em; text-wrap: balance; margin: 0; }
h2 { font-size: var(--step-4); text-transform: uppercase; }
h3 { font-size: var(--step-2); }
p { margin: 0; }
.wrap { max-width: 1200px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--yellow); color: var(--on-yellow); padding: 8px 12px; }
.skip:focus { left: 12px; top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- Header + scroll road ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--asphalt); color: var(--on-dark); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--on-dark); }
.brand-logo { display: block; height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 10px; border-radius: 4px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, .08); color: var(--on-dark); }
.phone { font-family: var(--mono); font-size: .9rem; color: var(--on-dark); white-space: nowrap; user-select: all; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  font: 700 1rem/1 var(--body); padding: 14px 20px; white-space: nowrap; border-radius: var(--radius); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn-cta { background: var(--red); color: var(--on-red); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22); }
.btn-cta:hover { color: var(--on-red); transform: translateY(-1px); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22), 0 6px 18px rgba(227, 30, 36, .38); }
.btn-sign { background: var(--sign); color: var(--on-sign); }
.btn-sign:hover { background: var(--sign-deep); color: var(--on-sign); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-sm { padding: 10px 14px; font-size: .92rem; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); font-weight: 600; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); background: var(--asphalt); border-radius: 8px; padding: 8px; display: grid; min-width: 230px; box-shadow: 0 16px 40px rgba(0, 0, 0, .4); }
.menu-panel a { color: var(--on-dark); text-decoration: none; padding: 10px 12px; border-radius: 4px; font-weight: 600; }
.menu-panel a:hover { background: rgba(255, 255, 255, .08); color: var(--on-dark); }

.roadbar { position: relative; height: 12px; background: #34393c; overflow: hidden; }
.roadbar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .75) 0 22px, transparent 22px 44px);
  background-position-x: var(--dash, 0px);
}
.roadbar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: linear-gradient(90deg, transparent, rgba(245, 184, 0, .25)); }
.roadbar-truck { position: absolute; top: 1px; left: calc(var(--p, 0%) * .96); width: 38px; height: 10px; }

/* ---------- Hero scene: the National Dispatch truck on the highway (src/hero.js animates it) ---------- */
/* The scene is laid out in photo pixels and sized from --th, the truck's height in CSS px; the front of the cab sits at
   (--ax, --ay). The static plate shows first (and stays for reduced motion); the WebGL canvas fades in over it. */
.hero, .page-hero { position: relative; isolation: isolate; color: var(--on-dark); background: #0b111b; overflow: hidden; }
.scene { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; }
.scene-stage { position: absolute; }
.scene-plate {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none;
  /* very wide screens can reach past the plate: fade its ends into the night background instead of a hard edge */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.scene-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .9s ease; }
.scene.is-live .scene-gl { opacity: 1; }
.scene-truck { position: absolute; display: block; height: auto; max-width: none; will-change: transform; }
.scene-scrim { position: absolute; inset: 0; }
.scene-plate, .scene-truck { filter: saturate(1.08) contrast(1.05) brightness(.97); }   /* hero.js applies the same grade in its shader */

.hero { --hero-h: clamp(700px, calc(100svh - 76px), 940px); --th: min(clamp(200px, calc(var(--hero-h) - 486px), 450px), calc(20.6vw + 12px), 21.6vw); --ax: min(calc(50% + 30px), 52.5%); --ay: calc(100% - 22px); min-height: var(--hero-h); }
.hero .scene-scrim {
  background:
    linear-gradient(180deg, rgba(7, 11, 20, .92) 0%, rgba(7, 11, 20, .72) 20%, rgba(7, 11, 20, .3) 42%, rgba(7, 11, 20, 0) 58%),
    linear-gradient(90deg, rgba(7, 11, 20, .55) 0%, rgba(7, 11, 20, .18) 34%, rgba(7, 11, 20, 0) 52%),
    linear-gradient(0deg, rgba(7, 11, 20, .5) 0%, rgba(7, 11, 20, 0) 12%);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-areas: "copy form";
  column-gap: 44px; row-gap: 28px; padding-block: 56px 32px; align-items: start;
}
.hero-copy { grid-area: copy; display: grid; gap: 22px; min-width: 0; }
.hero-inner > .quote-card { grid-area: form; }
.hero-copy .eyebrow { color: #ffd77a; }
.hero h1 { font-size: var(--step-5); font-weight: 800; text-transform: uppercase; letter-spacing: -.005em; text-shadow: 0 2px 30px rgba(4, 8, 16, .55); }
.hero h1 em { font-style: normal; color: var(--red-bright); }
.hero-lede { font-size: var(--step-1); max-width: 34em; color: #e7eaf2; text-shadow: 0 1px 14px rgba(4, 8, 16, .7); }

/* inner pages: copy on the left, the truck on the right */
/* --th shrinks between 921px and ~1210px so the trailer stays clear of the copy (the rig is ~2.7x as long as it is tall) */
.page-hero { --th: clamp(160px, calc((100vw - 655px) / 2.55), 226px); --ax: min(calc(50% + 580px), calc(100% - 24px)); --ay: calc(100% - 16px); min-height: 400px; }
.page-hero .scene-scrim {
  background:
    linear-gradient(90deg, rgba(7, 11, 20, .9) 0%, rgba(7, 11, 20, .74) 32%, rgba(7, 11, 20, .2) 56%, rgba(7, 11, 20, 0) 70%),
    linear-gradient(180deg, rgba(7, 11, 20, .6) 0%, rgba(7, 11, 20, 0) 45%);
}
.page-hero-inner { padding-block: 44px 64px; }
.page-hero .hero-copy { max-width: min(540px, calc(50vw - 24px)); gap: 14px; }
.page-hero h1 { font-size: var(--step-4); font-weight: 800; text-transform: uppercase; max-width: 22ch; text-shadow: 0 2px 24px rgba(4, 8, 16, .5); }
.page-hero p.lede { color: #e7eaf2; font-size: var(--step-1); text-shadow: 0 1px 12px rgba(4, 8, 16, .7); }
.crumbs { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; color: var(--on-dark-muted); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--on-dark); }

/* ---------- Quote card ---------- */
.quote-card { background: var(--surface); color: var(--ink); border-radius: 10px; box-shadow: 0 30px 60px rgba(8, 10, 30, .35); overflow: visible; min-width: 0; }
.quote-head { background: var(--sign); color: var(--on-sign); border-radius: 10px 10px 0 0; padding: 16px 22px 14px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 12px; box-shadow: inset 0 0 0 3px var(--sign), inset 0 0 0 5px rgba(255, 255, 255, .85); }
.quote-head h2, .quote-head .qh { font-family: var(--display); font-size: 1.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; line-height: 1; }
.quote-head .tab { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; background: var(--on-sign); color: var(--sign); padding: 4px 8px; border-radius: 3px; font-weight: 600; white-space: nowrap; }
.quote-form { padding: 20px 22px 22px; display: grid; gap: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.route-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: end; }
.field { display: grid; gap: 6px; min-width: 0; position: relative; }
.field > label, .legend { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.input, select.input {
  width: 100%; font: 500 1rem/1.2 var(--body); color: var(--ink); background: var(--bg); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 12px 12px; min-height: 48px; transition: border-color .15s, background-color .15s;
}
.input:hover { border-color: color-mix(in srgb, var(--link) 40%, var(--line)); }
.input:focus { outline: none; border-color: var(--link); background: var(--surface); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.err { color: var(--danger); font-size: .85rem; font-weight: 600; }
.swap { width: 44px; height: 48px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.swap:hover { border-color: var(--link); color: var(--link); }
.swap svg { width: 20px; height: 20px; }
.listbox { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); max-height: 280px; overflow: auto; }
.listbox li { padding: 10px 10px; border-radius: 5px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.listbox li span { color: var(--muted); font-family: var(--mono); font-size: .8rem; }
.listbox li b { font-weight: 600; min-width: 0; }
.listbox li small { color: var(--muted); font-weight: 400; font-size: .8rem; }
.listbox li.status { cursor: default; color: var(--muted); font-size: .9rem; background: none; }
.lane.ocean { background: linear-gradient(90deg, var(--asphalt) 0 30%, #1f5f8b 30% 70%, var(--asphalt) 70%); }
.listbox li[aria-selected="true"], .listbox li:hover { background: var(--surface-2); }
.seg { display: flex; gap: 0; border: 2px solid var(--line); border-radius: var(--radius); padding: 3px; background: var(--bg); }
.seg label { flex: 1; position: relative; text-align: center; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 9px 6px; border-radius: 4px; font-weight: 700; font-size: .92rem; transition: background-color .15s, color .15s; }
.seg input:checked + span { background: var(--ink); color: var(--bg); }
.seg input:focus-visible + span { outline: 3px solid var(--yellow); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 6px; }
.quote-form .btn { width: 100%; padding-block: 16px; font-size: 1.05rem; }
.fine { font-size: .82rem; color: var(--muted); }

/* ---------- Load ticket (quote result) ---------- */
.ticket {
  background: var(--surface); color: var(--ink); border-radius: 10px; position: relative; box-shadow: 0 24px 50px rgba(8, 10, 30, .32);
  padding: 22px 24px 20px; display: grid; gap: 14px; min-width: 0;
  background-image: radial-gradient(circle at 10px 0, transparent 7px, var(--surface) 7.5px);
  background-size: 20px 100%; background-repeat: repeat-x; background-position: 0 -1px;
}
.ticket-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.ticket .eyebrow { color: var(--muted); }
.example-flag { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; background: var(--red); color: var(--on-red); padding: 3px 7px; border-radius: 3px; }
.price-line { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price { font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 8vw, 4.6rem); line-height: .9; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.range { font-family: var(--mono); font-size: .88rem; color: var(--muted); }
.route-strip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.route-strip .city { font-weight: 800; font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; line-height: 1.05; }
.route-strip .city small { display: block; font-family: var(--mono); font-weight: 500; font-size: .7rem; color: var(--muted); letter-spacing: .1em; }
.route-strip .to { text-align: right; }
.lane { position: relative; height: 22px; border-radius: 3px; background: var(--asphalt); overflow: visible; }
.lane::before { content: ""; position: absolute; left: 6px; right: 6px; top: 10px; height: 2px; background: repeating-linear-gradient(90deg, var(--yellow) 0 10px, transparent 10px 18px); }
.lane-truck { position: absolute; top: -6px; left: 0; width: 46px; height: 24px; transition: left 1.4s cubic-bezier(.45, .05, .2, 1); }
.lane.go .lane-truck { left: calc(100% - 46px); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); }
.facts div { padding: 10px 4px; display: grid; gap: 2px; }
.facts div + div { border-left: 1px solid var(--line); padding-left: 12px; }
.facts dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.breakdown summary { cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--link); }
.breakdown table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .9rem; }
.breakdown td { padding: 6px 0; border-bottom: 1px dotted var(--line); }
.breakdown td:last-child { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.breakdown tr.total td { border-bottom: 0; font-weight: 800; padding-top: 10px; }
.source { font-size: .8rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; margin-top: 6px; }
.dot.live { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 25%, transparent); }
.ticket-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ticket-actions .btn { flex: 1 1 180px; }
.lead { display: grid; gap: 12px; border-top: 2px dashed var(--line); padding-top: 14px; }
.lead .row { grid-template-columns: 1fr 1fr; }
.notice { border-radius: 6px; padding: 12px 14px; background: var(--surface-2); font-size: .92rem; }
.notice strong { display: block; }

/* ---------- Sections ---------- */
section.band { padding-block: 84px; }
.band-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 46rem; }
.band-head p { color: var(--muted); font-size: var(--step-1); }
.facts-strip { background: var(--asphalt); color: var(--on-dark); }
.facts-strip ul { list-style: none; margin: 0; padding-block: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.facts-strip li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-weight: 600; font-size: .95rem; }
.facts-strip li b { white-space: nowrap; }
.facts-strip li b { font-family: var(--display); font-size: 1.6rem; color: var(--red-bright); font-weight: 800; letter-spacing: .02em; }

.exits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: exit; position: relative; }
.exit { position: relative; background: var(--sign); color: var(--on-sign); border-radius: 8px; padding: 34px 20px 22px; box-shadow: inset 0 0 0 4px var(--sign), inset 0 0 0 6px rgba(255, 255, 255, .9); display: grid; gap: 10px; align-content: start; }
.exit-tab { position: absolute; top: -14px; left: 16px; background: var(--sign); color: var(--on-sign); font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: .08em; padding: 4px 12px 3px; border-radius: 5px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9); }
.exit h3 { font-size: 1.7rem; text-transform: uppercase; }
.exit p { color: #dbe6f5; font-size: .98rem; }
.exit .arrow { width: 26px; height: 26px; color: var(--on-sign); }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.svc { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 26px; display: grid; gap: 14px; grid-template-rows: auto auto 1fr auto; transition: transform .2s ease, box-shadow .2s ease; }
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.svc svg.trailer { width: 100%; height: auto; max-height: 120px; }
.svc h3 { font-size: 2rem; text-transform: uppercase; }
.svc p { color: var(--muted); }
.svc ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.svc .more { font-weight: 700; }
.svc-list { margin-top: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.svc-list a, .svc-list div { padding: 18px 16px 18px 0; text-decoration: none; color: var(--ink); display: grid; gap: 4px; border-bottom: 1px solid var(--line); }
.svc-list a:hover h3 { color: var(--link); }
.svc-list h3 { font-size: 1.35rem; text-transform: uppercase; }
.svc-list p { color: var(--muted); font-size: .92rem; }

.rates-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 32px; align-items: start; }
.table-scroll { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
table.rates { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
table.rates th, table.rates td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.rates thead th { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--surface-2); }
table.rates td.n, table.rates th.n { text-align: right; font-family: var(--mono); white-space: nowrap; }
table.rates tbody tr:last-child td { border-bottom: 0; }
table.rates td strong { font-family: var(--display); font-size: 1.15rem; text-transform: uppercase; }
table.rates td small { display: block; color: var(--muted); font-size: .8rem; }
.factor-list { display: grid; gap: 14px; }
.factor { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; }
.factor b { font-family: var(--mono); font-size: .95rem; background: var(--asphalt); color: var(--red-bright); border-radius: 4px; padding: 6px 0; text-align: center; }
.factor p { color: var(--muted); font-size: .95rem; }
.factor h3 { font-size: 1.2rem; text-transform: uppercase; margin-bottom: 2px; }

.sign { background: var(--sign); color: var(--on-sign); border-radius: 12px; padding: 30px 32px; box-shadow: inset 0 0 0 5px var(--sign), inset 0 0 0 8px rgba(255, 255, 255, .92), 0 20px 40px rgba(0, 40, 90, .28); }
.sign-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid rgba(255, 255, 255, .55); padding-bottom: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.sign-head h2 { color: var(--on-sign); font-size: var(--step-3); }
.sign-head span { font-family: var(--mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #cddbf0; }
.sign ol { list-style: none; margin: 0; padding: 0; }
.sign li a { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 22px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); color: var(--on-sign); text-decoration: none; }
.sign li:last-child a { border-bottom: 0; }
.sign li a:hover .dest { color: var(--yellow); }
.sign .dest { font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 2.6vw, 1.75rem); text-transform: uppercase; letter-spacing: .02em; transition: color .15s; }
.sign .dest i { font-style: normal; opacity: .7; padding-inline: .3em; }
.sign .mi { font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 600; font-variant-numeric: tabular-nums; }
.sign .usd { font-family: var(--mono); font-size: .95rem; background: rgba(0, 0, 0, .22); padding: 4px 8px; border-radius: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.faq { display: grid; gap: 0; border-top: 2px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 1.12rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 3px solid var(--link); border-bottom: 3px solid var(--link); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 65ch; }

.cta-band { background: var(--asphalt); color: var(--on-dark); position: relative; overflow: hidden; }
.cta-band .wrap { padding-block: 64px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; }
.cta-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 26px; height: 4px; background: repeating-linear-gradient(90deg, var(--yellow) 0 40px, transparent 40px 80px); opacity: .55; }
.cta-band h2 { color: var(--on-dark); font-size: var(--step-4); }
.cta-band p { color: var(--on-dark-muted); margin-top: 8px; }
.cta-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.site-footer { background: var(--surface-2); padding-block: 48px 36px; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 28px; }
.site-footer h3 { font-size: 1rem; font-family: var(--mono); letter-spacing: .14em; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--link); text-decoration: underline; }
.legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer .brand-logo { height: 60px; }
.site-footer .brand { color: var(--ink); }

/* ---------- Inner pages ---------- */
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 48px; padding-block: 56px 80px; align-items: start; }
.page-aside { display: grid; gap: 18px; min-width: 0; }
.page-aside .ticket, .page-aside .quote-card { box-shadow: var(--shadow); }
.prose { display: grid; gap: 18px; max-width: 68ch; min-width: 0; }
.prose h2 { font-size: var(--step-3); margin-top: 22px; }
.prose h3 { font-size: 1.45rem; text-transform: uppercase; margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose .table-scroll { margin-block: 4px; }
.keyfacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: var(--asphalt); color: var(--on-dark); border-radius: 10px; overflow: hidden; }
.keyfacts div { padding: 18px 18px; display: grid; gap: 4px; }
.keyfacts div + div { border-left: 1px solid rgba(255, 255, 255, .12); }
.keyfacts dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.keyfacts dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.9rem; color: var(--red-bright); font-variant-numeric: tabular-nums; line-height: 1.05; }
.related { display: flex; flex-wrap: wrap; gap: 10px; }
.related a { background: var(--surface); border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink); }
.related a:hover { border-color: var(--link); color: var(--link); }
.compact-ticket { margin-top: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu { display: block; }
  .exits { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
  .svc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
  .hero, .page-hero { min-height: 0; --th: clamp(150px, 40vw, 300px); --ax: calc(100% - 10px); --ay: calc(100% - 12px); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "scene" "form"; padding-block: 34px 26px; row-gap: 0; }
  .hero .scene, .page-hero .scene {
    position: relative; inset: auto; grid-area: scene; height: calc(var(--th) * 1.34); margin-inline: calc(-1 * var(--gutter-l)) calc(-1 * var(--gutter-r));
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 84%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 24%, #000 84%, transparent 100%);
  }
  .hero .scene-scrim, .page-hero .scene-scrim { background: linear-gradient(180deg, rgba(7, 11, 20, .5) 0%, rgba(7, 11, 20, 0) 45%); }
  .hero-inner > .quote-card { margin-top: 6px; }
  .page-hero-inner { padding-block: 30px 14px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "scene"; row-gap: 6px; }
  .page-hero .hero-copy { max-width: none; }
  .rates-wrap, .page-grid { grid-template-columns: minmax(0, 1fr); }
  .page-aside { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .facts-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-header .phone { display: none; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .svc-list { grid-template-columns: minmax(0, 1fr); }
  .exits { grid-template-columns: minmax(0, 1fr); }
  .row, .lead .row { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts div + div { padding-left: 8px; }
  .keyfacts { grid-template-columns: minmax(0, 1fr); }
  .keyfacts div + div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .sign { padding: 22px 18px; }
  .sign li a { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; }
  .sign .usd { grid-column: 2; justify-self: end; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .quote-head { padding: 14px 16px 12px; }
  .quote-form { padding: 16px; }
  .ticket { padding: 20px 16px 18px; }
  section.band { padding-block: 60px; }
  .route-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "from swap" "to swap"; }
  .route-row > .field:first-child { grid-area: from; }
  .route-row > .field:last-child { grid-area: to; }
  .route-row .swap { grid-area: swap; align-self: center; transform: rotate(90deg); }
  .site-header .wrap { gap: 10px; min-height: 58px; }
  .brand { min-width: 0; }
  .brand-logo { height: 38px; }
  .site-header .btn-sm { padding: 9px 11px; font-size: .88rem; }
  .menu summary { padding: 8px 10px; }
  .facts-strip li { display: grid; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Order pages: admin + signing ---------- */
.order-band { background: var(--sign); color: var(--on-sign); }
.order-band .wrap { padding-block: 40px 44px; display: grid; gap: 10px; }
.order-band h1 { font-size: var(--step-4); text-transform: uppercase; color: var(--on-sign); }
.order-band p { color: #dbe6f5; max-width: 60ch; }
.order-band .eyebrow { color: #cddbf0; }
.order-wrap { padding-block: 32px 72px; display: grid; gap: 22px; max-width: 1000px; }
.order-wrap > *, .order-doc > *, .sign-box > *, .sign-box form > * { min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 24px; min-width: 0; }
fieldset.panel { display: grid; gap: 14px; }
fieldset.panel > legend { float: left; width: 100%; font-family: var(--display); font-weight: 700; font-size: 1.4rem; text-transform: uppercase; padding: 0; margin-bottom: 4px; }
fieldset.panel > legend + * { clear: both; }
.order-form { display: grid; gap: 22px; }
.order-form > .btn { justify-self: start; padding-inline: 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-addr { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, .8fr) minmax(0, 1fr); gap: 12px; }
.veh-list { display: grid; gap: 12px; }
.veh { border: 1px dashed var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 10px; background: var(--bg); }
.veh-top { display: flex; justify-content: space-between; align-items: center; }
.veh-num { font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.grid-veh { display: grid; grid-template-columns: minmax(0, .6fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 10px; }
.grid-veh .field:nth-child(5) { grid-column: 1 / 3; }
.grid-veh .field:nth-child(6) { grid-column: 3 / 5; }
.link-btn { background: none; border: 0; color: var(--link); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; padding: 4px 6px; text-decoration: underline; }
.veh-add { justify-self: start; }
.balance-out { display: flex; align-items: center; min-height: 48px; font-family: var(--display); font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.price-tools { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
textarea.input { resize: vertical; min-height: 96px; font: 500 1rem/1.45 var(--body); }
.form-err { font-size: 1rem; }
.order-result { display: grid; gap: 14px; border: 2px solid var(--sign); box-shadow: var(--shadow); }
.result-head h2 { font-size: var(--step-3); text-transform: uppercase; }
.linkbox { font-family: var(--mono); font-size: .8rem; line-height: 1.5; word-break: break-all; resize: none; }
.order-result > .btn-ghost { justify-self: start; }
.gate { max-width: 460px; }
.gate form { display: grid; gap: 14px; }
.gate h2 { font-size: var(--step-2); text-transform: uppercase; }
.gate .btn { justify-self: start; }

.order-doc { display: grid; gap: 22px; padding: 30px; }
.od-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; border-bottom: 3px solid var(--ink); padding-bottom: 14px; }
.od-head h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
.od-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
.od-meta dt, .od-facts dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.od-meta dd, .od-facts dd { margin: 0; font-weight: 700; }
.od-meta dd { font-family: var(--mono); font-size: 1.05rem; }
.od-section h3 { font-family: var(--display); font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.od-route { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; align-items: center; }
.od-arrow svg { width: 64px; height: 34px; display: block; }
.od-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 2px dashed var(--line); border-bottom: 2px dashed var(--line); }
.od-facts div { padding: 12px 8px 12px 0; display: grid; gap: 2px; }
.od-table { min-width: 440px; }
.od-price { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.od-price td { padding: 9px 0; border-bottom: 1px dotted var(--line); vertical-align: top; }
.od-price td:last-child { text-align: right; font-family: var(--mono); white-space: nowrap; padding-left: 12px; }
.od-price tr.total td { font-weight: 800; border-bottom: 0; font-size: 1.15rem; }
.od-price small { display: block; color: var(--muted); font-weight: 500; font-size: .85rem; }
.od-safety { font-size: .9rem; color: var(--muted); border-left: 3px solid var(--red); padding-left: 12px; }
.sign-box { display: grid; gap: 16px; }
.sign-box form { display: grid; gap: 18px; }
.sign-box h2 { font-size: var(--step-3); text-transform: uppercase; }
.sign-box form > .btn { justify-self: start; padding-inline: 28px; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--sign); }
.pad { position: relative; max-width: 640px; }
.pad canvas { display: block; width: 100%; height: 180px; background: #ffffff; border: 2px dashed #9aa6b8; border-radius: 8px; touch-action: none; cursor: crosshair; }
.pad::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 44px; border-bottom: 1px solid #c3ccd8; pointer-events: none; }
.pad-clear { position: absolute; top: 6px; right: 8px; color: #0055a2; }
.signed-done { display: grid; gap: 10px; }
.signed-done h2 { font-size: var(--step-3); }
.signed-done .btn { justify-self: start; }
@media (max-width: 760px) {
  .grid3, .two { grid-template-columns: minmax(0, 1fr); }
  .grid-addr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .grid-addr .field:first-child { grid-column: 1 / -1; }
  .grid-veh { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-veh .field:nth-child(5), .grid-veh .field:nth-child(6) { grid-column: auto; }
  .od-route { grid-template-columns: minmax(0, 1fr); }
  .od-arrow { display: none; }
  .od-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-doc, .panel { padding: 18px; }
}
@media print {
  .site-header, .site-footer, .order-band, .sign-box form, .od-safety, .ticket-actions, .skip, button { display: none !important; }
  body, .panel { background: #fff !important; color: #000 !important; border: 0 !important; box-shadow: none !important; }
}

/* ---------- Dispatch tools nav, legal pages, terms, Outlook email ---------- */
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.admin-nav a { color: var(--on-sign); text-decoration: none; font-weight: 700; font-size: .9rem; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.admin-nav a:hover { background: rgba(255, 255, 255, .12); color: var(--on-sign); }
.admin-nav a[aria-current="page"] { background: var(--on-sign); color: var(--sign); box-shadow: none; }
.panel-h { font-family: var(--display); font-weight: 700; font-size: 1.4rem; text-transform: uppercase; margin-bottom: 10px; }
.sign-form { display: grid; gap: 22px; }
.sign-form > .panel { display: grid; gap: 14px; }
.ro { display: flex; align-items: center; min-height: 48px; padding: 0 2px; font-weight: 700; }
.balance-line { font-size: .98rem; }
.terms-panel { display: grid; gap: 12px; }
.terms-box { max-height: 340px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; background: var(--bg); font-size: .9rem; line-height: 1.55; }
.terms-box h3 { font-family: var(--body); font-size: 1rem; font-weight: 800; margin-bottom: 10px; text-transform: none; }
.terms-list { margin: 0; padding-left: 1.4em; display: grid; gap: 10px; }
.terms-list li::marker { font-weight: 700; }
.legal { max-width: 78ch; display: grid; gap: 14px; line-height: 1.65; }
.legal h2 { font-family: var(--body); font-size: 1.12rem; font-weight: 800; text-transform: none; margin-top: 12px; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.legal address { font-style: normal; line-height: 1.6; }
.legal a { word-break: break-word; }
.email-tools { display: grid; gap: 14px; }
.email-tools h3 { font-family: var(--display); font-size: 1.35rem; text-transform: uppercase; }
.steps-small { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; font-size: .95rem; }
.copyline { display: flex; gap: 8px; }
.copyline .input { flex: 1; min-width: 0; }
.email-preview { border: 1px solid var(--line); border-radius: 8px; overflow: auto; max-height: 560px; background: #eef1f5; color: #121a26; }
.email-preview table { max-width: 100%; }
.more-ways { border-top: 1px dashed var(--line); padding-top: 12px; }
.more-ways summary { cursor: pointer; font-weight: 700; color: var(--link); margin-bottom: 10px; }
.more-ways[open] { display: grid; gap: 10px; }
.quote-admin-form { display: grid; gap: 16px; }
.quote-admin-form select.input:disabled { opacity: .6; }
.qa-estimate strong { display: block; }
@media (max-width: 640px) { .copyline { flex-direction: column; } }

/* ---------- Contract signing on the terms page, signed copy ---------- */
.terms-full { font-size: .94rem; line-height: 1.6; max-width: 80ch; }
.terms-full h3 { font-family: var(--body); font-size: 1.05rem; font-weight: 800; margin-bottom: 12px; text-transform: none; }
.agree-box { display: grid; gap: 12px; border-top: 2px dashed var(--line); padding-top: 18px; margin-top: 6px; }
.pad canvas[aria-invalid="true"] { border-color: var(--danger); }
.preview-note { overflow-wrap: anywhere; }
.preview-mail { display: grid; gap: 12px; }
.mail-subject { font-weight: 800; margin-top: -6px; overflow-wrap: anywhere; }
.mail-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.mail-table th, .mail-table td { text-align: left; vertical-align: top; padding: 8px 10px; border: 1px solid var(--line); overflow-wrap: anywhere; }
.mail-table th { width: 34%; background: var(--surface-2); font-weight: 700; }
.link-ish { color: var(--link); text-decoration: underline; font-size: .85rem; }
.muted { color: var(--muted); }
.signed-doc .od-section p { margin: 0; }
.sd-stamp { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 8px; background: var(--sign); color: var(--on-sign); }
.sd-stamp strong { display: block; font-size: 1.1rem; }
.sd-stamp span { font-size: .92rem; opacity: .92; }
.sd-seal { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--on-sign); color: var(--sign); font-weight: 800; font-size: 1.3rem; opacity: 1 !important; }
.sd-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; }
.sd-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.sd-list div { display: contents; }
.sd-list dt { color: var(--muted); font-size: .88rem; padding-top: 1px; }
.sd-list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.sd-checks { display: grid; gap: 10px; }
.box-check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.box-check .bx { width: 22px; height: 22px; border: 2px solid var(--muted); border-radius: 4px; display: grid; place-items: center; font-weight: 800; font-size: .9rem; line-height: 1; }
.box-check.on .bx { background: var(--sign); border-color: var(--sign); color: var(--on-sign); }
.sig-block { display: grid; gap: 10px; }
.sig-svg-wrap { max-width: 560px; background: #ffffff; border: 1px solid var(--line); border-radius: 8px; padding: 6px; position: relative; }
.sig-svg-wrap::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 30%; border-bottom: 1px solid #c3ccd8; pointer-events: none; }
.sig-svg { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
.terms-copy summary { cursor: pointer; font-weight: 800; }
.terms-copy[open] summary { margin-bottom: 14px; }
.terms-copy .terms-list { font-size: .9rem; line-height: 1.55; }
@media (max-width: 760px) {
  .sd-grid { grid-template-columns: minmax(0, 1fr); }
  .sd-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .sd-list dt { padding-top: 8px; }
  .mail-table th { width: 40%; }
}
@media print {
  .signed-doc, .terms-copy { padding: 0 !important; }
  .sd-stamp { background: #fff !important; color: #000 !important; border: 2px solid #000; }
  .sd-seal { background: #000 !important; color: #fff !important; }
  .box-check.on .bx { background: #000 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.copy-actions .btn { flex: 0 1 auto; padding-inline: 28px; }

/* ---------- Routes hub, related routes ---------- */
.all-routes { margin-top: 18px; display: flex; justify-content: center; }
.reverse-note { border-left: 3px solid var(--sign); padding-left: 12px; font-weight: 600; }
.rates td a strong { color: var(--link); }
.rates td a:hover strong { text-decoration: underline; }

/* ---------- About, contact, thank-you, order email status ---------- */
.about h2 { margin-top: 18px; }
.license-facts { margin: 4px 0 6px; }
.foot-license { color: var(--muted); font-size: .85rem; }
.foot-license a { color: inherit; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.contact-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; }
.contact-list div { display: contents; }
.contact-list dt { color: var(--muted); }
.contact-list dd { margin: 0; font-weight: 700; font-family: var(--mono); }
.contact-form { display: grid; gap: 14px; }
.contact-form .btn { justify-self: start; padding-inline: 28px; }
.review-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.review-list small { display: block; color: var(--muted); }
.sent-banner { display: grid; gap: 8px; border-left: 5px solid var(--ok); }
.sent-banner h2 { font-size: var(--step-2); }
.notice-bad { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); }
.draft-help { margin-top: -6px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-grid > * { margin-top: 0 !important; } .contact-grid .legal > h2:first-child { margin-top: 0; }

/* ---------- Signed order forms (admin) ---------- */
.so-list { display: grid; gap: 12px; }
.so-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.so-tools .so-search { flex: 1 1 260px; min-width: 0; }
.so-table { min-width: 760px; }
.so-table td small { display: block; color: var(--muted); font-size: .82rem; }
.so-table th.c, .so-table td.c { text-align: center; }
.so-table tbody tr[data-id] { cursor: pointer; }
.so-table tbody tr[data-id]:hover, .so-table tbody tr[data-id]:focus-visible { background: var(--surface-2); outline: none; }
.so-table .tick { color: var(--ok); font-weight: 800; }
.so-detail { display: grid; gap: 18px; }
.so-detail-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.setup-note { display: grid; gap: 10px; }
.setup-note ol { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
@media print { .so-detail-bar, .so-list, .admin-nav { display: none !important; } }
.so-table td:nth-child(2), .so-table td:first-child { white-space: nowrap; }
.thanks-detail { display: grid; gap: 10px; }

/* ---------- Your quote page (/quote/) ---------- */
:root { --viz-a: #1f5fa8; --viz-b: #c9821e; }      /* carrier pay / booking fee (validated: CVD-safe, 3:1 on the surface) */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --viz-a: #4f86d0; --viz-b: #c27a22; } }
:root[data-theme="dark"] { --viz-a: #4f86d0; --viz-b: #c27a22; }
.qv, .qv [data-qv-dyn] { display: grid; gap: 40px; min-width: 0; align-content: start; }
.qv-ticket { box-shadow: var(--shadow); }
.qv-sec { display: grid; gap: 16px; min-width: 0; }
.qv-sec h2 { font-size: var(--step-3); }
.qv-sec > p { color: var(--muted); max-width: 62ch; }
.qv-change a { color: #ffd77a; font-weight: 700; font-size: .95rem; }
.split { display: flex; gap: 2px; height: 20px; }
.split-a { background: var(--viz-a); border-radius: 4px 0 0 4px; }
.split-b { background: var(--viz-b); border-radius: 0 4px 4px 0; }
.split-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.split-key b { font-variant-numeric: tabular-nums; }
.split-key span { color: var(--muted); font-family: var(--mono); font-size: .82rem; margin-left: 4px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.sw-a { background: var(--viz-a); }
.sw-b { background: var(--viz-b); }
.receipt { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.receipt th, .receipt td { padding: 12px 16px; border-bottom: 1px dotted var(--line); text-align: left; vertical-align: top; }
.receipt th { font-weight: 700; }
.receipt th small { display: block; font-weight: 500; color: var(--muted); font-size: .86rem; margin-top: 2px; max-width: 56ch; }
.receipt td { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.receipt tr.total th, .receipt tr.total td { border-bottom: 0; font-weight: 800; font-size: 1.12rem; background: var(--surface-2); }
.opt-row { display: grid; gap: 12px; }
.opt-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opt-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt, .mtile { font: inherit; color: var(--ink); text-align: left; background: var(--surface); border: 2px solid var(--line); border-radius: 8px; cursor: pointer; display: grid; gap: 2px; align-content: start;
  transition: border-color .15s, transform .15s, box-shadow .15s, background-color .15s; }
.opt { padding: 14px 16px; }
.opt:hover, .mtile:hover { border-color: var(--link); transform: translateY(-1px); box-shadow: var(--shadow); }
.opt[aria-pressed="true"] { background: var(--sign); color: var(--on-sign); border-color: var(--sign); box-shadow: inset 0 0 0 3px var(--sign), inset 0 0 0 5px rgba(255, 255, 255, .85); transform: none; }
.opt-k { font-weight: 800; font-size: .95rem; }
.opt-p { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1.05; }
.opt-d { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.opt-s { font-size: .86rem; color: var(--muted); }
.opt[aria-pressed="true"] .opt-d, .opt[aria-pressed="true"] .opt-s { color: #dbe6f5; }
.month-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding-top: 8px; }
.mtile { position: relative; padding: 12px 12px 10px; }
.mtile[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: none; }
.mt-m { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mt-p { font-family: var(--display); font-weight: 800; font-size: 1.55rem; line-height: 1.1; }
.mt-d { font-size: .8rem; color: var(--muted); }
.mtile[aria-pressed="true"] .mt-m, .mtile[aria-pressed="true"] .mt-d { color: inherit; opacity: .8; }
.mt-tag { position: absolute; top: -11px; right: 8px; background: var(--yellow); color: var(--on-yellow); font-family: var(--mono); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; }
.qv-exits { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; margin: 12px 0 0; padding: 0; list-style: none; }
.qv-eyebrow { color: #ffd77a; }
.qv-book { background: var(--surface); border: 2px solid var(--sign); border-radius: 12px; padding: 26px; box-shadow: var(--shadow); scroll-margin-top: 92px; }
.qv-book .lead { border-top: 0; padding-top: 0; }
.qv-book .lead .btn { justify-self: start; padding-inline: 26px; }
@media (min-width: 921px) and (min-height: 880px) { .qv-aside { position: sticky; top: 90px; } }   /* only when the whole quote box fits on screen */
@media (max-width: 920px) {
  .page-hero.qv-hero { --th: clamp(120px, 30vw, 240px); }      /* a slimmer truck band: the price comes sooner on phones */
  .month-row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
}
@media (max-width: 640px) {
  .opt-3, .qv-exits { grid-template-columns: minmax(0, 1fr); }
  .qv-book { padding: 18px; }
  .receipt th, .receipt td { padding: 10px 12px; }
  .qv-book .lead .btn { justify-self: stretch; white-space: normal; text-align: center; }   /* "Send booking request · $1,315" wraps at 320px */
}
