.docs-html {
  scrollbar-gutter: stable;
}

.docs-body {
  min-height: 100vh;
  overflow-y: scroll;
}

.docs-shell {
  color: #0f172a;
  background: #f5f6f8;
}

.docs-layout {
  min-height: calc(100vh - 4rem);
}

.docs-topbar {
  background: #f5f6f8;
}

.docs-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.38);
}

.docs-shell.docs-sidebar-open .docs-sidebar-backdrop {
  display: block;
}

.docs-left-column {
  border-right: 0;
  background: transparent;
}

.docs-sidebar-panel {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.7) transparent;
  padding: 1rem 0.75rem 2rem;
}

.docs-nav-home {
  display: block;
  padding: 0.45rem 0.55rem;
  color: #334155;
  text-decoration: none;
  border-left: 2px solid transparent;
  font-weight: 500;
}

.docs-nav-home:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.docs-nav-home.is-active {
  color: #1e1b4b;
  border-left-color: #6c47ff;
  background: #ede9fe;
}

.docs-nav-section {
  margin-top: 1rem;
}

.docs-nav-section-link {
  display: block;
  padding: 0 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
}

.docs-nav-section-link:hover {
  color: #0f172a;
}

.docs-nav-section-link.is-active {
  color: #1e1b4b;
}

.docs-nav-pages {
  margin-top: 0.38rem;
  border-left: 1px solid #e2e8f0;
}

.docs-nav-page-link {
  display: block;
  margin-left: 0.55rem;
  padding: 0.34rem 0.55rem;
  color: #475569;
  text-decoration: none;
  border-left: 2px solid transparent;
  font-size: 0.92rem;
  line-height: 1.45;
}

.docs-nav-page-link:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.docs-nav-page-link.is-active {
  color: #1e1b4b;
  border-left-color: #6c47ff;
  background: #ede9fe;
}

.docs-nav-page-link.is-ancestor:not(.is-active) {
  color: #3730a3;
  background: #f5f3ff;
}

.docs-nav-page-link--depth-1 {
  margin-left: 1.1rem;
  font-size: 0.88rem;
}

.docs-main {
  width: 100%;
  padding: 1.5rem 1.25rem 2.5rem;
  background: transparent;
}

.docs-reading-column {
  width: min(100%, 920px);
  margin-inline: auto;
}

.docs-main-header {
  margin-bottom: 1.6rem;
}

.docs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
}

.docs-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.docs-breadcrumb a:hover {
  color: #334155;
}

.docs-main-title {
  margin: 0.55rem 0 0;
  font-size: clamp(2rem, 1.7rem + 1.2vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #020617;
  font-weight: 800;
}

.docs-article-shell {
  width: 100%;
}

.docs-article-content {
  width: 100%;
  color: #334155;
  font-size: 1rem;
  line-height: 1.76;
}

.docs-article-content > :first-child {
  margin-top: 0;
}

.docs-article-content > :last-child {
  margin-bottom: 0;
}

.docs-article-content h2,
.docs-article-content h3 {
  color: #0f172a;
  font-weight: 700;
  letter-spacing: -0.02em;
  scroll-margin-top: 5rem;
}

.docs-article-content h2 {
  margin: 2.3rem 0 0.95rem;
  font-size: clamp(1.45rem, 1.28rem + 0.8vw, 1.95rem);
}

.docs-article-content h3 {
  margin: 1.7rem 0 0.75rem;
  font-size: clamp(1.06rem, 1rem + 0.28vw, 1.28rem);
}

.docs-article-content p,
.docs-article-content ul,
.docs-article-content ol,
.docs-article-content pre,
.docs-article-content table,
.docs-article-content blockquote {
  margin: 0.95rem 0;
}

.docs-article-content ul,
.docs-article-content ol {
  padding-left: 1.35rem;
}

.docs-article-content ul {
  list-style: disc;
}

.docs-article-content ol {
  list-style: decimal;
}

.docs-article-content li + li {
  margin-top: 0.3rem;
}

.docs-article-content a {
  color: #4f46e5;
  text-decoration: underline;
  text-decoration-color: rgba(79, 70, 229, 0.3);
  text-underline-offset: 0.16rem;
}

.docs-article-content a:hover {
  text-decoration-color: rgba(79, 70, 229, 0.72);
}

.docs-article-content strong {
  color: #0f172a;
}

.docs-article-content code {
  border: 1px solid #e2e8f0;
  border-radius: 0.35rem;
  background: #f8fafc;
  padding: 0.12rem 0.34rem;
  font-size: 0.92em;
  color: #0f172a;
}

.docs-article-content pre {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 0.4rem;
  background: #f8fafc;
  padding: 0.95rem 1.05rem;
}

.docs-article-content pre code {
  border: 0;
  background: transparent;
  padding: 0;
}

.docs-article-content blockquote {
  border-left: 3px solid rgba(79, 70, 229, 0.35);
  padding-left: 0.85rem;
  color: #475569;
}

.docs-article-content table {
  width: 100%;
  border-collapse: collapse;
}

.docs-article-content th,
.docs-article-content td {
  border-bottom: 1px solid #e2e8f0;
  padding: 0.68rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.docs-right-rail {
  position: static;
  height: 100%;
  overflow-y: scroll;
  border-left: 0;
  padding: 1.15rem 0 1.5rem 1rem;
  margin-right: 0.75rem;
}

.docs-right-rail-title {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.docs-rail-link {
  display: block;
  padding: 0.28rem 0;
  color: #64748b;
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 0.72rem;
}

.docs-rail-link:hover {
  color: #0f172a;
}

.docs-rail-link.is-active {
  border-left-color: #6c47ff;
  color: #312e81;
}

.docs-rail-link--sub {
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

.docs-callout {
  border: 1px solid #cbd5e1;
  border-radius: 0.38rem;
  background: #f8fafc;
  padding: 0.9rem 1rem;
}

.docs-callout--violet {
  border-color: rgba(108, 71, 255, 0.24);
  background: rgba(108, 71, 255, 0.05);
}

.docs-callout--teal {
  border-color: rgba(0, 191, 165, 0.28);
  background: rgba(0, 191, 165, 0.05);
}

@media (min-width: 1024px) {
  .docs-left-column {
    position: sticky;
    top: 4rem;
    align-self: start;
  }

  .docs-sidebar-panel {
    position: static;
    max-height: calc(100vh - 4rem);
    overflow-y: scroll;
  }

  .docs-main {
    padding: 2rem 3rem 3.5rem;
  }
}

@media (min-width: 1280px) {
  .docs-right-column {
    position: sticky;
    top: 4rem;
    align-self: start;
  }

  .docs-right-rail {
    max-height: calc(100vh - 4rem);
  }
}

@media (max-width: 1023px) {
  .docs-left-column {
    border-right: 0;
    background: transparent;
  }

  .docs-sidebar-panel {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(19rem, calc(100vw - 2.5rem));
    transform: translateX(calc(-100% - 1rem));
    transition: transform 170ms ease;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    box-shadow: 0 20px 34px rgba(15, 23, 42, 0.16);
  }

  .docs-shell.docs-sidebar-open .docs-sidebar-panel {
    transform: translateX(0);
  }
}
