/* Extra rules for the static pages made by scripts/make-crawler-files.mjs (book pages, result pages, open questions).
   The look comes from static.css; this file adds just what those pages need. */
main { max-width: 48rem; }
.toc { columns: 2; column-gap: 24px; }
.statement { border-left: 2px solid var(--etch-strong); padding-left: 12px; margin: 0 0 12px; }
.statement p:last-child { margin-bottom: 0; }
code.tex { white-space: pre-wrap; word-break: break-word; }
blockquote { margin: 0 0 12px; padding-left: 12px; border-left: 2px solid var(--etch); color: var(--ink-2); }
article.oq { border-top: 2px solid var(--rule-heavy); padding-top: 8px; margin: 0 0 24px; }
article.oq h2 { border-top: 0; margin-top: 0; padding-top: 0; font-size: 1.0625rem; }
article[hidden] { display: none; }
#oq-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 8px 16px; margin: 0 0 16px; }
#oq-tools[hidden] { display: none; }
#oq-tools input, #oq-tools select { width: 100%; font: 1rem/1.4 var(--ui); color: var(--ink); background: var(--bench); border: 1px solid var(--control-edge); border-radius: 0; padding: 6px 8px; }
/* the library's table of contents, the three ways in and the footer (outside review, 5 Nov 2026) */
.library-list { padding-left: 1.6em; }
.library-list li { margin: 0 0 14px; }
.foot { margin-top: 40px; padding-top: 8px; border-top: 2px solid var(--rule-heavy); font-size: 0.9375rem; }
.foot p { margin: 0; }
@media (max-width: 36rem) { .toc { columns: 1; } }
/* phone width with scripts off: code blocks scroll inside themselves, and a long address or fingerprint wraps instead of widening the page */
pre { overflow-x: auto; max-width: 100%; }
main { overflow-wrap: break-word; }
/* maths written out at build time (MathML): a long formula scrolls inside its own box */
math[display="block"] { display: block; overflow-x: auto; overflow-y: hidden; max-width: 100%; }
math:not([display="block"]) { display: inline-block; overflow-x: auto; overflow-y: hidden; max-width: 100%; vertical-align: middle; }
