/* The API docs pages (written by src/lib/developerDocs.ts). Static pages
   served as is, outside the React app, so the brand's night palette and
   backdrop are written out here. Values from src/styles/night-horizon.css and
   .hp-ambient in src/index.css. */
:root {
  --void: #02030F; --night-2: #04062E; --text: #fff;
  --text-2: rgba(255, 255, 255, .74); --text-3: rgba(255, 255, 255, .52);
  --rule: rgba(255, 255, 255, .12); --rule-2: rgba(255, 255, 255, .07);
  --blush: #F7A9A8;
  --f-head: "Sora", system-ui, sans-serif; --f-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --f-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--void); }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--void);
  font: 400 16px/1.65 var(--f-body); text-wrap-style: pretty; -webkit-font-smoothing: antialiased;
}
.ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, var(--void) 0%, var(--void) 35%, #04062E 100%);
}
.ambient::before, .ambient::after { content: ""; position: absolute; left: 50%; bottom: 0; }
.ambient::before {
  width: max(1200px, 130vw); aspect-ratio: 1 / .42; transform: translate(-50%, 50%);
  background: radial-gradient(closest-side, rgba(170, 0, 255, .26), rgba(76, 0, 143, .14) 45%, rgba(76, 0, 143, 0));
}
.ambient::after {
  width: max(700px, 70vw); aspect-ratio: 1 / .35; transform: translate(-50%, 55%);
  background: radial-gradient(closest-side, rgba(255, 82, 129, .14), rgba(255, 82, 129, .05) 50%, rgba(255, 82, 129, 0));
}
main { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 24px 20px 120px; }
@media (min-width: 768px) { main { padding: 40px 32px 160px; } }

/* The agents link comes first in the page, so tools find it at the top, and
   sits on the right for people. */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.brand { order: 1; display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 600 17px var(--f-head); letter-spacing: -.01em; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.top .llms { order: 2; color: var(--text-3); font-size: 14px; text-decoration: none; }
.top .llms:hover { color: var(--text); }

.docs-nav { display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 40px; }
.docs-nav a {
  padding: 6px 12px; border-radius: 999px; font-size: 14px; color: var(--text-2); text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--rule);
}
.docs-nav a:hover { color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.docs-nav a[aria-current="page"] { color: var(--void); background: var(--text); box-shadow: none; font-weight: 600; }

h1, h2, h3 { font-family: var(--f-head); font-weight: 600; text-wrap-style: balance; letter-spacing: -.02em; }
h1 { margin: 0 0 16px; font-size: clamp(34px, 6vw, 48px); line-height: 1.08; letter-spacing: -.03em; }
h2 { margin: 48px 0 12px; font-size: 24px; line-height: 1.2; padding-top: 24px; border-top: 1px solid var(--rule-2); }
h3 { margin: 32px 0 8px; font-size: 17px; line-height: 1.3; }
h2 code, h3 code { font-size: .85em; background: none; padding: 0; }
p, li { color: var(--text-2); }
p { margin: 0 0 14px; }
article > p:first-of-type { font-size: 18px; color: var(--text); }
a { color: var(--text); text-underline-offset: 3px; }
a:hover { color: var(--blush); }
ol, ul { padding-left: 22px; margin: 0 0 14px; }
li { margin-bottom: 6px; }
strong { color: var(--text); font-weight: 600; }
blockquote { margin: 0 0 24px; padding: 0; }
blockquote p { margin: 0; font-size: 14px; color: var(--text-3); overflow-wrap: anywhere; }
blockquote a { color: var(--text-2); }
code { font-family: var(--f-code); font-size: .9em; color: var(--text); background: rgba(255, 255, 255, .06); border-radius: 6px; padding: 1px 6px; }
pre {
  margin: 0 0 18px; padding: 16px 18px; overflow-x: auto; border-radius: 14px;
  background: var(--night-2); box-shadow: inset 0 0 0 1px var(--rule-2);
  font: 13.5px/1.55 var(--f-code); color: var(--text);
}
pre code { background: none; padding: 0; font-size: inherit; white-space: pre; }
/* A header name such as Retry-After never breaks at its hyphen */
p code, li code { white-space: nowrap; }
code.url { white-space: normal; overflow-wrap: anywhere; }
footer { margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--rule-2); font-size: 14px; color: var(--text-3); }
footer p { color: var(--text-3); }
