/* Team page styling. Scoped under .team-page, same conventions as editorial.css */

.team-page {
    --blue: #06357a;
    --blue-light: rgba(6, 53, 122, 0.08);
    --blue-mid: rgba(6, 53, 122, 0.16);
    --text: #0f172a;
    --muted: #656c73;
    --border: #e2e8f0;
    --surface: #ffffff;
    --bg: #f8fafc;
    --radius: 0.375rem;
    --radius-sm: 0.25rem;
    --shadow: 0 1px 2px rgba(0,0,0,0.06), 0 2px 8px rgba(6,53,122,0.05);
    --shadow-hover: 0 2px 6px rgba(0,0,0,0.07), 0 6px 16px rgba(6,53,122,0.08);
    display: block;
    background: var(--bg);
    color: var(--text);
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.team-page *,
.team-page *::before,
.team-page *::after {
    box-sizing: border-box;
}

.team-page a {
    text-decoration: none;
}

.team-page .msi {
    display: inline-block;
    font-family: 'Material Symbols Outlined';
    font-size: 22px;
    font-style: normal;
    font-weight: normal;
    font-feature-settings: 'liga';
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    letter-spacing: normal;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.team-page .msi.filled {
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.team-shell {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 clamp(1rem, 3vw, 2.5rem);
}

.team-hero {
    padding: clamp(2.75rem, 6vh, 3.75rem) 0 2.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.team-hero-title {
    max-width: 30rem;
    margin: 0 0 0.85rem;
    color: var(--text);
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
}

.team-hero-lede {
    max-width: 34rem;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
}

.team-section {
    padding: 2.5rem 0 4rem;
}

.team-section-heading {
    margin: 0 0 1.5rem;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 800;
}

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

.team-empty-state {
    padding: 3rem 0;
    color: var(--muted);
    text-align: center;
}

.team-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    transition: box-shadow 0.18s ease;
}

.team-card:hover {
    box-shadow: var(--shadow-hover);
}

.team-card-avatar {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: var(--bg);
}

.team-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-body {
    padding: 1.35rem 1.5rem 1.6rem;
}

.team-card-name {
    margin: 0 0 0.2rem;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.team-card-role {
    margin: 0 0 0.75rem;
    color: var(--blue);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.team-card-credentials {
    margin: 0 0 1.1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.team-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 700;
}

.team-card-cta .msi {
    font-size: 16px;
    transition: transform 0.18s ease;
}

.team-card-cta:hover .msi {
    transform: translateX(3px);
}

.team-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 2rem 0 1.5rem;
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: 600;
}

.team-back-link:hover {
    text-decoration: underline;
}

.team-profile-layout {
    display: grid;
    grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
    padding-bottom: 4rem;
}

.team-profile-photo {
    margin: 0;
}

.team-profile-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    background: var(--bg);
    object-fit: cover;
}

.team-profile-main h1 {
    margin: 0 0 0.35rem;
    color: var(--text);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.team-profile-role {
    margin: 0 0 0.5rem;
    color: var(--blue);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.team-profile-credentials {
    margin: 0 0 0.75rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.team-profile-location {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.team-profile-location .msi {
    font-size: 17px;
}

.team-profile-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    margin: 0 0 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.team-profile-contact a {
    color: var(--blue);
    font-size: 0.9rem;
    font-weight: 600;
}

.team-profile-bio {
    max-width: 42rem;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.75;
}

.team-profile-bio p + p {
    margin-top: 1.1rem;
}

.team-profile-reviewer-note {
    max-width: 42rem;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
}

.team-profile-reviewer-note a {
    color: var(--blue);
    font-weight: 600;
}

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

    .team-profile-photo img {
        max-width: 16rem;
        margin: 0 auto;
    }

    .team-profile-main {
        text-align: center;
    }

    .team-profile-location,
    .team-profile-contact {
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .team-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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