/* =========================================================
   Who We Help page styles (page-specific)
   Aligned with Research / Programmes / About patterns
   ========================================================= */

/* Hero background */
.hero.hero--who {
  background:
    linear-gradient(to right, rgba(5, 9, 20, 0.94), rgba(5, 9, 20, 0.62)),
    url("../../../assets/img/who-we-help-bg.jpg")
      center/cover no-repeat;
}

.hero--who .hero-title { max-width: 28ch; }
.hero--who .hero-accent { color: var(--color-primary); }

/* Hero aside card (match Research hero card treatment) */
.who-hero-card {
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 198, 233, 0.12), transparent 55%),
    rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--color-text-main);
  padding: 1.35rem 1.4rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.who-hero-card .programme-label {
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.who-hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.who-hero-list li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
}

.who-hero-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.18rem;
  font-size: 0.65rem;
  color: var(--color-primary);
}

.who-hero-note {
  margin: 0.9rem 0 0;
  font-size: var(--fs-xs);
  color: rgba(161, 165, 181, 0.9);
  line-height: 1.6;
}

/* btn-ghost legibility on light/soft sections (same fix you used elsewhere) */
.section-light .btn-ghost,
.section-soft .btn-ghost {
  color: rgba(11, 16, 32, 0.5) !important;
}
.section-light .btn-ghost:hover,
.section-soft .btn-ghost:hover {
  color: white !important;
}

/* Subnav */
.who-nav { padding: 26px 0; }
.who-nav-inner { display: flex; align-items: center; justify-content: center; }

.who-subnav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  padding: 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(245, 245, 247, 0.85);
}

.who-subnav a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: var(--fs-sm);
  color: rgba(11, 16, 32, 0.85);
  text-decoration: none;
  border: 1px solid transparent;
}

.who-subnav a:hover {
  background: rgba(255, 147, 76, 0.08);
  border-color: rgba(255, 147, 76, 0.25);
  text-decoration: none;
}

/* Filters */
.who-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 0.4rem 0 0.4rem;
}

.who-filters .filter-chip {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.85);
  color: rgba(11, 16, 32, 0.85);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: var(--fs-sm);
  font-weight: 650;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.who-filters .filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 147, 76, 0.55);
  background: rgba(255, 147, 76, 0.08);
}

.who-filters .filter-chip.is-active {
  border-color: rgba(255, 147, 76, 0.6);
  background: rgba(255, 147, 76, 0.12);
}

.filter-status {
  text-align: center;
  margin: 0.4rem 0 1rem;
  font-size: var(--fs-sm);
  color: rgba(51, 54, 63, 0.85);
}

/* Audience cards */
.who-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.who-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.who-card h3 {
  margin: 0.2rem 0 0.45rem;
  font-size: 1.15rem;
}

.who-card p {
  font-size: var(--fs-sm);
  color: var(--color-text-soft-dark);
}

.who-bullets {
  margin: 0.6rem 0 0.75rem;
  padding-left: 0;
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--color-text-soft-dark);
}

.who-bullets li {
  position: relative;
  padding-left: 1.15rem;
  margin-bottom: 0.28rem;
}

.who-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.12rem;
  font-size: 0.85rem;
  color: var(--color-primary);
}

.who-actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Barriers */
.barriers-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.barrier-card p {
  margin: 0;
  font-size: var(--fs-sm);
  color: rgba(11, 16, 32, 0.78);
}

/* Steps (match Research) */
.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.step {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.02);
  padding: 1.05rem 1.1rem;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: var(--fs-sm);
  font-weight: 750;
  color: rgba(11, 16, 32, 0.95);
  background: rgba(255, 147, 76, 0.18);
  border: 1px solid rgba(255, 147, 76, 0.28);
  margin-bottom: 0.65rem;
}

.step-title {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.step-text {
  margin: 0;
  font-size: var(--fs-sm);
  color: rgba(11, 16, 32, 0.75);
}

/* Formats (dark cards reuse governance-card style from your global CSS) */
.formats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

/* Responsive */
@media (max-width: 960px) {
  .who-grid { grid-template-columns: minmax(0, 1fr); }
  .barriers-grid { grid-template-columns: minmax(0, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formats-grid { grid-template-columns: minmax(0, 1fr); }

  .who-subnav {
    border-radius: 18px;
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .steps-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Defensive */
[hidden] { display: none !important; }
