.docs-nav-overlay {
  display: none;
}
@media (max-width: 1023px) {
  html.docs-nav-open #sidebar {
    display: block !important;
    position: fixed !important;
    z-index: 100;
    top: 0;
    left: 0;
    height: 100dvh;
    width: min(18rem, 86vw);
    background: #000;
    overflow: auto;
    padding: 4.5rem 0 1.5rem;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);
  }
  .docs-nav-overlay.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(0, 0, 0, 0.72);
  }
}

.docs-more-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 90;
  min-width: 10rem;
  padding: 0.35rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.docs-more-menu.open {
  display: flex;
  flex-direction: column;
}
.docs-more-menu a {
  color: #d4d4d4;
  font-size: 0.875rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.5rem;
  text-decoration: none;
}
.docs-more-menu a:hover {
  background: rgba(250, 204, 21, 0.12);
  color: #facc15;
}

.docs-search-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.62);
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1rem 1rem;
}
.docs-search-modal.open {
  display: flex;
}
.docs-search-panel {
  width: min(640px, 100%);
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0b0c0e;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.docs-search-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #a3a3a3;
}
.docs-search-bar input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: #f5f5f5;
  font-size: 0.95rem;
}
.docs-search-bar kbd {
  font-size: 0.7rem;
  color: #737373;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.35rem;
  padding: 0.1rem 0.35rem;
}
.docs-search-results {
  overflow: auto;
  padding: 0.4rem;
}
.docs-search-hit {
  display: block;
  padding: 0.65rem 0.8rem;
  border-radius: 0.6rem;
  color: #d4d4d4;
  text-decoration: none;
  font-size: 0.9rem;
}
.docs-search-hit.active,
.docs-search-hit:hover {
  background: rgba(250, 204, 21, 0.12);
  color: #facc15;
}
.docs-search-empty {
  padding: 1.4rem 0.8rem;
  text-align: center;
  color: #737373;
  font-size: 0.875rem;
}
