:root {
  --docs-nav-height: 3.5rem;
}

.docs-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.docs-site-header__inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
}

@media (min-width: 640px) {
  .docs-site-header__inner {
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
  }
}

.docs-site-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
}

@media (min-width: 640px) {
  .docs-site-brand {
    gap: 1rem;
  }
}

.docs-site-brand__logo {
  flex-shrink: 0;
  line-height: 0;
}

.docs-site-brand__logo img {
  display: block;
  height: 2.25rem;
  width: auto;
  max-height: 2.5rem;
  object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(99, 102, 241, 0.28));
}

@media (min-width: 640px) {
  .docs-site-brand__logo img {
    height: 3.75rem;
    max-height: 4.5rem;
  }
}

.docs-site-brand__name {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.docs-site-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  line-height: 0;
}

.docs-site-nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.docs-site-nav-toggle:focus-visible {
  outline: 2px solid #a78bfa;
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .docs-site-nav-toggle {
    display: none;
  }
}

.docs-site-nav-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

.docs-site-nav {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .docs-site-nav {
    display: flex;
  }
}

.docs-site-nav a {
  color: #94a3b8;
  text-decoration: none;
  white-space: nowrap;
  transition: color 150ms ease;
}

.docs-site-nav a:hover {
  color: #fff;
}

.docs-site-nav a.is-active {
  color: #fff;
}

.docs-site-mobile-nav {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.docs-site-mobile-nav.is-open {
  display: block;
}

@media (min-width: 768px) {
  .docs-site-mobile-nav {
    display: none !important;
  }
}

.docs-site-mobile-nav__inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

@media (min-width: 640px) {
  .docs-site-mobile-nav__inner {
    padding: 0.75rem 1.5rem;
  }
}

.docs-site-mobile-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  color: rgba(226, 232, 240, 0.9);
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 150ms ease, color 150ms ease;
}

.docs-site-mobile-nav a:hover,
.docs-site-mobile-nav a.is-active {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* Docs hub sidebar — collapsible on small screens */
.docs-sidebar-wrap {
  margin-bottom: 1.5rem;
}

@media (max-width: 1023px) {
  .docs-sidebar-wrap {
    position: sticky;
    top: var(--docs-nav-height);
    z-index: 40;
    margin-bottom: 1rem;
  }

  .docs-sidebar-panel {
    max-height: min(60vh, 24rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 1024px) {
  .docs-sidebar-wrap {
    margin-bottom: 0;
  }
}

.docs-sidebar-toggle {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@media (min-width: 1024px) {
  .docs-sidebar-toggle {
    border: none;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
  }
}

.docs-sidebar-toggle > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
  user-select: none;
}

.docs-sidebar-toggle > summary::-webkit-details-marker {
  display: none;
}

.docs-sidebar-toggle > summary::after {
  content: "▾";
  float: right;
  color: #94a3b8;
  transition: transform 150ms ease;
}

.docs-sidebar-toggle:not([open]) > summary::after {
  transform: rotate(-90deg);
}

@media (min-width: 1024px) {
  .docs-sidebar-toggle > summary {
    display: none;
  }
}

.docs-sidebar-panel {
  padding: 0 1rem 1rem;
}

@media (min-width: 1024px) {
  .docs-sidebar-toggle .docs-sidebar-panel {
    display: block !important;
  }

  .docs-sidebar-panel {
    position: sticky;
    top: 6rem;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.docs-page--dark {
  overflow-x: hidden;
  background: #020617;
  color: #e2e8f0;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

.docs-page--dark main {
  min-width: 0;
}

.docs-page--dark img,
.docs-page--dark pre {
  max-width: 100%;
}

.docs-page--dark pre {
  overflow-x: auto;
}

.docs-page--dark a {
  overflow-wrap: anywhere;
}

.docs-page--light {
  margin: 0;
  padding-top: 0;
}

.docs-page--light main,
.docs-page--light .docs-content {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .docs-page--light main,
  .docs-page--light .docs-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.docs-swagger-ui {
  height: calc(100vh - var(--docs-nav-height));
}
