/* Ivetzy's biography: scoped to the team page and its native dialog. */
.staff-bio-trigger {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--navy);
  color: white;
  cursor: pointer;
}
.staff-bio-trigger img { display: block; }
.staff-bio-trigger:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.staff-bio-hint {
  position: absolute;
  right: .8rem;
  bottom: .8rem;
  padding: .5rem .8rem;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font: 600 .875rem/1.4 var(--sans);
}
.staff-bio-dialog {
  box-sizing: border-box;
  width: min(660px, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 22px;
  background: var(--cream);
  color: var(--navy);
  box-shadow: var(--shadow);
}
.staff-bio-dialog::backdrop { background: rgba(0, 11, 43, .7); }
.staff-bio-close {
  display: block;
  margin: 0 0 1.5rem auto;
  min-height: 44px;
  padding: .5rem .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--navy);
  font: 600 .875rem/1.4 var(--sans);
  cursor: pointer;
}
.staff-bio-close span { margin-left: .5rem; font-size: 1.2rem; }
.staff-bio-dialog h2 { margin: .5rem 0 1.25rem; font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.25; }
.staff-bio-dialog > p:last-child { margin-bottom: 0; font-size: 1rem; line-height: 1.8; }
html.team-bio-open { overflow: hidden; }
