/**
 * @file
 * This file contains overrides for print media.
 */

:root {
    --black: #000; /* Black prints faster: sanbeiji.com/archives/953 */
}

* {
    -ms-filter: none !important;
    filter: none !important;
    color: var(--black) !important;
    background: transparent;
    text-shadow: none !important;
}

html,
body {
    height: auto;
    background: transparent;
}

/**
 * Set typography for printing.
 */

body,
button,
caption,
fieldset,
input,
legend,
option,
select,
textarea,
td,
th {
    letter-spacing: normal;
    font-family: "Times New Roman", Times, serif;
    font-size: 10pt;
    line-height: normal;
}

/* Headings - sizes are set in media query section below */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: 1em;
    font-weight: bold;
}

/* Font size = 10pt, line height = normal, interval = minor third (1:1.2) */
/* http://modularscale.com/scale/?px1=10&px2=&ra1=1.2&ra2=0 */

h1 {
    margin: 0 0 1rem;
    font-size: 20pt;
    line-height: normal;
}

h2 {
    margin: 0 0 1rem;
    font-size: 18pt;
    line-height: normal;
}

h3 {
    margin: 0 0 1rem;
    font-size: 14pt;
    line-height: normal;
}

h4 {
    margin: 0 0 1rem;
    font-size: 12pt;
    line-height: normal;
}

small {
    margin: 0 0 1rem;
    font-size: 8pt;
    line-height: normal;
}

/* Add and/or remove tags as your baseline grid needs */

p,
blockquote,
q,
pre,
address,
hr,
code,
samp,
dl,
form,
table,
fieldset,
menu,
h4,
h5,
h6,
img,
figure,
figcaption,
button {
    margin: 0 0 1rem;
}

a.hfc-home {
    display: none;
}

.section-main a,
.section-main a:link,
.section-main a:visited {
    text-decoration: underline;
    border-bottom: none;
}

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

/* Printing Tables: css-discuss.incutio.com/wiki/Printing_Tables */

thead {
    display: table-header-group;
}

tr,
img {
    page-break-inside: avoid;
}

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

h2,
h3 {
    page-break-after: avoid;
}

.field-label {
    page-break-after: avoid;
}

/**
 * Override styling for various page elements.
 */

@page {
    size: auto; /* auto is the initial value */
    /* this affects the margin in the printer settings */
    margin: 0.5in 0.5in 0.5in 0.5in;
}

body {
    padding-top: 0 !important; /* overrides inline style set by toolbars, which we want to hide. */
}

.section-main {
    width: 100%;
}

.content,
.title {
    width: auto;
    margin: 0 0 1.5rem;
}
