/* Site header (SiteHeader.astro) and its account controls, shared by the
   landing, Download, and demo pages. Layout and chrome come from hardware.css. */

.top-rack {
  flex-wrap: nowrap;
}

.top-rack nav {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  align-items: center;
  justify-content: center;
}

.top-rack nav a {
  color: #a9a091;
  font: 650 0.63rem/1 var(--bs-display);
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
}

.top-rack nav a:hover {
  color: var(--bs-accent-hot);
}

.top-rack nav .nav-demo {
  padding: 10px 12px;
  border: 1px solid #4a3d2a;
  background: rgba(255, 173, 49, 0.035);
}

.auth-controls,
.auth-controls__state {
  display: flex;
  align-items: center;
}

.auth-controls {
  flex: 0 0 auto;
}

.auth-controls__state {
  gap: 10px;
}

.auth-controls__state[hidden] {
  display: none;
}

.auth-controls .bs-nav-button {
  min-height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 650 0.6875rem/1.3 var(--bs-display);
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .top-rack nav {
    display: none;
  }

  .top-rack .auth-controls {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .top-rack .bs-brand-bars {
    width: 29px;
    height: 29px;
    margin-right: 8px;
  }

  .top-rack .bs-brand-name {
    font-size: 0.7rem;
  }

  .top-rack {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .top-rack > .bs-brand {
    flex-shrink: 0;
  }

  .top-rack .auth-controls {
    flex: 0 1 auto;
    min-width: 0;
  }

  .auth-controls__state {
    min-width: 0;
    gap: 6px;
  }

  .auth-controls .bs-nav-button {
    min-width: 0;
    min-height: 36px;
    padding: 6px;
    font-size: 0.6rem;
    letter-spacing: 0.025em;
    text-align: center;
  }

  .auth-controls__link {
    flex-shrink: 0;
  }
}
