:root {
  --dm-header-dark: #111a18;
  --dm-header-accent: #144d43;
  --dm-header-teal: #3ecfad;
  --dm-header-radius: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(112px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 63px;
  padding: 14px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid rgba(213, 222, 219, 0.5);
  background: rgba(17, 26, 24, 0.92);
  backdrop-filter: blur(18px);
}

.site-header-minimal {
  grid-template-columns: 1fr;
  justify-items: center;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #fff;
  justify-self: start;
}

.site-header-minimal .brand-lockup {
  justify-self: center;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--dm-header-accent);
  flex-shrink: 0;
}

.brand-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
  margin: 0;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  margin: 0;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 0.88rem;
  font-weight: 500;
}

.top-nav a {
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: color 120ms, border-color 120ms;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  color: var(--dm-header-teal);
  border-bottom-color: var(--dm-header-teal);
}

.header-action-slot {
  justify-self: end;
  display: flex;
  justify-content: flex-end;
  min-width: 112px;
}

.header-action-slot.is-empty::before {
  content: "";
  display: block;
  width: 96px;
  height: 34px;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: var(--dm-header-radius);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 120ms, color 120ms;
  text-decoration: none;
}

.btn-login:hover {
  border-color: var(--dm-header-teal);
  color: var(--dm-header-teal);
}

.btn-login[hidden] {
  display: none;
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12px;
  }

  .brand-lockup,
  .header-action-slot {
    justify-self: center;
  }

  .header-action-slot {
    min-width: 96px;
  }
}
