// Print Styles

@media print {

@page {
  size: A4;
}

*,
*::before,
*::after {
  background: #fff !important;
  color: #000 !important;
  /* Black prints faster */
  box-shadow: none !important;
  text-shadow: none !important;
}

.container {
  width: 90%;
}

body {
  font-size: 12pt;
}

#main-header a {
  font-size: 24pt;
}

#main-footer {
  font-size: 11pt;
}

.header {
  font-size: 18pt;
}

h1 {
  font-size: 14pt;
}

h2 {
  font-size: 13pt;
}

h3, h4 {
  font-size: 12pt;
}

#navbar, #share-btn, #utterances, .reversefootnote {
  display: none;
}

a[href]::after {
  content: " (" attr(href) ")";
  font-size: 80%;
}

abbr[title]::after {
  content: " (" attr(title) ")";
}

/*
 * Don't show links that are fragment identifiers,
 * or use the `javascript:` pseudo protocol
 */
a[href^="/index.html"]::after,
.tag a::after,
a[href^="#"]::after,
a[href^="javascript:"]::after {
  content: "";
}

img {
  max-width: 500px;
}

pre {
  white-space: pre-wrap !important;
}

pre, blockquote, figure {
  break-inside: avoid;
}

/*
 * Printing Tables:
 * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
 */
thead {
  display: table-header-group;
}

tr,img {
  break-inside: avoid;
}

p,h2,h3 {
  orphans: 3;
  widows: 3;
}

h1, h2, h3, h4, h5 {
  break-after: avoid;
}

}