:root {
    --cv-teal: #2cbfaa;
    --cv-teal-dark: #255958;
    --cv-text: #0d0d0d;
    --cv-muted: #707070;
    --cv-border: #8c8c8c;
    --cv-desk: #d8dbde;
    --cv-font: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    color-scheme: light;
}

body {
    margin: 0;
    background: var(--cv-desk);
    color: var(--cv-text);
    font-family: var(--cv-font);
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1, h2, h3, p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Toolbar */

.cv-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 210mm;
    margin: 0 auto;
    padding: 1rem 16px;
    font-size: 0.875rem;
}

.cv-back {
    color: var(--cv-teal-dark);
    font-weight: 500;
}

.cv-back:hover,
.cv-back:focus-visible {
    text-decoration: underline;
}

.cv-print {
    padding: 0.55rem 1.1rem;
    border: 0;
    border-radius: 6px;
    background: var(--cv-teal-dark);
    color: #fff;
    font: 500 0.875rem var(--cv-font);
    cursor: pointer;
}

.cv-print:hover {
    background: #1b4443;
}

.cv-print:focus-visible,
.cv-back:focus-visible {
    outline: 2px solid var(--cv-teal-dark);
    outline-offset: 3px;
}

.cv-noscript {
    max-width: 210mm;
    margin: 0 auto;
    padding: 0 16px 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.cv-noscript a {
    text-decoration: underline;
}

/* Sheet */

.cv-sheet {
    margin: 0 auto 2rem;
    width: 210mm;
}

.cv-page {
    position: relative;
    width: 210mm;
    min-height: 297mm;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18), 0 12px 32px rgba(0, 0, 0, 0.14);
    font-size: 9pt;
    line-height: 1.26;
}

.cv-header {
    position: relative;
    height: 52mm;
    border-bottom: 0.3mm solid var(--cv-teal);
}

.cv-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8.4mm;
    width: 9mm;
    height: 14.5mm;
    background: var(--cv-teal);
}

.cv-intro {
    position: absolute;
    left: 13.7mm;
    top: 6mm;
    width: 99mm;
}

.cv-name {
    color: var(--cv-teal);
    font-size: 23pt;
    font-weight: 400;
    line-height: 1.2;
}

.cv-title {
    color: var(--cv-teal-dark);
    font-size: 12pt;
    line-height: 1.3;
}

.cv-summary {
    margin-top: 3.2mm;
    font-size: 9pt;
    line-height: 1.35;
}

.cv-contacts {
    position: absolute;
    right: 9.2mm;
    top: 5.5mm;
}

.cv-contact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3.4mm;
    height: 8.4mm;
}

.cv-contact-icon {
    width: 4.4mm;
    color: var(--cv-teal);
    font-size: 11pt;
    text-align: center;
}

/* Body */

.cv-body {
    display: grid;
    grid-template-columns: 90.8mm 78.3mm;
    column-gap: 12.9mm;
    padding: 0 14.3mm 8mm 13.7mm;
}

.cv-section {
    padding-top: 0;
}

.cv-section-title {
    margin: 4.6mm 0 1.4mm;
    font-size: 14.5pt;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.cv-entry {
    position: relative;
    margin-bottom: 4.6mm;
    break-inside: avoid;
}

.cv-entry-marked::before {
    content: '';
    position: absolute;
    left: -13.7mm;
    top: 0.8mm;
    width: 9mm;
    height: 17mm;
    background: var(--cv-teal-dark);
}

.cv-role {
    font-size: 11.5pt;
    font-weight: 700;
    line-height: 1.15;
}

.cv-org,
.cv-grade {
    font-size: 12pt;
    line-height: 1.15;
}

.cv-org a:hover,
.cv-text-link:hover {
    text-decoration: underline;
}

.cv-dates {
    display: flex;
    justify-content: space-between;
    gap: 2mm;
    margin-top: 0.4mm;
    color: var(--cv-teal-dark);
    font-size: 8pt;
    font-style: italic;
    line-height: 1.5;
}

.cv-description {
    color: var(--cv-muted);
    font-size: 8pt;
    font-style: italic;
    line-height: 1.3;
}

.cv-meta {
    margin-top: 0.6mm;
    color: var(--cv-teal-dark);
    font-size: 8pt;
    font-style: italic;
    line-height: 1.5;
}

.cv-bullets {
    margin-top: 0.8mm;
}

.cv-bullets li {
    position: relative;
    margin-bottom: 1mm;
    padding-left: 3.1mm;
}

.cv-bullets li::before {
    content: '';
    position: absolute;
    left: 0.2mm;
    top: 1.5mm;
    width: 1.4mm;
    height: 1.4mm;
    border-radius: 50%;
    background: var(--cv-teal);
}

/* Right column */

.cv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6mm 1.6mm;
}

.cv-chip {
    padding: 0.7mm 2.4mm;
    border-radius: 1.1mm;
    background: var(--cv-teal);
    color: #fff;
    font-size: 9.5pt;
    line-height: 1.3;
}

.cv-project {
    margin-bottom: 2.6mm;
    break-inside: avoid;
}

.cv-project-title {
    font-size: 9.5pt;
    font-weight: 400;
    line-height: 1.3;
}

.cv-project-link {
    color: inherit;
}

.cv-link-icon {
    margin-left: 1.2mm;
    color: var(--cv-teal);
    font-size: 7pt;
}

.cv-project .cv-bullets li,
.cv-education .cv-bullets li {
    font-size: 8.5pt;
    line-height: 1.26;
}

.cv-project .cv-bullets li::before,
.cv-education .cv-bullets li::before {
    top: 1.3mm;
}

.cv-degree {
    font-size: 11.5pt;
    font-weight: 700;
    line-height: 1.25;
}

.cv-text-link {
    color: var(--cv-teal-dark);
    text-decoration: underline;
}

.cv-languages {
    margin-top: 1mm;
}

.cv-language {
    display: flex;
    align-items: center;
    height: 7.4mm;
    font-size: 9pt;
}

.cv-language > span:first-child {
    width: 34mm;
}

.cv-dots {
    display: inline-flex;
    gap: 1.6mm;
}

.cv-dot {
    width: 3.8mm;
    height: 3.8mm;
    border: 0.35mm solid var(--cv-teal);
    border-radius: 50%;
}

.cv-dot-on {
    background: var(--cv-teal);
}

.cv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1.7mm 1.7mm;
}

.cv-tag {
    padding: 1mm 2.7mm;
    border: 0.3mm solid var(--cv-border);
    border-radius: 1.3mm;
    font-size: 9.5pt;
    line-height: 1.3;
}

@media print {
    @page {
        size: A4;
        margin: 0;
    }

    html,
    body {
        background: #fff;
    }

    .cv-toolbar,
    .cv-noscript {
        display: none;
    }

    .cv-sheet {
        margin: 0;
    }

    .cv-sheet {
        zoom: 1 !important;
    }

    .cv-page {
        min-height: 296mm;
        box-shadow: none;
    }

    .cv-project-link,
    .cv-org a {
        text-decoration: none;
    }
}
