/* Black2Africa 0.10.1: bright editorial protection and reciprocity layer. */
:root {
  --b2a-paper: #fffdf7;
  --b2a-paper-blue: #eef8ff;
  --b2a-ink: #111512;
  --b2a-green: #087443;
  --b2a-green-deep: #03552f;
  --b2a-red: #c92d25;
  --b2a-gold: #efb928;
  --b2a-line: #c7cfc8;
  --b2a-muted-ink: #455047;
}

body:has(.b2a-shell) {
  background: var(--b2a-paper) !important;
  color: var(--b2a-ink) !important;
}

.b2a-shell,
.b2a-content-page,
.b2a-partner-home,
.b2a-dashboard,
.b2a-app-backend {
  background: var(--b2a-paper) !important;
  color: var(--b2a-ink) !important;
}

.b2a-portal-nav {
  background: rgba(255, 253, 247, 0.98) !important;
  border-bottom: 2px solid var(--b2a-ink) !important;
  box-shadow: none !important;
}

.b2a-portal-brand,
.b2a-portal-links a {
  color: var(--b2a-ink) !important;
  letter-spacing: 0 !important;
}

.b2a-portal-links a:is(:hover, :focus-visible, .is-active) {
  color: var(--b2a-green-deep) !important;
  text-decoration-color: var(--b2a-red) !important;
}

.b2a-button,
.b2a-button-primary,
.b2a-button-secondary,
.b2a-dashboard-tabs a {
  border-radius: 4px !important;
  letter-spacing: 0 !important;
}

.b2a-button-primary {
  background: var(--b2a-green) !important;
  border-color: var(--b2a-green) !important;
  color: #fff !important;
}

.b2a-button-primary:is(:hover, :focus-visible) {
  background: var(--b2a-green-deep) !important;
}

.b2a-button-secondary {
  background: var(--b2a-paper) !important;
  border-color: var(--b2a-ink) !important;
  color: var(--b2a-ink) !important;
}

.b2a-bright-hero {
  display: grid;
  align-content: end;
  min-height: clamp(350px, 58vh, 620px);
  padding: clamp(32px, 7vw, 96px) clamp(20px, 6vw, 80px);
  background: var(--b2a-paper-blue);
  border-bottom: 3px solid var(--b2a-ink);
}

.b2a-network-hero {
  position: relative;
  min-height: clamp(620px, 82vh, 780px);
  overflow: hidden;
  border-bottom: 3px solid var(--b2a-ink);
  background: var(--b2a-paper-blue);
}

.b2a-network-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.b2a-network-hero-copy {
  position: absolute;
  inset: auto 0 0;
  box-sizing: border-box;
  width: min(100%, 1180px);
  padding: clamp(28px, 5vw, 68px);
  background: rgba(255, 253, 247, 0.94);
  border-top: 3px solid var(--b2a-ink);
}

.b2a-network-hero-copy h1 {
  max-width: 1060px;
  margin: 6px 0 16px;
  color: var(--b2a-ink) !important;
  font-size: 4.4rem;
  line-height: 1;
  letter-spacing: 0 !important;
}

.b2a-network-hero-copy > p:not(.b2a-reclaim-line) {
  max-width: 850px;
  color: var(--b2a-muted-ink) !important;
  font-size: 1.08rem;
  line-height: 1.6;
}

.b2a-two-engine {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 3px solid var(--b2a-ink);
  border-bottom: 3px solid var(--b2a-ink);
}

.b2a-two-engine > section {
  min-width: 0;
  padding: clamp(34px, 6vw, 82px);
  background: #fff;
}

.b2a-two-engine > section:first-child {
  border-right: 2px solid var(--b2a-ink);
  background: #fff8de;
}

.b2a-two-engine h2,
.b2a-bilateral-band h2,
.b2a-home-photo-ledger h2,
.b2a-sponsor-market-band h2 {
  margin: 8px 0 18px;
  color: var(--b2a-ink) !important;
  font-size: 2.4rem;
  line-height: 1.1;
  letter-spacing: 0 !important;
}

.b2a-two-engine li {
  margin-bottom: 9px;
}

.b2a-two-engine a,
.b2a-bilateral-band a,
.b2a-home-photo-ledger a {
  color: var(--b2a-green-deep) !important;
  font-weight: 800;
}

.b2a-bilateral-band {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 6vw, 90px);
  padding: clamp(40px, 7vw, 94px);
  background: var(--b2a-paper-blue);
  border-bottom: 3px solid var(--b2a-ink);
}

.b2a-bilateral-band p {
  color: var(--b2a-muted-ink) !important;
  font-size: 1.08rem;
  line-height: 1.7;
}

.b2a-home-photo-ledger,
.b2a-sponsor-market-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 3px solid var(--b2a-ink);
}

.b2a-home-photo-ledger figure,
.b2a-sponsor-market-band img {
  min-width: 0;
  height: 100%;
  min-height: 500px;
  margin: 0;
  object-fit: cover;
}

.b2a-home-photo-ledger figure {
  display: grid;
  grid-template-rows: 1fr auto;
}

.b2a-home-photo-ledger figure img {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
}

.b2a-home-photo-ledger figcaption {
  padding: 12px 18px;
  background: var(--b2a-ink);
  color: #fff;
}

.b2a-home-photo-ledger > section,
.b2a-sponsor-market-band > div {
  display: grid;
  align-content: center;
  padding: clamp(38px, 6vw, 82px);
  background: #fff;
}

.b2a-sponsor-market-band > div {
  background: #e8f7eb;
}

.b2a-sponsor-market-band img {
  width: 100%;
}

.b2a-home-route-index {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 3px solid var(--b2a-ink);
}

.b2a-home-route-index a {
  min-width: 0;
  padding: 28px;
  border-right: 1px solid var(--b2a-line);
  background: #fff;
  color: var(--b2a-muted-ink) !important;
  text-decoration: none;
}

.b2a-home-route-index a:last-child {
  border-right: 0;
}

.b2a-home-route-index span {
  display: block;
  margin-bottom: 8px;
  color: var(--b2a-ink);
  font-size: 1.25rem;
  font-weight: 800;
}

.b2a-bright-hero h1 {
  max-width: 1050px;
  margin: 8px 0 18px;
  color: var(--b2a-ink) !important;
  font-size: clamp(2.35rem, 5.6rem, 5.6rem);
  line-height: 0.99;
  letter-spacing: 0 !important;
}

.b2a-bright-hero > p:last-child {
  max-width: 850px;
  margin: 0;
  color: var(--b2a-muted-ink) !important;
  font-size: 1.15rem;
  line-height: 1.65;
}

.b2a-reclaim-line,
.b2a-panel-kicker {
  color: var(--b2a-red) !important;
  font-weight: 800;
  letter-spacing: 0 !important;
}

.b2a-ecosystem-map,
.b2a-standards-ledger,
.b2a-route-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 2px solid var(--b2a-ink);
}

.b2a-ecosystem-map article,
.b2a-standards-ledger section,
.b2a-route-ledger article {
  min-width: 0;
  padding: clamp(24px, 4vw, 56px);
  border-right: 1px solid var(--b2a-line);
  background: #fff;
}

.b2a-ecosystem-map article:last-child,
.b2a-standards-ledger section:last-child,
.b2a-route-ledger article:last-child {
  border-right: 0;
}

.b2a-ecosystem-map span,
.b2a-route-ledger span {
  display: block;
  margin-bottom: 22px;
  color: var(--b2a-red);
  font-weight: 800;
}

.b2a-ecosystem-map h2,
.b2a-standards-ledger h2,
.b2a-route-ledger h2,
.b2a-policy-band h2,
.b2a-removal-policy h2,
.b2a-deal-terms h2 {
  color: var(--b2a-ink) !important;
  letter-spacing: 0 !important;
}

.b2a-standards-ledger {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.b2a-route-ledger {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.b2a-policy-band,
.b2a-removal-policy {
  padding: clamp(32px, 6vw, 80px);
  background: var(--b2a-gold);
  color: var(--b2a-ink);
  border-bottom: 3px solid var(--b2a-ink);
}

.b2a-removal-policy {
  background: #fff2ef;
  border-top: 3px solid var(--b2a-red);
}

.b2a-deal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.55fr);
  gap: 0;
  border-bottom: 3px solid var(--b2a-ink);
}

.b2a-deal-form,
.b2a-deal-terms {
  padding: clamp(28px, 5vw, 64px);
  background: #fff;
}

.b2a-deal-terms {
  background: #e5f5e9;
  border-left: 2px solid var(--b2a-ink);
}

.b2a-deal-terms li {
  margin: 0 0 14px;
}

.b2a-form-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.b2a-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.b2a-form input,
.b2a-form select,
.b2a-form textarea,
.b2a-case-row textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #778178 !important;
  border-radius: 3px !important;
  background: #fff !important;
  color: var(--b2a-ink) !important;
}

.b2a-form :is(input, select, textarea):focus,
.b2a-case-row textarea:focus {
  outline: 3px solid rgba(239, 185, 40, 0.65) !important;
  outline-offset: 1px;
  border-color: var(--b2a-ink) !important;
}

.b2a-contribution-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 2px solid var(--b2a-ink);
  background: #fff;
}

.b2a-contribution-summary article {
  min-width: 0;
  padding: 28px;
  border-right: 1px solid var(--b2a-line);
}

.b2a-contribution-summary article:last-child {
  border-right: 0;
}

.b2a-contribution-summary strong {
  display: block;
  color: var(--b2a-green-deep);
  font-size: 2.3rem;
}

.b2a-receipt-list,
.b2a-proposal-list {
  display: grid;
  gap: 12px;
}

.b2a-receipt-list article,
.b2a-case-row {
  padding: 20px;
  border: 1px solid var(--b2a-line);
  background: #fff;
}

.b2a-receipt-list article > span,
.b2a-case-row > span {
  display: inline-block;
  margin-right: 12px;
  color: var(--b2a-red);
  font-weight: 800;
}

.b2a-ad-slot {
  box-sizing: border-box;
  overflow: hidden;
  width: min(100%, 1180px);
  min-height: 132px;
  margin: 24px auto;
  padding: 14px;
  border: 1px solid #8c948d !important;
  border-radius: 2px !important;
  background: #fff !important;
  color: var(--b2a-ink) !important;
  text-align: center;
}

.b2a-ad-slot > p {
  margin: 0 0 10px;
  color: #5f685f !important;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0 !important;
}

.b2a-ad-leaderboard,
.b2a-ad-footer {
  min-height: 148px;
}

.b2a-ad-rail {
  min-height: 280px;
}

.b2a-directory-ad-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 0 clamp(18px, 4vw, 64px);
}

.b2a-directory-rail {
  position: sticky;
  top: 86px;
}

.b2a-directory-rail .b2a-ad-rail {
  width: 300px;
  min-height: 250px;
  margin: 0;
}

.b2a-directory-results {
  min-width: 0;
}

.b2a-ad-infeed {
  grid-column: 1 / -1;
  min-height: 170px;
}

.b2a-house-ad a {
  display: block;
  color: var(--b2a-green-deep) !important;
  font-weight: 800;
}

.b2a-house-ad span {
  display: block;
  max-width: 720px;
  margin: 8px auto 0;
  color: var(--b2a-muted-ink) !important;
}

.b2a-resource-source,
.b2a-route-ledger a {
  color: var(--b2a-green-deep) !important;
  font-weight: 800;
}

.b2a-consent-contact,
.b2a-case-notice {
  padding: 14px 16px;
  border-left: 5px solid var(--b2a-green);
  background: #eefaf1;
}

.b2a-panel,
.b2a-opportunity-card,
.b2a-auth-card,
.b2a-ops-card {
  border-color: var(--b2a-line) !important;
  border-radius: 5px !important;
  background: #fff !important;
  color: var(--b2a-ink) !important;
  box-shadow: none !important;
}

.b2a-panel :is(h1, h2, h3, p, strong, span),
.b2a-opportunity-card :is(h2, h3, p, strong, span),
.b2a-dashboard-panel :is(h1, h2, h3, p, strong, span) {
  color: inherit;
}

.b2a-dashboard-tabs {
  border-bottom-color: var(--b2a-ink) !important;
}

.b2a-dashboard-tabs a {
  color: var(--b2a-ink) !important;
}

.b2a-dashboard-tabs a.is-active {
  background: var(--b2a-green) !important;
  color: #fff !important;
}

.b2a-notice {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 5px solid var(--b2a-green);
  background: #eefaf1;
  color: var(--b2a-ink);
}

.b2a-notice-error {
  border-left-color: var(--b2a-red);
  background: #fff0ed;
}

.b2a-portal-footer {
  background: var(--b2a-ink) !important;
  color: #fff !important;
}

.b2a-portal-footer :is(a, p, strong) {
  color: #fff !important;
}

/* WordPress nests Auntie AI inside two alignfull blocks. Neutralize the
   duplicated viewport pull while preserving the centered application shell. */
body:has(.b2a-auntie-ai) :is(.wp-block-group.alignfull, .entry-content.alignfull) {
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body:has(.b2a-auntie-ai) .b2a-shell.b2a-auntie-ai {
  left: auto !important;
  right: auto !important;
  width: min(1180px, calc(100vw - 2rem)) !important;
  max-width: min(1180px, calc(100vw - 2rem)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (max-width: 900px) {
  .b2a-directory-ad-layout {
    grid-template-columns: 1fr;
  }

  .b2a-directory-rail {
    position: static;
  }

  .b2a-directory-rail .b2a-ad-rail {
    width: 100%;
  }

  .b2a-ecosystem-map,
  .b2a-standards-ledger,
  .b2a-route-ledger,
  .b2a-deal-layout {
    grid-template-columns: 1fr;
  }

  .b2a-ecosystem-map article,
  .b2a-standards-ledger section,
  .b2a-route-ledger article {
    border-right: 0;
    border-bottom: 1px solid var(--b2a-line);
  }

  .b2a-deal-terms {
    border-top: 2px solid var(--b2a-ink);
    border-left: 0;
  }

  .b2a-two-engine,
  .b2a-bilateral-band,
  .b2a-home-photo-ledger,
  .b2a-sponsor-market-band {
    grid-template-columns: 1fr;
  }

  .b2a-two-engine > section:first-child {
    border-right: 0;
    border-bottom: 2px solid var(--b2a-ink);
  }

  .b2a-home-route-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .b2a-bright-hero {
    min-height: 430px;
    padding: 28px 18px;
  }

  .b2a-bright-hero h1 {
    font-size: 2.55rem;
  }

  .b2a-network-hero {
    display: flex;
    min-height: 0;
    flex-direction: column;
    overflow: visible;
  }

  .b2a-network-hero > img {
    position: relative;
    inset: auto;
    height: 240px;
    flex: 0 0 240px;
  }

  .b2a-network-hero-copy {
    position: relative;
    inset: auto;
    padding: 24px 18px;
  }

  .b2a-network-hero-copy h1 {
    font-size: 2.2rem;
  }

  .b2a-network-hero-copy > p:not(.b2a-reclaim-line) {
    font-size: 1rem;
  }

  .b2a-home-route-index {
    grid-template-columns: 1fr;
  }

  .b2a-home-route-index a {
    border-right: 0;
    border-bottom: 1px solid var(--b2a-line);
  }

  .b2a-form-pair,
  .b2a-contribution-summary {
    grid-template-columns: 1fr;
  }

  .b2a-contribution-summary article {
    border-right: 0;
    border-bottom: 1px solid var(--b2a-line);
  }

  .b2a-contribution-summary article:last-child {
    border-bottom: 0;
  }

  .b2a-ad-slot {
    min-height: 112px;
    margin: 16px 0;
  }
}
