
/* AutoPilot V22.60 — fixed detail navigation */

/* V22.59 global-search CSS accidentally changed the legacy car header
   from sticky to relative. Restore the header so the section bar can
   lock immediately beneath it. */


/* Keep the detail tabs pinned directly under the 76px desktop header. */
body .detail-section-nav{
  position:sticky!important;
  top:76px!important;
  z-index:90!important;
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
  background:rgba(10,16,20,.97)!important;
  border:1px solid #27323a!important;
  box-shadow:0 8px 24px rgba(0,0,0,.22)!important;
  backdrop-filter:blur(14px)!important;
  -webkit-backdrop-filter:blur(14px)!important;
}

/* Prevent the active anchor from being hidden by both sticky bars. */
body #overview,
body #engines,
body #market,
body #issues,
body #repairs,
body #buy{
  scroll-margin-top:130px!important;
}

@media(max-width:600px){
  
  body .detail-section-nav{
    top:65px!important;
  }
  body #overview,
  body #engines,
  body #market,
  body #issues,
  body #repairs,
  body #buy{
    scroll-margin-top:118px!important;
  }
}
