:root {
  color-scheme: dark;
  --bg: #04050a;
  --panel: #080b14;
  --panel-raised: #0c1120;
  --text: #eaf0f8;
  --muted: #9fb0c4;
  --quiet: #6f8096;
  --line: rgba(124, 140, 255, .14);
  --line-strong: rgba(124, 140, 255, .28);
  --cyan: #2ee6ff;
  --purple: #8b6bff;
  --pink: #c98bd6;
  --green: #34e0a1;
  --sans: "IBM Plex Sans", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(70% 38% at 70% 0%, rgba(88, 75, 191, .12), transparent 72%),
    var(--bg);
  font-family: var(--sans);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
::selection { color: #04101b; background: var(--cyan); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1a2236; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #2b3a5e; }

.mono { font-family: var(--mono); }
.docs-shell { min-height: 100vh; }
.docs-frame {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  min-height: 100vh;
}

/* Sidebar */
.docs-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 100vh;
  overflow-y: auto;
  padding: 26px 18px 30px;
  border-right: 1px solid var(--line);
  background: rgba(5, 7, 14, .9);
  scrollbar-width: thin;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px 25px;
}
.sidebar-brand img {
  display: block;
  width: 138px;
  height: auto;
  opacity: .96;
}
.sidebar-brand-mark {
  display: none;
  width: 29px;
  height: 29px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #eef3ff;
  background: radial-gradient(circle at 30% 30%, #7c5cff, #3b1d9e);
  font: 600 14px var(--mono);
}
.sidebar-home {
  display: block;
  margin: 0 0 14px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  transition: color .2s, background .2s, border-color .2s;
}
.sidebar-home:hover, .sidebar-home.is-current {
  color: var(--text);
  border-color: rgba(46, 230, 255, .18);
  background: rgba(46, 230, 255, .06);
}
.sidebar-home .home-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--cyan);
  font: 10px var(--mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.sidebar-group {
  margin: 0;
  padding: 17px 0 8px;
  border-top: 1px solid rgba(124, 140, 255, .11);
}
.sidebar-group-title {
  padding: 0 12px 8px;
  color: #6f8096;
  font: 10px var(--mono);
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.sidebar-link {
  display: block;
  margin: 2px 0;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #9aaac0;
  font-size: 13px;
  line-height: 1.35;
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}
.sidebar-link:hover {
  color: var(--text);
  background: rgba(124, 140, 255, .06);
  transform: translateX(2px);
}
.sidebar-link.is-current {
  color: #e8fbff;
  border-color: rgba(46, 230, 255, .2);
  background: linear-gradient(90deg, rgba(46, 230, 255, .1), rgba(139, 107, 255, .07));
  box-shadow: inset 2px 0 var(--cyan);
}

/* Main shell and top bar */
.docs-main-shell { min-width: 0; }
.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 70px;
  padding: 13px 42px;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 5, 10, .78);
  backdrop-filter: blur(16px);
}
.docs-topbar-title {
  flex: 0 1 auto;
  color: #dbe5f1;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.docs-topbar-title .slash { margin: 0 7px; color: #50617d; }
.docs-topbar-title .subtle { color: var(--quiet); font-weight: 400; }
.docs-search {
  position: relative;
  flex: 1 1 360px;
  max-width: 440px;
  margin-left: auto;
}
.docs-search input {
  width: 100%;
  height: 38px;
  padding: 0 40px 0 39px;
  outline: 0;
  border: 1px solid rgba(124, 140, 255, .2);
  border-radius: 9px;
  color: var(--text);
  background: rgba(8, 11, 20, .86);
  font-size: 13px;
  transition: border-color .2s, box-shadow .2s;
}
.docs-search input::placeholder { color: #70819a; }
.docs-search input:focus {
  border-color: rgba(46, 230, 255, .55);
  box-shadow: 0 0 0 3px rgba(46, 230, 255, .08);
}
.docs-search .search-icon {
  position: absolute;
  top: 11px;
  left: 13px;
  width: 15px;
  height: 15px;
  color: #7e90a7;
  pointer-events: none;
}
.docs-search .shortcut {
  position: absolute;
  top: 8px;
  right: 9px;
  padding: 3px 6px;
  border: 1px solid rgba(124, 140, 255, .16);
  border-radius: 5px;
  color: #647690;
  font: 10px var(--mono);
  pointer-events: none;
}
.search-results {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  left: 0;
  display: none;
  overflow: hidden;
  border: 1px solid rgba(124, 140, 255, .24);
  border-radius: 11px;
  background: #0a0e19;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .45);
}
.search-results.is-visible { display: block; }
.search-result {
  display: block;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(124, 140, 255, .1);
  transition: background .15s;
}
.search-result:last-child { border-bottom: 0; }
.search-result:hover, .search-result:focus { outline: 0; background: rgba(124, 140, 255, .1); }
.search-result-title { color: #eaf5ff; font-size: 13px; font-weight: 600; }
.search-result-crumb { margin-top: 4px; color: #788aa3; font: 10px var(--mono); }
.search-empty { padding: 14px; color: #8091a8; font-size: 12px; line-height: 1.5; }
.site-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  color: #9fb0c4;
  font-size: 12px;
  transition: color .2s;
  white-space: nowrap;
}
.site-link:hover { color: var(--cyan); }
.site-link svg { width: 14px; height: 14px; }

/* Reading area */
.docs-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) 188px;
  align-items: start;
  gap: 64px;
  max-width: 1130px;
  margin: 0 auto;
  padding: 53px 42px 78px;
}
.docs-article { min-width: 0; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #70819a;
  font: 10.5px var(--mono);
  letter-spacing: .3px;
}
.breadcrumbs .current { color: #aab9cd; }
.breadcrumbs .separator { color: #3d4b66; }
.markdown-body {
  color: #c8d3e0;
  font-size: 15.5px;
  line-height: 1.78;
}
.markdown-body h1, .markdown-body h2, .markdown-body h3,
.markdown-body h4, .markdown-body h5, .markdown-body h6 {
  position: relative;
  scroll-margin-top: 95px;
  color: #f0f5fb;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.45px;
}
.markdown-body h1 {
  margin: 0 0 24px;
  font-size: clamp(34px, 5vw, 47px);
  letter-spacing: -1.6px;
  background: linear-gradient(120deg, #eaf6ff 0%, #b9c7ff 54%, #e5b9e4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.markdown-body h2 {
  margin: 55px 0 16px;
  padding-top: 4px;
  font-size: 27px;
  border-top: 1px solid rgba(124, 140, 255, .12);
}
.markdown-body h3 { margin: 36px 0 12px; font-size: 20px; color: #dfe9f5; }
.markdown-body h4 { margin: 28px 0 10px; font-size: 17px; color: #d6e2ee; }
.markdown-body p { margin: 0 0 18px; }
.markdown-body a {
  color: #76e9ff;
  text-decoration: underline;
  text-decoration-color: rgba(118, 233, 255, .35);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
.markdown-body a:hover { color: #c9bdff; text-decoration-color: currentColor; }
.markdown-body strong { color: #eef4fb; font-weight: 600; }
.markdown-body em { color: #d6c9e9; }
.markdown-body ul, .markdown-body ol { margin: 0 0 21px; padding-left: 27px; }
.markdown-body li { margin: 5px 0; padding-left: 4px; }
.markdown-body li::marker { color: #7888ff; }
.markdown-body blockquote {
  margin: 27px 0;
  padding: 17px 22px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 10px 10px 0;
  color: #b9c9dc;
  background: linear-gradient(90deg, rgba(46, 230, 255, .08), rgba(139, 107, 255, .04));
}
.markdown-body blockquote p:last-child { margin-bottom: 0; }
.markdown-body :not(pre) > code {
  padding: 2px 6px;
  border: 1px solid rgba(124, 140, 255, .17);
  border-radius: 5px;
  color: #d7f3fb;
  background: rgba(124, 140, 255, .09);
  font: .88em var(--mono);
}
.markdown-body pre {
  overflow-x: auto;
  margin: 23px 0 27px;
  padding: 18px 19px;
  border: 1px solid rgba(124, 140, 255, .18);
  border-radius: 11px;
  color: #d9e8f3;
  background: #070912;
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
  font: 13px/1.7 var(--mono);
}
.markdown-body pre code { font: inherit; }
.markdown-body .codehilite { margin: 23px 0 27px; }
.markdown-body .codehilite pre { margin: 0; }
.markdown-body .codehilite .hll { background-color: rgba(139, 107, 255, .13); }
.markdown-body .codehilite .c, .markdown-body .codehilite .cm,
.markdown-body .codehilite .c1, .markdown-body .codehilite .cs { color: #687b96; }
.markdown-body .codehilite .k, .markdown-body .codehilite .kd,
.markdown-body .codehilite .kn { color: #c8a5ff; }
.markdown-body .codehilite .s, .markdown-body .codehilite .s1,
.markdown-body .codehilite .s2 { color: #a9e6ba; }
.markdown-body .codehilite .nb, .markdown-body .codehilite .nf,
.markdown-body .codehilite .nc { color: #78e6ff; }
.markdown-body .codehilite .mi, .markdown-body .codehilite .mf { color: #e9b8da; }
.markdown-body table {
  width: 100%;
  margin: 25px 0 29px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid rgba(124, 140, 255, .18);
  border-radius: 10px;
  font-size: 14px;
}
.markdown-body th, .markdown-body td {
  padding: 11px 13px;
  border-right: 1px solid rgba(124, 140, 255, .11);
  border-bottom: 1px solid rgba(124, 140, 255, .11);
  text-align: left;
  vertical-align: top;
}
.markdown-body th:last-child, .markdown-body td:last-child { border-right: 0; }
.markdown-body tr:last-child td { border-bottom: 0; }
.markdown-body th { color: #e6effa; background: rgba(124, 140, 255, .09); font-weight: 600; }
.markdown-body td { color: #b8c7d8; background: rgba(8, 11, 20, .68); }
.markdown-body hr { margin: 38px 0; border: 0; border-top: 1px solid rgba(124, 140, 255, .14); }
.markdown-body img { max-width: 100%; height: auto; border-radius: 9px; }
.markdown-body dl { margin: 0 0 22px; }
.markdown-body dt { color: #e6effa; font-weight: 600; }
.markdown-body dd { margin: 4px 0 17px 20px; }
.page-unavailable {
  padding: 17px 20px;
  border: 1px solid rgba(233, 168, 212, .25);
  border-radius: 10px;
  color: #cbbdd0;
  background: rgba(233, 168, 212, .06);
}
.page-unavailable strong { display: block; margin-bottom: 5px; color: #f0cde6; }
.page-unavailable p { margin: 0; font-size: 14px; }

/* On this page and page navigation */
.docs-toc-wrap { position: sticky; top: 97px; min-width: 0; }
.docs-toc-title {
  margin: 0 0 12px;
  color: #8293ab;
  font: 10px var(--mono);
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.docs-toc { border-left: 1px solid rgba(124, 140, 255, .16); }
.docs-toc a {
  display: block;
  padding: 5px 0 5px 14px;
  color: #74869f;
  font-size: 11.5px;
  line-height: 1.4;
  transition: color .2s, border-color .2s;
}
.docs-toc a.level-3 { padding-left: 25px; color: #5e718b; }
.docs-toc a:hover { color: var(--cyan); }
.page-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 76px;
  padding-top: 20px;
  border-top: 1px solid rgba(124, 140, 255, .14);
}
.page-nav-link {
  display: flex;
  flex-direction: column;
  min-height: 72px;
  padding: 13px 15px;
  border: 1px solid rgba(124, 140, 255, .15);
  border-radius: 10px;
  background: rgba(8, 11, 20, .66);
  transition: border-color .2s, background .2s, transform .2s;
}
.page-nav-link.next { text-align: right; align-items: flex-end; }
.page-nav-link:hover { border-color: rgba(46, 230, 255, .35); background: rgba(46, 230, 255, .05); transform: translateY(-2px); }
.page-nav-link .direction { color: #71849e; font: 10px var(--mono); letter-spacing: 1px; text-transform: uppercase; }
.page-nav-link .page-name { margin-top: 7px; color: #dce8f5; font-size: 13px; font-weight: 600; }
.docs-footer { margin-top: 34px; color: #5f718a; font: 10.5px var(--mono); line-height: 1.7; }

.docs-mobilebar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 45;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 9px 15px;
  border-bottom: 1px solid var(--line);
  background: rgba(4, 5, 10, .92);
  backdrop-filter: blur(16px);
}
.mobile-brand { display: inline-flex; align-items: center; gap: 9px; }
.mobile-brand-mark {
  display: inline-flex;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #eef3ff;
  background: radial-gradient(circle at 30% 30%, #7c5cff, #3b1d9e);
  font: 600 13px var(--mono);
}
.mobile-brand-name { color: #eaf0f8; font: 600 12px var(--mono); letter-spacing: 2px; }
.menu-button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(124, 140, 255, .2);
  border-radius: 8px;
  background: rgba(124, 140, 255, .07);
  cursor: pointer;
}
.menu-button svg { width: 18px; height: 18px; }
.sidebar-backdrop { display: none; }

@media (max-width: 1180px) {
  .docs-content-layout { grid-template-columns: minmax(0, 760px); max-width: 900px; }
  .docs-toc-wrap { display: none; }
}
@media (max-width: 900px) {
  .docs-mobilebar { display: flex; }
  .docs-frame { display: block; min-height: 0; }
  .docs-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(300px, calc(100vw - 35px));
    height: 100vh;
    transform: translateX(-105%);
    transition: transform .25s ease;
    box-shadow: 18px 0 50px rgba(0, 0, 0, .42);
  }
  .docs-sidebar.is-open { transform: translateX(0); }
  .sidebar-backdrop.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 29;
    background: rgba(0, 0, 0, .55);
  }
  .docs-topbar { top: 52px; min-height: 65px; padding: 11px 18px; gap: 11px; }
  .docs-topbar-title { display: none; }
  .docs-search { flex-basis: auto; max-width: none; }
  .site-link { font-size: 11px; }
  .site-link span { display: none; }
  .docs-content-layout { display: block; padding: 34px 20px 58px; }
  .markdown-body { font-size: 15px; line-height: 1.72; }
  .markdown-body h2 { margin-top: 43px; font-size: 24px; }
  .page-nav { margin-top: 57px; }
}
@media (max-width: 520px) {
  .docs-search .shortcut { display: none; }
  .docs-search input { padding-right: 14px; }
  .site-link { display: none; }
  .markdown-body h1 { font-size: 34px; }
  .markdown-body table { display: block; overflow-x: auto; white-space: nowrap; }
  .page-nav { grid-template-columns: 1fr; }
  .page-nav-link.next { text-align: left; align-items: flex-start; }
}
