/* Shared toolbar styles used by every page: background, pill hover/
   selected highlight, home icon, and the scroll-hide fixed clone. */

/* Suppresses the native pull-to-refresh/rubber-band bounce at the top of
   the page, which can visually detach the fixed clone from the real bar. */
body{
  overscroll-behavior-y: none;
}

div.navOverlayBar{
  flex: 0 0 auto;
  background-color: #4a6187;
  text-align: center;
}

.navOverlayBar .col-auto{
  padding-left: 12px;
  padding-right: 12px;
}

img.navHomeIcon{
  height: 0.8em;
  vertical-align: middle;
}

div.navOverlayItem,
div.navOverlayItemActivated{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 0.25em;
  padding-bottom: 0.25em;
}

/* Highlight is a pseudo-element (no layout space of its own) so resting
   spacing matches the original design; inset to avoid adjacent pills touching. */
div.navOverlayItem::before,
div.navOverlayItemActivated::before{
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  right: 5px;
  border-radius: 9px;
  z-index: 0;
}

div.navOverlayItem:hover::before{
  background-color: #405475;
}

div.navOverlayItemActivated::before{
  background-color: #33435e;
}

div.navOverlayItemActivated:hover::before{
  background-color: #2a374c;
}

.navOverlayItem a.nav,
.navOverlayItemActivated a.nav{
  position: relative;
  z-index: 1;
}

/* JS-cloned copy of navOverlayBar (navbar.js) that floats above the page
   so it can reappear anywhere on scroll-up. */
div.navOverlayBarFixed{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  transform: translateY(-100%);
  transition: transform 0.25s ease;
  z-index: 1000;
  will-change: transform;
}

div.navOverlayBarFixed.navFixedVisible{
  transform: translateY(0);
}
