/* =========================================================
   Top Navigation
   ========================================================= */

.top-nav{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  z-index: 2000;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.nav-inner{
  max-width: calc(var(--wrap-w));
  margin: 0 auto;
  height: 100%;
  padding: 0 12px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nav-brand{
  font-weight: 600;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.nav-menu{
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-menu a,
.nav-link{
  text-decoration: none;
  font-weight: 500;
  color: #333;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav-menu a:hover,
.nav-link:hover{
  color: var(--link-hover);
  background: rgba(0,0,0,0.04);
}

.nav-item-right{
  margin-left: auto;
  order: 999;
}

.nav-item-right + .nav-item-right{
  margin-left: 0;
}

.nav-toggle{
  display: none;
  height: 40px;
  width: 44px;
  border: 1px solid #eee;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
}

/* Collapse into a dropdown on small screens */
@media (max-width: 720px){
  .nav-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu{
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;

    display: none;
    flex-direction: column;
    gap: 0;

    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 12px;
  }

  .nav-menu li{ width: 100%; }

  .nav-menu a{
    display: block;
    width: 100%;
    padding: 12px 10px;
    border-radius: 10px;
  }

  .top-nav.is-open .nav-menu{ display: flex; }
}
