/* Komponen bersama: peta bertitik (shared/map-dot.js); the world map at the end. Values after the Jejak Dampak map on the
   homepage (home/beranda.css: .prov, .site, .site-tip): provinces in --map-active / --map-other, ochre dots with a paper
   rim, a coloured province grows 6 % with a soft shadow under the pointer, dots pop in one by one, the dot under the
   pointer (or picked) turns forest-deep with a pulsing ring, and a dark box with an arrow rises over it. */
.nk-pt{position:relative}
.nk-pt__svg{display:block;width:100%;height:auto;overflow:visible}
.nk-pt__prov{fill:#CAD6CC;stroke:#F7FAF1;stroke-width:.8;stroke-linejoin:round}   /* --map-other, --paper */
.nk-pt__prov--aktif{fill:#A9C78B;transform-box:fill-box;transform-origin:center}   /* --map-active */
.nk-pt__prov--aktif:hover,.nk-pt__prov--sorot{fill:color-mix(in srgb,#A9C78B 60%,#7CA043);transform:scale(1.06);filter:drop-shadow(0 4px 6px rgba(36,48,40,.3))}   /* Jejak Dampak's hover green (#93BA6C) from two palette greens */
.nk-pt__prov--pilih{fill:#7CA043}   /* --leaf: the province of the picked dot */

/* a dot: a 32 px button around a 14 px ochre dot with a paper rim; ::after is the pulsing ring */
.nk-pt__titik{position:absolute;width:32px;height:32px;margin:-16px 0 0 -16px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.nk-pt__titik::before{content:"";position:absolute;left:9px;top:9px;width:14px;height:14px;border-radius:50%;background:#C98B3A;box-shadow:0 0 0 3px #F7FAF1,0 2px 6px rgba(36,48,40,.35)}   /* --ochre, --paper */
.nk-pt__titik::after{content:"";position:absolute;left:4px;top:4px;width:24px;height:24px;box-sizing:border-box;border-radius:50%;border:2px solid #C98B3A;opacity:0}
.nk-pt__titik:hover::before,.nk-pt__titik:focus-visible::before,.nk-pt__titik.is-on::before,.nk-pt__titik.is-pilih::before{background:#24482A}   /* --forest-deep */
.nk-pt__titik.is-on::after,.nk-pt__titik.is-pilih::after{border-color:#24482A;opacity:.6}
.nk-pt__titik:focus-visible{outline:3px solid var(--nk-forest,#33672E);outline-offset:0}

/* the dark box with an arrow (Jejak Dampak's .site-tip, with room for a short list) */
.nk-pt__tip{position:absolute;z-index:5;left:0;top:0;width:max-content;max-width:264px;padding:12px 16px;border-radius:12px;background:#243028;color:#F7FAF1;
  font:400 14px/20px var(--nk-font,inherit);pointer-events:none;opacity:0;transform:translate(-50%,calc(-100% - 22px));visibility:hidden}   /* --ink, --paper, --r-lg */
.nk-pt__tip.is-on{opacity:1;visibility:visible}
.nk-pt__tip::after{content:"";position:absolute;left:calc(50% + var(--panah,0px));bottom:-6px;width:12px;height:12px;margin-left:-6px;background:#243028;transform:rotate(45deg);border-radius:2px}
.nk-pt__tip--bawah{transform:translate(-50%,22px)}
.nk-pt__tip--bawah::after{top:-6px;bottom:auto}
.nk-pt__tip b{display:block;font-size:16px;line-height:24px;font-weight:600}
.nk-pt__sub,.nk-pt__lain{display:block;color:#C9D3C3}   /* --ink-muted-dark */
.nk-pt__tip ul{margin:8px 0 0;padding:0 0 0 16px}
.nk-pt__ket{margin:8px 0 0;white-space:pre-line}   /* a dot's description: free text, one line per typed line (18 Nov 2026) */
.nk-pt__lain{margin-top:4px}
/* a long list (more than 10): a wider box, two columns */
.nk-pt__tip--lebar{max-width:480px}
.nk-pt__tip--lebar ul{columns:2;column-gap:32px}
.nk-pt__tip--lebar li{break-inside:avoid}

/* motion, always on (user, 21 Oct 2026: no longer waits for html.nk-gerak / ?gerak=1, so it plays with reduced motion too;
   an exception in AGENTS.md §4): dots pop in one by one, the ring pulses, provinces and the
   box ease. */
.nk-pt__titik{opacity:0;transform:scale(.3);transition:opacity .5s cubic-bezier(.32,.72,0,1),transform .9s cubic-bezier(.32,.72,0,1)}   /* --dur-3, --dur-4, --ease (Jejak Dampak: .4s / .8s) */
.nk-pt--masuk .nk-pt__titik{opacity:1;transform:none}
.nk-pt__titik.is-on::after,.nk-pt__titik.is-pilih::after{animation:nk-pt-denyut 1.6s cubic-bezier(.32,.72,0,1) infinite}
.nk-pt__prov--aktif{transition:fill .5s cubic-bezier(.32,.72,0,1),transform .5s cubic-bezier(.32,.72,0,1),filter .5s cubic-bezier(.32,.72,0,1)}   /* --dur-3 (Jejak Dampak: .6s / .45s) */
.nk-pt__tip{transform:translate(-50%,calc(-100% - 22px)) translateY(4px);transition:opacity .3s cubic-bezier(.32,.72,0,1),transform .5s cubic-bezier(.32,.72,0,1),visibility 0s .3s}
.nk-pt__tip.is-on{transform:translate(-50%,calc(-100% - 22px));transition:opacity .3s cubic-bezier(.32,.72,0,1),transform .5s cubic-bezier(.32,.72,0,1),visibility 0s}
.nk-pt__tip--bawah{transform:translate(-50%,22px) translateY(-4px)}
.nk-pt__tip--bawah.is-on{transform:translate(-50%,22px)}
@keyframes nk-pt-denyut{0%{transform:scale(.6);opacity:.9}100%{transform:scale(1.8);opacity:0}}

/* phones: smaller dots, a picture only (shared/map-dot.js takes them out of the tab order) */
@media (max-width:760px){
  .nk-pt__titik{width:24px;height:24px;margin:-12px 0 0 -12px;pointer-events:none}
  .nk-pt__titik::before{left:8px;top:8px;width:8px;height:8px;box-shadow:0 0 0 1.5px #F7FAF1}
  .nk-pt__titik::after{display:none}
  .nk-pt__tip{display:none}
}

/* ---------- the world map (NtfpPetaDunia): thinner white borders for the many small
   countries, the programme countries in --leaf and the main country in --forest (a shade darker under the pointer), and
   the colour key under the map ---------- */
.nk-wm .nk-pt__prov{stroke:#fff;stroke-width:.4}
.nk-wm .nk-pt__prov--aktif{fill:#7CA043}   /* --leaf */
.nk-wm .nk-pt__prov--utama{fill:#33672E}   /* --forest */
.nk-wm .nk-pt__prov--aktif:hover,.nk-wm .nk-pt__prov--sorot{fill:#33672E}   /* --forest */
.nk-wm .nk-pt__prov--utama:hover,.nk-wm .nk-pt__prov--utama.nk-pt__prov--sorot{fill:#24482A}   /* --forest-deep */
.nk-wm .nk-pt__prov:not(.nk-pt__prov--aktif):hover{fill:color-mix(in srgb,#CAD6CC 80%,#4B584E)}   /* the other countries a shade darker under the pointer, while their name shows (--map-other, --ink-soft) */

/* the colour key */
.nk-wm__legenda{display:flex;flex-wrap:wrap;gap:8px 20px;margin:16px 0 0;padding:0;list-style:none;font:400 14px/20px var(--nk-font,inherit);color:var(--nk-ink-soft,#4B584E)}   /* --fs-sm */
.nk-wm__legenda[hidden]{display:none}
.nk-wm__legenda li{display:flex;align-items:center;gap:8px}
.nk-wm__tanda{flex:none;width:12px;height:12px;border-radius:2px}
.nk-wm__tanda--proyek{background:#33672E}
.nk-wm__tanda--program{background:#7CA043}
.nk-wm__tanda--titik{border-radius:50%;background:#C98B3A;box-shadow:0 0 0 2px #F7FAF1,0 0 0 3px rgba(36,48,40,.16)}   /* the dot map's dot: --ochre with a paper rim */
