.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 6vw;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 13, 16, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line, rgba(143, 212, 242, 0.16));
}

.site-header .logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.site-header .logo img {
  display: block;
  height: 28px;
  width: auto;
  max-width: 46vw;
}

.burger {
  appearance: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line, rgba(143, 212, 242, 0.16));
  border-radius: 12px;
  background: rgba(18, 21, 26, 0.8);
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ice-bright, #c5ecff);
  border-radius: 99px;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.site-header.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .burger span:nth-child(2) { opacity: 0; }
.site-header.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-drawer {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-drawer a {
  color: var(--mute, rgba(173, 198, 210, 0.62));
  font-size: 0.92rem;
}

.site-drawer a.active { color: var(--ice-bright, #c5ecff); }

.site-drawer .nav-cta {
  color: var(--graphite-deep, #0b0d10) !important;
  background: var(--ice, #8fd4f2);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
}

html:not(.is-signed-in) .auth-only {
  display: none !important;
}

html.is-signed-in .guest-only {
  display: none !important;
}

.foot-links .auth-only::before {
  content: " · ";
}

.site-backdrop {
  display: none;
}

@media (max-width: 860px) {
  .burger { display: flex; }
  .site-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 10, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.16s ease;
    z-index: 19;
  }
  .site-header.is-open + .site-backdrop,
  .site-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .site-drawer {
    display: none;
    position: absolute;
    top: calc(100% - 1px);
    right: 4vw;
    left: 4vw;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: #12151a;
    border: 1px solid var(--line, rgba(143, 212, 242, 0.16));
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
  .site-header.is-open .site-drawer { display: flex; }
  .site-drawer a {
    padding: 12px 14px;
    border-radius: 12px;
  }
  .site-drawer a:hover,
  .site-drawer a.active { background: rgba(143, 212, 242, 0.08); }
  .site-drawer .nav-cta { text-align: center; margin-top: 6px; }
}
