/* ============================================================
   Resume Template V2 — "Modern Editorial"
   A genuinely different design from V1 (Classic ATS).
   
   Key differentiators:
   - Inter font (Google Fonts) instead of Calibri
   - Thin-weight uppercase name with wide letter-spacing
   - Tinted contact bar with blue links
   - Left accent-bar section headers (no underline)
   - More whitespace and breathing room
   - Softer color palette with blue accent
   ============================================================ */

/* ATS-safe: no @import, no web fonts. Calibri is universally parsed. */

/* ---------- Page sizing ---------- */
@page {
    size: A4;
    margin: 0.4in 0.35in;
}

/* ---------- Base typography ---------- */
.resume-page {
    font-family: Calibri, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 10.5pt;
    font-weight: 400;
    line-height: 1.3;
    color: #1a1a1a;
}

/* ---------- Print rules ---------- */
@media print {
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    html {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
    }

    body {
        margin: 0.4in 0.35in !important;
        padding: 0 !important;
        background: white !important;
        font-family: Calibri, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
        font-size: 10.5pt;
    }

    #resume-content {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
    }

    .resume-page {
        width: 100%;
        padding: 0 !important;
        box-shadow: none !important;
        min-height: auto;
        max-height: none;
        border-radius: 0 !important;
    }

    ul,
    ol {
        margin: 0;
        padding-left: 16px;
    }

    h1 {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* ATS-safe: strip all decorative backgrounds in print */
    .resume-page h2 {
        background: none !important;
        border-left: 3px solid #000 !important;
        color: #000 !important;
    }
    .resume-page h1+p {
        background: none !important;
        color: #000 !important;
        border: 1px solid #ccc !important;
    }
    .resume-page h1+p a {
        color: #000 !important;
    }
    }

    /* Ensure all text and links print as pure black */
    .resume-page h1,
    .resume-page h2,
    .resume-page h3,
    .resume-page h4,
    .resume-page p,
    .resume-page li,
    .resume-page a {
        color: #000000 !important;
    }

    .page-number {
        display: none;
    }
}

/* ---------- Screen preview ---------- */
@media screen {
    #resume-content {
        background: var(--surface-app, #e0e0e0);
        padding: 20px;
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .resume-page {
        width: 8.30in;
        padding: 0.4in 0.35in;
        margin: 20px auto;
        background: white;
        box-shadow:
            0 1px 2px rgba(0, 0, 0, 0.04),
            0 4px 12px rgba(0, 0, 0, 0.06),
            0 16px 40px rgba(0, 0, 0, 0.05);
        border-radius: 4px;
        box-sizing: border-box;
        position: relative;
        flex-shrink: 0;
    }

    .page-number {
        position: absolute;
        bottom: 0.3in;
        right: 0.5in;
        font-size: 8pt;
        color: #94a3b8;
        font-weight: 300;
        letter-spacing: 0.5pt;
    }
}

/* ---------- Color & link defaults (scoped) ---------- */
.resume-page h1,
.resume-page h2,
.resume-page h3,
.resume-page h4,
.resume-page p,
.resume-page li {
    color: #1a1a1a;
}

.resume-page a {
    color: #1a1a1a;
    text-decoration: none;
}

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

/* ---------- Name (h1) — distinct style with accent underline ---------- */
.resume-page h1 {
    text-align: left;
    font-size: 22pt;
    font-weight: 700;
    text-transform: none;
    letter-spacing: -0.5pt;
    color: #1e3a5f;
    margin: 0;
    padding: 0 0 6pt 0;
    border-bottom: 3px solid #2563eb;
    white-space: nowrap;
}

/* ---------- Contact row (p after h1) — styled info bar ---------- */
.resume-page h1+p {
    text-align: left;
    margin: 6pt 0 0 0;
    font-size: 9pt;
    letter-spacing: 0.2pt;
    color: #ffffff;
    background: #1e3a5f;
    padding: 4pt 8pt;
    border-radius: 3px;
    line-height: 1.5;
}

.resume-page h1+p a {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 400;
}

.resume-page .headerInfo a {
    color: #93c5fd;
    text-decoration: none;
    font-weight: 400;
}

/* ---------- Section headers (h2) — strong left accent bar ---------- */
.resume-page h2 {
    border-bottom: none;
    border-left: 4px solid #2563eb;
    background: #eff6ff;
    padding: 3pt 8pt;
    margin: 10pt 0 4pt 0;
    font-size: 10pt;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2pt;
    color: #1e3a5f;
    border-radius: 0 3px 3px 0;
}

/* ---------- Job title (h3) ---------- */
.resume-page h3 {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 10.5pt;
    font-weight: 600;
    color: #1e3a5f;
    margin: 0;
    margin-left: 0 !important;
    padding: 0;
}

.resume-page h3 .normal {
    font-weight: 400;
    color: #64748b;
    font-size: 9.5pt;
}

.resume-page h3,
.resume-page h4 {
    margin-left: 0.1in;
}

/* ---------- Company / subtitle (h4) ---------- */
.resume-page h4 {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 9.5pt;
    font-weight: 500;
    font-style: normal;
    color: #334155;
    margin: 0;
    margin-left: 0 !important;
    padding: 0;
}

/* ---------- Paragraphs ---------- */
.resume-page p {
    text-align: justify;
    margin: 0;
    padding: 0;
    font-size: 10.5pt;
    line-height: 1.3;
}

/* ---------- Spacer spans ---------- */
.resume-page .spacer {
    margin: 0px auto;
}

.resume-page .indent {
    margin-left: 0.1in;
}

.resume-page .tech-stack {
    font-style: normal;
    font-weight: normal;
}

/* ---------- Lists ---------- */
.resume-page ul {
    margin: 0 !important;
    padding: 0;
    padding-left: 14px !important;
    padding-right: 12px;
    font-size: 10.5pt;
}

.resume-page ul>li {
    margin: 0;
    padding: 0;
    margin-bottom: 1pt;
    line-height: 1.3;
}

/* ---------- Bullet style — clean black ---------- */
.resume-page ul>li::marker {
    color: #1a1a1a;
}
