/* ==========================================================================
   SarTrade — prototype extensions
   style.css (the supplied design file) is authoritative and untouched.
   Everything here extends it to the pages the design folder does not cover,
   reusing its tokens: --navy-deep --navy --blue --yellow --grey --red,
   Inter, the 16/12/10 radii, --card-shadow, --gutter, --page-max.
   ========================================================================== */

/* ------------------------------------------------------------------ base */
:root{
  --ink:#0f2033;
  --ink-soft:#5a6675;
  --line:rgba(0,0,0,.10);
  --field-border:rgba(0,0,0,.25);
  --surface:#f6f8fa;
  --green:#1b6b4a;
  --amber:#8a5b00;
}

.st-main{display:block}
.u-mt0{margin-top:0}
.u-center{text-align:center}
.u-muted{color:var(--ink-soft)}
.u-small{font-size:13px}
.u-hidden{display:none !important}
.u-nowrap{white-space:nowrap}

p.body-copy,.rich p{
  font-size:15px;font-weight:500;line-height:1.6;letter-spacing:-.005em;color:var(--ink);
  margin-bottom:1em;
}
.rich ul,.rich ol{padding-left:20px;list-style:disc;margin-bottom:1em}
.rich ol{list-style:decimal}
.rich li{font-size:15px;font-weight:500;line-height:1.6;color:var(--ink);margin-bottom:.4em}
.rich a{color:var(--blue);text-decoration:underline;text-underline-offset:2px}
.rich h2{font-size:22px;font-weight:700;letter-spacing:-.02em;color:var(--navy);margin:34px 0 12px}
.rich h3{font-size:17px;font-weight:700;letter-spacing:-.02em;color:var(--navy);margin:24px 0 10px}

/* --------------------------------------------------------- page banner */
.pagehead{background:var(--navy-deep);padding-block:40px}
.pagehead__crumbs{font-size:13px;font-weight:500;letter-spacing:-.02em;color:rgba(255,255,255,.72);margin-bottom:12px}
.pagehead__crumbs a{color:#fff;text-decoration:underline;text-underline-offset:2px}
.pagehead__crumbs .sep{padding:0 7px;opacity:.6}
.pagehead__title{font-size:38px;font-weight:700;line-height:1.15;letter-spacing:-.02em;color:#fff}
.pagehead__lede{max-width:680px;margin-top:10px;font-size:15px;font-weight:500;line-height:1.5;color:rgba(255,255,255,.85)}

/* -------------------------------------------------------------- section */
.section{padding-block:48px}
.section--tight{padding-block:32px}
.section--surface{background:var(--surface)}
.section__head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px;flex-wrap:wrap}
.section__title{font-size:32px;font-weight:700;line-height:1.2;letter-spacing:-.02em;color:var(--navy)}
.section__link{font-size:15px;font-weight:700;letter-spacing:-.02em;color:var(--navy);border-bottom:2px solid transparent}
.section__link:hover{border-bottom-color:var(--yellow)}

/* ------------------------------------------------------ home search bar
   Not in the design folder — added because the SoW requires a search bar on
   the home page. Built from the design's own field and button components. */
.home-search{display:grid;grid-template-columns:1fr 1fr 1fr 1fr auto;gap:16px;align-items:end}
.home-search .field{margin:0;min-width:0}
.home-search button{height:46px}
@media (max-width:991.98px){
  .home-search{grid-template-columns:1fr 1fr}
  .home-search .field:first-child{grid-column:1/-1}
  .home-search button{grid-column:1/-1}
}
@media (max-width:575.98px){.home-search{grid-template-columns:1fr}}

/* ====================================================== homepage carousels
   Two carousels share one engine (js/ui.js). Both sit inside the supplied
   design's existing containers, so the surrounding layout is untouched. */

/* shared arrow control — yellow disc, navy chevron, matching the design */
.car-arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:44px;height:44px;border:0;border-radius:50%;cursor:pointer;
  background:var(--yellow);box-shadow:0 4px 14px rgba(0,0,0,.22);
  display:flex;align-items:center;justify-content:center;
}
.car-arrow::before{
  content:"";width:11px;height:11px;border-top:3px solid var(--navy-deep);
  border-right:3px solid var(--navy-deep);
}
.car-arrow--prev::before{transform:rotate(-135deg);margin-left:4px}
.car-arrow--next::before{transform:rotate(45deg);margin-right:4px}
.car-arrow:hover{background:#ffe94d}
.car-arrow:focus-visible{outline:3px solid var(--navy-deep);outline-offset:2px}

/* ---------- hero: full-bleed image carousel, copy overlaid ----------------
   The design's split hero (546px navy panel + image beside it) becomes a single
   edge-to-edge stage: the carousel is the background layer and the heading,
   description and buttons sit on top of it. Overrides style.css rather than
   editing it. */
.hero--full{
  position:relative;display:block;padding:0;
  min-height:600px;overflow:hidden;background:var(--navy-deep);
}
.hero--full .hero-car__viewport{position:absolute;inset:0;z-index:0;overflow:hidden}
.hero-car__track{display:flex;height:100%;will-change:transform}
.hero-car__slide{flex:0 0 100%;max-width:100%;height:100%}
.hero-car__slide img{display:block;width:100%;height:100%;object-fit:cover}

/* Legibility scrim. Slides run from bright sky to dark ground, so the copy needs
   a guaranteed contrast floor rather than relying on the photograph. Strongest
   on the left where the text sits, clearing towards the right. */
.hero__overlay{
  position:relative;z-index:2;display:flex;align-items:center;min-height:600px;
}
    .hero__overlay::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background: linear-gradient(90deg, rgb(1 51 99 / 24%) 0%, rgba(1, 51, 99, .34) 34%, rgba(1, 51, 99, .55) 58%, rgba(1, 51, 99, .14) 82%, rgba(1, 51, 99, 0) 100%), linear-gradient(180deg, rgba(1, 25, 50, .28) 0%, rgba(1, 25, 50, .08) 45%, rgba(1, 25, 50, .20) 100%);
    }
.hero__overlay-inner{
  display:flex;flex-direction:column;justify-content:center;gap:32px;
  width:100%;padding-block:64px;
}
.hero--full .hero__text{max-width:660px}
.hero--full .hero__lede{max-width:560px}

/* Arrows sit against the left and right edges, vertically centred, sized and
   inset to stay clear of the copy: the container gutter steps 64/40/32/24 down
   the breakpoints, so the arrow always fits inside it without overlapping. */
.hero--full .car-arrow{z-index:3;top:50%;transform:translateY(-50%);width:40px;height:40px}
.hero--full .car-arrow--prev{left:14px;right:auto}
.hero--full .car-arrow--next{right:14px;left:auto}

@media (max-width:1279.98px){
  /* gutter drops to 40px -> a 32px arrow inset 2px still clears the text */
  .hero--full .car-arrow{width:32px;height:32px}
  .hero--full .car-arrow--prev{left:2px}
  .hero--full .car-arrow--next{right:2px}
}
@media (max-width:991.98px){
  /* From here the gutter is 32px or less, so a vertically-centred arrow would
     sit on the copy. Drop both to the bottom corners — still left and right,
     but clear of the heading, description and buttons. */
  .hero--full .car-arrow{width:38px;height:38px;top:auto;bottom:16px;transform:none}
  .hero--full .car-arrow--prev{left:12px}
  .hero--full .car-arrow--next{right:12px}
  .hero__overlay-inner{padding-bottom:74px}
}
@media (max-width:1199.98px){
  .hero--full,.hero--full .hero__overlay{min-height:540px}
}
@media (max-width:767.98px){
  .hero--full,.hero--full .hero__overlay{min-height:520px}
  .hero__overlay-inner{padding-block:44px;gap:24px}
  .hero--full .hero__title{font-size:34px}
  .hero--full .hero__lede{font-size:15px}
  /* On a phone the copy spans the full width, so darken evenly instead. */
  .hero__overlay::before{
    background:linear-gradient(180deg,rgba(1,51,99,.84) 0%,rgba(1,51,99,.74) 55%,rgba(1,51,99,.66) 100%);
  }
  .hero--full .hero__buttons .btn-st{min-width:0;flex:1 1 100%}
  /* Buttons span the full width on a phone, so reserve room beneath them. */
  .hero__overlay-inner{padding-bottom:78px}
  .hero--full .car-arrow{bottom:14px}
}

/* ---------- recent deliveries */
.deliv-car{position:relative;padding-block:0}
.deliv-car__shell{position:relative;padding-inline:64px}
.deliv-car__viewport{overflow:hidden}
.deliv-car__track{
  display:flex;list-style:none;margin:0;padding:0;will-change:transform;
}
.deliv-car__track .delivery{
  flex:0 0 33.3333%;max-width:33.3333%;box-sizing:border-box;
}
.deliv-car .car-arrow--prev{left:6px}
.deliv-car .car-arrow--next{right:6px}
/* The design gives .delivery__icon and .delivery__body fixed pixel widths,
   which suited a free-scrolling strip. Inside a 3-up carousel each tile is a
   third of the container, so both panes become proportional and the text is
   allowed to wrap instead of being clipped. */
.deliv-car .delivery{border-left:6px solid var(--navy);min-width:0}
.deliv-car .delivery__icon{flex:0 0 40%;min-width:0;padding:10px}
.deliv-car .delivery__body{flex:1 1 auto;min-width:0;padding:14px 18px}
.deliv-car .delivery__place,
.deliv-car .delivery__what,
.deliv-car .delivery__when{overflow-wrap:anywhere;hyphens:auto}
/* Admin may upload a photo or line art, so scale to fit inside the panel
   rather than cropping either. */
.deliv-car .delivery__icon img{
  max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;
}

@media (max-width:1199.98px){
  .deliv-car__track .delivery{flex-basis:50%;max-width:50%}
  .deliv-car .delivery__icon{flex-basis:38%}
}
@media (max-width:767.98px){
  /* Stacked copy over a taller crop; the scrim turns bottom-up so the centred
     text still clears the photograph. */
  .hero{min-height:520px}
  .hero__panel{padding:48px 24px 96px;min-height:520px}
  .hero__text,.hero__buttons{max-width:none}
  .hero-car::after{
    background:linear-gradient(180deg,rgba(1,51,99,.72) 0%,rgba(1,51,99,.90) 30%,rgba(1,51,99,.95) 100%);
  }
  .hero-car .car-arrow{width:38px;height:38px;bottom:20px}
  .hero-car .car-arrow--prev{left:auto;right:70px}
  .hero-car .car-arrow--next{right:20px}
  .deliv-car__shell{padding-inline:46px}
  .deliv-car__track .delivery{flex-basis:100%;max-width:100%}
}
@media (prefers-reduced-motion:reduce){
  .hero-car__track,.deliv-car__track{transition:none !important}
}

/* ---------------------------------------------------------------- cards */
.panel{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius-lg);
  padding:28px;box-shadow:var(--card-shadow);
}
.panel--flush{padding:0;overflow:hidden}
.panel--surface{background:var(--surface);box-shadow:none}
.panel__head{
  display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;
  padding:20px 24px;border-bottom:1px solid var(--line);
}
.panel__title{font-size:18px;font-weight:700;letter-spacing:-.02em;color:var(--navy)}
.panel__body{padding:24px}

.grid{display:grid;gap:24px}
.grid--2{grid-template-columns:repeat(2,1fr)}
.grid--3{grid-template-columns:repeat(3,1fr)}
.grid--4{grid-template-columns:repeat(4,1fr)}
.grid--5{grid-template-columns:repeat(5,1fr)}
.grid--sidebar{grid-template-columns:290px 1fr;align-items:start}

/* -------------------------------------------------------- product cards */
.prod{
  display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);
  border-radius:var(--radius-md);overflow:hidden;box-shadow:var(--card-shadow);
  transition:box-shadow .18s ease,transform .18s ease;
}
.prod:hover{box-shadow:0 10px 24px rgba(1,51,99,.14);transform:translateY(-2px)}
.prod__media{position:relative;height:180px;background:var(--grey);display:flex;align-items:center;justify-content:center;overflow:hidden}
.prod__media img{width:100%;height:100%;object-fit:cover}
.prod__media img.is-icon{width:auto;height:74%;object-fit:contain}
.prod__body{flex:1;padding:16px 18px 8px}
.prod__title{font-size:17px;font-weight:700;line-height:1.25;letter-spacing:-.02em;color:var(--navy);margin-bottom:8px}
.prod__title a{color:inherit}
.prod__title a:hover{color:var(--blue)}
.prod__meta{font-size:13.5px;font-weight:500;line-height:1.5;color:var(--ink-soft)}
.prod__meta b{color:var(--ink);font-weight:600}
.prod__foot{padding:12px 18px 18px;display:flex;gap:8px;flex-wrap:wrap}
.prod__foot .btn-st{flex:1 1 auto;min-width:0}

.enquire-tag{
  display:inline-block;margin-top:12px;padding:5px 10px;border-radius:8px;
  background:rgba(255,227,0,.28);border:1px dashed rgba(0,0,0,.25);
  font-size:13px;font-weight:700;letter-spacing:-.02em;color:var(--navy-deep);
}

/* --------------------------------------------------------------- badges */
.badge-st{
  display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:6px;
  font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
  background:var(--navy);color:#fff;
}
.badge-st--lease{background:var(--green)}
.badge-st--both{background:var(--amber)}
.badge-st--float{position:absolute;top:12px;left:12px;z-index:2}
.badge-st--soft{background:rgba(0,0,0,.06);color:var(--ink)}
.badge-st--ok{background:rgba(27,107,74,.14);color:var(--green)}
.badge-st--warn{background:rgba(138,91,0,.16);color:var(--amber)}
.badge-st--bad{background:rgba(237,28,36,.13);color:var(--red)}
.badge-st--info{background:rgba(0,97,160,.13);color:var(--blue)}

/* ------------------------------------------------------------- buttons+ */
.btn-st--sm{min-width:0;padding:8px 14px;font-size:13.5px;border-radius:var(--radius-sm)}
.btn-st--ghost{border:2px solid var(--navy);color:var(--navy);background:none;min-width:0}
.btn-st--ghost:hover,.btn-st--ghost:focus-visible{background:var(--navy);color:#fff}
.btn-st--navy{background:var(--navy);color:#fff;border:2px solid var(--navy)}
.btn-st--navy:hover,.btn-st--navy:focus-visible{background:var(--navy-deep);border-color:var(--navy-deep)}
.btn-st--danger{border:2px solid var(--red);color:var(--red);background:none;min-width:0}
.btn-st--danger:hover,.btn-st--danger:focus-visible{background:var(--red);color:#fff}
.btn-st--block{width:100%}
button.btn-st{font-family:inherit;cursor:pointer;border:0}
button.btn-st--ghost,button.btn-st--danger{border-width:2px;border-style:solid}
.btn-st[disabled],.btn-st.is-disabled{opacity:.45;pointer-events:none}
.btn-row{display:flex;gap:12px;flex-wrap:wrap}
.btn-row--end{justify-content:flex-end}

/* --------------------------------------------------------------- forms */
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
.form-grid .field--full{grid-column:1/-1}

.field{margin-bottom:18px}
.field__label{
  display:block;margin-bottom:8px;font-size:13px;font-weight:600;
  letter-spacing:-.02em;color:var(--navy);
}
.field__hint{display:block;margin-top:6px;font-size:12.5px;font-weight:500;color:var(--ink-soft)}
.field__error{display:none;margin-top:6px;font-size:12.5px;font-weight:600;color:var(--red)}
.field.is-invalid .field__error{display:block}
.field.is-invalid .input-st{border-color:var(--red)}
.req{color:var(--red)}

.input-st{
  width:100%;min-height:46px;padding:11px 14px;border:1px solid var(--field-border);
  border-radius:var(--radius-md);background:#fff;font-family:inherit;font-size:14.5px;
  font-weight:500;letter-spacing:-.005em;color:var(--navy-deep);
}
.input-st::placeholder{color:rgba(0,0,0,.4)}
.input-st:focus-visible{outline:3px solid var(--yellow);outline-offset:1px}
textarea.input-st{min-height:120px;resize:vertical;line-height:1.5}
select.input-st{
  appearance:none;
  background-image:linear-gradient(45deg,transparent 50%,var(--navy) 50%),linear-gradient(135deg,var(--navy) 50%,transparent 50%);
  background-position:calc(100% - 19px) calc(50% + 2px),calc(100% - 13px) calc(50% + 2px);
  background-size:6px 6px,6px 6px;background-repeat:no-repeat;padding-right:38px;
}
.input-row{display:flex;gap:10px;align-items:center}
.input-row .input-st{min-width:0}

.check{display:flex;gap:10px;align-items:flex-start;margin-bottom:10px;font-size:13.5px;font-weight:500;line-height:1.45;color:var(--ink)}
.check input{flex:none;width:17px;height:17px;margin-top:2px;accent-color:var(--navy)}
.check a{color:var(--blue);text-decoration:underline;text-underline-offset:2px}

.consent-box{
  padding:16px 18px;margin-bottom:18px;border-radius:var(--radius-md);
  background:rgba(255,227,0,.14);border:1px solid rgba(255,227,0,.9);
}
.consent-box .check:last-child{margin-bottom:0}

.notice{
  padding:14px 18px;margin-bottom:20px;border-left:4px solid var(--yellow);
  border-radius:0 var(--radius-md) var(--radius-md) 0;background:rgba(255,227,0,.14);
  font-size:13.5px;font-weight:500;line-height:1.5;color:var(--ink);
}
.notice b{color:var(--navy)}
.notice--ok{border-left-color:var(--green);background:rgba(27,107,74,.09)}
.notice--bad{border-left-color:var(--red);background:rgba(237,28,36,.08)}
.notice--info{border-left-color:var(--blue);background:rgba(0,97,160,.09)}
.notice a{color:var(--blue);text-decoration:underline;text-underline-offset:2px}

.fieldset-st{border:0;padding:0;margin:0 0 18px}
.fieldset-st legend{
  padding:0;margin-bottom:10px;font-size:13px;font-weight:600;
  letter-spacing:-.02em;color:var(--navy);
}

/* ------------------------------------------------- mutually exclusive choice
   Sale vs Lease. Radio inputs stay real (keyboard + screen reader), the card
   is just the visible affordance. */
.choice-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.choice{
  display:flex;align-items:flex-start;gap:12px;padding:14px 16px;cursor:pointer;
  border:2px solid var(--line);border-radius:var(--radius-md);background:#fff;transition:.15s ease;
}
.choice:hover{border-color:var(--blue)}
.choice input{flex:none;width:18px;height:18px;margin-top:2px;accent-color:var(--navy)}
.choice__body{display:flex;flex-direction:column;gap:3px}
.choice__body b{font-size:14.5px;font-weight:700;letter-spacing:-.02em;color:var(--navy)}
.choice__body span{font-size:12.5px;font-weight:500;line-height:1.4;color:var(--ink-soft)}
.choice.is-on{border-color:var(--yellow);background:rgba(255,227,0,.10)}
.fieldset-st.is-invalid .choice{border-color:var(--red)}
.fieldset-st.is-invalid .field__error{display:block}

/* currency-prefixed number input */
.input-prefix{position:relative;display:block}
.input-prefix__sign{
  position:absolute;left:14px;top:50%;transform:translateY(-50%);pointer-events:none;
  font-size:14.5px;font-weight:700;color:var(--ink-soft);
}
.input-prefix .input-st{padding-left:30px}

/* drag-and-drop active state */
.dropzone{cursor:pointer;transition:.15s ease}
.dropzone:hover{border-color:var(--blue);color:var(--navy)}
.dropzone.is-over{border-color:var(--yellow);background:rgba(255,227,0,.14);color:var(--navy)}
.dropzone:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}

/* --------------------------------------------------------------- steps */
.steps{display:flex;gap:0;flex-wrap:wrap;margin-bottom:28px}
.step-st{flex:1 1 160px;padding:12px 18px 0 0;border-top:4px solid var(--line)}
.step-st.is-on{border-top-color:var(--yellow)}
.step-st.is-done{border-top-color:var(--navy)}
.step-st b{display:block;font-size:14px;font-weight:700;letter-spacing:-.02em;color:var(--navy)}
.step-st span{font-size:12.5px;font-weight:500;color:var(--ink-soft)}

/* ------------------------------------------------------- filters/toolbar */
.filters{position:sticky;top:20px}
.filters__title{font-size:15px;font-weight:700;letter-spacing:-.02em;color:var(--navy);margin-bottom:18px}
.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:20px}
.toolbar__count{font-size:14px;font-weight:500;color:var(--ink-soft)}
.toolbar__count b{color:var(--navy);font-weight:700}
.toolbar__tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.toolbar__tools .input-st{min-height:40px;padding-block:8px;width:auto}
.toolbar__label{font-size:13px;font-weight:600;color:var(--navy)}

.viewtoggle{display:flex;border:1px solid var(--field-border);border-radius:var(--radius-sm);overflow:hidden}
.viewtoggle button{
  border:0;background:#fff;padding:9px 14px;font-family:inherit;font-size:13px;
  font-weight:600;color:var(--ink-soft);cursor:pointer;
}
.viewtoggle button.is-on{background:var(--navy);color:#fff}

.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}
.chip{
  display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;
  background:rgba(0,97,160,.10);border:1px solid rgba(0,97,160,.22);
  font-size:12.5px;font-weight:600;letter-spacing:-.02em;color:var(--navy);
}
.chip button{border:0;background:none;padding:0;font-size:15px;line-height:1;color:var(--blue);cursor:pointer;font-family:inherit}

/* list view */
.results.is-list .grid{grid-template-columns:1fr}
.results.is-list .prod{flex-direction:row}
.results.is-list .prod__media{flex:0 0 240px;height:auto;min-height:170px}
.results.is-list .prod__body{padding-top:20px}
.results.is-list .prod__foot{flex-direction:column;justify-content:center;flex:0 0 210px;align-self:center}

/* ----------------------------------------------------------- pagination */
.pager{display:flex;gap:6px;justify-content:center;align-items:center;flex-wrap:wrap;margin-top:32px}
.pager a,.pager span{
  min-width:40px;height:40px;padding:0 12px;display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--line);border-radius:var(--radius-sm);background:#fff;
  font-size:14px;font-weight:600;color:var(--navy);
}
.pager a:hover{border-color:var(--navy)}
.pager .is-on{background:var(--navy);color:#fff;border-color:var(--navy)}
.pager .is-off{color:rgba(0,0,0,.32);background:var(--surface)}

/* ------------------------------------------------------------ accordion */
.acc{border:1px solid var(--line);border-radius:var(--radius-md);background:#fff;overflow:hidden;margin-bottom:14px;box-shadow:var(--card-shadow)}
.acc__head{
  width:100%;display:flex;align-items:center;gap:14px;padding:18px 22px;border:0;background:#fff;
  font-family:inherit;font-size:17px;font-weight:700;letter-spacing:-.02em;color:var(--navy);
  text-align:left;cursor:pointer;
}
.acc__head:hover{background:rgba(255,227,0,.10)}
.acc__count{
  padding:3px 10px;border-radius:999px;background:rgba(0,97,160,.12);
  font-size:12px;font-weight:700;color:var(--blue);
}
.acc__sign{margin-left:auto;font-size:22px;line-height:1;color:var(--navy);font-weight:700}
.acc__head[aria-expanded="true"]{background:rgba(255,227,0,.14);box-shadow:inset 0 -1px 0 var(--line)}
.acc__panel{display:none;padding:22px;background:var(--surface);border-top:1px solid var(--line)}
.acc__panel.is-open{display:block}
.acc__deeplink{margin-top:16px;font-size:12.5px;font-weight:500;color:var(--ink-soft)}
.acc__deeplink code{
  padding:2px 6px;border-radius:4px;background:rgba(0,0,0,.06);
  font-size:12px;color:var(--navy-deep);
}

/* --------------------------------------------------------- detail page */
.detail{display:grid;grid-template-columns:1.1fr .9fr;gap:36px;align-items:start}
.gallery__main{
  height:400px;border:1px solid var(--line);border-radius:var(--radius-lg);
  background:var(--grey);overflow:hidden;display:flex;align-items:center;justify-content:center;
}
.gallery__main img{width:100%;height:100%;object-fit:fill}
.gallery__main img.is-icon{width:auto;height:70%;object-fit:contain}
.gallery__thumbs{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.gallery__thumbs button{
  width:88px;height:66px;padding:0;border:2px solid var(--line);border-radius:var(--radius-sm);
  background:var(--grey);overflow:hidden;cursor:pointer;
}
.gallery__thumbs button.is-on{border-color:var(--yellow)}
.gallery__thumbs img{width:100%;height:100%;object-fit:cover}
.gallery__video{position:relative;background:var(--navy-deep)}
.gallery__video::after{content:"\25B6";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--yellow);font-size:17px}

.enquire{padding:24px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface)}
.pricelock{
  padding:16px 18px;margin-bottom:20px;border-radius:var(--radius-md);
  background:#fff;border:1px dashed rgba(0,0,0,.3);
}
.pricelock b{display:block;font-size:19px;font-weight:700;letter-spacing:-.02em;color:var(--navy)}
.pricelock span{display:block;margin-top:6px;font-size:12.5px;font-weight:500;line-height:1.45;color:var(--ink-soft)}

.kv{width:100%;border-collapse:collapse;margin-bottom:18px}
.kv th,.kv td{padding:10px 0;border-bottom:1px solid var(--line);font-size:14px;text-align:left;vertical-align:top}
.kv th{width:44%;font-weight:600;color:var(--ink-soft)}
.kv td{font-weight:600;color:var(--ink)}

.spec-table{width:100%;border-collapse:collapse}
.spec-table th,.spec-table td{padding:12px 16px;border:1px solid var(--line);font-size:14px;text-align:left}
.spec-table th{width:38%;background:var(--surface);font-weight:600;color:var(--navy)}
.spec-table td{font-weight:500;color:var(--ink)}

.seller{display:flex;align-items:center;gap:14px;padding:18px;border:1px solid var(--line);border-radius:var(--radius-md);background:#fff}
.seller__logo{
  flex:none;width:58px;height:58px;border-radius:var(--radius-sm);background:var(--navy-deep);
  display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:800;color:var(--yellow);
}
.seller__name{font-size:15px;font-weight:700;color:var(--navy)}
.seller__verified{font-size:12.5px;font-weight:700;color:var(--green)}

.tabs-st{display:flex;gap:4px;flex-wrap:wrap;border-bottom:2px solid var(--line);margin:40px 0 24px}
.tabs-st button{
  padding:13px 18px;border:0;border-bottom:3px solid transparent;margin-bottom:-2px;background:none;
  font-family:inherit;font-size:15px;font-weight:600;letter-spacing:-.02em;color:var(--ink-soft);cursor:pointer;
}
.tabs-st button.is-on{color:var(--navy);border-bottom-color:var(--yellow)}
.tabpanel{display:none}
.tabpanel.is-on{display:block}

/* ------------------------------------------------- category introduction */
.cat-intro{display:grid;grid-template-columns:1fr 340px;gap:36px;align-items:start}
.cat-intro__lede{
  font-size:19px;font-weight:600;line-height:1.5;letter-spacing:-.02em;
  color:var(--navy);margin-bottom:16px;
}
.cat-intro__main p{margin-bottom:14px}
.cat-intro__aside{
  padding:24px;border:1px solid var(--line);border-radius:var(--radius-lg);
  background:var(--surface);
}
.cat-intro__h{
  font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
  color:var(--ink-soft);margin-bottom:14px;
}
.cat-intro__list{list-style:none;margin:0 0 20px;padding:0}
.cat-intro__list li{
  position:relative;padding-left:22px;margin-bottom:10px;
  font-size:14px;font-weight:500;line-height:1.45;color:var(--ink);
}
.cat-intro__list li::before{
  content:"";position:absolute;left:0;top:7px;width:9px;height:9px;
  border-radius:2px;background:var(--yellow);
}
@media (max-width:991.98px){
  .cat-intro{grid-template-columns:1fr;gap:24px}
}

/* -------------------------------------------------------------- FAQ */
.faq details{border:1px solid var(--line);border-radius:var(--radius-md);background:#fff;margin-bottom:10px;box-shadow:var(--card-shadow)}
.faq summary{
  display:flex;justify-content:space-between;gap:16px;padding:17px 22px;cursor:pointer;list-style:none;
  font-size:16px;font-weight:700;letter-spacing:-.02em;color:var(--navy);
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";font-size:21px;line-height:1;color:var(--navy)}
.faq details[open] summary::after{content:"\2013"}
.faq__body{padding:0 22px 20px}

/* ------------------------------------------------------------- doc/TOC */
.doc{max-width:820px}
.doc__updated{padding-bottom:14px;margin-bottom:22px;border-bottom:1px solid var(--line);font-size:13px;font-weight:500;color:var(--ink-soft)}
.doc__toc{padding:18px 22px;margin-bottom:30px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface)}
.doc__toc b{display:block;margin-bottom:10px;font-size:13px;font-weight:700;color:var(--navy)}
.doc__toc ol{columns:2;padding-left:18px;list-style:decimal}
.doc__toc li{font-size:13.5px;font-weight:500;margin-bottom:6px}
.doc__toc a{color:var(--blue)}

/* --------------------------------------------------------------- modal */
.modal-st{
  position:fixed;inset:0;z-index:1090;display:none;align-items:flex-start;justify-content:center;
  padding:40px 16px;overflow:auto;background:rgba(1,51,99,.55);
}
.modal-st.is-open{display:flex}
.modal-st__box{
  position:relative;width:100%;max-width:640px;padding:28px;border-radius:var(--radius-lg);
  background:#fff;box-shadow:0 20px 50px rgba(0,0,0,.28);
}
.modal-st__box--wide{max-width:840px}
.modal-st__title{font-size:20px;font-weight:700;letter-spacing:-.02em;color:var(--navy);margin-bottom:6px}
.modal-st__close{
  position:absolute;top:14px;right:16px;width:32px;height:32px;border:0;background:none;
  font-size:24px;line-height:1;color:var(--ink-soft);cursor:pointer;
}

/* ------------------------------------------------------- document viewer */
.docview{margin:18px 0 22px}
.docview__h{
  margin:22px 0 12px;font-size:13px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--ink-soft);
}
.docview__h:first-child{margin-top:0}
.docview__img,.docview__embed{
  width:100%;max-height:460px;border:1px solid var(--line);border-radius:var(--radius-md);
  background:var(--surface);display:block;object-fit:contain;
}
.docview__embed{height:460px}
.docview__sheet{
  position:relative;padding:34px 32px;border:1px solid var(--line);border-radius:var(--radius-md);
  background:#fff;box-shadow:inset 0 0 0 1px rgba(0,0,0,.02);
}
.docview__sheet--img{background:var(--surface)}
.docview__stamp{
  position:absolute;top:16px;right:18px;padding:4px 10px;border-radius:6px;
  background:var(--navy-deep);color:#fff;font-size:11px;font-weight:700;letter-spacing:.08em;
}
.docview__note{margin:0 0 18px;font-size:15px;font-weight:700;letter-spacing:-.02em;color:var(--navy)}
.docview__lines{display:flex;flex-direction:column;gap:10px;margin-bottom:20px}
.docview__lines span{height:9px;border-radius:4px;background:rgba(0,0,0,.09)}

/* document list rows */
.doclist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.doclist__row{
  display:flex;align-items:center;gap:14px;padding:12px 14px;
  border:1px solid var(--line);border-radius:var(--radius-md);background:#fff;
}
.doclist__icon{
  flex:none;width:42px;height:42px;border-radius:8px;background:var(--navy-deep);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;letter-spacing:.04em;
}
.doclist__icon--img{background:var(--blue)}
.doclist__body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.doclist__body b{font-size:14px;font-weight:700;letter-spacing:-.02em;color:var(--navy);word-break:break-word}
.doclist__body span{font-size:12.5px;font-weight:500;color:var(--ink-soft)}
.doclist__actions{display:flex;gap:6px;flex-wrap:wrap;flex:none}

/* --------------------------------------------------------------- toast */
.toast-wrap{position:fixed;right:20px;bottom:20px;z-index:1200;display:flex;flex-direction:column;gap:10px}
.toast{
  min-width:260px;max-width:360px;padding:14px 18px;border-radius:var(--radius-md);
  background:var(--navy-deep);color:#fff;box-shadow:0 12px 30px rgba(0,0,0,.28);
  font-size:13.5px;font-weight:600;letter-spacing:-.02em;
}
.toast--ok{background:var(--green)}
.toast--bad{background:var(--red)}

/* ============================== PORTAL SHELL ============================== */
.portal{display:grid;grid-template-columns:256px 1fr;min-height:100vh;background:var(--surface)}

.portal__side{
  position:sticky;top:0;align-self:start;height:100vh;overflow-y:auto;
  background:var(--navy-deep);padding:22px 0 30px;
}
.portal__brand{display:flex;align-items:center;gap:10px;padding:0 22px 20px;margin-bottom:6px;border-bottom:1px solid rgba(255,255,255,.12)}
.portal__brand img{width:170px;height:auto;filter:brightness(0) invert(1)}
.portal__role{
  display:inline-block;margin:14px 22px 6px;padding:4px 10px;border-radius:999px;
  background:var(--yellow);font-size:11px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--navy-deep);
}
.portal__navgroup{margin-top:14px}
.portal__navlabel{
  padding:0 22px 8px;font-size:10.5px;font-weight:700;letter-spacing:.11em;
  text-transform:uppercase;color:rgba(255,255,255,.42);
}
.portal__nav{display:flex;flex-direction:column}
.portal__nav a{
  display:flex;align-items:center;gap:10px;padding:10px 22px;
  font-size:14px;font-weight:500;letter-spacing:-.01em;color:rgba(255,255,255,.82);
  border-left:3px solid transparent;
}
.portal__nav a:hover{background:rgba(255,255,255,.07);color:#fff}
.portal__nav a.is-on{background:rgba(255,227,0,.14);border-left-color:var(--yellow);color:#fff;font-weight:600}
.portal__nav .pill{
  margin-left:auto;padding:2px 8px;border-radius:999px;background:var(--yellow);
  font-size:11px;font-weight:700;color:var(--navy-deep);
}
.portal__nav .lock{margin-left:auto;font-size:11px;color:rgba(255,255,255,.45)}

.portal__main{min-width:0;display:flex;flex-direction:column}
.portal__top{
  position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;
  gap:20px;padding:16px 32px;background:#fff;border-bottom:1px solid var(--line);
}
.portal__h1{font-size:22px;font-weight:700;letter-spacing:-.02em;color:var(--navy)}
.portal__sub{font-size:13px;font-weight:500;color:var(--ink-soft);margin-top:2px}
.portal__topright{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.portal__user{display:flex;align-items:center;gap:10px}
.portal__avatar{
  width:36px;height:36px;border-radius:50%;background:var(--navy);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:700;
}
.portal__username{font-size:13.5px;font-weight:700;color:var(--navy);line-height:1.2}
.portal__userrole{font-size:12px;font-weight:500;color:var(--ink-soft)}
.portal__content{padding:28px 32px 48px;flex:1}
.portal__burger{display:none;border:1px solid var(--line);border-radius:8px;background:none;padding:8px 12px;font-size:18px;cursor:pointer;color:var(--navy)}

/* KPI tiles */
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-bottom:28px}
.kpi{
  padding:20px 22px;border:1px solid var(--line);border-radius:var(--radius-lg);
  background:#fff;box-shadow:var(--card-shadow);
}
.kpi__label{font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--ink-soft)}
.kpi__value{margin-top:8px;font-size:34px;font-weight:800;line-height:1.1;letter-spacing:-.02em;color:var(--navy)}
.kpi__foot{margin-top:8px;font-size:12.5px;font-weight:500;color:var(--ink-soft)}
.kpi--alert{border-color:rgba(255,227,0,.9);background:rgba(255,227,0,.13)}
.kpi--alert .kpi__value{color:var(--navy-deep)}
.kpi a{color:var(--blue);font-weight:600;text-decoration:underline;text-underline-offset:2px}

/* Data tables */
.table-wrap{overflow-x:auto}
.table-st{width:100%;border-collapse:collapse;font-size:13.5px}
.table-st th,.table-st td{padding:13px 16px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}
.table-st thead th{
  background:var(--surface);font-size:11.5px;font-weight:700;letter-spacing:.05em;
  text-transform:uppercase;color:var(--ink-soft);white-space:nowrap;
}
.table-st thead th.sortable{cursor:pointer;user-select:none}
.table-st thead th.sortable::after{content:"\2195";margin-left:6px;opacity:.4}
.table-st thead th.sort-asc::after{content:"\2191";opacity:1}
.table-st thead th.sort-desc::after{content:"\2193";opacity:1}
.table-st tbody tr:hover{background:rgba(255,227,0,.07)}
.table-st td.num{text-align:right;font-variant-numeric:tabular-nums}
.table-st .row-title{font-weight:700;color:var(--navy)}
.table-st .row-sub{display:block;font-size:12px;font-weight:500;color:var(--ink-soft);margin-top:2px}
.table-st .actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
/* Dashboard cards sit in a 2-up grid, so their tables get a compact layout:
   the first column takes the space and the rest shrink to their content. */
.table-st--mini td{padding:12px 14px}
.table-st--mini td:first-child{width:99%}
.table-st--mini td:not(:first-child){white-space:nowrap;width:1%}
.table-st--mini .cell-media{margin-bottom:2px}
.row-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:6px}
/* Half-width admin panels: two columns only, with the row's actions sitting
   under its content so nothing is forced off the edge of the panel. */
.table-st--compact td{padding:14px 16px;vertical-align:top}
.table-st--compact td:first-child{width:1%;white-space:nowrap;color:var(--ink-soft)}
.rowactions{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}
.btn-st--icon{min-width:34px;padding-inline:10px}
.table-empty{padding:40px 20px;text-align:center;color:var(--ink-soft);font-size:14px}

.tablebar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:16px 24px;border-bottom:1px solid var(--line);background:#fff}
.tablebar__filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.tablebar .input-st{min-height:40px;padding-block:8px;width:auto;min-width:150px}
.tablebar .input-st[type="search"]{min-width:230px}

.thumb-sm{width:44px;height:34px;border-radius:6px;object-fit:cover;background:var(--grey);flex:none}
.cell-media{display:flex;align-items:center;gap:12px}

/* split view for editors */
.editor-grid{display:grid;grid-template-columns:1fr 330px;gap:24px;align-items:start}
.sticky-side{position:sticky;top:96px}

/* timeline / activity */
.timeline{list-style:none;padding:0;margin:0}
.timeline li{position:relative;padding:0 0 20px 26px;border-left:2px solid var(--line)}
.timeline li:last-child{border-left-color:transparent;padding-bottom:0}
.timeline li::before{
  content:"";position:absolute;left:-7px;top:3px;width:12px;height:12px;border-radius:50%;
  background:var(--yellow);border:2px solid #fff;box-shadow:0 0 0 1px var(--line);
}
.timeline b{display:block;font-size:13.5px;font-weight:700;color:var(--navy)}
.timeline span{font-size:12.5px;font-weight:500;color:var(--ink-soft)}

/* media manager */
.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:14px}
.media-item{
  position:relative;border:1px solid var(--line);border-radius:var(--radius-md);overflow:hidden;background:#fff;
}
.media-item img{width:100%;height:96px;object-fit:cover;display:block;background:var(--grey)}
.media-item__bar{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:8px 10px;font-size:11.5px;font-weight:600;color:var(--ink-soft)}
.media-item__bar button{border:0;background:none;padding:2px 4px;font-size:13px;cursor:pointer;color:var(--ink-soft);font-family:inherit}
.media-item__bar button:hover{color:var(--red)}
.media-item.is-primary{border-color:var(--yellow);box-shadow:0 0 0 2px rgba(255,227,0,.5)}
.media-item.is-primary .media-item__bar{color:var(--navy)}
.dropzone{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;
  min-height:120px;border:2px dashed var(--field-border);border-radius:var(--radius-md);
  background:var(--surface);font-size:13.5px;font-weight:600;color:var(--ink-soft);text-align:center;padding:16px;
}

/* login shell for the portals */
.authpage{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr;background:var(--navy-deep)}
.authpage__art{
  position:relative;display:flex;flex-direction:column;justify-content:center;gap:20px;
  padding:56px 64px;color:#fff;
  background-image:linear-gradient(rgba(1,51,99,.82),rgba(1,51,99,.82)),url("../assets/images/hero-excavator.png");
  background-size:cover;background-position:center;
}
.authpage__art img{width:230px;filter:brightness(0) invert(1)}
.authpage__art h2{font-size:34px;font-weight:700;line-height:1.2;letter-spacing:-.02em}
.authpage__art p{max-width:420px;font-size:15px;font-weight:500;line-height:1.55;color:rgba(255,255,255,.85)}
.authpage__form{display:flex;align-items:center;justify-content:center;padding:48px 32px;background:#fff}
.authpage__inner{width:100%;max-width:400px}
.authpage__inner h1{font-size:26px;font-weight:700;letter-spacing:-.02em;color:var(--navy);margin-bottom:8px}
.authpage__inner .lede{font-size:14px;font-weight:500;color:var(--ink-soft);margin-bottom:24px}
.demo-creds{
  margin-top:22px;padding:14px 16px;border-radius:var(--radius-md);
  background:var(--surface);border:1px solid var(--line);font-size:12.5px;font-weight:500;color:var(--ink-soft);
}
.demo-creds b{color:var(--navy)}
.demo-creds code{font-size:12px;color:var(--navy-deep)}

/* Prototype helper pill.
   The design anchors the cookie card and its reopen tag to the bottom LEFT
   (24px, and full-bleed under 768px), so this sits on the far RIGHT and, on
   narrow screens, lifts above the cookie card by its measured height. */
.proto-pill{
  position:fixed;right:24px;bottom:24px;left:auto;z-index:1060;
  padding:9px 16px;border-radius:999px;
  background:var(--navy-deep);color:#fff;font-size:12px;font-weight:600;letter-spacing:-.02em;
  box-shadow:0 8px 22px rgba(0,0,0,.3);
}
.proto-pill:hover{background:var(--navy);color:#fff}

.screenmap{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.screenmap a{
  display:block;padding:15px 18px;border:1px solid var(--line);border-radius:var(--radius-md);
  background:#fff;box-shadow:var(--card-shadow);
}
.screenmap a:hover{border-color:var(--navy)}
.screenmap b{display:block;font-size:14.5px;font-weight:700;color:var(--navy);margin-bottom:3px}
.screenmap span{font-size:12.5px;font-weight:500;line-height:1.4;color:var(--ink-soft)}

/* ---------------------------------------------------------- responsive */
@media (max-width:1279.98px){
  .grid--5{grid-template-columns:repeat(3,1fr)}
  .kpis{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:1199.98px){
  .grid--4{grid-template-columns:repeat(2,1fr)}
  .grid--sidebar{grid-template-columns:1fr}
  .filters{position:static}
  .detail{grid-template-columns:1fr}
  .editor-grid{grid-template-columns:1fr}
  .sticky-side{position:static}
  .portal{grid-template-columns:1fr}
  .portal__side{
    position:fixed;left:0;top:0;bottom:0;width:256px;height:100vh;z-index:1100;
    transform:translateX(-100%);transition:transform .2s ease;
  }
  .portal__side.is-open{transform:translateX(0)}
  .portal__burger{display:block}
  .screenmap{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:767.98px){
  .pagehead{padding-block:28px}
  .pagehead__title{font-size:27px}
  .section{padding-block:34px}
  .section__title{font-size:24px}
  .grid--2,.grid--3,.grid--4,.grid--5{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .kpis{grid-template-columns:1fr}
  .results.is-list .prod{flex-direction:column}
  .results.is-list .prod__media{flex:none;height:180px}
  .doc__toc ol{columns:1}
  .authpage{grid-template-columns:1fr}
  .authpage__art{display:none}
  .portal__top{padding:14px 18px}
  .portal__content{padding:20px 18px 40px}
  .screenmap{grid-template-columns:1fr}
  .panel{padding:20px}
  .gallery__main{height:260px}
  /* Under 768px the cookie card spans the full width, so clear its height. */
  .proto-pill{right:12px;left:auto;bottom:calc(12px + var(--cookie-clearance, 0px))}
}
@media (prefers-reduced-motion:reduce){
  .prod:hover{transform:none}
}


.stack-trace-btn {
    width: 100px;
    height: 48px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 16px;
    line-height: 1.2;
}


.activation-reset-btn {
    width: 170px;
    min-height: 48px;
    padding: 0 12px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}