/* specborn documentation: no fonts, no scripts, no external resources. */
:root {
  --bg: #0b0b0b; --fg: #d8d8d0; --dim: #8a8a80; --hi: #ffb000; --ok: #7fd97f;
  --warn: #ff7a5c; --link: #8fb8ff; --visited: #c49cff; --rule: #3a3a34; --code: #161614;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f1e8; --fg: #1d1d1a; --dim: #66665c; --hi: #9a4d00; --ok: #1f6f1f;
    --warn: #a3220b; --link: #0000cc; --visited: #551a8b; --rule: #bdb8a8; --code: #e9e5d8;
  }
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  background: var(--bg); color: var(--fg); margin: 0;
  font-family: "Courier New", Courier, ui-monospace, monospace;
  font-size: 15px; line-height: 1.5;
}
.wrap { max-width: 118ch; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; }
header.top { border-bottom: 1px dashed var(--rule); padding-bottom: .5em; margin-bottom: 1em; }
header.top a.home { color: var(--hi); font-weight: bold; text-decoration: none; }
header.top .tocjump { float: right; }
main { min-width: 0; order: 1; }
nav.toc { order: 2; border-top: 1px dashed var(--rule); margin-top: 2em; padding-top: 1em; }
nav.toc h2 { margin-top: 0; }
nav.toc ul { list-style: none; padding-left: 0; margin: 0 0 1em; }
nav.toc li { margin: .2em 0; }
nav.toc .group { color: var(--dim); margin: 1em 0 .2em; }
nav.toc a.current { color: var(--hi); font-weight: bold; text-decoration: none; }
@media (min-width: 900px) {
  .wrap { flex-direction: row; align-items: flex-start; gap: 3ch; }
  nav.toc { order: 0; flex: 0 0 30ch; border-top: 0; margin-top: 0; padding-top: 0;
            position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
  main { flex: 1 1 auto; max-width: 84ch; }
  header.top .tocjump { display: none; }
}
h1, h2, h3, h4 { font-size: 1em; font-weight: bold; color: var(--hi); margin: 1.6em 0 .4em; }
h1 { font-size: 1.15em; margin-top: .2em; }
h2::before { content: "[ "; color: var(--dim); }
h2::after  { content: " ]"; color: var(--dim); }
a.anchor { color: var(--dim); text-decoration: none; font-weight: normal; visibility: hidden; }
h1:hover a.anchor, h2:hover a.anchor, h3:hover a.anchor, h4:hover a.anchor { visibility: visible; }
a { color: var(--link); } a:visited { color: var(--visited); }
code { background: var(--code); padding: 0 .2ch; overflow-wrap: anywhere; }
pre { background: var(--code); padding: .6em 1ch; margin: 0 0 1em; overflow-x: auto; white-space: pre; }
pre code { background: none; padding: 0; overflow-wrap: normal; }
.runnable { color: var(--dim); font-size: .85em; }
blockquote { margin: 1em 0; padding: .2em 1.5ch; border-left: 3px solid var(--warn); }
hr { border: 0; border-top: 1px dashed var(--rule); margin: 1.5em 0; }
.table { overflow-x: auto; margin: 0 0 1em; }
table { border-collapse: collapse; }
td, th { text-align: left; padding: .15em 1.5ch .15em 0; vertical-align: top; border-bottom: 1px dotted var(--rule); }
th { color: var(--dim); font-weight: normal; border-bottom: 1px dashed var(--rule); }
ul, ol { padding-left: 3ch; } li { margin: .2em 0; }
.pager { display: flex; justify-content: space-between; gap: 2ch; border-top: 1px dashed var(--rule);
         margin-top: 2em; padding-top: .6em; }
.pager .next { text-align: right; margin-left: auto; }
footer { color: var(--dim); margin-top: 2em; font-size: .9em; }
