/* Executive Resume Template Styles
 * Modern sans-serif styling optimized for tech, healthcare, and general sectors
 * Single-column layout for ATS compatibility (94-97% parsing accuracy)
 * Story: 6-4-executive-resume-template
 */

/* Page setup - 1 inch margins for professional executive resume */
@page {
    size: letter;
    margin: 1in;
}

/* Running header for page 2+ */
@page :not(:first) {
    @top-center {
        content: element(running-header);
    }
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Calibri', 'Segoe UI', Arial, sans-serif;
    font-size: 11pt;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 0;
    padding: 0;
}

/* Running header - appears on page 2+ */
.running-header {
    position: running(running-header);
    font-size: 10pt;
    color: #555;
    text-align: center;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #ddd;
}

/* Resume Header */
.resume-header {
    text-align: center;
    margin-bottom: 1.5em;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 1em;
}

.name {
    font-size: 22pt;
    font-weight: bold;
    margin: 0;
    color: #1a1a1a;
}

.professional-title {
    font-size: 14pt;
    color: #2c3e50;
    margin: 0.25em 0;
    font-weight: normal;
}

.contact-line {
    font-size: 10pt;
    color: #555;
    margin-top: 0.5em;
}

.contact-line a {
    color: #2c3e50;
    text-decoration: none;
}

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

/* Section Headers */
h2 {
    font-size: 12pt;
    font-weight: bold;
    color: #2c3e50;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.25em;
    margin-top: 1.25em;
    margin-bottom: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Executive Summary */
.executive-summary p {
    text-align: justify;
    margin: 0;
    line-height: 1.5;
}

.executive-summary .placeholder {
    color: #888;
    font-style: italic;
}

/* Career Highlights - CTO/Executive hybrid format (Story 6.13) */
.career-highlights {
    margin-bottom: 1.5em;
    page-break-inside: avoid;
}

.career-highlights h2 {
    font-size: 12pt;
    color: #2c3e50;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.25em;
    margin-bottom: 0.75em;
    text-transform: uppercase;
}

.highlights-list {
    list-style: disc;
    padding-left: 1.25em;
    margin: 0;
}

.highlights-list li {
    font-size: 11pt;
    margin-bottom: 0.5em;
    line-height: 1.4;
}

/* Core Competencies / Skills Grid */
.core-competencies {
    page-break-inside: avoid;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.skill {
    background: #f5f5f5;
    padding: 0.25em 0.75em;
    border-radius: 3px;
    font-size: 10pt;
    color: #333;
}

/* Professional Experience */
.experience {
    page-break-inside: avoid;
}

.position {
    margin-bottom: 1.25em;
    page-break-inside: avoid;
}

.position-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.company {
    font-size: 11pt;
    font-weight: bold;
    margin: 0;
    color: #1a1a1a;
}

.dates {
    font-size: 10pt;
    color: #555;
}

.role {
    font-style: italic;
    margin: 0.25em 0;
    color: #333;
}

/* Scope indicators - Executive feature (Story 6.16: Enhanced Scope) */
.scope-line {
    font-size: 10pt;
    color: #5a6a7a;
    font-weight: 500;
    margin: 0.25em 0 0.5em 0;
    font-style: italic;
}

/* Employer-grouped positions (Story 8.1) */
.employer-group {
    margin-bottom: 1.5em;
    page-break-inside: avoid;
}

.employer-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25em;
}

.employer-header .company {
    font-size: 11pt;
    font-weight: bold;
    color: #1a1a1a;
}

.total-tenure {
    font-size: 10pt;
    color: #555;
}

.employer-location {
    font-size: 10pt;
    color: #555;
    margin: 0 0 0.5em 0;
}

.position.nested {
    margin-left: 0.75em;
    margin-bottom: 1em;
    padding-left: 0.75em;
    border-left: 2px solid #e0e0e0;
}

.nested-position-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25em;
}

.role-title {
    font-size: 11pt;
    font-weight: 600;
    color: #2c3e50;
}

.nested-position-header .dates {
    font-size: 9.5pt;
    color: #666;
}

/* Achievement bullets */
.achievements {
    margin: 0.5em 0;
    padding-left: 1.25em;
}

.achievements li {
    margin-bottom: 0.35em;
    line-height: 1.4;
}

.achievements .metrics {
    color: #2c3e50;
    font-weight: 500;
}

/* Certifications */
.certifications {
    page-break-inside: avoid;
}

.cert-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cert-list li {
    margin-bottom: 0.35em;
}

/* Board & Advisory Roles */
.board-roles {
    page-break-inside: avoid;
    margin-top: 1.25em;
}

.board-entry {
    margin-bottom: 0.75em;
    page-break-inside: avoid;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.board-entry .role-title {
    font-style: italic;
    margin: 0.25em 0 0 0;
    color: #333;
}

.board-entry .focus {
    font-size: 10pt;
    color: #555;
    margin: 0.25em 0 0 0;
}

/* Publications & Speaking */
.publications {
    margin-top: 1.25em;
    page-break-inside: avoid;
}

.pub-entry {
    margin-bottom: 0.5em;
    font-size: 10.5pt;
}

.pub-entry a {
    color: #2c3e50;
    text-decoration: none;
}

.pub-entry a:hover {
    text-decoration: underline;
}

/* Education */
.education {
    margin-top: 1.25em;
    page-break-inside: avoid;
}

.edu-entry {
    margin-bottom: 0.75em;
}

.edu-entry .honors {
    display: block;
    font-style: italic;
    color: #555;
    font-size: 10pt;
}

/* Page break controls */
section {
    page-break-inside: avoid;
}

.position {
    page-break-inside: avoid;
}

/* Print-specific styles */
@media print {
    body {
        font-size: 10.5pt;
        color: #000;
    }

    .name {
        color: #000;
    }

    h2 {
        color: #2c3e50;
    }

    .company {
        color: #000;
    }

    a {
        color: #2c3e50;
        text-decoration: none;
    }

    .scope-line,
    .achievements .metrics {
        color: #2c3e50;
    }

    .pub-entry a {
        color: #2c3e50;
    }

    /* Ensure page breaks are respected */
    .position,
    .board-entry,
    .pub-entry,
    section {
        page-break-inside: avoid;
    }

    .position {
        page-break-after: auto;
    }

    .board-entry .focus {
        color: #555;
    }
}

/* Tailored Notice Footer (Story 7.19) */
.tailored-notice {
    margin-top: 1.5em;
    padding-top: 0.75em;
    border-top: 1px solid #ddd;
    text-align: center;
}

.tailored-notice p {
    font-size: 8.5pt;
    color: #777;
    font-style: italic;
    margin: 0;
}

/* Screen preview styles */
@media screen {
    body {
        padding: 1in;
        background: #e8e8e8;
        max-width: 8.5in;
        margin: 0 auto;
    }

    body::before {
        content: '';
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        box-shadow: 0 2px 15px rgba(0,0,0,0.15);
        z-index: -1;
        max-width: 8.5in;
        margin: 0 auto;
    }
}
