/* Only the documentation page: the rendered markdown. The shelf inside the panel is styled in
   site.css, with the panel itself - both pages carry the same one. */
/* ==== DOCUMENT ==== */
.doc { min-width: 0; }
.doc table { display: block; overflow-x: auto; max-width: 100%; }
.doc .src { color: var(--muted); font-size: 0.85em; }
.doc > :first-child { margin-top: 0; }
.doc h1 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 1rem; }
.doc h2 { font-size: 1.35rem; margin: 2.4rem 0 0.8rem; letter-spacing: -0.01em; }
.doc h3 { font-size: 1.1rem; margin: 1.8rem 0 0.6rem; }
.doc p, .doc li { max-width: var(--measure); }
.doc p { margin: 0 0 1em; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: 0.35em; }
.doc blockquote { margin: 1.2rem 0; padding: 0.2rem 0 0.2rem 1.1rem; border-left: 2px solid var(--focus); color: var(--muted); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.doc code { font-family: "IBM Plex Mono", monospace; font-size: 0.88em; background: var(--ground-deep); border: 1px solid var(--line); border-radius: 4px; padding: 0.08em 0.35em; }
.doc pre { background: var(--ground-deep); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; overflow-x: auto; }
.doc pre code { background: none; border: 0; padding: 0; font-size: 0.85rem; line-height: 1.7; }
/* a long name in running text (a namespace, an environment variable) breaks anywhere instead of pushing
   the page wider than a phone; code in a block keeps its lines and scrolls */
.doc :not(pre) > code { overflow-wrap: anywhere; }
/* a formula set on its own line scrolls sideways in its box, as code in a block does */
.doc .katex-display { overflow-x: auto; overflow-y: hidden; padding: 0.2rem 0; }
/* so does a formula in running text that is wider than its paragraph */
.doc :not(.katex-display) > .katex { display: inline-block; max-width: 100%; overflow-x: auto; overflow-y: hidden; vertical-align: middle; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1.2rem 0; }
.doc th, .doc td { text-align: left; padding: 0.6rem 0.9rem 0.6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-weight: 500; color: var(--muted); font-size: 0.85rem; }
/* the first column stands flush with the text; the others start off the line site.css draws between cells */
.doc th + th, .doc td + td { padding-left: 0.9rem; }
.doc img { max-width: 100%; }
.doc .table-scroll { overflow-x: auto; }

.meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem; align-items: baseline; margin-bottom: 1.8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }
.meta a { font-family: "IBM Plex Mono", monospace; font-size: 0.95em; }
.state { color: var(--muted); }
.state b { color: var(--text); font-weight: 500; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; gap: 1.5rem; padding-block: 1.5rem 3.5rem; }
}
/* where a document with diagrams is drawn before it goes on the sheet (docs.js) */
.doc-stage { position: absolute; left: -10000px; top: 0; visibility: hidden; }
