/* Printversie van de reader (20-10-2026, wens Chris: "net zo mooi als de Word-documenten").
   Wordt als laatste stijlblad geladen (media="print"), zodat niets het overschrijft.
   Voorbeeld = de Word-export: Georgia 11 pt, regelafstand ±1,15, blauwe vette koppen in Calibri, marges 2,5 cm.
   Belangrijkste les: alinea's NIET onbreekbaar maken (dat gaf witte gaten onderaan); alleen weduwen/wezen en
   koppen bij de volgende tekst houden. De catalogus-leesweergave heeft een eigen printopmaak (catalogus.css). */
@page { size: A4; margin: 25mm 24mm 24mm 24mm;
  @bottom-center { content: counter(page); font: 9pt Calibri, Carlito, 'Segoe UI', Arial, sans-serif; color: #7f7f7f; } }

html, body { background: #fff !important; }
html body .doc:not(.cat-lees), html body .note-view {
  font-family: Georgia, 'Gelasio', 'Liberation Serif', 'DejaVu Serif', serif !important;
  font-size: 11pt !important; line-height: 1.42 !important; color: #000 !important;
  text-align: left !important; hyphens: manual !important;
  max-width: none !important; margin: 0 !important; padding: 0 !important;
}
html body .doc:not(.cat-lees) *, html body .note-view * { background: transparent !important; box-shadow: none !important; text-shadow: none !important; }

/* alinea's en lijsten: zoals Word (6–8 pt na een alinea), breken mag, maar geen losse regel boven- of onderaan */
html body .doc:not(.cat-lees) p, html body .note-view p { margin: 0 0 7pt !important; page-break-inside: auto !important; break-inside: auto !important; orphans: 3; widows: 3; }
html body .doc:not(.cat-lees) li, html body .note-view li { margin: 0 0 3pt !important; page-break-inside: auto !important; break-inside: auto !important; orphans: 2; widows: 2; }
html body .doc:not(.cat-lees) ul, html body .doc:not(.cat-lees) ol { margin: 0 0 7pt !important; padding-left: 18pt !important; }

/* koppen: Calibri, blauw, vet; nooit los onderaan een pagina */
html body .doc:not(.cat-lees) :is(h1,h2,h3,h4,h5), html body .note-view :is(h1,h2,h3,h4,h5) {
  font-family: Calibri, Carlito, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
  page-break-after: avoid !important; break-after: avoid !important; page-break-inside: avoid !important; break-inside: avoid !important;
  border: 0 !important; padding: 0 !important; letter-spacing: 0 !important; text-transform: none !important; line-height: 1.2 !important;
}
html body .doc:not(.cat-lees) h1, html body .note-view h1 {
  font-size: 24pt !important; font-weight: 400 !important; color: #17365d !important;
  margin: 0 0 14pt !important; padding-bottom: 5pt !important; border-bottom: 1pt solid #4f81bd !important;
}
html body .doc:not(.cat-lees) h2, html body .note-view h2 { font-size: 14pt !important; font-weight: 700 !important; color: #365f91 !important; margin: 20pt 0 5pt !important; }
html body .doc:not(.cat-lees) h3, html body .note-view h3 { font-size: 12.5pt !important; font-weight: 700 !important; color: #4f81bd !important; margin: 14pt 0 4pt !important; }
html body .doc:not(.cat-lees) h4, html body .doc:not(.cat-lees) h5, html body .note-view h4 { font-size: 11pt !important; font-weight: 700 !important; font-style: italic !important; color: #4f81bd !important; margin: 12pt 0 3pt !important; }
/* tekst direct na een kop blijft bij de kop */
html body .doc:not(.cat-lees) :is(h2,h3,h4) + :is(p,ul,ol,blockquote,.callout) { page-break-before: avoid !important; break-before: avoid !important; }

/* kruimelpad en metaregels boven de titel: klein, grijs, Calibri */
html body .doc .book-crumb, html body .doc .fiche-badge, html body .doc .doc-meta, html body .doc .note-meta {
  font-family: Calibri, Carlito, 'Segoe UI', Arial, sans-serif !important; font-size: 9pt !important; color: #7f7f7f !important;
  border: 0 !important; padding: 0 !important; margin: 0 0 6pt !important; letter-spacing: .02em !important;
}

/* links: gewone tekst, geen stippellijnen of kleuren (op papier klik je niet) */
html body .doc:not(.cat-lees) a, html body .note-view a { color: inherit !important; text-decoration: none !important; border: 0 !important; }

/* citaten en kaders (callouts): blauwe lijn links, lichte achtergrond, kop in Calibri — als "Intens citaat" in Word */
html body .doc:not(.cat-lees) blockquote, html body .doc:not(.cat-lees) .callout, html body .note-view blockquote {
  margin: 9pt 0 11pt !important; padding: 6pt 10pt 4pt 11pt !important;
  border: 0 !important; border-left: 2.5pt solid #4f81bd !important; border-radius: 0 !important;
  background: #f3f6fa !important; -webkit-print-color-adjust: exact; print-color-adjust: exact;
  page-break-inside: auto !important; break-inside: auto !important;
}
html body .doc:not(.cat-lees) .callout > summary {
  font-family: Calibri, Carlito, 'Segoe UI', Arial, sans-serif !important; font-size: 10.5pt !important; font-weight: 700 !important;
  color: #365f91 !important; padding: 0 0 3pt !important; list-style: none !important;
  page-break-after: avoid !important; break-after: avoid !important;
}
html body .doc:not(.cat-lees) .callout > summary::before, html body .doc:not(.cat-lees) .callout > summary::after,
html body .doc:not(.cat-lees) .callout > summary::-webkit-details-marker { content: none !important; display: none !important; }
html body .doc:not(.cat-lees) .callout .callout-body { padding: 0 !important; font-size: 10.5pt !important; }
html body .doc:not(.cat-lees) .callout .callout-body p:last-child, html body .doc:not(.cat-lees) blockquote p:last-child { margin-bottom: 2pt !important; }

/* tabellen: rasterlijnen zoals Word, kop vet, kop herhaald op een nieuwe pagina */
html body .doc:not(.cat-lees) table { border-collapse: collapse !important; width: 100% !important; margin: 8pt 0 11pt !important; font-size: 10pt !important; page-break-inside: auto !important; }
html body .doc:not(.cat-lees) thead { display: table-header-group; }
html body .doc:not(.cat-lees) tr { page-break-inside: avoid !important; break-inside: avoid !important; }
html body .doc:not(.cat-lees) :is(th, td) { border: .5pt solid #a6a6a6 !important; padding: 3pt 5pt !important; vertical-align: top !important; text-align: left !important; }
html body .doc:not(.cat-lees) th { font-family: Calibri, Carlito, 'Segoe UI', Arial, sans-serif !important; font-weight: 700 !important; background: #dbe5f1 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

/* code, voetnoten, scheidingslijnen, afbeeldingen */
html body .doc:not(.cat-lees) code { font-family: Consolas, 'Liberation Mono', monospace !important; font-size: 9pt !important; padding: 0 !important; color: #404040 !important; }
html body .doc:not(.cat-lees) pre { font-size: 9pt !important; white-space: pre-wrap !important; border-left: 2pt solid #bfbfbf !important; padding-left: 8pt !important; }
html body .doc:not(.cat-lees) hr { border: 0 !important; border-top: .75pt solid #bfbfbf !important; margin: 12pt 0 !important; }
html body .doc:not(.cat-lees) sup { font-size: 7.5pt !important; }
html body .doc:not(.cat-lees) :is(.footnotes, section.footnotes) { font-size: 9pt !important; border-top: .75pt solid #bfbfbf !important; margin-top: 18pt !important; padding-top: 6pt !important; }
html body .doc:not(.cat-lees) img { max-width: 100% !important; page-break-inside: avoid !important; }
html body .doc:not(.cat-lees) mark { background: none !important; color: inherit !important; }

/* alles wat op papier niets doet */
.sidebar, .sidebar-overlay, .topbar, .menu-toggle, .doc-notes, .doc-tools, .note-actions, .back-btn, .rbd-toast, .dash-notice,
.thread-backspot, .lp-reading-actions, .vl-knop, .vl-speler, .find-bar, .bp-pop, .ccp-bijbel-popover, .cite-bar,
html body .doc:not(.cat-lees) button, html body .doc:not(.cat-lees) .btn-ghost, html body .doc:not(.cat-lees) .btn-primary { display: none !important; }
main.content, .content { margin: 0 !important; padding: 0 !important; max-width: none !important; background: #fff !important; }
/* begrippen-, bijbel-, belijdenis- en boeklinks (spans met stippellijn op het scherm) */
html body .doc:not(.cat-lees) :is([class*="-ref"], abbr, [data-begrip], [data-ref]), html body .note-view :is([class*="-ref"], abbr) {
  border: 0 !important; text-decoration: none !important; color: inherit !important; cursor: auto !important; }
