/* Team modal overlay */
#team-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

#team-modal-overlay[hidden] {
  display: none;
}

body.team-modal-open {
  overflow: hidden;
}

/* Dialog container */
#team-modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.22);
  width: 100%;
  max-width: 1200px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  outline: none;
}

/* Close button */
#team-modal-close {
  position: sticky;
  top: 0;
  float: right;
  margin: 16px 16px 0 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #525254;
  line-height: 1;
  z-index: 1;
}

@media (min-width: 768px) {
  #team-modal-close {
    right: 0;
    position: absolute;
  }
}

#team-modal-close svg {
  display: block;
  width: 30px;
  height: 30px;
}

#team-modal-close:hover {
  color: #000;
}

/* Inner layout */
.team-modal-body {
  display: flex;
  gap: 40px;
  padding: 32px 40px 40px;
  clear: both;
  color: #000;
}

.team-modal-headshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: radial-gradient(50% 50% at 50% 50%,#67747A 0%,#4B5054 100%);
}

.team-modal-awards {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-evenly;
  gap: 8px;
  margin-top: 14px;
}


@media (min-width: 641px) {
  .team-modal-awards .award-img:not(:last-child) {
    border-right: 1px solid #e5e5e5;
    padding-right: 8px;
  }
  /* Left column */
  .team-modal-left {
    flex: 0 0 240px;
    max-width: 240px;
  }
}

.team-modal-awards img {
  max-height: 84px;
  width: auto;
  display: block;
}

/* Right column */
.team-modal-right {
  flex: 1 1 0;
  min-width: 0;
}

.team-modal-name {
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.2;
}

.team-modal-position {
  font-style: italic;
  margin: 0 0 18px;
  font-size: 16px;
  color: var(--fl-global-small-text-soft-gray);
}

.team-modal-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 0 0 20px;
}

.team-modal-bio {
  line-height: 1.7;
}

.team-modal-bio p {
  margin: 0 0 1em;
}

.team-modal-bio p:last-child {
  margin-bottom: 0;
}

/* Recognition section */
.team-modal-recognition {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e5e5;
}

.team-modal-recognition-heading {
  font-weight: 700;
  margin: 0 0 10px;
}

.team-modal-recognition ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.team-modal-recognition li {
  padding-left: 16px;
  position: relative;
  margin-bottom: 6px;
}

.team-modal-recognition li::before {
  content: '•';
  position: absolute;
  left: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .team-modal-body {
    flex-direction: column;
    padding: 24px;
    gap: 24px;
  }

  .team-modal-left {
    flex: none;
  }
}
