/* Les Avisés V47.6 — global QA containment.
 * Mobile-only interactive layers must never participate in desktop layout.
 * Loaded last on every public route (including the professional workspace). */

/* Desktop-safe defaults for every mobile-only layer created/injected by V46/V47. */
.lav475-mobile-trigger,
.lav474-picker,
.lav473-picker,
.lav466-search-backdrop,
.lav466-search-close,
.lav47-search-backdrop,
.lav47-search-close{
  display:none!important;
}

/* If a stale mobile state survives bfcache/orientation, desktop must remain usable. */
@media (min-width:761px){
  html.lav474-picker-open,
  html.lav466-mobile-finder-mode,
  html.lav47-mobile-finder-mode,
  html.lav474-picker-open body,
  html.lav466-mobile-finder-mode body,
  html.lav47-mobile-finder-mode body{
    overflow:visible!important;
    overscroll-behavior:auto!important;
    touch-action:auto!important;
  }

  /* Homepage hero: restore an unequivocal contrast after all legacy layers. */
  .lav41-home .lav41-hero:after{
    background:linear-gradient(90deg,rgba(5,25,22,.92) 0%,rgba(5,25,22,.72) 42%,rgba(5,25,22,.22) 74%,rgba(5,25,22,.04) 100%)!important;
  }
  .lav41-home .lav41-hero .lav41-eyebrow{
    color:#e6f2ee!important;
    opacity:1!important;
  }
  .lav41-home .lav41-hero h1{
    color:#fff!important;
    text-shadow:0 2px 20px rgba(0,0,0,.18)!important;
  }
  .lav41-home .lav41-hero h1 em{
    color:#f4e7d5!important;
  }
  .lav41-home .lav41-hero-copy>p:not(.lav41-eyebrow){
    color:#f8fbfa!important;
    opacity:1!important;
    font-weight:500!important;
    text-shadow:0 2px 16px rgba(0,0,0,.28)!important;
  }
}

/* Mobile picker is the only supported mobile search layer. Re-enable only its
 * explicit hit targets and open dialog inside the mobile breakpoint. */
@media (max-width:760px){
  .lav475-mobile-trigger{display:block!important}
  .lav474-picker.is-open{display:flex!important}
  .lav466-search-backdrop,
  .lav466-search-close,
  .lav47-search-backdrop,
  .lav47-search-close,
  .lav473-picker{display:none!important}
}

/* Final page-end guard: no legacy mobile app reserve below the V41 footer. */
body.lav47-public{padding-bottom:0!important}
.lav41-footer{margin-bottom:0!important}


/* V47.7 — desktop/tablet finder dropdown containment fix.
 * The autocomplete was working, but .lav41-hero {overflow:hidden} clipped every
 * option below the sticky suggestions heading. The category rail then visually
 * covered the list, making the desktop finder look empty/broken.
 * Mobile (<=760px) remains owned by the dedicated picker and is untouched. */
@media (min-width:761px){
  .lav41-home .lav41-hero{
    overflow:visible!important;
    z-index:20!important;
  }
  .lav41-home .lav41-hero-search{
    z-index:80!important;
  }
  .lav41-home .lav41-finder,
  .lav41-home .lav312-finder-field,
  .lav41-home .lav312-finder-control{
    overflow:visible!important;
  }
  .lav41-home .lav41-finder .lav-suggestions{
    z-index:10000!important;
  }
  .lav41-home .lav41-catbar{
    position:relative!important;
    z-index:1!important;
  }
}
