.member-open {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}

.member-open:focus-visible {
  outline-offset: -4px;
}

.member-modal {
  position: fixed;
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  overflow: auto;
  border: 1px solid #d9eaf1;
  border-radius: 24px;
  color: #153d57;
  background: #fff;
  box-shadow: 0 28px 90px #003b6040;
}

.member-modal::backdrop {
  background: #082f49a6;
  backdrop-filter: blur(5px);
}

.member-modal [hidden] {
  display: none;
}

.member-modal-close {
  position: absolute;
  inset-block-start: 12px;
  inset-inline-end: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid #c8e4ef;
  border-radius: 50%;
  color: #153d57;
  background: #ffffffed;
  font-family: system-ui, sans-serif;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.member-modal-portrait {
  display: grid;
  place-items: center;
  padding: 32px 24px 24px;
  background: linear-gradient(135deg, #eaf7fc, #e1f7f2);
}

.member-modal-portrait img,
.member-modal-portrait span {
  width: 138px;
  height: 138px;
  border: 5px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  box-shadow: 0 8px 24px #064b9214;
}

.member-modal-portrait span {
  display: grid;
  place-items: center;
  color: #007f9a;
  background: #fff;
  font-size: 3.4rem;
}

.member-modal-content {
  padding: 24px;
  text-align: center;
}

.member-modal-role {
  margin: 0 0 8px;
  color: #008b99;
}

.member-modal-content h2 {
  margin: 0 0 24px;
  font-size: 1.8rem;
  line-height: 1.5;
}

.member-modal-contacts {
  display: grid;
  gap: 12px;
}

.member-modal-contact {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #d9eaf1;
  border-radius: 14px;
  background: #f5fafc;
}

.member-modal-contact span {
  color: #5d788a;
  font-size: 0.85rem;
}

.member-modal-contact strong {
  color: #0066cc;
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.member-modal-contact:hover {
  background: #eaf7fc;
}

