/**
 * Reusable tab navigation pattern (.topic-tabs).
 *
 * Used on: health-topic pages, governance, country, emergencies. Decoupled
 * from any single page type so it can be attached via the `who26/topic-tabs`
 * library wherever the .topic-tabs markup appears.
 */

/* ── Tab navigation ──────────────────────────────────────── */
.topic-tabs {
  display: flex;
  flex-direction: column;
}

.topic-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 2px solid var(--who-gray-200);
  padding-bottom: 0;
  margin-bottom: 28px;
}

.topic-tab-btn {
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--who-gray-600);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  border-radius: var(--who-radius-sm) var(--who-radius-sm) 0 0;
  white-space: nowrap;
}
.topic-tab-btn:hover {
  color: var(--who-navy);
  background: var(--who-gray-100);
}
.topic-tab-btn.is-active {
  color: var(--who-blue);
  border-bottom-color: var(--who-blue);
  background: transparent;
}

/* ── Tab panels ──────────────────────────────────────────── */
.topic-tab-panel {
  display: none;
}
.topic-tab-panel.is-active {
  display: block;
}

.topic-tab-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--who-gray-800);
}
.topic-tab-body p         { margin-bottom: 1rem; }
.topic-tab-body h2,
.topic-tab-body h3,
.topic-tab-body h4        { color: var(--who-navy); margin: 1.4rem 0 .6rem; }
.topic-tab-body ul,
.topic-tab-body ol        { padding-left: 1.5rem; margin-bottom: 1rem; }
.topic-tab-body li        { margin-bottom: .4rem; }
.topic-tab-body a         { color: var(--who-blue); text-decoration: underline; }
.topic-tab-body a:hover   { color: var(--who-blue-hover); }
.topic-tab-body img       { max-width: 100%; height: auto; }
