@import url("/fonts/geist.css");

:root {
  color-scheme: dark;
  --docs-bg: #090b0e;
  --docs-panel: #101419;
  --docs-panel-2: #151a21;
  --docs-line: #29313b;
  --docs-line-soft: #202731;
  --docs-text: #f4f7fa;
  --docs-muted: #aeb7c2;
  --docs-muted-2: #788391;
  --docs-teal: #55dfc1;
  --docs-blue: #83adff;
  --docs-amber: #f2bc67;
  --docs-rose: #ef8e9a;
  --docs-sidebar: 264px;
  --docs-toc: 216px;
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--docs-bg);
  color: var(--docs-text);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--docs-bg);
}

body.docs-nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: var(--docs-sidebar) minmax(0, 1fr) auto;
  align-items: center;
  min-height: 64px;
  border-bottom: 1px solid var(--docs-line);
  background: rgba(9, 11, 14, 0.96);
  backdrop-filter: blur(16px);
}

.docs-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 0 22px;
  border-right: 1px solid var(--docs-line);
  font-size: 17px;
  font-weight: 750;
}

.docs-brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.docs-brand small {
  color: var(--docs-muted-2);
  font-size: 12px;
  font-weight: 650;
}

.docs-search-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(520px, calc(100% - 32px));
  height: 38px;
  margin-left: 24px;
  padding: 0 12px;
  border: 1px solid var(--docs-line);
  border-radius: 7px;
  background: var(--docs-panel);
  color: var(--docs-muted);
  cursor: pointer;
}

.docs-search-button:hover {
  border-color: #3b4653;
  color: var(--docs-text);
}

.docs-search-button kbd {
  padding: 2px 7px;
  border: 1px solid var(--docs-line);
  border-radius: 5px;
  background: #0b0e12;
  color: var(--docs-muted-2);
  font-size: 11px;
}

.docs-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 20px;
}

.docs-top-actions a {
  padding: 9px 11px;
  color: var(--docs-muted);
  font-size: 13px;
  font-weight: 650;
}

.docs-top-actions a:hover {
  color: var(--docs-text);
}

.docs-top-actions .docs-app-link {
  border-radius: 7px;
  background: var(--docs-text);
  color: #0a0d10;
}

.docs-menu-button {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--docs-line);
  border-radius: 7px;
  background: var(--docs-panel);
  font-size: 20px;
  cursor: pointer;
}

.docs-layout {
  display: grid;
  grid-template-columns: var(--docs-sidebar) minmax(0, 1fr) var(--docs-toc);
  min-height: calc(100vh - 64px);
}

.docs-sidebar {
  position: sticky;
  top: 64px;
  align-self: start;
  height: calc(100vh - 64px);
  padding: 22px 14px 40px;
  overflow-y: auto;
  border-right: 1px solid var(--docs-line);
  background: #0c0f13;
}

.docs-sidebar-close {
  display: none;
}

.docs-nav-group {
  margin-bottom: 24px;
}

.docs-nav-group-title {
  display: block;
  margin: 0 10px 8px;
  color: var(--docs-muted-2);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.docs-nav-link {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin: 2px 0;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  color: var(--docs-muted);
  font-size: 14px;
  line-height: 1.25;
}

.docs-nav-link:hover {
  background: rgba(255, 255, 255, 0.035);
  color: var(--docs-text);
}

.docs-nav-link.active {
  border-left-color: var(--docs-teal);
  background: rgba(85, 223, 193, 0.075);
  color: var(--docs-text);
  font-weight: 700;
}

.docs-main {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 54px 56px 90px;
}

.docs-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--docs-muted-2);
  font-size: 13px;
}

.docs-breadcrumbs a:hover {
  color: var(--docs-text);
}

.docs-page-header {
  padding-bottom: 34px;
  border-bottom: 1px solid var(--docs-line-soft);
}

.docs-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--docs-teal);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.docs-kicker::before {
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

.docs-page-header h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 760;
  line-height: 1.03;
}

.docs-page-header .lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--docs-muted);
  font-size: 18px;
  line-height: 1.55;
}

.docs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 18px;
  color: var(--docs-muted-2);
  font-size: 12px;
}

.docs-content {
  color: #dce2e9;
  font-size: 16px;
  line-height: 1.72;
}

.docs-content section {
  padding-top: 44px;
}

.docs-content h2 {
  margin: 0 0 14px;
  color: var(--docs-text);
  font-size: 29px;
  line-height: 1.18;
}

.docs-content h3 {
  margin: 30px 0 10px;
  color: var(--docs-text);
  font-size: 20px;
  line-height: 1.25;
}

.docs-content p {
  margin: 0 0 16px;
}

.docs-content strong {
  color: var(--docs-text);
}

.docs-content a:not(.docs-card-link):not(.docs-next-link):not(.docs-shot) {
  color: var(--docs-blue);
  text-decoration: underline;
  text-decoration-color: rgba(131, 173, 255, 0.35);
  text-underline-offset: 3px;
}

.docs-content ul,
.docs-content ol {
  margin: 14px 0 20px;
  padding-left: 24px;
}

.docs-content li {
  margin: 7px 0;
}

.docs-content code {
  padding: 2px 5px;
  border: 1px solid var(--docs-line-soft);
  border-radius: 4px;
  background: #10151b;
  color: #d7e6ff;
  font-size: 0.88em;
}

.docs-code {
  margin: 18px 0 22px;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--docs-line);
  border-radius: 7px;
  background: #0a0d11;
  color: #d3deeb;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.docs-callout {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr);
  margin: 22px 0;
  border: 1px solid var(--docs-line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--docs-panel);
}

.docs-callout::before {
  background: var(--docs-blue);
  content: "";
}

.docs-callout.tip::before {
  background: var(--docs-teal);
}

.docs-callout.warning::before {
  background: var(--docs-amber);
}

.docs-callout.danger::before {
  background: var(--docs-rose);
}

.docs-callout-body {
  padding: 14px 16px;
}

.docs-callout-body strong {
  display: block;
  margin-bottom: 4px;
}

.docs-callout-body p:last-child {
  margin-bottom: 0;
}

.docs-table-wrap {
  margin: 20px 0 26px;
  overflow-x: auto;
  border: 1px solid var(--docs-line);
  border-radius: 7px;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}

.docs-table th,
.docs-table td {
  min-width: 140px;
  padding: 12px 14px;
  border-right: 1px solid var(--docs-line-soft);
  border-bottom: 1px solid var(--docs-line-soft);
  text-align: left;
  vertical-align: top;
}

.docs-table th {
  background: #141a21;
  color: var(--docs-text);
  font-size: 12px;
  text-transform: uppercase;
}

.docs-table tr:last-child td {
  border-bottom: 0;
}

.docs-table th:last-child,
.docs-table td:last-child {
  border-right: 0;
}

.docs-steps {
  display: grid;
  gap: 1px;
  margin: 22px 0;
  border: 1px solid var(--docs-line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--docs-line-soft);
  counter-reset: docs-step;
}

.docs-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--docs-panel);
  counter-increment: docs-step;
}

.docs-step::before {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(85, 223, 193, 0.45);
  border-radius: 50%;
  color: var(--docs-teal);
  content: counter(docs-step);
  font-size: 12px;
  font-weight: 750;
}

.docs-step strong {
  display: block;
  margin-bottom: 3px;
}

.docs-step p {
  margin: 0;
  color: var(--docs-muted);
  font-size: 14px;
  line-height: 1.55;
}

.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.docs-card-link {
  min-height: 152px;
  padding: 18px;
  border: 1px solid var(--docs-line);
  border-radius: 7px;
  background: var(--docs-panel);
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.docs-card-link:hover {
  border-color: #44505e;
  background: var(--docs-panel-2);
  transform: translateY(-2px);
}

.docs-card-link span {
  display: block;
  margin-bottom: 18px;
  color: var(--docs-teal);
  font-size: 12px;
  font-weight: 750;
}

.docs-card-link strong {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
}

.docs-card-link p {
  margin: 0;
  color: var(--docs-muted);
  font-size: 14px;
  line-height: 1.5;
}

.docs-shot {
  display: block;
  margin: 24px 0 28px;
  border: 1px solid var(--docs-line);
  border-radius: 7px;
  overflow: hidden;
  background: #0b0e12;
}

.docs-shot a {
  display: block;
}

.docs-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.docs-shot figcaption {
  padding: 10px 13px;
  border-top: 1px solid var(--docs-line-soft);
  color: var(--docs-muted-2);
  font-size: 12px;
}

.docs-checklist {
  display: grid;
  gap: 8px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.docs-checklist li {
  position: relative;
  margin: 0;
  padding: 10px 12px 10px 38px;
  border-bottom: 1px solid var(--docs-line-soft);
}

.docs-checklist li::before {
  position: absolute;
  top: 11px;
  left: 10px;
  color: var(--docs-teal);
  content: "✓";
  font-weight: 800;
}

.docs-toc {
  position: sticky;
  top: 64px;
  align-self: start;
  height: calc(100vh - 64px);
  padding: 38px 24px 40px 18px;
  overflow-y: auto;
}

.docs-toc strong {
  display: block;
  margin-bottom: 11px;
  color: var(--docs-muted-2);
  font-size: 11px;
  text-transform: uppercase;
}

.docs-toc a {
  display: block;
  padding: 5px 0;
  color: var(--docs-muted-2);
  font-size: 12px;
  line-height: 1.35;
}

.docs-toc a:hover,
.docs-toc a.active {
  color: var(--docs-text);
}

.docs-page-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--docs-line);
}

.docs-next-link {
  min-height: 94px;
  padding: 14px 16px;
  border: 1px solid var(--docs-line);
  border-radius: 7px;
  background: var(--docs-panel);
}

.docs-next-link:hover {
  border-color: #45515f;
  background: var(--docs-panel-2);
}

.docs-next-link.next {
  text-align: right;
}

.docs-next-link small {
  display: block;
  margin-bottom: 7px;
  color: var(--docs-muted-2);
  font-size: 11px;
  text-transform: uppercase;
}

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

.docs-footer {
  margin-top: 48px;
  color: var(--docs-muted-2);
  font-size: 12px;
}

.docs-search-dialog {
  width: min(680px, calc(100% - 28px));
  max-height: min(680px, calc(100vh - 40px));
  padding: 0;
  border: 1px solid #3b4653;
  border-radius: 8px;
  background: #0d1116;
  color: var(--docs-text);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.64);
}

.docs-search-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.docs-search-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--docs-line);
}

.docs-search-head input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--docs-line);
  border-radius: 6px;
  outline: 0;
  background: #090c10;
  color: var(--docs-text);
}

.docs-search-head input:focus {
  border-color: var(--docs-teal);
}

.docs-search-close {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--docs-line);
  border-radius: 6px;
  background: var(--docs-panel);
  cursor: pointer;
}

.docs-search-results {
  max-height: 520px;
  padding: 8px;
  overflow-y: auto;
}

.docs-search-result,
.docs-search-empty {
  display: block;
  padding: 13px 14px;
  border-radius: 6px;
}

.docs-search-result:hover,
.docs-search-result:focus {
  outline: 0;
  background: var(--docs-panel-2);
}

.docs-search-result strong {
  display: block;
  margin-bottom: 4px;
}

.docs-search-result span,
.docs-search-empty {
  color: var(--docs-muted);
  font-size: 13px;
}

.docs-overlay {
  display: none;
}

@media (max-width: 1180px) {
  .docs-topbar {
    grid-template-columns: var(--docs-sidebar) minmax(0, 1fr) auto;
  }

  .docs-layout {
    grid-template-columns: var(--docs-sidebar) minmax(0, 1fr);
  }

  .docs-toc {
    display: none;
  }
}

@media (max-width: 820px) {
  .docs-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0 12px;
  }

  .docs-brand {
    padding: 0;
    border-right: 0;
  }

  .docs-brand small,
  .docs-top-actions > a:not(.docs-app-link) {
    display: none;
  }

  .docs-search-button {
    width: calc(100% - 16px);
    margin-left: 8px;
  }

  .docs-search-button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .docs-search-button kbd {
    display: none;
  }

  .docs-menu-button {
    display: block;
  }

  .docs-top-actions {
    gap: 6px;
    padding-right: 0;
  }

  .docs-top-actions .docs-app-link {
    display: none;
  }

  .docs-layout {
    display: block;
  }

  .docs-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 80;
    width: min(310px, calc(100vw - 48px));
    height: 100vh;
    padding-top: 58px;
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

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

  .docs-sidebar-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: block;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--docs-line);
    border-radius: 6px;
    background: var(--docs-panel);
    cursor: pointer;
  }

  .docs-overlay {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(0, 0, 0, 0.62);
  }

  .docs-nav-open .docs-overlay {
    display: block;
  }

  .docs-main {
    width: 100%;
    padding: 36px 22px 70px;
  }

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

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

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

  .docs-next-link.next {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .docs-brand span {
    display: none;
  }

  .docs-search-button {
    justify-content: flex-start;
  }

  .docs-main {
    padding-right: 17px;
    padding-left: 17px;
  }

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

  .docs-content {
    font-size: 15px;
  }

  .docs-content h2 {
    font-size: 25px;
  }

  .docs-table th,
  .docs-table td {
    min-width: 180px;
  }
}
