/* =============================================================
   News From Leads — stylesheet
   Palet diambil dari logo Leads Indonesia Foundation.
   Gaya: Editorial Magazine. Mobile-first. Dark mode via [data-theme].
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand (dari logo) */
  --navy: #15407D;
  --navy-700: #10336A;
  --navy-900: #0A1F45;
  --ink: #231F20;
  --sky: #2AAFF5;
  --teal: #01B29C;
  --lime: #8BCA01;
  --magenta: #E31448;
  --yellow: #F9C500;

  /* Varian aksen aman untuk teks (≥ 4.5:1 di atas --paper) */
  --sky-text: #1A6FAE;
  --teal-text: #007466;
  --lime-text: #587F00;
  --magenta-text: #BE0F3C;
  --yellow-text: #7E6200;

  /* Surface & teks (light) */
  --paper: #FBFAF6;
  --surface: #FFFFFF;
  --surface-2: #F3F1EA;
  --surface-3: #EAE7DD;
  --line: #E3DFD4;
  --line-strong: #A49C88;
  --text: #1B1A1B;
  --text-2: #4B4849;
  --text-3: #6B6768;
  --link: var(--navy);
  --brand-on-dark: #FFFFFF;
  --band-bg: var(--navy);
  --band-text: #FFFFFF;
  --band-muted: rgba(255,255,255,.72);
  --accent-ink: var(--navy);            /* drop cap, marker daftar, tombol utama */
  --btn-bg: var(--navy); --btn-fg: #FFFFFF; --btn-bg-hover: var(--navy-700);
  --focus: var(--navy);                 /* 37: sky hanya 2,35:1 di latar terang */
  --scrim: rgba(10, 18, 32, .5);
  --space-2xs: .5rem; --space-xs: .75rem; --space-s: 1rem;
  --space-m: 1.5rem; --space-l: clamp(1.75rem, 3vw, 2.5rem);
  --space-xl: clamp(2.5rem, 6vw, 4.5rem);
  --shadow-1: 0 1px 2px rgba(20, 30, 50, .06), 0 8px 24px -12px rgba(20, 30, 50, .18);
  --shadow-2: 0 2px 6px rgba(20, 30, 50, .08), 0 20px 40px -16px rgba(20, 30, 50, .28);
  --header-bg: rgba(251, 250, 246, .84);
  --cta-bg: var(--navy); --cta-fg: #FFFFFF; --cta-bg-hover: var(--navy-700); --cta-icon: var(--yellow);
  --cta-shadow: 0 6px 16px -8px rgba(21, 64, 125, .75);

  /* Tipografi */
  --font-display: "Newsreader", "Iowan Old Style", "Times New Roman", Georgia, serif;
  --font-body: "Inter", "SF Pro Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-brand: "El Messiri", var(--font-display);
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.35rem;
  --step-3: clamp(1.625rem, 1.3rem + 1.2vw, 2rem);
  --step-4: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  --step-5: clamp(2rem, 1.1rem + 2.9vw, 3.5rem);

  /* Ritme & bentuk */
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --container: 1200px;
  --measure: 66ch;
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --header-h: 64px;
  --topbar-h: 34px;

  /* Motion */
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: 160ms;
  --dur: 260ms;
  --dur-slow: 480ms;

  --stripe: linear-gradient(90deg,
    var(--yellow) 0 20%, var(--lime) 20% 40%, var(--teal) 40% 60%, var(--sky) 60% 80%, var(--magenta) 80% 100%);
  color-scheme: light;
}

/* Dark tokens */
[data-theme="dark"] {
  --paper: #0A1220;
  --surface: #101B2E;
  --surface-2: #162439;
  --surface-3: #1D2E47;
  --line: #24344D;
  --line-strong: #5C7099;
  --text: #EEF2F8;
  --text-2: #BCC6D7;
  --text-3: #8F9CB2;
  --link: #79B5F2;
  --sky-text: #6CC6FF;
  --teal-text: #35D6C0;
  --lime-text: #B5E24A;
  --magenta-text: #FF6A8E;
  --yellow-text: #FFD54F;
  --band-bg: #172A4D;
  --band-text: #FFFFFF;
  --band-muted: rgba(255,255,255,.66);
  --shadow-1: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-2: 0 2px 6px rgba(0,0,0,.35), 0 20px 40px -16px rgba(0,0,0,.7);
  --header-bg: rgba(10, 18, 32, .82);
  --cta-bg: var(--sky); --cta-fg: var(--navy-900); --cta-bg-hover: #57C0FF; --cta-icon: var(--navy-900);
  --accent-ink: var(--sky);
  --btn-bg: var(--sky); --btn-fg: var(--navy-900); --btn-bg-hover: #57C0FF;
  --focus: var(--sky);
  --scrim: rgba(0, 0, 0, .62);
  --cta-shadow: 0 6px 16px -8px rgba(42, 175, 245, .55);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A1220; --surface: #101B2E; --surface-2: #162439; --surface-3: #1D2E47;
    --line: #24344D; --line-strong: #5C7099; --text: #EEF2F8; --text-2: #BCC6D7; --text-3: #8F9CB2;
    --link: #79B5F2; --sky-text: #6CC6FF; --teal-text: #35D6C0; --lime-text: #B5E24A; --magenta-text: #FF6A8E; --yellow-text: #FFD54F;
    --band-bg: #172A4D; --band-text: #FFFFFF; --band-muted: rgba(255,255,255,.66);
    --shadow-1: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-2: 0 2px 6px rgba(0,0,0,.35), 0 20px 40px -16px rgba(0,0,0,.7);
    --cta-bg: var(--sky); --cta-fg: var(--navy-900); --cta-bg-hover: #57C0FF; --cta-icon: var(--navy-900);
    --accent-ink: var(--sky);
    --btn-bg: var(--sky); --btn-fg: var(--navy-900); --btn-bg-hover: #57C0FF;
    --focus: var(--sky);
    --scrim: rgba(0, 0, 0, .62);
    --cta-shadow: 0 6px 16px -8px rgba(42, 175, 245, .55);
    --header-bg: rgba(10, 18, 32, .82); color-scheme: dark;
  }
}

@media (min-width: 900px) { :root { --header-h: 76px; } }

/* Kategori → warna */
[data-cat="semuabisabelajar"] { --cat: var(--teal); --cat-text: var(--teal-text); }
[data-cat="iyls"] { --cat: var(--sky); --cat-text: var(--sky-text); }
[data-cat="leads-career"] { --cat: var(--magenta); --cat-text: var(--magenta-text); }
[data-cat="csr-impact"] { --cat: var(--lime); --cat-text: var(--lime-text); }
[data-cat="main"] { --cat: var(--link); --cat-text: var(--link); }

/* ---------- Reset ringan ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1rem); }   /* 11/51 */
body {
  margin: 0;
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);   /* 53 */
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.012em; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(42, 175, 245, .28); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.contrib :focus-visible, [data-theme="dark"] .contrib :focus-visible { --focus: #FFFFFF; }
.btn-primary:focus-visible, .btn-cta:focus-visible { outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Intro hero: CSS keyframes murni, jalan begitu elemen dirender (tanpa menunggu GSAP) */
.js-anim .hero-line { opacity: 0; transform: translateY(26px); animation: rise .8s var(--ease-out) forwards; animation-delay: calc(.3s + var(--i, 0) * .09s); }
.js-anim .hero-media .frame, .js-anim .reveal-clip .frame { clip-path: inset(0 100% 0 0); animation: wipe 1.1s var(--ease-in-out) forwards; }
.js-anim .hero-media .img-wrap, .js-anim .reveal-clip .img-wrap { transform: scale(1.1); animation: settle 1.6s var(--ease-out) forwards; }
.js-anim .hero-media figcaption { opacity: 0; animation: rise .8s var(--ease-out) .75s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: scale(1); } }
.no-intro .hero-line, .no-intro .hero-media, .no-intro .reveal-clip, .no-intro .img-wrap, .no-intro .frame, .no-intro figcaption { animation: none; opacity: 1; transform: none; clip-path: none; }

/* JARING PENGAMAN ANIMASI.
   Intro hero memakai keyframes dengan opacity awal 0. Kalau animasi tidak pernah
   benar-benar berjalan (tab latar, rAF dibeku, ekstensi yang mematikan animasi),
   judul utama akan hilang permanen. Kelas ini dipasang app.js setelah intro
   seharusnya selesai; kalau animasinya normal, ini tidak mengubah apa pun. */
.anim-settled .hero-line,
.anim-settled .hero-media .frame,
.anim-settled .reveal-clip .frame,
.anim-settled .hero-media .img-wrap,
.anim-settled .reveal-clip .img-wrap,
.anim-settled .hero-media figcaption {
  opacity: 1 !important;
  transform: none !important;
  clip-path: none !important;
}
/* Reveal saat scroll (GSAP ScrollTrigger); disembunyikan hanya saat GSAP siap */
.js-anim .reveal { opacity: 0; }
.js-anim .reveal.is-in { opacity: 1; }

/* ---------- Layout util ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.stripe { height: 4px; background: var(--stripe); }
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-3);
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cat, var(--navy)); }
.kicker.plain::before { display: none; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .6rem 1rem; background: var(--navy); color: #fff; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 1rem; }

/* ---------- Topbar ---------- */
.topbar { height: var(--topbar-h); background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: .78rem; color: var(--text-2); }
.topbar .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar .tagline { display: none; }
.topbar a { font-weight: 600; color: var(--link); }
@media (max-width: 639px) { .topbar { display: none; } }
@media (min-width: 720px) { .topbar .tagline { display: inline; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-1); }
.header-inner { height: var(--header-h); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .85rem; min-width: 0; height: 44px; }
.brand-logo { height: 34px; width: auto; }
.brand-logo.only-dark { display: none; }
[data-theme="dark"] .brand-logo.only-light { display: none; }
[data-theme="dark"] .brand-logo.only-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo.only-light { display: none; }
  :root:not([data-theme="light"]) .brand-logo.only-dark { display: block; }
}
.brand-sep { width: 1px; height: 28px; background: var(--line-strong); }
.brand-mast { font-family: var(--font-brand); font-weight: 600; font-size: 1.1rem; line-height: 1.1; letter-spacing: .01em; color: var(--text); }
/* 45: di bawah 820px lockup lebar diganti mark persegi + nama kanal */
.brand-mark { display: none; height: 32px; width: 32px; }
@media (max-width: 819px) {
  .brand-lockup { display: none !important; }
  .brand-mark { display: block; }
  .brand-sep { display: none; }
  .brand-mast { font-size: 1rem; }
}
@media (max-width: 400px) { .brand-mast { font-size: .92rem; } }
@media (min-width: 900px) { .brand-logo { height: 40px; } }

/* Nav kategori dipindah ke drawer; header menyisakan satu ajakan utama. */

.header-tools { display: flex; align-items: center; gap: .25rem; justify-self: end; }
.header-tools > * { flex: 0 0 auto; }
.brand { min-width: 0; }
.brand-logo { flex: 0 0 auto; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%;
  color: var(--text-2); transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 22px; height: 22px; }
.lang-btn {
  height: 36px; padding: 0 .6rem; display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  color: var(--text-2); transition: border-color var(--dur-fast), background-color var(--dur-fast), color var(--dur-fast);
}
.lang-btn:hover { border-color: var(--navy); color: var(--text); }
.lang-btn span { color: var(--text-3); transition: color var(--dur-fast); }
.lang-btn span[aria-current="true"] { color: var(--text); font-weight: 700; }
.lang-btn i { width: 1px; height: 12px; background: var(--line-strong); }
.btn-cta {
  display: inline-flex; align-items: center; gap: .5rem; margin-left: .35rem;
  height: 40px; padding: 0 .95rem 0 .85rem; border-radius: 999px;
  background: var(--cta-bg); color: var(--cta-fg);
  font-size: .84rem; font-weight: 600; white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.btn-cta svg { width: 17px; height: 17px; color: var(--cta-icon); transition: transform var(--dur) var(--ease-out); }
.btn-cta:hover { background: var(--cta-bg-hover); transform: translateY(-1px); }
.btn-cta:hover svg { transform: rotate(-12deg); }
.btn-cta:active { transform: translateY(0) scale(.97); }
.cta-full { display: none; }
.cta-short { display: inline; }
@media (min-width: 1024px) { .cta-full { display: inline; } .cta-short { display: none; } .btn-cta { height: 40px; padding: 0 1.05rem 0 .9rem; margin-left: .5rem; } }
@media (max-width: 559px) { .tool-search, .tool-lang, .tool-theme { display: none; } }

.theme-btn .icon-sun, .theme-btn .icon-moon { position: absolute; transition: transform var(--dur-slow) var(--ease-in-out), opacity var(--dur) var(--ease-out); }
.theme-btn { position: relative; }
.theme-btn .icon-moon { opacity: 0; transform: rotate(-90deg) scale(.6); }
[data-theme="dark"] .theme-btn .icon-sun { opacity: 0; transform: rotate(90deg) scale(.6); }
[data-theme="dark"] .theme-btn .icon-moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .icon-sun { opacity: 0; transform: rotate(90deg) scale(.6); }
  :root:not([data-theme="light"]) .theme-btn .icon-moon { opacity: 1; transform: none; }
}
.menu-btn { display: inline-grid; }

/* Drawer (mobile nav) */
.drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease-out); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(86vw, 360px); background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-2);
  transform: translateX(104%); visibility: hidden;        /* 2: jangan bisa di-Tab saat tertutup */
  transition: transform var(--dur-slow) var(--ease-out), visibility 0s linear var(--dur-slow);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;   /* 21 */
  padding: 1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); }
.drawer.is-open { transform: none; visibility: visible; transition: transform var(--dur-slow) var(--ease-out), visibility 0s; }
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: 48px; margin-bottom: .5rem; }
.drawer-head strong { font-family: var(--font-brand); font-size: 1.1rem; }
.drawer nav { margin-bottom: .5rem; }
.drawer nav a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: .5rem .25rem; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; }
.drawer nav a .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cat, var(--navy)); }
.drawer-actions { display: grid; gap: .1rem; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.drawer-action { display: flex; align-items: center; gap: .7rem; min-height: 48px; padding: 0 .25rem; font-size: .95rem; color: var(--text-2); border-radius: var(--radius-sm); transition: color var(--dur-fast); text-align: left; }
.drawer-action:hover { color: var(--text); }
.drawer-action svg { width: 20px; height: 20px; flex: 0 0 20px; }
.drawer-action [data-lang] { color: var(--text-3); }
.drawer-action [data-lang][aria-current="true"] { color: var(--text); font-weight: 700; }
.drawer-foot { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--text-3); }
.drawer-foot a { color: var(--link); font-weight: 600; }
body.is-locked { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { padding: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero-grid { display: grid; gap: clamp(1.25rem, 3vw, 2.5rem); }
.hero-media { margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.hero-media .frame { position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--surface-2); aspect-ratio: 3 / 2; max-height: min(58vh, 560px); }
@media (min-width: 640px) { .hero-media .frame { aspect-ratio: 16 / 9; } }
@media (min-width: 1100px) { .hero-media .frame { aspect-ratio: 4 / 3; max-height: none; } }
.hero-media .img-wrap, .article-hero .img-wrap { width: 100%; height: 100%; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* PERLAKUAN FOTO.
   Enam gambar berasal dari empat negara, empat kamera, dan pencahayaan berbeda.
   Koreksi halus ini membuatnya terbaca sebagai satu terbitan, bukan album campur.
   Hanya dikenakan pada foto; kartu tipografis sudah memakai warna merek. */
img[data-kind="foto"] { filter: saturate(1.06) contrast(1.04) brightness(1.01); }
[data-theme="dark"] img[data-kind="foto"] { filter: saturate(1.02) contrast(1.02) brightness(.94); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img[data-kind="foto"] { filter: saturate(1.02) contrast(1.02) brightness(.94); }
}
.hero-media figcaption { font-size: .78rem; line-height: 1.45; color: var(--text-3); max-width: 60ch; padding-left: .9rem; border-left: 2px solid var(--cat, var(--line-strong)); }
.hero-body { display: flex; flex-direction: column; gap: 1rem; }
.hero-title { font-size: var(--step-5); font-weight: 500; line-height: 1.04; letter-spacing: -0.022em; }
.hero-title.is-long { font-size: clamp(1.75rem, 1rem + 2.3vw, 2.85rem); line-height: 1.1; }
.article-title.is-long { font-size: clamp(1.75rem, 1rem + 2.1vw, 2.6rem); line-height: 1.12; max-width: 30ch; }
.hero-title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 96%; transition: background-size var(--dur-slow) var(--ease-out); }
.hero-title a:hover { background-size: 100% 2px; }
.hero-dek { font-size: var(--step-1); line-height: 1.5; color: var(--text-2); max-width: 46ch; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; font-size: .82rem; color: var(--text-3); }
.meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.btn-link { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; font-weight: 600; color: var(--link); }
.article-foot .btn-link, .article-rail .btn-link { min-height: 44px; }
.btn-link svg { width: 18px; height: 18px; transition: transform var(--dur) var(--ease-out); }
.btn-link:hover svg { transform: translateX(4px); }
.hero-aside { border-top: 1px solid var(--line-strong); padding-top: 1rem; }
.aside-title { font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1rem; }
.aside-list li { border-bottom: 1px solid var(--line); }
.aside-list a { display: grid; grid-template-columns: 2.1rem 1fr; gap: .6rem; padding: .9rem 0; align-items: baseline; }
.aside-list .num { font-family: var(--font-display); font-size: 1.35rem; font-style: italic; color: var(--cat-text, var(--accent-ink)); line-height: 1; }
.aside-list .title { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; line-height: 1.32; transition: color var(--dur-fast); }
.aside-list a:hover .title { color: var(--link); }
.aside-list .meta { margin-top: .3rem; }
@media (min-width: 720px) {
  .hero-aside { margin-top: clamp(.5rem, 2vw, 1.5rem); border-top-width: 2px; }
  .aside-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.25rem, 3vw, 2.5rem); }
  .aside-list li { border-bottom: 0; }
  .aside-list a { padding-top: 0; }
}
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: 7fr 5fr; align-items: start; column-gap: clamp(2rem, 4vw, 3.5rem); }
  .hero-body { align-self: center; padding-block: .5rem; }
  .hero-aside { grid-column: 1 / -1; }
}
@media (min-width: 1280px) {
  .hero-grid { grid-template-columns: 7.2fr 4.8fr; }
}

/* ---------- Section head ---------- */

/* ---------- Pita angka dampak ----------
   Pita tenang di antara grid berita dan ajakan menulis: angka besar bertipografi
   serif, label huruf kecil berspasi, garis tipis. Tidak ada kartu, tidak ada bayangan
   — supaya tidak bersaing dengan judul berita di atasnya. */
.impact { padding: var(--space-xl) 0; background: var(--surface-2); border-block: 1px solid var(--line); }
.impact-kicker { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: var(--space-m); }
.impact-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-m) var(--space-s); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .impact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.impact-item { display: flex; flex-direction: column; gap: .35rem; padding-top: .9rem; border-top: 2px solid var(--accent-ink); }
.impact-num { font-family: var(--font-display); font-size: clamp(2.4rem, 1.2rem + 3.6vw, 3.6rem); font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.impact-label { font-size: var(--step-0); font-weight: 600; line-height: 1.25; color: var(--text); }
.impact-desc { font-size: var(--step--1); line-height: 1.45; color: var(--text-2); }
.impact-note { margin-top: var(--space-m); padding-top: .9rem; border-top: 1px solid var(--line); font-size: var(--step--1); font-style: italic; color: var(--text-3); max-width: 60ch; }

.section { padding: var(--space-xl) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-2xs) var(--space-m); margin-bottom: var(--space-m); }
.section-title { font-size: var(--step-4); font-weight: 500; letter-spacing: -0.02em; }
.section-sub { color: var(--text-2); max-width: 56ch; }
.rule { height: 1px; background: var(--line); }
.rule.thick { height: 2px; background: var(--line-strong); }

/* ---------- Filter bar ---------- */
.filterbar {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 30;
  background: var(--paper);
  border-block: 1px solid var(--line); margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  transition: box-shadow var(--dur) var(--ease-out);
}
.filterbar.is-stuck { box-shadow: 0 10px 20px -18px var(--scrim); }
.filterbar-inner { display: flex; flex-direction: column; gap: .6rem; padding: .6rem 0; }
.chips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: thin; padding: 2px; margin: -2px; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.chips > * { scroll-snap-align: start; }
@media (max-width: 719px) { .chips { mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%); -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 28px), transparent 100%); } }
.chips::-webkit-scrollbar { height: 4px; }
.chips::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .45rem; height: 44px; padding: 0 1rem;
  border: 1px solid var(--line-strong); border-radius: 999px; font-size: .84rem; font-weight: 500; color: var(--text-2);
  background: var(--surface); white-space: nowrap; transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cat, var(--text-3)); }
.chip:hover { border-color: var(--text-2); color: var(--text); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--text); color: var(--paper); border-color: var(--text); }
.chip[aria-pressed="true"] .dot { background: var(--cat, var(--paper)); box-shadow: 0 0 0 2px var(--paper); }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: .85rem; width: 18px; height: 18px; color: var(--text-3); pointer-events: none; }
.search input {
  width: 100%; height: 44px; padding: 0 2.6rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.search input::placeholder { color: var(--text-3); }
.search input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
.search .clear { position: absolute; right: 2px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--text-3); opacity: 0; pointer-events: none; transition: opacity var(--dur-fast); }
.search .clear svg { position: static; width: 16px; height: 16px; }
.search.has-value .clear { opacity: 1; pointer-events: auto; }
.result-count { font-size: .82rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
@media (max-width: 719px) {
  .filterbar { position: static; }
  .filterbar-inner { padding: .5rem 0 .75rem; gap: .5rem; }
  .chip { height: 44px; font-size: .84rem; padding: 0 .9rem; }
  .search input { height: 46px; }
}
@media (min-width: 720px) {
  html { scroll-padding-top: calc(var(--header-h) + var(--topbar-h) + env(safe-area-inset-top, 0px) + 1rem); }
  .filterbar-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .chips { flex: 1 1 auto; min-width: 0; }
  .search { flex: 1 1 260px; max-width: 340px; min-width: 180px; }
}

/* ---------- Grid & cards ---------- */
.news-grid { position: relative; display: grid; gap: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 640px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { position: relative; display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.card.is-hidden { display: none; }
.card-media { position: relative; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 3 / 2; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 900ms var(--ease-out), filter var(--dur-slow); }
.card:hover .card-media img { transform: scale(1.045); }
.card-media::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--cat, var(--navy)); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-slow) var(--ease-out); }
.card:hover .card-media::after { transform: scaleX(1); }
.card-body { display: flex; flex-direction: column; gap: .5rem; flex: 1 1 auto; }
.card-body .meta { margin-top: auto; padding-top: .15rem; }
.card-title { font-size: var(--step-2); font-weight: 500; line-height: 1.3; overflow-wrap: break-word; }
.card-title a::after { content: ""; position: absolute; inset: 0; }  /* seluruh kartu bisa diklik */
.card-title a { background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 95%; transition: background-size var(--dur-slow) var(--ease-out); }
.card:hover .card-title a { background-size: 100% 1px; }
.card-excerpt { color: var(--text-2); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .kicker { color: var(--cat-text, var(--text-3)); }
.card .kicker::before { background: var(--cat, var(--navy)); }
/* 3: kerangka penahan ruang, hilang begitu JS mengisi */
.sk { display: block; border-radius: 4px; background: var(--surface-2); }
.sk-kicker { width: 38%; height: .7rem; margin-bottom: .6rem; }
.sk-title { width: 100%; height: 1.5rem; margin-bottom: .45rem; }
.sk-title.short { width: 62%; }
.sk-line { width: 92%; height: .8rem; margin-top: .5rem; }
.skeleton-card .card-media { background: var(--surface-2); }
.skeleton-hero .frame { background: var(--surface-2); }
@media (prefers-reduced-motion: no-preference) {
  .sk, .skeleton-card .card-media, .skeleton-hero .frame { animation: sk-pulse 1.6s var(--ease-in-out) infinite; }
  @keyframes sk-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
}

/* Kartu unggulan: satu berita memimpin grid arsip */
.card.is-featured { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .card.is-featured { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); align-items: center; }
  .card.is-featured .card-media { aspect-ratio: 16 / 10; }
  .card.is-featured .card-title { font-size: var(--step-3); }
  .card.is-featured .card-excerpt { -webkit-line-clamp: 4; font-size: 1rem; }
}

.empty-state { display: none; padding: 3rem 1rem; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); color: var(--text-2); }
.empty-state.is-visible { display: block; }
.empty-state strong { display: block; font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; color: var(--text); margin-bottom: .35rem; }
.empty-state button { margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast), color var(--dur-fast), box-shadow var(--dur-fast), border-color var(--dur-fast); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); box-shadow: var(--cta-shadow); }
.btn-primary:hover { background: var(--btn-bg-hover); }
/* 60: warna tombol utama lewat token, berlaku di ketiga state tema */
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-onband { background: #fff; color: var(--navy); }
.btn-onband:hover { background: var(--yellow); color: var(--navy-900); }
.btn-onband-ghost { border: 1px solid rgba(255,255,255,.4); color: #fff; }
.btn-onband-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Contribute band ---------- */
.contrib { position: relative; overflow: hidden; background: var(--band-bg); color: var(--band-text); }
.contrib::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--stripe); }
.contrib .container { position: relative; display: grid; gap: 2rem; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.contrib .kicker { color: var(--yellow); }
.contrib .kicker::before { background: var(--yellow); }
.contrib-title { font-size: var(--step-4); font-weight: 500; letter-spacing: -0.02em; max-width: 18ch; }
.contrib-body { color: var(--band-muted); max-width: 52ch; font-size: var(--step-1); line-height: 1.55; }
.contrib-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.contrib-steps { display: grid; gap: 0; counter-reset: step; }
.contrib-steps li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid rgba(255,255,255,.14); }
.contrib-steps li::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1; color: var(--sky); }
.contrib-steps strong { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }
.contrib-steps span { color: var(--band-muted); font-size: .92rem; }
.contrib-mark { position: absolute; right: -6%; bottom: -10%; width: min(52vw, 420px); opacity: .07; pointer-events: none; filter: grayscale(1) brightness(3); }
@media (min-width: 900px) { .contrib .container { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 4rem; } }

/* ---------- Newsletter + programme ---------- */
.prog-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .prog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .prog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }
.prog-card a { display: flex; flex-direction: column; gap: .5rem; height: 100%; padding: 1.5rem 1.4rem 1.3rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast); }
.prog-card a:hover { border-color: var(--cat, var(--navy)); transform: translateY(-3px); box-shadow: var(--shadow-1); }
.prog-name { display: inline-flex; align-items: baseline; gap: .55rem; overflow-wrap: anywhere; font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; line-height: 1.2; color: var(--text); }
.prog-name::before { content: ""; flex: 0 0 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--cat, var(--navy)); }
.prog-desc { color: var(--text-2); font-size: .92rem; line-height: 1.5; }
.prog-go { margin-top: auto; padding-top: 1rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; font-weight: 600; color: var(--cat-text, var(--link)); }
.prog-go svg { width: 16px; height: 16px; transition: transform var(--dur) var(--ease-out); }
.prog-card a:hover .prog-go svg { transform: translate(3px, -3px); }

/* Newsletter: satu strip lebar, dua kolom */
.nl-strip { display: grid; gap: 1.5rem; padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-lg); }
@media (min-width: 900px) { .nl-strip { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 3rem; } }
.nl-copy p { color: var(--text-2); margin-top: .5rem; max-width: 46ch; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-1); }
.panel .kicker { margin-bottom: .6rem; }
.panel-title { font-size: var(--step-3); font-weight: 500; margin-bottom: .5rem; }
.panel p { color: var(--text-2); }
.nl-form { display: flex; flex-direction: column; gap: .6rem; }
.nl-form input { height: 50px; padding: 0 1.2rem; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--text); }
.nl-form input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
.nl-form .btn { flex: 0 0 auto; }
.form-hint { font-size: var(--step--1); color: var(--text-3); margin-top: .6rem; line-height: 1.45; }
.form-msg { font-size: .86rem; margin-top: .5rem; min-height: 1.2em; }
.form-msg.is-error { color: var(--magenta-text); }
.form-msg.is-ok { color: var(--teal-text); }
@media (min-width: 560px) { .nl-form { flex-direction: row; } .nl-form input { flex: 1 1 auto; } }


/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: clamp(2rem, 6vw, 5rem); background: var(--surface); }
.footer-grid { display: grid; gap: 2rem; padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 3rem; } }
.footer-about p { color: var(--text-2); font-size: .92rem; margin-top: 1rem; max-width: 42ch; }
.footer-col h3 { font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: .75rem; }
.footer-col li { margin-bottom: .1rem; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); overflow-wrap: break-word; word-break: normal; transition: color var(--dur-fast); }
.footer-col a:hover { color: var(--link); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding: 1.25rem 0 calc(1.25rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: .82rem; color: var(--text-3); }
.footer-bottom .btn-link { min-height: 44px; font-size: .85rem; }

/* ---------- Modal ---------- */
.modal { border: 0; padding: 0; background: transparent; max-width: min(92vw, 640px); width: 100%; }
.modal::backdrop { background: rgba(10,18,32,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-card { background: var(--surface); color: var(--text); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-2); padding: clamp(1.25rem, 3vw, 2rem); max-height: 88vh; overflow: auto; }
.modal[open] .modal-card { animation: modal-in var(--dur-slow) var(--ease-out); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.modal-title { font-size: var(--step-3); font-weight: 500; }
.modal p { color: var(--text-2); }
.form-grid { display: grid; gap: .9rem; margin-top: 1.25rem; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .35rem; color: var(--text-2); }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: .6rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper); color: var(--text); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--focus); }
.guide { margin-top: 1.25rem; padding: 1rem 1.1rem; background: var(--surface-2); border-radius: var(--radius-md); font-size: .9rem; }
.guide strong { display: block; margin-bottom: .4rem; }
.guide li { display: flex; gap: .6rem; padding: .2rem 0; color: var(--text-2); }
.guide li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: var(--teal); }
.modal-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; margin-top: 1.25rem; }

/* ---------- Article page ---------- */
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; z-index: 70; background: transparent; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; background: var(--stripe); transform: scaleX(0); transform-origin: left; }
.article-head { padding: clamp(1.25rem, 3vw, 2.25rem) 0 1.5rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .82rem; color: var(--text-3); margin-bottom: 1.25rem; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--link); }
.article-title { font-size: var(--step-5); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; max-width: 26ch; margin-top: .75rem; }
.article-dek { font-size: var(--step-1); color: var(--text-2); max-width: 52ch; margin-top: 1rem; line-height: 1.5; }
.byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.25rem; margin-top: 1.75rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.byline .who { display: flex; align-items: center; gap: .6rem; }
.byline .avatar { width: 36px; height: 36px; border-radius: 50%; background: #FFFFFF; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.byline .avatar img { width: 24px; height: 24px; }
.byline .name { font-weight: 600; font-size: .9rem; }
.byline .meta { font-size: .82rem; }
.article-hero { margin: 1.5rem 0 0; }
/* Status arsip: callout di bawah dek, lencana di kartu indeks */
.callout { display: flex; gap: .85rem; align-items: flex-start; margin-top: 1.5rem; padding: 1rem 1.15rem;
  border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-2); max-width: 52rem; }
.callout svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: .15rem; }
.callout strong { display: block; font-family: var(--font-display); font-size: 1.08rem; font-weight: 500; }
.callout p { color: var(--text-2); font-size: .92rem; line-height: 1.5; margin-top: .2rem; }
.callout--archived { border-left: 4px solid var(--yellow); }
.callout--archived svg { color: var(--yellow-text); }
.badge-archived { display: inline-flex; align-items: center; height: 20px; margin-left: .5rem; padding: 0 .5rem;
  border-radius: 999px; background: var(--yellow); color: var(--navy-900);
  font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.article-hero { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.article-hero .frame { overflow: hidden; border-radius: var(--radius-md); background: var(--surface-2); aspect-ratio: 16 / 9; max-height: min(64vh, 620px); }
.article-hero .frame.is-contain { background: var(--navy-900); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-hero .frame.is-contain img { object-fit: contain; }
.article-hero figcaption { font-size: .8rem; line-height: 1.45; color: var(--text-3); margin-top: .7rem; max-width: 60ch; padding-left: .9rem; border-left: 2px solid var(--cat, var(--line-strong)); }
.article-layout { display: grid; gap: 2rem; padding: clamp(1.5rem, 4vw, 3rem) 0; }
/* Poster lengkap di bawah prosa (berlaku di semua lebar) */
/* Video dokumentasi. Klip vertikal dibatasi tingginya supaya tidak menguasai halaman,
   dan tidak diunduh sama sekali sebelum pembaca menekan putar. */
.article-video { margin: 2.25rem 0 0; }
.article-video .frame { display: flex; justify-content: center; background: var(--navy-900); border-radius: var(--radius-md); overflow: hidden; }
.article-video video { display: block; width: 100%; max-width: 100%; height: auto; max-height: 72vh; background: var(--navy-900); }
.article-video.is-portrait video { width: auto; max-width: 100%; }
.article-video figcaption { font-family: var(--font-body); font-size: var(--step--1); line-height: 1.45; color: var(--text-3); margin-top: .7rem; max-width: 60ch; padding-left: .9rem; border-left: 2px solid var(--cat, var(--line-strong)); }

.article-poster { margin: 2.25rem 0 0; }
.article-poster img { width: 100%; max-width: 520px; border-radius: var(--radius-md); border: 1px solid var(--line); }
.article-poster figcaption { font-family: var(--font-body); font-size: var(--step--1); color: var(--text-3); margin-top: .5rem; }

/* Kolom kanan: fakta kunci + daftar isi. Sebelumnya 212 px kosong total. */
.article-aside { display: none; }
.factbox dl { margin-top: .6rem; }
/* Susunan redaksi di halaman Redaksi */
.prose .masthead { display: grid; gap: 0; margin: 1rem 0 0; padding: 1.1rem 1.25rem; background: var(--surface-2); border-radius: var(--radius-md); border-left: 3px solid var(--sky); }
.prose .masthead dt { font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.prose .masthead dd { margin: .15rem 0 0; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--text); }
.prose .masthead dt ~ dt { margin-top: 1rem; }
.factbox dt { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-top: .85rem; }
.factbox dt:first-of-type { margin-top: 0; }
.factbox dd { margin: .2rem 0 0; font-size: .92rem; color: var(--text); }
.factbox dd a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.toc { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.toc ol { margin-top: .6rem; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: .45rem 0 .45rem 1.7rem; position: relative; font-size: .9rem; line-height: 1.35; color: var(--text-2); transition: color var(--dur-fast); }
.toc a::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; font-family: var(--font-display); font-style: italic; color: var(--cat-text, var(--text-3)); }
.toc a:hover { color: var(--link); }

@media (min-width: 1024px) {
  .article-layout { grid-template-columns: minmax(150px, 1fr) minmax(0, var(--measure)) minmax(200px, 1fr); column-gap: clamp(2rem, 4vw, 3.5rem); }
  .article-rail { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1.5rem); align-self: start; justify-self: end; width: 100%; max-width: 190px; }
  .article-aside { display: block; position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 1.5rem); align-self: start; justify-self: start; width: 100%; max-width: 260px; }
  .article-foot { grid-column: 2; }
  .article-foot .share-block { display: none; }          /* rail kiri sudah menyediakannya */
}
@media (max-width: 1023px) {
  .article-rail .share-row, .article-rail .copy-note { display: none; }   /* jangan minta berbagi sebelum dibaca */
}
.article-rail { display: flex; flex-direction: column; gap: 1rem; }
.rail-label { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.share-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.share-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--text-2); transition: border-color var(--dur-fast), color var(--dur-fast), background-color var(--dur-fast), transform var(--dur-fast); }
.share-btn:hover { border-color: var(--text); color: var(--text); }
.share-btn:active { transform: scale(.94); }
.share-btn svg { width: 18px; height: 18px; }
.share-btn.is-done { background: var(--teal); border-color: var(--teal); color: #fff; }
.copy-note { font-size: .8rem; color: var(--teal-text); min-height: 1.2em; }
.summary-en { border-left: 3px solid var(--sky); padding: .8rem 1rem; background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-bottom: 1.75rem; }
.summary-en strong { display: block; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky-text); margin-bottom: .3rem; }
.summary-en p { color: var(--text-2); font-size: .95rem; }
.summary-en small { display: block; margin-top: .4rem; color: var(--text-3); font-size: .78rem; }
.prose { font-family: var(--font-display); font-size: 1.1875rem; line-height: 1.68; color: var(--text); }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { font-size: var(--step-3); margin-top: 2em; font-weight: 500; }
.prose h3 { font-size: var(--step-2); margin-top: 1.75em; font-weight: 500; }
.prose h2 + p, .prose h3 + p { margin-top: .7em; }
.prose > p.lead { font-size: 1.06em; }
.prose > p.lead:not(.dateline)::first-letter { font-size: 3.6em; float: left; line-height: .82; padding: .08em .12em 0 0; font-weight: 500; color: var(--accent-ink); }
.prose > p.dateline > em:first-child { font-style: normal; font-variant: all-small-caps; letter-spacing: .06em; font-weight: 600; color: var(--text-2); }
.prose h2 > strong, .prose h3 > strong { font-weight: inherit; }

.prose em { font-style: italic; }
.prose strong { font-weight: 600; }
.prose a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; font-family: var(--font-body); font-size: 1.02rem; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin: .35em 0; padding-left: .2em; }
.prose li::marker { color: var(--accent-ink); }

.prose blockquote, .prose .pull { margin: 2em 0; padding: 0 0 0 1.25rem; border-left: 3px solid var(--yellow); font-size: 1.3em; font-style: italic; line-height: 1.4; color: var(--text); }
.prose .source-credit { margin: 2.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .86rem; font-style: italic; color: var(--text-3); }
.prose p.quote { position: relative; padding-left: 1.6rem; font-style: italic; color: var(--text-2); }
.prose p.quote::before { content: "“"; position: absolute; left: 0; top: -.15em; font-size: 2.4em; line-height: 1; color: var(--yellow); font-style: normal; }
.article-foot { grid-column: 2; display: flex; flex-direction: column; gap: 2rem; margin-top: 2rem; }
@media (max-width: 1023px) { .article-foot { grid-column: auto; } }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem .85rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .82rem; color: var(--text-2); transition: border-color var(--dur-fast), color var(--dur-fast); }
a.tag:hover { border-color: var(--cat, var(--navy)); color: var(--text); }
.tag-pill { display: inline-flex; align-items: center; gap: .4rem; height: 44px; padding: 0 .35rem 0 .9rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-strong); font-size: .84rem; color: var(--text-2); white-space: nowrap; }
.tag-pill strong { color: var(--text); font-weight: 600; }
.tag-pill button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--text-3); }
.tag-pill button:hover { background: var(--surface-3); color: var(--text); }
.tag-pill svg { width: 15px; height: 15px; }
.pager { display: grid; gap: .75rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } .pager .next { text-align: right; } .pager .next a { align-items: flex-end; } }
.pager a { display: flex; flex-direction: column; gap: .25rem; padding: .75rem; border-radius: var(--radius-md); transition: background-color var(--dur-fast); }
.pager a:hover { background: var(--surface-2); }
.pager .lbl { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.pager .ttl { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; line-height: 1.3; }
.contrib-mini { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; display: grid; gap: 1rem; background: var(--surface); }
.contrib-mini strong { font-family: var(--font-display); font-size: var(--step-2); font-weight: 500; }
.contrib-mini p { color: var(--text-2); }
.not-found { padding: 4rem 0; text-align: center; }
.not-found h1 { font-size: var(--step-4); font-weight: 500; }
.not-found p { color: var(--text-2); margin: .75rem auto 1.5rem; max-width: 40ch; }

/* Transisi tema dengan View Transitions */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .5s; mix-blend-mode: normal; }
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: theme-wipe .5s var(--ease-in-out); }
@keyframes theme-wipe { from { clip-path: circle(0 at var(--vt-x, 90%) var(--vt-y, 40px)); } to { clip-path: circle(150vmax at var(--vt-x, 90%) var(--vt-y, 40px)); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-anim .reveal, .js-anim .hero-line, .js-anim .hero-media, .js-anim .reveal-clip, .js-anim .img-wrap, .js-anim .frame, .js-anim figcaption { opacity: 1; clip-path: none; transform: none; animation: none; }
  .card:hover .card-media img { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .topbar, .site-header, .filterbar, .contrib, .site-footer, .article-rail, .progress, .drawer, .drawer-backdrop { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { font-size: 12pt; }
}
