/* Komponen dasar Presisi. Utilitas tata letak memakai Tailwind;
   kelas di sini adalah komponen berulang dan token warna (brief bagian 3). */
:root {
  --biru-tua: #17325E;
  --biru-logo: #3F6BAA;
  --biru-footer: #102549;
  --merah: #D3363E;
  --merah-teks: #C1272F;
  --merah-muda: #F7A1A6;
  --latar: #EEF6FB;
  --langit: #DCEEF8;
  --krem: #F4ECDD;
  --krem-muda: #FBF7EF;
  --garis: #D5E3EE;
  --teks-redup: #475569;
  --teks-terang: #EAF3FA;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; background: var(--latar); color: var(--biru-tua); font-family: var(--font-sans); line-height: 1.6; }
a:hover { color: var(--merah-teks); }
img { max-width: 100%; }

/* Kontainer: isi maks. 1200 px + padding samping 24 px (16 px di ponsel) */
.kontainer { max-width: 1248px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 640px) { .kontainer { padding-left: 16px; padding-right: 16px; } }

/* Fokus keyboard terlihat */
:focus-visible { outline: 3px solid var(--merah); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

/* Lewati ke konten */
.lewati-konten { position: absolute; left: 16px; top: -100px; z-index: 50; background: var(--biru-tua); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.lewati-konten:focus { top: 12px; color: #fff; }

/* Tipografi */
.eyebrow { margin: 0; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--merah-teks); }
.eyebrow-gelap { color: var(--merah-muda); }
.judul-halaman { margin: 0; font-size: 46px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.judul-beranda { margin: 0; font-size: 54px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.judul-bagian { margin: 0; font-size: 38px; line-height: 1.2; font-weight: 800; letter-spacing: -0.01em; }
@media (max-width: 1024px) {
  .judul-halaman, .judul-beranda { font-size: 32px; }
  .judul-bagian { font-size: 26px; }
}

/* Header & menu */
.menu-link { display: inline-flex; align-items: center; gap: 4px; color: #3D4F6B; text-decoration: none; padding: 11px 12px; border-bottom: 2px solid transparent; }
.menu-link:hover { color: var(--biru-tua); }
.menu-link.is-aktif { color: var(--biru-tua); border-bottom-color: var(--merah); }
.tombol-menu { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--garis); border-radius: 8px; background: #fff; color: var(--biru-tua); font-weight: 700; font-size: 15px; cursor: pointer; }
.menu-ponsel-link { display: block; padding: 12px 0; color: #3D4F6B; text-decoration: none; border-left: 3px solid transparent; padding-left: 12px; }
.menu-ponsel-link.is-aktif { color: var(--biru-tua); border-left-color: var(--merah); }
.menu-ponsel-tertutup { display: none; }

/* Tombol: tinggi minimal 44 px, radius 8 px */
.tombol { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 8px; font-weight: 700; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-size: 16px; }
.tombol-kecil { min-height: 44px; padding: 0 18px; font-size: 15px; }
.tombol-merah { background: var(--merah); color: #fff; }
.tombol-merah:hover { background: #B92D35; color: #fff; }
.tombol-biru { background: var(--biru-tua); color: #fff; }
.tombol-biru:hover { background: #0F2547; color: #fff; }
.tombol-garis { border-color: var(--biru-tua); color: var(--biru-tua); background: #fff; font-weight: 600; }
.tombol-garis:hover { background: var(--langit); color: var(--biru-tua); }
.tombol-garis-gelap { border-color: #7C9CC9; color: #fff; font-weight: 600; }
.tombol-garis-gelap:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Kartu */
.kartu { background: #fff; border: 1px solid var(--garis); border-radius: 12px; }

/* Footer */
.footer-link { color: var(--teks-terang); text-decoration: none; }
.footer-link:hover { color: #fff; text-decoration: underline; }

/* Pesan flash */
.flash { margin: 0 0 8px; padding: 14px 18px; border-radius: 10px; border: 1px solid var(--garis); background: #fff; font-weight: 600; }
.flash-success { border-color: #9BD3B0; background: #EAF7EF; color: #14532D; }
.flash-danger, .flash-error { border-color: #F3B4B8; background: #FDEEEF; color: #8A1C22; }
.flash-info { border-color: var(--garis); background: var(--langit); color: var(--biru-tua); }

/* Judul subbagian (H2 34 px) dan judul kartu (H2 26 px) */
.judul-sub { margin: 0; font-size: 34px; line-height: 1.2; font-weight: 800; }
.judul-kartu { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 800; }
@media (max-width: 1024px) {
  .judul-sub { font-size: 26px; }
  .judul-kartu { font-size: 22px; }
}

/* Kode Etik */
.kartu-etik { background: #fff; border: 1px solid var(--garis); border-radius: 14px; padding: 36px; display: flex; flex-direction: column; scroll-margin-top: 24px; }
@media (max-width: 640px) { .kartu-etik { padding: 24px 20px; } }
.daftar-isi-link { text-decoration: none; padding: 10px 12px; border-radius: 8px; color: var(--biru-tua); }
.daftar-isi-link:hover { background: var(--latar); color: var(--biru-tua); }
.daftar-isi-link.is-aktif { background: var(--langit); font-weight: 600; }

/* Chip (radius 999 px) */
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--langit); color: var(--biru-tua); font-weight: 600; padding: 3px 10px; border-radius: 999px; font-size: 13px; line-height: 1.5; }
.chip-besar { padding: 4px 12px; }
.chip-hijau { background: #E6F4EA; color: #1E5B32; }
.chip-merah { background: var(--merah); color: #fff; font-weight: 700; }
.chip-gelap { background: #2C4A7A; color: #fff; }

/* Chip filter (tautan) */
.chip-filter { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #A9C1D6; background: #fff; color: var(--biru-tua); font-size: 15px; font-weight: 600; text-decoration: none; }
.chip-filter:hover { border-color: var(--biru-tua); color: var(--biru-tua); }
.chip-filter.is-aktif { background: var(--biru-tua); border-color: var(--biru-tua); color: #fff; }

/* Paginasi */
.nomor-halaman { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--garis); background: #fff; color: var(--biru-tua); text-decoration: none; font-weight: 600; }
.nomor-halaman:hover { border-color: var(--biru-tua); color: var(--biru-tua); }
.nomor-halaman.is-aktif { background: var(--biru-tua); border-color: var(--biru-tua); color: #fff; font-weight: 700; }

/* Form filter */
.label-form { font-size: 14px; font-weight: 600; }
.input-form { min-height: 46px; padding: 0 14px; border: 1px solid #A9C1D6; border-radius: 8px; font: inherit; color: var(--biru-tua); background: #fff; width: 100%; }
select.input-form { padding: 0 12px; }
textarea.input-form { padding: 12px 14px; min-height: 160px; }
.input-form:focus-visible { outline: 3px solid var(--merah); outline-offset: 1px; }

/* Logo anggota */
.kotak-logo { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; border: 1px solid var(--garis); border-radius: 10px; background: #fff; padding: 8px; overflow: hidden; }
.kotak-logo-kosong { border: 1px dashed #A9C1D6; background: var(--krem-muda); font-family: var(--font-mono); color: #5B6676; text-align: center; padding: 8px; line-height: 1.35; }
a.kotak-logo { text-decoration: none; }
a.kotak-logo:hover { border-color: var(--biru-tua); }

/* Foto/placeholder bergaris */
.foto-kosong { background: repeating-linear-gradient(135deg, #E3F1F9 0 12px, #D3E8F4 12px 24px); }
.foto-kosong-gelap { background: repeating-linear-gradient(135deg, #22406F 0 14px, #1C3762 14px 28px); }

/* Panel data pengungkapan */
.panel-pengungkapan { margin: 0; background: var(--krem-muda); padding: 32px 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-content: center; font-size: 15px; }
.panel-pengungkapan dt { padding: 11px 0; color: var(--teks-redup); border-top: 1px solid #E8DCC4; }
.panel-pengungkapan dd { margin: 0; padding: 11px 0; font-weight: 600; border-top: 1px solid #E8DCC4; }
.panel-pengungkapan dt:first-of-type, .panel-pengungkapan dd:first-of-type { border-top: 0; }
@media (max-width: 640px) { .panel-pengungkapan { padding: 20px; } }

/* Tabel yang bisa di-scroll horizontal */
.tabel-gulir { overflow-x: auto; border: 1px solid var(--garis); border-radius: 10px; }
.tabel-gulir table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.tabel-gulir th { padding: 12px 16px; font-weight: 700; text-align: left; background: var(--latar); }
.tabel-gulir td { padding: 14px 16px; border-top: 1px solid var(--garis); vertical-align: top; }

/* Video */
.video-utama { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.video-utama > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.video-utama > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-utama .lapis { position: absolute; inset: 0; background: rgba(14, 30, 58, 0.25); }
.tombol-putar { position: relative; width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--merah); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: rgba(0,0,0,.3) 0 8px 24px; }
.tombol-putar:hover { background: #B92D35; }
.durasi { position: absolute; right: 16px; bottom: 16px; background: rgba(10, 26, 48, 0.85); color: #fff; font-family: var(--font-mono); font-size: 13px; padding: 3px 8px; border-radius: 6px; }
.item-video { width: 100%; display: flex; gap: 14px; align-items: center; text-align: left; padding: 10px; border-radius: 12px; border: 1.5px solid #2C4A7A; color: #fff; text-decoration: none; }
.item-video:hover { background: #1F3B68; color: #fff; }
.item-video[aria-current="true"] { border-color: var(--merah); background: #22406F; }
.item-video .mini { position: relative; width: 136px; aspect-ratio: 16 / 9; flex: 0 0 auto; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.item-video .mini img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item-video .mini .durasi { right: 6px; bottom: 6px; font-size: 11px; padding: 1px 5px; border-radius: 4px; }
@media (max-width: 640px) { .item-video .mini { width: 112px; } }
.judul-32 { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 800; }
@media (max-width: 1024px) { .judul-32 { font-size: 26px; } }

/* Isi artikel berita (HTML dari editor, sudah disanitasi) */
.isi-artikel { font-size: 17px; color: #2D3A4E; line-height: 1.7; display: flex; flex-direction: column; gap: 18px; }
.isi-artikel > * { margin: 0; }
.isi-artikel h2 { font-size: 26px; line-height: 1.25; font-weight: 800; color: var(--biru-tua); margin-top: 12px; }
.isi-artikel h3 { font-size: 21px; line-height: 1.3; font-weight: 700; color: var(--biru-tua); margin-top: 8px; }
.isi-artikel a { color: var(--biru-tua); text-decoration: underline; }
.isi-artikel ul { list-style: disc; padding-left: 22px; }
.isi-artikel ol { list-style: decimal; padding-left: 22px; }
.isi-artikel li + li { margin-top: 6px; }
.isi-artikel blockquote { border-left: 4px solid var(--merah); padding: 4px 0 4px 18px; color: var(--biru-tua); font-weight: 600; }

/* Kata panjang (mis. "dipertanggungjawabkan") tidak boleh memicu scroll horizontal */
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 400px) { .judul-beranda { font-size: 27px; } }

/* Submenu navbar (desktop): tampil saat hover atau fokus keyboard */
.menu-induk { position: relative; }
.menu-induk .panah-submenu { transition: transform .15s ease; }
.submenu { display: none; position: absolute; top: 100%; left: 0; z-index: 40; min-width: 230px; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--garis); border-radius: 10px; box-shadow: 0 12px 28px rgba(23, 50, 94, 0.12); }
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; } /* jembatan hover */
.menu-induk:hover > .submenu,
.menu-induk:focus-within > .submenu { display: block; }
.menu-induk.is-tutup > .submenu { display: none; }
.menu-induk:hover .panah-submenu,
.menu-induk:focus-within .panah-submenu { transform: rotate(180deg); }
.submenu-link { display: block; padding: 10px 14px; border-radius: 8px; color: #3D4F6B; text-decoration: none; font-weight: 600; white-space: nowrap; }
.submenu-link:hover { background: var(--latar); color: var(--biru-tua); }
.submenu-link.is-aktif { background: var(--langit); color: var(--biru-tua); }

/* Submenu di menu ponsel */
.menu-ponsel-label { display: block; padding: 12px 0 4px 12px; color: #3D4F6B; border-left: 3px solid transparent; }
.menu-ponsel-label.is-aktif { color: var(--biru-tua); }
.menu-ponsel-sub { padding-left: 28px; font-weight: 500; }
