:root {
  --content-max-width: 820px;
  --docs-serif: "Latin Modern", Georgia, serif;
  --docs-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

html, body, .sidebar, #menu-bar, .menu-title, .content main {
  font-family: var(--docs-serif);
}

.content main {
  font-size: 1.8rem;
  line-height: 1.65;
  text-align: left;
}

.content h1, .content h2, .content h3, .content h4 {
  font-weight: bold;
  line-height: 1.25;
}

.content h1 { font-size: 2.6rem; margin: 0 0 1.6rem; }
.content h2 {
  font-size: 2rem;
  margin: 2.6rem 0 1rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--table-border-color);
}
.content h3 { font-size: 1.75rem; margin: 2rem 0 0.8rem; }

.content p, .content ul, .content ol { margin: 0 0 1.1rem; }

.content a { text-decoration: none; }
.content a:hover { text-decoration: underline; }

.content code, .content pre, .content kbd {
  font-family: var(--docs-mono);
}

.content :not(pre) > code {
  font-size: 0.8em;
  padding: 0.12em 0.35em;
  border-radius: 4px;
}

.content pre { border-radius: 6px; line-height: 1.5; }

.content blockquote {
  border-left: 3px solid var(--links);
  border-top: none;
  border-bottom: none;
  border-right: none;
  border-radius: 0 4px 4px 0;
  padding: 0.4rem 1rem;
}

.content table {
  width: 100%;
  margin: 1.2rem 0;
  border-collapse: collapse;
  font-size: 0.92em;
}
.content table td, .content table th {
  border: none;
  border-bottom: 1px solid var(--table-border-color);
  padding: 0.45rem 0.8rem;
  text-align: left;
}
.content table thead th {
  border-bottom: 2px solid var(--fg);
  background: none;
  font-weight: 600;
}
.content table tbody tr:nth-child(2n) { background: none; }
.content table tbody tr:hover { background: var(--sidebar-bg); }

.content svg { max-width: 100%; height: auto; display: block; margin: 1.6rem auto; }

.sidebar { font-size: 1.5rem; }
.chapter { line-height: 1.9; }
.chapter li.part-title {
  margin-top: 1.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.65;
}
.chapter li.chapter-item { margin: 0; }
.chapter li.chapter-item a { padding: 0.14rem 0; display: inline-block; }
.chapter li.chapter-item a.active { font-weight: 600; color: var(--links); }
