/* =====================================================================================================
   NTFP-EP Indonesia: Tim di beranda (komponen home/). Dipindah tanpa diubah dari assets/components/home/beranda.css (19 Okt 2026).
   Dimuat sebelum assets/components/home/beranda.css (urutan aturan terhadap gaya hero tetap sama). Skripnya: file .js bernama sama.
   ===================================================================================================== */
/* ---------- Tim: overlapping cutout team carousel ----------
   One continuous team portrait: transparent cutouts standing in a row, each overlapping the next, cut at the waist by
   the green band below. The person in the middle is the active one (a touch larger, lifted, in front). */
.tim{position:relative;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(--tim-bg,#EFEADB);box-sizing:border-box;overflow:hidden;transition:background-color .6s var(--ease)}   /* the colour of the selected person (script) */
html.piling #tim{top:0;height:100vh;height:100svh;padding-top:calc(var(--head-h-s) + 48px)}   /* "TIM KAMI" at the same place as "JEJAK DAMPAK" */
.tim-head{flex:none;position:relative;z-index:3;width:100%;max-width:none;margin:0;padding:0 max(72px, var(--wadah-tepi)) 4px var(--wadah-tepi);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:40px;align-items:end;box-sizing:border-box}   /* the text takes what the link leaves (a 760 px text squeezed the link onto two lines at 1024 px, which pushed "TIM KAMI" down) */
.tim .tag{margin:0 0 8px;font-size:14px;line-height:20px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--forest)}
#tim-tag{font-size:18px;line-height:24px;letter-spacing:.12em}   /* "TIM KAMI" is the section's heading (no big title below it): the same label style, a size up */
.tim 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}
.tim-side{margin-left:auto;max-width:440px;padding-top:24px}   /* a little room under the header */
.tim-lede{margin:0;font-size:16px;line-height:24px;color:var(--ink-soft);text-wrap:pretty}
.tim-intro{min-width:0;max-width:760px;align-self:start}   /* as the Jejak Dampak description; top-aligned, so "TIM KAMI" never moves with the link column */
.tim-intro .tim-lede{margin-top:4px}   /* the description under "TIM KAMI"; "Kenali tim kami" and ‹ › stay on the right */
.tim-cta{display:inline-flex;align-items:center;gap:8px;margin-top:12px;padding-bottom:2px;border-bottom:1px solid currentColor;font-weight:600;color:var(--forest);text-decoration:none;white-space:nowrap}   /* one line */
.tim-cta svg{width:16px;height:16px;transition:transform .5s var(--ease)}
.tim-cta:hover svg{transform:translateX(4px)}
.tim [hidden]{display:none!important}   /* a text set to '' in PENGATURAN is hidden */
.tim-cta:focus-visible{outline:2px solid var(--forest);outline-offset:4px;border-radius:2px}
.tim-wall{position:relative;z-index:1;flex:1 1 auto;min-height:240px;outline:none;cursor:grab;touch-action:pan-y;-webkit-user-select:none;user-select:none}
.tim-wall.drag{cursor:grabbing}
@media (prefers-reduced-motion:reduce){.tim{transition:none}}
.tim-wall:focus-visible::after{content:"";position:absolute;inset:6px 40px 0;border:2px solid var(--forest);border-bottom:0;border-radius:16px 16px 0 0;pointer-events:none}
.tim-track{position:absolute;inset:0}
/* highlight of the selected person: a thick line that follows the cutout on the left, top and right (stacked hard
   drop-shadows: right, left, up; stacked, they also fill the corners). It fades in once the person has come to rest in the
   middle and fades out as soon as the row moves; it outlines both poses together while they cross-fade. */
.tim-p{--bw:0px;--bc:rgba(51,103,46,0);filter:drop-shadow(var(--bw) 0 0 var(--bc)) drop-shadow(calc(var(--bw) * -1) 0 0 var(--bc)) drop-shadow(0 calc(var(--bw) * -1) 0 var(--bc)) drop-shadow(0 var(--sy,8px) var(--sb,14px) var(--sc,rgba(36,48,40,.16)));transition:filter .35s ease}   /* the soft shadow comes last, so the line stays crisp */
.tim-p.on{--bw:var(--tim-bw,5px);--bc:var(--tim-bc,#33672E);--sy:14px;--sb:26px;--sc:rgba(36,48,40,.3)}
.tim.no-border .tim-p.on{--bw:0px;--bc:rgba(51,103,46,0)}
.tim-p{position:absolute;left:0;bottom:0;transform-origin:50% 100%;will-change:transform}
.tim-p img{position:absolute;left:0;bottom:0;height:100%;width:100%;display:block;object-fit:contain;object-position:50% 100%;pointer-events:none;-webkit-user-drag:none;filter:grayscale(var(--g,0))}   /* --g: 1 = monochrome (not selected), 0 = colour; set per frame by the script. The box takes the first pose's shape (team.js): a second pose of another shape keeps its own proportions, standing on the floor, instead of being stretched (5 Nov 2026) */
/* pose change: the second pose fades in over the first (which starts to fade a moment later, so the two never both
   look thin) and settles up a touch; going back, the first pose returns under the second, which fades out */
/* --pd: duration of the change (PENGATURAN timTampilan.durasiGantiPose; 0 = the pose changes at once) */
.tim-p .p1{transition:opacity calc(var(--pd,1.1s) * .3) ease}
.tim-p .p2{opacity:0;transform:translateY(1.2%) scale(.985);transform-origin:50% 100%;transition:opacity calc(var(--pd,1.1s) * .45) ease,transform calc(var(--pd,1.1s) * .45) ease}
.tim-p.pose2 .p2{opacity:1;transform:none;transition:opacity var(--pd,1.1s) cubic-bezier(.4,0,.2,1),transform calc(var(--pd,1.1s) * 1.1) var(--ease)}
.tim-p.pose2 .p1{opacity:0;transition:opacity calc(var(--pd,1.1s) * .8) cubic-bezier(.4,0,.2,1) calc(var(--pd,1.1s) * .3)}
.tim-floor{flex:none;position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:24px;height:76px;padding:0 max(40px, calc((100% - 1120px) / 2 + 40px));background:var(--tim-pita,var(--forest-deep));color:var(--tim-pita-t,var(--paper))}
.tim-info{min-width:0;transition:opacity .25s ease,transform .35s var(--ease)}
.tim-info.swap{opacity:0;transform:translateY(4px)}
.tim-name{margin:0;font-family:var(--font-head,var(--font));font-size:20px;line-height:26px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tim-role{margin:0;font-size:14px;line-height:20px;opacity:.78;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tim-role:empty{display:none}
/* gayaNama 'panah': a label above each head, a dashed curved arrow down to the head */
.tim-tags{position:absolute;inset:0;z-index:150;pointer-events:none;display:none}
.tim.nama-panah .tim-tags{display:block}
.tim.nama-panah .tim-floor{display:none}   /* gayaNama 'panah': no green band; the people run to the bottom edge */
.tim-side .tim-ctrl{margin-top:14px;color:var(--forest)}   /* the ‹ › buttons and counter, moved up beside the text */
.tim-side .tim-ctrl .tim-btn{border-color:var(--line);color:var(--ink)}
.tim-side .tim-ctrl .tim-btn:hover{background:rgba(36,48,40,.06)}
.tim-side .tim-count{color:var(--ink-soft);opacity:1}
.tim-side-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.tim-side-row .tim-cta,.tim-side-row .tim-ctrl{margin-top:12px}
.tim.nama-panah .tim-info{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}   /* the band keeps it for screen readers only */
.tim-arrows{position:absolute;left:0;top:0;width:100%;height:100%;overflow:visible}
.tim-arrows path{fill:none;stroke:var(--tim-panah,#7C867F);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:opacity .3s ease}
.tim-arrows path.dash{stroke-dasharray:4 5}
.tim-tag{position:absolute;left:0;top:0;width:max-content;max-width:210px;will-change:transform;transition:opacity .3s ease}
.tim-tag .tn{margin:0;font-size:16px;line-height:21px;font-weight:600;color:var(--tim-nama,#33672E)}
.tim-tag .tr{margin:2px 0 0;font-size:14px;line-height:19px;color:var(--tim-jabatan,#4B584E);text-wrap:balance}
.tim-tag .tr:empty{display:none}
.tim-tag.on .tn{font-weight:700;font-size:19px;line-height:24px}   /* the selected person: a little larger */
.tim-tag.on .tr{font-size:15.5px;line-height:21px}
.tim-arrows path.on{stroke-width:2.6}
.tim-arrows path.dash.on{stroke-dasharray:5 6}
@media (min-width:761px) and (max-height:820px){
  .tim-tag .tn{font-size:14px;line-height:18px}
  .tim-tag .tr{font-size:12.5px;line-height:16px}
  .tim-tag{max-width:190px}
  .tim-tag.on .tn{font-size:16.5px;line-height:21px}
  .tim-tag.on .tr{font-size:14px;line-height:18px}
}
@media (max-width:760px){
  #tim-tag{font-size:16px;line-height:22px}
  .tim-tag{max-width:220px}
  .tim-tag .tn{font-size:15px;line-height:20px}
  .tim-tag .tr{font-size:13px;line-height:17px}
  .tim-tag.on .tn{font-size:17px;line-height:22px}
  .tim-tag.on .tr{font-size:14px;line-height:19px}
}
.tim-name a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;text-decoration-color:rgba(247,250,241,.45);transition:text-decoration-color .3s ease}
.tim-name a:hover{text-decoration-color:currentColor}
.tim-name a:focus-visible{outline:2px solid currentColor;outline-offset:3px;border-radius:2px}
.tim-ctrl{flex:none;display:flex;align-items:center;gap:8px}
.tim-count{margin-right:8px;font-size:14px;line-height:20px;font-weight:600;letter-spacing:.08em;font-variant-numeric:tabular-nums;opacity:.85}
.tim-btn{display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid currentColor;border-radius:50%;background:none;color:inherit;cursor:pointer;opacity:.9;transition:background-color .4s var(--ease),opacity .4s var(--ease)}
.tim-btn svg{width:18px;height:18px}
.tim-btn:hover{background:rgba(255,255,255,.12);opacity:1}
.tim-btn:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.tim-btn:disabled{opacity:.35;cursor:default;background:none}   /* the first / last person is selected */
@media (min-width:761px) and (max-height:820px){
  .tim-cta{margin-top:6px;font-size:15px}
  .tim-floor{height:60px}
  .tim-name{font-size:17px;line-height:22px}
  .tim-role{font-size:13px;line-height:18px}
  .tim-btn{width:34px;height:34px}
}
@media (min-width:900px) and (max-height:820px){   /* the heading text shrinks at the same sizes as Jejak Dampak's (from 900 px wide) */
  .tim h2{font-size:clamp(26px,5.4vh,34px);line-height:1.15}
  .tim .tag{margin-bottom:4px}
  #tim-tag{font-size:17px;line-height:22px}
  .tim-lede{font-size:clamp(13px,2.6vh,16px);line-height:1.45}
}
@media (max-width:900px){
  .tim h2{font-size:30px;line-height:36px}
  .tim-head{grid-template-columns:1fr;gap:8px;padding-right:40px}
  .tim-side{margin:0;max-width:none;padding-top:0}
  .tim-cta{white-space:normal}   /* under the text it has the full width; a long link text may wrap */
}
@media (max-width:760px){
  .tim{height:auto;min-height:calc(100vh - var(--head-h-s));min-height:calc(100svh - var(--head-h-s));padding-top:24px}   /* at least one screen below the header, so the section above does not show when it is the last thing on the page */
  .tim-wall{flex:1 1 auto;min-height:clamp(320px,50svh,440px);height:auto}   /* takes the free height (room for the labels); the people keep their size */
  .tim-head{padding:0 16px 8px}
  .tim h2{line-height:34px}
  .tim-lede{font-size:16px;line-height:21px}
  .tim-wall:focus-visible::after{inset:6px 8px 0}
  .tim-floor{height:auto;min-height:64px;padding:10px 16px;gap:12px}
  .tim-name{font-size:17px;line-height:22px}
  .tim-role{font-size:13px;line-height:17px;white-space:normal;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}   /* long job titles: two lines */
  .tim-count{margin-right:4px;font-size:13px}
  .tim-btn{width:36px;height:36px}
  .tim-side-row{justify-content:flex-start;column-gap:28px}   /* clear of the section dots on the right */
  .tim-cta{position:relative}
  .tim-cta::after{content:"";position:absolute;inset:-10px -8px}   /* a finger-sized hit area (44 px) around the text link */
}
/* short screens (as Jejak Dampak and Kontak, beranda.css / contact.css) */
@media (min-width:900px) and (max-height:820px){
  .tim{padding-top:28px}   /* scroll off: the same room under the header */
  html.piling #tim{padding-top:calc(var(--head-h-s) + 28px)}
}
/* a very long word in a heading wraps instead of widening the page (Adobe-guide pass, 18 Oct 2026) */
.tim .tag{overflow-wrap:anywhere}
