/* Print stylesheet for content pages, loaded with media="print" from
   partials/_master.twig.

   Without it a page prints with its header, navigation, search box,
   breadcrumb and promo sidebar, at screen type sizes: the Breastfeeding Help
   page ran to five sheets at the hospitals. Here the chrome is dropped, the
   type is set for paper and long text pages flow in two columns, which fits
   that page on one sheet. */

@page {
    margin: 10mm 12mm;
}

html,
body {
    background: #fff;
    color: #000;
    font-size: 10pt;
    line-height: 1.24;
}

/* Site chrome: header, footer, breadcrumb, search, navigation, promo cards. */
.site-header,
.site-footer,
.breadcrumb,
.skip-link,
.search-form,
.nav-toggle,
#nav-toggle,
.socials,
.sidebar {
    display: none !important;
}

.container {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

.content-layout {
    display: block;
}

.content-layout > .content-main {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}

.article {
    padding: 0;
}

/* Two columns only where nothing has to stay wide: a table, a form or an
   embed would be squeezed unreadably. Older browsers without :has() simply
   keep the single column. */
.article:not(:has(table, form, iframe)) {
    column-count: 2;
    column-gap: 7mm;
}

.article h1 {
    column-span: all;
    font-size: 16pt;
    line-height: 1.2;
    margin: 0 0 6pt;
    color: #000;
}

.article h2 {
    font-size: 12pt;
    line-height: 1.25;
    margin: 7pt 0 3pt;
    color: #000;
}

.article h3 {
    font-size: 10.5pt;
    line-height: 1.25;
    margin: 6pt 0 2pt;
    color: #000;
}

.article h4,
.article h5,
.article h6 {
    font-size: 10pt;
    margin: 5pt 0 2pt;
    color: #000;
}

.article p,
.article li,
.article dt,
.article dd {
    font-size: 10pt;
    line-height: 1.22;
    margin: 0 0 2pt;
}

.article ul,
.article ol {
    margin: 0 0 4pt 12pt;
    padding: 0;
}

.article a,
.article a:visited {
    color: #000;
}

.article img {
    max-width: 100%;
    height: auto;
}

/* A video cannot print, and its frame would just leave a gap. */
.article iframe,
.article .video-wrap {
    display: none !important;
}

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

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

p,
li {
    orphans: 3;
    widows: 3;
}

/* Only on paper: the footer is hidden in print, so the sheet still says who
   published it and where it came from (see partials/_print_footer.twig). */
.print-footer {
    display: block !important;
    margin-top: 6pt;
    padding-top: 4pt;
    border-top: 0.5pt solid #999;
    font-size: 8.5pt;
    line-height: 1.3;
    color: #333;
}
