/*
Theme Name: HIA Child
Theme URI: https://healthissuesafrica.com
Description: Custom child theme for the Health Issues Africa (FINN Africa) rebrand. Hosts the custom post types (insights, podcast episodes, guests, report chapters), single templates, and site-wide styling.
Author: FINN Partners Africa
Template: hello-elementor
Version: 1.0.0
Text Domain: hia-child
*/

/* Site-wide variables */
:root {
  --hia-navy: #1E3A5F;
  --hia-amber: #E89B2F;
  --hia-vermilion: #C8392C;
  --hia-cream: #FAF7F0;
  --hia-white: #FFFFFF;
  --hia-ink: #1A1A1A;
  --hia-muted: #6A6A6A;
}

body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--hia-cream);
  color: var(--hia-ink);
}

/* ───── Header ───── */
.hia-header { background: var(--hia-navy); color: var(--hia-cream); padding: 18px 0; }
.hia-header__inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 32px; }
.hia-header__brand { display: flex; align-items: center; text-decoration: none; color: inherit; margin-right: auto; }
.hia-header__logo { max-height: 42px; width: auto; }
.hia-header__wordmark { color: var(--hia-amber); font-weight: 700; font-size: 18px; letter-spacing: 0.02em; }
.hia-header__menu { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.hia-header__menu a { color: var(--hia-cream); text-decoration: none; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.hia-header__menu a:hover { color: var(--hia-amber); }

/* ───── Footer ───── */
.hia-footer { background: var(--hia-navy); color: var(--hia-cream); margin-top: 80px; padding: 48px 0 32px; }
.hia-footer__inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: grid; gap: 24px; grid-template-columns: 1fr 1fr 1fr; align-items: start; }
.hia-footer__wordmark { color: var(--hia-amber); font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.hia-footer__finn { color: rgba(250,247,240,0.7); font-size: 13px; }
.hia-footer__finn a { color: inherit; text-decoration: underline; }
.hia-footer__menu { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.hia-footer__menu a { color: var(--hia-cream); text-decoration: none; font-size: 13px; }
.hia-footer__menu a:hover { color: var(--hia-amber); }
.hia-footer__legal { font-size: 12px; color: rgba(250,247,240,0.5); text-align: right; }

/* ───── Textile divider ───── */
.hia-textile { height: 26px; margin: 48px 0; opacity: 0.7;
  background-image:
    radial-gradient(circle at 8%  50%, var(--hia-amber)     5px, transparent 6px),
    radial-gradient(circle at 25% 50%, var(--hia-vermilion) 5px, transparent 6px),
    radial-gradient(circle at 42% 50%, var(--hia-cream)     4px, transparent 5px),
    radial-gradient(circle at 58% 50%, var(--hia-amber)     5px, transparent 6px),
    radial-gradient(circle at 75% 50%, var(--hia-vermilion) 5px, transparent 6px),
    radial-gradient(circle at 92% 50%, var(--hia-amber)     5px, transparent 6px);
  background-color: transparent;
}

/* ───── Eyebrow label ───── */
.hia-eyebrow {
  color: var(--hia-amber);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}

@media (max-width: 720px) {
  .hia-footer__inner { grid-template-columns: 1fr; }
  .hia-footer__legal { text-align: left; }
}

/* ───── Insight single ───── */
.hia-insight { max-width: 720px; margin: 48px auto 0; padding: 0 24px; }
.hia-insight__topics { display: flex; gap: 8px; margin-bottom: 16px; }
.hia-insight__topic { background: var(--hia-amber); color: var(--hia-navy); padding: 4px 10px; border-radius: 3px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; }
.hia-insight__title { font-size: 38px; font-weight: 700; line-height: 1.1; margin: 0 0 18px; color: var(--hia-navy); letter-spacing: -0.01em; }
.hia-insight__byline { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--hia-muted); margin-bottom: 28px; }
.hia-insight__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.hia-insight__author-link { color: var(--hia-navy); font-weight: 600; text-decoration: none; }
.hia-insight__hero { margin: 0 0 28px; }
.hia-insight__hero img { width: 100%; height: auto; border-radius: 4px; }
.hia-insight__body { font-size: 17px; line-height: 1.65; color: var(--hia-ink); }
.hia-insight__body h2 { font-size: 26px; margin: 36px 0 14px; color: var(--hia-navy); }
.hia-insight__body h3 { font-size: 20px; margin: 28px 0 12px; color: var(--hia-navy); }
.hia-insight__body p { margin: 0 0 18px; }
.hia-insight__body a { color: var(--hia-vermilion); }
.hia-insight__body blockquote { border-left: 3px solid var(--hia-amber); padding-left: 20px; margin: 24px 0; font-style: italic; color: var(--hia-muted); }
.hia-insight__original { background: var(--hia-cream); border: 1px solid #e8e2d4; padding: 14px 18px; border-radius: 4px; margin: 32px 0; font-size: 14px; color: var(--hia-muted); }
.hia-insight__original a { color: var(--hia-vermilion); font-weight: 600; }
.hia-insight__author-bio { display: grid; grid-template-columns: 100px 1fr; gap: 20px; margin: 48px 0 0; padding: 24px; background: var(--hia-cream); border-radius: 6px; }
.hia-insight__author-photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; }
.hia-insight__author-name { margin: 0 0 4px; font-size: 18px; color: var(--hia-navy); }
.hia-insight__author-role { font-size: 13px; color: var(--hia-muted); margin-bottom: 10px; }
.hia-insight__author-bio-text { margin: 0; font-size: 14px; line-height: 1.5; color: var(--hia-ink); }

/* ───── Archive grid + cards ───── */
.hia-archive { padding: 64px 24px 0; }
.hia-archive__inner { max-width: 1180px; margin: 0 auto; }
.hia-archive__title { font-size: 40px; font-weight: 700; line-height: 1.05; color: var(--hia-navy); margin: 0 0 14px; }
.hia-archive__lede { font-size: 17px; line-height: 1.5; color: var(--hia-muted); max-width: 640px; margin: 0 0 48px; }
.hia-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }
.hia-card { background: var(--hia-white); border-radius: 6px; overflow: hidden; border: 1px solid #ece6d8; display: flex; flex-direction: column; }
.hia-card__media img { display: block; width: 100%; height: 180px; object-fit: cover; }
.hia-card__placeholder { width: 100%; height: 180px; background: linear-gradient(135deg, var(--hia-navy), #2a4f7a); }
.hia-card__body { padding: 18px 18px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hia-card__topic { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--hia-vermilion); }
.hia-card__title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--hia-navy); }
.hia-card__title a { color: inherit; text-decoration: none; }
.hia-card__title a:hover { color: var(--hia-vermilion); }
.hia-card__summary { margin: 0; font-size: 14px; line-height: 1.5; color: var(--hia-ink); flex: 1; }
.hia-card__meta { font-size: 12px; color: var(--hia-muted); }
.hia-pagination { margin: 48px 0; text-align: center; }
.hia-pagination a, .hia-pagination span { display: inline-block; padding: 8px 12px; margin: 0 2px; border-radius: 4px; text-decoration: none; color: var(--hia-navy); }
.hia-pagination .current { background: var(--hia-navy); color: var(--hia-cream); }

/* ───── Author / Guest single ───── */
.hia-author { padding: 64px 24px 0; }
.hia-author__inner { max-width: 980px; margin: 0 auto; }
.hia-author__head { display: grid; grid-template-columns: 160px 1fr; gap: 32px; align-items: start; margin-bottom: 32px; }
.hia-author__photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; }
.hia-author__name { font-size: 36px; font-weight: 700; color: var(--hia-navy); margin: 0 0 6px; }
.hia-author__role { font-size: 14px; color: var(--hia-muted); margin-bottom: 12px; }
.hia-author__bio { font-size: 16px; line-height: 1.6; color: var(--hia-ink); }
.hia-social { display: flex; gap: 14px; }
.hia-social a { color: var(--hia-vermilion); font-size: 13px; text-decoration: none; font-weight: 600; }
.hia-social a:hover { color: var(--hia-navy); }
@media (max-width: 700px) {
  .hia-author__head { grid-template-columns: 1fr; }
  .hia-author__photo { width: 120px; height: 120px; }
}

/* ───── Episode single ───── */
.hia-episode { padding: 56px 24px 0; }
.hia-episode__inner { max-width: 820px; margin: 0 auto; }
.hia-episode__title { font-size: 36px; line-height: 1.1; color: var(--hia-navy); margin: 12px 0; font-weight: 700; }
.hia-episode__meta { font-size: 14px; color: var(--hia-muted); margin-bottom: 28px; }
.hia-episode__meta a { color: var(--hia-navy); font-weight: 600; text-decoration: none; }
.hia-episode__player { margin: 0 0 24px; }
.hia-episode__player iframe { width: 100%; max-width: 100%; }
.hia-episode__listen { display: flex; flex-wrap: wrap; gap: 14px; padding: 14px 18px; background: var(--hia-cream); border-radius: 4px; margin-bottom: 32px; }
.hia-episode__listen a { color: var(--hia-vermilion); font-size: 14px; font-weight: 600; text-decoration: none; }
.hia-episode__section { margin: 32px 0; }
.hia-episode__section h2 { font-size: 22px; color: var(--hia-navy); margin: 0 0 14px; }
.hia-episode__transcript { font-size: 15px; line-height: 1.6; color: var(--hia-ink); }
.hia-guestcard { display: grid; grid-template-columns: 80px 1fr; gap: 18px; margin: 18px 0; padding: 16px; background: var(--hia-cream); border-radius: 6px; }
.hia-guestcard img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.hia-guestcard h3 { margin: 0 0 4px; font-size: 16px; }
.hia-guestcard h3 a { color: var(--hia-navy); text-decoration: none; }
.hia-guestcard__role { font-size: 12px; color: var(--hia-muted); margin-bottom: 6px; }
.hia-guestcard p { margin: 0; font-size: 13px; }

/* ───── Report chapter ───── */
.hia-chapter { display: grid; grid-template-columns: 240px 1fr; gap: 48px; max-width: 1180px; margin: 56px auto 0; padding: 0 24px; }
.hia-chapter__sidebar { position: sticky; top: 24px; align-self: start; }
.hia-chapter__back { display: block; margin: 8px 0 20px; color: var(--hia-vermilion); text-decoration: none; font-size: 13px; font-weight: 600; }
.hia-chapter__toc { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.hia-chapter__toc a { color: var(--hia-muted); text-decoration: none; padding: 4px 0; }
.hia-chapter__toc a.is-current { color: var(--hia-navy); font-weight: 700; }
.hia-chapter__body { max-width: 720px; }
.hia-chapter__title { font-size: 38px; line-height: 1.1; color: var(--hia-navy); margin: 8px 0 14px; font-weight: 700; }
.hia-chapter__summary { font-size: 18px; color: var(--hia-muted); line-height: 1.5; margin-bottom: 24px; }
.hia-chapter__findings { background: var(--hia-cream); padding: 18px 24px; border-radius: 6px; list-style: none; margin: 0 0 32px; }
.hia-chapter__findings li { padding: 8px 0; border-bottom: 1px solid #ece6d8; }
.hia-chapter__findings li:last-child { border: 0; }
.hia-chapter__content { font-size: 17px; line-height: 1.65; }
.hia-chapter__content h2 { font-size: 24px; color: var(--hia-navy); margin: 36px 0 14px; }
.hia-chapter__content p { margin: 0 0 18px; }
.hia-chapter__pager { display: flex; justify-content: space-between; gap: 16px; margin: 48px 0 64px; padding-top: 24px; border-top: 1px solid #ece6d8; }
.hia-chapter__pager a { color: var(--hia-vermilion); text-decoration: none; font-weight: 600; font-size: 14px; }
.hia-chapter__pager .next { margin-left: auto; text-align: right; }
@media (max-width: 800px) {
  .hia-chapter { grid-template-columns: 1fr; }
  .hia-chapter__sidebar { position: static; }
}

/* ───── Podcast hub ───── */
.hia-podcast { padding: 64px 24px 0; }
.hia-podcast__inner { max-width: 1180px; margin: 0 auto; }
.hia-podcast__title { font-size: 48px; line-height: 1.05; color: var(--hia-navy); margin: 8px 0 12px; font-weight: 700; }
.hia-podcast__lede { font-size: 18px; color: var(--hia-muted); line-height: 1.5; margin-bottom: 18px; max-width: 720px; }
.hia-podcast__listen { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 48px; }
.hia-podcast__listen a { color: var(--hia-vermilion); text-decoration: none; font-weight: 600; font-size: 14px; }
.hia-podcast__featured { background: var(--hia-cream); padding: 28px; border-radius: 8px; margin-bottom: 48px; }
.hia-podcast__featured h2 { font-size: 24px; color: var(--hia-navy); margin: 4px 0 16px; }
.hia-podcast__featured h2 a { color: inherit; text-decoration: none; }
.hia-podcast__player iframe { width: 100%; max-width: 100%; }
