/* Komponen dialog (V54): jendela <dialog> yang sama di semua halaman dalam (styling guide §9.8).
   <dialog class="nk-dialog nk-dialog--isi"> (terang) atau "nk-dialog nk-dialog--foto" (lightbox gelap); tombol tutup
   .nk-dialog__tutup (dengan .nk-btn data-variant="ghost" data-size="icon-lg" dari ui/button.css; lightbox: data-tema="gelap"). Buka dan tutup lewat dialog.js (window.NtfpDialog).
   Hanya memakai token dari dasar.css. */
/* ---------- dialogs (§9.8): native <dialog> + showModal(), opened and closed by dialog.js ---------- */
html.nk-dialog-buka{overflow:hidden}
.nk-dialog{overscroll-behavior:contain}
.nk-dialog__tutup{position:absolute;top:16px;right:16px;z-index:3}
.nk-dialog .nk-ikon{width:48px;height:48px} /* archive pages only (old buttons): round controls were 48 in dialogs */
/* content dialog (light): profiles, details; a full-screen sheet on phones */
.nk-dialog--isi{width:calc(100% - 32px);max-width:880px;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);padding:32px;border:0;border-radius:var(--r-lg);
  background:#fff;color:var(--ink);font-family:var(--font);box-shadow:var(--shadow-4)}
.nk-dialog--isi::backdrop{background:rgba(20,30,22,.55)}
/* lightbox (dark): photos and stories on the dark backdrop */
.nk-dialog--foto{width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:var(--paper)}
.nk-dialog--foto::backdrop{background:rgba(18,28,20,.93);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.nk-dialog--foto .nk-ikon:focus-visible{outline-color:var(--leaf-light)}   /* archive pages only */
.nk-dialog--foto .nk-btn{--ui-ring:var(--leaf-light)}   /* §9.14: leaf-light focus in the lightbox */
@media (max-width:760px){
  .nk-dialog--isi{width:100%;height:100vh;height:100dvh;max-width:none;max-height:none;margin:0;padding:20px;border-radius:0}
  .nk-dialog__tutup{top:calc(16px + env(safe-area-inset-top));right:calc(16px + env(safe-area-inset-right))}
}
/* opening: fade + 8px rise, --dur-2; html.nk-gerak (dialog.js) = motion allowed by the system, or ?gerak=1 */
html.nk-gerak .nk-dialog[open]{animation:nk-dialog-muncul .3s var(--ease)}
html.nk-gerak .nk-dialog[open]::backdrop{animation:nk-dialog-redup .3s ease}
@keyframes nk-dialog-muncul{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes nk-dialog-redup{from{opacity:0}to{opacity:1}}
