/* Desh Edition v7.2 — robust mobile sticky menu + media bars */
@media (min-width:992px){
  html{scroll-padding-top:110px;}
}
@media (max-width:768px){
  .de-mobile-head{position:relative!important;overflow:visible!important;transform:none!important;}
  .de-mobile-sticky-sentinel{display:block!important;height:0!important;margin:0!important;padding:0!important;border:0!important;}
  .de-mobile-sticky-placeholder{display:none!important;height:0;width:100%;margin:0;padding:0;}
  .de-mobile-sticky-placeholder.is-active{display:block!important;height:var(--de-mobile-bars-total-h,140px)!important;}

  /* The two lower rows are the only sticky portion. */
  .de-mobile-head.de-mobile-bars-fixed .de-mobile-nav-row,
  body.de-mobile-nav-fixed-active .de-mobile-nav-row{
    position:fixed!important;
    top:0!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    height:var(--de-mobile-nav-h,58px)!important;
    z-index:999998!important;
    background:#fff!important;
    box-shadow:0 2px 7px rgba(0,0,0,.12)!important;
  }
  .de-mobile-head.de-mobile-bars-fixed .de-mobile-media-row,
  body.de-mobile-nav-fixed-active .de-mobile-media-row{
    position:fixed!important;
    top:var(--de-mobile-nav-h,58px)!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    height:var(--de-mobile-media-h,82px)!important;
    z-index:999997!important;
    background:#fff!important;
    box-shadow:0 2px 9px rgba(0,0,0,.10)!important;
  }
  body.admin-bar .de-mobile-head.de-mobile-bars-fixed .de-mobile-nav-row,
  body.admin-bar.de-mobile-nav-fixed-active .de-mobile-nav-row{top:46px!important;}
  body.admin-bar .de-mobile-head.de-mobile-bars-fixed .de-mobile-media-row,
  body.admin-bar.de-mobile-nav-fixed-active .de-mobile-media-row{top:calc(46px + var(--de-mobile-nav-h,58px))!important;}

  /* Never reserve a second artificial block on the header itself. */
  .de-mobile-head.de-mobile-bars-fixed{padding-bottom:0!important;}
  .de-mobile-head-spacer,.de-mobile-sticky-spacer{display:none!important;height:0!important;}
}

/* v7.4 — reliable desktop sticky navigation.
   The nav is moved to fixed positioning after it reaches the viewport top,
   because position:sticky on a child of the finite desktop header stops at
   the bottom of that header. Mobile behavior remains unchanged. */
@media (min-width:769px){
  .de-desktop-nav-wrap{position:relative!important;top:auto!important;}
  .de-desktop-nav-wrap.de-desktop-nav-fixed{
    position:fixed!important;
    top:var(--de-desktop-nav-top,0px)!important;
    left:var(--de-desktop-nav-left,0px)!important;
    width:var(--de-desktop-nav-width,100%)!important;
    z-index:9990!important;
    background:#fff!important;
    box-shadow:0 2px 6px rgba(0,0,0,.14)!important;
  }
  body.admin-bar .de-desktop-nav-wrap.de-desktop-nav-fixed{top:32px!important;}
  .de-desktop-sticky-placeholder{width:100%;}
}
