/* Team profile pop-up (homepage) */
.people-showcase__more {
  align-self: flex-start;
  margin-top: .8rem;
  padding: .5rem 1rem;
  border: 1px solid rgba(var(--color-accent-rgb, 25, 213, 209), .7);
  border-radius: 999px;
  background: rgba(2, 9, 13, .55);
  color: #fff;
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}
.people-showcase__more:hover, .people-showcase__more:focus-visible { background: var(--color-accent); color: #03181a; outline: 0; }
.people-showcase__card[data-profile] { cursor: pointer; }

dialog.team-profile {
  width: min(760px, calc(100% - 2rem));
  max-height: min(86vh, 640px);
  padding: 0;
  border: 2px solid var(--color-accent);
  border-radius: 28px;
  background: #0d181b;
  color: #fff;
  overflow: auto;
  box-shadow: 10px 10px 0 #7d57d8;
}
dialog.team-profile::backdrop { background: rgba(2, 9, 13, .72); backdrop-filter: blur(3px); }
html.team-profile-open { overflow: hidden; }
.team-profile__close {
  position: absolute; top: .7rem; right: .9rem; z-index: 2;
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.team-profile__close:hover, .team-profile__close:focus-visible { background: var(--color-accent); color: #03181a; outline: 0; }
.team-profile__grid { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 1.6rem; padding: 1.6rem; }
dialog.team-profile .team-profile__photo { width: 100%; height: auto; aspect-ratio: .78 / 1; object-fit: cover; border-radius: 20px; display: block; }
.team-profile__text h3 { margin: .3rem 2.5rem .25rem 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.team-profile__role { margin: 0 0 1rem; color: var(--color-accent); font-weight: 800; font-size: .95rem; }
.team-profile__bio p { margin: 0 0 .9rem; color: rgba(255, 255, 255, .86); line-height: 1.7; font-size: .98rem; }
.team-profile__links { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 1.2rem 0 0; padding: 0; }
.team-profile__links a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(var(--color-accent-rgb, 25, 213, 209), .6); color: #fff; text-decoration: none; font-size: 1.1rem;
  transition: background 200ms ease, color 200ms ease;
}
.team-profile__links a:hover, .team-profile__links a:focus-visible { background: var(--color-accent); color: #03181a; outline: 0; }
@media (max-width: 640px) {
  .team-profile__grid { grid-template-columns: minmax(0, 1fr); padding: 1.2rem; }
  dialog.team-profile .team-profile__photo { max-height: 280px; aspect-ratio: auto; }
}
