/* ===========================================================================
   MERCADO — Wholesale Auto Marketplace · RD
   Bright consumer marketplace design system (Carvana × Carousell × eBay):
   white/light canvas, purple brand accent, big photos, scannable cards.
   =========================================================================== */

:root {
  --canvas: #F5F6F8;      /* page background (very light grey) */
  --surface: #FFFFFF;     /* cards, nav, panels */
  --surface-2: #FBFBFD;
  --border: #E6E8EC;      /* hairline borders */
  --ink: #16181D;         /* headings / near-black */
  --ink-2: #454B54;       /* body text */
  --muted: #8A9099;       /* secondary/labels */
  --brand: #6D28D9;       /* primary purple */
  --brand-hover: #5B21B6;
  --brand-soft: #F2ECFE;  /* light purple tint */
  --trust: #0E9F6E;       /* verified/escrow green */
  --star: #F59E0B;        /* ratings */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.10);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1240px;

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;
  --num: "Plus Jakarta Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

/* Never allow accidental horizontal scroll on small screens. */
html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--canvas);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-hover);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}

.num {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* keep .mono usable for backward-compat: tabular figures, not monospace */
.mono {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Top nav
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 70px;
}

/* Mobile-menu plumbing. On desktop the checkbox + burger are inert/hidden and
   .nav__panel is "display: contents" so its children (search + links) sit in the
   .nav__inner flex exactly as before — desktop layout is unchanged. */
.nav__toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.nav__burger {
  display: none;
}

.nav__panel {
  display: contents;
}

.nav__bell-text {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #8B5CF6, var(--brand));
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.30);
  position: relative;
  flex: none;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 4px;
  background: #fff;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.brand__tag {
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 3px;
}

/* Center search in the nav */
.nav__search {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.searchbar:focus-within {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.14);
}

.searchbar svg {
  flex: none;
  color: var(--muted);
}

.searchbar input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  outline: none;
}

.searchbar input::placeholder {
  color: var(--muted);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}

.nav__links a:not(.btn) {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 15px;
}

.nav__links a:not(.btn):hover {
  color: var(--brand);
}

.nav__company {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  border-left: 1px solid var(--border);
  padding-left: 16px;
}

/* Secondary quick-filter row */
.quickbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.quickbar__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  overflow-x: auto;
  scrollbar-width: none;
}

.quickbar__inner::-webkit-scrollbar {
  display: none;
}

.quickbar__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  flex: none;
}

.qchip {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}

.qchip:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.qchip--active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease, color 0.14s ease;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.22);
}

.btn--primary:hover {
  background: var(--brand-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(109, 40, 217, 0.30);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink-2);
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn--pill {
  border-radius: 999px;
}

.btn--sm {
  padding: 9px 15px;
  font-size: 13.5px;
}

.btn--block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Flash
   -------------------------------------------------------------------------- */
.flash {
  max-width: var(--maxw);
  margin: 16px auto 0;
  padding: 0 24px;
}

.flash__msg {
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.flash__msg--notice {
  border-color: rgba(14, 159, 110, 0.35);
  background: #ECFDF5;
  color: #07875B;
}

.flash__msg--alert {
  border-color: rgba(220, 38, 38, 0.30);
  background: #FEF2F2;
  color: #C2362F;
}

/* --------------------------------------------------------------------------
   Hero band
   -------------------------------------------------------------------------- */
.hero {
  margin: 28px auto 8px;
  background: linear-gradient(180deg, var(--brand-soft), #fff 88%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px 40px;
  box-shadow: var(--shadow-sm);
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 16px;
}

.hero__title {
  font-size: clamp(32px, 5vw, 52px);
  max-width: 18ch;
  color: var(--ink);
}

.hero__sub {
  margin-top: 16px;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--ink-2);
  max-width: 56ch;
}

/* --------------------------------------------------------------------------
   Filter bar
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  margin-top: 28px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.filters__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.filters__field label {
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */
.trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0 8px;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.trust__ic {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.trust__txt {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}

/* --------------------------------------------------------------------------
   Form fields
   -------------------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.field > label {
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-weight: 700;
}

.input,
.select,
.textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--muted);
}

.input.mono,
.input.num {
  font-variant-numeric: tabular-nums;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.16);
}

.textarea {
  min-height: 110px;
  resize: vertical;
}

.input--inline {
  min-width: 180px;
}

/* --------------------------------------------------------------------------
   Section heading
   -------------------------------------------------------------------------- */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 34px 0 18px;
}

.section-head h2 {
  font-size: 24px;
}

.section-head .count {
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
}

.sortbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sortbar label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.sortbar .select {
  width: auto;
  padding: 9px 14px;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Car grid + cards
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  padding-bottom: 70px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card__photo {
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--surface-2);
  overflow: hidden;
}

.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  letter-spacing: 0.02em;
  color: var(--brand);
  background:
    linear-gradient(135deg, var(--brand-soft), #fff);
}

.chip {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}

.card:hover .heart {
  color: var(--brand);
}

.card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}

.card__title .yr {
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
}

.specrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}

.specrow .sep {
  color: var(--border);
}

.card__price {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-dop {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
}

.price-usd {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--muted);
}

/* trust pill on cards */
.tpill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(14, 159, 110, 0.10);
  color: var(--trust);
  width: fit-content;
}

.tpill svg {
  width: 13px;
  height: 13px;
}

/* Status pill */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink-2);
  width: fit-content;
}

.pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

/* green: listed / verified / released / sold */
.pill--listed,
.pill--verified,
.pill--released,
.pill--sold {
  color: #07875B;
  background: #ECFDF5;
  border-color: rgba(14, 159, 110, 0.30);
}

.pill--listed .dot,
.pill--verified .dot,
.pill--released .dot,
.pill--sold .dot {
  background: var(--trust);
}

/* amber/brand: in-progress states */
.pill--reserved,
.pill--awaiting_payment,
.pill--under_review,
.pill--transfer_found,
.pill--pending_confirmation,
.pill--draft {
  color: #92500A;
  background: #FFF7ED;
  border-color: rgba(245, 158, 11, 0.35);
}

.pill--reserved .dot,
.pill--awaiting_payment .dot,
.pill--under_review .dot,
.pill--transfer_found .dot,
.pill--pending_confirmation .dot,
.pill--draft .dot {
  background: var(--star);
}

/* red: terminal/negative states */
.pill--rejected,
.pill--cancelled,
.pill--expired {
  color: #C2362F;
  background: #FEF2F2;
  border-color: rgba(220, 38, 38, 0.30);
}

.pill--rejected .dot,
.pill--cancelled .dot,
.pill--expired .dot {
  background: #DC2626;
}

/* Empty state */
.empty {
  text-align: center;
  padding: 70px 24px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin: 24px 0 70px;
}

.empty h3 {
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Car detail
   -------------------------------------------------------------------------- */
.detail {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
  padding: 32px 0 90px;
  align-items: start;
}

.detail__gallery .hero-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}

.detail__gallery .hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail__gallery .hero-photo .placeholder {
  font-size: 72px;
}

.thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.thumbs img {
  width: 96px;
  height: 70px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.detail__brand {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}

.detail__title {
  font-size: 32px;
  margin: 8px 0 12px;
  color: var(--ink);
}

.specsheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 24px 0;
}

.specsheet div {
  background: var(--surface);
  padding: 14px 16px;
}

.specsheet dt {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 6px;
}

.specsheet dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.detail__desc {
  color: var(--ink-2);
  margin: 24px 0;
  line-height: 1.7;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--trust);
  background: rgba(14, 159, 110, 0.10);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Sticky price card */
.pricecard {
  position: sticky;
  top: 92px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.detail__ask {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 34px;
  color: var(--ink);
  margin-bottom: 2px;
}

.refbox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  margin: 18px 0;
}

.refbox .lbl {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.refbox .val {
  font-variant-numeric: tabular-nums;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.refnote {
  font-size: 12px;
  color: var(--muted);
  margin: -8px 0 18px;
}

.detail__seller {
  font-size: 14px;
  color: var(--ink-2);
  margin: 18px 0 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.detail__seller .who {
  font-weight: 700;
  color: var(--ink);
}

.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.cta-trust span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cta-trust svg {
  color: var(--trust);
}

/* --------------------------------------------------------------------------
   Auth / onboarding cards
   -------------------------------------------------------------------------- */
.auth {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 72px;
}

.auth__card {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.auth__title {
  font-size: 28px;
  margin-bottom: 6px;
  color: var(--ink);
}

.auth__sub {
  color: var(--ink-2);
  font-size: 14.5px;
  margin-bottom: 26px;
}

.auth__foot {
  margin-top: 22px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* Role toggle tiles */
.roletoggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.roletile {
  position: relative;
  cursor: pointer;
}

.roletile input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.roletile__face {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.roletile__face strong {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--ink);
}

.roletile__face span {
  font-size: 12px;
  color: var(--muted);
}

.roletile input:checked + .roletile__face {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.18);
}

.roletile input:focus-visible + .roletile__face {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.errors {
  border: 1px solid rgba(220, 38, 38, 0.30);
  background: #FEF2F2;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
  color: #C2362F;
  font-size: 14px;
}

.errors ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

/* --------------------------------------------------------------------------
   Dashboard
   -------------------------------------------------------------------------- */
.dash-head {
  padding: 36px 0 8px;
}

.dash-head .greet {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 10px;
}

.dash-head h1 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--ink);
}

.dash-head .sub {
  color: var(--ink-2);
  margin-top: 10px;
}

.listings-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 80px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.listings-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.listings-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--ink-2);
  vertical-align: middle;
}

.listings-table tr:last-child td {
  border-bottom: none;
}

.listings-table tr:hover td {
  background: var(--surface-2);
}

.listings-table .veh {
  display: flex;
  align-items: center;
  gap: 12px;
}

.listings-table .thumb {
  width: 56px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  flex: none;
}

.listings-table .thumb--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-soft), #fff);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
}

.listings-table .vehname {
  font-weight: 700;
  color: var(--ink);
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 22px 0 80px;
}

.deal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.16s ease, transform 0.16s ease;
}

.deal-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.deal-card__ref {
  font-variant-numeric: tabular-nums;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.deal-card__model {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  margin: 6px 0 14px;
}

.deal-card__amt {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  margin-top: 14px;
}

.deal-card--link {
  display: block;
  color: inherit;
}

.deal-card--link:hover {
  color: inherit;
}

.deal-card__view {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   Deal room (front-office deal experience)
   -------------------------------------------------------------------------- */
.deal {
  padding: 32px 0 90px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.deal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.deal__back {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}

.deal__back:hover {
  color: var(--brand);
}

.deal__title {
  font-size: clamp(24px, 4vw, 34px);
}

.deal__title a {
  color: var(--ink);
}

.deal__title a:hover {
  color: var(--brand);
}

.deal__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.deal__role {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.refcard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(180deg, var(--brand-soft), #fff 90%);
  border: 1px solid rgba(109, 40, 217, 0.22);
  border-radius: var(--radius);
  padding: 18px 22px;
  min-width: 230px;
  box-shadow: var(--shadow-sm);
}

.refcard__lbl {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 700;
}

.refcard__code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.refcard__amt {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-2);
  margin-top: 2px;
}

/* Panels */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

.panel__title {
  font-size: 18px;
  margin-bottom: 16px;
}

.panel__hint {
  font-size: 13.5px;
  color: var(--muted);
  margin: -8px 0 16px;
}

/* Stepper / timeline */
.stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.stepper::-webkit-scrollbar {
  display: none;
}

.step {
  flex: 1 1 0;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  padding-top: 4px;
}

.step::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 26px;
  right: -3px;
  height: 2px;
  background: var(--border);
}

.step:last-child::before {
  display: none;
}

.step__dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: none;
  z-index: 1;
}

.step__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}

.step__at {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.step--done .step__dot {
  background: var(--trust);
  border-color: var(--trust);
}

.step--done::before {
  background: var(--trust);
}

.step--done .step__label {
  color: var(--ink);
}

.step--current .step__dot {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(109, 40, 217, 0.16);
}

.step--current .step__label {
  color: var(--brand);
}

.deal-terminal {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(220, 38, 38, 0.30);
  background: #FEF2F2;
  color: #C2362F;
}

/* Payment instructions */
.paypanel {
  border-color: rgba(109, 40, 217, 0.25);
}

.paypanel__lead {
  font-size: 14.5px;
  color: var(--ink-2);
  margin: -6px 0 18px;
}

.paypanel__amt {
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.escrow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.escrow > div {
  background: var(--surface);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.escrow__lbl {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.escrow__val {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.payref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(109, 40, 217, 0.45);
  background: var(--brand-soft);
}

.payref__lbl {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
}

.payref__code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

/* Evidence */
.evidence-form {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.evidence-form .input {
  flex: 1;
  min-width: 220px;
}

.evidence-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.evidence-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.evidence-item__ic {
  color: var(--brand);
  display: flex;
}

.evidence-item__name {
  font-weight: 600;
  color: var(--ink);
  flex: 1;
}

.evidence-item__at {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Chat */
.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  max-height: 420px;
  overflow-y: auto;
}

.chat__empty {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 24px 0;
}

.bubble {
  max-width: 76%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14.5px;
}

.bubble__who {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bubble__body {
  color: inherit;
  line-height: 1.5;
}

.bubble--them {
  align-self: flex-start;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--ink-2);
  border-bottom-left-radius: 4px;
}

.bubble--them .bubble__who {
  color: var(--muted);
}

.bubble--mine {
  align-self: flex-end;
  background: var(--brand);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble--mine .bubble__who {
  color: rgba(255, 255, 255, 0.82);
}

.bubble--staff {
  align-self: flex-start;
  background: #FFF7ED;
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #92500A;
  border-bottom-left-radius: 4px;
}

.bubble--staff .bubble__who {
  color: #B45309;
}

.chat__presence {
  font-size: 12.5px;
  color: var(--muted);
  margin: 2px 0 6px;
}

.chat__presence.is-online {
  color: #1a9e5c;
}

.chat__typing {
  font-size: 12.5px;
  color: var(--muted);
  font-style: italic;
  margin: 2px 0 6px;
}

.chat-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.chat-form .textarea {
  flex: 1;
  min-height: 56px;
}

/* Star rating */
.stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
  font-size: 30px;
  line-height: 1;
  margin-bottom: 14px;
}

.stars--static {
  flex-direction: row;
  font-size: 24px;
}

.stars .star {
  color: var(--border);
  cursor: default;
}

.stars--static .star--on {
  color: var(--star);
}

.stars--input input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.stars--input label.star {
  cursor: pointer;
  transition: color 0.12s ease;
}

.stars--input input:checked ~ label.star,
.stars--input label.star:hover,
.stars--input label.star:hover ~ label.star {
  color: var(--star);
}

.stars--input input:focus-visible + label.star {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.review-form .textarea {
  width: 100%;
}

.review-body {
  margin-top: 10px;
  color: var(--ink-2);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .escrow {
    grid-template-columns: 1fr;
  }

  .chat-form {
    flex-direction: column;
    align-items: stretch;
  }

  /* Chat composer: full-width textarea, full-width Send button beneath it. */
  .chat-form .textarea {
    width: 100%;
  }

  .chat-form .btn {
    width: 100%;
  }

  .bubble {
    max-width: 90%;
  }

  /* ---- Deal progress timeline → vertical ------------------------------ */
  .stepper {
    flex-direction: column;
    gap: 0;
    overflow-x: visible;
  }

  .step {
    flex: none;
    min-width: 0;
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 0 0 22px;
  }

  .step:last-child {
    padding-bottom: 0;
  }

  /* Vertical connector line running down from each dot to the next. */
  .step::before {
    top: 26px;
    bottom: -4px;
    left: 12px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .step__dot {
    margin-top: 0;
  }

  .step__label {
    margin-top: 2px;
  }

  /* ---- Full-width, comfortably tappable form CTAs --------------------- */
  .btn--block,
  .evidence-form .btn,
  .review-form .btn,
  .auth__card .btn,
  .filters .btn,
  .chat-form .btn,
  .stepper + * .btn[type="submit"],
  button[type="submit"].btn,
  input[type="submit"].btn {
    width: 100%;
    min-height: 44px;
  }

  /* Evidence + review submit rows stack full-width. */
  .evidence-form {
    flex-direction: column;
    align-items: stretch;
  }

  .evidence-form .input {
    min-width: 0;
    width: 100%;
  }

  .review-form {
    align-items: stretch;
  }

  /* ---- Index hero filter inputs: easy to use, min/max side-by-side ---- */
  .filters {
    gap: 12px;
  }

  .filters__field {
    flex: 1 1 100%;
    min-width: 0;
  }

  .input--inline {
    min-width: 0;
    width: 100%;
  }

  /* ---- Comfortable card / panel padding ------------------------------ */
  .panel {
    padding: 18px 16px;
  }

  .auth__card {
    padding: 24px 18px;
  }

  .hero {
    padding: 28px 18px 26px;
  }

  /* ---- Listing grid: single column with proper gaps ------------------ */
  .grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* ---- Dashboard tables: let them scroll horizontally inside the card
     so columns never overflow the viewport. ----------------------------- */
  .listings-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .deal-grid {
    grid-template-columns: 1fr;
  }

  /* Deal header: reference card spans full width below the title. */
  .refcard {
    min-width: 0;
    width: 100%;
  }

  .section-head {
    flex-wrap: wrap;
  }

  /* Section-head action rows (List a car / Mark all read / Browse cars):
     stack full-width so the CTAs are comfortably tappable. */
  .section-head .sortbar {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .section-head .sortbar .btn,
  .section-head .sortbar form,
  .section-head .sortbar form .btn {
    width: 100%;
  }

  .dash-head {
    padding: 28px 0 4px;
  }
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0;
  color: var(--muted);
  font-size: 13px;
}

.foot__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Nav notification bell
   -------------------------------------------------------------------------- */
.nav__bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--ink-2);
  border: 1px solid transparent;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}

.nav__bell:hover {
  color: var(--brand);
  border-color: var(--border);
  background: var(--brand-soft);
}

.nav__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: var(--num);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  border: 1.5px solid var(--surface);
}

/* --------------------------------------------------------------------------
   Notification list
   -------------------------------------------------------------------------- */
.notif-list {
  list-style: none;
  margin: 18px 0 70px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.notif--unread {
  background: var(--brand-soft);
  border-color: rgba(109, 40, 217, 0.22);
}

.notif__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 6px;
  background: transparent;
  flex: none;
}

.notif--unread .notif__dot {
  background: var(--brand);
}

.notif__body {
  flex: 1;
  min-width: 0;
}

.notif__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.notif__title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}

.notif__time {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  flex: none;
}

.notif__text {
  margin: 4px 0 0;
  color: var(--ink-2);
  font-size: 14px;
}

.notif__link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   Active filters + grow field
   -------------------------------------------------------------------------- */
.filters__field--grow {
  flex: 1 1 220px;
}

.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.active-filters__label {
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

.filterchip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--brand-soft);
  border: 1px solid rgba(109, 40, 217, 0.22);
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
}

.active-filters__clear {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

.active-filters__clear:hover {
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   Seller price-confirmation note (dashboard table)
   -------------------------------------------------------------------------- */
.listings-table__note td {
  padding-top: 0;
}

.price-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #FFF7ED;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-sm);
  color: #92500A;
  font-size: 13.5px;
  line-height: 1.45;
}

.price-note svg {
  flex: none;
  margin-top: 1px;
}

.price-note strong {
  font-weight: 700;
  color: #7C3A06;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .detail {
    grid-template-columns: 1fr;
  }

  .pricecard {
    position: static;
  }

  .nav__search {
    display: none;
  }

  .nav__company {
    display: none;
  }

  .nav__links {
    gap: 14px;
  }

  .nav__links a {
    font-size: 14px;
  }

  .hero {
    padding: 36px 24px 30px;
  }
}

/* ==========================================================================
   Mobile nav — pure-CSS hamburger (≤768px). Placed AFTER the 860px block so
   these rules win the cascade (both are max-width queries that match at 768px).
   ========================================================================== */
@media (max-width: 768px) {
  .nav__inner {
    gap: 14px;
    justify-content: space-between;
  }

  /* Burger: ≥44×44 tap target, three bars, on the right of the logo. */
  .nav__burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 11px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
  }

  .nav__burger span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: var(--ink-2);
    transition: transform 0.18s ease, opacity 0.18s ease;
  }

  .nav__burger:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
  }

  /* Morph the bars into an "X" when the menu is open. */
  .nav__toggle:checked ~ .nav__inner .nav__burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav__toggle:checked ~ .nav__inner .nav__burger span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle:checked ~ .nav__inner .nav__burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Panel: hidden by default, revealed as a full-width dropdown below the bar. */
  .nav__panel {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .nav__toggle:checked ~ .nav__inner .nav__panel {
    display: flex;
  }

  /* Search: full width at the top of the panel. */
  .nav__search {
    display: flex;
    width: 100%;
    justify-content: stretch;
    margin-bottom: 4px;
  }

  .searchbar {
    max-width: none;
  }

  /* Links + actions: each a comfortably tappable (≥44px) stacked row. */
  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  .nav__links a:not(.btn) {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 16px;
  }

  .nav__links a:not(.btn):hover {
    background: var(--brand-soft);
  }

  /* Bell becomes a full-width "Notifications (N)" row. */
  .nav__bell {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
  }

  .nav__bell-text {
    display: inline;
    font-weight: 600;
    font-size: 16px;
    color: var(--ink-2);
  }

  .nav__badge {
    position: static;
    border: 0;
    margin-left: auto;
  }

  /* Company label: visible again as its own row (overrides the 860px hide). */
  .nav__company {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    border-left: 0;
    border-top: 1px solid var(--border);
    margin-top: 4px;
    padding-top: 8px;
  }

  /* button_to renders a <form> wrapper; make it (and its button) full width. */
  .nav__links form {
    width: 100%;
    margin-top: 4px;
  }

  .nav__links .btn {
    width: 100%;
    min-height: 44px;
    margin-top: 4px;
  }

  .nav__links form .btn {
    margin-top: 0;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 0 16px;
  }

  .trust {
    grid-template-columns: 1fr;
  }

  .roletoggle {
    grid-template-columns: 1fr;
  }

  .specsheet {
    grid-template-columns: 1fr;
  }

  .brand__tag {
    display: none;
  }

  .section-head {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
