/* resume.css - Mimics Jake's Resume Format */

/* Base Styles */
.resume-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    font-family: "Times New Roman", Times, serif;
    color: #000;
    line-height: 1.4;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.resume-wrapper * {
    box-sizing: border-box;
}

/* Header */
.resume-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.resume-header h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem 0;
    font-weight: normal;
}

.resume-contact {
    font-size: 1rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resume-contact a {
    color: #000;
    text-decoration: none;
}

.resume-contact a:hover {
    text-decoration: underline;
}

.contact-item:not(:last-child)::after {
    content: " |";
    margin-left: 0.5rem;
}

/* Sections */
.resume-section {
    margin-bottom: 1.5rem;
}

.resume-section-title {
    font-size: 1.25rem;
    font-variant: small-caps;
    border-bottom: 1px solid #000;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.25rem;
    font-weight: bold;
}

/* Item Entries */
.resume-item {
    margin-bottom: 1rem;
}

.resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items:baseline;
    margin-bottom: 0.2rem;
}

.resume-item-title {
    font-weight: bold;
    font-size: 1.1rem;
}

.resume-item-location, .resume-item-date {
    font-size: 1rem;
}

.resume-item-subtitle-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.2rem;
    font-style: italic;
}

/* Lists */
.resume-list {
    margin: 0;
    padding-left: 1.2rem;
}

.resume-list li {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

/* Download Button Container */
.resume-download-bar {
    max-width: 800px;
    margin: 2rem auto 1rem auto;
    display: flex;
    justify-content: flex-end;
}

.btn-download {
    background-color: #0056b3;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    transition: background-color 0.2s;
}

.btn-download:hover {
    background-color: #003d82;
}

/* Print Styles */
/* Print Styles - Optimized for ATS-Friendly Vector Text Layer */
@media print {
    /* 1. Reset Global Print Behavior with Standard + Prefixed properties */
    * {
        /* Standard property for modern compatibility */
        print-color-adjust: exact !important;
        /* Vendor-prefixed for Safari/Older Chrome */
        -webkit-print-color-adjust: exact !important;
        
        /* Remove anything that triggers 'Image flattening' */
        text-shadow: none !important;
        box-shadow: none !important;
        filter: none !important; 
        transition: none !important;
    }

    /* 2. Layout & Visibility */
    header.page-header, 
    footer.site-footer, 
    .resume-download-bar,
    .btn-download {
        display: none !important;
    }

    @page {
        margin: 0.5in;
        size: auto; 
    }

    body {
        background-color: #ffffff !important;
        color: #000000 !important;
        /* Standard property */
        print-color-adjust: exact;
        /* Vendor-prefixed fallback */
        -webkit-print-color-adjust: exact;
    }

    .resume-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        width: 100% !important;
        max-width: none !important;
        background: none !important;
    }

    /* 3. Typography & Color Reset */
    .resume-wrapper, .resume-wrapper * {
        color: #000 !important;
        background: transparent !important;
        /* Ensures Tinos maps correctly to character codes */
        text-rendering: optimizeLegibility;
    }

    /* 4. Page Break & Flow Logic */
    .resume-section {
        break-inside: auto;
    }

    .resume-section-title {
        break-after: avoid;
        page-break-after: avoid;
        font-weight: bold;
        /* Small-caps can sometimes break selection, standard caps is safer */
        font-variant: normal; 
        text-transform: uppercase;
    }

    .resume-item-header,
    .resume-item-subtitle-wrapper {
        break-after: avoid;
        page-break-after: avoid;
    }
    
    .resume-item, 
    .resume-company-block {
        break-inside: auto;
        page-break-inside: auto;
        margin-bottom: 1rem;
    }
    
    .resume-list li {
        break-inside: avoid;
        page-break-inside: avoid;
        /* Prevents single lines from being stranded on new pages */
        orphans: 3;
        widows: 3;
    }

    #cookie-banner {
        display: none !important;
    }
}
