/* Satu tulisan dan satu proyek (kabar.html dan proyek.html; pola 'cerita' di config/halaman.js): kepala di kiri wadah 1300 dengan foto kedua (kabar) atau
   peta lokasi proyek (proyek) di kanannya, lalu foto
   utama dan isi tulisan di tengah layar, selebar pilihan pembaca (680 seperti Vercel, atau 810 seperti Stripe: tombol di kanan
   bawah, pages/cerita/story-page.js); sesudah isi: lokasi desa dan mitra; lalu "Kabar lainnya".
   Dimuat sesudah pages/cerita/article-page.css dan menimpa kepala pita gelapnya. Semua aturan di bawah .nk-cerita (atau tombol
   .nk-lebar-teks), jadi halaman lain dan pratinjau archive/kabar-proyek-opsi/ yang memuat berkas ini tidak berubah. */
.nk-cerita{--nk-lebar-teks:680px}
html[data-lebar-teks="810"] .nk-cerita{--nk-lebar-teks:810px}

/* ---------- head: on the page, not a dark band; a green label badge; title, intro, date, author ---------- */
.nk-cerita__kop{max-width:calc(var(--nk-wadah) + 2 * var(--nk-tepi));margin:0 auto;padding:calc(var(--head-h) + 40px) var(--nk-tepi) 0;box-sizing:border-box}
.nk-cerita__kepala{max-width:860px}
.nk-cerita__kepala .nk-kolom{max-width:none}
.nk-cerita .nk-artikel__kepala{padding:0;background:none;color:var(--nk-ink)}
.nk-cerita .nk-artikel__kepala::before{display:none}   /* no rings either */
.nk-cerita .nk-artikel__kepala .nk-crumb a,.nk-cerita .nk-artikel__kepala .nk-crumb li+li::before{color:inherit}
.nk-cerita .nk-artikel__kepala .nk-crumb a:hover{color:var(--nk-forest);opacity:1}   /* the breadcrumb's own hover (breadcrumb.css), not the dark band's paper */
.nk-cerita .nk-artikel__kepala :is(.nk-crumb a,.nk-artikel__kategori):focus-visible{outline-color:var(--nk-forest)}   /* light surface: forest ring (§9.14), not the dark band's ochre */
.nk-cerita .nk-artikel__kepala :is(.nk-artikel__judul,.nk-penulis__nama){color:var(--nk-ink)}
.nk-cerita .nk-artikel__kepala :is(.nk-artikel__meta,.nk-penulis__jabatan){color:var(--nk-ink-soft)}
.nk-cerita .nk-artikel__kepala .nk-avatar{box-shadow:none}
.nk-cerita .nk-artikel__kepala :is(.nk-artikel__kategori,.nk-status){display:inline-block;padding:2px 8px;border-radius:4px;background:var(--nk-forest);color:var(--nk-paper)}
.nk-cerita .nk-artikel__kepala .nk-status{margin:0 0 8px;font:600 14px/20px var(--nk-font);letter-spacing:.14em;text-transform:uppercase}   /* a project's status ("Berjalan") as kabar's category label (article-header.css) */
.nk-cerita .nk-artikel__kepala .nk-status__titik{display:none}
/* a project status with its own colour (KONTEN.statusProyek): that colour behind it, dark text on a light one */
.nk-cerita .nk-artikel__kepala .nk-status[data-warna]{background:var(--nk-status)}
.nk-cerita .nk-artikel__kepala .nk-status[data-warna="terang"]{color:var(--nk-ink)}
.nk-cerita .nk-artikel__kepala .nk-artikel__judul{font-size:44px;line-height:50px}
.nk-cerita .nk-artikel__intro{margin:16px 0 8px;font-size:20px;line-height:30px;color:var(--nk-ink)}   /* <k-article-header intro> */
.nk-cerita .nk-artikel__intro + .nk-artikel__meta{margin:0 0 32px}
/* proyek.html: status, period and province, each its own label in one row (<k-article-header label-proyek>; user: "Berjalan | 2024 - 2027 |
   Kalimantan Barat. so its each individual placement"); no meta line under the intro then, so the author keeps its 32 px */
.nk-cerita .nk-label-baris{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px}
.nk-cerita .nk-label-baris .nk-status{margin:0}
.nk-cerita .nk-artikel__intro + .nk-penulis{margin-top:24px}

/* ---------- the photos: the main one as wide as the text, centred under the head; the second one right of the title
   (from 901 px). No captions here (user); the alt texts stay ---------- */
.nk-cerita__kop > .nk-artikel__figur{max-width:var(--nk-lebar-teks);margin:40px auto 0;padding:0}
.nk-cerita__kop > .nk-artikel__figur img{border-radius:16px}
.nk-cerita__kop figcaption{display:none}
.nk-cerita__samping .nk-artikel__figur{max-width:none;margin:0;padding:0}
.nk-cerita__samping .nk-artikel__gambar{aspect-ratio:16/9;object-fit:cover;border-radius:16px;box-shadow:none}
.nk-cerita__samping .nk-peta{margin:0}   /* proyek.html: the location map (project/project-map) in the second photo's place */

/* ---------- the text, then the villages (more text: its title and bullets look like the story's) and the partners
   (the Mitra Kami cards, shared/partner-card.css), all on the text's width ---------- */
.nk-cerita__badan .nk-artikel__isi > *{max-width:var(--nk-lebar-teks)}
.nk-cerita__desa{padding-top:0}   /* the text above already ends with 48 px */
.nk-cerita__desa > h2:first-child{margin-top:0}
.nk-cerita__mitra{max-width:calc(var(--nk-lebar-teks) + 2 * var(--nk-tepi));margin:0 auto;padding:0 var(--nk-tepi) 64px;box-sizing:border-box}
.nk-cerita__judul{margin:0 0 20px;font:700 28px/36px var(--nk-font);letter-spacing:-.01em;color:var(--nk-ink)}   /* like the text's h2 (dasar.css, --fs-h3) */
.nk-cerita__mitra .mt-kartu{padding-top:24px}   /* no location pill, so the name sits in the middle */
@media (min-width:761px){ .nk-cerita__mitra .mt-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))} }   /* three per row in the 680 / 810 column */
@media (max-width:760px){ .nk-cerita__judul{font-size:24px;line-height:32px} .nk-cerita__mitra .mt-kartu{padding-top:16px} }   /* same as the card's bottom on phones */

/* ---------- "Kabar lainnya": the list cards ("datar") on the 1300 container ---------- */
.nk-cerita ~ .nk-terkait .nk-kabar{max-width:calc(var(--nk-wadah) + 2 * var(--nk-tepi))}

@media (min-width:901px){
  /* head column 720 and the second photo beside it (532 at 1300); from the main photo down the story is in the middle */
  .nk-cerita__kop{display:grid;grid-template-columns:minmax(0,720px) minmax(240px,1fr);column-gap:48px;align-items:start}
  .nk-cerita__samping{grid-column:2;grid-row:1}   /* its top is set level with the title (story-page.js) */
  .nk-cerita__kop > .nk-artikel__figur{grid-column:1 / -1;justify-self:center;width:100%}
  .nk-cerita__badan{--nk-isi:min(var(--nk-wadah), 100% - 2 * var(--nk-tepi));width:min(var(--nk-lebar-teks), var(--nk-isi));margin:0 auto}
  .nk-cerita__badan .nk-artikel__isi{padding-left:0;padding-right:0}
  .nk-cerita__mitra{padding-left:0;padding-right:0}
}
/* nothing beside the head (kabar.html since 23 Oct 2026, user: "make the header on the middle too only in kabar"; its recipe
   has no fotoSamping): the head column in the middle, as wide as the main photo and the text under it (so their left edges
   line up), its text still left-aligned (user: "not all align in the middle for the text") */
.nk-cerita__kop:not(:has(.nk-cerita__samping)){display:block}
.nk-cerita__kop:not(:has(.nk-cerita__samping)) .nk-cerita__kepala{max-width:var(--nk-lebar-teks);margin:0 auto}
@media (max-width:900px){
  .nk-cerita__samping{display:none}   /* phones and narrow windows: the head as one column, without the second photo */
  .nk-cerita__samping:has(.nk-peta, .nk-peta-jejak){display:block;margin-top:32px}   /* but a project's map stays, under the head (.nk-peta-jejak: the whole-Indonesia map, 17 Nov 2026) */
  [data-halaman-id="proyek"] .nk-cerita__samping:has(.nk-artikel__figur){display:block;margin-top:32px}   /* ...and a project's photo, when it chose one instead of the map (17 Nov 2026): the only photo at the top */
  /* ...with a hairline between it and the main photo (user, 23 Oct 2026: "between map and image, there's a line") */
  .nk-cerita__samping:has(.nk-peta, .nk-peta-jejak){padding-bottom:32px;border-bottom:1px solid var(--nk-line)}
  .nk-cerita__samping:has(.nk-peta, .nk-peta-jejak) + .nk-artikel__figur{margin-top:32px}
  .nk-cerita .nk-artikel__kepala .nk-artikel__judul{font-size:32px;line-height:40px}
}

/* ---------- the reader's text width switch, bottom right (from 901 px; below that both widths are the screen's): the shared
   button group (ui/button.css), the pick filled green; above the page like the side section dots (--z-secnav) ---------- */
.nk-lebar-teks{position:fixed;z-index:30;right:max(16px, env(safe-area-inset-right));bottom:max(16px, env(safe-area-inset-bottom));border-radius:var(--ui-radius);box-shadow:var(--shadow-2)}
@media (max-width:900px){ .nk-lebar-teks{display:none} }
@media print{ .nk-lebar-teks{display:none} }
