.team-item--profile {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
}
.team-item--profile .team-name { min-height: 2.3em; margin-bottom: 8px; }
.team-item--profile .team-role {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.9em;
    max-width: 100%;
    color: #586775;
    font-size: 14px;
    line-height: 1.45;
}
.team-profile-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 7px;
    margin-top: 12px;
    padding: 7px 14px;
    border: 1px solid #d5e4f3;
    border-radius: 24px;
    background: #f4f8fc;
    color: #326da8;
    font: inherit;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
}
.team-profile-button::after { content: '↗'; font-size: 15px; }
.team-profile-button:hover { background: #e7f1fc; border-color: #8bb9e7; color: #20588e; }
.team-profile-button:focus-visible, .team-profile-close:focus-visible {
    outline: 2px solid #4e91d9;
    outline-offset: 4px;
}
.team-profile-dialog {
    position: fixed;
    inset: 0;
    width: min(760px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    box-sizing: border-box;
    margin: auto;
    padding: 36px;
    border: 1px solid #e3e9f0;
    border-radius: 20px;
    background: #fff;
    color: #202c39;
    box-shadow: 0 24px 90px #101d3240;
    overflow: auto;
    text-align: left;
}
.team-profile-dialog::backdrop { background: #101b2bc2; backdrop-filter: blur(4px); }
.team-profile-dialog[open] { animation: team-profile-appear .2s ease-out; }
.team-profile-dialog__content { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: center; }
.team-profile-dialog__photo { display: block; width: 210px; aspect-ratio: 1 / 1.3; object-fit: cover; border-radius: 12px; }
.team-profile-dialog__copy { min-width: 0; }
.team-profile-dialog__eyebrow { margin: 0 24px 10px 0; color: #4d82b9; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.team-profile-dialog__name { margin: 0 0 24px; padding-right: 8px; color: #202c39; font-size: clamp(23px, 2.2vw, 29px); line-height: 1.22; font-weight: 600; }
.team-profile-dialog__label { margin: 0 0 8px; color: #75818e; font-size: 13px; }
.team-profile-dialog__position { margin: 0; color: #344454; font-size: 16px; line-height: 1.65; white-space: pre-line; overflow-wrap: break-word; }
.team-profile-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #edf2f7;
    color: #526578;
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.team-profile-close:hover { color: #233f5b; background: #dfe9f3; }
html.team-profile-open { overflow: hidden; scrollbar-gutter: stable; }
@keyframes team-profile-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
    .team-item--profile .team-name { min-height: 3.45em; }
    .team-profile-dialog { padding: 28px 24px; border-radius: 16px; }
    .team-profile-dialog__content { grid-template-columns: 1fr; gap: 22px; }
    .team-profile-dialog__photo { width: 140px; aspect-ratio: 1 / 1.3; }
    .team-profile-dialog__name { margin-bottom: 20px; font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .team-profile-dialog[open] { animation: none; }
    .team-profile-button { transition: none; }
}
