/* PDF-specific style overrides for mkdocs-with-pdf.
 * First pass: increase margins and improve readability for print.
 */

@page {
  size: A4;
  margin: 26mm 22mm 24mm 22mm;
}

html,
body {
  font-size: 11pt;
  line-height: 1.45;
}

h1 {
  margin-top: 0.2em;
  margin-bottom: 0.45em;
}

h2,
h3,
h4 {
  margin-top: 0.9em;
  margin-bottom: 0.35em;
}

p,
ul,
ol,
table,
pre,
blockquote {
  margin-top: 0.35em;
  margin-bottom: 0.55em;
}

/* Keep code blocks and tables from touching page edges visually. */
pre,
table {
  font-size: 9.5pt;
}

/* Avoid awkward heading breaks at page bottoms. */
h1,
h2,
h3 {
  page-break-after: avoid;
}
