/* ATS resume: single column, letter size, print-ready */

*,
*::before,
*::after {
    box-sizing: border-box;
}

@page {
    size: letter;
    margin: 0.75in;
}

html {
    font-size: 11pt;
}

body.ats-resume {
    margin: 0;
    color: #000;
    background: #525659;
    font-family: 'Inter', Arial, Calibri, "Segoe UI", Helvetica, sans-serif;
    font-size: 11pt;
    line-height: 1.08;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 0.08em;
}

.ats-toolbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    background: #1f1f1f;
    color: #fff;
    border-bottom: 1px solid #333;
}

.ats-toolbar a {
    color: #fff;
}

.ats-toolbar__btn {
    appearance: none;
    border: 1px solid #fff;
    background: #fff;
    color: #000;
    font: inherit;
    font-size: 10.5pt;
    font-weight: 700;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
}

.ats-toolbar__btn:hover {
    background: #f0f0f0;
}

.ats-toolbar__link {
    font-size: 10.5pt;
    text-decoration: none;
}

.ats-document {
    width: 8.5in;
    max-width: calc(100vw - 2rem);
    margin: 1rem auto 2rem;
    padding: 0.75in;
    background: #fff;
    box-shadow: 0 0 0 1px #ccc, 0 6px 28px rgba(0, 0, 0, 0.28);
}

.ats-header {
    text-align: left;
    margin-bottom: 10pt;
}

.ats-contact-line,
.ats-headline {
    margin: 0;
    font-size: 11pt;
    font-weight: 400;
    line-height: 1.15;
    color: #000;
}

.ats-headline {
    margin-top: 4pt;
}

/* name-header.php + color-schemes.js own the look; tighten for letter layout */
.ats-header #name-header,
.ats-header #name-header.page-title,
.ats-header #name-header.header-text-style {
    margin-bottom: 0.75rem !important;
    text-align: left !important;
    font-size: 1.75rem !important;
    letter-spacing: 2px !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

.ats-main {
    display: flex;
    flex-direction: column;
}

/* Teaser grids wrap sections; let child sections use flex order below */
.ats-main .cv-teaser-grid {
    display: contents;
}

.ats-main .section {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent !important;
    box-shadow: none !important;
    border: 0;
}

#summary { order: 1; }
#highlights { order: 2; }
#employment { order: 3; }
#education { order: 4; }
#skills { order: 5; }
#certifications { order: 6; }
#installations { order: 7; }
#exhibitions { order: 8; }
#publications { order: 9; }
#awards { order: 10; }
#references { order: 11; }
#projects { order: 12; }
#cover-letter { order: 1; }

#brands {
    display: none !important;
}

.ats-main .section h2 {
    margin: 10pt 0 5pt;
    padding: 0;
    font-size: 13pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #000;
    background: transparent !important;
    border: 0;
}

.ats-main .section h3 {
    margin: 0 0 2pt;
    font-size: 11pt;
    font-weight: 700;
    line-height: 1.15;
    color: #000;
}

.ats-main .section h4 {
    margin: 0 0 2pt;
    font-size: 11pt;
    font-weight: 700;
    line-height: 1.15;
}

.ats-main p,
.ats-main li,
.ats-main .skill-name,
.ats-main .institution,
.ats-main .organization,
.ats-main .date,
.ats-main .gpa,
.ats-main .instructor,
.ats-main .credential-id {
    font-size: 11pt;
    line-height: 1.08;
    color: #000;
}

.ats-main p {
    margin: 0 0 4pt;
}

.ats-main ul {
    margin: 3pt 0 0;
    padding-left: 1.15rem;
    list-style-type: disc;
}

.ats-main li {
    margin: 0 0 2pt;
}

.ats-main li::marker {
    color: #000;
}

.ats-main .organization,
.ats-main .institution {
    margin: 0 0 2pt;
    font-weight: 400;
}

.ats-main .date {
    margin: 0 0 4pt;
    font-weight: 400;
}

.ats-main .employment-item,
.ats-main .education-item,
.ats-main .certification-item,
.ats-main .publication-item,
.ats-main .award-item,
.ats-main .reference-item,
.ats-main .installation-item,
.ats-main .exhibition-item,
.ats-main .highlight-item,
.ats-main .impact-highlight,
.ats-main .skill-category {
    display: block;
    width: 100%;
    margin: 0 0 9pt;
    padding: 0;
}

.ats-main .highlights-grid,
.ats-main .skills-grid,
.ats-main .employment-grid,
.ats-main .education-grid,
.ats-main .certifications-grid,
.ats-main .exhibitions-grid,
.ats-main .installations-grid,
.ats-main .publications-grid,
.ats-main .awards-grid,
.ats-main .references-grid,
.ats-main .logo-grid,
.ats-main .logo-bar,
.ats-main .cover-letter-links-grid {
    display: block !important;
    width: 100% !important;
    columns: 1 !important;
    column-count: 1 !important;
    grid-template-columns: none !important;
}

.ats-main .exhibition-item,
.ats-main .exhibition-content,
.ats-main .exhibition-year {
    display: block;
    width: 100%;
}

.ats-main .exhibition-year {
    font-weight: 700;
    margin-bottom: 1pt;
}

.ats-main .skill-item {
    display: block;
    margin: 0 0 2pt;
}

.ats-main .skill-category > h3 {
    margin-top: 6pt;
}

.ats-main .collapsible-content,
.ats-main .summary-content {
    max-height: none !important;
    overflow: visible !important;
    mask-image: none;
    -webkit-mask-image: none;
}

.ats-main .view-more-btn,
.ats-main .view-details-btn {
    display: none !important;
}

.ats-main .ats-cover-letter-links {
    margin: 4pt 0 0;
    padding-left: 1.15rem;
}

.ats-main .logo-bar,
.ats-main .logo-grid,
.ats-main .logo-item,
.ats-main .certification-item__logos,
.ats-main .certification-badge__logos,
.ats-main img:not(.cover-letter-signature),
.ats-main .google-ai-certified__logo {
    display: none !important;
}

.ats-cover-letter .ats-main img.cover-letter-signature {
    display: block !important;
    max-width: 2.25in;
    height: auto;
    margin: 4pt 0;
}

.ats-main .certification-item__header,
.ats-main .certification-item__featured-layout {
    display: block;
}

.ats-main .certification-badge {
    font-size: 11pt;
}

.ats-main .reference-public-contact,
.ats-main .reference-note {
    font-size: 10.5pt;
    font-style: italic;
}

.ats-main strong {
    font-weight: 700;
}

@media print {
    html {
        font-size: 11pt;
    }

    body.ats-resume {
        background: #fff;
    }

    .ats-toolbar {
        display: none !important;
    }

    .ats-document {
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
        box-shadow: none;
    }

    .ats-header #name-header,
    .ats-header #name-header.page-title,
    .ats-header #name-header.header-text-style {
        font-size: 1.75rem !important;
        margin-bottom: 0.75rem !important;
        letter-spacing: 2px !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .ats-main .section {
        break-inside: auto;
        page-break-inside: auto;
    }

    .ats-main .section h2 {
        break-after: avoid;
        page-break-after: avoid;
    }

    .ats-main .employment-item,
    .ats-main .education-item,
    .ats-main .certification-item,
    .ats-main .highlight-item,
    .ats-main .reference-item {
        break-inside: auto;
        page-break-inside: auto;
    }

    a {
        color: #000;
    }
}

@media screen and (max-width: 900px) {
    .ats-document {
        width: auto;
        margin: 0.5rem;
        padding: 0.6in 0.5in;
    }

}
