﻿/* ==========================================================================
   print.css - A4 print stylesheet (GIGW 3.0 5.1.20)
   Link it in MasterPage.master <head>:
   <link rel="stylesheet" href="css/print.css" media="print" />
   ========================================================================== */
@page { size: A4; margin: 15mm; }

@media print {
    /* remove navigation, tools, banners and floating buttons */
    .tricolor, .s3-topbar, .s3-nav, .hdr-search, .f-top, .f-social, .f-qlinks,
    #a11yLaunch, #a11yPanel, [role="dialog"], [id*="cookie"], [class*="cookie"],
    .skip-links, .topbar-links, nav, button, video, iframe { display: none !important; }

    html, body { background: #fff !important; color: #000 !important; font-size: 12pt; line-height: 1.4; }
    * { box-shadow: none !important; text-shadow: none !important; }

    /* keep header lock-up and footer lineage; flatten the footer colour */
    .s3-header { border-bottom: 1px solid #000; padding-bottom: 6pt; }
    .s3-footer, .s3-footer * { background: #fff !important; color: #000 !important; }
    .s3-footer { border-top: 1px solid #000; margin-top: 12pt; }

    .s3-container, main, #main-content { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
    img { max-width: 100% !important; height: auto !important; }

    /* print the address after links inside the page content */
    main a[href^="http"]::after, #main-content a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }

    table { border-collapse: collapse; width: 100%; }
    thead { display: table-header-group; }
    tr, img, figure { break-inside: avoid; }
    th, td { border: 1px solid #000; padding: 3pt 5pt; }
    h1, h2, h3 { break-after: avoid; }
}