/* ── CV Page: Hide default title block ── */
.cv-page .quarto-title-block {
    display: none !important;
}

/* ── CV Page Title ── */
.cv-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--fg-0);
    margin: 1.5rem 0 0.2rem;
    padding: 0;
    border: none;
    letter-spacing: 0.03em;
}

/* ── Sections ── */
.cv-section {
    margin-bottom: 2.2rem;
}

.cv-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neon-cyan);
    border-bottom: 1px solid rgba(98, 242, 255, 0.2);
    padding-bottom: 0.45rem;
    margin-bottom: 1rem;
    letter-spacing: 0.04em;
}

.cv-section-title i {
    margin-right: 0.55rem;
    font-size: 0.95rem;
    opacity: 0.75;
}

/* ── Profile Card ── */
.cv-profile-card {
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(98, 242, 255, 0.18);
    border-radius: 10px;
    background: rgba(13, 20, 40, 0.5);
}

.cv-profile-list {
    margin: 0;
    padding-left: 1.2rem;
    list-style: none;
}

.cv-profile-list li {
    position: relative;
    padding-left: 0.2rem;
    margin-bottom: 0.45rem;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--fg-muted);
}

.cv-profile-list li::before {
    content: "›";
    position: absolute;
    left: -1rem;
    color: var(--neon-cyan);
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.5;
}

.cv-profile-list li strong {
    color: var(--fg-0);
}

/* ── Timeline ── */
.cv-timeline {
    position: relative;
    padding-left: 1.2rem;
}

.cv-timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: rgba(255, 209, 102, 0.25);
    border-radius: 1px;
}

/* ── Entry Cards ── */
.cv-entry {
    position: relative;
    margin-bottom: 1.4rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(180, 139, 255, 0.18);
    border-radius: 10px;
    background: rgba(13, 20, 40, 0.5);
    transition: border-color 0.2s ease;
}

.cv-entry:hover {
    border-color: rgba(98, 242, 255, 0.3);
}

/* Timeline dot */
.cv-entry::before {
    content: "";
    position: absolute;
    left: -1.2rem;
    top: 1.25rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--neon-amber);
    box-shadow: 0 0 8px rgba(255, 209, 102, 0.7);
    transform: translateX(-50%);
}

.cv-entry-compact {
    margin-bottom: 0.9rem;
}

.cv-entry-header {
    margin-bottom: 0.5rem;
}

.cv-entry-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fg-0);
    margin-bottom: 0.15rem;
}

.cv-entry-meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.2rem 0.8rem;
    font-size: 0.82rem;
}

.cv-company {
    color: var(--neon-cyan);
    font-weight: 600;
}

.cv-date {
    color: var(--fg-muted);
    opacity: 0.75;
    white-space: nowrap;
}

.cv-entry-body ul {
    margin: 0.3rem 0 0;
    padding-left: 1.2rem;
}

.cv-entry-body li {
    font-size: 0.87rem;
    line-height: 1.6;
    color: var(--fg-muted);
    margin-bottom: 0.2rem;
}

.cv-entry-body li strong {
    color: var(--fg-0);
}

.cv-oneliner {
    font-size: 0.87rem;
    color: var(--fg-muted);
    margin: 0;
    line-height: 1.6;
}

/* ── Sub-periods within a role ── */
.cv-sub-period {
    margin-bottom: 0.8rem;
}

.cv-sub-period:last-child {
    margin-bottom: 0;
}

.cv-sub-period-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--neon-amber);
    letter-spacing: 0.03em;
    margin-bottom: 0.3rem;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 209, 102, 0.07);
    border-left: 2px solid rgba(255, 209, 102, 0.4);
    border-radius: 0 4px 4px 0;
}

/* ── Education List ── */
.cv-edu-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cv-edu-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(98, 242, 255, 0.08);
}

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

.cv-edu-degree {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fg-0);
    grid-column: 1;
    grid-row: 1;
}

.cv-edu-note {
    font-size: 0.82rem;
    color: var(--fg-muted);
    opacity: 0.7;
    margin-left: 0.4rem;
}

.cv-edu-institution {
    font-size: 0.82rem;
    color: var(--neon-cyan);
    opacity: 0.8;
    margin-left: 0.4rem;
}

.cv-edu-year {
    font-size: 0.82rem;
    color: var(--fg-muted);
    opacity: 0.7;
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    white-space: nowrap;
    align-self: baseline;
}

.cv-edu-detail {
    font-size: 0.82rem;
    color: var(--fg-muted);
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0.15rem;
    opacity: 0.75;
}

.cv-edu-minor .cv-edu-degree {
    font-weight: 600;
    color: var(--fg-muted);
}

/* ── Teaching ── */
.cv-teaching-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cv-teaching-item {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(98, 242, 255, 0.06);
    font-size: 0.88rem;
}

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

.cv-teaching-year {
    font-weight: 700;
    color: var(--neon-amber);
    font-size: 0.82rem;
    min-width: 2.5rem;
    flex-shrink: 0;
}

.cv-teaching-role {
    font-weight: 700;
    color: var(--fg-0);
    font-size: 0.82rem;
    padding: 0.08rem 0.45rem;
    border-radius: 4px;
    border: 1px solid rgba(156, 255, 87, 0.3);
    background: rgba(156, 255, 87, 0.07);
    flex-shrink: 0;
}

.cv-teaching-courses {
    color: var(--fg-muted);
}

/* ── Awards ── */
.cv-awards-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cv-award-item {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(98, 242, 255, 0.06);
    font-size: 0.88rem;
}

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

.cv-award-year {
    font-weight: 700;
    color: var(--neon-amber);
    font-size: 0.82rem;
    min-width: 2.5rem;
    flex-shrink: 0;
}

.cv-award-name {
    color: var(--fg-muted);
    line-height: 1.5;
}

.cv-award-name strong {
    color: var(--fg-0);
}

/* ── Conference Talks ── */
.cv-talks-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.cv-talk-item {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.2rem 0.8rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(98, 242, 255, 0.06);
    font-size: 0.88rem;
}

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

.cv-talk-year {
    font-weight: 700;
    color: var(--neon-amber);
    font-size: 0.82rem;
    min-width: 2.5rem;
    flex-shrink: 0;
}

.cv-talk-title {
    color: var(--fg-0);
    font-weight: 600;
}

.cv-talk-location {
    color: var(--fg-muted);
    opacity: 0.7;
    font-size: 0.82rem;
}

.cv-talk-location::before {
    content: "·";
    margin-right: 0.4rem;
    color: rgba(98, 242, 255, 0.5);
}

/* ── Publications ── */
.cv-publications {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.cv-pub-item {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(180, 139, 255, 0.18);
    border-radius: 8px;
    background: rgba(13, 20, 40, 0.45);
}

.cv-pub-authors {
    font-size: 0.82rem;
    color: var(--fg-muted);
    margin-bottom: 0.2rem;
}

.cv-pub-authors strong {
    color: var(--fg-0);
}

.cv-pub-title {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--fg-0);
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 0.2rem;
}

.cv-pub-journal {
    font-size: 0.78rem;
    color: var(--neon-cyan);
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ── Languages ── */
.cv-lang-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cv-lang-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(98, 242, 255, 0.15);
    border-radius: 8px;
    background: rgba(13, 20, 40, 0.45);
    flex: 1;
    min-width: 120px;
}

.cv-lang-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--fg-0);
}

.cv-lang-level {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.1rem 0.45rem;
    border-radius: 4px;
    margin-left: auto;
}

.cv-lang-native {
    border: 1px solid rgba(156, 255, 87, 0.45);
    background: rgba(156, 255, 87, 0.08);
    color: var(--neon-lime);
}

.cv-lang-fluent {
    border: 1px solid rgba(98, 242, 255, 0.45);
    background: rgba(98, 242, 255, 0.08);
    color: var(--neon-cyan);
}

.cv-lang-basic {
    border: 1px solid rgba(255, 209, 102, 0.45);
    background: rgba(255, 209, 102, 0.08);
    color: var(--neon-amber);
}

/* ── Computer Skills ── */
.cv-skills {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.cv-skill-group {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.cv-skill-level-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fg-muted);
    min-width: 6.5rem;
    flex-shrink: 0;
}

.cv-skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.cv-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(98, 242, 255, 0.22);
    border-radius: 8px;
    background: rgba(98, 242, 255, 0.06);
    color: var(--fg-muted);
    font-size: 0.82rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cv-pill:hover {
    border-color: rgba(98, 242, 255, 0.45);
    background: rgba(98, 242, 255, 0.12);
}

.cv-pill-advanced {
    border: 1px solid rgba(98, 242, 255, 0.4);
    background: rgba(98, 242, 255, 0.1);
    color: #aaf5ff;
}

.cv-pill-intermediate {
    border: 1px solid rgba(180, 139, 255, 0.35);
    background: rgba(180, 139, 255, 0.08);
    color: #c8b4ff;
}

.cv-pill-basic {
    border: 1px solid rgba(255, 209, 102, 0.3);
    background: rgba(255, 209, 102, 0.07);
    color: #ffe29b;
}

/* ── Interests ── */
.cv-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cv-interest-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(255, 78, 205, 0.22);
    border-radius: 8px;
    background: rgba(255, 78, 205, 0.06);
    color: var(--fg-muted);
    font-size: 0.82rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cv-interest-pill:hover {
    border-color: rgba(255, 78, 205, 0.45);
    background: rgba(255, 78, 205, 0.12);
}

.cv-interest-pill i {
    color: var(--neon-magenta);
    font-size: 0.78rem;
    opacity: 0.7;
}

/* ── Mobile responsive ── */
@media (max-width: 600px) {
    .cv-page-title {
        font-size: 1.6rem;
    }

    .cv-entry-meta {
        flex-direction: column;
        gap: 0.1rem;
    }

    .cv-edu-item {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cv-edu-year {
        grid-column: 1;
        grid-row: auto;
        text-align: left;
        margin-top: 0.1rem;
    }

    .cv-teaching-item {
        flex-wrap: wrap;
    }

    .cv-talk-item {
        flex-direction: column;
        gap: 0.1rem;
    }

    .cv-talk-location::before {
        display: none;
    }

    .cv-lang-row {
        flex-direction: column;
    }

    .cv-skill-group {
        flex-direction: column;
        gap: 0.3rem;
    }
}