/* Peta di slide pertama karusel Sorotan (proyek-daftar.html, V54): tanpa pudaran di atas peta, teks dengan
   lingkaran tipis warna peta. Letak petanya diatur project-map-slide.js. Dimuat hanya oleh resep proyek-daftar
   (config/halaman.js), jadi halaman arsip lain tetap memakai pudaran featured-carousel.css. Bagian terakhir: pilihan
   bingkai="indonesia" (seluruh Indonesia dengan peta Jejak Dampak, project-map-indonesia.js; dengan
   home/impact/impact-map.css). */

/* no fade over the map (user, 26 Oct 2026: it washed out Aceh and Sumatra, and the browser drew light rectangles in it);
   the text gets a soft halo in the background colour instead, as names on printed maps. The button keeps its own white */
.nk-karusel__slide--peta::after{background:none}
.nk-karusel__slide--peta .nk-karusel__isi > :not(.nk-karusel__tombol){text-shadow:0 0 2px var(--leaf-wash),0 0 6px var(--leaf-wash)}   /* --leaf-wash */

/* a site outside the main regions (data-peta-luas, project-map-slide.js): on wide screens the text in the sea at the bottom
   left and the button beside the label and line (.nk-karusel__baris), so more sea is left for the map */
@media (min-width:761px){
  .nk-karusel__slide--peta[data-peta-luas] .nk-karusel__isi{justify-content:flex-end;width:auto;max-width:calc(100% - 192px);padding-bottom:56px}
  .nk-karusel__baris{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 32px}
  .nk-karusel__baris .nk-karusel__tombol{flex:none;margin-top:0}
}
@media (min-width:1200px){ .nk-karusel__baris{column-gap:96px} }   /* the button 96 px from the line (user, 27 Oct 2026: "more to the right") */
.nk-karusel__keterangan{min-width:0;max-width:560px}   /* a long line wraps instead of widening the text */
@media (max-width:760px){
  .nk-karusel__baris{display:flex;flex-direction:column;align-items:flex-start}
  .nk-karusel__baris .nk-karusel__tombol{margin-top:24px}
}

/* the title one size down at a time until it fits in three lines (project-map-slide.js) */
.nk-karusel__slide--peta .nk-karusel__judul[data-ukuran="h1"]{font-size:var(--fs-h1);line-height:var(--lh-h1)}
.nk-karusel__slide--peta .nk-karusel__judul[data-ukuran="h2"]{font-size:var(--fs-h2);line-height:var(--lh-h2)}
.nk-karusel__slide--peta .nk-karusel__judul[data-ukuran="h3"]{font-size:var(--fs-h3);line-height:var(--lh-h3)}

/* ---------- all of Indonesia (bingkai="indonesia" on the carousel, project-map-indonesia.js; since 12 Nov 2026) ----------
   the band edge to edge (user, 11 Nov: "fill gutter only on map with the background color of the map"): the map's paper
   green across the whole window, no rounded box; the text keeps its place on the page's content edge */
.nk-karusel[data-bingkai="indonesia"]{padding:0;background:var(--leaf-wash)}   /* --leaf-wash */
.nk-karusel[data-bingkai="indonesia"] .nk-karusel__trek{width:100%}
.nk-karusel[data-bingkai="indonesia"] .nk-karusel__slide{border-radius:0}
.nk-karusel[data-bingkai="indonesia"] .nk-karusel__isi{padding-left:calc(var(--wadah-tepi) + 96px);padding-right:calc(var(--wadah-tepi) + 96px)}
@media (min-width:1761px){
  .nk-karusel[data-bingkai="indonesia"] .nk-karusel__isi{padding-left:calc(var(--wadah-tepi) + 64px);padding-right:calc(var(--wadah-tepi) + 64px)}
}
/* tablets take the phone arrangement (12 Nov 2026: the island buttons on tablets too, and a zoom makes the 16-22 px dots
   larger): a taller band, the text across the bottom, the map and the island buttons above it (project-map-indonesia.js) */
@media (min-width:761px) and (max-width:1100px){
  .nk-karusel[data-bingkai="indonesia"] .nk-karusel__trek{aspect-ratio:4/3}
  .nk-karusel[data-bingkai="indonesia"] .nk-karusel__slide--peta .nk-karusel__isi{right:0;width:auto;justify-content:flex-end}
}
@media (max-width:1100px){
  .nk-karusel[data-bingkai="indonesia"] .nk-karusel__isi{padding:24px calc(var(--wadah-tepi) + 24px) 32px}
}
/* the text layouts project-map-indonesia.js picks: stacked (data-susun="tumpuk") puts the button under the line; at the
   bottom (data-peta-luas) 40 px from the edge, as the tablet layout's sides, since there are no carousel dots */
.nk-karusel[data-bingkai="indonesia"] .nk-karusel__slide[data-susun="tumpuk"] .nk-karusel__baris{display:block}
.nk-karusel[data-bingkai="indonesia"] .nk-karusel__slide[data-susun="tumpuk"] .nk-karusel__baris .nk-karusel__tombol{margin-top:24px}
@media (min-width:761px){
  .nk-karusel[data-bingkai="indonesia"] .nk-karusel__slide[data-peta-luas] .nk-karusel__isi{padding-bottom:40px}
}
/* the text box spans most of the band (827 × 560 at 1366) and would swallow the pointer over the map, so most green
   provinces never grew on hover (user, 11 Nov 2026: "some of the province when hover not moving"): the box lets the
   pointer through; only its own text and button take it */
.nk-karusel[data-bingkai="indonesia"] :is(.nk-karusel__isi, .nk-karusel__baris, .nk-karusel__keterangan){pointer-events:none}
.nk-karusel[data-bingkai="indonesia"] .nk-karusel__isi :is(h1, h2, h3, p, a, button){pointer-events:auto}

/* the project map (project-map-draw.js) stays only as the anchor of the dots' buttons (project-map-popup.js): invisible,
   at exactly the place and scale of the Jejak Dampak map, and it lets the pointer through to it */
.nk-karusel[data-bingkai="indonesia"] .nk-karusel__peta .nk-peta{opacity:0;pointer-events:none}
.nk-karusel[data-bingkai="indonesia"] .nk-peta__nama{display:none}   /* its name pills are not shown, so their targets go too */
.nk-karusel[data-bingkai="indonesia"] .nk-peta__titik:hover::before{box-shadow:none}   /* the Jejak Dampak dot shows the hover itself */
.nk-karusel[data-bingkai="indonesia"] .nk-peta__titik[aria-expanded="true"]::before{box-shadow:0 0 0 8px rgba(201,139,58,.32)}   /* --ochre: the dot whose card is open */

/* the Jejak Dampak map (home/impact/impact-map.*): its 924 × 346 frame placed by project-map-indonesia.js (left, top,
   width, height); on phones the box is only the area above the island buttons and clips the map there */
.nk-karusel__jejak{position:absolute;inset:0}
.nk-karusel__jejak .impact-map{position:absolute;inset:0;margin:0;padding:0}   /* the tip is placed in the figure */
.nk-karusel__jejak .map-fit{display:block}
.nk-karusel__jejak .map{position:absolute;max-width:none;aspect-ratio:auto;transform-origin:0 0}
.nk-karusel__jejak .site{pointer-events:none}   /* the popup's buttons on top take pointer and keyboard */
.nk-karusel__jejak .site-list{display:none}   /* the popup's buttons are the list */
/* the legend top right on the content edge, in the sea north of Papua (the framing keeps land and dots off it) */
.nk-karusel__jejak .map-legend{position:absolute;top:24px;right:var(--wadah-tepi);margin:0;justify-content:flex-end}
.nk-karusel__jejak .lg-src{display:none}   /* the source line stays on the homepage */
/* a dot near the band's top: its tip opens below it, the arrow on top (project-map-indonesia.js sets the drop) */
.nk-karusel__jejak .site-tip.on.nk-tip-bawah{transform:translate(-50%,var(--nk-tip-turun,40px))}
.nk-karusel__jejak .site-tip.nk-tip-bawah::after{top:-6px;bottom:auto}
/* reduced motion (without ?gerak=1): the dots fade in, no zoom, no pulse */
.nk-karusel__jejak[data-gerak="kurang"] .site{transform:none}
.nk-karusel__jejak[data-gerak="kurang"] .site::after{animation:none}
@media (max-width:1100px){
  .nk-karusel__jejak{bottom:auto;overflow:hidden;-webkit-mask-image:linear-gradient(to bottom,#000 calc(100% - 16px),transparent);
    mask-image:linear-gradient(to bottom,#000 calc(100% - 16px),transparent)}
  .nk-karusel__jejak .map-legend{display:none}
}

/* the island buttons (tablets and phones): the shared chips in one row under the map, from the text's edge; the row scrolls sideways
   when it is wider */
.nk-karusel__pulau{position:absolute;left:0;right:0;z-index:2;flex-wrap:nowrap;margin:0;padding:0 calc(var(--wadah-tepi) + 24px);
  overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain}
.nk-karusel__pulau::-webkit-scrollbar{display:none}
.nk-karusel__pulau[hidden]{display:none}
.nk-karusel__pulau .nk-chip{flex:none;min-height:36px;padding:6px 14px}
@media (pointer:coarse){ .nk-karusel__pulau .nk-chip{min-height:44px} }
