/* The site's single navigation bar. Used on every page.
   Deliberately scoped to nv-* so it cannot collide with page styles. */

.nv-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #141414;
  color: #fff;
}

.nv-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.nv-brand { display: flex; align-items: center; }
.nv-brand img { height: 52px; width: auto; }

.nv-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 4px;
  background: none;
  border: 0;
  color: #fff;
  font: inherit;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
}

.nv-toggle__bars {
  display: inline-block;
  width: 22px;
  height: 8px;
  position: relative;
}
.nv-toggle__bars::before,
.nv-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 1px;
  background: currentColor;
}
.nv-toggle__bars::before { top: 0; }
.nv-toggle__bars::after { top: 7px; }

.nv-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #141414;
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding: 8px 24px 20px;
}

.nv-nav.is-open { display: block; }

.nv-nav a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  color: #fff;
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.nv-nav a:last-child { border-bottom: 0; }
.nv-nav a[aria-current="page"] { color: #cfc9e6; }

@media (min-width: 900px) {
  .nv-toggle { display: none; }
  .nv-nav {
    display: flex;
    position: static;
    background: none;
    border: 0;
    padding: 0;
    gap: 34px;
  }
  .nv-nav a {
    display: inline-block;
    padding: 6px 0;
    border: 0;
    border-bottom: 1px solid transparent;
  }
  .nv-nav a:hover,
  .nv-nav a[aria-current="page"] { border-bottom-color: #fff; }
}
