:root {
  --bg: #fdfcfa; --fg: #1d1d1f; --muted: #6b6b70; --line: #e4e2dd;
  --code-bg: #f3f1ec; --accent: #9a3b12; --hit: #fff1c2;
  --statement: #a0522d; --type: #286e45; --preproc: #7b3fa0; --constant: #b0306f;
  --special: #5a4fc0; --comment: #3a64a8;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #18181a; --fg: #e6e4df; --muted: #9a9aa0; --line: #2e2e33;
    --code-bg: #232327; --accent: #f0915d; --hit: #3a300e;
    --statement: #e0c060; --type: #7fcf8f; --preproc: #d08fe0; --constant: #f0a0a0;
    --special: #f0a050; --comment: #80a0ff;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: grid; grid-template-columns: 17rem 1fr; min-height: 100vh;
}
nav {
  border-right: 1px solid var(--line); padding: 1rem; position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
}
nav input {
  width: 100%; padding: .45rem .6rem; font: inherit; color: var(--fg);
  background: var(--code-bg); border: 1px solid var(--line); border-radius: 6px;
}
nav ul { list-style: none; padding: 0; margin: .8rem 0 0; }
nav li a {
  display: block; padding: .1rem .3rem; border-radius: 4px;
  font-family: var(--mono); font-size: 13px;
}
nav li a.current { background: var(--code-bg); }
main { padding: 1.5rem 2.5rem 4rem; max-width: 62rem; min-width: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-family: var(--mono); font-size: 1.5rem; margin: 0 0 .25rem; }
.file { color: var(--muted); font-size: 13px; font-family: var(--mono); }
.item { border-top: 1px solid var(--line); padding: .8rem 0; }
.item:target, .sig:target, .sig span:target { background: var(--hit); }
.sig {
  font-family: var(--mono); font-size: 13.5px; white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.name { font-weight: 600; }
.doc { margin: .35rem 0 0 1.2rem; }
.doc p { margin: .3rem 0; }
.doc pre, code {
  font-family: var(--mono); font-size: 13px; background: var(--code-bg);
  border-radius: 3px;
}
code { padding: 0 .2rem; }
.doc pre { padding: .5rem .7rem; overflow-x: auto; }
pre code { padding: 0; background: none; }
.turkey .conditional, .turkey .repeat, .turkey .statement, .turkey .keyword,
.turkey .operator { color: var(--statement); }
.turkey .structure, .turkey .constructor { color: var(--type); }
.turkey .module { color: var(--preproc); }
.turkey .boolean, .turkey .number, .turkey .float, .turkey .string,
.turkey .char { color: var(--constant); }
.turkey .escape, .turkey .doc-comment { color: var(--special); }
.turkey .comment, .turkey .block-comment { color: var(--comment); }
.turkey .todo { background: var(--hit); }
.turkey a, .turkey a [class] { color: var(--accent); }
.members { margin: .4rem 0 0 1.2rem; }
.members .sig { margin-top: .3rem; }
.none { color: var(--muted); font-style: italic; }
.result { padding: .5rem 0; border-top: 1px solid var(--line); }
.result .where { color: var(--muted); font-size: 13px; }
.result .where p { margin: 0; }
@media (max-width: 760px) {
  body { display: block; }
  nav {
    position: static; height: auto; border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  nav ul { max-height: 12rem; overflow-y: auto; }
  main { padding: 1rem; }
}
