/* Titik peta proyek yang bisa diklik dan kotak kartunya (proyek-daftar.html, V54; project-map-popup.js).
   Kartunya sendiri kartu bersama (shared/card-grid.css); di sini hanya tombol titik, kotaknya, tata letak berdampingan,
   daftar beberapa proyek, dan lembar di ponsel (shared/dialog.css). */

/* the button over each dot: a round target, 32 px (44 on touch) or less where dots crowd (size set by the script);
   a soft ochre ring round the dot on hover and while its card is open */
.nk-peta__titik{position:absolute;z-index:3;width:32px;height:32px;margin:-16px 0 0 -16px;padding:0;border:0;border-radius:50%;background:none;cursor:pointer;touch-action:manipulation}
.nk-peta__titik[hidden]{display:none}
.nk-peta__titik::before{content:"";position:absolute;top:50%;left:50%;width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:50%;box-shadow:0 0 0 0 rgba(201,139,58,0);transition:box-shadow .15s ease-out}   /* --ochre, --dur-1 */
.nk-peta__titik:hover::before,.nk-peta__titik[aria-expanded="true"]::before{box-shadow:0 0 0 8px rgba(201,139,58,.32)}
.nk-peta__titik:focus-visible{outline:3px solid var(--forest);outline-offset:0}
@media (pointer:coarse){ .nk-peta__titik{width:44px;height:44px;margin:-22px 0 0 -22px} }
/* the name pill as a second target (pointer only; placed over the pill, 4 px taller above and below) */
.nk-peta__nama{position:absolute;z-index:2;margin:0;padding:0;border:0;border-radius:999px;background:none;cursor:pointer;touch-action:manipulation}
.nk-peta__nama[hidden]{display:none}
.nk-peta__nama:hover{background:rgba(201,139,58,.16)}   /* --ochre, faint */
/* how many projects, when a site has several: a small forest-green count up and to the left of the dot */
.nk-peta__n{position:absolute;top:50%;left:50%;min-width:18px;height:18px;margin:-20px 0 0 -22px;padding:0 5px;border-radius:999px;background:var(--forest);color:#fff;
  font:700 12px/18px var(--font);text-align:center;box-shadow:0 0 0 2px var(--paper)}   /* --fs-xs */

/* the box beside the dot (wider than 760 px): the card with its photo on the left, so it fits the slide's height */
.nk-petakotak{position:absolute;z-index:4;width:480px;max-width:calc(100% - 32px);max-height:calc(100% - 32px);overflow:auto;border-radius:12px;box-shadow:var(--shadow-4)}   /* --r-lg */
.nk-petakotak[hidden]{display:none}
.nk-petakotak:focus{outline:none}   /* the box itself takes focus when opened with the mouse; its links keep their rings */
.nk-kabar.nk-petakartu{max-width:none;margin:0;padding:0}   /* the wrapper only carries the card's .nk-kabar styles, not a section's padding */
.nk-petakartu .nk-grid{display:block}
.nk-petakotak .nk-kartu{flex-direction:row;box-shadow:none}
.nk-petakotak .nk-kartu:hover{transform:none}
.nk-petakotak .nk-kartu__media{flex:0 0 40%;aspect-ratio:auto;min-height:100%}
.nk-petakotak .nk-kartu__isi{padding:20px 56px 20px 20px}
.nk-petakotak .nk-kartu__ringkasan{-webkit-line-clamp:3}
.nk-petakotak__tutup{position:absolute;top:8px;right:8px;z-index:2}

/* several projects at one site: the title, then one row per project (the card's compact variant "ringkas" laid out as a
   row: a small photo, the status, the title and the period, an arrow), even rows with a divider, a soft highlight on
   hover, and the link to the grid */
.nk-kabar.nk-petadaftar{padding:20px 20px 8px;background:#fff}   /* .nk-kabar: outranks the wrapper reset above */
.nk-petalembar .nk-kabar.nk-petadaftar{padding:0}
.nk-petadaftar__judul{margin:0 48px 8px 0;font:700 20px/28px var(--nk-font);color:var(--nk-ink)}   /* --fs-h4 (small) */
.nk-petadaftar .nk-grid[data-variant="ringkas"] .nk-kartu{flex-direction:row;align-items:center;gap:16px;margin:0 -8px;padding:12px 8px;border-top:1px solid var(--nk-line);border-radius:8px;background:none;box-shadow:none}   /* --r-md */
.nk-petadaftar .nk-grid[data-variant="ringkas"] > .nk-kartu:first-child{border-top-color:transparent}
.nk-petadaftar .nk-grid[data-variant="ringkas"] .nk-kartu:hover{background:var(--leaf-wash);box-shadow:none}
.nk-petadaftar .nk-grid[data-variant="ringkas"] .nk-kartu:hover + .nk-kartu{border-top-color:transparent}
.nk-petadaftar .nk-grid[data-variant="ringkas"] .nk-kartu .nk-kartu__media{flex:0 0 96px;min-height:0;aspect-ratio:4/3;border-radius:8px}   /* --r-md */
.nk-petadaftar .nk-grid[data-variant="ringkas"] .nk-kartu .nk-kartu__isi{gap:4px;padding:0}
.nk-petadaftar .nk-grid[data-variant="ringkas"] .nk-kartu .nk-kartu__judul{font-size:16px;line-height:24px}
.nk-petadaftar .nk-grid[data-variant="ringkas"] .nk-kartu::after{content:"";flex:none;width:16px;height:16px;margin-left:auto;background:var(--nk-ink-soft);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z'/%3E%3C/svg%3E") center / contain no-repeat}   /* Phosphor caret-right */
.nk-petadaftar .nk-grid[data-variant="ringkas"] .nk-kartu:hover::after{background:var(--nk-forest)}
.nk-petadaftar .nk-kartu:has(.nk-kartu__tautan:focus-visible){outline-offset:-3px}   /* the keyboard ring inside the box, not cut off */
/* "Lihat semua proyek di …": a text button with an arrow, no box (user, 27 Oct 2026: "remove the box") */
.nk-petadaftar__lagi{display:inline-flex;align-items:center;gap:6px;margin:4px 0 8px;padding:8px 0;border:0;background:none;color:var(--nk-forest);font:600 14px/20px var(--nk-font);text-underline-offset:3px;cursor:pointer;touch-action:manipulation}
.nk-petadaftar__lagi svg{width:14px;height:14px;flex:none}
.nk-petadaftar__lagi:hover{text-decoration:underline}
.nk-petadaftar__lagi:focus-visible{outline:3px solid var(--nk-forest);outline-offset:2px;border-radius:6px}   /* --r-sm */

/* the sheet (phones): the shared content dialog, but from the bottom and only as tall as the card */
@media (max-width:760px){
  .nk-petalembar.nk-dialog--isi{top:auto;bottom:0;height:auto;max-height:88vh;max-height:88dvh;margin:0;padding:64px 16px calc(16px + env(safe-area-inset-bottom));border-radius:var(--r-lg) var(--r-lg) 0 0}
  .nk-petalembar .nk-kartu{box-shadow:none}
}

/* a dot made of several that crowd on screen (project-map-popup.js kumpulkan()): the ochre mark the SVG dots have, white
   ring and shadow, with the number of projects on it; the merged SVG marks are hidden */
.nk-peta__titik--kumpul::after{content:"";position:absolute;top:50%;left:50%;width:14px;height:14px;margin:-9px 0 0 -9px;border:2px solid var(--paper);border-radius:50%;background:var(--ochre);box-shadow:0 1px 3px rgba(36,48,40,.35)}
