/* =========================================================
   v3 — slide 16:9, rata kiri-kanan penuh, viewer Excel,
   grafik bisnis, ikon judul, gambar kartu, tombol suara
   ========================================================= */

/* ---------- semua paragraf rata kiri-kanan ---------- */
p, li, .lead { text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
.k-card p { text-align: justify; }
.sec-head.center p, .thanks p, .kbd-hint { text-align: justify; text-align-last: center; }

/* ---------- slide 16:9 (layar laptop / proyektor) ---------- */
html.scaled .hero, html.scaled #tim, html.scaled #latar { min-height: 0; display: block; }
html.scaled .hero { padding: 16px 0 0; }
html.scaled .hero > .wrap { display: block; }
html.scaled .hero-card { aspect-ratio: 16 / 9; min-height: 0; height: auto; }
html.scaled .wrap { width: min(1560px, 100% - 72px); }

/* kotak slide generik */
html.scaled .slide,
html.scaled #tim > .wrap,
html.scaled #latar .panel,
html.scaled #alur > .wrap,
html.scaled .block,
html.scaled .sec-tight > .wrap > .def {
  aspect-ratio: 16 / 9; background: var(--surface); border-radius: 34px; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: 56px 64px; display: flex; flex-direction: column; justify-content: center;
}
html.scaled #tim, html.scaled #alur { padding: 28px 0 0; }
html.scaled #latar { padding: 28px 0 0; }
html.scaled #tim .sec-head { margin-bottom: 30px; }
html.scaled .member .photo { aspect-ratio: 4 / 3.3; }
html.scaled .marquee { margin-top: 28px !important; }
html.scaled .block { margin-top: 28px; }
html.scaled .sec-tight { padding: 28px 0 0; }
html.scaled .sec-tight > .wrap > .def { display: grid; align-content: center; }
html.scaled .p-hero > .wrap { min-height: 0; display: block; }
html.scaled .p-hero { padding: 16px 0 0; }
html.scaled .p-hero-card { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
html.scaled .p-hero-card h1 { font-size: 5.4rem; }
html.scaled .k-card { min-height: 0; height: 100%; }
html.scaled .k-cards { height: 520px; }

/* alur: 2 kolom agar muat satu slide */
html.scaled .lane { grid-template-columns: 1fr 1fr; gap: 14px 18px; }
html.scaled .lane::before, html.scaled .lane-fill { display: none; }
html.scaled .lane-item { padding: 14px 20px 14px 0; }
html.scaled .lane-body p { font-size: .86rem; }
html.scaled #alur .sec-head { margin-bottom: 26px; }
html.scaled #alur .cta-band { margin-top: 22px !important; padding: 26px 36px; }
html.scaled #alur .cta-band h2 { font-size: 1.7rem; }
html.scaled #alur .cta-band p { display: none; }

/* ---------- ikon pada judul setiap bagian ---------- */
.st { align-items: center; }
.st-ic { width: 52px; height: 52px; border-radius: 16px; flex: none; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--lime), #BFDD63); color: var(--green-deep); box-shadow: 0 10px 22px -12px rgba(78, 107, 44, .7); }
.st-ic svg { width: 26px; height: 26px; }
.st .idx { background: var(--gold-soft); color: #8A6418; border-radius: 8px; padding: 3px 8px; font-size: .74rem; }

/* ---------- gambar pendukung pada kartu ---------- */
.card-img { position: relative; height: 150px; margin: -26px -26px 18px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.card-img .fx.feather-b img { -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%); mask-image: linear-gradient(180deg, #000 40%, transparent 100%); }
.bar-top::before { z-index: 3; }

/* ---------- tooltip bergaya bisnis ---------- */
.tt { background: #15261A; color: #EEF4E6; border-color: #2C4A26; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); }
.tt b { color: #fff; }
.tt .row span:first-child { color: #A9BBA0; }
.tt .row span:last-child { color: #fff; }

/* ---------- grafik garis: titik pelacak & glow ---------- */
.chart path.ln { filter: drop-shadow(0 6px 8px rgba(23, 28, 21, .14)); }
.chart .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .45; } 100% { transform: scale(2.4); opacity: 0; } }
.chart .band-pill { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; fill: var(--muted); }

/* ---------- column chart bisnis (rata-rata per periode) ---------- */
.cbar { position: relative; height: 250px; margin: 14px 0 34px 46px; }
.cbar-grid div { position: absolute; left: 0; right: 0; border-top: 1px dashed #E3E2D8; }
.cbar-grid div:first-child { border-top: 1.5px solid #C9C8BC; }
.cbar-grid span { position: absolute; left: -48px; top: -8px; width: 40px; text-align: right; font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cbar-cols { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cbar-col { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; cursor: default; }
.cbar-fill { position: relative; width: 58%; height: 0; border-radius: 10px 10px 2px 2px; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff) 0%, var(--c) 60%, color-mix(in srgb, var(--c) 82%, #000) 100%);
  box-shadow: 0 14px 24px -14px var(--c); transition: height 1.5s cubic-bezier(.34, 1.32, .64, 1), transform .3s var(--ease), filter .3s; }
.cbar-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .5) 50%, transparent 70%); transform: translateX(-120%); }
.in .cbar-fill::after { animation: shine 1.4s 1.3s ease forwards; }
@keyframes shine { to { transform: translateX(120%); } }
.in .cbar-fill { height: var(--h); }
.cbar-col.base .cbar-fill { opacity: .5; }
.cbar-col:hover .cbar-fill { transform: scaleX(1.06); filter: brightness(1.06); }
.cbar-v { font-weight: 800; font-size: .8rem; color: var(--ink); margin-bottom: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cbar-x { position: absolute; bottom: -28px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.delta-row .pill b { font-weight: 800; }
.pill .arr { font-size: .7rem; }

/* ---------- bar horizontal provinsi ---------- */
.hbar .tr .b { background: linear-gradient(90deg, color-mix(in srgb, var(--c) 65%, #fff), var(--c)); transition: width 1.3s cubic-bezier(.34, 1.25, .64, 1), left 1.3s cubic-bezier(.34, 1.25, .64, 1); }
.hbar .tr .b.neg { background: linear-gradient(270deg, #C9CAC0, #9A9C92); }
.hbar .tr { background: #F4F3EC; border-radius: 4px; }
.hbar.top3 .nm { color: var(--ink); font-weight: 700; }
.hbar .rk { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: var(--gold); color: #fff; font-size: .62rem; font-weight: 800; margin-right: 6px; }

/* ---------- histogram ---------- */
.hist div { transition: height 1.1s cubic-bezier(.34, 1.3, .64, 1); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); }

/* ---------- tombol suara ---------- */
.sfx-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--ink); box-shadow: var(--shadow); transition: background .2s, transform .2s; margin-left: 4px; }
.sfx-btn:hover { transform: translateY(-2px); }
.sfx-btn svg { width: 19px; height: 19px; }
.sfx-btn.off { color: var(--muted); }
@media (max-width: 860px) { .sfx-btn { margin-left: auto; } .menu-btn { margin-left: 8px; } }

/* ---------- viewer Excel ---------- */
.xl { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.xl-top { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: linear-gradient(90deg, #185C37, #21794A); color: #fff; flex-wrap: wrap; }
.xl-logo { width: 42px; height: 42px; border-radius: 10px; background: #fff; color: #185C37; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; flex: none; }
.xl-top b { display: block; font-size: .98rem; }
.xl-top small { display: block; font-size: .76rem; color: rgba(255, 255, 255, .75); }
.xl-search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 8px 14px; }
.xl-search svg { width: 16px; height: 16px; }
.xl-search input { background: transparent; border: 0; outline: 0; color: #fff; font: 500 .85rem var(--font); width: 240px; }
.xl-search input::placeholder { color: rgba(255, 255, 255, .7); }
.xl-top .btn { padding: 10px 16px; font-size: .82rem; }
.xl-top .btn-ghost { background: rgba(255, 255, 255, .95); }
.xl-fx { display: flex; align-items: center; border-bottom: 1px solid var(--line); background: #FAFAF7; font-size: .84rem; }
.xl-ref { width: 90px; padding: 8px 12px; border-right: 1px solid var(--line); font-weight: 700; color: var(--ink); font-family: var(--mono); font-size: .8rem; }
.xl-fxi { padding: 8px 12px; border-right: 1px solid var(--line); font-style: italic; color: var(--muted); font-family: Georgia, serif; }
.xl-val { padding: 8px 12px; color: var(--ink); font-family: var(--mono); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl-grid { overflow: auto; max-height: 470px; background: #fff; }
.xl-grid table { border-collapse: separate; border-spacing: 0; font-size: .8rem; width: max-content; min-width: 100%; }
.xl-grid th, .xl-grid td { border-right: 1px solid #E8E8E2; border-bottom: 1px solid #E8E8E2; padding: 5px 10px; white-space: nowrap; text-align: left; }
.xl-grid thead th { position: sticky; top: 0; z-index: 2; background: #F2F2EC; color: #5B6157; font-weight: 600; text-align: center; font-size: .72rem; letter-spacing: 0; text-transform: none; padding: 4px 10px; }
.xl-grid tr.hdr td { position: sticky; top: 25px; z-index: 2; background: #E9F2E4; font-weight: 700; color: #185C37; }
.xl-grid .rn { position: sticky; left: 0; z-index: 1; background: #F2F2EC; color: #8A8F86; text-align: center; font-size: .72rem; min-width: 46px; }
.xl-grid thead th.rn { z-index: 3; }
.xl-grid tr.hdr td.rn { z-index: 3; background: #F2F2EC; }
.xl-grid td.n { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: .78rem; }
.xl-grid td { cursor: cell; }
.xl-grid td:not(.rn):hover { background: #F3F8EF; }
.xl-grid td.sel { outline: 2px solid #21794A; outline-offset: -2px; background: #EAF4E4; }
.xl-grid tr.agg td:not(.rn) { background: #FCEDEA; color: #9B2D1E; }
.xl-grid mark { background: #FFE58A; color: inherit; border-radius: 2px; }
.xl-tabs { display: flex; gap: 2px; padding: 0 10px; background: #F2F2EC; border-top: 1px solid var(--line); overflow-x: auto; }
.xl-tabs button { font: 600 .8rem var(--font); border: 0; background: transparent; padding: 10px 14px 9px; color: #5B6157; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.xl-tabs button:hover { background: #E8E8E1; }
.xl-tabs button.on { background: #fff; color: #185C37; border-bottom-color: #21794A; }
.xl-tabs em { font-style: normal; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: #E3E2D8; color: #555; }
.xl-tabs em.Mentah { background: #FBE3DD; color: #9B2D1E; }
.xl-tabs em.Bersih { background: #D7EFE9; color: #08604F; }
.xl-tabs em.Uji { background: #F8EDCF; color: #8A6418; }
.xl-status { display: flex; justify-content: space-between; gap: 16px; padding: 10px 18px; font-size: .8rem; color: var(--muted); background: #FAFAF7; border-top: 1px solid var(--line); flex-wrap: wrap; }
.xl-status b { color: var(--ink); }
.xl-files { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.xl-files a { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; padding: 9px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.xl-files a:hover { border-color: #21794A; color: #185C37; }
.xl-files svg { width: 15px; height: 15px; }

/* ---------- pratinjau dokumen langsung ---------- */
.pdf-frame { display: block; height: calc(var(--vh, 100vh) * .82); }
.doc-actions .btn { justify-content: center; }

html.scaled .hero-copy h1 { font-size: 4.3rem; margin: 18px 0; }
html.scaled .hero-copy .stats { margin-top: 26px; }

/* isi slide diperbesar agar slide tidak terlihat kosong */
html.scaled .sec-tight > .wrap > .def { gap: 40px; padding: 72px 96px; }
html.scaled .def h2 { font-size: 3rem; margin: 16px 0 22px; }
html.scaled .def p { font-size: 1.32rem; line-height: 1.75; }
html.scaled .def-ic { width: 96px; height: 96px; border-radius: 28px; }
html.scaled .def-ic svg { width: 46px; height: 46px; }
html.scaled .def .hyp div { font-size: 1.12rem; }
html.scaled .block .st h2 { font-size: 2.5rem; }
html.scaled .block .st-sub { font-size: 1.12rem; }
html.scaled .block .card p, html.scaled .block .card li { font-size: 1.04rem; }
html.scaled .block .card h3 { font-size: 1.4rem; }

/* slide memenuhi lebar layar dari kiri ke kanan */
html.scaled .wrap { width: calc(100% - 64px); }
html.scaled .nav-in { height: 64px; }

/* =========================================================
   Foto bersama di hero beranda
   ========================================================= */
.hero-card { grid-template-columns: .92fr 1.28fr; }
.group-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 72% 62% at 56% 92%, rgba(251, 250, 244, .95), rgba(251, 250, 244, .6) 52%, rgba(251, 250, 244, 0) 80%),
    radial-gradient(ellipse 48% 38% at 56% 66%, rgba(214, 236, 123, .38), transparent 72%); }
.group-tag { position: absolute; top: 36px; right: 40px; z-index: 4; text-align: right; line-height: 1.3; }
.group-tag small { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8A6418; }
.group-tag b { display: block; font-size: 1rem; color: var(--ink); margin-top: 4px; }
.group { position: absolute; left: 6%; right: 2%; bottom: 0; height: 56%; z-index: 3; display: flex; justify-content: center; align-items: flex-end; }
.person { position: relative; margin: 0; height: 100%; flex: none; opacity: 0; transform: translateY(46px); animation: person-in 1.1s var(--ease) var(--d) forwards; }
.person img { height: 100%; width: auto; display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
  filter: drop-shadow(0 18px 26px rgba(23, 28, 21, .22)); }
.person.p1 { height: 94%; margin-right: -13%; z-index: 1; }
.person.p2 { height: 100%; z-index: 2; }
.person.p3 { height: 86%; margin-left: -12%; z-index: 1; }
@keyframes person-in { to { opacity: 1; transform: none; } }
.bubble { position: absolute; bottom: calc(100% + 16px); left: var(--bx); transform: translateX(-50%); z-index: 6;
  background: rgba(255, 255, 255, .97); border: 1px solid var(--line); border-radius: 18px; padding: 11px 18px 10px;
  box-shadow: var(--shadow-lg); text-align: center; white-space: nowrap; line-height: 1.3;
  opacity: 0; animation: bubble-in .7s cubic-bezier(.34, 1.4, .64, 1) calc(var(--d) + .6s) forwards; }
.bubble::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 15px; height: 15px; background: #fff;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.bubble b { display: block; font-size: 1rem; color: var(--ink); letter-spacing: -.01em; }
.bubble span { display: block; font-size: .8rem; font-weight: 700; color: var(--green); letter-spacing: .03em; margin-top: 2px; }
@keyframes bubble-in { from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.9); } to { opacity: 1; transform: translateX(-50%); } }
.person:hover { z-index: 4; }
.person:hover .bubble { border-color: var(--green); }
.no-anim .person, .no-anim .bubble { opacity: 1; }
.no-anim .person { transform: none; }
.no-anim .bubble { transform: translateX(-50%); }
@media (max-width: 1080px) {
  .hero-visual { min-height: 560px; }
  .group { height: 62%; left: 0; right: 0; }
}
@media (max-width: 860px) {
  .hero-visual { min-height: 470px; }
  .group-tag { top: 20px; right: 20px; }
  .bubble { padding: 7px 10px; border-radius: 12px; }
  .bubble b { font-size: .72rem; }
  .bubble span { font-size: .62rem; }
}
/* lengan yang terpotong bingkai foto asli dibuat memudar lembut */
.person.p1 img {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%), linear-gradient(180deg, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 16%), linear-gradient(180deg, #000 80%, transparent 100%);
  mask-composite: intersect;
}
.person.p3 img {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 94%, transparent 100%), linear-gradient(180deg, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 94%, transparent 100%), linear-gradient(180deg, #000 80%, transparent 100%);
  mask-composite: intersect;
}

/* susunan foto bersama: kiri - tengah - kanan (atur lewat "posisi" di config.js) */
.group { bottom: 7%; height: 57%; }
.person.pos-kiri { height: 93%; margin-right: -15%; z-index: 3; }
.person.pos-tengah { height: 100%; z-index: 2; }
.person.pos-kanan { height: 87%; margin-left: -15%; z-index: 1; }
/* tepi foto yang terpotong bingkai asli dibuat memudar */
.person img { -webkit-mask-composite: source-in; mask-composite: intersect; }
.person.m1 img {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%), linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 16%), linear-gradient(180deg, #000 78%, transparent 100%); }
.person.m2 img {
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 100%), linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 100%), linear-gradient(180deg, #000 78%, transparent 100%); }
.person.m3 img {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 94%, transparent 100%), linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 94%, transparent 100%), linear-gradient(180deg, #000 78%, transparent 100%); }
.person:hover { z-index: 5; }
.person.m2 img {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 91%, transparent 100%), linear-gradient(180deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 91%, transparent 100%), linear-gradient(180deg, #000 78%, transparent 100%); }

/* table of content: hanya judul, ukuran besar */
.lane-body h3 { font-size: 1.9rem; margin: 0; letter-spacing: -.025em; }
.lane-item { padding-top: 26px; padding-bottom: 26px; }
html.scaled .lane-item { padding: 30px 26px 30px 0; }
html.scaled .lane { gap: 20px 22px; }
html.scaled .lane-dot { width: 62px; height: 62px; }
html.scaled .lane-dot b { font-size: 1.1rem; }
@media (max-width: 860px) { .lane-body h3 { font-size: 1.35rem; } }
