/* Printable CV (cv.html, cv.pl.html) - generated by scripts/build-static.mjs
   Layout: header + light sidebar + main column, one A4 page. */

:root {
    --cv-accent: #0f6e6e;
    --cv-accent-soft: #e6f2f2;
    --cv-text: #1f2933;
    --cv-muted: #5b6770;
    --cv-line: #d5dde0;
    --cv-sidebar: #f2f6f6;
}

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

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    background: #e5e7eb;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

body {
    font-family: 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 10pt;
    line-height: 1.45;
    color: var(--cv-text);
}

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

/* ---------- Screen toolbar ---------- */

.cv-toolbar {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: #1f2933;
    color: #fff;
    font-size: 13px;
}

.cv-toolbar a,
.cv-toolbar button {
    padding: 6px 14px;
    border: 1px solid #52606d;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.cv-toolbar a:hover,
.cv-toolbar button:hover { background: #323f4b; }

.cv-toolbar .cv-print {
    margin-left: auto;
    background: var(--cv-accent);
    border-color: var(--cv-accent);
}

.cv-toolbar .cv-print:hover { background: #0b5757; }

.cv-hint {
    margin-left: auto;
    color: #cbd2d9;
}

/* ---------- A4 sheet ---------- */

.cv-sheet {
    width: 210mm;
    min-height: 297mm;
    margin: 24px auto;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.cv-header {
    padding: 13mm 14mm 8mm;
    border-bottom: 3px solid var(--cv-accent);
}

.cv-header h1 {
    font-size: 25pt;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.cv-title {
    margin-top: 2px;
    color: var(--cv-accent);
    font-size: 12.5pt;
    font-weight: 600;
}

.cv-columns {
    flex: 1;
    display: grid;
    grid-template-columns: 62mm 1fr;
}

.cv-sidebar {
    padding: 7mm 6mm 8mm 14mm;
    background: var(--cv-sidebar);
}

.cv-main {
    padding: 7mm 14mm 8mm 8mm;
}

.cv-section + .cv-section { margin-top: 6mm; }

.cv-section h2 {
    margin-bottom: 2.5mm;
    padding-bottom: 1.2mm;
    color: var(--cv-accent);
    font-size: 9pt;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--cv-line);
}

/* Sidebar */

.cv-contact {
    list-style: none;
    display: grid;
    gap: 2mm;
    font-size: 9pt;
}

.cv-contact li {
    display: flex;
    align-items: flex-start;
    gap: 2.2mm;
    overflow-wrap: anywhere;
}

.cv-contact svg {
    flex-shrink: 0;
    width: 3.6mm;
    height: 3.6mm;
    margin-top: 0.5mm;
    color: var(--cv-accent);
}

.cv-skills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5mm;
}

.cv-skills li {
    padding: 0.6mm 2.2mm;
    border-radius: 1mm;
    background: #fff;
    border: 1px solid var(--cv-line);
    font-size: 8.5pt;
}

.cv-interests {
    list-style: none;
    display: grid;
    gap: 2mm;
    font-size: 9pt;
}

.cv-interests li {
    position: relative;
    padding-left: 3.5mm;
}

.cv-interests li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.9mm;
    width: 1.5mm;
    height: 1.5mm;
    border-radius: 50%;
    background: var(--cv-accent);
}

/* Main column */

.cv-profile { color: #323f4b; }

.cv-timeline {
    position: relative;
    display: grid;
    gap: 4mm;
    padding-left: 6mm;
}

.cv-timeline::before {
    content: '';
    position: absolute;
    left: 1.1mm;
    top: 1.5mm;
    bottom: 1.5mm;
    width: 0.4mm;
    background: var(--cv-line);
}

.cv-entry { position: relative; }

.cv-timeline .cv-entry::before {
    content: '';
    position: absolute;
    left: -6mm;
    top: 1.3mm;
    width: 2.6mm;
    height: 2.6mm;
    border-radius: 50%;
    background: #fff;
    border: 0.6mm solid var(--cv-accent);
}

.cv-entry-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 4mm;
}

.cv-entry-title {
    font-size: 10.5pt;
    font-weight: 700;
}

.cv-entry-date {
    flex-shrink: 0;
    padding: 0.2mm 2mm;
    border-radius: 1mm;
    background: var(--cv-accent-soft);
    color: var(--cv-accent);
    font-size: 8.5pt;
    font-weight: 600;
}

.cv-entry-sub {
    color: var(--cv-muted);
    font-size: 9pt;
    font-weight: 600;
}

.cv-entry-desc {
    margin-top: 0.8mm;
    color: #323f4b;
    font-size: 9.3pt;
}

.cv-projects {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3mm 5mm;
}

.cv-project-name {
    font-weight: 700;
    font-size: 10pt;
}

.cv-project-tech {
    display: block;
    color: var(--cv-accent);
    font-size: 8.3pt;
    font-weight: 600;
}

.cv-consent {
    padding: 4mm 14mm 6mm;
    color: #7b8794;
    font-size: 7pt;
    line-height: 1.35;
    border-top: 1px solid var(--cv-line);
}

/* ---------- Print ---------- */

@media print {
    html, body { background: #fff; }
    .cv-toolbar { display: none !important; }
    .cv-sheet {
        margin: 0;
        box-shadow: none;
        width: 210mm;
        height: 297mm;
        min-height: 0;
        overflow: hidden;
    }
    a { color: inherit; }
}

/* ---------- Small screens ---------- */

@media screen and (max-width: 820px) {
    .cv-sheet { width: auto; min-height: 0; margin: 0; box-shadow: none; }
    .cv-columns { grid-template-columns: 1fr; }
    .cv-sidebar, .cv-main, .cv-header, .cv-consent { padding-left: 6mm; padding-right: 6mm; }
    .cv-projects { grid-template-columns: 1fr; }
    .cv-toolbar { flex-wrap: wrap; }
    .cv-hint { margin-left: 0; }
}
