:root {
  color-scheme: light dark;
  --bg: #ffffff; --surface: #f5f6f7; --text: #222222; --muted: #606a70;
  --border: #dfe3e6; --accent: #1b7d4a; --code-bg: #f3f4f5;
  --note: #e8f7ee; --warn: #fdf1e3; --warn-line: #c97a1a;
  --hl-kw: #8a6d00; --hl-ty: #1f7a1f; --hl-cm: #007a80; --hl-st: #2f7d32;
  --hl-nu: #a3209f; --hl-pp: #007a80; --hl-mc: #5c4fb0;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #262626; --surface: #2e2e2e; --text: #f0f0f0; --muted: #a8a8a8;
    --border: #3d3d3d; --accent: #2cde85; --code-bg: #1e1e1e;
    --note: #1f3a2c; --warn: #3a2a15; --warn-line: #e0a050;
    --hl-kw: #d6d64a; --hl-ty: #5fbf3a; --hl-cm: #3fd6d6; --hl-st: #5fbf3a;
    --hl-nu: #e04fe0; --hl-pp: #3fd6d6; --hl-mc: #b0a8ff;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 18px/1.6 "Titillium Web", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre { font-family: "Source Code Pro", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em; }
code { background: var(--code-bg); padding: 0.1em 0.3em; border-radius: 3px; }
pre { background: var(--code-bg); padding: 14px 18px; border-radius: 4px; overflow-x: auto;
  line-height: 1.5; border: 1px solid var(--border); }
pre code { background: none; padding: 0; font-size: 1em; }
pre .kw { color: var(--hl-kw); }
pre .ty { color: var(--hl-ty); }
pre .cm { color: var(--hl-cm); }
pre .st { color: var(--hl-st); }
pre .nu { color: var(--hl-nu); }
pre .pp { color: var(--hl-pp); }
pre .mc { color: var(--hl-mc); }
header.site { display: flex; align-items: center; gap: 10px; padding: 6px 32px;
  background: var(--surface); border-bottom: 1px solid var(--border); }
header.site .logo { display: flex; }
header.site .logo img { display: block; height: 48px; width: 48px; }
header.site .name { font-weight: 600; color: var(--text); font-size: 1.1em; }
header.site .version { color: var(--muted); font-size: 0.95em; line-height: 1; }
header.site .versions { font: inherit; font-size: 0.875em; color: var(--muted); background: var(--bg);
  border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; }
header.site .versions:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
header.site .source { display: flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 0.875em; }
header.site .source svg { height: 20px; width: auto; fill: currentColor; }
header.site .source:hover { color: var(--accent); }
header.site .search { margin-left: auto; position: relative; }
header.site .search input { width: 260px; font: inherit; font-size: 0.875em; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 5px 10px; }
header.site .search input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
header.site .search ul { position: absolute; right: 0; top: calc(100% + 4px); z-index: 10;
  width: min(480px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; margin: 0; padding: 4px 0;
  list-style: none; background: var(--bg); border: 1px solid var(--border); border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); font-size: 0.875em; }
header.site .search li a { display: block; padding: 6px 12px; color: var(--text); line-height: 1.4; }
header.site .search li a:hover, header.site .search li[aria-selected="true"] a {
  background: var(--surface); text-decoration: none; }
header.site .search li[aria-selected="true"] a { box-shadow: inset 3px 0 0 var(--accent); }
header.site .search .n { font-family: "Source Code Pro", ui-monospace, Menlo, Consolas, monospace;
  overflow-wrap: anywhere; }
header.site .search .n mark { background: none; color: var(--accent); font-weight: 600; }
header.site .search .k { float: right; margin-left: 12px; color: var(--muted); font-size: 0.85em; }
header.site .search .t { display: block; color: var(--muted); font-size: 0.9em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
header.site .search .empty { padding: 6px 12px; color: var(--muted); }
nav.crumbs { max-width: 1240px; margin: 0 auto; padding: 18px 32px 0; font-size: 0.95em;
  color: var(--muted); }
nav.crumbs a { color: var(--muted); }
nav.crumbs a:hover { color: var(--accent); }
nav.crumbs .sep { padding: 0 0.6em; }
nav.crumbs .sep::before { content: ""; display: inline-block; width: 0.45em; height: 0.45em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg); vertical-align: 0.1em; }
nav.crumbs .current { color: var(--muted); text-decoration: underline;
  text-underline-offset: 0.2em; }
.layout { display: flex; gap: 48px; max-width: 1240px; margin: 0 auto; padding: 24px 32px; }
main { flex: 1; min-width: 0; }
aside.toc { width: 230px; flex: none; order: 2; font-size: 0.875em; position: sticky;
  top: 16px; align-self: flex-start; border-left: 1px solid var(--border); padding-left: 16px; }
aside.toc h2 { font-size: 0.8em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 8px; padding: 0; }
aside.toc ul { list-style: none; margin: 0; padding: 0; }
aside.toc li { padding: 3px 0; }
aside.toc a { color: var(--text); }
aside.toc a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-weight: 300; line-height: 1.25; }
h1 { font-size: 2.5em; margin: 16px 0 24px; }
h2 { font-size: 1.85em; margin: 40px 0 16px; }
h3 { font-size: 1.35em; margin: 28px 0 12px; }
h3.member { font-size: 1em; font-weight: 400; margin: 32px 0 8px; padding: 8px 14px;
  background: var(--surface); border-left: 3px solid var(--accent); border-radius: 2px;
  overflow-wrap: anywhere; line-height: 1.5; }
h3.member .tags { color: var(--muted); font-weight: 400; font-size: 0.85em; }
.template { display: block; color: var(--muted); font-weight: 400; font-size: 0.9em; }
.brief { font-size: 1.1em; }
table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.scroll { overflow-x: auto; }
table.info { width: auto; }
table.info th { text-align: left; padding: 4px 16px 4px 0; color: var(--muted); font-weight: 600;
  vertical-align: top; white-space: nowrap; }
table.info td { padding: 4px 0; }
table.summary td { padding: 6px 10px; vertical-align: top; border-bottom: 1px solid var(--border); }
table.summary td.ret { width: 30%; text-align: right; color: var(--muted); }
table.data th, table.data td { padding: 6px 10px; border: 1px solid var(--border);
  text-align: left; vertical-align: top; }
table.data th { background: var(--surface); font-weight: 600; }
.note, .warning { padding: 10px 14px; border-radius: 2px; }
.note { background: var(--note); border-left: 3px solid var(--accent); }
.warning { background: var(--warn); border-left: 3px solid var(--warn-line); }
.figure img { max-width: 100%; height: auto; }
.differences { background: var(--surface); border-left: 3px solid var(--accent);
  padding: 4px 16px; border-radius: 2px; }
td p, li p { margin: 0; }
footer.site { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.8125em;
  padding: 16px 32px; margin-top: 32px; }
@media (max-width: 860px) {
  body { font-size: 16px; }
  .layout { flex-direction: column; padding: 16px; gap: 16px; }
  aside.toc { width: auto; position: static; order: 0; border-left: 0; padding-left: 0; }
  header.site, nav.crumbs, footer.site { padding-left: 16px; padding-right: 16px; }
  header.site { flex-wrap: wrap; }
  header.site .search { order: 3; flex-basis: 100%; margin: 0 0 6px; }
  header.site .search input { width: 100%; }
  header.site .search ul { left: 0; right: auto; width: 100%; }
  h1 { font-size: 2em; }
  h2 { font-size: 1.5em; }
  table.summary td.ret { width: auto; }
}
