@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap");

:root {
  --doc-bg: #ffffff;
  --doc-heading: #101820;
  --doc-text: #111827;
  --doc-muted: #5f666b;
  --doc-muted-2: #6b7280;
  --doc-muted-3: #8a9096;
  --doc-border: #edf0f2;
  --doc-border-strong: #e5e7eb;
  --doc-green: #22c55e;
  --doc-green-soft: #eafaf0;
  --doc-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --doc-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 150px;
  color-scheme: light;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--doc-bg);
  color: var(--doc-text);
  font-family: var(--doc-sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.docs-shell {
  min-height: 100vh;
  background: #ffffff;
}

.docs-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  height: 72px;
  padding: 0 68px;
  border-bottom: 1px solid var(--doc-border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  text-decoration: none;
}

.docs-brand img {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14);
}

.docs-brand span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.docs-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}

.docs-search,
.docs-assistant {
  height: 44px;
  border: 1px solid var(--doc-border-strong);
  border-radius: 14px;
  background: #ffffff;
  color: var(--doc-muted);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.docs-search {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  width: 360px;
  padding: 0 14px 0 16px;
  column-gap: 12px;
}

.docs-search-icon {
  width: 20px;
  height: 20px;
  color: #374151;
}

.docs-search-placeholder {
  min-width: 0;
  overflow: hidden;
  color: #7a8086;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.docs-search kbd {
  color: #6b7280;
  font-family: var(--doc-sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
}

.docs-assistant {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 162px;
  padding: 0 16px;
  font-family: var(--doc-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.docs-assistant::before {
  content: "\2727";
  color: #374151;
  font-size: 18px;
  line-height: 1;
}

.docs-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  min-width: 0;
  white-space: nowrap;
}

.docs-nav a {
  color: #4f5853;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
}

.docs-nav a:hover {
  color: var(--doc-green);
}

.docs-lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--doc-border-strong);
  border-radius: 12px;
  background: #ffffff;
  color: #4f5853 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 18px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.docs-lang-switch:hover {
  border-color: rgba(34, 197, 94, 0.42);
  color: var(--doc-green) !important;
}

.docs-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--doc-green);
  color: #ffffff !important;
  font-weight: 700 !important;
}

.docs-cta::after {
  content: "\203A";
  margin-left: 8px;
  font-size: 18px;
  line-height: 1;
}

.docs-theme-toggle {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9ca3af;
}

.docs-theme-toggle::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 999px;
  box-shadow:
    0 -8px 0 -6px currentColor,
    0 8px 0 -6px currentColor,
    8px 0 0 -6px currentColor,
    -8px 0 0 -6px currentColor,
    6px 6px 0 -6px currentColor,
    -6px 6px 0 -6px currentColor,
    6px -6px 0 -6px currentColor,
    -6px -6px 0 -6px currentColor;
}

.docs-tabs {
  position: sticky;
  top: 72px;
  z-index: 35;
  display: flex;
  align-items: stretch;
  gap: 34px;
  height: 56px;
  padding: 0 max(68px, calc((100vw - 1680px) / 2 + 56px));
  border-bottom: 1px solid var(--doc-border);
  background: #ffffff;
}

.docs-tab {
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: #5f666b;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
  text-decoration: none;
}

.docs-tab.active {
  border-color: var(--doc-green);
  color: #202622;
  font-weight: 800;
}

.docs-layout {
  display: grid;
  grid-template-columns: 320px minmax(640px, 860px) 280px;
  column-gap: 96px;
  width: min(100%, 1680px);
  min-height: calc(100vh - 128px);
  margin: 0 auto;
}

.docs-sidebar {
  position: sticky;
  top: 128px;
  height: calc(100vh - 128px);
  overflow-y: auto;
  padding: 48px 36px 64px 56px;
  scrollbar-color: #9ca3af transparent;
  scrollbar-width: thin;
}

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

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

.docs-sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #9ca3af;
}

.sidebar-group {
  margin-bottom: 40px;
}

.docs-sidebar h2 {
  margin: 0 0 16px;
  color: #202622;
  font-size: 15px;
  font-weight: 800;
  line-height: 22px;
}

.docs-sidebar a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  margin: 0 0 8px;
  padding: 5px 18px;
  border-radius: 12px;
  color: #5f666b;
  font-size: 15px;
  font-weight: 500;
  line-height: 22px;
  text-decoration: none;
}

.docs-sidebar a.active {
  min-height: 44px;
  background: var(--doc-green-soft);
  color: var(--doc-green);
  font-weight: 800;
}

.docs-content {
  width: min(100%, 820px);
  min-width: 0;
  padding: 56px 0 96px;
}

.docs-kicker {
  margin-bottom: 16px;
  color: var(--doc-green);
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
}

.docs-content h1 {
  margin: 0 0 26px;
  color: var(--doc-heading);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.docs-content h2 {
  margin: 64px 0 28px;
  color: var(--doc-heading);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.docs-content h3 {
  margin: 40px 0 14px;
  color: var(--doc-heading);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.docs-content h1,
.docs-content h2,
.docs-content h3 {
  scroll-margin-top: 150px;
}

.docs-content p,
.docs-content li {
  max-width: 760px;
  color: var(--doc-muted);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}

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

.docs-content ul {
  margin: 0 0 32px;
  padding-left: 24px;
}

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

.docs-content code {
  padding: 0.08em 0.32em;
  border-radius: 6px;
  background: #f5f7f6;
  color: #1f2937;
  font-family: var(--doc-mono);
  font-size: 0.88em;
}

.docs-code {
  max-width: 820px;
  margin: 4px 0 32px;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid var(--doc-border-strong);
  border-radius: 12px;
  background: #fbfdfc;
  color: #2d352f;
  font-family: var(--doc-mono);
  font-size: 14px;
  line-height: 24px;
  white-space: pre;
}

.docs-code code {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.docs-table-wrap {
  width: 100%;
  max-width: 820px;
  margin: 4px 0 40px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.docs-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  color: var(--doc-muted);
}

.docs-table th,
.docs-table td {
  padding: 18px 0;
  border-top: 1px solid var(--doc-border);
  text-align: left;
  vertical-align: top;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
}

.docs-table th {
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.docs-table td {
  color: var(--doc-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.docs-table th:first-child,
.docs-table td:first-child {
  width: 24%;
  padding-right: 18px;
}

.docs-table th:nth-child(2),
.docs-table td:nth-child(2) {
  width: 32%;
  padding-right: 18px;
}

.docs-table th:nth-child(3),
.docs-table td:nth-child(3) {
  width: 44%;
}

.docs-table strong {
  color: #202622;
  font-weight: 800;
}

.docs-table td:first-child strong {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: normal;
}

.variant-icon {
  display: inline-block;
  width: 16px;
  min-width: 16px;
  color: var(--doc-green);
  font-size: 14px;
  line-height: 1;
  text-align: center;
}

.docs-table a,
.docs-content a {
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--doc-green);
}

.docs-content .docs-figure-zoom,
.docs-content .quick-card {
  border-bottom: 0;
}

.docs-figure {
  max-width: 820px;
  margin: 8px 0 36px;
}

.docs-figure-frame {
  overflow: hidden;
  border: 1px solid var(--doc-border-strong);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.docs-figure-zoom {
  display: block;
  cursor: zoom-in;
}

.docs-figure img {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
}

.docs-figure figcaption {
  margin-top: 8px;
  color: var(--doc-muted-2);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.docs-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.docs-lightbox:target {
  opacity: 1;
  pointer-events: auto;
}

.docs-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 12, 0.74);
}

.docs-lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1600px);
  max-height: 92vh;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.docs-lightbox-panel img {
  display: block;
  width: auto;
  max-width: calc(96vw - 24px);
  height: auto;
  max-height: calc(92vh - 24px);
}

.docs-lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 10px;
}

.quick-card {
  min-height: 118px;
  padding: 18px 20px;
  border: 1px solid var(--doc-border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
  text-decoration: none;
}

.quick-card strong {
  display: block;
  margin-bottom: 8px;
  color: #202722;
  font-size: 18px;
  font-weight: 700;
}

.quick-card span {
  color: var(--doc-muted-2);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.question-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 820px;
  margin-top: 46px;
  padding: 18px 16px 18px 20px;
  border: 1px solid var(--doc-border-strong);
  border-radius: 18px;
  color: #8a928d;
  font-size: 18px;
}

.question-box kbd {
  color: #8c948f;
  font-family: var(--doc-sans);
  font-size: 16px;
  font-weight: 600;
}

.send-dot {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: 8px;
  border-radius: 50%;
  background: #b9f5cd;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
}

.docs-toc {
  position: sticky;
  top: 150px;
  height: calc(100vh - 150px);
  width: 280px;
  padding: 56px 0 64px;
  overflow-y: auto;
}

.toc-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #3f4642;
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
}

.toc-title::before {
  content: "";
  width: 16px;
  height: 16px;
  background:
    linear-gradient(#3f4642, #3f4642) 5px 4px / 9px 2px no-repeat,
    linear-gradient(#3f4642, #3f4642) 5px 8px / 9px 2px no-repeat,
    linear-gradient(#3f4642, #3f4642) 5px 12px / 9px 2px no-repeat,
    radial-gradient(circle, #3f4642 1.2px, transparent 1.4px) 0 3px / 5px 5px no-repeat,
    radial-gradient(circle, #3f4642 1.2px, transparent 1.4px) 0 7px / 5px 5px no-repeat,
    radial-gradient(circle, #3f4642 1.2px, transparent 1.4px) 0 11px / 5px 5px no-repeat;
}

.docs-toc a {
  display: block;
  margin: 0 0 10px;
  color: var(--doc-muted-2);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  text-decoration: none;
}

.docs-toc a.active {
  color: var(--doc-green);
  font-weight: 800;
}

.docs-toc a.toc-sub,
.docs-toc a[data-level="3"] {
  padding-left: 18px;
  color: var(--doc-muted-3);
  font-size: 14px;
  font-weight: 500;
}

@media (min-width: 1280px) {
  .docs-layout {
    grid-template-columns: 320px minmax(640px, 860px) 280px;
  }
}

@media (max-width: 1500px) {
  .docs-topbar {
    padding-left: 44px;
    padding-right: 44px;
  }

  .docs-search {
    width: 300px;
  }

  .docs-assistant {
    min-width: 150px;
  }

  .docs-nav {
    gap: 16px;
  }

  .docs-layout {
    grid-template-columns: 300px minmax(640px, 1fr) 250px;
    column-gap: 48px;
    padding-right: 24px;
  }

  .docs-sidebar {
    padding-left: 44px;
    padding-right: 28px;
  }

  .docs-toc {
    width: 250px;
  }
}

@media (max-width: 1279px) {
  .docs-layout {
    grid-template-columns: 300px minmax(0, 820px);
    column-gap: 56px;
    width: min(100%, 1180px);
    padding-right: 40px;
  }

  .docs-toc {
    display: none;
  }
}

@media (max-width: 1180px) {
  .docs-topbar {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px 18px;
    height: auto;
    min-height: 72px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .docs-actions {
    justify-content: flex-end;
  }

  .docs-nav {
    grid-column: 1 / -1;
    justify-content: flex-end;
    overflow-x: auto;
  }
}

@media (max-width: 899px) {
  .docs-topbar,
  .docs-tabs {
    padding-left: 20px;
    padding-right: 20px;
  }

  .docs-tabs {
    gap: 24px;
    overflow-x: auto;
  }

  .docs-layout {
    display: block;
    padding: 0;
  }

  .docs-sidebar {
    display: none;
  }

  .docs-content {
    width: 100%;
    max-width: 820px;
    padding: 40px 20px 72px;
    margin: 0 auto;
  }

  .docs-content h1 {
    font-size: 34px;
    line-height: 1.16;
  }

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

  .docs-content p,
  .docs-content li {
    font-size: 17px;
    line-height: 1.65;
  }

  .docs-table {
    table-layout: auto;
  }

  .docs-table-wrap {
    overflow-x: auto;
  }

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

  .quick-grid {
    grid-template-columns: 1fr;
  }
}
