/**
 * www.TorbenSorensen.com Print Stylesheet
 */

@media print {
    /* Hide non-essential elements for a clean printout */
    .headerbackground,
    .header-actions,
    .header-actions-left,
    #footer,
    .table-of-contents,
    .download-pdf-button,
    #breadcrumb,
    hr,
    #back-to-top {
        display: none;
    }

    /* Reset body and layout styles for printing */
    body {
        background-color: #fff;
        color: #000;
        font-size: 10pt; /* Use points for print media */
        line-height: 1.3;
        margin: 1cm; /* Add some margin for printing */
    }

    /* Ensure banner and job title are visible and clean */
    .banner-title,
    #job-title-header {
        text-align: left;
        font-size: 14pt;
        background: none;
        border: none;
    }

    #content,
    #centercontent {
        max-width: 100%;
        width: 100%;
        box-shadow: none;
        padding: 0;
        margin: 0;
        background-color: #fff;
    }

    /* Ensure section headers are clear but not overly styled */
    .resumeheader,
    .job-entry {
        background-color: #eee !important; /* Use !important to override inline styles if any */
        border: 1px solid #ccc !important;
        -webkit-print-color-adjust: exact; /* Force background color printing */
        print-color-adjust: exact; /* The W3C standard property */
        page-break-before: auto; /* Allow breaks before, but avoid if possible */
        page-break-after: avoid; /* Avoid breaking right after a header */
    }

    .resumetext {
        border: none;
        padding: 10px 0;
    }

    /* Make links visible and understandable on paper */
    a {
        color: #000;
        text-decoration: underline;
    }

    /* Show the URL for external links, but not for internal navigation */
    a[href^="http"]:after,
    a[href^="mailto:"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-style: italic;
    }

    /* Don't show href for internal anchor links */
    a[href^="#"]:after {
        content: "";
    }

    .job-entry {
        page-break-inside: avoid; /* Prevent job entries from splitting across pages */
    }
}