/* A4 page: 210mm × 297mm — preview matches PDF output */
.cv-page {
    width: 210mm;
    min-height: 297mm;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    font-size: 10pt;
    line-height: 1.45;
    color: #1e293b;
    overflow: hidden;
    page-break-after: always;
}

.cv-page:last-child {
    page-break-after: auto;
}

.cv-muted {
    color: #64748b;
    font-size: 0.92em;
}

.cv-bullets {
    margin: 0.35rem 0 0.5rem 1.1rem;
    padding: 0;
}

.cv-bullets li {
    margin-bottom: 0.2rem;
}

/* Modern Professional */
.cv-template-modern {
    display: grid;
    grid-template-columns: 32% 68%;
    min-height: 297mm;
}

.cv-template-modern .cv-sidebar {
    background: #1e40af;
    color: #fff;
    padding: 1.25rem 1rem;
}

.cv-template-modern .cv-sidebar h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    padding-bottom: 0.35rem;
    margin: 1rem 0 0.5rem;
}

.cv-template-modern .cv-sidebar h3:first-of-type {
    margin-top: 0.5rem;
}

.cv-template-modern .cv-name {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0.75rem 0 0.25rem;
    line-height: 1.2;
}

.cv-template-modern .cv-title {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.cv-template-modern .cv-sidebar-block div {
    font-size: 0.78rem;
    margin-bottom: 0.35rem;
    word-break: break-word;
}

.cv-template-modern .cv-main {
    padding: 1.25rem 1.35rem;
}

.cv-template-modern .cv-main h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1e40af;
    border-bottom: 2px solid #1e40af;
    padding-bottom: 0.25rem;
    margin: 0 0 0.65rem;
}

.cv-template-modern .cv-main-block {
    margin-bottom: 1rem;
}

.cv-photo-wrap {
    display: flex;
    justify-content: center;
}

.cv-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

.cv-initials {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
}

.cv-photo-sm .cv-photo,
.cv-photo-sm .cv-initials {
    width: 64px;
    height: 64px;
    font-size: 1.25rem;
}

.cv-skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.cv-template-modern .cv-skill-tag {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 0.15rem 0.45rem;
    font-size: 0.75rem;
}

.cv-template-minimal .cv-skill-tag {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 0.15rem 0.45rem;
    font-size: 0.78rem;
}

.cv-lang-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
}

.cv-entry {
    margin-bottom: 0.75rem;
}

.cv-entry-head {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: flex-start;
}

.cv-date {
    white-space: nowrap;
    font-size: 0.85em;
    color: #64748b;
}

.cv-entry-sub {
    margin-bottom: 0.25rem;
}

.cv-cert {
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
}

.cv-links span {
    display: block;
    font-size: 0.78rem;
    color: #64748b;
}

/* Minimal Executive */
.cv-template-minimal {
    padding: 1.35rem 1.5rem;
}

.cv-min-header {
    border-bottom: 2px solid #0f172a;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.cv-min-header-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cv-template-minimal .cv-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.cv-template-minimal .cv-title {
    font-size: 0.95rem;
    color: #475569;
    margin: 0.15rem 0 0;
}

.cv-min-contact {
    font-size: 0.78rem;
    color: #64748b;
    margin: 0.5rem 0 0;
    word-break: break-word;
}

.cv-template-minimal h2 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0f172a;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 0.2rem;
    margin: 0 0 0.5rem;
}

.cv-min-block {
    margin-bottom: 1rem;
}

.cv-page-break {
    page-break-before: always;
}
