/* --- CSS STYLES --- */
:root {
    --primary-color: #14243b;
    --accent-color: #245bdb;
    --accent-rgb: 36, 91, 219;
    --on-accent-color: #ffffff;
    --text-color: #334155;
    --text-muted: #5b6b82;
    --bg-color: #f5f7fb;
    --bg-alt: #edf1f7;
    --card-bg: #ffffff;
    --border-color: rgba(0,0,0,0.1);
    --container-width: 1000px;
}

[data-theme="dark"] {
    --primary-color: #e3ecfa;
    --accent-color: #8ab4ff;
    --accent-rgb: 138, 180, 255;
    --on-accent-color: #0e1728;
    --text-color: #d5dfed;
    --text-muted: #9caec5;
    --bg-color: #0e1728;
    --bg-alt: #142037;
    --card-bg: #1b2a42;
    --border-color: rgba(255,255,255,0.1);
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
}

h1 { font-family: 'Playfair Display', Georgia, serif; }

[hidden] { display: none !important; }

/* The Banner Image */
.banner {
    width: 100%;
    overflow: hidden;
    position: relative;
    background-color: var(--primary-color);
}
.banner picture {
    display: block;
    width: 100%;
}
.banner img {
    width: 100%;
    height: auto;
    display: block;
}
.banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 36px;
    background: linear-gradient(to top, var(--bg-color), transparent);
    pointer-events: none;
}

/* Profile Container - centers the compact profile header below the banner */
.profile-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

/* Section Content - centers content within full-width sections */
.section-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Profile Section */
.profile-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: left;
    margin-top: 28px;
    margin-bottom: 12px;
    gap: 24px;
}

.profile-pic {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    background-color: #e8e8e8;
    background-image: url('../profile_picture.jpg');
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.profile-info h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.profile-info p {
    margin: 8px 0 0;
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.social-links {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
}
.social-links a {
    text-decoration: none;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease, transform 0.2s ease;
}
.social-links a i {
    font-size: 1.1rem;
}
.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* About content links */
#about-content a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}
#about-content a:hover {
    color: var(--primary-color);
}

/* Section Styling - Full width with alternating backgrounds */
section {
    width: 100%;
    padding: 48px 0;
    text-align: center;
    background-color: var(--bg-color);
}

section:nth-of-type(even) {
    background-color: var(--bg-alt);
}

section:last-of-type {
    padding-bottom: 80px;
}

section p {
    text-align: left;
}

section ul {
    display: inline-block;
    text-align: left;
    padding-left: 20px;
}

section li {
    margin-bottom: 12px;
}

h2 {
    font-size: 1.75rem;
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--primary-color);
    letter-spacing: -0.01em;
}

/* Publication List Styling */
.publications-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

.filter-btn:hover {
    background: var(--accent-color);
    color: var(--on-accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

.filter-btn.active {
    background: var(--accent-color);
    color: var(--on-accent-color);
    box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.2);
}

.paper {
    margin-bottom: 28px;
    padding: 20px 24px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    opacity: 1;
}

.paper.hidden {
    display: none;
}

.paper:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.show-more-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.show-more-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 20px;
    border: 1.5px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.02em;
}

.show-more-btn:hover {
    background: var(--accent-color);
    color: var(--on-accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
}

.show-more-btn i {
    transition: transform 0.25s ease;
    font-size: 0.75rem;
}

.show-more-btn.expanded i {
    transform: rotate(180deg);
}

.show-more-btn.hidden {
    display: none;
}
.paper-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}
.paper-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--primary-color);
    flex: 1;
    line-height: 1.4;
}
.paper-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 6px;
    line-height: 1.6;
}
.paper-venue-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    flex: 0 1 35%;
    font-size: 0.9rem;
    text-align: right;
}
.paper-title { min-width: 0; text-decoration: none; }
.paper-title:hover { color: var(--accent-color); text-decoration: underline; }
.paper-venue-info .year-text { white-space: nowrap; }
.paper-highlights { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 600px) {
    .paper-header { flex-direction: column; gap: 10px; }
    .paper-venue-info { flex-basis: auto; justify-content: flex-start; text-align: left; }
}
.venue-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--on-accent-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 11px;
    border-radius: 12px;
    letter-spacing: 0.02em;
}
.year-text {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.year-text::after {
    content: ' ·';
    margin-left: 4px;
    margin-right: 4px;
    color: var(--text-muted);
}
.highlight-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
}
.paper-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.paper-links a {
    font-size: 0.75rem;
    color: var(--accent-color);
    text-decoration: none;
    border: 1px solid var(--accent-color);
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.paper-links a:hover {
    background-color: var(--accent-color);
    color: var(--on-accent-color);
}

/* Recent news grid */
.timeline-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    padding: 12px 0;
}

.timeline-card {
    position: relative;
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.timeline-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}

.timeline-badge {
    display: inline-block;
    align-self: flex-start;
    background: var(--accent-color);
    color: var(--on-accent-color);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: 0.02em;
}

.timeline-card p {
    margin: 0;
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.timeline-card .timeline-link {
    align-self: flex-end;
}

.timeline-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
    color: var(--accent-color);
    text-decoration: none;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.timeline-link:hover {
    background-color: var(--accent-color);
    color: var(--on-accent-color);
    transform: scale(1.1);
}

/* Navigation Bar */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.15) 60%, transparent 100%);
    transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.main-nav.scrolled {
    background: rgba(245, 247, 251, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .main-nav.scrolled {
    background: rgba(14, 23, 40, 0.92);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.25s ease;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.main-nav.scrolled .nav-link {
    color: var(--text-muted);
    text-shadow: none;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.main-nav.scrolled .nav-link:hover {
    color: var(--primary-color);
    background: rgba(var(--accent-rgb), 0.1);
}

.nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.main-nav.scrolled .nav-link.active {
    color: var(--accent-color);
    background: rgba(var(--accent-rgb), 0.15);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
}

.main-nav.scrolled .nav-link.active::after {
    background: var(--accent-color);
}

/* Theme Toggle Button - now inside nav */
.theme-toggle {
    position: absolute;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav.scrolled .theme-toggle {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.theme-toggle:active {
    transform: scale(0.95);
}

/* Banner Time Selector */
.banner-time-selector {
    position: absolute;
    bottom: 40px;
    right: 20px;
    display: flex;
    gap: 5px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 4px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.time-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    transition: all 0.25s ease;
}

.time-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.time-btn.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.time-btn:active {
    transform: scale(0.95);
}

/* About Section - Education & Experience */
.about-columns {
    display: flex;
    gap: 48px;
    margin-top: 32px;
    justify-content: center;
}

.about-column {
    flex: 1;
    max-width: 420px;
    min-width: 0;
}

.about-column-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-align: left;
}

.about-entries {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

/* Vertical connecting line */
.about-entries::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 44px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(to bottom, var(--border-color), transparent);
    border-radius: 1px;
}

.about-entry {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    position: relative;
}

.entry-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--card-bg) 100%);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.entry-logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    opacity: 0.1;
    border-radius: 50%;
}

.entry-logo i {
    font-size: 1.1rem;
    color: var(--accent-color);
    opacity: 0.6;
}

.entry-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.about-entry:hover .entry-logo {
    transform: scale(1.08);
    border-color: var(--accent-color);
    box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.2);
}

.entry-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 0;
    text-align: left;
}

.entry-institution {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

.entry-role {
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
}

.entry-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.entry-location {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.entry-location i {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* Talks grid */
.talks-track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 12px 0;
}

.talk-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    text-align: left;
    border: 1px solid var(--border-color);
}

.talk-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: var(--accent-color);
}

.talk-card.upcoming {
    background:
        repeating-linear-gradient(
            135deg,
            transparent,
            transparent 8px,
            rgba(var(--accent-rgb), 0.06) 8px,
            rgba(var(--accent-rgb), 0.06) 16px
        ),
        var(--card-bg);
}

@media (prefers-color-scheme: dark) {
    .talk-card.upcoming {
        background:
            repeating-linear-gradient(
                135deg,
                transparent,
                transparent 8px,
                rgba(var(--accent-rgb), 0.08) 8px,
                rgba(var(--accent-rgb), 0.08) 16px
            ),
            var(--card-bg);
    }
}

.talk-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.talk-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
    line-height: 1.3;
    margin: 0;
    flex: 1;
}

.talk-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-color);
    color: var(--on-accent-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.talk-type-badge i {
    font-size: 0.7rem;
}

.talk-subtitle {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-color);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.talk-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.talk-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.talk-detail-item i {
    width: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.talk-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-alt);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.25s ease;
    margin-top: auto;
}

.talk-link:hover {
    background: var(--accent-color);
    color: var(--on-accent-color);
}

.talk-link i {
    font-size: 0.8rem;
    transition: transform 0.25s ease;
}

.talk-link:hover i {
    transform: translateX(4px);
}

/* Responsive for Talks */

@media (max-width: 600px) {
    .talk-card {
        padding: 18px;
        gap: 12px;
    }
    .talk-title {
        font-size: 1rem;
    }
    .talk-type-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    .talk-detail-item {
        font-size: 0.85rem;
    }
    .talk-subtitle {
        font-size: 0.85rem;
    }
    .talk-link {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Offset for fixed nav when jumping to sections */
section {
    scroll-margin-top: 80px;
}

/* Responsive Design */
@media (max-width: 900px) {
    .profile-container,
    .section-content {
        padding: 0 30px;
    }
    section {
        padding: 50px 0;
    }
    section:last-of-type {
        padding-bottom: 60px;
    }
    .timeline-track {
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .profile-container,
    .section-content {
        padding: 0 20px;
    }
    section {
        padding: 40px 0;
    }
    section:last-of-type {
        padding-bottom: 50px;
    }
    .profile-header {
        margin-top: 20px;
        gap: 16px;
        align-items: flex-start;
    }
    .profile-pic {
        width: 72px;
        height: 72px;
    }
    .profile-info h1 {
        font-size: 1.7rem;
        line-height: 1.25;
    }
    .profile-info p { font-size: 0.95rem; }
    .social-links {
        gap: 14px;
    }
    .social-links a {
        font-size: 0.95rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    /* Timeline responsive */
    .timeline-track {
        gap: 16px;
        padding-top: 12px;
    }
    .timeline-card {
        padding: 16px;
    }
    .timeline-badge {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
    .timeline-card p {
        font-size: 0.9rem;
    }
    /* Navigation responsive */
    .main-nav {
        height: 50px;
        padding: 0 12px;
    }
    .nav-link {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 1rem;
        right: 12px;
    }
    section {
        scroll-margin-top: 70px;
    }
    .banner-time-selector {
        bottom: 30px;
        right: 12px;
        gap: 4px;
        padding: 3px;
    }
    .time-btn {
        width: 20px;
        height: 20px;
        font-size: 0.55rem;
    }
    /* About columns mobile - stack vertically */
    .about-columns {
        flex-direction: column;
        align-items: center;
    }
    .about-column {
        width: 100%;
    }
    .about-column-title {
        text-align: center;
    }
    .entry-institution {
        font-size: 0.95rem;
    }
    .entry-role {
        font-size: 0.85rem;
    }
}

/* Feedback and keyboard accessibility. */
.content-status { color: var(--text-muted); padding: 1rem; }
button:disabled { opacity: 0.5; cursor: default; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 4px; }
.paper { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

.banner picture[hidden] { display: none; }

/* Editorial spacing and compact career details */
#about-content { max-width: 70ch; margin: 0 auto; font-size: 16px; }

.publications-filters { margin: 24px 0; }
.paper { margin-bottom: 22px; }
.paper-title { line-height: 1.4; }
.site-footer {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 28px 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.site-footer div { display: flex; gap: 24px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent-color); text-decoration: underline; }
@media (max-width: 700px) {
    .timeline-track, .talks-track { grid-template-columns: 1fr; }
    .about-columns { gap: 28px; }
    .site-footer { padding: 24px 20px; }
}

@media (max-width: 600px) {
    .main-nav { justify-content: flex-start; padding-right: 56px; }
    .nav-links { gap: 0; }
    .nav-link { font-size: 0.8rem; padding: 6px 8px; }
}

/* Biography, experience, and education share a row on wide screens. */
@media (min-width: 1200px) {
    #about .section-content {
        max-width: 1240px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 48px;
        align-items: start;
    }
    #about h2 { grid-column: 1 / -1; }
    #about-content {
        grid-column: 2;
        grid-row: 2;
        max-width: none;
        margin: 0;
        text-align: justify;
        text-align-last: left;
        -webkit-hyphens: auto;
        hyphens: auto;
    }
    #about-content p:first-child { margin-top: 0; }
    .about-columns {
        grid-column: 1;
        grid-row: 2;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
        margin-top: 0;
    }
    .about-column { max-width: none; }
    .about-column-title { margin-top: 0; }
    .about-entry { gap: 10px; }
    .entry-logo { width: 36px; height: 36px; }
    .entry-logo i { font-size: 1rem; }
    .about-entries::before { left: 18px; top: 36px; }
    .entry-institution { font-size: 0.95rem; }
    .entry-role { font-size: 0.85rem; }
    .entry-details { min-width: 0; }
}
