.docs-site-shell {
  overflow: visible;
}

.docs-page-main {
  width: min(calc(100% - 64px), 1380px);
  margin: 0 auto;
}

.docs-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding: 34px 0 72px;
}

.docs-sidebar {
  position: sticky;
  top: 18px;
  min-width: 0;
  align-self: start;
}

.docs-sidebar__desktop {
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 14px 18px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(130, 148, 168, .16) transparent;
}

.docs-sidebar__desktop::-webkit-scrollbar {
  width: 6px;
}

.docs-sidebar__desktop::-webkit-scrollbar-track {
  background: transparent;
}

.docs-sidebar__desktop::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(130, 148, 168, .16);
}

.docs-sidebar__mobile {
  display: none;
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.docs-nav__group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 12px;
}

.docs-nav__group::before {
  content: "";
  position: absolute;
  top: 25px;
  bottom: 0;
  left: 0;
  width: 1px;
  background: rgba(148, 163, 184, .08);
}

.docs-nav__title {
  margin: 0 0 6px -12px;
  color: #758398;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.docs-nav__link {
  position: relative;
  display: block;
  padding: 6px 8px;
  border-radius: 5px;
  color: #96a4b7;
  font-size: 12px;
  line-height: 1.35;
  transition: background .15s ease, color .15s ease;
}

.docs-nav__link::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: -13px;
  width: 2px;
  border-radius: 999px;
  background: transparent;
}

.docs-nav__link:hover {
  background: rgba(255, 255, 255, .025);
  color: #e6edf6;
}

.docs-nav__link.is-active {
  background: rgba(94, 105, 255, .085);
  color: #c1c9ff;
}

.docs-nav__link.is-active::before {
  background: #7378ff;
}

.docs-content {
  min-width: 0;
}

.docs-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px) 190px;
  justify-content: center;
  gap: 54px;
  align-items: start;
}

.docs-article {
  min-width: 0;
}

.docs-article__header {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 30px;
}

.docs-eyebrow {
  margin: 0 0 10px;
  color: #7184ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.docs-article h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 52px);
  line-height: 1.04;
  letter-spacing: -.04em;
}

.docs-lead {
  max-width: 680px;
  margin: 14px 0 0;
  color: #b2bfd0;
  font-size: 18px;
  line-height: 1.6;
}

.docs-article > p,
.docs-section > p {
  margin: 0 0 18px;
  color: #b0bdcc;
  font-size: 15px;
  line-height: 1.78;
}

.docs-article code:not(.docs-code-block__code) {
  padding: .15em .38em;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255,255,255,.035);
  color: #dbe5f3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .9em;
}

.docs-section {
  padding-top: 18px;
  margin-top: 26px;
  scroll-margin-top: 24px;
}

.docs-section h2 {
  margin: 0 0 14px;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.docs-section .docs-code-block {
  margin: 18px 0 24px;
}

.docs-toc {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 2px 6px 18px 18px;
  border-left: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: rgba(130, 148, 168, .13) transparent;
}

.docs-toc::-webkit-scrollbar {
  width: 5px;
}

.docs-toc::-webkit-scrollbar-track {
  background: transparent;
}

.docs-toc::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(130, 148, 168, .13);
}

.docs-toc p {
  margin: 0 0 3px;
  color: #e2e9f4;
  font-size: 12px;
  font-weight: 700;
}

.docs-toc a {
  position: relative;
  color: #8290a4;
  font-size: 12px;
  line-height: 1.45;
  transition: color .15s ease;
}

.docs-toc a::before {
  content: "";
  position: absolute;
  left: -19px;
  top: .15em;
  width: 2px;
  height: 1.15em;
  border-radius: 999px;
  background: transparent;
  transition: background .15s ease;
}

.docs-toc a:hover {
  color: #b9c3ff;
}

.docs-toc a.is-active {
  color: #c8d0ff;
}

.docs-toc a.is-active::before {
  background: #7378ff;
}

.docs-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 54px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.docs-pagination a {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10,21,31,.55);
}

.docs-pagination small {
  color: #7f8ca0;
  font-size: 11px;
}

.docs-pagination strong {
  font-size: 13px;
}

html[data-theme="light"] .docs-nav__title,
html[data-theme="light"] .docs-toc a,
html[data-theme="light"] .docs-pagination small {
  color: #738197;
}

html[data-theme="light"] .docs-nav__group::before {
  background: rgba(30, 41, 59, .08);
}

html[data-theme="light"] .docs-nav__link {
  color: #59687d;
}

html[data-theme="light"] .docs-nav__link:hover {
  background: rgba(66, 77, 97, .04);
  color: #26344b;
}

html[data-theme="light"] .docs-nav__link.is-active {
  background: rgba(80, 101, 239, .07);
  color: #4e56c8;
}

html[data-theme="light"] .docs-nav__link.is-active::before {
  background: #5c63d9;
}

html[data-theme="light"] .docs-lead,
html[data-theme="light"] .docs-article > p,
html[data-theme="light"] .docs-section > p {
  color: #5c6b80;
}

html[data-theme="light"] .docs-article code:not(.docs-code-block__code) {
  background: rgba(55, 68, 88, .04);
  color: #2e3d54;
}

html[data-theme="light"] .docs-toc p {
  color: #2a374d;
}

html[data-theme="light"] .docs-toc a:hover,
html[data-theme="light"] .docs-toc a.is-active {
  color: #5459c9;
}

html[data-theme="light"] .docs-toc a.is-active::before {
  background: #5c63d9;
}

html[data-theme="light"] .docs-pagination a {
  background: rgba(255,255,255,.74);
}

@media (max-width: 1180px) {
  .docs-content-grid {
    grid-template-columns: minmax(0, 760px);
  }

  .docs-toc {
    display: none;
  }
}

@media (max-width: 860px) {
  .docs-site-shell {
    overflow: hidden;
  }

  .docs-page-main {
    width: min(calc(100% - 32px), 1380px);
  }

  .docs-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 22px;
  }

  .docs-sidebar {
    position: static;
  }

  .docs-sidebar__desktop {
    display: none;
  }

  .docs-sidebar__mobile {
    display: block;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(10,21,31,.7);
  }

  .docs-sidebar__mobile summary {
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    cursor: pointer;
    list-style: none;
    font-size: 13px;
    font-weight: 700;
  }

  .docs-sidebar__mobile summary::-webkit-details-marker {
    display: none;
  }

  .docs-sidebar__chevron {
    width: 15px;
    height: 15px;
    transition: transform .16s ease;
  }

  .docs-sidebar__mobile[open] .docs-sidebar__chevron {
    transform: rotate(180deg);
  }

  .docs-sidebar__mobile-panel {
    max-height: 62vh;
    overflow-y: auto;
    padding: 10px 12px 16px;
    border-top: 1px solid var(--line);
  }

  html[data-theme="light"] .docs-sidebar__mobile {
    background: rgba(255,255,255,.76);
  }
}

@media (max-width: 600px) {
  .docs-shell {
    padding-bottom: 48px;
  }

  .docs-article__header {
    padding-bottom: 24px;
    margin-bottom: 24px;
  }

  .docs-article h1 {
    font-size: 40px;
  }

  .docs-lead {
    font-size: 16px;
  }

  .docs-section h2 {
    font-size: 22px;
  }

  .docs-pagination {
    grid-template-columns: 1fr;
  }

  .docs-pagination a {
    grid-column: 1;
    align-items: flex-start;
  }
}
