/*
 * Dokumentasi Penyaluran (lazisrj.pen, frame "Dokumentasi Penyaluran"). Dimuat hanya di templat page-dokumentasi.php, sesudah beranda-v2.css.
 * Warna lewat token --rj-* (terang dan gelap otomatis). Garis kolom isian memakai nilai tetap yang lolos kontras 3:1 di kedua mode.
 * Gerak (animasi dialog) hanya di prefers-reduced-motion: no-preference; muncul bertahap kartu memakai [data-reveal] milik beranda-v2.css.
 */
:root { --lrjd-line: #7F9086; --lrjd-scrim: #0A0F14B8; --lrjd-stage: #0D1117; --lrjd-chip: #0A0F14CC; }

.lrj2 .lrjd [hidden], .lrj2.lrjd [hidden] { display: none !important; }
/* Tanpa JS (kelas lrjd-js tidak ada): cari/kategori/muat-lebih-banyak tidak ada gunanya, semua kartu tetap tampil sebagai tautan. */
.lrj2.lrjd:not(.lrjd-js) .lrjd-tools, .lrj2.lrjd:not(.lrjd-js) .lrjd-more { display: none; }

/* Kepala halaman. */
.lrj2 .lrjd-head {
  padding: 72px 0 52px;
  background:
    radial-gradient(64% 80% at 25% 0%, rgba(224, 161, 27, .12), transparent 68%),
    radial-gradient(48% 60% at 90% 25%, rgba(20, 67, 42, .08), transparent 70%),
    var(--rj-cream);
  border-bottom: 1px solid var(--rj-line);
}
:root[data-theme="dark"] .lrj2 .lrjd-head {
  background:
    radial-gradient(64% 80% at 25% 0%, rgba(224, 161, 27, .14), transparent 68%),
    radial-gradient(48% 60% at 90% 25%, rgba(143, 221, 176, .09), transparent 70%),
    var(--rj-cream);
}
.lrj2 .lrjd-head .rj-wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 48px; }
.lrj2 .lrjd-head__text { display: flex; flex-direction: column; gap: 16px; }
.lrj2 h1.lrjd-title { font-size: clamp(38px, 4.5vw, 54px); line-height: 1.08; letter-spacing: -1px; color: var(--rj-green-deep); }
.lrj2 .lrjd-sub { font-size: 18px; line-height: 1.55; color: var(--rj-muted); }
.lrj2 a.lrjd-yt { flex: none; min-height: 48px; }

/* Cari + kategori. */
.lrj2 .lrjd-body { padding: 0 0 var(--rj-section-y); background: var(--rj-cream); }
.lrj2 .lrjd-tools { display: flex; flex-direction: column; gap: 20px; padding: 40px 0 0; }
.lrj2 .lrjd-search { position: relative; width: 100%; max-width: 420px; }
.lrj2 .lrjd-search svg.rj-i { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--rj-muted); pointer-events: none; }
.lrj2 .lrjd-search input#lrjd-cari { width: 100%; height: 52px; margin: 0; padding: 0 16px 0 44px; border: 1px solid var(--lrjd-line); border-radius: var(--rj-radius-ctl); background: var(--rj-surface); box-shadow: none; font-family: var(--rj-font-body); font-size: 15px; color: var(--rj-ink); }
.lrj2 .lrjd-search input#lrjd-cari::placeholder { color: var(--rj-muted); opacity: 1; }
.lrj2 .lrjd-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.lrj2 button.lrjd-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; padding: 0 18px; border: 1px solid var(--lrjd-line); border-radius: var(--rj-radius-pill); background: transparent; box-shadow: none; font-family: var(--rj-font-body); font-size: 14px; font-weight: 600; line-height: 1.2; text-transform: none; color: var(--rj-ink); cursor: pointer; }
.lrj2 button.lrjd-chip:hover { background: var(--rj-mint); color: var(--rj-ink); }
.lrj2 button.lrjd-chip .lrjd-chip__n { font-size: 13px; font-weight: 600; color: var(--rj-muted); }
.lrj2 button.lrjd-chip[aria-pressed="true"], .lrj2 button.lrjd-chip[aria-pressed="true"]:hover { border-color: var(--rj-primary); background: var(--rj-primary); color: var(--rj-on-primary); }
.lrj2 button.lrjd-chip[aria-pressed="true"] .lrjd-chip__n { color: var(--rj-on-primary); }

/* Kartu. */
.lrj2 ul.lrjd-grid { list-style: none; margin: 0; padding: 36px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.lrj2 li.lrjd-item { margin: 0; min-width: 0; }
.lrj2 a.lrjd-card { display: flex; flex-direction: column; gap: 14px; color: var(--rj-ink); text-decoration: none; }
.lrj2 .lrjd-card__gambar { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 18px; background: var(--rj-mint); border: 1px solid var(--rj-line); box-shadow: 0 12px 28px rgba(13, 46, 29, .08); transition: border-color .25s ease, box-shadow .25s ease, transform .25s var(--rj-ease); }
:root[data-theme="dark"] .lrj2 .lrjd-card__gambar { box-shadow: 0 14px 34px rgba(0, 0, 0, .38); }
.lrj2 a.lrjd-card:hover .lrjd-card__gambar { border-color: var(--rj-gold); box-shadow: 0 18px 40px rgba(13, 46, 29, .14); transform: translateY(-3px); }
.lrj2 img.lrjd-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lrj2 .lrjd-card__play { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; box-sizing: border-box; border: 1px solid #FFFFFFD9; border-radius: 50%; background: #0A0F1459; color: #FFFFFF; box-shadow: 0 2px 8px #00000040; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); transform: translate(-50%, -50%); }
.lrj2 .lrjd-card__play svg.rj-i { width: 24px; height: 24px; margin-left: 2px; }
.lrj2 .lrjd-card__dur { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--lrjd-chip); font-size: 12px; font-weight: 700; line-height: 1; color: #FFFFFF; }
.lrj2 .lrjd-card__judul { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.7em; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--rj-ink); }
.lrj2 .lrjd-card__meta { font-size: 13px; line-height: 1.4; color: var(--rj-muted); }
.lrj2 a.lrjd-card:hover .lrjd-card__judul { color: var(--rj-green); }
@media (prefers-reduced-motion: no-preference) {
  .lrj2 img.lrjd-thumb { transition-property: transform; transition-duration: .3s; transition-timing-function: var(--rj-ease); }
  .lrj2 a.lrjd-card:hover img.lrjd-thumb { transform: scale(1.03); }
}

/* Muat lebih banyak, kosong. */
.lrj2 .lrjd-more { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 56px 0 0; }
.lrj2 .lrjd-count { font-size: 14px; color: var(--rj-muted); }
.lrj2 .lrjd-kosong, .lrj2 .lrjd-kosong-awal { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 56px 0 0; text-align: center; font-size: 16px; color: var(--rj-muted); }

/* Dialog pemutar. */
html.lrjd-lock { overflow: hidden; }
.lrj2 dialog.lrjd-dialog { width: min(940px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; border-radius: var(--rj-radius-lg); overflow: hidden; background: var(--rj-surface); color: var(--rj-ink); box-shadow: 0 24px 64px #00000066; }
.lrj2 dialog.lrjd-dialog::backdrop { background: var(--lrjd-scrim); }
.lrj2 .lrjd-d { position: relative; display: grid; grid-template-columns: 444px minmax(0, 1fr); max-height: calc(100dvh - 32px); }
.lrj2 .lrjd-d__video { display: flex; align-items: center; justify-content: center; padding: 34px 20px; background: var(--lrjd-stage); }
.lrj2 .lrjd-d__player { aspect-ratio: 9 / 16; height: min(720px, calc(100dvh - 100px)); overflow: hidden; border-radius: 12px; background: #1A2330; }
.lrj2 .lrjd-d__player iframe { display: block; width: 100%; height: 100%; border: 0; }
.lrj2 .lrjd-d__info { display: flex; flex-direction: column; gap: 18px; min-height: 0; padding: 56px 40px 40px; overflow: hidden; }
.lrj2 .lrjd-d__judul { font-size: 28px; line-height: 1.2; color: var(--rj-green-deep); overflow-wrap: anywhere; }
.lrj2 .lrjd-d__tanggal { font-size: 14px; color: var(--rj-muted); }
.lrj2 .lrjd-d__desk { display: flex; flex: 1 1 auto; flex-direction: column; gap: 10px; min-height: 0; }
.lrj2 .lrjd-d__desk-head { display: flex; align-items: center; justify-content: space-between; }
.lrj2 .lrjd-d__desk h3 { font-family: var(--rj-font-body); font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--rj-muted); }
.lrj2 .lrjd-d__teks { max-height: 320px; padding-right: 8px; overflow: auto; font-size: 15px; line-height: 1.65; white-space: pre-line; overflow-wrap: anywhere; color: var(--rj-ink); }
.lrj2 .lrjd-d__teks.is-scroll { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); }
.lrj2 .lrjd-d__teks.is-scroll.is-end { -webkit-mask-image: none; mask-image: none; }
.lrj2 button.lrjd-d__more { display: none; min-height: 32px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; font-family: var(--rj-font-body); font-size: 14px; font-weight: 700; text-transform: none; color: var(--rj-green); cursor: pointer; }
.lrj2 a.lrjd-d__yt { margin-top: auto; width: 100%; }
.lrj2 button.lrjd-d__tutup { position: absolute; top: 20px; right: 20px; z-index: 2; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--rj-mint); box-shadow: none; color: var(--rj-ink); cursor: pointer; }
.lrj2 button.lrjd-d__tutup:hover { background: var(--rj-line); color: var(--rj-ink); }
.lrj2 button.lrjd-d__tutup svg.rj-i { width: 20px; height: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .lrj2 dialog.lrjd-dialog[open] { animation: lrjd-masuk .2s ease-out; }
  .lrj2 dialog.lrjd-dialog[open]::backdrop { animation: lrjd-pudar .2s ease-out; }
}
@keyframes lrjd-masuk { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes lrjd-pudar { from { opacity: 0; } to { opacity: 1; } }

/* Tablet: 3 kolom. */
@media (max-width: 1279px) {
  .lrj2 ul.lrjd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Ponsel: 2 kolom, pil kategori digeser (pil terakhir sebagian terlihat), dialog hampir layar penuh. */
@media (max-width: 767px) {
  .lrj2 .lrjd-head { padding-top: 16px; }
  .lrj2 .lrjd-head .rj-wrap { flex-direction: column; align-items: stretch; gap: 20px; }
  .lrj2 h1.lrjd-title { font-size: 36px; line-height: 1.12; letter-spacing: -.5px; }
  .lrj2 .lrjd-sub { font-size: 16px; }
  .lrj2 a.lrjd-yt { width: 100%; }
  .lrj2 .lrjd-tools { padding-top: 28px; }
  .lrj2 .lrjd-search { max-width: none; }
  .lrj2 .lrjd-chips { flex-wrap: nowrap; margin-inline: calc(-1 * var(--rj-gutter)); padding-inline: var(--rj-gutter); overflow-x: auto; scrollbar-width: none; }
  .lrj2 .lrjd-chips::-webkit-scrollbar { display: none; }
  .lrj2 button.lrjd-chip { flex: none; }
  .lrj2 ul.lrjd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; padding-top: 28px; }
  .lrj2 .lrjd-card__play { width: 44px; height: 44px; }
  .lrj2 .lrjd-card__play svg.rj-i { width: 18px; height: 18px; }
  .lrj2 .lrjd-card__judul { -webkit-line-clamp: 3; min-height: 4.05em; font-size: 14px; }
  .lrj2 .lrjd-more { padding: 40px 0 0; }
  .lrj2 .lrjd-more .rj-btn { width: 100%; }

  .lrj2 dialog.lrjd-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .lrj2 .lrjd-d { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); overflow-y: auto; }
  .lrj2 .lrjd-d::before { content: "DOKUMENTASI PENYALURAN"; display: flex; align-items: center; flex: none; height: 64px; padding: 0 74px 0 20px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; color: var(--rj-gold-ink); }
  .lrj2 button.lrjd-d__tutup { top: 10px; right: 10px; }
  .lrj2 .lrjd-d__video { flex: none; padding: 12px; }
  .lrj2 .lrjd-d__player { height: min(416px, 52dvh); }
  .lrj2 .lrjd-d__info { flex: none; gap: 12px; padding: 16px 20px 20px; overflow: visible; }
  .lrj2 .lrjd-d__info > .rj-eyebrow { display: none; }
  .lrj2 .lrjd-d__judul { font-family: var(--rj-font-body); font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--rj-ink); }
  .lrj2 .lrjd-d__teks { max-height: calc(1.55em * 3); overflow: hidden; font-size: 14px; line-height: 1.55; }
  .lrj2 .lrjd-d__teks.is-open { max-height: 40dvh; overflow: auto; }
  .lrj2 .lrjd-d__teks.is-scroll { -webkit-mask-image: none; mask-image: none; }
  .lrj2 button.lrjd-d__more { display: inline-flex; align-items: center; }
}

/* Laporan tertulis: daftar editorial (bukan kartu), garis tipis antar baris. */
.lrj2 .lrjd-lap { padding: 0 0 var(--rj-section-y); background: var(--rj-cream); }
.lrj2 .lrjd-lap__judul { margin: 8px 0 24px; font-size: 32px; line-height: 1.2; color: var(--rj-green-deep); }
.lrj2 .lrjd-lap__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--lrjd-line); }
.lrj2 .lrjd-lap__list li { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--lrjd-line); }
.lrj2 .lrjd-lap__list time { font-size: 14px; color: var(--rj-muted); }
.lrj2 .lrjd-lap__list a { font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--rj-green-deep); text-decoration: none; }
.lrj2 .lrjd-lap__list a:hover, .lrj2 .lrjd-lap__list a:focus-visible { text-decoration: underline; }
@media (max-width: 640px) { .lrj2 .lrjd-lap__list li { grid-template-columns: 1fr; gap: 4px; } .lrj2 .lrjd-lap__judul { font-size: 26px; } }
