/* High-end CV sheet — screen preview === print. No Vite. */
@import url('https://fonts.bunny.net/css?family=plus-jakarta-sans:400,500,600,700,800|dm-sans:400,500,600,700|playfair-display:500,600,700');

[x-cloak] { display: none !important; }

.cv-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cv-stage {
    background:
        radial-gradient(1200px 400px at 50% -10%, rgba(19, 35, 61, 0.08), transparent),
        #d7dee8;
    border-radius: 1.25rem;
    padding: 1.25rem 1rem 1.75rem;
    overflow: auto;
}

.cv-sheet {
    --cv-navy: #122033;
    --cv-navy-2: #1b314c;
    --cv-gold: #c9a66b;
    --cv-ink: #1a2330;
    --cv-muted: #5c6b7a;
    --cv-line: #e4e8ee;
    --cv-cream: #f6f1e8;
    --cv-petrol: #0f6e6a;
    --cv-paper: #ffffff;
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    background: var(--cv-paper);
    color: var(--cv-ink);
    box-shadow: 0 28px 70px -24px rgba(18, 32, 51, 0.55);
    overflow: hidden;
    position: relative;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    font-family: 'Plus Jakarta Sans', 'DM Sans', system-ui, sans-serif;
}

.cv-sheet * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    box-sizing: border-box;
}

.cv-kicker {
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 700;
}

.cv-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    line-height: 1.05;
    margin: 0;
}

.cv-role {
    margin: 0.35rem 0 0;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 11px;
}

.cv-photo {
    object-fit: cover;
    background: #c5ced8;
}

.cv-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    background: linear-gradient(160deg, #3d5470, #122033);
    color: #f4ead6;
}

.cv-bar {
    height: 5px;
    border-radius: 99px;
    overflow: hidden;
}

.cv-bar > span {
    display: block;
    height: 100%;
    border-radius: 99px;
}

.cv-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    white-space: nowrap;
}

.cv-section {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0 0 0.65rem;
}

/* —— Cali / Budapest: dark sidebar —— */
.cv-cali {
    display: flex;
    flex-direction: row;
    min-height: 297mm;
}

.cv-cali-side {
    width: 72mm;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--cv-navy) 0%, var(--cv-navy-2) 55%, #0c1828 100%);
    color: #f3efe6;
    padding: 11mm 8mm 12mm;
}

.cv-cali-side .cv-kicker { color: var(--cv-gold); }
.cv-cali-photo-wrap {
    width: 38mm;
    height: 38mm;
    margin: 0 auto 8mm;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--cv-gold), #8a6a32);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.cv-cali-photo-wrap .cv-photo,
.cv-cali-photo-wrap .cv-initials {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.cv-cali-side h2.cv-name {
    color: #fff;
    font-size: 22px;
    text-align: center;
}
.cv-cali-side .cv-role {
    color: var(--cv-gold);
    text-align: center;
    font-size: 10px;
}
.cv-cali-block { margin-top: 9mm; }
.cv-cali-block .cv-section { color: var(--cv-gold); }
.cv-cali-row {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    font-size: 11px;
    line-height: 1.35;
    margin: 0 0 7px;
    color: #e8e2d6;
}
.cv-cali-ico {
    width: 12px;
    height: 12px;
    margin-top: 3px;
    opacity: 0.9;
    color: var(--cv-gold);
}
.cv-cali-label {
    display: block;
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b7c0cc;
    margin-bottom: 1px;
}
.cv-cali-skill { margin: 0 0 8px; }
.cv-cali-skill p { margin: 0 0 4px; font-size: 11px; }
.cv-cali-skill .cv-bar { background: rgba(255, 255, 255, 0.12); }
.cv-cali-skill .cv-bar > span { background: linear-gradient(90deg, var(--cv-gold), #ead7a8); }
.cv-cali-main {
    flex: 1;
    min-width: 0;
    padding: 12mm 11mm 12mm 10mm;
    background: var(--cv-paper);
}
.cv-cali-main .cv-section {
    color: var(--cv-navy);
    border-bottom: 1px solid var(--cv-line);
    padding-bottom: 5px;
}
.cv-profile {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--cv-muted);
    margin: 0 0 8mm;
}
.cv-job { margin: 0 0 6mm; }
.cv-job-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
}
.cv-job h4 {
    margin: 0;
    font-size: 13.5px;
    font-weight: 700;
}
.cv-job .co { color: var(--cv-navy-2); font-weight: 600; font-size: 12px; }
.cv-job ul.cv-bullets {
    margin: 4px 0 0;
    padding-left: 1.1rem;
    font-size: 12px;
    line-height: 1.45;
    color: var(--cv-muted);
}
.cv-job ul.cv-bullets li { margin: 0 0 2px; }

/* —— Vienna / Riga: executive header —— */
.cv-vienna { min-height: 297mm; display: flex; flex-direction: column; }
.cv-vienna-hero {
    display: flex;
    gap: 8mm;
    align-items: center;
    padding: 12mm 12mm 10mm;
    background: linear-gradient(120deg, var(--cv-cream) 0%, #fff 55%, #eee6d6 100%);
    border-bottom: 6px solid var(--cv-navy);
}
.cv-vienna-hero .cv-kicker { color: var(--cv-gold); }
.cv-vienna-hero .cv-name { font-size: 34px; color: var(--cv-navy); }
.cv-vienna-hero .cv-role { color: #6b5428; font-size: 12px; }
.cv-vienna-meta {
    margin-top: 6mm;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 11px;
    color: var(--cv-muted);
}
.cv-vienna-hero > div:first-child { flex: 1; min-width: 0; }
.cv-vienna-photo {
    flex-shrink: 0;
    width: 42mm;
    height: 42mm;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(18, 32, 51, 0.18);
    outline: 3px solid var(--cv-gold);
    outline-offset: 3px;
}
.cv-vienna-photo .cv-photo,
.cv-vienna-photo .cv-initials { width: 100%; height: 100%; }
.cv-vienna-body {
    display: flex;
    gap: 9mm;
    padding: 9mm 12mm 12mm;
    flex: 1;
}
.cv-vienna-body > div:first-child { flex: 1.15; min-width: 0; }
.cv-vienna-body > div:last-child { flex: 0.85; min-width: 0; }
.cv-vienna-body .cv-section { color: var(--cv-navy); }
.cv-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cv-chip {
    font-size: 10px;
    padding: 4px 8px;
    border: 1px solid var(--cv-line);
    border-radius: 999px;
    color: var(--cv-navy);
}
.cv-vienna .cv-bar { background: #ece7dc; }
.cv-vienna .cv-bar > span { background: var(--cv-navy); }

/* —— Prague / Sydney: typography first —— */
.cv-prague { min-height: 297mm; padding: 14mm 14mm 12mm; }
.cv-prague-top {
    display: flex;
    gap: 8mm;
    align-items: flex-end;
    padding-bottom: 8mm;
    border-bottom: 2px solid var(--cv-petrol);
}
.cv-prague-photo {
    flex-shrink: 0;
    width: 34mm;
    height: 34mm;
    border-radius: 4px;
    overflow: hidden;
}
.cv-prague-photo .cv-photo,
.cv-prague-photo .cv-initials { width: 100%; height: 100%; border-radius: 4px; }
.cv-prague .cv-name { font-size: 36px; color: #10221f; }
.cv-prague .cv-role { color: var(--cv-petrol); font-size: 12px; }
.cv-prague-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5mm;
}
.cv-prague-facts .cv-badge {
    background: #ecf8f6;
    color: var(--cv-petrol);
}
.cv-prague-grid {
    display: flex;
    gap: 10mm;
    margin-top: 8mm;
}
.cv-prague-grid > div:first-child { flex: 1; min-width: 0; }
.cv-prague-grid > div:last-child { width: 58mm; flex-shrink: 0; }
.cv-prague .cv-section { color: var(--cv-petrol); }
.cv-prague .cv-badge.date {
    background: var(--cv-petrol);
    color: #fff;
    font-weight: 700;
}
.cv-prague .cv-bar { background: #e6f2f0; }
.cv-prague .cv-bar > span { background: var(--cv-petrol); }

.cv-empty { opacity: 0.42; }

.cv-preview-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    padding: 0.75rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
}
html.dark .cv-preview-card {
    border-color: #1e293b;
    background: #0f172a;
}

.cv-preview-fit {
    container-type: inline-size;
    width: 100%;
    overflow: hidden;
    border-radius: 0.85rem;
    background: #d7dee8;
    aspect-ratio: 210 / 297;
}

.cv-preview-scale {
    width: 210mm;
    transform-origin: top left;
    transform: scale(var(--cv-fit, 1));
}

.cv-preview-card .cv-stage {
    padding: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

html.wl-cv-exporting .cv-preview-card,
html.wl-cv-exporting .cv-preview-fit,
html.wl-cv-exporting .cv-preview-scale,
html.wl-cv-exporting .cv-stage {
    transform: none !important;
    overflow: visible !important;
    aspect-ratio: auto !important;
    height: auto !important;
    max-height: none !important;
    width: 794px !important;
    border: none !important;
    padding: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
}
html.wl-cv-exporting .cv-sheet {
    transform: none !important;
    overflow: visible !important;
    width: 794px !important;
    min-height: 1123px !important;
    margin: 0 !important;
    box-shadow: none !important;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }
    html.wl-print-cv,
    html.wl-print-cv body {
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    html.wl-print-cv body * {
        visibility: hidden !important;
    }
    html.wl-print-cv .cv-sheet,
    html.wl-print-cv .cv-sheet * {
        visibility: visible !important;
    }
    html.wl-print-cv .cv-sheet {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        transform: none !important;
        overflow: visible !important;
        box-shadow: none !important;
    }
    html.wl-print-cv .cv-preview-card,
    html.wl-print-cv .cv-preview-fit,
    html.wl-print-cv .cv-preview-scale,
    html.wl-print-cv .cv-stage {
        transform: none !important;
        overflow: visible !important;
        aspect-ratio: auto !important;
        height: auto !important;
        width: 210mm !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}
