/* NTFP-EP Indonesia: gaya Jejak Dampak (komponen home/impact/): judul, peta, legenda, pita angka, gaya 2, dan aturan layar
   kecil / pendek untuk Jejak Dampak. Dipindah tanpa diubah dari assets/components/home/beranda.css (21 Okt 2026); urutan
   aturan sama. Dimuat setelah hero/hero.css, sebelum impact-phone.css (yang menyembunyikan peta desktop di ponsel).
   Aturan peta itu sendiri (.map, .prov, .site, .site-tip, .site-list, legenda) ada di impact-map.css sejak 26 Okt 2026,
   dimuat tepat sebelum file ini. */
/* ---------- Our Impact: map + numbers ---------- */
/* Our Impact fits in one screen: heading row, map (sized to the height left over), legend, one-row stats band */
.impact{height:calc(100vh - var(--head-h-s));height:calc(100svh - var(--head-h-s));min-height:600px;display:flex;flex-direction:column;padding:48px 0 0;background:var(--jd-bg,var(--paper));box-sizing:border-box}
.impact-head{flex:none;width:100%;max-width:1120px;margin:0 auto;padding:0 40px 12px;display:grid;grid-template-columns:auto 1fr;gap:40px;align-items:end;box-sizing:border-box}
.impact .tag{margin:0 0 8px;font-size:14px;line-height:20px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--forest)}
.nw{white-space:nowrap}   /* a name that never splits at its hyphen (NTFP-EP) */
.impact h2{font-family:var(--font-head,var(--font));margin:0;font-size:36px;line-height:40px;font-weight:700;letter-spacing:-.02em;color:var(--ink);text-wrap:pretty}   /* one line while it fits; a narrow screen wraps it where it runs out (no forced break, no balancing) */
.impact-lede{margin:0 0 0 auto;max-width:460px;font-size:16px;line-height:24px;color:var(--ink-soft);text-wrap:pretty}
.impact-map{position:relative;flex:1 1 auto;min-height:200px;width:100%;max-width:1120px;margin:0 auto;padding:0 40px 12px;display:flex;flex-direction:column;box-sizing:border-box}
.stats-band{background:var(--sa-bg,var(--forest-deep));color:var(--sa-num,var(--paper))}
/* style 2 (PENGATURAN.jejakDampakGaya): label, title (on one line) and description top left, the map below them, and a
   dark green block about 20% wide down the whole right side of the section, holding the figures */
@media (min-width:900px){
  .impact.gaya-2{--blok:26%;--blok-k:.26;position:relative;display:grid;grid-template-columns:minmax(0,1fr) var(--blok);grid-template-rows:auto minmax(0,1fr);grid-template-areas:"head stats" "map stats";column-gap:40px;
    padding-left:var(--wadah-tepi);padding-right:calc(var(--wadah-tepi) - 40px);padding-bottom:24px}   /* left edge as the hero headline (40 px); 40 px between the map and the green block.
    Wider than 1920 px the whole layout is centred in the container and only the green block runs on to the right edge */
  .impact.gaya-2::after{content:"";position:absolute;top:0;right:0;bottom:0;width:calc(var(--wadah-tepi) - 40px + (100% - 2 * (var(--wadah-tepi) - 40px)) * var(--blok-k));background:var(--sa-bg,var(--forest-deep));pointer-events:none}   /* the green block, top to bottom (width: --blok) */
  .impact.gaya-2 > *{position:relative;z-index:1}
  .impact.gaya-2 .impact-head{grid-area:head;display:block;max-width:none;margin:0;padding:0 0 8px}
  .impact.gaya-2 .impact-map{grid-area:map;max-width:none;margin:0;padding:0;min-height:0}   /* the same gap left (page edge) and right (green block): 40 px */
  .impact.gaya-2 .map{height:min(100%, calc(((1 - var(--blok-k)) * 100vw - 80px - 2 * (1 - var(--blok-k)) * (max(40px, (100vw - var(--wadah)) / 2) - 40px)) * 346 / 924), 720px)}   /* (1 - blok) x 100vw = the width left of the block (74vw; 71vw on short screens, where it was fixed at 74 and the map ran up to 18 px under the block, fixed 19 Oct 2026); the max() is --wadah-tepi in vw, read from --wadah (40 up to 1920 px at the default 1840), so wider screens get the container's map width */
  .impact.gaya-2 .map-fit{justify-content:flex-start}   /* the map starts at the same left edge as the text */   /* fills the left side */
  .impact.gaya-2 .stats-band{grid-area:stats;align-self:center;background:none;display:flex;flex-direction:column;gap:28px;padding:0 72px 0 40px}   /* right: clear of the section dots */
  .impact.gaya-2 .impact-lede{margin:12px 0 0;max-width:760px}   /* the description under the title */
  .impact.gaya-2 .stats{max-width:none;margin:0;padding:0;grid-template-columns:1fr;gap:clamp(16px,3.2vh,30px)}
  .impact.gaya-2 .stats.st-many{gap:clamp(8px,1.8vh,20px)}
  .impact.gaya-2 .stats.st-many .st-num{font-size:clamp(24px,3.6vh,34px);line-height:1.15}
  .impact.gaya-2 .stats.st-many .st-ic{width:34px;height:34px}
  /* larger text and icons in the green block */
  .impact.gaya-2 .st{column-gap:16px}
  .impact.gaya-2 .st-ic{width:40px;height:40px;margin-top:6px}
  .impact.gaya-2 .st-num{font-size:38px;line-height:44px}
  .impact.gaya-2 .st-num small{font-size:20px;line-height:28px}
  .impact.gaya-2 .st-label,.impact.gaya-2 .st-sub{font-size:14px;line-height:19px}
  /* rows that fill the block's height (like the client's figure panel): icon | thin divider | figure, label, a short
     bar that fills while the number counts, and a faint line drawing at the right; thin lines between rows; leaves in
     the bottom corner */
  .impact.gaya-2::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='rgba(169,208,122,.07)' stroke='rgba(169,208,122,.24)' stroke-width='1.2'%3E%3Cpath d='M210 210C170 170 140 150 96 140' fill='none'/%3E%3Cpath d='M150 168c-14-26-8-50 14-62 10 24 6 46-14 62Z'/%3E%3Cpath d='M118 150c-28-6-42-26-38-50 24 6 38 26 38 50Z'/%3E%3Cpath d='M180 190c4-30 24-44 48-40-4 24-22 40-48 40Z'/%3E%3Cpath d='M96 140c-24 10-48 2-58-18 24-8 46-2 58 18Z'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:right bottom;background-size:clamp(120px,20vh,200px)}
  .impact.gaya-2 .stats-band{align-self:stretch;container-type:inline-size}
  .impact.gaya-2 .stats,.impact.gaya-2 .stats.st-many{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;gap:0;width:100%;max-height:900px;margin:auto 0}
  .impact.gaya-2 .st{flex:1 1 auto;max-height:180px;position:relative;align-content:center;grid-template-columns:auto minmax(0,1fr);column-gap:20px;padding:10px 0;border-radius:0;
    border-top:1px solid var(--sa-line,rgba(169,208,122,.22))}
  .impact.gaya-2 .st:first-child,.impact.gaya-2 .st[hidden] + .st:not([hidden]):first-of-type{border-top:0}
  .impact.gaya-2 .st-ic{grid-row:1 / span 4;align-self:stretch;width:clamp(44px,6.4vh,64px);height:auto;max-height:80px;stroke-width:7;margin:auto 0;box-sizing:content-box;padding-right:18px;border-right:1px solid var(--sa-line,rgba(169,208,122,.32))}
  .impact.gaya-2 .st > p{position:relative;z-index:1}
  .impact.gaya-2 .st-bar{display:block;width:32px;height:3px;margin-top:10px;border-radius:2px;background:var(--sa-ic,#A9D07A)}   /* a plain accent line under the figure (23 Oct 2026; was a two-tone bar that filled) */
  .impact.gaya-2 .st-art{display:block;position:absolute;right:0;top:50%;width:clamp(96px,30cqi,150px);height:auto;transform:translateY(-50%);fill:none;stroke:var(--sa-ic,#A9D07A);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;opacity:.5;pointer-events:none}
  /* a narrow block: the drawing steps back behind the text */
  @container (min-width:341px){ .impact.gaya-2 .st > p{padding-right:calc(clamp(96px,30cqi,150px) - 4px)} }
  @container (max-width:340px){ .impact.gaya-2 .st-art{width:40%;top:auto;bottom:8px;transform:none;opacity:.16} }
  @container (min-width:341px){ .impact.gaya-2 .st-num{font-size:44px;line-height:50px} .impact.gaya-2 .st-num small{font-size:22px} }
}
.st-bar,.st-art{display:none}   /* only in the style-2 green block */
.stats-band{flex:none}
.stats{max-width:1280px;margin:0 auto;padding:18px 40px;list-style:none;display:grid;grid-template-columns:repeat(var(--st-n,5),1fr);gap:24px}
.st[hidden]{display:none}
.st{display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:center;border-radius:12px;transition:background-color .5s var(--ease)}
.st-ic{grid-row:1 / span 3;width:32px;height:32px;margin:0;align-self:start;margin-top:4px;fill:none;stroke:var(--st-ic-c,var(--sa-ic,#A9D07A));stroke-width:12;stroke-linecap:round;stroke-linejoin:round}
.st-num{margin:0;font-size:30px;line-height:36px;font-weight:700;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.st-num small{font-size:16px;line-height:24px;font-weight:600;letter-spacing:0;color:var(--sa-unit,inherit)}
.st-label{margin:0;font-size:12px;line-height:16px;color:var(--sa-label,#DDE6D2);text-wrap:balance}
.st-sub{margin:0;font-size:12px;line-height:16px;color:var(--sa-sub,#A9D07A)}
/* ---------- Tablet ---------- */
@media (max-width:1100px){
.impact h2{font-size:30px;line-height:36px}
.impact-head{grid-template-columns:1fr;gap:8px}
.impact-lede{margin:0;max-width:none}
.stats{gap:16px;padding:16px 24px}
.st{grid-template-columns:1fr}
.st-ic{grid-row:auto;width:24px;height:24px;margin:0 0 4px}
.st-num{font-size:24px;line-height:32px}
}
/* Jejak Dampak on a short screen: no 600 px minimum, a wider green block with the five figures packed tighter, so
   the figures and the map legend stay inside the screen */
@media (min-width:900px) and (max-height:820px){
.impact{min-height:0}
.impact.gaya-2{--blok:29%;--blok-k:.29;padding-bottom:12px}
.impact h2{font-size:clamp(26px,5.4vh,34px);line-height:1.15}
.impact .tag{margin-bottom:4px}
.impact.gaya-2 .impact-lede{margin-top:6px;font-size:clamp(13px,2.6vh,16px);line-height:1.45}
.impact.gaya-2 .stats-band{padding-left:32px;padding-right:68px}
.impact.gaya-2 .stats{gap:clamp(8px,2vh,22px)}
.impact.gaya-2 .st{column-gap:12px}
.impact.gaya-2 .st-ic{width:clamp(30px,6vh,46px);height:auto;margin:auto 0;stroke-width:9}
.impact.gaya-2 .st-num{font-size:clamp(22px,4.8vh,36px);line-height:1.15}
.impact.gaya-2 .st-num small{font-size:clamp(13px,2.6vh,18px);line-height:1.2}
.impact.gaya-2 .st-label,.impact.gaya-2 .st-sub{font-size:clamp(11px,2.1vh,13.5px);line-height:1.3}
}
/* a 720p laptop (about 590 px left under the browser bar): the five figures still overflowed by up to 90 px, so the
   rows lose their gap (the thin lines still part them), half their padding and most of the space above the accent line */
@media (min-width:900px) and (max-height:680px){
.impact.gaya-2 .stats{gap:0}
.impact.gaya-2 .st{padding:4px 0}   /* --sp-1 */
.impact.gaya-2 .st-bar{margin-top:4px}
}
@media (max-width:760px){
.impact{height:auto;min-height:0;padding-top:24px}
.impact-head{grid-template-columns:1fr;gap:16px;padding:0 16px 24px}
.impact-lede{font-size:16px;line-height:21px}   /* phones: same tight lines as the hero text */
.impact h2{line-height:28px}   /* 30 px heading, same ratio as the hero headline (36 / 34) */
.impact-map{padding:0 16px 32px}
.stats{grid-template-columns:1fr 1fr;gap:16px;padding:20px 16px}
.st-wide{grid-column:1 / -1}
.st-ic{width:34px;height:34px;stroke-width:9}   /* the detailed figure icons need a little more room than 24 px */
.st-num{font-size:24px;line-height:32px}
}
/* Jejak Dampak, style 2 (≥ 900 px): the figures in the middle of the green block (user, 20 Oct 2026; they sat on its left with
   the rest empty). The band now covers exactly the block: absolute, with the same width as .impact.gaya-2::after above (both
   resolve --wadah-tepi against the section, so they match at every width); the list is at most 360 px and centred in it
   (exactly on wide screens; on narrow ones the right keeps 80 px for the section dots). The container for the line drawings (st-art, 30cqi) moves from
   the band to the list, so they keep their size. The grid column for the figures stays, so the map keeps its width; grid-area:auto
   so the band is placed against the whole section (an absolute grid item with an area would be placed inside that area) */
@media (min-width:900px){
.impact.gaya-2 .stats-band{grid-area:auto;position:absolute;top:0;bottom:0;right:0;width:calc(var(--wadah-tepi) - 40px + (100% - 2 * (var(--wadah-tepi) - 40px)) * var(--blok-k));
    box-sizing:border-box;padding:24px 80px 24px clamp(24px,3vw,80px);padding-top:inherit;align-items:center;container-type:normal}   /* top: the section's own top padding (room for the header, with or without pagePiling); 80 px on the right: clear of the section dots; the left side narrower on smaller screens, so the list keeps its width there */
.impact.gaya-2 .stats,.impact.gaya-2 .stats.st-many{max-width:360px;container-type:inline-size}
}
