/* Page styles moved out of the inline <style> block in v8.0 (unchanged rules).
   Loaded before css/site.css, exactly where the inline block used to be. */

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--lu-dark-grey);
    background-color: var(--lu-white);
    line-height: 1.6;
    font-size: 16px;
}

a {
    text-decoration: none;
    color: var(--lu-bronze);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--lu-link-hover);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   HEADER – Main Navigation
   ============================================ */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background-color: var(--lu-white);
    border-bottom: 2px solid var(--lu-grey);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 64px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    color: var(--lu-dark-grey);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: var(--lu-dark-blue);
    border-bottom-color: var(--lu-dark-blue);
    text-decoration: none;
}

.main-nav a.active {
    color: var(--lu-dark-blue);
    border-bottom-color: var(--lu-dark-blue);
}

.search-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--lu-dark-grey);
    cursor: pointer;
    transition: color 0.2s;
}

.search-btn:hover {
    color: var(--lu-dark-blue);
}

/* ============================================
   MAIN CONTENT AREA (Flexible Middle)
   ============================================ */
.content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 40px;
    min-height: 60vh;
}

/* Example section styles for middle content */
.content-area h1 {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    color: var(--lu-dark-blue);
    margin-bottom: 16px;
    font-weight: 400;
}

.content-area h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--lu-dark-blue);
    margin-bottom: 12px;
    margin-top: 32px;
    font-weight: 400;
}

.content-area p {
    margin-bottom: 16px;
    line-height: 1.8;
    text-align: left;
}

.team-profile {
    margin-bottom: 40px;
}

.team-profile-header {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 36px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.team-profile-main {
    flex: 0 1 auto;
    max-width: 420px;
    margin: 0;
    padding: 0;
}

.team-profile-contact {
    flex: 1 1 400px;
    min-width: 320px;
    max-width: 520px;
    margin-left: auto;
    padding: 0;
}

.content-area h2.team-profile-name {
    margin: 0 0 8px;
    color: var(--lu-black);
    font-size: 1.75rem;
    line-height: 1.2;
}

.team-profile-photo {
    width: 200px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 2px;
    display: block;
    margin: 0;
}

.team-profile-name {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--lu-black);
    margin: 0 0 8px;
}

.team-profile-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--lu-dark-grey);
    margin: 0 0 12px;
    line-height: 1.4;
}

.team-profile-role {
    display: inline-block;
    background: var(--lu-dark-blue);
    color: var(--lu-white);
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 16px;
    line-height: 1.4;
}

.team-profile-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.team-profile-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--lu-dark-blue);
    color: var(--lu-white);
    font-size: 16px;
    text-decoration: none;
}

.team-profile-social a:hover {
    background: var(--lu-bronze);
    color: var(--lu-white);
    text-decoration: none;
}

.team-profile-social a.team-profile-social-logo {
    background: var(--lu-white);
    border: 1px solid rgba(33, 37, 41, 0.12);
    padding: 0;
}

.team-profile-social a.team-profile-social-logo img {
    width: 22px;
    height: 22px;
    display: block;
}

.team-profile-social a.team-profile-social-logo--scholar {
    background: var(--lu-white);
}

.team-profile-social a.team-profile-social-logo--scholar:hover {
    background: var(--lu-bronze);
}

.team-profile-social a.team-profile-social-logo--orcid {
    background: transparent;
    border: none;
}

.team-profile-social a.team-profile-social-logo--lu {
    background: var(--lu-white);
}

.team-profile-social a.team-profile-social-logo:hover {
    background: var(--lu-bronze);
    border-color: var(--lu-bronze);
}

.team-profile-social a.team-profile-social-logo--orcid:hover {
    background: transparent;
    border: none;
    opacity: 0.9;
}

.team-profile-contact h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--lu-black);
}

.team-profile-affiliations {
    margin: 0 0 14px;
}

.team-profile-affiliations p {
    margin: 0 0 8px;
    padding: 0;
    font-size: var(--fs-small);
    line-height: 1.45;
    text-align: left;
}

.team-profile-affiliations p:last-child {
    margin-bottom: 0;
}

.team-profile-affiliations p.team-profile-affiliation-gap {
    margin-top: 10px;
}

.team-profile-contact-details {
    margin: 14px 0 0;
    padding-top: 0;
}

.team-profile-contact-details .team-profile-contact-detail {
    margin: 0 0 6px;
    font-size: var(--fs-small);
    line-height: 1.45;
    text-align: left;
}

.team-profile-contact-details .team-profile-contact-detail:last-child {
    margin-bottom: 0;
}

.team-profile-contact-details a {
    color: var(--lu-bronze);
}

.team-profile-contact p {
    margin-bottom: 8px;
    font-size: var(--fs-small);
    line-height: 1.5;
    text-align: left;
}

.team-profile-contact a {
    color: var(--lu-bronze);
}

.team-profile-bio p {
    margin-bottom: 16px;
    line-height: 1.8;
    text-align: left;
}

.team-profile-bio p:last-child {
    margin-bottom: 0;
}

.team-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 32px;
    background: var(--lu-white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.team-table th {
    background-color: var(--lu-dark-blue);
    color: var(--lu-white);
    padding: 16px;
    text-align: left;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 15px;
}

.team-table th:first-child {
    width: 208px;
    padding-right: 12px;
}

.team-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--lu-border);
    color: var(--lu-dark-grey);
    font-size: 15px;
}

.team-table td.team-table-name {
    width: 208px;
    padding-right: 12px;
}

.team-table td.team-table-description {
    padding-left: 12px;
}

.team-table tr:last-child td {
    border-bottom: none;
}

.team-table tr:hover {
    background-color: var(--lu-bg-light);
}

.team-section-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    color: var(--lu-dark-blue);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 400;
}
/* Footer */
.site-footer {
    border-top: 3px solid var(--lu-bronze);
    background-color: var(--lu-white);
    padding: 32px 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background-color: var(--lu-bronze);
    color: var(--lu-white);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s;
    z-index: 999;
}

.back-to-top:hover {
    background-color: var(--lu-link-hover);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {

    .main-header {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .content-area {
        padding: 32px 16px;
    }

    .team-profile-header {
        flex-direction: column;
        gap: 24px;
    }

    .team-profile-main,
    .team-profile-contact {
        max-width: none;
    }

    .team-profile-photo {
        width: 100%;
        max-width: 260px;
        height: auto;
    }

    .team-table,
    .team-table thead,
    .team-table tbody,
    .team-table tr,
    .team-table th,
    .team-table td {
        display: block;
        width: 100%;
    }

    .team-table {
        table-layout: auto;
        box-shadow: none;
        background: transparent;
        margin-bottom: 8px;
    }

    .team-table thead {
        display: none;
    }

    .team-table tbody tr {
        margin-bottom: 20px;
        padding: 16px;
        background: var(--lu-white);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        border: 1px solid var(--lu-border);
        border-radius: 4px;
    }

    .team-table tbody tr:hover {
        background: var(--lu-white);
    }

    .team-table td {
        padding: 0;
        border-bottom: none;
    }

    .team-table .team-table-name {
        width: 100%;
        margin: 0 0 14px;
    }

    .team-table .team-table-member-photo {
        width: 160px;
        height: 160px;
        min-width: 160px;
        max-width: 160px;
        object-fit: cover;
        object-position: center top;
        margin: 0;
    }

    .team-table .team-table-description {
        width: 100%;
    }

    .team-table .team-table-member-name {
        font-size: 1.05rem;
        line-height: 1.35;
        margin: 0 0 8px;
    }

    .team-table .team-table-member-affiliation,
    .team-table .team-table-member-email,
    .team-table .team-table-description p {
        font-size: 15px;
        line-height: 1.6;
    }

    .site-footer {
        padding: 24px 16px;
    }

    .footer-inner {
        flex-direction: column;
    }

}
