.tm-modal[aria-hidden="true"] {
  display: none;
}

.tm-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.tm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.tm-modal__dialog {
  position: relative;
  margin: 6vh auto;
  max-width: 980px;
  width: calc(100% - 32px);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.tm-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0073aa, #005a87);
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
  transition: all 0.3s ease;
}

.tm-modal__close:hover {
  background: linear-gradient(135deg, #005a87, #004a6f);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
}

.tm-modal__close:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 115, 170, 0.25), 0 6px 20px rgba(0, 115, 170, 0.4);
}

.tm-modal__content {
  padding: 28px;
  max-height: 86vh;
  overflow: auto;
}

.tm-detail__header {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.tm-detail__avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  border: 4px solid #0073aa;
  background: #f8f9fa;
}

.tm-detail__name {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #333;
}

.tm-detail__role {
  margin-top: 6px;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0073aa, #005a87);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.tm-detail__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: #666;
}

.tm-detail__section {
  margin-top: 18px;
}

.tm-detail__section h3 {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 800;
  color: #333;
}

.tm-detail__content {
  color: #555;
  line-height: 1.7;
}

.tm-detail__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tm-detail__links a {
  text-decoration: none;
  color: #0073aa;
  font-weight: 700;
}

.tm-detail__links a:hover {
  color: #005a87;
}

@media (max-width: 576px) {
  .tm-detail__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .tm-modal__content {
    padding: 20px;
  }
}


