/* The public documentation: plain, readable, no script; the site's colours, light and dark. */
:root { --bg: #f6f3ee; --ink: #1e1a16; --ink-mid: #5d554c; --line: #e2dcd2; --accent: #6b3fd4; --code: #ece6dc; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --bg: #15120f; --ink: #f1ece4; --ink-mid: #b3a99c; --line: #2f2a24; --accent: #a58bf0; --code: #221e19; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-wrap: break-word; background: var(--bg); color: var(--ink); font: 16px/1.65 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
.top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.top .brand { color: var(--ink); text-decoration: none; font-weight: 650; }
.top .brand span { color: var(--ink-mid); font-weight: 400; margin-left: 6px; }
.frame { display: grid; grid-template-columns: 200px minmax(0, 780px); gap: 40px; max-width: 1060px; margin: 0 auto; padding: 32px 20px 64px; }
.menu { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 20px; align-self: start; }
.menu a { color: var(--ink-mid); text-decoration: none; padding: 4px 0; }
.menu a[aria-current="page"] { color: var(--ink); font-weight: 600; }
h1 { font-size: 34px; line-height: 1.2; margin: 0 0 18px; letter-spacing: -0.01em; }
main, article { min-width: 0; }
article img, article svg { max-width: 100%; height: auto; }
h2 { font-size: 22px; margin: 48px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
h1 + p, h1 ~ h2:first-of-type { margin-top: 0; }
h3 { font-size: 16px; margin: 34px 0 8px; padding: 8px 12px; background: var(--code); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; overflow-wrap: anywhere; line-height: 1.45; }
h3 code { background: none; padding: 0; font-weight: 600; word-break: break-all; }
h1, h2, h3 { overflow-wrap: anywhere; }
p code, li code, td code, th code { overflow-wrap: anywhere; word-break: break-word; }
code { font: 0.9em/1.5 ui-monospace, "SF Mono", Menlo, monospace; background: var(--code); padding: 1px 5px; border-radius: 4px; }
pre { background: var(--code); padding: 14px 16px; border-radius: 8px; overflow-x: auto; max-width: 100%; font-size: 14px; -webkit-overflow-scrolling: touch; }
pre code { padding: 0; background: none; overflow-wrap: normal; word-break: normal; white-space: pre; }
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14.5px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 8px; }
th { font-size: 13px; white-space: nowrap; border-bottom: 2px solid var(--line); }
td code { white-space: nowrap; }
td { min-width: 5.5rem; }
td:last-child { min-width: 15rem; }
tr:last-child td { border-bottom: 0; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.md { margin-top: 48px; font-size: 14px; }
@media (max-width: 760px) {
  .frame { grid-template-columns: 1fr; gap: 18px; padding-top: 18px; }
  .menu { position: static; flex-direction: row; flex-wrap: wrap; gap: 2px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  h1 { font-size: 28px; }
  h2 { font-size: 20px; }
  .top { padding: 12px 16px; }
  .frame { padding-left: 16px; padding-right: 16px; }
  pre { margin-left: -4px; margin-right: -4px; padding: 12px; }
}
