/* ==========================================================================
   CV Page — screen + print styles
   ========================================================================== */

.cv-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    background: #fff;
    color: #1a1a1a;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 11px;
    line-height: 1.35;
}

/* ---------- Print button ---------- */
.cv-print-btn {
    position: fixed;
    top: 5rem;
    right: 2rem;
    padding: .5rem 1rem;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    z-index: 100;
    font-family: 'Inter', system-ui, sans-serif;
}

.cv-print-btn:hover {
    background: #6d28d9;
}

/* ---------- Header ---------- */
.cv-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid #7c3aed;
    margin-bottom: 1rem;
}

.cv-header-photo {
    flex-shrink: 0;
}

.cv-header-photo img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .15);
    object-fit: cover;
    display: block;
}

.cv-header-info {
    flex: 1;
    text-align: center;
}

.cv-header-cert {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    vertical-align: middle;
}

.cv-header-cert img {
    width: 14px;
    height: 14px;
    display: block;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.cv-header-cert-label {
    font-size: 10px;
    color: #555;
    white-space: nowrap;
}

.cv-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 .15rem;
    color: #1a1a1a;
}

.cv-title {
    font-size: 13px;
    font-weight: 500;
    color: #7c3aed;
    margin: 0 0 .3rem;
}

.cv-contact-line {
    font-size: 10px;
    color: #555;
    margin: 0;
}

.cv-contact-line a {
    color: #555;
    text-decoration: none;
}

.cv-contact-line a:hover {
    color: #7c3aed;
}

/* ---------- Sections ---------- */
.cv-section {
    margin-bottom: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid #e5e5e5;
}

.cv-section:last-child {
    border-bottom: none;
}

.cv-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #7c3aed;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: 0 0 .6rem;
}

/* ---------- Profile ---------- */
.cv-profile p {
    margin: 0;
    font-size: 11px;
}

/* ---------- Experience ---------- */
.cv-experience {
    margin-bottom: 1rem;
}

.cv-experience:last-child {
    margin-bottom: 0;
}

.cv-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .25rem;
    margin-bottom: .15rem;
}

.cv-exp-role {
    font-weight: 600;
    font-size: 11px;
}

.cv-exp-period {
    font-size: 10px;
    color: #666;
    white-space: nowrap;
}

.cv-exp-company {
    font-size: 10.5px;
    color: #444;
    margin: 0 0 .1rem;
    font-style: italic;
}

.cv-exp-list {
    margin: .1rem 0 0;
    padding-left: 1.2rem;
    list-style: disc;
}

.cv-exp-list li {
    margin-bottom: .05rem;
    font-size: 10.5px;
}

.cv-exp-stack {
    font-size: 10px;
    color: #555;
    margin: .1rem 0 0;
}

.cv-exp-context {
    font-size: 10px;
    color: #555;
    margin: .05rem 0 0;
}

/* ---------- Skills ---------- */
.cv-skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .15rem .75rem;
}

.cv-skill-line {
    display: flex;
    gap: .4rem;
    font-size: 10.5px;
}

.cv-skill-cat {
    font-weight: 600;
    white-space: nowrap;
    min-width: 70px;
}

.cv-skill-values {
    color: #444;
}

/* ---------- Certification / Languages ---------- */
.cv-inline-section {
    display: flex;
    gap: 2rem;
    font-size: 10.5px;
}

.cv-inline-section strong {
    font-weight: 600;
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
    @page {
        size: A4;
        margin: 14mm 18mm;
    }

    html, body {
        font-size: 11px;
        background: #fff;
    }

    .site-header,
    .site-footer,
    .cv-print-btn,
    .skip-link {
        display: none !important;
    }

    .cv-page {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .cv-section {
        break-inside: avoid;
    }

    .cv-experience {
        break-inside: avoid;
    }

    a {
        text-decoration: none !important;
        color: inherit !important;
    }

    a[href]::after {
        content: none !important;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 600px) {
    .cv-page {
        padding: 1rem;
        font-size: 12px;
    }

    .cv-name {
        font-size: 20px;
    }

    .cv-skills-grid {
        grid-template-columns: 1fr;
    }

    .cv-inline-section {
        flex-direction: column;
        gap: .25rem;
    }

    .cv-print-btn {
        top: 4.5rem;
        right: 1rem;
        font-size: 12px;
        padding: .4rem .75rem;
    }

    .cv-exp-header {
        flex-direction: column;
        gap: .05rem;
    }
}
