/* Shared mechanics; native brand typography, colours and card geometry stay distinct. */
body.scc-brand-scc{--vehicle-accent:#006b4d;--vehicle-ink:#102d25;--vehicle-tint:#f2f7f4;--vehicle-line:#d6e4dd;--vehicle-radius:16px}
body.scc-brand-hut{--vehicle-accent:#705014;--vehicle-ink:#211b14;--vehicle-tint:#fcf7ed;--vehicle-line:#e6d8bd;--vehicle-radius:26px}
.vehicle-browser{color:var(--vehicle-ink);padding-block:48px}
.vehicle-browser--compact{padding-block:0;background:transparent}.vehicle-browser--compact>.shell{max-width:none;width:auto;padding:0}
.vehicle-browser .vehicle-browser__filters{display:flex;flex-wrap:wrap;gap:8px;margin-block:24px 28px}
.vehicle-browser [hidden],.vehicle-gallery [hidden]{display:none!important}
.vehicle-browser__filters button{min-height:44px;padding:10px 18px;border:1px solid var(--vehicle-line);border-radius:var(--vehicle-radius);background:#fff;color:var(--vehicle-ink);font:inherit;font-size:15px;font-weight:650;cursor:pointer}
.vehicle-browser__filters button[aria-pressed=true]{background:var(--vehicle-accent);border-color:var(--vehicle-accent);color:#fff}
.vehicle-browser .vehicle-browser__group{margin:0}.vehicle-browser__group>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.vehicle-browser__group>header h3{margin:0 0 4px;font-size:clamp(1.35rem,2vw,1.8rem)}
.vehicle-browser__group>header a{display:inline-flex;align-items:center;min-height:44px;color:var(--vehicle-accent);font-weight:650;text-decoration:none}
.vehicle-browser__rail-controls{display:flex;gap:8px}.vehicle-browser__rail-controls button,.vehicle-gallery__controls button{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;border:1px solid var(--vehicle-line);border-radius:50%;background:#fff;color:var(--vehicle-ink);font:inherit;font-size:23px;cursor:pointer}
.vehicle-browser .vehicle-browser__rail{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 40px)/3);grid-template-columns:none;gap:20px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:thin;padding:3px 2px 18px;margin:0}
.vehicle-browser .vehicle-browser__card{min-width:0;border:1px solid var(--vehicle-line);border-radius:var(--vehicle-radius);overflow:hidden;background:var(--vehicle-tint);box-shadow:none;scroll-snap-align:start;display:flex;flex-direction:column}
.vehicle-browser .network-vehicle-card__body{padding:20px;display:flex;flex-direction:column;flex:1;gap:0;background:transparent}.vehicle-browser .network-vehicle-card__class{font-size:12px;letter-spacing:.04em;font-weight:700;margin:0 0 7px;color:var(--vehicle-accent)}
.vehicle-browser h4{font-size:22px;line-height:1.2;margin:0;color:var(--vehicle-ink)}.vehicle-browser__similar{margin:5px 0 18px;font-size:13px;color:var(--vehicle-ink)}
.vehicle-browser .network-vehicle-specs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border-block:1px solid var(--vehicle-line);padding-block:16px;margin:0 0 16px}.vehicle-browser .network-vehicle-specs>div{display:flex;flex-direction:column-reverse;gap:5px;min-width:0}.vehicle-browser .network-vehicle-specs dt{font-size:12px;line-height:1.4;color:var(--vehicle-ink)}.vehicle-browser .network-vehicle-specs dd{margin:0;font-size:21px;font-weight:700;color:var(--vehicle-ink)}
.vehicle-browser .vehicle-browser__link{min-height:44px;display:flex;align-items:center;justify-content:space-between;color:var(--vehicle-accent);font-weight:650;margin-top:auto;text-decoration:none}.vehicle-browser .network-fleet-notice{font-size:14px;line-height:1.6;margin-block:18px 0}
.vehicle-gallery{position:relative;isolation:isolate;min-width:0;width:100%;aspect-ratio:4/3;background:var(--vehicle-tint);overflow:hidden;display:flex;align-items:center;justify-content:center}
.vehicle-gallery img{display:block;width:100%;height:100%;object-fit:contain;padding:15px 12px 56px;position:absolute;inset:0;max-height:none!important;mix-blend-mode:multiply}
.vehicle-gallery__controls{position:absolute;inset-inline:12px;bottom:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;z-index:1}.vehicle-gallery__status{font-size:12px;font-weight:650;color:var(--vehicle-ink);background:#ffffffed;padding:5px 10px;border-radius:30px}.vehicle-gallery__empty{padding:30px;text-align:center;color:var(--vehicle-ink);font-size:14px}
.vehicle-browser button:focus-visible,.vehicle-browser a:focus-visible,.vehicle-browser__rail:focus-visible,.vehicle-gallery button:focus-visible{outline:3px solid var(--vehicle-accent);outline-offset:3px}
[dir=rtl] .vehicle-gallery__controls button span,[dir=rtl] .vehicle-browser__rail-controls button span{transform:scaleX(-1)}
.vehicle-option .vehicle-gallery{min-height:230px;align-self:stretch;border-radius:var(--vehicle-radius);background:var(--vehicle-tint)}
@media(max-width:1000px){.vehicle-browser .vehicle-browser__rail{grid-auto-columns:calc((100% - 20px)/2)}}
@media(max-width:600px){.vehicle-browser .vehicle-browser__rail{grid-auto-columns:88%;gap:14px}.vehicle-browser__filters button{font-size:14px;padding-inline:14px}.vehicle-browser .network-vehicle-card__body{padding:18px}.vehicle-browser .vehicle-browser__filters{gap:7px}.vehicle-option .vehicle-gallery{aspect-ratio:4/3;min-height:220px}.vehicle-browser__group>header{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){.vehicle-browser__rail{scroll-behavior:auto}.vehicle-gallery *{transition:none!important;animation:none!important}}
/* Neutralize inherited legacy fleet table/CTA treatments within this module only. */
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__group{background:transparent;border:0;box-shadow:none;padding:0;border-radius:0}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__group>header{background:transparent;color:var(--vehicle-ink);border:0;padding:0;margin:0 0 18px;min-height:0;border-radius:0}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__group>header h3{color:var(--vehicle-ink)}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__rail{background:transparent;border:0}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .network-vehicle-specs{background:transparent;border:0;border-block:1px solid var(--vehicle-line);padding:16px 0}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .network-vehicle-specs>div{background:transparent;border:0;padding:0}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__link{background:transparent;color:var(--vehicle-accent);border:0;border-radius:0;padding:0;box-shadow:none}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__group>header a{color:var(--vehicle-accent);background:transparent;padding:0;border:0;box-shadow:none}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__group>header{display:flex;align-items:center;justify-content:space-between;gap:16px}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__card{padding:0;border-radius:var(--vehicle-radius)}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__card .network-vehicle-card__body{padding:20px!important}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .network-vehicle-specs{border-radius:0}
body:is(.scc-brand-scc,.scc-brand-hut) .p114-route-dialog .p114-route-quote:has(>.vehicle-gallery){display:grid;grid-template-columns:minmax(150px,.8fr) minmax(0,1.2fr) auto;align-items:center;gap:18px}
.p114-route-quote>.vehicle-gallery{aspect-ratio:4/3;min-width:0;border-radius:var(--vehicle-radius);grid-area:auto;order:0}
body:is(.scc-brand-scc,.scc-brand-hut) .p114-route-dialog .p114-route-quote:has(>.vehicle-gallery) [data-live-book]{background:var(--vehicle-accent);color:#fff}
body:is(.scc-brand-scc,.scc-brand-hut) .p114-route-dialog .vehicle-gallery__controls button{background:#fff;color:var(--vehicle-ink);border:1px solid var(--vehicle-line)}
.vehicle-gallery__status{direction:ltr;unicode-bidi:isolate}
@media(max-width:720px){body:is(.scc-brand-scc,.scc-brand-hut) .p114-route-dialog .p114-route-quote:has(>.vehicle-gallery){grid-template-columns:minmax(0,1fr)}.p114-route-quote>.vehicle-gallery{width:100%;max-width:420px;justify-self:center}}

/* Keep the manual browser isolated from later legacy fleet/grid and image-fade rules. */
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__rail{display:grid;grid-template-columns:none;grid-auto-flow:column;gap:20px;padding:3px 2px 18px;margin:0}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__card{display:flex;flex-direction:column;grid-area:auto;min-width:0;max-width:none;border:1px solid var(--vehicle-line);background:var(--vehicle-tint);box-shadow:none}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-gallery{width:100%;min-width:0;align-self:stretch;flex:0 0 auto;background:var(--vehicle-tint)}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-gallery[data-gallery-ready] img{opacity:1}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser [hidden]{display:none!important}
@media(max-width:600px){body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__rail{gap:14px}}

/* Unboxed fleet presentation: one calm class row and up to five vehicles. */
body.scc-brand-scc{--fleet-section:#fff;--fleet-card:#f4f7f5}
body.scc-brand-hut{--fleet-section:#fffdf8;--fleet-card:#f7f2e7}
body.home:is(.scc-brand-scc,.scc-brand-hut) #fleet.vehicle-home-browser{background:var(--fleet-section);color:var(--vehicle-ink);padding-block:clamp(56px,6vw,96px);border:0;box-shadow:none}
body.home:is(.scc-brand-scc,.scc-brand-hut) #fleet.vehicle-home-browser>.shell{width:calc(100% - 64px);max-width:1600px;padding:0;margin-inline:auto}
body.home:is(.scc-brand-scc,.scc-brand-hut) #fleet.vehicle-home-browser>.shell>header{margin-block:0 40px;color:var(--vehicle-ink)}
body.home:is(.scc-brand-scc,.scc-brand-hut) #fleet.vehicle-home-browser>.shell>header h2{color:var(--vehicle-ink)}
body.home:is(.scc-brand-scc,.scc-brand-hut) #fleet.vehicle-home-browser>.shell>header p{background:transparent;color:var(--vehicle-accent);padding:0;border-radius:0}
body.home:is(.scc-brand-scc,.scc-brand-hut) #fleet.vehicle-home-browser>.shell>header a{color:var(--vehicle-accent)}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser.network-fleet-catalogue{background:transparent;background-image:none;border:0;border-radius:0;box-shadow:none;overflow:visible}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser.network-fleet-catalogue::before,body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser.network-fleet-catalogue::after{display:none}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__filters{display:flex;flex-wrap:nowrap;gap:28px;overflow-x:auto;overscroll-behavior-inline:contain;padding:5px 3px 0;margin:0 0 32px;border-bottom:1px solid var(--vehicle-line);scrollbar-width:thin}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__filters button{flex:0 0 auto;min-height:48px;padding:12px 0;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;box-shadow:none;color:var(--vehicle-ink);font-size:15px;font-weight:600;white-space:nowrap}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__filters button[aria-pressed=true]{color:var(--vehicle-accent);border-bottom-color:var(--vehicle-accent);background:transparent}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__group>header{margin:0 0 24px;gap:24px}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__rail{grid-auto-columns:calc((100% - 48px)/3);gap:24px;padding:4px 0 20px}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__card{background:var(--fleet-card);border:0}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-gallery{background:var(--fleet-card);aspect-ratio:1.15}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser h4{font-size:20px;line-height:1.3;overflow-wrap:anywhere}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .network-vehicle-specs{gap:8px;grid-template-columns:repeat(3,minmax(0,1fr))}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .network-vehicle-specs dt{font-size:12px;overflow-wrap:anywhere}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .network-fleet-notice{background:transparent;border:0;border-top:1px solid var(--vehicle-line);border-radius:0;padding:24px 0 0;margin:20px 0 0;color:var(--vehicle-ink)}
@media(min-width:1024px){body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__rail{grid-auto-columns:calc((100% - 72px)/4)}}
@media(min-width:1280px){body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__rail{grid-auto-columns:calc((100% - 96px)/5)}}
@media(max-width:1023px){body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__rail{grid-auto-columns:calc((100% - 24px)/2)}}
@media(max-width:640px){body.home:is(.scc-brand-scc,.scc-brand-hut) #fleet.vehicle-home-browser>.shell{width:calc(100% - 32px)}body.home:is(.scc-brand-scc,.scc-brand-hut) #fleet.vehicle-home-browser>.shell>header{margin-bottom:28px}body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__filters{gap:24px;margin-bottom:28px}body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-browser__rail{grid-auto-columns:88%;gap:16px}body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .vehicle-gallery{aspect-ratio:4/3}}

/* Capacity labels remain readable on five-column cards, including long translations. */
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .network-vehicle-specs{grid-template-columns:minmax(0,1fr)!important;gap:8px}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .network-vehicle-specs>div{flex-direction:row-reverse;justify-content:flex-end;align-items:baseline;gap:10px}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .network-vehicle-specs dt{font-size:13px;line-height:1.4;text-transform:none;letter-spacing:0;overflow-wrap:normal}
body:is(.scc-brand-scc,.scc-brand-hut) .vehicle-browser .network-vehicle-specs dd{font-size:16px;line-height:1.4;flex:0 0 20px}
