/* Public profile / OB detail popup */

.aed-pm-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.aed-pm-overlay.aed-pm-open {
  opacity: 1;
  visibility: visible;
}

.aed-pm-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: min(88vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.2);
  padding: 24px 22px 20px;
  transform: translateY(10px);
  transition: transform 0.2s ease;
}

.aed-pm-overlay.aed-pm-open .aed-pm-panel {
  transform: translateY(0);
}

.aed-pm-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: #f1f5f9;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  color: #475569;
  cursor: pointer;
}

.aed-pm-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.aed-pm-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-right: 36px;
}

.aed-pm-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}

.aed-pm-title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}

.aed-pm-sub {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
  font-weight: 600;
}

.aed-pm-role {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2563eb;
}

.aed-pm-desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
}

.aed-pm-card {
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.aed-pm-card:hover {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12) !important;
  transform: translateY(-2px);
}

.aed-pm-card:focus {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

.aed-pm-excerpt {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
