:root { --text: #1d1d1f; --muted: #6e6e73; --line: #e3e5e8; --soft: #f5f7fa; --accent: #007aff; --bar: #b9d4fb; --code: #0f172a; --radius: 10px; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font: 16px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--text); background: #fff; }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 24px; background: var(--bar); border-bottom: 1px solid #a6c6f0; }
.brand { font-weight: 700; color: var(--text); font-size: 18px; } .brand span { font-weight: 400; } .ver { color: #3b5b87; font-size: 13px; }
.topnav { margin-left: auto; display: flex; gap: 20px; } .topnav a { color: var(--text); font-weight: 500; } .topnav a[aria-current] { text-decoration: underline; }
.layout { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; padding: 0 24px; }
.side { position: sticky; top: 56px; align-self: start; max-height: calc(100vh - 56px); overflow: auto; padding: 24px 8px 32px 0; border-right: 1px solid var(--line); }
.grp + .grp { margin-top: 20px; } .side h2 { margin: 0 0 6px 10px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.side a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--text); font-size: 15px; } .side a:hover { background: var(--soft); text-decoration: none; }
.side a[aria-current="page"] { background: var(--bar); font-weight: 600; }
main { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; padding: 32px 0 80px; }
article { min-width: 0; max-width: 820px; }
article h1 { margin: 0 0 8px; font-size: 36px; line-height: 1.2; letter-spacing: -.01em; } article h2 { margin: 44px 0 12px; font-size: 26px; padding-top: 12px; border-top: 1px solid var(--line); } article h3 { margin: 28px 0 8px; font-size: 19px; } article h4 { margin: 20px 0 6px; font-size: 16px; }
article h1 + p { font-size: 18px; color: var(--muted); }
.anchor { margin-left: -1.1em; padding-right: .3em; color: var(--line); opacity: 0; font-weight: 400; } h2:hover .anchor, h3:hover .anchor { opacity: 1; text-decoration: none; }
article p, article li { margin: 0 0 12px; } article ul, article ol { padding-left: 24px; } article li > ul, article li > ol { margin-top: 6px; }
code { font: .88em var(--mono); background: var(--soft); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.code { margin: 16px 0; border: 1px solid #1e293b; border-radius: var(--radius); overflow: hidden; background: var(--code); }
.codebar { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; background: #1e293b; color: #94a3b8; font: 12px var(--mono); }
.copy { background: transparent; color: #cbd5e1; border: 1px solid #475569; border-radius: 6px; padding: 2px 10px; font: 12px inherit; cursor: pointer; } .copy:hover { background: #334155; }
pre { margin: 0; padding: 14px 16px; overflow: auto; color: #e2e8f0; font: 13.5px/1.55 var(--mono); } pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.tablewrap { overflow-x: auto; margin: 16px 0; } table { border-collapse: collapse; width: 100%; font-size: 15px; } th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; } th { background: var(--soft); font-weight: 600; white-space: nowrap; }
blockquote { margin: 16px 0; padding: 12px 16px; border-left: 4px solid var(--accent); background: #f0f6ff; border-radius: 0 var(--radius) var(--radius) 0; } blockquote p:last-child { margin-bottom: 0; }
.toc { position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; font-size: 14px; } .toc h2 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.toc a { display: block; padding: 3px 0 3px 10px; color: var(--muted); border-left: 2px solid var(--line); } .toc a:hover { color: var(--text); text-decoration: none; } .toc a.d3 { padding-left: 22px; font-size: 13px; }
body.ref .refhelp { max-width: 1200px; margin: 16px auto 0; padding: 0 24px; color: var(--muted); } body.ref #swagger { max-width: 1280px; margin: 0 auto; padding: 0 12px 64px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
@media (max-width: 1100px) { main { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
@media (max-width: 820px) { .layout { grid-template-columns: 1fr; gap: 0; padding: 0 16px; } .side { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 0; } .topnav { gap: 12px; font-size: 14px; } .top { padding: 0 16px; } article h1 { font-size: 28px; } }

/* one call in four languages */
.samples { margin: 16px 0; } .samples .code { margin: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.samples .tabs { display: none; gap: 4px; padding: 0; } .js .samples .tabs { display: flex; }
.samples .tabs button { padding: 7px 14px; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--soft); color: var(--muted); font: 500 13px inherit; cursor: pointer; }
.samples .tabs button.on { background: var(--code); color: #fff; border-color: var(--code); }
.samples .pane + .pane { margin-top: 12px; } .js .samples .pane { display: none; margin-top: 0; } .js .samples .pane.on { display: block; }

body.ref .refloading { color: var(--muted); padding: 24px 12px; }

/* pictures of the panel in the user guide */
figure.shot { margin: 18px 0 24px; }
figure.shot img { display: block; max-width: 100%; height: auto; border: 1px solid #d9dce3; border-radius: 10px; box-shadow: 0 2px 10px rgba(20, 30, 60, .08); }
figure.shot figcaption { margin-top: 8px; font-size: 14px; color: #5b6270; }

p.updated { margin: -6px 0 18px; font-size: 13px; color: #5b6270; }
