/* Mobile nav for legacy static blog articles */
html { overflow-x: hidden; }
body.menu-open { overflow: hidden; }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 1002;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #e2e4e9;
  border-radius: 2px;
  transition: transform 0.35s, opacity 0.35s;
}

.mobile-menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.nav-overlay.open { display: block; }

@media (max-width: 768px) {
  .site-header { padding: 14px 20px; }

  .mobile-menu-toggle { display: flex; }

  .header-inner {
    position: relative;
    width: 100%;
  }

  .header-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 90px 32px 32px;
    gap: 12px;
    background: rgba(7, 6, 11, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .header-nav.open { right: 0; }

  .header-nav a,
  .header-nav .btn-get-app,
  .header-nav .header-cta {
    width: 100%;
    justify-content: center;
    font-size: 16px !important;
    padding: 12px 0;
  }

  .header-nav .btn-get-app,
  .header-nav .header-cta {
    margin-top: 8px;
    padding: 12px 20px !important;
    width: auto;
  }
}
