/* ============================================================================
   getmycarr design system
   ----------------------------------------------------------------------------
   One stylesheet for the whole public site. Deliberately plain CSS with custom
   properties and no framework, so it is portable: this file drops into a React
   or Next.js project as a global stylesheet unchanged, and the class names on
   the markup carry across with it.

   Sections
     1  tokens
     2  reset and base
     3  header and navigation
     4  buttons
     5  sections, headings, breadcrumbs, panels
     6  form fields
     7  chips and tiles
     8  car cards
     9  listing / search layout
    10  car detail
    11  dealer pages
    12  home page
    13  features, calls to action, alerts
    14  footer
    15  city dialog
    16  breakpoints
   ========================================================================== */

/* 1 ---------------------------------------------------------------- tokens */
:root{
  --red:#e01f26; --red-dark:#b8171d; --red-soft:#fdecec;
  --ink:#14161a; --ink-2:#3d434d; --muted:#6b7280;
  --line:#e6e8ec; --bg:#ffffff; --bg-2:#f6f7f9; --bg-3:#eef1f5;
  --green:#0f7a3d; --green-soft:#e8f6ed; --blue:#0a6ec9; --blue-soft:#e6f1fc;
  --amber:#f5a623;
  --radius:14px; --radius-sm:10px; --radius-lg:22px;
  --shadow:0 1px 2px rgba(20,22,26,.06),0 8px 24px rgba(20,22,26,.06);
  --shadow-lg:0 2px 4px rgba(20,22,26,.06),0 18px 44px rgba(20,22,26,.12);
  --max:1200px;
  --font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
}

/* 2 -------------------------------------------------------- reset and base */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);color:var(--ink);background:var(--bg);line-height:1.55;font-size:15px;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
/* One scale for the whole site.

   These carried no font-size at all, so any heading without a class took the
   browser default -- and h2 defaults to 1.5em, most of the way to the page
   title. It went unnoticed while the small headings were <h4>, because h4
   happens to default small; the moment they became <h2> for the document
   outline they rendered at heading size, and the filter rail shouted.

   A class that sets its own size still wins. This is only the floor. */
h1,h2,h3,h4{margin:0;line-height:1.2;letter-spacing:-.02em;font-weight:700}
h1{font-size:clamp(23px,4vw,31px)}
h2{font-size:19px}
h3{font-size:16.5px}
h4{font-size:14.5px}
p{margin:0 0 12px}
.wrap{max-width:var(--max);margin:0 auto;padding:0 20px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
:focus-visible{outline:2px solid var(--red);outline-offset:2px;border-radius:4px}
.muted{color:var(--muted)}
.stars{color:var(--amber);letter-spacing:1px;font-size:14px}

/* 3 ------------------------------------------------ header and navigation */
.hdr{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.92);backdrop-filter:saturate(180%) blur(12px);border-bottom:1px solid var(--line)}
.hdr-in{display:flex;align-items:center;gap:14px;height:66px}
.logo img{height:30px;width:auto}
.nav{display:none;margin-left:10px;gap:4px}
.nav a{padding:8px 12px;border-radius:9px;font-weight:500;color:var(--ink-2);font-size:14.5px}
.nav a:hover,.nav a.on{background:var(--bg-2);color:var(--ink)}
.hdr-right{margin-left:auto;display:flex;align-items:center;gap:8px}
.city-btn{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;font:inherit;font-size:14px;font-weight:500;cursor:pointer;color:var(--ink-2);max-width:170px}
.city-btn b{color:var(--ink);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.city-btn:hover{border-color:#cfd4dc}
.burger{display:inline-flex;flex-direction:column;justify-content:center;gap:4px;width:40px;height:40px;padding:0 9px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer}
.burger span{height:2px;background:var(--ink);border-radius:2px}

/* 4 --------------------------------------------------------------- buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 18px;border-radius:10px;font-weight:600;font-size:14.5px;border:1px solid transparent;cursor:pointer;font-family:inherit;line-height:1.2;transition:background .15s,border-color .15s,transform .05s;text-align:center}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--red);color:#fff}
.btn-primary:hover{background:var(--red-dark)}
.btn-ghost{background:#fff;border-color:var(--line);color:var(--ink)}
.btn-ghost:hover{border-color:#cfd4dc;background:var(--bg-2)}
.btn-dark{background:var(--ink);color:#fff}
.btn-dark:hover{background:#000}
.btn-lg{padding:14px 26px;font-size:16px;border-radius:12px}
.btn-sm{padding:7px 13px;font-size:13.5px;border-radius:9px}
.btn-block{width:100%}

/* 5 ------------------------- sections, headings, breadcrumbs, panels */
.sec{padding:52px 0}
.sec-sm{padding:30px 0}
.sec-alt{background:var(--bg-2)}
.sec-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:22px}
.sec-head h2{font-size:clamp(21px,3.4vw,28px);font-weight:700}
.sec-head p{margin:6px 0 0;color:var(--muted);font-size:14.5px}
.link-more{color:var(--red);font-weight:600;font-size:14.5px;white-space:nowrap}
.link-more:hover{text-decoration:underline}
.crumbs{display:flex;flex-wrap:wrap;gap:7px;align-items:center;font-size:13.5px;color:var(--muted);padding:16px 0}
.crumbs a:hover{color:var(--ink)}
.crumbs span{color:#c8cdd6}
.crumbs em{font-style:normal;color:var(--ink)}
.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px}
.empty{text-align:center;padding:56px 20px;color:var(--muted)}
.empty h3{font-size:19px;color:var(--ink);margin-bottom:8px}
.pill{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;font-size:12.5px;font-weight:600;background:var(--bg-2);color:var(--ink-2)}
.pill-cert{background:var(--green-soft);color:#0b5f30}
.pill-ev{background:var(--blue-soft);color:#075ca8}

/* 6 ----------------------------------------------------------- form fields */
.field{margin-bottom:12px}
.field label{display:block;font-size:12px;font-weight:600;color:var(--muted);margin-bottom:5px;text-transform:uppercase;letter-spacing:.05em}
.field select,.field input,.field textarea{width:100%;padding:12px 13px;border:1px solid var(--line);border-radius:var(--radius-sm);font:inherit;font-size:15px;background:#fff;color:var(--ink)}
.field select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center}
.field select:focus,.field input:focus,.field textarea:focus{border-color:var(--red);outline:none}
.field-row{display:grid;grid-template-columns:1fr;gap:12px}
.field-row .field{margin-bottom:0}

/* 7 -------------------------------------------------------- chips and tiles */
.chips{display:flex;flex-wrap:wrap;gap:9px}
.chip{display:inline-flex;align-items:center;gap:7px;padding:9px 15px;border:1px solid var(--line);border-radius:999px;background:#fff;font-weight:500;font-size:14.5px;transition:border-color .15s,background .15s;cursor:pointer;font-family:inherit;color:var(--ink)}
.chip:hover{border-color:var(--red);background:var(--red-soft);color:var(--red-dark)}
.chip.on{border-color:var(--red);background:var(--red);color:#fff}
.chip span{color:var(--muted);font-size:12.5px;font-weight:600}
.chip:hover span{color:var(--red-dark)}
.chip.on span{color:rgba(255,255,255,.75)}
.tiles{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.tile{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px 16px;transition:border-color .15s,box-shadow .15s,transform .15s}
.tile:hover{border-color:#d4d8e0;box-shadow:var(--shadow);transform:translateY(-2px)}
.tile .t{font-weight:700;font-size:15.5px}
.tile .n{color:var(--muted);font-size:13.5px;margin-top:3px}
.kv{display:flex;flex-wrap:wrap;gap:8px}
.kv span{background:var(--bg-2);border-radius:8px;padding:6px 11px;font-size:13.5px;color:var(--ink-2)}

/* 8 ------------------------------------------------------------- car cards */
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:border-color .15s,box-shadow .18s,transform .18s}
.card:hover{border-color:#d4d8e0;box-shadow:var(--shadow-lg);transform:translateY(-3px)}
.card-img{position:relative;aspect-ratio:4/3;background:var(--bg-3);overflow:hidden}
.card-img img{width:100%;height:100%;object-fit:cover}
.badge{position:absolute;top:10px;left:10px;background:rgba(20,22,26,.82);color:#fff;font-size:11.5px;font-weight:600;padding:5px 10px;border-radius:7px;letter-spacing:.02em;backdrop-filter:blur(4px)}
.badge-cert{background:var(--green)}
.badge-ev{background:var(--blue)}
.card-body{padding:14px 15px 16px;display:flex;flex-direction:column;flex:1}
.card h3{font-size:15.5px;font-weight:650;margin-bottom:7px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.meta{color:var(--muted);font-size:13px;margin-bottom:12px;display:flex;flex-wrap:wrap;gap:4px 9px}
.meta i{font-style:normal}
.meta i+i::before{content:"·";margin-right:9px;color:#c8cdd6}
.price{margin-top:auto;display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding-top:11px;border-top:1px solid var(--bg-2)}
.price b{font-size:18px;font-weight:750;letter-spacing:-.02em}
.price small{color:var(--muted);font-size:12.5px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 9 ------------------------------------------------- listing/search layout */
.split{display:grid;grid-template-columns:1fr;gap:24px}
.filters .grp{border-bottom:1px solid var(--line);padding:16px 0}
.filters .grp:first-child{padding-top:0}
.filters .grp:last-child{border-bottom:0;padding-bottom:0}
/* The filter rail captions. Scoped to the class on the element and not to a
   .filters wrapper, because there is not one: the rail is aside > .panel >
   .grp. The old <h4> looked right only because a browser renders h4 small
   by default -- the rule was never matching, and the moment they became
   <h2> for the document outline they rendered at heading size. */
.flt-h,.filters h4{font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:11px;font-weight:700;line-height:1.2}
.res-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.res-head h1{font-size:clamp(20px,3.2vw,26px)}
.res-head .n{color:var(--muted);font-size:14px;margin-top:3px}
.pager{display:flex;gap:8px;justify-content:center;padding:32px 0 0;flex-wrap:wrap}
.pager a,.pager span{min-width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:#fff;font-weight:600;font-size:14.5px}
.pager a:hover{border-color:var(--red);color:var(--red)}
.pager .cur{background:var(--red);border-color:var(--red);color:#fff}
.pager .off{opacity:.4}

/* 10 ---------------------------------------------------------- car detail */
.dt-head{padding:6px 0 18px}
.dt-head h1{font-size:clamp(22px,3.6vw,31px);font-weight:750}
.dt-sub{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin-top:9px;color:var(--muted);font-size:14.5px}
.dt-grid{display:grid;grid-template-columns:1fr;gap:28px;padding-bottom:64px}
.block{margin-bottom:30px}
.block h2{font-size:19px;margin-bottom:14px}
.spec-icons{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.si{display:flex;align-items:center;gap:11px;background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px 13px}
.si .ic{flex:0 0 auto;width:34px;height:34px;border-radius:9px;background:var(--bg-2);display:grid;place-items:center;color:var(--ink-2)}
.si dt{font-size:11.5px;text-transform:uppercase;letter-spacing:.045em;color:var(--muted);font-weight:600}
.si dd{margin:1px 0 0;font-weight:650;font-size:14.5px}
.prose{color:var(--ink-2);font-size:15px;line-height:1.65}
.prose p:last-child{margin-bottom:0}
.featgrp{margin-bottom:16px}
.featgrp h3{font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-bottom:9px}
.sticky-buy{position:sticky;top:86px}
.pricebox{border:1px solid var(--line);border-radius:var(--radius);padding:20px;background:#fff;box-shadow:var(--shadow)}
.pricebox .p{font-size:clamp(26px,4.4vw,33px);font-weight:790;letter-spacing:-.025em;line-height:1.05}
.pricebox .sub{color:var(--muted);font-size:13.5px;margin:4px 0 16px}
.pricebox .emi{background:var(--bg-2);border-radius:var(--radius-sm);padding:11px 13px;font-size:13.5px;color:var(--ink-2);margin:14px 0}
.pricebox .emi b{font-weight:700;color:var(--ink)}
.trust{display:flex;flex-direction:column;gap:9px;margin-top:16px;font-size:13.5px;color:var(--muted)}
.trust div{display:flex;gap:8px;align-items:flex-start}
.trust svg{flex:0 0 auto;margin-top:2px;color:var(--green)}
.rev{border:1px solid var(--line);border-radius:var(--radius);padding:15px;background:#fff;margin-bottom:10px}

/* 11 -------------------------------------------------------- dealer pages */
.avatar{flex:0 0 auto;width:50px;height:50px;border-radius:13px;background:var(--red-soft);color:var(--red);display:grid;place-items:center;font-weight:750;font-size:19px}
.avatar-lg{width:76px;height:76px;border-radius:18px;font-size:29px}
.dealer-card{display:flex;gap:14px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:var(--radius);background:#fff}
.dealer-hero{background:linear-gradient(160deg,#191c22,#2a1417);color:#fff;padding:34px 0}
.dealer-hero h1{font-size:clamp(23px,4vw,33px);font-weight:780}
.dealer-hero .avatar{background:rgba(255,255,255,.12);color:#fff}
.dealer-hero .dh-sub{color:#c3c8d2;font-size:14.5px;margin-top:6px;display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center}
.dealer-hero .dh-stats{display:flex;flex-wrap:wrap;gap:24px;margin-top:20px;font-size:13.5px;color:#c3c8d2}
.dealer-hero .dh-stats b{display:block;color:#fff;font-size:21px;font-weight:720;letter-spacing:-.02em}
.dealer-row{display:flex;gap:16px;align-items:center;padding:18px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;transition:border-color .15s,box-shadow .18s,transform .15s}
.dealer-row:hover{border-color:#d4d8e0;box-shadow:var(--shadow);transform:translateY(-2px)}
.dealer-rows{display:grid;grid-template-columns:1fr;gap:14px}
.dealer-row .body{flex:1;min-width:0}
.dealer-row h3{font-size:16.5px;margin-bottom:3px}
.dealer-row .sub{color:var(--muted);font-size:13.5px}
.dealer-row .stock{flex:0 0 auto;text-align:right}
.dealer-row .stock b{display:block;font-size:19px;font-weight:750;letter-spacing:-.02em}
.dealer-row .stock span{color:var(--muted);font-size:12.5px}

/* 12 ----------------------------------------------------------- home page */
.hero{position:relative;background:linear-gradient(165deg,#191c22 0%,#24272f 45%,#2e1416 100%);color:#fff;padding:52px 0 0;overflow:hidden}
.hero::after{content:"";position:absolute;right:-180px;top:-140px;width:620px;height:620px;border-radius:50%;background:radial-gradient(circle,rgba(224,31,38,.34),transparent 62%)}
.hero-in{position:relative;z-index:2}
.eyebrow{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);padding:6px 14px;border-radius:999px;font-size:13px;font-weight:600}
.eyebrow i{width:7px;height:7px;border-radius:50%;background:#37d67a;display:inline-block}
.hero h1{font-size:clamp(30px,6.2vw,50px);font-weight:800;margin:18px 0 12px;letter-spacing:-.033em}
.hero h1 em{font-style:normal;color:#ff6b70}
.hero p{margin:0 0 30px;color:#c3c8d2;font-size:clamp(15px,2.3vw,17.5px);max-width:560px}
.search{background:#fff;border-radius:var(--radius-lg);padding:8px;box-shadow:var(--shadow-lg);color:var(--ink)}
.tabs{display:flex;gap:4px;padding:6px 6px 0}
.tab{flex:0 0 auto;padding:10px 18px;border-radius:10px 10px 0 0;font-weight:600;font-size:14.5px;color:var(--muted);background:none;border:0;cursor:pointer;font-family:inherit}
.tab[aria-selected="true"]{color:var(--red);background:var(--red-soft)}
.search-body{padding:16px 14px 14px}
.grid-f{display:grid;grid-template-columns:1fr;gap:10px}
.grid-f .field{margin-bottom:0}
.hero-stats{display:flex;flex-wrap:wrap;gap:26px;padding:26px 0 44px;color:#c3c8d2;font-size:14px}
.hero-stats b{display:block;color:#fff;font-size:23px;font-weight:700;letter-spacing:-.02em}

/* 13 ------------------------------------ features, calls to action, alerts */
.feats{display:grid;grid-template-columns:1fr;gap:16px}
.feat{display:flex;gap:14px;align-items:flex-start}
.feat .ic{flex:0 0 auto;width:42px;height:42px;border-radius:11px;background:var(--red-soft);color:var(--red);display:grid;place-items:center;font-size:19px;font-weight:700}
.feat h3{font-size:15.5px;margin-bottom:4px}
.feat p{margin:0;color:var(--muted);font-size:14px}
.cta{background:linear-gradient(135deg,#191c22,#2c1315);color:#fff;border-radius:var(--radius-lg);padding:34px 26px;display:grid;gap:20px}
.cta h2{font-size:clamp(21px,3.6vw,28px)}
.cta p{margin:9px 0 0;color:#c3c8d2;font-size:15px}
.cta-actions{display:flex;flex-wrap:wrap;gap:10px}
.alert{padding:12px 16px;border-radius:var(--radius-sm);margin-bottom:16px;font-size:14.5px;font-weight:500}
.alert-ok{background:var(--green-soft);color:#0b5f30;border:1px solid #bde3cc}
.alert-bad{background:var(--red-soft);color:var(--red-dark);border:1px solid #f6c9cb}

/* 14 ------------------------------------------------------------- footer */
.ft{background:#14161a;color:#9aa1ad;padding:44px 0 26px;font-size:14px}
.ft-grid{display:grid;grid-template-columns:1fr;gap:26px;margin-bottom:28px}
.ft h4,.ft .ft-h{color:#fff;font-size:13px;text-transform:uppercase;letter-spacing:.07em;margin-bottom:12px;font-weight:600}
.ft a{display:block;padding:4.5px 0}
.ft a:hover{color:#fff}
.ft-logo img{height:28px;filter:brightness(0) invert(1);opacity:.92}
.ft-word{font-size:22px;font-weight:800;letter-spacing:-.02em;color:#fff;line-height:1}
.ft-word span{color:var(--red)}
.ft-bot{border-top:1px solid #23262d;padding-top:18px;display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;font-size:13px}

/* 15 -------------------------------------------------------- city dialog */
.ov{position:fixed;inset:0;background:rgba(20,22,26,.55);z-index:80;display:none;align-items:flex-end;justify-content:center}
.ov.open{display:flex}
.sheet{background:#fff;width:100%;max-width:560px;border-radius:18px 18px 0 0;max-height:82vh;display:flex;flex-direction:column}
.sheet-h{padding:18px 20px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between}
.sheet-h h3{font-size:17px}
.x{width:34px;height:34px;border-radius:9px;border:1px solid var(--line);background:#fff;cursor:pointer;font-size:19px;line-height:1;color:var(--muted)}
.sheet-b{padding:16px 20px 24px;overflow:auto}

/* 16 --------------------------------------------------------- breakpoints */
@media(min-width:700px){
  .tiles{grid-template-columns:repeat(4,1fr)}
  .feats{grid-template-columns:repeat(2,1fr);gap:26px}
  .cta{grid-template-columns:1fr auto;align-items:center;padding:40px 38px}
  .ft-grid{grid-template-columns:2fr 1fr 1fr 1fr}
  .spec-icons{grid-template-columns:repeat(3,1fr)}
  .grid-f{grid-template-columns:repeat(2,1fr)}
  .field-row{grid-template-columns:repeat(2,1fr)}
  .hero{padding-top:64px}
  .ov{align-items:center;padding:20px}
  .sheet{border-radius:18px}
  .dealer-rows{grid-template-columns:repeat(2,1fr)}
}
@media(min-width:960px){
  .nav{display:flex}
  .burger{display:none}
  .sec{padding:66px 0}
  .feats{grid-template-columns:repeat(4,1fr)}
  .split{grid-template-columns:270px 1fr;gap:30px}
  .dt-grid{grid-template-columns:1fr 360px;gap:36px}
  .spec-icons{grid-template-columns:repeat(3,1fr)}
  .grid-f{grid-template-columns:repeat(4,1fr)}
}

/* ------------------------------------------------------------------ *
 | Dealer page                                                         |
 |                                                                     |
 | Moved here from the Blade template, where it sat in a page-local    |
 | <style> block. The Next front end loads this file and nothing else, |
 | so the whole dealer page rendered unstyled there while looking      |
 | correct in Blade. One stylesheet, both front ends.                  |
 * ------------------------------------------------------------------ */
/* ---- header band ------------------------------------------------------- */
.dp-crumbs{font-size:13px;color:var(--muted);padding:12px 0}
.dp-crumbs a{color:var(--muted)} .dp-crumbs a:hover{color:var(--red)}
.dp-crumbs span{margin:0 6px;opacity:.55}

/* 16:5. The box used to be clamp(150px,22vw,230px) tall at full width, which
   is roughly 6:1, so a photograph of anything was cropped to a letterbox
   through its middle and people lost their heads. This is the ratio the
   cropper produces, so what a dealer positions is what is shown. */
/* No max-height. With aspect-ratio, capping the height caps the WIDTH too,
   so the banner stopped short of the page edge and left white beside it.
   The ratio is the same one the cropper writes, so a dealer's photograph
   fills this exactly and is never cropped twice. */
.dp-cover{aspect-ratio:16/5;background:#1b1f27 center/cover no-repeat;position:relative;border-radius:var(--radius);overflow:hidden}
.dp-cover.is-empty{background:linear-gradient(120deg,var(--red) 0%,#8f1016 60%,#3d1013 100%)}
.dp-cover::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.02),rgba(0,0,0,.35))}
.dp-cover.is-empty::after{display:none}
.dp-photos{position:absolute;right:14px;bottom:13px;z-index:3;background:rgba(15,18,24,.74);color:#fff;
           border-radius:8px;padding:6px 12px;font-size:12.5px;font-weight:600;text-decoration:none}
.dp-photos:hover{background:rgba(15,18,24,.9);color:#fff}

.dp-id{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap;padding:0 0 18px}
.dp-logo{width:104px;height:104px;border-radius:14px;object-fit:contain;background:#fff;flex:0 0 auto;
         border:1px solid var(--line);box-shadow:0 2px 12px rgba(0,0,0,.10);margin-top:-46px;position:relative;z-index:2;padding:6px}
.dp-idmain{flex:1;min-width:270px;padding-top:12px}
.dp-idmain h1{font-size:clamp(21px,3.2vw,27px);margin:0;display:inline;vertical-align:middle}
/* Pills, not a pipe-separated run of grey text.
   Separators at 0.4 opacity ran the labels together, so "Certified
   vehicles|Finance assistance|Insurance support" read as one long string
   rather than three things this dealer offers. A border around each is what
   makes them countable at a glance. */
.dp-doing{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.dp-doing-pill{display:inline-flex;align-items:center;gap:5px;padding:4px 11px;
  border:1px solid var(--line);border-radius:999px;background:var(--bg-2);
  font-size:13px;font-weight:500;color:var(--ink-2);line-height:1.5;white-space:nowrap}
.dp-doing-pill::before{content:"✓";color:var(--green);font-size:11px;font-weight:700}
.dp-doing-more{display:inline-flex;align-items:center;padding:4px 11px;border-radius:999px;
  border:1px dashed var(--line);font-size:13px;font-weight:600;color:var(--red);
  background:#fff;line-height:1.5;white-space:nowrap}
.dp-doing-more:hover{border-color:var(--red);background:var(--red-soft)}
.dp-line{display:flex;gap:6px 14px;flex-wrap:wrap;align-items:center;font-size:13.5px;color:var(--muted);margin-top:7px}
.dp-line .stars{color:#f6b73c;letter-spacing:1px}
.dp-line b{color:var(--ink)}
.dp-line a{color:var(--red);font-weight:600}
.dp-open{display:inline-flex;align-items:center;gap:5px;font-weight:600}
.dp-open.yes{color:#1c6b3a} .dp-open.no{color:var(--red-dark)}
.dp-open i{width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block}

/* actions above the figures, both to the right, as in the design */
.dp-right{flex:0 0 auto;padding-top:12px;display:flex;flex-direction:column;align-items:flex-end;gap:14px}
.dp-acts{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.dp-figs{display:flex;gap:20px;flex-wrap:wrap;justify-content:flex-end}
.dp-fig{text-align:center;min-width:92px}
.dp-fig .ic{width:34px;height:34px;margin:0 auto 5px;border-radius:9px;background:var(--bg-2);border:1px solid var(--line);
            display:flex;align-items:center;justify-content:center;font-size:15px;color:var(--red)}
.dp-fig b{display:block;font-size:17px;line-height:1.2}
.dp-fig span{font-size:12.5px;color:var(--muted)}
@media (max-width:900px){
  .dp-right{width:100%;align-items:stretch;padding-top:0}
  .dp-acts{justify-content:flex-start} .dp-acts .btn{flex:1;min-width:150px}
  .dp-figs{justify-content:space-between;gap:12px}
}

/* ---- tabs -------------------------------------------------------------- */
.dp-tabs a{flex:0 0 auto;padding:13px 16px;font-size:14px;font-weight:600;color:var(--muted);
           text-decoration:none;border-bottom:2px solid transparent;white-space:nowrap}
.dp-tabs a:hover{color:var(--ink)}
.dp-tabs a.on{color:var(--red);border-bottom-color:var(--red)}

/* ---- two columns ------------------------------------------------------- */
.dp-cols{display:grid;grid-template-columns:1fr 340px;gap:24px;padding:20px 0 44px;align-items:start}
@media (max-width:1000px){.dp-cols{grid-template-columns:1fr}}

.dp-h2{font-size:19px;margin:0 0 12px}
.dp-sec{margin-bottom:24px}
.dp-secHead{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;flex-wrap:wrap}
.dp-secHead .more{font-size:13.5px;font-weight:600;color:var(--red)}
.btn-write{padding:7px 14px;font-size:13.5px;line-height:1}

.dp-about{font-size:14.5px;line-height:1.7;color:var(--ink-2)}
.dp-about[data-clamped="1"]{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.dp-showmore{background:none;border:0;color:var(--red);font-weight:600;font-size:13.5px;cursor:pointer;padding:6px 0 0}

/* services as a row of cards */
/* dp-svc rows, not cards. Six centred cards with a 34px icon above the text
   took a whole screen on a phone, and the description underneath was 11.5px
   grey, which is below what anybody reads comfortably. Icon beside the text
   halves the height and leaves room to set the description at a readable size.
   Left aligned too: centred text is harder to scan down a list. */
/* Two to a row, not three. At three the text column was 190px, so a two word
   label wrapped and the note under it wrapped again, and six cards of ragged
   two-line text is what made this look messy.

   `.dp-svc > div`, not `.dp-svc div`: the descendant form also matched the
   text wrapper inside each card and made THAT flex too, which is why the label
   and the note sat side by side instead of stacking. */
.dp-svc{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:10px}
.dp-svc > div{display:flex;align-items:center;gap:12px;border:1px solid var(--line);
  border-radius:var(--radius-sm);padding:12px 14px;background:#fff;text-align:left}
.dp-svc .ic{width:34px;height:34px;margin:0;flex:0 0 auto;border-radius:9px;background:#e8f6ed;color:#1c6b3a;
            display:flex;align-items:center;justify-content:center}
/* The icons are drawn now, so they need a size. Without this an inline svg
   with a viewBox and no width falls back to 300x150. */
.dp-svc .ic svg{width:18px;height:18px}
.dp-svc .svc-txt{min-width:0;display:block}
.dp-svc strong{display:block;font-size:14px;line-height:1.35}
.dp-svc span{display:block;font-size:13px;line-height:1.5;color:var(--ink-2);margin-top:1px}

/* stock filter chips */
.dp-chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.dp-chips a{border:1px solid var(--line);border-radius:999px;padding:6px 14px;font-size:13px;font-weight:600;
            color:var(--ink-2);text-decoration:none;background:#fff}
.dp-chips a.on{background:var(--red);border-color:var(--red);color:#fff}

/* reviews */
.dp-bd{display:flex;gap:26px;align-items:center;flex-wrap:wrap;border:1px solid var(--line);
       border-radius:var(--radius-sm);padding:16px 18px;background:#fff;margin-bottom:14px}
.dp-bd .avg{text-align:center;min-width:96px}
.dp-bd .avg b{display:block;font-size:38px;line-height:1}
.dp-bd .avg .stars{color:#f6b73c}
.dp-bd .bars{flex:1;min-width:220px}
.dp-bd .bar{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted);margin:3px 0}
.dp-bd .track{flex:1;height:7px;border-radius:99px;background:var(--bg-3);overflow:hidden;display:block}
.dp-bd .fill{display:block;height:100%;background:#f6b73c;border-radius:99px}
.dp-revs{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px}
.dp-rev{border:1px solid var(--line);border-radius:var(--radius-sm);padding:14px 15px;background:#fff}
.dp-rev .top{display:flex;gap:10px;align-items:center;margin-bottom:8px}
.dp-rev .av{width:34px;height:34px;border-radius:50%;background:var(--bg-3);display:flex;align-items:center;
            justify-content:center;font-weight:700;color:var(--muted);font-size:14px;flex:0 0 auto}
.dp-rev .stars{color:#f6b73c;font-size:13px}
.dp-rev p{font-size:13.5px;line-height:1.6;color:var(--ink-2);margin:0}
.dp-reply{margin-top:9px;padding:9px 11px;background:var(--bg-2);border-radius:var(--radius-sm);font-size:12.5px}

/* nearby dealers */
.dp-near{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.dp-near a{display:flex;gap:11px;align-items:center;border:1px solid var(--line);border-radius:var(--radius-sm);
           padding:12px 13px;background:#fff;text-decoration:none}
.dp-near a:hover{border-color:var(--red)}
.dp-near img,.dp-near .ph{width:44px;height:44px;border-radius:9px;object-fit:contain;flex:0 0 auto;background:var(--bg-3);
                          display:flex;align-items:center;justify-content:center;font-weight:700;color:var(--muted)}
.dp-near b{display:block;font-size:13.5px;color:var(--ink);line-height:1.3}
.dp-near small{color:var(--muted);font-size:12px;display:block}
.dp-near .st{color:#f6b73c}

/* ---- sidebar ----------------------------------------------------------- */
.dp-card{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:17px 18px;margin-bottom:16px}
.dp-card h3{font-size:16px;margin:0 0 13px}
.dp-card .lead{font-size:13px;color:var(--ink-2);margin:9px 0 0;line-height:1.55}
.dp-masked{font-size:20px;font-weight:700;letter-spacing:.5px;margin-bottom:10px}
.dp-masked .dots{color:var(--muted);letter-spacing:2px}
.dp-num{font-size:21px;font-weight:700;margin-bottom:10px;word-break:break-all}
/* An illustration of a map, drawn in CSS: blocks, a couple of roads and a pin.
   Faded, because it is not this dealer's actual street and should not pretend
   to be. A live embed needs a paid key and a third party on every page. */
.dp-map{position:relative;height:168px;border-radius:var(--radius-sm);border:1px solid var(--line);
        margin-bottom:12px;overflow:hidden;background:#e9eee7}
.dp-map .grid{position:absolute;inset:0;
  background-image:
    linear-gradient(0deg,rgba(255,255,255,.9) 3px,transparent 3px),
    linear-gradient(90deg,rgba(255,255,255,.9) 3px,transparent 3px),
    linear-gradient(0deg,rgba(255,255,255,.55) 2px,transparent 2px),
    linear-gradient(90deg,rgba(255,255,255,.55) 2px,transparent 2px);
  background-size:96px 96px,96px 96px,34px 34px,34px 34px;
  background-position:-14px -22px,-30px -8px,0 0,0 0}
.dp-map .road{position:absolute;background:#fff;opacity:.95}
.dp-map .road.a{left:-10%;right:-10%;top:58%;height:11px;transform:rotate(-7deg)}
.dp-map .road.b{top:-10%;bottom:-10%;left:33%;width:9px;transform:rotate(5deg)}
.dp-map .park{position:absolute;background:#d6e6cf;border-radius:8px}
.dp-map .park.p1{left:8%;top:12%;width:26%;height:30%}
.dp-map .park.p2{right:10%;bottom:12%;width:30%;height:26%}
.dp-map .fade{position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.35),rgba(255,255,255,.62))}
.dp-map .pin{position:absolute;left:50%;top:44%;transform:translate(-50%,-100%);font-size:30px;
             filter:drop-shadow(0 3px 5px rgba(0,0,0,.28));z-index:2}
/* Sized here rather than relying on a btn-sm the stylesheet does not define,
   which left it full width and covering the illustration it sits on. */
.dp-map .cta{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:3;
             white-space:nowrap;display:inline-flex;align-items:center;gap:6px;
             width:auto;padding:8px 16px;font-size:13px;font-weight:600;line-height:1;
             border-radius:999px;background:var(--red);color:#fff;border:0;text-decoration:none;
             box-shadow:0 3px 10px rgba(0,0,0,.28)}
.dp-map .cta:hover{background:var(--red-dark);color:#fff}
.dp-map .note{position:absolute;right:8px;bottom:6px;font-size:10px;color:#7c8598;z-index:2}

/* sticky section tabs */
/* The bar is the sticky thing, not the nav: sticky only holds within its own
   parent, and the nav used to live in the header block, so it left the screen
   as soon as that block did. Offset by the site header, which is sticky too. */
.dp-tabbar{position:sticky;top:67px;z-index:40;background:rgba(255,255,255,.96);
           backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid var(--line);margin-bottom:0}
.dp-tabs{display:flex;gap:0;overflow-x:auto}
@media (max-width:700px){.dp-tabbar{top:61px}}

/* a proper tick rather than a character that renders differently everywhere */
.dp-tick{display:inline-flex;align-items:center;gap:5px;vertical-align:middle;margin-left:8px;
         background:#e7f0fd;color:#1a5fb4;border:1px solid #c3d9f7;border-radius:6px;
         padding:3px 9px 3px 7px;font-size:12px;font-weight:700}
.dp-tick svg{width:14px;height:14px;flex:0 0 auto}
.dp-hours{width:100%;font-size:13.5px;border-collapse:collapse}
.dp-hours td{padding:6px 0;border-bottom:1px solid var(--line)}
.dp-hours tr:last-child td{border-bottom:0}
.dp-hours td:last-child{text-align:right;color:var(--muted)}
.dp-hours tr.today td{font-weight:700;color:var(--ink)}
.dp-hours tr.shut td:last-child{color:var(--red-dark)}

.dp-ok{background:#e8f6ed;color:#1c6b3a;border:1px solid #bfe3cd;border-radius:var(--radius-sm);padding:11px 13px;margin-bottom:12px;font-size:13.5px;line-height:1.5}
.dp-err{background:var(--red-soft);color:var(--red-dark);border:1px solid #f6c9cb;border-radius:var(--radius-sm);padding:11px 13px;margin-bottom:12px;font-size:13.5px}
.dp-err ul{margin:4px 0 0;padding-left:17px}

/* gallery */
.dp-gal{display:flex;gap:9px;overflow-x:auto;padding:0 0 4px;scroll-snap-type:x mandatory}
.dp-gal a,.dp-gal span{flex:0 0 auto;scroll-snap-align:start;display:block;border-radius:var(--radius-sm);overflow:hidden;background:var(--line);line-height:0}
.dp-gal img{width:168px;height:112px;object-fit:cover;display:block}

/* popups */
.dp-modal{border:0;border-radius:var(--radius);padding:0;width:min(460px,92vw);box-shadow:0 18px 50px rgba(0,0,0,.25)}
.dp-modal::backdrop{background:rgba(12,15,20,.55)}
.dp-modal .head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 20px 0}
.dp-modal .head h3{font-size:18px;margin:0}
.dp-modal .head p{font-size:13px;color:var(--muted);margin:4px 0 0}
.dp-modal .x{border:0;background:none;font-size:26px;line-height:1;cursor:pointer;color:var(--muted)}
.dp-modal .body{padding:16px 20px 20px}

.dp-writebox{margin-top:16px;border:1px solid var(--line);border-radius:var(--radius-sm);padding:14px 16px;background:#fff}
.dp-writebox summary{cursor:pointer;font-weight:600;font-size:14.5px}
.dp-stars{display:inline-flex;flex-direction:row-reverse;justify-content:flex-end;gap:2px}
.dp-stars input{position:absolute;opacity:0;width:0;height:0}
.dp-stars label{font-size:30px;line-height:1;color:var(--line);cursor:pointer;transition:color .12s}
.dp-stars input:checked ~ label,.dp-stars label:hover,.dp-stars label:hover ~ label{color:#f6b73c}

/* 17 ------------------------------------------------------- dealer panel */
/* The panel is the same design system as the public site, not a second one:
   same tokens, same buttons, same fields. Only the shell differs — a fixed
   sidebar and a working area — so everything below is layout and tables. */

.pnl{display:grid;grid-template-columns:232px minmax(0,1fr);min-height:100vh;background:var(--bg-2)}

.pnl-side{background:var(--bg);border-right:1px solid var(--line);padding:18px 0;position:sticky;top:0;height:100vh;overflow-y:auto}
.pnl-brand{display:flex;align-items:center;gap:9px;padding:0 18px 16px;font-weight:800;font-size:18px;color:var(--ink);text-decoration:none}
.pnl-brand span{color:var(--red)}
.pnl-who{padding:0 18px 14px;margin-bottom:6px;border-bottom:1px solid var(--line)}
.pnl-who b{display:block;font-size:14px;line-height:1.3}
.pnl-who small{color:var(--muted);font-size:12px}
.pnl-nav{display:flex;flex-direction:column;padding:10px 10px 0}
.pnl-nav a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border-radius:var(--radius-sm);color:var(--ink-2);text-decoration:none;font-size:14px;font-weight:500}
.pnl-nav a:hover{background:var(--bg-2);color:var(--ink)}
.pnl-nav a.on{background:var(--red-soft);color:var(--red-dark);font-weight:700}
.pnl-nav .sep{margin:12px 12px 6px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:700}
.pnl-nav em{font-style:normal;background:var(--red);color:#fff;border-radius:999px;font-size:11px;font-weight:700;padding:1px 7px;line-height:1.5}

.pnl-main{padding:26px 28px 60px;min-width:0}
.pnl-head{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-start;justify-content:space-between;margin-bottom:20px}
.pnl-head h1{margin:0 0 3px;font-size:22px;line-height:1.25}
.pnl-head p{margin:0;color:var(--muted);font-size:14px;max-width:62ch}

.pnl-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:14px;margin-bottom:24px}
.pnl-card{background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);padding:15px 16px}
.pnl-card b{display:block;font-size:26px;line-height:1.1;letter-spacing:-.02em}
.pnl-card span{display:block;color:var(--muted);font-size:13px;margin-top:3px}
.pnl-card a{font-size:13px;font-weight:600;color:var(--red);text-decoration:none}

.pnl-box{background:var(--bg);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:20px}
.pnl-box>h2{margin:0;padding:14px 18px;border-bottom:1px solid var(--line);font-size:15px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.pnl-box>h2 a{font-size:13px;font-weight:600;color:var(--red);text-decoration:none}
.pnl-box-body{padding:18px}

.pnl-table{width:100%;border-collapse:collapse;font-size:14px}
.pnl-table th{text-align:left;font-size:12px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);font-weight:700;padding:10px 18px;border-bottom:1px solid var(--line);white-space:nowrap}
.pnl-table td{padding:13px 18px;border-bottom:1px solid var(--line);vertical-align:top}
.pnl-table tr:last-child td{border-bottom:0}
.pnl-table .num{text-align:right;font-variant-numeric:tabular-nums}
.pnl-scroll{overflow-x:auto}

.pnl-tag{display:inline-block;font-size:12px;font-weight:700;padding:2px 9px;border-radius:999px;background:var(--bg-3);color:var(--ink-2)}
.pnl-tag.ok{background:var(--green-soft);color:var(--green)}
.pnl-tag.wait{background:#fdf3e0;color:#8a5a00}
.pnl-tag.off{background:var(--bg-3);color:var(--muted)}

.pnl-empty{padding:34px 18px;text-align:center;color:var(--muted)}
.pnl-empty b{display:block;color:var(--ink);font-size:15px;margin-bottom:4px}

.pnl-progress{height:7px;border-radius:999px;background:var(--bg-3);overflow:hidden;margin:9px 0}
.pnl-progress i{display:block;height:100%;background:var(--green);border-radius:999px}

.pnl-days{display:grid;gap:10px}
.pnl-day{border:1px solid var(--line);border-radius:var(--radius-sm);padding:12px 14px}
.pnl-day-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:700}
.pnl-slots{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}
.pnl-slot{font-size:13px;padding:5px 11px;border:1px solid var(--line);border-radius:999px;background:var(--bg);cursor:pointer;user-select:none}
.pnl-slot.on{background:var(--red-soft);border-color:var(--red);color:var(--red-dark);font-weight:600}

.pnl-note{background:var(--blue-soft);border:1px solid #c9e0f7;color:#0b4d8c;border-radius:var(--radius-sm);padding:11px 14px;font-size:14px;margin-bottom:18px}
.pnl-warn{background:#fdf3e0;border:1px solid #f2dcb0;color:#7a4f00;border-radius:var(--radius-sm);padding:11px 14px;font-size:14px;margin-bottom:18px}
.pnl-ok{background:var(--green-soft);border:1px solid #bfe3cd;color:var(--green);border-radius:var(--radius-sm);padding:11px 14px;font-size:14px;margin-bottom:18px}
.pnl-err{background:var(--red-soft);border:1px solid #f3c6c8;color:var(--red-dark);border-radius:var(--radius-sm);padding:11px 14px;font-size:14px;margin-bottom:18px}

.pnl-grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}

/* The panel on a phone.
   The sidebar used to stack into a wrapped row of eleven links sitting on top
   of every screen, which is most of a phone's height before any content. It
   becomes a drawer instead: a bar with the dealer's name and a button, and the
   navigation slides over the page when they ask for it. Dealers here are
   overwhelmingly on phones and this is the screen they use most. */
.pnl-bar{display:none}

@media (max-width:900px){
  /* align-content defaults to stretch, and .pnl is min-height:100vh, so the
     spare height was shared out between the bar and the content: the bar grew
     to 299px and every screen started a third of the way down the phone. */
  .pnl{grid-template-columns:1fr;align-content:start}
  .pnl-main{padding:18px 16px 60px}

  .pnl-bar{
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    position:sticky;top:0;z-index:62;
    padding:11px 16px calc(11px + env(safe-area-inset-top,0px));
    background:#fff;border-bottom:1px solid var(--line)
  }
  .pnl-bar b{font-size:15px;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .pnl-bar small{display:block;color:var(--muted);font-size:12px;font-weight:500}

  .pnl-side{
    position:fixed;left:0;right:0;top:0;bottom:0;z-index:80;
    height:100dvh;overflow-y:auto;border-right:0;
    padding:14px 0 calc(28px + env(safe-area-inset-bottom,0px));
    transform:translateX(-100%);transition:transform .18s ease-out;
    box-shadow:0 0 40px rgba(20,22,26,.25)
  }
  .pnl-side.open{transform:translateX(0)}
  .pnl-nav a{padding:13px 12px;font-size:16px}
  .pnl-nav .sep{margin-top:16px}
}

@supports not (height: 100dvh){
  @media (max-width:900px){ .pnl-side{height:100vh} }
}

@media (min-width:901px){
  .pnl-side{transform:none}
}

/* The header row on a narrow phone.
   Logo, city, sign in and the burger have to share about 390px, and the sign
   in button was wrapping onto two lines inside its own border. */
.hdr-right .btn{white-space:nowrap}
@media (max-width:420px){
  .hdr-in{gap:8px}
  .city-btn{max-width:120px;padding:8px 9px}
  .hdr-right{gap:6px}
  .hdr-right .btn{padding-left:11px;padding-right:11px}
}

/* 18 ------------------------------------------------- mobile navigation */
/* A phone gets app-style navigation: a bar fixed to the bottom for the four
   places people actually go, with selling raised in the middle, and a
   full-height menu behind the burger instead of a short dropdown.
   Both disappear at 960px, where the desktop header takes over. */

/* --- the bar along the bottom --- */
.tabbar{
  position:fixed;left:0;right:0;bottom:0;z-index:70;
  display:grid;grid-template-columns:repeat(5,1fr);align-items:end;
  background:#fff;border-top:1px solid var(--line);
  padding:8px 4px calc(8px + env(safe-area-inset-bottom,0px));
  box-shadow:0 -2px 14px rgba(20,22,26,.07)
}
.tabbar a{
  display:flex;flex-direction:column;align-items:center;gap:3px;
  font-size:11.5px;font-weight:600;color:var(--muted);text-align:center;line-height:1.25;
  padding:4px 2px;border-radius:12px
}
.tabbar a svg{width:23px;height:23px;stroke-width:1.9}
.tabbar a.on{color:var(--red)}
.tabbar a.on svg{stroke-width:2.3}

/* Selling is the one thing a dealer comes here to do, so it is raised out of
   the row rather than being a fifth equal item. */
.tabbar a.sell{
  color:#fff;background:var(--red);border-radius:999px;
  width:58px;height:58px;justify-self:center;margin-top:-26px;
  justify-content:center;gap:1px;
  box-shadow:0 6px 18px rgba(224,31,38,.38);border:3px solid #fff
}
.tabbar a.sell svg{width:20px;height:20px}
.tabbar a.sell span{font-size:10.5px}

/* The bar floats over the page, so the page needs room to end above it. */
body{padding-bottom:calc(70px + env(safe-area-inset-bottom,0px))}

@media (min-width:960px){
  .tabbar{display:none}
  body{padding-bottom:0}
}

/* Only useful while the sidebar is a drawer; on a wide screen it is always
   open and closing it would leave a dealer with no navigation at all. */

/* 19 ---------------------------------------------------- sign in and up */
/* These lived in <style> blocks inside each Blade page, which is exactly how
   the dealer page ended up unstyled when it moved to Next: page-local CSS does
   not travel with the markup. One home for them, as with everything else. */

.auth{max-width:470px;margin:0 auto;padding:44px 0 80px}
.auth h1{font-size:clamp(23px,4vw,30px);margin-bottom:8px}
.auth .lead{color:var(--muted);margin:0 0 22px}
.auth .alt{text-align:center;font-size:13.5px;color:var(--muted);margin-top:20px}
.auth .alt a{color:var(--red);font-weight:600}
.auth label{display:block;margin-bottom:14px;font-size:14px;font-weight:600}
.auth label .field{margin-top:6px;font-weight:400}
.auth .hint{font-size:12.5px;color:var(--muted);margin-top:5px;font-weight:400}

.err{background:var(--red-soft);color:var(--red-dark);border:1px solid #f6c9cb;border-radius:var(--radius-sm);padding:12px 15px;margin-bottom:18px;font-size:14.5px}
.err ul{margin:6px 0 0;padding-left:18px}
.ok-note{background:var(--green-soft);color:var(--green);border:1px solid #bfe3cd;border-radius:var(--radius-sm);padding:12px 15px;margin-bottom:18px;font-size:14.5px}

/* Which kind of account somebody is opening. */
.types{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:22px 0}
.types button{display:block;text-align:center;border:1px solid var(--line);border-radius:var(--radius-sm);padding:11px 6px;font-size:13.5px;font-weight:600;background:#fff;color:var(--ink-2);cursor:pointer;font-family:inherit}
.types button.on{border-color:var(--red);background:var(--red-soft);color:var(--red-dark)}

.why{display:flex;flex-direction:column;gap:8px;margin:0 0 24px;font-size:14px;color:var(--muted)}
.why div{display:flex;gap:9px;align-items:flex-start}
.why b{color:var(--ink)}

/* .field on the control itself.
   The original rules style `.field input`, where .field is a wrapper div around
   a label and its input. Every form written for the panel and the auth pages
   puts the class straight on the input instead, which matched nothing at all
   and left those controls looking like raw browser defaults. Both spellings
   work now; the wrapper is still the one the Blade pages use. */
input.field,select.field,textarea.field{
  width:100%;padding:12px 13px;border:1px solid var(--line);border-radius:var(--radius-sm);
  font:inherit;font-size:15px;background:#fff;color:var(--ink);margin-bottom:0
}
select.field{
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 13px center;padding-right:34px
}
input.field:focus,select.field:focus,textarea.field:focus{border-color:var(--red);outline:none}
input.field:disabled,select.field:disabled,textarea.field:disabled{background:var(--bg-2);color:var(--muted)}
input.field[type=file]{padding:10px 12px;font-size:14px;background:var(--bg-2)}
textarea.field{resize:vertical;min-height:80px}

/* Labels that wrap their own control, which is how these forms are written. */
label > input.field,label > select.field,label > textarea.field{margin-top:6px}

/* 20 ------------------------------------------------ description editor */
.rt{border:1px solid var(--line);border-radius:var(--radius-sm);background:#fff;overflow:hidden}
.rt-bar{display:flex;flex-wrap:wrap;gap:4px;padding:7px 8px;border-bottom:1px solid var(--line);background:var(--bg-2)}
.rt-bar button{font:inherit;font-size:13px;line-height:1;padding:7px 10px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--ink-2);cursor:pointer}
.rt-bar button:hover{background:#fff;border-color:var(--line);color:var(--ink)}
.rt-box{min-height:150px;padding:13px;font-size:15px;line-height:1.6;outline:none}
.rt-box:focus{box-shadow:inset 0 0 0 2px var(--red-soft)}
.rt-box[data-empty="yes"]::before{content:attr(data-placeholder);color:var(--muted)}
.rt-box p{margin:0 0 10px}
.rt-box h3{font-size:16px;margin:14px 0 6px}
.rt-box ul,.rt-box ol{margin:0 0 10px;padding-left:22px}
.rt-box li{margin-bottom:4px}

/* The same content, read by a buyer on the car page. */
.prose{font-size:15.5px;line-height:1.7;color:var(--ink-2)}
.prose p{margin:0 0 12px}
.prose h3,.prose h4{color:var(--ink);font-size:16px;margin:18px 0 8px}
.prose ul,.prose ol{margin:0 0 12px;padding-left:22px}
.prose li{margin-bottom:5px}
.prose strong{color:var(--ink)}

/* 21 --------------------------------------------------- car detail layout */

/* 22 -------------------------------------------------- car detail, upper */
/* The facts a buyer scans before they read anything. Every listing site in
   this market leads with these as a strip; ours had them only in a table
   halfway down the page. */
.car-hi{display:grid;grid-template-columns:repeat(auto-fit,minmax(104px,1fr));gap:10px;margin:18px 0 6px}
.car-hi div{border:1px solid var(--line);border-radius:var(--radius-sm);padding:10px 12px;background:#fff}
.car-hi b{display:block;font-size:15px;line-height:1.25;color:var(--ink)}
.car-hi span{display:block;font-size:11.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin-top:3px;font-weight:600}



/* On a phone the dealer box is far below the fold, so the two things a buyer
   came to do follow them down the page. */
.car-cta{display:none}
@media (max-width:1000px){
  .car-cta{
    display:grid;grid-template-columns:1fr 1fr;gap:8px;
    position:fixed;left:0;right:0;bottom:0;z-index:71;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));
    background:#fff;border-top:1px solid var(--line);box-shadow:0 -2px 14px rgba(20,22,26,.08)
  }
  .car-cta .btn{width:100%;justify-content:center}
  /* Clear of the tab bar, which sits at the same edge. */
  body.has-car-cta{padding-bottom:calc(150px + env(safe-area-inset-bottom,0px))}
  .car-cta{bottom:calc(62px + env(safe-area-inset-bottom,0px))}
}


/* Star picker in the review dialog. */
.rate{display:flex;gap:4px}
.rate button{font-size:30px;line-height:1;background:none;border:0;padding:0 2px;cursor:pointer;color:var(--line)}
.rate button.on{color:var(--amber)}
.rate button:hover{color:var(--amber)}

/* 23 ------------------------------------------------- list view of cards */
/* The same card markup laid out along the page instead of across it.
   A grid shows more cars at once; a list shows more about each one, which is
   what people want once they have narrowed the search down. No second card
   component: one set of markup, two arrangements. */

.cards.as-list{grid-template-columns:1fr;gap:12px}

.cards.as-list .card{flex-direction:row;align-items:stretch}
.cards.as-list .card-img{
  flex:0 0 230px;aspect-ratio:4/3;border-radius:0
}
.cards.as-list .card-body{
  padding:15px 18px;display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-areas:"title price" "meta price";
  align-content:center;gap:6px 18px
}
.cards.as-list .card-body h3{grid-area:title;margin:0;font-size:17px}
.cards.as-list .card-body .meta{grid-area:meta;margin:0}
.cards.as-list .card-body .price{
  grid-area:price;align-self:center;text-align:right;border:0;padding:0;margin:0;
  display:flex;flex-direction:column;align-items:flex-end;gap:2px
}
.cards.as-list .card-body .price b{font-size:19px}

/* On a phone a row is a squeeze, so the list falls back to the stacked card
   but keeps the tighter spacing — a list of nine cars should not be nine
   screens long. */
@media (max-width:640px){
  .cards.as-list .card{flex-direction:column}
  .cards.as-list .card-img{flex:none;aspect-ratio:16/9}
  .cards.as-list .card-body{grid-template-columns:1fr;grid-template-areas:"title" "meta" "price";gap:7px}
  .cards.as-list .card-body .price{text-align:left;align-items:flex-start}
}

/* The switch itself. */
.viewsw{display:inline-flex;border:1px solid var(--line);border-radius:var(--radius-sm);overflow:hidden;background:#fff}
.viewsw button{
  display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:13.5px;font-weight:600;
  padding:8px 12px;border:0;background:transparent;color:var(--muted);cursor:pointer
}
.viewsw button + button{border-left:1px solid var(--line)}
.viewsw button.on{background:var(--red-soft);color:var(--red-dark)}
.viewsw svg{width:15px;height:15px}
@media (max-width:520px){ .viewsw button span{display:none} .viewsw button{padding:8px 11px} }

/* 24 ------------------------------------------------------ command palette */
/* Cmd-K. The trigger is a search field's twin in the header, not a button that
   looks like one, because that is what a visitor expects to be able to type
   into. Under 960px it shrinks to the icon: the header there is already a logo,
   a city, a button and a burger. */
.cmdk-open{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 10px 0 11px;border:1px solid var(--line);border-radius:10px;background:var(--bg-2);color:var(--muted);font:inherit;font-size:14px;cursor:pointer;min-width:0}
.cmdk-open:hover{border-color:#cfd4dc;background:#fff}
.cmdk-open svg{flex:none;color:var(--muted)}
.cmdk-open-txt{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cmdk-kbd{flex:none;font:inherit;font-size:11px;font-weight:600;color:var(--muted);background:#fff;border:1px solid var(--line);border-bottom-width:2px;border-radius:6px;padding:1px 5px}

.cmdk-back{position:fixed;inset:0;z-index:120;background:rgba(20,22,26,.44);display:flex;align-items:flex-start;justify-content:center;padding:10vh 16px 16px}
.cmdk{width:100%;max-width:620px;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow-lg);overflow:hidden;display:flex;flex-direction:column;max-height:76vh}
.cmdk-in{display:flex;align-items:center;gap:10px;padding:14px 14px;border-bottom:1px solid var(--line);flex:none}
.cmdk-in svg{flex:none;color:var(--muted)}
.cmdk-in input{flex:1;min-width:0;border:0;outline:0;font:inherit;font-size:16px;color:var(--ink);background:transparent}
.cmdk-in input::placeholder{color:var(--muted)}
.cmdk-esc{flex:none;font:inherit;font-size:11px;font-weight:600;color:var(--muted);background:var(--bg-2);border:1px solid var(--line);border-radius:6px;padding:3px 7px;cursor:pointer}
.cmdk-busy{flex:none;width:15px;height:15px;border:2px solid var(--line);border-top-color:var(--red);border-radius:50%;animation:cmdk-spin .6s linear infinite}
@keyframes cmdk-spin{to{transform:rotate(360deg)}}

.cmdk-list{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:6px 0 8px}
.cmdk-grp + .cmdk-grp{border-top:1px solid var(--bg-2);margin-top:4px;padding-top:4px}
.cmdk-grp-h{padding:8px 16px 4px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.cmdk-row{display:flex;align-items:baseline;gap:10px;width:100%;padding:9px 16px;border:0;background:transparent;font:inherit;text-align:left;cursor:pointer;color:var(--ink)}
.cmdk-row[data-on="1"]{background:var(--red-soft);box-shadow:inset 3px 0 0 var(--red)}
.cmdk-row[data-on="1"] .cmdk-row-l{color:var(--red-dark)}
.cmdk-row-l{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:0 1 auto}
.cmdk-row-s{font-size:12.5px;color:var(--muted);margin-left:auto;padding-left:10px;white-space:nowrap;flex:none}
.cmdk-none{padding:22px 16px;text-align:center;color:var(--muted);font-size:14px}
.cmdk-none button{display:block;margin:10px auto 0;font:inherit;font-weight:600;color:var(--red-dark);background:none;border:0;cursor:pointer;text-decoration:underline}
.cmdk-foot{flex:none;display:flex;gap:16px;padding:9px 16px;border-top:1px solid var(--line);background:var(--bg-2);font-size:12px;color:var(--muted)}
.cmdk-foot kbd{font:inherit;font-size:11px;background:#fff;border:1px solid var(--line);border-radius:4px;padding:0 4px;margin-right:3px}

@media (max-width:960px){
  .cmdk-open{padding:0 11px;gap:0}
  .cmdk-open-txt,.cmdk-kbd{display:none}
}
/* On a phone it is a sheet, not a dialog: 10vh of dimmed page above a 76vh box
   is a box you cannot read, and the on-screen keyboard eats the rest. */
@media (max-width:640px){
  .cmdk-back{padding:0;align-items:stretch}
  .cmdk{max-width:none;max-height:none;border-radius:0;height:100vh;height:100dvh}
  .cmdk-row{padding:11px 16px;flex-wrap:wrap}
  .cmdk-row-s{margin-left:0;padding-left:0;flex-basis:100%}
  .cmdk-foot{display:none}
}

/* 25 --------------------------------------------------- touch targets */
/* Measured on a 390px phone: the map pill came out 29px tall, the grid/list
   switch 31px and the breadcrumbs 16px. A finger is about 44px. These only
   grow where the pointer is coarse, so the desktop proportions are untouched. */
@media (pointer:coarse){
  .dp-map .cta{min-height:40px;padding:11px 18px;font-size:14px}
  .viewsw button{min-height:40px}
  .crumbs{gap:10px}
  .crumbs a{display:inline-block;padding:5px 0}
}

/* The panel is the screen dealers use most, and overwhelmingly on a phone.
   Measured at 390px: Sign out, Close menu and Remove were all 32px. */
@media (pointer:coarse){
  /* line-height:1.2 on .btn made an <a> and a <button> agree, but it also took
     the anchors down from 44px. Put the height back on touch, where it is the
     thing that matters. */
  .btn{min-height:44px}
  .pnl .btn-sm{min-height:40px}
  .pnl .pnl-table select.field{min-height:40px}
}

/* 26 ------------------------------------------------------- compare cars */
/* A tick on the card, a tray along the bottom while a comparison is being
   built, and a table that marks only the rows where the cars actually differ.
   Forty identical rows is not a comparison, it is wallpaper. */
.card-img{position:relative}
.cmp-tick{position:absolute;left:10px;top:10px;z-index:2;display:inline-flex;align-items:center;gap:6px;
  padding:6px 10px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.94);
  font:inherit;font-size:12.5px;font-weight:600;color:var(--ink-2);cursor:pointer;line-height:1;
  box-shadow:0 1px 4px rgba(20,22,26,.14)}
.cmp-tick:hover{border-color:#cfd4dc}
.cmp-tick.on{background:var(--red);border-color:var(--red);color:#fff}
.cmp-box{display:inline-flex;width:14px;height:14px;align-items:center;justify-content:center;
  border-radius:4px;background:var(--bg-3);font-size:11px}
.cmp-tick.on .cmp-box{background:rgba(255,255,255,.28);color:#fff}

.cmp-bar{position:fixed;left:0;right:0;bottom:0;z-index:70;background:#fff;border-top:1px solid var(--line);
  box-shadow:0 -6px 24px rgba(20,22,26,.12);padding:10px 0 calc(10px + env(safe-area-inset-bottom,0px))}
.cmp-bar-in{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.cmp-slots{display:flex;gap:8px;flex:1;min-width:0;flex-wrap:wrap}
.cmp-slot{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border-radius:10px;
  border:1px dashed var(--line);color:var(--muted);font-size:13px;background:var(--bg-2)}
.cmp-slot.filled{border-style:solid;border-color:var(--line);background:#fff;color:var(--ink);
  font-weight:600;font-family:inherit;cursor:pointer}
.cmp-slot.filled:hover{border-color:var(--red);color:var(--red-dark)}
.cmp-bar-act{display:flex;align-items:center;gap:9px;margin-left:auto}
.cmp-hint{font-size:13px;color:var(--muted)}

.cmp-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;margin-top:18px;
  border:1px solid var(--line);border-radius:var(--radius)}
.cmp-table{border-collapse:collapse;width:100%;min-width:560px;background:#fff}
.cmp-table th,.cmp-table td{padding:12px 14px;text-align:left;vertical-align:top;font-size:14.5px;
  border-bottom:1px solid var(--bg-2)}
.cmp-rowhead{width:150px;color:var(--muted);font-weight:500;font-size:13.5px;background:var(--bg-2);
  position:sticky;left:0;z-index:1}
.cmp-head{display:block}
.cmp-head img{width:100%;max-width:200px;height:auto;aspect-ratio:4/3;object-fit:cover;
  border-radius:var(--radius-sm);display:block;margin-bottom:8px}
.cmp-head b{font-size:15px;line-height:1.35;display:block}
.cmp-badges{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.cmp-best{font-size:11px;font-weight:700;padding:2px 7px;border-radius:999px;
  background:var(--green-soft);color:var(--green)}
.cmp-group th{background:var(--bg-3);font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--ink-2);padding:9px 14px}
/* The whole point of the page. */
.cmp-differs td,.cmp-differs .cmp-rowhead{background:#fffaf0}
.cmp-differs td{font-weight:600}

/* The tray must not sit under the phone tab bar, and must not hide the last
   card on the page behind itself. */
@media (max-width:860px){
  .cmp-bar{bottom:calc(62px + env(safe-area-inset-bottom,0px));padding-bottom:10px}
  body:has(.cmp-bar){padding-bottom:150px}
  .cmp-bar-act{width:100%;margin-left:0}
  .cmp-slot{font-size:12px;padding:7px 10px}
  .cmp-tick .cmp-word{display:none}
  .cmp-tick{padding:7px 9px}
}

/* 27 -------------------------------------------- which vertical is this */
/* The first question the add-a-listing form asks, because it decides which
   makes, styles and fields follow. Bigger than a time slot: it is a decision,
   not a toggle. */
.pnl-kind{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:4px}
.pnl-kind button{display:block;text-align:left;padding:14px 16px;border:1px solid var(--line);
  border-radius:var(--radius-sm);background:#fff;cursor:pointer;font:inherit;transition:border-color .12s,background .12s}
.pnl-kind button:hover{border-color:#cfd4dc}
.pnl-kind b{display:block;font-size:15px;color:var(--ink)}
.pnl-kind small{display:block;margin-top:3px;font-size:12.5px;color:var(--muted);line-height:1.5}
.pnl-kind .pnl-kind-on{border-color:var(--red);background:var(--red-soft);box-shadow:inset 0 0 0 1px var(--red)}
.pnl-kind .pnl-kind-on b{color:var(--red-dark)}
@media (max-width:520px){ .pnl-kind{grid-template-columns:1fr} }

/* 28 ------------------------------------------------------------- guides */
/* The advice half of the site. Cards rather than a list, because a guide is
   chosen by what it is about, and the subject has to be readable at a glance. */
.guide-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.guide-card{display:block;padding:20px 22px;border:1px solid var(--line);border-radius:var(--radius);
  background:#fff;transition:border-color .12s,box-shadow .12s}
.guide-card:hover{border-color:#cfd4dc;box-shadow:var(--shadow)}
.guide-card h2{font-size:17px;line-height:1.4;margin:0 0 8px;color:var(--ink)}
.guide-card p{margin:0;font-size:14px;line-height:1.65;color:var(--muted)}
.guide-tag{display:inline-block;margin-bottom:10px;font-size:11px;font-weight:700;letter-spacing:.05em;
  text-transform:uppercase;padding:3px 8px;border-radius:999px}
.guide-car{background:var(--red-soft);color:var(--red-dark)}
.guide-bike{background:var(--blue-soft);color:var(--blue)}
.guide-both{background:var(--bg-3);color:var(--ink-2)}

/* 29 ------------------------------------------------------ image cropper */
/* A dealer chooses what part of their photograph is shown, before it uploads.
   Portalled is unnecessary here: the panel has no backdrop-filter above it,
   unlike the public header. */
.crop-back{position:fixed;inset:0;z-index:120;background:rgba(20,22,26,.55);
  display:flex;align-items:center;justify-content:center;padding:16px}
.crop{background:#fff;border-radius:var(--radius);box-shadow:var(--shadow-lg);
  width:100%;max-width:640px;max-height:92vh;display:flex;flex-direction:column;overflow:hidden}
.crop-head{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:14px 18px;border-bottom:1px solid var(--line)}
.crop-head b{font-size:15px}
.crop-body{padding:16px 18px;overflow:auto}
.crop-hint{margin:0 0 12px;font-size:13.5px;color:var(--muted)}
.crop-frame{position:relative;width:100%;overflow:hidden;border-radius:var(--radius-sm);
  background:var(--bg-3);cursor:grab;touch-action:none;user-select:none}
.crop-frame:active{cursor:grabbing}
.crop-frame img{position:absolute;pointer-events:none}
.crop-zoom{display:flex;align-items:center;gap:12px;margin-top:14px;font-size:13.5px;color:var(--ink-2)}
.crop-zoom input{flex:1}
.crop-foot{display:flex;justify-content:flex-end;gap:9px;padding:12px 18px;
  border-top:1px solid var(--line);background:var(--bg-2)}
@media (max-width:520px){ .crop{max-height:96vh} .crop-body{padding:14px} }

/* 30 --------------------------------------------- who a review posts as */
/* Standard review-system behaviour: somebody signed in is told which account
   the review will carry, rather than being asked to retype a name and a number
   we already hold. */
.rv-as{display:flex;align-items:flex-start;gap:11px;margin:0 0 14px;padding:11px 13px;
  border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg-2);font-size:14px}
.rv-as-avatar{flex:0 0 auto;width:34px;height:34px;border-radius:50%;background:var(--red);
  color:#fff;font-weight:700;display:flex;align-items:center;justify-content:center;font-size:15px}
.rv-as small{display:block;margin-top:2px;color:var(--muted);font-size:12.5px;line-height:1.55}

/* ======================================================================== 31
   The listing page: gallery, hero, tabs

   The old page put a 4:3 photograph across the whole content column -- 790 by
   593 on a laptop -- with the price and the dealer scrolled off below it, and
   the thumbnails under it were decoration: no handler, five of nine shown.
   ------------------------------------------------------------------------ */

.car-top{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:26px;align-items:start;
         padding:4px 0 6px}
@media (max-width:980px){.car-top{grid-template-columns:1fr;gap:18px}}

/* ---- gallery ----------------------------------------------------------- */
.cg{display:grid;gap:9px;min-width:0}
/* contain, not cover. Dealer photographs arrive square, tall and panoramic;
   cropping them to a tidy rectangle is how the number plate or the dent the
   buyer came to look at ends up outside the frame. */
.cg-stage{position:relative;aspect-ratio:3/2;background:#12151a;border-radius:var(--radius);
          overflow:hidden}
.cg-stage > img{width:100%;height:100%;object-fit:contain;display:block;cursor:zoom-in}

.cg-arrow{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;
          border:0;border-radius:50%;background:rgba(18,21,26,.55);color:#fff;cursor:pointer;
          display:flex;align-items:center;justify-content:center;padding:0;
          transition:background .15s}
.cg-arrow:hover{background:rgba(18,21,26,.85)}
.cg-arrow svg{width:20px;height:20px}
.cg-arrow.prev{left:10px} .cg-arrow.next{right:10px}

.cg-expand{position:absolute;right:10px;bottom:10px;display:inline-flex;align-items:center;gap:7px;
           border:0;border-radius:999px;background:rgba(18,21,26,.7);color:#fff;cursor:pointer;
           font:600 12.5px/1 inherit;padding:8px 12px}
.cg-expand:hover{background:rgba(18,21,26,.9)}
.cg-expand svg{width:14px;height:14px}

.cg-strip{display:flex;gap:8px;overflow-x:auto;scrollbar-width:thin;padding-bottom:3px}
.cg-strip button{flex:0 0 auto;padding:0;border:2px solid transparent;border-radius:9px;
                 background:none;cursor:pointer;line-height:0;overflow:hidden}
.cg-strip button.on{border-color:var(--red)}
.cg-strip img{width:92px;height:69px;object-fit:cover;display:block;background:var(--bg-3)}
@media (max-width:560px){.cg-strip img{width:74px;height:56px}}

/* ---- full screen ------------------------------------------------------- */
.cg-box{position:fixed;inset:0;z-index:2000;background:rgba(10,12,15,.94);
        display:grid;grid-template-rows:1fr auto;padding:52px 16px 16px}
.cg-boxmain{position:relative;display:flex;align-items:center;justify-content:center;min-height:0}
.cg-boxmain > img{max-width:100%;max-height:100%;object-fit:contain;display:block}
.cg-boxfoot{text-align:center;color:#cfd4dc;font-size:13.5px;font-weight:600;padding-top:12px}
.cg-close{position:absolute;top:12px;right:14px;width:40px;height:40px;border:0;border-radius:50%;
          background:rgba(255,255,255,.14);color:#fff;cursor:pointer;display:flex;
          align-items:center;justify-content:center;padding:0}
.cg-close:hover{background:rgba(255,255,255,.26)}
.cg-close svg{width:20px;height:20px}

/* ---- the decision column ---------------------------------------------- */
.car-sum{min-width:0}
.car-sum h1{font-size:25px;line-height:1.25;margin:0}
@media (max-width:560px){.car-sum h1{font-size:21px}}
.car-facts{font-size:14.5px;color:var(--ink-2);margin-top:7px}
.car-where{font-size:13.5px;color:var(--muted);margin-top:3px}
.car-price{font-size:30px;font-weight:800;letter-spacing:-.02em;margin:14px 0 0;color:var(--ink)}
.car-emi{font-size:13.5px;color:var(--ink-2);margin-top:4px}
.car-emi b{color:var(--ink)}
.car-emi span{display:block;font-size:11.5px;color:var(--muted);margin-top:2px}

.car-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 0}
.car-share{display:flex;gap:8px}
.car-share-btn{display:inline-flex;align-items:center;gap:7px;padding:8px 13px;border-radius:999px;
               border:1px solid var(--line);background:#fff;color:var(--ink);cursor:pointer;
               font:600 13px/1 inherit;text-decoration:none;white-space:nowrap}
.car-share-btn:hover{border-color:var(--ink-2)}
.car-share-btn svg{width:15px;height:15px;flex:0 0 auto}

/* The compare tick is styled for a dark photograph on a card; on white it
   needs the same outline as the buttons beside it. */
.car-tools .cmp-tick{position:static;background:#fff;border:1px solid var(--line);color:var(--ink);
                     padding:8px 13px;border-radius:999px;font:600 13px/1 inherit;box-shadow:none}
.car-tools .cmp-tick.on{border-color:var(--red);color:var(--red)}

.car-seller{margin-top:16px;border:1px solid var(--line);border-radius:var(--radius);padding:14px;
            background:#fff}
.car-seller-h{display:flex;align-items:center;gap:11px;margin-bottom:12px}
.car-seller-av{flex:0 0 auto;width:38px;height:38px;border-radius:9px;background:var(--bg-2);
               color:var(--ink);font-weight:700;font-size:16px;display:flex;align-items:center;
               justify-content:center;text-transform:uppercase}
.car-seller-h a{font-weight:650;font-size:15px;color:var(--ink);text-decoration:none}
.car-seller-h a:hover{text-decoration:underline}
.car-seller-h small{display:block;font-size:12.5px;color:var(--muted);margin-top:2px}
.car-seller-tick{color:#1a73e8}
.car-seller .btn + .btn{margin-top:8px}

/* ---- tab bar ----------------------------------------------------------- */
.car-tabbar{position:sticky;top:67px;z-index:40;background:rgba(255,255,255,.96);
            backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid var(--line);
            margin-top:10px}
@media (max-width:700px){.car-tabbar{top:61px}}
.car-tabwrap{display:flex;align-items:center;gap:16px;min-width:0}
.car-tabwrap .dp-tabs{flex:1 1 auto;min-width:0}
.car-tabcta{flex:0 0 auto;padding:8px 16px;font-size:13.5px}
@media (max-width:900px){.car-tabcta{display:none}}

/* ---- body -------------------------------------------------------------- */
.car-body{padding-bottom:70px}
.car-body .block{margin-top:30px}
.car-body .block > h2{font-size:20px;margin:0 0 14px}

/* A two-column definition list, so twelve specification rows do not run a
   metre down a 1160px page with white space either side. */
.spec-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr));
           gap:0 34px;margin:0}
.spec-grid > div{display:flex;justify-content:space-between;gap:18px;padding:11px 0;
                 border-bottom:1px solid var(--line)}
.spec-grid dt{color:var(--muted);font-size:14px;font-weight:500}
.spec-grid dd{margin:0;font-size:14px;font-weight:600;text-align:right;color:var(--ink)}

.car-fgroup{margin-bottom:16px}
.car-fgroup h3{font-size:14px;margin:0 0 9px;text-transform:capitalize;color:var(--ink-2)}
.car-fgroup .chip{cursor:default;font-size:13.5px;padding:7px 13px}

.car-note{font-size:12.5px;color:var(--muted);margin:12px 0 0}

.car-video{margin-top:16px;border-radius:var(--radius);overflow:hidden;background:#12151a}
.car-video video{width:100%;max-height:440px;display:block}

.car-sellerwide{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
                gap:14px;border:1px solid var(--line);border-radius:var(--radius);
                padding:16px 18px;background:#fff}
.car-sellerwide-n{font-size:17px;font-weight:650;color:var(--ink);text-decoration:none}
.car-sellerwide-n:hover{text-decoration:underline}
.car-sellerwide-a{display:flex;flex-wrap:wrap;gap:9px}

.car-report{font-size:13px;color:var(--muted);margin-top:30px}
.car-report a{color:var(--ink-2)}

/* ======================================================================== 32
   Contact the dealer, without leaving the car

   The button was a link to the dealer's page with #enquiry on the end, which
   threw away the car the buyer was looking at and made them find a form on a
   page about the showroom.
   ------------------------------------------------------------------------ */

.cdx{position:fixed;inset:0;z-index:2000;background:rgba(16,18,22,.55);
     display:flex;align-items:center;justify-content:center;padding:18px;
     overflow-y:auto}
.cdx-box{position:relative;width:100%;max-width:420px;background:#fff;
         border-radius:var(--radius);padding:24px 22px 20px;
         box-shadow:0 18px 60px rgba(16,18,22,.28);margin:auto}
@media (max-width:520px){.cdx{padding:0;align-items:flex-end}
  .cdx-box{max-width:none;border-radius:16px 16px 0 0;
           padding-bottom:calc(20px + env(safe-area-inset-bottom,0px))}}

.cdx-close{position:absolute;top:12px;right:12px;width:34px;height:34px;border:0;
           border-radius:50%;background:var(--bg-2);color:var(--ink-2);cursor:pointer;
           display:flex;align-items:center;justify-content:center;padding:0}
.cdx-close:hover{background:var(--bg-3);color:var(--ink)}
.cdx-close svg{width:17px;height:17px}

.cdx-h{font-size:19px;margin:0 30px 6px 0;line-height:1.3}
.cdx-sub{font-size:13.5px;color:var(--ink-2);margin:0 0 16px;line-height:1.55}

.cdx-form label{display:block;font-size:13px;font-weight:600;color:var(--ink-2);
                margin-bottom:12px}
.cdx-opt{font-weight:500;color:var(--muted)}
.cdx-form input,.cdx-form textarea{display:block;width:100%;margin-top:5px;
  padding:11px 12px;border:1px solid var(--line);border-radius:var(--radius-sm);
  font:400 15px/1.4 inherit;color:var(--ink);background:#fff}
.cdx-form input:focus,.cdx-form textarea:focus{outline:2px solid var(--red);outline-offset:-1px;border-color:transparent}
.cdx-form textarea{resize:vertical;min-height:70px}
.cdx-err{font-size:13px;color:var(--red);margin:0 0 10px}
.cdx-fine{font-size:11.5px;color:var(--muted);margin:10px 0 0;line-height:1.5}

/* ---- after it is sent ---------------------------------------------------- */
.cdx-done{text-align:center;padding-top:4px}
.cdx-tick{width:46px;height:46px;margin:0 auto 12px;border-radius:50%;
          background:#e8f6ed;color:#1c6b3a;display:flex;align-items:center;justify-content:center}
.cdx-tick svg{width:22px;height:22px}
.cdx-done h3{font-size:18px;margin:0 0 6px;line-height:1.3}
.cdx-done .cdx-sub{margin-bottom:14px}

.cdx-num{border:1px solid var(--line);border-radius:var(--radius);padding:14px;
         background:var(--bg-1)}
.cdx-num > span{display:block;font-size:22px;font-weight:750;letter-spacing:.01em;
                color:var(--ink);margin-bottom:11px}
.cdx-numacts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cdx-numacts .btn{width:100%;justify-content:center}
.cdx-addr{font-size:13px;color:var(--ink-2);margin:12px 0 0;line-height:1.55}

/* ======================================================================== 33
   Correcting the number plate blur, in the dealer panel

   The detector found six of six on the listing it was built against, and it
   will still miss one: a plate at an angle, in shadow, half behind a tow bar.
   The dealer is looking at their own car and knows where the plate is.
   ------------------------------------------------------------------------ */

.plx{position:fixed;inset:0;z-index:2000;background:rgba(14,16,20,.72);
     display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto}
.plx-box{width:100%;max-width:760px;background:#fff;border-radius:var(--radius);
         overflow:hidden;box-shadow:0 20px 70px rgba(14,16,20,.35);margin:auto}

.plx-head{display:flex;align-items:flex-start;gap:14px;padding:16px 18px 12px;
          border-bottom:1px solid var(--line)}
.plx-head h3{font-size:16px;margin:0 0 3px}
.plx-head p{font-size:13px;color:var(--ink-2);margin:0;line-height:1.5}
.plx-close{flex:0 0 auto;width:32px;height:32px;border:0;border-radius:50%;
           background:var(--bg-2);color:var(--ink-2);cursor:pointer;
           display:flex;align-items:center;justify-content:center;padding:0}
.plx-close:hover{background:var(--bg-3);color:var(--ink)}
.plx-close svg{width:16px;height:16px}

/* The picture and the boxes have to share one coordinate space, so the frame
   is exactly the size of the image -- no padding, no border, nothing that
   would put the two a pixel out of step. */
.plx-frame{position:relative;line-height:0;background:#12151a;
           touch-action:none;cursor:crosshair;user-select:none}
.plx-frame img{width:100%;height:auto;max-height:58vh;object-fit:contain;display:block;
               margin:0 auto;pointer-events:none}

.plx-b{position:absolute;padding:0;margin:0;cursor:pointer;
       border:2px solid var(--red);background:rgba(224,32,44,.22);border-radius:3px}
.plx-b:hover{background:rgba(224,32,44,.38)}
.plx-b.drawing{pointer-events:none;border-style:dashed}

.plx-foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px;
          padding:12px 18px 14px;border-top:1px solid var(--line)}
.plx-count{font-size:13px;color:var(--ink-2)}
.plx-err{font-size:13px;color:var(--red)}
.plx-acts{margin-left:auto;display:flex;gap:8px}

@media (max-width:560px){
  .plx{padding:0;align-items:flex-end}
  .plx-box{border-radius:16px 16px 0 0;max-height:96vh;overflow-y:auto}
  .plx-frame img{max-height:46vh}
  .plx-acts{margin-left:0;width:100%}
  .plx-acts .btn{flex:1;justify-content:center}
}

/* ======================================================================== 34
   Who is selling

   The site has told dealers and private sellers apart since the seller work,
   and never said which was which on any page a buyer looks at.
   ------------------------------------------------------------------------ */

.sb{display:inline-flex;align-items:center;gap:5px;vertical-align:middle;
    padding:3px 9px;border-radius:999px;font-size:12px;font-weight:650;
    line-height:1.5;white-space:nowrap;border:1px solid transparent}
.sb svg{width:12px;height:12px;flex:0 0 auto}
.sb-sm{font-size:11px;padding:2px 7px;gap:4px}
.sb-sm svg{width:11px;height:11px}

/* A showroom: the colour the site uses for something it stands behind. */
.sb-dealer{background:#eef4ff;border-color:#d6e4ff;color:#1a4fa8}
/* One person, one car. Deliberately a different hue, not a lesser one. */
.sb-private{background:#fff4e8;border-color:#ffe3c7;color:#96500d}

/* On a card the badge sits after the seller's name, which is already muted
   and already short of room. */
.card .price small{display:inline-flex;align-items:center;gap:6px;min-width:0}
.card .price small .sb{flex:0 0 auto}

/* ---- the dealer's own code, on the dashboard ---------------------------- */
.qr-row{display:flex;flex-wrap:wrap;gap:20px;align-items:flex-start}
.qr-code{flex:0 0 auto;width:168px;height:168px;padding:10px;background:#fff;
         border:1px solid var(--line);border-radius:var(--radius)}
.qr-code svg{width:100%;height:100%;display:block}
.qr-wait{width:100%;height:100%;display:flex;align-items:center;justify-content:center;
         color:var(--muted);font-size:12.5px;text-align:center}
.qr-side{flex:1 1 260px;min-width:0}
.qr-link{display:block;font-size:13px;font-weight:600;color:var(--ink-2)}
.qr-link input{display:block;width:100%;margin-top:5px;padding:9px 11px;
  border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg-1);
  font:400 13.5px/1.4 inherit;color:var(--ink)}
.qr-acts{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}
@media (max-width:560px){
  .qr-row{gap:14px}
  .qr-code{width:140px;height:140px}
  .qr-acts .btn{flex:1 1 auto;justify-content:center}
}

/* ---- where else a listing is shown ------------------------------------- */
/* Said plainly and near the specification, not buried: the car is in one
   place, and a buyer plans an afternoon around that. */
.car-also{margin:22px 0 0;padding:12px 14px;border:1px solid var(--line);
          border-left:3px solid var(--red);border-radius:var(--radius-sm);
          background:var(--bg-1);font-size:13.5px;line-height:1.6;color:var(--ink-2)}
.car-also b{color:var(--ink)}

/* ---- the dealer's picker in the panel ---------------------------------- */
.ac{margin-top:4px}
.ac-input{margin-top:5px}
.ac-chips{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
.ac-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 7px 5px 11px;
         border-radius:999px;background:var(--bg-2);border:1px solid var(--line);
         font-size:13px;font-weight:600;color:var(--ink)}
.ac-chip button{border:0;background:none;cursor:pointer;color:var(--muted);
                font-size:16px;line-height:1;padding:0 3px}
.ac-chip button:hover{color:var(--red)}
.ac-note{display:block;margin-top:8px;color:var(--muted);font-size:12.5px;line-height:1.55}

/* ======================================================================== 35
   The dealer directory, as a grid or a list

   The grid was already here — one column, two from 700px up — and there was
   simply no way to ask for anything else. So this adds the switch and the
   other shape, and leaves the existing one exactly as it was: a list, one
   dealer to a row, which is what you want once you are comparing them rather
   than scanning for one.

   Same markup and same card either way. The difference is entirely CSS, which
   is how ViewSwitch was built and why there is no second component here.
   ------------------------------------------------------------------------ */

.dl-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;
         gap:12px;margin-bottom:22px}

/* One to a row, at every width, whatever the grid above would have done. */
.dealer-rows.as-list{grid-template-columns:1fr}

/* ---- how your cars are doing ------------------------------------------- */
.an-table th.num,.an-table td.num{text-align:right;white-space:nowrap}
.an-table td:first-child{min-width:220px}
.an-sub{display:flex;flex-wrap:wrap;gap:4px 10px;margin-top:3px;
        font-size:12.5px;color:var(--muted)}
.an-live{color:#1c6b3a;font-weight:600}
.an-draft{color:var(--muted);font-weight:600}
/* A listing with no photograph is the single likeliest reason nobody opened
   it, so it is called out rather than left to be inferred from a nought. */
.an-warn{color:#96500d;font-weight:600}

/* Today / 7 days / 30 days / all time. Links, not buttons, because the window
   is a query parameter -- see app/panel/analytics/page.tsx. Horizontally
   scrollable rather than wrapped, so the four never become two rows on a
   phone. */
.an-tabs{display:flex;gap:6px;margin:0 0 18px;overflow-x:auto;
         -webkit-overflow-scrolling:touch;scrollbar-width:none}
.an-tabs::-webkit-scrollbar{display:none}
.an-tab{flex:0 0 auto;padding:7px 14px;border:1px solid var(--line);border-radius:999px;
        font-size:13.5px;font-weight:600;color:var(--muted);background:var(--bg);
        text-decoration:none;white-space:nowrap}
.an-tab:hover{color:var(--ink);border-color:var(--muted)}
.an-tab.is-on{background:var(--red);border-color:var(--red);color:#fff}
@media (max-width:620px){
  .an-table th:last-child,.an-table td:last-child{display:none}
}

/* ---- the panel, with the site's header and footer around it ------------ */
/* Without this the panel is a full viewport tall on its own, so the header
   above it and the footer below it push the page past the screen and every
   dealer screen opens with a scrollbar it does not need. */
.pnl-chromed{min-height:calc(100vh - 67px)}

/* Desktop only. Below 900px the sidebar is not a column at all -- it is a
   drawer, fixed over the whole screen -- and giving it a top offset and a
   height there fought that, leaving it hanging below the header instead of
   covering the page. */
@media (min-width:901px){
  /* It sticks under the site header rather than the top of the window, where
     the header would sit on top of the dealer's own name. */
  .pnl-chromed .pnl-side{top:67px;height:calc(100vh - 67px)}
}
@media (max-width:900px){
  .pnl-chromed{min-height:auto}
}

/* ======================================================================== 36
   The menu on a phone

   A full-screen sheet rather than a panel hanging under the header. The old
   one dropped below a 66px bar and left the site showing above it, so the menu
   never felt like the only thing on screen — which on a phone it is.

   Dark, in the site's own near-black rather than pure black, so the red reads
   as the same red it is everywhere else.
   ------------------------------------------------------------------------ */

.msheet{
  position:fixed;inset:0;z-index:200;background:var(--ink);color:#fff;
  display:flex;flex-direction:column;overflow-y:auto;
  padding:calc(18px + env(safe-area-inset-top,0px)) 22px
          calc(22px + env(safe-area-inset-bottom,0px));
  animation:msheet-in .18s ease-out
}
@keyframes msheet-in{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.msheet{animation:none}}

.msheet-top{display:flex;align-items:center;justify-content:space-between;
            gap:16px;padding-bottom:26px}
.msheet-brand{font-size:21px;font-weight:800;letter-spacing:-.02em;
              color:#fff;text-decoration:none}
.msheet-brand span{color:var(--red)}
.msheet-x{width:42px;height:42px;margin-right:-8px;border:0;background:none;
          color:#fff;cursor:pointer;display:flex;align-items:center;
          justify-content:center;padding:0}
.msheet-x svg{width:26px;height:26px}

/* Big enough to hit without looking, and a hairline under each rather than a
   box around it. */
.msheet-nav{display:flex;flex-direction:column}
.msheet-nav a{
  display:block;padding:19px 0;font-size:27px;font-weight:600;letter-spacing:-.02em;
  line-height:1.2;color:#fff;text-decoration:none;
  border-bottom:1px solid rgba(255,255,255,.13)
}
.msheet-nav a:last-child{border-bottom:0}
.msheet-nav a:active{color:rgba(255,255,255,.66)}
/* Where you already are, in the one colour the site uses to mean "this one". */
.msheet-nav a.on{color:var(--red)}

/* Pushed to the bottom by the space above it, which is where a thumb reaches. */
.msheet-foot{margin-top:auto;padding-top:30px;display:grid;
             grid-template-columns:1fr 1fr;gap:11px}
.msheet-foot .btn{width:100%;justify-content:center;border-radius:999px;
                  font-size:15.5px;padding:14px 16px}
.msheet-foot .btn:only-child{grid-column:1 / -1}
/* Outlined against the dark, since btn-ghost is drawn for a white page. */
.msheet-ghost{background:transparent;border:1px solid rgba(255,255,255,.55);color:#fff}
.msheet-ghost:hover{border-color:#fff;background:rgba(255,255,255,.08);color:#fff}

@media (max-width:360px){
  .msheet-nav a{font-size:23px;padding:16px 0}
}
/* On a short screen the list is what matters; let it scroll and keep the
   buttons after it rather than pinned over it. */
@media (max-height:620px){
  .msheet-nav a{font-size:21px;padding:13px 0}
  .msheet-foot{padding-top:22px}
}

/* ---- closing the dealer drawer ----------------------------------------- */
/* The drawer is position:fixed over the whole screen at z-index 80, and the
   bar carrying the burger that opened it is z-index 62 underneath — so the
   control that opened it was covered by it. Escape closed it; a phone has no
   Escape. Once open, the only way out was to navigate somewhere. */
.pnl-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.pnl-top .pnl-brand{padding-bottom:0}
.pnl-x{display:none}

@media (max-width:900px){
  .pnl-top{padding:0 14px 16px;align-items:center}
  .pnl-top .pnl-brand{padding:0}
  .pnl-x{
    display:flex;align-items:center;justify-content:center;
    width:42px;height:42px;margin-right:-8px;padding:0;
    border:0;background:none;color:var(--ink-2);cursor:pointer
  }
  .pnl-x:hover{color:var(--ink)}
  .pnl-x svg{width:24px;height:24px}

  /* And the bar itself sits under the site header now rather than fighting it
     for the top of the screen: both were sticky at top 0, and the bar won on
     z-index, so it covered the header it was supposed to sit below. */
  .pnl-chromed .pnl-bar{top:66px}
}

/* The listing heading is deliberately smaller than a page title: it sits in a
   dense results header beside the count and the grid/list switch, not at the
   top of a document. A class rather than an inline style, so it belongs to the
   scale instead of opting out of it. */
.res-h1{font-size:clamp(19px,3vw,24px)}

/* ======================================================================== 38
   A car that has been sold

   It does not disappear. The link has been shared, it may be in somebody's
   search results, and a dealer's page with sold cars on it shows a dealer who
   sells — all of which is worth more than a 404. It is simply never offered
   above a car somebody can still buy.
   ------------------------------------------------------------------------ */

/* On a card, in the corner the compare tick would have used. */
.sold-tag{position:absolute;top:9px;left:9px;z-index:2;
          padding:5px 11px;border-radius:999px;
          background:var(--ink);color:#fff;
          font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}

/* On the listing page itself, across the photographs, where somebody arriving
   from a shared link looks first. */
.car-galwrap{position:relative}
.sold-band{position:absolute;top:14px;left:14px;z-index:3;
           padding:8px 16px;border-radius:999px;
           background:var(--ink);color:#fff;
           font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
           box-shadow:0 2px 10px rgba(20,22,26,.3)}

.sold-note{margin:0 0 12px;font-size:13.5px;line-height:1.55;color:var(--ink-2)}

/* And in the panel, which used to tell a dealer who had just sold a car that
   the listing was "not live yet". */
.pnl-sold{padding:12px 14px;border-radius:var(--radius-sm);
          background:var(--bg-2);border:1px solid var(--line);
          font-size:14px;line-height:1.6;color:var(--ink-2)}
.pnl-sold b{color:var(--ink)}

/* A sold card is present but not shouting for attention. */
.card:has(.sold-tag) .card-img img{filter:saturate(.72) brightness(.94)}

/* Four tabs rather than two, so they have to wrap on a phone instead of
   squeezing. Buy a car / Buy a bike / Sell my car / Sell my bike. */
.tabs{flex-wrap:wrap}
@media (max-width:520px){
  .tabs .tab{flex:1 1 calc(50% - 4px);text-align:center;justify-content:center;font-size:13.5px;padding:10px 8px}
}

/* ======================================================================== 39
   Lead capture on the card

   A buyer scanning a listing had to open a car before they could do anything
   about it. The two things they want are on the card now, where the interest
   is. Both go through the same exchange as everywhere else: the seller's
   number is what a buyer receives for leaving one of their own.
   ------------------------------------------------------------------------ */

.card-lead{display:grid;grid-template-columns:auto 1fr;gap:8px;
           margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.card-lead .btn{justify-content:center;white-space:nowrap}
.card-lead-call{padding-left:14px;padding-right:14px}
.card-lead-get{width:100%}

/* In list view the card is wide, so the buttons sit at their natural size
   rather than stretching across it. */
.cards.as-list .card-lead{grid-template-columns:auto auto;justify-content:flex-start}
.cards.as-list .card-lead-get{width:auto;padding-left:18px;padding-right:18px}

@media (max-width:380px){
  .card-lead{grid-template-columns:1fr}
  .card-lead-call{width:100%}
}

/* ======================================================================== 40
   The dealer's car list: a picture on every row

   A dealer with fifteen cars was reading fifteen titles to find one of them.
   The photograph is how they recognise their own stock, so it comes first --
   the 320px thumbnail, not the full-size master, because this is a 56px box.
   ------------------------------------------------------------------------ */

.inv-car{display:flex;align-items:flex-start;gap:12px}
.inv-thumb{flex:0 0 auto;width:56px;height:42px;border-radius:6px;object-fit:cover;
  background:var(--bg-2);border:1px solid var(--line)}
.inv-thumb-none{display:flex;align-items:center;justify-content:center;text-align:center;
  font-size:9.5px;line-height:1.2;letter-spacing:.02em;text-transform:uppercase;
  color:var(--muted);font-weight:700}
.inv-car-txt{min-width:0}

/* ======================================================================== 41
   Sell your car, sell your bike

   /dealer-index spoke only to showrooms, at an address nobody would type, and
   somebody with one car to sell had nowhere on this site to land. These two
   pages replace it: one per vehicle, because they have to rank for two
   different searches, and each forks inside between a private seller and a
   dealer, because those two search for the same thing and would otherwise
   compete with each other.

   The fork is two cards, both above the fold on a laptop and stacked in the
   reading order a private seller expects on a phone -- most people arriving
   here have one car, not thirty.
   ------------------------------------------------------------------------ */

.sell-hero{background:var(--bg-2);border-bottom:1px solid var(--line);padding:26px 0 40px}
.sell-hero h1{max-width:24ch;margin:0 0 12px}
.sell-lead{max-width:56ch;margin:0 0 30px;color:var(--ink-2);font-size:clamp(15px,2.1vw,17px);
  line-height:1.65}
.sell-fork{display:grid;grid-template-columns:1fr;gap:16px}
.sell-pick{display:flex;flex-direction:column;background:var(--bg);border:1px solid var(--line);
  border-radius:var(--radius-lg);padding:22px 22px 24px}
/* The private seller's card leads, because most people arriving here have one
   vehicle. The dealer's is not hidden -- it is the same size, one tap away. */
.sell-pick-seller{border-color:var(--red);border-width:1.5px}
/* The dealer's card is the same size and sits beside it, not below it. Only the
   label is a different colour, so the two paths are told apart at a glance
   without one of them looking like the afterthought. */
.sell-pick-dealer .sell-eyebrow{background:var(--bg-2);color:var(--ink-2)}
.sell-eyebrow{display:inline-block;align-self:flex-start;margin-bottom:9px;padding:3px 10px;
  border-radius:999px;background:var(--red-soft);color:var(--red-dark);
  font-size:11.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.sell-pick h2{font-size:18.5px;margin:0 0 8px}
.sell-pick>p{margin:0 0 14px;color:var(--ink-2);font-size:14.5px;line-height:1.65}
.sell-pick ul{margin:0 0 20px;padding:0;list-style:none;display:grid;gap:9px}
.sell-pick li{position:relative;padding-left:23px;font-size:14px;line-height:1.55;color:var(--ink-2)}
.sell-pick li::before{content:"";position:absolute;left:3px;top:6px;width:9px;height:5px;
  border-left:2px solid var(--green);border-bottom:2px solid var(--green);
  transform:rotate(-45deg)}
.sell-pick .btn{margin-top:auto;justify-content:center}
.sell-signin{margin:20px 0 0;font-size:14px;color:var(--muted)}
.sell-signin a{color:var(--red);font-weight:600}

/* The whole page is one measured column rather than the full listing-page
   grid: it is prose, and a line of text 1200px wide is a line nobody finishes.
   Applied to the breadcrumb and the hero as well -- .wrap is margin:0 auto, so
   narrowing only the sections below left the page with two left edges 170px
   apart, which reads as a mistake rather than as a choice. */
.sell-wrap{max-width:900px}
.sell-intro{max-width:62ch;margin:6px 0 26px;font-size:14.5px;line-height:1.65}
.sell-body{max-width:62ch;margin:0 0 14px;font-size:15px;line-height:1.7;color:var(--ink-2)}
.sell-body a{color:var(--red);font-weight:600}

.sell-steps{counter-reset:none;list-style:none;margin:0;padding:0;display:grid;gap:20px}
.sell-steps li{display:flex;gap:15px;align-items:flex-start}
.sell-steps .n{flex:0 0 auto;width:30px;height:30px;border-radius:50%;background:var(--ink);
  color:#fff;display:grid;place-items:center;font-weight:750;font-size:14px}
.sell-steps h3{font-size:16px;margin:2px 0 5px}
.sell-steps p{margin:0;color:var(--ink-2);font-size:14.5px;line-height:1.65}

.sell-table{width:100%;border-collapse:collapse;font-size:14px;min-width:520px}
.sell-table th,.sell-table td{text-align:left;padding:11px 14px;border-bottom:1px solid var(--line);
  vertical-align:top;line-height:1.55}
.sell-table thead th{font-size:12px;letter-spacing:.04em;text-transform:uppercase;
  color:var(--muted);font-weight:700}
.sell-table tbody th{font-weight:600;color:var(--ink);width:30%}
.sell-table td{color:var(--ink-2)}
.sell-table tr:last-child th,.sell-table tr:last-child td{border-bottom:0}
.sell-table-cta{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}

.sell-ready{display:grid;grid-template-columns:1fr;gap:18px}
.sell-ready h3{font-size:15.5px;margin:0 0 5px}
.sell-ready p{margin:0;color:var(--ink-2);font-size:14px;line-height:1.65}
.sell-note{margin:22px 0 0;padding:13px 15px;background:var(--bg-2);border:1px solid var(--line);
  border-left:3px solid var(--red);border-radius:var(--radius-sm);
  font-size:14px;line-height:1.65;color:var(--ink-2)}

.sell-plate p{max-width:62ch;margin:0 0 14px;font-size:15px;line-height:1.7;color:var(--ink-2)}
.sell-plate p:last-child{margin-bottom:0}

.sell-other{margin:26px 0 0;font-size:14.5px;line-height:1.65;color:var(--ink-2)}
.sell-other a{color:var(--red);font-weight:600}

@media (min-width:820px){
  .sell-hero{padding:34px 0 48px}
  .sell-fork{grid-template-columns:repeat(2,1fr);gap:20px}
  .sell-ready{grid-template-columns:repeat(2,1fr);gap:22px 30px}
}

/* ======================================================================== 42
   Questions and answers, wherever they appear

   .qa has been in the markup since /faq was built and there has never been a
   rule for it, so every answer on that page was a bare browser <details> --
   no border, no spacing, a tiny triangle. It is on /sell-car and /sell-bike
   too now, and those pages put a FAQPage block in the head, so the visible
   half should look like it belongs to the same site.
   ------------------------------------------------------------------------ */

.qa{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg);
  margin:0 0 9px}
.qa summary{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;
  padding:13px 16px;cursor:pointer;font-weight:600;font-size:15px;line-height:1.5;
  list-style:none}
/* Safari and Chrome each need their own way of losing the default triangle. */
.qa summary::-webkit-details-marker{display:none}
.qa summary::marker{content:""}
/* The chevron, drawn rather than shipped, and turned when the answer is open. */
.qa summary::after{content:"";flex:0 0 auto;width:8px;height:8px;margin-top:6px;
  border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);
  transform:rotate(45deg);transition:transform .15s ease}
.qa[open] summary::after{transform:rotate(-135deg);margin-top:9px}
.qa[open] summary{color:var(--red-dark)}
.qa summary:hover{background:var(--bg-2)}
.qa .a{padding:0 16px 15px;color:var(--ink-2);font-size:14.5px;line-height:1.7;
  max-width:64ch}

/* ---- starting the listing from the page itself ------------------------- */
/* Every site in this market opens its sell page by starting the listing, not
   by asking for an account. CarWale opens with a registration-number lookup
   that fills in make, model, variant and kilometres; we have no RTO feed, so
   the honest version is to make the first tap count and carry the make through
   signup to the form. */

.sec-start{padding:34px 0;background:var(--bg);border-bottom:1px solid var(--line)}
.sell-start h2{margin:0 0 6px}
.sell-makes{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}
.sell-make{display:flex;align-items:center;justify-content:center;text-align:center;
  min-height:52px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--radius-sm);
  background:var(--bg);font-size:14px;font-weight:600;color:var(--ink);line-height:1.3}
.sell-make:hover{border-color:var(--red);color:var(--red)}
.sell-make-any{border-style:dashed;color:var(--muted);font-weight:500}
.sell-already{margin:18px 0 0;font-size:14px;color:var(--muted)}
.sell-already a{color:var(--red);font-weight:600}

/* The visitor's town, read from the cookie in the browser so that this page
   stays the same for everybody and stays cacheable. An extra line rather than
   a rewritten heading -- see components/sell/SellCity.tsx. */
.sell-city{margin:-18px 0 26px;padding:10px 13px;background:var(--bg);
  border:1px solid var(--line);border-radius:var(--radius-sm);
  font-size:14px;line-height:1.6;color:var(--ink-2);max-width:56ch}
.sell-city b{color:var(--ink)}

/* ---- what makes it sell faster ----------------------------------------- */
.sell-tips{display:grid;grid-template-columns:1fr;gap:20px}
.sell-tips>div{position:relative;padding-left:40px}
.sell-tip-n{position:absolute;left:0;top:-1px;width:28px;height:28px;border-radius:8px;
  background:var(--red-soft);color:var(--red-dark);display:grid;place-items:center;
  font-weight:750;font-size:13.5px}
.sell-tips h3{font-size:15.5px;margin:2px 0 5px}
.sell-tips p{margin:0;color:var(--ink-2);font-size:14.5px;line-height:1.65}

@media (min-width:620px){
  .sell-makes{grid-template-columns:repeat(3,1fr)}
}
@media (min-width:820px){
  .sec-start{padding:40px 0}
  .sell-makes{grid-template-columns:repeat(4,1fr);gap:10px}
  .sell-tips{grid-template-columns:repeat(2,1fr);gap:24px 30px}
}

/* ======================================================================== 43
   The header, opened out

   Five flat links, all of them ways to buy. Selling reached the phone menu and
   nothing else -- on a marketplace whose short side is stock, and where the
   person browsing used cars is exactly the person with one to sell. Each
   vertical now drops a panel carrying both halves, and the phone sheet gets the
   same structure as an accordion.

   The panel is a sibling of .hdr-in inside .hdr, not a child of it: .hdr-in is
   a 66px flex row, and anything put inside it becomes a flex item squeezed into
   66px. Same reason the mobile sheet lives where it does.
   ------------------------------------------------------------------------ */

/* NOT position:relative. That would make each label the containing block
   for its own panel, and the panel is meant to span the header: with it,
   four columns were crushed into the width of the word "Cars" and only
   the first had the white background under it. .hdr is position:sticky,
   so it is the positioned ancestor the panel wants. */
.nav-has{display:flex}
.nav-top{display:inline-flex;align-items:center;gap:4px;padding:8px 12px;border:0;
  background:none;border-radius:9px;font-weight:500;color:var(--ink-2);font-size:14.5px;
  font-family:inherit;cursor:pointer;white-space:nowrap}
.nav-top:hover,.nav-top.on,.nav-top.is-open{background:var(--bg-2);color:var(--ink)}
.nav-caret{width:15px;height:15px;opacity:.6;transition:transform .15s ease}
.nav-top.is-open .nav-caret{transform:rotate(180deg)}
@media (prefers-reduced-motion:reduce){.nav-caret{transition:none}}

/* Full width, pinned under the 66px header row, and above everything the page
   can put in its own way. */
.mega{position:absolute;left:0;right:0;top:100%;z-index:65;
  background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);
  box-shadow:0 18px 40px rgba(20,22,26,.13)}
.mega-in{display:grid;grid-template-columns:repeat(4,1fr);gap:26px 34px;
  padding-top:26px;padding-bottom:28px;align-items:start}
/* Three columns when the panel only has three, rather than a gap on the end. */
.mega-in:has(.mega-col:nth-child(3):last-child){grid-template-columns:repeat(3,1fr)}
.mega-col h3{font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--muted);font-weight:700;margin:0 0 11px}
.mega-col ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.mega-col a{display:block;padding:6px 8px;margin-left:-8px;border-radius:7px;
  font-size:14.5px;color:var(--ink);line-height:1.35}
.mega-col a:hover{background:var(--bg-2);color:var(--red)}
.mega-col a small{display:block;margin-top:1px;font-size:12.5px;color:var(--muted)}
.mega-col a:hover small{color:var(--muted)}
/* .mega-col a sets display:block and wins on specificity, so the call to
   action stretched the whole column into a red bar. */
.mega-col a.mega-cta{display:inline-block;width:auto;margin-top:12px;margin-left:0;
  padding:8px 15px;border-radius:999px;background:var(--red);
  color:#fff;font-size:13.5px;font-weight:600}
.mega-col a.mega-cta:hover{background:var(--red-dark);color:#fff}

/* ---- the same thing on a phone, as an accordion ------------------------ */
.msheet-sec{border-bottom:1px solid rgba(255,255,255,.13)}
.msheet-sec>summary{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:19px 0;font-size:27px;font-weight:600;letter-spacing:-.02em;line-height:1.2;
  color:#fff;cursor:pointer;list-style:none
}
.msheet-sec>summary::-webkit-details-marker{display:none}
.msheet-sec>summary::marker{content:""}
.msheet-sec>summary svg{flex:0 0 auto;width:24px;height:24px;opacity:.65;
  transition:transform .15s ease}
.msheet-sec[open]>summary svg{transform:rotate(180deg)}
@media (prefers-reduced-motion:reduce){.msheet-sec>summary svg{transition:none}}

.msheet-sub{padding:2px 0 20px;display:grid;gap:20px}
.msheet-sub h3{font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;
  color:rgba(255,255,255,.5);font-weight:700;margin:0 0 6px}
/* Overrides the 27px list styling above -- these are second level. */
.msheet-nav .msheet-sub a{padding:9px 0;font-size:17px;font-weight:500;
  letter-spacing:0;border-bottom:0;color:rgba(255,255,255,.88)}
.msheet-nav .msheet-sub a:active{color:rgba(255,255,255,.55)}
.msheet-nav .msheet-sub .msheet-cta{display:inline-block;margin-top:8px;
  padding:10px 18px;border-radius:999px;background:var(--red);color:#fff;
  font-size:15px;font-weight:600}

@media (max-width:959px){
  .mega{display:none}
}

/* ======================================================================== 44
   The browse hubs: /used-car and /used-bike

   Both addresses used to render the listing with a filter on it, which asks
   somebody to start narrowing before they have decided anything. That is the
   right first screen for a site with forty thousand cars; it is the wrong one
   here, where the most useful thing a visitor can tell us is their town.

   Every tile is a real address with the filter already applied, so these pages
   are also the internal linking the town and filter pages need -- which the
   header menu deliberately is not, because that renders only while open.
   ------------------------------------------------------------------------ */

.hub-hero{background:var(--bg-2);border-bottom:1px solid var(--line);padding:26px 0 30px}
.hub-hero h1{max-width:22ch;margin:0 0 10px}
.hub-lead{max-width:60ch;margin:0;color:var(--ink-2);font-size:clamp(15px,2.1vw,17px);
  line-height:1.65}
.hub-intro{max-width:62ch;margin:6px 0 20px;font-size:14.5px;line-height:1.65}

/* The town they already picked, offered back rather than asked for again. */
.hub-resume{display:flex;align-items:center;justify-content:space-between;gap:16px;
  margin-top:22px;padding:14px 18px;background:var(--bg);border:1px solid var(--red);
  border-radius:var(--radius-lg);max-width:460px;box-shadow:var(--shadow-sm)}
.hub-resume span{display:flex;flex-direction:column;gap:2px;font-size:12.5px;
  color:var(--muted);letter-spacing:.03em;text-transform:uppercase;font-weight:700}
.hub-resume b{font-size:17px;font-weight:700;color:var(--ink);letter-spacing:-.01em;
  text-transform:none}
.hub-resume svg{flex:0 0 auto;width:20px;height:20px;color:var(--red)}
.hub-resume:hover{background:var(--red-soft)}

/* ---- towns ------------------------------------------------------------- */
.hub-towns{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.hub-town{display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);
  background:var(--bg);font-size:14.5px;font-weight:600;color:var(--ink)}
.hub-town:hover{border-color:var(--red);color:var(--red)}
.hub-town span{flex:0 0 auto;min-width:22px;padding:1px 7px;border-radius:999px;
  background:var(--red-soft);color:var(--red-dark);font-size:12px;font-weight:700;
  text-align:center}
.hub-more{margin-top:14px}
.hub-more>summary{display:inline-flex;align-items:center;gap:7px;padding:9px 15px;
  border:1px solid var(--line);border-radius:999px;background:var(--bg);cursor:pointer;
  font-size:14px;font-weight:600;color:var(--ink-2);list-style:none}
.hub-more>summary::-webkit-details-marker{display:none}
.hub-more>summary::marker{content:""}
.hub-more>summary:hover{border-color:var(--muted);color:var(--ink)}
.hub-more[open]>summary{margin-bottom:14px}

/* ---- what are you looking for ------------------------------------------ */
.hub-who{display:grid;grid-template-columns:1fr;gap:12px}
.hub-card{display:flex;flex-direction:column;gap:5px;padding:18px 19px;background:var(--bg);
  border:1px solid var(--line);border-radius:var(--radius-lg)}
.hub-card b{font-size:16.5px;letter-spacing:-.01em;color:var(--ink)}
.hub-card span{font-size:14px;line-height:1.55;color:var(--muted)}
.hub-card:hover{border-color:var(--red)}
.hub-card:hover b{color:var(--red)}

/* ---- budget and shape, side by side ------------------------------------ */
.hub-split{display:grid;grid-template-columns:1fr;gap:34px}
.hub-chips{display:flex;flex-wrap:wrap;gap:8px}
.hub-chips .chip span{margin-left:6px;opacity:.65;font-weight:700}

/* ---- makes ------------------------------------------------------------- */
.hub-makes{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.hub-make{display:flex;align-items:center;justify-content:center;text-align:center;
  min-height:48px;padding:10px 12px;border:1px solid var(--line);
  border-radius:var(--radius-sm);background:var(--bg);font-size:14px;font-weight:600;
  color:var(--ink);line-height:1.3}
.hub-make:hover{border-color:var(--red);color:var(--red)}

/* ---- guides ------------------------------------------------------------ */
.hub-guides{display:grid;grid-template-columns:1fr;gap:12px}
.hub-guide{display:flex;flex-direction:column;gap:6px;padding:18px 19px;background:var(--bg);
  border:1px solid var(--line);border-radius:var(--radius-lg)}
.hub-guide b{font-size:16px;line-height:1.4;letter-spacing:-.01em;color:var(--ink)}
.hub-guide span{font-size:14px;line-height:1.6;color:var(--muted)}
.hub-guide:hover{border-color:var(--red)}
.hub-guide:hover b{color:var(--red)}

/* ---- the paragraph at the bottom --------------------------------------- */
.hub-about p{max-width:70ch;margin:0 0 14px;font-size:14.5px;line-height:1.75;
  color:var(--ink-2)}
.hub-about p:last-child{margin-bottom:0}

@media (min-width:620px){
  .hub-towns{grid-template-columns:repeat(3,1fr)}
  .hub-makes{grid-template-columns:repeat(3,1fr)}
  .hub-who{grid-template-columns:repeat(2,1fr)}
  .hub-guides{grid-template-columns:repeat(3,1fr)}
}
@media (min-width:900px){
  .hub-hero{padding:34px 0 40px}
  .hub-towns{grid-template-columns:repeat(4,1fr)}
  .hub-makes{grid-template-columns:repeat(6,1fr)}
  .hub-who{grid-template-columns:repeat(4,1fr)}
  .hub-split{grid-template-columns:1fr 1.35fr;gap:44px}
}

/* ---- searches like this one -------------------------------------------- */
/* A filter landing page exists because somebody typed that search. It only
   works if the page can be found, and a page nothing links to is one a crawler
   reaches once and forgets. The header menu renders its panels only while
   open, so none of its links are in any page's HTML -- this block and the
   browse hubs are where the linking actually happens. */

.rel-h2{margin:0 0 20px}
.rel-grid{display:grid;grid-template-columns:1fr;gap:26px}
.rel-col h3{font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--muted);font-weight:700;margin:0 0 10px}
.rel-col ul{list-style:none;margin:0;padding:0;display:grid;gap:3px}
.rel-col a{display:block;padding:5px 0;font-size:14px;line-height:1.45;color:var(--ink-2)}
.rel-col a:hover{color:var(--red)}
.rel-all{margin:24px 0 0;font-size:14px;color:var(--muted)}
.rel-all a{color:var(--red);font-weight:600}

@media (min-width:760px){
  .rel-grid{grid-template-columns:repeat(3,1fr);gap:30px 34px}
}
/* The sentence under a listing heading: how many, what they cost, which makes.
   Every competitor opens a town page this way, and it is the only part that
   answers "is this worth my time" before you scroll. */
.res-sum{max-width:66ch;margin:8px 0 0;font-size:14px;line-height:1.6;color:var(--ink-2)}

/* ---- what a lead came from --------------------------------------------- */
/* Three different buttons used to record the same word, so this column said
   the same thing about every lead a listing produced. Now it names the button
   and the kind of page it was pressed on -- which is the difference between a
   buyer who saw a photograph and one who read the whole listing. */
.enq-src{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:5px}
.enq-btn{padding:2px 8px;border-radius:999px;background:var(--red-soft);
  color:var(--red-dark);font-size:11.5px;font-weight:700;line-height:1.5}
.enq-from{font-size:12px;color:var(--muted);cursor:help}

/* ======================================================================== 45
   Importing a dealer's stock from a spreadsheet

   Listing thirty vehicles one at a time is an evening per vehicle, and it is
   the first thing a dealer with real stock asks about before signing up. The
   screen is three steps and the middle one is the point: nothing is written
   until the dealer has seen every row and what we matched it to.
   ------------------------------------------------------------------------ */

.imp{max-width:920px}
.imp-steps{margin:0 0 22px;padding-left:20px;display:grid;gap:9px;
  font-size:14.5px;line-height:1.6;color:var(--ink-2)}
.imp-steps b{color:var(--ink)}
.imp-steps a{color:var(--red);font-weight:600}
.imp code{padding:1px 5px;border-radius:4px;background:var(--bg-2);
  font-size:13px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}

.imp-count{margin:20px 0 12px;font-size:15px;color:var(--ink-2)}
.imp-count b{font-size:19px;color:var(--ink)}
.imp-bad{color:var(--red-dark);font-weight:600}

.imp-table td{vertical-align:top;font-size:13.5px}
.imp-row-bad{background:var(--red-soft)}
.imp-matched{color:var(--muted)}
/* Why a row was refused, in the row rather than in a summary somewhere else:
   a dealer fixing a spreadsheet needs the reason next to the line it is about. */
.imp-why{display:block;max-width:34ch;color:var(--red-dark);font-size:12.5px;line-height:1.5}

.imp-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.imp-done{margin:14px 0 0;padding-left:18px;display:grid;gap:4px;
  font-size:13.5px;color:var(--ink-2);max-height:220px;overflow-y:auto}

/* The inventory heading now offers two ways in, not one. */
.pnl-head-actions{display:flex;flex-wrap:wrap;gap:9px}

/* ---- what a vehicle like this usually has ------------------------------- */
/* Offered, never ticked for them: a pre-ticked list means a listing can claim
   a sunroof because a rule guessed one, and that is the dealer's word to a
   buyer at the gate, not ours. */
.feat-hint{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;
  margin:0 0 18px;padding:13px 15px;background:var(--bg-2);border:1px solid var(--line);
  border-left:3px solid var(--red);border-radius:var(--radius-sm)}
.feat-hint b{display:block;font-size:14.5px;color:var(--ink)}
.feat-hint span{display:block;margin-top:2px;font-size:13px;line-height:1.55;color:var(--muted);
  max-width:56ch}

/* ---- make logos --------------------------------------------------------- */
/* A grid of names is a grid people read one at a time; a logo is recognised
   without being read. The name stays underneath either way -- a logo alone is
   a puzzle for anyone who does not know the badge, and about a third of the
   makes on this site left India before most buyers here were driving. */
.hub-make,.sell-make{flex-direction:column;gap:6px;padding:12px}
.hub-make img,.sell-make img{display:block;max-width:44px;max-height:30px;
  width:auto;height:auto;object-fit:contain;mix-blend-mode:multiply}
.hub-make span,.sell-make span{display:block;line-height:1.25}
