/* === Resume Wrapper === */
.resume-wrapper {
    padding: 48px 24px;
}

/* === Paper Sheet === */
.resume-sheet {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto 40px;
    background: #ffffff;
    color: #333;
    border-radius: 4px;
    padding: 14mm 16mm;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 12px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    font-size: 10pt;
    line-height: 1.45;
}

.resume-sheet:last-child {
    margin-bottom: 0;
}

/* === Download Button === */
.resume-actions {
    max-width: 210mm;
    margin: 0 auto 24px;
    display: flex;
    justify-content: flex-end;
}

.resume-download {
    gap: 8px;
    white-space: nowrap;
}

/* === CV Header === */
.cv-header {
    margin-bottom: 16px;
}

.cv-name-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 10px;
}

.cv-name {
    font-size: 22pt;
    font-weight: 700;
    color: #111;
    line-height: 1.1;
}

.cv-title {
    font-size: 14pt;
    font-style: italic;
    color: #666;
}

/* Contact grid: 2 columns, 3 rows */
.cv-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px 24px;
}

.cv-contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9pt;
    color: #444;
}

.cv-contact-item svg {
    flex-shrink: 0;
    color: #555;
}

.cv-contact-item a {
    color: #444;
}

.cv-contact-item a:hover {
    color: #111;
}

/* === Section Title with underline === */
.cv-section {
    margin-bottom: 14px;
}

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

.cv-section-title {
    font-size: 12pt;
    font-weight: 700;
    color: #111;
    border-bottom: 1px solid #bbb;
    padding-bottom: 3px;
    margin-bottom: 10px;
}

/* === Profile === */
.cv-profile-text {
    font-size: 10pt;
    color: #333;
    line-height: 1.5;
}

/* === Two-column Entry (dates left, content right) === */
.cv-entry {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0 20px;
    margin-bottom: 14px;
}

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

.cv-entry-left {
    display: flex;
    flex-direction: column;
    padding-top: 1px;
}

.cv-entry-dates {
    font-size: 9pt;
    color: #333;
    white-space: nowrap;
}

.cv-entry-location {
    font-size: 9pt;
    color: #555;
}

.cv-entry-right {
    min-width: 0;
}

.cv-entry-role {
    font-size: 10.5pt;
    font-weight: 700;
    color: #111;
    line-height: 1.3;
}

.cv-entry-org {
    font-size: 10pt;
    font-style: italic;
    color: #444;
    margin-top: 1px;
}

.cv-entry-details {
    margin-top: 4px;
    padding-left: 18px;
    list-style: disc;
}

.cv-entry-details li {
    font-size: 9.5pt;
    color: #333;
    line-height: 1.45;
    margin-bottom: 1px;
}

/* === Skills grid === */
.cv-skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 40px;
}

.cv-skill-label {
    font-size: 10pt;
    font-weight: 700;
    color: #111;
    margin-bottom: 2px;
}

.cv-skill-list {
    font-size: 9.5pt;
    color: #333;
    line-height: 1.45;
}

/* === GDPR Consent === */
.cv-consent {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #bbb;
}

.cv-consent p {
    font-size: 8pt;
    font-style: italic;
    color: #555;
    text-align: center;
    line-height: 1.4;
}

/* === Print === */
@page {
    size: A4;
    margin: 0;
}

@media print {
    .site-nav,
    .site-footer,
    .resume-actions {
        display: none !important;
    }

    body::before,
    body::after {
        display: none !important;
    }

    body {
        background: white !important;
    }

    main {
        min-height: auto;
    }

    .resume-wrapper {
        padding: 0;
    }

    .resume-sheet {
        width: auto;
        min-height: 0;
        margin: 0;
        padding: 14mm 16mm;
        border-radius: 0;
        box-shadow: none;
        break-after: page;
        overflow: visible;
    }

    .resume-sheet:last-child {
        break-after: auto;
    }

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

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

/* === Responsive (screen only, not print) === */
@media screen and (max-width: 860px) {
    .resume-sheet {
        width: auto;
        min-height: 0;
        border-radius: 0;
    }

    .resume-wrapper {
        padding: 0;
    }

    .resume-actions {
        padding: 16px 16px 0;
    }

    .cv-name-row {
        flex-direction: column;
        gap: 4px;
    }

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

    .cv-entry {
        grid-template-columns: 1fr;
        gap: 2px;
    }

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