/* CV specific styles extracted from cv.html */
.cv-wrapper {
    max-width: 900px;
    margin: 24px auto;
    padding: 24px;
    background: #34495e;
    color: #ecf0f1;
    border-radius: 10px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
}
.cv-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    border-bottom: 2px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 16px;
}
.cv-name {
    font-size: 2.5rem;
    font-family: "Bebas Neue", serif;
    font-weight: 700;
    color: #ecf0f1;
}
.cv-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 1rem;
    color: #ecf0f1;
}
.cv-section {
    margin: 18px 0;
}
.cv-section h2 {
    font-size: 2rem;
    font-family: "Bebas Neue", serif;
    color: #ecf0f1;
    margin: 0 0 8px;
    border-left: 4px solid #1abc9c;
    padding-left: 8px;
}
.cv-role {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px 16px;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    align-items: start;
    break-inside: avoid;
    page-break-inside: avoid;
    width: 100%;
    min-width: 0;
}
.cv-edu-role {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 16px;
    padding: 10px 0;
    align-items: center;
    width: 100%;
    min-width: 0;
}
.cv-edu-divider {
    border-bottom: 2px dashed #eee;
    margin: 8px 0 8px 0;
}
.cv-edu-title {
    font-weight: 600;
    font-family: "Russo One", serif;
    color: #ecf0f1;
    font-size: 1.25rem;
}
.cv-edu-school {
    font-family: "Bebas Neue", serif;
    font-size: 1.15rem;
    color: #ecf0f1;
    margin-bottom: 4px;
}
.cv-edu-date {
    font-family: "Lemon", serif;
    font-size: 1.15rem;
    color: #ecf0f1;
    margin-top: 6px;
    margin-bottom: 0;
    text-align: center;
    width: 100%;
}
@media (max-width: 700px) {
    .cv-edu-role {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
    }
    .cv-edu-date {
        font-size: 1rem;
        text-align: left;
        margin-top: 4px;
    }
}
.cv-role:last-child {
    border-bottom: none;
}
@media (max-width: 700px) {
    .cv-role {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }
    .cv-role .dates {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        font-size: 0.95rem;
        margin-top: 2px;
        margin-bottom: 0;
        white-space: normal;
        word-break: break-word;
        text-align: right;
    }
}
.cv-role .title {
    font-weight: 600;
    font-family: "Russo One", serif;
    color: #ecf0f1;
}
.cv-role .company {
    color: #ecf0f1;
}
.cv-role .dates {
    color: #ecf0f1;
    font-size: 0.95rem;
    white-space: nowrap;
    margin-left: 8px;
    align-self: start;
}
.cv-bullets {
    margin: 6px 0 0 0;
    padding-left: 18px;
}
.collapsible {
    display: block;
    overflow: hidden;
}
@media (max-width: 700px) {
    .collapsible {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        max-height: 3.5em;
        transition: max-height 0.3s;
    }
    .collapsible.show-all {
        -webkit-line-clamp: unset;
        max-height: 100em;
    }
    .read-more-link {
        display: inline-block;
        background: none;
        border: none;
        color: #1abc9c;
        font-family: "Lemon", serif;
        font-size: 1em;
        text-decoration: underline;
        cursor: pointer;
        margin-top: 2px;
        margin-bottom: 8px;
        padding: 0;
    }
}
@media (min-width: 701px) {
    .read-more-link {
        display: none !important;
    }
}
.chip {
    display: inline-block;
    background: #2c3e50;
    border: 1px solid #1abc9c;
    padding: 3px 8px;
    border-radius: 999px;
    margin: 4px 6px 0 0;
    font-size: 0.95rem;
    color: #1abc9c;
}
.cv-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
}
.cv-wrapper a {
    color: #1abc9c !important;
    font-family: "Lemon", serif;
}
.cv-wrapper a:hover {
    color: #ecf0f1 !important;
}
.cv-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    background: #fff;
    display: grid;
    place-items: center;
}
.cv-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}
.cv-logo-fallback {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: #f6f6f6;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.7rem;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px;
}
.cv-badge-logo {
    width: 18px;
    height: 18px;
    vertical-align: text-bottom;
    margin-right: 6px;
    border-radius: 4px;
    border: 1px solid #eee;
    background: #fff;
    object-fit: contain;
}
.cv-cert {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 16px;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    align-items: center;
    break-inside: avoid;
    page-break-inside: avoid;
}
.cv-cert:last-child {
    border-bottom: none;
}

/* Profile photo shown on CV header */
.cv-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 120px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    border: 4px solid rgba(255,255,255,0.06);
    background: #fff;
}

.cv-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 700px) {
    .cv-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .cv-photo {
        width: 96px;
        height: 96px;
        flex: 0 0 96px;
    }
}