/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Georgia", "Times New Roman", serif;
    color: #333;
    background-color: #fff;
    line-height: 1.7;
    font-size: 16px;
}

a {
    color: #a51c30; /* Harvard crimson */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* === Navigation === */
nav {
    background-color: #a51c30;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

nav ul {
    list-style: none;
    display: flex;
    max-width: 960px;
    margin: 0 auto;
    padding: 0;
}

nav ul li a {
    display: block;
    color: #fff;
    padding: 14px 20px;
    font-size: 15px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background-color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #8a1728;
    text-decoration: none;
}

/* === Header === */
header {
    background-color: #f7f5f2;
    border-bottom: 1px solid #e0dbd5;
    padding: 30px 0;
}

header .container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

header h1 {
    font-size: 28px;
    font-weight: normal;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

header .subtitle {
    font-size: 16px;
    color: #666;
    margin-top: 4px;
    font-style: italic;
}

/* === Main Content === */
.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

main {
    padding: 40px 0 60px;
}

/* === Single Page Section Dividers === */
#research, #lag, #teaching, #media {
    padding-top: 40px;
    margin-top: 20px;
    border-top: 1px solid #e0dbd5;
}

/* === Home Page Profile === */
.profile {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

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

.profile-photo img {
    width: 280px;
    height: 340px;
    object-fit: cover;
    object-position: 75% top;
    border: 1px solid #ddd;
}

.profile-info h2 {
    font-size: 22px;
    font-weight: normal;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.profile-info .title {
    font-size: 15px;
    color: #555;
    margin-bottom: 16px;
}

.profile-info .contact-details {
    font-size: 14px;
    color: #555;
    line-height: 1.9;
    margin-bottom: 20px;
}

.profile-info .contact-details a {
    color: #a51c30;
}

/* === Profile Links (Icons) === */
.profile-links {
    margin-top: 16px;
    display: flex;
    gap: 16px;
}

.profile-links a {
    color: #555;
    font-size: 22px;
    transition: color 0.2s;
}

.profile-links a:hover {
    color: #a51c30;
    text-decoration: none;
}

/* === Featured In Bar === */
.featured-in {
    margin-top: 36px;
    padding: 24px 0;
    border-top: 1px solid #e0dbd5;
    border-bottom: 1px solid #e0dbd5;
    text-align: center;
}

.featured-in-label {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aaa;
    margin-bottom: 16px;
}

.featured-in-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.outlet-logo {
    color: #333;
    font-size: 15px;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}

.outlet-logo:hover {
    color: #111;
}

.outlet-logo.wsj {
    font-family: "Georgia", "Times New Roman", serif;
    font-style: italic;
    font-size: 16px;
    font-weight: bold;
}

.outlet-logo.nyt {
    font-family: "Georgia", "Times New Roman", serif;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: -0.3px;
}

.outlet-logo.economist {
    font-family: "Georgia", "Times New Roman", serif;
    font-style: italic;
    font-size: 15px;
}

.outlet-logo.bloomberg {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.outlet-logo.bi {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
}

/* === Section Styling === */
section {
    margin-bottom: 36px;
}

section h2 {
    font-size: 22px;
    font-weight: normal;
    color: #1a1a1a;
    border-bottom: 2px solid #a51c30;
    padding-bottom: 6px;
    margin-bottom: 18px;
}

section h3 {
    font-size: 18px;
    font-weight: normal;
    color: #444;
    margin-top: 24px;
    margin-bottom: 12px;
    font-style: italic;
}

/* === Research Filters === */
.research-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.filter-btn {
    display: inline-block;
    background-color: transparent;
    border: 1.5px solid #ccc;
    padding: 8px 18px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.filter-btn:hover {
    border-color: #a51c30;
    color: #a51c30;
}

.research-filters .filter-btn.active {
    background-color: #a51c30;
    border-color: #a51c30;
    color: #fff;
    font-weight: 600;
}

.filterable li {
    transition: opacity 0.2s;
}

/* === Publication Lists === */
ul.publications {
    list-style: disc;
    padding-left: 24px;
}

ul.publications li {
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.6;
}

ul.publications li .journal {
    font-style: italic;
}

ul.publications li .award {
    display: block;
    color: #a51c30;
    font-size: 14px;
    margin-top: 2px;
}

ul.publications li .coauthors {
    color: #555;
}

ul.publications li .abstract-toggle {
    display: block;
    margin-top: 6px;
}

ul.publications li .abstract-toggle summary {
    cursor: pointer;
    font-size: 13px;
    color: #a51c30;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    list-style: none;
}

ul.publications li .abstract-toggle summary::-webkit-details-marker {
    display: none;
}

ul.publications li .abstract-toggle summary::before {
    content: "\25B6\00a0";
    font-size: 10px;
}

ul.publications li .abstract-toggle[open] summary::before {
    content: "\25BC\00a0";
}

ul.publications li .abstract-toggle .abstract-text {
    margin-top: 8px;
    padding: 12px 16px;
    background-color: #f9f8f6;
    border-left: 3px solid #a51c30;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

ul.working-papers li .abstract-toggle {
    display: block;
    margin-top: 6px;
}

ul.working-papers li .abstract-toggle summary {
    cursor: pointer;
    font-size: 13px;
    color: #a51c30;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    list-style: none;
}

ul.working-papers li .abstract-toggle summary::-webkit-details-marker {
    display: none;
}

ul.working-papers li .abstract-toggle summary::before {
    content: "\25B6\00a0";
    font-size: 10px;
}

ul.working-papers li .abstract-toggle[open] summary::before {
    content: "\25BC\00a0";
}

ul.working-papers li .abstract-toggle .abstract-text {
    margin-top: 8px;
    padding: 12px 16px;
    background-color: #f9f8f6;
    border-left: 3px solid #a51c30;
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

ul.publications li .pdf-link {
    font-size: 13px;
    margin-left: 6px;
}

/* === Working Papers === */
ul.working-papers {
    list-style: disc;
    padding-left: 24px;
}

ul.working-papers li {
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.6;
}

/* === Media List === */
ul.media-list {
    list-style: disc;
    padding-left: 24px;
}

ul.media-list li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.5;
}

ul.media-list li .outlet {
    font-style: italic;
}

ul.media-list li .date {
    color: #888;
    font-size: 14px;
}

/* === Cases List === */
ol.cases {
    list-style: none;
    counter-reset: case-counter;
    padding-left: 0;
}

ol.cases li {
    counter-increment: case-counter;
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
}

ol.cases li::before {
    content: "[" counter(case-counter) "]";
    position: absolute;
    left: 0;
    color: #888;
    font-size: 14px;
}

/* === CV Download Button === */
.cv-download {
    display: inline-block;
    background-color: #a51c30;
    color: #fff;
    padding: 10px 24px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0.3px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cv-download:hover {
    background-color: #8a1728;
    text-decoration: none;
    color: #fff;
}

/* === Research Interests === */
.research-interests {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.research-interests .interest-tag {
    display: inline-block;
    padding: 8px 20px;
    border: 1.5px solid #a51c30;
    color: #a51c30;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.research-interests .interest-tag:hover {
    background-color: #a51c30;
    color: #fff;
}

/* === About Page Bio === */
.bio p {
    margin-bottom: 16px;
    font-size: 15px;
    text-align: justify;
}

/* === LAG Section === */
.lag-intro {
    font-size: 15px;
    margin-bottom: 24px;
    text-align: justify;
}

.lag-conference-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #a51c30;
    color: #fff;
    padding: 18px 24px;
    margin-bottom: 32px;
}

.conference-icon {
    font-size: 24px;
    opacity: 0.9;
}

.conference-details {
    flex: 1;
}

.conference-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 2px;
}

.conference-meta {
    font-size: 13px;
    opacity: 0.9;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.conference-link {
    color: #fff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.5);
    padding: 8px 16px;
    transition: background-color 0.2s;
    white-space: nowrap;
}

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

.lag-survey {
    background: #faf9f7;
    border: 1px solid #e0dbd5;
    padding: 28px 28px 24px;
}

.lag-survey h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: normal;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.survey-title-link {
    color: #a51c30;
    text-decoration: none;
    transition: color 0.2s;
}

.survey-title-link:hover {
    color: #7a1525;
    text-decoration: underline;
}

.survey-title-link i {
    margin-right: 6px;
}

.lag-survey-subtitle {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
}

.lag-survey-subtitle a {
    color: #a51c30;
    text-decoration: none;
    font-weight: 600;
}

.lag-survey-subtitle a:hover {
    text-decoration: underline;
}

.lag-survey-authors {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
}

.lag-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0dbd5;
}

.lag-stat {
    text-align: center;
}

.lag-stat-number {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: bold;
    color: #a51c30;
}

.lag-stat-label {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* LLC Timeline */
.llc-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin: 24px 0 28px;
    padding: 0 8px;
}

.llc-stage {
    text-align: center;
    flex: 1;
    max-width: 160px;
}

.llc-stage-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #a51c30;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.llc-stage-name {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.llc-stage-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.llc-connector {
    width: 40px;
    min-width: 24px;
    height: 2px;
    background: #d4c9be;
    margin-top: 20px;
    flex-shrink: 1;
}

/* Theme Cards */
.lag-themes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.lag-theme-card {
    border: 1px solid #e0dbd5;
    padding: 20px;
    background: #fff;
}

.lag-theme-icon {
    color: #a51c30;
    font-size: 20px;
    margin-bottom: 10px;
}

.lag-theme-card h4 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.lag-theme-card p {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* CTA Buttons */
.lag-cta {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.lag-btn {
    display: inline-block;
    padding: 10px 24px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.lag-btn-primary {
    background: #a51c30;
    color: #fff;
    border: 1.5px solid #a51c30;
}

.lag-btn-primary:hover {
    background: #8a1728;
    border-color: #8a1728;
}

.lag-btn-secondary {
    background: #fff;
    color: #a51c30;
    border: 1.5px solid #a51c30;
}

.lag-btn-secondary:hover {
    background: #a51c30;
    color: #fff;
}

/* === Footer === */
footer {
    background-color: #f7f5f2;
    border-top: 1px solid #e0dbd5;
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #888;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* === Responsive === */
@media (max-width: 700px) {
    /* Nav: single row, smaller text */
    nav ul {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0;
    }

    nav ul li a {
        padding: 12px 10px;
        font-size: 12px;
    }

    /* Header - hide on mobile since profile card has same info */
    header {
        display: none;
    }

    /* Profile */
    .profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-links {
        justify-content: center;
    }

    .profile-photo img {
        width: 240px;
        height: 300px;
    }

    .contact-details {
        font-size: 14px;
    }

    .cv-download {
        font-size: 13px;
        padding: 10px 20px;
    }

    /* Bio */
    .bio p {
        font-size: 14px;
        text-align: left;
    }

    section h2 {
        font-size: 20px;
    }

    /* Featured In */
    .featured-in-logos {
        flex-direction: column;
        gap: 12px;
    }

    .outlet-logo {
        font-size: 14px !important;
    }

    /* Research tabs */
    .research-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .tab-btn {
        padding: 10px 14px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Paper list */
    ul.papers {
        padding-left: 16px;
    }

    ul.papers li {
        font-size: 14px;
    }

    /* LAG section */
    .lag-intro {
        font-size: 14px;
        text-align: left;
    }

    .lag-conference-banner {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .conference-title {
        font-size: 14px;
    }

    .lag-survey {
        padding: 20px 16px;
    }

    .lag-survey h3 {
        font-size: 17px;
    }

    .lag-stats {
        justify-content: center;
    }

    .lag-stat-number {
        font-size: 24px;
    }

    .lag-themes {
        grid-template-columns: 1fr;
    }

    .llc-timeline {
        flex-direction: column;
        align-items: center;
    }

    .llc-connector {
        width: 2px;
        height: 20px;
        min-width: 2px;
        margin-top: 0;
    }

    .lag-cta {
        flex-direction: column;
    }

    .lag-btn {
        text-align: center;
    }

    /* Teaching */
    ol.cases li {
        font-size: 14px;
    }

    /* Media */
    ul.media-list li {
        font-size: 14px;
    }
}
