:root {
    --ink: #1f2937;
    --muted: #667085;
    --line: #dde3ea;
    --paper: #fbfcfe;
    --panel: #ffffff;
    --accent: #0f766e;
    --accent-strong: #0b5f59;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

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

a:hover,
a:focus {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    max-width: 1160px;
    margin: 0 auto;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    min-height: 100vh;
    padding: 3.25rem 1.5rem 2rem;
    border-right: 1px solid var(--line);
    background: #f7fafb;
}

.sidebar-profile {
    display: block;
    color: var(--ink);
    margin-bottom: 1.35rem;
}

.profile-name {
    display: block;
    margin: 0.75rem 0 0.35rem;
    color: var(--ink);
    font-size: 1.42rem;
    font-weight: 900;
    line-height: 1.12;
}

.profile-role {
    display: block;
    color: var(--accent-strong);
    max-width: 210px;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.42;
}

.nav-links {
    display: grid;
    gap: 0.45rem;
    margin: 0 0 1.4rem;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    width: fit-content;
    color: var(--ink);
    font-weight: 750;
}

.nav-links a[href$="research-deadlines.html"] {
    padding: 0.36rem 0.58rem;
    border-left: 4px solid #16a34a;
    border-radius: 6px;
    background: #ecfdf3;
    color: #166534;
}

.nav-icon {
    width: 0.9rem;
    height: 0.9rem;
    max-width: 0.9rem;
    max-height: 0.9rem;
    object-fit: contain;
    flex: 0 0 auto;
}

.nav-links a[aria-current="page"] {
    color: var(--accent-strong);
}

.profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.profile-links a,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-height: 38px;
    padding: 0.45rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    color: var(--accent-strong);
    font-size: 0.92rem;
    font-weight: 800;
}

.link-icon {
    width: 1rem;
    height: 1rem;
    max-width: 1rem;
    max-height: 1rem;
    object-fit: contain;
    flex: 0 0 auto;
}

main {
    padding: 3rem 2rem 4rem;
}

.hero {
    max-width: 840px;
    padding-bottom: 1rem;
}

.profile-photo {
    display: block;
    width: min(132px, 56vw);
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center 28%;
    border-radius: 50%;
    margin: 0;
    border: 1px solid var(--line);
    box-shadow: 0 10px 22px rgba(31, 41, 55, 0.12);
}

.eyebrow {
    margin: 0 0 0.7rem;
    color: var(--accent-strong);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.page-title {
    font-size: clamp(1.8rem, 3.2vw, 2.65rem);
}

.hero-copy {
    margin: 1rem 0 0;
    color: #344054;
    font-size: 1.08rem;
}

section {
    padding-top: 2.9rem;
}

.section-heading {
    margin-bottom: 1.1rem;
    border-bottom: 1px solid var(--line);
}

h2 {
    margin: 0;
    padding-bottom: 0.45rem;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.12;
    letter-spacing: 0;
}

h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    line-height: 1.3;
}

p {
    margin: 0 0 1rem;
}

p:last-child {
    margin-bottom: 0;
}

.about-copy {
    max-width: 900px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

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

.card {
    padding: 1.05rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.research-focus .card h3 {
    color: var(--accent-strong);
}

.card p,
.activity p {
    color: var(--muted);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    padding: 0.4rem 0.58rem;
    border: 1px solid rgba(15, 118, 110, 0.22);
    border-radius: 999px;
    background: #ffffff;
    color: #243244;
    font-size: 0.9rem;
    font-weight: 700;
}

.timeline,
.item-list {
    display: grid;
    gap: 0.85rem;
}

.role,
.activity {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.role:last-child,
.activity:last-child {
    border-bottom: 0;
}

.date {
    color: var(--accent-strong);
    font-weight: 900;
}

.meta {
    margin: 0.1rem 0 0.65rem;
    color: var(--muted);
    font-weight: 700;
}

ul {
    margin: 0.65rem 0 0;
    padding-left: 1.1rem;
}

li {
    margin: 0.32rem 0;
}

.pub-list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pub-list li {
    margin: 0;
    padding: 1rem 1.1rem;
    border-left: 4px solid var(--accent);
    border-radius: 0 8px 8px 0;
    background: #ffffff;
}

.pub-title {
    display: block;
    font-weight: 850;
}

.pub-venue {
    color: var(--muted);
}

.references {
    display: grid;
    gap: 1rem;
}

.cv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1rem;
}

footer {
    padding-top: 3rem;
    color: var(--muted);
    font-size: 0.95rem;
}

@media (max-width: 880px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding: 1.25rem;
    }

    main {
        padding: 2rem 1.25rem 3rem;
    }

    .grid,
    .two-grid {
        grid-template-columns: 1fr;
    }

    .role,
    .activity {
        grid-template-columns: 1fr;
    }
}

.site-identity { display: block; color: inherit; font-size: 1.05rem; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
/* Research identity follows the personal profile and precedes navigation. */
.research-identity {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    text-align: center;
}
.site-tagline {
    margin: 0 0 .75rem;
    color: var(--accent-strong);
    font-size: .85rem;
    font-weight: 800;
    line-height: 1.5;
    text-wrap: balance;
}
.research-logo {
    display: block;
    width: 100%;
    max-width: 185px;
    height: auto;
    margin: 0 auto;
}
@media (max-width: 760px) {
    .research-identity { max-width: 270px; text-align: left; }
    .research-logo { max-width: 160px; margin-left: 0; }
}

.research-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.research-hero > div { flex: 1; min-width: 0; }
.research-page-logo { width: 220px; max-width: 35%; height: auto; flex-shrink: 0; }
@media (max-width: 600px) {
    .research-hero { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .research-page-logo { width: 180px; max-width: 100%; }
}

.contact-methods { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; width: 100%; }
.contact-methods .button { max-width: 100%; text-align: left; overflow-wrap: anywhere; justify-content: flex-start; }

.mentorship-note { margin-top: 1.5rem; padding: .2rem 0 .2rem 1rem; border-left: 3px solid var(--line); color: var(--muted); }
.mentorship-note h3 { margin: 0 0 .35rem; font-size: .95rem; color: var(--ink); }
.mentorship-note p { margin: 0; font-size: .95rem; }

.profile-group-heading { flex-basis: 100%; margin: .65rem 0 .2rem; color: var(--ink); font-size: .9rem; font-weight: 700; line-height: 1.4; }
.contact-methods .profile-group-heading { margin-top: 0; }

.cv-quote { margin: 1.25rem 0; padding: .25rem 0 .25rem 1rem; border-left: 3px solid var(--accent); color: var(--accent-strong); max-width: 42rem; }
.cv-quote p { margin: 0; line-height: 1.65; }
