:root {
  color-scheme: light;
  --bg: #f7f8fc;
  --surface: #fff;
  --ink: #20283e;
  --muted: #626e85;
  --border: #dce2ee;
  --accent: #514dd7;
  --tint: #eeedff;
  --code: #f1f4f9;
}
:root.dark {
  color-scheme: dark;
  --bg: #0f1726;
  --surface: #192438;
  --ink: #e6ebf5;
  --muted: #adbad0;
  --border: #304057;
  --accent: #b4adff;
  --tint: #282843;
  --code: #131e30;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.7 system-ui,
    sans-serif;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
button {
  font: inherit;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
.skip {
  position: absolute;
  top: -80px;
  left: 20px;
  background: var(--surface);
  padding: 8px;
  z-index: 5;
}
.skip:focus {
  top: 10px;
}
.docs-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-weight: 800;
  font-size: 25px;
  letter-spacing: -1px;
  color: var(--ink);
  text-decoration: none;
}
.brand span {
  color: var(--accent);
}
.header-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}
.header-links a {
  text-decoration: none;
}
.theme-toggle {
  min-width: 82px;
  min-height: 36px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--code);
  color: var(--ink);
}
.docs-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 28px 80px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 64px;
}
.sidebar {
  position: sticky;
  top: 112px;
  align-self: start;
  font-size: 13px;
}
.sidebar p {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 10px;
  font-weight: 650;
  color: var(--muted);
}
.sidebar a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
}
.sidebar a:hover {
  color: var(--accent);
}
.sidebar hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}
main {
  min-width: 0;
  max-width: 810px;
}
.eyebrow {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1.6px;
  font-weight: 650;
}
h1 {
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin: 12px 0 16px;
}
.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 680px;
}
.base-url {
  display: inline-block;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.limits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px 0 0;
}
.limits div {
  border-left: 2px solid var(--border);
  padding-left: 14px;
}
.limits dt {
  font-size: 12px;
  color: var(--muted);
}
.limits dd {
  font-weight: 650;
  font-size: 18px;
  margin: 2px 0 0;
}
section {
  margin-top: 44px;
  padding-top: 8px;
}
h2 {
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
}
h3 {
  font-size: 16px;
  margin-top: 26px;
}
p {
  margin: 12px 0;
}
li {
  margin: 6px 0;
}
code,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
p code,
li code,
td code,
dd code {
  font-size: 0.88em;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.code-block {
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--code);
}
.code-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
  min-height: 40px;
}
.code-top button {
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 5px;
  color: var(--ink);
  background: var(--surface);
  font-size: 11px;
}
pre {
  margin: 0;
  padding: 16px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.85;
  tab-size: 2;
}
.note {
  background: var(--tint);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13px;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  margin: 18px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  background: var(--code);
}
th,
td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
.method {
  font-size: 10px;
  font-weight: 750;
  color: var(--accent);
  white-space: nowrap;
}
.endpoint {
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.endpoint summary {
  cursor: pointer;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.endpoint summary .method {
  margin-right: 8px;
}
.endpoint p {
  font-size: 13px;
}
.endpoint pre {
  padding: 0;
  font-size: 12px;
}
.endpoint .code-block pre {
  padding: 14px;
}
.download {
  display: inline-flex;
  text-decoration: none;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 13px;
}
.docs-footer {
  border-top: 1px solid var(--border);
  margin-top: 44px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 800px) {
  .docs-layout {
    display: block;
    padding: 24px 20px 48px;
  }
  .sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 30px;
  }
  .sidebar p,
  .sidebar hr,
  .sidebar .resource {
    display: none;
  }
  .sidebar a {
    padding: 2px 0;
    font-size: 12px;
  }
  .header-inner {
    padding: 12px 20px;
  }
  .header-links {
    gap: 14px;
  }
  .header-links .raw-link {
    display: none;
  }
  .limits dd {
    font-size: 16px;
  }
  section {
    margin-top: 34px;
  }
  .docs-footer {
    flex-wrap: wrap;
  }
}
