/* HomeLynx V8.1.25 — WebOS closed-canvas + explicit-call pane repair.
   Presentation shell only. Worth formula/data, map data, listings, evidence,
   legal, media, and ingestion are unchanged. */

@media (min-width:1024px){
  body.hlx-search-active{
    --hlx-web-rail:420px;
    --hlx-web-head:126px;
  }

  /* CLOSED LAW: no reserved rail, no white gutter. The map owns the canvas. */
  body.hlx-search-active .hlx-v8-mapstage,
  body.hlx-search-active:not(.hlx-web-intel-open) .hlx-v8-mapstage{
    left:0!important;
    right:0!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    transition:right .24s cubic-bezier(.2,.8,.2,1)!important;
  }
  body.hlx-search-active.hlx-web-intel-open .hlx-v8-mapstage{
    left:0!important;
    right:var(--hlx-web-rail)!important;
    width:auto!important;
  }
  body.hlx-search-active .hlx-v8-map,
  body.hlx-search-active .hlx-v8-map>.gm-style{
    width:100%!important;
    max-width:none!important;
  }

  /* A DOM sheet may be hydrated by background map/search work. That alone must
     never reserve desktop space. Only the explicit-call body state can reveal it. */
  body.hlx-search-active .hlx-v8-sheet[hidden],
  body.hlx-search-active:not(.hlx-web-intel-open) .hlx-v8-sheet{
    display:none!important;
    width:0!important;
    min-width:0!important;
    border:0!important;
    box-shadow:none!important;
    pointer-events:none!important;
  }
  body.hlx-search-active.hlx-web-intel-open .hlx-v8-sheet:not([hidden]){
    display:block!important;
    left:auto!important;
    right:0!important;
    top:var(--hlx-web-head)!important;
    bottom:0!important;
    width:var(--hlx-web-rail)!important;
    max-width:none!important;
    pointer-events:auto!important;
  }

  /* Header does not pre-reserve the intelligence rail. */
  body.hlx-search-active .hlx-v8-head{
    left:0!important;
    right:0!important;
    width:100%!important;
    padding:18px 24px 12px!important;
  }
  body.hlx-search-active.hlx-web-intel-open .hlx-v8-head{
    padding-right:calc(var(--hlx-web-rail) + 24px)!important;
  }

  /* Search + hamburger get independent desktop slots. */
  body.hlx-search-active .hlx-v8-searchrow,
  body.hlx-search-active .hlx-v8-searchrow.hlx-bottom-dock{
    right:80px!important;
    width:384px!important;
    max-width:calc(100vw - 128px)!important;
  }
  body.hlx-search-active .hlx-neo-attach-chiphost.hlx-bottom-dock-chiphost{
    right:80px!important;
    width:384px!important;
    max-width:calc(100vw - 128px)!important;
  }

  /* 8.1.21 hid the menu on #/welcome because that route also carries the old
     onboarding class. WebOS owns #/welcome now, so restore the current hamburger. */
  body.hlx-search-active:not(.hlx-relay) .hlx-menu-trigger,
  body.hlx-search-active.onboarding:not(.hlx-relay) .hlx-menu-trigger{
    display:grid!important;
    top:24px!important;
    right:18px!important;
    width:46px!important;
    height:46px!important;
    border-radius:15px!important;
    background:rgba(255,255,255,.96)!important;
    border:1px solid rgba(11,13,12,.10)!important;
    box-shadow:0 10px 28px rgba(11,13,12,.10)!important;
    backdrop-filter:blur(16px)!important;
    -webkit-backdrop-filter:blur(16px)!important;
    z-index:9700!important;
  }

  .hlx-web-intel-close{
    position:fixed;
    right:16px;
    top:calc(var(--hlx-web-head) + 12px);
    z-index:9250;
    width:34px;
    height:34px;
    display:grid;
    place-items:center;
    border:1px solid rgba(11,13,12,.10);
    border-radius:11px;
    background:rgba(255,255,255,.94);
    color:#1d2522;
    font:400 23px/1 'IBM Plex Sans',sans-serif;
    cursor:pointer;
    box-shadow:0 6px 20px rgba(11,13,12,.08);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
  }
  body:not(.hlx-web-intel-open) .hlx-web-intel-close{display:none!important;}

  body.hlx-search-active:not(.hlx-web-intel-open) .hlx-v8-search{
    background:#eef3f0!important;
  }
}
