/* Mobile navigation: keep the professional area visible and let the entire
   menu content scroll, rather than reserving half the screen for the footer. */
.drawer {
  bottom: auto;
  height: 100vh;
  height: 100dvh;
}

.drawer .drawer-header {
  gap: 12px;
  padding-top: max(16px, env(safe-area-inset-top));
}

.drawer .drawer-brand,
.drawer .drawer-close-btn {
  flex: 0 0 auto;
}

.drawer-pro-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  margin-inline-start: auto;
  padding: 8px 14px;
  border: 1px solid rgba(97, 177, 188, 0.45);
  border-radius: var(--r-pill);
  background: linear-gradient(165deg, rgba(97, 177, 188, 0.2), rgba(14, 58, 102, 0.3));
  color: var(--accent-soft);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

.drawer-pro-access:hover,
.drawer-pro-access[aria-current="page"] {
  background: rgba(97, 177, 188, 0.26);
  border-color: var(--accent-soft);
  color: var(--text);
}

.drawer .drawer-body {
  min-height: 0;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(154, 212, 220, 0.5) transparent;
}

.drawer .drawer-body::-webkit-scrollbar {
  width: 5px;
}

.drawer .drawer-body::-webkit-scrollbar-thumb {
  border-radius: var(--r-pill);
  background: rgba(154, 212, 220, 0.5);
}

.drawer .drawer-section,
.drawer .drawer-footer {
  flex: 0 0 auto;
}

/* The language panel grows inside the same scroll area so it cannot be
   clipped behind the header or a separate fixed footer. */
.drawer .drawer-lang {
  display: block;
  width: 100%;
}

.drawer .drawer-lang-menu {
  display: none;
  position: static;
  width: 100%;
  max-height: none;
  margin-top: 8px;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.drawer .drawer-lang.open .drawer-lang-menu {
  display: block;
}

.drawer-scroll-hint {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 28px;
  padding: 5px 16px max(6px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(97, 177, 188, 0.14);
  background: rgba(3, 10, 22, 0.8);
  color: var(--accent-soft);
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
  visibility: hidden;
}

.drawer.has-more-content .drawer-scroll-hint {
  visibility: visible;
}

@media (max-width: 359px) {
  .drawer .drawer-header {
    gap: 8px;
    padding-inline: 16px;
  }

  .drawer .drawer-brand img {
    height: 28px;
  }

  .drawer-pro-access {
    padding-inline: 10px;
  }
}
