/* Dedicated CV layout: readable on screen, compact on A4. */
.cv-shell { width: min(1000px, calc(100% - 32px)); }
.cv-topbar { flex-wrap: wrap; }
.cv-print-hint { margin: 0 6px 18px; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.cv-page { background: #fffefa; color: #292723; font-size: .94rem; }
.cv-header { grid-template-columns: 1fr; gap: 18px; padding-bottom: 24px; }
.cv-identity { gap: 22px; align-items: center; }
.cv-photo-placeholder { width: 100px; border-radius: 18px; }
.cv-header h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1.12; letter-spacing: -.04em; }
.cv-role { font-size: .98rem; line-height: 1.45; }
.cv-contact { display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 5px; font-size: .82rem; color: #57534e; }
.cv-contact a { text-decoration: underline; text-decoration-color: #d2c5b8; text-underline-offset: 3px; }
.cv-section { grid-template-columns: 150px minmax(0, 1fr); gap: 24px; padding: 23px 0; }
.cv-section h2 { font-size: .76rem; line-height: 1.6; font-weight: 700; color: #765638; letter-spacing: .06em; text-transform: uppercase; }
.cv-section-content { min-width: 0; }
.cv-summary p, .cv-entry p, .cv-entry li, .cv-project, .cv-facts { color: #494641; line-height: 1.65; }
.cv-entry-head { gap: 12px; flex-wrap: wrap; }
.cv-entry-head h3 { font-size: .95rem; line-height: 1.45; }
.cv-entry-head > span { flex-shrink: 0; font-size: .8rem; color: #6b6055; }
.cv-entry-place { margin: 4px 0 7px; font-size: .85rem; }
.cv-entry-list { gap: 18px; }
.cv-entry li + li { margin-top: 4px; }
.cv-projects { display: grid; gap: 12px; }
.cv-project a { font-weight: 800; color: #292723; text-decoration: underline; text-decoration-color: #d2c5b8; text-underline-offset: 3px; }
.cv-project a:hover { color: #765638; }
.cv-project > span { display: block; }
.cv-facts { margin: 0; display: grid; gap: 9px; }
.cv-facts dt { display: inline; font-weight: 800; color: #292723; }
.cv-facts dt::after { content: ' · '; font-weight: 400; color: #765638; }
.cv-facts dd { display: inline; margin: 0; }
.cv-languages { margin: 8px 0 0; }
@media screen and (max-width: 760px) {
 .cv-shell { width: calc(100% - 20px); }
 .cv-page { padding: 22px; }
 .cv-header, .cv-section { grid-template-columns: 1fr; }
 .cv-section { gap: 10px; }
 .cv-header h1 { font-size: clamp(1.55rem, 5.8vw, 2.4rem); overflow-wrap: normal; }
 .cv-photo-placeholder { width: 76px; border-radius: 14px; }
 .cv-identity { gap: 15px; }
 .cv-role { font-size: .83rem; }
 .cv-contact { display: grid; gap: 7px; }
 .cv-entry-head { display: grid; gap: 3px; }
 .cv-topbar-actions { gap: 12px; }
 .cv-topbar-actions .print-btn { font-size: .75rem; }
}
@page { size: A4; margin: 12mm 13mm; }
@media print {
 html, body { background: #fff; margin: 0; padding: 0; }
 .cv-topbar, .cv-print-hint { display: none; }
 .cv-shell { width: 100%; margin: 0; padding: 0; }
 .cv-page { padding: 0; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; background: #fff; font-size: 9.5pt; }
 .cv-header { display: grid; grid-template-columns: 1fr; gap: 9px; padding-bottom: 12px; }
 .cv-identity { gap: 16px; align-items: center; }
 .cv-photo-placeholder { width: 68px; border-radius: 10px; }
 .cv-header h1 { font-size: 27pt; line-height: 1.12; margin: 0 0 5px; }
 .cv-role { font-size: 10pt; }
 .cv-contact { display: flex; column-gap: 14px; row-gap: 2px; font-size: 8.4pt; line-height: 1.5; }
 .cv-section { display: block; padding: 10px 0; break-inside: avoid; }
 .cv-section h2 { margin: 0 0 5px; font-size: 8.1pt; line-height: 1.4; }
 .cv-summary p, .cv-entry p, .cv-entry li, .cv-project, .cv-facts { line-height: 1.43; }
 .cv-entry-head { display: flex; gap: 10px; }
 .cv-entry-head h3 { font-size: 9.6pt; line-height: 1.4; }
 .cv-entry-head > span { font-size: 8.5pt; }
 .cv-entry-place { margin: 2px 0 4px; font-size: 9pt; }
 .cv-entry-list { gap: 9px; }
 .cv-entry li + li { margin-top: 1px; }
 .cv-projects { gap: 5px; }
 .cv-project > span { display: inline; }
 .cv-facts { gap: 4px; }
 .cv-languages { margin: 3px 0 0; }
 a { color: inherit; }
}

/* Career selection and exports are screen-only controls. */
.cv-picker { margin: 26px 0 22px; }
.cv-picker-heading h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 4vw, 2.3rem); letter-spacing: -.04em; }
.cv-picker-heading p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.cv-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0; }
.cv-option { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); transition: background 160ms ease, border-color 160ms ease; }
.cv-option strong { font-size: .98rem; line-height: 1.4; }
.cv-option > span:last-child { font-size: .8rem; color: var(--muted); line-height: 1.55; }
.cv-option-number { font-family: 'JetBrains Mono', monospace; font-size: .75rem; color: var(--muted); }
.cv-option:hover { border-color: var(--accent-strong); }
.cv-option.is-active { background: #30261e; border-color: #30261e; color: #fff7eb; box-shadow: inset 0 -3px #d7af81; }
.cv-option.is-active > span { color: #e0c9b0; }
.cv-preview-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cv-preview-label { font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
#cv-selection-status { margin: 4px 0 0; font-size: .92rem; font-weight: 700; }
.cv-export-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
#cv-download { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 10px 18px; border-radius: 999px; background: #765638; color: #fff; font-size: .84rem; font-weight: 700; }
#cv-download:hover { background: #4f3928; }
.cv-export-actions .print-btn { min-height: 44px; }
.cv-picker .cv-print-hint { margin: 12px 0 0; font-size: .74rem; }
.cv-page [hidden] { display: none !important; }
@media screen and (max-width: 640px) {
 .cv-picker { margin: 24px 10px 20px; }
 .cv-options { grid-template-columns: 1fr; gap: 9px; margin: 18px 0; }
 .cv-option { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 3px 10px; padding: 15px; border-radius: 14px; }
 .cv-option-number { grid-row: span 2; padding-top: 3px; }
 .cv-option > span:last-child { grid-column: 2; }
 .cv-option strong { font-size: .92rem; }
 .cv-export-actions { width: 100%; }
}
@media print { .cv-picker { display: none !important; } }
