/* === RESUME PAGE === */

.resume {
    max-width: 820px;
    margin: 0 auto;
    padding: 0;
    text-align: left;
}

/* ---- Suppress alternating row backgrounds from base ---- */
.education:nth-child(even),
.experience:nth-child(even) {
    background-color: transparent;
}

.resume-list li.publications:nth-child(even),
.resume-list li.conference-attendance:nth-child(even),
.resume-list li.certificates:nth-child(even),
.resume-list li.teaching:nth-child(even),
.resume-list li.grants:nth-child(even),
.resume-list li.other-skills:nth-child(even) {
    background-color: transparent;
}

/* ---- Header ---- */
.name-heading {
    text-align: center;
    padding: 0.5rem 0 1.25rem;
}

.name-heading h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 0.6rem;
}

.resume-contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    gap: 0.1rem;
}

.resume-contact-divider {
    opacity: 0.35;
    margin: 0 0.2rem;
}

.resume-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
}

.resume-contact-link:hover {
    text-decoration: underline;
}

.resume-contact-icon {
    width: 14px;
    height: 14px;
}

/* ---- Hide section <hr> dividers — h2 styling handles visual separation ---- */
.resume > hr {
    display: none;
}

/* ---- Section headings ---- */
.resume h2 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--link-color);
    border-bottom: 1.5px solid var(--link-color);
    padding: 0 0 0.3rem 0;
    margin-top: 1.75rem;
    margin-bottom: 0.9rem;
    opacity: 0.9;
}

/* ---- Education & Experience blocks ---- */
.education,
.experience {
    padding: 0.5rem 0;
}

/* ---- Row layout: institution/location and role/year ---- */
.resume-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 1.5rem;
    row-gap: 0;
}

.resume-row h5 {
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 600;
}

/* Right-side metadata: location, year — muted and slightly smaller */
.resume-row > span:last-child:not(:first-child) {
    font-size: 0.92rem;
    opacity: 0.58;
    text-align: right;
}

/* Role / italic text on the left of second row */
.resume-row > span:first-child {
    font-size: 1rem;
}

.resume-year {
    white-space: nowrap;
}

/* Description text beneath education entries */
.education > span,
.experience > span {
    display: block;
    font-size: 1rem;
    line-height: 1.55;
    margin-top: 0.25rem;
    opacity: 0.85;
}

/* Bullet points beneath experience entries */
.experience ul {
    margin: 0.3rem 0 0;
    padding-left: 1.2rem;
}

.experience ul li {
    font-size: 1rem;
    line-height: 1.55;
    padding: 0.06rem 0;
}

/* ---- Resume lists (publications, conferences, grants, etc.) ---- */
.resume-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resume-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 1rem;
    line-height: 1.65;
}

.resume-list li:last-child {
    border-bottom: none;
}

/* Publications: hanging indent for academic citation style */
.resume-list li.publications {
    padding-left: 1.5em;
    text-indent: -1.5em;
}

/* ---- Year item pattern (list items with right-aligned year) ---- */
.resume-year-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.resume-item-year {
    white-space: nowrap;
    flex-shrink: 0;
    opacity: 0.58;
    font-size: 0.92rem;
    padding-top: 0.1rem;
}

.resume-item-title {
    font-size: 1rem;
}

.resume-item-desc {
    display: block;
    font-size: 1rem;
    line-height: 1.55;
    margin-top: 0.2rem;
    opacity: 0.85;
}

/* On mobile: enlarge body text, keep year/location always on the right */
@media (max-width: 600px) {
    .resume-row {
        flex-wrap: nowrap;
    }

    .resume-row h5,
    .resume-row > span:first-child {
        min-width: 0;
    }

    .resume-row h5 { font-size: 1rem; }
    .resume-row > span:first-child { font-size: 1rem; }
    .resume-row > span:last-child:not(:first-child) { font-size: 0.92rem; }
    .education > span,
    .experience > span { font-size: 1rem; }
    .experience ul li { font-size: 1rem; }
    .resume-list li { font-size: 1rem; }
    .resume-item-title { font-size: 1rem; }
    .resume-item-desc { font-size: 1rem; }
    .resume-contact-links { font-size: 1rem; }
}

/* ---- Footnote text (e.g. asterisk note under publications) ---- */
.resume > span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 0.4rem;
}
