:root {
  --doc-bg: #F4F1EA;
  --doc-text: #1A1A1A;
  --doc-muted: #5A5A5A;
  --doc-rule: #D8D2C4;
  --img-bg: #000000;
}

.doc {
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  padding: 20px var(--gutter-right) calc(32px + var(--gutter-bottom)) var(--gutter-left);
  background: var(--doc-bg);
  color: var(--doc-text);
  font-family: system-ui, -apple-system, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  text-shadow: none;
}

.doc h1, .doc h2, .doc h3, .doc h4 {
  margin: 1.2em 0 .5em;
  line-height: 1.25;
  letter-spacing: normal;
}

.doc h1 { font-size: 1.6em; }
.doc h2 { font-size: 1.3em; }
.doc h3 { font-size: 1.1em; }
.doc > :first-child { margin-top: 0; }

.doc p, .doc ul, .doc ol, .doc blockquote, .doc table, .doc pre { margin: 0 0 1em; }
.doc ul, .doc ol { padding-left: 1.4em; }

.doc blockquote {
  padding: .2em 0 .2em 1em;
  border-left: 3px solid var(--doc-rule);
  color: var(--doc-muted);
}

.doc hr {
  border: 0;
  border-top: 1px solid var(--doc-rule);
  margin: 1.5em 0;
}

.doc code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .9em;
  background: rgba(0, 0, 0, .05);
  padding: 0 .2em;
}

.doc pre {
  padding: 12px;
  background: rgba(0, 0, 0, .05);
}

.doc pre code { background: none; padding: 0; }

.doc pre, .doc code, .txt { white-space: pre-wrap; }

.doc table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 15px;
}

.doc td, .doc th {
  overflow-wrap: anywhere;
  padding: 6px;
  border: 1px solid var(--doc-rule);
  text-align: left;
  vertical-align: top;
}

.doc img { max-width: 100%; height: auto; }

.doc-link {
  color: var(--doc-muted);
  text-decoration: underline;
  text-decoration-style: dotted;
}

.doc .txt {
  margin: 0;
  padding: 0;
  background: none;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 15px;
  line-height: 1.45;
}
