/* Generated by Scripts/build_site.py -- edit that, not this. */
:root {
  color-scheme: light dark;
  --bg: #ffffff; --fg: #1f2328; --muted: #59636e; --line: #d1d9e0;
  --accent: #0969da; --code-bg: #f6f8fa; --quote: #59636e; --sidebar: #f6f8fa;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117; --fg: #e6edf3; --muted: #9198a1; --line: #3d444d;
    --accent: #4493f8; --code-bg: #161b22; --quote: #9198a1; --sidebar: #161b22;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body {
  font: 16px/1.65 -apple-system, "Segoe UI", system-ui, sans-serif;
  display: grid; grid-template-columns: 17rem 1fr; min-height: 100vh;
}
/* The sidebar is the contents, which is TOPICS -- the same reading order as the CHM's tree. */
nav.toc {
  background: var(--sidebar); border-right: 1px solid var(--line);
  padding: 1.5rem 1.25rem; position: sticky; top: 0; align-self: start; max-height: 100vh;
  overflow-y: auto;
}
nav.toc .brand { font-size: 1.3rem; font-weight: 700; text-decoration: none; color: var(--fg); }
nav.toc .brand span { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); }
nav.toc ol { list-style: none; margin: 1.25rem 0 0; padding: 0; }
nav.toc li { margin: .1rem 0; }
nav.toc a {
  display: block; padding: .35rem .6rem; border-radius: 6px;
  color: var(--fg); text-decoration: none; font-size: .95rem;
}
nav.toc a:hover { background: var(--bg); }
nav.toc a[aria-current="page"] { background: var(--accent); color: #fff; font-weight: 600; }
nav.toc .away { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
nav.toc .away a { color: var(--accent); font-size: .9rem; padding-left: 0; }

main { padding: 2.5rem 3rem 4rem; max-width: 58rem; }
h1, h2, h3 { line-height: 1.25; margin: 2rem 0 .75rem; }
h1 { font-size: 2rem; margin-top: 0; letter-spacing: -.02em; }
h2 { font-size: 1.45rem; padding-bottom: .3rem; border-bottom: 1px solid var(--line); }
h3 { font-size: 1.15rem; }
p, ul, ol, table, blockquote, pre { margin: 0 0 1rem; }
a { color: var(--accent); }
/* Images are screenshots of a window: shown at their own size, never stretched past it. */
img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
code { background: var(--code-bg); padding: .15em .35em; border-radius: 4px; font-size: .9em;
       font-family: ui-monospace, Consolas, monospace; }
pre { background: var(--code-bg); padding: .9rem 1rem; border-radius: 6px; overflow-x: auto; }
pre code { background: none; padding: 0; }
blockquote { margin-left: 0; padding: .1rem 1rem; border-left: 3px solid var(--line); color: var(--quote); }
/* Wide tables scroll inside themselves rather than making the page scroll sideways. */
.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { border: 1px solid var(--line); padding: .45rem .7rem; text-align: left; vertical-align: top; }
th { background: var(--code-bg); }
footer.stamp { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line);
               color: var(--muted); font-size: .85rem; }

@media (max-width: 60rem) {
  body { grid-template-columns: 1fr; }
  nav.toc { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  main { padding: 1.75rem 1.25rem 3rem; }
}
