
/* Gainwell v1.34 — all mobile category / section navigation bars stick to viewport top */
@media(max-width:940px){
  .gw-category-nav,
  .gw-catalog-toolbar,
  .gw-solution-scene-nav,
  .gw-projects-toolbar,
  .gw-project-detail-nav,
  .gw-capabilities-nav,
  .gw-resource-library__nav,
  .gw-about-nav{
    position:sticky!important;
    top:0!important;
    z-index:900!important;
    width:100%!important;
    background:rgba(255,255,255,.98)!important;
    border-bottom:1px solid var(--gw3-line,var(--line,#d7e0e3))!important;
    backdrop-filter:blur(16px)!important;
    -webkit-backdrop-filter:blur(16px)!important;
  }

  /* Override old admin-bar offsets. WordPress mobile admin bar scrolls away. */
  body.admin-bar .gw-category-nav,
  body.admin-bar .gw-catalog-toolbar,
  body.admin-bar .gw-solution-scene-nav,
  body.admin-bar .gw-projects-toolbar,
  body.admin-bar .gw-project-detail-nav,
  body.admin-bar .gw-capabilities-nav,
  body.admin-bar .gw-resource-library__nav,
  body.admin-bar .gw-about-nav{
    top:0!important;
  }

  /* Capabilities was intentionally non-sticky on desktop; mobile is now unified. */
  .gw-capabilities-nav{
    padding:0!important;
    z-index:900!important;
  }

  .gw-capabilities-nav__inner{
    margin:0 auto!important;
    border-top:0!important;
    border-bottom:0!important;
  }

  /* Horizontal navigation remains swipeable where there are many items. */
  .gw-category-nav__inner,
  .gw-solution-scene-nav__inner,
  .gw-project-detail-nav__inner,
  .gw-resource-library__nav .container,
  .gw-about-nav .container,
  .gw-capabilities-nav__inner{
    overscroll-behavior-inline:contain;
    -webkit-overflow-scrolling:touch;
  }

  /* When the dedicated mobile menu opens, page-level sticky bars must not cover it. */
  body.gw-mobile-simple-open .gw-category-nav,
  body.gw-mobile-simple-open .gw-catalog-toolbar,
  body.gw-mobile-simple-open .gw-solution-scene-nav,
  body.gw-mobile-simple-open .gw-projects-toolbar,
  body.gw-mobile-simple-open .gw-project-detail-nav,
  body.gw-mobile-simple-open .gw-capabilities-nav,
  body.gw-mobile-simple-open .gw-resource-library__nav,
  body.gw-mobile-simple-open .gw-about-nav{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }

  /* In-page targets must not disappear underneath the sticky navigation. */
  [data-about-section],
  [id^="capability-"],
  [id^="material-"]{
    scroll-margin-top:82px!important;
  }
}

@media(max-width:650px){
  .gw-category-nav,
  .gw-catalog-toolbar,
  .gw-solution-scene-nav,
  .gw-projects-toolbar,
  .gw-project-detail-nav,
  .gw-capabilities-nav,
  .gw-resource-library__nav,
  .gw-about-nav{
    top:0!important;
  }
}
