/*
 * WebXtent v0.8.80 — Developments phone full-bleed stage compaction.
 *
 * Phone-only refinement over v0.8.79. Moves the project image under the
 * floating header, reduces vertical travel, raises the controls/filmstrip and
 * enlarges the project-title swipe target without changing canonical runtimes.
 */

@media (max-width:767px){

  /* Start the immersive project scene at the very top. The floating header now
   * overlays the image rather than occupying a separate dark band above it. */
  body.wxt-scene-developments .wxt-development-showcase{
    padding:0 0 28px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__hero{
    width:100%!important;
    margin:0!important;
    min-height:560px!important;
    height:clamp(560px,76svh,610px)!important;
    max-height:610px!important;
    border-radius:0 0 22px 22px!important;
    border-left:0!important;
    border-right:0!important;
    border-top:0!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__hero-image,
  body.wxt-scene-developments .wxt-development-showcase__hero-placeholder{
    inset:0!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__hero-shade{
    background:
      linear-gradient(
        180deg,
        rgba(5,10,12,.20) 0%,
        rgba(5,10,12,.06) 18%,
        rgba(5,10,12,.10) 40%,
        rgba(5,10,12,.58) 66%,
        rgba(5,10,12,.94) 100%
      )!important;
  }

  /* Header floats directly over the project image. */
  .wxt-header[data-wxt-header-scene="developments"]{
    top:max(8px,env(safe-area-inset-top,0px))!important;
  }

  /* Search moves upward with the new full-bleed stage but stays safely below
   * the 56px floating header. */
  body.wxt-scene-developments .wxt-development-quick-search{
    top:max(76px,calc(env(safe-area-inset-top,0px) + 76px))!important;
    left:14px!important;
    right:14px!important;
  }

  body.wxt-scene-developments .wxt-development-quick-search__field{
    min-height:42px!important;
  }

  /* Bring the project heading closer to the controls. The wheel itself gets a
   * larger invisible vertical hit target so swipe-up/down is easier to engage. */
  body.wxt-scene-developments .wxt-development-showcase__hero-copy{
    left:18px!important;
    right:18px!important;
    bottom:174px!important;
  }

  body.wxt-scene-developments .wxt-development-project-wheel{
    display:flex!important;
    align-items:center!important;
    min-height:92px!important;
    margin:-20px 0!important;
    padding:20px 0!important;
    touch-action:pan-x!important;
  }

  body.wxt-scene-developments .wxt-development-project-wheel__item--current,
  body.wxt-scene-developments .wxt-development-project-wheel__ghost{
    max-width:12ch!important;
    font-size:clamp(33px,9.6vw,40px)!important;
  }

  body.wxt-scene-developments .wxt-development-project-wheel__contrast{
    height:calc(100% + 30px)!important;
  }

  /* ---------------------------------------------------------------
   * HIGHER / TIGHTER GALLERY DOCK
   * ------------------------------------------------------------ */
  body.wxt-scene-developments .wxt-development-showcase__project-carousel{
    left:10px!important;
    right:10px!important;
    bottom:10px!important;
    gap:6px!important;
    padding:8px!important;
    border-radius:17px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__project-carousel-bar{
    gap:5px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__project-carousel-label{
    min-height:30px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__project-carousel-accent{
    width:18px!important;
    flex-basis:18px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__project-carousel-label-text{
    font-size:.57rem!important;
  }

  body.wxt-scene-developments .wxt-development-showcase.has-touch-project-nav .wxt-development-project-wheel__dock{
    height:30px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase .wxt-development-project-wheel__dock button.wxt-development-project-wheel__chevron,
  body.wxt-scene-developments .wxt-development-showcase .wxt-development-project-wheel__dock button.wxt-development-gallery-visibility-toggle{
    width:25px!important;
    height:25px!important;
    min-width:25px!important;
    min-height:25px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__project-carousel-nav{
    grid-template-columns:34px 34px minmax(54px,1fr) auto!important;
    gap:5px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-carousel-toggle,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-carousel-toggle:hover,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-carousel-toggle:active,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-carousel-toggle:focus,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-carousel-toggle:focus-visible{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    min-height:34px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__project-position{
    min-width:54px!important;
    min-height:34px!important;
    font-size:.86rem!important;
  }

  body.wxt-scene-developments .wxt-development-files-toggle{
    min-height:34px!important;
    height:34px!important;
  }

  /* Two thumbnails stay visible but lose more vertical height. */
  body.wxt-scene-developments .wxt-development-showcase__project-track{
    gap:6px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card:hover,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card:active,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card:focus,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card:focus-visible{
    flex:0 0 calc((100% - 6px) / 2)!important;
    width:calc((100% - 6px) / 2)!important;
    min-height:82px!important;
    height:82px!important;
    border-radius:11px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase .wxt-development-stack-card__copy{
    left:7px!important;
    bottom:7px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase .wxt-development-stack-card__copy small{
    min-width:22px!important;
    height:18px!important;
    padding:0 5px!important;
    font-size:7px!important;
  }

  /* Project Overview follows the hero sooner; the repeated supporting gallery
   * remains retired by v0.8.79. */
  body.wxt-scene-developments .wxt-development-showcase__lower{
    padding:10px var(--wxt-dev-mobile-gutter,14px) 24px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__summary{
    padding:16px!important;
  }
}

@media (max-width:380px){
  body.wxt-scene-developments .wxt-development-showcase__hero{
    min-height:535px!important;
    height:clamp(535px,78svh,570px)!important;
    max-height:570px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase__hero-copy{
    left:16px!important;
    right:16px!important;
    bottom:164px!important;
  }

  body.wxt-scene-developments .wxt-development-project-wheel{
    min-height:86px!important;
    margin:-18px 0!important;
    padding:18px 0!important;
  }

  body.wxt-scene-developments .wxt-development-project-wheel__item--current,
  body.wxt-scene-developments .wxt-development-project-wheel__ghost{
    font-size:32px!important;
  }

  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card:hover,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card:active,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card:focus,
  body.wxt-scene-developments .wxt-development-showcase button.wxt-development-stack-card:focus-visible{
    min-height:76px!important;
    height:76px!important;
  }
}

@media (prefers-reduced-motion:reduce){
  body.wxt-scene-developments .wxt-development-showcase__project-carousel,
  body.wxt-scene-developments .wxt-development-project-wheel{
    transition:none!important;
  }
}
