/* =========================================================
   BIO MODAL — new layout: circular avatar on top,
   name → position → bio below.
   ========================================================= */

.bio-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.bio-modal.is-open { display: flex; }

.bio-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 19, 32, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: bioModalFade .18s ease;
}

.bio-modal__panel {
  position: relative;
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(15, 19, 32, .28);
  width: 100%;
  max-width: 720px;             /* narrower — no more two-column layout */
  max-height: calc(100vh - 48px);
  overflow: hidden;
  animation: bioModalPop .26s cubic-bezier(.2,.8,.3,1);
}

@keyframes bioModalFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bioModalPop {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

.bio-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: #f3f4f6;
  color: #0f1320;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform .2s ease, background .2s ease;
}
.bio-modal__close:hover { background: #e5e7eb; transform: rotate(90deg); }

/* Body: single column, centered */
.bio-modal__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 44px 32px 36px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

/* Circular avatar */
.bio-modal__avatar {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #eef2ff, #e0e7ff);
  box-shadow:
    0 0 0 6px #fff,
    0 0 0 7px #e6e8ef,
    0 12px 30px rgba(79, 70, 229, .18);
  margin-bottom: 22px;
}
.bio-modal__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bio-modal__placeholder {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: #4f46e5;
  letter-spacing: .02em;
}
.bio-modal__placeholder.is-visible { display: flex; }

/* Text block */
.bio-modal__text {
  width: 100%;
  text-align: center;
}
.bio-modal__text h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #0f1320;
  line-height: 1.25;
}
.bio-modal__position {
  margin: 6px 0 0;
  color: #4f46e5;               /* highlight the position */
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
}
.bio-modal__divider {
  width: 48px;
  height: 2px;
  background: #e6e8ef;
  border-radius: 2px;
  margin: 20px auto;
}
.bio-modal__bio {
  margin: 0;
  color: #4b5563;
  font-size: 14.5px;
  line-height: 1.7;
  white-space: pre-line;
  text-align: left;             /* easier to read than centered bio */
}

/* Body scroll lock when modal is open */
body.bio-modal-open { overflow: hidden; }

/* Mobile: bottom sheet */
@media (max-width: 560px) {
  .bio-modal { padding: 0; align-items: flex-end; }
  .bio-modal__panel {
    max-width: 100%;
    border-radius: 22px 22px 0 0;
    max-height: 92vh;
  }
  .bio-modal__body {
    padding: 36px 22px 32px;
    max-height: 92vh;
  }
  .bio-modal__avatar { width: 104px; height: 104px; }
  .bio-modal__placeholder { font-size: 32px; }
  .bio-modal__text h2 { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .bio-modal__panel,
  .bio-modal__backdrop { animation: none !important; transition: none !important; }
  .bio-modal__close    { transition: none !important; }
}