/** * Print / PDF stylesheet for Tloto FAQ guides. * Keeps headings with their following content (no orphan titles at page bottom). */ @page { margin: 18mm 16mm; } body { font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-size: 11pt; line-height: 1.45; color: #111; } h1 { font-size: 20pt; margin: 0 0 0.8em; page-break-after: avoid; break-after: avoid-page; } h2 { font-size: 14pt; margin: 1.4em 0 0.55em; page-break-after: avoid; break-after: avoid-page; page-break-inside: avoid; break-inside: avoid; } h3 { font-size: 12pt; margin: 1em 0 0.4em; page-break-after: avoid; break-after: avoid-page; page-break-inside: avoid; break-inside: avoid; } /* Keep the first block after a heading on the same page as the heading. */ h2 + p, h2 + ul, h2 + ol, h2 + h3, h3 + p, h3 + ul, h3 + ol { page-break-before: avoid; break-before: avoid-page; } /* Prefer not to split short lists across pages right under a title. */ ul, ol { page-break-inside: avoid; break-inside: avoid; margin: 0.4em 0 0.8em; } li { margin: 0.2em 0; } p { margin: 0.45em 0 0.7em; orphans: 3; widows: 3; } hr { border: none; border-top: 1px solid #ccc; margin: 1.2em 0; page-break-after: avoid; break-after: avoid-page; } strong { font-weight: 700; }