/* detail8: layout lock and later-navigation tick only. Swarm / plates / skip removed. */
/* Tick is no longer used on first paint; if a slow later request shows it, keep it from trapping scroll *after* dismiss */
.kh-tick.is-out{ pointer-events: none !important; }

/* Reserve first-screen card geometry so hydrating products doesn't blow CLS */
#app[data-boot-shell] .hall-featured{
  min-height: 428px;
}
#app[data-boot-shell] .hall-featured .neo-card-hero{
  min-height: 392px !important;
  width: 311px;
  max-width: 100%;
}
#app[data-boot-shell] .hall-row{
  min-height: 243px;
}
#app[data-boot-shell] .hall-row .neo-card{
  min-height: 243px !important;
}
#app[data-boot-shell] .hall-copy{
  min-height: 294px;
}
#app[data-boot-shell] .site-header{min-height:64px;}
@media (max-width:860px){
  #app[data-boot-shell] .site-header{min-height:52px;}
}

#app[data-boot-shell] .kh-boot-tail{min-height:140vh;}

@media (max-width: 860px){
  #app[data-boot-shell] .hall-copy{min-height:190px;}
  #app[data-boot-shell] .hall-featured{ min-height: 468px; }
  #app[data-boot-shell] .hall-featured .neo-card-hero{
    min-height: 410px !important;
    width: 318px;
  }
}

/* detail7c: first-screen layout lock. These rules are the FINAL first-screen
   geometry and must be present in the inlined critical CSS so delayed
   stylesheets cannot move the hall, header, search, or cards. */

.drawer-backdrop{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.4);
  z-index:45;
}
body.menu-open .drawer-backdrop{display:block;}
.mobile-panel{display:none;}

body.is-home .site-header,
.page-home .site-header{
  position:absolute !important;
  top:30px;
  left:0;
  right:0;
  margin:0 28px;
}
body.is-home .header-inner,
.page-home .header-inner{
  max-width:none;
  width:auto;
  margin:0;
  height:64px;
  padding:0 14px 0 26px;
  box-sizing:border-box;
}
.site-header{min-height:64px;}

/* Reserved first-screen sizes always — not only while data-boot-shell is set —
   so removing the attribute after hydrate does not shrink the hall. */
.hall-copy{min-height:294px;}
.hall-featured{min-height:428px;}
.hall-featured .neo-card-hero{
  min-height:392px !important;
  width:311px;
  max-width:100%;
}
.hall-row{min-height:243px;}
.hall-row .neo-card{min-height:243px !important;}
.hall-cta{
  height:50px !important;
  padding:0 44px !important;
  font-size:16.5px !important;
  box-sizing:border-box;
  min-width:189px;
}

@media (max-width:860px){
  .site-header,body.is-home .site-header,.page-home .site-header{
    margin:8px 12px 0 !important;
    top:36px !important;
    min-height:52px;
  }
  body.is-home .header-inner,
  .page-home .header-inner,
  .header-inner{
    height:52px;
    padding:0 8px 0 14px;
  }
  .nav-links{display:none !important;}
  .header-actions .menu-btn{display:inline-flex !important;}
  /* styles.css hides all .search on small screens; keep the compact icon. */
  .header-inner .search.search-compact,
  .search.search-compact{
    display:flex !important;
    min-width:0 !important;
    width:auto !important;
  }
  .hall-copy{min-height:190px;}
  .hall-featured{min-height:468px;}
  .hall-featured .neo-card-hero{
    min-height:410px !important;
    width:318px;
  }
  .mobile-panel{
    display:none;
    position:fixed;
    top:0;right:0;bottom:0;
    width:min(84vw,360px);
    background:var(--card);
    z-index:50;
    border-left:1px solid var(--border);
    padding:18px 16px 32px;
    overflow:auto;
  }
  body.menu-open .mobile-panel{display:block;}
  .menu-btn{display:grid !important;}
}

@media (max-width:860px){
  #app[data-boot-shell] .site-header,
  .site-header,
  body.is-home .site-header,
  .page-home .site-header{min-height:52px;}
}

/* detail8: compact search / header-actions lock (mobile CLS). */
@media (max-width:860px){
  body.is-home .header-actions,
  .page-home .header-actions,
  .header-actions{height:44px;min-height:44px;align-items:center;}
  .header-inner .search.search-compact,
  .search.search-compact{
    display:flex !important;
    width:44px !important;
    min-width:44px !important;
    max-width:44px !important;
    height:44px !important;
    min-height:44px !important;
    flex:0 0 44px;
    box-sizing:border-box;
  }
  .search.search-compact.is-open,
  .search.search-compact:focus-within{
    max-width:min(70vw,280px) !important;
    width:auto !important;
    flex:0 1 auto;
  }
  /* Slogan metrics locked so fallback/webfont and late hall.css cannot
     resize hall-copy and shove the featured card. */
  .hall-upper{align-items:start !important;}
  .hall-copy{min-height:190px;}
  .hall-copy h1{
    font-size:clamp(30px,8.2vw,36px) !important;
    line-height:1.2 !important;
    margin:0 0 14px !important;
  }
  .staging-bar{
    min-height:40px;
    height:auto !important;
    white-space:normal !important;
  }
}
