:root {
  color-scheme: dark;
  --page: #101119;
  --card: #191b28;
  --ink: #f3f2fa;
  --muted: #bbb9cc;
  --line: #38374a;
  --link: #c3b8ff;
}
* {
  box-sizing: border-box;
}
body.docs-page {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font:
    17px/1.65 system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
.docs-page a,
.knowledge a {
  color: var(--link);
  text-underline-offset: 0.2em;
}
.docs-page a:hover,
.knowledge a:hover {
  color: #fff;
}
.docs-page :focus-visible,
.knowledge :focus-visible {
  outline: 3px solid #d2c9ff;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -6rem;
  background: #fff;
  color: #101119 !important;
  padding: 1rem;
  z-index: 20;
}
.skip:focus {
  top: 1rem;
}
.docs-header,
.docs-footer {
  max-width: 1360px;
  margin: auto;
  padding: 22px 28px;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.docs-header {
  border-bottom: 1px solid var(--line);
}
.docs-header nav,
.docs-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.docs-brand {
  font-size: 24px;
  font-weight: 750;
  text-decoration: none;
}
.docs-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 820px);
  gap: 56px;
  max-width: 1240px;
  padding: 32px 28px 72px;
  margin: auto;
}
.docs-sidebar {
  min-width: 0;
}
.docs-sidebar details {
  position: sticky;
  top: 16px;
  max-height: 94vh;
  overflow: auto;
  padding: 4px;
}
.docs-sidebar summary {
  font-weight: 700;
}
.docs-sidebar nav {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.docs-sidebar a {
  font-size: 15px;
  text-decoration: none;
  line-height: 1.5;
}
.docs-sidebar a[aria-current='page'] {
  color: #fff;
  font-weight: 750;
}
.docs-page main {
  min-width: 0;
}
.docs-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 24px 0;
}
.docs-page h2 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin-top: 42px;
}
.docs-page h3 {
  font-size: 1.15rem;
  line-height: 1.4;
}
.docs-page p,
.docs-page li {
  max-width: 76ch;
}
.docs-page li + li {
  margin-top: 8px;
}
.docs-page .intro {
  font-size: 1.16rem;
  color: var(--muted);
}
.docs-page .version {
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}
.breadcrumbs li + li:before {
  content: '/';
  margin-right: 10px;
}
.breadcrumbs li + li {
  margin-top: 0;
}
.toc {
  padding: 18px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.toc ol {
  margin: 8px 0;
}
.docs-page code {
  font-size: 0.9em;
  overflow-wrap: anywhere;
  background: #252334;
  padding: 2px 4px;
  border-radius: 4px;
}
.docs-page pre {
  overflow: auto;
  max-width: 100%;
  padding: 16px;
  background: var(--card);
}
.docs-page table {
  display: block;
  max-width: 100%;
  overflow: auto;
  border-collapse: collapse;
}
.docs-page td,
.docs-page th {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
}
.docs-page dt {
  font-weight: 700;
  margin-top: 18px;
}
.docs-page dd {
  margin-left: 0;
}
.docs-page figure {
  margin: 30px 0;
}
.docs-page img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.docs-page figcaption {
  font-size: 0.9rem;
  color: var(--muted);
}
.search-box {
  margin: 26px 0;
}
.search-box label {
  display: block;
  font-weight: 650;
}
.search-box input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #79738e;
  border-radius: 8px;
  background: #181923;
  color: var(--ink);
  font: inherit;
}
.search-results {
  padding: 0;
  list-style: none;
}
.search-results a {
  display: block;
  padding: 10px;
  background: var(--card);
  border-radius: 8px;
}
.search-results small {
  display: block;
  color: var(--muted);
}
.cards,
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.card,
.knowledge-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  min-width: 0;
}
.card h3,
.knowledge-card h3 {
  margin: 0 0 8px;
}
.card p {
  font-size: 0.95rem;
}
.next {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.docs-footer {
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.knowledge {
  padding-top: 64px;
  padding-bottom: 64px;
  color: var(--ink);
}
.knowledge h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 24px;
}
.knowledge h3 {
  font-size: 1.2rem;
}
.knowledge p {
  line-height: 1.65;
}
.knowledge details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.knowledge summary {
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 650;
}
.knowledge .knowledge-grid + h2 {
  margin-top: 56px;
}
.knowledge .knowledge-card a {
  display: inline-block;
  margin-top: 6px;
}
.docs-page section {
  scroll-margin-top: 20px;
}
.docs-header a {
  min-height: 30px;
}
.docs-page [hidden] {
  display: none !important;
}
@media (min-width: 901px) {
  .docs-sidebar summary {
    display: none;
  }
}
@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 20px;
  }
  .docs-sidebar details {
    position: static;
    max-height: none;
    border: 1px solid var(--line);
    padding: 14px;
    border-radius: 10px;
  }
  .docs-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .docs-header,
  .docs-footer {
    padding: 20px;
  }
  .docs-header nav {
    gap: 14px;
  }
  .docs-header nav a {
    font-size: 15px;
  }
}
@media (max-width: 560px) {
  .cards,
  .knowledge-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .docs-page h1 {
    font-size: 2rem;
  }
  .docs-sidebar nav {
    grid-template-columns: minmax(0, 1fr);
  }
  .docs-page {
    overflow-wrap: break-word;
  }
  .knowledge {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .docs-header {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Keep the supplied header usable after adding separate guide/API/language links. */
.header {
  flex-wrap: wrap;
}
.header .nav {
  flex-wrap: wrap;
  gap: 16px;
  min-width: 0;
}
.header .nav a {
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .header .nav {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    display: flex;
  }
}
@media (max-width: 720px) {
  .header .nav a[href^='#'] {
    display: none;
  }
}
