/* ==========================================================================
   Utility / investment story: operating snapshot, business model, system
   economics, customers, water quality & data, roadmap, risk, governance,
   ways to partner and resources. Loaded after styles.css and fund-news.css.
   Uses the site's colour and type tokens; values after commas are fallbacks.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Data labels: every figure says what kind of figure it is
   -------------------------------------------------------------------------- */
.data-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
  border: 1px solid transparent;
}

.data-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.data-label.is-actual {
  background: var(--pill-live-bg, #e8f9ef);
  color: var(--pill-live-fg, #15803d);
}

.data-label.is-model {
  background: var(--pill-soon-bg, #fff7e6);
  color: var(--pill-soon-fg, #a16207);
}

.data-label.is-target {
  background: rgba(124, 58, 237, 0.1);
  color: #6d28d9;
}

.data-label.is-offer {
  background: var(--blue-soft, #eaf8ff);
  color: var(--blue, #0878be);
}

.data-label.is-pending {
  background: transparent;
  border-color: var(--line, #d7e8ef);
  color: var(--muted, #557083);
}

.data-label.is-pending::before {
  display: none;
}

:root[data-theme="dark"] .data-label.is-target {
  background: rgba(167, 139, 250, 0.16);
  color: #c4b5fd;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .data-label.is-target {
    background: rgba(167, 139, 250, 0.16);
    color: #c4b5fd;
  }
}


.fine-print {
  font-size: var(--fs-small, 0.875rem);
  color: var(--muted, #557083);
}

.fine-print a {
  color: var(--blue, #0878be);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Shared cards, metric lists and tables
   -------------------------------------------------------------------------- */
.metric-card,
.table-card {
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line, #d7e8ef);
  background: var(--surface, #ffffff);
  box-shadow: var(--shadow-sm, 0 12px 32px rgba(7, 40, 68, 0.06));
  min-width: 0;
}

.metric-card + .metric-card,
.biz-grid + .metric-card,
.econ-bars + .metric-card,
.roadmap + .metric-card,
.growth-tracker + .table-card,
.cards + .metric-card,
.connection-fees + .metric-card {
  margin-top: 22px;
}

.metric-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.metric-list {
  margin: 0;
  display: grid;
}

.metric-list > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line, #d7e8ef);
}

.metric-list > div:last-child {
  border-bottom: 0;
}

.metric-list dt {
  color: var(--text, #17364a);
}

.metric-list dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
  color: var(--ink, #082033);
  font-variant-numeric: tabular-nums;
}

.metric-list dd small {
  font-weight: 500;
  color: var(--muted, #557083);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: var(--fs-small, 0.875rem);
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line, #d7e8ef);
}

.data-table thead th {
  color: var(--muted, #557083);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.75rem;
}

.data-table tbody th {
  color: var(--ink, #082033);
  font-weight: 800;
}

.data-table tbody th small {
  font-weight: 500;
  color: var(--muted, #557083);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.risk-table {
  min-width: 560px;
}

.risk-table tbody th {
  width: 32%;
}

.tick-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.tick-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text, #17364a);
  line-height: 1.55;
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.35em;
  width: 14px;
  height: 8px;
  border-left: 2.5px solid var(--green, #22c55e);
  border-bottom: 2.5px solid var(--green, #22c55e);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   What Pii-Maleng is: responsibilities
   -------------------------------------------------------------------------- */
.resp-title {
  margin-top: 22px;
  font-weight: 800;
  color: var(--ink, #082033);
}

.resp-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
}

.resp-chips li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line, #d7e8ef);
  background: var(--surface, #ffffff);
  color: var(--text, #17364a);
  font-size: var(--fs-small, 0.875rem);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Operating snapshot (dashboard)
   -------------------------------------------------------------------------- */
.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.dash-updated {
  font-size: var(--fs-small, 0.875rem);
  color: var(--muted, #557083);
}

.stats.dashboard {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .stats.dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.stats.dashboard article {
  border-top: 3px solid var(--brand-fill, #0878be);
}

/* --------------------------------------------------------------------------
   How it works: current network vs standard design
   -------------------------------------------------------------------------- */
.footprint-compare {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.fp-col {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line, #d7e8ef);
  background: var(--surface, #ffffff);
}

.fp-col ul {
  margin: 12px 0 0;
  padding-left: 1.1em;
  display: grid;
  gap: 6px;
  font-size: var(--fs-small, 0.875rem);
  color: var(--text, #17364a);
}

.diagram-flag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line, #d7e8ef);
  background: var(--pill-soon-bg, #fff7e6);
  color: var(--text, #17364a);
  font-size: var(--fs-small, 0.875rem);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Business model
   -------------------------------------------------------------------------- */
.biz-cycle {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  counter-reset: none;
}

.biz-cycle li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 18px 14px;
  border-radius: 18px;
  border: 1px solid var(--line, #d7e8ef);
  background: var(--surface, #ffffff);
  box-shadow: var(--shadow-sm, 0 12px 32px rgba(7, 40, 68, 0.06));
}

.biz-cycle li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 30px;
  width: 8px;
  height: 8px;
  border-top: 2.5px solid var(--blue, #0878be);
  border-right: 2.5px solid var(--blue, #0878be);
  transform: rotate(45deg);
  z-index: 1;
}

.biz-cycle li:last-child {
  background: var(--brand-fill, #0878be);
  border-color: transparent;
}

.biz-cycle li:last-child strong,
.biz-cycle li:last-child span {
  color: #ffffff;
}

.biz-cycle li:last-child .cycle-num {
  background: #ffffff;
  color: var(--brand-fill, #0878be);
}

.cycle-num {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft, #eaf8ff);
  color: var(--blue, #0878be);
  font-size: var(--fs-small, 0.875rem);
  font-weight: 800;
}

.biz-cycle strong {
  font-size: var(--fs-h4, 1.125rem);
  color: var(--ink, #082033);
}

.biz-cycle span:not(.cycle-num) {
  font-size: var(--fs-small, 0.875rem);
  color: var(--muted, #557083);
  line-height: 1.45;
}

.biz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.channel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}

.channel-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "name tag" "desc tag";
  column-gap: 12px;
  row-gap: 2px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line, #d7e8ef);
}

.channel-list li:last-child {
  border-bottom: 0;
}

.channel-list strong {
  grid-area: name;
  color: var(--ink, #082033);
}

.channel-list span:not(.data-label):not(.placeholder) {
  grid-area: desc;
  font-size: var(--fs-small, 0.875rem);
  color: var(--muted, #557083);
}

.channel-list .data-label,
.channel-list .placeholder {
  grid-area: tag;
  justify-self: end;
}

/* --------------------------------------------------------------------------
   System economics
   -------------------------------------------------------------------------- */
.econ-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.econ-tile {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line, #d7e8ef);
  background: var(--surface, #ffffff);
}

.econ-tile strong {
  display: block;
  margin-top: 6px;
  font-size: var(--fs-stat);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink, #082033);
  font-variant-numeric: tabular-nums;
}

.econ-label {
  margin: 0;
  font-size: var(--fs-small, 0.875rem);
  font-weight: 700;
  color: var(--muted, #557083);
}

.econ-note {
  margin: 10px 0 0;
  font-size: var(--fs-small, 0.875rem);
  color: var(--muted, #557083);
}

.econ-capex {
  background: var(--panel-grad, linear-gradient(135deg, #f7fcff, #eef9ff));
}

.econ-bars {
  margin-top: 22px;
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid var(--line, #d7e8ef);
  background: var(--surface, #ffffff);
}

.eb-row {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr) 4em;
  align-items: center;
  gap: 14px;
}

.eb-row + .eb-row {
  margin-top: 12px;
}

.eb-label {
  font-weight: 700;
  color: var(--text, #17364a);
}

.eb-track {
  height: 14px;
  border-radius: 999px;
  background: var(--off, #f7fbfd);
  overflow: hidden;
}

.eb-bar {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: inherit;
  background: var(--brand-fill, #0878be);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.eb-bar.is-cost {
  background: #94a3b8;
}

.eb-bar.is-fcf {
  background: var(--green, #22c55e);
}

.js .econ-bars.reveal:not(.visible) .eb-bar {
  width: 0;
}

.eb-val {
  text-align: right;
  font-weight: 800;
  color: var(--ink, #082033);
  font-variant-numeric: tabular-nums;
}

.eb-note {
  margin: 14px 0 0;
  font-size: var(--fs-small, 0.875rem);
  color: var(--muted, #557083);
}

/* --------------------------------------------------------------------------
   Customers
   -------------------------------------------------------------------------- */
.customer-mix {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
}

.customer-mix li {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line, #d7e8ef);
  background: var(--surface, #ffffff);
}

.customer-mix strong {
  color: var(--ink, #082033);
}

.customer-mix .placeholder {
  font-size: 0.7rem;
}

/* --------------------------------------------------------------------------
   Water quality & data
   -------------------------------------------------------------------------- */
.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.quality-grid .metric-card + .metric-card {
  margin-top: 0;
}

.test-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed var(--line, #d7e8ef);
  background: var(--off, #f7fbfd);
}

.test-card-title {
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--ink, #082033);
}

.test-card dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.test-card dl > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.test-card dt {
  color: var(--muted, #557083);
  font-size: var(--fs-small, 0.875rem);
}

.test-card dd {
  margin: 0;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.proof-row > div {
  padding: 14px;
  border-radius: 14px;
  background: var(--blue-soft, #eaf8ff);
}

.proof-row strong {
  display: block;
  font-size: var(--fs-h3, 1.5rem);
  color: var(--blue, #0878be);
  line-height: 1.1;
}

.proof-row span {
  font-size: var(--fs-small, 0.875rem);
  color: var(--text, #17364a);
}

.status-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.status-steps li {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line, #d7e8ef);
}

.status-steps li.is-done {
  border-left: 4px solid var(--green, #22c55e);
}

.status-steps li.is-next {
  border-left: 4px dashed #7c3aed;
}

.status-steps strong {
  color: var(--ink, #082033);
}

.status-steps span:not(.data-label) {
  font-size: var(--fs-small, 0.875rem);
  color: var(--muted, #557083);
}

/* --------------------------------------------------------------------------
   Growth roadmap
   -------------------------------------------------------------------------- */
.roadmap {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}

.roadmap::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 30px;
  border-top: 3px dashed var(--line, #d7e8ef);
  z-index: 0;
}

.rm-step {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  justify-items: start;
  align-content: start;
  padding: 0 18px 20px;
  border-radius: 20px;
  border: 1px solid var(--line, #d7e8ef);
  background: var(--surface, #ffffff);
  box-shadow: var(--shadow-sm, 0 12px 32px rgba(7, 40, 68, 0.06));
}

.rm-year {
  margin-top: -1px;
  padding: 14px 16px;
  border-radius: 0 0 14px 14px;
  background: var(--off, #f7fbfd);
  border: 1px solid var(--line, #d7e8ef);
  border-top: 0;
  font-size: var(--fs-h3, 1.5rem);
  font-weight: 800;
  color: var(--ink, #082033);
  line-height: 1;
}

.rm-step.is-done .rm-year {
  background: var(--brand-fill, #0878be);
  border-color: var(--brand-fill, #0878be);
  color: #ffffff;
}

.rm-step.is-goal {
  border: 1.5px dashed #7c3aed;
}

.rm-step.is-goal .rm-year {
  background: #7c3aed;
  border-color: #7c3aed;
  color: #ffffff;
}

.rm-step h3 {
  font-size: var(--fs-h4, 1.125rem);
}

.rm-step p {
  margin: 0;
  font-size: var(--fs-small, 0.875rem);
  color: var(--muted, #557083);
}

/* --------------------------------------------------------------------------
   Governance
   -------------------------------------------------------------------------- */
.gov-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.gov-grid .metric-card + .metric-card {
  margin-top: 0;
}

.gov-grid h3 {
  font-size: var(--fs-h4, 1.125rem);
}

.gov-role {
  margin: 4px 0 14px;
  font-size: var(--fs-small, 0.875rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--eyebrow, #15803d);
}

/* --------------------------------------------------------------------------
   Ways to partner
   -------------------------------------------------------------------------- */
.pathways {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

.pathway {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line, #d7e8ef);
  background: var(--surface, #ffffff);
  box-shadow: var(--shadow-sm, 0 12px 32px rgba(7, 40, 68, 0.06));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.pathway:hover {
  transform: translateY(-3px);
  border-color: var(--blue, #0878be);
}

.pathway h3 {
  font-size: var(--fs-h4, 1.125rem);
}

.pathway p {
  margin: 0;
  font-size: var(--fs-small, 0.875rem);
  color: var(--muted, #557083);
}

.pathway-tag {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue-soft, #eaf8ff);
  color: var(--blue, #0878be);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pathway-link {
  margin-top: auto;
  padding-top: 10px;
  font-weight: 800;
  color: var(--blue, #0878be);
  text-decoration: none;
}

.pathway-link:hover {
  text-decoration: underline;
}

.pathway-feature {
  color: #e7f4fb;
  border-color: transparent;
  background: linear-gradient(160deg, #06283f 0%, #0a4d7a 100%);
}

.pathway-feature h3 {
  color: #ffffff;
}

.pathway-feature p {
  color: #bcd9ea;
}

.pathway-feature .pathway-tag {
  background: rgba(245, 158, 11, 0.18);
  color: #fcd34d;
}

.pathway-feature .pathway-link {
  color: #fcd34d;
}

.fund-title {
  margin: 0;
}

.fund-intro {
  max-width: 64ch;
  margin: 8px 0 22px;
  color: var(--muted, #557083);
}

/* --------------------------------------------------------------------------
   Resources
   -------------------------------------------------------------------------- */
.resource-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.resource-card {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid var(--line, #d7e8ef);
  background: var(--surface, #ffffff);
  box-shadow: var(--shadow-sm, 0 12px 32px rgba(7, 40, 68, 0.06));
}

.resource-card h3 {
  font-size: var(--fs-h4, 1.125rem);
}

.resource-card p {
  margin: 0;
  color: var(--muted, #557083);
}

.resource-card .btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.resource-feature {
  background: var(--panel-grad, linear-gradient(135deg, #f7fcff, #eef9ff));
}

.pack-list,
.resource-links {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 6px;
  color: var(--text, #17364a);
  font-size: var(--fs-small, 0.875rem);
}

.resource-links {
  list-style: none;
  padding: 0;
  gap: 10px;
  width: 100%;
}

.resource-links a {
  font-weight: 800;
  color: var(--blue, #0878be);
}

.resource-links small {
  color: var(--muted, #557083);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .biz-cycle {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .biz-cycle li:nth-child(4)::after {
    display: none;
  }

  .customer-mix {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quality-grid,
  .gov-grid,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .roadmap {
    grid-template-columns: minmax(0, 1fr);
  }

  .roadmap::before {
    left: 30px;
    right: auto;
    top: 0;
    bottom: 0;
    border-top: 0;
    border-left: 3px dashed var(--line, #d7e8ef);
  }

  .quality-grid,
  .gov-grid,
  .resource-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .biz-cycle {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .biz-cycle li::after {
    display: none;
  }

  .footprint-compare,
  .pathways,
  .customer-mix,
  .proof-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-mix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eb-row {
    grid-template-columns: 7em minmax(0, 1fr) 3.4em;
    gap: 10px;
  }

  .metric-list > div {
    flex-wrap: wrap;
  }

  .metric-list dd {
    text-align: left;
  }

  dd.placeholder {
    margin-left: 0;
  }

  .channel-list li {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "name" "desc" "tag";
  }

  .channel-list .data-label,
  .channel-list .placeholder {
    justify-self: start;
    margin-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) {
  .eb-bar,
  .pathway {
    transition: none;
  }

  .pathway:hover {
    transform: none;
  }
  }
}

.table-card + .map-module {
  margin-top: 22px;
}

/* Repeatable system: "financial model on request" panel */
.info-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  margin-top: 22px;
  padding: 24px 26px;
  border-radius: 22px;
  color: #e7f4fb;
  background: linear-gradient(160deg, #06283f 0%, #0a4d7a 100%);
  box-shadow: var(--shadow, 0 22px 55px rgba(7, 40, 68, 0.12));
}

.info-cta > div {
  flex: 1 1 420px;
}

.info-cta h3 {
  color: #ffffff;
  font-size: var(--fs-h4, 1.125rem);
}

.info-cta p {
  margin: 8px 0 0;
  color: #bcd9ea;
  font-size: var(--fs-small, 0.875rem);
}

.roadmap.roadmap-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

/* --------------------------------------------------------------------------
   The problem and our solution
   -------------------------------------------------------------------------- */
.ps-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.ps-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius, 16px);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.ps-problem {
  border-top: 4px solid #d97706;
}

.ps-solution {
  border-top: 4px solid var(--green);
}

.ps-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: var(--fs-tiny);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pill-soon-fg);
}

.ps-solution .ps-label {
  color: var(--pill-live-fg);
}

.ps-card ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 1.1em;
  color: var(--text);
}

.ps-arrow {
  align-self: center;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-fill);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.ps-arrow svg {
  width: 22px;
  height: 22px;
}

.competencies {
  margin-top: 28px;
}

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

  .ps-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
}

/* --------------------------------------------------------------------------
   Partners and social media
   -------------------------------------------------------------------------- */
.partners-title {
  margin-bottom: 14px;
  font-size: var(--fs-h4);
}

.follow-block {
  margin-top: 36px;
}

.partners-block[hidden] + .follow-block {
  margin-top: 0;
}

.follow-sub {
  margin: -6px 0 16px;
  color: var(--muted);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.partner-card {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

a.partner-card:hover {
  border-color: var(--blue);
}

.partner-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.partner-initials {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
}

.partner-text strong {
  display: block;
  line-height: 1.3;
}

.partner-text small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--fs-small);
}

.partners-section .social-link-labelled {
  width: auto;
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
}

.partners-section .social-link-labelled svg {
  color: var(--blue);
}

.partners-section .social-link-labelled:hover,
.partners-section .social-link-labelled:focus-visible {
  border-color: var(--blue);
  background: var(--blue-soft);
}

/* Problem / solution icon lists */
.ps-card .ps-list {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ps-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.ps-ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--pill-soon-bg);
  color: var(--pill-soon-fg);
  transition: transform 0.25s ease;
}

.ps-solution .ps-ico {
  background: var(--pill-live-bg);
  color: var(--pill-live-fg);
}

.ps-ico svg,
.ig-ico svg {
  width: 22px;
  height: 22px;
}

.ps-list li:hover .ps-ico {
  transform: scale(1.1) rotate(-4deg);
}

/* --------------------------------------------------------------------------
   Water quality: photo + icon grid + payment track
   -------------------------------------------------------------------------- */
.quality-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
}

.photo-panel {
  position: relative;
  margin: 0;
  border-radius: var(--radius, 16px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.photo-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-panel:hover img {
  transform: scale(1.05);
}

.photo-panel figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(4, 25, 42, 0.75);
  color: #ffffff;
  font-size: var(--fs-small);
  font-weight: 600;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.icon-grid,
.risk-grid {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.icon-grid li,
.risk-grid li {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.icon-grid li:hover,
.risk-grid li:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.icon-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
}

.icon-grid li > span:last-child {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: var(--fs-small);
}

.ig-ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  transition: background-color 0.25s ease, color 0.25s ease;
}

.icon-grid li:hover .ig-ico,
.risk-grid li:hover .ig-ico {
  background: var(--brand-fill);
  color: #ffffff;
}

.pay-track {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.pay-step {
  flex: 1 1 240px;
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.pay-step strong {
  color: var(--ink);
}

.pay-step.is-next {
  border-style: dashed;
}

.pay-arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
}

.pay-arrow svg {
  width: 18px;
  height: 18px;
}

/* Reliability */
.risk-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.risk-grid h3 {
  margin-top: 12px;
  font-size: var(--fs-h4);
}

.risk-grid p {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--fs-small);
}

@media (max-width: 1100px) {
  .risk-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

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

  .pay-arrow {
    transform: rotate(90deg);
    margin-inline: auto;
  }
}

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

/* ==========================================================================
   Uniform rhythm and type hierarchy (loaded last, so it sets the final look)
   One font family, one spacing scale. Headings are always larger than the
   text beneath them; small print is never smaller than --fs-tiny.
   ========================================================================== */
body {
  line-height: 1.65;
}

p {
  margin-top: 14px;
}

h2 + p,
h3 + p,
h4 + p {
  margin-top: 10px;
}

/* Sections */
.section,
.pii-section {
  padding-block: var(--space-section);
}

.section.compact {
  padding-block: 32px;
}

.section-head {
  margin-bottom: var(--space-head);
}

/* Bold labels inside cards act as small headings, so they match h4 */
.card strong,
.pii-features strong,
.cluster-info strong,
.why-list strong,
.climate-icons strong,
.channel-list strong,
.icon-grid strong,
.pay-step strong,
.status-steps strong,
.biz-cycle strong,
.pack-list strong {
  font-size: var(--fs-heading-3);
  line-height: 1.3;
}

.card h3,
.ps-card h3,
.growth-tile h3,
.why-card h3,
.metric-card h3,
.pathway h3,
.resource-card h3,
.rm-step h3,
.risk-grid h3,
.chart-card h3,
.map-module-head h3,
.consult-card h3,
.fund-summary h3,
.partner-org h3,
.climate-note h3,
.video-feature-body h3,
.news-title {
  font-size: var(--fs-heading-2);
  line-height: 1.25;
}

.news-item h4,
.partners-title {
  font-size: var(--fs-heading-3);
}

/* Descriptions under card headings: one size, one colour */
.pathway p,
.resource-card p,
.rm-step p,
.risk-grid p,
.climate-icons p,
.news-item p,
.growth-sub,
.consult-sub,
.channel-list span:not(.data-label):not(.placeholder),
.biz-cycle span:not(.cycle-num),
.icon-grid li > span:last-child,
.pii-features span {
  font-size: var(--fs-small);
  line-height: 1.55;
}

/* Spacing between grid items and inside cards */
.cards,
.stats,
.why-grid,
.growth-tracker,
.gallery,
.news-list,
.biz-grid,
.biz-cycle,
.econ-grid,
.pathways,
.resource-grid,
.risk-grid,
.icon-grid,
.ps-grid,
.roadmap,
.pii-grid,
.video-feature,
.climate-icons,
.fund-grid,
.partner-more,
.quality-media,
.post-grid {
  gap: var(--gap);
}

.card,
.stats article,
.ps-card,
.why-card,
.growth-tile,
.metric-card,
.pathway,
.resource-card,
.fund-summary,
.partner-org,
.consult-card,
.contact-form,
.pii-copy,
.chart-card,
.news-block,
.news-item,
.climate-note,
.risk-grid li,
.icon-grid li,
.video-feature {
  padding: var(--pad-card);
}

.card-media {
  padding: 0;
}

.stats.dashboard article {
  padding: var(--pad-card);
}

.pathways {
  margin-bottom: var(--space-head);
}

.news-block {
  margin-top: var(--space-head);
}

.video-feature {
  margin-bottom: var(--gap);
}

.chart-card,
.growth-tracker,
.biz-cycle {
  margin-top: var(--gap);
}

.growth-tracker {
  margin-top: 0;
  margin-bottom: var(--gap);
}

.biz-cycle {
  margin-top: 0;
  margin-bottom: var(--gap);
}

.dash-head {
  margin-bottom: var(--gap);
}

/* Fewer, larger columns for the climate points, so nothing is squeezed */
.climate-icons {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.quality-media,
.split,
.contact-grid {
  align-items: start;
}

/* Tablets and phones */
@media (max-width: 980px) {
  .gallery,
  .stats,
  .cards.three,
  .news-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --gap: 16px;
    --pad-card: 20px;
  }

  .gallery,
  .stats,
  .cards.three,
  .cards.two,
  .news-list,
  .pathways,
  .risk-grid,
  .icon-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-actions .btn,
  .news-more,
  .cal-submit {
    width: 100%;
  }

  /* Wide drawings scroll sideways rather than shrinking until labels are unreadable */
  .cluster-diagram {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cluster-svg {
    min-width: 700px;
  }

  .chart-canvas {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .bar-chart {
    min-width: 540px;
  }

  .chart-table-wrap {
    overflow-x: auto;
  }

  .map-controls {
    width: 100%;
  }

  .footer-links {
    gap: 10px 18px;
  }
}

.card-media h3,
.card-media p {
  padding-inline: var(--pad-card);
}

.card-media p {
  padding-bottom: var(--pad-card);
}

.card-media .icon {
  margin-left: var(--pad-card);
}

.risk-grid li,
.icon-grid li {
  padding: 22px;
}

/* From the sector */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.sector-card {
  display: flex;
  flex-direction: column;
  padding: var(--pad-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.sector-source {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: var(--fs-tiny);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sector-card h3 {
  font-size: var(--fs-heading-3);
}

.sector-card p:not(.sector-source) {
  color: var(--muted);
  font-size: var(--fs-small);
}

.sector-card a,
.sector-latest a {
  margin-top: auto;
  padding-top: 14px;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.sector-card a:hover,
.sector-latest a:hover {
  text-decoration: underline;
}

.sector-latest {
  margin-top: var(--gap);
}

.sector-latest ul {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.sector-latest li {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.sector-latest small {
  display: block;
  color: var(--muted);
}

.sector-latest a {
  display: inline;
  padding: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 980px) {
  .sector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

/* Climate and carbon */
.climate-icons {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.carbon-block {
  margin-top: var(--gap);
  padding: var(--pad-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.carbon-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.carbon-steps li {
  display: grid;
  align-content: start;
  gap: 6px;
}

.carbon-steps strong {
  color: var(--ink);
  font-size: var(--fs-heading-3);
  line-height: 1.3;
}

.carbon-steps span:not(.cycle-num) {
  color: var(--muted);
  font-size: var(--fs-small);
}

.sdg-links {
  margin-top: var(--gap);
}

.sdg-title {
  margin: 0 0 10px;
  color: var(--ink);
  font-weight: 800;
}

.sdg-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sdg-links a {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--blue);
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
}

.sdg-links a:hover {
  border-color: var(--blue);
}

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

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

.carbon-steps.carbon-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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