/*
    Print rules for the generated athletic resume.

    A sibling of athlete-profile-print.css rather than an extension of it. That file
    prints a rich public PROFILE - video carousel, share panel, ratings - and its job is
    to strip the interactive furniture off a web page. This one prints a DOCUMENT that was
    designed on paper first: one page, fixed columns, no page breaks inside a block.

    The screen styles live with the component; everything here only applies to print.
*/

@media print {

    @page {
        size: A4 portrait;
        /* Coaches print these and put them in a folder, so leave a real margin. */
        margin: 12mm 12mm 10mm 12mm;
    }

    /* --- strip the application chrome ------------------------------------ */

    .sidebar,
    .nav-menu,
    .top-row,
    .page-header,
    .resume-toolbar,
    .resume-nudge,
    .support-button,
    .toast-container,
    .cookie-consent-banner,
    footer {
        display: none !important;
    }

    body,
    .page,
    main,
    article {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    /* --- the document ---------------------------------------------------- */

    .resume-sheet {
        box-shadow: none !important;
        border: 0 !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        /* Paper is not a screen: reset to a print-legible base. */
        font-size: 10pt;
        line-height: 1.35;
        color: #000;
    }

    .resume-sheet h1 { font-size: 20pt; }
    .resume-sheet h2 { font-size: 11pt; }
    .resume-sheet h3 { font-size: 10pt; }

    /* A section split across a page break is worse than a slightly loose page. */
    .resume-block {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .resume-header {
        border-bottom: 2pt solid #000 !important;
        background: none !important;
        color: #000 !important;
    }

    .resume-photo {
        /* Backgrounds and images are dropped by default in most print dialogs. */
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Section headings carry a tint on screen; on paper a rule reads better and
       survives printers set to greyscale or "no background graphics". */
    .resume-section-title {
        background: none !important;
        color: #000 !important;
        border-bottom: 1pt solid #666 !important;
        padding-left: 0 !important;
    }

    .resume-chip {
        background: none !important;
        border: 0.5pt solid #999 !important;
        color: #000 !important;
    }

    /*
        Links must print their destination.

        A printed resume that says "Watch my highlights" with no URL is a dead end
        the coach is holding paper. Every outbound link prints its address after it.
    */
    .resume-sheet a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #333;
        word-break: break-all;
    }

    /* ...except where the URL is already printed as visible text next to it. */
    .resume-sheet a.resume-url-shown::after {
        content: "";
    }

    a {
        color: #000 !important;
        text-decoration: none !important;
    }

    .resume-qr {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
