/* UChicago maroon */
:root {
    --uchicago-maroon: #800000;
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background: #fbfaf8;
    margin: 0;
    padding: 0;
}

.header {
    background: var(--uchicago-maroon);
    color: #fff;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.header-title {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 16px;
}

.logo {
    height: 80px;
    width: auto;
}

.name-position {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.your-name {
    font-size: 2em;
    font-weight: 700;
}

.your-position {
    font-size: 1em;
    color: #f3c2a1;
    margin-top: 2px;
}

.header-nav {
    font-size: 1em;
}

.header-nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 30px;
    font-weight: 600;
    transition: text-decoration 0.2s;
}

.header-nav a:hover {
    text-decoration: underline;
}

/* General tab behavior */
.tab-section {
    display: none;
}

.tab-section.active {
    display: flex;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Shared section styling */
.welcome-container,
.research-container,
.teaching-container {
    padding: 48px;
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.research-container,
.teaching-container {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.section-content {
    width: 100%;
}

/* Home section */
.welcome-container {
    align-items: flex-start;
    justify-content: space-between;
}

.welcome-text {
    flex: 2;
    margin-right: 32px;
    min-width: 0;
}

.profile-picture {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.profile-picture img {
    width: 240px;
    height: 240px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--uchicago-maroon);
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

.home-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 22px;
}

.featured-paper {
    width: 240px;
    padding: 16px 18px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #faf7f5;
    box-shadow: 0 1px 2px rgba(180,0,0,0.05);
}

.featured-paper h2 {
    margin: 0 0 10px 0;
    font-size: 1.05em;
    color: #800000;
}

.featured-paper h3 {
    margin: 0 0 8px 0;
    font-size: 1em;
    line-height: 1.35;
}

.featured-status {
    color: #666;
    margin: 0 0 10px 0;
    font-size: 0.92em;
}

.featured-paper p {
    font-size: 0.94em;
    line-height: 1.45;
}

.featured-paper .paper-links {
    margin-top: 10px;
}


/* Research paper list */
.paper-list {
    padding-left: 24px;
    margin-top: 24px;
}

.paper {
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.paper:last-child {
    border-bottom: none;
}

.paper::marker {
    color: #800000;
    font-weight: 700;
}

.paper h3 {
    margin: 0 0 8px 0;
    font-size: 1.15em;
    line-height: 1.35;
}

.paper-title-meta {
    font-size: 0.9em;
    font-weight: normal;
    color: #666;
    margin-left: 6px;
}

.paper-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 4px 0 8px 0;
}

.paper-authors {
    margin: 0;
}

.paper-links {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.paper-links a {
    display: inline-block;
    text-decoration: none;
    background: #eee;
    color: #800000;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.94em;
    line-height: 1.3;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.paper-links a:hover {
    background: #800000;
    color: #fff;
    border-color: #800000;
}

.paper-abstract {
    margin-top: 8px;
}

.paper-abstract summary {
    color: #800000;
    cursor: pointer;
    font-weight: 600;
}

.paper-abstract p {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 7px;
    border: 1px solid #ece7df;
    background: #f9f8f6;
    color: #373333;
}

/* Teaching course list */
.course-list {
    list-style: none;
    padding-left: 0;
    margin-top: 24px;
}

.course {
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.course:last-child {
    border-bottom: none;
}

.course h3 {
    margin: 0 0 4px 0;
    font-size: 1.15em;
}

.course h3 span {
    font-weight: normal;
    color: #666;
}

.course-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 8px 0;
}

.course-meta {
    margin: 0;
    color: #666;
    font-size: 0.96em;
}

.course-links {
    margin: 0;
}

.course-links a {
    display: inline-block;
    text-decoration: none;
    background: #eee;
    color: #800000;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.94em;
    line-height: 1.3;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.course-links a:hover {
    background: #800000;
    color: #fff;
    border-color: #800000;
}

.course-description {
    margin-top: 8px;
}

.course-description summary {
    color: #800000;
    cursor: pointer;
    font-weight: 600;
}

.course-description p {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 7px;
    border: 1px solid #ece7df;
    background: #f9f8f6;
    color: #373333;
}