/********** CV **********/

.cv-page {
    max-width: 52rem;
}

/*** Header ***/
.cv-head {
    padding-bottom: 1.75rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--hairline);
}

.cv-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    max-width: none;
    color: var(--ink-500);
    font-size: 0.9375rem;
}

.cv-contact a {
    color: var(--ink-700);
    text-decoration: underline;
    text-underline-offset: 0.16em;
    text-decoration-thickness: 1px;
    transition: color var(--dur-hover) ease;
}

.cv-contact a:hover {
    color: var(--primary);
}

.cv-contact span {
    color: var(--ink-300);
}

.cv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/*** Sections ***/
.cv-section {
    margin-bottom: 2.75rem;
}

.cv-section-title {
    margin-bottom: 1.25rem;
    color: var(--primary) !important;
    font-size: 0.8125rem;
    font-weight: 700 !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.cv-entry {
    margin-bottom: 1.75rem;
}

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

/* Org/role on the left, place/date on the right — stacking on narrow screens
   rather than crushing the two columns together. */
.cv-entry-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0 1rem;
}

.cv-org {
    margin: 0;
    color: var(--ink-900) !important;
    font-size: 1.0625rem;
    font-weight: 600 !important;
}

.cv-role {
    margin: 0;
    max-width: none;
    color: var(--ink-700);
    font-size: 0.9375rem;
}

.cv-meta {
    color: var(--ink-500);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.cv-entry ul {
    margin: 0.5rem 0 0;
    padding-left: 1.1rem;
}

.cv-entry li {
    margin-bottom: 0.3rem;
    color: var(--ink-700);
    font-size: 0.9375rem;
}

.cv-entry li::marker {
    color: var(--ink-300);
}

.cv-entry ul + .cv-entry-head {
    margin-top: 1.25rem;
}

.cv-note {
    margin: 0.5rem 0 0;
    max-width: none;
    color: var(--ink-500);
    font-size: 0.875rem;
}

/*** Publications ***/
.cv-pubs {
    margin: 0;
    padding-left: 1.2rem;
}

.cv-pubs li {
    margin-bottom: 0.75rem;
    color: var(--ink-700);
    font-size: 0.9375rem;
}

.cv-pubs li::marker {
    color: var(--ink-300);
}

/*** Awards ***/
.cv-awards {
    margin: 0;
    padding: 0;
    list-style: none;
}

.cv-awards li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--hairline);
    color: var(--ink-700);
    font-size: 0.9375rem;
}

.cv-awards li:last-child {
    border-bottom: 0;
}

/*** Skills ***/
.cv-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cv-skills li {
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius-pill);
    background-color: var(--surface-1);
    color: var(--ink-700);
    font-size: 0.875rem;
}

@media (max-width: 520px) {
    .cv-meta {
        white-space: normal;
    }

    .cv-entry-head {
        flex-direction: column;
        gap: 0.125rem;
    }

    .cv-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/*** Print — the page is the PDF ***/
@media print {
    .site-nav,
    .copyright,
    .back-to-top,
    .cv-actions,
    #spinner {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .container-xxl {
        padding: 0 !important;
    }

    .cv-page {
        max-width: none;
    }

    .cv-section {
        break-inside: avoid;
        margin-bottom: 1.5rem;
    }

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

    .cv-skills li {
        border: 0;
        padding: 0 0.5rem 0 0;
    }

    /* Reveals must never keep printed content invisible */
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
    }
}
