/* ==========================================================================
   Foundation sticky tab bar (live root .framer-euxgvv-container: position sticky, top 12px, z-index 6)
   Sits in the page column between the hero and the content sections, so it stays stuck to the end of the page.
   Breakpoints (Framer): desktop >= 1200, tablet 810-1199.98 (same as desktop), phone <= 809.98.
   - Pill: rgba(255,255,255,.5) + blur 5, radius 50. Desktop: padding 20, gap 60, fixed tab boxes 68/95/84/80 x 22,
     16px labels. Phone: 295 wide, padding 10, gap 20, equal tabs, 12px labels.
   - Active tab black, others #91c851. js/15-tabs.js: scroll-spy (a tab turns active once its section's top reaches the
     viewport top), colour change spring .4 / bounce .2 mixed in linear light, smooth scroll on click (target top, no
     offset). No hover state on live.
   - About us, Our impact and Participate labels fade in when half in view and out when they leave
     (spring .6 / bounce .1); The problem has no fade.
   ========================================================================== */

.nf-fd-tabs {
  --nf-fd-font: "SF Pro Display Regular", sans-serif;
  position: sticky; top: 12px; z-index: 6; flex: 0 0 auto; width: auto; height: auto;
}
.nf-fd-tabs__bar {
  position: relative; display: flex; flex-direction: row; justify-content: center; align-items: flex-start; gap: 60px;
  width: min-content; height: min-content; padding: 20px; border-radius: 50px; background-color: rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); overflow: clip; will-change: transform;
}
.nf-fd-tabs__link { position: relative; display: block; flex: 0 0 auto; height: 22px; text-decoration: none; cursor: pointer; overflow: visible; }
.nf-fd-tabs__link--about { width: 68px; }
.nf-fd-tabs__link--problem { width: 95px; }
.nf-fd-tabs__link--impact { width: 84px; }
.nf-fd-tabs__link--part { width: 80px; }
.nf-fd-tabs__label {
  position: absolute; top: 0; left: 0; flex: 0 0 auto; width: auto; height: auto; display: flex; flex-direction: column;
  justify-content: flex-start; white-space: pre;
}
.nf-fd-tabs__link--problem .nf-fd-tabs__label { left: 49%; transform: translateX(-50%); }
.nf-fd-tabs__text {
  font-family: var(--nf-fd-font); font-weight: 400; font-size: 16px; line-height: 1.2; letter-spacing: normal;
  text-align: left; color: var(--nf-green); white-space: inherit;
}
.nf-fd-tabs__link.is-active .nf-fd-tabs__text { color: var(--nf-black); }

.nf-fd-tabs [data-fd-appear] {
  opacity: 0;
  transition: opacity 0.67s linear(0, 0.0243, 0.0845, 0.1654, 0.2562, 0.3492, 0.4396, 0.524, 0.6008, 0.669, 0.7286, 0.7799, 0.8234, 0.8598, 0.8899, 0.9146, 0.9346, 0.9506, 0.9633, 0.9733, 0.981, 0.9869, 0.9914, 0.9947, 0.9971, 0.9988, 0.9999, 1.0007, 1.0012, 1.0014, 1.0015, 1.0015, 1.0014, 1.0013, 1.0012, 1.0011, 1.0009, 1.0008, 1.0007, 1.0005, 1);
}
.nf-fd-tabs [data-fd-appear].is-in { opacity: 1; }

/* ---------- phone <= 809.98 ---------- */
@media (max-width: 809.98px) {
  .nf-fd-tabs__bar { gap: 20px; width: 295px; padding: 10px; }
  .nf-fd-tabs__link, .nf-fd-tabs__link--about, .nf-fd-tabs__link--problem, .nf-fd-tabs__link--impact, .nf-fd-tabs__link--part {
    flex: 1 0 0px; width: 1px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 0;
  }
  .nf-fd-tabs__link--problem { flex-direction: row; }
  .nf-fd-tabs__label, .nf-fd-tabs__link--problem .nf-fd-tabs__label { position: relative; top: auto; left: auto; transform: none; }
  .nf-fd-tabs__link--about .nf-fd-tabs__label { width: 45px; white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; }
  .nf-fd-tabs__link--problem .nf-fd-tabs__label { width: 64px; white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; }
  .nf-fd-tabs__text { font-size: 12px; }
}

/* ---------- Bahasa (id-id) override, not on live (live id-id serves another version) ----------
   The tab boxes above are sized to the English labels; the Bahasa labels are wider ("Tentang Kami", "Dampak kami"),
   so on id-id each tab sizes to its label (desktop, tablet) and labels may wrap inside the equal phone tabs. */
html[lang="id"] .nf-fd-tabs__link { width: auto; }
html[lang="id"] .nf-fd-tabs__label { position: relative; }
@media (max-width: 809.98px) {
  html[lang="id"] .nf-fd-tabs__link { flex: 1 1 auto; width: auto; }
  html[lang="id"] .nf-fd-tabs__link .nf-fd-tabs__label { width: auto; white-space: normal; word-break: normal; overflow-wrap: normal; text-align: center; }
  html[lang="id"] .nf-fd-tabs__text { white-space: normal; word-break: normal; overflow-wrap: normal; text-align: center; }
}
/* Bahasa phone tabs on one line (QC 2026-10-28): with "Masalah" and "Dampak" (were "Masalahnya", "Dampak kami") the four
   labels fit the 295px bar at 12px, so they no longer wrap to two lines. */
@media (max-width: 809.98px) {
  html[lang="id"] .nf-fd-tabs__link .nf-fd-tabs__label, html[lang="id"] .nf-fd-tabs__text { white-space: nowrap; }
}
