:root {
  color-scheme: light;
  --text-body: #535b6b;
  --text-strong: #343947;
  --subtle: #888b9c;
  --nav-text: #5e6373;
  --surface: #f8f9fc;
  --surface-alt: #f0f2f7;
  --surface-hover: #f0f0f7;
  --input-border: #dedfe7;
  --code-bg: #f4f1fa;
  --code-ink: #6b43b0;
  --pre-ink: #40495d;
  --green: #26806a;
  --endpoint-bg: #f8fcfa;
  --endpoint-border: #dcece6;
  --endpoint-ink: #405b51;
  --endpoint-muted: #65796f;
  --card-hover: #fdfbff;
  --search-bg: #fbfaff;
  --search-line: #e7def9;
  --focus: #9d7ded;
  --ink: #20222e;
  --muted: #697080;
  --line: #e7e8ee;
  --purple: #6c44dc;
  --purple-light: #f1edfc;
  --paper: #fff;
  --side: #fafafd;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --header: 4.5rem;
  --sidebar: 16.75rem;
}

/* Keep printed documentation light regardless of the reader's screen theme. */
@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --ink: #edf0f7;
    --muted: #a4adbf;
    --line: #303343;
    --purple: #b99bff;
    --purple-light: #302640;
    --paper: #181922;
    --side: #1d1e29;
    --text-body: #bdc5d5;
    --text-strong: #e0e5f0;
    --subtle: #a1a9bc;
    --nav-text: #b5bdce;
    --surface: #20222e;
    --surface-alt: #292b39;
    --surface-hover: #282b3a;
    --input-border: #3c4054;
    --code-bg: #2d263b;
    --code-ink: #d2b5ff;
    --pre-ink: #d1d7e6;
    --green: #73d9b6;
    --endpoint-bg: #1d2a28;
    --endpoint-border: #344d45;
    --endpoint-ink: #c0dfd3;
    --endpoint-muted: #9eb9ad;
    --card-hover: #24202e;
    --search-bg: #252131;
    --search-line: #443653;
    --focus: #c7adff;
  }
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.625rem;
}

button,
input {
  font: inherit;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--purple);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
pre:focus-visible,
.table-wrap:focus-visible {
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.25rem;
}

.skip {
  position: fixed;
  top: -6.25rem;
  left: 1rem;
  background: var(--paper);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  top: 0.75rem;
}

.topbar {
  height: var(--header);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: #14141d;
  color: #fff;
  border-bottom: 1px solid #292932;
  display: flex;
  align-items: center;
  padding: 0 1.875rem;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #fff;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand-logo {
  width: 7.25rem;
  height: auto;
  display: block;
}

.brand-label {
  font-size: 0.8125rem;
  line-height: 1.375rem;
  color: #d4d1de;
  border-left: 1px solid #41414a;
  padding-left: 1.5rem;
  letter-spacing: 0.01em;
}

.top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-link {
  color: #bdb9ca;
  font-size: 0.75rem;
  line-height: 1.25rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.top-link:hover {
  color: #fff;
}

.pill {
  font-size: 0.625rem;
  line-height: 1.0625rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid #49414e;
  border-radius: 1.25rem;
  padding: 0.1875rem 0.625rem;
  color: #d9c8ff;
  background: #30253f;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid #55515e;
  border-radius: 0.4375rem;
  color: #eee9ff;
  background: transparent;
  cursor: pointer;
}

.theme-toggle:hover {
  background: #302b3f;
  border-color: #a18bd0;
}

.theme-toggle svg {
  width: 1.1875rem;
  height: 1.1875rem;
}

.theme-icon-sun,
:root[data-theme="dark"] .theme-icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-icon-sun {
  display: block;
}

.menu-button {
  display: none;
  color: white;
  background: none;
  border: 1px solid #55515e;
  border-radius: 0.375rem;
  width: 2.375rem;
  height: 2.375rem;
  font-size: 1.25rem;
  line-height: 2.125rem;
  cursor: pointer;
}

.sidebar {
  position: fixed;
  top: var(--header);
  bottom: 0;
  left: 0;
  width: var(--sidebar);
  background: var(--side);
  border-right: 1px solid var(--line);
  padding: 1.625rem 1.25rem 1.125rem;
  z-index: 25;
  display: flex;
  flex-direction: column;
}

.search-wrap {
  position: relative;
  margin-bottom: 1.375rem;
}

.search-wrap input {
  width: 100%;
  height: 2.5rem;
  padding: 0 2.625rem 0 2.125rem;
  border: 1px solid var(--input-border);
  background: var(--paper);
  border-radius: 0.4375rem;
  color: var(--ink);
  font-size: 0.75rem;
  line-height: 1.25rem;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 0.4375rem;
  color: var(--subtle);
  font-size: 1.0625rem;
  line-height: 1.8125rem;
}

.search-wrap kbd {
  position: absolute;
  right: 0.6875rem;
  top: 0.5625rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.1875rem;
  color: var(--subtle);
  padding: 0 0.25rem;
  border: 1px solid var(--line);
  border-radius: 0.1875rem;
}

.nav-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  flex: 1;
  padding-bottom: 1.25rem;
}

.nav-label {
  font-size: 0.625rem;
  line-height: 1.0625rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  margin: 1.3125rem 0.6875rem 0.5rem;
}

.nav-label:first-child {
  margin-top: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.4375rem 0.625rem;
  border-radius: 0.3125rem;
  color: var(--nav-text);
  font-size: 0.75rem;
  line-height: 1.125rem;
  margin: 0.125rem 0;
}

.nav-link:hover {
  text-decoration: none;
  background: var(--surface-hover);
}

.nav-link.active {
  color: var(--purple);
  background: var(--purple-light);
  font-weight: 650;
}

.nav-bullet {
  height: 0.25rem;
  width: 0.25rem;
  background: var(--subtle);
  border-radius: 50%;
  margin: 0 0.625rem 0 0.125rem;
  flex-shrink: 0;
}

.nav-link.active .nav-bullet {
  background: var(--purple);
}

.method {
  font-size: 0.5625rem;
  line-height: 0.875rem;
  letter-spacing: 0.03em;
  color: var(--green);
  font-weight: 750;
  width: 1.625rem;
}

.sidebar-foot {
  border-top: 1px solid var(--line);
  padding: 1rem 0.625rem 0;
  font-size: 0.6875rem;
  line-height: 1.1875rem;
  color: var(--subtle);
}

.sidebar-foot strong {
  display: block;
  color: var(--nav-text);
  font-weight: 550;
}

.main-shell {
  margin-left: var(--sidebar);
  padding: var(--header) 2.125rem 0;
}

.content-layout {
  max-width: 68.75rem;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 47.5rem) 10.625rem;
  gap: 3rem;
}

.article {
  min-width: 0;
  padding-bottom: 4.375rem;
}

.breadcrumb {
  font-size: 0.6875rem;
  line-height: 1.1875rem;
  color: var(--subtle);
  padding: 1.875rem 0 1.5rem;
  display: flex;
  gap: 0.5625rem;
  align-items: center;
}

.breadcrumb span:last-child {
  color: var(--nav-text);
}

.doc-section {
  padding: 2.125rem 0 2.625rem;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 5.9375rem;
}

.doc-section:first-of-type {
  padding-top: 0.25rem;
}

.section-eyebrow {
  font-size: 0.625rem;
  line-height: 1.0625rem;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 750;
  margin-bottom: 0.75rem;
}

h1,
h2 {
  font-size: 1.75rem;
  line-height: 2.1875rem;
  letter-spacing: -0.05rem;
  font-weight: 700;
  margin: 0 0 1.375rem;
}

#overview h1 {
  font-size: 2.375rem;
  line-height: 3rem;
  letter-spacing: -0.084375rem;
  max-width: 36.25rem;
}

h3[id],
.search-results {
  scroll-margin-top: calc(var(--header) + 1.5rem);
}

h3 {
  font-size: 1.125rem;
  line-height: 1.5625rem;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.01875rem;
}

p {
  margin: 0.9375rem 0;
  color: var(--text-body);
}

li {
  color: var(--text-body);
  margin: 0.5rem 0;
  padding-left: 0.25rem;
}

ul,
ol {
  padding-left: 1.375rem;
  margin: 1rem 0;
}

strong {
  color: var(--text-strong);
}

p a {
  text-decoration: underline;
  text-underline-offset: 0.1875rem;
}

code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.25rem;
  color: var(--code-ink);
  background: var(--code-bg);
  padding: 0.125rem 0.3125rem;
  border-radius: 0.25rem;
  overflow-wrap: anywhere;
}

.code-block {
  margin: 1.25rem 0;
  border: 1px solid var(--line);
  border-radius: 0.5625rem;
  overflow: hidden;
  background: var(--surface);
}

.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2.5rem;
  padding: 0 1rem;
  background: var(--surface-alt);
  border-bottom: 1px solid var(--line);
  font-size: 0.625rem;
  line-height: 1.0625rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.copy {
  border: 0;
  background: transparent;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  border-radius: 0.25rem;
  color: var(--muted);
  font-size: 0.6875rem;
  line-height: 1.1875rem;
}

.copy:hover {
  background: var(--purple-light);
  color: var(--purple);
}

pre {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin: 0;
  overflow: auto;
  padding: 1.25rem;
  tab-size: 2;
  line-height: 1.3125rem;
}

pre code {
  display: block;
  font: inherit;
  background: none;
  padding: 0;
  border-radius: 0;
  color: var(--pre-ink);
  overflow-wrap: normal;
  white-space: pre;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  margin: 1.25rem 0;
  max-width: 100%;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.75rem;
  line-height: 1.1875rem;
  text-align: left;
}

th {
  background: var(--surface);
  color: var(--nav-text);
  font-size: 0.625rem;
  line-height: 1rem;
  letter-spacing: 0.01em;
  font-weight: 650;
}

th,
td {
  padding: 0.75rem 0.9375rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

td {
  color: var(--text-body);
}

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

td:first-child {
  color: var(--text-strong);
  min-width: 7.1875rem;
}

td code {
  font-size: 0.6875rem;
  line-height: 1.125rem;
}

.start-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9375rem;
  margin-top: 1.75rem;
}

.start-links a {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 0.5625rem;
  padding: 1.25rem;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.start-links a:hover {
  border-color: var(--purple);
  background: var(--card-hover);
  text-decoration: none;
}

.start-links strong {
  font-size: 0.8125rem;
  line-height: 1.375rem;
  margin: 0.5625rem 0 0.1875rem;
}

.start-links a > span:last-child {
  font-size: 0.6875rem;
  line-height: 1.1875rem;
  color: var(--muted);
}

.start-links b {
  float: right;
  color: var(--purple);
}

.card-icon {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.1875rem;
  color: var(--purple);
  background: var(--purple-light);
  align-self: flex-start;
  padding: 0.1875rem 0.4375rem;
  border-radius: 0.3125rem;
}

.endpoint {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  border: 1px solid var(--endpoint-border);
  background: var(--endpoint-bg);
  padding: 0.6875rem 0.875rem;
  border-radius: 0.4375rem;
  margin: 0 0 1.375rem;
  max-width: 100%;
}

.endpoint > span {
  color: var(--green);
  font-size: 0.625rem;
  line-height: 1.0625rem;
  font-weight: 750;
}

.endpoint code {
  background: none;
  color: var(--endpoint-ink);
  padding: 0;
  font-size: 0.6875rem;
  line-height: 1.125rem;
}

.endpoint small {
  font-size: 0.5625rem;
  line-height: 0.9375rem;
  color: var(--endpoint-muted);
  margin-left: auto;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  display: inline-block;
  margin: 0 0.5625rem 0.125rem 0;
}

.soon {
  background: #c19239;
}

.ongoing {
  background: #299c78;
}

.ended {
  background: #939aaa;
}

.on-page {
  position: sticky;
  top: 6.875rem;
  height: fit-content;
  padding-top: 2.3125rem;
  font-size: 0.6875rem;
  line-height: 1.1875rem;
}

.on-page > span {
  font-size: 0.5625rem;
  line-height: 0.9375rem;
  letter-spacing: 0.1em;
  color: var(--subtle);
  font-weight: 700;
  text-transform: uppercase;
}

.on-page nav {
  border-left: 1px solid var(--line);
  margin-top: 0.9375rem;
  display: flex;
  flex-direction: column;
}

.on-page a {
  font-size: 0.6875rem;
  padding: 0.375rem 0 0.375rem 0.9375rem;
  margin-left: -1px;
  color: var(--muted);
  border-left: 0.125rem solid transparent;
  line-height: 1.125rem;
}

.on-page a.active {
  color: var(--purple);
  border-color: var(--purple);
}

.on-page a:hover {
  color: var(--purple);
  text-decoration: none;
}

.bottom-note {
  font-size: 0.6875rem;
  line-height: 1.1875rem;
  color: var(--subtle);
  display: flex;
  justify-content: space-between;
  gap: 0.9375rem;
  margin-top: 1.75rem;
}

.overlay {
  display: none;
}

.search-results {
  display: none;
  margin: 0 0 1.625rem;
  padding: 1.125rem;
  background: var(--search-bg);
  border: 1px solid var(--search-line);
  border-radius: 0.5625rem;
}

.search-results.visible {
  display: block;
}

.search-results h3 {
  margin: 0 0 0.625rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.search-results a {
  display: block;
  padding: 0.5625rem 0;
  border-bottom: 1px solid var(--search-line);
  font-size: 0.8125rem;
  line-height: 1.375rem;
}

.search-results a:last-child {
  border: 0;
}

.search-results small {
  display: block;
  color: var(--muted);
  font-size: 0.6875rem;
  line-height: 1.1875rem;
}

.search-results p {
  font-size: 0.75rem;
  line-height: 1.25rem;
  margin: 0.375rem 0;
}

.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 (min-width: 100rem) {
  .main-shell {
    padding-left: 3.75rem;
    padding-right: 3.75rem;
  }
  .content-layout {
    gap: 4.375rem;
  }
  body {
    font-size: 1rem;
    line-height: 1.6875rem;
  }
}

@media (max-width: 74.375rem) {
  .on-page {
    display: none;
  }
  .content-layout {
    display: block;
    max-width: 47.5rem;
  }
  .main-shell {
    padding-left: 2.125rem;
    padding-right: 2.125rem;
  }
}

@media (max-width: 50rem) {
  :root {
    --header: 4rem;
  }
  .topbar {
    padding: 0 1.125rem;
    gap: 0.75rem;
  }
  .brand-logo {
    width: 5.75rem;
  }
  .brand-label {
    padding-left: 0.875rem;
    font-size: 0.6875rem;
    line-height: 1.1875rem;
  }
  .brand {
    gap: 0.875rem;
  }
  .top-link,
  .top-right {
    gap: 0.75rem;
  }
  .menu-button {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    width: 17.5rem;
    box-shadow: 0.5rem 0 2.1875rem #11111112;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .overlay.open {
    display: block;
    position: fixed;
    inset: var(--header) 0 0;
    background: #13132366;
    z-index: 24;
  }
  .main-shell {
    margin-left: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  .breadcrumb {
    padding-top: 1.5rem;
    padding-bottom: 1.5625rem;
  }
  .doc-section {
    padding: 2rem 0;
    scroll-margin-top: 5.25rem;
  }
  #overview h1 {
    font-size: 2rem;
    line-height: 2.5rem;
  }
  h2 {
    font-size: 1.5625rem;
    line-height: 1.9375rem;
  }
}

@media (max-width: 30rem) {
  .topbar {
    padding: 0 1rem;
  }
  .brand-label {
    display: none;
  }
  .pill {
    display: none;
  }
  .main-shell {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  #overview h1 {
    font-size: 1.8125rem;
    line-height: 2.25rem;
    letter-spacing: -0.05625rem;
  }
  body {
    font-size: 0.875rem;
    line-height: 1.5rem;
  }
  .start-links {
    grid-template-columns: 1fr;
    gap: 0.625rem;
  }
  .start-links a {
    padding: 1rem;
  }
  .start-links strong {
    margin-top: 0.3125rem;
  }
  .table-wrap {
    border-radius: 0.375rem;
  }
  th,
  td {
    padding: 0.625rem 0.75rem;
  }
  pre {
    padding: 1rem;
  }
  pre {
    font-size: 0.6875rem;
    line-height: 1.1875rem;
  }
  .endpoint {
    gap: 0.5rem;
    padding: 0.625rem;
  }
  .endpoint small {
    display: none;
  }
  .bottom-note {
    flex-direction: column;
  }
  h3 {
    font-size: 1.0625rem;
    line-height: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

@media print {
  .topbar,
  .sidebar,
  .on-page,
  .overlay,
  .breadcrumb,
  .copy,
  .start-links,
  .search-results {
    display: none;
  }
  .main-shell {
    margin: 0;
    padding: 0;
  }
  .content-layout {
    display: block;
  }
  .doc-section {
    break-inside: avoid;
  }
  pre {
    white-space: pre-wrap;
  }
  pre code {
    white-space: pre-wrap;
  }
  .article {
    padding: 0;
  }
}
