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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: #52616B;
    background: #0B1F3A;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Content card: white background, centered, always on top */
.container {
    max-width: 1050px;
    margin: 60px auto;
    background: #F7F5F0;
    padding: 50px 70px;
    border-radius: 6px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 1;
}

/* Profile row: photo left, info right — same height */
.profile-row {
    display: flex;
    gap: 40px;
    align-items: stretch;
    margin-bottom: 24px;
}

.profile-photo-wrap {
    flex-shrink: 0;
    display: flex;
}

.profile-photo {
    width: 360px;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
    display: block;
    box-shadow: 6px 10px 24px rgba(0, 0, 0, 0.18), 2px 4px 8px rgba(0, 0, 0, 0.10);
}

.profile-info {
    flex: 1;
    max-width: 420px;
    padding-top: 4px;
}

h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #1F2933;
}

.title {
    font-size: 18px;
    font-weight: 400;
    color: #52616B;
    margin-bottom: 2px;
}

.affiliation {
    font-size: 17px;
    font-weight: 300;
    color: #7B8794;
    margin-bottom: 16px;
}

.bio {
    font-size: 15px;
    color: #52616B;
    margin-bottom: 10px;
    line-height: 1.6;
}

.bio-list {
    font-size: 15px;
    color: #52616B;
    line-height: 1.6;
    margin: 0 0 10px 20px;
    padding: 0;
}

.bio-list li {
    margin-bottom: 6px;
}

/* Links / Buttons */
.links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid #eee;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    border: 1.5px solid #1F2933;
    border-radius: 4px;
    text-decoration: none;
    color: #1F2933;
    font-size: 15px;
    background: transparent;
    transition: color 0.2s, border-color 0.2s;
    cursor: pointer;
}

.link-btn i {
    font-size: 14px;
}

.link-btn:hover {
    color: #2563eb;
    border-color: #2563eb;
    text-decoration: none;
}

/* Email tooltip */
.email-wrap {
    position: relative;
    display: inline-flex;
}

.email-tooltip {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #1F2933;
    color: #fff;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 100;
}

.email-tooltip.visible {
    display: block;
}

.email-tooltip .copy-msg {
    color: #86efac;
    margin-left: 8px;
    font-size: 12px;
}

/* Sections */
.section {
    margin-bottom: 40px;
}

h2 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #1F2933;
}

/* Simple papers (Working Papers / Research in Progress) */
.paper {
    margin-bottom: 20px;
}

.paper-title {
    font-weight: 500;
    margin-bottom: 3px;
    color: #1F2933;
}

.paper-authors {
    font-size: 14px;
    color: #52616B;
}

/* Publication cards */
.pub-card {
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
    background: #FCFBF8;
}

.pub-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 6px;
}

.pub-title {
    font-size: 16px;
    font-weight: 600;
    color: #1F2933;
    line-height: 1.4;
    flex: 1;
}

.pub-journal {
    font-size: 15px;
    font-style: italic;
    color: #2563eb;
    margin-bottom: 6px;
}

.pub-author-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.pub-authors {
    font-size: 14px;
    color: #52616B;
    margin-bottom: 8px;
}

.pub-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.pub-year {
    background: #1F2933;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    white-space: nowrap;
}

.pub-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.pub-status {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 4px;
    border: 1.5px solid #999;
    color: #52616B;
    background: transparent;
    white-space: nowrap;
}

.pub-status-review {
    border-color: #2563eb;
    color: #2563eb;
}

.pub-award {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 4px;
    background: #fef9c3;
    border: 1.5px solid #eab308;
    color: #854d0e;
    white-space: normal;
}

.pub-jmp {
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 4px;
    background: #dcfce7;
    border: 1.5px solid #16a34a;
    color: #166534;
    white-space: nowrap;
}

.pub-actions {
    margin-bottom: 4px;
}

.pub-pdf-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #1F2933;
    border: 1.5px solid #1F2933;
    border-radius: 4px;
    padding: 4px 12px;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s;
}

.pub-pdf-btn:hover {
    color: #2563eb;
    border-color: #2563eb;
}

.pub-pdf-disabled {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #aaa;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    padding: 4px 12px;
    cursor: not-allowed;
}

.abstract-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: #52616B;
    padding: 2px 4px;
    flex-shrink: 0;
}

.abstract-toggle i {
    transition: transform 0.2s;
}

.abstract-toggle.open i {
    transform: rotate(180deg);
}

.pub-abstract-text {
    display: none;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #e8e8e8;
    font-size: 14.5px;
    color: #52616B;
    line-height: 1.7;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px;
    font-size: 13px;
    color: #fff;
    position: relative;
    z-index: 1;
}

/* Mobile */
@media (max-width: 700px) {
    .container {
        margin: 20px 16px;
        padding: 30px 24px;
    }

    .profile-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-photo {
        width: 220px;
        height: auto;
    }

    h1 {
        font-size: 22px;
    }

    .links {
        text-align: center;
    }

    .pub-author-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .pub-right {
        margin-top: 8px;
    }
}
