/* Brand-site CSS: every theme, after the theme files. 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. */
/* Phone forms and taps, every theme (TK #3243 / #2252): iOS zooms into a field under 16px and never zooms back, and
   a control under 44px is easy to miss. .g-body raises specificity over the page partials (stock card, VDP, listing)
   that load later. Breadcrumb links and carousel dots get a taller hit area only - the layout does not move. */
@media (max-width:767.98px){
  .g-body .g-field :is(input, select, textarea),
  .g-body .g-lead-form :is(input:not([type=checkbox]):not([type=radio]), select, textarea),
  .g-body .g-feat-search input { font-size:16px; }
}
@media (max-width:743.98px){
  .g-body .g-nav-fav, .g-body .g-nav-burger { min-width:44px; min-height:44px; }
  .g-body .g-fav { width:44px; height:44px; }
  .g-body .g-card-nav, .g-body .g-vdp-gal-nav { width:44px; height:44px; margin-top:-22px; }
  .g-body .g-vdp-gal-zoom { width:44px; height:44px; }
  .g-body .g-stock-page-link { min-width:44px; height:44px; }
  .g-body .g-ss-free-submit { min-width:44px; min-height:44px; }
  .g-body .g-crumbs a { display:inline-block; padding:13px 0; margin:-9px 0; }
  .g-body .g-offers-pagination .swiper-pagination-bullet { box-sizing:content-box; padding:20.5px 0; background-clip:content-box; }
}
/* Offer slide on the home banner (SaleSlide, owner 2026-11-09: "any offer - the customer sees all the text in one go,
   no scrolling"): the slide is as tall as its words, the picture fills behind it, compact type that scales with the
   screen. Last in the sheet + one class more than every hero rule above, so it wins on every layout and breakpoint. */
.g-hero .g-hero-bg.g-hero-bg--fit { position:absolute; inset:0; }
.g-hero .g-hero-bg.g-hero-bg--fit picture, .g-hero .g-hero-bg.g-hero-bg--fit img, .g-hero .g-hero-bg.g-hero-bg--fit video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.g-hero.g-hero--oem .g-hero-cap.g-hero-cap--fit { position:relative; inset:auto; justify-content:center; padding-top:clamp(28px, 4vw, 56px); padding-bottom:clamp(44px, 4.5vw, 64px); }
.g-body .g-hero .g-hero-cap--fit h2.g-hero-h { font-size:clamp(28px, 4vw, 60px); line-height:1.02; }
.g-hero .g-hero-cap.g-hero-cap--fit .g-lede { font-size:clamp(14px, 1.25vw, 19px); line-height:1.45; margin-top:clamp(8px, 1vw, 14px); max-width:640px; }
.g-hero .g-hero-cap.g-hero-cap--fit .g-hero-ctas { margin-top:clamp(12px, 1.4vw, 22px); }
/* Banner terms link (owner 2026-11-10: the tiny dagger was not noticeable): readable "Terms & Conditions" text,
   centred with the buttons, on its own line after the words when the banner has no buttons. */
.g-hero .g-disclaimer-ref.g-hero-terms { display:inline-block; align-self:center; font-size:14px; line-height:1.3; vertical-align:baseline; margin:0 0 0 6px; text-decoration:underline; text-underline-offset:3px; font-weight:500; }
.g-hero .g-disclaimer-ref.g-hero-terms:hover { text-decoration:none; }
.g-hero.geely-dark .g-disclaimer-ref.g-hero-terms, .g-hero--oem .g-disclaimer-ref.g-hero-terms { color:#fff; }
.g-hero .g-hero-top > .g-disclaimer-ref.g-hero-terms, .g-hero .g-hero-in > .g-disclaimer-ref.g-hero-terms { margin:12px 0 0; }
/* While an offer slide is in the carousel the slides share its height: a wide picture sits centred on black. */
.g-hero--pics:has(.g-hero-cap--fit) .g-hero-bg:not(.g-hero-bg--fit) { display:flex; align-items:center; background:#000; }

/* ---- Media + text overlay block (was three @once <style> blocks in
   brandsite/blocks/media_text_overlay.blade.php, TK #2910). Last in the sheet, as when they were emitted
   in the body after it. Every selector is scoped to the block (.g-mto, .g-mto-hls, .g-vload*). ---- */
/* The panel's picture fills the panel: the site-wide ".g-body img { height:auto }" otherwise won, and a phone
     picture stopped at its own height partway down the panel (owner 2026-10-29). */
/* Footnote marks: <sup class="g-fn"> in the heading (FootnoteMarkers), <span class="g-fn"> in the body (OEM apply,
     oem-panel-text S2 - the body sanitizers keep span classes, not sup). */
.g-mto .g-mto-media-img { height:100%; }
.g-mto .g-fn { font-size:.55em; vertical-align:super; line-height:0; margin-left:1px; }
/* video.js wraps an HLS video in a div of its own (.g-hls-player): it fills the panel like the video. */
.g-mto-hls .g-hls-player { position:absolute; inset:0; width:100% !important; height:100% !important; }
/* video.js swaps the video's own class for "vjs-tech", so the video is sized here by element, not by class. */
.g-mto-hls video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
/* Loading screen for a video with no poster: Geely dark with a slow light sweep, a thin bar and the percentage of the
   opening seconds downloaded. The video fades in over it once it plays (.is-playing, set by partials/hls-video). */
.g-vload-host { background:#0b0d10; }
.g-vload-host video, .g-vload-host .g-hls-player { opacity:0; transition:opacity .6s ease; }
.g-vload-host.is-playing video, .g-vload-host.is-playing .g-hls-player { opacity:1; }
.g-vload { position:absolute; inset:0; z-index:1; display:flex; align-items:center; justify-content:center; overflow:hidden;
  background:radial-gradient(120% 90% at 70% 20%, #1d2430 0%, #0b0d10 60%); transition:opacity .6s ease; }
.g-vload::before { content:""; position:absolute; inset:0; background:linear-gradient(105deg, transparent 35%, rgba(255,255,255,.06) 50%, transparent 65%);
  transform:translateX(-100%); animation:g-vload-sweep 2.2s ease-in-out infinite; }
.g-vload-host.is-playing .g-vload { opacity:0; pointer-events:none; }
.g-vload-in { position:relative; width:min(240px, 60%); display:flex; flex-direction:column; align-items:center; gap:10px; }
.g-vload-txt { font-family:var(--font-display); font-weight:var(--fw-heading); text-transform:uppercase; letter-spacing:.18em; font-size:11px; color:rgba(255,255,255,.7); }
.g-vload-bar { display:block; width:100%; height:2px; border-radius:2px; background:rgba(255,255,255,.14); overflow:hidden; }
.g-vload-bar i { display:block; height:100%; width:0; background:#fff; transition:width .3s ease; }
@keyframes g-vload-sweep { to { transform:translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .g-vload::before { animation:none; } .g-vload-in { display:none; } }


/* Video panels keep the whole video in view at every width (owner 2026-10-29). Wide screens (>=1024): the panel is the
   video's shape, the text over it. Tablets and phones: the video full width at its own shape, the text below it -
   a 16:9 video on a phone is too short to carry the text without cutting either. */
@media (min-width:1024px) {
  .g-mto.g-mto--vid-d { min-height:0; aspect-ratio:var(--g-mto-ar-d, 16 / 9); }
}
@media (min-width:768px) and (max-width:1023.98px) {
  .g-mto.g-mto--vid-d { display:block; min-height:0; }
  .g-mto--vid-d .g-mto-media { position:relative; inset:auto; aspect-ratio:var(--g-mto-ar-d, 16 / 9); }
}
@media (max-width:767.98px) {
  .g-mto.g-mto--vid-m { display:block; min-height:0; }
  .g-mto--vid-m .g-mto-media { position:relative; inset:auto; aspect-ratio:var(--g-mto-ar-m, 16 / 9); }
}
/* Text below the video: only where that breakpoint really shows a video (a phone may show a picture instead -
   owner 2026-10-29, EX2 "Big on space": the picture panel must keep its own look on a phone). */
@media (min-width:768px) and (max-width:1023.98px) {
  .g-mto--vid-d::after { display:none; }
  .g-mto--vid-d.g-mto--dark { background:#000; }
  .g-mto--vid-d.g-mto--light { background:#fff; }
  .g-mto--vid-d .container { padding-top:28px; padding-bottom:36px; }
  .g-mto.g-mto--vid-d .g-mto-copy { max-width:none; }
}
@media (max-width:767.98px) {
  .g-mto--vid-m::after { display:none; }
  .g-mto--vid-m.g-mto--dark { background:#000; }
  .g-mto--vid-m.g-mto--light { background:#fff; }
  .g-mto--vid-m .container { padding-top:28px; padding-bottom:36px; }
}


/* ---- Phones: tap to play (TK #2909, owner 2026-11-17). Under 744px a page video keeps its poster and the layout's
   gTapToPlay() adds this button; the video loads only when it is tapped. Over a no-poster HLS panel the loading
   screen stays still and wordless until then. ---- */
.g-vtap { position:absolute; left:50%; top:50%; transform:translate(-50%, -50%); z-index:3; width:56px; height:56px; padding:0;
  border:2px solid rgba(255,255,255,.9); border-radius:50%; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,.6); color:#fff;
  cursor:pointer; box-shadow:0 2px 12px rgba(0,0,0,.35); -webkit-tap-highlight-color:transparent; }
.g-vtap svg { margin-left:3px; }
.g-vtap:focus-visible { outline:2px solid #fff; outline-offset:3px; }
.g-vtap-host .g-vload-in { display:none; }
.g-vtap-host .g-vload::before { animation:none; }
