.site-menu-cluster {
  display: flex;
  align-items: center;
  min-width: 0;
}

.nav .nav-links {
  margin-left: auto;
}

.site-menu-btn {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.7rem;
  background: rgba(15, 23, 42, 0.28);
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.28rem;
  cursor: pointer;
  z-index: 40;
}

.site-menu-btn span {
  display: block;
  width: 1.05rem;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.site-menu-btn:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}

.nav .site-menu-btn,
.topbar .site-menu-btn {
  color: #fff;
}

.site-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.55);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.site-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.site-menu-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: min(20rem, 86vw);
  height: 100%;
  background: #0f172a;
  color: #e2e8f0;
  box-shadow: 12px 0 40px rgba(2, 6, 23, 0.4);
  transform: translateX(-105%);
  transition: transform 0.22s ease;
  padding: 1.1rem 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.site-menu-drawer.is-open {
  transform: translateX(0);
}

.site-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.site-menu-head strong {
  font-size: 1.05rem;
}

.site-menu-close {
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.site-menu-user {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0 0 0.6rem;
  word-break: break-all;
}

.site-menu-drawer a,
.site-menu-drawer button.site-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  text-decoration: none;
  color: #f8fafc;
  background: transparent;
  border: 0;
  border-radius: 0.7rem;
  padding: 0.85rem 0.8rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}

.site-menu-drawer a:hover,
.site-menu-drawer button.site-menu-item:hover {
  background: rgba(37, 99, 235, 0.28);
}

.site-menu-item.is-danger {
  color: #fecaca;
}

@media (max-width: 720px) {
  .user-email {
    display: none;
  }

  .nav-links .nav-link,
  .nav-links .nav-cta {
    display: none;
  }

  .nav-links .language-switch {
    display: inline-flex;
  }
}
