.team-col:has(.smp-team-bio-open) { position: relative; }

.smp-team-bio-open {
  position: absolute;
  z-index: 1;
  right: max(0px, calc(50% - 84px));
  bottom: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid #e0d5c2;
  border-radius: 50%;
  background: #fff;
  color: #8b4700;
  font-size: 23px;
  line-height: 1;
}

.smp-team-bio-open:hover,
.smp-team-bio-open:focus-visible {
  background: #fff0d6;
  color: #623300;
  outline: 2px solid #8b4700;
  outline-offset: 2px;
}

html.smp-team-bio-opened { overflow: hidden; }

.smp-team-bio-dialog {
  box-sizing: border-box;
  width: min(900px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #25251f;
  box-shadow: 0 12px 44px rgb(0 0 0 / 25%);
}

.smp-team-bio-dialog::backdrop { background: rgb(35 32 29 / 62%); }

.smp-team-bio-content {
  box-sizing: border-box;
  max-height: calc(100dvh - 32px);
  overflow: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  grid-template-areas: 'portrait heading' 'portrait copy';
  grid-template-rows: auto 1fr;
}

.smp-team-bio-portrait {
  grid-area: portrait;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  object-position: center top;
  background: #eee;
}

.smp-team-bio-heading {
  grid-area: heading;
  padding: 30px 68px 8px 28px;
}

.smp-team-bio-heading h2 {
  margin: 0 0 6px;
  color: #863e00;
  font-size: clamp(22px, 3vw, 36px);
  line-height: 1.18;
}

.smp-team-bio-heading p { margin: 0; font-size: 16px; }

.smp-team-bio-copy {
  grid-area: copy;
  padding: 8px 28px 28px;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.smp-team-bio-copy p:last-child { margin-bottom: 0; }
.smp-team-bio-copy a { color: #843c00; text-decoration: underline; }

.smp-team-bio-close {
  position: absolute;
  z-index: 1;
  inset: 12px 12px auto auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #393834;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.smp-team-bio-close:hover,
.smp-team-bio-close:focus-visible { background: #282723; color: #ffbe6b; outline: 2px solid #8b4700; outline-offset: 2px; }

@media (max-width: 680px) {
  .smp-team-bio-content {
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-areas: 'portrait heading' 'copy copy';
    gap: 14px;
    padding: 16px;
  }
  .smp-team-bio-portrait { height: 106px; min-height: 0; border-radius: 6px; }
  .smp-team-bio-heading { align-self: center; padding: 40px 4px 0 0; }
  .smp-team-bio-heading h2 { font-size: 21px; }
  .smp-team-bio-heading p { font-size: 14px; }
  .smp-team-bio-copy { padding: 0; }
}
