.docs-page {
  background: #fff;
  color: #252733;
  font-family: var(--sans);
}
.docs-page #wave-home-design { min-height: 100vh; }

/* Documentation chrome is deliberately quieter than the marketing site. */
.docs-page .wf-header-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}
.docs-page #wave-home-design .wf-header {
  width: 100%;
  max-width: none;
  height: var(--wave-header-height);
  min-height: var(--wave-header-height);
  margin: 0;
  padding: var(--wave-header-top) var(--wave-header-inset) var(--wave-header-bottom);
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #e7e7ec;
}
.docs-header-divider { width: 1px; height: 22px; background: #dedee5; }
.docs-header-label { color: #555866; font-size: 14px; font-weight: 550; }
.docs-header-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.docs-header-links > a {
  color: #5f6270;
  font-size: 13px;
  font-weight: 500;
}
.docs-header-links > a:hover { color: #3150bc; }
.docs-page #wave-home-design .docs-header-links > a.docs-header-cta {
  padding: 7px 12px;
  border-radius: 7px;
  background: #3150bc;
  color: #fff;
}
.docs-page #wave-home-design .docs-header-links > a.docs-header-cta:hover { background: #2945a5; color: #fff; }
.docs-menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid #dedee5;
  border-radius: 7px;
  background: #fff;
}
.docs-menu-icon,
.docs-menu-icon::before,
.docs-menu-icon::after {
  display: block;
  width: 15px;
  height: 1.5px;
  border-radius: 2px;
  background: #373946;
}
.docs-menu-icon { position: relative; }
.docs-menu-icon::before,
.docs-menu-icon::after { position: absolute; left: 0; content: ""; }
.docs-menu-icon::before { top: -5px; }
.docs-menu-icon::after { top: 5px; }
.docs-menu-toggle[aria-expanded="true"] .docs-menu-icon { background: transparent; }
.docs-menu-toggle[aria-expanded="true"] .docs-menu-icon::before { top: 0; rotate: 45deg; }
.docs-menu-toggle[aria-expanded="true"] .docs-menu-icon::after { top: 0; rotate: -45deg; }
.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;
}

.docs-shell {
  width: min(100%, 1440px);
  margin-inline: auto;
  padding: 40px 32px 96px;
  display: grid;
  grid-template-columns: 220px minmax(0, 800px) 190px;
  gap: 48px;
  align-items: start;
}
/* The sidebar is its own column: it stays under the header, runs the full
   height of the window and scrolls on its own, whatever the page does. */
.docs-nav {
  position: sticky;
  top: var(--wave-header-height);
  align-self: start;
  height: calc(100vh - var(--wave-header-height));
  height: calc(100dvh - var(--wave-header-height));
  margin-top: -40px;
  padding: 30px 18px 64px 0;
  border-right: 1px solid #eef0f3;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent);
}
.docs-nav:hover,
.docs-nav:focus-within { scrollbar-color: #d9dbe2 transparent; }
.docs-nav-group + .docs-nav-group { margin-top: 24px; }
.docs-nav h2 {
  margin: 0 0 5px;
  padding: 0 10px;
  color: #8b8e99;
  font: 550 12px/1.6 var(--sans);
  letter-spacing: .01em;
}
.docs-nav a {
  position: relative;
  display: block;
  padding: 5px 10px;
  border-radius: 6px;
  color: #4f525e;
  font-size: 13.5px;
  line-height: 1.45;
  transition: color 120ms ease, background-color 120ms ease;
}
.docs-nav a + a { margin-top: 1px; }
.docs-nav a:has(.docs-nav-tag) { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.docs-nav-tag { flex: none; color: #9a9ca7; font-size: 11.5px; font-weight: 450; }
.docs-nav a[aria-current="page"] .docs-nav-tag { color: #6d80c9; }
.docs-nav a:hover { background: #f4f5f8; color: #1f212b; }
.docs-nav a:focus-visible { outline: 2px solid #3150bc; outline-offset: -2px; }
.docs-nav a[aria-current="page"] {
  background: #eef1fb;
  color: #2c47ab;
  font-weight: 560;
}

.docs-main { min-width: 0; width: 100%; max-width: 800px; }
/* Copy the page as Markdown, for an agent or an editor. */
.docs-page-tools { float: right; position: relative; z-index: 1; margin: -4px 0 12px 20px; }
.docs-copy-page {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #dfe1e8;
  border-radius: 7px;
  background: #fff;
  color: #4a4d5a;
  font: 550 12.5px/1 var(--sans);
  cursor: pointer;
  transition: border-color .15s, color .15s, background-color .15s;
}
.docs-copy-page:hover { border-color: #bcc5e6; background: #fafbfe; color: #3150bc; }
.docs-copy-page:focus-visible { outline: 2px solid #3150bc; outline-offset: 2px; }
.docs-copy-page svg { flex: none; }
.docs-copy-page[data-state="copied"] { border-color: #b8dcc6; background: #f3fbf6; color: #167047; }
.docs-markdown-dialog {
  width: min(720px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid #e2e3e9;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(28, 30, 40, .18);
  color: #252733;
  font: 14px/1.6 var(--sans);
}
.docs-markdown-dialog::backdrop { background: rgba(29, 31, 40, .28); }
.docs-markdown-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.docs-markdown-dialog h2 { margin: 0; color: #20222c; font: 650 16px/1.3 var(--sans); letter-spacing: -.01em; }
.docs-markdown-dialog p { margin: 8px 0 12px; color: #666977; }
.docs-markdown-dialog textarea {
  display: block;
  width: 100%;
  height: min(60vh, 480px);
  padding: 12px;
  border: 1px solid #dfe1e8;
  border-radius: 8px;
  color: #252733;
  font: 12.5px/1.6 var(--mono);
  resize: vertical;
}
.docs-markdown-close { min-height: 32px; padding: 0 12px; border: 1px solid #dfe1e8; border-radius: 7px; background: #fff; color: #4a4d5a; font: 550 13px/1 var(--sans); cursor: pointer; }
.docs-markdown-close:focus-visible { outline: 2px solid #3150bc; outline-offset: 2px; }
.docs-main:focus { outline: none; }
.docs-navigating .wf-header-bar::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: #3150bc; transform-origin: left; animation: docs-load-progress 1.5s ease-out 150ms both; }
.docs-content-enter { animation: docs-content-in 160ms ease-out both; }
@keyframes docs-load-progress { from { transform: scaleX(0); } to { transform: scaleX(.85); } }
@keyframes docs-content-in { from { opacity: .65; transform: translateY(3px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .docs-content-enter, .docs-navigating .wf-header-bar::after { animation: none; }
  .docs-nav a { transition: none; }
}
.docs-breadcrumb {
  margin: 0 0 20px;
  color: #777a88;
  font-size: 13px;
}
.docs-breadcrumb a:hover { color: #3150bc; }
.docs-kicker {
  margin: 0 0 10px;
  color: #3150bc;
  font-size: 13px;
  font-weight: 600;
}
.docs-main h1 {
  max-width: 760px;
  color: #20222c;
  font: 650 clamp(2rem, 4vw, 2.6rem)/1.16 var(--sans);
  letter-spacing: -.035em;
  text-wrap: balance;
}
.docs-lede {
  max-width: 720px;
  margin-top: 16px;
  color: #666977;
  font-size: 17px;
  line-height: 1.65;
}
.docs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-top: 24px;
}
.docs-page #wave-home-design .docs-main .wf-button {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 7px;
  background: #3150bc;
  color: #fff;
  font-size: 13.5px;
  font-weight: 550;
}
.docs-page #wave-home-design .docs-main .wf-button:hover { background: #2945a5; }
.docs-text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  color: #3150bc;
  font-size: 13.5px;
  font-weight: 500;
}
.docs-text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.docs-section { margin-top: 52px; scroll-margin-top: calc(var(--wave-header-height) + 24px); }
.docs-section > h2,
.api-group > h2 {
  color: #242631;
  font: 650 23px/1.3 var(--sans);
  letter-spacing: -.025em;
}
.docs-section > h3 { margin-top: 30px; font-size: 17px; }
.docs-section > p,
.docs-prose {
  max-width: 720px;
  margin-top: 12px;
  color: #666977;
  font-size: 15px;
  line-height: 1.75;
}
.docs-section a:not(.wf-button):not(.docs-card) {
  color: #3150bc;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.docs-steps {
  margin: 22px 0 0;
  padding: 0;
  border-top: 1px solid #e7e7ec;
  list-style: none;
}
.docs-steps li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 3px 18px;
  padding: 18px 0;
  border-bottom: 1px solid #e7e7ec;
}
.docs-step-number {
  grid-row: 1 / span 2;
  padding-top: 2px;
  color: #3150bc;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
  text-transform: uppercase;
}
.docs-steps strong { color: #2b2d38; font-size: 14.5px; font-weight: 600; }
.docs-steps p { color: #6b6e7c; font-size: 13.5px; line-height: 1.6; }
.docs-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.docs-card {
  display: flex;
  flex-direction: column;
  min-height: 174px;
  padding: 18px;
  border: 1px solid #e2e3e9;
  border-radius: 9px;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.docs-card:hover { border-color: #bcc5e6; background: #fafbfe; }
.docs-card span { color: #858895; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.docs-card strong { margin-top: 8px; color: #292b36; font-size: 17px; font-weight: 620; }
.docs-card p { margin-top: 7px; color: #6d707e; font-size: 13.5px; line-height: 1.55; }
.docs-model-card p b { color: #4a4d5a; font-weight: 600; }
.docs-card em { margin-top: auto; padding-top: 15px; color: #3150bc; font-size: 13px; font-style: normal; font-weight: 550; }
.docs-card-grid-compact .docs-card { min-height: 0; }
.docs-card-grid-compact .docs-card em { padding-top: 12px; }
.docs-card code { font: 400 .92em/1.4 var(--mono); }

/* The docs home chooses between the three APIs, one row each. */
.docs-api-list { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.docs-section .docs-api-list a.docs-api-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 19rem);
  gap: 10px 28px;
  padding: 20px;
  border: 1px solid #e2e3e9;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.docs-section .docs-api-list a.docs-api-option:hover { border-color: #bcc5e6; background: #fafbfe; }
.docs-api-option:focus-visible { outline: 2px solid #3150bc; outline-offset: 2px; }
.docs-api-text, .docs-api-facts { display: flex; flex-direction: column; min-width: 0; }
.docs-api-kind { color: #858895; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.docs-api-option strong { margin-top: 6px; color: #292b36; font-size: 19px; font-weight: 640; letter-spacing: -.015em; }
.docs-api-summary { margin-top: 8px; color: #666977; font-size: 14px; line-height: 1.6; }
.docs-api-facts { gap: 10px; padding-top: 2px; font-size: 13px; line-height: 1.5; color: #383b47; }
.docs-api-facts b { display: block; color: #858895; font-size: 11px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.docs-api-facts code { color: #343b58; font: 400 11.5px/1.5 var(--mono); overflow-wrap: anywhere; }
.docs-api-go { grid-column: 1 / -1; color: #3150bc; font-size: 13px; font-weight: 550; }

/* The endpoints of one API: method, address, and what each is for. */
.docs-endpoints { margin: 18px 0 0; border: 1px solid #e2e3e9; border-radius: 9px; background: #fff; }
.docs-endpoints > div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 14px; align-items: baseline; padding: 14px 16px; }
.docs-endpoints > div + div { border-top: 1px solid #ececf0; }
.docs-endpoints dd { margin: 0; min-width: 0; }
.docs-endpoints dd > code { display: block; color: #30323d; font: 500 13px/1.55 var(--mono); overflow-wrap: anywhere; }
.docs-endpoints dd > span { display: block; margin-top: 3px; color: #6b6e7b; font-size: 13.5px; line-height: 1.6; }
.api-method-wss { background: #f3effb; color: #62399f; }
.docs-model-catalogue {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.docs-catalogue-card {
  display: flex;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #dfe1e8;
  border-radius: 11px;
  background: #fff;
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
a.docs-catalogue-card:hover {
  transform: translateY(-1px);
  border-color: #b9c3e5;
  box-shadow: 0 8px 24px rgba(38, 47, 79, .07);
}
.docs-catalogue-card[aria-disabled="true"] {
  border-style: dashed;
  background: #f8f8fa;
  color: #797c88;
}
.docs-catalogue-card-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.docs-catalogue-provider {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #3b3e49;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.docs-catalogue-provider img { width: 19px; height: 19px; object-fit: contain; }
.docs-model-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid #ccd4ef;
  border-radius: 999px;
  background: #f2f5ff;
  color: #3150bc;
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  text-transform: uppercase;
}
.docs-model-badge-soon { border-color: #dcdde3; background: #eeeef1; color: #6f727e; }
.docs-catalogue-type { margin-top: 30px; color: #858895; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.docs-catalogue-card h3 { margin-top: 8px; color: #292b36; font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.docs-catalogue-card code { margin-top: 8px; color: #747785; font: 400 11.5px/1.5 var(--mono); }
.docs-catalogue-card p { margin-top: 12px; color: #666a78; font-size: 13.5px; line-height: 1.55; }
.docs-catalogue-served { margin-top: 12px; color: #3150bc; font-size: 12.5px; font-weight: 600; }
.docs-catalogue-action { margin-top: auto; padding-top: 20px; color: #3150bc; font-size: 13px; font-weight: 600; }
.docs-catalogue-card[aria-disabled="true"] .docs-catalogue-action { color: #858895; }
.docs-inference-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #333;
  border-radius: 8px;
  background: #1e1e1e;
  color: #d4d4d4;
}
.docs-inference-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 6px 78px 6px 12px;
  border-bottom: 1px solid #333;
  background: #252526;
}
.docs-inference-toolbar > span { font: 500 12px/1.4 var(--mono); }
.docs-code-tabs { display: inline-flex; gap: 4px; }
.docs-code-tab {
  min-height: 29px;
  padding: 5px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #adb4c4;
  font: 500 11px/1.2 var(--sans);
}
.docs-code-tab[aria-selected="true"] { background: #37373d; color: #fff; }
.docs-code-panel[hidden] { display: none; }
.docs-inference-panel .code-block { margin: 0; border: 0; border-radius: 0; }
.docs-inference-panel .code-block pre { min-height: 390px; padding: 20px; }
.docs-inference-panel .code-toolbar { min-height: 0; height: 0; padding: 0; border: 0; }
.docs-inference-panel .code-language { display: none; }
.docs-inference-panel .code-copy { position: absolute; top: 7px; right: 12px; }
.docs-note {
  margin: 24px 0;
  padding: 2px 0 2px 16px;
  border-left: 2px solid #d5d7de;
  color: #606471;
  font-size: 14px;
  line-height: 1.7;
}
.docs-note p { margin: 0; }
.docs-note strong { color: #353943; font-weight: 600; }
.docs-note a { color: #3150bc; text-decoration: underline; text-underline-offset: 3px; }
.docs-checklist { margin-top: 20px; }
.docs-checklist > div { padding: 16px 0; border-top: 1px solid #e7e7ec; }
.docs-checklist dt { color: #353943; font-size: 14px; font-weight: 600; }
.docs-checklist dd { margin: 5px 0 0; color: #666977; font-size: 14px; line-height: 1.7; }
.code-block {
  margin-top: 20px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #333;
  border-radius: 8px;
  background: #1e1e1e;
  color: #d4d4d4;
  color-scheme: dark;
}
.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  padding: 6px 12px 6px 18px;
  border-bottom: 1px solid #333;
  background: #252526;
}
.code-language { color: #c4c4c4; font: 400 12px/1.5 var(--sans); }
.code-block pre {
  margin: 0;
  padding: 20px;
  overflow: auto;
  background: transparent;
  color: inherit;
  font: 400 13px/1.75 "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-variant-ligatures: none;
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: #555 #1e1e1e;
  tab-size: 2;
}
.code-block pre.has-line-numbers { display: grid; grid-template-columns: max-content 1fr; column-gap: 22px; }
.code-block pre:focus-visible { outline: 2px solid #75beff; outline-offset: -2px; }
.code-block code { display: block; min-width: max-content; padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.code-gutter { color: #858585; text-align: right; user-select: none; -webkit-user-select: none; }
.code-copy {
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #bdbdbd;
  cursor: pointer;
  font: 400 12px/1.4 var(--sans);
}
.code-copy:hover { background: #37373d; color: #fff; }
.code-copy:focus-visible { outline: 2px solid #75beff; outline-offset: 1px; }
/* VS Code Dark+ token palette. Keep code readable without JavaScript, too. */
.code-block .hljs-keyword,
.code-block .hljs-literal,
.code-block .hljs-type { color: #569cd6; }
.code-block .hljs-string,
.code-block .hljs-doctag,
.code-block .hljs-regexp { color: #ce9178; }
.code-block .hljs-number { color: #b5cea8; }
.code-block .hljs-comment { color: #7da66d; }
.code-block .hljs-title.function_,
.code-block .hljs-built_in { color: #dcdcaa; }
.code-block .hljs-title.class_ { color: #4ec9b0; }
.code-block .hljs-attr,
.code-block .hljs-property,
.code-block .hljs-variable,
.code-block .hljs-params { color: #9cdcfe; }
.code-block .hljs-meta { color: #c586c0; }
/* Inline code in docs prose, with or without the class: never the bare
   browser monospace at full size beside the sans text. */
.docs-inline-code,
.docs-main :is(p, li) > code:not([class]) {
  padding: 2px 5px;
  border: 1px solid #e2e4eb;
  border-radius: 4px;
  background: #f5f6f8;
  color: #343b58;
  font: 400 .9em/1.4 var(--mono);
  /* Event names such as conversation.item.input_audio_transcription.completed
     are wider than a phone: let them break rather than widen the page. */
  overflow-wrap: anywhere;
}
/* Tables: quiet header, generous rows, hairline rules. On a phone each row
   becomes a small card of label and value (see the 620px block below). */
.docs-table-frame {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid #e4e5eb;
  border-radius: 10px;
  background: #fff;
}
.docs-table {
  width: 100%;
  border-collapse: collapse;
  color: #4a4d59;
  font-size: 13.5px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.docs-table th,
.docs-table td { padding: 13px 18px; text-align: left; vertical-align: top; }
.docs-table th {
  padding-block: 10px;
  border-bottom: 1px solid #e4e5eb;
  background: #fafafb;
  color: #6b6e7b;
  font-size: 12px;
  font-weight: 550;
  letter-spacing: .01em;
  white-space: nowrap;
}
.docs-table td { border-bottom: 1px solid #eff0f3; }
.docs-table tbody tr:last-child > * { border-bottom: 0; }
.docs-table td:first-child { color: #22242e; font-weight: 550; }
.docs-table .docs-num { text-align: right; white-space: nowrap; }
.docs-table code { color: #343b58; font: 400 12.5px/1.55 var(--mono); overflow-wrap: anywhere; }
.docs-table td:first-child code { font-weight: 500; }
.docs-main .docs-section .docs-table a { color: #3150bc; text-decoration: underline; text-decoration-color: #b9c4ea; text-underline-offset: 3px; }
.docs-main .docs-section .docs-table a:hover { text-decoration-color: currentColor; }
.docs-main .docs-section .docs-table td:first-child a { text-decoration: none; }
.docs-main .docs-section .docs-table td:first-child a:hover { text-decoration: underline; text-decoration-color: currentColor; }
.docs-table small { display: block; margin-top: 2px; color: #858895; font-size: 12px; font-weight: 400; }
.docs-price { color: #22242e; font-weight: 600; }
.docs-table-codes td:first-child { width: 34%; }
.docs-table-pricing td:first-child { width: 32%; }
.docs-table-pricing td:nth-child(2),
.docs-table-pricing td:nth-child(3),
.docs-table-limits td:nth-child(2) { white-space: nowrap; }
/* A long list of short entries, the transcription languages: flowed into as
   many columns as the reading width allows, one on a phone. */
.docs-language-list {
  columns: 3 14rem;
  column-gap: 32px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.docs-language-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #ececf0;
  break-inside: avoid;
  color: #383b47;
  font-size: 14px;
  line-height: 1.5;
}
.docs-language-list li > code { flex: none; white-space: nowrap; }

.docs-toc {
  position: sticky;
  top: calc(var(--wave-header-height) + 32px);
  padding-left: 18px;
  border-left: 1px solid #e5e5ea;
}
.docs-toc p { margin-bottom: 9px; color: #353743; font-size: 12px; font-weight: 650; }
.docs-toc a { display: block; padding: 5px 0; color: #7a7d89; font-size: 12px; line-height: 1.45; }
.docs-toc a:hover { color: #3150bc; }
.docs-footer {
  width: 100%;
  padding: 24px 32px;
  border-top: 1px solid #e7e7ec;
  color: #777a87;
  font-size: 12.5px;
  text-align: center;
}
.docs-footer a:hover { color: #3150bc; }

.api-toolbar { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.api-filter {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #dfe0e6;
  border-radius: 7px;
  background: #fff;
  color: #292b36;
  font: 14px/1.4 var(--sans);
}
.api-filter::placeholder { color: #999ba6; }
.api-filter:focus { outline: 2px solid #b8c4ee; border-color: #3150bc; }
.api-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; }
.api-meta { color: #858793; font: 400 11.5px/1.5 var(--mono); }
.api-meta-row > a { flex-shrink: 0; color: #3150bc; font-size: 12px; font-weight: 550; }
.api-meta-row > a:hover { text-decoration: underline; text-underline-offset: 3px; }
.api-group { margin-top: 42px; scroll-margin-top: calc(var(--wave-header-height) + 24px); }
.api-group > h2 { padding-bottom: 10px; border-bottom: 1px solid #e7e7ec; }
.api-group > .docs-prose { margin-top: 10px; }
.api-group > .docs-prose a { color: #3150bc; text-decoration: underline; text-underline-offset: 3px; }
a.api-operation.api-link {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(130px, .7fr) 14px;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  color: inherit;
}
a.api-operation.api-link::after { content: "→"; color: #858793; font-size: 13px; }
a.api-operation.api-link:hover { border-color: #bcc5e6; background: #fafbfe; }
a.api-operation.api-link:focus-visible { outline: 2px solid #3150bc; outline-offset: 2px; }
.api-operation { margin-top: 10px; overflow: hidden; border: 1px solid #e2e3e9; border-radius: 8px; background: #fff; scroll-margin-top: calc(var(--wave-header-height) + 16px); }
.api-operation[open] { border-color: #cfd3e2; }
.api-operation summary {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) minmax(130px, .7fr) 14px;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
}
.api-operation summary::-webkit-details-marker { display: none; }
.api-operation summary::after {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #858793;
  border-bottom: 1.5px solid #858793;
  rotate: 45deg;
  content: "";
}
.api-operation[open] summary::after { rotate: 225deg; }
.api-method {
  width: max-content;
  padding: 3px 6px;
  border-radius: 4px;
  background: #eef2ff;
  color: #3150bc;
  font: 650 10px/1.4 var(--mono);
  letter-spacing: .04em;
}
.api-method-post { background: #eaf8f0; color: #167047; }
.api-method-delete { background: #fff0ef; color: #ad352c; }
.api-path { min-width: 0; overflow-wrap: anywhere; color: #30323d; font: 500 12.5px/1.5 var(--mono); }
.api-summary { color: #747784; font-size: 12.5px; text-align: right; }
.api-operation-body { padding: 2px 14px 17px; border-top: 1px solid #ececf0; }
.api-operation-body h3 { margin-top: 18px; color: #343641; font-size: 13px; }
.api-operation-body p { margin-top: 7px; color: #6b6e7b; font-size: 13px; line-height: 1.65; }
.api-parameters { margin: 8px 0 0; padding: 0; list-style: none; }
.api-parameters li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid #ececf0;
  color: #686b78;
  font-size: 12.5px;
}
.api-parameters code { color: #343641; font-family: var(--mono); }
.api-required { margin-left: 5px; color: #ad352c; font-size: 9.5px; font-weight: 650; text-transform: uppercase; }
.api-responses { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.api-response { padding: 4px 7px; border: 1px solid #e1e2e8; border-radius: 5px; color: #686b78; font: 400 11px/1.4 var(--mono); }
.api-error { margin-top: 18px; padding: 14px; border: 1px solid #edc5c1; border-radius: 7px; background: #fff6f5; color: #852c25; }

@media (max-width: 1180px) {
  .docs-shell { grid-template-columns: 210px minmax(0, 1fr); max-width: 1100px; gap: 42px; }
  .docs-toc { display: none; }
}

@media (max-width: 820px) {
  .docs-page #wave-home-design .wf-header { gap: 10px; }
  .docs-menu-toggle { display: grid; }
  .docs-header-divider { display: none; }
  .docs-header-links { gap: 14px; }
  .docs-header-links > a:not(.docs-header-cta) { display: none; }
  .docs-header-links > a.docs-header-cta { padding: 7px 10px; font-size: 12px; }
  .docs-shell { display: block; width: 100%; padding: 30px 20px 72px; }
  .docs-nav {
    position: fixed;
    top: var(--wave-header-height);
    bottom: 0;
    left: 0;
    z-index: 40;
    width: min(310px, 84vw);
    height: auto;
    max-height: none;
    margin-top: 0;
    padding: 22px 14px 40px;
    border-right: 1px solid #e2e3e9;
    background: #fff;
    -webkit-mask-image: none;
            mask-image: none;
    box-shadow: 12px 0 30px rgba(28, 30, 40, .08);
    transform: translateX(-105%);
    transition: transform .18s ease;
  }
  .docs-nav-open .docs-nav { transform: translateX(0); }
  .docs-page.docs-nav-open::before {
    position: fixed;
    inset: var(--wave-header-height) 0 0;
    z-index: 30;
    background: rgba(29, 31, 40, .22);
    content: "";
  }
  .docs-main { max-width: 760px; margin-inline: auto; }
  .docs-main h1 { font-size: clamp(1.9rem, 8vw, 2.35rem); }
  .docs-lede { font-size: 16px; }
  .docs-section { margin-top: 44px; }
  .docs-footer { padding-inline: 20px; }
}

@media (max-width: 620px) {
  .docs-card-grid,
  .docs-model-catalogue { grid-template-columns: 1fr; }
  .api-operation summary,
  a.api-operation.api-link { grid-template-columns: 54px minmax(0, 1fr) 12px; gap: 9px; }
  .api-summary { grid-column: 2; text-align: left; }
  .api-operation summary::after,
  a.api-operation.api-link::after { grid-column: 3; grid-row: 1 / span 2; }
  .docs-section .docs-api-list a.docs-api-option { grid-template-columns: 1fr; padding: 18px 16px; }
  .docs-endpoints > div { grid-template-columns: 1fr; padding: 13px 14px; }
  .api-parameters li { grid-template-columns: 1fr; gap: 3px; }
  /* Each table row becomes a card: the first cell as its title, the others
     as label and value. The roles in the markup keep it a table. */
  .docs-table-frame { overflow: visible; }
  .docs-table,
  .docs-table tbody,
  .docs-table tr,
  .docs-table td { display: block; width: auto; }
  .docs-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .docs-table tr { padding: 14px 16px; border-bottom: 1px solid #eff0f3; }
  .docs-table tbody tr:last-child { border-bottom: 0; }
  .docs-table td {
    position: relative;
    min-height: 1.6em;
    padding: 4px 0 4px calc(34% + 12px);
    border: 0;
  }
  .docs-table td::before {
    position: absolute;
    top: 5px;
    left: 0;
    width: 34%;
    color: #858895;
    content: attr(data-label);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.5;
  }
  .docs-table td:first-child { width: auto; padding: 0 0 6px; font-size: 14px; }
  .docs-table td:first-child::before { content: none; }
  .docs-table .docs-num,
  .docs-table-pricing td:nth-child(n),
  .docs-table-limits td:nth-child(n) { text-align: left; white-space: normal; }
}

@media (max-width: 700px) {
  .docs-header-label { display: none; }
}

/* Search: a field-shaped button in the header opens a dialog over the page
   (docs-search.js). */
.docs-search-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(280px, 32vw);
  height: 34px;
  margin-left: 18px;
  padding: 0 8px 0 11px;
  border: 1px solid #dedee5;
  border-radius: 8px;
  background: #f7f8fb;
  color: #7a7d8c;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.docs-search-trigger:hover { border-color: #c9cad6; background: #fff; }
.docs-search-trigger:focus-visible { outline: 2px solid #3150bc; outline-offset: 2px; }
.docs-search-trigger svg { flex: none; width: 16px; height: 16px; }
.docs-search-trigger-label { flex: 1; text-align: left; }
.docs-search-trigger kbd,
.docs-search kbd {
  padding: 1px 5px;
  border: 1px solid #dedee5;
  border-radius: 4px;
  background: #fff;
  color: #6b6e7c;
  font: 500 11px/16px var(--sans);
}

.docs-search {
  width: min(640px, calc(100vw - 32px));
  max-width: none;
  max-height: none;
  margin: 12vh auto auto;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #252733;
  font-family: var(--sans);
}
.docs-search::backdrop { background: rgba(23, 25, 35, .32); backdrop-filter: blur(2px); }
.docs-search-panel {
  display: flex;
  flex-direction: column;
  max-height: min(560px, 76vh);
  overflow: hidden;
  border: 1px solid #dedee5;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(23, 25, 35, .22);
}
.docs-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-bottom: 1px solid #e7e7ec;
  color: #7a7d8c;
}
.docs-search-field svg { flex: none; width: 18px; height: 18px; }
.docs-search-field input {
  flex: 1;
  min-width: 0;
  height: 54px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #252733;
  font: inherit;
  font-size: 16px;
}
.docs-search-field input::-webkit-search-cancel-button { display: none; }
.docs-search-close {
  padding: 2px 7px;
  border: 1px solid #dedee5;
  border-radius: 5px;
  background: #fff;
  color: #6b6e7c;
  font: 500 11px/16px var(--sans);
  cursor: pointer;
}
.docs-search-body { overflow-y: auto; overscroll-behavior: contain; }
.docs-search-results { margin: 0; padding: 6px; list-style: none; }
.docs-search-results:empty { display: none; }
.docs-search-result {
  display: grid;
  gap: 2px;
  padding: 9px 12px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  scroll-margin: 6px;
}
.docs-search-result[aria-selected="true"] { background: #eef1fb; }
.docs-search-context { color: #7a7d8c; font-size: 11.5px; }
.docs-search-title { color: #252733; font-size: 14px; font-weight: 600; }
.docs-search-result[aria-selected="true"] .docs-search-title { color: #3150bc; }
.docs-search-snippet {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: #5f6270;
  font-size: 13px;
  line-height: 1.45;
}
.docs-search mark { background: transparent; color: #3150bc; font-weight: 600; }
.docs-search-status { margin: 0; padding: 0 18px 12px; color: #7a7d8c; font-size: 12.5px; }
.docs-search:not(.has-query) .docs-search-status:empty { display: none; }
.docs-search-results:empty + .docs-search-status { padding: 22px 18px; text-align: center; }
.docs-search-footer {
  display: flex;
  gap: 16px;
  padding: 9px 14px;
  border-top: 1px solid #e7e7ec;
  background: #fafafc;
  color: #7a7d8c;
  font-size: 11.5px;
}
.docs-search-footer kbd { margin-right: 2px; }

@media (max-width: 820px) {
  .docs-search-trigger { width: 36px; height: 36px; margin-left: auto; padding: 0; justify-content: center; background: #fff; }
  .docs-search-trigger-label, .docs-search-trigger kbd { display: none; }
  .docs-header-links { margin-left: 0; }
  .docs-search { margin-top: 16px; }
  .docs-search-footer { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .docs-search-trigger { transition: none; }
}
