/* Halaman /infografik/ — Galeri Infografik & Peta */

.ig-sorok { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- Kepala --- */
.ig-statistik { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.ig-statistik li { display: inline-flex; align-items: baseline; gap: .35rem; background: var(--putih); border: 1px solid var(--garis); border-radius: 999px; padding: .35rem .95rem; font-size: .95rem; color: var(--dakwat-2); }
.ig-statistik strong { font: 700 1.1rem/1 var(--f-serif); color: var(--hijau); }

.ig-kolaj { position: relative; aspect-ratio: 1 / 1; max-width: 22rem; }
.ig-kolaj img { position: absolute; width: 58%; height: auto; border-radius: 16px; border: 5px solid var(--putih); box-shadow: 0 10px 28px rgba(46,58,51,.16); }
.ig-kolaj-1 { left: 0; top: 8%; transform: rotate(-6deg); z-index: 1; }
.ig-kolaj-2 { left: 21%; top: 0; transform: rotate(1.5deg); z-index: 3; }
.ig-kolaj-3 { right: 0; top: 10%; transform: rotate(7deg); z-index: 2; }

/* --- Alat: penapis + status --- */
.ig-alat { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; margin-bottom: 1.75rem; }
.ig-penapis { display: flex; flex-wrap: wrap; gap: .5rem; }
.ig-status { margin: 0; font-size: .95rem; color: var(--dakwat-2); }

/* --- Grid seragam: 3 lajur, gambar 4:5 --- */
.ig-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 1.5rem; }
.ig-kad { display: flex; min-width: 0; scroll-margin-top: 1.5rem; }
.ig-kad[hidden] { display: none; }
.ig-kad > article { flex: 1; display: flex; flex-direction: column; background: var(--putih); border: 1px solid var(--garis); border-radius: var(--r-besar); box-shadow: var(--bayang); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.ig-kad > article:hover { box-shadow: 0 14px 34px rgba(46,58,51,.12); transform: translateY(-2px); }
.ig-kad:target > article { outline: 3px solid var(--emas-terang); outline-offset: 3px; }

.ig-gambar { position: relative; display: block; line-height: 0; aspect-ratio: 4 / 5; background: var(--hijau-muda); border-bottom: 1px solid var(--garis); overflow: hidden; isolation: isolate; }
.ig-gambar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .35s ease; }
.ig-gambar-muat::before { content: ""; position: absolute; inset: -24px; z-index: -1; background: var(--latar) center / cover no-repeat; filter: blur(18px) saturate(1.1); opacity: .55; }
.ig-gambar-muat img { object-fit: contain; object-position: center; padding: 1.25rem .9rem 3.25rem; box-sizing: border-box; filter: drop-shadow(0 6px 16px rgba(46,58,51,.22)); }
.ig-gambar-potong img { object-position: 48% 70%; }
.ig-gambar:hover img { transform: scale(1.025); }
.ig-gambar:focus-visible { outline: 3px solid var(--emas); outline-offset: -3px; border-radius: 0; }
.ig-lencana { position: absolute; left: .75rem; bottom: .95rem; line-height: 1.3; padding: .25rem .7rem; border-radius: 999px; background: rgba(255,255,255,.94); color: var(--hijau-tua); font: 800 .78rem/1.3 var(--f-sans); box-shadow: 0 2px 8px rgba(46,58,51,.12); }
.ig-lencana-ai { background: var(--emas-terang); color: #4a3710; }
.ig-besar { position: absolute; right: .75rem; bottom: .75rem; width: 40px; height: 40px; display: grid; place-items: center; line-height: 0; border-radius: 50%; background: var(--hijau-tua); color: #fff; opacity: .88; transition: opacity .15s, transform .15s; }
.ig-gambar:hover .ig-besar, .ig-gambar:focus-visible .ig-besar { opacity: 1; transform: scale(1.06); }

.ig-isi { padding: 1.2rem 1.35rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; }
.ig-isi > * { margin: 0; }
.ig-isi .label { margin: 0; }
.ig-isi h3 { font-size: 1.28rem; line-height: 1.25; }
.ig-ringkas { color: var(--dakwat-2); font-size: .98rem; line-height: 1.55; }
.ig-penafian { font-size: .88rem; line-height: 1.45; background: var(--emas-pudar); color: #5a4211; border-radius: 10px; padding: .5rem .75rem; box-shadow: inset 3px 0 0 var(--emas); }

.ig-rujukan { font-size: .92rem; border-top: 1px dashed var(--garis); padding-top: .55rem; }
.ig-rujukan summary { cursor: pointer; font-weight: 700; color: var(--hijau-tua); min-height: 32px; display: flex; align-items: center; list-style: none; gap: .4rem; }
.ig-rujukan summary::-webkit-details-marker { display: none; }
.ig-rujukan summary::before { content: "+"; display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--hijau-muda); color: var(--hijau); font-weight: 800; line-height: 1; }
.ig-rujukan[open] summary::before { content: "\2212"; }
.ig-rujukan ul { margin: .35rem 0 0; padding-left: 1.85rem; color: var(--dakwat-2); }
.ig-rujukan li { margin: .1rem 0; font-style: italic; }

.ig-pautan { list-style: none; margin: .1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.ig-pautan a { display: inline-flex; align-items: center; gap: .3rem; min-height: 36px; padding: .3rem .8rem; border-radius: 999px; background: var(--kertas); border: 1px solid var(--garis); color: var(--hijau-tua); font-weight: 700; font-size: .9rem; line-height: 1.3; text-decoration: none; }
.ig-pautan a::after { content: "\2192"; color: var(--emas); }
.ig-pautan a:hover { background: var(--hijau-muda); border-color: #cfe1d5; }
.ig-sumber { font-size: .86rem; color: var(--dakwat-2); }
.ig-isi { flex: 1; }
.ig-kaki { margin-top: auto; display: flex; flex-direction: column; gap: .7rem; padding-top: .35rem; }
.ig-kaki > * { margin: 0; }
.ig-kaki .ig-sumber { border-top: 1px solid var(--garis); padding-top: .7rem; }

/* --- Kad CTA (penutup grid) --- */
.ig-cta { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .7rem; background: var(--teal); color: #e6eeeb; border-radius: var(--r-besar); padding: 2rem 1.75rem; background-image: radial-gradient(circle at 100% 0%, rgba(246,213,142,.22), transparent 55%); }
.ig-cta > * { margin: 0; }
.ig-cta .label { color: var(--emas-terang); }
.ig-cta h3 { color: #fff; font-size: 1.6rem; }
.ig-cta p { color: #d3e0dc; line-height: 1.6; }
.ig-cta-pautan { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .6rem; }
.ig-cta-pautan a { display: flex; flex-direction: column; gap: .1rem; min-height: 44px; padding: .75rem 2.6rem .75rem 1rem; border-radius: 14px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); color: #fff; text-decoration: none; position: relative; }
.ig-cta-pautan a::after { content: "\2192"; position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--emas-terang); font-weight: 800; }
.ig-cta-pautan a:hover { background: rgba(255,255,255,.16); color: #fff; }
.ig-cta-pautan strong { font-size: 1.02rem; }
.ig-cta-pautan small { color: #c9dad5; font-size: .88rem; }

/* --- Jalur prinsip --- */
.ig-prinsip-kepala { margin-bottom: 1.5rem; }
.ig-prinsip-kepala h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); }
.ig-prinsip .kad { padding: 1.5rem; }
.ig-ikon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--hijau-muda); color: var(--hijau); margin-bottom: .3rem; }
.ig-lanjut { margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .75rem; }

/* --- Kotak paparan penuh (dialog) --- */
.ig-kotak { width: min(100vw - 2rem, 72rem); max-width: none; max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: var(--r-besar); background: var(--putih); color: var(--dakwat); box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; }
.ig-kotak::backdrop { background: rgba(20,30,26,.78); }
.ig-kotak-dalam { position: relative; display: flex; flex-direction: column; max-height: calc(100vh - 2rem); }
.ig-kotak-bar { display: flex; align-items: center; justify-content: space-between; padding: .5rem .6rem .5rem 1.25rem; border-bottom: 1px solid var(--garis); }
.ig-kotak-kiraan { margin: 0; font-weight: 800; font-size: .9rem; color: var(--dakwat-2); }
.ig-kotak-rajah { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 18rem; min-height: 0; flex: 1; }
.ig-kotak-gambar { background: var(--kertas); display: grid; place-items: center; padding: 1rem 4rem; min-height: 0; overflow: auto; }
.ig-kotak-gambar img { display: block; max-width: 100%; max-height: calc(100vh - 7rem); width: auto; height: auto; border-radius: 12px; }
.ig-kotak-rajah figcaption { padding: 1.5rem 1.4rem; display: flex; flex-direction: column; gap: .6rem; border-left: 1px solid var(--garis); }
.ig-kotak-rajah figcaption h2 { font-size: 1.35rem; margin: 0; }
.ig-kotak-rajah figcaption p { margin: 0; }
.ig-kotak-asal { font-weight: 700; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; }
.ig-kotak-butang { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--hijau-tua); cursor: pointer; }
.ig-kotak-butang:hover { background: var(--kertas); }
.ig-kotak-nav { position: absolute; top: 50%; background: var(--putih); box-shadow: 0 4px 14px rgba(46,58,51,.18); }
.ig-kotak-nav:hover { background: var(--hijau-muda); }
.ig-kotak-sebelum { left: .75rem; }
.ig-kotak-seterus { right: calc(18rem + .75rem); }

/* --- Responsif --- */
@media (max-width: 960px) {
  .ig-kolaj { max-width: 18rem; margin: 0 auto; }
  .ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ig-kotak-rajah { grid-template-columns: minmax(0, 1fr); }
  .ig-kotak-rajah figcaption { border-left: 0; border-top: 1px solid var(--garis); padding: 1rem 1.25rem; }
  .ig-kotak-gambar { padding: .75rem; }
  .ig-kotak-gambar img { max-height: calc(100vh - 16rem); }
  .ig-kotak-nav { top: auto; bottom: 1rem; }
  .ig-kotak-sebelum { left: auto; right: 4.25rem; }
  .ig-kotak-seterus { right: 1rem; }
  .ig-kotak-rajah figcaption { padding-right: 9rem; }
}
@media (max-width: 640px) {
  .ig-kepala .kepala-visual, .ig-statistik { display: none; }
  .ig-alat { margin-bottom: 1.25rem; }
  .ig-penapis { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) .3rem; scrollbar-width: none; }
  .ig-penapis .cip { flex: 0 0 auto; }
  .ig-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .ig-gambar-muat { aspect-ratio: auto; }
  .ig-gambar-muat img { height: auto; padding: 1rem 1rem 3.5rem; }
  .ig-kotak { width: calc(100vw - 1rem); max-height: calc(100vh - 1rem); }
  .ig-kotak-dalam { max-height: calc(100vh - 1rem); }
}
@media (prefers-reduced-motion: reduce) {
  .ig-gambar img, .ig-kad > article, .ig-besar { transition: none; }
}
