* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    color: #2c2c2c;
    line-height: 1.7;
    background: #fafafa;
}

/* Navigation */
nav {
    background: #1f5132;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-name {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
}

.nav-links a {
    color: #cfe6d3;
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

/* Main content */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero section */
.hero {
    margin-bottom: 2.5rem;
}

.hero-content {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 2rem;
    color: #1f5132;
    margin-bottom: 0.3rem;
}

.title {
    font-size: 1.15rem;
    color: #4a4a4a;
    margin-bottom: 0.2rem;
}

.affiliation {
    font-size: 1rem;
    color: #666;
}

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

.photo-placeholder {
    width: 180px;
    height: 220px;
    background: #d7e6da;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7f9a86;
    font-size: 0.9rem;
}

.hero-photo img {
    width: 180px;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
}

/* Sections */
section {
    margin-bottom: 2rem;
}

h2 {
    font-size: 1.4rem;
    color: #1f5132;
    margin-bottom: 0.8rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid #d7e6da;
}

p {
    margin-bottom: 0.8rem;
}

ul {
    list-style: disc;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.3rem;
}

/* Footer */
footer {
    max-width: 900px;
    margin: 2rem auto;
    padding: 1.5rem 2rem;
    border-top: 1px solid #d7e6da;
    text-align: center;
    color: #888;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .nav-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-links a {
        margin-left: 0;
        margin-right: 1rem;
    }

    .hero-text h1 {
        font-size: 1.6rem;
    }
}

/* Drafting placeholders — remove before launch (grep PLACEHOLDER) */
.placeholder {
    background: #fff4c2;
    color: #6b5400;
    padding: 0 0.25rem;
    border-radius: 3px;
    font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9em;
}

.placeholder-block {
    background: #fff9e0;
    border: 1px dashed #d4b44a;
    color: #6b5400;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9rem;
}


/* Team Members page (moved from team.html) */
.team-intro {
            margin-bottom: 1.5rem;
        }

        .team-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 1.25rem;
            margin-bottom: 1.5rem;
        }

        .team-card {
            background: #fff;
            border: 1px solid #d7e6da;
            border-radius: 6px;
            padding: 1rem;
            font-family: 'Georgia', 'Times New Roman', serif;
        }

        .team-card .photo-placeholder,
        .team-card img {
            width: 100%;
            max-width: 220px;
            height: auto;
            aspect-ratio: 4 / 5;
            object-fit: cover;
            border-radius: 6px;
            margin-bottom: 0.75rem;
        }

        .team-card h3,
        .team-card h4 {
            color: #1f5132;
            font-size: 1.1rem;
            line-height: 1.3;
            margin-bottom: 0.25rem;
        }

        .team-card h3 a,
        .team-card h4 a {
            color: #1f5132;
        }

        .team-card p {
            font-size: 0.95rem;
            margin-bottom: 0.5rem;
        }

        .team-role {
            color: #555;
        }

        .team-project {
            font-style: italic;
        }

        .team-pi {
            max-width: 320px;
        }

        .team-subsection {
            margin-top: 1.5rem;
        }

        .team-subsection > h3 {
            color: #1f5132;
            font-size: 1.2rem;
            margin-bottom: 0.6rem;
        }

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

            .team-pi {
                max-width: none;
            }
        }

/* Page additions suggested by drafting agents */
h3 {
    color: #1f5132;
    font-size: 1.1rem;
    margin: 1.2rem 0 0.5rem;
}

.publication-list {
    list-style: none;
    padding-left: 0;
}

.publication-list li {
    margin-bottom: 0.9rem;
}

.course {
    margin-bottom: 1.5rem;
}

.course-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

figure img {
    max-width: 100%;
    border-radius: 6px;
}

figcaption {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

/* Seven nav links: let them wrap instead of overflowing */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.3rem;
}

/* Outreach & Media page (moved from outreach.html) */
.outreach-list {
            list-style: none;
            padding-left: 0;
        }
        .outreach-item {
            margin-bottom: 1.4rem;
            padding-left: 1rem;
            border-left: 3px solid #d7e6da;
        }
        .outreach-item h3 {
            font-size: 1.05rem;
            color: #1f5132;
            margin-bottom: 0.15rem;
        }
        .outreach-meta {
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 0.35rem;
        }
        .outreach-item p {
            margin-bottom: 0.3rem;
        }
        .outreach-tag {
            display: inline-block;
            background: #1f5132;
            color: #fff;
            font-size: 0.75rem;
            padding: 0 0.45rem;
            border-radius: 3px;
            margin-right: 0.35rem;
            vertical-align: middle;
            font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
        }
        .outreach-photos {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            gap: 1rem;
            margin-bottom: 2rem;
        }
        .outreach-photos .placeholder-block {
            min-height: 160px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            margin-bottom: 0;
        }
        a {
            color: #1f5132;
        }

/* collaborators.html (moved from page) */
.collab-list { list-style: none; padding: 0; margin: 0; }
        .collab-entry { margin: 0 0 1.25rem; padding-left: 0.9rem; border-left: 3px solid #d3e3d6; }
        .collab-name { font-weight: 600; }
        .collab-role { display: block; font-size: 0.95em; color: #555; }
        .collab-work { display: block; margin-top: 0.2rem; }

/* join.html (moved from page) */
.join-options {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 1.25rem;
            margin: 1rem 0 1.5rem;
        }
        .join-card {
            background: #fff;
            border: 1px solid #d2e2d5;
            border-top: 4px solid #1f5132;
            border-radius: 6px;
            padding: 1rem 1.25rem;
        }
        .join-card h3 {
            margin-top: 0.25rem;
        }
        .join-tag {
            display: inline-block;
            background: #e6f2e8;
            color: #1f5132;
            border-radius: 999px;
            padding: 0.1rem 0.6rem;
            font-size: 0.8rem;
            font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
        }
        .join-steps {
            padding-left: 1.4rem;
        }
        .join-steps li {
            margin-bottom: 0.6rem;
        }
        .join-form-embed {
            width: 100%;
            margin: 1rem 0;
        }
        .join-form-embed iframe {
            display: block;
            width: 100%;
            height: 1200px;
            border: 0;
        }
        @media (max-width: 700px) {
            .join-options {
                grid-template-columns: 1fr;
            }
        }

/* Join page availability notice */
.join-status {
    background: #e6f2e8;
    border-left: 4px solid #1f5132;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

/* index.html (moved from page) */
.home-banner {
            margin: 1.25rem 0 0;
        }
        .home-banner img {
            display: block;
            width: 100%;
            max-width: 100%;
            height: auto;
            border-radius: 6px;
        }
        .home-mission {
            font-size: 1.1rem;
            margin-top: 0.8rem;
        }
        .home-cards {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 1.25rem;
        }
        .home-card {
            background: #fff;
            border: 1px solid #d7e6da;
            border-top: 4px solid #1f5132;
            border-radius: 6px;
            padding: 1rem 1.25rem;
        }
        .home-card h3 {
            margin-top: 0.25rem;
        }
        .home-pi {
            display: flex;
            gap: 1.25rem;
            align-items: center;
            background: #fff;
            border: 1px solid #d7e6da;
            border-radius: 6px;
            padding: 1rem 1.25rem;
        }
        .home-pi img {
            flex-shrink: 0;
            width: 110px;
            max-width: 100%;
            height: auto;
            aspect-ratio: 4 / 5;
            object-fit: cover;
            border-radius: 6px;
        }
        .home-pi h3 {
            margin: 0 0 0.2rem;
        }
        .home-cta {
            background: #e6f2e8;
            border-left: 4px solid #1f5132;
            border-radius: 6px;
            padding: 1rem 1.25rem;
        }
        .home-cta p:last-child,
        .home-card p:last-child,
        .home-pi p:last-child {
            margin-bottom: 0;
        }
        @media (max-width: 700px) {
            .home-cards {
                grid-template-columns: 1fr;
            }
        }
        @media (max-width: 500px) {
            .home-pi {
                flex-direction: column;
                align-items: flex-start;
            }
        }

/* ana.html (moved from page) */
.pi-breadcrumb {
            font-size: 0.95rem;
            margin-bottom: 1.25rem;
        }

/* Long lab name + 9 links: stack brand above links on medium screens */
@media (max-width: 1000px) {
    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    .nav-links {
        justify-content: flex-start;
    }
    .nav-links a {
        margin-left: 0;
        margin-right: 1.1rem;
    }
}

/* Homepage photo carousel (carousel.js) */
.carousel {
    position: relative;
    margin: 1.5rem 0 2rem;
    border-radius: 8px;
    overflow: hidden;
    background: #e6f2e8;
}
.carousel-track {
    position: relative;
    aspect-ratio: 3 / 2;
    max-width: 100%;
}
.carousel-slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.carousel-slide.is-active { opacity: 1; z-index: 1; }
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.carousel-slide figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 0.5rem 1rem 2.2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: #fff;
    font-size: 0.9rem;
}
.carousel-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff9e0;
    border: 1px dashed #d4b44a;
    color: #6b5400;
    font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
    text-align: center;
    padding: 1rem;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 50%;
    background: rgba(31, 81, 50, 0.75);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.carousel-btn:hover, .carousel-btn:focus-visible { background: #1f5132; }
.carousel-prev { left: 0.6rem; }
.carousel-next { right: 0.6rem; }
.carousel-controls {
    position: absolute;
    bottom: 0.6rem;
    left: 0; right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}
.carousel-dots { display: flex; gap: 0.4rem; }
.carousel-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    padding: 0;
    cursor: pointer;
}
.carousel-dot[aria-current="true"] { background: #fff; }
.carousel-pause {
    border: 0;
    border-radius: 3px;
    background: rgba(31, 81, 50, 0.75);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    cursor: pointer;
    font-family: -apple-system, 'Helvetica Neue', Arial, sans-serif;
}
/* Without JavaScript, show only the first slide and hide controls */
.carousel:not(.carousel-ready) .carousel-btn,
.carousel:not(.carousel-ready) .carousel-controls { display: none; }

/* Research page theme photos */
.research-figure {
    margin: 1rem 0 1.5rem;
}
.research-figure img {
    display: block;
    max-width: 100%;
    max-height: 480px;
    width: auto;
    height: auto;
    border-radius: 6px;
}

/* Outreach photos */
.outreach-photo {
    margin: 0;
}
.outreach-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}
.outreach-photo figcaption {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.35rem;
}
