/* Shared across prayer, book, contents and standard pages. */
@media print {
  @page { size: auto; margin: 14mm; }

  html, body { margin: 0 !important; padding: 0 !important; background: white !important; color: black !important; }
  .wp-site-blocks { margin: 0 !important; padding: 0 !important; }
  header.wp-block-template-part, footer.wp-block-template-part,
  .site-header, .site-footer, #wpadminbar, .wp-block-navigation,
  [data-book-tools-toggle], [data-reading-control],
  .skip-link, .molitvenik-tools, .molitvenik-breadcrumbs, .molitvenik-feedback,
  .molitvenik-series-navigation, .molitvenik-related, .molitvenik-prayer-toc,
  .prayer-meta, .prayer-intentions, .prayer-featured-image,
  .book-reader-toolbar, .book-reader-resume, .book-reader-toc, .book-reader-original,
  .book-review-search, .book-review-jumps, .book-review-quality,
  .standard-page > .eyebrow { display: none !important; }

  main#main-content { width: auto !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
  .prayer-reading, .standard-page__content { padding: 0 !important; border: 0 !important; box-shadow: none !important; background: white !important; }
  .wp-block-post-title { margin-top: 0 !important; }
  h1, h2, h3, h4, h5, h6 { break-after: avoid; }
  p { orphans: 3; widows: 3; }
  a { color: inherit !important; }

  /* A source proof prints its own title and text, rather than the contents-page wrapper. */
  .molitvenik-book-proof-page .standard-page > .wp-block-post-title,
  .molitvenik-book-proof-page .book-review > p,
  .molitvenik-book-proof-page .book-review-reader > :not(h2):not(.book-review-source) { display: none !important; }
  .molitvenik-book-proof-page .book-review-reader > h2 { margin-top: 0; font-size: 20pt; }
}
