/* Layout and components, styled after the CW Asset Finance site. Colours, type and radii come from theme.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--body); font-family: var(--font); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--green); }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { color: var(--ink); font-family: var(--font); font-weight: 800; letter-spacing: -.016em; line-height: 1.08; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
input[type=range] { accent-color: var(--accent); width: 100%; min-height: 28px; }
input[type=checkbox] { accent-color: var(--green); width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.wrap { width: min(var(--max), 100% - 44px); margin-inline: auto; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 60; }
.skip:focus { left: 8px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Buttons. The right edge is cut on the CWAF mark's angle (see theme.css); full width buttons keep a plain radius. */
.btn { --pad-y: 15px; --slant: calc((1em + var(--pad-y) * 2) * var(--slant-ratio));
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap);
  padding: var(--pad-y) 38px var(--pad-y) 26px; border: 0; border-radius: 8px; cursor: pointer;
  font: 800 15.5px/1 var(--font); text-decoration: none; text-align: center;
  background: var(--green); color: #fff; box-shadow: inset 0 -3px 0 rgba(0,0,0,.22);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
  transition: background .16s, transform .08s; }
.btn:hover { background: var(--green-lt); color: #fff; }
.btn:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 rgba(0,0,0,.22); }
.btn:focus-visible { clip-path: none; }
.btn-ink { background: var(--green); color: #fff; }
.btn-accent { background: var(--accent); color: var(--green-2); box-shadow: inset 0 -3px 0 var(--accent-edge); }
.btn-accent:hover { background: #f8c647; color: var(--green-2); }
.btn-line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-input); clip-path: none; padding-right: 26px; }
.btn-line:hover { background: var(--sand); color: var(--ink); }
.btn-block { display: flex; width: 100%; clip-path: none; padding-right: 26px; }
.btn-lg { --pad-y: 17px; font-size: 16.5px; }
.link-cta { font-weight: 800; color: var(--green); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; padding: 10px 0; display: inline-block; }

/* Header: the same bar as cwassetfinance.co.uk (Conor, 22 Nov 2026). Logo, two <details> dropdowns, For dealers,
   Saved, the number behind a rule and the gold button. Sticky on desktop; below 860px it folds into one menu button. */
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: relative; z-index: 40; }
@media (min-width: 861px) { .site-header { position: sticky; top: 0; } }
.site-header .wrap { padding: 14px 0; display: flex; align-items: center; gap: 20px; }
.brand { text-decoration: none; display: flex; align-items: center; gap: 10px; flex: none; }
.brand picture, .brand img { display: block; flex: none; }
.brand img { height: 44px; width: auto; max-width: 100%; }
.main-nav { margin-left: auto; display: flex; align-items: center; gap: 22px; position: relative; }
.main-nav > a:not(.btn) { font-size: 14.5px; font-weight: 600; color: var(--body); text-decoration: none; white-space: nowrap; }
.main-nav > a:not(.btn):hover, .main-nav > a[aria-current=page] { color: var(--green); }
.main-nav > a[aria-current=page] { box-shadow: inset 0 -2px 0 var(--accent); }
.main-nav .nav-saved { font-size: 14.5px; font-weight: 600; color: var(--body); padding: 0; min-height: 0; }
.main-nav .tel { font-weight: 800; color: var(--ink); font-size: 15px; padding-left: 20px; margin-left: 2px; border-left: 1px solid var(--line); }
.main-nav .tel:hover { color: var(--green); }
.main-nav .btn { --pad-y: 12px; font-size: 14.5px; white-space: nowrap; }

/* Dropdowns */
.mega { position: relative; }
.mega > summary { list-style: none; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--body); padding: 6px 2px;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.mega > summary::-webkit-details-marker { display: none; }
.mega > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px); }
.mega[open] > summary, .mega > summary:hover, .mega[data-current] > summary { color: var(--green); }
.mega > summary:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 3px; }
.mega-panel { position: absolute; z-index: 60; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  width: max-content; min-width: 280px; max-width: min(640px, calc(100vw - 32px)); background: #fff; border-radius: var(--r);
  box-shadow: 0 0 0 1px var(--line), 0 26px 50px -22px rgba(20,48,36,.42); padding: 22px 24px; }

.mega-in { display: grid; gap: 18px 26px; grid-template-columns: repeat(2, 1fr); }
.mega-in-1 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .mega-in-3 { grid-template-columns: repeat(3, auto); } .mega-in-2 { grid-template-columns: repeat(2, auto); } }
.mcol h3 { font-size: 13px; font-weight: 800; color: var(--ink); margin: 0 0 8px; }
.mcol ul { list-style: none; margin: 0; padding: 0; }
.mcol li a { display: block; padding: 6px 0; font-size: 14.5px; color: var(--body); text-decoration: none; }
.mcol li a:hover { color: var(--green); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.mega-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
/* Sell your horsebox: in the bar on wide screens, in the Browse menu's foot where the bar would be too full */
.mega-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.mega-sell { display: none; }
@media (max-width: 1180px) { .main-nav > a.nav-sell { display: none; } .mega-sell { display: inline; } }
.mega-foot a { font-size: 13.5px; font-weight: 700; color: var(--green); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); }

/* Phone menu: one button, no script */
.navmob { display: none; }
@media (max-width: 1080px) { .main-nav .tel { display: none; } }
@media (max-width: 860px) {
  .site-header .wrap { padding: 10px 0; gap: 12px; }
  .brand img { height: 36px; }
  .main-nav { gap: 10px; }
  .main-nav > a:not(.btn):not(.nav-saved), .mega { display: none; }
  .navmob { display: block; }
  .navmob summary { list-style: none; cursor: pointer; width: 42px; height: 40px; display: flex; flex-direction: column; justify-content: center;
    gap: 5px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
  .navmob summary::-webkit-details-marker { display: none; }
  .navmob summary i { display: block; height: 2px; background: var(--green); border-radius: 2px; }
  .navmob[open] summary { background: var(--mint); }
  .navmob-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line); padding: 18px 22px 24px; max-height: calc(100vh - 64px); overflow-y: auto; z-index: 60;
    box-shadow: 0 18px 30px -22px rgba(20,48,36,.5); }
  .navmob-panel h3 { font-size: 13px; font-weight: 800; color: var(--ink); margin: 18px 0 6px; }
  .navmob-panel .mega-in { display: block; }
  .navmob-panel ul { list-style: none; margin: 0; padding: 0; }
  .navmob-panel li a { display: block; padding: 7px 0; font-size: 14.5px; color: var(--body); text-decoration: none; }
  .main-nav .navmob-panel a.navmob-call { display: block; text-align: center; font-weight: 800; font-size: 16px; padding: 12px;
    border-radius: var(--r-sm); background: var(--green); color: #fff; text-decoration: none; }
  .navmob-flat { display: grid; gap: 2px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
  .navmob-flat a { padding: 9px 0; font-weight: 700; font-size: 15px; color: var(--green); text-decoration: none; }
  /* The panel spans the header, so the header is its offset parent */
  .site-header .wrap, .main-nav { position: static; }
}
@media (max-width: 560px) {
  .site-header .wrap { gap: 8px; }
  /* The badge gives way first, so the button and the menu always fit on a 360px phone */
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand img, .brand svg { height: auto; max-height: 32px; max-width: 100%; }
  .main-nav { flex: none; gap: 8px; }
  .main-nav .btn { --pad-y: 10px; padding-inline: 12px 17px; font-size: 13.5px; }
}

/* Drone video heroes. Copy sits on the footage to the left, over a scrim weighted the same way. */
.vid-hero { position: relative; overflow: hidden; background: var(--green-2); color: #fff; isolation: isolate; }
.vid { position: absolute; inset: 0; z-index: -1; background: var(--green-2) var(--poster) center 58% / cover no-repeat; }
.vid video { width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.vid::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(14,33,23,.92) 0%, rgba(14,33,23,.84) 36%, rgba(14,33,23,.55) 64%, rgba(14,33,23,.25) 100%); }
@media (max-width: 760px) { .vid::after { background: linear-gradient(to bottom, rgba(14,33,23,.78), rgba(14,33,23,.9)); } }
@media (prefers-reduced-motion: reduce) { .vid video { display: none; } }
.vid-hero h1 { color: #fff; }
.vid-hero .lead { color: #dde8e2; }
.vid-hero .eyebrow { color: var(--accent); }
.vid-hero .link-cta { color: #fff; }
.vid-hero .cred { color: #c5d4cc; font-size: 12.5px; line-height: 1.5; margin: 14px 0 0; max-width: 60ch; }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--accent-ink); margin: 0 0 12px; }
.lead { font-size: clamp(16.5px, 1.7vw, 18.5px); line-height: 1.6; color: var(--muted); }

.hero .wrap { padding: clamp(48px, 7vw, 96px) 0 clamp(44px, 6vw, 80px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero h1 { font-size: clamp(36px, 5.6vw, 60px); max-width: 15ch; }
.hero .lead { margin: 18px 0 0; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 28px; }

.afford { flex: 1 1 380px; min-width: 0; max-width: 460px; background: #fff; color: var(--body); border-radius: var(--r-lg); padding: 26px; box-shadow: 0 24px 48px -12px rgba(0,0,0,.45); }
.afford-title { margin: 0; font-weight: 800; font-size: 21px; color: var(--ink); letter-spacing: -.01em; }
.afford label { display: block; margin: 16px 0 4px; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.big-money { font-weight: 800; font-size: 46px; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.big-money small { font-size: 17px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.afford input[type=range] { margin: 14px 0 8px; }
.pale-box { background: var(--accent-pale); border-radius: var(--r-sm); padding: 14px 16px; }
.pale-box p { margin: 0; }
.pale-box .small { font-size: 13px; margin-top: 4px; color: var(--accent-ink); }
.afford .btn { margin-top: 16px; }

/* Green trust strip under the hero */
.trust { background-color: var(--green); background-image: linear-gradient(150deg, var(--green-hi), var(--green) 55%, var(--green-2)); }
.trust ul { list-style: none; margin: 0 auto; padding: 16px 0; display: grid; gap: 14px 26px; grid-template-columns: 1fr 1fr; }
@media (min-width: 820px) { .trust ul { grid-template-columns: repeat(4, 1fr); } }
.trust li { display: flex; flex-direction: column; gap: 1px; padding-left: 13px; border-left: 3px solid var(--accent); }
.trust li:nth-child(even) { border-left-color: var(--mint-2); }
.trust b { font-size: 14.5px; font-weight: 800; color: #fff; letter-spacing: -.01em; }
.trust span { font-size: 12.5px; color: var(--on-dark); line-height: 1.4; }

/* Sections */
.section { padding: clamp(36px, 4vw, 56px) 0; }
.section-h { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 20px; }
.section-sub { margin: -8px 0 22px; color: var(--muted); max-width: 60ch; }
.row-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 20px; }
.row-between .section-h { margin: 0; }
.row-between p { margin: 0; font-size: 14px; color: var(--muted); }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 14px; }
@media (min-width: 1081px) { .tiles-balanced { grid-template-columns: repeat(var(--cols, 5), 1fr); } }
.tile { text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-height: var(--tap); transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--green); transform: translateY(-2px); }
.tile img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sand); }
.tile:not(:has(img)) { justify-content: center; }
.tile div { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.tile b { font-weight: 800; font-size: 16.5px; color: var(--ink); letter-spacing: -.01em; }
.tile span { font-size: 13px; color: var(--muted); }
.tile .count { margin-top: 4px; font-weight: 700; color: var(--accent-ink); }

/* Machine cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.cards.compact { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #cfc7b8; box-shadow: 0 14px 30px -22px rgba(20,48,36,.5); }
.card[hidden] { display: none; }
.card > a { text-decoration: none; color: var(--body); display: flex; flex-direction: column; flex: 1; }
.card > a:hover h3, .card-link:hover h3 { color: var(--green); }
.card-link { text-decoration: none; color: inherit; }
.thumb { aspect-ratio: 444 / 230; background: var(--sand); position: relative; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .note { position: absolute; bottom: 8px; right: 10px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(14,33,23,.78); padding: 3px 9px; border-radius: 999px; }
.thumb .note.plain { background: rgba(255,255,255,.88); color: var(--muted); }
.thumb .cat { position: absolute; top: 12px; left: 12px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-meta { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.card h3 { font-size: 18.5px; line-height: 1.22; }
.compact .card h3 { font-size: 17px; }
.price-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: auto; }
.mo-box { background: var(--accent-pale); border-radius: var(--r-sm); padding: 8px 12px; }
.mo { font-weight: 800; font-size: 26px; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.mo small { font-size: 14px; font-weight: 700; letter-spacing: 0; }
.mo.mini { font-size: 24px; }
.mo-suffix { font-size: 13px; font-weight: 700; color: var(--ink); }
.mini-cash { font-size: 14px; }
.mo-terms { font-size: 12px; color: var(--accent-ink); margin-top: 4px; }
.mo-total { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cash { text-align: right; }
.cash b { display: block; font-size: 16px; color: var(--ink); }
.cash span { font-size: 12px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 700; background: var(--sand); color: var(--body); padding: 5px 10px; border-radius: 999px; }
.tag.good { background: var(--mint); color: var(--green); }
.card-foot { padding: 10px 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.card-foot a { font-weight: 700; padding: 8px 0; }

/* Closing band: green, with the CWAF diagonal as its trailing edge */
.cta-band { position: relative; background-color: var(--green); background-image: linear-gradient(158deg, var(--green-hi) 0%, var(--green) 46%, var(--green-2) 100%); color: #fff; border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 48px); padding-right: clamp(28px, 12vw, 160px); display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-band { clip-path: polygon(0 0, 100% 0, calc(100% - 110px) 100%, 0 100%); } }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); }
.cta-band p { color: var(--on-dark); font-size: 17px; line-height: 1.6; margin: 14px 0 0; max-width: 54ch; }
.cta-band .copy { flex: 1 1 460px; min-width: 0; }
.cta-band ul { flex: 1 1 300px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.cta-band li { padding-left: 12px; border-left: 3px solid var(--accent); font-weight: 700; font-size: 15px; }

/* How it works */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.step .num { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--green-2); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 19px; }
.step p { margin: 0; color: var(--muted); line-height: 1.6; }

.panel { background: var(--sand); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); }
.cta-actions, .quote-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin-top: 18px; }
.cta-actions .whatsapp-link { color: #fff; }
.cta-actions .whatsapp-link:focus-visible { outline-color: var(--accent); }
/* Fleet band link to the CWAF large deals guide (21 Nov 2026): looks like the WhatsApp link, without its tracking */
.cta-text-link { display: inline-flex; align-items: center; min-height: var(--tap); font-weight: 800; color: #fff; text-underline-offset: 3px; }
.dealer-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 680px) { .dealer-band { grid-template-columns: 1fr; gap: 18px; } }
.dealer-band h2 { font-size: clamp(24px, 3vw, 32px); }
.dealer-band p { margin: 12px 0 18px; color: var(--muted); line-height: 1.6; }
.dealer-band img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.kicker { margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--accent-ink); }

/* Footer, as CWAF: sand with the legal block under a rule */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); margin-top: 32px; }
.site-footer .wrap { padding: 36px 0 30px; font-size: 13.5px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; padding-bottom: 22px; }
.foot-call { font-size: 21px; font-weight: 800; color: var(--ink); text-decoration: none; }
.foot-call:hover { color: var(--green); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 14px; }
.footer-links a, .footer-links button { color: var(--body); padding: 8px 0; font-weight: 600; }
.who { margin: 0 0 6px; font-weight: 700; color: var(--ink); }
.foot-legal { border-top: 1px solid var(--line); padding-top: 20px; }
.foot-legal p { font-size: 12px; line-height: 1.65; color: #556159; margin: 0 0 10px; max-width: 110ch; }
.linklike { background: none; border: 0; font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* Browse */
.vid-hero.short .wrap { padding: clamp(36px, 5vw, 64px) 0; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.vid-hero.short .hero-copy { flex: 1 1 440px; }
.vid-hero.short h1 { font-size: clamp(32px, 4.6vw, 48px); }
.vid-hero.short .lead { margin: 10px 0 0; max-width: 52ch; }
.budget-box { flex: 1 1 340px; min-width: 0; max-width: 420px; background: rgba(14,33,23,.72); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: 18px 22px; }
.budget-box label { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 700; color: #fff; }
.budget-box output { font-weight: 800; font-size: 28px; color: var(--accent); letter-spacing: -.02em; }
.budget-box input { margin-top: 10px; }
.range-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--on-dark); }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; min-width: 0; flex: 1 1 auto; }
.pills::-webkit-scrollbar { display: none; }
.pills .pill { flex: 0 0 auto; }
.pill { font: inherit; font-size: 14px; font-weight: 700; padding: 10px 16px; border-radius: 999px; cursor: pointer; min-height: var(--tap); background: #fff; color: var(--ink); border: 1px solid var(--line-input); text-decoration: none; display: inline-flex; align-items: center; }
.pill:hover { border-color: var(--green); }
.pill[aria-current=page] { background: var(--green); color: #fff; border-color: var(--green); }
.browse-main { padding: 20px 0 24px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.filters { flex: 1 1 260px; max-width: 300px; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 620px) { .filters { max-width: none; } }
.filters fieldset { border: 0; margin: 0; padding: 0; }
.filters legend, .filters .h { margin: 0 0 8px; padding: 0; font-size: 17px; font-weight: 800; color: var(--ink); display: block; }
.checks { display: flex; flex-direction: column; font-size: 15px; }
.checks label { display: flex; gap: 10px; align-items: center; cursor: pointer; min-height: var(--tap); }
.text-in { width: 100%; padding: 11px 13px; border: 1px solid var(--line-input); border-radius: var(--r-sm); font: inherit; background: #fff; color: var(--ink); min-height: var(--tap); }
.text-in:focus { border-color: var(--green); outline: 2px solid var(--mint-2); outline-offset: 0; }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.side-cta { background: var(--mint); border-radius: var(--r-sm); padding: 16px; }
.side-cta p { margin: 0 0 6px; font-size: 14px; line-height: 1.5; }
.side-cta p:first-child { font-weight: 800; color: var(--ink); font-size: 15px; }
.side-cta a { font-weight: 800; font-size: 14px; }
.results { flex: 999 1 560px; min-width: 0; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.results-bar p { margin: 0; color: var(--ink); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { padding: 10px; border: 1px solid var(--line-input); border-radius: var(--r-sm); font: inherit; background: #fff; color: var(--ink); min-height: var(--tap); }
.empty { background: #fff; border: 1px dashed var(--line-input); border-radius: var(--r); padding: 40px; text-align: center; }
.empty p { margin: 0 0 8px; }
.empty .h { font-weight: 800; font-size: 18px; color: var(--ink); }
.footnote { margin: 20px 0 0; font-size: 13px; color: var(--muted); }
.js .nojs-only { display: none; }

/* Machine page */
.crumbs { padding-top: 20px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.listing-main { padding: 20px 0 56px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.listing-col { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gallery .hero-img { grid-column: span 4; aspect-ratio: 16 / 9; max-height: 460px; background: var(--sand); border-radius: var(--r); position: relative; overflow: hidden; }
.gallery .hero-img img { width: 100%; height: 100%; object-fit: cover; }
.gallery .hero-img .note { position: absolute; bottom: 14px; right: 16px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(14,33,23,.78); padding: 4px 11px; border-radius: 999px; }
.gallery button.th { height: 88px; background: var(--sand); border-radius: var(--r-sm); border: 2px solid transparent; padding: 0; overflow: hidden; cursor: pointer; }
.gallery button.th[aria-current=true] { border-color: var(--green); }
.gallery button.th img { width: 100%; height: 100%; object-fit: cover; }
.gallery .more { height: 88px; background: var(--mint); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--green); text-decoration: none; text-align: center; padding: 6px; }
.gallery .more.wide { grid-column: span 4; height: auto; min-height: var(--tap); }
.listing-title h1 { font-size: clamp(30px, 4.4vw, 44px); }
.listing-title .meta { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.listing-title .cashline { margin: 12px 0 0; font-size: 18px; color: var(--ink); }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.box h2 { margin: 0 0 14px; font-size: 20px; }
.box h2 + .sub { margin: -8px 0 14px; font-size: 14px; color: var(--muted); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0 32px; font-size: 15px; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.flags { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; margin: 0; padding: 0; list-style: none; }
.flags li { display: flex; gap: 12px; align-items: flex-start; }
.flags li::before { content: '?'; flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--accent-pale); color: var(--accent-ink); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.desc { white-space: pre-line; color: var(--body); font-size: 15px; margin: 0; }
.tracking { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; background: var(--mint); border-color: var(--mint-2); }
.tracking h2 { margin-bottom: 4px; }
.tracking p { margin: 0; font-size: 15px; color: var(--body); }
.tracking a { font-weight: 800; padding: 10px 0; }
.sold-banner { background: var(--green); color: #fff; border-radius: var(--r); padding: 18px 22px; }
.sold-banner p { margin: 4px 0 0; color: var(--on-dark); }
.sold-banner a { color: var(--accent); }

.listing-side { flex: 1 1 360px; min-width: min(300px, 100%); max-width: 440px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 1000px) { .listing-side { position: sticky; top: 92px; } }
/* The finance builder is the CWAF green feature card */
.builder { background-color: var(--green); background-image: linear-gradient(158deg, var(--green-hi) 0%, var(--green) 46%, var(--green-2) 100%); color: #fff; border-radius: var(--r-lg); padding: 24px; }
.builder .label { margin: 0; font-size: 14px; font-weight: 700; color: var(--on-dark); }
.builder .figure { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 2px; flex-wrap: wrap; }
.builder .figure output { font-weight: 800; font-size: 52px; letter-spacing: -.03em; line-height: 1.05; color: #fff; }
.builder .figure span { font-size: 16px; color: var(--on-dark); }
.builder .terms-line { margin: 0 0 20px; font-size: 14px; color: var(--on-dark); }
.builder .dep-label { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; }
.builder input[type=range] { margin: 8px 0 18px; }
.term-btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 18px; border: 0; padding: 0; }
.term-btns legend { font-size: 15px; font-weight: 700; margin-bottom: 8px; padding: 0; }
.term-btns label { position: relative; }
.term-btns input { position: absolute; opacity: 0; inset: 0; }
.term-btns span { display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; min-height: var(--tap); border-radius: var(--r-sm); cursor: pointer; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22); color: #fff; }
.term-btns input:checked + span { background: var(--accent); color: var(--green-2); border-color: var(--accent); }
.term-btns input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.vat-toggle { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; padding: 12px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-sm); }
.vat-toggle input { margin-top: 2px; accent-color: var(--accent); }
.vat-toggle small { font-size: 13px; color: var(--on-dark); }
.builder .note-dark { color: var(--on-dark); font-size: 13px; margin: 0; }
.sums { margin: 18px 0 0; border-top: 1px solid rgba(255,255,255,.16); padding-top: 14px; display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.sums div { display: flex; justify-content: space-between; gap: 10px; }
.sums dt { color: var(--on-dark); }
.sums dd { margin: 0; font-weight: 800; }
.builder .btn { margin-top: 12px; }
.builder .btn-accent { margin-top: 20px; }
.builder .btn-ink { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.builder .btn-ink:hover { background: rgba(255,255,255,.1); }
.builder .after { margin: 12px 0 0; font-size: 13px; color: var(--on-dark); text-align: center; }
.builder :focus-visible { outline-color: #fff; }
.small-print { margin: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.side-note { background: var(--sand); border-radius: var(--r); padding: 18px; font-size: 14px; line-height: 1.55; }
.side-note p { margin: 0; }
.side-note p:first-child { font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.side-note p + p { color: var(--muted); }

/* Apply */
.apply-main { width: min(1080px, 100% - 44px); margin: 0 auto; padding: 40px 0 64px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.apply-form { flex: 999 1 560px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 34px); }
.apply-side { flex: 1 1 300px; min-width: min(260px, 100%); max-width: 360px; display: flex; flex-direction: column; gap: 16px; }
.progress-label { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--muted); }
.progress { height: 6px; background: var(--sand); border-radius: 3px; overflow: hidden; margin-bottom: 28px; }
.progress div { height: 100%; background: var(--green); border-radius: 3px; transition: width .2s; }
.no-js-progress { display: none; }
.js .no-js-progress { display: block; }
.apply-step { border: 0; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.js .apply-step { margin: 0; }
.js .apply-step[hidden] { display: none; }
.apply-step legend.h, .form-h { font-weight: 800; font-size: clamp(28px, 4vw, 36px); letter-spacing: -.02em; line-height: 1.1; color: var(--ink); padding: 0; margin: 0 0 16px; }
.q { margin: 0; font-weight: 700; color: var(--ink); }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 10px; }
.opts.stack { grid-template-columns: 1fr; }
.opt { position: relative; display: block; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt span { display: block; text-align: left; padding: 15px 18px; border-radius: var(--r-sm); cursor: pointer; min-height: 52px; font-size: 16px; font-weight: 700; color: var(--ink); background: #fff; border: 2px solid var(--line); }
.opt span:hover { border-color: var(--line-input); }
.opt span small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; font-weight: 400; }
.opt input:checked + span { background: var(--mint); border-color: var(--green); }
.opt input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.field label { display: block; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--body); }
.consent input { margin-top: 2px; }
.error { color: var(--error); font-size: 14px; font-weight: 700; margin: 0; }
.form-errors { background: #fbeceb; border: 1px solid #f0c7c4; color: var(--error); border-radius: var(--r-sm); padding: 12px 16px; margin: 0 0 18px; }
.apply-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.done { display: flex; flex-direction: column; gap: 16px; padding: 12px 0; }
.done img { width: 100%; max-width: 360px; border-radius: var(--r); }
.done h1 { font-size: clamp(30px, 4vw, 40px); }
.done p { margin: 0; font-size: 17px; line-height: 1.6; max-width: 52ch; }
.summary { background-color: var(--green); background-image: linear-gradient(158deg, var(--green-hi) 0%, var(--green) 46%, var(--green-2) 100%); color: #fff; border-radius: var(--r-lg); padding: 22px; }
.summary .h { margin: 0 0 14px; font-weight: 800; font-size: 18px; }
.summary dl { margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.summary dt { color: var(--on-dark); }
.summary dd { margin: 0; font-weight: 700; font-size: 15px; }
.guide { margin-top: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-sm); padding: 14px; }
.guide > span { display: block; font-size: 13px; color: var(--on-dark); }
.guide b { font-weight: 800; font-size: 30px; color: var(--accent); letter-spacing: -.02em; }
.guide small { font-size: 14px; }
.hp { position: absolute; left: -5000px; }

/* Prose pages */
.prose { width: min(760px, 100% - 44px); margin: 0 auto; padding: 48px 0 64px; }
.prose h1 { font-size: clamp(32px, 4.4vw, 44px); margin-bottom: 16px; }
.prose h2 { font-size: 22px; margin: 32px 0 8px; }
.prose p, .prose li { line-height: 1.7; }
.placeholder { background: var(--accent-pale); padding: 0 4px; border-radius: 4px; }
.seo-nav h2 { font-size: 18px; margin: 28px 0 12px; }
.seo-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.seo-links a { display: inline-flex; min-height: var(--tap); align-items: center; padding: 8px 14px; background: #fff; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 700; color: var(--ink); }
.seo-links a:hover { border-color: var(--green); color: var(--green); }

/* Cookie banner */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgba(0,0,0,.18); padding: 18px; font-size: 14px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0 0 12px; }
.cookie .btns { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie .btn { --pad-y: 12px; font-size: 14.5px; }

@media (max-width: 560px) {
  .wrap, .apply-main, .prose { width: calc(100% - 32px); }
  .afford, .panel { padding: 20px; }
  .big-money { font-size: 40px; }
  .gallery button.th, .gallery .more { height: 64px; }
}
.builder .ask { font-size: 22px; font-weight: 800; margin: 6px 0 16px; }

.tracking .checked { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* Region browsing and distance search */
.pc-row { display: grid; gap: 8px; }
.region-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.region-list li { display: flex; }
.region-list a { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: var(--tap); padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.region-list a:hover { border-color: var(--green); }
.region-list span { font-size: 14px; color: var(--green); font-weight: 700; white-space: nowrap; }
.more-list { margin-top: 10px; }
.more-list summary { display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); cursor: pointer; font-weight: 800; color: var(--green); list-style: none; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.more-list summary::-webkit-details-marker { display: none; }
.more-list summary::after { content: "+"; font-size: 18px; text-decoration: none; }
.more-list[open] summary { display: none; }
.pc-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pc-jump label { font-weight: 700; }
.pc-jump .text-in { width: 150px; }
@media (max-width: 640px) { .pc-jump { width: 100%; } .pc-jump .text-in { flex: 1; width: auto; } }

/* Listing: monthly price and enquiry always in reach on phones */
.mobile-bar { display: none; }
@media (max-width: 999px) {
  .mobile-bar { position: fixed; inset: auto 0 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--green); color: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,.15); }
  .mobile-price { min-width: 0; margin-right: auto; }
  .mobile-bar b { display: block; font-size: 21px; line-height: 1.1; }
  .mobile-bar small { font-size: 12px; font-weight: 600; }
  .mobile-bar span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.25; }
  .mobile-bar .btn { font-size: 13px; padding: 10px 12px; clip-path: none; }
  .mobile-bar .whatsapp-link { color: #fff; font-size: 13px; padding-inline: 5px; }
  .mobile-bar a { flex: 0 0 auto; }
  .mobile-bar a:focus-visible { outline-color: var(--accent); }
  body:has(.mobile-bar) { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  body:has(.mobile-bar) .cookie { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px) {
  .mobile-bar { gap: 7px; padding-inline: 10px; }
  .mobile-bar b { font-size: 18px; }
  .mobile-bar .btn { padding-inline: 9px; }
}

/* Companies House suggestions on the apply form */
.company-field { position: relative; }
.company-list { position: absolute; left: 0; right: 0; top: calc(100% - 22px); z-index: 20; margin: 4px 0 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line-input); border-radius: var(--r-sm); box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 320px; overflow-y: auto; }
.company-list li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 6px; cursor: pointer; min-height: var(--tap); justify-content: center; }
.company-list li[aria-selected=true], .company-list li:hover { background: var(--mint-2, #eef5ef); }
.company-list b { font-size: 15px; }
.company-list span { font-size: 13px; color: var(--muted); }

/* Finance questions on the home page */
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq-q { font: inherit; margin: 0; color: inherit; }
.byline { margin: 10px 0 0; font-size: 14px; opacity: .85; }
.faq summary::after { content: '+'; font-weight: 400; font-size: 1.3em; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 10px 0 0; max-width: 70ch; }
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.case h3 { font-size: 20px; }
.case .kicker, .case p { margin: 0; }
.case dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0; }
.case dl div { border-left: 3px solid var(--accent); padding-left: 8px; }
.case dt { font-size: 12px; color: var(--muted); order: 2; }
.case dd { margin: 0; font-weight: 800; font-size: 17px; color: var(--ink); }
.case dl div { display: flex; flex-direction: column; }
.case a { margin-top: auto; font-weight: 700; color: var(--green); }

/* Google reviews */
.reviews-score { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.reviews-score b { color: var(--ink); }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.review { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.review blockquote { margin: 0; color: var(--ink); font-size: 16px; line-height: 1.55; }
.review figcaption { margin-top: auto; font-weight: 800; color: var(--ink); display: flex; flex-direction: column; }
.review figcaption span { font-weight: 400; font-size: 13px; color: var(--muted); }
.side-review { padding: 16px; margin-top: 14px; }
.side-review blockquote { font-size: 15px; }

/* Region and make lists: 4 across so the 8 on show fill two rows, 2 across on tablets, 1 on phones */
@media (max-width: 900px) { .region-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .region-list { grid-template-columns: 1fr; } }

/* Browse: short title and search instead of a video banner, so machines are on screen straight away */
.browse-head { background: var(--green-2); color: #fff; }
.browse-head .wrap { padding: clamp(20px, 3.5vw, 36px) 0 clamp(20px, 3vw, 28px); }
.browse-head h1 { color: #fff; font-size: clamp(26px, 3.6vw, 40px); }
.dealer-profile { margin: 18px 0 8px; padding: 16px 18px; border-radius: 12px; background: rgba(255,255,255,.08); max-width: 860px; }
.dealer-profile h2 { color: #fff; font-size: 20px; margin: 0 0 8px; }
.dealer-profile p { margin: 0 0 12px; color: rgba(255,255,255,.92); }
.dp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 20px; margin: 0; }
.dp-facts div { min-width: 0; }
.dp-facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.7); }
.dp-facts dd { margin: 2px 0 0; color: #fff; overflow-wrap: anywhere; }
.dp-facts a.muted { color: rgba(255,255,255,.75); font-size: 12px; }
.browse-head .lead { color: #dde8e2; margin: 6px 0 0; max-width: 70ch; font-size: 15px; }
@media (max-width: 700px) { .browse-head .lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; } }
.browse-head .search { margin-top: 16px; max-width: 760px; }

/* Search box with suggestions (views/partials.js searchBox, public/js/search.js) */
.search { position: relative; }
.search-field { display: flex; align-items: center; background: #fff; border-radius: 999px; padding: 5px 5px 5px 16px; gap: 8px; box-shadow: 0 2px 10px rgba(14,33,23,.18); border: 1px solid var(--line-input); }
.search-field:focus-within { outline: 3px solid var(--accent); outline-offset: 1px; }
.search-ico { color: var(--muted); flex: 0 0 auto; }
.search-field input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; color: var(--ink); background: transparent; min-height: var(--tap); padding: 0; }
.search-field input::-webkit-search-cancel-button { cursor: pointer; }
.search-go { border-radius: 999px; clip-path: none; padding: 0 22px; min-height: 44px; flex: 0 0 auto; }
@media (max-width: 480px) { .search-go { padding: 0 14px; } }
.suggest { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 12px 32px rgba(14,33,23,.22); max-height: min(420px, 60vh); overflow-y: auto; color: var(--ink); }
.sg { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; cursor: pointer; min-height: var(--tap); }
.sg[aria-selected=true], .sg:hover { background: var(--mint); }
.sg img { width: 52px; height: 40px; object-fit: cover; border-radius: 6px; flex: 0 0 auto; background: var(--sand); }
.sg-kind { flex: 0 0 52px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); text-align: center; }
.sg-text { display: flex; flex-direction: column; min-width: 0; }
.sg-text b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-text span { font-size: 13px; color: var(--muted); }

/* One row under the search: Filters button and machine types. Sticks to the top on phones while scrolling. */
.toolbar { background: var(--cream); border-bottom: 1px solid var(--line); }
.toolbar-in { display: flex; align-items: center; gap: 8px; padding: 12px 0; }
@media (max-width: 860px) { .toolbar { position: sticky; top: 0; z-index: 20; } }
.chip { font: inherit; font-size: 14px; font-weight: 800; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; min-height: var(--tap); cursor: pointer; background: var(--green); color: #fff; border: 1px solid var(--green); flex: 0 0 auto; }
.chip:hover { background: var(--green-lt); }
.chip-n { background: var(--accent); color: var(--green-2); border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.chip-n[hidden] { display: none; }
.link-btn { font: inherit; font-weight: 800; background: none; border: 0; color: var(--ink); text-decoration: underline; cursor: pointer; min-height: var(--tap); padding: 0 8px; }
.js-only, .drawer-backdrop { display: none; }

/* Budget slider at the top of the filters */
.budget-f label { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; font-weight: 800; color: var(--ink); }
.budget-f output { font-weight: 800; font-size: 24px; color: var(--green); letter-spacing: -.02em; }
.budget-f .range-ends { color: var(--muted); }

/* Wide screens: filters stay as a sidebar beside the results, so no Filters button is needed */
@media (min-width: 1000px) { .js .chip-filters, .toolbar-solo { display: none; } }

/* Phones and tablets: filters become a panel that slides in from the right */
@media (max-width: 999px) {
  .js .chip-filters { display: inline-flex; }
  .js .filters { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(420px, 100%); max-width: none; min-width: 0; margin: 0; border-radius: 0; border: 0; overflow-y: auto; overscroll-behavior: contain;
    padding: 0 20px; transform: translateX(105%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; box-shadow: -12px 0 32px rgba(14,33,23,.25); }
  .js .filters.open { transform: none; visibility: visible; transition: transform .25s ease; }
  .js .filters .drawer-head, .js .filters .drawer-foot { display: flex; }
  .drawer-head { position: sticky; top: 0; z-index: 1; background: #fff; justify-content: space-between; align-items: center; padding: 14px 0; margin-bottom: -8px; border-bottom: 1px solid var(--line); }
  .drawer-head .h { margin: 0; font-size: 20px; }
  .drawer-x { font: inherit; font-size: 30px; line-height: 1; width: var(--tap); height: var(--tap); border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 999px; }
  .drawer-x:hover { background: var(--sand); }
  .drawer-foot { position: sticky; bottom: 0; background: #fff; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0 16px; margin-top: auto; border-top: 1px solid var(--line); }
  .drawer-foot .btn { flex: 1 1 auto; }
  .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(14,33,23,.5); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
  .drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
  .drawer-open body { overflow: hidden; }
}
.hero-copy .search { margin-top: 24px; max-width: 560px; }

/* Home search with a postcode, Autotrader style: what, where, Search */
.search-pc { display: flex; align-items: center; border-left: 1px solid var(--line-input); padding-left: 12px; flex: 0 0 120px; }
.search-pc input { width: 100%; border: 0; outline: 0; font: inherit; font-size: 16px; color: var(--ink); background: transparent; min-height: var(--tap); text-transform: uppercase; }
.search-pc input::placeholder { text-transform: none; }
@media (max-width: 520px) {
  .search-with-pc .search-field { flex-wrap: wrap; border-radius: var(--r-sm); padding: 6px 6px 6px 14px; }
  .search-with-pc .search-ico { display: none; }
  .search-with-pc .search-field > input { flex-basis: 100%; border-bottom: 1px solid var(--line-input); }
  .search-with-pc .search-pc { flex: 1 1 auto; border-left: 0; padding: 0; }
  .search-with-pc .search-go { margin-top: 4px; }
}

/* Makes strip: one row of make cards, the rest under "Show all makes" in Quick search */
.make-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px; overflow-x: auto; scrollbar-width: none; }
.make-strip::-webkit-scrollbar { display: none; }
.make-strip a { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; height: 100%; }
.make-strip a:hover { border-color: var(--green); }
.make-mono { width: 40px; height: 40px; border-radius: 999px; background: var(--mint); color: var(--green); font-weight: 800; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.make-strip b { color: var(--ink); font-size: 16px; }
.make-strip span:last-child { font-size: 13px; color: var(--muted); }
.small { font-size: 13px; margin: 12px 0 0; }

/* Quick search above the footer */
.quick-search { background: var(--sand); border-top: 1px solid var(--line); padding: 36px 0 28px; }
.qs-title { font-size: 22px; margin: 0 0 18px; }
.qs-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(253px, 100%), 1fr)); gap: 22px 32px; }
.qs-group { min-width: 0; scroll-margin-top: 150px; }
.qs-h { font-size: 16px; margin: 0 0 7px; }
.quick-search ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; font-size: 14px; }
.quick-search li { display: flex; min-width: 0; }
.quick-search li a { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 7px; min-width: 0; min-height: 37px; padding-block: 4px; border-bottom: 1px solid var(--line); color: var(--body); text-decoration: none; line-height: 1.35; }
.quick-search li a:hover { color: var(--green); text-decoration: underline; }
.quick-search li span { overflow-wrap: anywhere; }
.quick-search li small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.qs-more { margin-top: 4px; }
.qs-more:not([open]) > ul { display: none; }
.qs-more summary { width: fit-content; min-height: var(--tap); padding-block: 9px; cursor: pointer; color: var(--green); font-size: 14px; font-weight: 800; }
.qs-hide, .qs-more[open] .qs-show { display: none; }
.qs-more[open] .qs-hide { display: inline; }
@media (max-width: 640px) {
  .qs-group { scroll-margin-top: 16px; }
  .quick-search li a { min-height: var(--tap); }
}

/* Questions hub: one card per machine type */
.qtype-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 14px; }
.qtype { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.qtype h3 { margin: 0; font-size: 18px; }
.qtype h3 a { color: var(--ink); text-decoration: none; }
.qtype ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--body); display: flex; flex-direction: column; gap: 4px; }
.qtype .link-cta { margin-top: auto; font-size: 14px; }
.buyer-checklist .qtype p { margin: 0; }
.buyer-comparison { margin-top: 24px; }
.guide-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 16px; font-size: 14px; }
.guide-links a { display: inline-flex; align-items: center; min-height: var(--tap); text-underline-offset: 3px; }
@media (min-width: 861px) {
  main:has(.guide-links) [id] { scroll-margin-top: 105px; }
}

/* Cost pages (/cost/<type>) */
.cost-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; margin-bottom: 18px; }
.cost-tiles div { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.cost-tiles span { font-size: 13px; color: var(--muted); font-weight: 700; }
.cost-tiles b { font-size: 24px; color: var(--ink); letter-spacing: -.01em; }
.cost-tiles small { font-size: 12.5px; color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.cost-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.cost-table th, .cost-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cost-table thead th { font-size: 13px; color: var(--muted); background: var(--sand); }
.cost-table tbody tr:last-child th, .cost-table tbody tr:last-child td { border-bottom: 0; }
.cost-table tbody th { font-weight: 700; color: var(--ink); }
.cost-table .src { font-size: 12px; font-weight: 400; margin-left: 6px; color: var(--muted); }
.qtype-cost { font-size: 14px; font-weight: 700; }
.cost-table .row-note { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); margin-top: 2px; }
/* Phones: each table row becomes a small card, the column names shown beside each value */
@media (max-width: 600px) {
  .table-wrap { overflow: visible; border: 0; background: none; }
  .cost-table { min-width: 0; }
  .cost-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cost-table, .cost-table tbody, .cost-table tr, .cost-table th, .cost-table td { display: block; }
  .cost-table tr { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 10px; padding: 4px 0; }
  .cost-table th, .cost-table td { border: 0; padding: 6px 14px; }
  .cost-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
}

/* ---------- Saved machines and customer accounts (views/account.js, public/js/account.js) ---------- */
.card { position: relative; }
.save-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: rgba(255,255,255,.94); color: var(--green); box-shadow: 0 6px 18px -8px rgba(14,33,23,.55);
  transition: transform .18s, background .18s, color .18s; }
.save-btn svg, .save-wide svg, .nav-saved svg { fill: none; stroke: currentColor; stroke-width: 2; }
.save-btn:hover { transform: scale(1.06); }
.save-btn[aria-pressed="true"], .save-wide[aria-pressed="true"] { color: #c2412d; }
.save-btn[aria-pressed="true"] svg, .save-wide[aria-pressed="true"] svg { fill: currentColor; stroke: currentColor; }
.save-btn.pop svg, .save-wide.pop svg { animation: heart-pop .42s cubic-bezier(.2,1.6,.4,1); }
@keyframes heart-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.save-btn:focus-visible, .save-wide:focus-visible, .nav-saved:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.save-wide { font: inherit; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
  min-height: 52px; border-radius: var(--r); border: 1.5px solid var(--line-input); background: #fff; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.save-wide:hover { border-color: var(--green); background: var(--cream); }
.save-wide[aria-pressed="true"] { border-color: #e9b9ae; background: #fdf3f0; }

.nav-saved { position: relative; display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 15px; color: var(--ink); text-decoration: none; min-height: var(--tap); padding: 0 4px; }
.nav-saved:hover { color: var(--green); }
.nav-saved-n { position: absolute; top: 4px; left: 13px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #c2412d; color: #fff;
  font-size: 11px; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--cream); }
.nav-saved-n[hidden] { display: none; }
@media (max-width: 560px) { .nav-saved-t { display: none; } }

.toast { position: fixed; left: 50%; bottom: 22px; z-index: 90; transform: translate(-50%, 140%); opacity: 0; max-width: min(560px, calc(100% - 32px));
  background: var(--green-2); color: #fff; padding: 14px 20px; border-radius: 14px; font-weight: 600; font-size: 15px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.6);
  transition: transform .3s cubic-bezier(.2,.9,.3,1), opacity .3s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast a { color: var(--accent); font-weight: 800; margin-left: 4px; }
@media (max-width: 860px) { .toast { bottom: 84px; } }

/* Save this search */
.save-search { position: relative; margin: 0 0 16px; }
.save-search > summary { list-style: none; background: #fff; color: var(--green); border-color: var(--line-input); width: max-content; }
.save-search > summary::-webkit-details-marker { display: none; }
.save-search > summary:hover, .save-search[open] > summary { background: var(--mint); border-color: var(--green); }
.alert-pop { margin-top: 10px; max-width: 460px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 12px;
  box-shadow: 0 24px 48px -30px rgba(14,33,23,.55); }
.alert-pop .h { margin: 0; font-size: 18px; }
.alert-pop p { margin: 0; }
.alert-done { font-size: 14.5px; padding: 12px 14px; border-radius: var(--r-sm); }
.alert-done.good { background: var(--mint); color: var(--green-2); }
.alert-done.bad { background: #fbe9e7; color: var(--error); }
.alert-done a { font-weight: 800; color: var(--green); }

/* Sign in */
.acct-gate { background: radial-gradient(1200px 500px at 85% -10%, var(--green-hi), transparent 60%), linear-gradient(160deg, var(--green) 0%, var(--green-2) 100%);
  color: #fff; padding: clamp(40px, 7vw, 88px) 0; position: relative; overflow: hidden; }
.acct-gate::after { content: ""; position: absolute; inset: auto -10% -60% auto; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,196,46,.16), transparent 65%); pointer-events: none; }
.acct-gate-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
@media (max-width: 900px) { .acct-gate-in { grid-template-columns: 1fr; } }
.acct-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 800; color: var(--accent); margin: 0 0 14px; }
.acct-gate h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 18px; color: #fff; max-width: 15ch; }
.acct-gate-lead { font-size: 18px; color: var(--on-dark); max-width: 46ch; margin: 0 0 28px; }
.acct-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.acct-perks li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; color: var(--on-dark); font-size: 15.5px; }
.acct-perks li svg { width: 44px; height: 44px; padding: 11px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: var(--accent); }
.acct-perks b { color: #fff; }
.acct-card { background: #fff; color: var(--body); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 38px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.06);
  display: grid; gap: 16px; position: relative; }
.acct-card h1, .acct-card h2 { color: var(--ink); margin: 0; font-size: clamp(24px, 3vw, 30px); letter-spacing: -.01em; }
.acct-card p { margin: 0; }
.acct-card-sub { color: var(--muted); }
.acct-field { display: grid; gap: 8px; font-weight: 800; color: var(--ink); font-size: 14.5px; }
.acct-field .text-in { font-size: 17px; min-height: 54px; }
.acct-fine { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.acct-fine svg { flex: 0 0 auto; margin-top: 1px; color: var(--green); }
.acct-error { background: #fbe9e7; color: var(--error); padding: 12px 14px; border-radius: var(--r-sm); font-weight: 600; }
.acct-gate-solo .wrap { display: grid; place-items: center; }
.acct-sent { max-width: 520px; text-align: center; justify-items: center; }
.acct-sent-icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--green); }
.acct-sent-icon svg { width: 40px; height: 40px; }

/* Account */
.acct-hero { background: linear-gradient(160deg, var(--green) 0%, var(--green-2) 100%); color: #fff; padding: clamp(34px, 5vw, 60px) 0 0; }
.acct-hero-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; }
.acct-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 52px); letter-spacing: -.02em; line-height: 1.02; margin: 0 0 10px; }
.acct-who { color: var(--on-dark); margin: 0; overflow-wrap: anywhere; }
.acct-who b { color: #fff; }
.acct-stats { display: flex; gap: 10px; margin: 0; }
.acct-stats div { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: var(--r); padding: 14px 20px; min-width: 120px; }
.acct-stats dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--on-dark); font-weight: 700; }
.acct-stats dd { margin: 4px 0 0; font-size: 34px; font-weight: 800; color: var(--accent); line-height: 1; }
@media (max-width: 620px) { .acct-stats { width: 100%; } .acct-stats div { flex: 1; min-width: 0; padding: 12px; } .acct-stats dd { font-size: 26px; } .acct-stats dt { font-size: 11px; letter-spacing: .05em; } }
.acct-tabs { display: flex; gap: 6px; margin-top: 30px; }
.acct-tabs a { color: var(--on-dark); text-decoration: none; font-weight: 800; padding: 14px 16px; border-bottom: 3px solid transparent; }
.acct-tabs a:hover { color: #fff; border-bottom-color: var(--accent); }
.acct-section { scroll-margin-top: 90px; }

.vault { display: grid; gap: 18px; }
.vault-item { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: box-shadow .2s, opacity .26s, transform .26s; }
.vault-item:hover { box-shadow: 0 24px 48px -36px rgba(14,33,23,.6); }
.vault-item.leaving { opacity: 0; transform: translateY(-8px); }
@media (max-width: 760px) { .vault-item { grid-template-columns: 1fr; } }
.vault-photo { position: relative; display: block; background: var(--sand); min-height: 220px; }
.vault-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vault-item.is-gone .vault-photo img { filter: grayscale(1) contrast(.9); opacity: .7; }
.vault-status { position: absolute; top: 14px; left: 14px; background: var(--green-2); color: #fff; font-size: 12.5px; font-weight: 800; padding: 5px 11px; border-radius: 999px; }
.vault-status.sold { background: #fff; color: var(--ink); }
.vault-body { padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 12px; align-content: start; }
.vault-body h3 { margin: 0; font-size: 21px; line-height: 1.2; }
.vault-body h3 a { color: var(--ink); text-decoration: none; }
.vault-body h3 a:hover { color: var(--green); text-decoration: underline; }
.vault-body .card-meta { margin: 0; }
.vault-dealer { margin: 0; color: var(--muted); font-size: 14.5px; }
.vault-figures { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 4px 0 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.vault-figures dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.vault-figures dd { margin: 3px 0 0; font-size: 22px; font-weight: 800; color: var(--ink); }
.vault-figures small { font-size: 13px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.vault-change { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: var(--body); }
.vault-change.good { color: var(--green); background: var(--mint); padding: 6px 12px; border-radius: 999px; width: max-content; max-width: 100%; }
.vault-change.same { color: var(--muted); font-weight: 600; }
.vault-change.gone { color: var(--muted); font-weight: 600; }
.vault-note { display: grid; gap: 6px; }
.vault-note > span { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13.5px; color: var(--ink); }
.vault-note svg { width: 16px; height: 16px; color: var(--green); }
.vault-note textarea { font: inherit; font-size: 15px; width: 100%; min-height: 64px; resize: vertical; border: 1px solid var(--line-input); border-radius: var(--r-sm);
  padding: 10px 12px; background: var(--cream); color: var(--ink); }
.vault-note textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; background: #fff; }
.vault-note small { color: var(--muted); font-size: 12.5px; min-height: 1em; }
.vault-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.vault-remove { margin-left: auto; color: var(--muted); }

.acct-empty { text-align: center; background: #fff; border: 1px dashed var(--line-input); border-radius: var(--r-lg); padding: clamp(32px, 6vw, 60px) 24px; display: grid; justify-items: center; gap: 10px; }
.acct-empty p { margin: 0; max-width: 44ch; }
.acct-empty .h { font-size: 20px; color: var(--ink); font-weight: 800; }
.acct-empty-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #fdf3f0; color: #c2412d; margin-bottom: 4px; }
.acct-empty-icon svg { width: 28px; height: 28px; }
.acct-empty-sm { padding: 26px; }

.alert-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.alert-row { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.alert-row form { margin: 0; }
.alert-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--mint); color: var(--green); }
.alert-what { display: grid; gap: 2px; min-width: 0; }
.alert-what b { color: var(--ink); }
.alert-what span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 640px) { .alert-row { grid-template-columns: 44px 1fr; } .alert-row .link-cta, .alert-row form { grid-column: 2; } }
.btn-sm { --pad-y: 9px; font-size: 14px; }

.acct-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.acct-set { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 10px; align-content: start; margin: 0; }
.acct-set p { margin: 0; }
.acct-set .h { font-weight: 800; color: var(--ink); }
.acct-danger { border-color: #ecc9c2; }
html:not(.js) .save-btn, html:not(.js) .save-wide { display: none; }

/* Dealer Google stars (views/partials.js dealerStars) */
.card-dealer { display: grid; gap: 3px; min-width: 0; }
.d-rating { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.card-foot a.d-rating { padding: 0; font-weight: 400; }
.d-rating b { color: var(--ink); font-weight: 800; }
a.d-rating:hover b, a.d-rating:hover .d-rating-n { color: var(--green); text-decoration: underline; }
.stars-bar { --size: 13px; width: calc(var(--size) * 5); height: var(--size); display: inline-block; flex: 0 0 auto;
  background: linear-gradient(90deg, #e7a417 calc(var(--r) / 5 * 100%), #d9d2c3 0);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E") 0 0 / var(--size) var(--size) repeat-x; }
.d-rating-g { font-size: 11.5px; letter-spacing: .02em; }
.facts .d-rating { display: flex; margin-top: 6px; font-size: 14px; }
.facts .d-rating .stars-bar { --size: 15px; }

/* Swipeable card photos (dealers who agreed to photo use) and the photo count */
.thumb-strip { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.thumb-strip::-webkit-scrollbar { display: none; }
.thumb-strip img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.thumb .note svg { vertical-align: -2px; margin-right: 5px; }
.thumb-nav { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 444 / 230; z-index: 1; pointer-events: none;
  display: flex; align-items: center; justify-content: space-between; padding: 0 8px; opacity: 0; transition: opacity .15s; }
.js .thumb-nav { display: flex; }
.card:hover .thumb-nav { opacity: 1; }
.thumb-nav button { pointer-events: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.92);
  color: var(--green-2); font-size: 22px; line-height: 1; display: grid; place-items: center; box-shadow: 0 4px 12px -6px rgba(14,33,23,.6); }
@media (hover: none) { .thumb-nav { display: none !important; } }

/* Lodge Monthly borrow box (views/listing.js borrowBox, views/home.js): no figures, exact ones on request */
.borrow-label { display: block; font-size: 20px; font-weight: 800; color: #fff; margin: 4px 0 12px; line-height: 1.2; }
.borrow-in { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: var(--r-sm); padding: 0 16px; min-height: 58px; margin-bottom: 14px; box-shadow: inset 0 0 0 2px transparent; }
.borrow-in:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.borrow-in span { font-size: 24px; font-weight: 800; color: var(--green-2); }
.borrow-in input { border: 0; outline: 0; font: inherit; font-size: 24px; font-weight: 800; color: var(--ink); width: 100%; background: transparent; min-height: 54px; }
.borrow-in-light { box-shadow: inset 0 0 0 1.5px var(--line-input); }
.borrow-box .after { margin-top: 10px; }

/* ---------- Quick enquiry panel (views/enquire.js): the CWAF "Get your quote" drawer ---------- */
html.eq-open { overflow: hidden; }
.eq { position: fixed; inset: 0; z-index: 90; display: flex; justify-content: flex-end; }
.eq[hidden] { display: none; }
.eq-scrim { position: absolute; inset: 0; background: rgba(14, 33, 23, .55); opacity: 0; transition: opacity .2s; }
.eq-card { position: relative; width: min(860px, 100%); height: 100%; overflow-y: auto; background: var(--cream); box-shadow: -12px 0 40px rgba(0,0,0,.18);
  transform: translateX(24px); opacity: 0; transition: transform .2s, opacity .2s; }
.eq.on .eq-scrim { opacity: 1; }
.eq.on .eq-card { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .eq-scrim, .eq-card { transition: none; } }
.eq-progress { position: sticky; top: 0; height: 4px; background: var(--sand-2); z-index: 2; }
.eq-progress i { display: block; height: 100%; width: 40%; background: var(--accent-edge); transition: width .25s; }
.eq-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sand); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; z-index: 3; }
.eq-cols { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; padding: 40px 36px 36px; }
.eq-form h2 { font-size: 28px; line-height: 1.15; margin: 0 0 6px; color: var(--ink); }
.eq-form h2 + .field, .eq-form h2 + .eq-row { margin-top: 18px; }
.eq-sub { color: var(--muted); margin: 0 0 18px; }
.eq-form .field { margin: 0 0 16px; }
.eq-label { font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.eq-note { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
.eq-opt-tag { font-weight: 500; color: var(--muted); font-size: 13px; }
.eq-amt { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; background: #fff; border: 1px solid var(--line-input); border-radius: var(--r-sm); overflow: hidden; }
.eq-amt-btn { height: 56px; border: 0; background: var(--sand); color: var(--ink); font-size: 24px; cursor: pointer; }
.eq-amt-btn:hover { background: var(--sand-2); }
.eq-amt-val { text-align: center; font-size: 26px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.eq-hint { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.eq-choice { display: grid; gap: 8px; }
.eq-choice-2 { grid-template-columns: 1fr 1fr; }
.eq-choice-3 { grid-template-columns: repeat(3, 1fr); }
.eq-opt { min-height: var(--tap, 48px); padding: 10px 8px; border: 1px solid var(--line-input); border-radius: var(--r-sm); background: #fff; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.eq-opt:hover { border-color: var(--green); }
.eq-opt[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.eq-lookup { position: relative; }
.eq-lookup[hidden] { display: none; }
.eq-colist { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; list-style: none; margin: 4px 0 0; padding: 4px; background: #fff; border: 1px solid var(--line-input); border-radius: var(--r-sm); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.eq-colist li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: grid; }
.eq-colist li:hover { background: var(--sand); }
.eq-colist span { font-size: 12.5px; color: var(--muted); }
.eq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eq-row .field { margin-bottom: 4px; }
.eq .err { display: none; color: var(--error); font-size: 14px; font-weight: 600; margin: 6px 0 0; }
.eq .err.on { display: block; }
.eq-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 8px; }
.eq-actions .btn { flex: 1; justify-content: center; }
.eq-consent { font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.eq-done { text-align: left; }
.eq-tick { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: var(--accent); display: grid; place-items: center; font-size: 28px; margin: 0 0 14px; }
.eq-done .btn { margin: 14px 0 8px; }
.eq-trust { background: var(--green); color: var(--on-dark); border-radius: var(--r); padding: 22px; align-self: start; }
.eq-trust-h { color: #fff; font-weight: 700; font-size: 17px; margin: 0 0 12px; }
.eq-trust ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.eq-trust li { padding-left: 22px; position: relative; }
.eq-trust li::before { content: "\2713"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.eq-proof { font-size: 13px; margin: 0 0 8px; }
.eq-proof span { color: var(--accent); }
.eq-proof b { color: #fff; }
.eq-trust-call { margin: 14px 0 0; font-size: 14px; }
.eq-trust-call a { color: #fff; font-size: 20px; font-weight: 800; text-decoration: none; }
@media (max-width: 760px) {
  .eq-card { width: 100%; }
  .eq-cols { grid-template-columns: 1fr; padding: 28px 16px 24px; gap: 20px; }
  .eq-form h2 { font-size: 24px; padding-right: 48px; }
  .eq-choice-3 { grid-template-columns: 1fr; }
  .eq-trust { order: 2; }
}

/* Dealer badge page (views/badge.js) and the line inviting a dealer to it */
.badge-preview { margin: 12px 0; }
.badge-preview img { max-width: 100%; height: auto; }
.badge-code label { display: block; font-weight: 600; margin-bottom: 6px; }
.badge-code textarea { font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; width: 100%; resize: vertical; border: 1px solid var(--line-input); border-radius: var(--r-sm); padding: 10px; background: #fff; }
.badge-ask { width: min(1200px, 100% - 44px); margin: 24px auto 0; font-size: 14px; }

/* Price index page (views/price-index.js) and its line on cost pages */
.prose-wide { width: min(1000px, 100% - 44px); }
.price-index .eyebrow { margin-bottom: 6px; }
.price-index .cost-tiles { margin-top: 24px; }
.cite-line { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; }
.index-line { margin: 14px 0 6px; font-weight: 600; }
@media (max-width: 560px) { .prose-wide { width: calc(100% - 32px); } }

/* List your horsebox free (views/sell.js) */
.sell-form .field-help { margin: 6px 0 0; }
.sell-form .sell-h2 { margin-top: 18px; }
.sell-weight { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sell-photos input[type=file] { padding: 10px; }
.sell-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 8px; }
.sell-previews figure { margin: 0; aspect-ratio: 4 / 3; background: var(--sand); border-radius: var(--r-sm); overflow: hidden; }
.sell-previews figure.no-thumb { display: flex; align-items: center; justify-content: center; font-size: 12px; padding: 6px; text-align: center; overflow-wrap: anywhere; }
.sell-previews img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sell-previews.big { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin: 18px 0; }
.sell-previews.big img { aspect-ratio: 4 / 3; border-radius: var(--r-sm); }
.sell-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 10px; }
.form-errors.ok { background: var(--mint); border-color: var(--green); color: var(--ink); }
.private-sale { border-left: 4px solid var(--green); }
.private-sale p { margin: 0 0 12px; line-height: 1.6; }
.private-tag { font-size: 13px; font-weight: 700; color: var(--green); white-space: nowrap; }
