/* Leadership team biography modal */
.ers-team-bio-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1rem 2rem;
    overflow-y: auto;
    box-sizing: border-box;
}

.ers-team-bio-modal[hidden] {
    display: none !important;
}

body.ers-team-bio-modal-open {
    overflow: hidden;
}

.ers-team-bio-modal__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 32, 65, 0.45);
    backdrop-filter: blur(6px);
}

.ers-team-bio-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 25px 50px -12px rgba(18, 27, 90, 0.28);
    overflow: hidden;
}

.ers-team-bio-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #002041;
    cursor: pointer;
    border-radius: 2px;
}

.ers-team-bio-modal__close:hover {
    opacity: 0.75;
}

.ers-team-bio-modal__hero {
    padding: 2.5rem 2rem 1.5rem;
    background: linear-gradient(135deg, #121b5a 0%, #2f469c 55%, #1dafad 100%);
    color: #fff;
}

@media (min-width: 640px) {
    .ers-team-bio-modal__hero {
        padding: 3rem 2.5rem 2rem;
    }
}

.ers-team-bio-modal__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.9;
}

.ers-team-bio-modal__name {
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

.ers-team-bio-modal__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem;
}

@media (min-width: 720px) {
    .ers-team-bio-modal__body {
        grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
        gap: 2rem;
        padding: 2.5rem;
    }
}

.ers-team-bio-modal__photo-wrap {
    margin: 0;
}

.ers-team-bio-modal__photo-wrap[hidden] {
    display: none !important;
}

.ers-team-bio-modal__photo {
    display: block;
    width: 100%;
    max-width: 14rem;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
}

.ers-team-bio-modal__title {
    margin: 0 0 1.25rem;
    font-size: 1.125rem;
    line-height: 1.4;
    color: #4b5563;
    font-weight: 500;
}

.ers-team-bio-modal__bio p {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.65;
    color: #002041;
}

.ers-team-bio-modal__bio p:last-child {
    margin-bottom: 0;
}
