:root {
    --text: #26313a;
    --muted: #66717c;
    --line: #e2e7ec;
    --accent: #2f67b2;
    --background: #ffffff;
    --max-width: 1040px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family: "Merriweather", Georgia, serif;
    font-size: 16px;
    line-height: 1.72;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.04);
}

.nav-container {
    width: calc(100% - 48px);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 17px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.site-name {
    color: #202a33;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
}

.nav-links a {
    color: #404a54;
    font-size: 14px;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
    color: var(--accent);
}

.page-shell {
    width: calc(100% - 48px);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 0 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 52px;
    align-items: start;
}

.content {
    min-width: 0;
}

.profile-card {
    position: sticky;
    top: 105px;
    align-self: start;
    text-align: center;
}

.profile-photo {
    display: block;
    width: 240px;
    height: 250px;
    margin: 0 auto 19px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 35%;
    border: 1px solid #dce2e8;
}

.profile-contact {
    display: grid;
    gap: 9px;
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
}

.profile-contact a,
.profile-contact span {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.profile-contact i {
    width: 16px;
    margin-top: 3px;
    color: var(--accent);
    text-align: center;
}

h1,
h2,
h3 {
    color: #202a33;
    line-height: 1.4;
}

h1 {
    margin: 0 0 10px;
    font-size: 36px;
    font-weight: 500;
}

.page-subtitle {
    margin: 0 0 25px;
    color: #3d4852;
    font-size: 17px;
}

.lead {
    margin-top: 0;
    font-size: 16px;
}

.job-market-note {
    margin: 23px 0 0;
    padding: 6px 0 6px 15px;
    border-left: 3px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
}

.section {
    margin-top: 40px;
}

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

.section-title {
    margin: 0 0 20px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
    font-size: 25px;
    font-weight: 500;
}

.subsection-title {
    margin: 40px 0 18px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--line);
    font-size: 21px;
    font-weight: 500;
}

.paper {
    margin-bottom: 31px;
}

.paper:last-child {
    margin-bottom: 0;
}

.paper h3 {
    margin: 0 0 7px;
    font-size: 19px;
    font-weight: 600;
}

.paper p {
    margin: 9px 0;
}

.paper-meta,
.course-meta {
    color: var(--muted);
    font-style: italic;
}

.label {
    display: inline-block;
    margin: 1px 0 7px;
    color: var(--accent);
    font-weight: 600;
}

.fields-line {
    margin: 9px 0;
}

.fields-line strong,
.teaching-rating strong {
    color: var(--accent);
}

.course {
    margin-bottom: 31px;
}

.course h3 {
    margin: 0 0 7px;
    font-size: 19px;
    font-weight: 600;
}

.course p {
    margin: 8px 0;
}

.teaching-rating {
    margin-top: 10px;
}

.presentation-list {
    margin: 0;
    padding-left: 20px;
}

.presentation-list li {
    margin-bottom: 10px;
}

.contact-block {
    line-height: 1.8;
}

.contact-block p {
    margin: 0 0 18px;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer {
    width: calc(100% - 48px);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 0 34px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 800px) {
    .nav-container,
    .page-shell,
    .footer {
        width: calc(100% - 32px);
    }

    .nav-container {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .nav-links {
        gap: 15px;
    }

    .page-shell {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-top: 32px;
    }

    .profile-card {
        position: static;
        order: -1;
        width: 100%;
        max-width: 260px;
        text-align: left;
    }

    .profile-photo {
        width: 190px;
        height: 198px;
        margin: 0 0 16px;
        border-radius: 50%;
        object-position: center 35%;
    }

    h1 {
        font-size: 31px;
    }
}

/* Compact bullet-style research fields */
.field-subtitle {
    margin: 25px 0 8px;
    font-size: 17px;
    font-weight: 600;
}

.field-list {
    margin: 8px 0 0;
    padding-left: 23px;
}

.field-list li {
    margin-bottom: 5px;
}

/* Collapsible abstracts, project summaries, and student feedback */
.content-toggle {
    margin-top: 10px;
}

.content-toggle summary {
    display: inline-block;
    list-style: none;
    cursor: pointer;
    padding: 6px 12px;
    color: var(--accent);
    background: #ffffff;
    border: 1px solid #cfd9e6;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.content-toggle summary::-webkit-details-marker {
    display: none;
}

.content-toggle summary:hover,
.content-toggle summary:focus,
.content-toggle[open] summary {
    background: #f5f8fc;
    text-decoration: none;
}

.toggle-content {
    margin-top: 14px;
    padding-left: 14px;
    border-left: 2px solid var(--line);
}

.toggle-content p:first-child {
    margin-top: 0;
}

.toggle-content p:last-child {
    margin-bottom: 0;
}

.feedback-content blockquote {
    margin: 14px 0;
    padding-left: 14px;
    color: #46525d;
    border-left: 3px solid #d6e0ec;
    font-style: italic;
}

.feedback-content blockquote:first-child {
    margin-top: 0;
}

.feedback-content blockquote:last-child {
    margin-bottom: 0;
}

/* Compact two-column fields and separate Methods section on Home */
.home-fields-section,
.home-methods-section {
    margin-top: 30px;
}

.fields-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}

.field-column .field-subtitle {
    margin: 0 0 8px;
}

.methods-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
    align-items: start;
}

.method-list {
    margin: 8px 0 0;
    padding-left: 23px;
}

.method-list li {
    margin-bottom: 5px;
}

@media (min-width: 701px) {
    .method-list li {
        white-space: nowrap;
    }
}

@media (max-width: 700px) {
    .fields-columns,
    .methods-columns {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .fields-columns {
        gap: 22px;
    }
}

/* Teaching role hierarchy and research-experience entry */
.teaching-role-title {
    margin: 31px 0 18px;
    font-size: 20px;
    font-weight: 600;
}

.teaching-course-entry {
    margin-bottom: 27px;
}

.teaching-institution,
.experience-meta {
    margin: 2px 0 7px;
    color: #3d4852;
    font-style: normal;
}

.experience-item {
    margin-bottom: 31px;
}

.experience-item h3 {
    margin: 0 0 7px;
    font-size: 19px;
    font-weight: 600;
}

.experience-item p {
    margin: 8px 0;
}

