.vp-layout {
  --vp-sidebar-width: 248px;
}

.vp-sidebar {
  padding: 0;
  background: color-mix(in srgb, var(--ide-sidebar-bg) 72%, var(--ide-bg));
}

.docs-sidebar-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 24px 22px;
  border-bottom: 1px solid var(--ide-border);
}

.docs-sidebar-head span {
  color: var(--ide-text-primary);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.docs-sidebar-head a {
  color: var(--ide-accent-primary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.docs-sidebar-nav {
  padding: 12px 0 48px;
}

.docs-sidebar-nav section {
  border-bottom: 1px solid color-mix(in srgb, var(--ide-border) 65%, transparent);
}

.docs-sidebar-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 24px;
  color: var(--ide-text-secondary);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}

.docs-sidebar-section:hover,
.docs-sidebar-nav section.active > .docs-sidebar-section,
.docs-sidebar-section.active {
  color: var(--ide-text-primary);
  background: var(--ide-hover-bg);
}

.docs-sidebar-section small {
  color: var(--ide-text-tertiary);
  font: 10px var(--font-family-mono);
}

.docs-sidebar-pages {
  padding: 4px 0 12px;
}

.docs-sidebar-pages a {
  display: block;
  padding: 7px 24px 7px 32px;
  color: var(--ide-text-tertiary);
  border-left: 2px solid transparent;
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
  transition: color .15s ease, border-color .15s ease;
}

.docs-sidebar-pages a:hover {
  color: var(--ide-text-primary);
}

.docs-sidebar-pages a.active {
  color: var(--ide-accent-primary);
  border-left-color: var(--ide-accent-primary);
  font-weight: 600;
}

.docs-shell {
  display: grid;
  grid-template-columns: minmax(0, 760px) 190px;
  gap: clamp(56px, 7vw, 96px);
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 48px 120px;
}

.docs-shell.no-toc {
  display: block;
  max-width: 760px;
}

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

.docs-header {
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--ide-border);
}

.docs-eyebrow {
  margin: 0 0 16px;
  color: var(--ide-accent-primary);
  font: 600 11px/1 var(--font-family-mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.docs-header h1 {
  margin: 0;
  color: var(--ide-text-primary);
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -.045em;
}

.docs-description {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--ide-text-secondary);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -.01em;
}

.vp-doc-content {
  color: var(--ide-text-primary);
  font-size: 16px;
  line-height: 1.75;
}

.vp-doc-content > h1:first-child {
  display: none;
}

.vp-doc-content h2,
.vp-doc-content h3,
.vp-doc-content h4 {
  color: var(--ide-text-primary);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.025em;
  scroll-margin-top: calc(var(--vp-nav-height) + 24px);
}

.vp-doc-content h2 {
  margin: 64px 0 18px;
  padding-top: 4px;
  font-size: 28px;
}

.vp-doc-content h3 {
  margin: 40px 0 14px;
  font-size: 21px;
}

.vp-doc-content h4 {
  margin: 30px 0 10px;
  font-size: 17px;
}

.vp-doc-content p {
  margin: 18px 0;
}

.vp-doc-content a {
  color: var(--ide-accent-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.vp-doc-content ul,
.vp-doc-content ol {
  margin: 20px 0;
  padding-left: 22px;
}

.vp-doc-content li {
  margin: 7px 0;
  padding-left: 5px;
}

.vp-doc-content li::marker {
  color: var(--ide-accent-primary);
}

.vp-doc-content strong {
  color: var(--ide-text-primary);
  font-weight: 650;
}

.vp-doc-content blockquote {
  margin: 28px 0;
  padding: 18px 20px;
  color: var(--ide-text-secondary);
  background: var(--ide-hover-bg);
  border-left: 3px solid var(--ide-accent-primary);
}

.vp-doc-content blockquote > :first-child {
  margin-top: 0;
}

.vp-doc-content blockquote > :last-child {
  margin-bottom: 0;
}

.vp-doc-content .code-block-wrapper {
  margin: 28px 0;
  border-radius: 6px;
}

.vp-doc-content pre {
  max-width: 100%;
}

.vp-doc-content img,
.vp-doc-content video {
  max-width: 100%;
  height: auto;
}

.vp-doc-content table {
  display: block;
  width: 100%;
  margin: 28px 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 14px;
  white-space: nowrap;
}

.vp-doc-content th,
.vp-doc-content td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--ide-border);
  text-align: left;
}

.vp-doc-content th {
  color: var(--ide-text-secondary);
  font: 600 11px var(--font-family-mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.vp-doc-content hr {
  margin: 64px 0;
  border: 0;
  border-top: 1px solid var(--ide-border);
}

.docs-toc {
  position: sticky;
  top: calc(var(--vp-nav-height) + 32px);
  align-self: start;
  max-height: calc(100vh - var(--vp-nav-height) - 64px);
  overflow-y: auto;
}

.docs-toc > p {
  margin: 0 0 14px;
  color: var(--ide-text-primary);
  font: 600 11px var(--font-family-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.docs-toc nav {
  padding-left: 14px;
  border-left: 1px solid var(--ide-border);
}

.docs-toc ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-toc ul ul {
  padding-left: 10px;
}

.docs-toc a {
  display: block;
  padding: 5px 0;
  color: var(--ide-text-tertiary);
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
}

.docs-toc a:hover {
  color: var(--ide-text-primary);
}

.docs-page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--ide-border);
}

.docs-page-nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 14px 0;
  color: var(--ide-text-primary);
  text-decoration: none;
}

.docs-page-nav a.next {
  text-align: right;
}

.docs-page-nav span {
  color: var(--ide-text-tertiary);
  font: 10px var(--font-family-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.docs-page-nav strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-page-nav a:hover strong {
  color: var(--ide-accent-primary);
}

.docs-edit {
  display: inline-block;
  margin-top: 28px;
  color: var(--ide-text-tertiary);
  font-size: 12px;
}

.docs-list .docs-intro {
  margin-bottom: 48px;
}

.docs-index {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ide-border);
}

.docs-index + .docs-index {
  margin-top: 48px;
}

.docs-index > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 2px;
  color: var(--ide-text-primary);
  border-bottom: 1px solid var(--ide-border);
  text-decoration: none;
}

.docs-index span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-index strong {
  font-size: 15px;
}

.docs-index small {
  color: var(--ide-text-tertiary);
  font-size: 13px;
  line-height: 1.5;
}

.docs-index i {
  color: var(--ide-text-tertiary);
  font-style: normal;
  transition: transform .15s ease, color .15s ease;
}

.docs-index a:hover i {
  color: var(--ide-accent-primary);
  transform: translateX(4px);
}

@media (max-width: 1180px) {
  .docs-shell {
    display: block;
    max-width: 760px;
  }

  .docs-toc {
    display: none;
  }
}

@media (max-width: 960px) {
  .vp-mobile-menu-btn {
    display: flex;
  }

  .docs-shell,
  .docs-shell.no-toc {
    max-width: 760px;
    padding: 52px 28px 96px;
  }
}

@media (max-width: 680px) {
  .vp-nav {
    padding: 0 16px;
  }

  .vp-nav-actions > a,
  .vp-nav-actions > button[onclick="openSearchModal()"] {
    display: none;
  }

  .docs-shell,
  .docs-shell.no-toc {
    padding: 38px 20px 80px;
  }

  .docs-header {
    margin-bottom: 36px;
    padding-bottom: 28px;
  }

  .docs-header h1 {
    font-size: 38px;
  }

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

  .vp-doc-content {
    font-size: 15px;
  }

  .vp-doc-content h2 {
    margin-top: 50px;
    font-size: 24px;
  }

  .vp-doc-content h3 {
    font-size: 19px;
  }

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

  .docs-page-nav a.next {
    text-align: left;
  }
}
