/* =============================================================================
 * The Lupaxa Project Portal
 * Custom Header Navigation
 * ============================================================================= */

.md-header {
  position: sticky;
  top: 0;
  z-index: 10;
  color: var(--lupaxa-white);
  background-color: var(--lupaxa-blue);
}

.md-header__inner {
  position: relative;
}

.lupaxa-header__inner {
  display: flex;
  width: 100%;
  min-height: var(--lupaxa-header-height);
  align-items: center;
  gap: 0;
}

/* Brand mark */

.md-header__button.md-logo.lupaxa-header__logo {
  display: inline-flex;
  flex: 0 0 auto;
  width: 4.5rem;
  height: 4.5rem;
  align-items: center;
  justify-content: center;
  margin: 0 0.75rem 0 -0.25rem;
  padding: 0;
  border-radius: 50%;
}

.md-header__button.md-logo.lupaxa-header__logo img,
.md-header__button.md-logo.lupaxa-header__logo svg {
  display: block;
  width: 4.5rem;
  height: 4.5rem;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

/* Primary desktop navigation */

.lupaxa-header__nav {
  position: relative;
  z-index: 2;
  min-width: 0;
  flex: 1 1 auto;
  align-self: stretch;
  pointer-events: auto;
}

.lupaxa-header__nav-list {
  display: flex;
  height: 100%;
  align-items: stretch;
  gap: var(--lupaxa-spacing-xs);
  margin: 0;
  padding: 0;
  list-style: none;
  pointer-events: auto;
}

.lupaxa-header__nav-item {
  display: flex;
  height: 100%;
  align-items: stretch;
  margin: 0;
  padding: 0;
  pointer-events: auto;
}

.lupaxa-header__nav-link {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  align-items: center;
  padding: 0 1rem;
  color: rgb(255 255 255 / 72%);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  background: none;
  border-radius: 0;
  box-shadow: none;
  pointer-events: auto;
  transition:
    color var(--lupaxa-transition-fast),
    font-weight var(--lupaxa-transition-fast);
}

.lupaxa-header__nav-link:hover,
.lupaxa-header__nav-link:focus-visible {
  color: var(--lupaxa-white);
  font-weight: 700;
  background: none;
  box-shadow: none;
}

.lupaxa-header__nav-item--active .lupaxa-header__nav-link {
  color: var(--lupaxa-white);
  font-weight: 700;
  background: none;
  box-shadow: none;
}

.lupaxa-header__nav-item--active .lupaxa-header__nav-link::after {
  position: absolute;
  right: 1rem;
  bottom: 1.8rem;
  left: 1rem;
  height: 2px;
  content: "";
  background-color: var(--lupaxa-light-blue);
  border-radius: var(--lupaxa-radius-pill);
  pointer-events: none;
}

/* Material controls */

.lupaxa-header__drawer-button {
  display: none;
  margin: 0;
  color: var(--lupaxa-white);
}

.lupaxa-header__inner > .md-header__option {
  position: relative;
  z-index: 3;
  width: auto;
  flex: 0 0 auto;
  margin-left: auto;
  pointer-events: auto;
}

.lupaxa-header__inner > .md-header__option .md-header__button {
  margin: 0;
}

/* Repository link (top right) */

.lupaxa-header__inner > .md-header__source {
  position: relative;
  z-index: 3;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  margin-left: auto;
  padding-right: 0.25rem;
  pointer-events: auto;
}

.lupaxa-header__inner > .md-header__option + .md-header__source {
  margin-left: 0.5rem;
}

.md-header__source .md-source {
  color: rgb(255 255 255 / 85%);
  text-decoration: none;
}

.md-header__source .md-source:hover,
.md-header__source .md-source:focus-visible {
  color: var(--lupaxa-white);
}

.md-header__source .md-source__repository {
  max-width: 14rem;
}
