html { font-size: 15px; }
/* ============================================================================
 * THE HOME PAGE
 *
 * The live site's landing: banners, a way into the stock, two rails of real vehicles, the
 * reasons to buy, and the questions. Every class is `home-` prefixed so none of it can reach
 * the listing, which is the page that must not move.
 *
 * The banners are the site's own 420x120 images, shown two across rather than stretched:
 * scaling a strip that shape to a 900px column blurs it, and there is nothing to gain.
 * ========================================================================== */

.home-lede { padding: 0 0 14px; }
.home-lede h1 { margin: 0 0 4px; font-size: 26px; }
.home-lede p { margin: 0; font-size: 13.5px; color: #6b7280; }
@media (min-width: 768px) { .home-lede h1 { font-size: 32px; } }

.banner-grid { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 16px; }
@media (min-width: 560px) { .banner-grid { grid-template-columns: 1fr 1fr; } }
.banner img { display: block; width: 100%; height: auto; border-radius: 8px; }
.banner:hover img { opacity: .92; }

.home-search {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 14px 16px 16px; margin-bottom: 22px;
}
.home-search h2 { margin: 0 0 12px; font-size: 15px; }
/* The homepage search: four fields and a button, in one white card so it reads as a single
   control rather than five loose dropdowns. */
.home-search-card {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
    background: #fff; border: 1px solid #e5e9ef; border-radius: 6px; padding: 14px;
}
@media (min-width: 860px) {
    .home-search-card { grid-template-columns: repeat(4, minmax(0, 1fr)) 132px; align-items: end; }
}
.hs-field { display: block; margin: 0; }
.hs-field > span {
    display: block; margin-bottom: 5px;
    font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6b7280;
}
.hs-field select {
    width: 100%; height: 38px; padding: 0 10px;
    border: 1px solid #d6dbe3; border-radius: 4px; background: #fff;
    font-size: 13px; color: #111827;
}
.hs-field select:focus { outline: none; border-color: #c1121f; box-shadow: 0 0 0 2px rgba(193,18,31,.12); }
.hs-go { height: 38px; border-radius: 4px; font-weight: 700; letter-spacing: .04em;
    background: #c1121f; border-color: #c1121f; }
.hs-go:hover { background: #9e0e18; border-color: #9e0e18; }

.home-rail { margin-bottom: 26px; }
.home-rail-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    border-bottom: 2px solid #f3f4f6; padding-bottom: 8px; margin-bottom: 14px;
}
.home-rail-head h2 { margin: 0; font-size: 19px; }
.home-more { font-size: 12.5px; font-weight: 600; color: #c1121f; text-decoration: none; white-space: nowrap; }
.home-more:hover { text-decoration: underline; }

.home-why { padding: 30px 0 8px; border-top: 1px solid #e5e7eb; }
.home-why h2, .home-faq h2, .home-cta h2 { margin: 0; font-size: 23px; }
.home-sub { margin: 6px 0 22px; font-size: 14px; color: #6b7280; }
.home-why-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; }
@media (min-width: 640px)  { .home-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .home-why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* White cards on the page's grey, not four columns of floating text. Each is a panel with
   the same border and radius as the search box above it, so the section reads as part of the
   same surface rather than as a caption. */
.home-why-item {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 16px 18px 18px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.home-why-item h3 { margin: 0 0 6px; font-size: 14px; color: #111827; }
.home-why-item p { margin: 0; font-size: 13px; line-height: 1.55; color: #4b5563; }


.home-faq { padding: 34px 0 10px; }
.home-faq details {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 14px 16px; margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
.home-faq details[open] { border-color: #d8dde5; }
.home-faq summary { cursor: pointer; font-weight: 600; font-size: 15px; color: #111827; list-style: none; }
.home-faq summary::-webkit-details-marker { display: none; }
.home-faq summary::after { content: '+'; float: right; color: #9ca3af; font-weight: 400; }
.home-faq details[open] summary::after { content: '\2212'; }
.home-faq details p { margin: 10px 0 0; max-width: 820px; font-size: 14px; line-height: 1.65; color: #4b5563; }
.home-faq details p:first-of-type { margin-top: 12px; }
.faq-point { padding-left: 14px; position: relative; }
.faq-point::before { content: '·'; position: absolute; left: 2px; }

.home-cta { margin: 30px 0 0; padding: 34px 0 40px; background: #0f172a; color: #f9fafb; text-align: center; }
.home-cta p { margin: 10px auto 20px; max-width: 620px; color: #cbd5e1; font-size: 14px; line-height: 1.6; }
.home-cta .btn-search { display: inline-block; padding: 11px 26px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-decoration: none; }

/* ==========================================================================
   app.css — the layout, written out by hand. No Tailwind, no CDN, no build step.

   Two files make up this design:

     site.css   YOUR stylesheet, lifted out of the <style> blocks in header (1).php,
                cars_info.php and car_details.php. It holds everything that is
                genuinely yours: .header-bg, .nav-link, .search-bar-wrapper,
                .sidebar-section, .custom-select, .custom-dropdown, .line-clamp-2.

     app.css    this file. It is the part the live site leaves to Tailwind —
                widths, padding, radius, shadow, the column grid — written out as
                named classes instead of utility strings.

   Every number below was read out of the original markup's class names, not measured
   off a screenshot. w-[220px] is 220px because the live markup says w-[220px];
   the photo is 160x128 because it is w-40 h-32. Where a colour is needed it is the
   colour spelled out in Tailwind's own stylesheet, so #1f2937 is gray-800 and
   #e5e7eb is gray-200.

   The one rule worth stating: site.css is loaded AFTER this file, so anything both
   files set is decided in your favour. That is deliberate — .nav-link:hover in
   site.css is #f54242 and beats any hover colour named here.

   Layout: page shell, then the listing, then the vehicle page, then the parts that
   are new (pager, gallery, inquiry). Roughly the order you see them on screen.
   ========================================================================== */

/* ==================================================================== reset */

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

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

body {
    margin: 0;
    background: #f3f4f6;                 /* gray-100: the grey the white cards sit on */
    color: #111827;                      /* gray-900 */
    font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ol, ul { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
hr { border: 0; border-top: 1px solid #e5e7eb; margin: 1rem 0; }

/* Every icon on the site is an inline <svg> with no class of its own. */
svg { flex: none; }

/* The one container. Tailwind's .container widths, which the live site relies on. */
.shell { width: 100%; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px)  { .shell { max-width: 640px; } }
@media (min-width: 768px)  { .shell { max-width: 768px; padding: 0 24px; } }
@media (min-width: 1024px) { .shell { max-width: 1024px; } }
@media (min-width: 1280px) { .shell { max-width: 1280px; } }

/* =================================================================== top bar */

/* .header-bg in site.css paints the gradient; this is the bar itself. */
.site-header { box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }

.header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.hamburger {
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    margin-right: 8px; background: none; border: 0; color: #fff;
}
.hamburger svg { width: 20px; height: 20px; }
.hamburger span { font-size: 12px; font-weight: 500; color: #d1d5db; text-transform: uppercase; letter-spacing: .3px; }

/* The rounded search field. site.css sets the 38px height and 14px padding; the
   pill shape and the red button are here. */
.search-pill {
    display: flex; border-radius: 999px; overflow: hidden;
    background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.search-pill input {
    flex: 1; min-width: 0; border: 0; outline: none;
    background: transparent; font-size: 14px;
}
.search-pill input::placeholder { color: #9ca3af; }
.search-pill button {
    display: flex; align-items: center; justify-content: center; flex: none;
    border: 0; background: #dc2626; color: #fff; transition: background .15s;
}
.search-pill button:hover { background: #b91c1c; }
.search-pill button svg { width: 16px; height: 16px; }

.header-left { display: flex; align-items: center; order: 1; }
.brand { display: flex; align-items: center; flex: none; margin-left: 4px; }

/* ONE set of account links.
   The live site renders its account controls twice — one set for phones, one for
   desktops — and hides a set with a media query. That is the same markup twice in the
   document, and every change has to be made in both places. Here there is one set, and
   it only re-orders: icon beside label on a desktop, icon alone on a phone. */
.account-links { display: flex; align-items: center; gap: 4px; order: 2; }
.account-link {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 8px; min-height: 44px;              /* a comfortable tap target */
    color: #d1d5db; font-size: 12px; font-weight: 500; transition: color .2s;
}
.account-link:hover { color: #fff; }
.account-link svg { width: 24px; height: 24px; }
.account-link.wa, .account-link.wa:hover svg { color: #25d366; }
.account-link.wa svg { color: #25d366; }

/* The shortlist: a red heart carrying how many are in it. The count sits on the icon so
   it reads at a glance from any page, which is the whole point of putting it up here. */
.account-link.saved { position: relative; }
.account-link.saved svg { color: #e6003a; }
.icon-count { position: relative; display: inline-flex; }
.icon-count .badge {
    position: absolute; top: -5px; right: -8px; min-width: 16px; height: 16px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px; border-radius: 999px;
    background: #e6003a; color: #fff; font-size: 10px; font-weight: 700;
    border: 1.5px solid #16213e; line-height: 1;
}
.icon-count .badge[hidden] { display: none; }
/* Hidden on a phone so the icons stay on one line. display:none and not a smaller size, so
   it is never text too small to read.
 *
 * `.label`, NOT `span`. As a bare `span` this matched the `<span class="icon-count">` that
 * wraps the heart as well as the three text labels, and beat `.icon-count`'s
 * `display: inline-flex` on specificity — so the saved-list heart was `display: none` at
 * every width below 768px. A selector that says "the labels" has to name the labels. */
.account-link .label { display: none; }

/* The search moves between lines: full width under the logo on a phone, centred beside
   it from 768px. One form, one place, both layouts. */
.search-wrap { order: 3; flex: 1 1 100%; }

/* The seven-item strip. .nav-link and .nav-gap come from site.css. */
.nav-strip {
    background: rgba(17, 24, 39, .9);             /* gray-900/90 */
    border-top: 1px solid rgba(55, 65, 81, .5);   /* gray-700/50 */
    border-bottom: 1px solid rgba(55, 65, 81, .5);
}
/* The strip scrolls sideways when the seven items do not fit, and centres once they
   do. Scrolling rather than wrapping, because a wrapped nav changes the header's
   height as you resize and that is what "feels unresponsive" was describing. */
.nav-strip-inner {
    display: flex; align-items: center;
    justify-content: flex-start;
    padding: 8px 8px; font-size: 14px; font-weight: 500;
}
/* The strip is DESKTOP ONLY. On a phone the same items are in the hamburger drawer, and
   showing them in both places is the duplication that was removed from the header — a
   second copy to keep in step, and a strip that eats the top of every page. */
.nav-strip { display: none; }
@media (min-width: 768px) {
    .nav-strip { display: block; }
    .nav-strip-inner { justify-content: center; }
}

/* The header, from tablet up. Below 768px the drawer carries the menu, the account
   links lose their labels, and the search takes a line of its own. */
@media (min-width: 768px) {
    .hamburger { display: none; }
    .account-links { order: 3; gap: 12px; }
    .account-link { flex-direction: column; gap: 2px; padding: 6px 4px; }
    .account-link .label { display: block; }
    .search-wrap { order: 2; flex: 1 1 auto; display: flex; justify-content: center; }
}

.nav-item { position: relative; }
.nav-link { font-weight: 700;
    display: inline-flex; align-items: center; gap: 4px;
    color: #fff; text-transform: uppercase; letter-spacing: .02em;
}
.nav-link .caret { width: 12px; height: 12px; transition: transform .2s; }
.nav-item:hover .caret,
.nav-item:focus-within .caret { transform: rotate(180deg); }

/* Panels.
   display:none until hover, rather than the live site's opacity/invisible, for a
   measurable reason: an element that is merely transparent still downloads its
   contents, so the original fetches all eleven flag files on every page view. A
   display:none panel fetches nothing until it is opened. */
.nav-panel {
    display: none; position: absolute; top: 100%; left: 0; z-index: 50;
    margin-top: 4px; background: #1f2937; border: 1px solid #374151;
    border-radius: 6px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .3);
}
.nav-item:hover > .nav-panel,
.nav-item:focus-within > .nav-panel { display: block; }
.nav-panel.w-local { width: 460px; max-height: 420px; overflow-y: auto; }
.nav-item:hover > .nav-panel.w-local,
.nav-item:focus-within > .nav-panel.w-local {
    display: grid; grid-template-columns: 1fr 1fr; align-content: start;
}
.nav-panel.w-help  { width: 176px; }

.nav-panel a {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 16px; font-size: 14px; color: #fff; transition: background .15s, color .15s;
}
.nav-panel a:first-child { border-radius: 6px 6px 0 0; }
.nav-panel a:last-child  { border-radius: 0 0 6px 6px; }
.nav-panel a:hover { background: #374151; color: #f87171; }
.nav-flag { width: 21px; height: 14px; flex: none; }

/* --------------------------------------------------- mobile drawer */

.menu-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 40; }
.menu-drawer {
    position: fixed; top: 0; left: 0; width: 288px; height: 100%;
    background: #111827; z-index: 50; overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5);
}
.menu-drawer[hidden], .menu-overlay[hidden] { display: none; }
.menu-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px; border-bottom: 1px solid #374151; color: #fff;
}
.menu-drawer-head strong { font-size: 18px; }
.menu-drawer-head button { background: none; border: 0; color: #9ca3af; font-size: 24px; line-height: 1; }
.menu-drawer-body { padding: 8px 16px; display: flex; flex-direction: column; gap: 4px; }
.menu-drawer-body > a {
    display: block; padding: 8px 12px; border-radius: 4px;
    color: #fff; font-size: 13px; font-weight: 500;
}
.menu-drawer-body > a:hover { background: #1f2937; color: #f87171; }
.menu-sub {
    margin-left: 16px; padding-left: 8px; border-left: 2px solid #374151;
    display: flex; flex-direction: column; gap: 4px;
}
.menu-sub a { display: flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 4px; color: #d1d5db; font-size: 12px; }
.menu-sub a:hover { background: #1f2937; color: #fff; }

/* =============================================================== page shell */

.page { padding-top: 16px; padding-bottom: 16px; }
@media (min-width: 768px) { .page { padding-top: 32px; } }

/* The browse column and the results. The order swap on a narrow screen is in
   site.css — it moves aside above main below 768px — so the source order here has
   to stay aside-then-main. */
.columns { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
@media (min-width: 1024px) {
    .columns { flex-direction: row; gap: 24px; margin-top: 24px; }
    .main-col { flex: 1; min-width: 0; }

    /* The browse column is an ordinary column. It is NOT sticky and NOT a scroll box of its
     * own — it scrolls with the page, which is what was asked for twice and what this does
     * now.
     *
     * The history, because both mistakes are easy to make again. It was given
     * `position: sticky` with `align-self: flex-start` (load-bearing if you want sticky: the
     * default `stretch` makes the column exactly as tall as the flex row, and a sticky box
     * with no room to move inside its parent never moves) plus `max-height` and
     * `overflow-y: auto` so a long make list would not run off the bottom of the window.
     *
     * That combination gives a column with its own scrollbar beside a page with its own, and
     * the wheel over the sidebar scrolls the box rather than the page. Two scrollbars, and a
     * page that stops moving where you expect it to. A column that simply flows, with no
     * height cap and no sticky, has one scrollbar and one rule: the wheel means the page. */
    .browse-col {
        width: 20%; flex: none;
    }
}
@media (max-width: 1023px) {
    .browse-col { width: 100%; margin-bottom: 24px; }
}

/* ============================================================ title card */

/*
 * The heading block: a breadcrumb, a headline and the count under it.
 *
 * It was a white card — 16px radius, a two-part 25px shadow, and a soft red circle bleeding
 * off the corner. On a page whose own background is white that meant a card drawn in white
 * on white, spending a border, a shadow and 32px of padding to say nothing, and pushing the
 * vehicles it was introducing down the page. The wrapper stays because the crumb and the
 * headline are what the page needs; the card around them is gone.
 */
.page-head { position: relative; margin-bottom: 20px; }
@media (min-width: 640px) { .page-head { margin-bottom: 24px; } }
.page-head .inner { position: relative; z-index: 10; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .page-head .inner { gap: 16px; } }

.crumb {
    font-size: 12px; font-weight: 600; letter-spacing: .025em;
    text-transform: uppercase; color: #9ca3af;
    display: inline-flex; flex-wrap: wrap; align-items: center;
}
@media (min-width: 640px) { .crumb { font-size: 12px; } }
.crumb a:hover { color: #dc2626; }
.crumb .sep { margin: 0 8px; color: #d1d5db; }
.crumb .now { color: #dc2626; }

.head-line { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 640px) {
    .head-line { flex-direction: row; align-items: center; justify-content: space-between; }
}
/* Arial carries two weights, 400 and 700, so every 600 and 800 in this file was rendering as
   700 — which is why the page read as uniformly fat. Display text is at 500 (Arial's regular)
   and the hierarchy is carried by size and colour instead. Keep 700 for 11-13px labels, where
   bold is what makes small text legible. */
.page-head h1 {
    font-size: 20px; font-weight: 500; line-height: 1.2;
    color: #111827; letter-spacing: -.01em;
}
@media (min-width: 640px) { .page-head h1 { font-size: 30px; } }
.page-head .lede { margin-top: 4px; font-size: 12px; color: #6b7280; }
@media (min-width: 640px) { .page-head .lede { font-size: 14px; } }

/* .assured lived here — the green "Quality Assured" tick beside the results heading.
   Removed with its markup: it claimed something the page cannot evidence anywhere, and
   every exporter's site carries the same badge, so it read as furniture. */

.dest-note {
    padding: 8px 12px; border-radius: 6px; font-size: 12px;
    background: #eff6ff; border: 1px solid #dbeafe; color: #374151;
}
.dest-note a { color: #dc2626; font-weight: 600; }

/* ============================================================= filter card */

.filter-card {
    padding: 12px; margin-bottom: 16px;
    background: #fff; border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}
@media (min-width: 640px)  { .filter-card { padding: 14px; margin-bottom: 20px; } }

/* The controls flow in one order and wrap to the width available:
   make · model · model code · year min · year max · price min · price max ·
   transmission · min cc · max cc  — then the buttons on their own line.

   This replaces the live site's four columns of PAIRS. The pairs existed to make ten
   controls into two visual rows; a plain grid does that without a wrapper, and it
   keeps the order you can read in the markup.

   TWO columns on a phone, not one. One column made ten controls a column of ten
   screens' worth of scrolling before you reached the results, which is the whole
   reason a filter bar stops being used. Two columns halves that and the paired
   controls — year min/max, price min/max, cc min/max — finally sit side by side,
   which is how you read them anyway.

   minmax(0, 1fr) rather than 1fr: a grid track defaults to a minimum of its content,
   so one long option ("All Model Codes") would widen its column and push the other
   off the card. The 0 lets a track shrink and the select ellipsis instead. */
.filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px)  { .filter-grid { gap: 12px; } }
@media (min-width: 1024px) { .filter-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* The buttons are LAST: the more-filters block that used to sit under them has moved up,
   so the card reads filters-then-go and nothing is between the last field and the button
   that submits it. */
.filter-actions { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.filter-actions .btn-search,
.filter-actions .btn-reset { flex: 1 1 0; max-width: 180px; }

.select-wrap { position: relative; }
.select-wrap select {
    display: block; width: 100%;
    padding: 7px 24px 7px 12px; height: 36px; line-height: 20px;
    background: #fff; border: 1px solid #d1d5db; border-radius: 6px;
    font-size: 14px;
    -webkit-appearance: none; appearance: none;
}
.select-wrap select:focus {
    outline: none; border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .5);
}
/* A native arrow cannot be positioned, so the original draws its own and turns the
   native one off. */
.select-wrap .caret {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    pointer-events: none; color: #4b5563;
}
.select-wrap .caret svg { width: 16px; height: 16px; }

.btn-search, .btn-reset {
    padding: 8px 16px; border: 0; border-radius: 6px;
    font-size: 14px; font-weight: 500; flex: 1;
}
.btn-search { background: #2563eb; color: #fff; }
.btn-search:hover { background: #1d4ed8; }
.btn-reset { background: #e5e7eb; color: #374151; }
.btn-reset:hover { background: #d1d5db; }

.more-filters { margin-top: 12px; }
.more-filters > summary { cursor: pointer; font-size: 14px; color: #6b7280; }
.more-filters > summary:hover { color: #dc2626; }
.more-filters .filter-grid { margin-top: 12px; }

/* ============================================================ results bar */

/* One line, 40px tall, and it stays one line.
   It was a loose flex row: an 18px heading, a count at 14px with its own margin, and a sort
   control pushed to the far edge with its own label — three different sizes on one row, which
   is what made it read as a section rather than a status strip. Everything is 13px now and
   the row is baseline-aligned, so the height is the tallest control and nothing else. */
.results-bar {
    display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px;
    margin-bottom: 12px; padding-bottom: 8px;
    border-bottom: 1px solid #eceff3;
}
.results-bar h2 { font-size: 15px; font-weight: 500; color: #111827; }
.results-bar .for { font-size: 13px; color: #6b7280; margin-left: 0; }
.results-bar .count { font-size: 13px; color: #6b7280; }
.sort-wrap { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.sort-wrap label { font-size: 13px; color: #6b7280; white-space: nowrap; }
.sort-wrap select {
    border: 1px solid #d1d5db; padding: 5px 8px; border-radius: 4px; font-size: 13px;
    background: #fff; width: auto;
}

/* ============================================================ results list */

/* TWO per row on a phone, exactly like the card rails ("Recommended for you"); one per
   line from 1024px, where the card has room for a photo, a specification block and a price
   column side by side.

   This is the shape the compact card was built for: below 1024px it is the mini-card —
   photo full width, then title, price and a red Details button. */
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 1024px) { .results { grid-template-columns: 1fr; gap: 10px; } }

/* ---------------------------------------------------------- one vehicle

   Two layouts from one markup, and neither is tall.

   From 1024px it is three columns — a 180px photo, the vehicle, the money — with a
   six-pair specification block in two rows and nothing below it.

   Below 1024px it becomes the compact card: the photo full width on top, then the
   title, the price and a red Details button. That is the shape the small cards in the
   rails use, which is the point — a search result on a phone should not be taller than
   the recommendations underneath it.                                                       */

.vehicle {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    background: #fff; border: 1px solid #ececec; border-radius: 6px;
    overflow: hidden;
}

/* ------------------------------------------------ the phone: the recommended card
 *
 * Asked for by name, and it is the right call: `inc/partial-card.php` already draws this
 * shape eight times at the foot of a vehicle page, so the two now read the same. Photograph
 * flush to the card, then the name, then the one-line summary, then the price row.
 *
 * Until 1024px, in other words — every rule here is undone by the desktop block below. */
@media (max-width: 1023px) {
    .vehicle .detail { padding: 10px 10px 0; }
    .vehicle .buy { padding: 0 10px 10px; }
    .vehicle .meta { margin-top: 6px; font-size: 12px; color: #6b7280; }
}
/* ------------------------------------------------------------------ the card
 *
 * From 1024px: photograph, everything else, money — the shape the reference design uses.
 *
 * THE MONEY COLUMN IS NARROWER THAN IT WAS, ON PURPOSE.
 *
 * It held 200px and then 220px, and the price does not need either: at its largest the
 * figure is 32px and the widest one this stock produces ("$123,456") is about 150px with
 * the label beside it. What the 220px cost was the specification column — at a 1200px
 * viewport the shell is still capped at 1024, so the money column grew by 20px while the
 * column that has eight cells to fit stayed where it was. That is where "BLAC K" and a
 * "FF,FULLTIME4WD" three lines deep came from.
 *
 * 20% off both steps: 200 -> 160, 220 -> 176. The difference goes to the middle column,
 * which is the only one of the three that is ever short of room.
 */
@media (min-width: 1024px) {
    .vehicle {
        grid-template-columns: 190px minmax(0, 1fr) 160px;
        gap: 16px; padding: 12px;
    }
}
/* 1280, NOT 1200. Between those two widths the shell is still capped at 1024px, so growing the
   photograph and the price column by 36px took that 36px out of the specification grid — the one
   column that is ever short of room — and the colour cell came out at 45px. At 1280 the shell
   itself grows, so the extra width is new width rather than borrowed width. */
@media (min-width: 1280px) {
    .vehicle {
        grid-template-columns: 210px minmax(0, 1fr) 176px;
        gap: 20px;
    }
}

/* ---------------------------------------------------- the desktop spec grid
 *
 * Eight cells, bordered, four across and two down. The measurements matter and were got
 * wrong first time: the results column is about 962px at a 1280px viewport, which leaves
 * roughly 520px for this column — about 130px a cell. At 46% the label column inside that
 * was 60px, so "Model code" and "Engine code" were clipped to "Model c" and "Engine c",
 * and values were cut with them.
 *
 * So the label is sized to its own text (`flex: 0 0 auto`) rather than to a share of the
 * cell, and the value takes what is left and ellipsises if it has to. Labels are 11px:
 * "Engine code" is the longest at about 57px, leaving 70px for the value inside a 130px
 * cell, which is enough for everything this feed publishes except a couple of the longer
 * drive types.
 *
 * Hidden on a phone, where the card shows the recommended card's one-line summary instead.
 */
dl.spec-grid { display: none; }

@media (min-width: 1024px) {
    /*
     * ==========================================================================
     * TWO PAIRS ACROSS, AND THE ARITHMETIC THAT PUT IT THERE.
     * ==========================================================================
     *
     * This grid used to be four pairs across in two rows. It was fitted to values like "BLACK"
     * and "NPR85AN", and the fit was exact — 454px of need in 467.6px of column.
     *
     * The real data is longer. The feed writes the colour as "CHIFFON  IVORY  METALLIC" and
     * "SUPER-BLACK", which is 88px in Arial at 12.5px, and the fourth column it shared with
     * "Steering" is 45px wide. On the live card that printed as "ACT…" — an ellipsis two
     * letters in, which reads as a broken table rather than as a shortened answer.
     *
     * Four pairs cannot be made to fit and are not worth fitting: the eight values need about
     * 730px on one line and the card's middle column is between 306.8px and 511.6px. So the
     * grid is two pairs across, four rows, at every width from 1024 up:
     *
     *   col 1  Model code / Fuel / Engine code / Drive   min 178px   label 84 + pad 12 + value 72
     *   col 2  Steering   / Seats / Color      / Doors   min 161px   label 61 + pad 12 + value 88
     *                                                  --------
     *                                                  339px of need in a column that is 342.8px at its
     *                                                  narrowest — which is why the photograph no longer
     *                                                  grows at 1200, where the shell does not.
     *
     * Odd cells go in column one and even cells in column two, so each column gets ONE label
     * basis rather than the old 84/61/43/47 cycle — otherwise row 1 and row 2 would start their
     * values at different places inside the same column. Written as `2n + 1` / `2n + 2` rather
     * than `odd` / `even` because check-grid-fit.php reads these selectors to work out the
     * column widths, and it is the check that says whether this still holds.
     *
     * EVERY CELL IS ONE LINE. `white-space: nowrap` on the value, so nothing wraps and all four
     * rows are the same height. A value longer than its column — "SUPER-BLACK" in a 118px column
     * at 1024px — is cut with an ellipsis and carries its full text in the cell's `title`.
     *
     * Padding is 6px on the label, and the label bases below account for the 1px border they
     * carry: "Engine code" is 70px wide and its box is 84px, which leaves 71px of content.
     */
    dl.spec-grid {
        display: grid;
        /* minmax(), NOT a bare fr. `1.55fr` means `minmax(auto, 1.55fr)`, and `auto` here was
           resolving to zero because the cell below carried `min-width: 0` — so the columns had
           no floor at all and shrunk by ratio alone. These are the widths the contents need
           (label + longest unbreakable word + padding), measured by tools/check-grid-fit.php. */
        grid-template-columns: minmax(178px, 1fr) minmax(161px, 1fr);
        border: 1px solid #e8e8e8;
        border-radius: 4px;
        overflow: hidden;
        margin-top: 10px;
    }
    dl.spec-grid > div {
        display: flex; align-items: stretch; min-width: auto;
        border-right: 1px solid #e8e8e8;
        border-bottom: 1px solid #e8e8e8;
        /* ONE size for the label and the value, and no bold anywhere.
         *
         * The values were 700 at 11.5px against 10.5px labels, which made a number read as a
         * heading and the grid read as a form. In the reference a label and its value are the
         * same size and the same weight — the label is separated by its background and its
         * colour, not by being heavier — and that is what this is. */
        font-size: 12.5px;
    }
    /* The right-hand line belongs to the odd cells only; the last row carries the grid's own
       outer edge instead of a bottom line. */
    dl.spec-grid > div:nth-child(2n) { border-right: 0; }
    dl.spec-grid > div:nth-child(2n + 1) { border-right: 1px solid #e8e8e8; }
    dl.spec-grid > div:nth-child(n + 7) { border-bottom: 0; }

    /*
     * The label column: a fixed width per column, and it must stay fixed.
     *
     * Sized to its own text, "Fuel" makes a narrow cell and "Model code" a wide one, so the
     * value in each cell starts at a different place and eight cells of the same width do not
     * look it. Worse, the longest label then decides how much room every value gets.
     *
     * IT MUST ALSO BE WIDE ENOUGH FOR ITS OWN LABEL, and that is not cosmetic. A flex item never
     * shrinks below its content, so a basis that is too small does not clip the label — the label
     * makes the item wider than the basis and takes the difference out of the value beside it.
     * 78px was set here for labels needing 86px, and every value in the first column silently
     * lost 8px to a label that appeared to be 78px wide.
     *
     * The four widths are the longest label in each column at 12.5px, plus 16px of padding:
     * "Engine code" 70, "Steering" 47, "Drive" 29, "Doors" 33. Measured in Arial's metrics, and
     * check-grid-fit.php re-measures them on every run.
     */
    dl.spec-grid dt {
        /* 6px, NOT 7px. The box is 84px and also carries a 1px border-right, so 7px of side
           padding left 69px for a label 70px wide — "Engine code" spilled a pixel over the
           divider, and so did Steering, Drive and Doors. Turning off border-box appeared to fix
           it by making the 84px a CONTENT width, which is also what pushed .buy out of the
           card. Six pixels leaves 71px, so every label fits with a pixel to spare and no fixed
           column has to grow. */
        flex: 0 0 84px; padding: 6px; font-size: 12.5px;
        display: flex; align-items: center;
        background: #fafafa; color: #4b5563; font-weight: 400;
        border-right: 1px solid #e8e8e8;
        white-space: nowrap;
    }
    dl.spec-grid > div:nth-child(2n + 1) dt { flex: 0 0 84px; }   /* Model code, Fuel, Engine code, Drive */
    dl.spec-grid > div:nth-child(2n + 2) dt { flex: 0 0 61px; }   /* Steering, Seats, Color, Doors */

    /*
     * The value. NO `display: flex` here, and that is the point of this rule.
     *
     * It said `display: flex; align-items: center` so the value sat level with its label — and
     * that silently disabled `text-overflow: ellipsis`. The text stops being a direct child of
     * the box that clips: it is wrapped in an anonymous flex item, and ellipsis only applies to
     * the text of the element it is set on. So instead of "Petrol (Prem…" a long value was cut
     * mid-character — G16E-G for G16E-GTS, FULLTIM for FULLTIME — which reads as a broken table
     * rather than a shortened value.
     *
     * `align-self: center` does the vertical centring `align-items` was doing, without turning
     * the box into a flex container.
     *
     * ONE LINE, ALWAYS — `nowrap` plus ellipsis, and the ellipsis is safe again because it is no
     * longer doing the columns' job.
     *
     * Ellipsis was tried before and taken out, and it deserved to be: on a cell with almost no
     * room a value rendered as "V…" and "H…" — a letter and a full stop where a reference number
     * should be. A single truncated character is not a shortened value, it is no value. What made
     * that happen was the columns being sized by fr weight alone with no floor, not the ellipsis;
     * that is fixed in `grid-template-columns` above, where every column now has the width its
     * longest real value needs.
     *
     * So the rule is: the value is one line, and if it is still wider than its column it is cut
     * with an ellipsis at the end of a word that is worth reading, with the full text on `title`.
     * The alternative it replaces — wrap to a second line and let the row grow — is what made the
     * two rows of this grid different heights, which is worse than a shortened value.
     *
     * No `overflow-wrap`: with `nowrap` there is nothing left to break, and `break-word` on an
     * unbreakable token is what used to make a value wrap mid-word instead of ellipsising.
     */
    dl.spec-grid dd {
        /* Matching the label's padding. Two pixels narrower on each side and the value gains
           four: same reason as dt above, in the other direction. */
        flex: 1 1 auto; min-width: 0; margin: 0; padding: 6px;
        align-self: center;
        color: #111827; font-weight: 400;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }

    /* The phone's one-line summary stays on the desktop card too. It used to be grid cells; the
       grid is now the eight reference codes only, and mileage on a used-car listing is not
       something to drop because the grid got tidier. Same line as the phone shows. */
    .vehicle .meta { display: block; margin-top: 4px; font-size: 12px; color: #6b7280; }
}

/* ------------------------------------------------------------- the photo */

/* The phone card's photograph runs to the card's own edge, the way a recommended card's
   does, and the heart moves in with it.
 *
 * This block sits here and not with the other phone rules because those come BEFORE the
 * base photo rules below them, and at equal specificity the later rule wins — so a
 * `border-radius: 0` written up there is quietly undone by the `border-radius: 4px` down
 * here. Same rule, same reasoning, as the `.vehicles-head` ordering mistake. */
@media (max-width: 1023px) {
    .vehicle .photo img { border-radius: 0; }
}

.vehicle .photo { position: relative; }
/* The link is stacked BELOW the heart explicitly. Both sit in the same corner of the
   photograph, and `z-index: 2` on the form was only enough while nothing else claimed a
   stacking position — on a phone, where the photograph runs to the card's edge, that is
   exactly the sort of thing that varies by browser. Named here so neither wins by accident. */
.vehicle .photo > a { display: block; position: relative; z-index: 1; }
.vehicle .photo img {
    width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: 4px; background: #f3f4f6;
}
.fav-heart {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border: 0; border-radius: 50%;
    /* SOLID white, not 88%. On a pale photograph the translucent version was present and
       hard to see, which is how "the heart is missing" gets reported. */
    background: #fff;
    /* RED, not grey. Grey read as "nothing here"; the heart is the one control on a result
       that is about the visitor rather than the vehicle, and red says so before it is
       pressed. The filled state stays white-on-red so pressed still reads as pressed. */
    color: #e6003a;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25); transition: color .15s, background .15s;
}
/* The icon's own colour rather than an inherited one, so the heart stays red whatever the
   icon set does with stroke. */
.fav-heart svg { width: 14px; height: 14px; color: #e6003a; stroke: #e6003a; stroke-width: 1.5; }
/* Outline until it is pressed. A filled heart at 15px is a red blob, which is what "the
   heart is whole red" looks like; the solid shape is now reserved for the saved state. */
.fav-heart.is-on svg { color: #fff; stroke: #fff; fill: currentColor; }
.fav-heart:hover { background: #fff; color: #e6003a; }
.fav-heart.is-on { background: #e6003a; color: #fff; }

/* The reference line is desktop-only. */
/* Reserved / under offer. Sold and withdrawn never reach the listing, so these two are
   the only states a buyer can see. */
.status-flag {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    padding: 5px 11px; border-radius: 5px;
    background: #fff; color: #111827;
    font-size: 13px; font-weight: 800; letter-spacing: .01em;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .18);
}
/* One flag per state that changes what a buyer can do. Available and withdrawn never
   show one: available is the default and withdrawn is not on the page at all. */
/* No colour rule on the edge: the word itself carries the state, and a coloured bar next to
   it was decoration on a label that only ever has three values. */
/* The mini-card is small, so its flag is too. */
.mini-card .status-flag { top: 5px; right: 5px; padding: 3px 8px; font-size: 11.5px; }

.vehicle .ref { display: none; }
@media (min-width: 1024px) {
    .vehicle .ref {
        display: block; margin-top: 8px; padding: 6px; text-align: center;
        background: #ececec; color: #111827; font-size: 14px; font-weight: 500;
        overflow-wrap: anywhere; line-height: 1.35;
    }
}

/* ------------------------------------------------------- the middle column */

.vehicle .title { font-size: 13px; line-height: 1.3; font-weight: 700; }
@media (min-width: 640px) { .vehicle .title { font-size: 15px; } }
@media (min-width: 1024px) { .vehicle .title { font-size: 20px; } }
@media (min-width: 1200px) { .vehicle .title { font-size: 22px; } }
/* 700 on the anchor, not only on .title: the link is what holds the text, and it was
   setting 500 back over the heading's weight. */
.vehicle .title a { color: #1565c0; font-weight: 700; }
.vehicle .title a:hover { color: #0d47a1; text-decoration: underline; }

/* The specification block, and it is the ONLY table of facts on a card.
 *
 * `.quick` used to sit above it as a loose strip holding Mileage, Year, Engine, Trans and
 * Location, while this held codes — so the values a buyer decides on and the reference
 * numbers were in two different places, in two different visual languages. They are one
 * grid now, ordered the way a buyer reads: what it is, then what it has done, then how it
 * is specified.
 *
 * Six pairs, two rows of three on a desktop and three rows of two on a phone. The height is
 * what matters, because this repeats twenty-five times down a result page, so the cut is at
 * six and the fields most likely to be empty are ordered last — a truck with no engine code
 * recorded still fills every cell. The rest is on the vehicle page. */

.vehicle .equip { display: none; }
@media (min-width: 1024px) { .vehicle .equip { display: block; margin-top: 6px; color: #374151; font-size: 12px; } }

/* -------------------------------------------------------- the price column */

.vehicle .buy { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
@media (min-width: 1024px) {
    .vehicle     .buy {
        flex-direction: column; align-items: stretch; justify-content: center;
        border-left: 1px solid #eee; padding-left: 10px;
    }
}
.vehicle .buy .line { display: flex; align-items: baseline; gap: 8px; }
/* In the card the price has a column of its own again, so it goes back to being the loudest
   thing on the row: label left, figure right, and the figure red and large. */
@media (min-width: 1024px) { .vehicle .buy .line { justify-content: space-between; } }
/* The label only. It used to be `.line span`, which is a selector that also matches
   `.amount` — and being one type selector more specific than `.vehicle .buy .amount` it
   won, so the price was painted 13px grey. The one number a buyer is looking for was the
   quietest thing on the card, and had been for as long as the rule existed. */
.vehicle .buy .line .label { color: #8a8a8a; font-size: 13px; }
/*
 * Big, and red — but one step down from where it was, because the column it sits in lost 20%
 * of its width to give the specification grid the room it needed.
 *
 * The label and the figure share one line with `space-between`, so what has to fit is
 * "Price" (30px at 13px) + the 8px gap + the figure. In the narrowed column that is 150px at
 * 1024-1199 and 166px at 1200 and up, and the widest figure this card should ever print —
 * "$123,456", measured in Liberation Sans, which is Arial to the pixel — is 108px at 26px and
 * 117px at 28px. Bigger than that and the figure spills past the card's right edge, which the
 * card's own `overflow: hidden` turns into a price with its last digits missing. A price that
 * is quietly wrong is the one thing on this card that must never happen.
 *
 * 28px against 12.5px grid text is still more than twice the size of anything beside it, in
 * red at weight 700. It is the loudest thing on the row by a distance; it is just no longer
 * loud enough to break the row.
 */
.vehicle .buy .line .amount { color: #d32f2f; font-size: 20px; font-weight: 700; }
@media (min-width: 640px) { .vehicle .buy .line .amount { font-size: 24px; } }
@media (min-width: 1024px) { .vehicle .buy .line .amount { font-size: 26px; } }
@media (min-width: 1200px) { .vehicle .buy .line .amount { font-size: 28px; } }
.vehicle .buy .discount { display: none; }
@media (min-width: 1024px) { .vehicle .buy .discount { display: block; text-align: right; color: #6b7280; font-size: 12px; } }

/* Two buttons, one shown at a time. On a phone the card behaves like the small cards in
   the rails — price and a red Details link — and from 1024px it asks for the inquiry,
   which is what the whole card is for. */
.btn-inquiry, .btn-details {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 5px 11px; border: 0; border-radius: 999px;
    background: #e6003a; color: #fff; font-size: 12px; font-weight: 500;
    letter-spacing: .02em; transition: background .15s;
}
.btn-inquiry:hover, .btn-details:hover { background: #c2002f; color: #fff; }
.btn-inquiry svg, .btn-details svg { width: 14px; height: 14px; }
.btn-inquiry { display: none; }
@media (min-width: 1024px) {
    .btn-inquiry { display: inline-flex; width: 100%; margin-top: 8px; padding: 9px 14px; font-size: 14px; }
    .btn-details { display: none; }
}
.vehicle .buy .more { display: none; }

.photo-missing {
    display: flex; align-items: center; justify-content: center;
    width: 100%; aspect-ratio: 4 / 3; background: #f3f4f6;
    color: #d1d5db; border-radius: 4px;
}

/* ============================================================== browse col */

/* site.css has .sidebar-section h3 and .sidebar-section a:hover for this column, but the
   markup never carried `sidebar-section` — the class here is `browse-section`, so those two
   live-site rules have been matching nothing since the column was written. The underline is
   set out below with the same numbers instead of adding a second class name for it.

   Note there is deliberately no card here: on the live site this column is plain content on
   the page, not a white panel. */
.browse-section { padding: 0 12px 14px; }

/* The section headings sat in the same weight and colour as the links beneath them, so a
   column of eight filters read as one undifferentiated list. A tinted bar separates them
   without a rule line, and the tint is the sidebar's own grey rather than a new colour. */
.browse-section h3 {
    margin: 0 0 8px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #1f2937;
    background: #eef2f7;
    border-radius: 5px;
}
@media (min-width: 640px) { .browse-section { padding: 0 16px 16px; } }

.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; color: #374151; }
@media (min-width: 768px) { .brand-grid { display: block; } }
.brand-grid li { display: flex; flex-direction: column; align-items: center; padding: 8px 0; }
@media (min-width: 768px) { .brand-grid li { display: block; } }
.brand-grid a {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; transition: color .2s;
}
@media (min-width: 768px) {
    .brand-grid a { flex-direction: row; gap: 8px; text-align: left; }
}
/* One box for every mark. The files are normalised to a 240x100 canvas by
   tools/normalize-logos.php, so contain gives each logo the same height and keeps a flat one
   (Isuzu) from being stretched to look like a tall one (Mercedes). */
.brand-grid img { width: 44px; height: 26px; object-fit: contain; flex: none; margin-bottom: 4px; }
@media (min-width: 768px) { .brand-grid img { width: 42px; height: 24px; margin-bottom: 0; } }
.brand-grid span { font-size: 12px; }
@media (min-width: 768px) { .brand-grid span { font-size: 16px; } }
/* A make with no logo file. The live site shows a broken image here; a letter reads
   better and costs nothing. */
.brand-grid .initial {
    display: flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; margin-bottom: 4px; border-radius: 50%;
    background: #f3f4f6; border: 1px solid #e5e7eb;
    font-size: 13px; font-weight: 700; color: #6b7280;
}
@media (min-width: 768px) {
    .brand-grid .initial { width: 24px; height: 24px; margin-bottom: 0; font-size: 11px; }
}
/* [hidden] is only `display: none` from the browser's own stylesheet, so any author rule
   with a display of its own outranks it — and this one sets `display: flex` above. The
   letter would show next to every logo without this line. */
.brand-grid .initial[hidden] { display: none; }

.tick-list { display: flex; flex-direction: column; gap: 8px; color: #374151; }
.tick-list a { display: flex; align-items: center; justify-content: space-between; transition: color .2s; }
.tick-list .left { display: flex; align-items: center; gap: 8px; }
/* The plain variant: navigation rather than filters, so no chip, no tick, and the whole
   row is the target. Used by the category list in the browse column. */
.tick-list.links { gap: 0; }
.tick-list.links a { display: block; padding: 6px 0; font-size: 13px; }
.tick-list.links a:hover { color: #e6003a; }
.tick-chip {
    width: 28px; height: 28px; flex: none; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(to bottom right, #f9fafb, #f3f4f6);
    border: 1px solid #e5e7eb; box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
    color: #374151; font-weight: 500; font-size: 14px;
}

/* ============================================================== card grid

   The compact card, used in three places: the saved vehicles page, "Recently checked",
   and "Recommended for you". One component, so the three cannot drift apart.

   The full .vehicle card above is right for a search result — it has room for a
   specification table and a price column. It is the wrong shape for a rail of eight
   vehicles under a listing, which is what this is for. */

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
@media (min-width: 640px)  { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

.mini-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid #ececec; border-radius: 6px;
    overflow: hidden;
}
.mini-card .photo { position: relative; display: block; }
.mini-card .photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #f3f4f6; }
.mini-card .photo .photo-missing { aspect-ratio: 4 / 3; }
.mini-card .body { display: flex; flex-direction: column; flex: 1; padding: 10px; }
.mini-card h3 { font-size: 14px; font-weight: 500; line-height: 1.3; }
.mini-card h3 a:hover { color: #1565c0; text-decoration: underline; }
.mini-card .meta { margin-top: 6px; font-size: 12px; color: #6b7280; }
.mini-card .foot {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-top: auto; padding-top: 10px;
}
/* Red, like the figure on a search result. It was near-black, which made the one number
   a buyer is looking for the quietest thing on the card. */
.mini-card .price { font-size: 17px; font-weight: 700; color: #d32f2f; }
.mini-card .btn-details { padding: 7px 14px; font-size: 12px; }

/* Removing from the saved list, on the card itself. */
.mini-card .remove {
    /* A word under the card, not a second button competing with Details. It was a full-width
       bordered block, which made "remove" look like the main action on a saved car. */
    margin-top: 4px; padding: 2px 0; width: auto;
    background: none; border: 0;
    color: #9ca3af; font-size: 12px; font-weight: 500;
    text-decoration: underline; text-underline-offset: 2px; transition: color .15s;
}
.mini-card .remove:hover { color: #e6003a; }

/* A phone keeps the card, upright.
   It used to turn on its side here — picture left, text right — to save height. That made a
   thumbnail row out of a product card: the photograph shrunk to a stamp and the price and
   button had to fight for the remaining 60%. A card on a phone is now the same card as on a
   desktop, full width, picture on top; the rail simply shows fewer of them. */
@media (max-width: 639px) {
    /* Two across, as on the shopfront this replaces. A single full-width card per vehicle
       made the rail a page of its own; two keep the picture big enough to read and the
       section's end visible. */
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .mini-card .photo img { aspect-ratio: 4 / 3; }
    .mini-card .body { padding: 8px 10px 10px; }
    .mini-card h3 { font-size: 12.5px; line-height: 1.3; }
    .mini-card .meta { font-size: 11px; margin-top: 3px; }
    .mini-card .price { font-size: 14px; }
    /* The card is the link. A 9px-tall button inside a 160px card was a second tap target
       competing with the photograph for the same job. */
    .mini-card .btn-details { display: none; }
    .mini-card .remove { width: auto; padding: 5px 9px; font-size: 11px; }
    /* Four cards is a rail: two rows. Eight is a page of its own, and the section under it
       disappears below the fold — which is what happened before cards replaced rows. */
    .home-rail .card-grid > *:nth-child(n + 5) { display: none; }
}
/* The price may wrap before the button does, rather than pushing it out of the card. */
.mini-card .foot { flex-wrap: wrap; row-gap: 6px; }
.mini-card .price { min-width: 0; }
.mini-card .btn-details { flex: 0 0 auto; white-space: nowrap; }

/* ===================================================== mobile disclosures

   On a phone the filter form and the browse column are most of a screen before the first
   vehicle. Both fold away behind a button.

   Progressive: nothing is hidden in the markup. The script adds `hidden` on load only
   below 1024px, so with JavaScript off every filter is still reachable — merely longer —
   instead of being behind a button that does nothing. */

/* Full width in BOTH directions of the flex row: on a phone the row is a column and this
   is its first item, on a desktop it is display:none. It must never take a share of the
   20% / 80% split — that mistake is what broke the listing page. */
.disclosure { display: flex; gap: 8px; margin-bottom: 10px; width: 100%; flex: none; }
.disclosure button {
    flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px 12px; border: 1px solid #d1d5db; border-radius: 6px;
    background: #fff; color: #374151; font-size: 14px; font-weight: 600;
}
.disclosure button[aria-expanded="true"] { border-color: #e6003a; color: #e6003a; }
.disclosure svg { width: 17px; height: 17px; }
.disclosure .caret { transition: transform .18s; }
.disclosure button[aria-expanded="true"] .caret { transform: rotate(180deg); }

@media (min-width: 1024px) {
    /* Nothing to disclose: both are shown by CSS and the buttons are gone. */
    .disclosure { display: none; }
    [data-filter-body][hidden], [data-browse-body][hidden] { display: block !important; }
}

/* -------------------------------------------------- the blocks, and the space between

   These were <details> elements with a chevron in the summary — a column of fold-outs. The
   chevron is gone and every block is open: the lists are four short ones, and a closed list
   is a list a visitor cannot see their make in without opening it first. */

/* Space between the blocks, which the Tailwind space-y-4 on the <aside> used to provide and
   which no longer exists. */
.browse-section + .browse-section { margin-top: 16px; }

/* The browse lists, once the script has moved them into the drawer on a phone. They are
   a full-width block there, not the 20% column they are on a desktop. */
.drawer-browse:not(:empty) { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); }
.drawer-browse aside { width: 100% !important; margin: 0; }
.drawer-browse .browse-section { padding: 0; }
.drawer-browse .browse-section + .browse-section { margin-top: 12px; }
.drawer-browse .browse-section h3 { color: #e5e7eb; border-bottom-color: rgba(255, 255, 255, .15); }
.drawer-browse dl, .drawer-browse ul { margin: 0; }
.drawer-browse .brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.drawer-browse .brand-grid li { display: flex; }
.drawer-browse .tick-list li a,
.drawer-browse .brand-grid li a { color: #cbd5e1; }
.drawer-browse .tick-list li a:hover,
.drawer-browse .brand-grid li a:hover { color: #fff; }

/* ================================================================= pager */

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 20px; font-size: 13px; }
.pager .pg {
    min-width: 34px; padding: 7px 10px; text-align: center;
    background: #fff; border: 1px solid #d1d5db; border-radius: 6px; color: #374151;
}
.pager a.pg:hover { border-color: #e6003a; color: #e6003a; }
.pager .is-on { background: #e6003a; border-color: #e6003a; color: #fff; font-weight: 700; }
.pager .pg-info { margin-left: auto; color: #6b7280; font-size: 12px; }

/* ========================================================== empty state */

.empty { padding: 80px 16px; background: #fff; border: 1px solid #f3f4f6; border-radius: 12px; margin-top: 16px; }
.empty-inner { max-width: 448px; margin: 0 auto; text-align: center; }
/* 448px is right for an apology. It is not right for the request form, which lives in the
   same block when nothing matched. */
.empty-inner.is-request { max-width: 720px; }
.empty .badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 96px; height: 96px; border-radius: 50%; background: #f9fafb; margin-bottom: 24px;
    color: #9ca3af;
}
.empty h2 { font-size: 30px; font-weight: 500; color: #111827; margin-bottom: 8px; }
.empty p { font-size: 18px; color: #6b7280; margin-bottom: 32px; }

/* ========================================================== vehicle page */

.vehicle-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 1024px) {
    /*
     * TWO THIRDS AND ONE — but a true two thirds this time.
     *
     * The photo card measured 1074px wide on a 1440 screen, which is what "too wide" meant: the
     * min-width rule below explains why the column could not shrink, and the picture was being
     * stretched past the photo's own 1200px to fill it. Opening the viewer then showed the same
     * photo at its natural width, smaller than the card had just made it look.
     *
     * With the columns sized properly the card is a quarter narrower (~768px of picture), so the
     * photograph is close to 1:1 and the viewer is genuinely an enlargement. The right column
     * gains the room, which the price table can use — it is a row of figures, not a caption.
     */
    .vehicle-grid { grid-template-columns: 2fr 1fr; gap: 32px; }

    /*
     * THE COLUMN COULD NOT SHRINK, SO THE PAGE PUSHED SIDEWAYS.
     *
     * A `1fr` track has an automatic minimum of min-content, and a percentage-width <img>
     * contributes its INTRINSIC width to that under min-content sizing. The gallery photo is
     * 1200px wide, so the first track refused to go below ~1106, the second was squeezed to
     * 310, and the pair came to 1448 inside a 1232 grid — the calculator was pushed off the
     * right edge and the document scrolled sideways. Nothing looked wrong enough to name it;
     * it just read as "the card is too wide".
     *
     * `min-width: 0` on the two columns lets the tracks share the width they are given. It is
     * scoped to the columns: the spec grid inside has its own min-width rules and must keep
     * them (see dl.spec-grid).
     */
    .vehicle-grid > * { min-width: 0; }
}

.card {
    padding: 16px; margin-bottom: 16px;
    background: #fff; border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}
.card > h2 { font-size: 18px; font-weight: 500; color: #111827; margin-bottom: 12px; }

.gallery-frame { position: relative; }

.gallery-main {
    /*
     * THE FRAME IS THE PHOTO'S OWN SHAPE. `max-height: 470px` used to clamp a 4:3 picture into a
     * wider box, and `object-fit: contain` filled the leftover width with the grey background —
     * that is the grey down each side. The box is 4:3 and covered instead, so nothing is left
     * over and a little sky and road is cropped rather than the car being framed in grey.
     */
    display: block; width: 100%; margin: 0; aspect-ratio: 4 / 3; height: auto;
    object-fit: cover; border-radius: 8px; background: #f3f4f6;
}
/* Full width of the card at every size. It was inset to 80% from 640px up, which left a
   band of grey each side of a picture that is the whole reason the page exists. */
/* The picture is a button: clicking it opens the lightbox at full size. */
.gallery-open { display: block; width: 100%; text-align: center; border: 0; padding: 0; background: none; cursor: zoom-in; }

/* The two chevrons on the picture. They sit INSIDE the photo, so on a wide screen they are
   offset by the 10% the picture is inset by — otherwise they would float over the card's
   padding instead of over the car. */
/* Bare white chevrons over the picture, the way the reference site draws them: no circle,
   no fill, just a glyph with a soft shadow so a white arrow still reads on a white car. */
.gallery-step {
    position: absolute; top: 50%; z-index: 3;
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 72px; padding: 0;
    transform: translateY(-50%);
    border: 0; background: none; color: #fff;
    font-size: 52px; line-height: 1;
    font-family: Inter, -apple-system, Roboto, sans-serif; font-weight: 400;
    text-shadow: 0 1px 6px rgba(15, 23, 42, .55), 0 0 2px rgba(15, 23, 42, .4);
    cursor: pointer; transition: transform .12s;
}
.gallery-step:hover { transform: translateY(-50%) scale(1.08); }
.gallery-step.prev { left: 4px; }
.gallery-step.next { right: 4px; }
@media (min-width: 640px) {
    .gallery-step { font-size: 62px; }
    .gallery-step.prev { left: 14px; }
    .gallery-step.next { right: 14px; }
}

/* The "1 / 18" chip, bottom-left on the photo. */
/* Thumbnails: a wrapping grid, as on the reference site. Eighteen photos wrap into
   three short rows; they used to be a single row that scrolled, with a second pair of
   arrows under the picture that read as stray buttons on a one-photo car. */
.thumbs {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px; margin-top: 10px;
}
@media (min-width: 640px) { .thumbs { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.thumbs img {
    width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
    border-radius: 4px; cursor: pointer; border: 2px solid transparent;
}
.thumbs img:hover, .thumbs img.is-on { border-color: #e6003a; }
.thumbs.is-single { display: none; }

/* The lightbox. Uses the <dialog> element, so Escape closes it, the backdrop is the
   browser's own, and focus is trapped without a line of JavaScript for any of it. */
.lightbox {
    width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh;
    margin: 0; padding: 0; border: 0; background: rgba(9, 12, 20, .94);
}
.lightbox::backdrop { background: rgba(9, 12, 20, .94); }
.lightbox-inner { display: flex; flex-direction: column; height: 100%; }
.lightbox-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; color: #fff; font-size: 14px;
}
.lightbox-bar button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 50%; background: transparent; color: #fff; font-size: 18px;
}
.lightbox-bar button:hover { background: rgba(255, 255, 255, .12); }
.lightbox-stage {
    display: flex; flex: 1; align-items: center; justify-content: center;
    gap: 12px; min-height: 0; padding: 0 16px 20px;
}
/* Fill the stage rather than sit at the photo's natural size. With only `max-*` the image is
   never scaled UP, so a feed photo smaller than the window opened to a smaller picture than
   the card it came from. `contain` keeps the shape; this makes the viewer at least as large as
   whatever is on the page behind it. */
.lightbox-stage img { width: 100%; height: 100%; object-fit: contain; }
.lightbox-nav {
    /* The bar's own buttons are circles; these are the arrows over the picture, and they were
       left at the browser's default — a small white box with a black chevron, which read as an
       unstyled form control. Bare white glyph, like the ones on the gallery itself. */
    width: 56px; height: 56px; flex: none;
    border: 0; background: transparent; color: #fff;
    font-size: 34px; line-height: 1; cursor: pointer; opacity: .75;
    transition: opacity .15s ease, transform .15s ease;
}
.lightbox-nav:hover { opacity: 1; transform: scale(1.08); }
.lightbox-nav:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 50%; }
.thumbs {
    /* position: relative so a thumbnail's offsetLeft is measured from the strip, which is
       what keepInStrip() in app.js needs to centre it. Without it the offsets come from the
       card above and the strip scrolls to the wrong place. */
    position: relative;
    display: flex; flex-wrap: nowrap; gap: 6px; margin-top: 0;
    flex: 1 1 auto; min-width: 0;
    overflow-x: auto; overflow-y: hidden;
    scroll-behavior: smooth; scroll-snap-type: x proximity;
    /* Firefox: thin rather than gone — a strip with no bar at all reads as the whole set. */
    scrollbar-width: thin; padding-bottom: 2px;
}
.thumbs img {
    flex: 0 0 84px; scroll-snap-align: start;
    width: 84px; height: 63px; object-fit: cover; border-radius: 6px;
    cursor: pointer; border: 2px solid transparent;
}
.thumbs img:hover, .thumbs img.is-on { border-color: #e6003a; }
/* A car with one photo needs no strip at all; the picture is already above it. */
.thumbs.is-single { display: none; }


/* The photo counter and the favourite button share a line under the photo. */
.gallery-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
/* The counter. It borrowed a class called `gallery-count`, which was also carrying the small
   print under the inquiry form — a class named for the gallery, styling form notes. */
.photo-count { font-size: 12px; color: #6b7280; }
/* A quiet line of small print under a form: what happens next, or what a button does. */
.note-sm { margin-top: 8px; font-size: 12px; color: #6b7280; }

.btn-fav {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 999px;
    background: #fff; border: 1px solid #d1d5db; color: #374151;
    font-size: 12px; font-weight: 600; color: #e6003a; transition: all .15s;
}
.btn-fav svg { width: 15px; height: 15px; }
.btn-fav:hover { border-color: #e6003a; color: #e6003a; }
.btn-fav.is-on { background: #e6003a; border-color: #e6003a; color: #fff; }
.btn-fav.is-on:hover { background: #c2002f; border-color: #c2002f; color: #fff; }

/* Two specification grids side by side from 1024px. One narrow column of eleven rows is
   a lot of scrolling for something that fits beside itself. */
.spec-2col { display: grid; grid-template-columns: 1fr; gap: 0 32px; }
@media (min-width: 1024px) { .spec-2col { grid-template-columns: 1fr 1fr; } }

table.spec { width: 100%; border-collapse: collapse; font-size: 13px; }
table.spec th, table.spec td { padding: 8px 10px; border-bottom: 1px solid #eef0f3; text-align: left; vertical-align: top; }
/* The label cells are grey, so the eye reads down the values. */
table.spec th { width: 44%; font-weight: 400; color: #6b7280; background: #f8fafc; border-right: 1px solid #eef0f3; }
table.spec td { font-weight: 500; color: #374151; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }

.btn {
    display: inline-block; padding: 9px 18px; border: 0; border-radius: 999px;
    background: #e6003a; color: #fff; font-size: 14px; font-weight: 500;
    text-align: center; transition: background-color .15s;
}
.btn:hover { background: #c2002f; }
.btn-block { display: block; width: 100%; }
/* The two buttons that send the inquiry, one size down from the rest. At full size with an
   icon they were the heaviest thing in the column, and the labels say what they do. */
.btn-compact { padding: 7px 14px; font-size: 13px; }

/* ================================================ total price calculator

   Two blocks, as the supplied design has them: what the vehicle costs, then what it
   costs delivered — and the freight comes from your own get_ports.php, which is the only
   thing that knows your freight rates. */

/* Compact: 12px padding, and the internal rhythm pulled in with it.
   It held the price, the calculator, the checks, the breakdown, the total and the form, all at
   16px padding with 14-16px between every part, which added up to a column of air. The padding
   is smaller and so is every gap inside it. */
.calc-card { padding: 12px; margin-bottom: 10px; background: #fff; border-radius: 8px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1); }

/* The rules that drew the car price as a card of its own are gone with the card — the
   figure is a `.bd-car` row at the top of the calculator card now, and `.price-block-held`
   below is all that is left of the held-price treatment. */

.calc-card > h2 {
    /* Black, not red. Red is the card's accent and it belongs on the numbers it is pricing —
       the car price and the total. A red heading over them made every value compete with the
       title, and on a card that is mostly figures the title is the least important line. */
    display: flex; align-items: center; gap: 8px;
    font-size: 19px; font-weight: 600; color: #111827; margin-bottom: 12px;
}
.calc-card > h2 svg { color: #374151; }
.calc-card .hint { color: #9ca3af; }

.calc-grid { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 6px 10px; align-items: center; }
.calc-grid > label { color: #374151; font-size: 13px; }
.calc-grid select {
    width: 100%; padding: 6px 8px; border: 1px solid #d1d5db; border-radius: 6px;
    background: #fff; font-size: 13px;
}
.calc-checks { display: flex; gap: 16px; margin-top: 8px; margin-left: 98px; }
.calc-checks label { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #374151; cursor: pointer; }
.calc-checks input { width: 15px; height: 15px; accent-color: #e6003a; }
/* "required here", beside the Inspection label. Beside it rather than a tooltip, because it
   has to be readable BEFORE the box is touched — the point is that the visitor never tries to
   remove it. */
.calc-checks .req-note { margin-left: 1px; font-size: 11px; color: #6b7280; }

.total-line { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 9px; padding-top: 8px; border-top: 1px solid #f3f4f6; }
.total-line .lab { color: #374151; font-size: 16px; font-weight: 500; }
.total-line .sub { display: block; text-align: right; font-size: 12px; color: #6b7280; }
/* The one figure the whole card exists to produce. Bold, so it reads as the answer rather
   than as the last row of a table. */
.total-line .val { color: #e6003a; font-size: 30px; font-weight: 700; }
.total-line .val.ask { font-size: 22px; color: #6b7280; }

/* ========================================================== inquiry form */

.inquiry-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.inquiry-head h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 500; color: #111827; }
.inquiry-head h2 svg { color: #e6003a; }
.inquiry-head .req { font-size: 12px; color: #6b7280; }
.inquiry-head .req b { color: #e6003a; }

/* ========================================================== inquiry form */

.inquiry .field {
    display: grid; grid-template-columns: 120px minmax(0, 1fr);
    gap: 8px 12px; align-items: center; margin-bottom: 8px;
    font-size: 14px; color: #374151;
}
.inquiry .field > span b { color: #e6003a; }
.inquiry .field input, .inquiry .field select, .inquiry .field textarea {
    width: 100%; padding: 10px 11px;
    border: 1px solid #d1d5db; border-radius: 6px; background: #fff;
    font-size: 14px; color: #111827;
}
.inquiry .field.full { grid-template-columns: 1fr; }
.inquiry .field.full > span { display: none; }
/* The agreement boxes. The terms one carries the tinted background the design gives it,
   because it is the one that gates the button. */
.inquiry .agree { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: 13px; }
.inquiry .agree input { width: 16px; height: 16px; flex: none; margin-top: 2px; accent-color: #e6003a; }
.inquiry .agree.terms { padding: 10px; border: 1px solid #fecaca; background: #fef2f2; border-radius: 4px; }
.inquiry .agree a { color: #1d4ed8; text-decoration: underline; }
.inquiry .agree .must { color: #e6003a; font-weight: 700; }
.inquiry .field input:focus, .inquiry .field select:focus, .inquiry .field textarea:focus {
    outline: none; border-color: #ef4444; box-shadow: 0 0 0 2px rgba(239, 68, 68, .3);
}
.inquiry .field textarea { min-height: 96px; resize: vertical; }
/* Off-screen rather than display:none: a bot that reads the DOM skips hidden inputs,
   but a person never sees this one. */
.inquiry .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================== recommended */

.recommended { margin-top: 32px; }
.recommended > h2 { font-size: 18px; font-weight: 500; color: #111827; margin-bottom: 12px; }

/* ================================================================= footer

   The three-column footer the site has always had: menu, hours, contact. Laid out with
   grid and gaps rather than the utility classes the old page carried, but the same three
   columns, the same order, and the same legal line at the bottom. */

.site-footer { margin-top: 28px; background: linear-gradient(to bottom, #1f2937, #111827); color: #e5e7eb; }
.foot-inner { padding: 40px 24px 32px; }

/* Brand and social marks on one line, with the rule under them. */
.foot-top { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
@media (min-width: 700px) { .foot-top { flex-direction: row; align-items: center; justify-content: space-between; } }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.foot-brand .foot-logo { display: block; height: 44px; width: auto; filter: brightness(0) invert(1); }
.foot-brand p { font-size: 14px; color: #d1d5db; }
.foot-brand .foot-tagline { font-style: italic; letter-spacing: .02em; color: #b9c1cd; }
.foot-social { display: flex; gap: 26px; }
.foot-social a { display: block; color: #e5e7eb; transition: color .25s, transform .25s; }
.foot-social a:hover { color: #fff; transform: scale(1.08); }

.site-footer > .foot-inner > hr { margin: 28px 0; border: 0; border-top: 1px solid #374151; }

.foot-cols { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 780px) { .foot-cols { grid-template-columns: 1.35fr .9fr 1fr; gap: 40px; } }
.foot-cols h3 { margin-bottom: 18px; font-size: 18px; font-weight: 700; color: #fff; }

/* Quick Menu keeps its two sub-columns — eight links in one list is a column of text. */
.foot-menu-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.foot-menu li { margin-bottom: 10px; }
.foot-menu a { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #d1d5db; }
.foot-menu a::before { content: ''; width: 6px; height: 6px; flex: none; border-radius: 50%; background: #fff; transition: transform .25s; }
.foot-menu a:hover { color: #fff; }
.foot-menu a:hover::before { transform: scale(1.5); }

/* Hours and contact are the same object: a muted label and a value, in a tinted row. */
.foot-hours, .foot-contact { display: flex; flex-direction: column; gap: 8px; max-width: 300px; }
.foot-hours li, .foot-contact li {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 9px 12px; border-radius: 6px; background: rgba(17, 24, 39, .45);
    font-size: 13.5px; color: #d1d5db;
}
.foot-hours b { font-weight: 600; color: #fff; }
.foot-hours b.closed { color: #f87171; }
.foot-contact li { justify-content: flex-start; line-height: 1.45; }
.foot-contact a { color: #fff; }
.foot-contact a:hover { color: #86efac; }

/* The legal line: its own strip, as on the old site, because it is not part of the menu. */
.foot-note {
    padding: 16px 24px; border-top: 1px solid #374151; background: rgba(17, 24, 39, .9);
    font-size: 12px; line-height: 1.6; color: #9ca3af; text-align: center;
}

/* ============================================================== messages */

.notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.notice-ok    { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.notice-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

/* =========================================== price held / request similar

   A vehicle in one of three states — reserved, under offer, sold — keeps its place in
   the results, but the price comes off. It is mid-negotiation in the first two cases and
   no longer ours to publish in the third. What replaces the figure is the only useful
   thing left to do with the space: ask about the next one like it.

   So these rules do two jobs: they take the red number away, and they make the
   replacement read as a deliberate answer rather than a missing value. */

/* On a search result, the whole price column stops being a price column. */
.vehicle .buy.buy-noprice { gap: 8px; }
.vehicle .price-held {
    margin: 0;
    /* The status is the answer in this column, so it is set at the size of a price rather
       than at the size of a label; the explained-why line under it stays small. */
    color: #111827; font-size: 16px; font-weight: 700;
    text-align: center; line-height: 1.35;
    letter-spacing: .01em;
}
@media (min-width: 1024px) { .vehicle .price-held { text-align: right; padding-left: 14px; } }
.vehicle .price-held .why {
    display: block;
    /* The state replaces the price, so it is set at the weight and size of a price rather
       than as a caption under one: 11px grey uppercase read as a footnote to nothing. */
    color: #14204a; font-size: 15px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .03em;
}

/* On a mini-card the room is much tighter, so "On request" stands in for the number and
   keeps the red. It is the same fact at a smaller size, not a different message. */
.mini-card .price.price-held { color: #6b7280; font-size: 14px; font-weight: 700; }

/* On the vehicle page, where the price block sits above the calculator. */
.price-block-held { text-align: center; }
.price-block-held .held-why {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    margin: 0 0 14px;
}
/* The flag is absolutely positioned on a photo; here it is inline, so it has to give up
   the positioning it inherits. */
.price-block-held .held-why .status-flag { position: static; top: auto; right: auto; }
.price-block-held .held-why span:last-child { color: #6b7280; font-size: 13px; }

/* What the column says instead of a calculator, and the two buttons that replace it. */
.price-block-held .held-similar {
    margin: 0 0 14px; color: #4b5563; font-size: 13px; line-height: 1.5;
}
/* The button says what it does. It stays red like every other call to action, because
   asking about a similar vehicle is a step forward, not an apology. */
.price-block-held .btn { width: 100%; justify-content: center; }
.price-block-held .btn + .btn { margin-top: 8px; }

/* A button with a border instead of a fill, for the second action in a column where the
   filled one is the one we want pressed. */
.btn-outline {
    background: #fff; color: #111827;
    border: 1px solid #d1d5db;
}
.btn-outline:hover { background: #f9fafb; color: #111827; border-color: #9ca3af; }

/* A sentence of explanation under a form heading. */
.calc-lede { margin: -4px 0 12px; color: #4b5563; font-size: 13px; line-height: 1.5; }

/* ================================================= the saved-list notice

   Shown when a shortlist entry no longer matches a vehicle in stock. It is a card, not a
   red alert: nothing is broken, a lot sold, and the visitor needs to know which one. */

.note-card {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px; padding: 14px 16px;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px;
}
.note-card p { margin: 0; max-width: 62ch; color: #78350f; font-size: 13px; line-height: 1.5; }
.note-card strong { color: #451a03; }

.btn-quiet {
    padding: 8px 16px; border: 1px solid #d1d5db; border-radius: 999px;
    background: #fff; color: #374151; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: background .15s, border-color .15s;
}
.btn-quiet:hover { background: #f9fafb; border-color: #9ca3af; }

/* The browse column is a menu, not a filter: its rows start a new search and never carry
   a selected state, so there is nothing to mark. Kept as a note because the red pill and
   the red rule were here for a long time and their absence is deliberate. */

/* =================================== the calculator's own breakdown

   Three lines under the port dropdowns so the total can be checked rather than
   trusted. "Freight & destination fees" is one line because that is how the port
   script answers — a single per-port figure that already bundles freight, inspection
   and the destination charges. Splitting it here would be inventing detail the script
   does not return. */

/* One row of the arithmetic: a label on the left, a figure on the right.
 *
 * Two of these are on a vehicle page — the car price at the top of the card, the freight
 * under the port dropdowns — and they have to look like the same kind of row, because they
 * are two parts of one sum and a visitor checks them against each other. They are not
 * scoped to the breakdown any more; that is where the freight lives, and the car price is
 * not in it. */
.bd {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 3px 0;
}
.bd .lab { color: #6b7280; font-size: 13px; }
/* The little "FOB Japan" under "Car price". `.sub` is defined for the total line, which is
   right-aligned and sits under a much bigger figure; in one of these rows it belongs under
   its label, small and quiet. */
.bd .lab .sub { display: block; font-size: 11px; font-weight: 400; color: #9ca3af; }
.bd .val {
    color: #374151; font-size: 13px; font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* The car price: the constant in the sum, and the figure a buyer compares against other
 * sites. Bigger and red, where the freight under it is grey — and the rule underneath does
 * the job the edge of its own card used to do. */
.bd-car { padding: 0 0 10px; margin-bottom: 10px; border-bottom: 1px solid #f3f4f6; }
.bd-car .lab { color: #374151; font-weight: 700; font-size: 13px; }
.bd-car .val { color: #e6003a; font-size: 24px; font-weight: 500; letter-spacing: -.5px; }

/* .calc-breakdown was here, holding the one "Freight & destination fees" row under the
   port box. Both the row and the rule are gone: the row only restated the gap between the
   car price and the total, and read as a dash until a port was chosen. */

/* ============================================== the WhatsApp enquiry button

   Green, and the colour is the point: it is the one button on the page that leaves the
   site, and a customer who has used the site for five minutes knows what green means
   before they read the label.

   Sits directly under FREE INQUIRY, same width, so the two read as one choice — fill the
   form, or send a message. WhatsApp is not a secondary action here; for a used-vehicle
   buyer it is usually the faster one. */

.btn-whatsapp {
    margin-top: 10px;
    background: #25d366;                /* the WhatsApp brand green */
    border-color: #1da851;
    color: #fff;
}
.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
    background: #1da851;
    border-color: #178a41;
    color: #fff;
}

/* ================================================== no results, and the request

   The empty page used to be an apology and a Reset button. It is now the second-best place
   to catch a lead after the vehicle page, so it carries three things: what is still being
   filtered by, a request form, and WhatsApp. The form is deliberately short — four fields
   and a box — because everything about this page is a visitor who has already been told no
   once. */

.empty-filters {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
    margin-bottom: 24px;
    font-size: 13px; color: #6b7280;
}
.filter-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px;
    border: 1px solid #e5e7eb; border-radius: 999px;
    background: #f9fafb; color: #374151;
    font-size: 12px; font-weight: 600; text-decoration: none;
}
.filter-chip:hover, .filter-chip:focus-visible { border-color: #d1d5db; background: #f3f4f6; }
.filter-chip span { color: #9ca3af; font-size: 14px; line-height: 1; }
.filter-chip.clear { background: #fff; color: #b91c1c; border-color: #fecaca; }
.filter-chip.clear:hover, .filter-chip.clear:focus-visible { background: #fef2f2; border-color: #fca5a5; }

.empty-request {
    margin-top: 8px; padding: 20px;
    border: 1px solid #e5e7eb; border-radius: 10px; background: #f9fafb;
    text-align: left;
}
.empty-request-head { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 14px; }
.empty-request-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
@media (min-width: 560px) { .empty-request-grid { grid-template-columns: 1fr 1fr; } }
.empty-request label { display: block; font-size: 12px; font-weight: 600; color: #374151; }
.empty-request input, .empty-request textarea {
    display: block; width: 100%; margin-top: 4px;
    padding: 8px 10px;
    border: 1px solid #d1d5db; border-radius: 6px;
    background: #fff; color: #111827; font-size: 14px; font-family: inherit;
}
.empty-request input:focus, .empty-request textarea:focus {
    outline: 2px solid #bfdbfe; outline-offset: 1px; border-color: #93c5fd;
}
.empty-request textarea { resize: vertical; }
.empty-request-wide { margin-bottom: 14px; }
.empty-request-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
/* The two buttons are the same width and height so neither reads as the afterthought. */
.empty-request-actions .btn { margin-top: 0; text-align: center; }
.empty-request .note-sm { margin: 10px 0 0; }
.empty-request-terms {
    display: flex; align-items: flex-start; gap: 8px;
    margin-bottom: 14px;
    font-size: 13px; font-weight: 400; color: #4b5563;
}
.empty-request-terms input { width: auto; margin: 2px 0 0; flex: 0 0 auto; }

/* ------------------------------------------------------------------ thank you

   Shown in place of the inquiry form once an inquiry has been sent, at the top of the
   vehicle page where the form's confirmation used to be a single line of text. */

.thankyou {
    padding: 24px; margin-bottom: 16px;
    border: 1px solid #bbf7d0; border-radius: 10px;
    background: #f0fdf4; text-align: center;
}
.thankyou .badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 50%;
    background: #dcfce7; color: #15803d; margin-bottom: 14px;
}
.thankyou h1, .thankyou h2 { font-size: 22px; font-weight: 500; color: #14532d; margin-bottom: 8px; }
.thankyou h1 { font-size: 28px; }

/* ------------------------------ the thank-you PAGE (thanks.php)

   Same panel, standing on a page of its own instead of inside a vehicle listing. It gets a
   little more room to breathe, and the suggestions under it get a heading of their own
   because on this page they are the next step rather than a footnote. */

.thankyou-page { padding: 40px 24px; margin-bottom: 24px; }
.thankyou-lede { font-size: 16px; line-height: 1.6; max-width: 560px; margin: 0 auto 14px; }
.thankyou-meta { font-size: 14px; margin-bottom: 18px; }
.thankyou-links { font-size: 14px; margin: 0; }
.thankyou-links .sep { margin: 0 8px; color: #86efac; }
.thankyou-links a { color: #15803d; font-weight: 600; text-decoration: underline; }
.thankyou-suggest { margin-top: 8px; }
.thankyou-sub { font-size: 14px; color: #6b7280; margin: -6px 0 14px; }
.thankyou > p { font-size: 15px; color: #166534; margin-bottom: 14px; }
/* The number is the one thing on this panel a buyer may need to quote back, so it is set
   apart rather than buried in the sentence. */
.thankyou-ref {
    display: inline-block; padding: 6px 14px;
    border: 1px dashed #86efac; border-radius: 999px;
    background: #fff;
    font-size: 14px; color: #166534;
}
.thankyou-ref strong { font-size: 16px; letter-spacing: .01em; }
.thankyou-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.thankyou-actions .btn { margin-top: 0; }
.thankyou-number { font-size: 14px; font-weight: 700; color: #166534; }
.thankyou .card-grid { text-align: left; }

/* ============================================================== the client area
   Register, sign in, and the account pages. Deliberately its own small set of rules rather
   than a reuse of `.inquiry`: the enquiry form is a single narrow column inside a sidebar,
   and these are full-width pages, so sharing the rules would mean overriding most of them.
   `.inquiry .field` is scoped to the enquiry form and stays that way. */

.account-page { max-width: 880px; margin: 0 auto; padding: 32px 0 64px; }
.account-page.narrow { max-width: 460px; }
.account-page > h1 { font-size: 30px; font-weight: 500; color: #111827; margin-bottom: 6px; }
.account-page > .muted { margin-bottom: 20px; }

.account-form { padding: 20px; }
.account-form .field { display: block; margin-bottom: 14px; }
.account-form .field > span:first-child {
    display: block; margin-bottom: 5px;
    font-size: 12px; font-weight: 600; color: #374151;
}
.account-form input[type="text"],
.account-form input[type="email"],
.account-form input[type="password"],
.account-form input[type="search"],
.account-form select {
    width: 100%; padding: 9px 12px; font-size: 14px; color: #111827;
    background: #fff; border: 1px solid #d1d5db; border-radius: 8px;
}
.account-form input:focus, .account-form select:focus {
    outline: 2px solid #e6003a; outline-offset: -1px; border-color: #e6003a;
}
.account-form .hint { display: block; margin-top: 4px; font-size: 11.5px; color: #6b7280; }
.account-form .btn-block { margin-top: 6px; }
.account-alt { margin: 14px 0 0; font-size: 13px; }
.account-alt a { color: #e6003a; font-weight: 600; }

/* Two fields side by side while there is room for two, stacked when there is not. */
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

/* The account shell: sections down the left, the open one on the right.
   Ten pills across the top needed two rows and still left "Invoices" and "Purchase history"
   looking unrelated; this column is the same width at every step, so the page never jumps. */
.acct-shell { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) {
    .acct-shell { grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start; }
    .acct-side { position: sticky; top: 16px; }
}
.acct-side {
    display: flex; flex-direction: column; gap: 2px;
    padding: 10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
}
.acct-side-head {
    padding: 12px 10px 4px; margin-top: 2px;
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: #9ca3af;
}
.acct-side-head:first-child, .acct-side-head[data-first] { padding-top: 2px; margin-top: 0; }
.acct-side-link {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 10px; border-radius: 6px;
    font-size: 13px; font-weight: 600; color: #4b5563; text-decoration: none;
}
.acct-side-link:hover { background: #f6f7f9; color: #111827; }
.acct-side-link.on { background: #e6003a; color: #fff; }
.acct-side-link .count-pill {
    padding: 1px 7px; font-size: 11px; font-weight: 700;
    color: #6b7280; background: #f3f4f6; border-radius: 999px;
}
.acct-side-link.on .count-pill { background: rgba(255, 255, 255, .26); color: #fff; }
/* On a phone the column folds into one row that scrolls sideways — the same links, still one
   tap away, without a 210px column eating the width of the cards. */
@media (max-width: 899px) {
    .acct-side {
        flex-direction: row; overflow-x: auto; gap: 6px; padding: 8px 8px 9px;
        /* A grey bar across the middle of the page is what made this look unfinished. The row
           still scrolls; it just does not announce it with a 1998 scrollbar. */
        scrollbar-width: none;
        -ms-overflow-style: none;
        scroll-snap-type: x proximity;
    }
    .acct-side::-webkit-scrollbar { display: none; }
    .acct-side-link { scroll-snap-align: start; }
    .acct-side-head { display: none; }
    .acct-side-link { flex: 0 0 auto; white-space: nowrap; border: 1px solid #e5e7eb; }
    .acct-side-link.on { border-color: #e6003a; }
}
.acct-main { min-width: 0; }

/* The overview: one card per section, each the first rows of a screen that already exists. */
.acct-card {
    padding: 0; margin-bottom: 14px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    overflow: hidden;
}
.acct-card:last-child { margin-bottom: 0; }
.acct-card > header {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 16px; border-bottom: 1px solid #eef1f4;
}
.acct-card > header h2 { margin: 0; font-size: 15px; font-weight: 600; color: #111827; }
.acct-more { font-size: 12px; font-weight: 600; color: #e6003a; }
.acct-card .acct-empty { padding: 22px 16px; }

.acct-mini {
    display: grid; grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 14px; align-items: center;
    padding: 12px 16px; border-bottom: 1px solid #f3f4f6;
}
.acct-mini:last-child { border-bottom: 0; }
.acct-mini-photo { display: block; width: 96px; height: 72px; overflow: hidden; border-radius: 6px; background: #f3f4f6; }
.acct-mini-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-mini-body { min-width: 0; }
.acct-mini-body h3 { margin: 0 0 3px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.acct-mini-body h3 a { color: #111827; text-decoration: none; }
.acct-mini-body h3 a:hover { color: #e6003a; }
.acct-mini-meta { margin: 0; font-size: 12px; color: #6b7280; }
.acct-mini-note { margin: 4px 0 0; font-size: 12px; color: #9ca3af; }
.acct-mini-right {
    display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
    text-align: right; white-space: nowrap;
}
.acct-mini-price { font-size: 12.5px; font-weight: 600; color: #374151; font-variant-numeric: tabular-nums; }
.acct-mini-right .pill { font-size: 11px; }
.acct-mini-right .acct-find { font-size: 12px; font-weight: 600; color: #e6003a; }
@media (max-width: 620px) {
    .acct-mini { grid-template-columns: 76px minmax(0, 1fr); }
    .acct-mini-photo { width: 76px; height: 57px; }
    .acct-mini-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* A row of photographs: browsing history, and what we suggest. */
.acct-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px; padding: 14px 16px; margin: 0; list-style: none;
}
@media (min-width: 720px) { .acct-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.acct-grid li { min-width: 0; }
.acct-grid a { display: block; color: inherit; text-decoration: none; }
/* The client's browsing history and suggestions use their own grid, not the .mini-card
   partial, so restyling .mini-card left them behind. Same reading as the homepage rail:
   picture first, rounded, bold title, red price, no panel. */
.acct-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
                 border-radius: 10px; background: #f3f4f6; }
.acct-grid b {
    display: block; margin-top: 8px; font-size: 15px; font-weight: 700; line-height: 1.28;
    color: #111827; letter-spacing: 0;
}
.acct-mini-label { display: block; margin-top: 8px; font-size: 10px; letter-spacing: .04em;
    text-transform: uppercase; color: #6b7280; }
.acct-grid .muted { display: block; margin-top: 2px; font-size: 17px; font-weight: 700; color: #d32f2f; }

/* The section nav. Links, not tabs: each one is a page state that can be linked to, which
   is what makes "the quote we sent you" a URL a client can keep. */
/* Pills, wrapped. The underline version could never wrap and could not scroll politely on a
   phone: nine labels in one row cut the last one off mid-word ("My" for "My details"). */
@media (min-width: 720px) { /* The open section, on its own sheet. */
.acct-box {
    padding: 18px 18px 20px;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    overflow: hidden;
}
/* Saved vehicles are cards already; inside the sheet they lose the shadow rather than
   stacking a framed card on a framed page. */
.acct-box .card { box-shadow: none; border: 1px solid #eef1f4; }
.acct-box .acct-empty { padding: 26px 6px; }
}

/* A list of records — enquiries, deposits, invoices. Rows rather than cards: they are
   read down a column and compared, and a card per row is a lot of border for that. */
.acct-rows { width: 100%; border-collapse: collapse; font-size: 13px; }
.acct-rows th {
    padding: 8px 10px; text-align: left; font-size: 11px; font-weight: 600;
    color: #6b7280; text-transform: uppercase; letter-spacing: .04em;
    border-bottom: 1px solid #e5e7eb; white-space: nowrap;
}
.acct-rows td { padding: 11px 10px; border-bottom: 1px solid #f3f4f6; vertical-align: top; }
.acct-rows tr:last-child td { border-bottom: 0; }
.acct-rows .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acct-rows .amount-credit { color: #166534; }
.acct-rows .amount-debit { color: #991b1b; }
.acct-rows .total td {
    border-top: 2px solid #e5e7eb; border-bottom: 0; font-weight: 700; color: #111827;
}

.acct-empty { padding: 28px 18px; text-align: center; color: #6b7280; font-size: 14px; }
.acct-empty a { color: #e6003a; font-weight: 600; }

/* =============================================================== proforma
   The document a client forwards to their bank. It has to survive being printed, so it is a
   white sheet with dark type, ruled lines and no reliance on colour to carry meaning — and
   the site's own header, navigation and footer are removed in print, because a page footer
   printed in the middle of an invoice is how a document stops looking like one. */
.proforma { max-width: 860px; margin: 0 auto; padding: 24px 0 60px; }
.proforma-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.proforma-sheet {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 34px 38px; color: #111827; font-size: 13.5px; line-height: 1.55;
}
.proforma-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.proforma-brand { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.proforma-title h1 { font-size: 20px; font-weight: 700; margin: 0 0 2px; }
.proforma-muted { color: #6b7280; font-size: 12px; }
.proforma-note {
    margin: 0 0 22px; padding: 12px 14px; font-size: 12.5px;
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; color: #78350f;
}
.proforma-parties { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 22px; }
@media (min-width: 640px) { .proforma-parties { grid-template-columns: 1fr 1fr; } }
.proforma-parties h2 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; margin: 0 0 6px; }
.proforma-lines { width: 100%; border-collapse: collapse; margin-bottom: 22px; }
.proforma-lines th {
    text-align: left; padding: 8px 0; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .05em; color: #6b7280;
    border-bottom: 2px solid #111827;
}
.proforma-lines td { padding: 11px 0; border-bottom: 1px solid #eceff3; vertical-align: top; }
.proforma-lines .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.proforma-lines td .proforma-muted { display: block; margin-top: 2px; }
.proforma-lines tr.proforma-sub td { border-bottom: 0; padding-top: 6px; font-weight: 600; }
.proforma-lines tr.proforma-total td { border-top: 2px solid #111827; border-bottom: 0; font-weight: 800; font-size: 15px; }
.proforma-lines .amount-credit { color: #166534; }
.proforma-terms h2 { font-size: 13px; font-weight: 700; margin: 0 0 8px; }
.proforma-terms ul { margin: 0; padding-left: 18px; }
.proforma-terms li { margin-bottom: 6px; color: #374151; font-size: 12.5px; }

/* The account heading: the name and the sign-out button on one line. */
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.account-head h1 { font-size: 26px; font-weight: 500; color: #111827; margin: 0; }

@media print {
    /* The site around the document goes: header, footer, navigation, and the two buttons. */
    .site-header, .site-footer, .nav-strip, .proforma-actions, .drawer { display: none !important; }
    .shell.page { padding: 0; }
    .proforma { max-width: none; padding: 0; }
    .proforma-sheet { border: 0; border-radius: 0; padding: 0; }
    .proforma-note { background: none; }
    a { color: inherit; text-decoration: none; }
}

/* ------------------------------------------------------------------ purchase history
   One card per car rather than a table row: a buyer reads this page to recognise a vehicle
   they own, so the photograph and the name lead, the money sits to the right, and the badge
   says the one thing that matters — paid, waiting, overdue, or sold out. */
.purchases { display: grid; gap: 12px; }

.purchase {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr) 190px;
    gap: 18px;
    padding: 14px;
    background: #fff;
    border: 1px solid #e6e8ec;
    border-radius: 10px;
}

.purchase-photo img {
    display: block; width: 148px; height: 111px;
    object-fit: cover; border-radius: 8px; background: #f3f4f6;
}

.purchase-body h3 { margin: 0 0 5px; font-size: 17px; line-height: 1.3; }
.purchase-body h3 a { color: inherit; }
.purchase-body h3 a:hover { color: #e6003a; }
.purchase-spec, .purchase-note { margin: 2px 0; color: #6b7280; font-size: 12.5px; }
.purchase-dates { margin: 9px 0 4px; font-size: 12.5px; color: #374151; }
.purchase-due { margin-left: 10px; }
.purchase-due.is-overdue { color: #c8102e; font-weight: 700; }

.purchase-money {
    display: flex; flex-direction: column; align-items: flex-end; gap: 7px;
    text-align: right;
}
.purchase-price { font-size: 20px; font-weight: 700; color: #c8102e; letter-spacing: .2px; }
.purchase-money .pill { font-size: 11px; }

.purchase-money .acct-find { font-size: 12px; color: #e6003a; }
.purchase-money .acct-find:hover { text-decoration: underline; }

/* A sold car stays legible but stops competing with the things still for sale. */

/* ============================================ four pairs, from 1280px up
   The eight specification values need 502px on one line once colour is a word rather than a
   paint name (see Cars::COLOR_ALIASES): 170 + 122 + 116 + 94. The card's middle column is
   511.6px from 1280 up and 350.8px below it, so this starts at 1280 and the two-pair grid above
   keeps 1024-1279. A 1366 window gets the four-pair card, because the shell is 1280 there and
   this is measured on the column, not on the window.
*/
@media (min-width: 1280px) {
    dl.spec-grid {
        grid-template-columns:
            minmax(170px, 1.55fr) minmax(122px, 1.10fr)
            minmax(116px, 1.05fr) minmax(94px, 0.85fr);
    }
    dl.spec-grid > div:nth-child(4n + 1) dt { flex: 0 0 86px; }
    dl.spec-grid > div:nth-child(4n + 2) dt { flex: 0 0 63px; }
    dl.spec-grid > div:nth-child(4n + 3) dt { flex: 0 0 45px; }
    dl.spec-grid > div:nth-child(4n + 4) dt { flex: 0 0 49px; }
    dl.spec-grid > div { border-right: 1px solid #eef0f3; border-bottom: 1px solid #eef0f3; }
    dl.spec-grid > div:nth-child(4n)     { border-right: 0; }
    dl.spec-grid > div:nth-child(n+5)    { border-bottom: 0; }
}

/* ------------------------------------------------- browsing history, account page
   A row per vehicle, small photo on the left: the same shape as the wishlist, because the
   question is the same one — which of these did I mean? */
.acct-history { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.acct-history a { display: flex; gap: 12px; align-items: center; text-decoration: none; color: inherit;
    border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fff; }
.acct-history img { width: 84px; height: 63px; object-fit: cover; border-radius: 6px; background: #f3f4f6; flex: 0 0 84px; }
.acct-history b { display: block; font-weight: 700; font-size: 14px; }

/* ================================================================== quote page
 *
 * A quote is read once, often on a phone, often by somebody deciding whether to send
 * money. So: the total is the largest thing on the page, the breakdown is one right-aligned
 * column, and there is exactly one thing to press.
 */
.quote-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px; margin-bottom: 14px;
}
.quote-head h1 { margin: 0 0 2px; }
.quote-head p { margin: 0; }
.quote-card { max-width: 640px; }
.quote-car { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.quote-car img { border-radius: 8px; object-fit: cover; flex: 0 0 auto; }
.quote-car h2 { margin: 0 0 4px; font-size: 18px; }
.quote-car p { margin: 0; font-size: 12.5px; }

.quote-table { width: 100%; border-collapse: collapse; }
.quote-table th, .quote-table td { padding: 9px 0; }
.quote-table th {
    text-align: left; font-weight: 400; font-size: 13.5px; color: #4b5563;
}
.quote-table td {
    text-align: right; font-size: 14px; color: #111827;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.quote-table tr + tr th, .quote-table tr + tr td { border-top: 1px solid #f1f3f5; }
.quote-table .quote-total th, .quote-table .quote-total td {
    border-top: 2px solid #e5e7eb; padding-top: 12px;
    font-size: 19px; font-weight: 700; color: #111827;
}

.quote-note {
    margin: 14px 0 0; padding: 8px 12px; font-size: 13px;
    background: #f9fafb; border-left: 3px solid #e6003a;
}
.btn-accept {
    display: block; width: 100%; margin-top: 16px;
    background: #c1121f; border-color: #c1121f; font-size: 15px;
}
.accept-ok { border-left: 4px solid #16a34a; }
.pill.is-warn { background: #fef2f2; color: #b91c1c; }

@media (max-width: 560px) {
    .quote-car { flex-direction: column; align-items: flex-start; }
    .quote-car img { width: 100%; height: auto; }
}

/* A DEADLINE, COUNTING. The server writes the figure; app.js keeps it moving (see the
   countdown block at the end of that file). Tabular figures so the width does not jump as
   the minutes change, and a colour that says "this has run out" without an icon. */
.countdown {
    display: inline-block; font-variant-numeric: tabular-nums; font-weight: 700;
    color: #b45309;
}
.countdown.is-done { color: #b91c1c; }
.hold-note { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }

/* The three lines under a quote's heading: what it is for, in what condition, and how long the
   vehicle is being held. Small and grey — they are evidence, not headlines. */
.quote-desc { margin: 6px 0 0; font-size: 15px; font-weight: 600; color: #111827; }
.quote-spec { margin: 2px 0 0; font-size: 12.5px; color: #6b7280; }
.quote-hold { margin: 8px 0 0; font-size: 13px; color: #b45309; font-weight: 600; }

/* The bar above the invoice sheet: deadline on the left, the print button on the right. */
.doc-deadline { margin: 0; font-size: 13px; color: #b91c1c; font-weight: 600; }
.doc-deadline .countdown { color: inherit; }

/* ACCOUNT TABLES ON A PHONE.
   "INV-00001" broke across two lines and the vehicle name ran to four, which is how a one-line
   record turned into a block of text. Numbers and dates stay on one line; the vehicle is the
   only column allowed to wrap, and the money columns keep their alignment. */
.acct-rows td, .acct-rows th { vertical-align: top; }
.acct-rows td:first-child, .acct-rows td.num { white-space: nowrap; }
@media (max-width: 719px) {
    .acct-rows { font-size: 12.5px; }
    .acct-rows th, .acct-rows td { padding: 7px 6px; }
    .acct-rows .is-optional { display: none; }
}
.acct-fieldset {
    margin: 18px 0 4px;
    padding: 12px 14px 4px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.acct-fieldset legend {
    padding: 0 6px;
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: #6b7280;
}
.acct-fieldset .muted { margin: 0 0 10px; font-size: 12px; }
.purchase-files { margin: 8px 0 0; padding: 0; list-style: none; }
.purchase-files li {
    display: flex; align-items: baseline; gap: 8px;
    padding: 4px 0; font-size: 13px;
    border-top: 1px dashed #e5e7eb;
}
.purchase-files a { color: #e6003a; font-weight: 600; text-decoration: none; }
.purchase-files a:hover { text-decoration: underline; }
.purchases .purchase-record {
    /* A recorded sale has no photo, so the three-column card that fits an invoice leaves a
       hole where the picture would be. Two columns, and the money to the right. */
    grid-template-columns: minmax(0, 1fr) auto;
    border: 1px solid #e6e8ec;
}
.purchases .purchase-record h3 { margin: 0 0 2px; font-size: 15px; }
.purchases .purchase-record .purchase-money { text-align: right; }
.purchases .purchase-files { margin: 10px 0 0; padding: 0; list-style: none; }
.purchases .purchase-files li {
    display: flex; align-items: baseline; gap: 8px;
    padding: 6px 0; font-size: 13.5px;
    border-top: 1px dashed #e5e7eb;
}
.purchases .purchase-files li:first-child { border-top: 0; }
.purchases .purchase-files a { color: #e6003a; font-weight: 600; text-decoration: none; }
.purchases .purchase-files a:hover { text-decoration: underline; }

/* THE HEART, ON THE PHOTOGRAPH.
   A word beside the price looked tidy on a desktop and read as noise in a list on a phone —
   six of them down the page, each one louder than the vehicle. It is a corner control: small,
   quiet until it is on, and out of the way of the picture. */
.vehicle .photo-fav { position: absolute; top: 6px; left: 6px; z-index: 2; margin: 0; }
@media (max-width: 719px) {
    .vehicle .photo-fav { top: 8px; left: 8px; }
}

/* The request form a little tighter: it was a 20px-padded box with a 16px heading, which read
   as a second page inside the empty state rather than as the next step. */
.empty-request { padding: 16px; background: #fff; }
.empty-request-head { font-size: 14px; margin-bottom: 12px; }
.empty-request-actions { gap: 8px; }
.empty-request-actions .btn { min-width: 128px; }

/* The strip under the picture now holds only the save button and, when there are none, the
   line that says there are no photos. The separator that used to sit between them went with
   the "Auction sheet" link. */

/* FLAGS, on the vehicle page.
   One small row above the gallery: a good deal and a discount are why a buyer stops, and a
   new arrival is why they come back. None of them are set by default, so most pages carry
   no row at all. */
.flag-row { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.flag {
    padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600;
    letter-spacing: .02em; background: #eef2f7; color: #374151; border: 1px solid #dfe5ec;
}
.flag-is_discount, .flag-is_good_deal { background: #eaf7ee; color: #166534; border-color: #cfe9d8; }
.flag-is_featured { background: #fdf2f4; color: #9f1239; border-color: #f6d5dc; }

/* ================================================================== about

   A page of prose. No cards, no coloured labels, no button furniture — the only structure is
   the width of the text column and one plain table at the end. */
.about { width: 100%; max-width: 720px; margin: 0 auto; background: #fff;
    padding: 26px 30px 34px; border-radius: 8px; }
.about h1 { margin: 4px 0 18px; font-size: 27px; font-weight: 600; letter-spacing: -.01em; }
.about h2 {
    margin: 32px 0 12px; padding: 0;
    font-size: 16px; font-weight: 600; color: #111827;
}
.about p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.72; color: #374151; }
.about a { color: #b3122e; text-decoration: none; border-bottom: 1px solid #e8c2c9; }
.about a:hover { border-bottom-color: #b3122e; }
.about strong { color: #111827; font-weight: 600; }

.about-steps { margin: 0 0 16px; padding-left: 20px; list-style: decimal outside; }
.about-steps li { margin-bottom: 7px; font-size: 14.5px; line-height: 1.65; color: #374151; }

.about-table { width: 100%; border-collapse: collapse; margin: 4px 0 16px; font-size: 14px; }
.about-table th, .about-table td { text-align: left; vertical-align: top; padding: 7px 0; border: 0; }
.about-table tr + tr th, .about-table tr + tr td { border-top: 1px solid #eceff2; }
.about-table th { width: 140px; font-weight: 400; color: #6b7280; padding-right: 16px; }
.about-table td { color: #374151; line-height: 1.6; }

.about-note { margin-top: 18px; font-size: 13px; color: #6b7280; }

@media (max-width: 560px) {
    .about-table th { width: 104px; font-size: 13px; }
    .about-table td { font-size: 13px; }
}

/* A calculator card with nothing to calculate: the vehicle is sold or spoken for, so the
   card keeps only its enquiry form. No white panel, no border, no heading that promises a
   sum. */
.calc-card-plain { background: none; border: 0; box-shadow: none; padding: 0; }
.calc-card-plain h2 { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: #111827; }

/* Homepage rails follow the compact photo-first card: no panel, no border, the picture is
   the box. Scoped to the rails so the search-result cards keep their own treatment. */
/* ONE CARD, EVERYWHERE IT APPEARS.
   Homepage rails, similar models, saved cars and the client's browsing history were drawing
   the same card with a bordered white panel around it, which read as a form rather than a
   picture. The panel, the border and the inner padding are gone; the photograph is the box.
   Search results are a different component (.vehicle) and are untouched. */
.home-rail .mini-card {
    border: 1px solid #eceff4; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.04);
    border-radius: 10px; overflow: hidden;
}
.home-rail .mini-card .photo img { border-radius: 10px; }
.home-rail .mini-card .body { padding: 10px 10px 12px; }
.home-rail .mini-card h3 { font-size: 15px; font-weight: 700; line-height: 1.28; letter-spacing: 0; }
.home-rail .mini-card .price { margin-top: 4px; font-size: 17px; }
.home-rail .mini-card .price-label {
    display: block; margin-top: 8px; font-size: 10.5px; letter-spacing: .04em;
    text-transform: uppercase; color: #6b7280;
}
.home-rail .mini-card .photo-missing {
    aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #eef2f8, #e3e9f2); color: #9aa7bb; border-radius: 10px;
}

/* Body type, as shapes. Eight chips, the drawing above the word, the current one outlined
   in the accent so the state is visible without reading. */
/* It sits inside .filter-grid, which is a two-column grid of selects; without spanning it
   the strip inherits one 90px cell and the chips crush into a line of overlapping words. */
.body-strip { grid-column: 1 / -1; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(74px, 1fr)); gap: 6px; margin: 0 0 14px; }
.body-chip {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 8px 2px 6px; border: 1px solid #e5e7eb; border-radius: 6px;
    background: #fff; color: #4b5563; text-decoration: none; font-size: 10.5px;
    line-height: 1.15; text-align: center; min-height: 58px; white-space: nowrap;
    text-overflow: ellipsis; overflow: hidden; transition: border-color .12s, color .12s;
}
.body-chip svg { width: 24px; height: 24px; flex: none; color: #6b7280; }
.body-chip:hover { border-color: #c1121f; color: #c1121f; }
.body-chip:hover svg { color: #c1121f; }
.body-chip.on { border-color: #c1121f; color: #c1121f; font-weight: 700; }
.body-chip.on svg { color: #c1121f; }
.body-chip-clear { color: #9ca3af; }

/* ================================================================== contact

   The form the old site ran, rebuilt without a table: two columns that collapse to one, the
   labels above the fields, and the message full width. */
.contact-h { margin: 26px 0 6px; font-size: 22px; font-weight: 700; color: #111827;
    font-family: Inter, -apple-system, Roboto, sans-serif; }
.contact-lede { margin: 0 0 18px; font-size: 12.5px; color: #4b5563; font-family: Inter, -apple-system, Roboto, sans-serif; }

.contact-form { display: grid; grid-template-columns: 1fr; gap: 14px 22px; font-family: Inter, -apple-system, Roboto, sans-serif; }
@media (min-width: 640px) { .contact-form { grid-template-columns: 1fr 1fr; } }
.contact-form h2 { grid-column: 1 / -1; margin: 4px 0 -2px; padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb; font-size: 16px; font-weight: 700; color: #111827; }
.contact-hp { position: absolute; left: -9999px; }

.c-field { display: block; margin: 0; }
.c-field > span { display: block; margin-bottom: 5px; font-size: 12.5px; font-weight: 700; color: #111827; }
.c-field i { color: #c1121f; font-style: normal; }
.c-field input, .c-field select, .c-field textarea {
    width: 100%; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 2px;
    background: #fff; font-size: 13px; color: #111827; font-family: inherit;
}
.c-field input:focus, .c-field select:focus, .c-field textarea:focus {
    outline: none; border-color: #c1121f; box-shadow: 0 0 0 2px rgba(193,18,31,.12);
}
.c-wide { grid-column: 1 / -1; }
.c-sum input { max-width: 140px; }

.c-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.c-send { padding: 9px 22px; border: 0; border-radius: 2px; background: #c1121f; color: #fff;
    font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.c-send:hover { background: #9e0e18; }
.c-alt { font-size: 12px; color: #6b7280; }
.c-alt a { color: #111827; }

.contact-errors { margin: 0 0 14px; padding: 10px 12px; border: 1px solid #f3c2c6; background: #fdf2f3;
    border-radius: 3px; font-family: Inter, -apple-system, Roboto, sans-serif; }
.contact-errors p { margin: 0 0 4px; font-size: 12.5px; color: #8b1119; }
.contact-errors p:last-child { margin-bottom: 0; }

.contact-done { padding: 16px; border: 1px solid #cfe6d3; background: #f2fbf4; border-radius: 3px;
    font-family: Inter, -apple-system, Roboto, sans-serif; }
.contact-done b { display: block; margin-bottom: 4px; font-size: 14px; color: #14532d; }
.contact-done p { margin: 0; font-size: 12.5px; color: #166534; }

/* The contact card is white, not the country pages' off-white: it holds a form, and a form
   on grey reads as disabled. */
.ctry-wrap.contact-wrap { background: #fff; padding: 24px; border-radius: 4px; }
@media (max-width: 639px) { .ctry-wrap.contact-wrap { padding: 16px; } }

/* WhatsApp sits beside "Send message" as a button, at the same height. The number is in the
   header and the footer; here it was only something a buyer had to copy by hand. */
.c-send-wa { margin-top: 0; padding: 9px 22px; border-radius: 2px; border: 1px solid #1da851;
    font-size: 13px; font-weight: 700; line-height: 1; color: #fff; }

.auc-hero { padding: 30px 24px; border-radius: 6px; background: linear-gradient(135deg, #16233f, #22355c);
    color: #fff; font-family: Inter, -apple-system, Roboto, sans-serif; }
.auc-hero h1 { margin: 0 0 8px; font-size: 24px; font-weight: 700; color: #fff; }
.auc-hero p { margin: 0; font-size: 13px; color: #dbe2ee; max-width: 560px; line-height: 1.6; }

.auc-lead { font-weight: 700; color: #111827 !important; margin-top: 10px !important; }
.auc-answer { margin-top: 8px; }
.auc-answer ul { margin: 0; padding-left: 18px; }
.auc-answer li { font-size: 12px; color: #4b5563; line-height: 1.7; }
.auc-answer { font-size: 12px; color: #4b5563; line-height: 1.7; }
.auc-hero .ctry-cta-primary { display: inline-block; margin-top: 12px; }

/* ---------------------------------------------------------------- auction page

   Matched to the live page: centred hero, the auction floor beside the opening paragraphs,
   a centred call to action, advantages in two columns with a mark on the left, and an FAQ
   that is a list of questions rather than an accordion. */
.auc-hero { text-align: center; padding: 26px 20px; }
.auc-hero h1 { margin: 0 0 6px; font-size: 22px; }
.auc-hero p { margin: 0 auto; }

.auc-intro { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start;
    padding: 18px 0 6px; }
@media (min-width: 620px) { .auc-intro { grid-template-columns: 300px 1fr; } }
.auc-intro img { width: 100%; height: auto; border-radius: 4px; display: block; }
.auc-intro p { margin: 0 0 10px; font-size: 12.5px; color: #374151; line-height: 1.75; }

.auc-call { text-align: center; padding: 22px 0 6px; }
.auc-call p { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: #111827; }
.auc-call .ctry-cta-primary { display: inline-block; }

.auc-adv { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 620px) { .auc-adv { grid-template-columns: 1fr 1fr; } }
.auc-adv-item { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start;
    padding: 12px 14px; background: #fff; border: 1px solid #e9edf2; border-radius: 4px; }
.auc-adv-item svg { color: #6b7280; width: 26px; height: 26px; }
.auc-adv-item b { display: block; margin-bottom: 3px; font-size: 12.5px; font-weight: 700; color: #111827; }
.auc-adv-item p { margin: 0; font-size: 11.5px; color: #4b5563; line-height: 1.55; }

.auc-faq { background: #fff; border: 1px solid #e9edf2; border-radius: 4px; padding: 4px 18px; }
.auc-faq-item { padding: 14px 0; border-bottom: 1px solid #eef1f4; }
.auc-faq-item:last-child { border-bottom: 0; }
.auc-faq-item h3 { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; color: #111827; }

.ctry-cta.auc-end { background: #f4f7fb; color: #111827; border: 1px solid #e2e9f2; }
.ctry-cta.auc-end h2 { color: #111827; }
.ctry-cta.auc-end p { color: #4b5563; }
.ctry-cta-login { padding: 9px 20px; border-radius: 3px; background: #3f4a5a; color: #fff;
    font-size: 12.5px; font-weight: 700; text-decoration: none; }
.c-captcha { grid-column: 1 / -1; }
/* .c-field > span is display:block; the row needs to beat it or the image and the refresh
   link stack. */
.c-field > span.c-captcha-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.c-captcha-row img { border: 1px solid #d1d5db; border-radius: 2px; display: block; }
.c-captcha-new { font-size: 12px; color: #c1121f; text-decoration: none; font-weight: 700; }
.c-captcha input { max-width: 160px; letter-spacing: .22em; text-transform: uppercase; }

/* The auction page runs a size up from the destination pages: it is read, not scanned, and
   the copy is the whole point of it. */
.ctry-wrap .auc-hero h1,
.auc-hero h1 { font-size: 26px; }
.auc-hero p  { font-size: 14.5px; }
.auc-intro p { font-size: 14px; line-height: 1.75; }
.auc-call p  { font-size: 15px; }
.auc-adv-item b { font-size: 14px; }
.auc-adv-item p { font-size: 13px; line-height: 1.6; }
.auc-faq summary { font-size: 14px; font-weight: 700; }
.auc-answer { font-size: 13.5px; }
.auc-answer li { font-size: 13.5px; }

/* + and − instead of a disclosure triangle */
.auc-faq-item summary { list-style: none; cursor: pointer; position: relative; padding-right: 26px; }
.auc-faq-item summary::-webkit-details-marker { display: none; }
.auc-faq-item summary::after {
    content: "+"; position: absolute; right: 4px; top: -2px;
    font-size: 17px; font-weight: 400; color: #6b7280;
}
.auc-faq-item[open] summary::after { content: "\2212"; }

/* ============================================================ destination pages

   The layout of the destination page the company already publishes: a 900px column, one
   band per subject, white cards on a tinted ground, section headings centred at 18px. A
   band's background stops at the column edge, exactly as it did on that page. */
.ctry-wrap {
    max-width: 900px; margin: 0 auto; color: #333; line-height: 1.6;
    background: #f8f9fa;
    font-family: Inter, -apple-system, Roboto, sans-serif;
}

.ctry-band { padding: 22px 10px; }
.ctry-band--tint { background: #f8f9fa; }
.ctry-band--blue { background: #f0f7ff; }
.ctry-band--white { background: #fff; }
@media (min-width: 700px) { .ctry-band { padding: 26px 22px; } }

.ctry-h {
    margin: 0 0 20px; text-align: center; font-size: 18px; font-weight: 700;
    color: #16233f; line-height: 1.3;
}

.ctry-hero { position: relative; height: 230px; overflow: hidden; }
.ctry-hero img { position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block; }
.ctry-hero-txt {
    position: relative; height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 0 20px; text-align: center;
    background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5));
}
.ctry-hero-txt h1 { margin: 0 0 10px; font-size: 28px; font-weight: 700; color: #fff;
    line-height: 1.2; text-shadow: 2px 2px 8px rgba(0,0,0,.7); }
.ctry-hero-txt p { margin: 0; font-size: 15px; color: #fff; opacity: .95;
    text-shadow: 2px 2px 8px rgba(0,0,0,.7); }

/* A hero without a photograph: the market still gets its band, gradient only. */
.ctry-hero--plain { height: auto; background: linear-gradient(135deg, #16233f, #2a4070); }
.ctry-hero--plain .ctry-hero-txt { padding: 44px 20px; }

@media (max-width: 560px) {
    .ctry-hero { height: 190px; }
    .ctry-hero-txt h1 { font-size: 21px; }
    .ctry-hero-txt p { font-size: 13px; }
}

.ctry-models { list-style: none; margin: 0; padding: 0; display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 620px) { .ctry-models { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.ctry-models a {
    display: block; height: 100%; background: #fff; border-radius: 6px; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.08); text-decoration: none; color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}
.ctry-models a:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0,0,0,.12); }
/* One square frame for every photograph, and contain inside it: the auction shots are cut
   out on white, and cropping a Prado to its bonnet is worse than a smaller car. The frame is
   a box rather than an aspect-ratio on the img — a replaced element keeps its own ratio and
   ignores the declared one, which left the six cards ragged. */
.ctry-model-img { display: block; position: relative; aspect-ratio: 4 / 3; background: #f3f5f8; overflow: hidden; }
.ctry-model-img img { position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; display: block; }
.ctry-model-txt { padding: 8px 10px 10px; }
.ctry-model-txt b { display: block; margin-bottom: 2px; font-size: 17px; font-weight: 700; color: #16233f; }
.ctry-model-txt span { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 500; color: #333; }
.ctry-model-txt em { display: block; font-style: normal; font-size: 12px; font-weight: 700; color: #c1121f; }
/* No photograph of this model anywhere: a drawn tile in the site's own palette rather than a
   grey box or a wrong car. */
.ctry-model-img svg { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px;
    transform: translate(-50%, -50%); color: #9aa7bb; }

.ctry-duty { max-width: 700px; margin: 0 auto; text-align: center; }
.ctry-duty h2 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #16233f; }
.ctry-duty-ex { margin: 0 0 8px; font-size: 14px; color: #666; }
.ctry-duty-sub { margin: 0 0 16px; font-size: 13px; color: #888; }

.ctry-btn { display: inline-block; padding: 12px 32px; border-radius: 6px;
    background: #c1121f; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
.ctry-btn:hover { background: #a50f1a; }

.ctry-partner { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 620px) { .ctry-partner { grid-template-columns: 1fr 1fr; gap: 25px; } }
.ctry-partner h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: #16233f; }
.ctry-partner > div > p { margin: 0 0 12px; font-size: 13px; color: #666; line-height: 1.6; }
.ctry-contact { padding: 14px; border-radius: 6px; background: #f8f9fa; }
.ctry-contact h4 { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: #16233f; }
.ctry-contact p { margin: 3px 0; font-size: 12px; color: #666; line-height: 1.5; }
.ctry-partner-photo img { width: 100%; height: auto; border-radius: 6px; display: block; }

.ctry-delivery { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; }
@media (min-width: 620px) { .ctry-delivery { grid-template-columns: 1fr 1fr; gap: 25px; } }
/* The map is a picture of a country, not a photograph of one. A fixed square plus
   object-fit: cover cut the north and south off every tall country — the DRC showed a band
   across the middle. It now keeps the image's own proportions and fits inside the box. */
.ctry-map { width: 100%; max-width: 400px; margin: 0 auto;
    background: #fff; border-radius: 6px; overflow: hidden; }
.ctry-map img { width: 100%; height: auto; max-height: 420px; object-fit: contain;
    border-radius: 6px; display: block; }
.ctry-delivery h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: #16233f; }
.ctry-delivery p { margin: 0 0 15px; font-size: 13px; color: #666; line-height: 1.6; }
.ctry-delivery h4 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: #16233f; }
.ctry-delivery .ctry-tick { margin: 0; padding: 4px 0 4px 16px; font-size: 12px; }

.ctry-tick { position: relative; padding-left: 16px; font-size: 13px; color: #666; line-height: 1.6; }
.ctry-tick::before { content: "\2713"; position: absolute; left: 0; top: 1px; color: #16a34a; font-size: 11px; }

.ctry-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
@media (min-width: 620px) { .ctry-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; } }
.ctry-step { text-align: center; }
.ctry-step-n { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px;
    margin: 0 auto 8px; border-radius: 50%; background: #c1121f; color: #fff;
    font-size: 15px; font-weight: 700; }
.ctry-step-last .ctry-step-n { background: #28a745; }
.ctry-step b { display: block; margin: 0 0 4px; font-size: 13px; font-weight: 600; color: #16233f; }
.ctry-step p { margin: 0; font-size: 11.5px; color: #666; line-height: 1.5; }

.ctry-info { padding: 20px; border-radius: 6px; background: #fff; border-left: 4px solid #c1121f; }
.ctry-info-block { margin-bottom: 18px; }
.ctry-info h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: #16233f; }
.ctry-info p { margin: 0 0 4px; font-size: 13px; color: #666; line-height: 1.6; }
.ctry-info .ctry-tick b { color: #c1121f; }

.ctry-faq details { border-bottom: 1px solid #e0e0e0; padding: 12px 0; }
.ctry-faq details:last-child { border-bottom: 0; padding-bottom: 0; }
.ctry-faq summary { position: relative; padding-left: 16px; list-style: none; cursor: pointer;
    font-size: 13px; font-weight: 600; color: #16233f; line-height: 1.5; }
.ctry-faq summary::-webkit-details-marker { display: none; }
.ctry-faq summary::before { content: "\25BC"; position: absolute; left: 0; top: 4px;
    font-size: 9px; color: #888; }
.ctry-faq details[open] summary::before { content: "\25B2"; }
.ctry-faq p { margin: 6px 0 0; font-size: 12.5px; color: #666; line-height: 1.6; }

/* How a car is packed, not what it is packed with. The artwork is 284x102: shown at its own
   size and centred rather than stretched to a tile it cannot fill. */
.ctry-van > p { margin: 0 0 12px; font-size: 13px; color: #666; text-align: center; }
.ctry-van-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 520px) { .ctry-van-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ctry-van-grid li { padding: 14px 10px; text-align: center; background: #fff;
    border: 1px solid #e9edf2; border-radius: 6px; }
.ctry-van-grid img { width: auto; max-width: 100%; max-height: 92px; height: auto;
    margin: 0 auto; display: block; }
.ctry-van-grid span { display: block; margin-top: 5px; font-size: 11.5px; color: #374151; }
.ctry-van-note { margin: 14px 0 0 !important; padding: 10px 12px; background: #fff;
    border: 1px solid #e9edf2; border-radius: 4px; text-align: center;
    font-size: 12px; color: #16233f; }

.ctry-parts { max-width: 760px; margin: 0 auto; text-align: center; }
.ctry-parts h2 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #16233f; }
.ctry-parts-lede { margin: 0 0 16px; font-size: 14px; color: #666; line-height: 1.6; }
.ctry-parts-grid { display: grid; grid-template-columns: 1fr; gap: 12px; text-align: left; }
@media (min-width: 620px) { .ctry-parts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.ctry-parts-card { padding: 16px; border-radius: 6px; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.ctry-parts-card h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; color: #16233f; }
.ctry-parts-card p { margin: 0; font-size: 12px; color: #666; line-height: 1.6; }
.ctry-parts-btn { margin-top: 18px; padding: 11px 28px; font-size: 14px; }

.ctry-cta { margin: 10px 0 30px; padding: 30px 20px; border-radius: 8px; text-align: center;
    background: linear-gradient(135deg, #16233f 0%, #2d5a7b 100%); color: #fff; }
.ctry-cta h2 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #fff; }
.ctry-cta p { margin: 0 0 16px; font-size: 13px; color: #fff; opacity: .95; }
.ctry-cta-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.ctry-cta-primary { display: inline-block; padding: 10px 28px; border-radius: 4px;
    background: #c1121f; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }
.ctry-cta-second { display: inline-block; padding: 10px 28px; border-radius: 4px;
    border: 1px solid #fff; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; }



/* ------------------------------------------------------------ phone header

   Four items with a caption each, as the reference does: Menu on the left, the three
   actions on the right, logo between them, search field on its own row below. */
.header-mobile-row { align-items: center; }
.hamburger { display: none; }
@media (max-width: 767px) {
    .hamburger { display: flex; flex-direction: column; align-items: center; gap: 2px; }
}
.hamburger-label { font-size: 10px; color: #fff; line-height: 1; }

@media (max-width: 767px) {
    .account-links { display: flex; align-items: center; gap: 14px; }
    .account-link { display: flex; flex-direction: column; align-items: center; gap: 3px;
        color: #fff; text-decoration: none; }
    .account-link .label { display: block; font-size: 10px; line-height: 1; color: #e8ecf4; }
    .account-link.wa { display: none; }
    .account-link svg { width: 22px; height: 22px; }
    .account-link.saved svg { color: #e11d2e; fill: #e11d2e; stroke: none; }
    .account-link.saved .badge {
        position: absolute; top: -6px; right: -9px; min-width: 15px; height: 15px;
        padding: 0 3px; border-radius: 8px; background: #fff; color: #111827;
        font-size: 9.5px; font-weight: 700; line-height: 15px; text-align: center;
    }
    .icon-count { position: relative; display: inline-flex; }
    .account-link.search-jump { order: 1; }
    .account-link.saved { order: 3; }
    .account-link:not(.saved):not(.search-jump) { order: 2; }
}

.auc-hero { text-align: center; padding: 26px 20px; border-radius: 6px;
    background: linear-gradient(135deg, #16233f, #22355c); color: #fff; }
.auc-hero h1 { margin: 0 0 6px; font-size: 26px; font-weight: 700; color: #fff; }
.auc-hero p { margin: 0 auto; font-size: 14.5px; color: #dbe2ee; max-width: 560px; }
.auc-hero .ctry-cta-primary { display: inline-block; margin-top: 12px; }
.auc-intro { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 620px) { .auc-intro { grid-template-columns: 300px 1fr; } }
.auc-intro img { width: 100%; height: auto; border-radius: 4px; display: block; }
.auc-call { text-align: center; padding: 22px 0 6px; }
.auc-call p { font-size: 15px; font-weight: 700; color: #111827; margin: 0 0 12px; }
.auc-adv { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 620px) { .auc-adv { grid-template-columns: 1fr 1fr; } }
.auc-adv-item { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.auc-adv-item svg { color: #6b7280; width: 26px; height: 26px; }
.auc-faq-item summary { list-style: none; cursor: pointer; position: relative; padding-right: 26px; }
.auc-faq-item summary::-webkit-details-marker { display: none; }
.auc-faq-item summary::after { content: "+"; position: absolute; right: 4px; top: -2px; font-size: 17px; color: #6b7280; }
.auc-faq-item[open] summary::after { content: "\2212"; }
.auc-answer ul { margin: 6px 0 0; padding-left: 18px; }

.auc-call { border-top: 0; padding: 22px 0 6px; text-align: center; }
.contact-form { border-top: 0; padding-top: 0; }
.contact-errors { border: 1px solid #f3c2c6; border-left: 2px solid #c1121f; padding: 10px 12px; }

/* ------------------------------------------------------------- auto parts page */
.ctry-list { margin: 8px 0 12px; padding-left: 18px; }
.ctry-list li { margin-bottom: 4px; }
.ctry-strong { font-weight: 700; color: #111827 !important; margin-top: 12px !important; }
.ctry-sub { margin: 16px 0 4px; font-size: 13px; font-weight: 700; color: #111827; }
.ctry-cols { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .ctry-cols { grid-template-columns: 1fr 1fr; } }
.ctry-card { background: #fff; border: 1px solid #e9edf2; border-radius: 5px; padding: 14px 16px; }
.ctry-card h3 { margin: 0 0 6px; font-size: 13.5px; font-weight: 700; color: #111827; }
.ctry-card p { margin: 0; font-size: 12.5px; color: #3f4753; line-height: 1.65; }
.ctry-card ul { margin: 0; padding-left: 17px; }
.ctry-card li { font-size: 12.5px; color: #3f4753; line-height: 1.7; }
.ctry-parts-shots { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .ctry-parts-shots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ctry-parts-shots figure { margin: 0; }
.ctry-parts-shots img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; display: block; }
.ctry-parts-shots figcaption { padding-top: 6px; }
.ctry-parts-shots b { display: block; font-size: 12.5px; color: #111827; }
.ctry-parts-shots span { font-size: 12px; color: #6b7280; }

/* STATUS PILLS ON THE CLIENT SIDE.
   The base .pill rule lived only in assets/admin.css, which the public site never loads, so
   every status here — Sent, Accepted, Expired, pending — printed as plain grey text and the
   reader had to parse a sentence to find the state. Defined once, for the pages that use it. */
.pill {
    display: inline-block; padding: 2px 8px; border-radius: 999px;
    font-size: 11px; font-weight: 600; line-height: 1.62; white-space: nowrap;
    /* #e5e7eb, not #f3f4f6: the quote and account pages are already off-white, and a pill
       the same shade as the page behind it is just a word with extra padding. */
    background: #e5e7eb; color: #374151;
}
.pill.sent, .pill.held, .pill.pending { background: #dbeafe; color: #1e40af; }
.pill.accepted, .pill.converted, .pill.paid, .pill.part_paid, .pill.partial, .pill.active,
.pill.replied, .pill.reserved { background: #dcfce7; color: #166534; }
.pill.declined, .pill.spam { background: #fee2e2; color: #991b1b; }
/* An order that has been paid for, shipped or delivered is not a hold any more: it is
   finished business, and it should not share the blue of "waiting". */
.pill.shipped, .pill.delivered { background: #e0e7ff; color: #3730a3; }
.pill.cancelled, .pill.expired { background: #f3f4f6; color: #6b7280; }
.pill.is-warn { background: #fef2f2; color: #b91c1c; }

/* The invoice summary, under the records. Three figures that were the table's footer row. */
.acct-totals {
    display: grid; gap: 2px; margin: 4px 0 0;
    border-top: 1px solid #e5e7eb;
}
.acct-totals div {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
    padding: 8px 2px;
}
.acct-totals dt { font-size: 12.5px; color: #6b7280; }
.acct-totals dd {
    margin: 0; font-size: 13.5px; font-weight: 600; color: #111827;
    font-variant-numeric: tabular-nums; white-space: nowrap;
}
.acct-totals dd.is-due { color: #b45309; }
@media (max-width: 719px) {
    .acct-totals { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 4px 12px; margin-top: 10px; }
}

/* QUOTES AND INVOICES, as records.
   Both lists used to be tables. The quotes one had no vehicle column at all — four prices
   and no indication of what they were for — and the invoices one had seven columns, so on a
   phone the due amount ran off the screen and every figure was clipped mid-number. One car,
   one document, one figure: a record per row reads the same at 360px and at 1200px.

   Below 720px the account has no white sheet — content sits on the page's grey — so each
   quote brings its own card. Above it, the sheet is already white and the quotes are rows
   divided by a hairline instead of eleven borders. */
.acct-lead {
    margin: 0; font-size: 13px; color: #6b7280; line-height: 1.5;
}
.acct-records { display: grid; }
.acct-record {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 12px 14px;
}
.acct-record .acct-mini-note { color: #6b7280; }
.acct-record-total {
    font-size: 15px; font-weight: 700; color: #111827;
    font-variant-numeric: tabular-nums;
}
.acct-record-when { display: block; margin-top: 1px; font-size: 11.5px; color: #9ca3af; }
.acct-record-when.is-soon { color: #b45309; font-weight: 600; }
.acct-record-when.is-out { color: #b91c1c; font-weight: 600; }
.acct-record.is-out .acct-mini-photo img { filter: grayscale(1); opacity: .5; }
.acct-record.is-out .acct-record-total { color: #9ca3af; }
@media (max-width: 719px) {
    .acct-lead { padding: 2px 2px 10px; }
    .acct-records { gap: 10px; padding-bottom: 4px; }
    /* The right-hand cell folds under the car, so it becomes one line: money, state, then
       the action at the far end. Full-width buttons turned four quotes into eight rows. */
    .acct-record { padding: 12px; }
    .acct-record .acct-mini-right {
        flex-direction: row; flex-wrap: wrap; align-items: center;
        justify-content: flex-start; gap: 6px 10px; text-align: left;
    }
    .acct-record .acct-mini-right .btn-quiet { margin-left: auto; }
}
@media (min-width: 720px) {
    .acct-lead { padding: 0 2px 4px; }
    /* Inside the white sheet: rows, not cards. */
    .acct-record {
        background: transparent; border: 0; border-radius: 0;
        border-bottom: 1px solid #f3f4f6; padding: 12px 2px;
    }
    .acct-record:last-child { border-bottom: 0; }
}

/* The paragraph a saved category carries. Sits under the heading, above the filter card,
   and reads like the destination note rather than a second heading. */
.cat-intro {
    margin: -4px 0 14px;
    max-width: 78ch;
    font-size: 14px; line-height: 1.6; color: #4b5563;
}


/* ------------------------------------------------------------ mobile header: less air
   On a 390px phone the header was 121px tall before the page began: 8px of padding above
   and below a 36px logo row, a 55px account row and a 42px search row, with 8px of gap
   between each. Nothing in it needed that much room — the tap targets are still 38px.
   Only below 768px: the desktop bar measures fine and is not touched. */
@media (max-width: 767px) {
    .header-row { padding-top: 4px; padding-bottom: 6px; gap: 6px; }
    .account-links { gap: 0; }
    .account-link { min-height: 38px; padding: 5px 7px; gap: 5px; }
    .account-link svg { width: 22px; height: 22px; }
    .search-wrap { margin-top: -2px; }
}

/* The port photograph on About, between the introduction and the list of what we ship.
   The document is a column of text; one wide picture breaks it without turning it into a
   brochure, and the caption says what you are looking at rather than repeating the alt. */
.about-photo { margin: 6px 0 26px; }
.about-photo img { width: 100%; height: auto; border-radius: 8px; display: block; }
.about-photo figcaption {
    margin-top: 7px; font-size: 12.5px; color: #6b7280;
}

/* Help page — the same questions the homepage answers, on a page of their own. */
.faq-item { border-bottom: 1px solid #e5e7eb; padding: 18px 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-q { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: #111827; }
.faq-a { margin: 0 0 6px; font-size: 14px; line-height: 1.65; color: #4b5563; max-width: 820px; }

/* Legal pages — Terms, Privacy, Cookies, Disclaimer.
   One measure, one rhythm: a clause is a paragraph with a number hanging beside it, so the eye
   can find 9.2 without reading 9.1 first. The tables are the cancellation schedule and the two
   cookies, and they are the only reason a table appears in a document on this site. */
.legal { max-width: 820px; }
.legal h1 { font-size: 26px; letter-spacing: -.02em; margin: 2px 0 4px; }
.legal h2 { margin: 30px 0 10px; font-size: 17px; font-weight: 600; color: #111827; }
.legal h3 { margin: 20px 0 8px; font-size: 14.5px; font-weight: 600; color: #1f2937; }
.legal-updated { margin: 0 0 18px; font-size: 12.5px; color: #6b7280; }

.legal-p,
.legal-list li {
    margin: 0 0 12px;
    font-size: 14.5px;
    line-height: 1.72;
    color: #374151;
}
.legal-p a,
.legal-list a { color: #b91c1c; text-decoration: underline; text-underline-offset: 2px; }

/* The number sits in its own column so paragraphs start at the same left edge whether they are
   numbered or not — an unnumbered paragraph must not look like a different kind of thing. */
.legal-n {
    display: inline-block;
    min-width: 30px;
    margin-right: 8px;
    font-variant-numeric: tabular-nums;
    color: #9ca3af;
}

.legal-list { margin: 0 0 14px; padding: 0 0 0 34px; list-style: disc; }
.legal-list li { margin-bottom: 7px; }
.legal-list li::marker { color: #9ca3af; }

.legal-table-wrap { overflow-x: auto; margin: 4px 0 18px; }
.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 320px;
}
.legal-table th,
.legal-table td {
    text-align: left;
    padding: 9px 12px;
    border: 1px solid #e5e7eb;
    vertical-align: top;
    line-height: 1.6;
}
.legal-table th { background: #f9fafb; font-weight: 600; color: #374151; }
.legal-table code { font-size: 13px; background: #f3f4f6; padding: 1px 5px; border-radius: 4px; }

.legal-note {
    margin: 0 0 14px;
    padding: 10px 14px;
    border-left: 3px solid #fca5a5;
    background: #fef2f2;
    font-size: 14px;
    line-height: 1.65;
    color: #7f1d1d;
}

.legal-toc { margin: 22px 0 8px; padding: 16px 18px; background: #f9fafb; border: 1px solid #eceff2; border-radius: 8px; }
.legal-toc h2 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 28px; }
.legal-toc li { margin: 0 0 6px; font-size: 13.5px; line-height: 1.5; break-inside: avoid; }
.legal-toc a { color: #374151; text-decoration: none; }
.legal-toc a:hover { color: #b91c1c; text-decoration: underline; }

.legal-foot {
    margin: 40px 0 0;
    padding-top: 18px;
    border-top: 1px solid #eceff2;
    font-size: 13px;
    line-height: 1.7;
    color: #6b7280;
}
.legal-foot a { color: #b91c1c; text-decoration: underline; }

@media (max-width: 640px) {
    .legal h1 { font-size: 22px; }
    .legal-toc ol { columns: 1; }
    .legal-n { min-width: 30px; }
    .legal-list { padding-left: 18px; }
}
