.team-directory {
    color: #073955;
    background: #eef7fa;
}

.team-directory .team-directory__hero {
    padding: clamp(3.5rem, 7vw, 7rem) 0;
    color: #fff;
    background: #073955;
    border-bottom: .4rem solid #fbb52b;
}

.team-directory__eyebrow {
    margin: 0 0 1.25rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.team-directory__hero .team-directory__eyebrow { color: #fbb52b; }

.team-directory__hero h1 {
    max-width: 10ch;
    margin: 0;
    color: inherit;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.team-directory__intro {
    max-width: 32rem;
    margin: 0;
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    line-height: 1.65;
}

.team-directory__listing { padding: clamp(3rem, 6vw, 6rem) 0; }
.team-directory__section-heading { max-width: 42rem; margin-bottom: 2.5rem; }
.team-directory__section-heading .team-directory__eyebrow { margin-bottom: .75rem; }
.team-directory__section-heading h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -.025em;
}

.team-directory__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(7, 57, 85, .12);
    border-radius: .75rem;
}

.team-directory__portrait {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #dcebf1;
}

.team-directory .team-directory__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.team-directory__placeholder {
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 75%;
    color: #a5c3d1;
}

.team-directory__details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: clamp(1.25rem, 2vw, 2rem);
}

.team-directory__role {
    margin: 0 0 .65rem;
    color: #285e7a;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.team-directory__details h3 {
    margin: 0 0 1rem;
    color: #073955;
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.team-directory__bio { margin-bottom: 1.5rem; color: #405d6c; line-height: 1.7; }
.team-directory__bio p:last-child { margin-bottom: 0; }
.team-directory__profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid #dcebf1;
    color: #073955;
    font-weight: 700;
    text-decoration: none;
}

.team-directory__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #fbb52b;
    color: #073955;
    font-size: 1.4rem;
}

.team-directory__profile:hover { color: #073955; text-decoration: underline; }
.team-directory__profile:hover .team-directory__arrow { background: #073955; color: #fff; }
.team-directory a:focus-visible { outline: 3px solid #2386c4; outline-offset: 4px; }
.team-directory .pagination { display: block; margin-top: 3rem; }
.team-directory .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.team-directory .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: .5rem .85rem;
    border: 1px solid #c5dce6;
    border-radius: .3rem;
    color: #073955;
    text-decoration: none;
}
.team-directory .page-numbers.current,
.team-directory a.page-numbers:hover { background: #073955; border-color: #073955; color: #fff; }
.team-directory__empty { margin: 0; padding: 2rem; background: #fff; border-radius: .75rem; }

/* Individual profiles share the archive's palette and portrait treatment. */
.team-profile__back {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 2.5rem;
    padding: .5rem 0;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}
.team-profile__back:hover { color: #fbb52b; text-decoration: underline; }
.team-profile .team-profile__portrait { max-width: 26rem; border-radius: .75rem; }
.team-profile .team-profile__hero h1 { max-width: 16ch; overflow-wrap: anywhere; }
.team-profile__intro { margin-top: 1.5rem; max-width: 38rem; }
.team-profile__intro p:last-child { margin-bottom: 0; }
.team-profile__biography { padding: clamp(3rem, 6vw, 6rem) 0; background: #fff; }
.team-profile__biography h2 {
    max-width: 20ch;
    margin: 0;
    color: #073955;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.team-profile__body { max-width: 48rem; color: #405d6c; font-size: 1.1rem; line-height: 1.8; overflow-wrap: anywhere; }
.team-profile__body > :last-child { margin-bottom: 0; }
.team-profile__body :is(h2, h3, h4, h5, h6) { color: #073955; margin-top: 2rem; }
.team-profile__body > :first-child { margin-top: 0; }
.team-profile__body img { max-width: 100%; height: auto; }
.team-profile__body :is(iframe, video) { max-width: 100%; }
.team-profile__body blockquote { padding-left: 1.5rem; border-left: .25rem solid #fbb52b; color: #073955; }
.team-profile__body a { color: #075f94; text-decoration: underline; }
.team-profile__footer { padding: 2.5rem 0; }
.team-profile__pages { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.team-profile__hero a:focus-visible { outline-color: #fbb52b; }
