/* ── Layout ──────────────────────────────────────────────────────────────── */

.cv-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.cv-main {
    padding: 40px;
    border-right: 1px solid var(--border);
}

.cv-sidebar {
    padding: 40px;
    background: #fafbfc;
}

/* ── Header actions ──────────────────────────────────────────────────────── */

.header-top-row {
    justify-content: space-between;
}

.header-action-btn {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 15px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s;
}

.header-action-btn:hover {
    background: rgba(255,255,255,0.28);
}

/* ── Summary ─────────────────────────────────────────────────────────────── */

.cv-summary {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    margin: 0;
    text-align: justify;
}

/* ── Experience ──────────────────────────────────────────────────────────── */

.cv-exp {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.cv-exp:last-child {
    border-bottom: none;
}

.cv-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.cv-exp-title {
    margin: 0;
    font-size: 17px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cv-exp-company {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: bold;
    color: #636e72;
}

.cv-exp-period {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
    padding-top: 3px;
}

.cv-exp-bullets {
    font-size: 13.5px;
    padding-left: 18px;
    margin: 10px 0 12px;
    line-height: 1.7;
    color: #2c3e50;
    text-align: justify;
}

/* Type variants */
.cv-exp.featured .cv-exp-title { color: #0a5fa0; }
.cv-exp.featured { background: #f4f9ff; padding: 16px 20px; border-radius: 8px; border: 1px solid #d6e8f8; border-bottom: 1px solid #d6e8f8; }
.cv-exp.highlight { background: #f8fbff; padding: 16px 20px; border-radius: 8px; border: 1px solid #e1e9f1; border-bottom: 1px solid #e1e9f1; }
.cv-exp.startup .cv-exp-title { color: var(--startup); }

/* Metric badge */
.cv-metric {
    font-size: 11px;
    background: var(--accent);
    color: white;
    padding: 2px 10px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* ── Competencies ────────────────────────────────────────────────────────── */

.comp-group {
    margin-bottom: 16px;
}

.comp-group-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.comp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.comp-tags span {
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11.5px;
}

.comp-tags span.domain-tag {
    background: #e8f4fd;
    color: var(--accent);
    border: 1px solid #b8d9f0;
}

/* ── Aspiration ──────────────────────────────────────────────────────────── */

.cv-aspiration-intro {
    font-size: 13.5px;
    line-height: 1.7;
    color: #444;
    margin: 0 0 16px;
    text-align: justify;
}

.cv-aspiration-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cv-aspiration-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #f4f9ff;
    border: 1px solid #d6e8f8;
    border-radius: 8px;
    padding: 14px;
}

.cv-aspiration-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
}

.cv-aspiration-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.cv-aspiration-detail {
    font-size: 12.5px;
    color: #444;
    line-height: 1.6;
    text-align: justify;
}

@media (max-width: 900px) {
    .cv-aspiration-grid { grid-template-columns: 1fr; }
}

/* ── Print ───────────────────────────────────────────────────────────────── */

@media print {
    @page {
        margin: 1.2cm 1cm;
    }

    body {
        background: white;
        padding: 0;
        font-family: Arial, Helvetica, sans-serif;
        font-weight: 400;
        -webkit-font-smoothing: antialiased;
        font-synthesis: none;
    }

    * {
        font-synthesis: none;
    }

    .container { box-shadow: none; }

    header { padding: 20px 30px 30px; }
    header h1 { font-size: 32px; }
    .headline { font-size: 16px; }

    .header-top-row { display: none; }

    .cv-main    { padding: 24px 30px; }
    .cv-sidebar { padding: 24px 20px; }

    .cv-exp.featured,
    .cv-exp.highlight { break-inside: avoid; }

    .header-action-btn { display: none; }
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .cv-layout { grid-template-columns: 1fr; }
    .cv-main { border-right: none; border-bottom: 1px solid var(--border); }
}
