/* ============================================================
   Print — committee-ready output from any browser.
   Target: A4, monochrome, letterhead-style.
   Doctrine §16 requires every substantive page to print cleanly.
   ============================================================ */

@page {
    size: A4;
    margin: 2cm 2cm 2.5cm 2cm;
}

@media print {

    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    html, body {
        background: #fff;
        font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
        font-size: 11pt;
        line-height: 1.5;
        color: #000;
    }

    /* Letterhead at the top of every printed page. */
    body::before {
        content: "EAPL Technologies  ·  Executing imaginations  ·  www.eapltechnologies.com";
        display: block;
        border-bottom: 1pt solid #000;
        padding-bottom: 6pt;
        margin-bottom: 16pt;
        font-family: 'Inter', Arial, sans-serif;
        font-size: 9pt;
        letter-spacing: 0.02em;
    }

    /* Hide site chrome. */
    .topbar,
    .nav-primary,
    .footer,
    .skip-link,
    .download-pdf-btn,
    form,
    button,
    video,
    audio,
    iframe {
        display: none !important;
    }

    /* Flatten layout containers. */
    .site-main,
    .page-body,
    .container,
    .container-default,
    .container-longform {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    /* Headings */
    h1, h2, h3, h4, h5, h6 {
        font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
        color: #000;
        page-break-after: avoid;
        break-after: avoid;
    }

    h1 { font-size: 20pt; margin-top: 0; }
    h2 { font-size: 14pt; margin-top: 14pt; }
    h3 { font-size: 12pt; margin-top: 12pt; }

    p {
        orphans: 3;
        widows: 3;
        max-width: none;
    }

    img,
    table,
    figure,
    blockquote {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    ul, ol {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    /* Surface destination URLs next to external/internal links. */
    a[href^="http"]::after,
    a[href^="/"]::after,
    a[href^="mailto:"]::after,
    a[href^="tel:"]::after {
        content: " (" attr(href) ")";
        font-family: 'Inter', Arial, sans-serif;
        font-size: 8.5pt;
        color: #444 !important;
        word-break: break-all;
    }

    /* Same-page anchors don't need the URL echo. */
    a[href^="#"]::after {
        content: "";
    }

    table {
        border-top: 0.5pt solid #000;
        border-bottom: 0.5pt solid #000;
    }

    th, td {
        border-bottom: 0.5pt solid #999;
    }

    /* "Last reviewed" date surfaces prominently at the end. */
    .last-reviewed {
        display: block;
        font-size: 9pt;
        color: #444 !important;
        font-style: italic;
        margin-top: 20pt;
        padding-top: 8pt;
        border-top: 0.5pt solid #999;
    }

    .kicker {
        color: #444 !important;
    }
}