/* =====================================================================================================
   NTFP-EP Indonesia: Kontak 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.
   ===================================================================================================== */
/* ---------- Kontak: office sketch, NTFP-EP network, office address and map, social links ---------- */
.kontak{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(--kt-bg,#F7FAF1);box-sizing:border-box;overflow:hidden}
html.piling #kontak{top:0;height:100vh;height:100svh;padding-top:calc(var(--head-h-s) + 48px)}   /* clear room under the header (as Jejak Dampak) */
.kontak [hidden]{display:none!important}
.kontak-head{flex:none;width:100%;margin:0;padding:0 max(72px, var(--wadah-tepi)) 20px var(--wadah-tepi);box-sizing:border-box}   /* "Kontak" and the title at the page edge, as Jejak Dampak and Tim Kami */
.kontak .tag{margin:0 0 8px;font-size:14px;line-height:20px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--kt-label,var(--forest))}
.kontak h2{font-family:var(--font-head,var(--font));margin:0;font-size:36px;line-height:40px;font-weight:700;letter-spacing:-.02em;color:var(--kt-judul,var(--ink))}
/* colours from PENGATURAN kontak.tampilanKontak (the defaults are the page colours) */
#kontak-col-jar h3{color:var(--kt-jar-h,var(--forest))}
#kontak-col-off h3{color:var(--kt-off-h,var(--forest))}
.kontak .kontak-net{border-top-color:var(--kt-jar-line,var(--line))}
.kontak .kontak-net a,.kontak .kontak-net .kontak-net-x{color:var(--kt-jar-tx,var(--ink));border-bottom-color:var(--kt-jar-line,var(--line))}
.kontak .kontak-net a:hover{color:var(--kt-jar-hi,var(--forest))}
.kontak .kontak-net a svg{color:var(--kt-jar-ic,var(--forest))}
.kontak .kontak-addr{color:var(--kt-off-tx,var(--ink))}
.kontak .kontak-addr strong{color:var(--kt-off-nm,var(--ink))}
.kontak .kontak-line,.kontak .kontak-line span{color:var(--kt-off-tx,var(--ink-soft))}
.kontak .kontak-line a{color:var(--kt-off-a,var(--ink))}
.kontak .kontak-maplink{color:var(--kt-maplink,var(--forest))}
#kontak-sos-title{color:var(--kt-sos-h,var(--forest))}
.kontak .kontak-sos a{color:var(--kt-sos-ic,var(--ink))}
.kontak .kontak-sos a:hover{background:var(--kt-sos-hi,var(--forest));border-color:var(--kt-sos-hi,var(--forest));color:var(--kt-sos-ichi,#F7FAF1)}
.kontak-grid{flex:1 1 auto;min-height:0;width:100%;margin:0;padding:0 max(72px, var(--wadah-tepi)) 28px var(--wadah-tepi);display:grid;grid-template-columns:var(--kt-cols,repeat(5,minmax(0,1fr)));justify-content:space-between;gap:40px;box-sizing:border-box}   /* --kt-cols: the columns that are on, each as wide as its content (beranda.js); space-between shares what is left equally, so every gap between categories is the same */
.kontak-grid{--kt-kantor:max-content}   /* Kantor keeps its longest address line unwrapped: wrapped lines leave a ragged gap after the column */
@media (max-width:1319px) and (min-height:821px),(max-width:1259px){.kontak-grid{--kt-kantor:minmax(240px,max-content)}}   /* too narrow for that: the address wraps (short screens use 15 px text, so it fits down to 1260 px there) */
.kontak-img{position:relative;min-height:0;margin:0}
.kontak-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:0 0;-webkit-mask-image:linear-gradient(to bottom,#000 72%,transparent 100%);mask-image:linear-gradient(to bottom,#000 72%,transparent 100%)}   /* the sketch fades out at the foot */
.kontak-col{min-width:0;min-height:0;display:flex;flex-direction:column}
.kontak-col h3{margin:0 0 12px;font-size:13px;line-height:18px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--forest)}
.kontak-net{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.kontak-net a{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 2px;border-bottom:1px solid var(--line);font-size:16px;line-height:24px;font-weight:500;color:var(--ink);text-decoration:none;transition:color .3s ease,padding-left .4s var(--ease)}
.kontak-net .kontak-net-x{display:block;padding:13px 2px;border-bottom:1px solid var(--line);font-size:16px;line-height:24px;font-weight:500;color:var(--ink)}
.kontak-net a svg{flex:none;width:18px;height:18px;color:var(--forest);transition:transform .4s var(--ease)}
.kontak-net a:hover{color:var(--forest);padding-left:6px}
.kontak-net a:hover svg{transform:translate(2px,-2px)}
.kontak-net a:focus-visible,.kontak-addr a:focus-visible,.kontak-sos a:focus-visible,.kontak-maplink:focus-visible{outline:2px solid var(--forest);outline-offset:3px;border-radius:4px}
.kontak-addr{margin:0 0 6px;font-size:16px;line-height:24px;color:var(--ink);font-style:normal;text-wrap:pretty}   /* pretty: a long address line that wraps in the equal-width columns never leaves one word ("26B") alone */
.kontak-addr strong{display:block;margin-bottom:2px;font-size:16px;line-height:24px;color:var(--ink)}
.kontak-line{margin:6px 0 0;font-size:16px;line-height:24px;color:var(--ink-soft)}
.kontak-line span{display:inline-block;min-width:64px;color:var(--ink-soft);opacity:.8}
.kontak-line{display:flex;align-items:flex-start;gap:10px}
.kontak-line .ic{flex:none;display:grid;place-items:center;min-width:0;width:20px;height:22px;opacity:1;color:var(--kt-off-ic,var(--forest))}   /* the phone / email icon in place of the word */
.kontak-line .ic svg{width:18px;height:18px}
.kontak-line .lk{min-width:0;opacity:1}   /* the numbers and address at full strength (the word label was dimmed) */
.kontak-line a{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--line)}
.kontak-line a:hover{color:var(--forest);border-bottom-color:currentColor}
.kontak-map{position:relative;flex:1 1 auto;min-height:130px;max-height:var(--kt-map-max,260px);margin-top:16px;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:#E9EEDB}
.kontak-map iframe{position:absolute;inset:0;width:100%;height:100%;border:0;pointer-events:none}
.kontak-map.on iframe{pointer-events:auto}
.kontak-map .map-cover{position:absolute;inset:0;width:100%;padding:0;border:0;background:transparent;cursor:pointer;display:flex;align-items:flex-end;justify-content:center}   /* the page wheel keeps working until the map is clicked */
.kontak-map .map-cover span{margin-bottom:10px;padding:4px 10px;border-radius:999px;background:rgba(36,48,40,.78);color:#F7FAF1;font-size:12px;line-height:16px;font-weight:600;opacity:0;transition:opacity .3s ease}
.kontak-map:hover .map-cover span,.kontak-map .map-cover:focus-visible span{opacity:1}
.kontak-map.on .map-cover{display:none}
.kontak-maplink{display:inline-flex;align-items:center;gap:6px;margin-top:10px;font-size:14px;line-height:20px;font-weight:600;color:var(--forest);text-decoration:none}
.kontak-maplink svg{width:15px;height:15px}
.kontak-maplink:hover{text-decoration:underline;text-underline-offset:3px}
.kontak-sosw{margin-top:0}   /* its own column, right of the NTFP-EP network list */
.kontak-sosw h3{margin-bottom:10px}
.kontak-sos{display:flex;flex-wrap:wrap;gap:10px;max-width:146px;margin:0;padding:0;list-style:none}   /* own column: three icons a row (3 × 42 + 2 × 10), more go below; six make two even rows and the column stays narrow (5 Nov 2026) */
.kontak-sos a{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:50%;color:var(--ink);transition:background-color .3s ease,color .3s ease,border-color .3s ease}
.kontak-sos a svg{width:20px;height:20px}
.kontak-sos a:hover{background:var(--forest);border-color:var(--forest);color:#F7FAF1}
/* phone and email boxes beside Kantor (as Tuku): the numbers / address on top, the word on a dark bar at the foot */
.kontak-col--hubungi{gap:20px;padding-top:30px}   /* level with the office name under the Kantor heading */
.kontak-kotak{display:flex;flex-direction:column-reverse;width:100%;max-width:260px;border:1.5px solid var(--kt-kotak,#24482A);border-radius:3px;overflow:hidden;background:#FFFFFF}   /* max-width: compact boxes, not the full column */
.kontak-kotak__isi{margin:0;padding:9px 12px;display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center}
.kontak-kotak__isi a{padding:2px 0;font-size:16px;line-height:22px;font-weight:600;letter-spacing:.03em;color:var(--kt-off-a,var(--ink));text-decoration:none;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.kontak-kotak__isi a:hover{color:var(--forest);text-decoration:underline;text-underline-offset:4px}
.kontak-kotak__isi a:focus-visible{outline:2px solid var(--forest);outline-offset:3px;border-radius:4px}
.kontak-kotak__bar{margin:0;display:flex;align-items:center;justify-content:center;gap:8px;padding:8px 12px;background:var(--kt-kotak,#24482A);color:#F7FAF1;font-size:13px;line-height:18px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.kontak-kotak__bar svg{flex:none;width:15px;height:15px}
@media (min-width:761px) and (max-height:820px){
  .kontak h2{font-size:clamp(26px,5.4vh,34px);line-height:1.15}
  .kontak .tag{margin-bottom:4px}
  .kontak-head{padding-bottom:12px}
  .kontak-grid{gap:32px;padding-bottom:18px}
  .kontak-net a{padding:9px 2px;font-size:15px;line-height:22px}
  .kontak-addr,.kontak-line{font-size:15px;line-height:21px}
  .kontak-addr strong{font-size:15px;line-height:21px}
  .kontak-kotak__isi a{font-size:15px}
  .kontak-map{margin-top:10px;min-height:110px}
  .kontak-sosw{margin-top:0}
  .kontak-col--hubungi{gap:14px;padding-top:27px}
  .kontak-kotak__isi{padding:9px 10px}
  .kontak-kotak__bar{padding-top:6px;padding-bottom:6px}
  .kontak-sos{max-width:128px}   /* three a row at 36 px */
  .kontak-sos a{width:36px;height:36px}
}
@media (max-width:760px){ .kontak-sos{max-width:none} }   /* phones: the full width, room for one row */
/* below 1200 px five columns are too tight: three columns, Ikuti kami under the network, the boxes under Kantor */
@media (max-width:1199px) and (min-width:761px){
  .kontak-grid{grid-template-columns:minmax(0,.8fr) minmax(0,1fr) minmax(0,1.1fr);grid-template-rows:auto minmax(0,1fr);gap:24px 28px}
  #kontak-img{grid-column:1;grid-row:1 / span 2}
  #kontak-col-jar{grid-column:2;grid-row:1}
  #kontak-sosw{grid-column:2;grid-row:2}
  #kontak-col-off{grid-column:3;grid-row:1}
  #kontak-lines{grid-column:3;grid-row:2;padding-top:0}
}
@media (max-width:760px){
  .kontak{height:auto;min-height:0;padding-top:24px}
  .kontak-head{padding:0 16px 16px}
  .kontak h2{font-size:30px;line-height:34px}
  .kontak-grid{display:flex;flex-direction:column;gap:28px;padding:0 16px 32px;grid-template-columns:none!important}
  .kontak-img{height:280px}
  .kontak-map{flex:none;height:220px;max-height:none}
  .kontak-col--hubungi{padding-top:0}
  .kontak-kotak{max-width:none}   /* phone: full width, easy to tap */
  .kontak-kotak__isi{gap:0;padding:4px 12px}
  .kontak-kotak__isi a{padding:11px 0;font-size:16px}   /* touch: about 44 px tall */
}
/* short screens (as Jejak Dampak and Tim) */
@media (min-width:900px) and (max-height:820px){
  .kontak{padding-top:28px}   /* scroll off: the same room under the header */
  html.piling #kontak{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) */
.kontak h2,.kontak h3,.kontak .tag{overflow-wrap:anywhere}
