/* =====================================================================================================
   NTFP-EP Indonesia: gaya dasar bersama semua halaman
   token desain (warna, huruf, jarak, sudut, bayangan, wadah), gaya dasar, tautan "lewati", titik navigasi bagian (beranda).
   Header dan footer: assets/components/layout/site-header.css dan site-footer.css (dipisah dari file ini 19 Okt 2026);
   setiap halaman memuat keduanya tepat setelah file ini.
   Dipisah otomatis dari index.html (v48); urutan aturan dipertahankan. Halaman lain memuat file ini lebih dulu,
   lalu gayanya sendiri (beranda: beranda.css; sejarah: gaya di history.html).
   ===================================================================================================== */
:root{
  --leaf:#7CA043; --forest:#33672E; --forest-deep:#24482A; --paper:#F7FAF1; --sky:#F2EFDA; --sky-day:#F2EFDA; --sky-rgb:242,239,218; --tod-dur:1.5s;
  --ink:#243028; --ink-soft:#4B584E; --line:rgba(36,48,40,.16); --ochre:#C98B3A;
  --ease:cubic-bezier(.32,.72,0,1);
  --font:"Avenir Next","Avenir","Avenir LT Std","Avenir LT Pro","Nunito Sans",system-ui,sans-serif;
}
/* design tokens (docs/styling-guide.md §15, added 18 Oct 2026); the names set above keep their place. The --nk-* names at the end of this file point at these */
:root{
  --leaf-light:#B9D88F; --leaf-tint:#D8E6C4; --leaf-wash:#E9EEDB; --ink-muted-dark:#C9D3C3;
  --honey-wash:#FBE7C2; --earth:#7A4B12; --night-text:#F4F1E4;
  --map-active:#A9C78B; --map-other:#CAD6CC;
  --fs-display:60px; --lh-display:60px; --fs-h1:48px; --lh-h1:52px; --fs-h2:36px; --lh-h2:40px;
  --fs-h3:28px; --lh-h3:36px; --fs-h4:20px; --lh-h4:28px; --fs-stat:44px; --lh-stat:48px;
  --fs-lede:18px; --lh-lede:28px; --fs-article:18px; --lh-article:30px; --fs-body:16px; --lh-body:24px;
  --fs-sm:14px; --lh-sm:20px; --fs-xs:12px; --lh-xs:16px;
  --track-head:-.02em; --track-caps:.14em; --measure:680px; --measure-lede:640px;
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px; --sp-6:24px;
  --sp-8:32px; --sp-10:40px; --sp-12:48px; --sp-16:64px; --sp-24:96px;
  --section-space:64px; --section-space-sm:48px;
  /* shared container: content max --wadah, centred, --gutter outside it. --wadah-tepi is that left/right edge as padding or inset on a
     full-width box (a % of its containing block, so never 100vw: that counts the scrollbar). Up to a 1680 px screen (1600 + 2 × 40) it
     equals --gutter; wider screens get equal space left and right: about 150 px at 1920, close to Adobe's 160 (docs/research/wide-screen-research.md).
     History: 1344 on 18 Oct 2026, 1840 earlier on 19 Oct, 1600 since the evening of 19 Oct. ?wadah= (assets/components/core/inti.js) previews other widths.
     The content container (--nk-wadah 1300, at the end of this file) stays narrower, inside it */
  --gutter:40px; --wadah:1600px; --wadah-tepi:max(var(--gutter), (100% - var(--wadah)) / 2);
  --r-xs:2px; --r-sm:6px; --r-md:8px; --r-lg:12px; --r-pill:999px;
  --shadow-1:0 1px 0 rgba(36,48,40,.08),0 12px 24px -20px rgba(36,48,40,.45);
  --shadow-2:0 1px 0 rgba(36,48,40,.08),0 8px 20px -12px rgba(36,48,40,.45);
  --shadow-3:0 1px 0 rgba(36,48,40,.08),0 24px 48px -28px rgba(36,48,40,.55);
  --shadow-4:0 18px 36px -20px rgba(20,30,22,.7);
  --dur-1:150ms; --dur-2:300ms; --dur-3:500ms; --dur-4:900ms; --ease-in-out:cubic-bezier(.65,0,.35,1);
  --z-secnav:30; --z-header:40; --z-popover:50; --z-skip:60;
}
@media (max-width:1100px){:root{--fs-display:48px;--lh-display:50px;--fs-h1:40px;--lh-h1:44px;--fs-h2:30px;--lh-h2:36px;--fs-stat:40px;--lh-stat:44px}}
@media (min-width:1280px){:root{--section-space:96px;--section-space-sm:64px}}
@media (max-width:760px){:root{--gutter:16px;--section-space:48px;--section-space-sm:32px;--fs-display:36px;--lh-display:34px;--fs-h1:32px;--lh-h1:38px;
  --fs-h3:24px;--lh-h3:32px;--fs-h4:18px;--lh-h4:26px;--fs-stat:36px;--lh-stat:40px;--fs-lede:16px;--lh-lede:24px;--fs-article:17px;--lh-article:28px}}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:16px;line-height:24px;-webkit-font-smoothing:antialiased}
/* the footer on the bottom edge of every page, however short its content (11 Nov 2026, user: "make it default for every
   page"): the page fills the window and its <main> takes the room left. The header, skip link and dialogs are fixed,
   outside the flow. Not the homepage (its own full-screen sections, beranda.css) and not in print */
@media screen{
  body:not([data-halaman="beranda"]){display:flex;flex-direction:column;min-height:100vh;min-height:100svh}
  body:not([data-halaman="beranda"]) > main{flex:1 0 auto}
}
button{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--forest);outline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.skip{position:fixed;z-index:60;left:16px;top:-64px;background:var(--ink);color:var(--paper);padding:8px 12px;border-radius:8px;text-decoration:none;font-weight:600;transition:top .5s var(--ease)}
.skip:focus{top:16px}

/* =====================================================================================================
   Inner pages (merged from core/base.css on 21 Oct 2026; base.css retired to archive/bersama/components/base.css).
   Shared by the Kabar, Proyek, Tim, Mitra, Tematik and NAHEBA pages and their components. The --nk-* names stay because
   the components use them; each now points at the token above, so there is one value. The content container
   --nk-wadah (1300) is the one value of its own (docs/styling-guide.md §5.1). Dropped: the --section-space copies (same
   values above), the phone --nk-tepi override (--gutter already does it) and two WordPress-only rules (Astra link
   underlines, the block editor preview).
   ===================================================================================================== */
:root{--nk-forest:var(--forest);--nk-forest-deep:var(--forest-deep);--nk-leaf:var(--leaf);--nk-paper:var(--paper);--nk-ink:var(--ink);
  --nk-ink-soft:var(--ink-soft);--nk-line:var(--line);--nk-ochre:var(--ochre);--nk-font:var(--font);--nk-radius:var(--r-md);
  --nk-shadow:var(--shadow-2);--nk-tepi:var(--gutter);
  --nk-wadah:1300px}   /* the content container: Kabar and Proyek, Tim, Mitra, Tematik, NAHEBA (1300 = the most common width of tech companies' news and project sections, docs/research/wide-screen-research.md) */
/* R9: anchor jumps and keyboard focus stop below the fixed header (the shrunk header + 16) */
html{scroll-padding-top:calc(var(--head-h-s,68px) + 16px)}
.nk-kabar,.nk-banner,.nk-artikel,.nk-terkait{font-family:var(--nk-font);color:var(--nk-ink);box-sizing:border-box}
.nk-kabar *,.nk-banner *,.nk-artikel *,.nk-terkait *{box-sizing:border-box}

/* ---------- single post: shared parts (the head, photo, bio and previous/next are components) ---------- */
.nk-artikel{background:#fff}
/* separator: a 12px chevron (§9.10) drawn in the text colour; set color on the ::before to recolour it */
.nk-crumb li+li::before,.nk-banner__pemisah{content:"";flex:none;width:12px;height:12px;margin-right:6px;background:currentColor;color:var(--nk-ink-soft);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center/12px 12px no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center/12px 12px no-repeat}

.nk-artikel figcaption{margin-top:8px;color:var(--nk-ink-soft);font:400 14px/20px var(--nk-font);text-align:center} /* --fs-sm */
.nk-artikel__isi{padding:32px var(--nk-tepi) 48px;font:400 18px/30px var(--nk-font);overflow-wrap:anywhere} /* --fs-article */
.nk-artikel__isi>*{max-width:680px;margin-left:auto;margin-right:auto} /* --measure */
.nk-artikel__isi>*+*{margin-top:1.1em}
.nk-artikel__isi>.alignwide{max-width:960px}
.nk-artikel__isi>.alignfull{max-width:none;margin-left:calc(-1 * var(--nk-tepi));margin-right:calc(-1 * var(--nk-tepi))}
.nk-artikel__isi h2:where(:not(.nk-sekilas__judul)){margin-top:1.6em;font:700 28px/36px var(--nk-font);letter-spacing:-.01em} /* --fs-h3 */
.nk-artikel__isi h3:where(:not(.nk-judul-sub,.nk-kartu__judul,.nk-kartu-info__judul,.nm-kartu__nama)){margin-top:1.4em;font:700 20px/28px var(--nk-font)} /* --fs-h4 */
.nk-artikel__isi a:where(:not(.nk-btn,.nh-semua,.nk-video__layar,.nk-kartu__tautan)){color:var(--nk-forest);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.nk-artikel__isi a:where(:not(.nk-btn,.nh-semua,.nk-video__layar,.nk-kartu__tautan)):hover{color:var(--nk-forest-deep)}
.nk-artikel__isi blockquote{padding:4px 0 4px 20px;border-left:4px solid var(--nk-leaf);font-size:20px;font-style:italic}
.nk-artikel__isi img:where(:not(.mt-kartu__logo)){max-width:100%;height:auto}   /* a partner's logo keeps its own size (shared/partner-card.css) */
/* R13: a body photo keeps its 16:9 box when the file is slow or missing (a broken image would otherwise render inline, one text line tall) */
.nk-artikel__isi figure img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--nk-paper)}
.nk-artikel__isi .wp-block-table{overflow-x:auto}
.nk-artikel__isi table:where(:not(.nk-tabel)){width:100%;border-collapse:collapse}
.nk-artikel__isi th:where(:not(.nk-tabel *)),.nk-artikel__isi td:where(:not(.nk-tabel *)){padding:10px;border:1px solid var(--nk-line);text-align:left;font-variant-numeric:tabular-nums} /* numbers line up in columns */
.nk-artikel__isi pre,.nk-artikel__isi code{background:var(--nk-paper);font-size:.9em}
.nk-artikel__isi code{border-radius:6px} /* --r-sm */
.nk-artikel__isi pre{padding:16px;border-radius:8px;overflow-x:auto} /* --r-md */
@media (max-width:760px){
  .nk-artikel__isi{font-size:17px;line-height:28px}
  .nk-artikel__isi h2{font-size:24px;line-height:32px}
  .nk-artikel__isi h3{font-size:18px;line-height:26px}
}

/* the related-posts band (k-page-section pita="terkait") and the page column */
.nk-terkait{background:var(--nk-paper)}
.nk-halaman{flex:1 1 100%;width:100%;min-width:0}


/* ====================== LIST PAGE (berita.html) ====================== */
/* The header is fixed, so content starts below it; a solid bar keeps its dark text readable over the dark banner */
body[data-halaman="kabar"]{background:var(--nk-paper)} /* the page background is paper, never white (§2.2); white stays for bands and cards */
body[data-halaman="kabar"] .nk-halaman-kabar{padding-top:var(--head-h)}
html[data-halaman-id="berita"] body{background:#fff} /* berita.html is white since 23 Oct 2026 (the user's pick with the Sorotan carousel; styling guide §2.2) */

/* ---------- print (R14): an article or project page (kabar.html, proyek.html) prints as plain text and photos ---------- */
@media print{
  :root{--head-h:0px;--head-h-s:0px} /* no room kept for the fixed header */
  body:has(.nk-artikel) :is(.skip,.site-head,.secnav,.site-foot .ft-nav,.site-foot .ft-sos,.nk-chips,.nk-terkait,.nk-nav,.nk-blogband){display:none}
  html body:has(.nk-artikel),html body:has(.nk-artikel) :is(.nk-artikel,.nk-artikel__isi,.nk-pita,.nk-bio,.site-foot){background:#fff;color:#000} /* html: outranks body.nk-v-blog */
  body:has(.nk-artikel) :is(.nk-artikel__kategori,.nk-artikel__judul,.nk-artikel__meta,.nk-crumb a,.nk-penulis__nama,.nk-penulis__jabatan,.nk-artikel figcaption,.nk-bio__jabatan){color:#000}
  body:has(.nk-artikel) :is(.nk-artikel__gambar,.nk-kartu){box-shadow:none}
  body:has(.nk-artikel) :is(figure,blockquote,tr,.nk-bio){break-inside:avoid}
  body:has(.nk-artikel) .nk-artikel__isi :is(h2,h3){break-after:avoid}
  .nk-artikel__isi a[href^="http"]::after{content:" (" attr(href) ")";overflow-wrap:anywhere} /* the address, since paper can't be clicked */
}
