:root {
  --paper: #fbfcfd;
  --surface: #ffffff;
  --ink: #171922;
  --ink-soft: #343744;
  --muted: #69707e;
  --line: #e6e8ed;
  --line-strong: #d5d8e0;
  --coral: #ff5151;
  --coral-dark: #d93e3e;
  --coral-wash: #fff1f1;
  --amber: #facc24;
  --amber-ink: #7a5e00;
  --amber-wash: #fff9df;
  --sky: #5eb8f6;
  --sky-ink: #1d6d9f;
  --sky-wash: #edf8ff;
  --code: #151722;
  --code-line: #292d3d;
  --code-text: #e9edf8;
  --sidebar: 278px;
  --topbar: 66px;
  --shadow: 0 18px 50px rgba(25, 29, 43, 0.08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 28px); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Urbanist", ui-sans-serif, system-ui, sans-serif; line-height: 1.58; }
button, input { font: inherit; }
a { color: inherit; }
code, pre, kbd { font-family: "IBM Plex Mono", ui-monospace, monospace; }
code { font-size: 0.88em; }
.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; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; transform: translateY(-160%); padding: 10px 14px; border-radius: 8px; background: var(--ink); color: white; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid rgba(94, 184, 246, 0.65); outline-offset: 3px; }

.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topbar); display: flex; align-items: center; justify-content: space-between; padding: 0 26px; background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 27px; height: 27px; padding: 5px; border-radius: 50%; background: conic-gradient(var(--amber) 0 38%, var(--coral) 38% 67%, var(--sky) 67% 100%); }
.brand-mark span { display: block; width: 100%; height: 100%; border-radius: 50%; background: white; }
.brand-name { font-weight: 800; letter-spacing: -0.03em; font-size: 19px; }
.brand-divider { width: 1px; height: 22px; background: var(--line-strong); }
.brand-product { color: var(--muted); font-weight: 600; font-size: 14px; }
.topbar-actions { display: flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 600; }
.release { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.release-dot { width: 8px; height: 8px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 4px rgba(34, 160, 107, 0.12); }
.support-link { text-decoration: none; }
.support-link:hover { color: var(--coral-dark); }
.menu-button { display: none; border: 1px solid var(--line-strong); background: white; padding: 7px 11px; border-radius: 9px; font-weight: 700; }

.docs-shell { padding-top: var(--topbar); }
.sidebar { position: fixed; top: var(--topbar); bottom: 0; left: 0; width: var(--sidebar); display: flex; flex-direction: column; padding: 22px 18px; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); }
.search-wrap { position: relative; margin-bottom: 16px; }
.search-wrap svg { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 1.8; }
.search-wrap input { width: 100%; height: 40px; padding: 0 36px 0 36px; border: 1px solid var(--line); border-radius: 10px; background: #f7f8fa; color: var(--ink); font-size: 13px; }
.search-wrap input:focus { background: white; border-color: var(--sky); outline: none; box-shadow: 0 0 0 3px rgba(94, 184, 246, 0.14); }
.search-wrap kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #8c93a0; font-size: 11px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { margin: 18px 9px 7px; color: #9ca2ae; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.13em; }
.side-nav a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; color: #555b68; text-decoration: none; font-size: 13px; font-weight: 600; }
.side-nav a:hover { background: #f6f7f9; color: var(--ink); }
.side-nav a.active { background: var(--coral-wash); color: var(--coral-dark); }
.method { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; padding: 2px 5px; border-radius: 5px; font: 700 9px/1.35 "IBM Plex Mono", monospace; letter-spacing: 0.04em; }
.method-get { color: var(--sky-ink); background: var(--sky-wash); }
.method-post { color: var(--coral-dark); background: var(--coral-wash); }
.method.large { min-width: 54px; padding: 6px 8px; font-size: 11px; }
.sidebar-foot { margin-top: auto; padding: 22px 9px 4px; border-top: 1px solid var(--line); }
.sidebar-foot a { font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.sidebar-foot p { margin: 7px 0 0; color: #9ca2ae; font-size: 11px; }

.content { width: min(1160px, calc(100% - var(--sidebar))); margin-left: var(--sidebar); padding: 0 56px 70px; }
.docs-section { scroll-margin-top: calc(var(--topbar) + 26px); }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr); gap: 72px; align-items: center; min-height: 535px; padding: 78px 0 66px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 12px; color: var(--coral-dark); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.16em; }
.hero h1 { max-width: 690px; margin: 0; font-size: clamp(48px, 5.4vw, 78px); line-height: 0.98; letter-spacing: -0.058em; }
.hero h1::after { content: ""; display: inline-block; width: 0.2em; height: 0.2em; margin-left: 0.08em; border-radius: 50%; background: var(--coral); }
.hero-lede { max-width: 650px; margin: 25px 0 0; color: var(--muted); font-size: 20px; line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: 0 17px; border-radius: 10px; font-size: 14px; font-weight: 800; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--coral); box-shadow: 0 8px 24px rgba(255, 81, 81, 0.22); }
.button-primary:hover { background: var(--coral-dark); }
.button-secondary { border: 1px solid var(--line-strong); background: white; }
.button-secondary:hover { box-shadow: 0 8px 20px rgba(23, 25, 34, 0.07); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 9px 22px; margin: 25px 0 0; padding: 0; color: var(--muted); list-style: none; font-size: 12px; font-weight: 700; }
.hero-facts li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--amber); }
.hero-contract { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow); overflow: hidden; }
.hero-contract::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--amber) 0 42%, transparent 42% 45%, var(--coral) 45% 72%, transparent 72% 75%, var(--sky) 75%); }
.contract-topline { display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 12px; font-weight: 800; }
.live-pill { padding: 3px 8px; border-radius: 999px; color: #168054; background: #e8f8f0; font-size: 10px; }
.contract-label { margin: 28px 0 8px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.copy-row { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f8f9fb; }
.copy-row code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.copy-button { padding: 5px 8px; border: 0; border-radius: 6px; color: var(--muted); background: rgba(255,255,255,.08); cursor: pointer; font-size: 11px; font-weight: 800; }
.copy-row .copy-button { background: white; border: 1px solid var(--line); }
.copy-button:hover { color: var(--ink); }
.contract-note { display: flex; gap: 11px; align-items: flex-start; margin-top: 18px; color: var(--muted); }
.contract-note p { margin: 0; font-size: 12px; line-height: 1.5; }
.shield-icon { flex: 0 0 auto; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 7px; color: var(--sky-ink); background: var(--sky-wash); font-size: 11px; font-weight: 800; }

.workflow { padding: 68px 0 76px; border-bottom: 1px solid var(--line); }
.section-heading { margin-bottom: 30px; }
.section-heading h2, .reference-intro h2 { margin: 0; font-size: clamp(32px, 3vw, 45px); line-height: 1.08; letter-spacing: -0.04em; }
.workflow-rail { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 35px 0 0; padding: 0; list-style: none; }
.workflow-rail::before { content: ""; position: absolute; top: 21px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--coral), var(--amber), var(--sky), var(--ink), var(--coral)); }
.workflow-step { position: relative; padding: 0 26px 0 0; }
.step-number { position: relative; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border: 5px solid var(--paper); border-radius: 50%; color: white; font-size: 13px; font-weight: 800; }
.coral .step-number { background: var(--coral); } .amber .step-number { color: var(--amber-ink); background: var(--amber); } .sky .step-number { background: var(--sky); } .ink .step-number { background: var(--ink); }
.step-kicker { margin: 0 0 4px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.workflow-step h3 { margin: 0 0 7px; font-size: 16px; }
.workflow-step p:last-child { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

#quickstart, #authentication, .endpoint, #result-contract, #errors, #security { padding: 76px 0; border-bottom: 1px solid var(--line); }
.split-heading { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.7fr); align-items: end; gap: 70px; }
.split-heading > p { margin: 0 0 3px; color: var(--muted); font-size: 16px; }
.split-heading code, .endpoint p code, .callout code, .status-table code { padding: 2px 5px; border-radius: 5px; background: #f1f3f6; }
.code-panel, .mini-code { overflow: hidden; border: 1px solid var(--code-line); border-radius: 14px; background: var(--code); box-shadow: 0 24px 60px rgba(20, 23, 34, .12); }
.code-toolbar, .mini-code-head { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px; border-bottom: 1px solid var(--code-line); color: #8d95a9; background: #1a1d29; font-size: 11px; font-weight: 800; }
.language-tabs { display: flex; gap: 4px; }
.language-tabs button { padding: 6px 10px; border: 0; border-radius: 6px; color: #8d95a9; background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.language-tabs button[aria-selected="true"] { color: white; background: #2a2e3e; }
pre { margin: 0; white-space: pre; tab-size: 2; }
.code-panel pre, .mini-code pre { overflow-x: auto; color: var(--code-text); font-size: 12px; line-height: 1.75; }
.quickstart-panel > pre { min-height: 210px; padding: 24px; }
.syntax-command, .syntax-keyword { color: #ff8080; } .syntax-key { color: #79c9ff; } .syntax-string { color: #f8d96b; } .syntax-number { color: #b8a4ff; }
.code-response { display: flex; align-items: center; gap: 10px; padding: 10px 24px; border-top: 1px solid var(--code-line); border-bottom: 1px solid var(--code-line); color: #9aa1b4; background: #1a1d29; font-size: 10px; }
.code-response span { color: #73dda9; font-weight: 800; }
.response-body { padding: 20px 24px; background: #12141e; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.info-card { position: relative; min-height: 190px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.card-index { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 26px; border-radius: 50%; color: var(--coral-dark); background: var(--coral-wash); font-size: 11px; font-weight: 800; }
.info-card:nth-child(2) .card-index { color: var(--amber-ink); background: var(--amber-wash); }
.info-card:nth-child(3) .card-index { color: var(--sky-ink); background: var(--sky-wash); }
.info-card h3 { margin: 0 0 8px; font-size: 16px; }
.info-card p { margin: 0; color: var(--muted); font-size: 13px; }
.callout { display: grid; grid-template-columns: 170px 1fr; gap: 14px; margin-top: 22px; padding: 16px 18px; border-left: 3px solid var(--amber); background: var(--amber-wash); color: var(--ink-soft); }
.callout strong { font-size: 13px; }
.callout p { margin: 0; font-size: 13px; }
.callout-info { border-color: var(--sky); background: var(--sky-wash); }
.callout-warning { border-color: var(--coral); background: var(--coral-wash); }

.reference-intro { padding: 82px 0 24px; }
.reference-intro > p:last-child { max-width: 670px; color: var(--muted); }
.endpoint-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.endpoint-header > div { display: flex; align-items: center; gap: 13px; }
.endpoint-header h2 { margin: 0; font-size: 30px; letter-spacing: -0.035em; }
.endpoint-header > code { max-width: 52%; padding: 8px 11px; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--muted); white-space: nowrap; }
.endpoint > p { max-width: 740px; color: var(--muted); font-size: 16px; }
.endpoint h3 { margin: 27px 0 12px; font-size: 14px; }
.endpoint-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .82fr); gap: 32px; align-items: start; margin-top: 28px; }
.field-table { border-top: 1px solid var(--line); }
.field-row { display: grid; grid-template-columns: 1.05fr .55fr 1.8fr; gap: 14px; align-items: start; padding: 12px 7px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.field-row code { color: var(--ink); font-weight: 600; }
.field-head { color: #9ca2ae; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.field-table.wide .field-row { grid-template-columns: 1.2fr .55fr .45fr 1.7fr; }
.mini-code { box-shadow: none; }
.mini-code pre { padding: 20px; }
.mini-code-head .copy-button { color: #b4bbcc; }
.two-code { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; margin-top: 24px; }
.compact-code { grid-template-columns: 1fr .6fr; }
.query-box { display: grid; grid-template-columns: 130px max-content 1fr; align-items: center; gap: 16px; margin-top: 24px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: 12px; }
.query-box > span { color: #9ca2ae; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.query-box p { margin: 0; color: var(--muted); }

.contract-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contract-column { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.contract-column.supported { border-top: 4px solid var(--sky); }
.contract-column.not-supported { border-top: 4px solid var(--line-strong); }
.contract-status { margin: 0 0 16px; font-size: 12px; font-weight: 800; }
.contract-column ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.contract-column li::before { content: "✓"; margin-right: 9px; color: var(--sky-ink); font-weight: 800; }
.not-supported li::before { content: "—"; color: #9ca2ae; }
.callout a { color: var(--coral-dark); font-weight: 700; }
.status-table { border-top: 1px solid var(--line); }
.status-row { display: grid; grid-template-columns: 90px 1.1fr 1.4fr; gap: 20px; padding: 16px 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.status-row > code { width: max-content; color: var(--ink); font-weight: 700; }
.status-head { color: #9ca2ae; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.error-shape { max-width: 540px; margin-top: 24px; }
.security-list { border-top: 1px solid var(--line); }
.security-list article { display: grid; grid-template-columns: 58px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.security-list article > span { color: var(--coral); font: 600 12px "IBM Plex Mono", monospace; }
.security-list h3 { margin: 0 0 5px; font-size: 16px; }
.security-list p { margin: 0; color: var(--muted); font-size: 13px; }
.support-card { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 72px; padding: 38px; border-radius: var(--radius); color: white; background: var(--ink); overflow: hidden; }
.support-card h2 { margin: 0 0 7px; font-size: 34px; letter-spacing: -.04em; }
.support-card p:not(.eyebrow) { max-width: 620px; margin: 0; color: #b9bfcb; }
.support-card .button { white-space: nowrap; }
.footer { position: relative; display: flex; align-items: center; gap: 20px; padding: 30px 0 6px; color: #9198a5; font-size: 11px; }
.footer p:last-child { margin-left: auto; }
.footer-mark { display: flex; gap: 3px; }
.footer-mark span { display: block; width: 13px; height: 3px; border-radius: 2px; background: var(--amber); }
.footer-mark span:nth-child(2) { background: var(--coral); }.footer-mark span:nth-child(3) { background: var(--sky); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; padding: 10px 14px; border-radius: 9px; color: white; background: var(--ink); box-shadow: var(--shadow); opacity: 0; transform: translateY(10px); pointer-events: none; font-size: 12px; font-weight: 700; transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.search-empty { padding: 70px 0; color: var(--muted); text-align: center; }

@media (max-width: 1050px) {
  :root { --sidebar: 245px; }
  .content { padding-inline: 38px; }
  .hero { grid-template-columns: 1fr; gap: 35px; padding-top: 64px; }
  .hero-contract { max-width: 590px; }
  .workflow-rail { grid-template-columns: 1fr 1fr; gap: 28px 10px; }
  .workflow-rail::before { display: none; }
  .step-number { margin-bottom: 13px; }
  .endpoint-layout { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  :root { --topbar: 62px; }
  .topbar { padding-inline: 16px; }
  .release, .support-link { display: none; }
  .menu-button { display: block; }
  .sidebar { z-index: 45; width: min(88vw, 310px); transform: translateX(-105%); transition: transform .22s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .content { width: 100%; margin-left: 0; padding-inline: 20px; }
  .hero { min-height: 0; padding-top: 52px; }
  .hero h1 { font-size: clamp(43px, 13vw, 64px); }
  .hero-lede { font-size: 18px; }
  .split-heading { grid-template-columns: 1fr; gap: 14px; }
  .workflow-rail, .info-grid, .contract-grid, .two-code { grid-template-columns: 1fr; }
  .workflow-step { display: grid; grid-template-columns: 48px 1fr; gap: 12px; }
  .step-number { margin: 0; }
  .endpoint-header { align-items: flex-start; flex-direction: column; }
  .endpoint-header > code { max-width: 100%; width: 100%; }
  .field-row, .field-table.wide .field-row { grid-template-columns: 1fr; gap: 4px; }
  .field-head { display: none; }
  .field-row { padding-block: 16px; }
  .query-box { grid-template-columns: 1fr; gap: 5px; }
  .status-row { grid-template-columns: 52px 1fr; }
  .status-row > span:last-child { grid-column: 2; }
  .status-head { display: none; }
  .callout { grid-template-columns: 1fr; gap: 5px; }
  .support-card { align-items: flex-start; flex-direction: column; padding: 30px 24px; }
  .support-card .button { width: 100%; white-space: normal; text-align: center; }
  .footer { flex-wrap: wrap; }.footer p:last-child { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
