﻿:root {
  --pf-ink: #07090f;
  --pf-ink2: #151b2b;
  --pf-y: #ffd100;
  --pf-font: 'Instrument Sans', system-ui, sans-serif;
  --pf-mono: 'Geist Mono', ui-monospace, Consolas, monospace;
  --paper: #fff;
  --surface: #f4f5f8;
  --text: #151b2b;
  --muted: #555e70;
  --line: #dce0e7;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --paper: #07090f;
  --surface: #101624;
  --text: #f4f5f8;
  --muted: #aeb7c9;
  --line: #30394a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.65 var(--pf-font); }
button, input, textarea, summary { font: inherit; }
button, summary { cursor: pointer; }
button, .primary, summary { font-size: 13px; }
button { background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 7px 11px; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--pf-y); outline-offset: 3px; }
.primary { display: inline-block; color: var(--pf-ink); background: var(--pf-y); padding: 9px 14px; border: 0; border-radius: 6px; font-weight: 600; text-decoration: none; }
.topbar { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding: 10px 24px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { width: 42px; height: 24px; object-fit: contain; }
[data-theme='dark'] .brand img { filter: invert(1); }
.brand span { border-left: 1px solid var(--line); padding-left: 16px; font-size: 15px; color: var(--muted); }
.search { position: relative; flex: 1; max-width: 320px; margin-right: auto; }
input, textarea { width: 100%; min-width: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--paper); }
input { font-size: 13px; height: 36px; }
.search input { height: 34px; padding-right: 34px; }
.search kbd { position: absolute; right: 10px; top: 7px; border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; color: var(--muted); font: 12px/18px var(--pf-mono); pointer-events: none; }
.icon-button { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; padding: 7px; }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#theme .sun, [data-theme=dark] #theme .moon { display: none; }
[data-theme=dark] #theme .sun { display: block; }
textarea { font: 13px/1.6 var(--pf-mono); resize: vertical; }
label { display: block; font-size: 13px; margin: 14px 0; }
label input, label textarea { display: block; margin-top: 5px; }
#search-results { position: absolute; z-index: 20; top: 100%; width: 100%; max-height: 60vh; overflow: auto; background: var(--paper); border: 1px solid var(--line); list-style: none; padding: 8px; margin: 5px 0; }
#search-results a { display: block; font-size: 13px; padding: 8px; }
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr) 190px; gap: 36px; max-width: 1600px; margin: 0 auto; padding: 32px 24px 70px; }
.layout.reference { grid-template-columns: 240px minmax(0, 1fr) minmax(0, .95fr); gap: 28px; }
nav { align-self: start; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow: auto; padding-right: 10px; }
nav section + section { margin-top: 22px; }
nav h2, .on-page h2 { font: 11px/1.5 var(--pf-mono); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; color: var(--muted); }
nav h3 { font-size: 12px; color: var(--text); margin: 14px 0 4px; padding-left: 10px; font-weight: 600; }
nav a { display: block; padding: 5px 10px; color: var(--muted); font-size: 13.5px; line-height: 1.6; text-decoration: none; border-radius: 5px; }
nav a:hover { color: var(--text); }
nav a[aria-current] { background: var(--surface); color: var(--text); }
nav a[aria-current] { font-weight: 600; }
.fill { font-size: 13px; margin-top: 28px; }
.fill p { font-size: 13px; color: var(--muted); }
main, article, aside, .code-block, .samples { min-width: 0; }
h1 { font-size: 28px; line-height: 1.25; font-weight: 600; letter-spacing: -.025em; margin: 0; }
h2 { font-size: 20px; line-height: 1.4; margin: 40px 0 12px; font-weight: 600; }
h3 { font-size: 18px; line-height: 1.4; margin: 28px 0 10px; }
p { margin: 12px 0; }
ul, ol { padding-left: 24px; }
li { margin: 8px 0; }
article a { text-decoration-color: var(--muted); }
code, pre { font: 13px/1.7 var(--pf-mono); }
:not(pre) > code { overflow-wrap: anywhere; }
.endpoint { display: flex; align-items: baseline; gap: 1ch; margin: 16px 0; font-family: var(--pf-mono); }
.method { font: 600 12px var(--pf-mono); color: var(--muted); letter-spacing: .04em; }
.endpoint code { min-width: 0; overflow-wrap: anywhere; }
.page-actions summary::-webkit-details-marker { display: none; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-actions { position: relative; display: flex; flex-shrink: 0; align-items: stretch; height: 30px; }
.page-actions button, .page-actions summary { font-size: 12.5px; line-height: 18px; padding: 5px 9px; background: transparent; }
.page-actions > button { border-radius: 6px 0 0 6px; }
.page-actions details { position: static; }
.page-actions summary { list-style: none; border: 1px solid var(--line); border-left: 0; border-radius: 0 6px 6px 0; }
.action-menu { position: absolute; top: 100%; z-index: 10; right: 0; width: 200px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 6px; }
.action-menu a { display: block; padding: 7px 10px; font-size: 13px; text-decoration: none; }
.action-menu a:hover { background: var(--surface); }
.table-wrap { overflow-x: auto; max-width: 100%; margin: 20px 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.5; }
th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); }
th, td { border-bottom: 1px solid var(--line); padding: 9px 12px 9px 0; vertical-align: top; overflow-wrap: anywhere; }
th:first-child, td:first-child { padding-left: 0; }
th:first-child { min-width: 44px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px 24px; background: var(--surface); border-radius: 8px; padding: 14px 18px; margin: 20px 0; }
.facts dt { font-size: 12px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 13.5px; }
.parameters { margin: 16px 0; }
.parameter { border-top: 1px solid var(--line); padding: 12px 0; }
.parameter dt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; overflow-wrap: anywhere; }
.parameter-name, .parameter-name code { font: 500 13.5px/1.5 var(--pf-mono); }
.parameter-type { font: 12.5px/1.5 var(--pf-mono); color: var(--muted); }
.presence { font-size: 12px; color: var(--muted); }
.presence.required { font-weight: 600; color: var(--text); }
.parameter dd { font-size: 13.5px; color: var(--muted); margin: 4px 0 0; }
.parameter dd p { margin: 0; }
.parameter.nested { margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--line); }
.code-panel { align-self: start; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; background: #0b0f19; color: #edf1fa; padding: 0; border-radius: 10px; }
.code-block, .samples { background: #0b0f19; color: #edf1fa; border-radius: 8px; margin: 20px 0; overflow: hidden; }
.samples .code-block, .responses .code-block { margin: 0; border-radius: 0; }
.code-panel .samples { margin: 0; border-radius: 0; }
.code-panel .responses { border-top: 1px solid #2a3346; }
.code-label, .sample-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 0 0; }
.code-label { padding: 10px 12px; font: 12px var(--pf-mono); color: #8f9bb3; }
.code-label button, .sample-header > button { flex-shrink: 0; background: transparent; color: #edf1fa; border: 1px solid #2a3346; border-radius: 6px; padding: 4px 9px; font-size: 12px; line-height: 1.5; }
pre { margin: 0; padding: 16px 18px; overflow: auto; max-width: 100%; tab-size: 2; font-size: 13px; }
[role='tablist'] { display: flex; min-width: 0; overflow-x: auto; }
[role='tab'] { background: transparent; color: #8f9bb3; border: 0; border-radius: 0; padding: 10px 12px; font-size: 12.5px; white-space: nowrap; }
[role='tab'][aria-selected='true'] { color: #fff; box-shadow: inset 0 -1.5px #fff; }
[hidden] { display: none !important; }
.on-page { position: sticky; top: 30px; align-self: start; padding-top: 0; }
.on-page a { display: block; font-size: 13px; color: var(--muted); text-decoration: none; margin: 10px 0; }
footer { display: flex; gap: 20px; border-top: 1px solid var(--line); margin-top: 56px; padding-top: 20px; font-size: 12.5px; color: var(--muted); }
.pack-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); background: var(--text); color: var(--paper); border-radius: 6px; padding: 8px 16px; font-size: 13px; z-index: 30; }
.toast:empty { display: none; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { display: block; padding: 12px; }
#menu { display: none; }
@media (max-width: 1099px) {
  .layout, .layout.reference { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding-inline: 20px; }
  .on-page { display: none; }
  .code-panel { grid-column: 2; position: static; max-height: none; }
}
@media (max-width: 759px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding: 10px 24px; }
  .brand { margin-right: auto; min-width: 0; }
  .search { order: 2; flex-basis: 100%; max-width: none; }
  #menu { display: grid; }
  .layout, .layout.reference { display: block; padding: 32px 16px 48px; }
  nav { display: none; position: static; max-height: none; border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 24px; }
  nav.open { display: block; }
  .code-panel { margin-top: 24px; }
  .page-header { align-items: flex-start; flex-direction: column; }
  .action-menu { left: 0; right: auto; }
  td, th { min-width: 85px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

