:root {
  color-scheme: light;
  --docs-accent: #2956d9;
  --docs-accent-hover: #2043ac;
  --docs-accent-soft: #edf3ff;
  --docs-hero: #f5f8ff;
  --docs-ink: #17233c;
  --docs-text: #34435b;
  --docs-muted: #56647b;
  --docs-border: #dfe6ef;
  --docs-surface: #f7f9fc;
  --docs-code: #162135;
  --docs-code-text: #e4ecfb;
  --docs-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--docs-ink);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

a {
  color: var(--docs-accent);
  text-underline-offset: .2em;
}

a:hover { color: var(--docs-accent-hover); }

a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--docs-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.docs-width {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}

.docs-header { border-bottom: 1px solid var(--docs-border); }

.docs-header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 72px;
  gap: 6px 28px;
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  padding-block: 8px;
}

.docs-brand img { display: block; }

.docs-header-links,
.docs-languages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 14px;
}

.docs-header-links a,
.docs-languages a {
  display: block;
  padding-block: 8px;
  color: var(--docs-text);
  text-decoration: none;
}

.docs-header-links a:hover,
.docs-languages a:hover,
.docs-languages a[aria-current] { color: var(--docs-accent); }

.docs-languages { margin-inline-start: auto; }

.docs-languages a[aria-current] {
  font-weight: 650;
  text-decoration: underline;
}

.docs-intro {
  padding-block: clamp(35px, 6vw, 66px);
  border-bottom: 1px solid var(--docs-border);
  background: var(--docs-hero);
}

.docs-intro h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 49px);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.docs-intro p {
  max-width: 67ch;
  margin: 12px 0 0;
  color: var(--docs-muted);
  font-size: clamp(15px, 2vw, 18px);
}

.docs-layout {
  display: grid;
  grid-template-columns: minmax(180px, 218px) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 64px);
  padding-block: 44px 72px;
}

.docs-sidebar {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-inline-end: 1px solid var(--docs-border);
  padding-inline-end: 16px;
}

.docs-sidebar p {
  margin: 0 0 12px;
  color: var(--docs-muted);
  font-size: 13px;
  font-weight: 650;
}

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

.docs-sidebar li > ul {
  margin: 3px 0 10px 11px;
  padding-inline-start: 8px;
  border-inline-start: 1px solid var(--docs-border);
}

.docs-sidebar a {
  display: block;
  padding: 5px 10px;
  color: var(--docs-text);
  font-size: 14px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.docs-sidebar a:hover,
.docs-sidebar a[aria-current] {
  border-radius: 5px;
  background: var(--docs-accent-soft);
  color: var(--docs-accent);
}

.docs-sidebar .docs-nav-section {
  color: var(--docs-ink);
  font-weight: 700;
}

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

.docs-main [id] { scroll-margin-top: 24px; }

.docs-main > section + section {
  margin-top: 52px;
  padding-top: 34px;
  border-top: 1px solid var(--docs-border);
}

.docs-main section section + section { margin-top: 36px; }

.docs-main h2,
.docs-main h3,
.docs-main h4 { line-height: 1.3; }

.docs-main h2 {
  margin: 0 0 24px;
  font-size: clamp(23px, 4vw, 29px);
  letter-spacing: -.025em;
}

.docs-main h3 {
  margin: 0 0 12px;
  font-size: clamp(19px, 3vw, 22px);
  letter-spacing: -.015em;
}

.docs-main h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.docs-main p,
.docs-steps { color: var(--docs-text); }

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

.docs-steps {
  margin: 0 0 17px;
  padding-inline-start: 1.55em;
}

.docs-steps li + li { margin-top: 7px; }

.docs-steps li::marker {
  color: var(--docs-accent);
  font-weight: 700;
}

.docs-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--docs-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.docs-button:hover {
  background: var(--docs-accent-hover);
  color: #fff;
}

.docs-main .docs-note {
  margin: 16px 0 0;
  padding: 11px 14px;
  border-inline-start: 3px solid var(--docs-accent);
  border-radius: 0 6px 6px 0;
  background: var(--docs-accent-soft);
  font-size: 14px;
}

.docs-code {
  margin: 0;
  padding: 14px 16px;
  border-radius: 7px;
  background: var(--docs-code);
  color: var(--docs-code-text);
  font: 13px/1.65 var(--docs-mono);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  tab-size: 2;
}

code { font-family: var(--docs-mono); }

.docs-request {
  margin-bottom: 15px;
  color: #fff;
}

.docs-table {
  border: 1px solid var(--docs-border);
  border-radius: 7px;
  overflow: hidden;
}

.docs-table table {
  width: 100%;
  border-spacing: 0;
  font-size: 14px;
  line-height: 1.55;
  text-align: start;
  overflow-wrap: anywhere;
}

.docs-table th,
.docs-table td {
  padding: 10px 12px;
  vertical-align: top;
  text-align: start;
}

.docs-table thead { background: var(--docs-surface); }

.docs-table thead th {
  color: var(--docs-ink);
  font-weight: 650;
}

.docs-table tbody th,
.docs-table tbody td {
  border-top: 1px solid var(--docs-border);
  color: var(--docs-text);
}

.docs-table tbody th { font-weight: 550; }

.docs-table tbody code,
.docs-base code,
.legacy-entry summary code {
  color: var(--docs-accent-hover);
  font-size: .94em;
}

.docs-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.docs-example-legacy { margin-top: 16px; }

.docs-base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 16px 0;
}

.docs-base dt {
  color: var(--docs-muted);
  font-size: 14px;
  font-weight: 650;
}

.docs-base dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.docs-legacy-list {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.legacy-entry {
  border: 1px solid var(--docs-border);
  border-radius: 7px;
}

.legacy-entry[open] { border-color: var(--docs-accent); }

.legacy-entry summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  cursor: pointer;
  list-style: none;
}

.legacy-entry summary::-webkit-details-marker { display: none; }

.legacy-entry summary:hover { background: var(--docs-surface); }

.legacy-entry summary > span { min-width: 0; }

.legacy-entry summary code {
  display: block;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

.legacy-entry summary::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-inline-end: 5px;
  border: solid var(--docs-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.legacy-entry[open] summary::after { transform: rotate(225deg); }

.docs-legacy-body {
  padding: 14px 15px 16px;
  border-top: 1px solid var(--docs-border);
}

@media (max-width: 760px) {
  .docs-width { width: calc(100% - 36px); }

  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
    padding-block: 24px 46px;
  }

  .docs-sidebar {
    position: static;
    max-height: none;
    padding: 12px;
    border: 1px solid var(--docs-border);
    border-radius: 7px;
    background: var(--docs-surface);
  }

  .docs-sidebar p { margin: 0 8px 5px; }
  .docs-sidebar li > ul { margin: 0 0 4px 10px; }
  .docs-sidebar .docs-legacy-nav { display: none; }

  .docs-sidebar li > ul li { display: inline-block; }
  .docs-sidebar li > ul a { padding: 5px 8px; }
}

@media (max-width: 540px) {
  .docs-header-inner {
    gap: 0 16px;
    padding-block: 8px;
  }

  .docs-header-links,
  .docs-languages { gap: 0 13px; }

  .docs-languages {
    width: 100%;
    margin-inline-start: 0;
  }

  .docs-table th,
  .docs-table td { padding: 8px 6px; }

  .docs-table table { font-size: 13px; }
  .docs-examples { grid-template-columns: minmax(0, 1fr); }
}
