/* algorithms page (algorytmy.html, generated by build/gen-algorithms.mjs) */
.doc { max-width: 980px; margin: 0 auto 3rem; padding: 0 1rem; line-height: 1.6; }
.doc h2 { margin: 2rem 0 0.75rem; font-size: 1.3rem; }
.doc p, .doc li { max-width: 80ch; }
.doc p:has(.katex-display), .doc li:has(.katex-display) { max-width: none; }
.doc a, .top a { color: var(--accent); }
.doc code { font-size: 0.9em; background: var(--panel); border: 1px solid var(--border); border-radius: 4px; padding: 0 0.25em; }
.doc .katex-display { overflow-x: auto; overflow-y: hidden; padding: 0.25rem 0; }
.doc .scroll { overflow-x: auto; margin: 0.75rem 0; }
.doc table { border-collapse: collapse; }
.doc th, .doc td { border: 1px solid var(--border); padding: 0.3rem 0.6rem; text-align: left; vertical-align: top; }
.doc th { color: var(--muted); }
