/* ==========================================================================
   HOME PRO — Royal Emerald & Gold Design Layer for app/Views/home.php
   Loaded LAST. Unified Emerald-Gold tokens, Header/Footer lockup, Org Chart,
   All-News Catalog Modal, Gallery Photo Slider Modal, & Full Responsiveness.
   ========================================================================== */

body.home-page {
    --hp-bg: #fbfaf5;
    --hp-bg-alt: #f1f7f3;
    --hp-surface: #ffffff;
    --hp-surface-2: #f4f9f5;
    --hp-ink: #07261c;
    --hp-ink-2: #2d473c;
    --hp-muted: #5c7267;
    --hp-line: #d8e6dd;
    --hp-gold-line: rgba(217, 169, 42, 0.36);
    --hp-brand: #064e3b;
    --hp-brand-2: #0a7c59;
    --hp-brand-dark: #032b20;
    --hp-brand-soft: #e6f5ed;
    --hp-gold: #dfaf31;
    --hp-gold-bright: #f4cf5b;
    --hp-gold-deep: #9c710c;
    --hp-gold-soft: #fcf3d3;
    --hp-r: 22px;
    --hp-r-sm: 14px;
    --hp-shadow: 0 2px 6px rgba(6, 48, 34, .05), 0 14px 34px -12px rgba(6, 65, 46, .14);
    --hp-shadow-hover: 0 6px 14px rgba(6, 48, 34, .08), 0 26px 52px -14px rgba(6, 78, 59, .26), 0 0 0 1px rgba(223, 175, 49, .38);
}

html[data-theme="dark"] body.home-page {
    --hp-bg: #07120e;
    --hp-bg-alt: #0b1914;
    --hp-surface: #10211a;
    --hp-surface-2: #0d1b15;
    --hp-ink: #ecf6f0;
    --hp-ink-2: #c5d9ce;
    --hp-muted: #8ca697;
    --hp-line: #1e382c;
    --hp-gold-line: rgba(240, 198, 79, 0.35);
    --hp-brand: #34d399;
    --hp-brand-2: #10b981;
    --hp-brand-dark: #04241a;
    --hp-brand-soft: rgba(52, 211, 153, .13);
    --hp-gold: #f0c64f;
    --hp-gold-bright: #fde68a;
    --hp-gold-deep: #f0c64f;
    --hp-gold-soft: rgba(240, 198, 79, .14);
    --hp-shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 16px 36px -12px rgba(0, 0, 0, .65);
    --hp-shadow-hover: 0 4px 12px rgba(0, 0, 0, .45), 0 28px 54px -14px rgba(0, 0, 0, .75), 0 0 0 1px rgba(240, 198, 79, .4);
}

/* ---------- Page Rhythm & Section Backgrounds ---------- */
body.home-page,
body.home-page main {
    background: var(--hp-bg) !important;
    color: var(--hp-ink);
    overflow-x: clip;
}
html[data-theme="dark"] body.home-page,
html[data-theme="dark"] body.home-page main {
    background: var(--hp-bg) !important;
    color: var(--hp-ink);
}
body.home-page main > section[id],
body.home-page section[id] { scroll-margin-top: 86px; }
body.home-page main > section.section-space { padding-block: clamp(56px, 7vw, 96px); }

body.home-page main > section.section-space:nth-of-type(even),
body.home-page main > section:is(#profil, #statistik, #berita, #regulasi, #syarat-surat, #idm, #ekonomi) {
    background:
        radial-gradient(circle at 100% 0%, rgba(223, 175, 49, 0.07) 0%, transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(10, 124, 89, 0.05) 0%, transparent 42%),
        var(--hp-bg) !important;
}

body.home-page main > section.section-space:nth-of-type(odd),
body.home-page main > section:is(#profil-desa, #pemerintahan, #galeri, #surat-mandiri, #kelembagaan, #anggaran) {
    background:
        radial-gradient(circle at 0% 0%, rgba(10, 124, 89, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 100% 100%, rgba(223, 175, 49, 0.08) 0%, transparent 45%),
        var(--hp-bg-alt) !important;
    border-top: 1px solid color-mix(in srgb, var(--hp-line) 70%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--hp-line) 70%, transparent);
}

body.home-page main > section:is(#profil, #profil-desa, #berita, #surat-mandiri, #kelembagaan, #statistik, #regulasi, #idm, #syarat-surat, #ekonomi, #galeri, #anggaran, #pemerintahan, #hubungi, #layanan-ambulance) > .site-container {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

body.home-page .site-container {
    width: min(1280px, calc(100% - 48px));
    margin-inline: auto;
}

/* ---------- Royal Emerald & Gold Section Headings ---------- */
body.home-page .section-title-row h2 {
    color: var(--hp-ink);
}
body.home-page .section-title-row h2 em {
    font-style: normal;
    background: linear-gradient(115deg, #064e3b 0%, #0d8a63 55%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
html[data-theme="dark"] body.home-page .section-title-row h2 em {
    background: linear-gradient(115deg, #34d399 0%, #a7f3d0 50%, #f4cf5b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
body.home-page .section-title-row p {
    color: var(--hp-muted);
}
body.home-page .section-overline,
body.home-page .panel-heading .section-overline,
body.home-page .budget-heading .section-overline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px !important;
    clip-path: none !important;
    border-radius: 999px !important;
    background: linear-gradient(120deg, var(--hp-brand-soft), var(--hp-gold-soft)) !important;
    border: 1.5px solid var(--hp-gold-line) !important;
    color: var(--hp-brand) !important;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 12px rgba(6, 78, 59, 0.08);
}
body.home-page .section-overline i {
    color: var(--hp-gold-deep);
}
html[data-theme="dark"] body.home-page .section-overline {
    color: #fde68a;
}
html[data-theme="dark"] body.home-page .section-overline i {
    color: #f4cf5b;
}

body.home-page .outline-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 22px;
    border: 1.5px solid var(--hp-gold-line);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--hp-surface), var(--hp-gold-soft));
    color: var(--hp-ink);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: var(--hp-shadow);
    transition: .25s;
}
body.home-page .outline-link i {
    color: var(--hp-gold-deep);
}
body.home-page .outline-link:hover {
    border-color: var(--hp-gold);
    background: linear-gradient(135deg, #064e3b, #0a7c59);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--hp-shadow-hover);
}
body.home-page .outline-link:hover i {
    color: #fde68a;
}

/* ==========================================================================
   SITE HEADER & LOGO LOCKUP — Deep Emerald & Gold + Exact Footer Frame Match
   ========================================================================== */
body .topbar {
    background: linear-gradient(90deg, #021c14 0%, #052e22 50%, #021c14 100%);
    border-bottom: 1px solid rgba(229, 195, 85, 0.22);
    color: #d6e8de;
}
body .topbar-inner b,
body .topbar-inner i {
    color: #f0cf58;
}

body .site-header,
:root[data-theme="dark"] body .site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    isolation: isolate;
    color: #ffffff;
    background:
        radial-gradient(circle at 12% 50%, rgba(229, 195, 85, 0.12), transparent 38%),
        radial-gradient(circle at 88% 50%, rgba(16, 185, 129, 0.14), transparent 42%),
        linear-gradient(115deg, rgba(4, 38, 28, 0.98) 0%, rgba(7, 67, 49, 0.97) 52%, rgba(4, 45, 33, 0.98) 100%);
    border-bottom: 1px solid rgba(229, 195, 85, 0.38);
    box-shadow: 0 12px 32px rgba(2, 24, 17, 0.38);
    backdrop-filter: blur(14px);
}

body .site-header::after,
:root[data-theme="dark"] body .site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(229, 195, 85, 0.75) 20%, #fde68a 50%, rgba(229, 195, 85, 0.75) 80%, transparent 100%);
    pointer-events: none;
}

/* Exact match between .site-header .brand-mark and .footer-brand-logo */
body .site-header .brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
}

body .site-header .brand-mark,
:root[data-theme="dark"] body .site-header .brand-mark,
body .site-footer .footer-brand-logo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    flex: 0 0 40px !important;
    aspect-ratio: 1 / 1 !important; /* Persegi 4 Presisi */
    padding: 3px !important;
    overflow: hidden !important;
    border: 2px solid #e5c355 !important;
    border-radius: 8px !important; /* Frame persegi 4 modern */
    background: radial-gradient(circle at 50% 30%, #0d5e44, #052a1e) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 12px rgba(229, 195, 85, 0.3) !important;
    transition: transform .22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .22s ease !important;
    box-sizing: border-box !important;
}

body .site-header .brand-mark img,
:root[data-theme="dark"] body .site-header .brand-mark img,
body .site-footer .footer-brand-logo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) !important;
}

body .site-header .brand:hover .brand-mark,
body .site-footer .footer-brand-link:hover .footer-brand-logo {
    transform: translateY(-2px) scale(1.04) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 18px rgba(229, 195, 85, 0.5) !important;
}

body .site-header .brand-name,
:root[data-theme="dark"] body .site-header .brand-name {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0.055em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

body .site-header .brand-name small,
:root[data-theme="dark"] body .site-header .brand-name small {
    color: #f2d675 !important;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin-top: 4px;
}

/* ==========================================================================
   EXECUTIVE 1-ROW NAVBAR WITH BOOTSTRAP-STYLE BUTTON & DROPDOWN ANIMATION
   ========================================================================== */

/* 1. Header Container & 1-Row Layout Guarantee */
body .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    max-width: 100% !important;
    background: rgba(3, 30, 22, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(229, 195, 85, 0.3) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45) !important;
    overflow: visible !important;
}

body .site-header .site-container {
    width: 100% !important;
    max-width: 1480px !important;
    margin-inline: auto !important;
    padding-inline: clamp(12px, 2vw, 32px) !important;
    box-sizing: border-box !important;
}

body .site-header .nav-inner {
    width: 100% !important;
    min-height: 64px !important;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: clamp(8px, 1.2vw, 24px) !important;
    box-sizing: border-box !important;
}

body .site-header .brand {
    flex: 0 0 auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    text-decoration: none !important;
    min-width: 0 !important;
}

body .site-header .brand-mark {
    width: 38px !important;
    height: 38px !important;
    flex-shrink: 0 !important;
}

body .site-header .brand-name {
    font-size: clamp(11.5px, 0.85vw, 13px) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.04em !important;
    white-space: nowrap !important;
}

body .site-header .brand-name small {
    display: block !important;
    font-size: 7px !important;
    letter-spacing: 0.06em !important;
    margin-top: 2px !important;
    opacity: 0.85 !important;
}

body .site-header .site-nav {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: center !important;
    justify-content: center !important; /* Rata Tengah */
    gap: clamp(3px, 0.35vw, 6px) !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}

/* 2. Uniform Button Dimensions & Typography (Dashboard to Informasi & Publikasi) */
body .site-header .nav-dropdown {
    position: relative !important;
    flex: 0 0 auto !important;
    display: inline-flex !important;
}

body .site-header .site-nav > a.nav-link,
body .site-header .site-nav .nav-dropdown-trigger {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 clamp(8px, 0.75vw, 12px) !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    border-radius: 999px !important; /* Bootstrap modern pill button */
    border: 1px solid rgba(229, 195, 85, 0.28) !important;
    background: rgba(4, 38, 28, 0.7) !important;
    color: #e6f4ed !important;
    font-family: inherit !important;
    font-size: clamp(11px, 0.78vw, 12px) !important;
    font-weight: 750 !important;
    line-height: 1 !important;
    letter-spacing: 0.15px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    position: relative !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Remove old underline */
body .site-header .nav-link.active::after,
body .site-header .nav-link::after {
    display: none !important;
}

/* 3. Button Icon & Chevron Styling */
body .site-header .site-nav > a.nav-link > i:first-child,
body .site-header .site-nav .nav-dropdown-trigger > i:first-child {
    font-size: 11.5px !important;
    color: #e5c355 !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
}

body .site-header .site-nav .nav-dropdown-trigger > i.fa-chevron-down {
    font-size: 9px !important;
    margin-left: 1px !important;
    color: rgba(229, 195, 85, 0.8) !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease !important;
}

/* 4. Button Hover, Focus & Active States (Bootstrap-style Pill Animation) */
body .site-header .site-nav > a.nav-link:hover,
body .site-header .site-nav > a.nav-link.active,
body .site-header .nav-dropdown:hover > .nav-dropdown-trigger,
body .site-header .nav-dropdown.is-open > .nav-dropdown-trigger,
body .site-header .nav-dropdown-trigger:hover,
body .site-header .nav-dropdown-trigger:focus-visible {
    color: #fde68a !important;
    background: linear-gradient(135deg, rgba(229, 195, 85, 0.28) 0%, rgba(16, 185, 129, 0.22) 100%) !important;
    border-color: #fde68a !important;
    box-shadow: 0 4px 14px rgba(229, 195, 85, 0.3), 0 0 0 1px rgba(253, 230, 138, 0.25) !important;
    transform: translateY(-1.5px) !important;
}

body .site-header .site-nav > a.nav-link:active,
body .site-header .site-nav .nav-dropdown-trigger:active {
    transform: scale(0.97) translateY(0) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

body .site-header .site-nav > a.nav-link:hover > i:first-child,
body .site-header .site-nav > a.nav-link.active > i:first-child,
body .site-header .nav-dropdown:hover > .nav-dropdown-trigger > i:first-child,
body .site-header .nav-dropdown.is-open > .nav-dropdown-trigger > i:first-child {
    color: #fde68a !important;
    transform: scale(1.15) !important;
}

body .site-header .nav-dropdown:hover > .nav-dropdown-trigger > i.fa-chevron-down,
body .site-header .nav-dropdown.is-open > .nav-dropdown-trigger > i.fa-chevron-down {
    transform: rotate(180deg) !important;
    color: #fde68a !important;
}

/* 5. Bootstrap-Style Animated Dropdown Menu (Slide Down + Fade In) */
body .site-header .nav-dropdown-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    display: block !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateY(12px) scale(0.97) !important;
    transform-origin: top center !important;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.22s !important;
    pointer-events: none !important;
    min-width: 225px !important;
    background: linear-gradient(165deg, #063829 0%, #03241b 100%) !important;
    border: 1px solid rgba(229, 195, 85, 0.42) !important;
    border-radius: 16px !important;
    padding: 8px !important;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(229, 195, 85, 0.18) !important;
    z-index: 1000 !important;
}

body .site-header .nav-dropdown:hover > .nav-dropdown-menu,
body .site-header .nav-dropdown.is-open > .nav-dropdown-menu {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
}

/* Align rightmost dropdowns to prevent horizontal viewport overflow */
body .site-header .site-nav > .nav-dropdown:nth-last-child(-n+3) > .nav-dropdown-menu {
    left: auto !important;
    right: 0 !important;
    transform-origin: top right !important;
}

/* 6. Dropdown Menu Links */
body .site-header .nav-dropdown-menu a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #e6f4ed !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    text-decoration: none !important;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease !important;
}

body .site-header .nav-dropdown-menu a i {
    width: 16px !important;
    text-align: center !important;
    color: #e5c355 !important;
    font-size: 12.5px !important;
    flex-shrink: 0 !important;
    transition: transform 0.18s ease, color 0.18s ease !important;
}

body .site-header .nav-dropdown-menu a:hover {
    background: rgba(229, 195, 85, 0.18) !important;
    color: #fde68a !important;
    transform: translateX(4px) !important;
}

body .site-header .nav-dropdown-menu a:hover i {
    color: #fde68a !important;
    transform: scale(1.15) !important;
}

/* 7. Submenu Inside Layanan Mandiri */
body .site-header .nav-submenu {
    position: relative !important;
    width: 100% !important;
}

body .site-header .nav-submenu-trigger {
    width: 100% !important;
    min-height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 8px 12px !important;
    border: 0 !important;
    border-radius: 9px !important;
    color: #e6f4ed !important;
    background: transparent !important;
    font: inherit !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: background 0.18s ease, color 0.18s ease !important;
}

body .site-header .nav-submenu-trigger:hover,
body .site-header .nav-submenu.is-open > .nav-submenu-trigger,
body .site-header .nav-submenu:hover > .nav-submenu-trigger {
    background: rgba(229, 195, 85, 0.18) !important;
    color: #fde68a !important;
}

body .site-header .nav-submenu-trigger i.fa-chevron-right {
    font-size: 9px !important;
    color: rgba(229, 195, 85, 0.75) !important;
    transition: transform 0.22s ease, color 0.22s ease !important;
}

body .site-header .nav-submenu.is-open > .nav-submenu-trigger i.fa-chevron-right,
body .site-header .nav-submenu:hover > .nav-submenu-trigger i.fa-chevron-right {
    transform: rotate(90deg) !important;
    color: #fde68a !important;
}

body .site-header .nav-submenu-menu {
    display: none !important;
    padding: 4px 4px 6px 10px !important;
    margin: 2px 0 5px 8px !important;
    border-left: 2px solid rgba(229, 195, 85, 0.45) !important;
    background: rgba(2, 24, 17, 0.45) !important;
    border-radius: 0 8px 8px 0 !important;
    gap: 2px !important;
}

body .site-header .nav-submenu:hover > .nav-submenu-menu,
body .site-header .nav-submenu.is-open > .nav-submenu-menu {
    display: grid !important;
    animation: submenuSlide 0.2s ease forwards !important;
}

/* 8. Right Utility Buttons: Theme Toggle & Masuk CTA (Modern Celestial Switch) */
body .site-header .theme-toggle {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    height: 28px !important;
    min-width: 52px !important;
    min-height: 28px !important;
    flex-shrink: 0 !important;
    cursor: pointer !important;
    user-select: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body .site-header .theme-toggle:hover {
    transform: translateY(-1px) scale(1.04) !important;
}

body .site-header .theme-toggle:active {
    transform: translateY(0) scale(0.96) !important;
}

body .site-header .theme-toggle .theme-toggle-input {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
}

/* Track Base Styling (Pill with rich Aceh gold border & deep emerald atmospheric glow) */
body .site-header .theme-switch-track {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 52px !important;
    height: 28px !important;
    min-width: 52px !important;
    min-height: 28px !important;
    border-radius: 999px !important;
    border: 1.5px solid rgba(229, 195, 85, 0.75) !important;
    background: linear-gradient(135deg, #094030 0%, #03271c 100%) !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.22) !important;
    padding: 0 6.5px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    isolation: isolate !important;
    -webkit-mask-image: -webkit-radial-gradient(white, black) !important;
    transition: background 0.32s ease,
                border-color 0.32s ease,
                box-shadow 0.32s ease !important;
}

/* Subtle atmospheric gold star shimmer layer inside track */
body .site-header .theme-switch-track::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    background: radial-gradient(circle at 80% 40%, rgba(253, 230, 138, 0.22) 0%, transparent 65%) !important;
    opacity: 0.85 !important;
    pointer-events: none !important;
}

/* Ambient symbols inside track */
body .site-header .theme-track-ambient {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 8.5px !important;
    line-height: 1 !important;
    pointer-events: none !important;
    user-select: none !important;
    z-index: 1 !important;
    transition: opacity 0.3s ease, color 0.3s ease !important;
}

body .site-header .theme-ambient-sun {
    color: rgba(251, 191, 36, 0.85) !important;
}

body .site-header .theme-ambient-moon {
    color: rgba(253, 230, 138, 0.75) !important;
}

/* Track in Dark Mode */
body .site-header .theme-toggle-input:checked + .theme-switch-track,
:root[data-theme="dark"] body .site-header .theme-switch-track {
    background: linear-gradient(135deg, #021710 0%, #063122 100%) !important;
    border-color: rgba(253, 230, 138, 0.85) !important;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.75), 0 0 12px rgba(229, 195, 85, 0.35) !important;
}

/* Thumb Ball: EXACT Pixel-Perfect Centering & True Bounded Alignment */
body .site-header .theme-switch-thumb {
    position: absolute !important;
    top: 50% !important;
    left: 2.5px !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 40%, #fef3c7 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.85) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35), 0 0 10px rgba(251, 191, 36, 0.6) !important;
    box-sizing: border-box !important;
    z-index: 2 !important;
    transform: translateY(-50%) translateX(0) !important;
    transition: transform 0.32s cubic-bezier(0.34, 1.35, 0.64, 1),
                background 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease !important;
}

/* Thumb in Dark Mode: Exact 24px Slide Right (giving exact 2.5px right clearance) */
body .site-header .theme-toggle-input:checked + .theme-switch-track .theme-switch-thumb,
:root[data-theme="dark"] body .site-header .theme-switch-track .theme-switch-thumb,
:root[data-theme="dark"] body .site-header .theme-switch-thumb {
    transform: translateY(-50%) translateX(24px) !important;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%) !important;
    border-color: rgba(203, 213, 225, 0.9) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45), 0 0 12px rgba(186, 230, 253, 0.7) !important;
}

/* Icons inside Thumb */
body .site-header .theme-switch-thumb i {
    font-size: 9.5px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    text-align: center !important;
    transition: transform 0.25s ease, opacity 0.25s ease !important;
}

/* Light Mode: Sun icon inside thumb */
body .site-header .theme-switch-thumb .theme-thumb-sun {
    display: flex !important;
    color: #d97706 !important;
}
body .site-header .theme-switch-thumb .theme-thumb-moon {
    display: none !important;
}

/* Dark Mode: Moon icon inside thumb */
body .site-header .theme-toggle-input:checked + .theme-switch-track .theme-switch-thumb .theme-thumb-sun,
:root[data-theme="dark"] body .site-header .theme-switch-thumb .theme-thumb-sun {
    display: none !important;
}
body .site-header .theme-toggle-input:checked + .theme-switch-track .theme-switch-thumb .theme-thumb-moon,
:root[data-theme="dark"] body .site-header .theme-switch-thumb .theme-thumb-moon {
    display: flex !important;
    color: #064e3b !important;
}

body .site-header .nav-cta {
    flex-shrink: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    font-size: 11.5px !important;
    font-weight: 800 !important;
    border-radius: 999px !important;
    margin-left: 3px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* ==========================================================================
   RESPONSIVE NAVIGATION SUITE (DESKTOP MODE >= 1024px & MOBILE MODE < 1024px)
   ========================================================================== */

/* Animation for mobile drawer submenus */
@keyframes drawerExpand {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Stacking Context & Backdrop Management */
body.nav-open .site-header {
    z-index: 10050 !important;
}

.site-nav-backdrop {
    display: none;
}

/* 9. DESKTOP MODE (min-width: 1200px) — Pristine 1-Row Layout with Centered Navigation */
@media (min-width: 1200px) {
    body .site-header {
        overflow: visible !important;
        z-index: 1000 !important;
    }
    body .site-header .nav-toggle {
        display: none !important;
    }
    .site-nav-backdrop {
        display: none !important;
    }
    body .site-header .site-container {
        width: 100% !important;
        margin-inline: auto !important;
        display: flex !important;
        justify-content: center !important;
    }
    body .site-header .nav-inner {
        width: 100% !important;
        display: flex !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: clamp(8px, 1vw, 20px) !important;
        margin: 0 auto !important;
    }
    body .site-header .brand {
        flex: 0 0 auto !important;
        margin-right: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        text-decoration: none !important;
    }
    body .site-header .site-nav {
        display: flex !important;
        position: static !important;
        max-height: none !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        flex-flow: row nowrap !important;
        align-items: center !important;
        justify-content: center !important; /* RATA TENGAH */
        margin: 0 auto !important; /* RATA TENGAH */
        padding: 0 !important;
        width: auto !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    /* Pushes Item 1 (Dashboard) from left, and Item 7 (Theme Toggle) from right to center Items 1..6 */
    body .site-header .site-nav > a.nav-link:first-child {
        margin-left: auto !important;
    }
    body .site-header .site-nav .theme-toggle {
        margin-left: auto !important;
    }
}

/* 9A. Compact Desktops (1200px to 1279px) */
@media (min-width: 1200px) and (max-width: 1279px) {
    body .site-header .site-container {
        max-width: 1200px !important;
        padding-inline: 10px !important;
    }
    body .site-header .nav-inner {
        gap: 6px !important;
        min-height: 58px !important;
    }
    body .site-header .brand {
        min-width: 160px !important;
    }
    body .site-header .brand-mark {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        flex: 0 0 32px !important;
        aspect-ratio: 1 / 1 !important; /* Persegi 4 */
        border-radius: 7px !important;
    }
    body .site-header .brand-name {
        font-size: 11px !important;
    }
    body .site-header .brand-name small {
        display: none !important; /* Reclaims 100px of clearance */
    }
    body .site-header .site-nav {
        gap: 2.5px !important;
    }
    body .site-header .site-nav > a.nav-link,
    body .site-header .site-nav .nav-dropdown-trigger {
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
        padding: 0 4.5px !important;
        font-size: 9.8px !important;
        gap: 3px !important;
    }
    body .site-header .site-nav > a.nav-link > i:first-child,
    body .site-header .site-nav .nav-dropdown-trigger > i:first-child {
        font-size: 9px !important;
    }
    body .site-header .site-nav .nav-dropdown-trigger > i.fa-chevron-down {
        font-size: 6.5px !important;
        margin-left: 1px !important;
    }
    body .site-header .theme-toggle {
        margin-left: auto !important;
    }
    body .site-header .nav-cta {
        height: 30px !important;
        min-height: 30px !important;
        padding: 0 8px !important;
        font-size: 9.8px !important;
    }
    body .site-header .site-nav::after {
        content: "" !important;
        display: block !important;
        width: 25px !important;
        flex-shrink: 0 !important;
    }
}

/* 9B. Small Laptops & Scaled Screens (1280px to 1399px) */
@media (min-width: 1280px) and (max-width: 1399px) {
    body .site-header .site-container {
        max-width: 1280px !important;
        padding-inline: 14px !important;
    }
    body .site-header .nav-inner {
        gap: 8px !important;
        min-height: 60px !important;
    }
    body .site-header .brand {
        min-width: 175px !important;
    }
    body .site-header .brand-mark {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        flex: 0 0 34px !important;
        aspect-ratio: 1 / 1 !important; /* Persegi 4 */
        border-radius: 8px !important;
    }
    body .site-header .brand-name {
        font-size: 11.5px !important;
    }
    body .site-header .brand-name small {
        display: none !important;
    }
    body .site-header .site-nav {
        gap: 3.5px !important;
    }
    body .site-header .site-nav > a.nav-link,
    body .site-header .site-nav .nav-dropdown-trigger {
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        padding: 0 7px !important;
        font-size: 10.5px !important;
        gap: 4px !important;
    }
    body .site-header .site-nav > a.nav-link > i:first-child,
    body .site-header .site-nav .nav-dropdown-trigger > i:first-child {
        font-size: 10px !important;
    }
    body .site-header .site-nav .nav-dropdown-trigger > i.fa-chevron-down {
        font-size: 7.5px !important;
        margin-left: 1px !important;
    }
    body .site-header .theme-toggle {
        margin-left: auto !important;
    }
    body .site-header .nav-cta {
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 11px !important;
        font-size: 10.5px !important;
    }
    body .site-header .site-nav::after {
        content: "" !important;
        display: block !important;
        width: 35px !important;
        flex-shrink: 0 !important;
    }
}

/* 9C. Standard Laptops (1400px to 1599px) */
@media (min-width: 1400px) and (max-width: 1599px) {
    body .site-header .site-container {
        max-width: 1400px !important;
        padding-inline: 16px !important;
    }
    body .site-header .nav-inner {
        gap: 10px !important;
        min-height: 62px !important;
    }
    body .site-header .brand {
        min-width: 195px !important;
    }
    body .site-header .brand-mark {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        flex: 0 0 36px !important;
        aspect-ratio: 1 / 1 !important; /* Persegi 4 */
        border-radius: 8px !important;
    }
    body .site-header .brand-name {
        font-size: 12px !important;
    }
    body .site-header .brand-name small {
        display: block !important;
        font-size: 6.5px !important;
        letter-spacing: 0.04em !important;
    }
    body .site-header .site-nav {
        gap: 4px !important;
    }
    body .site-header .site-nav > a.nav-link,
    body .site-header .site-nav .nav-dropdown-trigger {
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
        padding: 0 8px !important;
        font-size: 11px !important;
        gap: 4px !important;
    }
    body .site-header .site-nav > a.nav-link > i:first-child,
    body .site-header .site-nav .nav-dropdown-trigger > i:first-child {
        font-size: 10.5px !important;
    }
    body .site-header .site-nav .nav-dropdown-trigger > i.fa-chevron-down {
        font-size: 8px !important;
        margin-left: 1.5px !important;
    }
    body .site-header .theme-toggle {
        margin-left: auto !important;
    }
    body .site-header .nav-cta {
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 12px !important;
        font-size: 11px !important;
    }
    body .site-header .site-nav::after {
        content: "" !important;
        display: block !important;
        width: 45px !important;
        flex-shrink: 0 !important;
    }
}

/* 9D. Wide Desktops (>= 1600px) */
@media (min-width: 1600px) {
    body .site-header .site-container {
        max-width: 1540px !important;
        padding-inline: clamp(16px, 2vw, 32px) !important;
    }
    body .site-header .nav-inner {
        gap: 14px !important;
        min-height: 64px !important;
    }
    body .site-header .brand {
        min-width: 215px !important;
    }
    body .site-header .brand-mark {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        flex: 0 0 40px !important;
        aspect-ratio: 1 / 1 !important; /* Persegi 4 */
        border-radius: 9px !important;
    }
    body .site-header .brand-name {
        font-size: 12.5px !important;
    }
    body .site-header .brand-name small {
        display: block !important;
        font-size: 7.2px !important;
    }
    body .site-header .site-nav {
        gap: 5px !important;
    }
    body .site-header .site-nav > a.nav-link,
    body .site-header .site-nav .nav-dropdown-trigger {
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        padding: 0 11px !important;
        font-size: 11.5px !important;
        gap: 5px !important;
    }
    body .site-header .theme-toggle {
        margin-left: auto !important;
    }
    body .site-header .nav-cta {
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 15px !important;
        font-size: 11.5px !important;
    }
    body .site-header .site-nav::after {
        content: "" !important;
        display: block !important;
        width: 55px !important;
        flex-shrink: 0 !important;
    }
}

/* 10. MOBILE & TABLET MODE (< 1200px) — Fullscreen Drawer with Backdrop */
@media (max-width: 1199.98px) {
    body .site-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        overflow: visible !important;
    }
    body.nav-open .site-header {
        z-index: 10050 !important;
    }
    body .site-header .nav-inner {
        min-height: 58px !important;
        height: 58px !important;
        padding-inline: 4px !important;
    }
    body .site-header .brand-mark {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        flex: 0 0 38px !important;
        aspect-ratio: 1 / 1 !important; /* Persegi 4 */
        border-radius: 8px !important;
    }
    body .site-header .brand-name {
        font-size: 12.5px !important;
        font-weight: 800 !important;
    }
    body .site-header .brand-name small {
        font-size: 7px !important;
    }

    /* Hamburger & Close (X) Toggle Button */
    body .site-header .nav-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
        border: 1.5px solid rgba(229, 195, 85, 0.55) !important;
        background: rgba(229, 195, 85, 0.14) !important;
        color: #fde68a !important;
        border-radius: 11px !important;
        cursor: pointer !important;
        font-size: 16px !important;
        transition: all 0.22s ease !important;
    }
    body .site-header .nav-toggle:hover {
        background: rgba(229, 195, 85, 0.25) !important;
        border-color: #fde68a !important;
        color: #ffffff !important;
    }
    body .site-header .nav-toggle.is-open {
        background: rgba(229, 195, 85, 0.3) !important;
        border-color: #fde68a !important;
        color: #ffffff !important;
        box-shadow: 0 0 14px rgba(229, 195, 85, 0.4) !important;
    }

    /* Translucent Backdrop (Layered Behind Site Header at 10040) */
    .site-nav-backdrop {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        background: rgba(0, 0, 0, 0.72) !important;
        backdrop-filter: blur(5px) !important;
        -webkit-backdrop-filter: blur(5px) !important;
        z-index: 10040 !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.25s ease !important;
    }
    body.nav-open .site-nav-backdrop {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Body scroll lock and Hide Floating Action Buttons when drawer is open */
    body.nav-open {
        overflow: hidden !important;
        touch-action: none !important;
    }
    body.nav-open [data-accessibility-tools],
    body.nav-open [data-accessibility-toggle],
    body.nav-open .floating-help,
    body.nav-open .back-to-top,
    body.nav-open .chat-widget,
    body.nav-open .live-resident-count,
    body.nav-open .resident-badge {
        display: none !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Navigation Drawer Container (Inside Site Header at 10051) */
    body .site-header .site-nav {
        position: fixed !important;
        top: 58px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: calc(100dvh - 58px) !important;
        max-height: calc(100dvh - 58px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior: contain !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 14px 14px 64px !important;
        background: linear-gradient(180deg, #04241b 0%, #021a13 100%) !important;
        border-top: 1px solid rgba(229, 195, 85, 0.25) !important;
        box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8) !important;
        z-index: 10051 !important;
        transform: translateY(-8px) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease !important;
        display: flex !important;
    }
    body .site-header .site-nav.is-open {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Menu Items in Drawer */
    body .site-header .site-nav > a.nav-link,
    body .site-header .site-nav .nav-dropdown-trigger {
        width: 100% !important;
        min-height: 44px !important;
        height: 44px !important;
        max-height: 44px !important;
        justify-content: flex-start !important;
        padding: 0 16px !important;
        font-size: 13.5px !important;
        border-radius: 12px !important;
        background: rgba(5, 45, 34, 0.85) !important;
        border: 1px solid rgba(229, 195, 85, 0.25) !important;
        color: #e6f4ed !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
    }
    body .site-header .site-nav .nav-dropdown-trigger > i.fa-chevron-down {
        margin-left: auto !important;
        font-size: 11px !important;
    }
    body .site-header .nav-dropdown {
        width: 100% !important;
        display: block !important;
    }
    body .site-header .nav-dropdown-menu {
        position: static !important;
        width: 100% !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        display: none !important;
        background: rgba(2, 22, 16, 0.8) !important;
        border: 1px solid rgba(229, 195, 85, 0.25) !important;
        border-radius: 12px !important;
        margin-top: 6px !important;
        padding: 6px !important;
        box-shadow: none !important;
        pointer-events: auto !important;
    }
    body .site-header .nav-dropdown.is-open > .nav-dropdown-menu {
        display: block !important;
        animation: drawerExpand 0.22s ease forwards !important;
    }
    body .site-header .nav-dropdown-menu a {
        font-size: 13px !important;
        padding: 10px 14px !important;
        min-height: 40px !important;
    }

    /* Nested Submenu (Administrasi, Layanan Posbankum, Layanan Ambulance) */
    body .site-header .nav-submenu {
        width: 100% !important;
    }
    body .site-header .nav-submenu-trigger {
        min-height: 40px !important;
        font-size: 12.5px !important;
        padding: 8px 12px !important;
    }
    body .site-header .nav-submenu-menu {
        display: none !important;
        padding: 4px 4px 6px 12px !important;
        margin: 4px 0 6px 10px !important;
        border-left: 2px solid rgba(229, 195, 85, 0.45) !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    body .site-header .nav-submenu.is-open > .nav-submenu-menu {
        display: grid !important;
        gap: 4px !important;
        animation: drawerExpand 0.2s ease forwards !important;
    }

    /* Utility Buttons in Mobile Drawer */
    body .site-header .theme-toggle {
        order: 99 !important;
        margin: 18px auto 6px !important;
        align-self: center !important;
        display: inline-flex !important;
    }
    body .site-header .nav-cta {
        order: 100 !important;
        width: min(280px, 100%) !important;
        min-height: 44px !important;
        height: 44px !important;
        margin: 6px auto 16px !important;
        align-self: center !important;
        justify-content: center !important;
        font-size: 13.5px !important;
        font-weight: 850 !important;
        border-radius: 12px !important;
    }
}

body .site-header .nav-cta {
    background: linear-gradient(135deg, #f3d266 0%, #d49f26 100%) !important;
    color: #04281d !important;
    border: 1px solid #fde68a !important;
    border-radius: 999px !important;
    padding: 10px 18px !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    box-shadow: 0 8px 20px rgba(212, 159, 38, 0.32) !important;
}

body .site-header .nav-cta:hover {
    background: linear-gradient(135deg, #fde68a 0%, #e5b53a 100%) !important;
    color: #021c14 !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(229, 195, 85, 0.45) !important;
}

body .site-header .nav-toggle {
    border: 1.5px solid rgba(229, 195, 85, 0.55) !important;
    background: rgba(229, 195, 85, 0.12) !important;
    color: #fde68a !important;
    border-radius: 11px !important;
}

/* ==========================================================================
   INFO TERKINI RUNNING TEXT (.village-ticker) — Smooth Seamless Broadcast Bar
   ========================================================================== */
body .village-ticker {
    position: relative;
    z-index: 35;
    background:
        radial-gradient(circle at 15% 50%, rgba(229, 195, 85, 0.14), transparent 45%),
        linear-gradient(90deg, #021d15 0%, #063d2d 50%, #021d15 100%);
    border-bottom: 1px solid rgba(229, 195, 85, 0.35);
    box-shadow: 0 6px 18px rgba(2, 24, 17, 0.22);
    overflow: hidden;
}

body .village-ticker .ticker-inner {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0;
}

body .village-ticker .ticker-label {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    height: 32px;
    padding: 0 15px;
    margin-right: 14px;
    border-radius: 999px;
    border: 1px solid #fde68a;
    background: linear-gradient(135deg, #f5d76e 0%, #d49f24 100%);
    color: #04281d;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: 0.11em;
    box-shadow: 0 4px 14px rgba(212, 159, 36, 0.38);
}

body .village-ticker .ticker-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #047857;
    box-shadow: 0 0 0 0 rgba(4, 120, 87, 0.7);
    animation: tickerLivePulse 1.8s infinite;
}

@keyframes tickerLivePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(4, 120, 87, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(4, 120, 87, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(4, 120, 87, 0); }
}

body .village-ticker .ticker-window {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 32px, #000 calc(100% - 32px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 32px, #000 calc(100% - 32px), transparent 100%);
}

body .village-ticker .ticker-track {
    display: inline-flex;
    align-items: center;
    width: max-content;
    gap: 0;
    padding-left: 100%;
    white-space: nowrap;
    will-change: transform;
    animation: tickerSeamless var(--ticker-duration, 20s) linear infinite !important;
}

body .village-ticker:hover .ticker-track,
body .village-ticker:focus-within .ticker-track {
    animation-play-state: paused !important;
}

body .village-ticker .ticker-group {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 22px;
    padding-right: 0;
}

body .village-ticker .ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ecf7f1;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.015em;
}

body .village-ticker .ticker-item-icon {
    color: #f4cf5b;
    font-size: 12px;
}

body .village-ticker .ticker-sep {
    color: #e5c355;
    font-size: 9px;
    opacity: 0.85;
}

@keyframes tickerSeamless {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ==========================================================================
   FOOTER ALIM PILL — Luxury Emerald & Gold Monogram Showcase
   ========================================================================== */
body .site-footer .footer-alim-pill {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 9px 14px;
    border: 1.5px solid rgba(229, 195, 85, 0.52);
    border-radius: 999px;
    background:
        radial-gradient(circle at 15% 50%, rgba(229, 195, 85, 0.18), transparent 55%),
        linear-gradient(125deg, rgba(8, 72, 52, 0.92) 0%, rgba(4, 38, 28, 0.95) 100%);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.35),
        0 0 22px rgba(229, 195, 85, 0.14),
        inset 0 1px 0 rgba(255, 241, 184, 0.25);
    backdrop-filter: blur(12px);
}

body .site-footer .footer-alim-pill .alim-badge-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    margin-right: 2px;
    border-right: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #f5d76e 0%, #d49f24 100%);
    color: #04281d;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    box-shadow: 0 4px 12px rgba(212, 159, 36, 0.35);
}

body .site-footer .footer-alim-pill .alim-badge-title i {
    color: #04281d;
}

body .site-footer .footer-alim-pill .alim-letter {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 4px 12px 4px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(229, 195, 85, 0.32);
    color: #f1f8f4;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

body .site-footer .footer-alim-pill .alim-letter:hover {
    transform: translateY(-2px);
    background: rgba(229, 195, 85, 0.18);
    border-color: #f3d266;
}

body .site-footer .footer-alim-pill .alim-letter b {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fde68a 0%, #dfaf31 100%);
    color: #04281d;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

body .site-footer .footer-alim-pill .alim-sep {
    display: none;
}

/* ---------- Floating widgets: visitor counter moves to bottom-left ---------- */
body .visitor-statistics { top: auto; bottom: 18px; left: 16px; right: auto; transform: none; }
body .visitor-statistics-panel { top: auto; bottom: 0; left: 68px; right: auto; transform: translate(-8px, 0); }
body .visitor-statistics.is-open .visitor-statistics-panel { transform: translate(0, 0); }
@media (max-width: 1000px) {
    body .visitor-statistics { left: 12px; right: auto; }
    body .visitor-statistics-panel { left: 64px; right: auto; }
}

/* ---------- Broken image fallback (class added by script) ---------- */
body.home-page .img-fallback { position: relative; background: linear-gradient(135deg, #0a5c44, #063a2c); }
body.home-page .img-fallback > img { visibility: hidden; }
body.home-page .img-fallback::after {
    content: "\f03e";
    font-family: "Font Awesome 7 Free", "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 32px;
    color: rgba(244, 207, 91, .45);
    pointer-events: none;
}

/* ==========================================================================
   HERO EXTRAS
   ========================================================================== */
body.home-page .hero-news-pagination { position: absolute; z-index: 4; left: 24px; bottom: 14px; display: flex; gap: 6px; }
body.home-page .hero-news-pagination .swiper-pagination-bullet { width: 7px; height: 7px; background: rgba(255, 255, 255, .5); opacity: 1; transition: .25s; }
body.home-page .hero-news-pagination .swiper-pagination-bullet-active { width: 22px; border-radius: 6px; background: #f0c64f; }
body.home-page .hero-photo-caption { padding-bottom: 40px; }
body.home-page .hero-photo-badge { max-width: calc(100% - 140px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   QUICK DOCK — Emerald & Gold Floating Command Bar
   ========================================================================== */
body.home-page .portal-quick-dock { margin-top: -70px; z-index: 12; }
body.home-page .quick-dock-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px;
    overflow: visible;
    background: linear-gradient(145deg, var(--hp-surface) 0%, var(--hp-surface-2) 100%);
    border: 1.5px solid var(--hp-gold-line);
    border-radius: 26px;
    box-shadow: 0 30px 60px -20px rgba(4, 50, 35, .32), 0 0 0 1px rgba(229, 195, 85, .18);
}
body.home-page .quick-dock-card {
    flex: 1 1 205px;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid var(--hp-line);
    border-radius: 18px;
    background: var(--hp-surface);
    color: var(--hp-ink);
    border-right: 1px solid var(--hp-line);
}
body.home-page .quick-dock-card:last-child { border-right: 1px solid var(--hp-line); }
body.home-page .quick-dock-card:hover {
    background: linear-gradient(135deg, var(--hp-surface), var(--hp-gold-soft));
    border-color: var(--hp-gold);
    transform: translateY(-4px);
    box-shadow: var(--hp-shadow-hover);
}
body.home-page .quick-dock-card::after { display: none; }
body.home-page .quick-dock-text { min-width: 0; }
body.home-page .quick-dock-text strong { color: var(--hp-ink); }
body.home-page .quick-dock-text small { color: var(--hp-muted); }

/* ==========================================================================
   LAYANAN SURAT & PERSYARATAN
   ========================================================================== */
body.home-page .letter-layout { align-items: stretch; }
body.home-page .letter-panel {
    position: static;
    background: var(--hp-surface);
    border: 1.5px solid var(--hp-gold-line);
    box-shadow: var(--hp-shadow);
}
body.home-page .letter-copy {
    background: var(--hp-surface);
    border: 1px solid var(--hp-line);
    border-top: 3px solid var(--hp-gold);
    border-radius: var(--hp-r);
    padding: clamp(22px, 3vw, 38px);
    box-shadow: var(--hp-shadow);
    justify-content: flex-start;
}
body.home-page .letter-copy h2, body.home-page .letter-panel-heading b { color: var(--hp-ink); }
body.home-page .letter-copy p { color: var(--hp-muted); max-width: none; }
body.home-page .step-card { background: var(--hp-surface-2); border-color: var(--hp-line); }
body.home-page .step-card b { color: var(--hp-ink); }
body.home-page .step-card small { color: var(--hp-muted); }
body.home-page .letter-form > label { display: block; margin: 18px 0 8px; color: var(--hp-ink); font-size: 13px; font-weight: 800; }
body.home-page .letter-nik-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
}
body.home-page .letter-nik-field {
    flex: 1 1 0;
    min-width: 0;
}
body.home-page .nik-check-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px;
    min-height: 50px;
    border-radius: 14px;
    border: 1.5px solid #e5c355;
    background: linear-gradient(135deg, #064e3b 0%, #0a7c59 100%);
    color: #fde68a;
    font-size: 13px;
    font-weight: 850;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 10px 22px -8px rgba(6, 78, 59, .5);
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
body.home-page .nik-check-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #f3d266 0%, #d49f26 100%);
    color: #04281d;
    box-shadow: 0 14px 26px -8px rgba(212, 159, 38, .55);
}
body.home-page .nik-check-btn:disabled {
    opacity: .72;
    cursor: wait;
}
body.home-page .nik-check-feedback {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 12px;
    padding: 13px 15px;
    border-radius: 14px;
    border: 1.5px solid var(--hp-line);
    background: var(--hp-surface-2);
    font-size: 12.5px;
    line-height: 1.5;
}
body.home-page .nik-check-feedback[hidden] {
    display: none !important;
}
body.home-page .nik-check-feedback.is-verified,
body.home-page .nik-check-feedback.is-saved {
    border-color: rgba(16, 185, 129, .45);
    background: linear-gradient(135deg, rgba(16, 185, 129, .12), rgba(223, 175, 49, .1));
    color: var(--hp-ink);
}
body.home-page .nik-check-feedback.is-error {
    border-color: rgba(225, 29, 72, .4);
    background: rgba(244, 63, 94, .09);
    color: #be123c;
}
html[data-theme="dark"] body.home-page .nik-check-feedback.is-error {
    color: #fda4af;
}
body.home-page .nik-feedback-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(16, 185, 129, .18);
    color: #059669;
}
body.home-page .nik-check-feedback.is-error .nik-feedback-icon {
    background: rgba(225, 29, 72, .16);
    color: #e11d48;
}
body.home-page .nik-feedback-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
body.home-page .nik-feedback-body strong {
    font-size: 12.5px;
    font-weight: 850;
}
body.home-page .nik-feedback-body span {
    font-size: 12px;
    color: var(--hp-ink-2);
}
body.home-page .nik-check-feedback.is-error .nik-feedback-body span {
    color: inherit;
}
body.home-page .letter-field { background: var(--hp-surface-2); border-color: var(--hp-line); }
body.home-page .letter-field.is-disabled {
    opacity: .6;
    background: color-mix(in srgb, var(--hp-surface-2) 70%, #94a3b8 12%);
    cursor: not-allowed;
}
body.home-page .letter-field select:disabled {
    cursor: not-allowed;
}
body.home-page .letter-field input, body.home-page .letter-field select { color: var(--hp-ink); }
body.home-page .letter-field > span { flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; background: var(--hp-gold-soft); color: var(--hp-gold-deep); font-size: 11px; font-weight: 800; position: static; }
body.home-page .letter-notice { display: flex; gap: 10px; margin: 18px 0; padding: 13px 15px; border: 1px dashed var(--hp-gold-line); border-radius: var(--hp-r-sm); background: var(--hp-surface-2); color: var(--hp-muted); font-size: 12px; line-height: 1.6; }
body.home-page .letter-submit {
    min-height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #064e3b 0%, #0a7c59 60%, #b8860b 100%);
    border: 1.5px solid #e5c355;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 850;
    transition: .25s;
}
body.home-page .letter-submit:disabled {
    opacity: .52;
    cursor: not-allowed;
    filter: grayscale(.35);
    transform: none !important;
    box-shadow: none !important;
}
body.home-page .service-status { background: var(--hp-brand-soft); border: 1px solid var(--hp-gold-line); color: var(--hp-brand); }
body.home-page .service-status i { background: var(--hp-brand-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--hp-brand-2) 25%, transparent); }

body.home-page .requirements-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
body.home-page .requirement-card { background: var(--hp-surface); border: 1px solid var(--hp-line); border-left: 3px solid var(--hp-gold); transition: .25s; }
body.home-page .requirement-card:hover { transform: translateY(-4px); box-shadow: var(--hp-shadow-hover); border-color: var(--hp-gold); }
body.home-page .requirement-body b { color: var(--hp-ink); }
body.home-page .requirement-body small { color: var(--hp-muted); }
body.home-page .requirement-icon { background: linear-gradient(135deg, var(--hp-brand-soft), var(--hp-gold-soft)); color: var(--hp-brand); }

/* ---------- Sambutan Kepala Kampong ---------- */
body.home-page .welcome-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(223, 175, 49, 0.12), transparent 45%),
        var(--hp-surface) !important;
    border: 1.5px solid var(--hp-gold-line) !important;
    box-shadow: var(--hp-shadow);
    position: relative;
    overflow: hidden;
}
html[data-theme="dark"] body.home-page .welcome-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(240, 198, 79, 0.14), transparent 48%),
        linear-gradient(145deg, #10241c 0%, #0b1914 100%) !important;
    border-color: var(--hp-gold-line) !important;
}
body.home-page .welcome-card::before { content: "\201C"; position: absolute; top: -30px; right: 36px; font: 900 220px/1 Georgia, serif; color: var(--hp-gold); opacity: .12; pointer-events: none; }
body.home-page .welcome-card-layout { position: relative; align-items: center; }
body.home-page .welcome-card h2 { color: var(--hp-ink); }
body.home-page .welcome-card h2 em { color: var(--hp-brand); }
body.home-page .welcome-card p { color: var(--hp-ink-2); }
body.home-page .welcome-greeting { color: var(--hp-brand) !important; font-weight: 800; }
body.home-page .welcome-portrait-frame { width: min(300px, 100%); aspect-ratio: 4 / 5; margin-inline: auto; display: block; border-radius: 24px; overflow: hidden; border: 5px solid var(--hp-surface); box-shadow: 0 0 0 2.5px var(--hp-gold), var(--hp-shadow-hover); background: linear-gradient(160deg, #0a5c44, #063a2c); }
body.home-page .welcome-portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
body.home-page .welcome-portrait-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 72px; color: rgba(255, 255, 255, .35); }
body.home-page .welcome-portrait-caption { background: var(--hp-surface); border: 1px solid var(--hp-gold-line); }
body.home-page .welcome-portrait-caption b { color: var(--hp-ink); }

/* ==========================================================================
   PEMERINTAHAN — FULL-WIDTH SOTK & SLIDER APARATUR KAMPONG
   ========================================================================== */
body.home-page .government-layout {
    display: block !important;
    width: min(1280px, calc(100% - 48px));
    margin-inline: auto;
}
body.home-page .government-layout > .section-title-row {
    width: 100%;
    margin-bottom: clamp(24px, 3.2vw, 36px);
}
body.home-page #struktur-organisasi,
body.home-page .government-organization-card {
    position: relative;
    width: 100%;
    margin: 0 !important;
    padding: clamp(24px, 3.6vw, 42px);
    border-radius: 26px;
    border: 1.5px solid var(--hp-gold-line);
    background:
        radial-gradient(circle at 100% 0%, rgba(223, 175, 49, 0.12), transparent 46%),
        radial-gradient(circle at 0% 100%, rgba(10, 124, 89, 0.08), transparent 46%),
        var(--hp-surface);
    box-shadow: var(--hp-shadow);
    overflow: hidden;
}

body.home-page .government-showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.72fr);
    gap: clamp(22px, 2.8vw, 34px);
    align-items: stretch;
}

/* Shared Pane Header */
body.home-page .gov-pane-head {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}
body.home-page .gov-pane-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1.5px solid rgba(229, 195, 85, .45);
    background: linear-gradient(135deg, #064e3b 0%, #0a7c59 100%);
    color: #fde68a;
    font-size: 18px;
    box-shadow: 0 8px 18px -6px rgba(6, 78, 59, .38);
}
body.home-page .gov-pane-icon.is-gold {
    background: linear-gradient(135deg, #f3d266 0%, #c89116 100%);
    border-color: #fde68a;
    color: #04281d;
    box-shadow: 0 8px 18px -6px rgba(200, 145, 22, .38);
}
body.home-page .gov-pane-title {
    min-width: 0;
}
body.home-page .gov-pane-title small {
    display: block;
    color: var(--hp-gold-deep);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}
body.home-page .gov-pane-title h3 {
    margin: 2px 0 0;
    color: var(--hp-ink);
    font-size: clamp(17px, 1.5vw, 20px);
    font-weight: 850;
    line-height: 1.25;
}

/* Left Column: Struktur Organisasi Pemerintah Kampong */
body.home-page .government-sotk-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(18px, 2.4vw, 26px);
    border-radius: 22px;
    border: 1.5px solid var(--hp-line);
    border-top: 3px solid var(--hp-gold);
    background:
        radial-gradient(rgba(6, 95, 70, .07) 1px, transparent 1px),
        linear-gradient(180deg, var(--hp-surface) 0%, var(--hp-surface-2) 100%);
    background-size: 20px 20px, 100% 100%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
body.home-page .organization-chart-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--hp-line);
    color: var(--hp-ink);
}
body.home-page .organization-chart-meta .meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--hp-brand-soft), var(--hp-gold-soft));
    color: var(--hp-brand);
    border: 1px solid var(--hp-gold-line);
    font-size: 11px;
    font-weight: 850;
}

/* Interactive Tree Hierarchy Inside SOTK Viewport */
body.home-page .organization-chart-viewport {
    flex: 1;
    display: block;
    overflow-x: auto;
    padding: 14px 12px 22px;
    text-align: center;
    scrollbar-width: thin;
    scrollbar-color: var(--hp-brand-2) transparent;
    -webkit-overflow-scrolling: touch;
}
body.home-page .organization-chart {
    display: inline-block;
    min-width: max-content;
    text-align: left;
}
body.home-page .organization-chart ul {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 24px 0 0;
}
body.home-page .organization-chart ul.organization-root-list {
    padding-top: 0;
}
body.home-page .organization-chart ul:not(.organization-root-list)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 24px;
    background: linear-gradient(180deg, #dfaf31, #0a7c59);
    transform: translateX(-50%);
}
body.home-page .organization-chart li {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 4px 0;
}
body.home-page .organization-chart ul.organization-root-list > li {
    padding-top: 0;
}
body.home-page .organization-chart ul:not(.organization-root-list) > li::before,
body.home-page .organization-chart ul:not(.organization-root-list) > li::after {
    content: "";
    position: absolute;
    top: 0;
    right: 50%;
    width: 50%;
    height: 20px;
    border-top: 2px solid rgba(217, 169, 42, .55);
}
body.home-page .organization-chart ul:not(.organization-root-list) > li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid #0a7c59;
}
body.home-page .organization-chart ul:not(.organization-root-list) > li:only-child::before {
    display: none;
}
body.home-page .organization-chart ul:not(.organization-root-list) > li:only-child::after {
    border-top: 0;
}
body.home-page .organization-chart ul:not(.organization-root-list) > li:first-child::before,
body.home-page .organization-chart ul:not(.organization-root-list) > li:last-child::after {
    border-top: 0;
}
body.home-page .organization-chart ul:not(.organization-root-list) > li:last-child::before {
    border-right: 2px solid #0a7c59;
    border-top-right-radius: 10px;
}
body.home-page .organization-chart ul:not(.organization-root-list) > li:first-child:not(:only-child)::after {
    border-top-left-radius: 10px;
}

body.home-page .organization-node {
    width: 194px;
    padding: 12px 13px;
    background: var(--hp-surface);
    border: 1.5px solid var(--hp-line);
    border-top: 3px solid var(--hp-gold);
    border-radius: 18px;
    box-shadow: var(--hp-shadow);
    color: var(--hp-ink);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: .25s;
}
body.home-page .organization-node:hover {
    transform: translateY(-4px);
    box-shadow: var(--hp-shadow-hover);
    border-color: var(--hp-gold);
}
body.home-page .organization-node.is-chief {
    width: 255px;
    background: linear-gradient(135deg, #043225 0%, #086348 58%, #053b2b 100%);
    border: 2px solid #e5c355;
    color: #fff;
    box-shadow: 0 16px 32px -10px rgba(4, 50, 37, .55), 0 0 18px rgba(229, 195, 85, .25);
}
body.home-page .organization-node-top {
    display: flex;
    align-items: center;
    gap: 10px;
}
body.home-page .organization-node-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--hp-brand-soft), var(--hp-gold-soft));
    color: var(--hp-brand);
    border-radius: 11px;
    border: 1px solid var(--hp-gold-line);
    font-size: 15px;
}
body.home-page .organization-node.is-chief .organization-node-icon {
    background: rgba(229, 195, 85, .22);
    border-color: #fde68a;
    color: #fde68a;
}
body.home-page .organization-node-copy {
    min-width: 0;
    flex: 1;
}
body.home-page .organization-node-copy small {
    display: block;
    color: var(--hp-gold-deep);
    font-weight: 850;
    letter-spacing: .09em;
    font-size: 9px;
}
body.home-page .organization-node.is-chief .organization-node-copy small {
    color: #fde68a;
}
body.home-page .organization-node-copy strong {
    display: block;
    margin-top: 2px;
    color: var(--hp-ink);
    font-size: 13.5px;
    font-weight: 850;
    line-height: 1.25;
}
body.home-page .organization-node.is-chief .organization-node-copy strong {
    color: #fff;
    font-size: 14.5px;
}
body.home-page .organization-node-people {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 9px;
    border-top: 1px dashed var(--hp-line);
}
body.home-page .organization-node.is-chief .organization-node-people {
    border-top-color: rgba(229, 195, 85, .35);
}
body.home-page .organization-node-people > span {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
body.home-page .organization-node-people img,
body.home-page .organization-node-avatar {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #e5c355;
    background: var(--hp-brand-soft);
    color: var(--hp-brand);
    display: grid;
    place-items: center;
    font-size: 12px;
}
body.home-page .organization-node-people b {
    font-size: 12px;
    font-weight: 750;
    color: var(--hp-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.home-page .organization-node.is-chief .organization-node-people b {
    color: #fff;
}
body.home-page .organization-vacant {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px dashed var(--hp-line);
    color: var(--hp-muted);
    font-size: 11px;
    font-weight: 700;
}
body.home-page .organization-chart-foot {
    margin-top: auto;
    padding: 11px 15px;
    border-radius: 13px;
    border: 1px solid var(--hp-line);
    background: var(--hp-surface);
    color: var(--hp-muted);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}
body.home-page .organization-chart-foot i {
    color: var(--hp-gold-deep);
    margin-right: 5px;
}
body.home-page .organization-chart-empty {
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 40px 20px;
    color: var(--hp-muted);
    text-align: center;
}

/* Right Column: Slider Aparatur Kampong */
body.home-page .government-apparatus-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(18px, 2.4vw, 26px);
    border-radius: 22px;
    border: 1.5px solid var(--hp-gold-line);
    border-top: 3px solid var(--hp-gold);
    background:
        radial-gradient(circle at 100% 0%, rgba(223, 175, 49, 0.16), transparent 55%),
        linear-gradient(165deg, var(--hp-surface) 0%, var(--hp-surface-2) 100%);
    box-shadow: var(--hp-shadow);
}
body.home-page .apparatus-slider-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--hp-line);
}
body.home-page .apparatus-slider-controls button {
    width: 38px;
    height: 38px;
}
body.home-page .apparatus-swiper {
    width: 100%;
    flex: 0 0 auto;
    overflow: hidden;
    padding: 0;
}
body.home-page .apparatus-slide {
    height: auto;
    display: flex;
}
body.home-page .apparatus-slide-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 1.5px solid var(--hp-gold-line);
    background: var(--hp-surface);
    overflow: hidden;
    box-shadow: 0 12px 28px -10px rgba(6, 65, 46, .18);
    transition: .3s;
}
body.home-page .apparatus-slide.is-chief-slide .apparatus-slide-card {
    border-color: #e5c355;
    box-shadow: 0 16px 34px -10px rgba(6, 78, 59, .28), 0 0 0 1px rgba(229, 195, 85, .35);
}
body.home-page .apparatus-slide-portrait {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3.9;
    max-height: 255px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 24%, rgba(229, 195, 85, .28) 0%, transparent 55%),
        linear-gradient(155deg, #064e3b 0%, #0a7856 52%, #03281d 100%);
    border-bottom: 2px solid #e5c355;
}
body.home-page .apparatus-slide-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform .55s cubic-bezier(.16, 1, .3, 1);
}
body.home-page .apparatus-slide-card:hover .apparatus-slide-portrait img {
    transform: scale(1.04);
}
body.home-page .apparatus-photo-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    color: rgba(253, 230, 138, .45);
    font-size: 68px;
}
body.home-page .apparatus-rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(229, 195, 85, .6);
    background: rgba(3, 34, 24, .82);
    backdrop-filter: blur(6px);
    color: #fde68a;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .06em;
}
body.home-page .apparatus-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(167, 243, 208, .5);
    background: rgba(6, 78, 59, .86);
    backdrop-filter: blur(6px);
    color: #ecfdf5;
    font-size: 10.5px;
    font-weight: 800;
}
body.home-page .apparatus-status-badge i {
    color: #34d399;
}
body.home-page .apparatus-slide-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 16px 14px;
    background:
        radial-gradient(circle at 50% 0%, rgba(223, 175, 49, .1), transparent 70%),
        var(--hp-surface);
}
body.home-page .apparatus-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 999px;
    border: 1px solid var(--hp-gold-line);
    background: linear-gradient(120deg, var(--hp-brand-soft), var(--hp-gold-soft));
    color: var(--hp-brand);
    font-size: 10.5px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}
body.home-page .apparatus-role-pill i {
    color: var(--hp-gold-deep);
}
body.home-page .apparatus-slide-body h4 {
    margin: 2px 0 0;
    color: var(--hp-ink);
    font-size: 17px;
    font-weight: 850;
    line-height: 1.3;
}
body.home-page .apparatus-unit {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hp-muted);
    font-size: 12px;
    font-weight: 600;
}
body.home-page .apparatus-unit i {
    color: var(--hp-brand-2);
}
body.home-page .apparatus-slider-foot {
    margin-top: 8px;
    padding: 10px 14px;
    border-radius: 13px;
    border: 1px solid var(--hp-line);
    background: var(--hp-surface);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
body.home-page .apparatus-counter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--hp-muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
body.home-page .apparatus-counter i {
    color: var(--hp-gold-deep);
}
body.home-page .apparatus-counter b {
    color: var(--hp-brand);
    font-size: 13px;
    font-weight: 850;
}
body.home-page .apparatus-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    width: auto !important;
}
body.home-page .apparatus-pagination .swiper-pagination-bullet {
    margin: 0 !important;
}

/* Interactive Quick Roster Below Slider — Stretches to bottom of .government-apparatus-pane */
body.home-page .apparatus-quick-roster {
    margin-top: 12px;
    flex: 1 1 0;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--hp-line);
    background:
        radial-gradient(circle at 50% 0%, rgba(223, 175, 49, .08), transparent 65%),
        var(--hp-surface);
    scrollbar-width: thin;
    scrollbar-color: var(--hp-gold) transparent;
}
body.home-page .apparatus-roster-item {
    width: 100%;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 13px;
    border: 1px solid var(--hp-line);
    background: var(--hp-surface-2);
    color: var(--hp-ink);
    text-align: left;
    cursor: pointer;
    transition: .22s;
}
body.home-page .apparatus-roster-item:hover {
    border-color: var(--hp-gold);
    background: var(--hp-surface-2);
    transform: translateX(2px);
}
body.home-page .apparatus-roster-item.is-active {
    border-color: #e5c355;
    background: linear-gradient(135deg, #064e3b 0%, #0a7c59 100%);
    color: #fff;
    box-shadow: 0 8px 18px -8px rgba(6, 78, 59, .45);
}
body.home-page .apparatus-roster-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    overflow: hidden;
    border: 1.5px solid #e5c355;
    background: var(--hp-brand-soft);
    color: var(--hp-brand);
    display: grid;
    place-items: center;
    font-size: 13px;
}
body.home-page .apparatus-roster-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
body.home-page .apparatus-roster-copy {
    flex: 1;
    min-width: 0;
}
body.home-page .apparatus-roster-copy b {
    display: block;
    font-size: 12.5px;
    font-weight: 800;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.home-page .apparatus-roster-copy small {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--hp-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.home-page .apparatus-roster-item.is-active .apparatus-roster-copy small {
    color: #fde68a;
}
body.home-page .apparatus-roster-arrow {
    font-size: 11px;
    color: var(--hp-muted);
    transition: .2s;
}
body.home-page .apparatus-roster-item.is-active .apparatus-roster-arrow {
    color: #fde68a;
    transform: translateX(2px);
}

/* ==========================================================================
   KELEMBAGAAN + ORGANIZATIONAL CHART DIAGRAM MODAL
   ========================================================================== */
body.home-page .institution-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
body.home-page .institution-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: var(--hp-surface);
    border: 1px solid var(--hp-line);
    border-top: 3px solid var(--hp-gold);
    border-radius: 22px;
    box-shadow: var(--hp-shadow);
    overflow: hidden;
    transition: .25s;
}
body.home-page .institution-card:hover { transform: translateY(-6px); box-shadow: var(--hp-shadow-hover); border-color: var(--hp-gold); }
body.home-page .institution-public-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 6px; }
body.home-page .institution-public-logo { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--hp-brand-soft); border: 1.5px solid var(--hp-gold-line); color: var(--hp-brand); font-size: 26px; overflow: hidden; flex: 0 0 64px; box-shadow: 0 6px 16px rgba(6, 78, 59, .1); }
body.home-page .institution-public-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
body.home-page .institution-card-status { padding: 5px 11px; border-radius: 999px; background: var(--hp-gold-soft); color: var(--hp-gold-deep); font-size: 10px; font-weight: 850; letter-spacing: .06em; border: 1px solid var(--hp-gold-line); }
body.home-page .institution-card h3 { margin: 10px 20px 8px; color: var(--hp-ink); font-size: 19px; font-weight: 850; }
body.home-page .institution-card > p { margin: 0 20px 14px; color: var(--hp-muted); font-size: 13px; line-height: 1.7; flex: 1; }
body.home-page .institution-public-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 20px 14px; padding-top: 14px; border-top: 1px solid var(--hp-line); color: var(--hp-ink-2); font-size: 12px; font-weight: 600; }
body.home-page .institution-public-meta i { color: var(--hp-gold-deep); margin-right: 4px; }
body.home-page .institution-detail-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 20px 20px;
    padding: 0 18px;
    min-height: 46px;
    border: 1.5px solid var(--hp-gold-line);
    border-radius: 14px;
    background: linear-gradient(135deg, var(--hp-brand-soft), var(--hp-gold-soft));
    color: var(--hp-brand);
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    transition: .25s;
}
body.home-page .institution-detail-button:hover {
    background: linear-gradient(135deg, #064e3b, #0a7c59);
    border-color: #e5c355;
    color: #fff;
    box-shadow: 0 10px 24px -8px rgba(6, 78, 59, .45);
}

/* Modal Dialog for Kelembagaan Organizational Diagram */
.institution-detail-dialog {
    width: min(980px, calc(100vw - 24px));
    max-height: min(90vh, 900px);
    padding: 0;
    border: 0;
    border-radius: 28px;
    background: transparent;
    color: #07261c;
    overflow: visible;
}
.institution-detail-dialog::backdrop {
    background: rgba(2, 22, 16, .74);
    backdrop-filter: blur(8px);
}
.institution-detail-dialog[open] {
    animation: hpDialogIn .28s cubic-bezier(.16, 1, .3, 1);
}
@keyframes hpDialogIn {
    from { opacity: 0; transform: translateY(18px) scale(.97); }
    to { opacity: 1; transform: none; }
}
.institution-detail-shell {
    display: flex;
    flex-direction: column;
    max-height: min(90vh, 900px);
    overflow: hidden;
    border-radius: 28px;
    border: 1.5px solid rgba(229, 195, 85, .45);
    background: #fbfaf5;
    box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .65);
}
html[data-theme="dark"] .institution-detail-shell {
    background: #0d1c16;
    color: #eaf5ef;
}
.institution-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 26px;
    color: #fff;
    border-bottom: 1.5px solid rgba(229, 195, 85, .4);
    background:
        radial-gradient(circle at 90% 0%, rgba(240, 200, 79, .32), transparent 52%),
        linear-gradient(135deg, #032b20 0%, #06553e 55%, #043829 100%);
}
.institution-detail-logo {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    border: 2px solid #e5c355;
    background: radial-gradient(circle at 50% 30%, #0d5e44, #052a1e);
    color: #fde68a;
    font-size: 26px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}
.institution-detail-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.institution-detail-header > div { flex: 1; min-width: 0; }
.institution-detail-header small { display: block; font-size: 10px; font-weight: 850; letter-spacing: .14em; color: #f4cf5b; }
.institution-detail-header h2 { margin: 3px 0 4px; font-size: clamp(18px, 2.4vw, 24px); font-weight: 850; color: #fff; line-height: 1.2; }
.institution-detail-header > div > span { font-size: 12px; color: rgba(255, 255, 255, .84); }
.institution-detail-header > button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(229, 195, 85, .45);
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    color: #fde68a;
    cursor: pointer;
    transition: .2s;
}
.institution-detail-header > button:hover { background: #e5c355; color: #04281d; transform: rotate(90deg); }
.institution-detail-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px 26px 30px;
    display: grid;
    gap: 22px;
    scrollbar-width: thin;
}
.institution-detail-intro {
    padding: 18px 20px;
    border: 1px solid rgba(217, 169, 42, .32);
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f4faf6 100%);
}
html[data-theme="dark"] .institution-detail-intro { background: #10221b; border-color: #234234; }
.institution-detail-kicker { display: inline-flex; align-items: center; gap: 7px; color: #065f46; font-size: 10px; font-weight: 850; letter-spacing: .12em; }
html[data-theme="dark"] .institution-detail-kicker { color: #34d399; }
.institution-detail-intro p { margin: 8px 0 10px; font-size: 13.5px; line-height: 1.75; color: #2d473c; }
html[data-theme="dark"] .institution-detail-intro p { color: #c3d6cb; }
.institution-detail-period { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 999px; background: #fcf3d3; border: 1px solid rgba(217, 169, 42, .4); color: #8a6409; font-size: 12px; font-weight: 800; }

/* Uploaded Organizational Chart Viewer Card */
.institution-struktur-uploaded-card {
    padding: 22px 24px;
    border: 1.5px solid rgba(217, 169, 42, .38);
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #fbfdfc 100%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
}
html[data-theme="dark"] .institution-struktur-uploaded-card {
    background: #10241c;
    border-color: rgba(217, 169, 42, .3);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
}
.institution-struktur-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.institution-struktur-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.institution-struktur-title > span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, #064e3b, #0a7c59);
    color: #fde68a;
    font-size: 18px;
    box-shadow: 0 6px 14px rgba(6, 78, 59, .22);
}
.institution-struktur-title small {
    display: block;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
    color: #9c710c;
}
.institution-struktur-title h3 {
    margin: 2px 0 0;
    font-size: 19px;
    font-weight: 850;
}
.institution-struktur-zoom-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #065f46 0%, #0d966d 100%);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(6, 95, 70, 0.25);
    transition: all 0.2s ease;
}
.institution-struktur-zoom-btn:hover {
    background: linear-gradient(135deg, #097453 0%, #10a87a 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(6, 95, 70, 0.35);
}
.institution-struktur-img-wrap {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 1.5px solid #dce8e0;
    background: #f8faf8;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02);
    text-align: center;
    padding: 14px;
}
html[data-theme="dark"] .institution-struktur-img-wrap {
    background: #091711;
    border-color: #223e30;
}
.institution-struktur-img-wrap img {
    max-width: 100%;
    max-height: 560px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    cursor: zoom-in;
    transition: transform 0.25s ease;
}
.institution-struktur-img-wrap img:hover {
    transform: scale(1.015);
}

.institution-roster-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.institution-roster-heading > span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #064e3b, #0a7c59); color: #fde68a; font-size: 18px; box-shadow: 0 6px 14px rgba(6, 78, 59, .22); }
.institution-roster-heading small { display: block; font-size: 10px; font-weight: 850; letter-spacing: .12em; color: #9c710c; }
.institution-roster-heading h3 { margin: 2px 0 0; font-size: 19px; font-weight: 850; }

/* Organizational Chart Tree Inside Kelembagaan Modal */
.institution-org-diagram {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 26px 20px;
    border-radius: 22px;
    border: 1.5px solid rgba(217, 169, 42, .35);
    background:
        radial-gradient(rgba(6, 95, 70, .08) 1px, transparent 1px),
        linear-gradient(180deg, #f6fbf8 0%, #eef6f1 100%);
    background-size: 20px 20px, 100% 100%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
html[data-theme="dark"] .institution-org-diagram {
    background:
        radial-gradient(rgba(229, 195, 85, .08) 1px, transparent 1px),
        linear-gradient(180deg, #0e1f18 0%, #091510 100%);
    background-size: 20px 20px, 100% 100%;
    border-color: rgba(229, 195, 85, .3);
}

.inst-org-root {
    display: flex;
    justify-content: center;
    width: 100%;
}
.inst-org-root-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 22px;
    max-width: 520px;
    width: 100%;
    border-radius: 20px;
    border: 2px solid #e5c355;
    background: linear-gradient(135deg, #043225 0%, #085e45 60%, #053b2b 100%);
    color: #fff;
    box-shadow: 0 16px 34px -10px rgba(4, 48, 35, .55), 0 0 20px rgba(229, 195, 85, .25);
}
.inst-org-root-logo {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    border: 1.5px solid #fde68a;
    background: rgba(255, 255, 255, .96);
    color: #064e3b;
    font-size: 24px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .28);
}
.inst-org-root-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.inst-org-root-copy { flex: 1; min-width: 0; }
.inst-org-root-copy small { display: block; font-size: 9.5px; font-weight: 850; letter-spacing: .14em; color: #fde68a; }
.inst-org-root-copy strong { display: block; margin: 2px 0 4px; font-size: 16px; font-weight: 850; color: #fff; line-height: 1.25; }
.inst-org-root-copy span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(229, 195, 85, .2); color: #fde68a; font-size: 11px; font-weight: 700; }

.inst-org-connector {
    position: relative;
    width: 2px;
    height: 32px;
    background: linear-gradient(180deg, #e5c355, #0a7c59);
}
.inst-org-connector::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e5c355;
    border: 2px solid #064e3b;
    transform: translateX(-50%);
}

.inst-org-tier {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 6px;
}
.inst-org-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 16px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #064e3b, #0a7c59);
    border: 1.5px solid #e5c355;
    color: #fde68a;
    font-size: 10.5px;
    font-weight: 850;
    letter-spacing: .12em;
    box-shadow: 0 6px 16px rgba(6, 78, 59, .24);
}
.inst-org-tier-grid {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    width: 100%;
}
.inst-org-tier-grid::before {
    content: "";
    position: absolute;
    top: -9px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(217, 169, 42, .65) 20%, rgba(10, 124, 89, .65) 50%, rgba(217, 169, 42, .65) 80%, transparent);
    pointer-events: none;
}
.inst-org-tier.is-tier-top .inst-org-tier-grid::before {
    display: none;
}

.inst-org-node {
    position: relative;
    flex: 0 1 215px;
    min-width: 195px;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 16px 16px;
    border-radius: 20px;
    border: 1.5px solid #d5e6dc;
    background: #ffffff;
    box-shadow: 0 10px 24px -10px rgba(6, 65, 46, .18);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
html[data-theme="dark"] .inst-org-node {
    background: #132820;
    border-color: #244537;
}
.inst-org-node:hover {
    transform: translateY(-4px);
    border-color: #e5c355;
    box-shadow: 0 18px 34px -12px rgba(6, 78, 59, .32), 0 0 0 1px rgba(229, 195, 85, .45);
}
.inst-org-node.is-leader {
    flex: 0 1 250px;
    border: 2px solid #e5c355;
    background:
        radial-gradient(circle at 50% 0%, rgba(229, 195, 85, .18), transparent 60%),
        linear-gradient(180deg, #ffffff 0%, #fcf8ea 100%);
    box-shadow: 0 16px 34px -10px rgba(184, 134, 11, .28);
}
html[data-theme="dark"] .inst-org-node.is-leader {
    background:
        radial-gradient(circle at 50% 0%, rgba(229, 195, 85, .2), transparent 60%),
        linear-gradient(180deg, #173025 0%, #11241c 100%);
}

.inst-org-node-top {
    position: relative;
    margin-bottom: 12px;
}
.inst-org-avatar {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e5c355;
    background: linear-gradient(135deg, #064e3b, #0a7c59);
    color: #fde68a;
    font-size: 26px;
    box-shadow: 0 8px 18px rgba(6, 78, 59, .25);
}
.inst-org-node.is-leader .inst-org-avatar {
    width: 80px;
    height: 80px;
    border-width: 3.5px;
}
.inst-org-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.inst-org-mini-logo {
    position: absolute;
    right: -4px;
    bottom: -2px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid #e5c355;
    background: #ffffff;
    color: #064e3b;
    font-size: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .22);
}
.inst-org-mini-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}
.inst-org-node-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 100%;
}
.inst-org-role-pill {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 999px;
    background: #fcf3d3;
    border: 1px solid rgba(217, 169, 42, .45);
    color: #8a6409;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.inst-org-node.is-leader .inst-org-role-pill {
    background: linear-gradient(135deg, #f3d266, #d49f26);
    color: #04281d;
    border-color: #e5c355;
}
.inst-org-person-name {
    display: block;
    font-size: 14px;
    font-weight: 850;
    color: #07261c;
    line-height: 1.3;
    margin-top: 2px;
}
html[data-theme="dark"] .inst-org-person-name { color: #f0f7f3; }
.inst-org-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #0a7c59;
    margin-top: 2px;
}
html[data-theme="dark"] .inst-org-verified { color: #34d399; }

.institution-roster-empty { display: grid; place-items: center; gap: 8px; padding: 30px; border: 1px dashed #cfe0d6; border-radius: 16px; color: #6b7d73; text-align: center; }

/* ==========================================================================
   APBDes
   ========================================================================== */
body.home-page .budget-section .section-title-row { padding: 0; border: 0; background: transparent; box-shadow: none; }
body.home-page .budget-grid.row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0; }
body.home-page .budget-grid.row > [class*="col-"] { width: auto; max-width: none; padding: 0; min-width: 0; }
body.home-page .budget-card { background: var(--hp-surface); border: 1px solid var(--hp-line); border-radius: 22px; box-shadow: var(--hp-shadow); }
body.home-page .budget-card:hover { border-color: var(--hp-gold); box-shadow: var(--hp-shadow-hover); }
body.home-page .budget-card-header { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
body.home-page .budget-card-kicker { color: rgba(255, 255, 255, .82); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
body.home-page .budget-card-header p { color: rgba(255, 255, 255, .85); }
body.home-page .budget-card-body { display: flex; flex-direction: column; gap: 14px; }
body.home-page .budget-card-total { background: var(--hp-surface-2); border-color: var(--hp-line); margin: 0; }
body.home-page .budget-card-total span { color: var(--hp-muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
body.home-page .budget-realization-label { display: flex; justify-content: space-between; align-items: center; color: var(--hp-ink-2); font-size: 12px; font-weight: 700; }
body.home-page .budget-realization-label b { color: var(--hp-ink); font-size: 14px; }
body.home-page .budget-progress { margin: 0; height: 10px; background: var(--hp-line); }
body.home-page .budget-card-note, body.home-page .budget-data-note { display: flex; gap: 9px; align-items: flex-start; padding: 11px 13px; border-radius: 12px; background: var(--hp-surface-2); color: var(--hp-muted); font-size: 12px; line-height: 1.55; margin: 0; }
body.home-page .budget-card-note i, body.home-page .budget-data-note i { color: var(--hp-gold-deep); margin-top: 2px; }
body.home-page .budget-details { border: 1px solid var(--hp-line); border-radius: 14px; background: var(--hp-surface-2); overflow: hidden; }
body.home-page .budget-details > summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 15px; cursor: pointer; list-style: none; color: var(--hp-brand); font-size: 11px; font-weight: 800; letter-spacing: .06em; }
body.home-page .budget-details > summary::-webkit-details-marker { display: none; }
body.home-page .budget-details[open] > summary i.fa-chevron-down { transform: rotate(180deg); }
body.home-page .budget-details > summary i.fa-chevron-down { transition: transform .25s; }
body.home-page .budget-detail-list { padding: 4px 15px 14px; display: grid; gap: 14px; max-height: 320px; overflow-y: auto; }
body.home-page .budget-detail-group > b { display: block; margin-bottom: 6px; color: var(--hp-ink); font-size: 12px; font-weight: 850; }
body.home-page .budget-detail-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--hp-line); font-size: 12px; color: var(--hp-ink-2); }
body.home-page .budget-detail-row:last-child { border-bottom: 0; }
body.home-page .budget-detail-row strong { color: var(--hp-ink); white-space: nowrap; }

/* ==========================================================================
   IDM — PRESTIGIOUS HERO SHOWCASE CARD (.idm-copy)
   ========================================================================== */
body.home-page .idm-section .idm-layout,
body.home-page .idm-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }

body.home-page .idm-section .idm-copy,
body.home-page .idm-copy {
    position: relative;
    width: 100%;
    max-width: 100%;
    display: block;
    float: none;
    margin: 0;
    padding: 34px 38px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(7, 83, 60, 0.04) 0%, rgba(240, 208, 94, 0.05) 50%, rgba(7, 83, 60, 0.02) 100%), var(--hp-surface);
    border: 1.5px solid var(--hp-gold-line);
    box-shadow: 0 12px 36px rgba(7, 83, 60, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

body.home-page .idm-section .idm-copy::before,
body.home-page .idm-copy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d99a06 0%, #10b981 45%, #059669 80%, #d99a06 100%);
    display: block;
}

body.home-page .idm-section .idm-copy::after,
body.home-page .idm-copy::after {
    content: '';
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(217, 154, 6, 0.12) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
    display: block;
}

:root[data-theme="dark"] body.home-page .idm-section .idm-copy,
html[data-theme="dark"] body.home-page .idm-section .idm-copy {
    background: linear-gradient(135deg, rgba(16, 38, 28, 0.88) 0%, rgba(10, 26, 19, 0.94) 100%);
    border-color: rgba(217, 154, 6, 0.28);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

/* 2-Column Responsive Layout Inside .idm-copy */
.idm-copy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.95fr);
    gap: 36px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .idm-copy-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    body.home-page .idm-section .idm-copy,
    body.home-page .idm-copy {
        padding: 24px 20px;
    }
}

/* Left Column: Typography, Badges, & Meta Chips */
.idm-copy-main-lead {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.idm-badge-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.idm-badge-kemendesa {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(6, 95, 70, 0.28);
}
.idm-badge-kemendesa i {
    color: #fde68a;
    font-size: 11.5px;
}

.idm-badge-status-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--hp-gold-soft);
    border: 1px solid var(--hp-gold-line);
    color: #8a6a10;
    font-size: 11px;
    font-weight: 800;
}
:root[data-theme="dark"] .idm-badge-status-glow,
html[data-theme="dark"] .idm-badge-status-glow {
    color: var(--hp-gold);
}

.idm-pulse-dot {
    width: 7.5px;
    height: 7.5px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.6);
    animation: idmPulseDot 2s infinite;
}
@keyframes idmPulseDot {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

body.home-page .idm-section .idm-copy h2,
body.home-page .idm-copy h2 {
    margin: 4px 0 0;
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.2;
    color: var(--hp-ink);
}
body.home-page .idm-section .idm-copy h2 em,
body.home-page .idm-copy h2 em {
    font-style: normal;
    color: var(--hp-brand);
    background: linear-gradient(120deg, #d97706 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
:root[data-theme="dark"] body.home-page .idm-section .idm-copy h2 em,
html[data-theme="dark"] body.home-page .idm-section .idm-copy h2 em {
    background: linear-gradient(120deg, #fbbf24 0%, #fde68a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.home-page .idm-section .idm-copy p.idm-lead-desc,
body.home-page .idm-copy p.idm-lead-desc {
    margin: 0;
    color: var(--hp-muted);
    font-size: 14.5px;
    line-height: 1.75;
    max-width: 650px;
}
body.home-page .idm-section .idm-copy p.idm-lead-desc strong,
body.home-page .idm-copy p.idm-lead-desc strong {
    color: var(--hp-ink);
    font-weight: 750;
}

/* Metadata Chips Row */
.idm-pills-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.idm-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 12px;
    background: var(--hp-surface-2);
    border: 1px solid var(--hp-line);
    color: var(--hp-ink);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.25s ease;
}
.idm-meta-chip:hover {
    border-color: var(--hp-brand);
    transform: translateY(-1px);
}
.idm-meta-chip i {
    color: var(--hp-brand);
}
.idm-meta-chip.is-gold {
    background: var(--hp-gold-soft);
    border-color: var(--hp-gold-line);
    color: #8a6a10;
}
:root[data-theme="dark"] .idm-meta-chip.is-gold,
html[data-theme="dark"] .idm-meta-chip.is-gold {
    color: var(--hp-gold);
}
.idm-meta-chip.is-gold i {
    color: #d99a06;
}

/* Right Column: 3 Pillars Interactive Showcase */
.idm-copy-pillars-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 22px;
    border-radius: 18px;
    background: var(--hp-surface-2);
    border: 1.5px solid var(--hp-line);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
    position: relative;
}
:root[data-theme="dark"] .idm-copy-pillars-card,
html[data-theme="dark"] .idm-copy-pillars-card {
    background: rgba(14, 33, 24, 0.7);
    border-color: rgba(240, 208, 94, 0.18);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.idm-pillars-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--hp-line);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--hp-muted);
}
.idm-pillars-header span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hp-brand);
}

.idm-pillar-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--hp-surface);
    border: 1px solid var(--hp-line);
    transition: all 0.22s ease;
}
.idm-pillar-item:hover {
    border-color: var(--hp-gold-line);
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
:root[data-theme="dark"] .idm-pillar-item,
html[data-theme="dark"] .idm-pillar-item {
    background: rgba(18, 42, 31, 0.8);
    border-color: rgba(255, 255, 255, 0.07);
}
:root[data-theme="dark"] .idm-pillar-item:hover,
html[data-theme="dark"] .idm-pillar-item:hover {
    background: rgba(22, 52, 39, 0.95);
    border-color: rgba(240, 208, 94, 0.35);
}

.idm-pillar-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 15px;
    flex-shrink: 0;
}
.idm-pillar-item.pillar-iks .idm-pillar-icon {
    background: rgba(56, 189, 248, 0.15);
    color: #0284c7;
    border: 1px solid rgba(56, 189, 248, 0.3);
}
:root[data-theme="dark"] .idm-pillar-item.pillar-iks .idm-pillar-icon,
html[data-theme="dark"] .idm-pillar-item.pillar-iks .idm-pillar-icon {
    background: rgba(14, 165, 233, 0.2);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
}

.idm-pillar-item.pillar-ike .idm-pillar-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
:root[data-theme="dark"] .idm-pillar-item.pillar-ike .idm-pillar-icon,
html[data-theme="dark"] .idm-pillar-item.pillar-ike .idm-pillar-icon {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.4);
}

.idm-pillar-item.pillar-ikl .idm-pillar-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
:root[data-theme="dark"] .idm-pillar-item.pillar-ikl .idm-pillar-icon,
html[data-theme="dark"] .idm-pillar-item.pillar-ikl .idm-pillar-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
}

.idm-pillar-info {
    flex: 1;
    min-width: 0;
}
.idm-pillar-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.idm-pillar-name-row b {
    font-size: 13px;
    font-weight: 800;
    color: var(--hp-ink);
}
.idm-pillar-val {
    font-size: 13px;
    font-weight: 850;
    color: var(--hp-brand);
    font-family: var(--font-mono, monospace);
}
:root[data-theme="dark"] .idm-pillar-val,
html[data-theme="dark"] .idm-pillar-val {
    color: #fde68a;
}

.idm-pillar-info small {
    display: block;
    font-size: 11px;
    color: var(--hp-muted);
    line-height: 1.4;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.home-page .idm-dashboard { position: static; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 22px; align-items: stretch; width: 100%; }
body.home-page .idm-visual-card { position: static; display: flex; flex-direction: column; padding: 24px; border: 1.5px solid var(--hp-gold-line); border-radius: 24px; background: var(--hp-surface); box-shadow: var(--hp-shadow); min-width: 0; }
body.home-page .idm-visual-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
body.home-page .idm-visual-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--hp-brand-soft); color: var(--hp-brand); font-size: 18px; flex: 0 0 44px; }
body.home-page .idm-visual-heading > span:nth-child(2) { flex: 1; min-width: 0; }
body.home-page .idm-visual-heading small { display: block; color: var(--hp-muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
body.home-page .idm-visual-heading b { display: block; color: var(--hp-ink); font-size: 16px; font-weight: 850; }
body.home-page .idm-live-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--hp-brand-soft); color: var(--hp-brand); font-size: 11px; font-weight: 800; }
body.home-page .idm-live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--hp-brand-2); animation: livePulse 2s infinite; }
body.home-page .idm-chart-area { flex: 1; min-height: 200px; }
body.home-page .idm-trend-chart { width: 100%; height: auto; display: block; overflow: visible; }
body.home-page .idm-chart-gridline { stroke: var(--hp-line); stroke-width: 1; stroke-dasharray: 4 5; }
body.home-page .idm-chart-area-fill { fill: url(#idmAreaFill); }
body.home-page .idm-chart-line { fill: none; stroke: #d99a06; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
body.home-page .idm-chart-point circle { fill: var(--hp-surface); stroke: #d99a06; stroke-width: 3.5; transition: r .2s; }
body.home-page .idm-chart-point:hover circle { r: 9; }
body.home-page .idm-chart-year { fill: var(--hp-muted); font-size: 12px; font-weight: 700; }
body.home-page .idm-chart-legend { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hp-line); color: var(--hp-ink-2); font-size: 12px; font-weight: 700; }
body.home-page .idm-chart-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: #d99a06; }
body.home-page .idm-chart-legend small { color: var(--hp-muted); font-weight: 600; }
body.home-page .idm-chart-placeholder { display: grid; place-items: center; gap: 10px; flex: 1; padding: 30px; color: var(--hp-muted); text-align: center; }
body.home-page .idm-latest-card { position: static; display: flex; flex-direction: column; gap: 20px; padding: 26px; border-radius: 24px; border: 1.5px solid rgba(229, 195, 85, .45); color: #fff; min-width: 0; background: radial-gradient(circle at 100% 0%, rgba(240, 200, 79, .28), transparent 50%), linear-gradient(145deg, #043d2d, #087a58); box-shadow: var(--hp-shadow-hover); }
body.home-page .idm-latest-label { display: inline-flex; align-items: center; gap: 8px; color: #f0d66a; font-size: 11px; font-weight: 800; letter-spacing: .1em; }
body.home-page .idm-latest-score-row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
body.home-page .idm-public-score-ring { position: relative; width: 132px; height: 132px; flex: 0 0 132px; display: grid; place-content: center; text-align: center; border-radius: 50%; background: conic-gradient(#f0c64f var(--idm-score, 0%), rgba(255, 255, 255, .18) 0); }
body.home-page .idm-public-score-ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: #05402f; }
body.home-page .idm-public-score-ring > * { position: relative; }
body.home-page .idm-public-score-ring b { font-size: 23px; font-weight: 900; color: #fff; line-height: 1.1; }
body.home-page .idm-public-score-ring small { font-size: 9px; font-weight: 800; letter-spacing: .1em; color: #f0d66a; }
body.home-page .idm-latest-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
body.home-page .idm-latest-meta small { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: rgba(255, 255, 255, .7); }
body.home-page .idm-latest-meta b { font-size: 30px; font-weight: 900; color: #fff; line-height: 1; }
body.home-page .idm-latest-status { display: inline-block; width: fit-content; margin-top: 6px; padding: 6px 14px; border-radius: 999px; background: #f0c64f; color: #3a2a00; font-size: 12px; font-weight: 850; }
body.home-page .idm-public-components { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
body.home-page .idm-public-components > div { padding: 13px 12px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; background: rgba(255, 255, 255, .09); backdrop-filter: blur(6px); }
body.home-page .idm-public-components small { display: block; color: rgba(255, 255, 255, .72); font-size: 10px; font-weight: 700; }
body.home-page .idm-public-components strong { display: block; margin-top: 4px; color: #fff; font-size: 16px; font-weight: 850; }
body.home-page .idm-empty-dashboard { padding: 40px; border: 1px dashed var(--hp-line); border-radius: 22px; text-align: center; color: var(--hp-muted); }

/* ==========================================================================
   STATISTIK KEPENDUDUKAN — Zero Text Overflow Fix (.population-number-copy)
   ========================================================================== */
body.home-page .population-number-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
body.home-page .population-number-card {
    display: grid !important;
    grid-template-columns: 56px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 22px 20px;
    border: 1px solid var(--hp-line);
    border-top: 3px solid var(--hp-gold);
    border-radius: 22px;
    background: var(--hp-surface);
    box-shadow: var(--hp-shadow);
    transition: .25s;
    min-width: 0;
    overflow: hidden;
}
body.home-page .population-number-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hp-shadow-hover);
    border-color: var(--hp-gold);
}
body.home-page .population-number-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-size: 22px;
    background: var(--hp-brand-soft);
    color: var(--hp-brand);
    border: 1px solid rgba(6, 95, 70, .14);
}
body.home-page .population-number-icon.is-gold { background: var(--hp-gold-soft); color: #b8860b; border-color: rgba(217, 169, 42, .3); }
body.home-page .population-number-icon.is-blue { background: rgba(59, 130, 246, .13); color: #2563eb; border-color: rgba(59, 130, 246, .24); }
body.home-page .population-number-icon.is-rose,
body.home-page .population-number-icon.is-pink { background: rgba(244, 63, 94, .12); color: #e11d48; border-color: rgba(244, 63, 94, .24); }

body.home-page .population-number-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    width: 100%;
}
body.home-page .population-number-copy small {
    display: block;
    width: 100%;
    color: var(--hp-muted);
    font-size: 10.5px;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
    overflow-wrap: break-word;
}
body.home-page .population-number-copy b {
    display: block;
    color: var(--hp-ink);
    font-size: clamp(24px, 2.3vw, 32px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
}
body.home-page .population-number-copy span {
    display: block;
    width: 100%;
    color: var(--hp-muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    overflow-wrap: break-word;
}

body.home-page .population-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
body.home-page .population-chart-card { padding: 24px; border: 1px solid var(--hp-line); border-radius: 24px; background: var(--hp-surface); box-shadow: var(--hp-shadow); min-width: 0; }
body.home-page .population-chart-card header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
body.home-page .population-chart-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--hp-brand-soft); color: var(--hp-brand); font-size: 18px; flex: 0 0 44px; }
body.home-page .population-chart-icon.is-gold { background: var(--hp-gold-soft); color: #b8860b; }
body.home-page .population-chart-card h3, body.home-page .population-chart-card b { color: var(--hp-ink); }
body.home-page .population-chart-wrap { position: relative; min-height: 240px; }
body.home-page .population-chart-foot { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--hp-line); color: var(--hp-ink-2); font-size: 12px; font-weight: 600; }
body.home-page .population-chart-foot b { color: var(--hp-ink); margin-left: 4px; }
body.home-page .population-updated { color: var(--hp-muted); font-size: 12px; }
body.home-page .chart-dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: #94a3b8; }
body.home-page .chart-dot.is-green { background: #10b981; }
body.home-page .chart-dot.is-gold { background: #f0c64f; }

/* ==========================================================================
   BERITA + SIDEBAR + "LIHAT LENGKAP" MODAL (#allNewsDialog)
   ========================================================================== */
body.home-page .portal-content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 3vw, 40px); align-items: start; }
body.home-page .articles-column { min-width: 0; }
body.home-page .articles-column > .section-title-row { margin-bottom: 24px; }
body.home-page .article-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
body.home-page .news-total { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--hp-surface); border: 1px solid var(--hp-line); color: var(--hp-ink-2); font-size: 12px; font-weight: 700; }

body.home-page .news-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 999px;
    border: 1.5px solid #e5c355;
    background: linear-gradient(135deg, #064e3b 0%, #0a7c59 100%);
    color: #fde68a;
    font-size: 12.5px;
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 8px 20px -6px rgba(6, 78, 59, .45);
    transition: .25s;
}
body.home-page .news-view-all-btn:hover {
    background: linear-gradient(135deg, #f3d266 0%, #d49f26 100%);
    color: #04281d;
    transform: translateY(-2px);
}

body.home-page .news-section-bottom-bar {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 14px;
    padding: 18px 22px;
    border-radius: 24px;
    border: 1.5px solid var(--hp-gold-line);
    border-left: 4px solid #e5c355;
    background:
        radial-gradient(circle at 100% 0%, rgba(223, 175, 49, .18), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(16, 185, 129, .1), transparent 50%),
        linear-gradient(135deg, var(--hp-surface) 0%, var(--hp-surface-2) 100%);
    box-shadow: var(--hp-shadow);
}
body.home-page .news-bottom-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1 1 280px;
    min-width: 0;
}
body.home-page .news-bottom-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1.5px solid #e5c355;
    background: linear-gradient(135deg, #064e3b 0%, #0a7c59 100%);
    color: #fde68a;
    font-size: 18px;
    box-shadow: 0 10px 20px -8px rgba(6, 78, 59, .45);
}
body.home-page .news-bottom-copy {
    min-width: 0;
}
body.home-page .news-bottom-copy small {
    display: block;
    color: var(--hp-gold-deep);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 2px;
}
body.home-page .news-bottom-copy p,
body.home-page .news-section-bottom-bar > p {
    margin: 0;
    color: var(--hp-ink-2);
    font-size: 13.5px;
    line-height: 1.5;
    font-weight: 600;
}
body.home-page .news-bottom-copy p strong,
body.home-page .news-section-bottom-bar > p strong {
    color: var(--hp-brand);
    font-weight: 850;
}
body.home-page .news-view-all-cta {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px 10px 14px;
    border-radius: 18px;
    border: 1.5px solid #f0ce62;
    background:
        radial-gradient(circle at 18% 0%, rgba(253, 230, 138, .26), transparent 55%),
        linear-gradient(135deg, #032b20 0%, #065f46 52%, #0a7c59 100%);
    color: #fff;
    text-align: left;
    cursor: pointer;
    box-shadow:
        0 16px 34px -10px rgba(4, 48, 35, .58),
        0 0 0 1px rgba(229, 195, 85, .28) inset,
        0 0 22px rgba(229, 195, 85, .22);
    transition: transform .28s cubic-bezier(.16, 1, .3, 1), box-shadow .28s ease, border-color .28s ease, background .28s ease;
}
body.home-page .news-view-all-cta::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 65%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 248, 214, .28), transparent);
    transform: skewX(-22deg);
    transition: left .6s ease;
    pointer-events: none;
}
body.home-page .news-view-all-cta:hover::after {
    left: 140%;
}
body.home-page .news-view-all-cta .cta-leading-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(253, 230, 138, .55);
    background: linear-gradient(145deg, rgba(243, 210, 102, .25), rgba(212, 159, 38, .12));
    color: #fde68a;
    font-size: 17px;
    transition: .25s;
}
body.home-page .news-view-all-cta .cta-label-group {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding-right: 4px;
}
body.home-page .news-view-all-cta .cta-label-group small {
    font-size: 9.5px;
    font-weight: 850;
    letter-spacing: .12em;
    color: #fde68a;
    text-transform: uppercase;
    line-height: 1.2;
}
body.home-page .news-view-all-cta .cta-label-group b {
    font-size: 14px;
    font-weight: 850;
    color: #ffffff;
    letter-spacing: -.01em;
    line-height: 1.25;
}
body.home-page .news-view-all-cta .cta-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 12px;
    border: 1px solid #f7df8b;
    background: linear-gradient(135deg, #f5d772 0%, #d49f26 100%);
    color: #04281d;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
    box-shadow: 0 6px 14px -4px rgba(212, 159, 38, .55);
    transition: .25s;
}
body.home-page .news-view-all-cta .cta-count-pill i {
    transition: transform .25s ease;
}
body.home-page .news-view-all-cta:hover {
    transform: translateY(-3px);
    border-color: #fde68a;
    box-shadow:
        0 22px 42px -12px rgba(4, 48, 35, .68),
        0 0 28px rgba(229, 195, 85, .38);
}
body.home-page .news-view-all-cta:hover .cta-leading-icon {
    background: #fde68a;
    color: #04281d;
    transform: scale(1.05);
}
body.home-page .news-view-all-cta:hover .cta-count-pill {
    background: linear-gradient(135deg, #fde68a 0%, #e5b53a 100%);
}
body.home-page .news-view-all-cta:hover .cta-count-pill i {
    transform: translateX(4px);
}

body.home-page .slider-controls { display: inline-flex; gap: 8px; }
body.home-page .slider-controls button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--hp-gold-line); border-radius: 50%; background: var(--hp-surface); color: var(--hp-ink); cursor: pointer; box-shadow: var(--hp-shadow); transition: .25s; }
body.home-page .slider-controls button:hover { background: linear-gradient(135deg, #064e3b, #0a7c59); border-color: #e5c355; color: #fde68a; transform: translateY(-2px); }
body.home-page .news-swiper, body.home-page .gallery-swiper { padding: 6px 4px 46px; overflow: hidden; }
body.home-page .news-card { height: auto; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--hp-line); border-radius: 22px; background: var(--hp-surface); box-shadow: var(--hp-shadow); transition: .3s; }
body.home-page .news-card:hover { transform: translateY(-5px); box-shadow: var(--hp-shadow-hover); border-color: var(--hp-gold); }
body.home-page .news-image { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #0a5c44, #063a2c); }
body.home-page .news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
body.home-page .news-card:hover .news-image img { transform: scale(1.06); }
body.home-page .news-category { position: absolute; top: 14px; left: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(229, 195, 85, .5); background: rgba(4, 44, 32, .86); backdrop-filter: blur(8px); color: #fde68a; font-size: 10px; font-weight: 800; letter-spacing: .06em; max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.home-page .news-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 20px; }
body.home-page .news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--hp-muted); font-size: 12px; }
body.home-page .news-type { padding: 3px 10px; border-radius: 999px; background: var(--hp-brand-soft); color: var(--hp-brand); font-weight: 800; font-size: 10px; letter-spacing: .05em; }
body.home-page .news-body h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.35; }
body.home-page .news-body h3 a { color: var(--hp-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.home-page .news-body h3 a:hover { color: var(--hp-brand); }
body.home-page .news-excerpt { margin: 0; flex: 1; color: var(--hp-muted); font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
body.home-page .news-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--hp-line); color: var(--hp-muted); font-size: 12px; }
body.home-page .news-more { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--hp-brand-soft); color: var(--hp-brand); text-decoration: none; transition: .25s; }
body.home-page .news-more:hover { background: var(--hp-brand-2); color: #fff; transform: translateX(3px); }
body.home-page .swiper-pagination-bullet { background: var(--hp-brand-2); opacity: .3; }
body.home-page .swiper-pagination-bullet-active { opacity: 1; width: 22px; border-radius: 6px; background: var(--hp-gold); }
body.home-page .news-empty, body.home-page .public-content-empty, body.home-page .profile-empty-state, body.home-page .agenda-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 20px; border: 1px dashed var(--hp-line); border-radius: 20px; background: var(--hp-surface); color: var(--hp-muted); text-align: center; font-size: 14px; }
body.home-page .news-empty i, body.home-page .public-content-empty i, body.home-page .profile-empty-state i, body.home-page .agenda-empty i { font-size: 28px; color: var(--hp-brand-2); opacity: .7; }
body.home-page .portal-sidebar { display: grid; gap: 20px; position: sticky; top: 92px; }
body.home-page .sidebar-widget { padding: 22px; border: 1px solid var(--hp-line); border-top: 3px solid var(--hp-gold); border-radius: 22px; background: var(--hp-surface); box-shadow: var(--hp-shadow); }
body.home-page .widget-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--hp-line); }
body.home-page .widget-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--hp-brand-soft), var(--hp-gold-soft)); color: var(--hp-brand); font-size: 17px; flex: 0 0 42px; }
body.home-page .widget-heading small { display: block; color: var(--hp-muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
body.home-page .widget-heading b, body.home-page .widget-heading h3 { display: block; margin: 0; color: var(--hp-ink); font-size: 16px; font-weight: 850; }
body.home-page .agenda-date { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 10px 15px; border-radius: 14px; background: var(--hp-gold-soft); border: 1px solid var(--hp-gold-line); color: #8a6a10; font-size: 12px; font-weight: 800; width: 100%; }
html[data-theme="dark"] body.home-page .agenda-date { color: var(--hp-gold); }
body.home-page .agenda-list { display: grid; gap: 4px; }
body.home-page .agenda-list > div { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hp-line); }
body.home-page .agenda-dot { margin-top: 6px; }
body.home-page .statistic-links { display: grid; gap: 8px; }
body.home-page .statistic-links a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--hp-line); border-radius: 14px; background: var(--hp-surface-2); color: var(--hp-ink); font-size: 13px; font-weight: 700; text-decoration: none; transition: .25s; }
body.home-page .statistic-links a i:first-child { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--hp-brand-soft); color: var(--hp-brand); font-size: 14px; }
body.home-page .statistic-links a i:last-child { margin-left: auto; color: var(--hp-muted); font-size: 11px; transition: .25s; }
body.home-page .statistic-links a:hover { border-color: var(--hp-gold); background: var(--hp-surface); transform: translateX(4px); }

body.home-page .public-comment-list { display: grid; gap: 10px; height: 320px; max-height: 320px; margin-top: 16px; padding: 0 5px 0 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: var(--hp-brand) var(--hp-surface-2); }
body.home-page .public-comment-list::-webkit-scrollbar { width: 6px; }
body.home-page .public-comment-list::-webkit-scrollbar-track { border-radius: 999px; background: var(--hp-surface-2); }
body.home-page .public-comment-list::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--hp-brand); }
body.home-page .public-comment-item { min-width: 0; padding: 13px; border: 1px solid var(--hp-line); border-radius: 16px; background: var(--hp-surface-2); }
body.home-page .public-comment-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
body.home-page .public-comment-avatar { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--hp-brand) 18%, transparent); border-radius: 12px; background: var(--hp-brand-soft); color: var(--hp-brand); }
body.home-page .public-comment-person-copy { display: grid; gap: 3px; min-width: 0; }
body.home-page .public-comment-person-copy b { overflow: hidden; color: var(--hp-ink); font-size: 12px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
body.home-page .public-comment-person-copy time { color: var(--hp-muted); font-size: 10px; }
body.home-page .public-comment-item > p { display: -webkit-box; overflow: hidden; margin: 10px 0 0; color: var(--hp-ink-soft); font-size: 12px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
body.home-page .public-comment-article { display: flex; align-items: center; gap: 7px; min-width: 0; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--hp-line); color: var(--hp-brand); font-size: 10px; font-weight: 750; text-decoration: none; }
body.home-page .public-comment-article span { overflow: hidden; flex: 1; text-overflow: ellipsis; white-space: nowrap; }
body.home-page .public-comment-article > i:first-child { flex: 0 0 auto; }
body.home-page .public-comment-article > i:last-child { color: var(--hp-muted); font-size: 9px; }
body.home-page .public-comment-empty { display: grid; justify-items: center; gap: 8px; margin-top: 14px; padding: 22px 14px; border: 1px dashed var(--hp-line); border-radius: 16px; color: var(--hp-muted); text-align: center; }
body.home-page .public-comment-empty > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--hp-brand-soft); color: var(--hp-brand); font-size: 17px; }
body.home-page .public-comment-empty b { color: var(--hp-ink); font-size: 12px; }
body.home-page .public-comment-empty small { max-width: 220px; font-size: 10px; line-height: 1.5; }
body.home-page .public-comment-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 13px; color: var(--hp-muted); font-size: 9px; }
body.home-page .public-comment-footer span { display: flex; align-items: center; gap: 5px; }
body.home-page .public-comment-footer span i { color: var(--hp-brand); }
body.home-page .public-comment-footer a { flex: 0 0 auto; color: var(--hp-brand); font-weight: 800; text-decoration: none; }
body.home-page .public-comment-footer a i { margin-left: 3px; }

body.home-page .gallery-video-responsive .youtube-lazy-launch { position: absolute; inset: 0; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; padding: 0; border: 0; background: #06140f; cursor: pointer; }
body.home-page .youtube-lazy-launch > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: transform .4s ease, opacity .3s ease; }
body.home-page .youtube-lazy-launch:hover > img { transform: scale(1.035); opacity: .9; }
body.home-page .youtube-lazy-play { position: relative; z-index: 1; width: 68px; height: 48px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.4); border-radius: 15px; background: #d71920; box-shadow: 0 12px 34px rgba(0,0,0,.35); color: #fff; font-size: 20px; transition: transform .2s ease, background .2s ease; }
body.home-page .youtube-lazy-launch:hover .youtube-lazy-play { transform: scale(1.08); background: #b9151b; }
body.home-page .youtube-lazy-label { position: absolute; z-index: 1; bottom: 18px; left: 50%; padding: 7px 13px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(4,32,23,.84); color: #fff; font-size: 11px; font-weight: 800; white-space: nowrap; }
body.home-page .youtube-lazy-launch:focus-visible { outline: 3px solid var(--hp-gold); outline-offset: -4px; }
body.home-page .statistic-links a:hover i:last-child { color: var(--hp-brand-2); transform: translateX(3px); }

/* All News Catalog Dialog (#allNewsDialog) */
.all-news-dialog {
    width: min(1140px, calc(100vw - 24px));
    max-height: min(90vh, 920px);
    padding: 0;
    border: 0;
    border-radius: 28px;
    background: transparent;
    color: #07261c;
    overflow: visible;
}
.all-news-dialog::backdrop {
    background: rgba(2, 22, 16, .75);
    backdrop-filter: blur(8px);
}
.all-news-dialog[open] {
    animation: hpDialogIn .28s cubic-bezier(.16, 1, .3, 1);
}
.all-news-shell {
    display: flex;
    flex-direction: column;
    max-height: min(90vh, 920px);
    overflow: hidden;
    border-radius: 28px;
    border: 1.5px solid rgba(229, 195, 85, .45);
    background: #fbfaf5;
    box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .65);
}
html[data-theme="dark"] .all-news-shell {
    background: #0d1c16;
    color: #eaf5ef;
}
.all-news-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 26px;
    color: #fff;
    border-bottom: 1.5px solid rgba(229, 195, 85, .4);
    background:
        radial-gradient(circle at 90% 0%, rgba(240, 200, 79, .3), transparent 50%),
        linear-gradient(135deg, #032b20 0%, #06553e 55%, #043829 100%);
}
.all-news-header-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    border: 1.5px solid #e5c355;
    background: rgba(229, 195, 85, .16);
    color: #fde68a;
    font-size: 22px;
}
.all-news-header-copy { flex: 1; min-width: 0; }
.all-news-header-copy small { display: block; font-size: 10px; font-weight: 850; letter-spacing: .14em; color: #f4cf5b; }
.all-news-header-copy h2 { margin: 2px 0 4px; font-size: clamp(18px, 2.4vw, 24px); font-weight: 850; color: #fff; line-height: 1.2; }
.all-news-header-copy span { font-size: 12px; color: rgba(255, 255, 255, .82); }
.all-news-close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(229, 195, 85, .45);
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    color: #fde68a;
    cursor: pointer;
    transition: .2s;
}
.all-news-close:hover { background: #e5c355; color: #04281d; transform: rotate(90deg); }

.all-news-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 26px;
    border-bottom: 1px solid #dce8e0;
    background: #ffffff;
}
html[data-theme="dark"] .all-news-toolbar {
    background: #10221b;
    border-color: #1f3b2e;
}
.all-news-search {
    flex: 1 1 280px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    height: 44px;
    border-radius: 12px;
    border: 1.5px solid #d5e4da;
    background: #f5faf7;
}
html[data-theme="dark"] .all-news-search {
    background: #0b1712;
    border-color: #234234;
}
.all-news-search i { color: #0a7c59; }
.all-news-search input {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: inherit;
    font-size: 13.5px;
    font-weight: 600;
}
.all-news-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.all-news-filter,
.all-news-filter-btn {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #d5e4da;
    background: #f5faf7;
    color: #2d473c;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s;
}
html[data-theme="dark"] .all-news-filter,
html[data-theme="dark"] .all-news-filter-btn {
    background: #0b1712;
    border-color: #234234;
    color: #c5d9ce;
}
.all-news-filter.is-active,
.all-news-filter:hover,
.all-news-filter-btn.is-active,
.all-news-filter-btn:hover {
    background: linear-gradient(135deg, #064e3b, #0a7c59);
    border-color: #e5c355;
    color: #fde68a;
}

.all-news-content,
.all-news-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 26px 30px;
    scrollbar-width: thin;
}
.all-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

.all-news-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 180px;
    color: var(--public-muted, #71877c);
    font-weight: 700;
}

.all-news-loading[hidden] { display: none; }
.all-news-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid #d8e6dd;
    background: #ffffff;
    box-shadow: 0 10px 26px -12px rgba(6, 65, 46, .16);
    transition: .25s;
}
html[data-theme="dark"] .all-news-card {
    background: #12261e;
    border-color: #234234;
}
.all-news-card:hover {
    transform: translateY(-4px);
    border-color: #e5c355;
    box-shadow: 0 18px 36px -12px rgba(6, 78, 59, .28);
}
.all-news-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #0a5c44, #063a2c);
}
.all-news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.all-news-card:hover .all-news-thumb img { transform: scale(1.06); }
.all-news-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(229, 195, 85, .5);
    background: rgba(4, 44, 32, .88);
    color: #fde68a;
    font-size: 10px;
    font-weight: 800;
}
.all-news-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding: 18px;
}
.all-news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11.5px;
    color: #5c7267;
}
.all-news-type {
    padding: 3px 9px;
    border-radius: 999px;
    background: #e6f5ed;
    color: #064e3b;
    font-size: 10px;
    font-weight: 850;
}
.all-news-card-body h3 {
    margin: 0;
    font-size: 16.5px;
    font-weight: 850;
    line-height: 1.35;
}
.all-news-card-body h3 a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.all-news-card-body h3 a:hover { color: #0a7c59; }
.all-news-card-body p {
    margin: 0;
    flex: 1;
    font-size: 12.5px;
    line-height: 1.65;
    color: #5c7267;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
html[data-theme="dark"] .all-news-card-body p { color: #9ab2a4; }
.all-news-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 12px;
    margin-top: 4px;
    border-top: 1px solid #e2ede6;
    font-size: 11.5px;
    color: #5c7267;
}
html[data-theme="dark"] .all-news-card-foot { border-color: #234234; color: #9ab2a4; }
.all-news-read-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #064e3b, #0a7c59);
    color: #fde68a;
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none;
}
.all-news-read-btn:hover { background: #e5c355; color: #04281d; }

/* ==========================================================================
   EKONOMI / UMKM
   ========================================================================== */
body.home-page .economy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
body.home-page .economy-card { display: flex; flex-direction: column; gap: 12px; overflow: hidden; padding: 0 0 22px; border: 1px solid var(--hp-line); border-top: 3px solid var(--hp-gold); border-radius: 22px; background: var(--hp-surface); box-shadow: var(--hp-shadow); transition: .3s; }
body.home-page .economy-card:hover { transform: translateY(-6px); box-shadow: var(--hp-shadow-hover); border-color: var(--hp-gold); }
body.home-page .economy-card > *:not(.economy-photo) { margin-inline: 22px; }
body.home-page .economy-photo { width: 100%; height: 190px; margin: 0 0 6px; object-fit: cover; }
body.home-page .economy-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-top: 22px; border-radius: 14px; background: linear-gradient(135deg, var(--hp-brand-soft), var(--hp-gold-soft)); color: var(--hp-brand); font-size: 20px; }
body.home-page .economy-photo + .economy-icon { margin-top: -34px; border: 3px solid var(--hp-surface); position: relative; }
body.home-page .economy-card h3 { margin-block: 0; color: var(--hp-ink); font-size: 18px; font-weight: 800; }
body.home-page .economy-card p { margin-block: 0; color: var(--hp-muted); font-size: 13px; line-height: 1.7; flex: 1; }

/* ==========================================================================
   GALERI KAMPONG — Interactive Activity Card & Photo Slider Modal
   ========================================================================== */
body.home-page .gallery-title { align-items: flex-end; }
body.home-page .gallery-card {
    position: relative;
    height: auto;
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 22px;
    border: 1.5px solid var(--hp-gold-line);
    background: linear-gradient(135deg, #0a5c44, #063a2c);
    box-shadow: var(--hp-shadow);
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
body.home-page .gallery-card:hover {
    transform: translateY(-6px);
    border-color: #e5c355;
    box-shadow: var(--hp-shadow-hover);
}
body.home-page .gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
body.home-page .gallery-card:hover img { transform: scale(1.08); }

body.home-page .gallery-card-badge {
    position: absolute;
    z-index: 3;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(229, 195, 85, .6);
    background: rgba(3, 34, 25, .85);
    backdrop-filter: blur(8px);
    color: #fde68a;
    font-size: 11px;
    font-weight: 850;
}
body.home-page .gallery-card figcaption,
body.home-page .gallery-card figcaption.gallery-card-overlay {
    position: absolute;
    z-index: 2;
    inset: auto 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 48px 20px 18px;
    color: #fff;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 24, 17, .78) 38%, rgba(2, 22, 16, .95) 100%);
}
body.home-page .gallery-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
body.home-page .gallery-card-cat {
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .1em;
    color: #f4cf5b !important;
}
body.home-page .gallery-card-date {
    font-size: 11px;
    color: rgba(255, 255, 255, .8);
    font-weight: 600;
}
body.home-page .gallery-card figcaption b {
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 850;
    color: #fff;
    line-height: 1.3;
}
body.home-page .gallery-card figcaption p {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .82);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.home-page .gallery-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    margin-top: 4px;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid rgba(229, 195, 85, .55);
    background: rgba(229, 195, 85, .18);
    color: #fde68a !important;
    font-size: 11px;
    font-weight: 800;
    transition: .2s;
}
body.home-page .gallery-card:hover .gallery-card-cta {
    background: #e5c355;
    color: #04281d !important;
}

/* Gallery Detail & Photo Slider Dialog (.gallery-detail-dialog) */
.gallery-detail-dialog {
    width: min(1040px, calc(100vw - 24px));
    max-height: min(90vh, 880px);
    padding: 0;
    border: 0;
    border-radius: 28px;
    background: transparent;
    color: #07261c;
    overflow: visible;
}
.gallery-detail-dialog::backdrop {
    background: rgba(2, 20, 14, .78);
    backdrop-filter: blur(8px);
}
.gallery-detail-dialog[open] {
    animation: hpDialogIn .28s cubic-bezier(.16, 1, .3, 1);
}
.gallery-detail-shell {
    display: flex;
    flex-direction: column;
    max-height: min(90vh, 880px);
    overflow: hidden;
    border-radius: 28px;
    border: 1.5px solid rgba(229, 195, 85, .48);
    background: #fbfaf5;
    box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .7);
}
html[data-theme="dark"] .gallery-detail-shell {
    background: #0d1c16;
    color: #eaf5ef;
}
.gallery-detail-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    color: #fff;
    border-bottom: 1.5px solid rgba(229, 195, 85, .4);
    background:
        radial-gradient(circle at 90% 0%, rgba(240, 200, 79, .3), transparent 50%),
        linear-gradient(135deg, #032b20 0%, #06553e 55%, #043829 100%);
}
.gallery-detail-icon {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    border: 1.5px solid #e5c355;
    background: rgba(229, 195, 85, .16);
    color: #fde68a;
    font-size: 20px;
}
.gallery-detail-title-wrap { flex: 1; min-width: 0; }
.gallery-detail-title-wrap small { display: block; font-size: 10px; font-weight: 850; letter-spacing: .12em; color: #f4cf5b; }
.gallery-detail-title-wrap h2 { margin: 2px 0 0; font-size: clamp(17px, 2.2vw, 22px); font-weight: 850; color: #fff; line-height: 1.25; }
.gallery-detail-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 999px;
    border: 1px solid rgba(229, 195, 85, .5);
    background: rgba(229, 195, 85, .18);
    color: #fde68a;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
.gallery-detail-close {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(229, 195, 85, .45);
    border-radius: 12px;
    background: rgba(255, 255, 255, .1);
    color: #fde68a;
    cursor: pointer;
    transition: .2s;
}
.gallery-detail-close:hover { background: #e5c355; color: #04281d; transform: rotate(90deg); }

.gallery-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
    gap: 22px;
    align-items: start;
}
.gallery-detail-stage {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(229, 195, 85, .45);
    background: #042219;
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .45);
}
.gallery-detail-slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.gallery-detail-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}
.gallery-detail-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.gallery-detail-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-slide-nav {
    position: absolute;
    z-index: 4;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1.5px solid #e5c355;
    background: rgba(3, 36, 26, .82);
    color: #fde68a;
    cursor: pointer;
    transition: .2s;
}
.gallery-slide-nav.is-prev { left: 14px; }
.gallery-slide-nav.is-next { right: 14px; }
.gallery-slide-nav:hover { background: #e5c355; color: #04281d; }
.gallery-slide-counter {
    position: absolute;
    z-index: 4;
    right: 14px;
    bottom: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(229, 195, 85, .5);
    background: rgba(3, 36, 26, .84);
    color: #fde68a;
    font-size: 12px;
    font-weight: 800;
}

.gallery-detail-thumbs {
    grid-column: 1 / 2;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.gallery-thumb-btn {
    width: 76px;
    height: 54px;
    flex: 0 0 76px;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #063829;
    opacity: .6;
    cursor: pointer;
    transition: .2s;
}
.gallery-thumb-btn.is-active,
.gallery-thumb-btn:hover {
    border-color: #e5c355;
    opacity: 1;
    transform: translateY(-2px);
}
.gallery-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

.gallery-detail-summary {
    grid-column: 2 / 3;
    grid-row: 1 / span 2;
    padding: 22px;
    border-radius: 20px;
    border: 1.5px solid rgba(217, 169, 42, .35);
    background: #ffffff;
    box-shadow: 0 12px 28px -12px rgba(6, 65, 46, .15);
}
html[data-theme="dark"] .gallery-detail-summary {
    background: #12261e;
    border-color: #234234;
}
.gallery-summary-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fcf3d3;
    color: #8a6409;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .1em;
}
.gallery-detail-summary h3 {
    margin: 12px 0 10px;
    font-size: 20px;
    font-weight: 850;
    line-height: 1.3;
    color: inherit;
}
.gallery-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #dce8e0;
    font-size: 12px;
    font-weight: 700;
    color: #5c7267;
}
html[data-theme="dark"] .gallery-summary-meta { border-color: #234234; color: #9ab2a4; }
.gallery-summary-meta i { color: #0a7c59; margin-right: 4px; }
.gallery-detail-summary p {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: #2d473c;
}
html[data-theme="dark"] .gallery-detail-summary p { color: #c5d9ce; }

/* ==========================================================================
   PROFIL DESA & REGULASI
   ========================================================================== */
body.home-page .profile-catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
body.home-page .profile-data-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--hp-line); border-top: 3px solid var(--hp-gold); border-radius: 22px; background: var(--hp-surface); box-shadow: var(--hp-shadow); transition: .3s; }
body.home-page .profile-data-card:hover { transform: translateY(-5px); box-shadow: var(--hp-shadow-hover); border-color: var(--hp-gold); }
body.home-page .profile-data-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, var(--hp-brand-soft), var(--hp-gold-soft)); color: var(--hp-brand); font-size: 20px; }
body.home-page .profile-data-card small { color: var(--hp-brand); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
body.home-page .profile-data-card h3 { margin: 0; color: var(--hp-ink); font-size: 19px; font-weight: 850; }
body.home-page .profile-data-card p { margin: 0; color: var(--hp-muted); font-size: 13px; line-height: 1.75; }
body.home-page .profile-public-image-wrap {
    position: relative;
    display: block;
    width: 100%;
    margin: 8px 0 12px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    background: var(--hp-bg-alt);
    border: 1.5px solid var(--hp-line);
    box-shadow: 0 4px 14px rgba(7, 84, 61, 0.06);
    transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .25s ease, border-color .25s ease;
}
body.home-page .profile-public-image-wrap:hover,
body.home-page .profile-public-image-wrap:focus-visible {
    transform: translateY(-3px);
    border-color: var(--hp-gold);
    box-shadow: 0 12px 28px rgba(7, 84, 61, 0.14);
    outline: none;
}
body.home-page .profile-public-image {
    display: block;
    width: 100%;
    height: 180px;
    margin: 0;
    border-radius: 14px;
    object-fit: cover;
    cursor: pointer;
    transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1), filter .25s ease;
}
body.home-page .profile-public-image-wrap .profile-public-image {
    border-radius: 0;
}
body.home-page .profile-public-image-wrap:hover .profile-public-image {
    transform: scale(1.04);
    filter: brightness(0.92);
}
/* Center Fullscreen Icon: Hidden by default, only visible when pointer hovers over the photo */
body.home-page .profile-image-center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.75);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(7, 36, 27, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    font-size: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s cubic-bezier(0.16, 1, 0.3, 1), transform .25s cubic-bezier(0.16, 1, 0.3, 1), background-color .2s ease, border-color .2s ease;
    z-index: 2;
}
body.home-page .profile-public-image-wrap:hover .profile-image-center-icon,
body.home-page .profile-public-image-wrap:focus-visible .profile-image-center-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    background: #0a7c59;
    border-color: #34d399;
}
body.home-page .profile-public-details { margin-top: auto; border-top: 1px solid var(--hp-line); padding-top: 12px; }
body.home-page .profile-public-details > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; color: var(--hp-brand); font-size: 13px; font-weight: 800; }
body.home-page .profile-public-details > summary::-webkit-details-marker { display: none; }
body.home-page .profile-public-details[open] > summary i { transform: rotate(180deg); }
body.home-page .profile-public-details > summary i { transition: transform .25s; }
body.home-page .profile-public-details > div, body.home-page .profile-public-details > p { margin-top: 10px; color: var(--hp-ink-2); font-size: 13px; line-height: 1.8; }

body.home-page .regulation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
body.home-page .regulation-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; overflow: hidden; padding: 24px; border: 1px solid var(--hp-line); border-top: 3px solid var(--hp-gold); border-radius: 22px; background: var(--hp-surface); box-shadow: var(--hp-shadow); transition: .3s; }
body.home-page .regulation-card:hover { transform: translateY(-5px); box-shadow: var(--hp-shadow-hover); border-color: var(--hp-gold); }
body.home-page .regulation-card.has-document { border-top: 3px solid var(--hp-brand-2); }
body.home-page .regulation-pdf-watermark { position: absolute; right: -10px; bottom: -22px; font-size: 130px; color: var(--hp-brand); opacity: .05; pointer-events: none; transform: rotate(-12deg); }
body.home-page .regulation-index { position: absolute; top: 20px; right: 22px; color: var(--hp-gold-deep); opacity: .28; font-size: 34px; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
body.home-page .regulation-icon { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 48px; border-radius: 14px; background: var(--hp-brand-soft); color: var(--hp-brand); font-size: 20px; }
body.home-page .regulation-icon.has-document { background: rgba(225, 29, 72, .1); color: #e11d48; }
body.home-page .regulation-card > small { color: var(--hp-brand); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
body.home-page .regulation-card h3 { margin: 0; color: var(--hp-ink); font-size: 17px; font-weight: 800; line-height: 1.4; }
body.home-page .regulation-card p { margin: 0; flex: 1; color: var(--hp-muted); font-size: 13px; line-height: 1.7; }
body.home-page .regulation-meta { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--hp-surface-2); border: 1px solid var(--hp-line); color: var(--hp-ink-2); font-size: 11px; font-weight: 700; }
body.home-page .regulation-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 4px; padding: 12px 16px; border-radius: 14px; background: linear-gradient(135deg, #065f46, #0a8a63); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; text-align: center; white-space: normal; box-shadow: 0 10px 20px -10px rgba(6, 95, 70, .6); transition: .25s; }
body.home-page .regulation-link:hover { transform: translateY(-2px); box-shadow: 0 16px 26px -10px rgba(6, 95, 70, .7); color: #fff; }
body.home-page .regulation-link.is-unavailable { background: var(--hp-surface-2); border: 1px dashed var(--hp-line); color: var(--hp-muted); box-shadow: none; cursor: not-allowed; transform: none; font-weight: 700; }

/* ==========================================================================
   CONTACT CTA
   ========================================================================== */
body.home-page .contact-section { background: var(--hp-bg); padding-block: clamp(40px, 6vw, 80px); }
body.home-page .contact-box-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* IDM: remove legacy card framing from site.css */
body.home-page .idm-section .idm-layout,
body.home-page .idm-section > .site-container {
    background: transparent; border: 0; box-shadow: none; padding: 0; border-radius: 0; min-height: 0; overflow: visible;
}
body.home-page .idm-section .idm-layout::before,
body.home-page .idm-section .idm-layout::after { display: none; }

/* IDM component tiles: label above value */
body.home-page .idm-latest-card .idm-public-components > div {
    display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; min-width: 0;
}
body.home-page .idm-latest-card .idm-public-components small { display: block; white-space: normal; line-height: 1.3; }
body.home-page .idm-latest-card .idm-public-components strong { display: block; font-size: 18px; line-height: 1.1; }

/* ==========================================================================
   WHATSAPP-STYLE PUBLIC CHAT WINDOW (.wa-chat-window)
   ========================================================================== */
.wa-chat-window {
    position: fixed;
    right: 20px;
    bottom: 84px;
    z-index: 9950;
    width: min(392px, calc(100vw - 28px));
    height: min(610px, calc(100dvh - 150px));
    max-height: min(610px, calc(100dvh - 150px));
    border-radius: 20px;
    border: 1px solid rgba(7, 94, 84, .28);
    background: #efeae2;
    box-shadow: 0 26px 68px rgba(2, 26, 18, .42), 0 0 0 1px rgba(229, 195, 85, .25);
    overflow: hidden;
}
.wa-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: linear-gradient(125deg, #075e54 0%, #008069 100%);
    border-bottom: 1.5px solid rgba(229, 195, 85, .38);
    color: #ffffff;
}
.wa-header-avatar {
    position: relative;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 50%;
    border: 2px solid #e5c355;
    background: #ffffff;
    padding: 3px;
    display: grid;
    place-items: center;
    overflow: visible;
}
.wa-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}
.wa-online-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid #075e54;
    background: #25d366;
}
.wa-header-copy h2 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
}
.wa-verified-badge {
    color: #25d366;
    font-size: 12.5px;
}
.wa-header-copy > span {
    margin-top: 2px;
    font-size: 11px;
    color: rgba(255, 255, 255, .86);
}
.wa-chat-close {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .14);
    color: #fff;
}
.wa-chat-close:hover {
    background: rgba(255, 255, 255, .26);
    transform: none;
}
.wa-chat-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background-color: #efeae2;
    background-image:
        radial-gradient(rgba(17, 27, 33, .055) 1px, transparent 1px),
        radial-gradient(rgba(7, 94, 84, .045) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}
.wa-profile-form {
    margin: 14px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(7, 94, 84, .16);
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(17, 27, 33, .08);
}
.wa-profile-banner {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    margin-bottom: 6px;
    border-radius: 12px;
    background: #e7fce3;
    border: 1px solid #bfe9b7;
}
.wa-profile-banner-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 20px;
}
.wa-profile-banner small {
    display: block;
    font-size: 9.5px;
    font-weight: 850;
    letter-spacing: .08em;
    color: #075e54;
}
.wa-profile-banner .chat-form-heading {
    margin: 2px 0 0;
    font-size: 11.5px;
    font-weight: 600;
    color: #1f2c34;
    line-height: 1.35;
}
.wa-start-button {
    background: linear-gradient(135deg, #00a884 0%, #075e54 100%);
    border-radius: 999px;
    font-size: 12.5px;
    height: 44px;
}
.wa-chat-conversation {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.wa-chat-transcript {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wa-encryption-chip {
    align-self: center;
    max-width: 92%;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 7px 12px;
    margin-bottom: 4px;
    border-radius: 10px;
    background: #ffeecd;
    color: #54656f;
    font-size: 10.5px;
    line-height: 1.4;
    text-align: center;
    box-shadow: 0 1px 2px rgba(11, 20, 26, .12);
}
.wa-encryption-chip i {
    margin-top: 2px;
    color: #54656f;
    font-size: 10px;
}
.wa-visitor-chip {
    align-self: center;
    margin: 0 0 6px !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, .86) !important;
    border: 1px solid rgba(7, 94, 84, .18) !important;
    color: #075e54 !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    box-shadow: 0 1px 2px rgba(11, 20, 26, .08);
}
.wa-message-row {
    display: flex;
    width: 100%;
    margin: 0 !important;
}
.wa-message-row.is-incoming {
    justify-content: flex-start;
}
.wa-message-row.is-outgoing {
    justify-content: flex-end;
}
.wa-bubble {
    position: relative;
    max-width: 82%;
    min-width: 96px;
    padding: 7px 10px 6px;
    border-radius: 10px;
    box-shadow: 0 1px 1.5px rgba(11, 20, 26, .15);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.wa-message-row.is-incoming .wa-bubble {
    background: #ffffff;
    color: #111b21;
    border-top-left-radius: 2px;
}
.wa-message-row.is-outgoing .wa-bubble {
    background: #d9fdd3;
    color: #111b21;
    border-top-right-radius: 2px;
}
.wa-bubble-sender {
    font-size: 11px;
    font-weight: 800;
    color: #008069;
    margin-bottom: 1px;
}
.wa-bubble-attachment {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    margin-bottom: 3px;
    border-radius: 7px;
    background: rgba(0, 0, 0, .06);
    font-size: 11px;
    font-weight: 700;
    word-break: break-all;
}
.wa-bubble-text {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: inherit !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    white-space: pre-wrap;
    word-break: break-word;
}
.wa-bubble-meta {
    align-self: flex-end;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 1px;
    font-size: 10px;
    color: #667781;
    line-height: 1;
}
.wa-read-check {
    color: #53bdeb;
    font-size: 11px;
}
.wa-attachment-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    background: #e9edef;
    border-top: 1px solid #d1d7db;
    font-size: 11.5px;
    color: #111b21;
}
.wa-attachment-bar[hidden] { display: none !important; }
.wa-attachment-bar span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}
.wa-attachment-bar button {
    border: 0;
    background: transparent;
    color: #54656f;
    cursor: pointer;
}
.wa-status-toast {
    margin: 0 12px 6px;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(17, 27, 33, .86);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}
.wa-status-toast[hidden] { display: none !important; }
.wa-compose-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 0;
    border-top: 1px solid rgba(134, 150, 160, .22);
    border-radius: 0;
    background: #f0f2f5;
}
.wa-compose-pill {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 8px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(134, 150, 160, .22);
}
.wa-attach-btn {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #54656f !important;
}
.wa-attach-btn:hover {
    background: rgba(84, 101, 111, .1) !important;
    color: #008069 !important;
}
.wa-compose-pill textarea {
    flex: 1;
    min-height: 34px !important;
    max-height: 88px !important;
    padding: 7px 4px !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #111b21 !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    resize: none !important;
}
.wa-send-btn {
    width: 42px !important;
    height: 42px !important;
    flex: 0 0 42px !important;
    border-radius: 50% !important;
    background: #00a884 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(0, 168, 132, .35);
    transition: transform .18s ease, background .18s ease;
}
.wa-send-btn:hover:not(:disabled) {
    background: #008069 !important;
    transform: scale(1.04);
}
.wa-send-btn:disabled {
    opacity: .6;
    cursor: wait;
}

/* Dark Mode for WhatsApp Chat Window */
:root[data-theme="dark"] .wa-chat-window {
    background: #0b141a;
    border-color: #222e35;
}
:root[data-theme="dark"] .wa-chat-header {
    background: linear-gradient(125deg, #202c33 0%, #005c4b 100%);
}
:root[data-theme="dark"] .wa-chat-body {
    background-color: #0b141a;
    background-image:
        radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        radial-gradient(rgba(0, 168, 132, .04) 1px, transparent 1px);
}
:root[data-theme="dark"] .wa-profile-form {
    background: #202c33;
    border-color: #2a3942;
}
:root[data-theme="dark"] .wa-profile-banner {
    background: rgba(0, 168, 132, .15);
    border-color: rgba(0, 168, 132, .3);
}
:root[data-theme="dark"] .wa-profile-banner small { color: #00a884; }
:root[data-theme="dark"] .wa-profile-banner .chat-form-heading { color: #e9edef; }
:root[data-theme="dark"] .wa-encryption-chip {
    background: #182229;
    color: #ffd279;
}
:root[data-theme="dark"] .wa-encryption-chip i { color: #ffd279; }
:root[data-theme="dark"] .wa-visitor-chip {
    background: #182229 !important;
    border-color: #2a3942 !important;
    color: #00a884 !important;
}
:root[data-theme="dark"] .wa-message-row.is-incoming .wa-bubble {
    background: #202c33;
    color: #e9edef;
}
:root[data-theme="dark"] .wa-message-row.is-outgoing .wa-bubble {
    background: #005c4b;
    color: #e9edef;
}
:root[data-theme="dark"] .wa-bubble-sender { color: #00a884; }
:root[data-theme="dark"] .wa-bubble-meta { color: rgba(233, 237, 239, .65); }
:root[data-theme="dark"] .wa-compose-form {
    background: #202c33;
    border-color: #2a3942;
}
:root[data-theme="dark"] .wa-compose-pill {
    background: #2a3942;
    border-color: #3b4a54;
}
:root[data-theme="dark"] .wa-compose-pill textarea {
    color: #e9edef !important;
}
:root[data-theme="dark"] .wa-attach-btn {
    color: #8696a0 !important;
}

/* ==========================================================================
   UNIFIED FLOATING ACTION DOCK: LAYANAN CHAT, DIFABEL TOOLS, & BACK TO TOP
   + PRO STABILO HIGHLIGHTER (body.a11y-stabilo)
   ========================================================================== */
body.a11y-high-contrast {
    filter: none !important;
}
body.a11y-high-contrast > :is(.topbar, .site-header, .village-ticker, main, .site-footer) {
    filter: contrast(1.4) saturate(0.65);
}

/* --- Feature Stabilo pada Difabel Tools (body.a11y-stabilo) --- */
/* Reset generic site.css rule so card/logo/button links don't collapse */
body.a11y-stabilo a:not([class*="btn"]):not([class*="button"]):not(.nav-link) {
    background: unset !important;
    color: unset !important;
    padding: unset;
    border-radius: unset;
    text-decoration: none !important;
}

/* 1. Stabilo Marker on Inline Links, Key Headings, & Important Data Values */
body.a11y-stabilo :is(
    main p a,
    .news-body h3 a,
    .all-news-card-body h3 a,
    .statistic-links a,
    .nav-dropdown-menu a,
    .footer-nav-list li a,
    .hero-photo-caption a,
    .section-title-row h2 em,
    .welcome-card h2 em,
    .idm-copy h2 em,
    .letter-copy h2 em,
    .quick-dock-text strong,
    .population-number-copy b,
    .budget-card-total b
) {
    background: linear-gradient(120deg, #fff176 0%, #ffee58 100%) !important;
    color: #041f15 !important;
    -webkit-text-fill-color: #041f15 !important;
    padding: 2px 7px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 0 #f9a825, 0 4px 12px rgba(251, 192, 45, 0.28) !important;
    text-decoration: underline !important;
    text-decoration-color: #064e3b !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 3px !important;
}

/* 2. Stabilo High-Visibility Ring on Interactive Cards, Chips, & Action Buttons */
body.a11y-stabilo :is(
    .quick-dock-card,
    .chip-item,
    .outline-link,
    .institution-detail-button,
    .regulation-link:not(.is-unavailable),
    .news-view-all-cta,
    .news-view-all-btn,
    .nik-check-btn,
    .letter-submit:not(:disabled),
    .site-header .nav-link,
    .site-header .nav-cta,
    .news-more,
    .apparatus-roster-item
) {
    outline: 2.5px solid #ffee58 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(255, 238, 88, 0.26) !important;
}

/* 3. Interactive Reading Stabilo Marker on Hover for Paragraphs & Card Titles */
body.a11y-stabilo :is(
    main p,
    main li,
    .profile-data-card h3,
    .institution-card h3,
    .regulation-card h3,
    .economy-card h3,
    .apparatus-slide-body h4
) {
    transition: background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
    border-radius: 6px;
}

body.a11y-stabilo :is(
    main p,
    main li,
    .profile-data-card h3,
    .institution-card h3,
    .regulation-card h3,
    .economy-card h3,
    .apparatus-slide-body h4
):hover {
    background: rgba(255, 238, 88, 0.45) !important;
    color: #041f15 !important;
    box-shadow: -6px 0 0 rgba(255, 238, 88, 0.45), 6px 0 0 rgba(255, 238, 88, 0.45) !important;
}

html[data-theme="dark"] body.a11y-stabilo :is(
    main p,
    main li,
    .profile-data-card h3,
    .institution-card h3,
    .regulation-card h3,
    .economy-card h3,
    .apparatus-slide-body h4
):hover {
    background: rgba(253, 224, 71, 0.25) !important;
    color: #fef9c3 !important;
    box-shadow: -6px 0 0 rgba(253, 224, 71, 0.25), 6px 0 0 rgba(253, 224, 71, 0.25) !important;
}

body .floating-help,
body .accessibility-tools {
    position: fixed !important;
    right: 20px !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body .back-to-top {
    position: fixed !important;
    right: 20px !important;
    bottom: 134px !important;
    z-index: 9901 !important;
}

body .back-to-top:not(.visible) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(10px) scale(0.9) !important;
}

body .back-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

body .floating-help {
    bottom: 18px !important;
    z-index: 9900 !important;
}

body .accessibility-tools {
    bottom: 76px !important;
    z-index: 9902 !important;
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}
body .accessibility-tools.is-open {
    z-index: 9960 !important;
}
body .accessibility-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    z-index: 9965;
}

body .accessibility-toggle,
body .floating-help,
body .back-to-top {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    width: 48px !important;
    min-width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    border: 1px solid #d5b443 !important;
    border-radius: 25px !important;
    background: linear-gradient(135deg, #07533c, #0a7a56) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(7, 83, 60, 0.45) !important;
    cursor: pointer !important;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.2s ease, width 0.25s ease, padding 0.25s ease !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

body .accessibility-toggle > i,
body .floating-help > i,
body .back-to-top > i {
    width: auto !important;
    height: auto !important;
    flex: 0 0 auto !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: #e5c355 !important;
    transition: color 0.2s ease !important;
}

body .accessibility-toggle > span,
body .floating-help > span,
body .back-to-top > span {
    display: inline-block !important;
    max-width: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em !important;
    color: #ffffff !important;
    margin-left: 0 !important;
    transform: none !important;
    white-space: nowrap !important;
    transition: max-width 0.3s ease, opacity 0.25s ease, margin-left 0.25s ease !important;
}

body .accessibility-toggle:hover,
body .accessibility-toggle:focus-visible,
body .floating-help:hover,
body .floating-help:focus-visible,
body .back-to-top.visible:hover,
body .back-to-top.visible:focus-visible {
    width: auto !important;
    min-width: 48px !important;
    padding: 0 16px 0 13px !important;
    background: linear-gradient(135deg, #0a7a56, #0d9e6e) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(7, 83, 60, 0.55) !important;
    outline: none !important;
}

body .accessibility-toggle:hover > span,
body .accessibility-toggle:focus-visible > span,
body .floating-help:hover > span,
body .floating-help:focus-visible > span,
body .back-to-top.visible:hover > span,
body .back-to-top.visible:focus-visible > span {
    max-width: 120px !important;
    opacity: 1 !important;
    margin-left: 7px !important;
}

body .accessibility-toggle:focus-visible,
body .floating-help:focus-visible,
body .back-to-top.visible:focus-visible {
    outline: 3px solid #f0cf58 !important;
    outline-offset: 3px !important;
}

.wa-chat-window {
    z-index: 9970 !important;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE BREAKPOINTS (Desktop, Tablet, & Mobile)
   ========================================================================== */
@media (max-width: 1200px) {
    body.home-page .requirements-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.home-page .population-number-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.home-page .portal-content-grid { grid-template-columns: minmax(0, 1fr) 310px; }
}

}

/* Searchable POSBANKUM category control and NIK verification state. */
body.home-page .posbankum-select-field { position: relative; z-index: 3; overflow: visible; }
body.home-page .posbankum-select2 { position: relative; flex: 1 1 auto; min-width: 0; height: 100%; display: flex; align-items: center; }
body.home-page .posbankum-select2-input { width: 100%; height: 100%; min-width: 0; padding: 0 8px; border: 0; outline: 0; color: var(--hp-ink); background: transparent; font: 14px var(--font-body); }
body.home-page .posbankum-select2-input::placeholder { color: #87998d; }
body.home-page .posbankum-select2-toggle { flex: 0 0 30px; width: 30px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; color: #648072; background: transparent; cursor: pointer; }
body.home-page .posbankum-select2-toggle:hover:not(:disabled) { color: #087652; background: #eaf4ed; }
body.home-page .posbankum-select2-toggle:disabled { opacity: .5; cursor: not-allowed; }
body.home-page .posbankum-select2-options { position: absolute; z-index: 90; top: calc(100% + 8px); right: -4px; left: -36px; max-height: 250px; overflow: auto; padding: 7px; border: 1px solid var(--hp-line); border-radius: 13px; background: var(--hp-surface); box-shadow: 0 18px 42px rgba(10, 42, 27, .2); }
body.home-page .posbankum-select2-option { width: 100%; display: block; padding: 10px 12px; border: 0; border-radius: 8px; color: var(--hp-ink); background: transparent; font: 600 13px var(--font-body); text-align: left; cursor: pointer; }
body.home-page .posbankum-select2-option:hover,
body.home-page .posbankum-select2-option[aria-selected="true"] { color: #087653; background: #eaf5ee; }
body.home-page .posbankum-select2-empty { padding: 12px; color: var(--hp-muted); font-size: 12px; }
body.home-page .letter-field.is-disabled { opacity: .7; }
body.home-page #posbankumNama[readonly] { cursor: default; }
body.home-page .letter-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
body.home-page .letter-submit:disabled:hover { transform: none; box-shadow: none; }
@media (max-width: 600px) {
    body.home-page .posbankum-select2-options { left: -35px; max-height: 210px; }
    body.home-page .posbankum-select2-input { font-size: 13px; }
}

:root[data-theme="dark"] body.home-page .posbankum-select2-options { border-color: #385044; background: #17251d; box-shadow: 0 18px 42px #0006; }
:root[data-theme="dark"] body.home-page .posbankum-select2-option { color: #e1ece4; }
:root[data-theme="dark"] body.home-page .posbankum-select2-option:hover,
:root[data-theme="dark"] body.home-page .posbankum-select2-option[aria-selected="true"] { color: #f0d36b; background: #22382b; }
:root[data-theme="dark"] body.home-page .posbankum-select2-toggle { color: #b7c9bd; }
:root[data-theme="dark"] body.home-page .posbankum-select2-toggle:hover:not(:disabled) { color: #f0d36b; background: #22382b; }

@media (max-width: 991px) {
    body.home-page .site-container,
    body.home-page .government-layout { width: min(100% - 32px, 1280px); }
    body.home-page .government-showcase-grid,
    body.home-page .idm-dashboard,
    body.home-page .population-chart-grid,
    body.home-page .budget-grid.row,
    body.home-page .governance-detail-grid { grid-template-columns: minmax(0, 1fr); }
    body.home-page .apparatus-quick-roster { flex: 0 0 auto; max-height: 310px; }
    body.home-page .portal-content-grid { grid-template-columns: minmax(0, 1fr); }
    body.home-page .portal-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.home-page .letter-layout { grid-template-columns: minmax(0, 1fr); }
    body.home-page .portal-quick-dock { margin-top: -48px; }
    .gallery-detail-body { grid-template-columns: minmax(0, 1fr); }
    .gallery-detail-thumbs,
    .gallery-detail-summary { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 640px) {
    body.home-page .site-container,
    body.home-page .government-layout { width: min(100% - 24px, 1280px); }
    body.home-page #struktur-organisasi,
    body.home-page .government-organization-card { padding: 18px 14px; border-radius: 22px; }
    body.home-page .government-sotk-pane,
    body.home-page .government-apparatus-pane { padding: 16px 14px; border-radius: 18px; }
    body.home-page .organization-chart-meta,
    body.home-page .apparatus-slider-head { flex-direction: column; align-items: flex-start; gap: 10px; }
    body.home-page .apparatus-slider-controls { align-self: flex-end; }
    body .site-header .brand-mark,
    :root[data-theme="dark"] body .site-header .brand-mark {
        width: 38px !important;
        height: 38px !important;
        flex: 0 0 38px !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 8px !important;
        padding: 3px !important;
    }
    body .site-header .brand-name { font-size: 12.5px; }
    body .site-header .brand-name small { font-size: 7.5px; }
    body.home-page .requirements-grid,
    body.home-page .portal-sidebar,
    body.home-page .population-number-cards { grid-template-columns: minmax(0, 1fr); }
    body.home-page .quick-dock-grid { padding: 12px; gap: 10px; border-radius: 22px; }
    body.home-page .quick-dock-card { flex: 1 1 100%; padding: 14px; }
    body.home-page .idm-latest-score-row { justify-content: center; text-align: center; }
    body.home-page .idm-latest-meta { align-items: center; }
    body.home-page .idm-public-components { grid-template-columns: minmax(0, 1fr); }
    body.home-page .population-number-card {
        grid-template-columns: 52px minmax(0, 1fr) !important;
        padding: 18px 16px;
    }
    body.home-page .population-chart-card,
    body.home-page .idm-visual-card,
    body.home-page .idm-latest-card { padding: 18px; }
    body.home-page .section-title-row { align-items: flex-start; flex-direction: column; }
    body.home-page .news-section-bottom-bar { padding: 16px; border-radius: 20px; }
    body.home-page .news-view-all-cta { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 10px; }
    body.home-page .news-view-all-cta .cta-label-group { flex: 1 1 160px; }
    body.home-page .news-view-all-cta .cta-count-pill { width: 100%; justify-content: center; }
    body.home-page .news-body { padding: 16px; }
    body.home-page .letter-nik-row { flex-direction: column; }
    body.home-page .nik-check-btn { width: 100%; }
    .wa-chat-window { right: 12px; bottom: 72px; width: calc(100vw - 24px); height: min(580px, calc(100dvh - 140px)); }
    body .floating-help,
    body .accessibility-tools,
    body .back-to-top { right: 14px !important; }
    body .floating-help { bottom: 16px !important; }
    body .accessibility-tools { bottom: 70px !important; }
    body .back-to-top,
    body .back-to-top.visible { bottom: 124px !important; }
    body .accessibility-toggle,
    body .floating-help,
    body .back-to-top {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
    }
    body .accessibility-toggle > span,
    body .floating-help > span,
    body .back-to-top > span {
        max-width: 0 !important;
        opacity: 0 !important;
        margin-left: 0 !important;
    }
    body.home-page .welcome-card::before { font-size: 140px; right: 16px; }

    /* Footer ALIM pill on mobile */
    body .site-footer .footer-alim-pill {
        border-radius: 20px;
        padding: 12px;
        justify-content: center;
    }
    body .site-footer .footer-alim-pill .alim-badge-title {
        width: 100%;
        justify-content: center;
        margin-right: 0;
        margin-bottom: 4px;
    }

    /* Modals on mobile */
    .institution-detail-header,
    .all-news-header,
    .gallery-detail-header { padding: 16px; gap: 12px; }
    .institution-detail-content,
    .all-news-content,
    .all-news-body,
    .gallery-detail-body { padding: 16px; }
    .all-news-toolbar { padding: 12px 16px; }
    .gallery-detail-count-pill { display: none; }
    .institution-org-diagram { padding: 18px 12px; }
    .inst-org-root-card { flex-direction: column; text-align: center; padding: 16px; }
    .inst-org-node,
    .inst-org-node.is-leader { flex: 1 1 100%; max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    body.home-page *:not(.site-splash):not(.site-splash *),
    .institution-detail-dialog,
    .all-news-dialog,
    .gallery-detail-dialog {
        animation: none !important;
        transition-duration: .01ms !important;
    }
}


/* ==========================================================================
   HERO UNIFIED SEARCH RESULTS DROPDOWN & TARGET HIGHLIGHT
   ========================================================================== */
.hero-command-search {
    position: relative;
    z-index: 40;
}
.command-search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 60;
    max-height: min(440px, 60vh);
    overflow-y: auto;
    padding: 10px;
    border-radius: 18px;
    border: 1.5px solid rgba(229, 195, 85, 0.55);
    background: #ffffff;
    box-shadow: 0 24px 56px -12px rgba(2, 28, 20, 0.42);
    text-align: left;
}
html[data-theme="dark"] .command-search-results {
    background: #0d1d17;
    border-color: rgba(229, 195, 85, 0.42);
    color: #eaf5ef;
}
.command-search-group + .command-search-group {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e6f0ea;
}
html[data-theme="dark"] .command-search-group + .command-search-group {
    border-color: #1f392e;
}
.command-search-group-title {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px 7px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #097c5b;
}
html[data-theme="dark"] .command-search-group-title {
    color: #f4cf5b;
}
.command-search-item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #123428;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.16s ease, transform 0.16s ease;
}
html[data-theme="dark"] .command-search-item {
    color: #e4f2ea;
}
.command-search-item:hover,
.command-search-item:focus-visible {
    background: #edf8f2;
    outline: none;
}
html[data-theme="dark"] .command-search-item:hover,
html[data-theme="dark"] .command-search-item:focus-visible {
    background: #173026;
}
.command-search-item-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #e6f5ed;
    color: #077555;
    font-size: 13px;
}
.command-search-item.is-article .command-search-item-icon {
    background: #fdf5da;
    color: #9e750c;
}
html[data-theme="dark"] .command-search-item-icon {
    background: #1b382c;
    color: #6ce3b8;
}
html[data-theme="dark"] .command-search-item.is-article .command-search-item-icon {
    background: rgba(229, 195, 85, 0.16);
    color: #f4cf5b;
}
.command-search-item-body {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 2px;
}
.command-search-item-body strong {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.command-search-item-body small {
    font-size: 11px;
    color: #5f796d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
html[data-theme="dark"] .command-search-item-body small {
    color: #99b7a8;
}
.command-search-item-badge {
    flex: 0 0 auto;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e8f6ee;
    color: #077253;
    font-size: 10px;
    font-weight: 800;
}
.command-search-item.is-article .command-search-item-badge {
    background: #077253;
    color: #ffffff;
}
.command-search-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    font-size: 12px;
    color: #5f796d;
}
.search-target-highlight {
    outline: 3px solid #e5c355 !important;
    outline-offset: 4px;
    box-shadow: 0 0 0 8px rgba(229, 195, 85, 0.25) !important;
    transition: box-shadow 0.3s ease;
}


/* ==========================================================================
   GALLERY SWIPER INITIAL LOAD CONTAINMENT & BUDGET YEAR SELECTOR
   ========================================================================== */
body.home-page .gallery-swiper {
    overflow: hidden !important;
    width: 100%;
    padding: 4px 0 20px;
}
body.home-page .gallery-swiper:not(.swiper-initialized) .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
@media (max-width: 899px) {
    body.home-page .gallery-swiper:not(.swiper-initialized) .swiper-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }
}
@media (max-width: 559px) {
    body.home-page .gallery-swiper:not(.swiper-initialized) .swiper-wrapper {
        grid-template-columns: 1fr;
    }
}
body.home-page .gallery-card {
    position: relative;
    width: 100%;
    height: 310px !important;
    min-height: 290px;
    max-height: 340px;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    box-sizing: border-box;
}
body.home-page .gallery-card > img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
}

/* Public APBDes Year Selector */
body.home-page .budget-title-row {
    align-items: flex-end;
    gap: 18px;
}
body.home-page .budget-year-selector {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px 8px 16px;
    border-radius: 14px;
    border: 1.5px solid rgba(229, 195, 85, 0.55);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(6, 56, 41, 0.08);
}
html[data-theme="dark"] body.home-page .budget-year-selector {
    background: #10241c;
    border-color: rgba(229, 195, 85, 0.4);
}
body.home-page .budget-year-selector label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #097656;
    white-space: nowrap;
}
html[data-theme="dark"] body.home-page .budget-year-selector label {
    color: #f4cf5b;
}
body.home-page .budget-year-selector select {
    min-width: 138px;
    height: 38px;
    padding: 0 14px;
    border: 1px solid #d5e6dc;
    border-radius: 10px;
    background: #f5fbf7;
    color: #073b2d;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
    outline: none;
}
html[data-theme="dark"] body.home-page .budget-year-selector select {
    background: #173126;
    border-color: #294c3c;
    color: #eaf5ef;
}
body.home-page .budget-year-selector select:focus {
    border-color: #097c5b;
    box-shadow: 0 0 0 3px rgba(9, 124, 91, 0.16);
}

/* ==========================================================================
   PETA SATELIT WILAYAH (#wilayah)
   ========================================================================== */
.village-map-section {
    position: relative;
}
.village-map-card {
    background: linear-gradient(165deg, rgba(6, 48, 35, 0.95), rgba(3, 27, 20, 0.98));
    border: 1px solid rgba(229, 195, 85, 0.35);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.map-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(2, 24, 17, 0.8);
    border-bottom: 1px solid rgba(229, 195, 85, 0.25);
}
.map-head-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.map-head-info b {
    display: block;
    font-size: 15px;
    color: #ffffff;
    margin-bottom: 2px;
}
.map-head-info small {
    display: block;
    font-size: 12px;
    color: #a7f3d0;
}
.map-head-badges {
    display: flex;
    align-items: center;
    gap: 10px;
}
.meta-tag.is-link {
    color: #fde68a;
    text-decoration: none;
    border-color: rgba(229, 195, 85, 0.4);
    transition: all 0.2s;
}
.meta-tag.is-link:hover {
    background: rgba(229, 195, 85, 0.2);
    color: #ffffff;
}
.map-card-body iframe {
    display: block;
    width: 100%;
}

/* ==========================================================================
   LAYANAN SIAGA AMBULANCE DESA (#layanan-ambulance, #syarat-ambulance)
   ========================================================================== */
.ambulance-section {
    position: relative;
}

/* Background class="ambulance-grid" dibuat persis sama seperti class="site-container" */
.ambulance-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    background: #ffffff !important;
    border: 1px solid #e2ebe3 !important;
    border-radius: 18px !important;
    padding: clamp(20px, 3vw, 36px) !important;
    box-shadow: 0 16px 42px rgba(21, 58, 37, 0.05) !important;
    position: relative !important;
    z-index: 1 !important;
    box-sizing: border-box !important;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

:root[data-theme="dark"] .ambulance-grid,
html[data-theme="dark"] .ambulance-grid {
    background: #17251d !important;
    border-color: #2b4035 !important;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.2) !important;
}

@media (max-width: 900px) {
    .ambulance-grid {
        grid-template-columns: 1fr;
        padding: clamp(16px, 3.5vw, 24px) !important;
        gap: 20px;
    }
}

/* Kartu Dalam: Formulir Action & Persyaratan */
.ambulance-action-card,
.ambulance-requirements-card {
    background: #f8faf8 !important;
    border: 1px solid #dce8df !important;
    border-radius: 16px !important;
    padding: clamp(18px, 2.5vw, 26px) !important;
    box-shadow: 0 4px 16px rgba(10, 80, 55, 0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease !important;
}

:root[data-theme="dark"] .ambulance-action-card,
:root[data-theme="dark"] .ambulance-requirements-card,
html[data-theme="dark"] .ambulance-action-card,
html[data-theme="dark"] .ambulance-requirements-card {
    background: #11241c !important;
    border-color: #234033 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

.ambulance-card-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}
.ambulance-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(229, 195, 85, 0.15)) !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    color: #ef4444 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
:root[data-theme="dark"] .ambulance-icon-badge {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(229, 195, 85, 0.2)) !important;
    border-color: #ef4444 !important;
    color: #f87171 !important;
}
.service-chip.is-emergency {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #dc2626 !important;
    margin-bottom: 6px;
    font-size: 11px !important;
    font-weight: 800 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 3px 10px !important;
    border-radius: 999px !important;
}
:root[data-theme="dark"] .service-chip.is-emergency {
    background: rgba(239, 68, 68, 0.18) !important;
    border-color: #ef4444 !important;
    color: #fca5a5 !important;
}
.ambulance-action-card h3,
.ambulance-requirements-card h3 {
    font-size: 19px !important;
    font-weight: 850 !important;
    color: #073828 !important;
    margin: 0 0 6px !important;
}
:root[data-theme="dark"] .ambulance-action-card h3,
:root[data-theme="dark"] .ambulance-requirements-card h3 {
    color: #f1f5f9 !important;
}
.ambulance-action-card p,
.ambulance-requirements-card p {
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #4b6354 !important;
    margin: 0 !important;
}
:root[data-theme="dark"] .ambulance-action-card p,
:root[data-theme="dark"] .ambulance-requirements-card p {
    color: #94a3b8 !important;
}
.ambulance-hotline-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #ecfdf5 0%, #e0f2fe 100%) !important;
    border: 1px solid #a7f3d0 !important;
    border-radius: 14px;
    margin-bottom: 22px;
}
:root[data-theme="dark"] .ambulance-hotline-box {
    background: rgba(2, 24, 17, 0.85) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
}
.hotline-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #059669 !important;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    animation: hotlinePulse 1.8s infinite;
}
:root[data-theme="dark"] .hotline-icon {
    background: rgba(239, 68, 68, 0.25) !important;
    color: #f87171 !important;
}
.hotline-info small {
    display: block;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #047857 !important;
}
:root[data-theme="dark"] .hotline-info small {
    color: #fca5a5 !important;
}
.hotline-info b {
    display: block;
    font-size: 17px;
    color: #064e3b !important;
    font-weight: 850 !important;
}
:root[data-theme="dark"] .hotline-info b {
    color: #ffffff !important;
}
.btn-ambulance-wa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-ambulance-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
    color: #ffffff !important;
}
.ambulance-active-team { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:-8px 0 20px; }
.ambulance-contact-card { display:flex; align-items:center; gap:11px; min-width:0; padding:11px; border:1px solid #d9e9df; border-radius:15px; background:linear-gradient(145deg,#fff,#f4faf6); box-shadow:0 7px 20px rgba(13,73,48,.05); }
.ambulance-contact-photo { display:grid; width:48px; height:54px; flex:0 0 48px; overflow:hidden; place-items:center; border:1px solid #d4e8da; border-radius:12px; background:#eaf6ee; color:#09815b; font-size:18px; }
.ambulance-contact-photo img { width:100%; height:100%; object-fit:cover; }
.ambulance-contact-copy { display:grid; min-width:0; gap:4px; flex:1; }
.ambulance-contact-copy span { color:#09815b; font-size:9px; font-weight:850; letter-spacing:.025em; }
.ambulance-contact-copy span i { margin-right:3px; }
.ambulance-contact-copy strong { overflow:hidden; color:#153e30; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.ambulance-contact-copy small { overflow:hidden; color:#71877b; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.ambulance-contact-copy small i { color:#b38a20; }
.ambulance-contact-call { display:grid; width:34px; height:34px; flex:0 0 34px; place-items:center; border:1px solid #cce8d8; border-radius:11px; background:#e9f7ef; color:#128451; font-size:17px; text-decoration:none; transition:transform .18s,background .18s; }
.ambulance-contact-call:hover { transform:translateY(-2px); background:#d8f1e2; color:#087348; }
.ambulance-contact-empty { grid-column:1/-1; padding:12px 14px; border:1px dashed #d3e3d8; border-radius:12px; background:#f7faf7; color:#738579; font-size:11px; }
:root[data-theme="dark"] .ambulance-contact-card,html[data-theme="dark"] .ambulance-contact-card { border-color:#2b493b; background:linear-gradient(145deg,#172c22,#12251c); }
:root[data-theme="dark"] .ambulance-contact-copy strong,html[data-theme="dark"] .ambulance-contact-copy strong { color:#e5f1e9; }
:root[data-theme="dark"] .ambulance-contact-copy small,html[data-theme="dark"] .ambulance-contact-copy small { color:#9cb2a4; }
:root[data-theme="dark"] .ambulance-contact-empty,html[data-theme="dark"] .ambulance-contact-empty { border-color:#355443; background:#14271e; color:#a9bcaf; }
@media(max-width:620px) { .ambulance-active-team { grid-template-columns:1fr; margin-top:-6px; } }
.ambulance-quick-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 580px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}
.ambulance-quick-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.amb-autocomplete-wrap { position:relative; width:100%; }
.amb-resident-results { position:absolute; z-index:30; top:calc(100% + 6px); left:0; right:0; display:none; max-height:230px; overflow:auto; padding:5px; border:1px solid #d5e6da; border-radius:12px; background:#fff; box-shadow:0 14px 32px rgba(8,45,31,.18); }
.amb-resident-results.is-open { display:grid; gap:3px; }
.amb-resident-option { display:grid; width:100%; gap:3px; padding:10px 11px; border:0; border-radius:8px; background:#fff; color:#194c38; text-align:left; cursor:pointer; }
.amb-resident-option:hover,.amb-resident-option:focus-visible { outline:0; background:#edf8f1; }
.amb-resident-option strong { font-size:12px; }
.amb-resident-option small { color:#758a7d; font-size:10px; }
.amb-resident-empty { padding:10px; color:#758a7d; font-size:11px; }
.amb-request-feedback { display:none; padding:10px 12px; border:1px solid #cbe6d4; border-radius:10px; background:#f0faf3; color:#176b4d; font-size:12px; line-height:1.5; }
.amb-request-feedback.is-visible { display:block; }
.amb-request-feedback.is-error { border-color:#f1ceca; background:#fff5f3; color:#a53d34; }
:root[data-theme="dark"] .amb-resident-results,:root[data-theme="dark"] .amb-resident-option { border-color:#315342; background:#10291e; color:#e2f3e8; }
:root[data-theme="dark"] .amb-resident-option:hover,:root[data-theme="dark"] .amb-resident-option:focus-visible { background:#193b2c; }
:root[data-theme="dark"] .amb-resident-option small,:root[data-theme="dark"] .amb-resident-empty { color:#a3b8aa; }
.ambulance-quick-form label {
    font-size: 12px !important;
    font-weight: 750 !important;
    color: #1e3a2b !important;
    display: flex;
    align-items: center;
    gap: 6px;
}
:root[data-theme="dark"] .ambulance-quick-form label {
    color: #fde68a !important;
}
.amb-input {
    width: 100%;
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}
:root[data-theme="dark"] .amb-input {
    background: rgba(4, 38, 28, 0.85) !important;
    border: 1px solid rgba(229, 195, 85, 0.35) !important;
    color: #ffffff !important;
}
.amb-input:focus {
    border-color: #059669 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18) !important;
}
:root[data-theme="dark"] .amb-input:focus {
    border-color: #fde68a !important;
    background: rgba(6, 56, 41, 0.95) !important;
    box-shadow: 0 0 0 3px rgba(229, 195, 85, 0.2) !important;
}
.btn-submit-ambulance {
    margin-top: 6px;
    width: 100%;
    height: 44px;
    background: linear-gradient(135deg, #059669, #047857) !important;
    color: #ffffff !important;
    font-weight: 850;
    font-size: 13.5px;
    border: 1px solid #059669 !important;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28) !important;
    transition: transform 0.2s, box-shadow 0.2s;
}
:root[data-theme="dark"] .btn-submit-ambulance {
    background: linear-gradient(135deg, #f3d266, #d49f26) !important;
    color: #04281d !important;
    border: 1px solid #fde68a !important;
    box-shadow: 0 4px 14px rgba(229, 195, 85, 0.3) !important;
}
.btn-submit-ambulance:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4) !important;
}
.ambulance-rule-list {
    list-style: none;
    padding: 0;
    margin: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ambulance-rule-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff !important;
    border: 1px solid #e2ebe3 !important;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 2px 6px rgba(10, 80, 55, 0.03);
}
:root[data-theme="dark"] .ambulance-rule-list li {
    background: #0d1e17 !important;
    border-color: #1e382c !important;
    box-shadow: none;
}
.rule-icon {
    color: #059669 !important;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}
:root[data-theme="dark"] .rule-icon {
    color: #fde68a !important;
}
.rule-text b {
    display: block;
    font-size: 13px !important;
    color: #073828 !important;
    margin-bottom: 2px;
}
:root[data-theme="dark"] .rule-text b {
    color: #ffffff !important;
}
.rule-text p {
    font-size: 12px !important;
    line-height: 1.55 !important;
    color: #4b6354 !important;
    margin: 0;
}
:root[data-theme="dark"] .rule-text p {
    color: #94a3b8 !important;
}
.ambulance-notice-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #fef3c7 !important;
    border: 1px solid #fde68a !important;
    border-radius: 12px;
    color: #92400e !important;
    font-size: 12px;
    line-height: 1.55;
}
:root[data-theme="dark"] .ambulance-notice-box {
    background: rgba(229, 195, 85, 0.1) !important;
    border-color: rgba(229, 195, 85, 0.3) !important;
    color: #fde68a !important;
}
.ambulance-notice-box i {
    font-size: 16px;
    color: #d97706 !important;
    margin-top: 2px;
    flex-shrink: 0;
}
:root[data-theme="dark"] .ambulance-notice-box i {
    color: #e5c355 !important;
}
.ambulance-notice-box b {
    display: block;
    color: #78350f !important;
    margin-bottom: 2px;
}
:root[data-theme="dark"] .ambulance-notice-box b {
    color: #ffffff !important;
}
.ambulance-notice-box p {
    margin: 0;
    color: #92400e !important;
}
:root[data-theme="dark"] .ambulance-notice-box p {
    color: #cbd5e1 !important;
}

/* Kepengurusan lembaga: clear, compact, and responsive table */
.institution-roster-detail { min-width: 0; }
.institution-roster-heading { justify-content: flex-start; }
.institution-roster-heading > div { flex: 1; min-width: 0; }
.institution-roster-table-wrap { overflow-x: auto; border: 1px solid #dcebe2; border-radius: 18px; background: linear-gradient(145deg, #fff 0%, #f5faf7 100%); box-shadow: 0 14px 32px rgba(9, 61, 43, .07); scrollbar-width: thin; scrollbar-color: rgba(8, 130, 91, .35) transparent; }
.institution-roster-table { width: 100%; min-width: 500px; border-collapse: separate; border-spacing: 0; color: #173c2e; }
.institution-roster-table thead { background: linear-gradient(110deg, #07583f, #0a8a61); color: #fff; }
.institution-roster-table th { padding: 15px 18px; text-align: left; font-size: 11px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.institution-roster-table th:first-child { width: 76px; text-align: center; }
.institution-roster-table tbody tr { transition: background .2s ease, transform .2s ease; }
.institution-roster-table tbody tr:nth-child(even) { background: rgba(231, 244, 236, .58); }
.institution-roster-table tbody tr:hover { background: #eaf7ef; }
.institution-roster-table td { padding: 12px 18px; border-top: 1px solid #e3eee7; vertical-align: middle; font-size: 13px; }
.institution-roster-number { display: inline-grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #087954; background: #e4f4eb; font-size: 11px; font-weight: 900; box-shadow: inset 0 0 0 1px #cde8d8; }
.institution-roster-table td:first-child { text-align: center; }
.institution-roster-person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.institution-roster-avatar { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; overflow: hidden; border: 1px solid #d8ebdf; border-radius: 13px; color: #0a805a; background: linear-gradient(145deg, #e9f6ee, #dcefe4); font-size: 15px; }
.institution-roster-avatar img { width: 100%; height: 100%; object-fit: cover; }
.institution-roster-name { overflow-wrap: anywhere; color: #183d2e; font-weight: 800; line-height: 1.45; }
.institution-roster-role { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 7px 11px; border: 1px solid #dcece3; border-radius: 999px; background: #fff; color: #315e49; font-size: 11px; font-weight: 750; line-height: 1.35; }
.institution-roster-role i { color: #0b9468; }
html[data-theme="dark"] .institution-roster-table-wrap { border-color: #294639; background: linear-gradient(145deg, #11271e, #0d1d16); box-shadow: 0 14px 32px rgba(0,0,0,.22); }
html[data-theme="dark"] .institution-roster-table { color: #e3f1e8; }
html[data-theme="dark"] .institution-roster-table thead { background: linear-gradient(110deg, #073d2d, #087853); }
html[data-theme="dark"] .institution-roster-table tbody tr:nth-child(even) { background: rgba(28, 61, 45, .36); }
html[data-theme="dark"] .institution-roster-table tbody tr:hover { background: rgba(23, 104, 72, .34); }
html[data-theme="dark"] .institution-roster-table td { border-color: #294638; }
html[data-theme="dark"] .institution-roster-number { color: #8ce2b2; background: #163d2c; box-shadow: inset 0 0 0 1px #2c6047; }
html[data-theme="dark"] .institution-roster-avatar { border-color: #315642; color: #9ae7bb; background: linear-gradient(145deg, #183c2b, #112a1e); }
html[data-theme="dark"] .institution-roster-name { color: #e5f3e9; }
html[data-theme="dark"] .institution-roster-role { border-color: #355642; background: #152b20; color: #c8dfd0; }
html[data-theme="dark"] .institution-roster-role i { color: #74d6a4; }
@media (max-width: 600px) { .institution-detail-content { padding: 16px 14px 20px; gap: 16px; } .institution-roster-heading { align-items: flex-start; gap: 10px; } .institution-roster-heading > span { width: 40px; height: 40px; flex-basis: 40px; } .institution-roster-heading h3 { font-size: 17px; } .institution-roster-table th { padding: 12px 13px; } .institution-roster-table td { padding: 10px 13px; } }

/* Peta wilayah: peta interaktif dengan panel identitas kantor dari ta_app */
.village-map-layout { display: grid; grid-template-columns: minmax(0,1.62fr) minmax(290px,.78fr); align-items: stretch; gap: 20px; }
.village-map-layout .village-map-card { min-width: 0; display: flex; flex-direction: column; border-radius: 24px; background: linear-gradient(145deg,#062f23 0%,#031d17 100%); box-shadow: 0 24px 58px rgba(2,34,24,.2),0 0 0 1px rgba(221,190,92,.14); }
.village-map-layout .map-card-head { min-height: 92px; padding: 18px 22px; }
.village-map-layout .map-head-info { min-width: 0; }
.village-map-layout .map-head-info > div { min-width: 0; }
.village-map-layout .map-head-info b { line-height: 1.4; }
.village-map-layout .map-head-info small { overflow-wrap: anywhere; line-height: 1.55; }
.village-map-layout .map-card-body { position: relative; flex: 1; min-height: 440px; overflow: hidden; background: #0b2119; }
.village-map-layout .map-card-body iframe { width: 100%; height: 100%; min-height: 440px; filter: saturate(.92) contrast(1.04); }
.map-coordinate-chip { position: absolute; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 9px; max-width: calc(100% - 32px); padding: 9px 13px; border: 1px solid rgba(255,226,139,.3); border-radius: 13px; color: #f7f6e8; background: rgba(3,35,25,.88); box-shadow: 0 10px 28px rgba(0,0,0,.24); backdrop-filter: blur(10px); font-size: 10px; }
.map-coordinate-chip > i { color: #f2cd64; }
.map-coordinate-chip span { color: #c0d5ca; }
.map-coordinate-chip b { overflow-wrap: anywhere; color: #ffe28b; font-size: 10px; }
.map-location-panel { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: clamp(20px,2.2vw,30px); border: 1px solid #e2ebe3; border-radius: 18px; color: #18392c; background: #fff; box-shadow: 0 16px 42px rgba(21,58,37,.06); }
.map-location-panel::after { content: ''; position: absolute; top: -80px; right: -85px; width: 210px; aspect-ratio: 1; border: 1px solid rgba(15,126,85,.08); border-radius: 50%; box-shadow: 0 0 0 18px rgba(15,126,85,.025),0 0 0 40px rgba(15,126,85,.018); pointer-events: none; }
.map-location-panel-head { position: relative; z-index: 1; padding-bottom: 18px; border-bottom: 1px solid #e5eee7; }
.map-location-emblem { display: grid; width: 48px; height: 48px; margin-bottom: 16px; place-items: center; border: 1px solid #d5e9dc; border-radius: 16px; color: #087c58; background: linear-gradient(145deg,#e8f5ed,#f5f8ed); box-shadow: 0 8px 24px rgba(7,83,60,.08); font-size: 19px; }
.map-location-kicker { color: #a27c20; font-size: 9px; font-weight: 850; letter-spacing: .18em; }
.map-location-panel-head h3 { margin: 7px 0 5px; color: #173d2d; font: 800 clamp(20px,2vw,25px)/1.2 var(--font-display); letter-spacing: -.035em; overflow-wrap: anywhere; }
.map-location-panel-head p { margin: 0; color: #718076; font-size: 12px; line-height: 1.55; }
.map-location-list { position: relative; z-index: 1; display: grid; gap: 8px; padding-block: 16px; }
.map-location-item { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 9px 10px; border: 1px solid #e5eee7; border-radius: 13px; background: #f8fbf8; transition: transform .2s ease,border-color .2s ease,background .2s ease; }
.map-location-item:hover { transform: translateX(3px); border-color: #b9dcc8; background: #f0f8f3; }
.map-location-item > span { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #087c58; background: #e7f4eb; font-size: 13px; }
.map-location-item > div { display: grid; min-width: 0; gap: 2px; }
.map-location-item small { color: #75877c; font-size: 10px; line-height: 1.3; }
.map-location-item b { color: #18392c; font-size: 12px; font-weight: 750; line-height: 1.45; overflow-wrap: anywhere; }
.map-location-address { padding: 12px 13px; border: 1px solid #e7e9da; border-radius: 14px; background: linear-gradient(135deg,#fbfaf2,#f7faf5); }
.map-location-address > span { display: flex; align-items: center; gap: 8px; color: #9a771d; font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.map-location-address p { margin: 8px 0 0; color: #40594c; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.map-location-directions { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 46px; margin-top: auto; padding: 10px 14px; border: 1px solid rgba(247,217,121,.55); border-radius: 14px; color: #08291e; background: linear-gradient(115deg,#f1d270,#f8e5a0); box-shadow: 0 10px 24px rgba(213,171,54,.16); font-size: 12px; font-weight: 850; transition: transform .2s ease,box-shadow .2s ease,filter .2s ease; }
.map-location-directions i:last-child { margin-left: auto; }
.map-location-directions:hover { transform: translateY(-2px); color: #08291e; filter: brightness(1.04); box-shadow: 0 14px 30px rgba(213,171,54,.24); }
html[data-theme="dark"] .map-location-panel { border-color: #2b4035; color: #eaf5ef; background: #17251d; box-shadow: 0 16px 42px #0002; }
html[data-theme="dark"] .map-location-panel::after { border-color: rgba(246,211,104,.12); box-shadow: 0 0 0 18px rgba(246,211,104,.025),0 0 0 40px rgba(246,211,104,.02); }
html[data-theme="dark"] .map-location-panel-head { border-color: #2b4035; }
html[data-theme="dark"] .map-location-emblem { border-color: #355642; color: #91e0b6; background: linear-gradient(145deg,#1c3b2b,#17251d); }
html[data-theme="dark"] .map-location-kicker { color: #f0d476; }
html[data-theme="dark"] .map-location-panel-head h3 { color: #edf5ef; }
html[data-theme="dark"] .map-location-panel-head p { color: #a6b6ab; }
html[data-theme="dark"] .map-location-item { border-color: #2b4035; background: #1b2a22; }
html[data-theme="dark"] .map-location-item:hover { border-color: #477256; background: #20372a; }
html[data-theme="dark"] .map-location-item > span { color: #82ddb0; background: #203c2b; }
html[data-theme="dark"] .map-location-item small { color: #a6b6ab; }
html[data-theme="dark"] .map-location-item b { color: #eaf5ef; }
html[data-theme="dark"] .map-location-address { border-color: #554b2b; background: linear-gradient(135deg,#242719,#1b2a22); }
html[data-theme="dark"] .map-location-address > span { color: #f0d476; }
html[data-theme="dark"] .map-location-address p { color: #d0ddd4; }
/* Match the map frame surface to the surrounding site-container card. */
.village-map-layout .village-map-card { border: 1px solid #e2ebe3; border-radius: 18px; background: #fff; box-shadow: 0 16px 42px rgba(21,58,37,.06); }
.village-map-layout .map-card-head { background: #f7faf8; border-bottom-color: #e5eee7; }
.village-map-layout .map-head-info b { color: #173d2d; }
.village-map-layout .map-head-info small { color: #718076; }
.village-map-layout .map-head-info small i { color: #087c58; }
.village-map-layout .map-head-badges .meta-tag { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #dfe9e2; border-radius: 999px; color: #466251; background: #fff; font-size: 10px; font-weight: 750; white-space: nowrap; }
.village-map-layout .map-head-badges .meta-tag.is-link { border-color: #cfe5d7; color: #087c58; background: #eff8f2; }
.village-map-layout .map-head-badges .meta-tag.is-link:hover { border-color: #a7d4b8; color: #075a40; background: #e4f3e9; }
html[data-theme="dark"] .village-map-layout .village-map-card { border-color: #2b4035; background: #17251d; box-shadow: 0 16px 42px #0002; }
html[data-theme="dark"] .village-map-layout .map-card-head { background: #17251d; border-bottom-color: #2b4035; }
html[data-theme="dark"] .village-map-layout .map-head-info b { color: #edf5ef; }
html[data-theme="dark"] .village-map-layout .map-head-info small { color: #a6b6ab; }
html[data-theme="dark"] .village-map-layout .map-head-info small i { color: #75d6a6; }
html[data-theme="dark"] .village-map-layout .map-head-badges .meta-tag { border-color: #355642; color: #c6d9cd; background: #1b2a22; }
html[data-theme="dark"] .village-map-layout .map-head-badges .meta-tag.is-link { border-color: #466842; color: #f0d476; background: #242b1d; }
html[data-theme="dark"] .village-map-layout .map-head-badges .meta-tag.is-link:hover { border-color: #8b7734; color: #fff1ae; background: #30301d; }
@media (max-width: 1040px) { .village-map-layout { grid-template-columns: minmax(0,1.25fr) minmax(270px,.85fr); gap: 15px; } .village-map-layout .map-card-head { align-items: flex-start; } .village-map-layout .map-head-badges { flex-wrap: wrap; } }
@media (max-width: 820px) { .village-map-layout { grid-template-columns: 1fr; } .village-map-layout .map-card-body,.village-map-layout .map-card-body iframe { min-height: 380px; } .map-location-panel { padding: 22px; } .map-location-list { grid-template-columns: repeat(2,minmax(0,1fr)); } .map-location-address { grid-column: 1/-1; } }
@media (max-width: 540px) { .village-map-layout .village-map-card,.map-location-panel { border-radius: 18px; } .village-map-layout .map-card-head { padding: 16px; } .village-map-layout .map-head-info { align-items: flex-start; } .village-map-layout .map-head-info .gov-pane-icon { flex: 0 0 40px; width: 40px; height: 40px; } .village-map-layout .map-head-info b { font-size: 13px; } .village-map-layout .map-head-info small { font-size: 10px; } .village-map-layout .map-head-badges { width: 100%; padding-left: 52px; } .village-map-layout .map-card-body,.village-map-layout .map-card-body iframe { min-height: 310px; } .map-coordinate-chip { right: 10px; bottom: 10px; gap: 6px; padding: 8px 10px; font-size: 9px; } .map-coordinate-chip b { font-size: 9px; } .map-location-panel { padding: 18px; } .map-location-list { grid-template-columns: 1fr; } .map-location-address { grid-column: auto; } }


/* Full-width organization chart in the institution detail dialog */
body.home-page .institution-struktur-img-wrap {
    padding: 0;
    width: 100%;
    background: var(--hp-surface);
    text-align: center;
}
body.home-page .institution-struktur-img-wrap > a {
    display: block;
    width: 100%;
    line-height: 0;
}
body.home-page .institution-struktur-img-wrap img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: none;
}
body.home-page .institution-struktur-img-wrap img:hover { transform: none; }
body.home-page .health-statistics-section .section-title-row { margin-bottom: 24px; }
body.home-page .health-number-cards { margin-top: 0; }
body.home-page .population-number-icon.is-muted { background: rgba(100, 116, 139, .12); color: #64748b; border-color: rgba(100, 116, 139, .22); }
html[data-theme="dark"] body.home-page .population-number-icon.is-muted { color: #cbd5e1; background: rgba(148, 163, 184, .16); border-color: rgba(148, 163, 184, .25); }
@media (max-width: 720px) {
    body.home-page .health-number-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.home-page .institution-struktur-img-wrap { border-radius: 12px; }
    body.home-page .institution-struktur-img-wrap img { border-radius: 11px; }
}


/* Published health and community development records */
body.home-page .public-records-section { position: relative; }
body.home-page .public-records-heading { align-items: end; gap: 20px; margin-bottom: 26px; }
body.home-page .public-records-count { display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; padding: 11px 16px; border: 1px solid rgba(16, 185, 129, .2); border-radius: 999px; background: var(--hp-brand-soft); color: var(--hp-brand); font-size: 12px; font-weight: 800; }
body.home-page .public-records-count.is-gold { border-color: rgba(217, 169, 42, .28); background: var(--hp-gold-soft); color: #9c710c; }
body.home-page .public-records-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
body.home-page .public-record-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--hp-line); border-radius: 22px; background: var(--hp-surface); box-shadow: var(--hp-shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
body.home-page .public-record-card:hover { transform: translateY(-5px); border-color: rgba(16, 185, 129, .42); box-shadow: var(--hp-shadow-hover); }
body.home-page .development-record-card:hover { border-color: rgba(217, 169, 42, .5); }
body.home-page .public-record-image { width: 100%; height: 190px; overflow: hidden; background: var(--hp-brand-soft); }
body.home-page .public-record-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
body.home-page .public-record-card:hover .public-record-image img { transform: scale(1.045); }
body.home-page .public-record-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 22px; min-width: 0; }
body.home-page .public-record-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 15px; border-radius: 14px; background: var(--hp-brand-soft); color: var(--hp-brand); font-size: 18px; }
body.home-page .public-record-icon.is-gold { background: var(--hp-gold-soft); color: #9c710c; }
body.home-page .public-record-category, body.home-page .public-record-tags span { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 999px; background: var(--hp-brand-soft); color: var(--hp-brand); font-size: 10px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
body.home-page .public-record-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: -3px 0 9px; }
body.home-page .development-record-card .public-record-tags span { background: var(--hp-gold-soft); color: #8b650b; }
body.home-page .public-record-body h3 { margin: 10px 0 8px; color: var(--hp-ink); font-size: 19px; font-weight: 850; line-height: 1.3; overflow-wrap: anywhere; }
body.home-page .public-record-body p { margin: 0; color: var(--hp-muted); font-size: 13px; line-height: 1.7; }
body.home-page .public-record-meta { display: grid; gap: 9px; width: 100%; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hp-line); color: var(--hp-ink-2); font-size: 12px; line-height: 1.5; }
body.home-page .public-record-meta span { display: flex; align-items: flex-start; gap: 8px; overflow-wrap: anywhere; }
body.home-page .public-record-meta i { flex: 0 0 14px; margin-top: 2px; color: var(--hp-brand); }
body.home-page .development-record-card .public-record-meta i { color: #ad8013; }
body.home-page .public-record-budget { display: flex; flex-direction: column; gap: 4px; width: 100%; margin-top: auto; padding-top: 16px; }
body.home-page .public-record-budget small { color: var(--hp-muted); font-size: 9px; font-weight: 850; letter-spacing: .1em; }
body.home-page .public-record-budget strong { color: var(--hp-ink); font-size: 18px; font-weight: 900; }
body.home-page .public-record-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--hp-brand); font-size: 12px; font-weight: 800; text-decoration: none; }
body.home-page .public-record-link:hover { text-decoration: underline; }
@media (max-width: 980px) { body.home-page .public-records-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    body.home-page .public-records-heading { align-items: flex-start; flex-direction: column; }
    body.home-page .public-records-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    body.home-page .public-record-body { padding: 18px; }
    body.home-page .public-record-image { height: 175px; }
}


/* Home population health statistics and pembangunan sections */
body.home-page #data-kesehatan { scroll-margin-top: 110px; }
body.home-page #data-kesehatan .section-title-row { position: relative; margin-bottom: 28px; padding: 24px 28px; overflow: hidden; border: 1px solid var(--hp-line); border-radius: 24px; background: linear-gradient(115deg, var(--hp-surface) 0%, var(--hp-brand-soft) 100%); box-shadow: var(--hp-shadow); }
body.home-page #data-kesehatan .section-title-row::after { content: ""; position: absolute; right: -35px; top: -88px; width: 220px; height: 220px; border: 24px solid rgba(16, 185, 129, .08); border-radius: 50%; pointer-events: none; }
body.home-page #data-kesehatan .section-title-row > div { position: relative; z-index: 1; }
body.home-page #data-kesehatan .section-title-row p { max-width: 700px; }
body.home-page #data-kesehatan .health-number-cards { position: relative; z-index: 1; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
body.home-page #data-kesehatan .population-number-card { min-height: 132px; padding: 18px 15px; border-top-width: 4px; border-radius: 20px; }
body.home-page #data-kesehatan .population-number-copy b { font-size: clamp(23px, 2vw, 30px); }
body.home-page #data-pembangunan { scroll-margin-top: 110px; }
body.home-page #data-pembangunan .public-records-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body.home-page #data-pembangunan .public-record-card { min-height: 100%; }
body.home-page #data-pembangunan .public-record-budget { margin-top: 18px; }
@media (max-width: 1100px) { body.home-page #data-kesehatan .health-number-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
    body.home-page #data-kesehatan .section-title-row { padding: 20px; border-radius: 20px; }
    body.home-page #data-kesehatan .health-number-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    body.home-page #data-kesehatan .population-number-card { grid-template-columns: 42px minmax(0, 1fr); min-height: 112px; gap: 10px; padding: 14px 11px; }
    body.home-page #data-kesehatan .population-number-icon { width: 42px; height: 42px; flex-basis: 42px; font-size: 17px; }
    body.home-page #data-kesehatan .population-number-copy small { font-size: 9px; }
    body.home-page #data-kesehatan .population-number-copy b { font-size: 22px; }
    body.home-page #data-pembangunan .public-records-grid { grid-template-columns: minmax(0, 1fr); }
}


/* Population health indicators and interactive public record galleries */
body.home-page .population-health-panel { position: relative; margin-top: 26px; padding: clamp(18px, 2.4vw, 30px); overflow: hidden; border: 1px solid var(--hp-line); border-radius: 26px; background: linear-gradient(125deg, var(--hp-surface), var(--hp-brand-soft)); box-shadow: var(--hp-shadow); scroll-margin-top: 105px; }
body.home-page .population-health-heading { position: relative; z-index: 1; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 14px; margin-bottom: 20px; }
body.home-page .population-health-symbol { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid rgba(16,185,129,.22); border-radius: 17px; background: var(--hp-surface); color: var(--hp-brand); font-size: 21px; box-shadow: 0 8px 22px rgba(4, 70, 48, .09); }
body.home-page .population-health-heading small { color: var(--hp-brand); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
body.home-page .population-health-heading h3 { margin: 4px 0; color: var(--hp-ink); font-size: clamp(18px, 2vw, 23px); font-weight: 900; }
body.home-page .population-health-heading p { margin: 0; color: var(--hp-muted); font-size: 12px; line-height: 1.55; }
body.home-page .population-health-total { display: grid; min-width: 112px; justify-items: end; gap: 2px; padding: 11px 14px; border: 1px solid var(--hp-line); border-radius: 16px; background: var(--hp-surface); }
body.home-page .population-health-total b { color: var(--hp-ink); font-size: 22px; font-weight: 900; }
body.home-page .population-health-total small { color: var(--hp-muted); font-size: 10px; letter-spacing: 0; }
body.home-page .population-health-panel .health-number-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
body.home-page .population-health-panel .population-number-card { min-height: 112px; padding: 16px 14px; }
body.home-page .public-record-body { cursor: pointer; outline: none; }
body.home-page .public-record-body:focus-visible { box-shadow: inset 0 0 0 3px rgba(16,185,129,.55); border-radius: 14px; }
body.home-page .public-record-image { position: relative; }
body.home-page .public-record-image > span { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(3, 37, 27, .82); color: #f8fafc; font-size: 10px; font-weight: 800; backdrop-filter: blur(8px); }
body.home-page .public-record-placeholder { display: grid; min-height: 170px; place-content: center; justify-items: center; gap: 10px; background: radial-gradient(circle at 80% 15%, rgba(217,169,42,.2), transparent 35%), linear-gradient(135deg, #e6f4ed, #f8faf5); color: var(--hp-brand); font-size: 12px; font-weight: 800; }
body.home-page .public-record-placeholder i { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 17px; background: var(--hp-surface); color: var(--hp-brand); font-size: 23px; box-shadow: var(--hp-shadow); }
body.home-page .public-record-placeholder.is-development { background: radial-gradient(circle at 80% 15%, rgba(217,169,42,.24), transparent 36%), linear-gradient(135deg, #f9f1d9, #f8faf5); color: #946d0c; }
body.home-page .public-record-open-hint { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; color: var(--hp-brand); font-size: 11px; font-weight: 850; }
body.home-page .development-record-card .public-record-open-hint { color: #946d0c; }
body.home-page .record-detail-dialog { width: min(1020px, calc(100vw - 28px)); max-height: min(90dvh, 900px); }
body.home-page .record-detail-dialog .gallery-detail-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .75fr); align-items: stretch; gap: 20px; padding: 22px; overflow: auto; }
body.home-page .record-detail-dialog .gallery-detail-stage { min-height: 300px; max-height: 58vh; aspect-ratio: 4 / 3; }
body.home-page .record-detail-dialog .gallery-detail-slide { margin: 0; }
body.home-page .record-detail-dialog .gallery-detail-slide img { cursor: zoom-in; object-fit: contain; background: #061b14; }
body.home-page .record-detail-dialog .gallery-detail-slide figcaption { position: absolute; right: 0; bottom: 0; left: 0; max-height: 42%; overflow: auto; padding: 28px 18px 16px; background: linear-gradient(transparent, rgba(1, 17, 12, .9)); color: #fff; font-size: 12px; line-height: 1.6; }
body.home-page .record-detail-dialog .gallery-detail-summary { grid-column: auto; grid-row: auto; align-self: stretch; padding: 22px; }
body.home-page .record-gallery-empty { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 12px; color: #b6d1c4; font-size: 13px; font-weight: 750; }
body.home-page .record-gallery-empty i { font-size: 36px; color: #e5c355; }
body.home-page .record-dialog-budget { display: block; margin-top: 14px; color: var(--hp-brand); font-size: 16px; }
body.home-page .record-photo-lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 52px 18px 40px; border: 0; background: rgba(2, 12, 9, .97); color: #fff; overflow: hidden; }
body.home-page .record-photo-lightbox::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(8px); }
body.home-page .record-photo-lightbox[open] { display: grid; place-items: center; }
body.home-page .record-photo-lightbox img { max-width: min(100%, 1600px); max-height: calc(100dvh - 105px); width: auto; height: auto; object-fit: contain; }
body.home-page .record-photo-lightbox p { position: absolute; bottom: 8px; margin: 0; color: #cbd5e1; font-size: 11px; }
body.home-page .record-photo-lightbox-close { position: absolute; z-index: 2; top: 14px; right: 16px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 19px; cursor: pointer; }
html[data-theme="dark"] body.home-page .public-record-placeholder { background: linear-gradient(135deg, #10271d, #17291f); }
@media (max-width: 900px) { body.home-page .population-health-panel .health-number-cards { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 680px) {
    body.home-page .population-health-heading { grid-template-columns: 46px minmax(0,1fr); gap: 11px; }
    body.home-page .population-health-symbol { width: 46px; height: 46px; border-radius: 14px; font-size: 18px; }
    body.home-page .population-health-total { grid-column: 1 / -1; grid-template-columns: auto 1fr; justify-items: start; align-items: center; gap: 9px; width: fit-content; margin-left: 57px; padding: 8px 12px; }
    body.home-page .population-health-total b { font-size: 17px; }
    body.home-page .population-health-panel .health-number-cards { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
    body.home-page .population-health-panel .population-number-card { grid-template-columns: 38px minmax(0,1fr); min-height: 98px; gap: 9px; padding: 12px 9px; }
    body.home-page .population-health-panel .population-number-icon { width: 38px; height: 38px; flex-basis: 38px; font-size: 15px; }
    body.home-page .population-health-panel .population-number-copy small { font-size: 8px; }
    body.home-page .population-health-panel .population-number-copy b { font-size: 20px; }
    body.home-page .record-detail-dialog { width: calc(100vw - 14px); max-height: 94dvh; border-radius: 18px; }
    body.home-page .record-detail-dialog .gallery-detail-shell { max-height: 94dvh; border-radius: 18px; }
    body.home-page .record-detail-dialog .gallery-detail-header { gap: 9px; padding: 13px; }
    body.home-page .record-detail-dialog .gallery-detail-title-wrap h2 { font-size: 15px; }
    body.home-page .record-detail-dialog .gallery-detail-body { grid-template-columns: minmax(0,1fr); gap: 12px; padding: 12px; }
    body.home-page .record-detail-dialog .gallery-detail-stage { min-height: 220px; max-height: 43vh; border-radius: 14px; }
    body.home-page .record-detail-dialog .gallery-detail-summary { padding: 16px; border-radius: 15px; }
    body.home-page .record-detail-dialog .gallery-detail-slide figcaption { max-height: 45%; padding: 24px 12px 10px; font-size: 11px; }
    body.home-page .record-photo-lightbox { padding: 48px 8px 38px; }
}

/* ==========================================================================
   PUBLIC RECORDS (KESEHATAN & PEMBANGUNAN) - SEARCH & FULLSCREEN MODAL PORTAL
   ========================================================================== */
body.home-page .public-records-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}
body.home-page .public-records-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
body.home-page .public-records-search {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-width: 260px;
    height: 44px;
    padding: 0 16px;
    border: 1.5px solid rgba(16, 185, 129, 0.28);
    border-radius: 999px;
    background: var(--hp-surface);
    box-shadow: 0 2px 10px rgba(7, 84, 61, 0.05);
    transition: all .25s ease;
}
body.home-page .public-records-search:focus-within {
    border-color: #0b9168;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
    background: #ffffff;
}
body.home-page .public-records-search.is-gold {
    border-color: rgba(217, 169, 42, 0.35);
}
body.home-page .public-records-search.is-gold:focus-within {
    border-color: #d9a92a;
    box-shadow: 0 0 0 3px rgba(217, 169, 42, 0.2);
}
body.home-page .public-records-search i {
    color: var(--hp-brand);
    font-size: 14px;
    margin-right: 10px;
    flex-shrink: 0;
}
body.home-page .public-records-search.is-gold i {
    color: #9c710c;
}
body.home-page .public-search-field {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-size: 13px;
    font-family: inherit;
    font-weight: 600;
    color: var(--hp-ink);
}
body.home-page .public-search-field::placeholder {
    color: var(--hp-muted);
    font-weight: 500;
}
body.home-page .public-search-clear {
    border: none;
    background: transparent;
    color: var(--hp-muted);
    font-size: 13px;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 50%;
    margin-left: 4px;
    transition: color .2s ease;
}
body.home-page .public-search-clear:hover {
    color: #ef4444;
}

body.home-page .btn-fullscreen-portal {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 44px;
    padding: 0 20px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 999px;
    background: linear-gradient(135deg, #07543d 0%, #0b9168 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(7, 84, 61, 0.25);
    transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}
body.home-page .btn-fullscreen-portal:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(7, 84, 61, 0.35);
    background: linear-gradient(135deg, #09684c 0%, #0ea375 100%);
}
body.home-page .btn-fullscreen-portal.is-gold {
    border-color: rgba(217, 169, 42, 0.45);
    background: linear-gradient(135deg, #8b6508 0%, #b8860b 100%);
    box-shadow: 0 4px 14px rgba(184, 134, 11, 0.25);
}
body.home-page .btn-fullscreen-portal.is-gold:hover {
    box-shadow: 0 8px 22px rgba(184, 134, 11, 0.35);
    background: linear-gradient(135deg, #9c710c 0%, #c9930e 100%);
}
body.home-page .portal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
}

body.home-page .public-record-sumber-dana {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    color: #0b9168;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

body.home-page .public-records-no-match {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 24px;
    border: 2px dashed rgba(16, 185, 129, 0.25);
    border-radius: 20px;
    background: rgba(16, 185, 129, 0.03);
    text-align: center;
    color: var(--hp-muted);
}
body.home-page .public-records-no-match i {
    font-size: 38px;
    color: #10b981;
    opacity: 0.7;
}
body.home-page .public-records-no-match strong {
    font-size: 16px;
    color: var(--hp-ink);
}

/* ==========================================================================
   FULLSCREEN MODAL COMPONENT (Native Dialog) - Styled matching section #profil
   ========================================================================== */
body.home-page dialog.public-fullscreen-modal,
body.home-page dialog.public-fullscreen-modal.fs-modal-health,
body.home-page dialog.public-fullscreen-modal.fs-modal-dev,
body.home-page dialog#modalFullscreenDevelopment,
body.home-page dialog#modalFullscreenHealth {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    background:
        radial-gradient(circle at 100% 0%, rgba(223, 175, 49, 0.07) 0%, transparent 42%),
        radial-gradient(circle at 0% 100%, rgba(10, 124, 89, 0.05) 0%, transparent 42%),
        var(--hp-bg) !important;
    color: var(--hp-ink) !important;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 99999;
}
body.home-page dialog.public-fullscreen-modal:not([open]),
body.home-page dialog#modalFullscreenDevelopment:not([open]),
body.home-page dialog#modalFullscreenHealth:not([open]) {
    display: none !important;
}
body.home-page dialog.public-fullscreen-modal[open],
body.home-page dialog#modalFullscreenDevelopment[open],
body.home-page dialog#modalFullscreenHealth[open] {
    display: flex !important;
    animation: fsModalFadeIn .3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fsModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.985);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
body.home-page dialog.public-fullscreen-modal::backdrop {
    background: rgba(7, 36, 27, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Fullscreen Modal Header */
body.home-page .fs-records-header {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 36px;
    background: color-mix(in srgb, var(--hp-surface) 92%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1.5px solid var(--hp-gold-line);
    box-shadow: 0 4px 20px rgba(7, 84, 61, 0.06);
    z-index: 20;
}
body.home-page .fs-modal-health .fs-records-header {
    border-bottom-color: rgba(16, 185, 129, 0.3);
}
body.home-page .fs-modal-dev .fs-records-header {
    border-bottom-color: var(--hp-gold-line);
}
html[data-theme="dark"] body.home-page .fs-records-header {
    background: rgba(14, 32, 25, 0.94);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

body.home-page .fs-brand-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}
body.home-page .fs-brand-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--hp-brand-soft);
    border: 1.5px solid rgba(16, 185, 129, 0.35);
    color: var(--hp-brand);
    font-size: 20px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}
body.home-page .fs-brand-icon.is-gold {
    background: var(--hp-gold-soft);
    border-color: rgba(217, 169, 42, 0.4);
    color: #90660b;
    box-shadow: 0 0 20px rgba(217, 169, 42, 0.15);
}
html[data-theme="dark"] body.home-page .fs-brand-icon.is-gold {
    color: #fbbf24;
}
body.home-page .fs-brand-info small {
    display: block;
    color: var(--hp-brand);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
body.home-page .fs-modal-dev .fs-brand-info small,
body.home-page .fs-brand-icon.is-gold + .fs-brand-info small {
    color: #90660b;
}
html[data-theme="dark"] body.home-page .fs-modal-dev .fs-brand-info small,
html[data-theme="dark"] body.home-page .fs-brand-icon.is-gold + .fs-brand-info small {
    color: #fde68a;
}
body.home-page .fs-brand-info h2 {
    margin: 2px 0 0;
    color: var(--hp-ink);
    font-size: 19px;
    font-weight: 850;
    line-height: 1.25;
}
body.home-page .fs-controls-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
body.home-page .fs-search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 280px;
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--hp-surface);
    border: 1.5px solid var(--hp-line);
    transition: all .2s ease;
}
body.home-page .fs-search-box:focus-within {
    width: 320px;
    background: var(--hp-surface);
    border-color: var(--hp-brand);
    box-shadow: 0 0 0 3px rgba(10, 124, 89, 0.15);
}
body.home-page .fs-modal-dev .fs-search-box:focus-within {
    border-color: var(--hp-gold);
    box-shadow: 0 0 0 3px rgba(223, 175, 49, 0.2);
}
body.home-page .fs-search-box i {
    color: var(--hp-brand);
    font-size: 13px;
    margin-right: 9px;
    flex-shrink: 0;
}
body.home-page .fs-modal-dev .fs-search-box i {
    color: #90660b;
}
html[data-theme="dark"] body.home-page .fs-modal-dev .fs-search-box i {
    color: #fbbf24;
}
body.home-page .fs-search-input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    color: var(--hp-ink);
    font-size: 13px;
    font-family: inherit;
    font-weight: 600;
}
body.home-page .fs-search-input::placeholder {
    color: var(--hp-ink-2);
    opacity: 0.65;
}
body.home-page .fs-filter-select {
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--hp-surface);
    border: 1.5px solid var(--hp-line);
    color: var(--hp-ink);
    font-size: 12px;
    font-family: inherit;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all .2s ease;
}
body.home-page .fs-filter-select:focus {
    border-color: var(--hp-brand);
}
body.home-page .fs-modal-dev .fs-filter-select:focus {
    border-color: var(--hp-gold);
}
body.home-page .fs-filter-select option {
    background: var(--hp-surface);
    color: var(--hp-ink);
}
body.home-page .fs-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--hp-brand-soft);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--hp-brand);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}
body.home-page .fs-modal-dev .fs-count-pill {
    background: var(--hp-gold-soft);
    border-color: rgba(217, 169, 42, 0.4);
    color: #90660b;
}
html[data-theme="dark"] body.home-page .fs-modal-dev .fs-count-pill {
    color: #fbbf24;
}
body.home-page .fs-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1.5px solid var(--hp-line);
    background: var(--hp-surface);
    color: var(--hp-ink);
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: all .2s ease;
}
body.home-page .fs-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

/* Fullscreen Modal Body */
body.home-page .fs-records-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 32px 36px 64px;
    scroll-behavior: smooth;
}
body.home-page .fs-records-body::-webkit-scrollbar {
    width: 8px;
}
body.home-page .fs-records-body::-webkit-scrollbar-track {
    background: transparent;
}
body.home-page .fs-records-body::-webkit-scrollbar-thumb {
    background: rgba(10, 124, 89, 0.25);
    border-radius: 999px;
}
body.home-page .fs-records-body::-webkit-scrollbar-thumb:hover {
    background: rgba(10, 124, 89, 0.5);
}

body.home-page .fs-records-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Fullscreen Record Card (Matches Section Profil and Site Card Style) */
body.home-page .fs-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--hp-surface) !important;
    border: 1.5px solid var(--hp-line) !important;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--hp-shadow) !important;
    transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .25s ease, border-color .25s ease;
}
body.home-page .fs-card:hover {
    transform: translateY(-6px);
    border-color: var(--hp-brand) !important;
    box-shadow: var(--hp-shadow-hover) !important;
}
body.home-page .fs-card.is-dev {
    border-color: var(--hp-gold-line) !important;
}
body.home-page .fs-card.is-dev:hover {
    border-color: var(--hp-gold) !important;
    box-shadow: var(--hp-shadow-hover) !important;
}
body.home-page .fs-card-media {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background: var(--hp-bg-alt);
    border-bottom: 1px solid var(--hp-line);
}
body.home-page .fs-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}
body.home-page .fs-card:hover .fs-card-media img {
    transform: scale(1.06);
}
body.home-page .fs-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 8px;
    background: radial-gradient(circle at 72% 12%, rgba(16, 185, 129, 0.16), transparent 45%), linear-gradient(145deg, #e9f8f0, #f7fbf8);
    color: var(--hp-brand);
}
body.home-page .fs-card.is-dev .fs-card-placeholder {
    background: radial-gradient(circle at 72% 12%, rgba(217, 169, 42, 0.22), transparent 45%), linear-gradient(145deg, #fbf7e8, #fffdf5);
    color: #90660b;
}
html[data-theme="dark"] body.home-page .fs-card-placeholder {
    background: radial-gradient(circle at 72% 12%, rgba(16, 185, 129, 0.2), transparent 45%), linear-gradient(145deg, #092a20, #061913);
    color: #6ee7b7;
}
html[data-theme="dark"] body.home-page .fs-card.is-dev .fs-card-placeholder {
    background: radial-gradient(circle at 72% 12%, rgba(217, 169, 42, 0.22), transparent 45%), linear-gradient(145deg, #2a2411, #141f17);
    color: #fde68a;
}
body.home-page .fs-card-placeholder i {
    font-size: 32px;
}
body.home-page .fs-card-media .fs-photo-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(7, 36, 27, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

body.home-page .fs-card-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 22px;
}
body.home-page .fs-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
body.home-page .fs-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    background: var(--hp-brand-soft);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--hp-brand);
}
body.home-page .fs-tag.tag-gold {
    background: var(--hp-gold-soft);
    border-color: rgba(217, 169, 42, 0.3);
    color: #90660b;
}
html[data-theme="dark"] body.home-page .fs-tag.tag-gold {
    color: #fde68a;
}
body.home-page .fs-tag.tag-sumber {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #0369a1;
}
html[data-theme="dark"] body.home-page .fs-tag.tag-sumber {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
}
body.home-page .fs-published-date {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 6px 10px;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    border-radius: 999px;
    background: var(--hp-brand-soft) !important;
    color: var(--hp-brand) !important;
    font-size: 10px;
    font-weight: 800;
}
body.home-page .fs-card.is-dev .fs-published-date {
    border-color: rgba(217, 169, 42, 0.25) !important;
    background: var(--hp-gold-soft) !important;
    color: #90660b !important;
}
html[data-theme="dark"] body.home-page .fs-card.is-dev .fs-published-date {
    color: #fde68a !important;
}
body.home-page .fs-card-title {
    margin: 0 0 10px;
    color: var(--hp-ink) !important;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
body.home-page .fs-card-desc {
    margin: 0 0 16px;
    color: var(--hp-ink-2);
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
body.home-page .fs-card-meta {
    display: grid;
    gap: 8px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--hp-line);
    font-size: 12px;
    color: var(--hp-ink-2);
}
body.home-page .fs-card-meta span {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    overflow-wrap: anywhere;
}
body.home-page .fs-card-meta i {
    flex: 0 0 14px;
    margin-top: 2px;
    color: var(--hp-brand);
}
body.home-page .fs-card.is-dev .fs-card-meta i {
    color: #90660b;
}
html[data-theme="dark"] body.home-page .fs-card.is-dev .fs-card-meta i {
    color: #fbbf24;
}
body.home-page .fs-card-budget {
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--hp-gold-soft);
    border: 1px solid rgba(217, 169, 42, 0.28);
    border-left: 3.5px solid var(--hp-gold);
}
body.home-page .fs-card-budget small {
    display: block;
    color: #90660b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
}
html[data-theme="dark"] body.home-page .fs-card-budget small {
    color: #fde68a;
}
body.home-page .fs-card-budget strong {
    color: var(--hp-ink);
    font-size: 16px;
    font-weight: 900;
}
body.home-page .fs-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--hp-line);
}
body.home-page .btn-fs-detail {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--hp-brand-soft);
    border: 1.5px solid rgba(16, 185, 129, 0.35);
    color: var(--hp-brand);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s ease;
}
body.home-page .btn-fs-detail:hover {
    background: var(--hp-brand);
    color: #ffffff;
    border-color: var(--hp-brand);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 124, 89, 0.25);
}
body.home-page .fs-card.is-dev .btn-fs-detail {
    background: var(--hp-gold-soft);
    border-color: rgba(217, 169, 42, 0.45);
    color: #90660b;
}
html[data-theme="dark"] body.home-page .fs-card.is-dev .btn-fs-detail {
    color: #fde68a;
}
body.home-page .fs-card.is-dev .btn-fs-detail:hover {
    background: var(--hp-gold);
    color: #0d281e;
    border-color: var(--hp-gold);
    box-shadow: 0 4px 12px rgba(217, 169, 42, 0.25);
}
body.home-page .fs-card-doc-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--hp-ink-2);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: color .2s ease;
}
body.home-page .fs-card-doc-link:hover {
    color: var(--hp-brand);
    text-decoration: underline;
}

/* Empty state in fullscreen modal */
body.home-page .fs-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 64px 24px;
    text-align: center;
    border: 2px dashed var(--hp-line);
    border-radius: 24px;
    background: var(--hp-surface);
}
body.home-page .fs-empty-state i {
    font-size: 48px;
    color: var(--hp-brand);
    opacity: 0.7;
}
body.home-page .fs-modal-dev .fs-empty-state i {
    color: var(--hp-gold);
}
body.home-page .fs-empty-state h3 {
    margin: 0;
    color: var(--hp-ink);
    font-size: 20px;
    font-weight: 800;
}
body.home-page .fs-empty-state p {
    margin: 0;
    color: var(--hp-ink-2);
    font-size: 14px;
    max-width: 420px;
}
body.home-page .btn-fs-reset {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 999px;
    background: var(--hp-surface);
    border: 1.5px solid var(--hp-line);
    color: var(--hp-ink);
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: all .2s ease;
}
body.home-page .btn-fs-reset:hover {
    background: var(--hp-brand);
    color: #ffffff;
    border-color: var(--hp-brand);
}

@media (max-width: 900px) {
    body.home-page .fs-records-header {
        padding: 14px 18px;
        gap: 12px;
    }
    body.home-page .fs-brand-info h2 {
        font-size: 16px;
    }
    body.home-page .fs-search-box {
        width: 100%;
    }
    body.home-page .fs-search-box:focus-within {
        width: 100%;
    }
    body.home-page .fs-controls-wrap {
        width: 100%;
        justify-content: space-between;
    }
    body.home-page .fs-records-body {
        padding: 20px 16px 48px;
    }
    body.home-page .fs-records-grid {
        grid-template-columns: 1fr;
    }
}

body.home-page .public-record-published { display: inline-flex; align-items: center; gap: 7px; width: fit-content; margin: 0 0 10px; padding: 6px 10px; border: 1px solid rgba(16,185,129,.18); border-radius: 999px; background: var(--hp-brand-soft); color: var(--hp-brand); font-size: 10px; font-weight: 800; line-height: 1.3; }
body.home-page .public-record-published.is-gold { border-color: rgba(217,169,42,.25); background: var(--hp-gold-soft); color: #90660b; }
body.home-page .public-placeholder-date { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; padding: 6px 10px; border: 1px solid rgba(16,185,129,.2); border-radius: 999px; background: rgba(255,255,255,.74); color: #087c59; font-size: 10px; font-weight: 850; }
body.home-page .public-record-placeholder.is-health { min-height: 190px; padding: 18px; background: radial-gradient(circle at 72% 12%, rgba(16,185,129,.18), transparent 43%), linear-gradient(145deg,#e9f8f0,#f7fbf8); color: #087c59; }
body.home-page .public-record-placeholder.is-health .public-placeholder-date { margin-top: 6px; }
body.home-page .development-record-card .public-record-published { margin-bottom: 9px; }
body.home-page .public-fullscreen-modal .fs-records-header { padding-top: max(16px, env(safe-area-inset-top)); }
body.home-page .public-fullscreen-modal .fs-records-body { padding-bottom: max(36px, env(safe-area-inset-bottom)); }
@media (max-width: 760px) {
    body.home-page .public-fullscreen-modal .fs-records-header { align-items: stretch; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 14px 14px; }
    body.home-page .public-fullscreen-modal .fs-brand-wrap { align-items: flex-start; min-width: 0; gap: 10px; }
    body.home-page .public-fullscreen-modal .fs-brand-info { min-width: 0; }
    body.home-page .public-fullscreen-modal .fs-brand-info h2 { font-size: clamp(15px, 4vw, 19px); overflow-wrap: anywhere; }
    body.home-page .public-fullscreen-modal .fs-controls-wrap { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; width: 100%; }
    body.home-page .public-fullscreen-modal .fs-search-box { width: 100%; min-width: 0; grid-column: 1 / -1; }
    body.home-page .public-fullscreen-modal .fs-search-box:focus-within { width: 100%; }
    body.home-page .public-fullscreen-modal .fs-filter-select { width: 100%; min-width: 0; }
    body.home-page .public-fullscreen-modal .fs-count-pill { justify-self: start; }
    body.home-page .public-fullscreen-modal .fs-close-btn { justify-self: end; }
    body.home-page .public-fullscreen-modal .fs-records-body { padding: 14px; }
    body.home-page .public-fullscreen-modal .fs-records-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 14px; }
}
@media (max-width: 420px) {
    body.home-page .public-fullscreen-modal .fs-controls-wrap { grid-template-columns: 1fr; }
    body.home-page .public-fullscreen-modal .fs-count-pill, body.home-page .public-fullscreen-modal .fs-close-btn { justify-self: stretch; width: 100%; }
    body.home-page .public-fullscreen-modal .fs-close-btn { justify-content: center; }
    body.home-page .public-fullscreen-modal .fs-card-body { padding: 16px; }
}

/* ==========================================================================
   PROFILE PHOTO LIGHTBOX (Full Size View with Mobile Responsiveness)
   - Desktop forced aspect ratio: 1920x1280 (3:2 landscape)
   - Mobile forced aspect ratio: 1280x1920 (2:3 portrait)
   - Frame tightly wraps photo (no extra black padding)
   - Close 'X' button fixed at top-right corner
   ========================================================================== */
body.home-page dialog.profile-photo-lightbox {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-width: 100vw;
    max-height: 100dvh;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 100000;
}
body.home-page dialog.profile-photo-lightbox:not([open]) {
    display: none !important;
}
body.home-page dialog.profile-photo-lightbox[open] {
    display: flex !important;
    animation: profileLightboxFadeIn .25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes profileLightboxFadeIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
body.home-page dialog.profile-photo-lightbox::backdrop {
    background: rgba(3, 14, 10, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Close Button (Icon X di Sudut Kanan Atas) */
body.home-page .profile-lightbox-close {
    position: fixed;
    top: 24px;
    right: 28px;
    z-index: 100010;
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.92);
    border: 2px solid rgba(255, 255, 255, 0.7);
    color: #ffffff;
    font-size: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.2);
    transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1), background-color .2s ease, box-shadow .2s ease;
}
body.home-page .profile-lightbox-close:hover,
body.home-page .profile-lightbox-close:focus-visible {
    background: #dc2626;
    border-color: #ffffff;
    transform: scale(1.08);
    box-shadow: 0 10px 28px rgba(220, 38, 38, 0.6);
    outline: none;
}
body.home-page .profile-lightbox-close i {
    font-size: 20px;
    line-height: 1;
}

/* Lightbox Stage (Area Centered - Click Outside to Close) */
body.home-page .profile-lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 24px;
    box-sizing: border-box;
    cursor: zoom-out;
}

/* Lightbox Photo Frame: Batas Foto Saja, Tidak Ada Hitam */
body.home-page .profile-lightbox-img-frame,
body.home-page .profile-lightbox-img-frame.img-fallback {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    max-width: 100%;
    max-height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: transparent !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75), 0 0 0 1.5px rgba(255, 255, 255, 0.2);
    cursor: default;
    line-height: 0;
}
body.home-page .profile-lightbox-img-frame::after,
body.home-page .profile-lightbox-img-frame.img-fallback::after {
    display: none !important;
    content: none !important;
}

/* Image Desktop: Forced 1920x1280 (3:2) Aspect Ratio */
body.home-page .profile-lightbox-img,
body.home-page .profile-lightbox-img-frame.img-fallback > img {
    visibility: visible !important;
    display: block !important;
    width: min(92vw, calc(88dvh * (1920 / 1280)), 1920px);
    max-height: min(88dvh, calc(92vw * (1280 / 1920)), 1280px);
    aspect-ratio: 1920 / 1280;
    object-fit: cover;
    border-radius: 20px;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform .25s ease;
}

/* Overlay Caption inside the Photo Frame */
body.home-page .profile-lightbox-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 24px 20px;
    background: linear-gradient(0deg, rgba(3, 14, 10, 0.92) 0%, rgba(3, 14, 10, 0.5) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
    line-height: 1.3;
}
body.home-page .profile-lightbox-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.28);
    border: 1px solid rgba(52, 211, 153, 0.5);
    color: #6ee7b7;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .08em;
    width: fit-content;
    text-transform: uppercase;
}
body.home-page .profile-lightbox-title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(16px, 2.2vw, 22px);
    font-weight: 850;
    line-height: 1.25;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Mobile Responsive Adjustments (Forced 1280x1920 / 2:3 Portrait) */
@media (max-width: 768px) {
    body.home-page .profile-lightbox-close {
        top: 14px;
        right: 14px;
        width: 44px;
        height: 44px;
        min-height: 44px;
        font-size: 18px;
    }
    body.home-page .profile-lightbox-stage {
        padding: 12px;
    }
    body.home-page .profile-lightbox-img-frame {
        border-radius: 16px;
    }
    body.home-page .profile-lightbox-img,
    body.home-page .profile-lightbox-img-frame.img-fallback > img {
        width: min(92vw, calc(82dvh * (1280 / 1920)), 1280px);
        max-height: min(82dvh, calc(92vw * (1920 / 1280)), 1920px);
        aspect-ratio: 1280 / 1920;
        object-fit: cover;
        border-radius: 16px;
    }
    body.home-page .profile-lightbox-caption {
        padding: 20px 16px 14px;
        gap: 4px;
    }
    body.home-page .profile-lightbox-title {
        font-size: 15px;
    }
    body.home-page .profile-public-image-wrap .profile-public-image {
        height: 160px;
    }
}
