html, body.tcolf-v2 { overflow-x: hidden; }
body.tcolf-v2 .v2-home-hero h1 { color: #fff; }

/* Preserve strong contrast wherever type sits on dark color or photography. */
body.tcolf-v2 .v2-home-hero,
body.tcolf-v2 .v2-program,
body.tcolf-v2 .v2-proof,
body.tcolf-v2 .v2-cta,
body.tcolf-v2 .v2-footer {
  color: rgba(255, 255, 255, .88);
}

body.tcolf-v2 .v2-program:not(.v2-program-gold) h2,
body.tcolf-v2 .v2-program:not(.v2-program-gold) h3,
body.tcolf-v2 .v2-proof h2,
body.tcolf-v2 .v2-proof h3,
body.tcolf-v2 .v2-cta h2,
body.tcolf-v2 .v2-cta h3,
body.tcolf-v2 .v2-footer h2,
body.tcolf-v2 .v2-footer h3 {
  color: #fff;
}

/* WordPress block buttons inside stories do not use the theme's button class. */
body.tcolf-v2 .v2-prose .wp-block-button__link {
  color: #fff !important;
  background: #e85f45;
  box-shadow: 0 12px 28px rgba(232, 95, 69, .25);
  font-weight: 800;
}

body.tcolf-v2 .v2-prose .wp-block-button__link:hover,
body.tcolf-v2 .v2-prose .wp-block-button__link:focus-visible {
  color: #fff !important;
  background: #c74732;
}

/* Keep the bilingual hero quotation light and compact over the photograph. */
body.tcolf-v2 .v2-hero-quote {
  width: min(390px, 31vw);
  padding: 18px 26px;
  gap: 7px;
}

body.tcolf-v2 .v2-hero-quote span {
  font-weight: 400;
  line-height: 1.35;
}

body.tcolf-v2 .v2-hero-quote span[lang="sw"] {
  font-size: 15px;
}

body.tcolf-v2 .v2-hero-quote span[lang="en"] {
  font-size: 12px;
  font-style: italic;
  opacity: .82;
}

/* Water-program video story, positioned directly after the three pillars. */
body.tcolf-v2 .v2-wash-video {
  padding-top: clamp(65px, 7vw, 100px);
  background: var(--mint);
}

body.tcolf-v2 .v2-wash-video-heading {
  max-width: 820px;
  margin: 0 auto 38px;
  text-align: center;
}

body.tcolf-v2 .v2-wash-video-heading h2 {
  font-size: clamp(38px, 5vw, 66px);
}

body.tcolf-v2 .v2-wash-video-heading > p:last-child {
  max-width: 680px;
  margin: 22px auto 0;
  font-size: 19px;
}

body.tcolf-v2 .v2-wash-video-frame {
  position: relative;
  width: min(100%, 1000px);
  margin: 0 auto;
  padding-top: min(56.25%, 562.5px);
  overflow: hidden;
  background: var(--forest);
  border: 8px solid #fff;
  border-radius: 26px;
  box-shadow: var(--shadow);
}

body.tcolf-v2 .v2-wash-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

body.tcolf-v2 .v2-wash-video-caption {
  margin: 22px auto 0;
  text-align: center;
}

body.tcolf-v2 .v2-wash-video-caption a {
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 600px) {
  body.tcolf-v2 .v2-wash-video-frame {
    border-width: 5px;
    border-radius: 18px;
  }
}

/* Give long-form stories an editorial image treatment without cropping the original photographs. */
body.tcolf-v2 .tcolf-story-photo {
  margin: 42px 0 38px;
}

body.tcolf-v2 .tcolf-story-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

body.tcolf-v2 .tcolf-story-photo figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

@media (max-width: 600px) {
  body.tcolf-v2 .v2-home-hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: 38px;
    line-height: 1.06;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
  .v2-home-hero h1 em { display: block; }
  .v2-home-hero-content { overflow: hidden; padding-right: 20px; }
  .v2-home-hero .v2-kicker { max-width: 100%; font-size: 10px; letter-spacing: .12em; white-space: normal; }
  .v2-home-hero-content > p:not(.v2-kicker) { width: 100%; max-width: 100%; font-size: 16px; overflow-wrap: anywhere; }
  .v2-home-hero .v2-actions { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* Long-form leadership profiles use calm, readable rows instead of dense cards. */
body.tcolf-v2 .v2-leadership-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

body.tcolf-v2 .v2-leadership-profile {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  background: var(--cream);
  border-radius: var(--radius);
}

body.tcolf-v2 .v2-leadership-profile:nth-child(even) {
  background: var(--mint);
}

body.tcolf-v2 .v2-leadership-profile img {
  width: 100%;
  height: 370px;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
}

body.tcolf-v2 .v2-leadership-profile h3 {
  margin-bottom: 22px;
  font-size: clamp(34px, 4vw, 52px);
}

body.tcolf-v2 .v2-leadership-profile p:not(.v2-kicker) {
  margin: 0 0 14px;
}

body.tcolf-v2 .v2-leadership-profile p:last-child {
  margin-bottom: 0;
}

/* Give the footer call-to-action clear space beneath the large headline. */
body.tcolf-v2 .v2-footer-grid > div:first-child > h2 {
  margin-bottom: 44px;
}

/* Present the Kenya location and U.S. mailing address as clear, distinct details. */
body.tcolf-v2 .v2-address-list {
  display: grid;
  gap: 16px;
  margin: 28px 0;
}

body.tcolf-v2 .v2-address-list address {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  font-style: normal;
  line-height: 1.65;
}

body.tcolf-v2 .v2-address-list strong,
body.tcolf-v2 .v2-footer-addresses strong {
  display: block;
  margin-bottom: 5px;
}

body.tcolf-v2 .v2-address-list .v2-ein {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
}

body.tcolf-v2 .v2-footer-addresses {
  display: grid;
  gap: 18px;
}

body.tcolf-v2 .v2-footer-addresses p {
  margin: 0;
}

body.tcolf-v2 .v2-footer-addresses strong {
  color: #fff;
}

@media (max-width: 760px) {
  body.tcolf-v2 .v2-leadership-profile {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body.tcolf-v2 .v2-leadership-profile img {
    height: min(110vw, 470px);
  }

  body.tcolf-v2 .v2-footer-grid > div:first-child > h2 {
    margin-bottom: 36px;
  }
}

/* Keep the six newest story cards concise, with a clear route to the full archive. */
body.tcolf-v2 .v2-story-archive-link {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}

/* The archive is intentionally row-based so titles remain easy to scan as it grows. */
body.tcolf-v2 .v2-story-archive {
  background: var(--paper);
}

body.tcolf-v2 .v2-story-month + .v2-story-month {
  margin-top: 64px;
}

body.tcolf-v2 .v2-story-month > h2 {
  margin-bottom: 20px;
  color: var(--coral);
  font-size: clamp(28px, 3vw, 42px);
}

body.tcolf-v2 .v2-story-archive-row {
  display: grid;
  grid-template-columns: minmax(110px, 150px) 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

body.tcolf-v2 .v2-story-archive-row:last-child {
  border-bottom: 1px solid var(--line);
}

body.tcolf-v2 .v2-story-archive-row time {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

body.tcolf-v2 .v2-story-archive-row strong {
  color: var(--ink);
  font: 800 clamp(20px, 2.3vw, 30px)/1.2 "Manrope", sans-serif;
}

body.tcolf-v2 .v2-story-archive-row b {
  color: var(--coral);
  font-size: 26px;
}

body.tcolf-v2 .v2-story-archive-row:hover strong,
body.tcolf-v2 .v2-story-archive-row:focus strong {
  color: var(--coral);
}

@media (max-width: 600px) {
  body.tcolf-v2 .v2-story-archive-row {
    grid-template-columns: 1fr auto;
    gap: 8px 18px;
  }

  body.tcolf-v2 .v2-story-archive-row time {
    grid-column: 1 / -1;
  }
}
