/* The developer pages (/developers, /developers/console): dark, on top of the site's shared header and footer. */
:root {
  --bg: #0b0b0c; --panel: #111113; --line: rgba(255, 255, 255, .09); --fg: #f4f4f5; --muted: #a1a1a8; --dim: #6e6e76;
  --human: #34d399; --ai: #f87171; --accent: #a78bfa;
  --sans: 'SF Pro Display', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mono: 'SF Mono', ui-monospace, 'JetBrains Mono', Menlo, Consolas, monospace;
  --wide: 1240px; --gutter: clamp(20px, 4vw, 56px);
  --tick: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.5l3 3 6-7' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { color: var(--fg); font-family: var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
em { font-family: 'DM Serif Display', Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.02em; }
code { font-family: var(--mono); font-size: .92em; }
::selection { background: #fff; color: #000; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }

/* The shared header and footer, turned dark. */
html.dev { --footer-bg: #141416; background: var(--paper) no-repeat var(--bg); }
.dev main { background: var(--bg); }
.dev .brand, .dev .sticky-brand, .dev .footer-logo { filter: invert(1) hue-rotate(180deg); }
.dev .sticky-header { background: rgba(11, 11, 12, .72); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.dev .nav-download { background: #fff; color: #000; }
html.dev { --menu-fg: #f4f4f5; --menu-hover: rgba(255, 255, 255, .08); --menu-line: rgba(255, 255, 255, .1); --menu-bg: 11, 11, 12; }
.dev .nav-download:hover { background: #d9d9de; }
.dev .page-shadow { background: var(--bg); box-shadow: 0 24px 60px rgba(0, 0, 0, .7); }
.dev .site-footer { background: linear-gradient(var(--footer-bg) calc(100% - 260px), var(--bg)); }
@media (pointer: coarse) { html.dev { background: var(--paper) no-repeat var(--bg); } .dev footer.site-footer { background-image: linear-gradient(var(--footer-bg) calc(100% - 260px), var(--bg)); } }
.dev .footer-col a { color: #e7e7ea; }
.dev .footer-copy, .dev .footer-col h3 { color: var(--dim); }
.dev #footer-fade stop { stop-color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: transparent; color: var(--fg); font: 500 16px/1 var(--sans); letter-spacing: -.01em; text-decoration: none; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.btn:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .26); }
.btn.primary { background: #fff; border-color: #fff; color: #000; }
.btn.primary:hover { background: #dedee3; border-color: #dedee3; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(2px); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn.danger { color: #fca5a5; border-color: rgba(248, 113, 113, .35); }
.btn.danger:hover { background: rgba(248, 113, 113, .1); }

/* Sections */
.band { max-width: var(--wide); margin: 0 auto; padding: clamp(64px, 8vw, 120px) var(--gutter) 0; }
.band .head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.band h2 { margin: 0; font-size: clamp(34px, 3.8vw, 54px); font-weight: 600; line-height: 1.04; letter-spacing: -.045em; }
.band .head p { margin: 16px 0 0; color: var(--muted); font-size: 18px; line-height: 1.5; }

/* Code */
pre { margin: 0; padding: 18px 20px; overflow: auto; font: 13.5px/1.65 var(--mono); color: #e4e4e7; tab-size: 2; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.doc .code, .console .code { position: relative; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.code .copy { position: absolute; top: 10px; right: 10px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; background: rgba(17, 17, 19, .9); color: var(--muted); font: 12px/1 var(--sans); cursor: pointer; opacity: 0; transition: opacity .2s ease, color .2s ease; }
.code:hover .copy, .code .copy:focus-visible, .code .copy.done { opacity: 1; }
.code .copy:hover { color: var(--fg); }
.code .copy.done { color: var(--human); }
@media (hover: none) { .code .copy { opacity: 1; } }
.t-k { color: #c4b5fd; }      /* keys, keywords */
.t-s { color: #86efac; }      /* strings */
.t-n { color: #fdba74; }      /* numbers, literals */
.t-c { color: #6e6e76; }      /* comments */
.t-f { color: #93c5fd; }      /* flags, functions */
