.about-team-section {
    padding: 80px 0 100px;
    background: #f4f0fa;
}

.about-team-heading {
    max-width: 720px;
    margin: 0 auto 35px;
    text-align: center;
}

.about-team-heading h2 {
    color: var(--dark, #3d0075);
    font-size: clamp(var(--font-28), 4vw, var(--font-40));
    line-height: 1.2;
    margin: 16px 0;
}

.about-team-heading p,
.about-team-toolbar p {
    color: var(--muted, #6f7486);
    font-size: 14px;
}
.about-team-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.about-team-toolbar label {
    display: grid;
    gap: 8px;
    width: min(100%, 460px);
    color: var(--dark);
    font-size: var(--font-14);
}

.about-team-toolbar input {
    padding: 13px 16px;
    border: 1px solid #d9cce9;
    border-radius: 0px;
    font: inherit;
    background: white;
    min-width: 0;
    width: 100%;
}

.about-team-grid {
    display: grid;
    grid-template-columns:
    repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.about-team-card {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 24px 16px;
    border: 1px solid #e5dcee;
    border-radius: 0px;
    background: white;
    color: var(--dark);
    font: inherit;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 8px 25px #3d007508;
    transition: box-shadow .2s;
    min-width: 0;
}

.about-team-card:hover {
    box-shadow: 0 12px 30px #3d00751a;
}

.about-team-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 16px 0 7px;
    overflow-wrap: anywhere;
}

.about-team-card p {
    color: var(--muted);
    font-size: 14px;
}

.team-profile-prompt {
    margin-top: auto;
    padding-top: 18px;
    color: var(--primary);
    font-size: 14px;
}

.team-photo {
    position: relative;
    display: grid;
    place-items: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #eee5f8;
    color: #7b3fc0;
    font-size: var(--font-28);
    font-weight: var(--weight-600);
    overflow: hidden;
    flex-shrink: 0;
}

.team-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-profile-dialog {
    width: min(720px, calc(100% - 28px));
    max-height: 88vh;
    max-height: 88dvh;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 0px;
    background: white;
    color: #514a71;
    overflow: auto;
    overscroll-behavior: contain;
}

.team-profile-dialog::backdrop {
    background: #180030b8;
}

.team-profile-panel {
    position: relative;
    padding: 38px;
}

.team-profile-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: 0;
    background: #f0e9fa;
    color: #3d0075;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: var(--font-24);
    cursor: pointer;
}

.team-profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 0 26px;
    border-bottom: 1px solid #eee5f8;
}

.team-profile-header h2 {
    margin: 9px 0;
    font-size: var(--font-24);
    color: #3d0075;
    overflow-wrap: anywhere;
}

.team-profile-details {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 12px;
    margin: 24px 0;
    font-size: 14px;
}

.team-profile-details dt {
    font-weight: var(--weight-600);
    color: #3d0075;
    font-size: 14px;
}

.team-profile-details dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 14px;
}

.team-profile-panel h3 {
    margin: 24px 0 10px;
    color: #3d0075;
    font-size: 14px;
}

.team-profile-panel p {
    line-height: 1.8;
    overflow-wrap: anywhere;
    font-size: 14px;
}

.team-profile-contact a,
.team-profile-links a {
    color: #7b3fc0;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.team-profile-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}

body.team-profile-open {
    overflow: hidden;
}

.about-team-card:focus-visible,
.team-profile-close:focus-visible,
#teamSearch:focus-visible {
    outline: 3px solid #9b7fd8;
    outline-offset: 3px;
}

@media (max-width: 1100px) { .about-team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 850px) { .about-team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .about-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .about-team-toolbar { align-items: stretch; flex-direction: column; } .team-profile-panel { padding: 40px 22px 25px; } .team-profile-header { align-items: flex-start; flex-direction: column; gap: 12px; } .team-profile-details { grid-template-columns: 1fr; gap: 6px; } .team-profile-details dd { margin-bottom: 12px; } }
@media (max-width: 350px) { .about-team-grid { grid-template-columns: 1fr; } }
