/* =====================================
   GENERAL
   ===================================== */

* {
    box-sizing: border-box;
    font-family: Arial;
}

body {
    margin: 0;

    font-family: Arial;

    color: #333;

    background: #fff;

    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}


/* =====================================
   NAVIGATION
   ===================================== */

nav {
    border-bottom: 1px solid #e8e8e8;

    background: #fff;
}

.nav-container {
    max-width: 1180px;

    margin: 0 auto;

    padding: 24px 35px;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.site-name {
    font-size: 20px;

    font-weight: 600;

    letter-spacing: -0.3px;
}

.nav-links {
    display: flex;

    gap: 32px;
}

.nav-links a {
    font-size: 14px;

    color: #555;

    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #111;
}


/* =====================================
   MAIN
   ===================================== */

main {
    max-width: 1180px;

    margin: 0 auto;

    padding: 70px 35px 80px;
}


/* =====================================
   HERO
   ===================================== */

.hero {
    display: grid;

    grid-template-columns: 360px 1fr;

    gap: 65px;

    align-items: center;

    padding: 35px 0 95px;
}

.hero-image {
    display: flex;

    justify-content: center;

    align-items: center;
}

.hero-image img {
    width: 300px;

    height: 300px;

    object-fit: cover;

    border-radius: 50%;
}

.hero-text h1 {
    margin: 0 0 8px;

    font-size: 54px;

    font-weight: normal;

    letter-spacing: -1.5px;

    line-height: 1.1;
}

.hero-text h2 {
    margin: 0;

    font-size: 21px;

    font-weight: 400;

    color: #555;
}

.affiliation {
    margin-top: 4px;

    font-size: 16px;

    color: #777;
}

.hero-text p {
    max-width: 720px;

    font-size: 18px;

    line-height: 1.75;
}

.hero-text .intro {
    margin-top: 35px;

    font-size: 21px;

    line-height: 1.65;
}


/* =====================================
   HERO LINKS
   ===================================== */

.hero-links {
    display: flex;

    align-items: center;

    gap: 24px;

    margin-top: 32px;
}

.button {
    display: inline-block;

    padding: 10px 22px;

    background: #333;

    color: #fff;

    border-radius: 4px;

    font-size: 14px;

    font-weight: 500;

    transition: all 0.2s ease;
}

/*
.button:hover {
    background: #555;

    transform: translateY(-1px);
}
*/

.text-link {
    font-size: 14px;

    font-weight: 500;

    color: #444;
}

.text-link:hover {
    color: #111;

    text-decoration: underline;
}

/* =====================================
   RESEARCH SECTION
   ===================================== */

.section {
    width: 100%;
    border-top: 1px solid #e5e5e5;

    padding: 70px 5%;
}

.section-label {
    margin-bottom: 18px;

    font-size: 20px;
    font-weight: 600;

    letter-spacing: 2.2px;

    color: #888;
}

.section h1 {
    max-width: 1200px;

    margin: 0 0 20px;

    font-size: 40px;
    font-weight: normal;

    line-height: 1.3;

    letter-spacing: -0.5px;
}

.section h2 {
    max-width: 1200px;

    margin: 0 0 20px;

    font-size: 40px;
    font-weight: normal;

    line-height: 1.3;

    letter-spacing: -0.5px;
}

.wide-text {
    max-width: 1200px;

    font-size: 18px;
    line-height: 1.8;
}

.arrow-link {
    display: inline-block;

    margin-top: 12px;

    font-size: 14px;
    font-weight: 500;

    color: #444;
}

.arrow-link:hover {
    color: #111;
    text-decoration: underline;
}

.page-header p {
    max-width: 100%;
}


/* =====================================
   COAUTHORS
   ===================================== */

.coauthors {
    margin-top: -8px;
    margin-bottom: 18px;

    font-size: 0.95rem;
}

.coauthors a {
    color: inherit;

    text-decoration: underline;
    text-underline-offset: 3px;
}

.coauthors a:hover {
    opacity: 0.7;
}


/* =====================================
   WORKS IN PROGRESS
   ===================================== */

.paper {
    margin-bottom: 55px;
}

.paper h2 {
    max-width: 1200px;

    margin: 0 0 8px 0;

    font-size: 23px;
    line-height: 1.25;
    font-weight: 500;
}


/* Job Market Paper */

.paper-label {
    margin-bottom: 12px;

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 2px;

    color: #888;
}


/* =========================================================
   RESEARCH PAGE — INTRO
   ========================================================= */

.research-intro {
    width: 100%;

    padding-bottom: 60px;
}


/* Section labels */

.works-section .section-label,
.research-intro .section-label {
    margin-bottom: 32px;

    font-size: 20px;
    font-weight: 600;

    letter-spacing: 3px;

    color: #888;
}


/* Main research heading */

.research-intro h1 {
    max-width: 1400px;

    margin: 0 0 24px;

    font-size: 40px;
    font-weight: 400;

    line-height: 1.3;
    letter-spacing: -0.5px;
}

.research-title {
    white-space: nowrap;
    font-size: 3rem;
}


/* Introduction paragraph */

.research-intro > p {
    max-width: 1400px;

    margin: 0;

    font-size: 18px;
    line-height: 1.7;
}


/* =========================================================
   WORKS IN PROGRESS SECTION
   ========================================================= */

.works-section {
    padding-top: 50px;
}


/* =========================================================
   PAPER CARDS
   ========================================================= */

.paper-card {
    width: 100%;
    max-width: 1400px;

    margin-bottom: 28px;
    padding: 30px 34px;

    border: 1px solid #e2e2e2;
    border-radius: 6px;

    background: #ffffff;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}


/* Hover effect */

.paper-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}


/* Job market paper */

.job-market-card {
    border-left: 4px solid #555;
}


/* Paper titles */

.paper-card h2 {
    max-width: 100%;

    margin: 0 0 16px;

    font-size: 27px;
    font-weight: 400;

    line-height: 1.35;

    color: #333;
}

.draft-note {
    margin: -4px 0 16px;

    font-size: 15px;
    font-style: italic;

    color: #666;
}

/* =========================================================
   ABSTRACT
   ========================================================= */

.abstract-box {
    margin-top: 4px;
}


/* Abstract button */

.abstract-box summary {
    display: inline-block;

    cursor: pointer;

    font-size: 15px;
    font-weight: 500;

    color: #555;

    list-style-position: outside;
}


/* Remove default marker in some browsers */

.abstract-box summary::-webkit-details-marker {
    display: none;
}

.abstract-box summary::marker {
    font-size: 12px;
}


/* Abstract arrow */

.abstract-box summary::before {
    content: "▶";

    font-size: 10px;
    margin-right: 7px;
}

.abstract-box[open] summary::before {
    content: "▼";
}


/* Hover */

.abstract-box summary:hover {
    color: #222;
}


/* Abstract text */

.abstract-box p {
    max-width: 900px;

    margin: 18px 0 0;

    font-size: 16px;
    line-height: 1.7;

    color: #555;
}


/* =========================================================
   PAPER LINK
   ========================================================= */

.paper-link {
    display: inline-block;

    margin-top: 22px;

    font-size: 15px;
    font-weight: 600;

    color: #444;

    text-decoration: none;
}

/* =====================================
   RESEARCH AREAS
   ===================================== */

.research-areas {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 35px;

    padding: 20px 0 75px;
}

.area {
    display: flex;

    justify-content: center;

    align-items: center;
}

.area-circle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 190px;
    height: 45px;

    border: 1px solid #333;
    border-radius: 25px;

    font-size: 16px;
    text-align: center;
}

/*
.area-circle:hover {
    background: #f7f7f7;
}
*/
.area h3 {
    margin: 0 0 10px;

    font-size: 22px;

    font-weight: normal;
}

.area p {
    margin: 0;

    max-width: 300px;

    color: #666;

    font-size: 16px;

    line-height: 1.7;
}


/* =========================
   TEACHING PAGE
   ========================= */

.teaching-section {
    max-width: 950px;
    margin-top: 30px;
}


/* -------------------------
   Institution
   ------------------------- */

.teaching-section h2 {
    font-size: 34px;
    font-weight: 500;

    margin-top: 40px;
    margin-bottom: 20px;

    letter-spacing: -0.4px;
}

.teaching-section h2:first-child {
    margin-top: 0;
}


/* -------------------------
   Department / School
   ------------------------- */

.institution-section {
    margin-left: 25px;
    margin-bottom: 25px;
}

.institution-section h3 {
    font-size: 24px;
    font-weight: 500;

    margin-top: 0;
    margin-bottom: 14px;

    letter-spacing: -0.2px;
}


/* -------------------------
   Positions
   ------------------------- */

.position-section {
    margin-left: 25px;
    margin-bottom: 18px;
}

.position-section h4 {
    font-size: 18px;
    font-weight: 600;

    margin-top: 0;
    margin-bottom: 5px;

    line-height: 1.3;
}


/* -------------------------
   Courses
   ------------------------- */

.course {
    font-size: 17px;
    line-height: 1.5;
}

.course-item {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.course strong,
.course-item strong {
    font-weight: 400;
}


/* -------------------------
   Semester Dropdown
   ------------------------- */

.semester-box {
    margin-top: 2px;
}

.semester-box summary {
    display: inline-block;

    cursor: pointer;

    font-size: 14px;
    color: #777;

    list-style: none;

    transition: color 0.2s ease;
}

.semester-box summary:hover {
    color: #333;
}

.semester-box summary::-webkit-details-marker {
    display: none;
}

.semester-box summary::before {
    content: "▶";

    font-size: 9px;
    margin-right: 7px;
}

.semester-box[open] summary::before {
    content: "▼";
}

.semester-box p {
    margin-top: 5px;
    margin-bottom: 0;

    font-size: 14px;
    line-height: 1.5;

    color: #666;
}


/* -------------------------
   Greenberg Seminars Link
   ------------------------- */

.program-link {
    display: inline-block;

    margin-top: 0;

    font-size: 16px;
    color: #555;

    border-bottom: 1px solid #aaa;
    padding-bottom: 2px;

    transition: all 0.2s ease;
}

.program-link:hover {
    color: #111;
    border-bottom-color: #333;
}

/* -------------------------
   Institution Links
   ------------------------- */

.institution-link {
    color: inherit;
    text-decoration: none;

    border-bottom: 1px solid #aaa;
    padding-bottom: 2px;

    transition: all 0.2s ease;
}

.institution-link:hover {
    color: #111;
    border-bottom-color: #333;
}

/* -------------------------
   AEA Summer Program
   ------------------------- */

.aea-program {
    margin-top: 8px;
}

.aea-program p {
    max-width: 700px;

    font-size: 15px;
    line-height: 1.6;

    color: #555;
}


/* AEA photo */

.teaching-photo {
    display: block;

    width: 75%;
    max-width: 700px;

    height: auto;

    margin-top: 15px;

    border-radius: 4px;
}


/* -------------------------
   General Teaching Links
   ------------------------- */

.teaching-section a {
    color: inherit;
}

.teaching-section a:hover {
    color: #111;
}
/* =========================
   DATASETS PAGE
   ========================= */

.datasets-section {
    max-width: 1000px;
    margin-top: 50px;
}

.dataset-row {
    display: grid;

    grid-template-columns: 380px 1fr;

    gap: 40px;

    margin-bottom: 75px;

    align-items: start;
}

.dataset-image {
    width: 100%;
}

.dataset-image img {
    display: block;

    width: 100%;

    height: auto;

    object-fit: contain;
}

.dataset-content h2 {
    font-size: 26px;
    line-height: 1.35;
    font-weight: 500;

    margin: 0 0 10px 0;
}

.dataset-authors {
    font-size: 16px;

    margin: 0 0 5px 0;
}

.dataset-institution {
    font-size: 15px;

    color: #777;

    margin: 0 0 18px 0;
}

.dataset-content p {
    font-size: 16px;
    line-height: 1.7;

    max-width: 650px;
}

.dataset-link {
    display: inline-block;

    margin-top: 8px;

    font-size: 15px;

    color: #444;

    text-decoration: none;

    border-bottom: 1px solid #aaa;

    padding-bottom: 2px;
}

.dataset-link:hover {
    border-bottom-color: #333;
}

.dataset-note {
    font-size: 14px !important;
    color: #777;
    margin-top: 12px;
}

/* =====================================
   COMMUNITY PHOTO
   ===================================== */

.community {
    padding: 20px 0 30px;

    text-align: center;
}

.community img {
    width: 65%;

    max-width: 720px;

    height: auto;

    display: inline-block;

    object-fit: cover;
}

/* =====================================
   FOOTER
   ===================================== */

footer {
    border-top: 1px solid #e5e5e5;
}

.footer-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 35px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    font-size: 13px;
    color: #777;
}

.footer-container p {
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #000;
    text-decoration: none;
}

.footer-links img,
.footer-links svg {
    width: 24px;
    height: 24px;
    display: block;
    object-fit: contain;
}

.footer-links svg {
    fill: currentColor;
}

.footer-links a:hover {
    color: #777;
}

.footer-links img {
    transition: opacity 0.2s ease;
}

.footer-links a:hover img {
    opacity: 0.65;
}

/* =====================================
   MOBILE
   ===================================== */

@media (max-width: 800px) {

    .nav-container {
        flex-direction: column;

        gap: 18px;
    }

    .nav-links {
        flex-wrap: wrap;

        justify-content: center;

        gap: 16px;
    }

    main {
        padding: 45px 22px 60px;
    }

    .hero {
        grid-template-columns: 1fr;

        gap: 35px;

        text-align: center;

        padding-top: 15px;

        padding-bottom: 70px;
    }

    .hero-image img {
        width: 190px;

        height: 190px;
    }

    .hero-text p {
        margin-left: auto;

        margin-right: auto;
    }

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

    .research-areas {
    grid-template-columns: 1fr 1fr;

    gap: 35px 20px;
    }

    .area p {
        max-width: none;
    }

    .community img {
        width: 100%;
    }

    .footer-container {
        flex-direction: column;

        gap: 15px;
    }
    
      /* Teaching and datasets on mobile */
        
      .teaching-section {
          margin-top: 35px;
      }
      
      .teaching-section h2 {
          font-size: 29px;
          margin-top: 55px;
          margin-bottom: 30px;
      }
      
      .institution-section {
          margin-left: 10px;
          margin-bottom: 45px;
      }
      
      .institution-section h3 {
          font-size: 21px;
          margin-bottom: 24px;
      }
      
      .position-section {
          margin-left: 10px;
          margin-bottom: 30px;
      }
      
      .position-section h4 {
          font-size: 17px;
      }
      
      .course,
      .course-item {
          font-size: 16px;
      }
      
      .teaching-photo {
          width: 100%;
          max-width: 600px;
      }
  
    .dataset-row {
        grid-template-columns: 1fr;
    
        gap: 25px;
    
        margin-bottom: 60px;
    }
    
    .dataset-image {
        max-width: 500px;
    }

}

/* =========================
   MY APPROACH TIMELINE
   ========================= */

/* -------------------------
   My Approach Introduction
   ------------------------- */

.about-header {
    max-width: 1100px;
}

.about-header p {
    max-width: 1000px;

    margin: 0;

    font-size: 18px;

    line-height: 1.7;
}


/* -------------------------
   Timeline Container
   ------------------------- */

.timeline {
    position: relative;

    max-width: 1000px;

    margin: 75px auto 0 auto;

    padding-left: 90px;
}


/* Vertical line */

.timeline::before {
    content: "";

    position: absolute;

    left: 15px;

    top: 8px;

    bottom: 0;

    width: 1px;

    background: #d8d8d8;
}


/* -------------------------
   Timeline Item
   ------------------------- */

.timeline-item {
    position: relative;

    margin-bottom: 60px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:last-child::before {
    content: "";

    position: absolute;

    left: -76px;

    top: 14px;

    bottom: 0;

    width: 3px;

    background: white;

    z-index: 1;
}


/* -------------------------
   Timeline Marker
   ------------------------- */

.timeline-marker {
    position: absolute;

    left: -90px;

    top: 7px;

    width: 31px;
    height: 20px;

    z-index: 2;
}


/* Circle */

.timeline-marker::after {
    content: "";

    position: absolute;

    left: 9px;
    top: 0;

    width: 13px;
    height: 13px;

    border-radius: 50%;

    background: #777;
}


/* -------------------------
   Timeline Content
   ------------------------- */

.timeline-content {
    position: relative;

    top: -6px;

    max-width: 900px;
}

.timeline-content h2 {
    font-size: 25px;

    font-weight: 500;

    margin: 0 0 12px 0;

    letter-spacing: -0.3px;
}

.timeline-content p {
    font-size: 17px;

    line-height: 1.7;

    margin: 0;

    max-width: 900px;
}


/* -------------------------
   Links
   ------------------------- */

.timeline-content a {
    color: inherit;

    text-decoration: none;

    border-bottom: 1px solid #aaa;

    transition: border-color 0.2s ease;
}

.timeline-content a:hover {
    border-bottom-color: #333;
}


/* -------------------------
   Timeline Designation
   ------------------------- */

.timeline-label {
    margin-bottom: 5px;

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 2px;

    color: #888;

    text-transform: uppercase;
}


/* -------------------------
   Timeline Photo
   ------------------------- */

.timeline-photo {
    max-width: 900px;

    margin: 20px auto 0 auto;

    display: flex;
    justify-content: center;
    gap: 15px;
}

.timeline-photo img {
    display: block;

    width: 45%;
    max-width: 400px;

    height: auto;

    border: 1px solid #e5e5e5;

    border-radius: 4px;
}

/* -------------------------
   Paper Links
   ------------------------- */

.paper-link:hover {
    text-decoration: underline;
}

/* -------------------------
   For CV PDF
   ------------------------- */

.cv-container {
    width: 100%;
    min-height: 100vh;
    padding: 30px 5%;
    box-sizing: border-box;
}

.cv-container iframe {
    display: block;
    width: 100%;
    height: calc(100vh - 60px);
    border: none;
}
