/* ============================================================
   CV page - print-ready A4 sheet embedded in the site layout.
   Palette mirrors style.css (--am-primary, --am-hero).
   ============================================================ */
:root {
    --cv-sidebar-bg: #0b161c;
    --cv-sidebar-fg: #e8eef2;
    --cv-sidebar-muted: #93a6b0;
    --cv-accent: #00a889;
    --cv-ink: #121416;
    --cv-ink-soft: #4d5960;
    --cv-rule: #e2e8e6;
    --cv-sidebar-w: 68mm;
    --cv-pad: 11mm;
}

/* ---- Page chrome around the sheet (screen only) ------------------ */
.cv-page-main {
    min-height: 100vh;
    padding-top: 74px;            /* clear the fixed navbar */
    background: var(--am-bg, #f3f6f5);
}
.cv-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 26px 0 6px;
}
.cv-toolbar h1 { font-size: 1.6rem; margin: 0; }
.cv-toolbar .lead-note { color: var(--am-muted, #657178); font-size: .92rem; margin: 2px 0 0; }

.cv-sheet-wrap {
    padding: 18px 0 60px;
    overflow-x: auto;             /* small screens: scroll the sheet, don't break it */
}

/* ---- The A4 sheet ------------------------------------------------ */
.cv-sheet {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 24px 60px rgba(18, 20, 22, 0.18);
    display: grid;
    grid-template-columns: var(--cv-sidebar-w) 1fr;
    /* two-tone band so the sidebar color continues on every printed page */
    background-image: linear-gradient(
        to right,
        var(--cv-sidebar-bg) 0, var(--cv-sidebar-bg) var(--cv-sidebar-w),
        #fff var(--cv-sidebar-w), #fff 100%
    );
    color: var(--cv-ink);
    font-size: 10.2pt;
    line-height: 1.42;
    text-align: left;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
}
.cv-sheet a { text-decoration: none; }

/* ---- Left column ------------------------------------------------- */
.cv-side {
    color: var(--cv-sidebar-fg);
    padding: var(--cv-pad);
}
.cv-photo {
    width: 42mm;
    height: 42mm;
    margin: 2mm auto 6mm;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--cv-accent);
    background: #06232c;
}
.cv-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cv-side .cv-name {
    font-size: 17pt;
    font-weight: 800;
    text-align: center;
    letter-spacing: .3px;
    margin: 0 0 2mm;
    color: #fff;
}
.cv-side .cv-role-sub {
    text-align: center;
    color: var(--cv-sidebar-muted);
    font-size: 9pt;
    margin: 0 0 6mm;
    line-height: 1.35;
}
.cv-side h2 {
    font-size: 10pt;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: #fff;
    margin: 6mm 0 3mm;
    padding-bottom: 1.6mm;
    border-bottom: 1.5px solid var(--cv-accent);
}
.cv-side .cv-first-h { margin-top: 2mm; }

.cv-contact { list-style: none; margin: 0; padding: 0; }
.cv-contact li {
    display: flex;
    gap: 2.4mm;
    align-items: flex-start;
    margin-bottom: 2.4mm;
    font-size: 9pt;
    word-break: break-word;
}
.cv-contact .cv-ico {
    flex: 0 0 auto;
    width: 4.6mm;
    height: 4.6mm;
    fill: var(--cv-accent);
    margin-top: .3mm;
}
.cv-side a { color: var(--cv-sidebar-fg); }

.cv-side .cv-profile { font-size: 9pt; text-align: justify; margin: 0; }

.cv-side-list { list-style: none; margin: 0; padding: 0; }
.cv-side-list li {
    position: relative;
    padding-left: 4.4mm;
    margin-bottom: 2.6mm;
    font-size: 9pt;
}
.cv-side-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.6mm;
    width: 2mm;
    height: 2mm;
    background: var(--cv-accent);
    border-radius: 2px;
}
.cv-side-list .t { font-weight: 600; display: block; }
.cv-side-list .o { color: var(--cv-sidebar-muted); font-size: 8.4pt; }

/* ---- Right column ------------------------------------------------ */
.cv-main { padding: var(--cv-pad); }
.cv-main .cv-title {
    font-size: 20pt;
    font-weight: 800;
    margin: 1mm 0 0;
    color: var(--cv-ink);
    letter-spacing: .3px;
}
.cv-main .cv-headline {
    color: var(--cv-accent);
    font-weight: 600;
    font-size: 10.5pt;
    margin: 1mm 0 6mm;
}
.cv-main h2 {
    font-size: 11pt;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--cv-ink);
    margin: 0 0 5mm;
    padding-bottom: 1.6mm;
    border-bottom: 2px solid var(--cv-accent);
}

/* timeline: one continuous rail, dots anchored to each title */
.cv-timeline { position: relative; }
.cv-timeline::before {
    content: "";
    position: absolute;
    left: 2.4mm;
    top: 2mm;
    bottom: 2mm;
    width: 2px;
    background: var(--cv-rule);
}
.cv-exp {
    position: relative;
    padding-left: 9mm;
    padding-bottom: 5mm;
    break-inside: avoid;
}
.cv-exp .cv-dot {
    position: absolute;
    left: 0;
    top: .6mm;
    width: 5mm;
    height: 5mm;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--cv-accent);
    box-shadow: 0 0 0 2px #fff;   /* mask the rail behind the dot */
}
.cv-exp .cv-exp-role { font-weight: 700; font-size: 10.6pt; color: var(--cv-ink); }
.cv-exp .cv-exp-company { color: var(--cv-ink-soft); font-size: 9.4pt; margin-top: .3mm; }
.cv-exp .cv-exp-date {
    display: inline-block;
    font-size: 8.4pt;
    font-weight: 700;
    color: var(--cv-accent);
    margin-top: 1mm;
}
.cv-exp ul { margin: 2mm 0 0; padding: 0; list-style: none; }
.cv-exp ul li {
    position: relative;
    padding-left: 3.8mm;
    margin-bottom: 1.6mm;
    font-size: 9.2pt;
    color: var(--cv-ink-soft);
    text-align: justify;
}
.cv-exp ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.5mm;
    width: 1.5mm;
    height: 1.5mm;
    background: var(--cv-accent);
    border-radius: 50%;
}

/* main-column sections after the experiences timeline */
.cv-main-section { margin-top: 7mm; }
.cv-main-section .cv-exp { padding-bottom: 3.5mm; }

.cv-privacy {
    margin-top: 6mm;
    padding-top: 3mm;
    border-top: 1px solid var(--cv-rule);
    font-size: 7.6pt;
    color: #97a0ad;
    font-style: italic;
    text-align: justify;
}

/* signature under the privacy note, bottom-right */
.cv-signature {
    display: flex;
    justify-content: flex-end;
    margin-top: 4mm;
    break-inside: avoid;
}
.cv-signature img {
    max-height: 20mm;
    max-width: 60mm;
    object-fit: contain;
}

/* ============================================================
   PRINT: only the sheet, full-bleed A4
   ============================================================ */
@page { size: A4; margin: 0; }

@media print {
    body { background: #fff !important; }
    /* hide everything the site adds around the sheet */
    #mainNav,
    .site-footer,
    .cv-toolbar,
    #cookieBanner,
    .cookie-banner,
    .cookie-preferences-link { display: none !important; }

    .cv-page-main { padding: 0; background: #fff; }
    .cv-sheet-wrap { padding: 0; overflow: visible; }
    .cv-sheet {
        width: 210mm;
        margin: 0;
        box-shadow: none;
    }
}
