/* CV viewer styles — shared colours and typography are defined in ../style.css. */
body {
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
}

.cv-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    padding: 24px;
}

.cv-sidebar {
    position: sticky;
    top: 24px;
    height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    padding: 22px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-button);
    background: var(--color-glass-strong);
    backdrop-filter: blur(var(--blur));
}

.cv-brand {
    color: var(--color-text);
    font-size: 1.15rem;
    font-weight: 700;
    text-decoration: none;
}

.cv-brand span {
    display: block;
    margin-top: 3px;
    color: var(--color-text);
    font-size: .9rem;
    font-weight: 400;
}

.cv-description {
    margin-top: 46px;
    color: var(--color-text);
    line-height: 1.55;
}

.download-cv {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    padding: 15px;
    border-radius: var(--radius-button);
    color: var(--color-primary);
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    box-shadow: var(--shadow-primary);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.download-cv:hover { transform: translateY(-3px); box-shadow: var(--shadow-primary-hover); }

.back-home {
    margin-top: auto;
    padding-top: 20px;
    color: var(--color-text);
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.back-home:hover { color: var(--color-text); transform: translateX(-2px); }

.cv-content {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cv-viewer {
    width: min(100%, 860px);
    height: calc(100vh - 48px);
    border: 0;
    background: transparent;
}

.cv-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: transparent;
    cursor: zoom-in;
}

.cv-image:focus-visible {
    outline: 3px solid var(--accent-end);
    outline-offset: 4px;
}

.cv-lightbox {
    position: fixed;
    z-index: 10;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(4, 4, 12, .92);
    backdrop-filter: blur(12px);
}

.cv-lightbox.is-open { display: flex; }

.cv-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cv-lightbox-close {
    position: fixed;
    top: 20px;
    right: 24px;
    width: 46px;
    height: 46px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text);
    background: var(--color-glass-strong);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.cv-lightbox-close:hover { background: var(--color-glass-hover); transform: scale(1.06); }

.cv-lang-toggle { top: 24px; right: 24px; }

@media (max-width: 760px) {
    .cv-page { display: block; padding: 14px; }
    .cv-sidebar {
        position: static;
        height: auto;
        min-height: 58px;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 14px;
        border-radius: 14px;
    }
    .cv-brand span { display: inline; margin-left: 4px; }
    .cv-description, .back-home { display: none; }
    .cv-lang-toggle {
        position: static;
        min-width: 54px;
        margin-left: auto;
        padding: 8px 12px;
        font-size: .9rem;
    }
    .download-cv { margin: 0 0 0 12px; padding: 10px 12px; border-radius: var(--radius-pill); }
    .download-cv__label { display: inline; }
    .cv-content { margin-top: 28px; }
    .cv-viewer { height: calc(100vh - 114px); }
    .cv-lightbox { padding: 14px; }
    .cv-lightbox-close { top: 12px; right: 12px; }
}
