/* Collapsed menu: Bootstrap's navbar-expand-lg collapses below 992px, but main.min.css only styled it up to 414px. */
@media (max-width: 991.98px) {
  #top-menu #menu-items {
    position: fixed;
    top: 105px; /* #top-menu height */
    left: 0;
    right: 0;
    max-height: calc(100vh - 105px);
    overflow-y: auto;
    padding: 10px 20px 15px;
    text-align: right;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
  }
  #top-menu .navbar-light #menu-items { background-color: #fdfdfd; }
  #top-menu .navbar-dark #menu-items { background-color: #333333; }

  #top-menu #menu-items .nav-item { padding: 0 !important; }
  /* Finger-sized tap targets */
  #top-menu #menu-items .nav-link { display: inline-block; padding: 10px 0; font-size: 14px; }
  #top-menu #menu-items .active { padding-bottom: 8px; }

  #top-menu #menu-items .dropdown-menu {
    left: 0 !important;
    width: 100% !important;
    margin: 0;
    padding: 0 0 10px;
    box-shadow: none;
    background-color: transparent !important;
  }
  #top-menu #menu-items .dropdown-menu .menu-header { padding: 8px 0 4px; }
  #top-menu #menu-items .dropdown-menu .dropdown-item { padding: 8px 0; font-size: 14px; }
  #top-menu .navbar-dark #menu-items .dropdown-menu .menu-header { color: #bcbcbc; }
  #top-menu .navbar-dark #menu-items .dropdown-menu .dropdown-item { color: #e9e9e9; }
}

@media (max-width: 414px) {
  #top-menu #menu-items {
    top: 70px;
    max-height: calc(100vh - 70px);
  }
}
