:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #1b1f24;
  --muted: #4b5563;
  --line: #d0d7de;
  --panel: #f6f8fa;
  --link: #0a58ca;
  --accent: #1f6f43;
  --code-bg: #f3f4f6;
  --focus: #b45309;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1419;
    --fg: #e6e9ee;
    --muted: #a7b0bc;
    --line: #2d3742;
    --panel: #161d24;
    --link: #8ab4ff;
    --accent: #6fd39b;
    --code-bg: #1c242d;
    --focus: #f6ad55;
  }
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); }
a:focus-visible, summary:focus-visible, pre:focus-visible, .table-wrap:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--panel); padding: .5rem 1rem; }
.skip-link:focus { left: 1rem; z-index: 10; }
.layout { display: grid; grid-template-columns: 16rem minmax(0, 1fr); min-height: 100vh; }
header.site { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; padding: .75rem 1.5rem; border-bottom: 1px solid var(--line); }
header.site .brand { font-weight: 700; text-decoration: none; color: var(--fg); }
header.site .version { color: var(--muted); font-size: .875rem; }
nav.sidebar { border-right: 1px solid var(--line); padding: 1rem; background: var(--panel); }
nav.sidebar ul { list-style: none; margin: 0 0 1rem; padding: 0; }
nav.sidebar li a { display: block; padding: .35rem .5rem; border-radius: 6px; text-decoration: none; }
nav.sidebar li a[aria-current="page"] { background: var(--bg); font-weight: 600; color: var(--fg); }
nav.sidebar .nav-heading { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: .5rem .5rem .25rem; }
main { padding: 1.5rem 2rem 4rem; max-width: 60rem; }
h1 { font-size: 1.875rem; line-height: 1.25; }
h2 { font-size: 1.375rem; margin-top: 2.25rem; border-bottom: 1px solid var(--line); padding-bottom: .25rem; }
h3 { font-size: 1.125rem; margin-top: 1.75rem; }
/* Long schema and operation names are single words: let them wrap rather than widen the page on a phone. */
h1, h2, h3 { overflow-wrap: anywhere; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--code-bg); padding: .1em .3em; border-radius: 4px; overflow-wrap: anywhere; }
pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 8px; padding: .75rem 1rem; overflow-x: auto; }
pre code { background: none; padding: 0; overflow-wrap: normal; }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
th, td { border: 1px solid var(--line); padding: .4rem .6rem; text-align: left; vertical-align: top; }
th { background: var(--panel); }
.sample { border: 1px solid var(--line); border-radius: 10px; padding: .75rem 1rem; margin: 1rem 0; background: var(--panel); }
.sample-title { font-weight: 600; margin: 0 0 .25rem; }
.sample-request { margin: 0 0 .5rem; }
.sample details { margin: .4rem 0; }
.sample summary { cursor: pointer; font-weight: 600; }
.method { display: inline-block; min-width: 3.5rem; font-weight: 700; color: var(--accent); }
.op { border-top: 1px solid var(--line); padding-top: .5rem; }
.muted { color: var(--muted); }
@media (max-width: 48rem) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  nav.sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  main { padding: 1rem; }
}
