@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('fonts/bricolage-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono'; /* taste-skill-ignore: font declaration for literal code only. */
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f9fbfa;
  --surface: #eff3f1;
  --surface-strong: #e2eae6;
  --text: #182b25;
  --muted: #53665e;
  --accent: #07684c;
  --accent-ink: #ffffff;
  --accent-soft: #dceee5;
  --warning: #795000;
  --warning-bg: #f7efda;
  --info: #265b78;
  --info-bg: #e7f0f5;
  --danger: #a23740;
  --danger-bg: #f7e7e9;
  --code-bg: #102b23;
  --code-bar: #1c3930;
  --code-ink: #e6f0eb;
  --code-muted: #b9cdc2;
  --code-key: #bad0f3;
  --code-string: #a8dec2;
  --code-number: #f1cc8e;
  --line: #ced9d3;
  --overlay: rgb(4 16 11 / 45%);
  --font-text: 'Bricolage Grotesque', 'Segoe UI', sans-serif;
  --font-code: 'JetBrains Mono', Consolas, monospace; /* taste-skill-ignore: used exclusively by pre/code. */
  --text-small: .875rem;
  --text-body: 1rem;
  --text-lead: 1.25rem;
  --text-heading: 2rem;
  --text-display: 4rem;
  --rail: 248px;
  --header: 76px;
  --content: 1104px;
  --gutter: 48px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 112px;
  --radius: 12px;
  --radius-small: 6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
html[data-theme='dark'] {
  color-scheme: dark;
  --bg: #101b17;
  --surface: #182720;
  --surface-strong: #263a30;
  --text: #eaf1ec;
  --muted: #a9bdb0;
  --accent: #90d6af;
  --accent-ink: #10271c;
  --accent-soft: #254533;
  --warning: #ebca83;
  --warning-bg: #342f20;
  --info: #afd1e6;
  --info-bg: #20303a;
  --danger: #f3b1b7;
  --danger-bg: #3c262c;
  --code-bg: #0b1510;
  --code-bar: #1a2b21;
  --line: #35493d;
  --overlay: rgb(2 9 5 / 65%);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-offset, var(--header)) + 24px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-text); font-size: var(--text-body); line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button:disabled, select:disabled { cursor: not-allowed; opacity: .55; }
svg { display: block; flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
code, pre { font-family: var(--font-code); }
p { max-width: 60ch; text-wrap: pretty; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; overflow-wrap: anywhere; letter-spacing: -.025em; line-height: 1.2; }
h2 { font-size: var(--text-heading); }
h3 { font-size: var(--text-body); }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
input, select { caret-color: var(--accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 10px; left: 16px; z-index: 100; padding: 12px 20px; background: var(--accent); color: var(--accent-ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 28px; min-height: var(--header); padding: 12px 32px; background: var(--bg); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: var(--text-lead); font-weight: 500; text-decoration: none; line-height: 1.3; white-space: nowrap; }
.brand b { font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 40px; color: var(--accent); }
.brand-mark svg { width: 32px; height: 32px; stroke-width: 1.6; }
.header-context { color: var(--muted); font-size: var(--text-small); }
.topbar-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.header-link { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; color: var(--text); font-size: var(--text-small); text-decoration: none; }
.header-link svg { width: 16px; height: 16px; }
.icon-button, .mobile-menu { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-small); color: var(--text); background: var(--surface); transition: background .18s, transform .18s var(--ease); }
.icon-button:hover, .mobile-menu:hover { background: var(--surface-strong); }
.icon-button:active, .mobile-menu:active { transform: scale(.95); }
.icon-button svg { width: 20px; height: 20px; }
.icon-button .moon { display: none; fill: currentColor; stroke: none; }
html[data-theme='light'] .icon-button .sun { display: none; }
html[data-theme='light'] .icon-button .moon { display: block; }
.mobile-menu { display: none; align-content: center; gap: 4px; }
.mobile-menu span { width: 18px; height: 2px; background: currentColor; }
.drawer-heading { display: none; }

.sidebar { position: fixed; z-index: 35; top: var(--header-offset, var(--header)); bottom: 0; left: 0; width: var(--rail); padding: 24px 18px; background: var(--surface); overflow-y: auto; overscroll-behavior: contain; }
.doc-search { margin-bottom: 28px; }
.search-field { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 10px; background: var(--bg); border-radius: var(--radius-small); }
.search-field:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-field svg { width: 16px; height: 16px; color: var(--muted); }
.search-field input { min-width: 0; width: 100%; height: 46px; padding: 0; border: 0; outline: none; color: var(--text); background: transparent; font-size: var(--text-small); }
.search-field input::placeholder { color: var(--muted); opacity: 1; }
.search-field kbd { color: var(--muted); font: inherit; font-size: var(--text-small); }
.search-status { margin: 16px 4px 8px; color: var(--muted); font-size: var(--text-small); }
.search-results { display: grid; gap: 8px; }
.search-results a { display: block; padding: 12px; background: var(--bg); text-decoration: none; border-radius: var(--radius-small); }
.search-results a:hover { background: var(--accent-soft); }
.search-results strong { display: block; color: var(--text); font-weight: 500; }
.search-results span { display: block; margin-top: 4px; color: var(--muted); font-size: var(--text-small); line-height: 1.5; overflow-wrap: anywhere; }
.nav-label { margin: 28px 12px 8px; color: var(--muted); font-size: var(--text-small); font-weight: 500; }
.nav-label:first-child { margin-top: 0; }
.sidebar nav > a { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 2px 0; padding: 8px 12px; border-radius: var(--radius-small); color: var(--text); font-size: var(--text-small); line-height: 1.4; text-decoration: none; transition: background .18s; }
.sidebar nav > a:hover { background: var(--surface-strong); }
.sidebar nav > a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.method { min-width: 35px; color: var(--muted); font-size: var(--text-small); font-weight: 500; }
.active .method { color: var(--accent); }
.sidebar-note { display: flex; justify-content: space-between; gap: 16px; margin: 36px 12px 8px; color: var(--muted); font-size: var(--text-small); }
.sidebar-note a { color: var(--text); }

main { margin-left: var(--rail); padding: 0 var(--gutter); }
.section, footer { width: 100%; max-width: var(--content); margin-right: auto; margin-left: auto; }
.section { padding: 0 0 var(--space-9); scroll-margin-top: 16px; }
.section > p { margin: 16px 0 0; }
.hero { padding-top: 48px; }
.hero h1 { margin: 0 0 20px; font-size: var(--text-display); line-height: 1.1; letter-spacing: -.04em; }
.hero .lead { max-width: 56ch; font-size: var(--text-lead); line-height: 1.6; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 12px 20px; border-radius: var(--radius-small); background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 500; transition: transform .18s var(--ease), opacity .18s; }
.primary-button:hover { opacity: .9; }
.primary-button:active { transform: translateY(1px); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--text-small); font-weight: 500; }
.endpoint-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding: 20px 24px; background: var(--accent-soft); border-radius: var(--radius); }
.endpoint-card > div { min-width: 0; }
.endpoint-label { display: block; margin-bottom: 4px; color: var(--text); font-size: var(--text-small); }
.endpoint-card code { display: block; overflow-wrap: anywhere; font-size: var(--text-body); color: var(--accent); }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; min-height: 44px; padding: 10px 14px; border: 0; border-radius: var(--radius-small); background: var(--bg); color: var(--text); font-size: var(--text-small); transition: background .18s; }
.copy-button:hover { background: var(--surface); }
.copy-button svg { width: 16px; height: 16px; }
.request-workbench { margin-top: 32px; }
.workbench-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.workbench-heading h2 { margin: 0; font-size: var(--text-lead); letter-spacing: -.015em; }
.example-controls { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.example-controls label { color: var(--muted); font-size: var(--text-small); }
.example-controls select { max-width: 100%; min-height: 44px; padding: 8px 32px 8px 12px; color: var(--text); background: var(--surface); border: 0; border-radius: var(--radius-small); font-size: var(--text-small); }
.example-note { margin: 12px 0 0; color: var(--muted); font-size: var(--text-small); }
.facts { display: flex; flex-wrap: wrap; gap: 24px 48px; margin: 28px 0 0; }
.facts dt { color: var(--muted); font-size: var(--text-small); }
.facts dd { margin: 2px 0 0; font-size: var(--text-body); }

.section-heading { margin-bottom: 16px; }
.section-heading h2 { margin: 0; }
.official-links-grid { display: flex; flex-direction: column; margin-top: 24px; gap: 8px; }
.official-link-card { display: grid; grid-template-columns: 24px minmax(0, 1fr) 24px; align-items: center; gap: 16px; padding: 16px 20px; background: var(--surface); border-radius: var(--radius-small); color: var(--text); text-decoration: none; transition: background .18s; }
.official-link-card:hover { background: var(--surface-strong); }
.official-link-icon { color: var(--accent); }
.official-link-copy { display: grid; grid-template-columns: 180px 1fr; gap: 0 24px; align-items: baseline; }
.official-link-copy small { display: none; }
.official-link-copy strong { font-size: var(--text-body); font-weight: 500; }
.official-link-copy > span { color: var(--muted); font-size: var(--text-small); overflow-wrap: anywhere; }
.official-link-arrow { width: 18px; height: 18px; color: var(--muted); }

.prose > p, .endpoint-section > p { max-width: 60ch; color: var(--text); }
p code, li code { padding: 2px 5px; background: var(--surface); color: var(--accent); border-radius: 3px; font-size: .875em; overflow-wrap: anywhere; }
.callout { display: flex; gap: 14px; margin: 24px 0; padding: 20px 24px; border-radius: var(--radius-small); background: var(--surface); }
.callout > svg { margin-top: 3px; }
.callout strong { font-size: var(--text-body); font-weight: 600; }
.callout p { margin: 4px 0 0; font-size: var(--text-body); color: var(--text); }
.callout.warning { color: var(--warning); background: var(--warning-bg); }
.callout.info { color: var(--info); background: var(--info-bg); }

.code-block { margin-top: 20px; color: var(--code-ink); background: var(--code-bg); border-radius: var(--radius); overflow: hidden; }
.code-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 52px; padding: 4px 12px 4px 20px; background: var(--code-bar); color: var(--code-muted); font-size: var(--text-small); }
.copy-code { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 76px; min-height: 44px; padding: 8px 12px; border: 0; border-radius: var(--radius-small); background: transparent; color: var(--code-ink); font-size: var(--text-small); font-weight: 500; transition: background .18s; }
.copy-code:hover { background: var(--code-bg); }
.copy-code:focus-visible { outline-color: var(--code-string); outline-offset: -3px; }
pre { max-width: 100%; margin: 0; padding: 24px; overflow-x: auto; font-size: var(--text-small); line-height: 1.9; tab-size: 2; overscroll-behavior-x: contain; }
pre:focus-visible { outline-offset: -3px; }
pre code { font: inherit; }
.key { color: var(--code-key); }
.str { color: var(--code-string); }
.num { color: var(--code-number); }
.token-url { color: var(--code-ink); }
.parameter-table { width: 100%; border-collapse: collapse; border-spacing: 0; font-size: var(--text-small); line-height: 1.65; }
.parameter-table caption { text-align: left; }
.parameter-table th, .parameter-table td { text-align: left; padding: 14px 12px; vertical-align: top; }
.parameter-table thead { color: var(--muted); background: var(--surface); }
.parameter-table th { font-weight: 500; }
.parameter-table tbody tr:nth-child(even) { background: var(--surface); }
.parameter-table tbody th { width: 25%; color: var(--text); font-weight: 400; overflow-wrap: anywhere; }
.parameter-table code { padding: 0; font-size: var(--text-small); overflow-wrap: anywhere; }
.required, .optional, .type { font-size: var(--text-small); white-space: nowrap; color: var(--muted); }
.compact-table { max-width: 820px; margin: 28px 0; }
.endpoint-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 16px; }
.endpoint-title h2 { margin: 0; order: -1; }
.method-badge { color: var(--accent); font-size: var(--text-small); font-weight: 500; }
.endpoint-title > code { margin-left: auto; color: var(--muted); font-size: var(--text-small); }
.split-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; margin-top: 32px; align-items: start; }
.split-layout h3 { margin: 0 0 16px; }
.split-layout h3:not(:first-child) { margin-top: 32px; }
.example-panel { min-width: 0; }
.example-label { margin-bottom: 16px; font-size: var(--text-body); font-weight: 600; }
.example-panel .code-block { margin-top: 0; }
.mini-response { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-top: 16px; font-size: var(--text-small); }
.mini-response code { font-size: var(--text-small); color: var(--accent); }
.field-list { list-style: none; padding: 0; margin: 0; }
.field-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px; font-size: var(--text-small); }
.field-list li:nth-child(odd) { background: var(--surface); }
.field-list code { padding: 0; background: none; font-size: var(--text-small); }
.status-grid { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; }
.status-grid article { display: grid; grid-template-columns: 152px 1fr; gap: 24px; align-items: baseline; padding: 20px 24px; background: var(--surface); }
.status-grid p { margin: 0; font-size: var(--text-body); }
.status-chip { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-body); font-weight: 500; }
.status-chip::before { content: ''; width: 7px; height: 7px; flex: none; border-radius: 50%; background: currentColor; }
.status-chip.pending { color: var(--muted); }
.status-chip.progress { color: var(--info); }
.status-chip.completed { color: var(--accent); }
.status-chip.partial { color: var(--warning); }
.status-chip.canceled { color: var(--danger); }
.error-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.error-list > div { display: grid; gap: 4px; padding: 16px 20px; font-size: var(--text-body); }
.error-list > div:nth-child(odd) { background: var(--surface); }
.error-list code { font-size: var(--text-small); color: var(--danger); }
.checklist { max-width: 72ch; margin-top: 28px; padding: 0 0 0 24px; }
.checklist li { padding: 8px 0 8px 12px; }
.checklist li::marker { color: var(--accent); font-weight: 500; }
.checklist p { margin: 0; }
.checklist strong { font-weight: 600; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px 0 48px; }
.footer-brand { font-size: var(--text-lead); }
footer p { margin: 0; color: var(--muted); font-size: var(--text-small); }
.toast { position: fixed; z-index: 80; bottom: 24px; left: 50%; max-width: calc(100% - 32px); padding: 12px 20px; border-radius: var(--radius-small); background: var(--text); color: var(--bg); font-size: var(--text-small); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: transform .2s var(--ease), opacity .2s; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.copy-success { color: var(--accent); }
.code-header .copy-success { color: var(--code-string); }
.clipboard-buffer { position: fixed; top: -1000px; left: -1000px; width: 2px; height: 2px; }

@media (min-width: 1600px) { :root { --gutter: 72px; } }
@media (max-width: 1199px) {
  :root { --rail: 224px; --gutter: 32px; --text-display: 3.25rem; }
  .split-layout, .error-layout { grid-template-columns: 1fr; }
  .example-panel { max-width: 100%; }
  .official-link-copy { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  :root { --header: 68px; --gutter: 28px; --space-9: 88px; }
  .topbar { gap: 16px; padding: 12px 24px; }
  .header-link { display: none; }
  .mobile-menu:not([hidden]) { display: grid; }
  .sidebar { width: min(344px, calc(100% - 32px)); top: 0; z-index: 60; padding: 20px; }
  .js .sidebar { visibility: hidden; transform: translateX(-100%); transition: transform .2s var(--ease), visibility .2s; }
  .js .sidebar.open { visibility: visible; transform: translateX(0); }
  .drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
  .sidebar nav > a { min-height: 44px; }
  .menu-backdrop { position: fixed; inset: 0; z-index: 55; border: 0; background: var(--overlay); }
  body.menu-open { overflow: hidden; }
  main { margin-left: 0; }
  .hero { padding-top: 40px; }
  html:not(.js) .sidebar { position: static; width: 100%; max-height: none; }
  html:not(.js) .drawer-heading { display: none; }
  html:not(.js) .sidebar nav { columns: 2; }
  html:not(.js) .nav-label { break-after: avoid; }
  .topbar-actions { gap: 8px; }
}
@media (max-width: 599px) {
  :root { --gutter: 20px; --text-display: 2.5rem; --text-heading: 1.75rem; --space-9: 72px; }
  .topbar { padding: 10px 16px; gap: 8px; }
  .brand { gap: 7px; font-size: var(--text-body); white-space: normal; }
  .brand-mark { width: 28px; height: 32px; }
  .brand-mark svg { width: 28px; height: 28px; }
  .header-context { display: none; }
  .hero { padding-top: 32px; }
  .hero h1 { max-width: 15ch; font-size: var(--text-display); line-height: 1.12; }
  .hero .lead { font-size: var(--text-body); }
  .hero-actions { gap: 12px 20px; margin-top: 24px; }
  .primary-button { min-height: 48px; }
  .endpoint-card { flex-wrap: wrap; gap: 16px; padding: 20px; margin-top: 32px; }
  .endpoint-card code { font-size: var(--text-small); }
  .copy-button { padding: 8px 12px; }
  .workbench-heading .text-link { font-size: var(--text-small); }
  .example-controls { flex-direction: column; align-items: stretch; gap: 8px; }
  pre { padding: 20px 16px; }
  .facts { justify-content: space-between; gap: 20px; }
  .official-link-card { padding: 16px; gap: 12px; }
  .official-link-copy { grid-template-columns: 1fr; gap: 2px; }
  .status-grid article { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
  .endpoint-title { gap: 8px 14px; }
  .endpoint-title h2 { width: 100%; }
  .endpoint-title > code { margin-left: 0; }
  .parameter-table th, .parameter-table td { padding: 12px 8px; }
  .parameter-table th:first-child { width: 25%; }
  .parameter-table th:nth-child(2) { width: 22%; }
  .parameter-table .required, .parameter-table .optional { white-space: normal; }
  .parameter-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 12px; gap: 4px 16px; }
  .parameter-table th, .parameter-table td { padding: 0; width: auto !important; }
  .parameter-table tbody tr > :last-child { grid-column: 1 / -1; font-size: var(--text-body); }
  .parameter-table thead tr > :last-child { position: absolute; width: 2px !important; height: 2px; overflow: hidden; clip-path: inset(50%); }
  .callout { padding: 20px 16px; gap: 12px; }
  .field-list li { flex-direction: column; gap: 4px; }
  footer { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .icon-button, .mobile-menu, .primary-button, .toast, .js .sidebar { transition: none; }
  .icon-button:active, .mobile-menu:active, .primary-button:active { transform: none; }
}
