/**
 * @file
 * Cluster (programme area) node page — page--node--cluster.
 *
 * The hero, topic cards (.ht-popular-*), news cards and section headers are
 * reused from global + the health-topics library; this only styles the
 * overview prose block extracted from the cluster body.
 */

.cluster-overview {
  font-size: 16px;
  line-height: 1.75;
  color: var(--who-gray-800);
  max-width: 72ch;
}
.cluster-overview p { margin: 0 0 1rem; }
.cluster-overview p:last-child { margin-bottom: 0; }
.cluster-overview ul,
.cluster-overview ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.cluster-overview li { margin-bottom: .4rem; }
.cluster-overview h3,
.cluster-overview h4 { color: var(--who-navy); margin: 1.4rem 0 .6rem; }
.cluster-overview a { color: var(--who-blue); text-decoration: underline; }
.cluster-overview a:hover { color: var(--who-blue-hover); }

/* ── Our team ──────────────────────────────────────────────── */
.team-role-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--who-blue);
  background: var(--who-blue-light);
  padding: 4px 10px;
  border-radius: var(--who-radius-sm);
  margin-bottom: 8px;
}
.team-role-tag-sm { font-size: 10px; padding: 3px 8px; margin-bottom: 6px; }

/* Photo placeholder (person silhouette) */
.team-photo-ph {
  background: var(--who-gray-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c4cbd6'%3E%3Cpath d='M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10zm0 2c-4 0-9 2-9 6v2h18v-2c0-4-5-6-9-6z'/%3E%3C/svg%3E") no-repeat center / 42%;
}

/* Director — featured horizontal card */
.team-director {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--who-white);
  border: 1px solid var(--who-gray-200);
  border-radius: var(--who-radius-md);
  padding: 24px;
}
.team-director-photo {
  flex-shrink: 0;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: var(--who-radius-md);
}
.team-director-info h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--who-navy);
  margin: 0 0 10px;
}
.team-bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--who-gray-700);
}
.team-bio p { margin: 0 0 .6rem; }
.team-bio p:last-child { margin-bottom: 0; }

/* Managed health topics in tabs — the team people sit inside the tab panels */
.cluster-team-tabs { margin-top: 8px; }
.team-mht-desc {
  font-size: 14px;
  color: var(--who-gray-600);
  margin: 0 0 20px;
  max-width: 72ch;
}
.team-mht-empty { font-size: 14px; color: var(--who-gray-500); }

/* People — compact cards; photos deliberately smaller than the director's */
.team-people {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px;
  background: var(--who-white);
  border: 1px solid var(--who-gray-200);
  border-radius: var(--who-radius-md);
}
.team-card-lead {
  border-color: var(--who-blue);
  box-shadow: 0 4px 14px rgba(0, 147, 208, .10);
}
.team-card-photo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}
.team-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--who-navy);
  margin: 0 0 4px;
  line-height: 1.3;
}
.team-card-role {
  font-size: 13px;
  color: var(--who-gray-600);
}

/* Cards link to each person's full-bio page */
.team-director,
.team-card {
  text-decoration: none;
  transition: border-color var(--who-transition), box-shadow var(--who-transition);
}
.team-director:hover,
.team-card:hover {
  border-color: var(--who-blue);
  box-shadow: 0 6px 20px rgba(12, 43, 100, .08);
}
.team-director-position {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--who-gray-600);
  margin: -4px 0 10px;
}
.team-fullbio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--who-blue);
}
.team-director:hover .team-fullbio { text-decoration: underline; }

/* What we do */
.cluster-whatwedo { margin-top: 32px; }
.cluster-subhead {
  font-size: 20px;
  font-weight: 800;
  color: var(--who-navy);
  margin: 0 0 12px;
}

@media (max-width: 575.98px) {
  .team-director { flex-direction: column; }
}
