/* ==========================================================================
   Foundation 40-impact: "Our Impact - What we've done"
   Live: desktop + tablet frame framer-1sux63c (inner framer-1dbh47t), phone frame framer-wba0vs.
   Breakpoints (foundation page): desktop >= 1200, tablet 810 to 1199.98, phone <= 809.98.
   ========================================================================== */

/* ---------- shared (all widths) ---------- */
.nf-fd-impact { padding: 0 12px 12px; }
.nf-fd-impact__frame {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 40px;
  width: 100%; padding: 140px; border-radius: 12px; overflow: clip; background-color: var(--nf-green);
}
.nf-fd-impact__inner { position: relative; overflow: clip; }
.nf-fd-impact p, .nf-fd-impact h3 { margin: 0; font-family: var(--nf-font-regular); font-weight: 400; letter-spacing: normal; }
.nf-fd-impact__lead-text, .nf-fd-impact__note-text, .nf-fd-impact__num-text, .nf-fd-impact__card-title-text, .nf-fd-impact__card-desc-text { text-align: left; }

/* text boxes (Framer: flex column wrappers around one text element, pre-wrap on the text itself) */
.nf-fd-impact__lead, .nf-fd-impact__note, .nf-fd-impact__num, .nf-fd-impact__label,
.nf-fd-impact__card-title, .nf-fd-impact__card-desc { display: flex; flex-direction: column; justify-content: flex-start; flex: 0 0 auto; position: relative; }
.nf-fd-impact__lead-text { font-size: 42px; line-height: 50.4px; color: var(--nf-white); white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; }
.nf-fd-impact__note-text { font-size: 24px; line-height: 28.8px; color: var(--nf-white); white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; }

/* map: desktop / tablet component (hover swaps to the labelled map, no transition), phone image */
.nf-fd-impact__map { position: relative; cursor: pointer; aspect-ratio: 2.33861 / 1; }
.nf-fd-impact__map-phone { display: none; position: relative; width: 100%; aspect-ratio: 2.3385 / 1; }
.nf-fd-impact__map-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.nf-fd-impact__map-img--hover { visibility: hidden; }
@media (hover: hover) {
  .nf-fd-impact__map:hover .nf-fd-impact__map-img--hover { visibility: visible; }
  .nf-fd-impact__map:hover .nf-fd-impact__map-img:not(.nf-fd-impact__map-img--hover) { visibility: hidden; }
}

/* stats card */
.nf-fd-impact__stats {
  display: flex; flex-direction: row; justify-content: center; align-items: flex-start; gap: 32px;
  padding: 40px 20px; border-radius: 20px; overflow: clip; background-color: var(--nf-white);
}
.nf-fd-impact__stat { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; flex: 1 0 0px; width: 1px; overflow: clip; }
.nf-fd-impact__num-text { font-size: 24px; line-height: 28.8px; color: var(--nf-black); white-space: pre; }
.nf-fd-impact__label-text { font-size: 14px; line-height: 16.8px; color: var(--nf-black); white-space: pre; text-align: left; }
.nf-fd-impact__label-text--center { white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; text-align: center; }
.nf-fd-impact__label--research { width: 134px; }
.nf-fd-impact__label--papers { width: 123px; }
.nf-fd-impact__label--reach { width: 100%; }

/* cards */
.nf-fd-impact__cards { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 20px; overflow: clip; }
.nf-fd-impact__card {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px;
  flex: 1 0 0px; width: 1px; padding: 24px; border-radius: 12px; overflow: clip; cursor: pointer;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.19s cubic-bezier(0.2, 0, 0.4, 1);
}
.nf-fd-impact__card::after {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--nf-white); border-radius: 12px; pointer-events: none;
}
.nf-fd-impact__card--research { align-self: stretch; }
.nf-fd-impact__icon, .nf-fd-impact__card-title-text, .nf-fd-impact__card-desc-text {
  color: var(--nf-white); transition: color 0.19s cubic-bezier(0.2, 0, 0.4, 1);
}
.nf-fd-impact__icon { flex: 0 0 auto; position: relative; overflow: hidden; }
.nf-fd-impact__icon--data { width: 40px; height: 46px; }
.nf-fd-impact__icon--research { width: 36px; height: 36px; }
.nf-fd-impact__card-body { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; flex: 0 0 auto; width: 100%; overflow: clip; }
.nf-fd-impact__card--research .nf-fd-impact__card-body { justify-content: flex-end; flex: 1 0 0px; height: 1px; }
.nf-fd-impact__card--research .nf-fd-impact__card-title { flex: 1 0 0px; height: 1px; }
.nf-fd-impact__card-title, .nf-fd-impact__card-desc { width: 100%; }
.nf-fd-impact__card-title-text { font-size: 24px; line-height: 28.8px; white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; }
.nf-fd-impact__card-desc-text { font-size: 16px; line-height: 19.2px; white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; }
.nf-fd-impact__btn {
  display: flex; flex-direction: row; justify-content: flex-start; align-items: center; gap: 10px; flex: 0 0 auto;
  width: min-content; height: 54px; padding: 16px 24px; border-radius: 32px;
  background-color: var(--nf-white); color: rgb(0, 0, 238); text-decoration: none;
  transition: background-color 0.19s cubic-bezier(0.2, 0, 0.4, 1);
}
.nf-fd-impact__btn-text { flex: 0 0 auto; font-size: 21px; line-height: 25.2px; white-space: pre; text-align: start; color: var(--nf-black); transition: color 0.19s cubic-bezier(0.2, 0, 0.4, 1); }
.nf-fd-impact__btn:focus-visible { outline: 2px solid var(--nf-black); outline-offset: 2px; }
@media (hover: hover) {
  .nf-fd-impact__card:hover { background-color: var(--nf-white); }
  .nf-fd-impact__card:hover .nf-fd-impact__icon, .nf-fd-impact__card:hover .nf-fd-impact__card-title-text,
  .nf-fd-impact__card:hover .nf-fd-impact__card-desc-text { color: var(--nf-black); }
  .nf-fd-impact__card:hover .nf-fd-impact__btn { background-color: var(--nf-black); }
  .nf-fd-impact__card:hover .nf-fd-impact__btn-text { color: var(--nf-white); }
}

/* scroll reveal (live: opacity 0 -> 1 in 0.39s once half of the element is in view, no translate) */
.nf-fd-impact [data-fd-reveal] { opacity: 0; transition: opacity 0.39s cubic-bezier(0.3, 0.4, 0.3, 1); }
.nf-fd-impact [data-fd-reveal].is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .nf-fd-impact [data-fd-reveal] { opacity: 1; transition: none; } }

/* ---------- desktop (>= 1200): fixed 936 x 1214 box, children absolutely placed (Framer) ---------- */
@media (min-width: 1200px) {
  .nf-fd-impact__inner { width: 936px; height: 1214px; flex: 0 0 auto; }
  .nf-fd-impact__lead, .nf-fd-impact__map, .nf-fd-impact__stats, .nf-fd-impact__note, .nf-fd-impact__cards {
    position: absolute; left: 50%; width: 936px; transform: translateX(-50%);
  }
  .nf-fd-impact__lead { top: 0; }
  .nf-fd-impact__map { top: 192px; }
  .nf-fd-impact__stats { bottom: 414px; }
  .nf-fd-impact__note { bottom: 316px; }
  .nf-fd-impact__cards { bottom: 1px; }
}

/* ---------- tablet (810 to 1199.98): one flex column ---------- */
@media (min-width: 810px) and (max-width: 1199.98px) {
  .nf-fd-impact__inner { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 40px; width: 100%; }
  .nf-fd-impact__lead, .nf-fd-impact__map, .nf-fd-impact__stats, .nf-fd-impact__note, .nf-fd-impact__cards { width: 100%; }
  .nf-fd-impact__stats { gap: 10px; }
  .nf-fd-impact__num-text { font-size: 21px; line-height: 25.2px; }
  .nf-fd-impact__label-text { font-size: 12px; line-height: 14.4px; }
  .nf-fd-impact__label { width: 100%; }
  .nf-fd-impact__label--short .nf-fd-impact__label-text { white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; }
}

/* ---------- phone (<= 809.98): different Framer tree ---------- */
@media (max-width: 809.98px) {
  .nf-fd-impact__frame { justify-content: flex-start; align-items: flex-start; padding: 80px 20px; }
  .nf-fd-impact__inner { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 40px; width: 100%; overflow: visible; }
  .nf-fd-impact__lead, .nf-fd-impact__stats, .nf-fd-impact__note, .nf-fd-impact__cards { width: 100%; }
  .nf-fd-impact__lead-text { font-size: 24px; line-height: 28.8px; }
  .nf-fd-impact__note-text { font-size: 18px; line-height: 21.6px; }
  .nf-fd-impact__wide-only { display: none; }
  .nf-fd-impact__map { display: none; }
  .nf-fd-impact__map-phone { display: block; }

  .nf-fd-impact__stats { flex-direction: column; justify-content: center; align-items: center; gap: 32px; }
  .nf-fd-impact__stat { flex: 0 0 auto; width: min-content; }
  .nf-fd-impact__label--reach { width: 183px; }

  .nf-fd-impact__cards { flex-direction: column; justify-content: center; align-items: center; gap: 10px; }
  .nf-fd-impact__card { flex: 0 0 auto; width: 100%; cursor: auto; }
  .nf-fd-impact__card--research { align-self: auto; }
  .nf-fd-impact__card--research .nf-fd-impact__card-body { justify-content: center; flex: 0 0 auto; height: auto; }
  .nf-fd-impact__card--research .nf-fd-impact__card-title { flex: 0 0 auto; height: auto; }
  .nf-fd-impact__card-desc-text { font-size: 14px; line-height: 16.8px; }
  .nf-fd-impact__btn { padding: 14px 24px; }
  .nf-fd-impact__btn-text { font-size: 16px; line-height: 19.2px; }
}
@media (max-width: 809.98px) and (hover: hover) {
  /* phone frame on live is plain markup: no card hover */
  .nf-fd-impact__card:hover { background-color: rgba(0, 0, 0, 0); }
  .nf-fd-impact__card:hover .nf-fd-impact__icon, .nf-fd-impact__card:hover .nf-fd-impact__card-title-text,
  .nf-fd-impact__card:hover .nf-fd-impact__card-desc-text { color: var(--nf-white); }
  .nf-fd-impact__card:hover .nf-fd-impact__btn { background-color: var(--nf-white); }
  .nf-fd-impact__card:hover .nf-fd-impact__btn-text { color: var(--nf-black); }
}

/* Phone: the standard phone pill, 15px text, 35px tall (was 16px / 54px) (QC 2026-10-28). */
@media (max-width: 809.98px) {
  .nf-fd-impact__btn { height: 35px; padding: 0 16px; }
  .nf-fd-impact__btn-text { font-size: 15px; line-height: 1.2; }
}

/* The "View" / "Lihat" pill sits flush with the bottom of this box; with clipping on, a fractional position shaved up
   to 0.4px off its bottom edge (810). Nothing in the box needs clipping (QC 2026-10-28). */
.nf-fd-impact__card-body { overflow: visible; }

/* Launch QA (2026-10-30): phones read "guiding people make healthier choices" (live hides " to" there); keep the word. */
.nf-fd-impact__note-text .nf-fd-impact__wide-only { display: inline; }
