/* PKP responsive and interactive visual layer */
:root { --pkp-nav-offset: 112px; }
html { scroll-padding-top: var(--pkp-nav-offset); }
section[id], footer[id], #cek-status, #lapor { scroll-margin-top: var(--pkp-nav-offset); }
body { overflow-wrap: break-word; }
img, iframe { max-width: 100%; }
.grid > *, .flex > * { min-width: 0; }
#navbar-container nav { padding-inline: 20px; }
#navbar-container nav a { white-space: nowrap; }
#mobile-menu { max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; }
#mobile-menu a { display: block; }
#mobile-menu a:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; }
.pkp-hero-visual { isolation: isolate; }
.bg-blobs { transform: translate3d(var(--pkp-bg-x,0px),var(--pkp-bg-y,0px),0); inset: -24px; width: calc(100% + 48px); height: calc(100dvh + 48px); }
.pkp-mouse-card { isolation: isolate; transition: box-shadow .25s ease, background .25s ease; }
.glass-card:not(.absolute) { position: relative; }
.pkp-mouse-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0; background: radial-gradient(220px circle at var(--pkp-light-x,50%) var(--pkp-light-y,50%),rgba(255,255,255,.48),transparent 72%); transition: opacity .25s; }
@media (hover:hover) and (pointer:fine) {
 .pkp-mouse-card:hover::after { opacity: 1; }
 .pkp-hero-visual { translate: var(--pkp-hero-x,0px) var(--pkp-hero-y,0px); }
}
/* Reveal content is visible even when JavaScript or observation is unavailable. */
.reveal, .reveal-scale { opacity: 1; transform: none; }
.pkp-reveal-ready:not(.active) { opacity: 0; transform: translateY(18px); }
body.admin-bar #navbar-container, body.admin-bar .pkp-article-nav { top: 48px; }
#toast { pointer-events: none; max-width: calc(100vw - 32px); }
#popup-sedot { padding-block: 16px; overflow-y: auto; }
#popup-content { max-height: calc(100dvh - 32px); overflow-y: auto; }
.pkp-article-nav nav { gap: 12px; }
.wp-content { overflow-wrap: anywhere; }
.wp-content table { display: block; max-width: 100%; overflow-x: auto; }
.wp-content iframe, .wp-content video { max-width: 100%; }
.pkp-article-meta { flex-wrap: wrap; gap: 10px 16px; }
.pkp-article-meta > * { margin-left: 0 !important; }
.pkp-share { flex-wrap: wrap; gap: 16px; }
@media (max-width: 1023px) {
 #beranda { min-height: auto; padding-top: 128px; padding-bottom: 48px; }
 #beranda > div { gap: 32px; }
 .pkp-hero-visual { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; height: auto !important; }
 .pkp-hero-visual > * { position: relative !important; inset: auto !important; width: auto !important; animation: none; }
 .pkp-hero-visual > :last-child { grid-column: 1/-1; justify-content: center; border-radius: 24px; }
}
@media (max-width: 767px) {
 :root { --pkp-nav-offset: 100px; }
 body.admin-bar #navbar-container, body.admin-bar .pkp-article-nav { top: 58px; }
 #navbar-container nav, .pkp-article-nav nav { padding: 12px 16px; }
 #beranda h1 { font-size: clamp(2rem,8.5vw,3rem); line-height: 1.15; }
 #beranda p { font-size: 16px; }
 .pkp-hero-visual { gap: 12px; }
 .pkp-hero-visual > a { padding: 20px 16px; border-radius: 24px; }
 .pkp-hero-visual h3 { font-size: 16px; }
 .pkp-hero-visual p { font-size: 13px !important; }
 .pkp-hero-visual > :last-child p:last-child { font-size: 16px; }
 section:not(#beranda) { padding-block: 40px; }
 #data-statistik .glass-card { padding: 20px 12px; border-radius: 24px; }
 #data-statistik h3 { font-size: clamp(1.4rem,6vw,2rem); }
 #data-statistik .grid > :last-child { grid-column: 1/-1; }
 #profil .glass-dark, #cek-status, #lapor { padding: 24px 20px; border-radius: 28px; }
 #profil .glass-dark h3 { font-size: 24px; }
 #iplt .grid { gap: 28px; }
 #iplt .h-\[400px\] { height: 260px; }
 #toast { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
 .blob { filter: blur(44px); animation: none; }
 .glass, .glass-dark { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
 .floating { animation: none; }
 .glass-card:hover { transform: none; }
 .pkp-article-nav nav > a:last-child { padding: 10px 12px; font-size: 12px; text-align: center; }
 .pkp-back-label { display: none; }
 main article { padding: 24px 20px !important; border-radius: 28px !important; }
 main article > h1 { font-size: clamp(1.65rem,7vw,2.25rem); overflow-wrap: anywhere; }
 main article > .h-\[400px\] { height: auto; aspect-ratio: 4/3; margin-bottom: 24px; }
 .pkp-article-meta { font-size: 12px; }
 .wp-content p { font-size: 16px; line-height: 1.75; }
 .wp-content h2 { font-size: 24px; }
 footer .grid { gap: 28px; }
}
@media (max-width: 359px) { .pkp-hero-visual { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto !important; }
 *, *::before, *::after { animation: none !important; transition: none !important; }
 .bg-blobs, .pkp-hero-visual { transform: none !important; translate: none !important; }
 .reveal, .reveal-scale, .pkp-reveal-ready { opacity: 1 !important; transform: none !important; }
}
.pkp-transform-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.pkp-transform-card { border-radius: 28px; padding: 8px; overflow: hidden; }
.pkp-compare { position: relative; aspect-ratio: 4/3; border-radius: 22px; overflow: hidden; background: #dbeafe; }
.pkp-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pkp-compare .pkp-before { clip-path: inset(0 calc(100% - var(--pkp-split)) 0 0); z-index: 1; }
.pkp-label-before, .pkp-label-after { position: absolute; top: 12px; z-index: 2; background: rgba(15,23,42,.8); padding: 6px 12px; border-radius: 20px; color: white; font-size: 12px; font-weight: 700; pointer-events: none; }
.pkp-label-before { left: 12px; } .pkp-label-after { right: 12px; }
.pkp-divider { position: absolute; top: 0; bottom: 0; left: var(--pkp-split); width: 3px; background: white; z-index: 2; pointer-events: none; }
.pkp-divider span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 40px; height: 40px; border-radius: 50%; background: white; color: #1d4ed8; display: grid; place-items: center; box-shadow: 0 2px 12px #0004; }
.pkp-compare input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 3; margin: 0; }
.pkp-compare:focus-within { outline: 3px solid #2563eb; outline-offset: -3px; }
.pkp-transform-caption { padding: 16px; }
.pkp-transform-caption h3 { font-size: 18px; font-weight: 800; }
.pkp-transform-caption p { color: #475569; margin-top: 4px; }
.pkp-iplt-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.pkp-iplt-gallery figure { overflow: hidden; border-radius: 20px; background: #ffffff18; border: 1px solid #ffffff33; }
.pkp-iplt-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: scale .3s; }
.pkp-iplt-gallery a:hover img { scale: 1.035; }
.pkp-iplt-gallery figcaption { padding: 12px 14px; font-size: 14px; }
.pkp-instagram-feed { min-width: 0; overflow: hidden; }
.pkp-admin-hint { margin-top: 16px; padding: 16px; background: #eff6ff; color: #1e40af; border-radius: 16px; font-size: 14px; }
@media (max-width: 767px) { .pkp-transform-grid { grid-template-columns: 1fr; gap: 20px; } .pkp-iplt-gallery { gap: 12px; } .pkp-instagram-feed #sb_instagram { width: 100% !important; } }
