/* CV page: a tabular sheet in the same map world */

.cv-container {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: var(--space-5) var(--gutter) var(--space-6);
    color: var(--ink);
}

.cv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--line-strong);
}

.cv-header-text h1 {
    font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem);
    font-variation-settings: "wdth" var(--wdth-wide);
    letter-spacing: -0.025em;
    margin: 0 0 0.35rem 0;
}

.cv-header-text .cv-tagline {
    font-size: 1.05rem;
    color: var(--ink-2);
    font-style: italic;
    margin: 0 0 var(--space-3) 0;
}

.cv-header-text .cv-personal-info {
    font-size: 0.95rem;
    color: var(--ink-2);
    line-height: 1.6;
    margin: 0;
}

.cv-header-text .cv-personal-info a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid var(--gold);
}
.cv-header-text .cv-personal-info a:hover { border-color: currentColor; }

.cv-photo {
    width: 150px;
    height: 180px;
    object-fit: cover;
    object-position: center 20%;
    flex-shrink: 0;
    outline: 1px solid var(--line);
    outline-offset: 5px;
}

.cv-download {
    display: flex;
    justify-content: flex-end;
    padding: var(--space-2) 0 var(--space-4);
}

.cv-download a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: var(--navy);
    color: var(--pale);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-variation-settings: "wdth" var(--wdth-narrow);
    transition: background-color 200ms var(--ease-out);
}
.cv-download a:hover { background: var(--gold-deep); }

.cv-section { margin-bottom: var(--space-5); }

.cv-section-title {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-variation-settings: "wdth" var(--wdth-narrow);
    color: var(--gold-deep);
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 0.5rem;
    margin-bottom: var(--space-3);
}

.cv-entry {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: var(--space-3);
    padding: var(--space-2) 0 var(--space-3);
    border-top: 1px solid var(--line);
}
.cv-entry:first-of-type { border-top: 0; padding-top: 0; }

.cv-date {
    font-size: 0.9rem;
    color: var(--ink-2);
    padding-top: 0.2rem;
    font-variation-settings: "wdth" 90;
}

.cv-details h3 {
    font-size: 1.1rem;
    margin: 0 0 0.3rem 0;
    font-weight: 600;
}

.cv-details .cv-subtitle {
    font-size: 0.95rem;
    color: var(--ink-2);
    font-style: italic;
    margin: 0 0 0.5rem 0;
}

.cv-details ul { list-style: none; padding: 0; margin: 0.5rem 0 0 0; }

.cv-details ul li {
    font-size: 0.95rem;
    line-height: 1.55;
    padding-left: 1.1rem;
    position: relative;
    margin-bottom: 0.4rem;
}
.cv-details ul li::before {
    content: "";
    position: absolute; left: 0; top: 0.6em;
    width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg);
}

.cv-details p { font-size: 0.95rem; line-height: 1.55; margin: 0.3rem 0; }

.cv-skills-entry, .cv-lang-entry {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: var(--space-3);
    padding: 0.45rem 0;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
}
.cv-skills-entry:first-of-type, .cv-lang-entry:first-of-type { border-top: 0; }
.cv-skill-label { font-weight: 600; }
.cv-lang-label { color: var(--ink-2); }
.cv-skill-value, .cv-lang-value { line-height: 1.55; }

.cv-publications ul { list-style: none; padding: 0; margin: 0; }
.cv-publications ul li {
    font-size: 0.95rem; line-height: 1.55; padding-left: 1.1rem; position: relative; margin-bottom: 0.6rem;
}
.cv-publications ul li::before {
    content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg);
}

.cv-footer-note { font-size: 0.9rem; color: var(--ink-2); font-style: italic; margin-top: var(--space-3); }

@media (max-width: 720px) {
    .cv-container { padding-top: var(--space-4); }
    .cv-header { flex-direction: column-reverse; }
    .cv-photo { width: 120px; height: 144px; }
    .cv-download { justify-content: flex-start; }
    .cv-entry, .cv-skills-entry, .cv-lang-entry { grid-template-columns: 1fr; gap: 0.2rem; }
    .cv-date { padding-top: 0; }
}

@media print {
    .cv-download { display: none !important; }
    .cv-container { padding: 0; max-width: 100%; }
}
