/* Typography for the public pages rendered from docs/ Markdown. Tailwind
   classes cannot reach markup that Redcarpet generates, so it is styled here,
   scoped to .doc. */

.doc { line-height: 1.65; color: #1e293b; }
.doc h1 { font-size: 1.875rem; font-weight: 600; line-height: 1.25; margin: 0 0 1rem; color: #0f172a; }
.doc h2 { font-size: 1.375rem; font-weight: 600; margin: 2.25rem 0 0.75rem; color: #0f172a; }
.doc h3 { font-size: 1.125rem; font-weight: 600; margin: 1.75rem 0 0.5rem; color: #0f172a; }
.doc h4 { font-weight: 600; margin: 1.25rem 0 0.5rem; }
.doc p { margin: 0 0 1rem; }
.doc ul, .doc ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc li { margin: 0.25rem 0; }
.doc li > ul, .doc li > ol { margin: 0.25rem 0 0; }
.doc a { color: #1d4ed8; text-decoration: underline; }
.doc strong { font-weight: 600; color: #0f172a; }
.doc em { font-style: italic; }
.doc code { font-size: 0.875em; background: #e2e8f0; border-radius: 0.25rem; padding: 0.1em 0.35em; overflow-wrap: anywhere; }
.doc pre { background: #0f172a; color: #e2e8f0; border-radius: 0.5rem; padding: 1rem; overflow-x: auto; margin: 0 0 1rem; }
.doc pre code { background: none; padding: 0; color: inherit; }
.doc hr { border: 0; border-top: 1px solid #e2e8f0; margin: 2rem 0; }
.doc blockquote { border-left: 3px solid #cbd5e1; padding-left: 1rem; color: #475569; margin: 0 0 1rem; }

/* Wide tables scroll inside themselves on a phone instead of widening the page. */
.doc table { display: block; overflow-x: auto; border-collapse: collapse; margin: 0 0 1.25rem; font-size: 0.9375rem; }
.doc th, .doc td { border: 1px solid #e2e8f0; padding: 0.5rem 0.75rem; text-align: left; vertical-align: top; }
.doc th { background: #f1f5f9; font-weight: 600; }

/* Checklist items from "- [x]" / "- [ ]". */
.doc li:has(> .doc-check) { list-style: none; margin-left: -1.25rem; }
.doc-check { display: inline-block; width: 1.25rem; color: #94a3b8; font-weight: 600; }
.doc-check-done { color: #15803d; }
