/* Brand-site CSS: every theme, first part. Loaded by resources/views/subdomain/brandsite/site/layout.blade.php via
   cdn_v() (TK #2910). EDIT HERE - this file is the source, not a build output. Moved byte-for-byte
   from subdomain/brandsite/site/layout.blade.php on 2026-11-17. */
/* Geely's "EM-i" keeps its small i under capitalised headings (GeelyTrademarkText wraps the i; owner 2026-10-21). */
.g-tmi { text-transform:none !important; }
.geely-dark {
  --text-primary:var(--white); --text-secondary:var(--ink-300); --text-tertiary:var(--ink-400);
  --surface-page:var(--ink-950); --surface-card:var(--ink-900); --surface-sunken:var(--black);
  --border-subtle:color-mix(in srgb, var(--white) 8%, transparent);
  --border-default:color-mix(in srgb, var(--white) 14%, transparent);
  --color-brand:var(--blue-400); --text-brand:var(--blue-300);
  background:var(--surface-page); color:var(--text-primary);
}


/* ============================================================
   BASE / RESET
   ============================================================ */
* , *::before, *::after { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body.g-body { margin:0; padding:0; background:var(--surface-page); color:var(--text-primary); font-family:var(--font-sans); font-weight:var(--fw-body); overflow-x:hidden; -webkit-font-smoothing:antialiased; }
.g-body ::selection { background:var(--blue-600); color:#fff; }
.g-body h1, .g-body h2, .g-body h3, .g-body h4 { margin:0; }
.g-body p { margin:0; }
.g-body a { text-decoration:none; color:inherit; }
.g-body a.g-btn { color:var(--_fg); } /* .g-body a outranks .g-btn — restore button text colour */
.g-body a.g-btn:hover { color:var(--_fgh); }
.g-body img { max-width:100%; height:auto; display:block; }

.g-disp { font-family:var(--font-display); font-weight:var(--fw-heading); letter-spacing:var(--heading-tracking); line-height:var(--heading-leading); text-transform:var(--heading-transform); }
/* OEM eyebrow (SPEC §4): display face, 12px, 6px tracking, uppercase, ink (white on dark). */
.g-eyebrow { font-family:var(--font-display); font-weight:var(--fw-heading); text-transform:uppercase; letter-spacing:var(--eyebrow-tracking); font-size:var(--eyebrow-size); line-height:1.2; color:var(--text-primary); }
.geely-dark .g-eyebrow { color:#fff; }

/* component: OEM button (SPEC §15) — radius 6, 48px (40 sm), Inter 500 16/22.4; black / outline / beige;
   every variant hovers to the brand blue (bg + border, white text), 0.2s ease-in-out. */
.g-btn { --_bg:var(--black); --_fg:#fff; --_bd:var(--black); --_bgh:var(--brand-600); --_bdh:var(--brand-600); --_fgh:#fff; display:inline-flex; align-items:center; justify-content:center; gap:.5em; font-family:var(--font-sans); font-weight:var(--fw-button); font-size:16px; line-height:22.4px; letter-spacing:normal; text-transform:none; white-space:nowrap; cursor:pointer; border:var(--border-width) solid var(--_bd); background:var(--_bg); color:var(--_fg); border-radius:var(--radius-button); transition:background-color .2s ease-in-out, border-color .2s ease-in-out, color .2s ease-in-out; text-decoration:none; user-select:none; min-height:48px; padding:12px 20px; }
.g-btn:hover { background:var(--_bgh); border-color:var(--_bdh); color:var(--_fgh); }
.g-btn:focus-visible { outline:none; box-shadow:var(--focus-ring); }
.g-btn[disabled], .g-btn.disabled { opacity:.45; cursor:not-allowed; pointer-events:none; }
.g-btn--sm { min-height:40px; padding:8px 20px; }
.g-btn--lg { min-height:48px; padding:12px 20px; } /* OEM lg = the default; class kept so markup is unchanged */
.g-btn--block { width:100%; }
.g-btn-primary { --_bg:var(--black); --_bd:var(--black); }
.g-btn-outline { --_bg:transparent; --_fg:var(--black); --_bd:var(--black); }
.g-btn-beige { --_bg:var(--color-beige); --_fg:var(--black); --_bd:var(--color-beige); }
.geely-dark .g-btn-outline { --_fg:#fff; --_bd:#fff; --_bgh:var(--color-beige); --_bdh:var(--color-beige); --_fgh:var(--black); }
@media (max-width:743.98px){ .g-btn { min-height:40px; padding:8px 20px; } }

/* section rhythm — OEM 80px (56 below 744), from --section-pad-y */
.g-section { padding:var(--section-pad-y) 0; }

/* ── Block grid ──────────────────────────────────────────────────────────────
   Blocks that declare a width sit side by side. Emitted ONLY for a row holding
   more than one block (see page.blade.php), so a page of ordinary full-width
   blocks never enters this stylesheet at all.

   Twelfths, and one span rule per value of page.schema.json's width enum. That
   pairing is the contract: a value in the enum with no rule here silently
   renders full width, which is why the schema says so in its own description.

   One column below 992px. Two half-width blocks stacked on a phone is the only
   honest reading of "half" at 390px, and it is what every block already did
   before it had a width. */
.g-blockrow { display:grid; grid-template-columns:repeat(12, 1fr); column-gap:32px; align-items:start; }
.g-blockrow-cell { grid-column:span 12; min-width:0; }
@media (min-width: 992px) {
    .g-blockrow-cell.g-bw-8 { grid-column:span 8; }
    .g-blockrow-cell.g-bw-6 { grid-column:span 6; }
    .g-blockrow-cell.g-bw-4 { grid-column:span 4; }
}

/* A block owns its own .container and, often, a Bootstrap .row inside it. In a
   grid cell the wrapper supplies the gutter, so those have to stand down or the
   copy ends up indented twice and measured against a page it is no longer as
   wide as. The col-* override matters most for rich_text, whose col-lg-6 exists
   to hold body copy to the OEM's line length across the FULL page — inside a
   half-width cell that constraint is already met by the cell. */
.g-blockrow-cell > * > .container,
.g-blockrow-cell > * > * > .container { width:100%; max-width:none; padding-left:0; padding-right:0; }
.g-blockrow-cell .row { margin-left:0; margin-right:0; }
.g-blockrow-cell .row > [class*="col-"] { flex:0 0 100%; max-width:100%; padding-left:0; padding-right:0; }

/* Side-by-side blocks sit on one band of vertical space: 96px above AND below
   each of two stacked sections is 192px of nothing between rows. The wrapper
   keeps the band, the sections inside it stop paying for it twice. */
.g-blockrow-wrap { padding-top:var(--section-pad-y); padding-bottom:var(--section-pad-y); }
.g-blockrow-cell > .g-section,
.g-blockrow-cell > section { padding-top:0; padding-bottom:0; }
@media (max-width: 991.98px) {
    .g-blockrow-wrap { padding-top:var(--section-pad-y); padding-bottom:var(--section-pad-y); }
    .g-blockrow { row-gap:64px; }
}
/* OEM section heading (SPEC §4): eyebrow -> h2 40/48 (32/38.4 small) -> lead Inter 300 20/28 #333,
   7 of 12 columns, 16px steps, 32px to the media below. */
.g-section-head { max-width:var(--lead-max); margin-bottom:32px; display:flex; flex-direction:column; align-items:flex-start; gap:16px; }
.g-section-head h2 { font-size:var(--h2-size); line-height:1.2; margin:0; letter-spacing:var(--heading-tracking); }
.g-section-head p { color:var(--text-secondary); font-size:var(--lead-size); line-height:var(--lead-leading); font-weight:300; margin:0; }
.geely-dark .g-section-head p { color:var(--text-secondary); }

/* ============================================================
   PREVIEW BANNER
   ============================================================ */
.g-preview-banner { position:fixed; top:0; left:0; right:0; z-index:9999; background:var(--amber-600); color:#fff; text-align:center; font-family:var(--font-display); font-weight:var(--fw-heading); text-transform:uppercase; letter-spacing:.1em; font-size:12px; padding:8px 12px; }

/* ============================================================
   NAV
   ============================================================ */
/* Top bar (nav.blade.php): sales + service numbers and socials, as on the main
   site. In flow above the sticky nav, so it scrolls away and the nav still
   sticks at top:0. Phones keep both labelled numbers and drop the socials:
   all of it does not fit one line at 375px, and the numbers are what a phone
   visitor taps. */
/* Notice bar (2026-11-09, like geely.com.au's sale strip): one centred line above everything; the whole bar is the link. */
.g-notice { background:var(--brand-800, #000); color:#fff; font-size:13px; line-height:1.35; text-align:center; padding:8px 16px; }
.g-notice a { color:#fff; text-decoration:underline; text-underline-offset:2px; }
.g-notice a:hover { text-decoration:none; }
.g-topbar { background:#000; color:#fff; font-size:12.5px; line-height:1; }
.g-topbar-in { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:36px; }
.g-topbar ul { display:flex; align-items:center; list-style:none; margin:0; padding:0; }
.g-topbar-phones { gap:22px; }
.g-topbar-phones a { display:inline-flex; align-items:center; gap:7px; color:#fff; text-decoration:none; font-weight:600; letter-spacing:.02em; white-space:nowrap; }
.g-topbar-phones a:hover, .g-topbar-socials a:hover { color:var(--blue-300); }
.g-topbar-phones svg { width:12px; height:12px; flex:0 0 auto; }
.g-topbar-dept { font-weight:400; color:rgba(255,255,255,.72); }
.g-topbar-socials { gap:4px; }
.g-topbar-socials a { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; color:#fff; }
.g-topbar-socials svg { width:15px; height:15px; }
@media (max-width:575.98px) {
  .g-topbar .g-topbar-socials { display:none; }  /* (0,2,0): must beat ".g-topbar ul" */
  .g-topbar-in { justify-content:center; }
  .g-topbar-phones { gap:18px; }
}
.g-nav { position:sticky; top:0; left:0; right:0; z-index:1000; background:color-mix(in srgb, var(--ink-950) 92%, transparent); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border-bottom:1px solid rgba(255,255,255,.08); }
.g-nav-in { display:flex; align-items:center; justify-content:space-between; height:76px; gap:24px; }
.g-nav-logo img { height:36px; max-width:60vw; object-fit:contain; object-position:left center; display:block; }
@media (max-width:767.98px){ .g-nav-logo img { height:30px; } }
/* Dealership name as the wordmark (the previous lock-up image was North
   Adelaide's); set on the CMS Settings page. */
.g-wordmark { display:block; color:#fff; font-family:var(--font-display); font-weight:800; text-transform:uppercase; letter-spacing:.14em; font-size:20px; line-height:26px; white-space:nowrap; }
.g-wordmark-dark { color:var(--text-primary); }
.g-footer-logo .g-wordmark { font-size:18px; line-height:24px; }
.g-nav-links { display:flex; align-items:center; gap:6px; list-style:none; margin:0; padding:0; }
.g-nav-links > li { position:relative; }
.g-nav-link { display:flex; align-items:center; gap:6px; padding:10px 16px; color:#fff; font-family:var(--font-display); font-weight:var(--fw-heading); text-transform:uppercase; letter-spacing:.06em; font-size:12.5px; border-radius:var(--radius-sm); transition:color var(--dur-fast); }
.g-nav-link:hover, .g-nav-link:focus-visible { color:var(--blue-300); }
.g-nav-link svg { width:11px; height:11px; opacity:.7; }
.g-nav-dropdown { position:absolute; top:100%; left:0; min-width:230px; background:var(--ink-900); border:1px solid rgba(255,255,255,.1); border-radius:var(--radius-lg); box-shadow:var(--shadow-xl); padding:8px; opacity:0; visibility:hidden; transform:translateY(6px); transition:opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility var(--dur-base); }
.g-nav-links > li:hover .g-nav-dropdown,
.g-nav-links > li:focus-within .g-nav-dropdown { opacity:1; visibility:visible; transform:none; }
.g-nav-dropdown a { display:block; padding:10px 14px; border-radius:var(--radius-sm); color:var(--ink-200); font-size:14px; font-weight:500; text-transform:none; letter-spacing:normal; }
.g-nav-dropdown a:hover { background:rgba(255,255,255,.06); color:#fff; }
/* Models picture panel (geely-models-menu, owner 2026-10-19 - as geelynorthadelaide.com.au): full width under the
   bar (the li goes static so the panel anchors to .g-nav), light panel, 4 per row; ::before bridges the gap between
   the link and the panel so hover is not lost on the way down. */
.g-nav-links > li.g-nav-li--wide { position:static; }
.g-nav-dropdown.g-nav-models { left:0; right:0; top:100%; min-width:0; padding:0; background:#f4f4f4; border:0; border-radius:0; box-shadow:0 16px 32px rgba(0,0,0,.18); max-height:calc(100vh - 77px); overflow-y:auto; }
.g-nav-li--wide > .g-nav-link { position:relative; }
.g-nav-li--wide > .g-nav-link::after { content:""; position:absolute; left:0; right:0; top:100%; height:24px; }
.g-nav-models-in { max-width:1280px; margin:0 auto; padding:28px 32px 34px; display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:28px 32px; }
.g-nav-dropdown.g-nav-models a.g-nav-model { display:flex; flex-direction:column; align-items:center; text-align:center; padding:6px 6px 10px; border-radius:var(--radius-md); color:#111; font-size:13px; font-weight:400; }
.g-nav-dropdown.g-nav-models a.g-nav-model:hover, .g-nav-dropdown.g-nav-models a.g-nav-model:focus-visible { background:#fff; color:#111; }
.g-nav-model img, .g-nav-model-ph { display:block; width:100%; max-width:240px; height:auto; aspect-ratio:600/350; object-fit:contain; margin-bottom:10px; }
.g-nav-model-name { font-family:var(--font-display); font-weight:var(--fw-heading); font-size:15px; line-height:1.25; color:#000; }
.g-nav-model-sub { margin-top:3px; font-size:12px; line-height:1.35; color:#3a3f47; }
.g-nav-right { display:flex; align-items:center; gap:14px; }
.g-nav-cta { flex:none; }
/* Book a Test Drive (the first header button) on the dark bar: white with black text (owner 2026-10-28). The dealer header (white bar) keeps black. */
.g-nav:not(.g-nav--dealer) .g-nav-cta.g-btn-primary { --_bg:#fff; --_fg:var(--black); --_bd:#fff; }
/* Resizing (owner 2026-10-28): the full bar needs ~1340px and the container is only 1140px below 1400px wide, so it
   overflowed the window from 1399 down to 992 ("Our Stock" wrapped, the buttons ran off the edge). Labels never wrap;
   below 1560 the spacing tightens; below 1400 the links and buttons move into the menu (burger), as on a tablet.
   The dealer header (Toyota) has its own layout and keeps its breakpoints. */
.g-nav-link { white-space:nowrap; }
@media (max-width:1559.98px){
  .g-nav:not(.g-nav--dealer) .g-nav-in { gap:12px; }
  .g-nav:not(.g-nav--dealer) .g-nav-links { gap:2px; }
  .g-nav:not(.g-nav--dealer) .g-nav-link { padding:10px 10px; }
  .g-nav:not(.g-nav--dealer) .g-nav-right { gap:10px; }
  .g-nav:not(.g-nav--dealer) .g-nav-cta { padding-left:14px; padding-right:14px; }
}
@media (max-width:1399.98px){
  .g-nav:not(.g-nav--dealer) .g-nav-links, .g-nav:not(.g-nav--dealer) .g-nav-right .g-nav-cta { display:none; }
  .g-nav:not(.g-nav--dealer) .g-nav-burger { display:inline-flex; }
}
.g-nav-burger { display:none; background:transparent; border:0; color:#fff; padding:8px; cursor:pointer; }
.g-nav-burger svg { width:24px; height:24px; }
/* Saved cars in the header (nav.blade.php): a heart with the count as a red
   counter on its corner, hidden at zero. [hidden] needs its own rule - the
   inline-flex below would otherwise win over the attribute. */
.g-nav-fav { position:relative; display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; color:#fff; border-radius:50%; }
.g-nav-fav:hover, .g-nav-fav:focus-visible { color:var(--blue-300); }
.g-nav-fav svg { width:22px; height:22px; }
.g-nav-fav-count { position:absolute; top:0; right:-2px; display:inline-flex; align-items:center; justify-content:center; min-width:19px; height:19px; padding:0 5px; border-radius:var(--radius-pill); background:#e23432; color:#fff; font-size:11px; font-weight:700; line-height:1; }
.g-nav-fav-count[hidden] { display:none; }
/* Save-to-favourites heart (partials/fav-heart.blade.php): outline when off,
   solid red when saved, as the main site's [data-fav]. */
.g-fav { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; width:36px; height:36px; padding:0; border:1px solid var(--border-default); border-radius:50%; background:#fff; color:var(--text-secondary); cursor:pointer; transition:color var(--dur-fast), border-color var(--dur-fast), background-color var(--dur-fast); }
.g-fav svg { width:18px; height:18px; }
.g-fav .g-fav-on, .g-fav[aria-pressed="true"] .g-fav-off { display:none; }
.g-fav[aria-pressed="true"] .g-fav-on { display:block; }
.g-fav:hover { color:#e23432; border-color:#e23432; }
.g-fav[aria-pressed="true"] { color:#e23432; border-color:#e23432; background:rgba(226,52,50,.08); }
.g-fav:active svg { transform:scale(.85); }
.g-fav:focus-visible { outline:2px solid var(--color-brand); outline-offset:2px; }
.g-fav[aria-busy="true"] { opacity:.6; pointer-events:none; }
/* Popups, the main site's behaviour (owner 2026-09-25): fade in with a small
   drop on desktop (Bootstrap's .modal.fade), slide up from the bottom on
   phones (its .bottom-sheet). ONE rule for every native <dialog> on the site,
   so a new popup gets it for free. Closing animates too where the browser
   has transition-behavior: allow-discrete + @starting-style; elsewhere the
   popup simply opens/closes instantly - never broken. The keyframes below
   serve the div-based popups (listing filters, make & model, gallery). */
.g-body dialog { opacity:0; transform:translateY(-24px); transition:opacity .25s ease, transform .25s ease, overlay .25s ease allow-discrete, display .25s ease allow-discrete; }
.g-body dialog[open] { opacity:1; transform:none; }
@starting-style { .g-body dialog[open] { opacity:0; transform:translateY(-24px); } }
.g-body dialog::backdrop { opacity:0; transition:opacity .25s ease, overlay .25s ease allow-discrete, display .25s ease allow-discrete; }
.g-body dialog[open]::backdrop { opacity:1; }
@starting-style { .g-body dialog[open]::backdrop { opacity:0; } }
@media (max-width:575.98px) {
  .g-body dialog { transform:translateY(100%); transition-duration:.3s; }
  .g-body dialog[open] { transform:none; }
  @starting-style { .g-body dialog[open] { transform:translateY(100%); } }
}
@keyframes gFadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes gPopIn { from { opacity:0; transform:translateY(-24px); } to { opacity:1; transform:none; } }
@keyframes gSheetUp { from { transform:translateY(100%); } to { transform:none; } }
@keyframes gSlideInLeft { from { transform:translateX(-100%); } to { transform:none; } }
/* Lazy pictures fade in as they arrive (owner 2026-11-06). Only on a page the head script marked (html.g-fade), so with
   no JS nothing is hidden. An animation, not a transition: the pictures' own hover-zoom transitions stay untouched.
   Hidden with filter, NOT opacity: an opacity-0 lazy image is never loaded by Chromium (proven 2026-11-06, mobile menu
   models stayed blank). */
html.g-fade img[loading="lazy"]:not(.g-img-in) { filter:opacity(0); }
html.g-fade img[loading="lazy"].g-img-in { animation:gFadeIn .5s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  .g-body dialog, .g-body dialog::backdrop { transition:none; }
  .g-body * { animation-duration:.01ms !important; }
}
.g-offcanvas-header img { height:28px; }
.g-offcanvas .offcanvas-body { padding:0; }
.g-off-link { display:flex; align-items:center; justify-content:space-between; padding:16px 24px; color:var(--text-primary); font-family:var(--font-display); font-weight:var(--fw-heading); text-transform:uppercase; letter-spacing:.05em; font-size:14px; border-bottom:1px solid var(--border-subtle); }
.g-off-children { list-style:none; margin:0; padding:0 0 8px; background:var(--surface-sunken); }
.g-off-children a { display:block; padding:12px 24px 12px 36px; color:var(--text-secondary); font-size:14.5px; font-weight:500; border-bottom:1px solid var(--border-subtle); }
.g-off-cta { padding:20px 24px; display:flex; flex-direction:column; gap:12px; }
.g-off-children a.g-off-model { display:flex; align-items:center; gap:14px; padding:10px 24px 10px 28px; min-height:64px; }
.g-off-model img { flex:0 0 auto; width:96px; height:auto; aspect-ratio:600/350; object-fit:contain; }
.g-off-model > span { display:flex; flex-direction:column; min-width:0; }
.g-off-model-name { color:var(--text-primary); font-weight:600; }
.g-off-model-sub { font-size:12.5px; color:var(--text-secondary); font-weight:400; }
/* Drawer sections with children collapse (nav.blade.php <details>): a plus on
   the right, drawn as two bars; open hides the vertical bar, leaving a minus. */
.g-off-group > summary { cursor:pointer; list-style:none; }
.g-off-group > summary::-webkit-details-marker { display:none; }
.g-off-group > summary:focus-visible { outline:2px solid var(--color-brand); outline-offset:-2px; }
.g-off-pm { position:relative; flex:0 0 auto; width:14px; height:14px; color:var(--text-secondary); }
.g-off-pm::before, .g-off-pm::after { content:""; position:absolute; left:0; top:6px; width:14px; height:2px; border-radius:1px; background:currentColor; }
.g-off-pm::after { transform:rotate(90deg); }
.g-off-group[open] > summary .g-off-pm::after { display:none; }
.g-off-group[open] > summary { color:var(--color-brand); }

@media (max-width:991.98px){
  .g-nav-links, .g-nav-right .g-nav-cta { display:none; }
  .g-nav-burger { display:inline-flex; }
}

/* ============================================================
   FOOTER
   ============================================================ */
/* geely.com.au's footer look (owner 2026-10-15): black, white type, generous space, hairline dividers. Top: the
   brand block (logo, addresses, phones, the header's Book buttons as outlined buttons) beside the CMS menu columns;
   square social icons right; then the legal row and the small print with the ISO mark. */
.g-footer { background:#000; color:#fff; padding:88px 0 40px; }
.g-footer a { color:#fff; text-decoration:none; }
.g-footer-top { display:grid; grid-template-columns:minmax(260px, 1.1fr) 2.6fr; gap:64px; }
.g-footer-logo { display:inline-block; margin-bottom:28px; }
.g-footer-logo img { height:30px; width:auto; display:block; }
.g-footer-addr { font-style:normal; font-size:15px; line-height:1.6; color:rgba(255,255,255,.78); margin:0 0 16px; }
.g-footer-addr strong { display:block; color:#fff; font-weight:600; font-size:16px; margin-bottom:2px; }
.g-footer-addr strong span { font-weight:400; color:rgba(255,255,255,.6); font-size:14px; }
.g-footer-phones { list-style:none; margin:20px 0 0; padding:0; display:flex; flex-direction:column; gap:6px; }
.g-footer-phones li { display:flex; align-items:baseline; gap:12px; font-size:15px; }
.g-footer-phones span { min-width:58px; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.55); }
.g-footer-phones a { font-weight:500; font-size:17px; }
.g-footer-phones a:hover { text-decoration:underline; text-underline-offset:4px; }
.g-footer-phones--multi { gap:0; }
.g-footer-phones--multi li { flex-wrap:wrap; align-items:center; column-gap:12px; row-gap:0; }
.g-footer-phones--multi a { display:inline-flex; align-items:center; min-height:44px; }
.g-footer-ctas { display:flex; flex-wrap:wrap; gap:12px; margin-top:28px; }
.g-footer-btn { display:inline-flex; align-items:center; min-height:44px; padding:10px 22px; border:1px solid #fff; border-radius:var(--radius-button); font-size:15px; font-weight:var(--fw-button); line-height:1.2; transition:background-color var(--dur-fast), color var(--dur-fast); }
.g-footer .g-footer-btn:hover, .g-footer .g-footer-btn:focus-visible { background:#fff; color:#000; }
.g-footer-cols { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:40px 32px; }
.g-footer-col h5 { color:rgba(255,255,255,.55); font-family:var(--font-sans); font-size:12px; font-weight:500; text-transform:uppercase; letter-spacing:.12em; margin:6px 0 20px; }
.g-footer-col ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.g-footer-col a { font-size:16px; line-height:1.35; color:#fff; transition:opacity var(--dur-fast); }
.g-footer-col a:hover, .g-footer-col a:focus-visible { text-decoration:underline; text-underline-offset:4px; }
.g-footer-top--wide { grid-template-columns:1fr; gap:48px; }
.g-footer-top--wide .g-footer-brand { display:flex; flex-wrap:wrap; align-items:flex-start; gap:24px 64px; padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,.18); }
.g-footer-top--wide .g-footer-logo, .g-footer-top--wide .g-footer-addr { margin-bottom:0; }
.g-footer-top--wide .g-footer-phones, .g-footer-top--wide .g-footer-ctas { margin-top:0; }
.g-footer-top--wide .g-footer-ctas { margin-left:auto; }
.g-footer-top--wide .g-footer-cols { grid-template-columns:repeat(7, minmax(0, 1fr)); gap:40px 24px; }
@media (max-width:1199.98px){ .g-footer-top--wide .g-footer-cols { grid-template-columns:repeat(4, minmax(0, 1fr)); } }
@media (max-width:991.98px){ .g-footer-top--wide .g-footer-cols { grid-template-columns:repeat(2, minmax(0, 1fr)); } .g-footer-top--wide .g-footer-ctas { margin-left:0; } }
.g-footer-socials { list-style:none; margin:56px 0 0; padding:0; display:flex; justify-content:flex-end; gap:8px; }
.g-footer-socials a { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:6px; background:#1d1f23; transition:background-color var(--dur-fast); }
.g-footer-socials a:hover, .g-footer-socials a:focus-visible { background:#3a3d44; }
.g-footer-socials svg { width:16px; height:16px; fill:#fff; }
.g-footer-legal { border-top:1px solid rgba(255,255,255,.28); margin-top:28px; padding-top:28px; }
.g-footer-legal-row { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:12px 32px; }
.g-footer-legal-links { display:flex; flex-wrap:wrap; gap:8px 24px; list-style:none; margin:0; padding:0; }
.g-footer-legal-links a { font-size:13px; color:#fff; }
.g-footer-legal-links a:hover { text-decoration:underline; text-underline-offset:3px; }
.g-footer .g-footer-copy { font-size:13px; color:#fff; margin:0; }
.g-footer-small { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:40px; align-items:end; margin-top:28px; }
.g-footer-disclaimer { font-size:12px; line-height:1.7; color:rgba(255,255,255,.62); margin:0 0 10px; max-width:900px; }
.g-footer .g-footer-recaptcha { font-size:11.5px; line-height:1.6; color:rgba(255,255,255,.5); margin:0; }
.g-footer .g-footer-recaptcha a { color:rgba(255,255,255,.8); text-decoration:underline; }
.g-footer-cert { display:flex; align-items:center; gap:14px; max-width:300px; }
.g-footer-cert img { height:72px; width:auto; flex:none; }
.g-footer-cert p { font-size:12px; line-height:1.5; color:rgba(255,255,255,.7); margin:0; }

@media (max-width:991.98px){
  .g-footer { padding-top:64px; }
  .g-footer-top { grid-template-columns:1fr; gap:48px; }
  .g-footer-cols { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .g-footer-socials { justify-content:flex-start; margin-top:44px; }
}
@media (max-width:768px){
  .g-footer-small { grid-template-columns:1fr; gap:24px; }
  .g-footer-legal-row { flex-direction:column; align-items:flex-start; }
}
@media (max-width:420px){
  /* two columns still fit a phone; one column made the footer very long */
  .g-footer-cols { gap:32px 20px; }
  .g-footer-col a { font-size:15px; }
}

/* ============================================================
   BLOCK: hero_banner
   ============================================================ */
/* Height of the sticky chrome above the hero (top bar 36 + header 77). geely-oem-design
   Stage 5 changes the header; update this one value then. */
:root { --g-chrome-h:113px; }
.g-hero { position:relative; padding:120px 0 88px; overflow:hidden; }
.g-hero.geely-dark { background:var(--ink-950); color:#fff; }
.g-hero-bg { position:absolute; inset:0; background-size:cover; background-position:center; }
.g-hero-bg video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
/* video.js (HLS banner videos, partials/hls-video) wraps the video in a div (.g-hls-player): that box fills the banner like the video; !important beats the 300x150 video.js writes for it. */
.g-hero-bg .g-hls-player { position:absolute; inset:0; width:100% !important; height:100% !important; }
.g-hero-in { position:relative; max-width:760px; }

/* geely.com.au media hero (SPEC §3/§16): full screen under the header, no overlay, white text.
   split = heading top-left, figures bottom-left, buttons bottom-right; centred = home page. */
.g-hero--oem { padding:0; display:flex; min-height:calc(100vh - var(--g-chrome-h)); min-height:calc(100svh - var(--g-chrome-h)); background:#000; color:#fff; }
/* banner layout (static pages, owner 2026-10-14): a short strip - a little lower than the North Adelaide banner. */
.g-hero--oem.g-hero--banner { min-height:clamp(200px, 22vw, 420px); }
.g-hero--banner .g-crumbs { margin-top:14px; }
/* Title readable on any photo (owner 2026-10-14: white car behind the Contact Us title): darker left edge where the
   title and breadcrumbs sit; on phones the text spans the strip, so an even shade. */
.g-hero--oem.g-hero--banner .g-hero-bg::after { background:linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.38) 38%, rgba(0,0,0,.08) 70%, rgba(0,0,0,0) 100%); }
@media (max-width:767.98px) { .g-hero--oem.g-hero--banner .g-hero-bg::after { background:rgba(0,0,0,.45); } }
/* The OEM runs no overlay because its photos are chosen for white text; ours include bright images
   (home: a white wall), so a light scrim sits where the text does (top + bottom; centre when centred)
   and the text carries a soft shadow. Measured readable on EX2/EX5/Starray/home 2026-10-09. */
.g-hero--oem .g-hero-bg::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 34%, rgba(0,0,0,0) 62%, rgba(0,0,0,.42) 100%); }
.g-hero--centred .g-hero-bg::after { background:rgba(0,0,0,.32); }
.g-hero--oem .g-hero-top, .g-hero--oem .g-hero-stats { text-shadow:0 1px 3px rgba(0,0,0,.35); }
.g-hero-cap { position:relative; z-index:1; flex:1 1 auto; display:flex; flex-direction:column; justify-content:space-between; gap:40px; padding-top:80px; padding-bottom:32px; }
.g-hero--oem .g-hero-top { display:flex; flex-direction:column; align-items:flex-start; }
.g-hero--oem .g-eyebrow { color:#fff; margin-bottom:16px; }
.g-body .g-hero--oem h1, .g-body .g-hero--oem h2.g-hero-h { font-size:40px; line-height:48px; margin:0; color:#fff; }
.g-body .g-hero.g-hero--oem .g-lede { font-family:var(--font-sans); font-weight:300; font-size:20px; line-height:28px; color:#fff; max-width:var(--lead-max); margin:24px 0 0; }
.g-hero-bottom { display:flex; align-items:flex-end; justify-content:space-between; gap:24px 40px; flex-wrap:wrap; }
.g-hero-stats { flex:1 1 0; min-width:0; display:grid; grid-auto-flow:column; grid-auto-columns:minmax(0, 236px); column-gap:16px; margin:0; }
.g-hero-ctas { flex:0 0 auto; }
.g-hero-stat { border-left:1px solid #fff; padding-left:24px; display:flex; flex-direction:column; gap:4px; }
.g-hero-stat dt { font-family:var(--font-sans); font-weight:400; font-size:12px; line-height:16.8px; min-height:16.8px; }
.g-hero-stat dd { margin:0; }
.g-hero-stat-val { font-family:var(--font-display); font-weight:var(--fw-heading); font-size:24px; line-height:28.8px; text-transform:uppercase; }
.g-hero-stat-val .g-fn { font-size:.5em; vertical-align:super; margin-left:1px; }
.g-hero-stat-unit { font-family:var(--font-sans); font-weight:400; font-size:14px; line-height:19.6px; }
.g-hero-ctas { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.g-hero--oem .g-hero-ctas .g-btn { min-width:220px; }
.g-hero--oem .g-disclaimer-ref { color:#fff; }
.g-hero--centred .g-hero-cap { justify-content:center; }
.g-hero--centred .g-hero-top { align-items:center; text-align:center; }
.g-body .g-hero--centred h1, .g-body .g-hero--centred h2.g-hero-h { font-size:56px; line-height:67.2px; }
.g-body .g-hero.g-hero--centred .g-lede { font-size:26px; line-height:36.4px; }
.g-hero--centred .g-hero-ctas { justify-content:center; margin-top:32px; }
.g-hero--centred .g-hero-ctas .g-btn { min-width:256px; }
.g-hero--centred .g-hero-bottom { justify-content:center; }
/* cinematic (owner 2026-10-12, design C): big heading bottom-left on a deep fade, glass eyebrow pill, main
   button then outline, and a glass "Choose your Geely" bar of our model pages along the bottom. */
.g-hero--cinematic { position:relative; }
.g-hero--cinematic .g-hero-bg::after { background:linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.15) 55%, rgba(0,0,0,.85) 100%); }
.g-hero--cinematic .g-hero-cap { justify-content:flex-end; padding-bottom:64px; }
.g-hero--cinematic.has-models .g-hero-cap { padding-bottom:150px; }
.g-hero--cinematic .g-hero-top { max-width:900px; }
.g-hero--cinematic .g-eyebrow { display:inline-flex; align-items:center; gap:10px; padding:8px 16px; border-radius:999px; background:rgba(255,255,255,.12); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); border:1px solid rgba(255,255,255,.25); margin-bottom:22px; text-shadow:none; }
.g-hero--cinematic .g-eyebrow::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--brand-600, #3a7ff8); box-shadow:0 0 0 4px rgba(58,127,248,.3); }
.g-body .g-hero--cinematic h1, .g-body .g-hero--cinematic h2.g-hero-h { font-size:clamp(44px, 6vw, 92px); line-height:1; letter-spacing:-.5px; }
.g-body .g-hero.g-hero--cinematic .g-lede { font-size:20px; line-height:28px; max-width:620px; margin-top:18px; opacity:.92; }
.g-hero--cinematic .g-hero-ctas { margin-top:30px; }
.g-hero--cinematic .g-hero-ctas .g-btn { min-width:200px; }
.g-hero-cue { position:absolute; right:56px; bottom:40px; z-index:1; display:flex; flex-direction:column; align-items:center; gap:10px; color:#fff; font:500 11px/1 var(--font-sans); letter-spacing:3px; text-transform:uppercase; opacity:.8; pointer-events:none; }
.g-hero-cue span { width:1px; height:56px; background:linear-gradient(#fff, transparent); }
.g-hero-models { position:absolute; left:0; right:0; bottom:0; z-index:2; background:rgba(10,11,13,.45); -webkit-backdrop-filter:blur(16px); backdrop-filter:blur(16px); border-top:1px solid rgba(255,255,255,.14); }
.g-hero-models-in { display:flex; align-items:center; gap:16px; min-height:104px; }
.g-hero-models-label { color:#fff; font:500 12px/1.2 var(--font-sans); letter-spacing:3px; text-transform:uppercase; opacity:.75; margin-right:auto; }
.g-hero-models-list { display:flex; gap:16px; }
.g-body a.g-hero-model { display:flex; align-items:center; gap:14px; padding:10px 18px 10px 10px; border-radius:12px; color:#fff; text-decoration:none; border:1px solid rgba(255,255,255,.18); background:rgba(255,255,255,.06); transition:background .2s var(--ease-standard), border-color .2s var(--ease-standard); }
.g-body a.g-hero-model:hover { background:rgba(255,255,255,.16); border-color:rgba(255,255,255,.4); color:#fff; }
.g-body a.g-hero-model:focus-visible { outline:none; box-shadow:var(--focus-ring); }
.g-hero-model img { width:96px; height:56px; object-fit:cover; border-radius:8px; flex:0 0 auto; }
.g-hero-model > span { display:flex; flex-direction:column; gap:4px; }
.g-hero-model b { font-family:var(--font-display); font-weight:var(--fw-heading); font-size:15px; line-height:1; text-transform:uppercase; }
.g-hero-model i { font:400 13px/1 var(--font-sans); font-style:normal; opacity:.8; }
@media (prefers-reduced-motion: reduce) { .g-body a.g-hero-model { transition:none; } }
/* Hero carousel (geely-hero-carousel, owner 2026-10-19): extra banners after the hero's own one, jarviscars-style.
   The Swiper sits in the hero's flex row and every slide stretches to the tallest. Its own rules come before Swiper's
   stylesheet loads (no stacked slides on first paint); Swiper's CSS is later and wins ties, so overrides are .g-body-led. */
.g-hero--slides .g-hero-swiper { flex:1 1 auto; min-width:0; width:100%; margin:0; overflow:hidden; position:relative; }
.g-body .g-hero--slides .g-hero-swiper > .swiper-wrapper { display:flex; height:auto; min-height:100%; }
.g-body .g-hero--slides .g-hero-slide { flex:0 0 100%; width:100%; height:auto; display:flex; position:relative; }
.g-hero-bg picture, .g-hero-bg img { position:absolute; inset:0; width:100%; height:100%; }
.g-hero-bg img { object-fit:cover; display:block; }
.g-hero--slides .g-hero-cap { padding-bottom:88px; }
.g-hero--cinematic.g-hero--slides .g-hero-cap { padding-bottom:104px; }
.g-hero--cinematic.g-hero--slides.has-models .g-hero-cap { padding-bottom:176px; }
.g-hero-sw-controls { position:absolute; left:50%; bottom:24px; transform:translateX(-50%); z-index:3; display:flex; align-items:center; gap:10px; padding:6px 8px; border-radius:999px; background:rgba(10,11,13,.45); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); border:1px solid rgba(255,255,255,.18); }
.g-hero--slides.has-models .g-hero-sw-controls { bottom:120px; }
.g-body .g-hero-sw-nav { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; padding:0; border:0; border-radius:50%; background:transparent; color:#fff; cursor:pointer; }
.g-body .g-hero-sw-nav:hover { background:rgba(255,255,255,.18); }
.g-body .g-hero-sw-nav:focus-visible { outline:none; box-shadow:var(--focus-ring); }
.g-body .g-hero-sw-controls .g-hero-sw-dots,
.g-body .g-hero-sw-controls .g-hero-sw-dots.swiper-pagination-horizontal,
.g-body .g-hero-sw-controls .g-hero-sw-dots.swiper-pagination-bullets { display:flex; align-items:center; gap:8px; position:static; width:auto; left:auto; right:auto; bottom:auto; transform:none; }
.g-body .g-hero-sw-dots .swiper-pagination-bullet { width:20px; height:3px; border-radius:2px; background:rgba(255,255,255,.45); opacity:1; margin:0; cursor:pointer; transition:background var(--dur-fast), width var(--dur-fast); }
.g-body .g-hero-sw-dots .swiper-pagination-bullet-active { background:#fff; width:36px; }
@media (max-width:743.98px){
  .g-hero--slides .g-hero-cap { padding-bottom:76px; }
  .g-hero--cinematic.g-hero--slides .g-hero-cap { padding-bottom:84px; }
  .g-hero--cinematic.g-hero--slides.has-models .g-hero-cap { padding-bottom:152px; }
  .g-hero-sw-controls { bottom:16px; }
  .g-hero--slides.has-models .g-hero-sw-controls { bottom:100px; }
}
@media (prefers-reduced-motion: reduce) { .g-body .g-hero-sw-dots .swiper-pagination-bullet { transition:none; } }
/* A banner of slides alone (no picture of its own; owner 2026-10-19): jarviscars-style picture banners - each
   picture whole at its own shape (often with the words in it), never the full-screen crop; the model bar sits under
   it, not over it; a slide's own text overlays it. A picture-only slide gets no scrim. */
.g-hero--oem.g-hero--pics { min-height:0; flex-direction:column; }
.g-hero--pics .g-hero-bg { position:relative; inset:auto; flex:1 1 auto; width:100%; }
.g-hero--pics .g-hero-bg picture, .g-hero--pics .g-hero-bg img, .g-hero--pics .g-hero-bg video { position:static; display:block; width:100%; height:auto; }
.g-hero--pics .g-hero-bg .g-hls-player { position:static; display:block; width:100% !important; height:auto !important; }
.g-hero--pics .g-hero-bg--plain::after { display:none; }
.g-hero--pics .g-hero-pic { position:relative; width:100%; }
/* Image Link: the whole picture is the link; a slide's text lets clicks through, its buttons keep their own. */
.g-hero-bglink { position:absolute; inset:0; z-index:1; }
.g-hero-bglink:focus-visible { outline:3px solid #fff; outline-offset:-6px; }
.g-hero-cap.g-hero-cap--thru { pointer-events:none; }
.g-hero-cap--thru a, .g-hero-cap--thru button { pointer-events:auto; }
.g-hero--pics .g-hero-cap { position:absolute; inset:0; }
.g-hero--cinematic.g-hero--pics .g-hero-cap, .g-hero--cinematic.g-hero--pics.has-models .g-hero-cap { padding-bottom:64px; }
.g-hero--pics .g-hero-models { position:relative; }
/* the picture carries its own words: the controls sit in a strip under it, never over it */
.g-hero--slides.g-hero--pics .g-hero-sw-controls { position:static; transform:none; align-self:center; margin:10px 0; }
@media (max-width:743.98px){
  .g-hero--cinematic.g-hero--pics .g-hero-cap, .g-hero--cinematic.g-hero--pics.has-models .g-hero-cap { padding-bottom:56px; }
}
/* Model pages (geely-model-ctas): View Stock + Enquire with Jarvis + Book a Test Drive in the banner. */
.g-hero--oem .g-hero-ctas--3 .g-btn { min-width:180px; }
/* Model page sticky bar: under the header once the banner has scrolled away; phones: bottom bar. */
.g-mbar { position:fixed; left:0; right:0; top:var(--g-mbar-top, 77px); z-index:990; background:#fff; border-bottom:1px solid #e6e6e6; box-shadow:0 2px 12px rgba(0,0,0,.06); opacity:0; visibility:hidden; transform:translateY(-8px); transition:opacity .2s var(--ease-standard), transform .2s var(--ease-standard), visibility 0s linear .2s; }
.g-mbar.is-on { opacity:1; visibility:visible; transform:none; transition:opacity .2s var(--ease-standard), transform .2s var(--ease-standard), visibility 0s; }
.g-mbar-in { display:flex; align-items:center; gap:16px; min-height:72px; }
.g-mbar-title { font-family:var(--font-display); font-weight:var(--fw-heading); font-size:18px; line-height:1.2; text-transform:uppercase; color:#000; margin-right:auto; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.g-mbar-actions { display:flex; gap:8px; flex:0 0 auto; }
.g-mbar-actions .g-btn { min-height:40px; }
@media (prefers-reduced-motion: reduce) { .g-mbar, .g-mbar.is-on { transition:none; } }
@media (max-width:743.98px){
  .g-mbar { top:auto; bottom:0; border-bottom:0; border-top:1px solid #e6e6e6; box-shadow:0 -2px 12px rgba(0,0,0,.08); transform:translateY(8px); padding-bottom:env(safe-area-inset-bottom); }
  .g-mbar-title, .g-mbar-stock { display:none; }
  .g-mbar-in { min-height:64px; padding-top:8px; padding-bottom:8px; }
  .g-mbar-actions { flex:1 1 auto; }
  .g-mbar-actions .g-btn { flex:1 1 0; min-width:0; padding-left:8px; padding-right:8px; }
  body.g-has-mbar { padding-bottom:72px; }
}
/* tablet: figures and buttons do not fit on one row - figures take the row, buttons go under */
@media (min-width:744px) and (max-width:1199.98px){
  .g-hero-stats { flex:1 1 100%; grid-auto-columns:minmax(0, 1fr); }
}
@media (max-width:743.98px){
  /* phone: text covers most of the picture, so the scrim covers it too */
  .g-hero--oem .g-hero-bg::after { background:linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.28) 40%, rgba(0,0,0,.28) 55%, rgba(0,0,0,.58) 100%); }
  .g-hero-cap { padding-top:56px; padding-bottom:24px; gap:24px; }
  .g-hero--oem .g-hero-top { align-items:center; text-align:center; }
  .g-body .g-hero--oem h1, .g-body .g-hero--oem h2.g-hero-h { font-size:32px; line-height:38.4px; }
  .g-body .g-hero.g-hero--oem .g-lede { font-size:18px; line-height:25.2px; }
  .g-hero-bottom { flex-direction:column; align-items:stretch; }
  .g-hero-stats { flex:none; grid-auto-flow:row; grid-template-columns:repeat(2, minmax(0, 1fr)); row-gap:16px; }
  .g-hero-stat { border-left:0; padding-left:0; align-items:center; text-align:center; }
  .g-hero-stat-val { font-size:20px; line-height:24px; }
  .g-hero-ctas { flex-direction:column; align-items:stretch; }
  .g-hero--oem .g-hero-ctas .g-btn { min-width:0; width:100%; }
  .g-body .g-hero--centred h1, .g-body .g-hero--centred h2.g-hero-h { font-size:40px; line-height:48px; }
  .g-body .g-hero.g-hero--centred .g-lede { font-size:18px; line-height:25.2px; }
  /* cinematic on phones: left-aligned, stacked buttons, the model bar scrolls sideways */
  .g-hero--cinematic .g-hero-top { align-items:flex-start; text-align:left; }
  .g-body .g-hero--cinematic h1, .g-body .g-hero--cinematic h2.g-hero-h { font-size:40px; line-height:44px; }
  .g-body .g-hero.g-hero--cinematic .g-lede { font-size:18px; line-height:25.2px; }
  .g-hero--cinematic .g-hero-ctas { flex-direction:column; align-items:stretch; width:100%; }
  .g-hero--cinematic .g-hero-cap { padding-bottom:40px; }
  .g-hero--cinematic.has-models .g-hero-cap { padding-bottom:112px; }
  /* hero 'mobile_caption: middle' (TK #3243): the phone picture carries badges near its bottom (geely.com.au EX2) */
  .g-hero--cinematic.g-hero--cap-mid .g-hero-cap { justify-content:center; }
  .g-hero-cue { display:none; }
  .g-hero-models-label { display:none; }
  .g-hero-models-in { min-height:88px; overflow-x:auto; scrollbar-width:none; padding-top:12px; padding-bottom:12px; }
  .g-hero-models-in::-webkit-scrollbar { display:none; }
  .g-hero-models-list { gap:10px; }
  .g-body a.g-hero-model { flex:0 0 auto; padding:8px 14px 8px 8px; }
  .g-hero-model img { width:64px; height:40px; }
}
.g-hero h1, .g-hero h2.g-hero-h { font-size:clamp(var(--hero-size-min),6vw,var(--hero-size-max)); margin:18px 0 0; letter-spacing:var(--heading-tracking); line-height:var(--heading-leading); }
.g-hero .g-lede { font-size:clamp(16px,1.4vw,19px); color:var(--text-secondary); max-width:56ch; margin:22px 0 0; line-height:1.55; }
.geely-dark .g-hero .g-lede { color:var(--ink-200); }
.g-hero-cta { margin-top:34px; display:flex; flex-wrap:wrap; gap:16px; align-items:center; }
.g-hero--compact .g-hero-cta .g-btn { min-width:220px; } /* the page's main action (e.g. Book a Service), as on the picture heroes */
/* Text-only banner = page title band: shorter, smaller heading (media heroes unchanged). */
.g-hero--compact { padding:56px 0 48px; }
.g-body .g-hero--compact h1 { font-size:clamp(28px,3.2vw,42px); margin-top:10px; }
.g-hero--compact .g-lede { margin-top:14px; }
@media (max-width:767.98px){ .g-hero--compact { padding:36px 0 32px; } }
/* Breadcrumbs: in the first hero (inherits its text colour) or a bar above the page. */
.g-crumbs ol { list-style:none; margin:0 0 6px; padding:0; display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; font-size:13px; line-height:1.4; }
.g-crumbs li { display:inline-flex; align-items:center; gap:8px; opacity:.72; }
.g-crumbs li + li::before { content:""; width:6px; height:6px; margin-right:2px; border-top:1.5px solid currentColor; border-right:1.5px solid currentColor; transform:rotate(45deg); opacity:.6; }
.g-crumbs a { color:inherit; padding:4px 0; text-decoration:none; }
.g-crumbs a:hover { text-decoration:underline; text-underline-offset:3px; }
.g-crumbs a:focus-visible { outline:none; box-shadow:var(--focus-ring); border-radius:var(--radius-sm); }
.g-crumbs li[aria-current] { opacity:1; font-weight:var(--fw-semibold); }
.g-crumbs-bar { padding:14px 0; border-bottom:1px solid var(--border-subtle); color:var(--text-secondary); }
.g-crumbs-bar .g-crumbs ol { margin:0; }
.g-hero-in .g-crumbs ol { margin:14px 0 0; }
.g-disclaimer-ref { font-size:11px; vertical-align:super; margin-left:2px; color:var(--color-brand); text-decoration:none; }

/* ============================================================
   BLOCK: offer_card
   ============================================================ */
.g-offers { padding:var(--section-pad-y) 0; }

/* BLOCK: offer_card — full-width carousel, image beside copy, OEM treatment.
   The controls sit OUTSIDE .swiper (a sibling), because Swiper clones slides in
   loop mode and anything inside the container gets cloned with them. */
.g-offers-intro p { margin:0 0 10px; }
.g-offers-intro p:last-child { margin-bottom:0; }
.g-offers-carousel { position:relative; margin-top:44px; }
.g-offers-swiper { overflow:hidden; }
/* stretch, not center: the image height follows the ROW rather than a fixed
   aspect, so a short offer cannot leave a hole beside a tall picture. The row
   is max(copy height, the media min-height below). */
.g-offer { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:72px; align-items:stretch; }
/* position:relative + an absolutely-positioned img is load-bearing: with a
   plain height:100% the image resolves its height from its INTRINSIC aspect
   (the parent has no definite height), which put the row back to 532px and
   defeated the stretch. Absolute fill makes the row height win. */
/* aspect-ratio 4/3 (2026-11-02): Geely's offer art is 4:3 (2133x1600) with its headline lettered INTO the
   picture ("TRADE IN / TRADE UP"); the old 460px floor made a ~1.9:1 band that cropped the lettering. A
   taller copy column still stretches the box (cover then trims the sides, never the lettering). */
.g-offer-media { position:relative; border-radius:var(--radius-2xl); overflow:hidden; background:var(--surface-sunken); aspect-ratio:4/3; }
.g-offer-media img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block;
  transition:transform 700ms var(--ease-out); }
.g-offer:hover .g-offer-media img { transform:scale(1.03); }
.g-offer-copy { min-width:0; padding:24px 0; display:flex; flex-direction:column; justify-content:center; }
.g-offer-copy .g-offer-eyebrow { font-family:var(--font-display); font-weight:var(--fw-heading); text-transform:uppercase;
  letter-spacing:.2em; font-size:13px; color:var(--text-tertiary); margin:0 0 20px; }
.g-offer-copy .g-offer-headline { font-family:var(--font-display); font-weight:var(--fw-heading);
  font-size:clamp(28px,3vw,46px); line-height:1.08; text-transform:uppercase;
  letter-spacing:var(--heading-tracking); margin:0; }
.g-offer-ref { font-size:.45em; vertical-align:super; margin-left:.15em; color:var(--color-brand); text-decoration:none; }
.g-offer-copy .g-offer-price { font-family:var(--font-display); font-weight:var(--fw-heading); font-size:22px;
  color:var(--color-brand); margin:24px 0 0; }
/* No --measure cap here: the offer copy sits in a grid COLUMN that already
   constrains the line, and capping again left the right-hand side visibly
   under-filled. At 18px in a ~650px column this reads ~72 chars. */
.g-offer-copy .g-offer-sub { color:var(--text-secondary); font-size:18px; line-height:1.65; margin:20px 0 0; }
/* Geely's offer lines (details: "$0 deposit ...", "Offer ends ..."), one <p> each - as on the model page. */
.g-offer-copy .g-offer-details { color:var(--text-primary); font-size:18px; line-height:1.5; margin:16px 0 0; }
.g-offer-copy .g-offer-rates { color:var(--text-tertiary); font-size:13px; margin:10px 0 0; }
.g-offer-copy .g-offer-note { color:var(--text-tertiary); font-size:13px; line-height:1.55; margin:24px 0 0; }
/* align-self: the copy column is a flex column, which would otherwise stretch
   the anchor to full width instead of letting the button hug its label. */
.g-offer-cta { margin-top:40px; align-self:flex-start; }

/* controls: arrows flanking a bullet row, left aligned under the copy */
.g-offers-controls { display:flex; align-items:center; gap:14px; margin-top:36px; }
.g-offers-nav { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px;
  border-radius:var(--radius-pill); border:var(--border-width) solid var(--border-default);
  background:var(--surface-card); color:var(--text-primary); cursor:pointer;
  transition:background var(--dur-fast) var(--ease-standard), color var(--dur-fast), border-color var(--dur-fast); }
.g-offers-nav:hover { background:var(--color-brand); border-color:var(--color-brand); color:#fff; }
.g-offers-nav:focus-visible { outline:none; box-shadow:var(--focus-ring); }
.g-offers-nav.swiper-button-disabled { opacity:.35; cursor:default; }
/* Swiper ADDS .swiper-pagination-bullets/.swiper-pagination-horizontal to this
   element at init, and its own CSS makes those position:absolute;width:100%,
   which stretches the bullet row and flings the next arrow to the far edge.

   SPECIFICITY MATTERS HERE, not just order: this inline <style> renders around
   line 54 of the document while the Swiper stylesheet is appended near line 600
   (page_css section), so Swiper is LATER and wins every tie. Swiper's rule is
   (0,2,0), so the override must be (0,3,0) — hence the .g-offers-carousel
   ancestor. Any future Swiper override in this layout has the same problem. */
.g-offers-carousel .g-offers-pagination,
.g-offers-carousel .g-offers-pagination.swiper-pagination-horizontal,
.g-offers-carousel .g-offers-pagination.swiper-pagination-bullets {
  display:flex; align-items:center; gap:8px;
  position:static; width:auto; left:auto; right:auto; bottom:auto; transform:none;
}
.g-offers-pagination .swiper-pagination-bullet { width:28px; height:3px; border-radius:2px; background:var(--border-default);
  opacity:1; margin:0; cursor:pointer; transition:background var(--dur-fast), width var(--dur-fast); }
.g-offers-pagination .swiper-pagination-bullet-active { background:var(--color-brand); width:44px; }
.g-offers-carousel.is-single .g-offers-controls { display:none; }

/* NOTE aspect-ratio must sit on .g-offer-media, not the img — the img is
   position:absolute; inset:0, so an aspect on it does nothing. */
@media (max-width:1300px){
  .g-offer { gap:56px; }
}
@media (max-width:900px){
  .g-offer { grid-template-columns:1fr; gap:28px; }
  .g-offers-controls { margin-top:28px; }
}
/* Phone width, every theme (TK #3243): a carousel with many cards pushed its next arrow off the right edge, because
   the dots row did not shrink (Geely home: page 380px wide at 375). Dots shrink and wrap; arrows keep 44px. */
@media (max-width:575.98px){
  .g-body .g-offers-controls { gap:10px; max-width:100%; }
  .g-body .g-offers-controls .g-offers-pagination.swiper-pagination-bullets { position:static; width:auto; min-width:0; flex:0 1 auto; flex-wrap:wrap; row-gap:6px; gap:6px; }
  .g-body .g-offers-controls .g-offers-pagination .swiper-pagination-bullet { width:14px; }
  .g-body .g-offers-controls .g-offers-pagination .swiper-pagination-bullet-active { width:24px; }
  .g-body .g-offers-controls .g-offers-nav { flex:0 0 auto; }
}

/* BLOCK: offer_card, layout "stacked" (geely-offers-stacked): one offer per
   full-width band, alternating background and image side, like the
   geely.com.au offers page; the Jarvis touch is the badge, the Jarvis-blue
   secondary buttons, the soft image shadow and the terms popup. */
.g-offers--stacked { padding:0; --jarvis-blue:#1B43A0; --jarvis-red:#EF4136; }
.g-offers--stacked .g-section-head { padding:88px 0 8px; }
.g-offer-band { padding:88px 0; background:var(--surface-page); }
/* Landing from "see this offer on our offers page" (#offer-<model page id>): clear the sticky header. */
.g-offer-band[id] { scroll-margin-top:96px; }
.g-offer-band.is-alt { background:var(--surface-alt); }
.g-offers--stacked.is-alt-start { background:var(--surface-alt); } /* heading sits on its first band's colour */
.g-offer-band-in { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:72px; align-items:center; }
.g-offer-band-in.is-flip .g-offer-band-media { order:2; }
.g-offer-band-media { position:relative; aspect-ratio:4/3; border-radius:var(--radius-2xl); overflow:hidden;
  background:var(--surface-sunken); box-shadow:var(--shadow-lg); }
.g-offer-band-media img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:transform 700ms var(--ease-out); }
.g-offer-band:hover .g-offer-band-media img { transform:scale(1.03); }
.g-jarvis-badge { position:absolute; top:18px; left:18px; display:inline-flex; align-items:center; gap:8px; padding:7px 14px;
  border-radius:var(--radius-pill); background:var(--jarvis-blue); color:#fff; font-family:var(--font-sans); font-weight:700;
  font-size:12px; letter-spacing:.04em; box-shadow:0 6px 16px rgba(27,67,160,.35); }
.g-jarvis-badge::before { content:""; width:7px; height:7px; border-radius:50%; background:var(--jarvis-red); }
.g-offer-band-copy { min-width:0; }
.g-offer-band-copy .g-offer-eyebrow { font-family:var(--font-display); font-weight:var(--fw-heading); text-transform:uppercase;
  letter-spacing:.2em; font-size:13px; color:var(--text-tertiary); margin:0 0 18px; }
.g-offer-band-copy .g-offer-headline { font-family:var(--font-display); font-weight:var(--fw-heading); font-size:clamp(28px,3vw,44px);
  line-height:1.08; text-transform:uppercase; letter-spacing:var(--heading-tracking); margin:0; }
.g-offer-band-copy .g-offer-price { font-family:var(--font-display); font-weight:var(--fw-heading); font-size:22px; color:var(--color-brand); margin:22px 0 0; }
.g-offer-band-copy .g-offer-sub { color:var(--text-secondary); font-size:18px; line-height:1.65; margin:18px 0 0; }
.g-offer-band-copy .g-offer-details { color:var(--text-primary); font-size:18px; line-height:1.5; margin:14px 0 0; }
.g-offer-band-copy .g-offer-rates { color:var(--text-tertiary); font-size:13px; margin:10px 0 0; }
.g-offer-band-cta { display:flex; flex-wrap:wrap; gap:12px; margin-top:34px; }
.g-offer-band-cta .g-btn-jarvis { --_bgh:var(--jarvis-blue); }
.g-offer-band-cta .g-btn-jarvis { --_bdh:var(--jarvis-blue); }
/* .g-offer-band-copy prefix: .g-body p { margin:0 } (0,1,1) would beat a bare class. */
.g-offer-band-copy .g-offer-terms-link { margin:26px 0 0; font-size:14px; }
.g-offer-terms-link a { display:inline-flex; align-items:center; min-height:44px; font-weight:var(--fw-semibold); color:var(--text-primary);
  text-decoration:underline; text-underline-offset:3px; }
.g-offer-terms-link a:hover { color:var(--jarvis-blue); }
.g-offer-terms-link a:focus-visible { outline:none; box-shadow:var(--focus-ring); border-radius:var(--radius-sm); }
/* Terms popup: Bootstrap modal (fade), dressed like the jarviscars.com.au popups. */
.g-terms-modal .modal-content { border:0; border-radius:18px; box-shadow:0 24px 60px rgba(15,23,42,.18); }
.g-terms-modal .modal-header { padding:20px 24px; border-bottom:1px solid var(--border-subtle); }
.g-terms-modal .modal-title { font-family:var(--font-display); font-weight:var(--fw-heading); text-transform:uppercase; font-size:16px; letter-spacing:.06em; }
.g-terms-modal .modal-body { padding:20px 24px; }
.g-terms-modal .modal-body p { margin:0; color:var(--text-secondary); font-size:14px; line-height:1.7; }
.g-terms-modal .modal-footer { padding:14px 24px; border-top:1px solid var(--border-subtle); }
/* Offer lead popups (enquiry / test drive): same dress as the terms popup. */
.g-lead-modal .modal-content { border:0; border-radius:18px; box-shadow:0 24px 60px rgba(15,23,42,.18); }
.g-lead-modal .modal-header { align-items:flex-start; padding:22px 24px 16px; border-bottom:1px solid var(--border-subtle); }
.g-lead-modal .modal-title { font-family:var(--font-display); font-weight:var(--fw-heading); text-transform:uppercase; font-size:18px; letter-spacing:.04em; }
.g-body .g-lead-modal .g-lead-modal-sub { margin:6px 0 0; color:var(--text-tertiary); font-size:14px; }
.g-lead-modal .modal-body { padding:8px 24px 24px; }
.g-lead-modal .g-lead-fields { margin-top:16px; }
.g-lead-modal .g-lead-form .g-btn--block { margin-top:20px; }
@media (max-width:1100px){ .g-offer-band-in { gap:48px; } }
@media (max-width:900px){
  .g-offer-band { padding:48px 0; }
  .g-offers--stacked .g-section-head { padding:56px 0 0; }
  .g-offer-band-in { grid-template-columns:1fr; gap:26px; }
  .g-offer-band-in.is-flip .g-offer-band-media { order:0; }
  .g-offer-band-media { aspect-ratio:16/10; }
  .g-offer-band-cta .g-btn { flex:1 1 100%; }
}
@media (max-width:560px){ .g-jarvis-badge { top:12px; left:12px; } }

/* ============================================================
   BLOCK: model_showcase
   ============================================================ */
/* Model range (model_showcase) - geely.com.au-style image tiles (owner 2026-10-12): the picture fills the
   tile, name/tagline on a dark fade at the bottom, whole tile = link to the model page (stretched link),
   picture zooms on hover (OEM home tiles: transform .5s, scale 1.1). Cut-outs sit on a studio backdrop. */
.g-models { padding:var(--section-pad-y) 0; }
.g-mtiles { display:grid; gap:16px; grid-template-columns:repeat(3, minmax(0, 1fr)); }
.g-mtiles--1 { grid-template-columns:minmax(0, 1fr); }
.g-mtiles--2 { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.g-mtile { position:relative; border-radius:var(--radius-media); overflow:hidden; aspect-ratio:4/5; background:#0b0d10; isolation:isolate; }
/* More than 3 models: a carousel of the same tiles (owner 2026-10-21). The widths below are the row as it looks
   BEFORE Swiper starts (its CSS and script load late), so nothing jumps; Swiper's inline widths take over. */
.g-mtiles-carousel { margin-top:0; }
.g-mtiles-swiper { overflow:hidden; }
.g-mtiles-swiper .swiper-wrapper { display:flex; }
.g-mtiles-swiper .swiper-slide { flex-shrink:0; width:calc((100% - 32px) / 3); margin-right:16px; height:auto; }
@media (max-width:1023.98px){ .g-mtiles-swiper .swiper-slide { width:calc((100% - 32px) / 2.2); } }
@media (max-width:743.98px){ .g-mtiles-swiper .swiper-slide { width:calc((100% - 16px) / 1.15); } }
.g-mtiles--1 .g-mtile, .g-mtiles--2 .g-mtile { aspect-ratio:16/9; }
.g-mtile-media { position:absolute; inset:0; z-index:-1; }
.g-mtile-media img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s var(--ease-standard); }
.g-mtile--contain .g-mtile-media { background:radial-gradient(120% 70% at 50% 38%, #ffffff 0%, #eef0f3 55%, #d9dde3 100%); }
.g-mtile--contain .g-mtile-media img { object-fit:contain; padding:8% 4% 36%; }
.g-mtile-media::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 62%, rgba(0,0,0,.82) 100%); }
.g-mtile:hover .g-mtile-media img { transform:scale(1.1); }
.g-mtile-body { position:absolute; left:0; right:0; bottom:0; padding:28px 28px 24px; color:#fff; display:flex; flex-direction:column; align-items:flex-start; }
.g-mtile-badge { font-family:var(--font-display); font-weight:var(--fw-heading); font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:#fff; border:1px solid rgba(255,255,255,.7); padding:5px 10px; border-radius:var(--radius-pill); margin-bottom:14px; background:rgba(0,0,0,.18); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); }
.g-body .g-mtile-name { font-family:var(--font-display); font-weight:var(--fw-heading); font-size:28px; line-height:1.1; text-transform:uppercase; margin:0; color:#fff; }
.g-body .g-mtile-link { color:#fff; text-decoration:none; }
.g-mtile-link::after { content:""; position:absolute; inset:0; z-index:1; }
.g-mtile-link:focus-visible { outline:none; }
.g-mtile:focus-within { box-shadow:var(--focus-ring); }
.g-body .g-mtile-tagline { font-family:var(--font-sans); font-weight:300; font-size:16px; line-height:22.4px; color:rgba(255,255,255,.88); margin:6px 0 0; }
.g-body .g-mtile-price { font-family:var(--font-sans); font-weight:500; font-size:14px; color:#fff; margin:10px 0 0; }
.g-mtile-actions { display:flex; align-items:center; gap:20px; margin-top:18px; }
.g-mtile-explore { display:inline-flex; align-items:center; gap:8px; font-family:var(--font-sans); font-weight:500; font-size:16px; color:#fff; padding-bottom:4px; box-shadow:inset 0 -1px rgba(255,255,255,.7); }
.g-mtile-explore svg { transition:transform .2s var(--ease-standard); }
.g-mtile:hover .g-mtile-explore svg { transform:translateX(4px); }
.g-body .g-mtile-td { position:relative; z-index:2; font-family:var(--font-sans); font-weight:400; font-size:14px; color:rgba(255,255,255,.88); text-decoration:underline; text-underline-offset:3px; }
.g-body .g-mtile-td:hover { color:#fff; }
@media (prefers-reduced-motion: reduce) { .g-mtile-media img, .g-mtile-explore svg { transition:none; } .g-mtile:hover .g-mtile-media img { transform:none; } }
@media (max-width:1023.98px){
  .g-mtiles, .g-mtiles--2 { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .g-mtiles--1 { grid-template-columns:minmax(0, 1fr); }
  .g-mtiles--3 .g-mtile:last-child:nth-child(odd) { grid-column:1 / -1; aspect-ratio:16/9; }
}
@media (max-width:743.98px){
  .g-mtiles, .g-mtiles--1, .g-mtiles--2 { grid-template-columns:minmax(0, 1fr); }
  .g-mtile, .g-mtiles--1 .g-mtile, .g-mtiles--2 .g-mtile, .g-mtiles--3 .g-mtile:last-child:nth-child(odd) { aspect-ratio:4/5; grid-column:auto; }
  .g-mtile-body { padding:20px 20px 18px; }
  .g-body .g-mtile-name { font-size:24px; }
}

/* ============================================================
   BLOCK: spec_table
   ============================================================ */
.g-spec-section { padding:var(--section-pad-y) 0; }
.g-spec-table { width:100%; border-collapse:collapse; margin-top:36px; }
.g-spec-table tr { border-bottom:1px solid var(--border-subtle); }
.g-spec-table td { padding:16px 4px; font-size:15px; }
.g-spec-table td:first-child { color:var(--text-secondary); font-weight:500; width:40%; }
.g-spec-table td:last-child { font-weight:600; text-align:right; }
/* Spec grid as CARDS, not a hairline table.
   The hierarchy is deliberately INVERTED from the old version: the label was
   17px uppercase and the answer 14px grey, so the page shouted "VEHICLE
   WARRANTY" and whispered "7 years". The answer is what a visitor came for, so
   the label is now a small eyebrow and the value carries the weight.
   Cards work on BOTH band colours (see the alternating section rule), which is
   why they are surface-card + border rather than a tinted fill. */
.g-spec-grid { display:grid; gap:18px; margin-top:44px; }
.g-spec-grid.g-cols-2 { grid-template-columns:repeat(2, minmax(0,1fr)); }
.g-spec-grid.g-cols-3 { grid-template-columns:repeat(3, minmax(0,1fr)); }
.g-spec-grid.g-cols-4 { grid-template-columns:repeat(4, minmax(0,1fr)); }
.g-spec-item { position:relative; padding:30px 26px 26px; min-width:0;
  background:var(--surface-card); border:var(--border-width) solid var(--border-subtle);
  border-radius:var(--radius-xl);
  transition:transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), border-color var(--dur-base); }
/* short brand rule at the top edge — content-agnostic accent, no icon data needed */
.g-spec-item::before { content:""; position:absolute; top:0; left:26px; width:34px; height:3px;
  background:var(--color-brand); border-radius:0 0 3px 3px; }
.g-spec-item:hover { transform:translateY(-3px); box-shadow:var(--shadow-md); border-color:var(--border-default); }
.g-spec-item h4 { font-family:var(--font-display); font-weight:var(--fw-heading); font-size:12px;
  letter-spacing:.16em; text-transform:uppercase; color:var(--text-tertiary); margin:0; }
.g-spec-item p { color:var(--text-primary); font-size:17px; font-weight:var(--fw-body);
  margin-top:12px; line-height:1.45; }
.g-spec-section .g-spec-footnote { color:var(--text-tertiary); font-size:12.5px; line-height:1.55; margin-top:32px; }
@media (max-width:768px){
  .g-spec-grid.g-cols-2, .g-spec-grid.g-cols-3, .g-spec-grid.g-cols-4 { grid-template-columns:1fr; }
}

/* ============================================================
   BLOCK: disclaimer_block
   ============================================================ */
.g-disclaimer { padding:44px 0; border-top:1px solid var(--border-subtle); }
.g-disclaimer h4 { font-family:var(--font-display); font-weight:var(--fw-heading); text-transform:uppercase; font-size:12px; letter-spacing:.1em; color:var(--text-tertiary); margin:0 0 10px; }
/* Full width, no measure cap: this is 12.5px LEGAL small print, and the OEM
   runs its own disclaimers the full width of the band (~280 chars at this
   size). Capping it at 96ch left two thirds of the row empty. */
.g-disclaimer p { color:var(--text-tertiary); font-size:12.5px; line-height:1.7; margin:0; }
.g-disclaimer p + p { margin-top:8px; }

/* ============================================================
   BLOCK: stock_search  (utility block — valid on any framework)
   CSS-only tabs: a radio group drives which form is visible, so the
   panel works with JavaScript off. Purely additive — every selector
   is namespaced under .g-stocksearch / .g-ss-*, so nothing existing
   can change.
   ============================================================ */
.g-stocksearch { padding:var(--section-pad-y) 0; }
.g-stocksearch .g-section-head { margin-bottom:28px; }
.g-stocksearch-intro { max-width:var(--measure); }
.g-stocksearch-intro p { margin:0; }

/* Visually hidden, NOT display:none — the radios stay focusable, so the tabs
   are reachable and arrow-navigable by keyboard exactly like any radio group. */
.g-ss-radio {
    position:absolute; width:1px; height:1px; padding:0; margin:-1px;
    overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}

.g-stocksearch-panel {
    background:var(--surface-alt); border-radius:14px;
    padding:8px; box-shadow:var(--shadow-sm);
}

.g-ss-tabs { display:flex; gap:4px; flex-wrap:wrap; padding:4px; }
.g-ss-tab {
    display:inline-flex; align-items:center; gap:8px;
    padding:12px 22px; border-radius:999px; cursor:pointer;
    font-size:15px; font-weight:500; color:var(--text-secondary);
    background:transparent; border:1px solid transparent;
    transition:background .18s ease, color .18s ease;
    user-select:none;
}
.g-ss-tab:hover { color:var(--text-primary); background:var(--surface-card); }
.g-ss-count { font-size:12px; font-weight:400; opacity:.75; font-variant-numeric:tabular-nums; }

/* Every form is hidden here. The per-instance <style> the block emits reveals
   the checked one and lights its tab: those rules key off the block's own uid
   and its actual category keys, so they are generated per instance rather than
   guessed statically. The general sibling combinator reaches forward from the
   radio to both the tablist and the forms, which is why the radios are emitted
   before both in the markup. */
/* One form over every condition now that Vehicle Type is a multi-select
   dropdown, so there is nothing to hide. This was display:none with a
   per-panel `:checked ~` rule revealing one of several forms; deleting the
   radios without also clearing the default left the whole block rendering as
   an empty strip. */
.g-ss-form { display:flex; gap:16px; padding:16px 12px 12px; }

/* Controls on their own row, CTA centred underneath — the main site's shape.
   The per-instance <style> the block emits flips this to `flex` when the tab
   is checked, so the direction/alignment live here. */
.g-ss-form { flex-direction:column; align-items:stretch; }
/* No fade on open any more. The CTA moved into the controls row, so a panel
   never covers it — and hiding it took the live count away at exactly the
   moment it is most useful. The footer stays below and out of the way. */
.g-ss-submit { display:flex; }
.g-ss-foot { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px 22px; margin-top:12px; font-size:14px; }
.g-ss-foot-service { display:inline-flex; align-items:center; gap:7px; color:var(--text-secondary); }
.g-ss-foot-service svg { color:var(--text-tertiary); }
.g-ss-foot-service a { color:var(--color-brand); font-weight:600; }
.g-ss-clear {
    display:inline-flex; align-items:center; gap:7px; border:0; background:none;
    cursor:pointer; padding:0; font-size:14px; font-weight:600; color:var(--red-600, #d23b3b);
}
.g-ss-clear:hover { text-decoration:underline; }
.g-ss-clear[hidden] { display:none; }
/* ⛔ DO NOT push the CTA down when a card opens.
   An earlier version moved it clear with :has(), which made the whole page
   jump — the panel is a dropdown and a dropdown must overlay, never reflow.
   The main site's equivalent is position:absolute with z-index 1050 and no
   max-height of its own (search.css:56-73); it overlays the content below it,
   CTA included, and the visitor dismisses it by choosing or clicking away.
   The height is bounded by capping the SCROLLING part instead — see
   .g-ss-card-panel below, mirroring .dropdown-content's max-height:300px
   (search.css:134-139). */
/* 64px matches a control card's height so the row sits on one baseline. */
/* min() not a flat 380: on a phone the column is ~310px and a flat min-width
   pushed the button past it into a horizontal scroll. */
.g-ss-submit .g-ss-btn { min-width:min(380px, 100%); height:64px; font-size:16px; gap:.5em; }
/* The count is rendered server-side so the button reads as a real promise
   before any script runs; the live count then keeps it honest. */

.g-ss-field { display:flex; flex-direction:column; gap:6px; flex:1 1 180px; min-width:0; }
.g-ss-label { font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--text-tertiary); }
.g-ss-select {
    appearance:none; width:100%; padding:13px 40px 13px 14px;
    border:1px solid var(--border); border-radius:8px;
    background:var(--surface-card); color:var(--text-primary);
    font-size:15px; line-height:1.3; cursor:pointer;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23666' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:right 14px center;
}
.g-ss-select:focus-visible { outline:2px solid var(--brand-600); outline-offset:1px; }

/* ── Control cards ──────────────────────────────────────────────────────────
   Every control is a card on one row, and a range card is a CLOSED summary that
   opens onto its slider — the same shape as the main site's search bar
   (resources/views/home/partials/topsearchbar.blade.php). The first cut here
   laid the sliders out inline and always-open, which ate the whole row and
   pushed the model select and the button into the corners.

   The disclosure is <details>, not script: the main site opens its panel with
   onclick="toggleFilter(...)", and the panel holds the only controls, so a
   verbatim port would have been un-openable with scripting off. */
/* The controls row must sit ABOVE the CTA row in paint order, or an open card's
   panel is covered by the Search button it overlaps. Both get an explicit
   position+z-index rather than relying on the default painting order, which put
   the button on top. */
/* All four default controls on ONE line on desktop - Vehicle Type, Make & Model,
   Price, Kilometres - wrapping to two rows and then one column as the viewport
   narrows, or as a block is configured with more filters than fit. */
/* Grid, not flex: with flex-wrap a control left alone on the last row grows to
   the full width of that row (Kilometres measured 1054px beside 248px siblings).
   auto-fit columns are equal on every row, so the second row lines up with the
   first however many controls a block is configured with.
   The 260px floor is measured, not chosen: a make row has to fit a checkbox, the
   name, the count and the "Model >" pill, and the longest name in group stock
   ("Mercedes-Benz") needs 259px. A card's dropdown is exactly as wide as the
   card, so anything narrower truncates real makes to "Mitsubis..." - which is
   what a 240px basis did. Wrapping to a second row is the better trade. */
/* Free-text box - the main site's hero pill, ported from master.css:1827-1911
   so the two read as one product: rounded wrapper, plain 16px magnifier, the
   input borderless INSIDE it, italic placeholder, and a solid Search button on
   the right. Values are the reference's own (999px, 1.5px border, 7px/18px
   padding, 10px gap, 138px min-width), not approximations.

   The button is brand rather than the reference's hardcoded #1B43A0: this is
   the same accent the cards already use for their values, and a Jarvis blue on
   a Geely page would be the one wrong colour on it.

   type=submit on that button, so the pill works with scripting off exactly as
   the CTA below does. The label is visually hidden rather than absent - once
   you type, placeholder text is gone and the field would have no accessible
   name at all. */
/* Centred and constrained, not full width. The reference does this with its
   grid rather than a width: the pill sits in col-12 col-md-10 col-lg-8 col-xl-7
   inside a centred row, measuring 784px at 1440 and 616px at 1024. Those column
   fractions are reproduced here as max-widths so the proportion matches at every
   breakpoint, rather than hard-coding 784px - the Geely container is 1288px wide
   against the reference's 1385px, so the same NUMBER would not be the same shape.
   Full width below 768px, exactly as col-12 gives. */
/* width:100% is load-bearing, not belt-and-braces: .g-ss-form is a flex column,
   so this div is a flex ITEM stretched to full width by align-items:stretch -
   and setting a cross-axis auto margin to centre it CANCELS that stretch. The
   pill then fell back to fit-content and measured 414px at every viewport,
   ignoring the max-widths entirely and overflowing a 390px phone. */
.g-ss-free { width:100%; margin:0 auto 18px; }
@media (min-width: 768px)  { .g-ss-free { max-width:83.333%; } }  /* col-md-10 */
@media (min-width: 992px)  { .g-ss-free { max-width:66.666%; } }  /* col-lg-8  */
@media (min-width: 1200px) { .g-ss-free { max-width:58.333%; } }  /* col-xl-7  */
.g-ss-free-label { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.g-ss-free-inner {
    display:flex; align-items:center; gap:10px;
    padding:7px 7px 7px 18px;
    background:var(--surface-card); border:1.5px solid var(--border-default);
    border-radius:var(--radius-pill);
    transition:border-color var(--dur-fast) var(--ease-standard);
}
.g-ss-free-inner:focus-within { border-color:var(--color-brand); }
.g-ss-free-icon { display:flex; flex-shrink:0; color:var(--text-secondary); }
.g-ss-free-input {
    flex:1; min-width:0; padding:6px 0;
    background:none; border:none; outline:none;
    color:var(--text-primary); font-size:15px; font-weight:500; letter-spacing:.01em;
}
.g-ss-free-input::placeholder { color:var(--text-tertiary); font-style:italic; opacity:1; }
/* Safari draws its own decoration and clear button on type=search; neither
   belongs inside a pill that already has a button in it. */
.g-ss-free-input::-webkit-search-decoration,
.g-ss-free-input::-webkit-search-cancel-button { display:none; }
.g-ss-free-input { -webkit-appearance:none; appearance:none; }
/* 16px on a phone is functional: below it iOS Safari zooms the page on focus
   and does not zoom back out. */
@media (max-width: 767.98px) { .g-ss-free-input { font-size:16px; } }
.g-ss-free-submit {
    flex:0 0 auto; display:inline-flex; align-items:center; justify-content:center; gap:8px;
    min-width:138px; padding:10px 22px; margin-left:4px;
    border:none; border-radius:var(--radius-pill);
    background:var(--color-brand); color:#fff;
    font-size:14px; font-weight:700; letter-spacing:.01em; cursor:pointer;
    transition:filter var(--dur-fast) var(--ease-standard);
}
.g-ss-free-submit:hover { filter:brightness(.92); }
.g-ss-free-submit svg { flex:0 0 auto; }
@media (max-width: 575.98px) {
    /* The button label alone is wider than half a phone, so the pill becomes
       icon + field and the CTA below carries the action. */
    .g-ss-free-submit span { display:none; }
    .g-ss-free-submit { min-width:0; padding:10px 14px; }
}

/* Focus panel — recent searches and body-type shortcuts.

   Absolute, like every other dropdown in this block: it overlays the controls
   below rather than pushing them, which is the rule the whole block follows.
   z-index above .g-ss-controls (2) and its open cards (3) so it is never half
   covered by a card that happens to be open behind it.

   JOINED to the pill, not floating under it - the same treatment the control
   cards got. The pill squares off its bottom corners and drops its bottom
   border while open, the panel sits flush at top:100% with no top border of
   its own and left/right at 0 so the two side borders continue the pill's,
   and only the panel is rounded at the bottom. A gap plus a full border and
   shadow read as a separate card that happened to appear nearby. */
.g-ss-free { position:relative; z-index:4; }
/* Open, the pill is no longer a pill: it is the top of one taller shape, so it
   takes the block's 12px corners like everything else rather than keeping the
   999px radius, which clamps to ~28px at this height and left the joined shape
   with round shoulders over 12px feet. Closed, it springs back to the pill the
   reference uses. */
.g-ss-free.is-open > .g-ss-free-inner {
    border-radius:12px 12px 0 0;
    border-color:var(--color-brand); border-bottom-color:transparent;
}
.g-ss-panel {
    position:absolute; top:100%; left:0; right:0; z-index:1060;
    max-height:min(70vh, 520px); overflow-y:auto; overscroll-behavior:contain;
    background:var(--surface-card);
    border:1.5px solid var(--color-brand); border-top:none;
    border-radius:0 0 12px 12px;
    box-shadow:0 18px 44px rgba(0,0,0,.10);
    scrollbar-width:thin; scrollbar-color:#c1c1c1 transparent;
}
.g-ss-panel::-webkit-scrollbar { width:6px; }
.g-ss-panel::-webkit-scrollbar-track { background:transparent; }
.g-ss-panel::-webkit-scrollbar-thumb { background:#c1c1c1; border-radius:3px; }
.g-ss-panel[hidden] { display:none; }
.g-ss-panel-sec { padding:14px 18px; }
.g-ss-panel-sec:last-child { padding-bottom:18px; }
.g-ss-panel-sec + .g-ss-panel-sec { border-top:1px solid var(--border-subtle); }
.g-ss-panel-head {
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    margin-bottom:10px;
    font-size:11.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
    color:var(--text-tertiary);
}
.g-ss-panel-clear {
    border:none; background:none; padding:0; cursor:pointer;
    font-size:12.5px; font-weight:600; letter-spacing:0; text-transform:none;
    color:var(--color-brand);
}
.g-ss-panel-clear:hover { text-decoration:underline; }

.g-ss-chips { display:flex; flex-wrap:wrap; gap:8px; }
.g-ss-chip {
    display:inline-flex; align-items:center; gap:7px;
    padding:7px 13px; border-radius:var(--radius-pill);
    border:1px solid var(--border-default); background:var(--surface-card);
    color:var(--text-primary); font-size:13.5px; cursor:pointer;
    max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.g-ss-chip:hover { border-color:var(--color-brand); color:var(--color-brand); }

/* auto-fit rather than a fixed 3: the tile list is however many body types the
   live stock has, and a hard column count strands a trailing single tile at a
   third of the width. */
.g-ss-tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); gap:10px; }
.g-ss-tile {
    display:flex; align-items:center; gap:10px; min-width:0;
    padding:11px 13px; border-radius:12px;
    border:1px solid var(--border-default); background:var(--surface-card);
    text-decoration:none; color:inherit;
}
.g-ss-tile:hover { border-color:var(--color-brand); }
.g-ss-tile-ic {
    display:flex; align-items:center; justify-content:center; flex:0 0 auto;
    width:32px; height:32px; border-radius:9px;
    background:var(--surface-sunken); color:var(--color-brand);
}
.g-ss-tile-txt { display:flex; flex-direction:column; min-width:0; }
.g-ss-tile-name { font-size:14px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.g-ss-tile-cnt { font-size:12px; color:var(--text-secondary); }

/* Suggestions while typing — rows, not tiles: a label and a hint read left to
   right, and the list is scanned top-down for the one you meant. The section
   padding is pulled in so each row's own padding lines its text up with the
   panel head. 44px rows: they are touch targets on a phone. */
.g-ss-panel-sec[data-g-suggest] { padding:12px 8px 6px; }
.g-ss-panel-sec[data-g-suggest] .g-ss-panel-head { padding:0 10px; margin-bottom:6px; }
.g-ss-sg-foot { padding:6px 8px 8px; }
.g-ss-sg-foot:last-child { padding-bottom:8px; }
.g-ss-sg-list { display:flex; flex-direction:column; }
.g-ss-sg-row {
    display:flex; align-items:center; gap:12px; width:100%; min-height:44px;
    padding:6px 10px; border:none; border-radius:8px; background:none;
    text-align:left; text-decoration:none; color:var(--text-primary); font:inherit; cursor:pointer;
}
.g-ss-sg-row:hover, .g-ss-sg-row.is-active { background:var(--surface-sunken); }
.g-ss-sg-ic {
    display:flex; align-items:center; justify-content:center; flex:0 0 auto;
    width:32px; height:32px; border-radius:8px;
    background:var(--surface-sunken); color:var(--text-secondary);
}
.g-ss-sg-row:hover .g-ss-sg-ic, .g-ss-sg-row.is-active .g-ss-sg-ic { background:var(--surface-card); }
.g-ss-sg-ic--all, .g-ss-sg-row:hover .g-ss-sg-ic--all, .g-ss-sg-row.is-active .g-ss-sg-ic--all { background:var(--color-brand); color:#fff; }
.g-ss-sg-label { flex:1 1 auto; min-width:0; font-size:14.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.g-ss-sg-label strong { font-weight:700; }
.g-ss-sg-q { color:var(--color-brand); font-weight:600; }
.g-ss-sg-hint { flex:0 0 auto; font-size:12.5px; color:var(--text-tertiary); white-space:nowrap; }
.g-ss-sg-kbd {
    flex:0 0 auto; padding:2px 7px; border-radius:5px;
    border:1px solid var(--border-default); background:var(--surface-sunken);
    font-size:11.5px; color:var(--text-secondary);
}
/* On a phone the hint moves under the label: side by side, "Stock# E04621 ·
   Demo" left the car's own name at "2025 Ge…" at 375px. */
@media (max-width: 575.98px) {
    .g-ss-sg-kbd { display:none; }
    .g-ss-sg-row { display:grid; grid-template-columns:32px minmax(0, 1fr); column-gap:12px; row-gap:1px; }
    .g-ss-sg-ic { grid-row:span 2; }
    .g-ss-sg-label, .g-ss-sg-hint { grid-column:2; }
    .g-ss-sg-hint { font-size:12px; overflow:hidden; text-overflow:ellipsis; }
}

/* Recent chips carry a remove button: the chip is a span holding two. */
.g-ss-chip { padding:0; gap:0; cursor:default; }
.g-ss-chip-run {
    border:none; background:none; padding:7px 4px 7px 13px; cursor:pointer;
    color:inherit; font:inherit; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.g-ss-chip-x {
    display:flex; align-items:center; justify-content:center; flex:0 0 auto;
    width:28px; height:30px; padding:0 8px 0 4px; border:none; background:none; cursor:pointer;
    color:var(--text-tertiary);
}
.g-ss-chip-x:hover { color:var(--color-brand); }

/* Popular searches: rows with the stock count on the right. */
.g-ss-pops { display:flex; flex-direction:column; margin:0 -10px; }
.g-ss-pop {
    display:flex; align-items:center; gap:12px; min-height:42px; padding:6px 10px;
    border-radius:8px; text-decoration:none; color:var(--text-primary);
}
.g-ss-pop:hover { background:var(--surface-sunken); }
.g-ss-pop-ic { display:flex; flex:0 0 auto; color:var(--color-brand); }
.g-ss-pop-name { flex:1 1 auto; min-width:0; font-size:14.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.g-ss-pop-cnt { flex:0 0 auto; font-size:12.5px; color:var(--text-tertiary); font-variant-numeric:tabular-nums; }

/* Newly added: one horizontally scrolling row of small cards. */
.g-ss-news {
    display:flex; gap:10px; overflow-x:auto; overscroll-behavior-x:contain;
    scroll-snap-type:x proximity; padding-bottom:4px; scrollbar-width:thin;
}
.g-ss-new {
    flex:0 0 150px; display:flex; flex-direction:column; gap:3px; min-width:0;
    scroll-snap-align:start; text-decoration:none; color:var(--text-primary);
}
.g-ss-new-img {
    display:block; aspect-ratio:4 / 3; border-radius:10px; overflow:hidden;
    background:var(--surface-sunken);
}
.g-ss-new-img img { display:block; width:100%; height:100%; object-fit:cover; }
.g-ss-new-title {
    font-size:12.5px; font-weight:600; line-height:1.3;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.g-ss-new-price { font-size:13px; font-weight:700; color:var(--color-brand); }
.g-ss-new:hover .g-ss-new-title { color:var(--color-brand); }

/* Phone-sheet parts, off everywhere else. */
.g-ss-back, .g-ss-sheet-foot { display:none; }

/* Phone: the open search is a full-screen sheet, as on the main site - back
   arrow and field on top, the sections scrolling under it, and a sticky
   "Search N cars" button. The page behind is locked (html.g-ss-sheet-open,
   set by stock-search.js). */
@media (max-width: 767.98px) {
    html.g-ss-sheet-open, html.g-ss-sheet-open body { overflow:hidden; }
    .g-ss-free.is-open {
        position:fixed; inset:0; z-index:2000; max-width:none; margin:0;
        display:flex; flex-direction:column; background:var(--surface-card);
    }
    .g-ss-free.is-open > .g-ss-free-inner {
        flex:0 0 auto; margin:10px 12px; padding:5px 12px 5px 4px; gap:4px;
        border-radius:var(--radius-pill); border-color:var(--color-brand);
    }
    .g-ss-free.is-open .g-ss-back {
        display:flex; align-items:center; justify-content:center; flex:0 0 auto;
        width:38px; height:38px; border:none; border-radius:50%; background:none;
        color:var(--text-primary); cursor:pointer;
    }
    .g-ss-free.is-open .g-ss-free-icon,
    .g-ss-free.is-open .g-ss-free-submit { display:none; }
    .g-ss-free.is-open > .g-ss-panel:not([hidden]) {
        position:static; flex:1 1 auto; min-height:0; max-height:none;
        display:flex; flex-direction:column;
        border:none; border-top:1px solid var(--border-subtle); border-radius:0; box-shadow:none;
    }
    .g-ss-free.is-open .g-ss-tiles { grid-template-columns:repeat(2, minmax(0, 1fr)); }
    .g-ss-free.is-open .g-ss-sheet-foot {
        display:block; position:sticky; bottom:0; margin-top:auto;
        padding:12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        background:var(--surface-card); border-top:1px solid var(--border-subtle);
    }
    .g-ss-sheet-go {
        display:block; width:100%; height:50px; border:none; border-radius:var(--radius-pill);
        background:var(--color-brand); color:#fff; font-size:15.5px; font-weight:700; cursor:pointer;
    }
}

/* What the parse understood, and what it could not honour. */
.g-ss-smart { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 10px; margin:0 0 18px; font-size:14.5px; }
.g-ss-smart-q { font-weight:600; }
.g-ss-smart-term { display:inline-flex; padding:3px 11px; border-radius:var(--radius-pill); font-size:13px; border:1px solid var(--border-default); background:var(--surface-card); color:var(--text-primary); }
.g-ss-smart-dropped { color:var(--text-secondary); font-size:13.5px; flex-basis:100%; margin:0; }

.g-ss-controls { display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:12px; align-items:start; width:100%; position:relative; z-index:2; }
/* Its own row, centred. 14px on top of the grid's 12px: the CTA is a different
   kind of control to the cards above it, and at the same gap it read as one
   more filter. It is NOT a grid cell - see the note in the block view. */
.g-ss-submit { display:flex; justify-content:center; margin-top:26px; position:relative; z-index:1; }
/* An open card is lifted above its siblings so its panel overlaps them rather
   than being clipped between them. */
.g-ss-card[open] { z-index:3; }

.g-ss-card {
    position:relative; min-width:0;
    background:var(--surface-card); border:1px solid var(--border-default);
    border-radius:12px; padding:10px 14px;
    transition:border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
.g-ss-card:hover { border-color:var(--color-brand); }
/* Open, the card and its panel are ONE shape, so the join must carry no seam:
   - the bottom BORDER is made transparent rather than removed, so the box keeps
     its height and nothing shifts by a pixel as it opens;
   - the focus RING is dropped, because a 3px glow drawn around the card alone
     stops dead at the join and reads as a step beside the panel, which has its
     own shadow. The panel's shadow now covers both. */
.g-ss-card[open] {
    border-color:var(--color-brand);
    border-bottom-color:transparent;
    box-shadow:none;
}
.g-ss-card-label { display:block; font-size:11.5px; letter-spacing:.07em; text-transform:uppercase; color:var(--text-tertiary); margin:0 0 2px; }
.g-ss-card-value { display:block; font-weight:600; font-size:15px; color:var(--color-brand); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* The summary IS the closed card. list-style + ::-webkit-details-marker both
   need clearing or the browser draws its own triangle beside ours. */
.g-ss-card-summary { display:flex; align-items:center; justify-content:space-between; gap:10px; cursor:pointer; list-style:none; }
.g-ss-card-summary::-webkit-details-marker { display:none; }
.g-ss-card-summary:focus-visible { outline:2px solid var(--color-brand); outline-offset:3px; border-radius:8px; }
.g-ss-card-text { min-width:0; }
.g-ss-card-caret { flex:0 0 auto; color:var(--color-brand); transition:transform var(--dur-fast) var(--ease-standard); }
.g-ss-card[open] .g-ss-card-caret { transform:rotate(180deg); }

/* Absolute so opening a card does not shove the row around, matching the main
   site's .search-dropdown-menu. */
/* Overlays, never reflows — mirrors .search-dropdown-menu (search.css:56-73):
   absolute, high z-index, and the height bounded by capping the scrolling part
   rather than the panel itself.

   JOINED TO THE CARD, not floating below it: top:100% with no gap, the card's
   bottom corners squared and its bottom border dropped while open, and the
   panel's top corners squared to meet it. The reference reads as one control
   that has grown, which a 6px gap breaks. */
.g-ss-card-panel {
    /* -1px, not 0: an absolutely positioned child aligns to the PADDING box, so
       left:0 sits inside the card's 1px border and the panel's own border lands
       1px in — a hairline step down each side of the join. Pulling out by the
       border width makes the two edges continuous. */
    position:absolute; top:100%; left:-1px; right:-1px; z-index:1050;
    background:var(--surface-card);
    border:1px solid var(--color-brand); border-top:0;
    border-radius:0 0 12px 12px; box-shadow:var(--shadow-md);
    /* No min-width: the panel is exactly as wide as its card, like the
       reference's .search-dropdown-menu (left:0/right:0, search.css:56-73). A
       280px floor was fine when the row held four ~300px cards, but the row now
       sizes to however many filters a block configures — at six the cards are
       205px and every panel hung 63px over its neighbour, showing as a stray
       blue line beside the next control. */
    padding:14px 16px 16px;
    max-height:340px; overflow-y:auto; overscroll-behavior:contain;
}
.g-ss-card[open] { border-bottom-left-radius:0; border-bottom-right-radius:0; }

/* A select styled as the card body rather than as a boxed control of its own. */
.g-ss-card--select { padding-bottom:8px; }
.g-ss-card--select .g-ss-select {
    appearance:none; width:100%; border:0; background:transparent; padding:0 22px 2px 0;
    font-size:15px; font-weight:600; color:var(--color-brand); cursor:pointer; line-height:1.35;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23666' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position:right center;
}
.g-ss-card--select .g-ss-select:focus-visible { outline:2px solid var(--color-brand); outline-offset:3px; }

/* ⛔ NEVER display:none an empty mount point.
   This was `:empty { display:none }`, which set offsetParent to null on the
   very element range-slider.js probes to decide whether it can lay a slider
   out — so the probe failed forever and NO slider was ever built. height:0
   collapses it just as well and keeps offsetParent live. */
/* ── Make & Model panel ─────────────────────────────────────────────────────
   Mirrors the main site's dropdown internals (search.css:81-261): a fixed
   search row that does not scroll, a capped scrolling list, count pills and a
   "Model ›" / "Badge ⌄" pill per row. */
.g-mm { padding:0; max-height:none; overflow:visible; }
.g-mm-view { display:flex; flex-direction:column; min-height:0; }
.g-mm-view[hidden] { display:none; }
/* Breathing room under the card's own edge: the panel is joined to the card, so
   a search field starting 10px below the join read as a pill crammed against
   it. The reference gives its equivalent the same asymmetric padding — more
   below than above (search.css:81-85). */
.g-mm-top { padding:14px 14px 12px; border-bottom:1px solid var(--border-subtle); flex-shrink:0; }
.g-mm-search {
    width:100%; padding:10px 14px; border:1px solid var(--border-default);
    border-radius:24px; font-size:16px; background:var(--surface-sunken);
    color:var(--text-primary); outline:none;
}
.g-mm-search:focus { border-color:var(--color-brand); background:var(--surface-card); }
/* The scrolling list. Its own slim scrollbar, inset from the panel's border so
   the browser's default chunky one is not pressed against the blue edge — the
   reference styles its equivalent the same way (search.css:145-161). */
.g-mm-list { overflow-y:auto; overscroll-behavior:contain; max-height:300px; padding:6px 10px 10px 6px; scrollbar-width:thin; scrollbar-color:#c1c1c1 transparent; }
.g-mm-list::-webkit-scrollbar { width:6px; }
.g-mm-list::-webkit-scrollbar-track { background:transparent; }
.g-mm-list::-webkit-scrollbar-thumb { background:#c1c1c1; border-radius:3px; }
.g-mm-list::-webkit-scrollbar-thumb:hover { background:#a1a1a1; }
.g-mm-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:5px 8px; border-radius:8px; }
.g-mm-row:hover { background:var(--surface-sunken); }
.g-mm-row[hidden] { display:none; }
.g-mm-left { display:flex; align-items:center; gap:10px; flex:1; min-width:0; margin:0; cursor:pointer; font-size:15px; }
.g-mm-left input { width:17px; height:17px; flex:0 0 auto; accent-color:var(--color-brand); cursor:pointer; }
/* A panel is only as wide as its card, and a row of six filters makes those
   narrow, so a long make or model name truncates rather than pushing its count
   and Model pill out of the card. */
.g-mm-left span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.g-mm-pill { white-space:nowrap; }
.g-mm-right { display:flex; align-items:center; gap:10px; flex:0 0 auto; }
.g-mm-count { font-size:12px; font-weight:600; color:var(--text-secondary); background:var(--surface-sunken); padding:3px 8px; border-radius:40px; }
.g-mm-pill {
    display:inline-flex; align-items:center; gap:5px; border:0; cursor:pointer;
    font-size:13px; font-weight:600; color:var(--color-brand);
    background:color-mix(in srgb, var(--color-brand) 10%, transparent);
    padding:5px 10px; border-radius:40px;
}
.g-mm-pill:hover { color:#fff; background:var(--color-brand); }
.g-mm-pill.is-on { color:#fff; background:var(--color-brand); }
.g-mm-back { padding:10px 14px 0; }
.g-mm-backbtn {
    display:inline-flex; align-items:center; gap:7px; border:0; cursor:pointer;
    font-size:14px; font-weight:600; color:var(--color-brand);
    background:color-mix(in srgb, var(--color-brand) 10%, transparent);
    padding:6px 16px; border-radius:40px;
}
.g-mm-backbtn:hover { color:#fff; background:var(--color-brand); }
.g-mm-title { padding:12px 16px 4px; font-weight:600; font-size:15px; }
.g-mm-grouphead { padding:10px 8px 4px; font-weight:600; font-size:13px; color:var(--text-tertiary); text-transform:uppercase; letter-spacing:.05em; }

/* Vehicle Type — the same radios as the old tab strip, worn as a dropdown.
   The tick stands in for the radio dot: only the checked row's is opaque, set
   by the per-instance rules the block emits. */
.g-ss-tabs { display:block; }
.g-ss-tab { cursor:pointer; margin:0; }
.g-ss-tick { display:inline-flex; width:17px; height:17px; flex:0 0 auto; align-items:center; justify-content:center; color:var(--color-brand); opacity:0; }
/* Exactly one panel radio is always checked, so exactly one of these shows. */
.g-ss-typeval { display:none; }
.g-mm-group[hidden] { display:none; }
.g-mm-badges { background:var(--surface-sunken); border-radius:10px; margin:2px 0 8px; padding:4px 6px 4px 22px; }
.g-mm-badges[hidden] { display:none; }
.g-mm-row--badge .g-mm-left { font-size:13.5px; }

.g-ss-range-slot:empty { height:0; overflow:hidden; }
.g-ss-range-slot { padding:2px 0 10px; }

.g-ss-range-pair { display:flex; align-items:center; gap:10px; }
.g-ss-affix { position:relative; flex:1 1 0; min-width:0; display:block; }
/* Decorative, and must not steal the click that focuses the field. */
.g-ss-affix-sign { position:absolute; top:50%; transform:translateY(-50%); pointer-events:none; color:var(--color-brand); opacity:.55; font-size:14px; }
.g-ss-affix--start .g-ss-affix-sign { left:12px; }
.g-ss-affix--end .g-ss-affix-sign { right:12px; text-transform:uppercase; font-size:12px; letter-spacing:.04em; }
.g-ss-affix--start .g-ss-range-input { padding-left:28px; }
.g-ss-affix--end .g-ss-range-input { padding-right:38px; }

.g-ss-range-input {
    width:100%; min-width:0; padding:9px 12px;
    border:2px solid color-mix(in srgb, var(--color-brand) 18%, transparent);
    border-radius:8px;
    background:var(--surface-card); color:var(--color-brand); font-weight:500;
    line-height:1.3;
    /* 16px is functional. Below it, iOS Safari zooms in on focus and does not
       zoom back out on blur, leaving the rest of the page unusable after one
       tap. */
    font-size:16px;
}
.g-ss-range-input:focus { outline:none; border-color:var(--color-brand); }
.g-ss-range-input:focus-visible { outline:2px solid var(--color-brand); outline-offset:1px; }
/* The spinners crowd a field that already has an affix, and the slider is the
   real increment control. */
.g-ss-range-input::-webkit-outer-spin-button,
.g-ss-range-input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
.g-ss-range-input[type=number] { -moz-appearance:textfield; }
.g-ss-range-sep { flex:0 0 auto; color:var(--text-tertiary); }

/* ── Histogram slider skin ──────────────────────────────────────────────────
   The CDN plugin ships almost no appearance of its own; the main site's look
   lives in html/assets/css/search.css, which this standalone layout does not
   load. Without it the widget renders as raw bootstrap-slider — most visibly
   a row of round TICK DOTS, because search.css:628 is the only thing hiding
   them. Ported here and re-themed onto the franchise tokens rather than
   linked, since this site inlines its CSS and cannot serve asset paths at all
   (different docroot). NB: do not write a slash-star path inside a CSS comment
   here — it opens a nested comment and makes the comment-state validator
   report a fault on otherwise fine CSS. */
/* The side padding is not decoration. A bootstrap-slider handle is centred on
   its value with translate(-50%), so at 0% and 100% it hangs half outside the
   track — without room either side the left handle is clipped by the panel
   edge while the bars' own margin-right leaves a gap on the right, which is
   what made the widget look off-centre. The reference reserves the same room:
   .histogram-wrapper { padding: 0 15px } (search.css:620-627). */
.g-ss-histo { position:relative; width:100%; padding:0 14px; }
.slider.slider-horizontal .slider-tick-container { display:none; }   /* the lollipops */
.g-ss-histo .slider.slider-horizontal { width:100% !important; height:22px !important; margin:6px 0 0 !important; }
.g-ss-histo .slider.slider-horizontal .slider-track {
    top:50% !important; margin-top:-5px !important; height:10px !important;
    background:color-mix(in srgb, var(--color-brand) 12%, transparent);
    border-radius:10px; box-shadow:none;
}
.g-ss-histo .slider-track .slider-selection {
    background:color-mix(in srgb, var(--color-brand) 55%, white); border-radius:10px;
}
.g-ss-histo .slider.slider-horizontal .slider-handle {
    /* margin-left MUST be cleared. bootstrap-slider centres a horizontal handle
       with margin-left:-10px; this skin centres it with translate(-50%), and
       the two stack — pulling BOTH handles 10px left, so the left one clipped
       the panel edge while a 20px gap opened on the right. Measured: track
       758-1007, handle centre 748. */
    top:50% !important; margin-top:0 !important; margin-left:0 !important;
    width:26px !important; height:26px !important;
    background:#fff; border:1px solid color-mix(in srgb, var(--color-brand) 35%, transparent);
    border-radius:50%; transform:translate(-50%,-50%); cursor:grab; opacity:1;
    box-shadow:0 1px 2px rgba(0,0,0,.08), 0 3px 10px color-mix(in srgb, var(--color-brand) 30%, transparent);
    transition:box-shadow var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
/* Two grip lines — the drag affordance the main site's handle carries. */
.g-ss-histo .slider.slider-horizontal .slider-handle::before {
    content:""; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
    width:8px; height:10px; opacity:.5; pointer-events:none;
    background-image:linear-gradient(var(--color-brand),var(--color-brand)),linear-gradient(var(--color-brand),var(--color-brand));
    background-repeat:no-repeat; background-size:1.5px 100%; background-position:0 0,100% 0;
}
.g-ss-histo .slider.slider-horizontal .slider-handle:hover { border-color:var(--color-brand); }
.g-ss-histo .slider.slider-horizontal .slider-handle:active { cursor:grabbing; box-shadow:0 0 0 7px color-mix(in srgb, var(--color-brand) 14%, transparent); }
/* ⚠ The two bars for one bin sit EXACTLY on top of each other, by design —
   measured in the browser: same top, same height, the relative `bottom` offsets
   the plugin sets cancel out. out-of-range is the LATER sibling, so it paints
   over in-range, and the plugin only ever toggles `.in-range`'s opacity as the
   handles move. That makes out-of-range's opacity the thing that decides how
   vivid every in-band bar looks. At .85 it washed the whole histogram out to a
   uniform pale blue — it has to stay light enough for the bar underneath to
   read through. */
.g-ss-histo .bin { position:relative; margin-right:2px; border-radius:3px 3px 0 0; transition:opacity var(--dur-fast) var(--ease-standard), filter var(--dur-fast); }
.g-ss-histo .bin.in-range { background:linear-gradient(180deg, color-mix(in srgb, var(--color-brand) 62%, white) 0%, var(--color-brand) 100%); opacity:1; }
.g-ss-histo .bin.out-of-range { background:linear-gradient(180deg, #e9edf3 0%, #cfd6e0 100%); opacity:.42; }
.g-ss-histo .tooltip_histogram:hover .bin { filter:brightness(1.08); }
.g-ss-histo .histogram_slider .selected-range { display:none; }
.histogram-tooltip-box .tooltip-slider { background:#fff; color:#222; padding:7px 10px; border-radius:8px; font-size:11px; white-space:nowrap; box-shadow:var(--shadow-md); border:1px solid var(--border-default); text-align:center; }
.histogram-tooltip-box .tooltip-price { color:var(--color-brand); font-weight:600; font-size:12px; margin-bottom:2px; }
.histogram-tooltip-box .tooltip-count { color:var(--text-tertiary); font-size:11px; }

.g-stocksearch.geely-dark .g-ss-card,
.g-stocksearch.geely-dark .g-ss-card-panel,
.g-stocksearch.geely-dark .g-ss-range-input {
    background-color:rgba(255,255,255,.08); border-color:rgba(255,255,255,.2); color:#fff;
}
.g-stocksearch.geely-dark .g-ss-range-input::placeholder { color:rgba(255,255,255,.5); }
.g-stocksearch.geely-dark .g-ss-range-sep { color:rgba(255,255,255,.5); }
.g-stocksearch.geely-dark .g-ss-card--select .g-ss-select option { color:#111; background:#fff; }

/* No longer a flex item of the controls row (it is a sibling block now), but
   harmless and kept so the rule reads the same as the other CTAs. */
.g-ss-submit { flex:0 0 auto; }
.g-ss-btn { padding:13px 32px; font-size:15px; white-space:nowrap; }
/* Reads as a promise — "Search 38 Cars" — rather than a parenthetical aside.
   :not(:empty) keeps it off the button entirely until there is a number. */
.g-ss-btn-count:not(:empty)::after { content:' Cars'; }

/* Dark treatment. The theme class flips the TEXT tokens but not the surface
   ones, so without these the panel stays light while the labels and the select
   text go white — light-on-light, effectively invisible. Surfaces are set as
   translucent white rather than a fixed grey so the panel keeps whatever band
   colour sits behind it. */
.g-stocksearch.geely-dark .g-stocksearch-panel { background:rgba(255,255,255,.06); box-shadow:none; }
.g-stocksearch.geely-dark .g-ss-tab { color:rgba(255,255,255,.72); }
.g-stocksearch.geely-dark .g-ss-tab:hover { color:#fff; background:rgba(255,255,255,.1); }
.g-stocksearch.geely-dark .g-ss-label { color:rgba(255,255,255,.6); }
.g-stocksearch.geely-dark .g-ss-select {
    background-color:rgba(255,255,255,.08); border-color:rgba(255,255,255,.2); color:#fff;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.6' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
}
/* The options themselves are painted by the OS, not the page: without an
   explicit colour the open dropdown is white text on a white list on Windows. */
.g-stocksearch.geely-dark .g-ss-select option { color:#111; background:#fff; }

@media (max-width:767.98px) {
    .g-stocksearch { padding:var(--section-pad-y) 0; }
    .g-ss-tabs { gap:2px; }
    .g-ss-tab { padding:10px 16px; font-size:14px; }
    .g-ss-field { flex:1 1 100%; }
    .g-ss-submit, .g-ss-btn { width:100%; }
}

/* ============================================================
   BLOCK: dealership_info  (utility block — valid on any framework)
   Purely additive: no existing selector is touched, so adding this
   cannot change how any other page renders.
   ============================================================ */
.g-dealer { padding:var(--section-pad-y) 0; }
/* The dealership intro uses the FULL band, but as two columns rather than one
   long line: at 17px a 1373px measure is ~160 chars, nearly double the 85 the
   OEM never exceeds for body copy. Splitting the two sentences into columns
   uses the space AND separates them visually, which the single 10px margin
   was not doing. auto-fit so 1 or 3 paragraphs still lay out sensibly. */
.g-dealer .g-section-head { max-width:none; }
.g-dealer .g-dealer-intro { display:grid; grid-template-columns:repeat(auto-fit, minmax(340px, 1fr));
  gap:16px 56px; margin-top:18px; }
.g-dealer .g-dealer-intro p { margin:0; }
/* lede weight: body is 300 (OEM), so 500 reads as "a little bold" without
   turning the intro into a heading. */
.g-dealer .g-dealer-intro { font-weight:500; color:var(--text-primary); }
@media (max-width:900px){
  .g-dealer .g-dealer-intro { grid-template-columns:1fr; gap:14px; }
}
.g-dealer-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 32px; padding:0; list-style:none; border-bottom:1px solid var(--border-subtle); }
.g-dealer-tab { appearance:none; background:none; border:0; border-bottom:2px solid transparent; padding:12px 18px; min-height:44px; cursor:pointer; font-family:var(--font-display); font-weight:var(--fw-heading); text-transform:uppercase; font-size:12px; letter-spacing:.09em; color:var(--text-tertiary); transition:color .2s ease, border-color .2s ease; }
.g-dealer-tab:hover { color:var(--text-primary); }
.g-dealer-tab[aria-selected="true"] { color:var(--text-primary); border-bottom-color:var(--color-brand); }
.g-dealer-panel[hidden] { display:none; }
/* stretch, not start: the details card and the map box must be the same height.
   min-height on .g-dealer-mapwrap stays as the floor for a short card. */
.g-dealer-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:32px; align-items:stretch; }
.g-dealer-card { background:var(--surface-card); border:1px solid var(--border-subtle); border-radius:var(--radius-xl); padding:32px; box-shadow:var(--shadow-sm); }
.g-dealer-card h3 { font-family:var(--font-display); font-weight:var(--fw-heading); text-transform:uppercase; font-size:20px; margin:0 0 6px; }
.g-dealer-addr { color:var(--text-secondary); font-size:14.5px; line-height:1.6; margin:0 0 18px; }
.g-dealer-contact { display:flex; flex-wrap:wrap; gap:10px 22px; margin:0 0 26px; padding:0; list-style:none; }
.g-dealer-contact li { font-size:14px; color:var(--text-tertiary); }
.g-dealer-contact a { color:var(--color-brand); text-decoration:none; }
.g-dealer-contact a:hover { text-decoration:underline; }
/* Hours groups side by side — a Sales+Service+Parts location stacked three
   seven-row tables and made the card very tall. auto-fit collapses to one
   column on narrow cards without a media query. */
.g-dealer-hours-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:8px 28px; margin-top:22px; }
.g-dealer-hours-group { min-width:0; }
/* Department tabs: "other departments' hours differ" bar above the hours (owner 2026-11-18). */
.g-dealer-hours-note { margin:22px 0 0; padding:12px 16px; background:#000; color:#fff; text-align:center; font-size:14px; line-height:1.45; border-radius:4px; }
.g-dealer-hours-note strong { display:block; font-size:15px; text-transform:uppercase; letter-spacing:.02em; }
/* Department hours label reversed out on every brand site (owner 2026-11-18): which department's hours is unmissable. */
.g-dealer-card .g-dealer-hours-h { display:inline-block; background:#000; color:#fff; font-size:15px; font-weight:700; letter-spacing:.06em; padding:8px 14px; border-radius:4px; margin:0 0 12px; }
.g-dealer-hours-h { font-family:var(--font-display); font-weight:var(--fw-heading); text-transform:uppercase; font-size:11.5px; letter-spacing:.1em; color:var(--text-tertiary); margin:0 0 10px; }
.g-dealer-intro p { margin:0 0 10px; }
.g-dealer-intro p:last-child { margin-bottom:0; }
.g-dealer-hours { width:100%; border-collapse:collapse; font-size:14px; }
.g-dealer-hours td { padding:9px 0; border-bottom:1px solid var(--border-subtle); color:var(--text-secondary); }
.g-dealer-hours td+td { text-align:right; font-variant-numeric:tabular-nums; }
.g-dealer-hours tr:last-child td { border-bottom:0; }
.g-dealer-hours .is-today td { color:var(--text-primary); font-weight:600; }
.g-dealer-hours .is-closed td+td { color:var(--text-tertiary); }
.g-dealer-mapwrap { position:relative; border-radius:var(--radius-xl); overflow:hidden; border:1px solid var(--border-subtle); min-height:380px; background:var(--surface-sunken); }
.g-dealer-map { width:100%; height:100%; min-height:380px; }
.g-dealer-map-cta { position:absolute; left:50%; transform:translateX(-50%); bottom:20px; z-index:2; }
@media (max-width:900px){
  .g-dealer { padding:var(--section-pad-y) 0; }
  .g-dealer-grid { grid-template-columns:1fr; gap:24px; }
  .g-dealer-card { padding:24px; }
  .g-dealer-mapwrap, .g-dealer-map { min-height:300px; }
}

/* ============================================================
   BLOCK: cta_lead_form
   ============================================================ */
/* background comes from the alternating band rule — see BrandTheme::gridRules */
.g-lead { padding:var(--section-pad-y) 0; }
/* The pre-order deposit form in its popup (owner 2026-10-15): no section padding or card frame inside the modal. */
.g-preorder-modal .g-lead { padding:0; }
.g-preorder-modal .g-lead > .container { max-width:none; padding:0; }
.g-preorder-modal .g-lead-card { max-width:none; margin:0; border:0; box-shadow:none; background:transparent; padding:0; }
.g-preorder-modal .g-lead-card > h2 { display:none; } /* the popup title carries the form's heading */
.g-lead-card { max-width:640px; margin:0 auto; background:var(--surface-card); border:1px solid var(--border-subtle); border-radius:var(--radius-2xl); box-shadow:var(--shadow-lg); padding:44px 40px; }
.g-lead-card h2 { font-family:var(--font-display); font-weight:var(--fw-heading); text-transform:uppercase; font-size:26px; text-align:center; }
.g-lead-intro { color:var(--text-secondary); font-size:15px; line-height:1.6; margin-top:14px; text-align:center; }
.g-lead-fields { margin-top:28px; display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.g-lead-fields .g-field-full { grid-column:1 / -1; }
.g-field label { font-size:13px; font-weight:600; color:var(--text-primary); margin:0 0 7px; display:block; }
.g-field input, .g-field textarea { width:100%; border:1px solid var(--border-default); border-radius:var(--radius-md); padding:12px 14px; font-size:15px; font-family:var(--font-sans); color:var(--text-primary); background:#fff; }
.g-field textarea { resize:vertical; min-height:96px; }
/* Selects had no field styling at all - native small grey control. */
.g-field select { width:100%; border:1px solid var(--border-default); border-radius:var(--radius-md); padding:12px 38px 12px 14px; font-size:15px; font-family:var(--font-sans); color:var(--text-primary); background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.5l4 4 4-4' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; -webkit-appearance:none; appearance:none; }
.g-field input:focus, .g-field textarea:focus, .g-field select:focus { outline:none; border-color:var(--color-brand); box-shadow:0 0 0 3px color-mix(in srgb, var(--color-brand) 18%, transparent); }

/* Floating labels, Bootstrap's .form-floating look (owner 2026-09-25), for
   every Geely form field (.g-field: cta_lead_form + the VDP forms).
   CSS only, no markup change: Bootstrap's version needs the label AFTER the
   input (it uses "input ~ label"); :has() floats the label where it already
   is, so screen readers and scripting-off keep the plain label-then-field.
   At rest the label sits in the box and the example placeholder is hidden;
   focused or filled, it shrinks to the top. Selects and dates always show a
   value, so their label is always up. A field with no placeholder never
   matches :placeholder-shown, so it reads as filled - safe, never overlaps.
   Browsers without :has() keep the label above the field. */
@supports selector(:has(*)) {
  .g-field { position:relative; }
  .g-field > label { position:absolute; top:0; left:15px; right:15px; height:56px; display:flex; align-items:center; margin:0; font-size:15px; font-weight:400; color:var(--text-tertiary); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; pointer-events:none; transform-origin:0 0; transition:transform .15s ease, color .15s ease; z-index:1; }
  .g-field > input, .g-field > select { height:56px; padding-top:22px; padding-bottom:6px; }
  .g-field > textarea { padding-top:26px; }
  .g-field > input::placeholder, .g-field > textarea::placeholder { color:transparent; }
  .g-field > input:focus::placeholder, .g-field > textarea:focus::placeholder { color:var(--text-tertiary); }
  .g-field:has(> input:focus) > label,
  .g-field:has(> input:not(:placeholder-shown)) > label,
  .g-field:has(> textarea:focus) > label,
  .g-field:has(> textarea:not(:placeholder-shown)) > label,
  .g-field:has(> select) > label,
  .g-field:has(> input[type="date"]) > label,
  .g-field.g-field--picker > label { transform:translateY(-11px) scale(.8); color:var(--text-secondary); font-weight:600; }
  .g-field:has(> input:focus) > label, .g-field:has(> textarea:focus) > label, .g-field:has(> select:focus) > label { color:var(--color-brand); }
  /* (0,2,2) and last, to beat the floated rules above (also (0,2,2)). */
  .g-field.has-error:has(> input, > textarea, > select) > label { color:var(--color-danger); }
}
/* Autofill is its own rule: an unknown pseudo-class would void a whole selector list. */

/* Test-drive date picker (flatpickr, gInitTdPicker): the visible input shows
   dd/mm/yyyy with a calendar icon; the calendar takes the site's ink. */
.g-field > input.g-td-picker { padding-right:42px; cursor:pointer; background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E") no-repeat right 14px center; }
.g-field.g-field--picker > input::placeholder { color:var(--text-tertiary); }
.flatpickr-calendar { font-family:var(--font-sans); }
.flatpickr-day.selected, .flatpickr-day.selected:hover, .flatpickr-day.selected:focus { background:#0a0b0d; border-color:#0a0b0d; color:#fff; }
.flatpickr-day.today:not(.selected) { border-color:#0a0b0d; }
@supports selector(:has(*)) {
  .g-field:has(> input:-webkit-autofill) > label { transform:translateY(-11px) scale(.8); font-weight:600; }
}
.g-lead-note { color:var(--text-tertiary); font-size:13px; text-align:center; margin-top:18px; }
/* "Or call" under a lead form: room below the button and readable (owner 2026-10-12; .g-body p zeroed the margin). */
.g-body .g-lead-note { font-size:16px; line-height:22px; color:var(--text-secondary); margin:20px 0 4px; }
.g-body .g-lead-note a { font-weight:600; color:var(--text-primary); }
.g-lead-card .g-btn { width:100%; margin-top:22px; }
@media (max-width:576px){
  .g-lead-fields { grid-template-columns:1fr; }
  .g-lead-card { padding:32px 24px; }
}

/* Lead/VDP form states — shared by cta_lead_form and stock-enquiry-forms */
.g-field-hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.g-field.has-error input, .g-field.has-error textarea, .g-field.has-error select { border-color:var(--color-danger); }
.g-field-error { color:var(--color-danger); font-size:12.5px; margin-top:6px; min-height:1em; display:none; }
.g-field.has-error .g-field-error { display:block; }
/* Parsley's messages (jarviscars' validation, owner 2026-10-15) - in the field's error slot, or after the field. */
.g-body .parsley-errors-list { list-style:none; margin:6px 0 0; padding:0; color:var(--color-danger); font-size:12.5px; line-height:1.35; }
.g-body .g-parsley-error .parsley-errors-list { margin-top:6px; }
.g-body .g-field-error:not(:empty) ~ .g-parsley-error { display:none; } /* the form's own message wins - never two */
.g-body .g-field.has-error .g-field-error:empty { display:none; } /* no blank line above Parsley's message */
.g-body .parsley-errors-list:empty { display:none; }
.g-body :is(input, select, textarea).parsley-error { border-color:var(--color-danger); }
.g-form-alert { border-radius:var(--radius-md); padding:14px 16px; font-size:14px; margin-bottom:20px; }
.g-form-alert--error { background:var(--color-danger-subtle); color:var(--color-danger); }
.g-btn[data-loading="1"] { opacity:.85; cursor:wait; pointer-events:none; }
.g-btn[data-loading="1"][disabled] { opacity:.85; }
.g-btn-spin { width:16px; height:16px; flex:0 0 auto; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:g-btn-rot .7s linear infinite; }
@keyframes g-btn-rot { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .g-btn-spin { animation-duration:1.6s; } }
/* SweetAlert popups in the Geely look (gBusy / gAlertError). .g-body-led: the SweetAlert stylesheet loads later and wins ties. */
.g-body .g-swal { font-family:var(--font-sans); border-radius:16px; padding:28px 24px 24px; }
.g-body .g-swal .swal2-title { font-family:var(--font-display); font-weight:var(--fw-heading); text-transform:uppercase; font-size:20px; line-height:1.3; color:#000; letter-spacing:normal; }
.g-body .g-swal .swal2-html-container { font-size:15px; line-height:1.55; color:#4a4f57; }
.g-body .g-swal .swal2-loader { border-color:#000 transparent #000 transparent; }
.g-body .g-swal .swal2-styled.swal2-confirm { background:#000; color:#fff; border-radius:999px; padding:12px 32px; font-size:15px; box-shadow:none; }
.g-body .g-swal .swal2-styled.swal2-confirm:focus-visible { box-shadow:var(--focus-ring); }
.g-body .g-swal .swal2-styled.swal2-cancel { background:#fff; color:#000; border:1px solid #000; border-radius:999px; padding:11px 31px; font-size:15px; box-shadow:none; }
.g-lead-success { text-align:center; padding:12px 0 4px; }
.g-lead-success h2 { font-family:var(--font-display); font-weight:var(--fw-heading); text-transform:uppercase; font-size:24px; }
.g-lead-success p { color:var(--text-secondary); font-size:15px; line-height:1.6; margin-top:12px; }

/* ============================================================
   BLOCK: media_text  (media BESIDE copy — not overlaid)
   Two columns on desktop, stacked on mobile with the media first,
   because leading with a wall of text reads as a dead end on a phone.
   ============================================================ */
.g-mt { padding:var(--section-pad-y) 0; }
.g-mt--dark { background:var(--ink-950); color:var(--text-inverse, #fff); }
.g-mt-grid { display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.g-mt--media-right .g-mt-media { order:2; }
.g-mt-frame { border-radius:var(--radius-xl); overflow:hidden; box-shadow:var(--shadow-md); background:var(--ink-950); }
.g-mt-frame img { width:100%; height:auto; display:block; }
.g-mt-frame video { width:100%; display:block; }
.g-mt-frame iframe { width:100%; aspect-ratio:16/9; border:0; display:block; }
.g-mt-copy h2 { margin:0 0 18px; }
.g-mt-body { color:var(--text-secondary); font-size:15.5px; line-height:1.75; max-width:var(--measure); }
.g-mt--dark .g-mt-body { color:rgba(255,255,255,.78); }
.g-mt-body p { margin:0 0 16px; }
.g-mt-body p:last-child { margin-bottom:0; }
.g-mt-body ul, .g-mt-body ol { margin:0 0 16px; padding-left:20px; }
.g-mt-body li { margin-bottom:6px; }
.g-mt-body a { color:var(--color-brand); }
/* Button inside rich text: <a href="..."><span class="g-rt-btn">Label</span></a> (+ g-rt-btn--outline). A span is
   the only element whose class survives the rich-text sanitisers (g-* classes only), so the span is the button. */
.g-body a:has(> .g-rt-btn) { display:inline-block; margin:4px 12px 12px 0; }
.g-rt-btn { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:12px 32px; font-family:var(--font-sans); font-weight:var(--fw-button); font-size:16px; line-height:22.4px; white-space:nowrap; border:var(--border-width) solid var(--black); border-radius:var(--radius-button); background:var(--black); color:#fff; transition:background-color .2s ease-in-out, border-color .2s ease-in-out, color .2s ease-in-out; }
a:hover > .g-rt-btn, a:focus-visible > .g-rt-btn { background:var(--brand-600); border-color:var(--brand-600); color:#fff; }
.g-rt-btn--outline { background:transparent; color:var(--black); }
.g-mt--dark .g-rt-btn { background:#fff; border-color:#fff; color:var(--black); }
.g-mt--dark .g-rt-btn--outline { background:transparent; color:#fff; }
.g-mto--dark .g-rt-btn { background:#fff; border-color:#fff; color:var(--black); }
.g-mto--dark .g-rt-btn--outline { background:transparent; color:#fff; }
.g-mto--dark a:hover > .g-rt-btn, .g-mto--dark a:focus-visible > .g-rt-btn { background:var(--brand-600); border-color:var(--brand-600); color:#fff; }
/* media_size 'third': jarviscars' layout - picture whole at its own size, no frame, in a third-width column. */
.g-mt--third .g-mt-frame { box-shadow:none; background:transparent; border-radius:0; overflow:visible; text-align:center; }
.g-mt--third .g-mt-frame img { width:auto; max-width:100%; margin:0 auto; border-radius:var(--radius-lg, 8px); }
@media (min-width:901px){
  .g-mt--third.g-mt--media-left .g-mt-grid { grid-template-columns:1fr 2fr; }
  .g-mt--third.g-mt--media-right .g-mt-grid { grid-template-columns:2fr 1fr; }
}
@media (max-width:900px){
  .g-mt { padding:var(--section-pad-y) 0; }
  .g-mt-grid { grid-template-columns:1fr; gap:28px; }
  /* Media first on mobile regardless of the desktop side. */
  .g-mt--media-right .g-mt-media { order:0; }
}

/* ============================================================
   BLOCK: image_video
   ============================================================ */
.g-media { padding:var(--section-pad-y) 0; }
.g-media-frame { border-radius:var(--radius-xl); overflow:hidden; box-shadow:var(--shadow-md); background:var(--ink-950); }
.g-media-frame img { width:100%; height:auto; display:block; }
.g-media-video { position:relative; aspect-ratio:16/9; }
.g-media-video iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }
.g-media-video video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.g-media-caption { color:var(--text-tertiary); font-size:13px; margin-top:14px; text-align:center; }

/* ============================================================
   BLOCK: rich_text
   ============================================================ */
.g-richtext-section { padding:var(--section-pad-y) 0; }
.g-richtext-section.geely-dark { background:var(--ink-950); }
/* width now comes from the column span in the blade — see rich_text.blade.php */
/* Reading measure, font-relative so it survives band-width changes. */
.g-richtext { max-width:var(--measure); }
/* Columns share the row: the single-column reading measure would stop them short. */
.g-richtext.g-richtext--col { max-width:none; }
.g-richtext.g-narrow { max-width:calc(var(--measure) * 0.78); }
/* wide = policy text (privacy, terms, shipping, payment), like jarviscars.com.au/about/credit-policy (owner
   2026-10-12): the whole container, each h2 numbered with a short accent bar, tick lists, on the striped sections. */
.g-richtext.g-wide { max-width:none; }
.g-body { counter-reset:g-policy; }
/* Section titles: every h2, and an h3 that opens a section (pages that title their sections with h3). */
.g-body .g-richtext.g-wide h2, .g-body .g-richtext.g-wide > h3:first-child { counter-increment:g-policy; position:relative; font-size:24px; line-height:30px; text-transform:none; letter-spacing:normal; color:#000; margin:40px 0 28px; padding-bottom:16px; }
.g-body .g-richtext.g-wide h2:first-child, .g-body .g-richtext.g-wide > h3:first-child { margin-top:0; }
.g-body .g-richtext.g-wide h2::before, .g-body .g-richtext.g-wide > h3:first-child::before { content:counter(g-policy) ". "; }
.g-body .g-richtext.g-wide h2::after, .g-body .g-richtext.g-wide > h3:first-child::after { content:""; position:absolute; left:0; bottom:0; width:70px; height:4px; border-radius:2px; background:var(--brand-600, #000); }
.g-body .g-richtext.g-wide h3:not(:first-child) { font-size:18px; line-height:24px; text-transform:none; color:#000; margin:28px 0 12px; }
/* Policy text titled with h3 only (no h2 anywhere - the Jarvis privacy policy, owner 2026-10-20): EVERY top-level h3 is
   a section title (numbered, accent bar), not just the first. Own rules: a browser without :has() drops only these and
   keeps the first-h3 behaviour above. .g-wide twice = beats the h3:not(:first-child) sub-heading rule. */
.g-body .g-richtext.g-wide.g-wide:not(:has(h2)) > h3:not(:first-child) { counter-increment:g-policy; position:relative; font-size:24px; line-height:30px; letter-spacing:normal; margin:40px 0 28px; padding-bottom:16px; }
.g-body .g-richtext.g-wide.g-wide:not(:has(h2)) > h3:not(:first-child)::before { content:counter(g-policy) ". "; }
.g-body .g-richtext.g-wide.g-wide:not(:has(h2)) > h3:not(:first-child)::after { content:""; position:absolute; left:0; bottom:0; width:70px; height:4px; border-radius:2px; background:var(--brand-600, #000); }
.g-body .g-richtext.g-wide h4 { font-size:16px; line-height:22px; text-transform:none; color:#000; }
.g-body .g-richtext.g-wide p { line-height:1.6; }
.g-body .g-richtext.g-wide ul { list-style:none; padding-left:0; }
.g-body .g-richtext.g-wide ul li { position:relative; padding-left:30px; margin:0 0 10px; }
.g-body .g-richtext.g-wide ul li::before { content:""; position:absolute; left:2px; top:.45em; width:16px; height:13px; background:var(--brand-600, #000);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 13'%3E%3Cpath d='M1.5 7l4.5 4.5L14.5 1.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 13'%3E%3Cpath d='M1.5 7l4.5 4.5L14.5 1.5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain; }
.g-richtext h2, .g-richtext h3, .g-richtext h4 { font-family:var(--font-display); font-weight:var(--fw-heading); text-transform:uppercase; margin:28px 0 12px; }
.g-richtext h2:first-child, .g-richtext h3:first-child, .g-richtext h4:first-child { margin-top:0; }
.g-richtext p { margin:0 0 16px; line-height:1.7; font-size:16px; color:var(--text-secondary); }
.geely-dark .g-richtext p { color:var(--ink-200); }
.g-richtext ul, .g-richtext ol { margin:0 0 16px; padding-left:22px; line-height:1.7; color:var(--text-secondary); }
.g-richtext a { color:var(--color-brand); text-decoration:underline; }
.g-richtext blockquote { border-left:3px solid var(--color-brand); padding-left:18px; margin:20px 0; color:var(--text-secondary); font-style:italic; }

/* ============================================================
   BLOCK: feature_carousel
   ============================================================ */
.g-fc { padding:var(--section-pad-y) 0; }
/* geely.com.au carousels (geely-oem-design Stage 3, SPEC §7/§8/§10/§11): white, OEM tabs, thin
   line arrows bottom-right, 16:9 radius-10 cards (4 / 2 / 1), feature = one large 5:2 slide. */
.g-fc-tabs { border:0; gap:0; margin:0 0 48px; display:flex; flex-wrap:nowrap; }
.g-fc-tabs .nav-item { flex:0 0 auto; }
.g-fc-tabs .nav-link { font-family:var(--font-sans); font-weight:300; font-size:16px; line-height:22.4px; text-transform:none; letter-spacing:normal; color:#333; border:0; border-radius:0; padding:16px 24px; background:transparent; box-shadow:inset 0 -1px #333; transition:box-shadow .15s var(--ease-standard), color .15s var(--ease-standard); }
.g-fc-tabs .nav-link:hover { color:var(--brand-600); box-shadow:inset 0 -2px var(--brand-600); }
.g-fc-tabs .nav-link.active { font-weight:500; color:#000; background:transparent; box-shadow:inset 0 -2px #000; }
.g-fc-tabs .nav-link:focus-visible { outline:none; box-shadow:var(--focus-ring), inset 0 -2px #000; }
.g-fc-item { height:auto; display:block; color:inherit; text-decoration:none; }
.g-body a.g-fc-item { color:inherit; }
.g-fc-item-media { border-radius:var(--radius-media); overflow:hidden; aspect-ratio:16/9; background:#fff; position:relative; }
.g-fc-item-media img, .g-fc-item-media video { width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s; }
.g-fc--fit-contain .g-fc-item-media img { object-fit:contain; }
.g-fc--style-feature .g-fc-item-media { aspect-ratio:1/1; }
.g-fc-item--link:hover .g-fc-item-media img { transform:scale(1.05); }
.g-fc-item--link:focus-visible { outline:none; }
.g-fc-item--link:focus-visible .g-fc-item-media { box-shadow:var(--focus-ring); }
.g-fc-item-body { padding:24px 0 0; }
.g-fc-item-eyebrow { font-family:var(--font-sans); font-weight:300; font-size:12px; line-height:16.8px; text-transform:uppercase; color:#333; margin:0 0 8px; }
.g-fc-item-body h3 { font-family:var(--font-sans); font-weight:300; font-size:16px; line-height:22.4px; text-transform:none; letter-spacing:normal; color:#000; margin:0; }
.g-fc-item-body p { font-family:var(--font-sans); font-weight:300; font-size:16px; line-height:22.4px; color:#333; margin:8px 0 0; }
.g-fc--style-feature .g-fc-item-body h3 { font-family:var(--font-display); font-weight:var(--fw-heading); font-size:24px; line-height:28.8px; text-transform:uppercase; }
.g-fc--style-feature .g-fc-item-body p { max-width:1100px; }
.g-fc-quote { border:0; margin:0; padding:0; font-size:16px; line-height:22.4px; font-weight:300; color:#333; }
.g-fc-quote-name { font-family:var(--font-sans); font-weight:300; font-size:12px; text-transform:uppercase; color:#333; margin-top:8px; }
.g-fc-quote-role { color:#333; font-size:12px; margin-top:2px; }
.g-fc-foot { display:flex; align-items:center; justify-content:flex-end; gap:16px; margin-top:16px; }
.g-fc-foot .g-fc-cta { margin-right:auto; }
/* Enquire Now (cta_action enquiry) is the row's lead button: solid like Book a Test Drive, not the outline a link gets
   (owner 2026-10-13: "not visible, focus so customers can see"). */
.g-fc-cta--enquiry { min-width:200px; }
.g-fc-nav { display:flex; gap:4px; }
.g-fc-prev, .g-fc-next { width:48px; height:48px; padding:0; display:inline-flex; align-items:center; justify-content:center; border:0; border-radius:0; background:transparent; color:#333; box-shadow:inset 0 -1px #333; cursor:pointer; transition:box-shadow .15s var(--ease-standard), color .15s var(--ease-standard); }
.g-fc-prev:hover, .g-fc-next:hover { color:var(--brand-600); box-shadow:inset 0 -2px var(--brand-600); }
.g-fc-prev:focus-visible, .g-fc-next:focus-visible { outline:none; box-shadow:var(--focus-ring), inset 0 -1px #333; }
.g-fc-prev.is-disabled, .g-fc-next.is-disabled { color:#999; box-shadow:inset 0 -1px #999; cursor:default; pointer-events:none; }
.g-fc-prev.is-locked, .g-fc-next.is-locked { display:none; }
.g-fc-disclaimer { font-family:var(--font-sans); font-weight:400; font-size:12px; line-height:16.8px; color:#333; margin-top:24px; }
@media (min-width:744px){ .g-fc--style-feature .g-fc-item-media { aspect-ratio:16/9; } }
@media (min-width:1024px){ .g-fc--style-feature .g-fc-item-media { aspect-ratio:5/2; } }
@media (max-width:743.98px){
  .g-fc-tabs { margin-bottom:40px; overflow-x:auto; scrollbar-width:none; }
  .g-fc-tabs::-webkit-scrollbar { display:none; }
  .g-fc-tabs .nav-item { flex:1 0 auto; }
  .g-fc-tabs .nav-link { width:100%; padding:16px 12px; white-space:nowrap; }
  .g-fc--style-feature .g-fc-item-body h3 { font-size:20px; line-height:24px; }
  .g-fc-foot { flex-wrap:wrap; }
  .g-fc-foot .g-fc-cta { flex:1 1 100%; width:100%; }
}

/* ============================================================
   BLOCK: media_text_overlay
   ============================================================ */
.g-mto { position:relative; min-height:480px; display:flex; align-items:center; overflow:hidden; }
.g-mto-media { position:absolute; inset:0; z-index:0; }
.g-mto-media-img { width:100%; height:100%; object-fit:cover; display:block; position:absolute; inset:0; }
.g-mto .container { position:relative; z-index:2; padding-top:80px; padding-bottom:80px; }
.g-mto-copy { max-width:560px; }
.g-mto--right .g-mto-copy { margin-left:auto; text-align:right; }
.g-mto--center .g-mto-copy { margin-left:auto; margin-right:auto; text-align:center; }
.g-mto-copy h2 { font-size:clamp(28px,3.4vw,44px); margin:0; }
.g-mto-body { font-size:16px; line-height:1.7; margin-top:18px; }
.g-mto-body p { margin:0 0 14px; }
.g-mto--dark::after { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(180deg, rgba(7,8,10,.15) 0%, rgba(7,8,10,.62) 100%); }
.g-mto--dark .g-mto-copy, .g-mto--dark .g-mto-copy h2 { color:#fff; }
.g-mto--dark .g-mto-body { color:rgba(255,255,255,.88); }
.g-mto--light::after { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(180deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.82) 100%); }
.g-mto--light .g-mto-copy, .g-mto--light .g-mto-copy h2 { color:var(--ink-950); }
.g-mto--light .g-mto-body { color:var(--ink-600); }
@media (max-width:768px){
  .g-mto { min-height:420px; }
}
/* ============================================================
   geely-oem-design Stage 4 (2026-10-12): model-page sections in geely.com.au's look (SPEC §5/§6/§9/§12).
   Last in the sheet so it wins over the older block rules above.
   ============================================================ */
/* Offer on a model page (partials/offer_model): picture left, copy top-aligned right, black View Offer. */
.g-offer-m { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:40px; align-items:start; }
.g-offer-m-media { border-radius:var(--radius-offer-media); overflow:hidden; aspect-ratio:4/3; background:var(--surface-sunken); }
.g-offer-m-media img { width:100%; height:100%; object-fit:cover; display:block; }
.g-offer-m-copy { display:flex; flex-direction:column; align-items:flex-start; min-width:0; }
.g-body .g-offer-m-eyebrow { margin:0 0 16px; }
.g-body .g-offer-m-headline { font-family:var(--font-display); font-weight:var(--fw-heading); font-size:32px; line-height:38.4px; text-transform:uppercase; letter-spacing:normal; color:#000; margin:0; }
.g-offer-m-headline .g-fn { font-size:.55em; vertical-align:super; margin-left:2px; }
.g-body .g-offer-m-details { font-family:var(--font-sans); font-weight:300; font-size:18px; line-height:25.2px; color:#080808; margin:24px 0 0; }
.g-body .g-offer-m-details + .g-offer-m-details { margin-top:16px; }
.g-body .g-offer-m-note { font-family:var(--font-sans); font-weight:400; font-size:12px; line-height:16.8px; color:#333; margin:24px 0 0; }
.g-body .g-offer-m-note a { color:#333; text-decoration:underline; text-underline-offset:2px; }
.g-offer-m-cta { margin-top:32px; }

/* Geely intro (media_text with lead / second picture): heading + lead on top, 7/5 grid below. */
.g-mt-oem-grid { display:grid; grid-template-columns:repeat(12, minmax(0, 1fr)); gap:16px; align-items:start; }
.g-mt-oem-main { grid-column:span 7; }
.g-mt-oem-side { grid-column:span 5; display:flex; flex-direction:column; gap:24px; }
.g-mt--oem .g-mt-frame { border-radius:var(--radius-media); box-shadow:none; background:transparent; }
.g-mt-oem-main .g-mt-frame img, .g-mt-oem-main .g-mt-frame video { width:100%; aspect-ratio:1/1; height:auto; object-fit:cover; }
.g-mt-oem-second img { width:100%; aspect-ratio:4/3; height:auto; object-fit:cover; }
.g-mt--oem .g-mt-body { font-family:var(--font-sans); font-weight:300; font-size:16px; line-height:22.4px; color:#333; max-width:none; }
.g-mt--oem.g-mt--dark .g-mt-body { color:rgba(255,255,255,.85); }

/* Picture panels (media_text_overlay): 720 tall, copy from the top, flat light shade, Geely's type. */
.g-mto { min-height:720px; align-items:flex-start; }
.g-mto .container { padding-top:80px; padding-bottom:56px; }
.g-mto-copy { max-width:540px; }
.g-mto--right .g-mto-copy { max-width:652px; }
.g-body .g-mto-copy h2 { font-size:40px; line-height:48px; }
.g-body .g-mto-body { font-family:var(--font-sans); font-weight:300; font-size:20px; line-height:28px; margin-top:16px; }
.g-mto--dark::after { background:linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.18) 45%, rgba(0,0,0,.18) 100%); }

/* Disclaimer: a thin rule, then 12px #333 small print. */
.g-disclaimer { border-top:0; }
.g-disclaimer h4 { border-top:1px solid #333; padding-top:24px; margin:0 0 16px; color:#333; }
.g-body .g-disclaimer p { font-family:var(--font-sans); font-weight:400; font-size:12px; line-height:16.8px; color:#333; }
.g-disclaimer p + p { margin-top:12px; }

@media (min-width:744px) and (max-width:1023.98px){
  .g-mt-oem-main .g-mt-frame img, .g-mt-oem-main .g-mt-frame video { aspect-ratio:2/3; }
}
@media (max-width:743.98px){
  .g-offer-m { grid-template-columns:minmax(0, 1fr); gap:24px; }
  .g-body .g-offer-m-headline { font-size:24px; line-height:28.8px; }
  .g-body .g-offer-m-details { font-size:16px; line-height:22.4px; font-weight:400; margin-top:16px; }
  .g-offer-m-cta { width:100%; }
  .g-mt-oem-main, .g-mt-oem-side { grid-column:1 / -1; }
  .g-mto { min-height:693px; }
  .g-mto .container { padding-top:56px; }
  .g-mto-copy, .g-mto--right .g-mto-copy { max-width:none; }
  .g-body .g-mto-copy h2 { font-size:32px; line-height:38.4px; }
  .g-body .g-mto-body { font-size:18px; line-height:25.2px; }
}

/* geely-oem-design Stage 6 (2026-10-12): visual sweep against geely.com.au.
   Carousels run on to the right edge of the screen so the next slide peeks in; the clip keeps
   earlier slides out of the left margin and the section stops the page scrolling sideways. */
.g-fc:not(.g-fgrid) { overflow-x:clip; }
@supports not (overflow-x:clip) { .g-fc:not(.g-fgrid) { overflow:hidden; } }
/* Owner 2026-10-15: no peeking slide - every carousel stops at the container's right edge (was -100vw). */
.g-fc .g-fc-swiper { overflow:visible; clip-path:inset(-40px 0 -40px 0); }
/* The second Geely intro mirrors the first: big picture on the right (media_side = left). */
@media (min-width:744px){ .g-mt--oem-flip .g-mt-oem-main { order:2; } }
/* feature_carousel grid (safety features) and columns (heading + lead, big picture, text columns). */
.g-fgrid-title { display:flex; flex-direction:column; align-items:flex-start; gap:16px; }
.g-fgrid-media { border-radius:var(--radius-media); overflow:hidden; aspect-ratio:2/1; margin-bottom:56px; background:#0b0d10; }
.g-fgrid-media img { width:100%; height:100%; object-fit:cover; display:block; }
.g-fgrid-items { display:grid; grid-template-columns:minmax(0, 1fr); gap:40px 24px; }
.g-fgrid-item-media { border-radius:var(--radius-media); overflow:hidden; aspect-ratio:16/9; margin-bottom:40px; background:#f4f5f7; }
.g-fgrid-item-media img { width:100%; height:100%; object-fit:cover; display:block; }
.g-yt { aspect-ratio:16/9; background:#000; }
.g-yt iframe { width:100%; height:100%; border:0; display:block; }
.g-body .g-fgrid-item h3 { font-family:var(--font-display); font-weight:var(--fw-heading); font-size:20px; line-height:24px; text-transform:uppercase; letter-spacing:normal; color:#000; margin:0 0 8px; }
.g-body .g-fgrid-item p { font-family:var(--font-sans); font-weight:300; font-size:16px; line-height:22.4px; color:#333; margin:0; }
/* A grid card with a link (geely-ownership 2026-10-14): the whole card is the link. */
.g-body a.g-fgrid-item--link { display:block; color:inherit; text-decoration:none; }
.g-body a.g-fgrid-item--link img { transition:transform .4s ease; }
.g-body a.g-fgrid-item--link:hover img, .g-body a.g-fgrid-item--link:focus-visible img { transform:scale(1.03); }
.g-fgrid-foot { margin-top:32px; }
@media (min-width:744px){
  .g-fgrid--grid .g-fgrid-items { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .g-fgrid--columns .g-fgrid-items { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:32px 16px; }
}
@media (min-width:1024px){
  .g-fgrid--columns .g-fgrid-head { max-width:none; display:grid; grid-template-columns:repeat(12, minmax(0, 1fr)); gap:16px; align-items:start; }
  .g-fgrid--columns .g-fgrid-title { grid-column:span 7; }
  .g-fgrid--columns .g-fgrid-head > p { grid-column:span 5; }
  .g-fgrid--columns .g-fgrid-items { grid-template-columns:repeat(var(--g-fgrid-cols), minmax(0, 1fr)); }
}
@media (max-width:743.98px){
  .g-fgrid-media { margin-bottom:40px; }
  .g-fgrid-item-media { margin-bottom:32px; }
  .g-fgrid--columns .g-fgrid-items { gap:32px; }
}

/* Content pages (body.g-page--content, owner 2026-10-12): card-row and FAQ headings the size of the text pages'
   section headings (.g-wide h2: 24/30), not the 40px model-page headings. */
.g-page--content .g-fc .g-section-head h2, .g-page--content .g-fgrid .g-section-head h2, .g-body.g-page--content .g-faq-heading { font-size:24px; line-height:30px; }
/* FAQ block (geely-accessories 2026-10-12), as geely.com.au's accordion: rules between the questions, the
   question in the display face, a + that turns into a - when open. Native <details>: keyboard + no-JS safe;
   a shared name = one open at a time. Questions 16px (owner 2026-10-13: 24px was too big). */
.g-faq { padding:var(--section-pad-y) 0; }
.g-body .g-faq-heading { margin:0 0 48px; }
.g-faq-list { border-top:1px solid #ccc; }
.g-faq-item { border-bottom:1px solid #ccc; }
.g-faq-q { list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:24px 0;
  font-family:var(--font-display); font-weight:var(--fw-heading); font-size:16px; line-height:22px; text-transform:uppercase; color:#000; }
.g-faq-q::-webkit-details-marker { display:none; }
.g-faq-q:focus-visible { outline:none; box-shadow:var(--focus-ring); }
.g-faq-icon { position:relative; flex:0 0 16px; width:16px; height:16px; }
.g-faq-icon::before, .g-faq-icon::after { content:""; position:absolute; left:0; top:7px; width:16px; height:2px; background:#000; transition:transform .2s ease; }
.g-faq-icon::after { transform:rotate(90deg); }
.g-faq-item[open] .g-faq-icon::after { transform:rotate(0deg); }
.g-faq-a { padding:0 0 24px; max-width:1100px; }
.g-body .g-faq-a p { font-size:16px; line-height:1.6; color:#333; margin:0 0 12px; }
.g-body .g-faq-a p:last-child { margin-bottom:0; }
@media (max-width:743.98px){
  .g-body .g-faq-heading { margin-bottom:32px; }
  .g-faq-q { padding:20px 0; font-size:15px; line-height:20px; }
  .g-faq-a { padding-bottom:20px; }
}
@media (prefers-reduced-motion:reduce){ .g-faq-icon::before, .g-faq-icon::after { transition:none; } }
/* Table block (data_table, geely-warranty 2026-10-13), as geely.com.au's warranty table: rules between rows, headings
   in the display face; a phone shows each row as a card (first cell = title, the rest under their headings). */
.g-dtable { padding:var(--section-pad-y) 0; }
.g-dtable-table { width:100%; border-collapse:collapse; font-size:15px; line-height:1.5; color:#333; }
.g-dtable-table thead th { font-family:var(--font-display); font-weight:var(--fw-heading); font-size:14px; line-height:18px; text-transform:uppercase; color:#000; text-align:left; vertical-align:bottom; padding:0 16px 16px 0; border-bottom:2px solid #000; }
.g-dtable-table tbody th, .g-dtable-table tbody td { text-align:left; vertical-align:top; padding:20px 16px 20px 0; border-bottom:1px solid #ccc; }
.g-dtable-table tbody th { font-weight:600; color:#000; min-width:180px; }
.g-dtable-table tbody td { font-weight:300; }
.g-dtable-table tbody a { color:inherit; text-decoration:underline; text-underline-offset:3px; }
.g-dtable-table tbody a:hover, .g-dtable-table tbody a:focus-visible { color:var(--brand-600); }
.g-body .g-dtable-foot { font-size:13px; line-height:1.5; color:#666; margin:16px 0 0; }
.g-body .g-dtable-foot + .g-dtable-foot { margin-top:4px; }
@media (max-width:743.98px){
  .g-dtable-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
  .g-dtable-table, .g-dtable-table tbody, .g-dtable-table tr, .g-dtable-table tbody th, .g-dtable-table tbody td { display:block; width:100%; }
  .g-dtable-table tr { border-top:2px solid #000; padding:16px 0 8px; }
  .g-dtable-table tr + tr { margin-top:16px; }
  .g-dtable-table tbody th { border:0; padding:0 0 8px; font-size:16px; min-width:0; }
  .g-dtable-table tbody td { display:flex; gap:16px; border:0; border-top:1px solid #e5e5e5; padding:10px 0; }
  .g-dtable-table tbody td::before { content:attr(data-label); flex:0 0 40%; font-weight:600; color:#000; }
}

/* Book a Test Drive page (cta_lead_form form_kind model_test_drive, owner 2026-10-12): the chosen model's
   picture beside the form, three steps under it, picture chips over the model dropdown. */
.g-btd { padding:var(--section-pad-y) 0; }
.g-btd-card { display:grid; grid-template-columns:minmax(0, 1fr); gap:24px; align-items:stretch; }
.g-btd-visual { display:flex; flex-direction:column; gap:16px; }
.g-btd-stage { position:relative; overflow:hidden; border-radius:var(--radius-media); background:#0b0d10; aspect-ratio:4/3; isolation:isolate; }
.g-body .g-btd-shot { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0; transform:scale(1.06); transition:opacity .6s ease, transform 1.2s ease; }
.g-body .g-btd-shot.is-active { opacity:1; transform:scale(1); }
.g-btd-stage::after { content:""; position:absolute; inset:0; z-index:1; background:linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.78) 100%); pointer-events:none; }
.g-btd-stage-copy { position:absolute; left:0; right:0; bottom:0; z-index:2; padding:28px; color:#fff; }
.g-body .g-btd-stage-copy .g-eyebrow { color:rgba(255,255,255,.85); margin:0 0 10px; }
.g-body .g-btd-name { font-family:var(--font-display); font-weight:var(--fw-heading); font-size:32px; line-height:38.4px; text-transform:uppercase; color:#fff; margin:0; }
.g-body .g-btd-tag { font-weight:300; font-size:16px; line-height:22.4px; color:rgba(255,255,255,.9); margin:8px 0 0; max-width:460px; }
.g-body .g-btd-explore { display:inline-block; margin-top:14px; color:#fff; font-size:14px; text-decoration:underline; text-underline-offset:4px; }
.g-btd-explore[hidden] { display:none; }
.g-btd-steps { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:12px; }
.g-btd-steps li { display:flex; gap:12px; align-items:flex-start; padding:16px; border-radius:var(--radius-media); background:#fff; border:1px solid var(--border-subtle); font-size:13px; line-height:18px; color:#333; }
.g-btd-steps strong { display:block; font-weight:500; color:#000; font-size:14px; margin-bottom:2px; }
.g-btd-steps small { display:block; font-size:13px; line-height:18px; color:#333; }
.g-btd-step-ico { flex:0 0 36px; width:36px; height:36px; border-radius:50%; background:#000; color:#fff; display:inline-flex; align-items:center; justify-content:center; }
.g-btd-step-ico svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.g-btd-panel { background:var(--surface-card, #fff); border:1px solid var(--border-subtle); border-radius:var(--radius-media); box-shadow:var(--shadow-lg); padding:32px 24px; }
.g-body .g-btd-panel h2 { font-size:32px; line-height:38.4px; margin:0 0 12px; }
.g-btd-chips { display:grid; grid-template-columns:repeat(auto-fit, minmax(84px, 1fr)); gap:10px; margin:24px 0 0; }
.g-btd-chip { display:flex; flex-direction:column; align-items:stretch; gap:8px; padding:8px; border:1px solid var(--border-default); border-radius:var(--radius-media); background:#fff; cursor:pointer; text-align:left; font-size:13px; font-weight:500; color:#000; transition:border-color .2s, box-shadow .2s, transform .2s; }
.g-btd-chip img { width:100%; aspect-ratio:16/10; object-fit:cover; border-radius:6px; display:block; }
.g-btd-chip:hover { border-color:#000; transform:translateY(-2px); }
.g-btd-chip.is-active { border-color:#000; box-shadow:inset 0 0 0 1px #000; }
.g-btd-chip:focus-visible { outline:none; box-shadow:var(--focus-ring); }
.g-btd .g-field select { width:100%; border:1px solid var(--border-default); border-radius:var(--radius-md); padding:12px 14px; font-size:15px; font-family:var(--font-sans); background:#fff; color:var(--text-primary); }
.g-btd-success { padding:24px 0 8px; }
@media (min-width:1024px){
  .g-btd-card { grid-template-columns:minmax(0, 1.1fr) minmax(0, 1fr); gap:32px; }
  .g-btd-stage { aspect-ratio:auto; flex:1 1 auto; min-height:480px; }
  .g-btd-panel { padding:40px; }
  .g-body .g-btd-name { font-size:40px; line-height:48px; }
}
@media (max-width:743.98px){
  .g-btd-visual { display:none; } /* phones: the form (with its model chips) only, owner 2026-10-12 */
  .g-btd-steps { gap:8px; }
  .g-btd-steps li { flex-direction:column; align-items:center; text-align:center; gap:8px; padding:12px 6px; font-size:12px; }
  .g-btd-steps small { display:none; }
  .g-btd-steps strong { font-size:12px; line-height:16px; margin:0; }
  .g-btd-chip { font-size:12px; padding:6px; }
  .g-btd-stage-copy { padding:20px; }
  .g-body .g-btd-name { font-size:26px; line-height:31.2px; }
}
@media (prefers-reduced-motion:reduce){ .g-body .g-btd-shot { transition:none; transform:none; } .g-btd-chip { transition:none; } }
