/* Shared header: logo left, menu centered, actions right */
#nbar .container {
  max-width: 1400px;
}

#nbar .container > .d-flex,
#nbar .nbar-row {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
}

#nbar .nbar-row > a:first-child,
#nbar .container > .d-flex > a:first-child {
  justify-self: start;
}

#nbar .logo {
  width: 240px !important;
  max-width: 100%;
  height: auto !important;
  flex-shrink: 0;
}

#nbar .nbar-links,
#nbar .container > .d-flex > .d-lg-flex {
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 28px;
  min-width: 0;
  margin: 0 !important;
  justify-self: center;
}

#nbar .nbar-links .nav-link,
#nbar .container > .d-flex > .d-lg-flex .nav-link,
#nbar .nbar-row .nav-link {
  padding: 8px 0 !important;
  margin: 0 !important;
  white-space: nowrap;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  background: transparent !important;
}

#nbar .nbar-links .nav-link:hover,
#nbar .container > .d-flex > .d-lg-flex .nav-link:hover,
#nbar .nbar-row .nav-link:hover {
  background: transparent !important;
  color: #5b21b6 !important;
}

#nbar .nbar-links .nav-link.is-active,
#nbar .nbar-row .nav-link.is-active {
  color: #5b21b6 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#nbar .nbar-actions,
#nbar .container > .d-flex > .d-flex.align-items-center:last-child {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  justify-self: end;
  flex-shrink: 0;
  gap: 12px;
  margin-left: 0 !important;
}

#nbar .nbar-actions .mx-2,
#nbar .nbar-actions .ms-2 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 1299.98px) {
  #nbar .container > .d-flex,
  #nbar .nbar-row {
    grid-template-columns: 1fr auto;
  }
  #nbar .nbar-links,
  #nbar .container > .d-flex > .d-lg-flex {
    display: none !important;
  }
  #nbar #mbtog {
    display: inline-flex !important;
  }
}

@media (min-width: 1300px) {
  #nbar .nbar-links,
  #nbar .container > .d-flex > .d-lg-flex {
    display: flex !important;
  }
  #nbar #mbtog {
    display: none !important;
  }
}

@media (max-width: 767px) {
  #nbar .logo {
    width: 240px !important;
    max-width: min(240px, calc(100vw - 130px));
  }
}
