/* ==========================================================================
   Styling and layout for print media
   ========================================================================== */


@media print {

* {
  /* black prints faster - http://sanbeiji.com/archives/953 */
  color: black !important;
  text-shadow: none !important;
  background: transparent !important;
  -webkit-box-shadow: none !important;
  -moz-box-shadow: none !important;
  box-shadow: none !important;
}

body {
  font-family: 'Pontano Sans', sans-serif;
  font-size: 8pt;
  line-height: 1.5;
  margin: .5cm;
  padding: 2em 5em;
}

header {
  border-bottom: solid 1pt black;
}

footer {
  margin-top: 12pt;
  border-top: solid 1pt black;
}

/* hide unnecessary content from print */
nav,
audio,
video,
form,
[role="complementary"],
#paginator,
#comments-form,
.comments h4 a:last-child {
  display: none;
}

a {
  text-decoration: none;
}

/* show URLs for certain links in print */
a[href]:after {
  content: " (" attr(href) ")";
}

h1 a[href]:after,
h2 a[href]:after,
h3 a[href]:after,
sup a[href]:after,
a[itemprop="discussionUrl"]:after,
a[rel="tag"]:after {
  content: "";
}

/* show long-form for abbreviations in print */
abbr[title]:after {
  content: " (" attr(title) ")";
}

h1 {
  font-size: 32pt;
  line-height: 36pt;
  font-weight: normal;
  margin: .5em 0;
}

h2 {
  font-size: 18pt;
  line-height: 23pt;
  page-break-after: avoid;
  orphans: 3;
  widows: 3;
  margin: .66666666666667em 0;
}

h3 {
  font-size: 12pt;
  line-height: 17pt;
  page-break-after: avoid;
  orphans: 3;
  widows: 3;
  margin: .66666666666667em 0;
}

p {
  orphans: 3;
  widows: 3;
}

footer,
figcaption,
tfoot,
small,
.footnote {
  font-size: 6pt;
}

blockquote {
}

pre {
  margin-bottom: 8pt;
  border: solid 1pt black;
  padding: 8pt;
}

.comments {
  page-break-inside: avoid;
}

pre,
code,
kbd,
samp,
var {
  font-family: "Courier New", Courier, monospace;
}

dfn,
q,
dt {
  font-style: italic;
}

img {
  max-width: 100% !important;
  page-break-inside: avoid;
}

/* image alignemnts */
img.align-left {
  float: left;
  margin: 1em 1em 1em 0;
}
img.align-right {
  float: right;
  margin: 1em 0 1em 1em;
}
img.align-center {
  display: block;
  margin: 1em auto;
}

audio {
  display: none;
}

figure {
  margin-bottom: 8pt;
}

figcaption {
  margin-top: 4pt;
}

ul {
  list-style: square;
  margin: 0 0 8pt 1.8em;
}

ol {
  list-style: decimal;
  margin: 0 0 8pt 1.8em;
}

dl {
  margin: 0 0 8pt 1.8em;
}

table {
  margin-bottom: 8pt;
  width: 100%;
}

caption {
  font-weight: bold;
  text-align: left;
  margin-bottom: 4pt;
}

/* display table head across multi-page tables - http://css-discuss.incutio.com/wiki/Printing_Tables */
thead {
  display: table-header-group;
}

thead th {
  border-top: solid 1pt black;
}

tr {
  page-break-inside: avoid;
}

th,
td {
  border-bottom: solid 1pt black;
  padding: 4pt 8pt;
}

}