:root {
  --navbar-height: 3.75rem;
}

.navbar {
  position: sticky;
  top: 0;
  height: var(--navbar-height);
  z-index: var(--zindex-sticky);
  font-weight: 400;
  font-family: 'Open Sans Bold';
  transition: top 0.3s ease-in-out;

  @media (min-width: 576px) {
    padding-left: 0;
    padding-right: 0;
  }

  .navbar-nav {
    align-items: stretch;
    flex-direction: row;

    .nav-item {
      position: relative;
      display: flex;
      align-items: center;
      margin-right: var(--spacer);
      height: var(--navbar-height);

      .nav-link {
        &:hover, &:focus {
          outline: none;
          text-decoration: underline;
        }

        &.dropdown-toggle:after {
          color: rgba(255, 255, 255, 0.5);
          position: static;
          right: auto;
        }
      }
    }

    .dropdown-menu {
      top: var(--navbar-height);
      left: auto;
      margin-top: 0;
      max-width: 20rem;
      position: absolute;
      max-height: calc(100vh - var(--navbar-height));
      overflow-y: auto;
    }

    .nav-toggle {
      color: #ffffff;
      padding: 0;
      width: 2rem;
      height: 2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.2s ease;

      &:hover, &:focus {
        text-decoration: none;
      }
      &:active {
        transform: scale(0.9);
      }
    }

    .logo {
      display: none;
      @media (min-width: 768px) {
        display: inline;
      }
    }

    .user-panel {
      display: none;
      @media (min-width: 768px) {
        display: flex;
      }
      .dropdown-toggle:after {
        vertical-align: -0.15rem;
      }
    }
  }
}