/* Shared mobile homepage composition. Desktop styling is unchanged. */
@layer vp-home-mobile-hero {
 @media (max-width:760px) {
  html body #main > .vp-sector-hero-trial {margin-top:0!important;}
  html body #main .vp-sector-hero-trial > .wrap {
   box-sizing:border-box!important;width:100%!important;max-width:none!important;
   height:auto!important;min-height:0!important;margin-left:0!important;margin-right:0!important;
   padding-left:0!important;padding-right:0!important;
  }
  html body #main .vp-sector-hero-trial .vp-home-tour-window {
   --vp-mobile-art-height:calc(var(--vp-hero-viewport-width,100vw) * .66666667);
   --vp-mobile-frame-depth:calc(40px + var(--vp-mobile-photo-extension,0px) + var(--vp-hero-viewport-width,100vw) * .45);
   /* Fade the image evenly across its width into the charcoal panel. */
   --vp-mobile-background-fade:linear-gradient(
    to bottom,
    #000 calc(var(--vp-mobile-frame-depth) * .53),
    rgb(0 0 0 / .95) calc(var(--vp-mobile-frame-depth) * .62),
    rgb(0 0 0 / .79) calc(var(--vp-mobile-frame-depth) * .71),
    rgb(0 0 0 / .52) calc(var(--vp-mobile-frame-depth) * .80),
    rgb(0 0 0 / .23) calc(var(--vp-mobile-frame-depth) * .89),
    rgb(0 0 0 / .06) calc(var(--vp-mobile-frame-depth) * .95),
    transparent calc(var(--vp-mobile-frame-depth) * .99)
   );
   --vp-mobile-photo-shade:linear-gradient(to bottom,rgb(20 30 36 / .18),rgb(20 30 36 / .38));
   display:grid!important;grid-template-columns:minmax(0,1fr)!important;
   grid-template-rows:var(--vp-mobile-art-height) auto 36px!important;
   gap:0!important;align-items:start!important;height:auto!important;min-height:0!important;
   max-height:none!important;aspect-ratio:auto!important;padding:40px 0 24px!important;
   box-sizing:border-box!important;border-radius:0!important;background:#242b30!important;
  }
  html body #main .vp-sector-hero-trial .vp-home-tour-image {
   grid-column:1!important;grid-row:1!important;position:relative!important;inset:auto!important;
   display:block!important;width:100%!important;height:auto!important;min-height:0!important;
   max-height:none!important;aspect-ratio:3/2!important;object-fit:contain!important;
   object-position:center!important;margin:0!important;transform:none!important;align-self:end!important;
  }
  html body #main .vp-sector-hero-trial .vp-home-tour-copy {
   grid-column:1!important;grid-row:2!important;position:relative!important;inset:auto!important;
   width:calc(100% - 48px)!important;max-width:none!important;margin:16px 24px 0!important;
   padding:0!important;transform:none!important;align-self:start!important;
  }
  html body #main .vp-sector-hero-trial .vp-home-tour-copy > h2 {
   font-size:30px!important;line-height:34px!important;max-width:none!important;
   min-height:var(--vp-mobile-heading-slot,var(--vp-mobile-default-heading-slot,34px))!important;margin:0 0 16px!important;
   white-space:pre-line!important;
  }
  html body #main .vp-sector-hero-trial .vp-home-tour-copy > .vp-home-tour-prompt {
   font-size:16px!important;line-height:24.8px!important;max-width:none!important;
   min-height:var(--vp-mobile-prompt-slot,var(--vp-mobile-default-prompt-slot,50px))!important;margin:0!important;
  }
  html body #main .vp-sector-hero-trial .vp-home-tour-copy > .vp-home-tour-launch {
   margin:24px 0 0!important;height:48px!important;min-height:48px!important;box-sizing:border-box!important;
  }
  html body #main .vp-sector-hero-trial .vp-home-tour-arrows {
   grid-column:1!important;grid-row:3!important;position:relative!important;inset:auto!important;
   justify-self:end!important;align-self:start!important;margin:24px 24px 0!important;
   padding:0!important;transform:none!important;height:44px!important;
  }
  html body #main .vp-sector-hero-trial .vp-mobile-hero-actions {
   display:flex!important;align-items:center!important;gap:20px!important;
   width:100%!important;min-width:0!important;margin-top:24px!important;
  }
  html body #main .vp-sector-hero-trial .vp-mobile-hero-actions > .vp-home-tour-launch {
   flex:0 1 auto!important;min-width:0!important;max-width:calc(100% - 116px)!important;
   margin:0!important;height:48px!important;min-height:48px!important;
   white-space:normal!important;line-height:18px!important;
  }
  html body #main .vp-sector-hero-trial .vp-mobile-hero-actions > .vp-home-tour-arrows {
   flex:0 0 96px!important;width:96px!important;gap:8px!important;
   margin:0!important;align-self:center!important;
  }
  html body #main .vp-sector-hero-trial .vp-mobile-hero-actions .vp-home-tour-arrows > button {
   flex:0 0 44px!important;width:44px!important;height:44px!important;min-height:44px!important;
  }
  html body #main .vp-sector-hero-trial .vp-rayglass-home-hero-credit {
   display:none!important;
  }
  html body #main .vp-hero-hafele-active .vp-home-tour-window::before,
  html body #main .vp-hero-caravan-active .vp-home-tour-window::before,
  html body #main .vp-hero-protector-active .vp-home-tour-window::before,
  html body #main .vp-hero-bobcat-active .vp-home-tour-window::before,
  html body #main .vp-hero-commercial-dollhouse .vp-home-tour-window::before,
  html body #main .vp-hero-clevedon-active .vp-home-tour-window::before,
  html body #main .vp-hero-boa-active .vp-home-tour-window::before,
  html body #main .vp-hero-prevost-active .vp-home-tour-window::before,
  html body #main :is(.vp-hero-photo-panel, .vp-hero-venue-breakout) .vp-home-tour-window::before {
   content:""!important;display:block!important;position:absolute!important;inset:0 0 auto!important;
   width:100%!important;height:var(--vp-mobile-frame-depth)!important;aspect-ratio:auto!important;
   padding:0!important;box-sizing:border-box!important;border-radius:0!important;
   -webkit-mask-image:var(--vp-mobile-background-fade)!important;
   mask-image:var(--vp-mobile-background-fade)!important;
   z-index:0!important;
  }
  html body #main .vp-hero-hafele-active .vp-home-tour-window::before,
  html body #main .vp-hero-commercial-dollhouse .vp-home-tour-window::before,
  html body #main .vp-hero-clevedon-active .vp-home-tour-window::before {
   background:var(--vp-mobile-photo-shade),var(--vp-hero-backdrop) center/cover no-repeat!important;
  }
  html body #main .vp-hero-caravan-active .vp-home-tour-window::before,
  html body #main .vp-hero-protector-active .vp-home-tour-window::before,
  html body #main .vp-hero-bobcat-active .vp-home-tour-window::before,
  html body #main .vp-hero-boa-active .vp-home-tour-window::before,
  html body #main .vp-hero-prevost-active .vp-home-tour-window::before {
   background:var(--vp-hero-neutral-gradient)!important;
  }
  html body #main .vp-hero-hafele-active .vp-home-tour-window::after,
  html body #main .vp-hero-caravan-active .vp-home-tour-window::after,
  html body #main .vp-hero-protector-active .vp-home-tour-window::after,
  html body #main .vp-hero-bobcat-active .vp-home-tour-window::after,
  html body #main .vp-hero-commercial-dollhouse .vp-home-tour-window::after,
  html body #main .vp-hero-clevedon-active .vp-home-tour-window::after,
  html body #main .vp-hero-boa-active .vp-home-tour-window::after,
  html body #main .vp-hero-prevost-active .vp-home-tour-window::after,
  html body #main :is(.vp-hero-photo-panel, .vp-hero-venue-breakout) .vp-home-tour-window::after {display:none!important;}
  html body #main :is(.vp-hero-photo-panel, .vp-hero-venue-breakout) .vp-home-tour-window {
   --vp-mobile-photo-extension:60px;
  }
  html body #main :is(.vp-hero-photo-panel, .vp-hero-venue-breakout) .vp-home-tour-window::before {
   background:var(--vp-mobile-photo-shade),var(--vp-hero-frame-photo) center/cover no-repeat!important;
  }
  html body #main :is(.vp-hero-photo-panel, .vp-hero-venue-breakout) .vp-home-tour-image {
   opacity:0!important;
  }
  html body #main .vp-hero-hafele-active .vp-home-tour-image {
   width:90%!important;justify-self:center!important;
   transform:scale(1.06)!important;transform-origin:center bottom!important;
  }
  html body #main .vp-hero-caravan-active .vp-home-tour-image {
   width:150%!important;max-width:none!important;aspect-ratio:1672/941!important;
   margin-left:-50%!important;object-position:center!important;filter:drop-shadow(0 12px 12px #0003)!important;
   transform:translateY(10px) scale(.94)!important;transform-origin:center bottom!important;
  }
  html body #main .vp-hero-protector-active .vp-home-tour-image {
   width:120%!important;max-width:none!important;aspect-ratio:1715/917!important;
   margin-left:-10%!important;filter:drop-shadow(0 12px 12px #0003)!important;
  }
  html body #main .vp-hero-bobcat-active .vp-home-tour-image {
   width:140%!important;max-width:none!important;aspect-ratio:1672/941!important;
   margin-left:-46%!important;filter:drop-shadow(0 12px 12px #0003)!important;
   transform:scale(.95)!important;transform-origin:center bottom!important;
  }
  html body #main .vp-hero-boa-active .vp-home-tour-image {
   width:130%!important;max-width:none!important;height:var(--vp-mobile-art-height)!important;
   aspect-ratio:auto!important;margin-left:-35%!important;object-fit:cover!important;
   object-position:center top!important;filter:drop-shadow(0 12px 12px #0003)!important;
  }
  html body #main .vp-hero-prevost-active .vp-home-tour-image {
   width:135%!important;max-width:none!important;height:var(--vp-mobile-art-height)!important;
   aspect-ratio:auto!important;margin-left:-36%!important;object-fit:cover!important;
   object-position:center top!important;filter:drop-shadow(0 12px 12px #0003)!important;
   transform:scale(.92)!important;transform-origin:64% bottom!important;
  }
  html body #main .vp-hero-golden-active .vp-golden-background {
   height:var(--vp-mobile-frame-depth)!important;bottom:auto!important;
   -webkit-mask-image:var(--vp-mobile-background-fade)!important;
   mask-image:var(--vp-mobile-background-fade)!important;
  }
  html body #main .vp-hero-golden-active .vp-golden-background::after {
   background:var(--vp-mobile-photo-shade)!important;
  }
  html body #main .vp-hero-golden-active .vp-golden-background > img {
   height:100%!important;object-fit:cover!important;object-position:center!important;
  }
 }
 @media (max-width:360px) {
  html body #main .vp-sector-hero-trial {
   --vp-mobile-default-heading-slot:68px;
   --vp-mobile-default-prompt-slot:75px;
  }
  html body #main .vp-sector-hero-trial .vp-mobile-hero-actions {gap:12px!important;}
  html body #main .vp-sector-hero-trial .vp-mobile-hero-actions > .vp-home-tour-launch {max-width:calc(100% - 108px)!important;}
 }
}

/* Mobile header overlap and compact CTA spacing use the shared menu layer. */
@layer vp-button-icons-current {
 @media (max-width:760px) {
  html body.homepage-study.vp-mobile-menu-current {
   --vp-home-menu-overlap:26px;
   --vp-home-menu-shift:12px;
  }

  html body.homepage-study.vp-mobile-menu-current.vp-mobile-menu-current header.vp-global-header,
  html body.homepage-study.vp-mobile-menu-current.vp-mobile-menu-current header.vp-global-header .launch-header-bar {
   overflow:visible!important;
  }

  html body.homepage-study.vp-mobile-menu-current.vp-mobile-menu-current header.vp-global-header .launch-header-bar.wrap {
   padding-bottom:0!important;
  }

  html body.homepage-study.vp-mobile-menu-current.vp-mobile-menu-current header.vp-global-header .menu-toggle {
   top:var(--vp-home-menu-shift)!important;
   align-self:start!important;
   margin-bottom:calc(var(--vp-home-menu-shift) - var(--vp-home-menu-overlap))!important;
   z-index:1!important;
  }

  /* Extend the header background behind the overlapping Menu pill. */
  html body.homepage-study.vp-mobile-menu-current.vp-mobile-menu-current:has(> #main-nav.open) header.vp-global-header {
   box-shadow:0 calc(var(--vp-home-menu-overlap) + 1px) 0 #30383e!important;
  }

  html body.homepage-study.vp-mobile-menu-current.vp-mobile-menu-current > #main-nav#main-nav {
   max-height:calc(100dvh - var(--vp-public-header-height,210px) - var(--vp-home-menu-overlap))!important;
  }

  html body.homepage-study.vp-mobile-menu-current.vp-mobile-menu-current > #main-nav#main-nav.open {
   top:calc(var(--vp-public-header-height,210px) + var(--vp-home-menu-overlap))!important;
  }

  html body #main .vp-sector-hero-trial .vp-mobile-hero-actions > .vp-home-tour-launch {
   padding:5px 49px 5px 12px!important;
  }
 }
}

/* Make the complete mobile artwork a sector link; keep swipe navigation local. */
@layer vp-home-mobile-hero {
 @media(max-width:760px){
  html body.homepage-study #main#main .vp-home-tour-window>.vp-home-hero-sector-link{
   top:0!important;left:0!important;right:0!important;bottom:auto!important;
   width:100%!important;height:calc(40px + var(--vp-mobile-art-height))!important;
   touch-action:pan-y!important;
  }
  html body.homepage-study #main#main .vp-home-tour-window{touch-action:pan-y!important;}
 }
}
