#team .portrait{aspect-ratio:4/5;height:auto;overflow:hidden}
#team .portrait .team-photo{display:block;width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
#team .team-card{display:flex;flex-direction:column;min-width:0}
#team .team-card h3{min-height:1.5em}
#team .team-card>.text-button{margin-top:auto}
.profile-detail-photo{display:block;width:min(100%,330px);height:auto;object-fit:contain;margin:0 0 24px}
#team .portrait .flag{width:20px;height:13px;opacity:1;flex:none}
#team .portrait:has(.team-photo) .initial{display:none}
#team .team-card h3{margin-bottom:8px;min-height:2.8em;line-height:1.4}
#team .profile-position{min-height:2.8em;line-height:1.4;margin-bottom:6px}
#team .profile-practice{min-height:2.8em;line-height:1.4;margin-bottom:12px;color:var(--slate);font-size:12px}
.profile-modal-open{overflow:hidden}
.profile-dialog{width:min(960px,94vw);max-height:90dvh;padding:0;background:var(--ivory);color:var(--navy)}
.profile-content{padding:48px}.profile-close{position:sticky;float:right;top:10px;margin:10px 14px 0 0;width:36px;height:36px;z-index:2;background:var(--ivory);color:var(--navy);font-size:26px}
.profile-head{display:grid;grid-template-columns:220px 1fr;gap:32px;align-items:center}.profile-head .profile-detail-photo{width:100%;margin:0}.profile-head:not(:has(img)){grid-template-columns:1fr}
.profile-review{font-size:12px;color:var(--slate);border-left:2px solid var(--gold);padding:0 15px;margin:28px 0}
.profile-sections{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;align-items:start}.profile-sections details{min-width:0;border-bottom:1px solid var(--line)}.profile-sections summary small{font-size:11px;color:var(--gold);margin-left:8px}.profile-sections ul{padding:0 0 15px 20px}.profile-sections li{font-size:14px;line-height:1.9;margin-bottom:12px;overflow-wrap:anywhere}.profile-source{display:inline-block;margin-top:24px;font-size:12px;text-decoration:underline}
@media(max-width:600px){.profile-dialog{width:100%;max-width:100%;max-height:100dvh;margin:auto 0}.profile-content{padding:32px 24px}.profile-head{grid-template-columns:1fr;gap:20px}.profile-head .profile-detail-photo{max-width:240px}.profile-sections{grid-template-columns:1fr}.profile-sections li{font-size:13px}}
.profile-language{display:inline-block;font-size:12px;margin:0 0 24px;border-bottom:1px solid var(--gold);padding-bottom:5px}
