/* =========================================================================
   INODA — Galeri Inovasi Daerah Provinsi Sulawesi Barat
   Sistem desain di atas Bootstrap 5.3 murni (tanpa template pihak ketiga).
   Warna utama diatur Admin lewat /tema.css (variabel --bs-primary dkk.).
   ========================================================================= */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root,
[data-bs-theme=light] {
  --bs-font-sans-serif: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-size: .9375rem;
  --bs-body-bg: #f4f6fb;
  --bs-body-color: #1e2533;
  --bs-secondary-color: #667085;
  --bs-border-color: #e6e9f0;
  --bs-border-radius: .625rem;
  --bs-border-radius-lg: .875rem;
  --bs-border-radius-xl: 1.125rem;
  --app-surface: #ffffff;
  --app-surface-2: #f8f9fc;
  --app-sidebar-bg: #0f1b33;
  --app-sidebar-color: rgba(255, 255, 255, .72);
  --app-sidebar-active: #ffffff;
  --app-hero-bg: #0f1b33;
  --app-shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --app-shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 6px 16px -4px rgba(16, 24, 40, .08);
  --app-shadow-lg: 0 18px 40px -12px rgba(16, 24, 40, .22);
  --app-sidebar-w: 268px;
  --app-sidebar-mini: 78px;
  --app-topbar-h: 64px;
  --app-gold: #f5b82e;
  --app-teal: #0b8f87;
}

[data-bs-theme=dark] {
  --bs-body-bg: #0d1320;
  --bs-body-color: #dbe2ef;
  --bs-border-color: #233047;
  --app-surface: #131b2c;
  --app-surface-2: #172135;
  --app-sidebar-bg: #0a101c;
  --app-hero-bg: #0a101c;
  --app-shadow: 0 1px 3px rgba(0, 0, 0, .35), 0 6px 16px -4px rgba(0, 0, 0, .4);
}

body { font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 700; letter-spacing: -.01em; }
a { text-decoration: none; }
.fs-sm { font-size: .8125rem !important; }
.fs-xs { font-size: .75rem !important; }
.fw-medium { font-weight: 500 !important; }
.text-pre { white-space: pre-line; }
.min-w-0 { min-width: 0 !important; }
.lh-tight { line-height: 1.25; }
.cursor-pointer { cursor: pointer; }
.text-gold { color: var(--app-gold) !important; }
.bg-surface { background: var(--app-surface) !important; }
.bg-surface-2 { background: var(--app-surface-2) !important; }
.object-fit-cover { object-fit: cover; }
.ratio-card { aspect-ratio: 16 / 9; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 2000; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ----- Kartu ----- */
.card { --bs-card-bg: var(--app-surface); --bs-card-border-color: var(--bs-border-color); --bs-card-border-radius: var(--bs-border-radius-lg); --bs-card-cap-bg: transparent; box-shadow: var(--app-shadow-sm); }
.card-soft { border: 0; box-shadow: var(--app-shadow); }
.card-header { padding: 1rem 1.25rem; border-bottom-color: var(--bs-border-color); }
.card-body { padding: 1.25rem; }
.card-title-sm { font-size: 1rem; font-weight: 700; margin: 0; }
.card-hover { transition: transform .18s ease, box-shadow .18s ease; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--app-shadow-lg); }

/* ----- Ikon bulat ----- */
.icon-box { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.icon-box-sm { width: 34px; height: 34px; border-radius: 10px; font-size: 1rem; }
.icon-box-lg { width: 56px; height: 56px; border-radius: 16px; font-size: 1.5rem; }
.bg-soft-primary { background: rgba(var(--bs-primary-rgb), .1); color: var(--bs-primary); }
.bg-soft-success { background: rgba(25, 135, 84, .1); color: #198754; }
.bg-soft-warning { background: rgba(255, 193, 7, .16); color: #a46d00; }
.bg-soft-danger { background: rgba(220, 53, 69, .1); color: #c42a3a; }
.bg-soft-info { background: rgba(13, 202, 240, .12); color: #0a7d96; }
.bg-soft-teal { background: rgba(11, 143, 135, .12); color: var(--app-teal); }
.bg-soft-secondary { background: rgba(108, 117, 125, .12); color: #5c6670; }
[data-bs-theme=dark] .bg-soft-warning { color: #ffcd4d; }

/* ----- Badge lembut ----- */
.badge-soft { font-weight: 600; padding: .38em .62em; border-radius: 999px; }
.badge-soft.text-bg-primary { background: rgba(var(--bs-primary-rgb), .12) !important; color: var(--bs-primary) !important; }
.badge-soft.text-bg-success { background: rgba(25, 135, 84, .12) !important; color: #198754 !important; }
.badge-soft.text-bg-warning { background: rgba(255, 193, 7, .2) !important; color: #8a5a00 !important; }
.badge-soft.text-bg-danger { background: rgba(220, 53, 69, .12) !important; color: #c42a3a !important; }
.badge-soft.text-bg-info { background: rgba(13, 202, 240, .14) !important; color: #0a7d96 !important; }
.badge-soft.text-bg-secondary { background: rgba(108, 117, 125, .14) !important; color: #555f69 !important; }
.badge-soft.text-bg-dark { background: rgba(33, 37, 41, .12) !important; color: #212529 !important; }
[data-bs-theme=dark] .badge-soft.text-bg-dark { color: #e9ecef !important; background: rgba(233, 236, 239, .12) !important; }

/* ----- Statistik ----- */
.stat-card { position: relative; overflow: hidden; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat-card .stat-label { color: var(--bs-secondary-color); font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat-card .stat-meta { font-size: .8125rem; color: var(--bs-secondary-color); }

/* ----- Progres ----- */
.progress-thin { height: 6px; border-radius: 99px; background: rgba(var(--bs-primary-rgb), .1); }
.progress-thin .progress-bar { border-radius: 99px; }

/* ----- Skeleton & kosong ----- */
.skeleton { display: block; background: linear-gradient(90deg, rgba(150, 160, 180, .14) 25%, rgba(150, 160, 180, .26) 37%, rgba(150, 160, 180, .14) 63%); background-size: 400% 100%; animation: skeleton 1.3s ease infinite; border-radius: 8px; min-height: 12px; }
@keyframes skeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } .card-hover:hover { transform: none; } }
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--bs-secondary-color); }
.empty-state .empty-icon { width: 72px; height: 72px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 2rem; background: rgba(var(--bs-primary-rgb), .08); color: var(--bs-primary); margin-bottom: 1rem; }

/* ----- Tabel ----- */
.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .8rem 1rem; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--bs-secondary-color); font-weight: 700; background: var(--app-surface-2); border-bottom-width: 1px; white-space: nowrap; }
.table-hover > tbody > tr:hover > * { --bs-table-bg-state: rgba(var(--bs-primary-rgb), .035); }
.table-sticky thead th { position: sticky; top: 0; z-index: 1; }

/* ----- Formulir ----- */
.form-label { font-weight: 600; font-size: .875rem; margin-bottom: .35rem; }
.form-control, .form-select { border-radius: .6rem; padding: .55rem .85rem; }
.form-text { font-size: .78rem; }
.required::after { content: " *"; color: #dc3545; }
.input-icon { position: relative; }
.input-icon > .bi { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--bs-secondary-color); pointer-events: none; }
.input-icon > .form-control { padding-left: 2.4rem; }
.char-count { font-size: .75rem; color: var(--bs-secondary-color); }
.btn { font-weight: 600; border-radius: .6rem; }
.btn-icon { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.btn-soft-primary { background: rgba(var(--bs-primary-rgb), .1); color: var(--bs-primary); border: 0; }
.btn-soft-primary:hover { background: rgba(var(--bs-primary-rgb), .18); color: var(--bs-primary); }
.btn-soft-danger { background: rgba(220, 53, 69, .1); color: #c42a3a; border: 0; }
.btn-soft-danger:hover { background: rgba(220, 53, 69, .18); color: #a51d2c; }

/* =========================================================================
   Kerangka aplikasi (sidebar + topbar)
   ========================================================================= */
.app-sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--app-sidebar-w); z-index: 1040;
  background: var(--app-sidebar-bg); color: var(--app-sidebar-color);
  display: flex; flex-direction: column; transition: width .2s ease, transform .25s ease;
  background-image: radial-gradient(1200px 400px at -10% -10%, rgba(var(--bs-primary-rgb), .35), transparent 60%);
}
.app-sidebar .brand { height: var(--app-topbar-h); display: flex; align-items: center; gap: .75rem; padding: 0 1.25rem; color: #fff; font-weight: 800; letter-spacing: .02em; flex-shrink: 0; }
.app-sidebar .brand img { width: 36px; height: 36px; }
.app-sidebar .brand small { display: block; font-weight: 500; font-size: .7rem; color: var(--app-sidebar-color); letter-spacing: 0; }
.app-sidebar .nav-scroll { overflow-y: auto; flex: 1; padding: .5rem .75rem 1rem; scrollbar-width: thin; }
.app-sidebar .nav-title { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: rgba(255, 255, 255, .42); padding: 1rem .75rem .4rem; }
.app-sidebar .nav-link { display: flex; align-items: center; gap: .75rem; color: var(--app-sidebar-color); padding: .62rem .75rem; border-radius: .6rem; font-weight: 500; font-size: .9rem; position: relative; }
.app-sidebar .nav-link .bi { font-size: 1.1rem; width: 1.25rem; text-align: center; flex-shrink: 0; }
.app-sidebar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.app-sidebar .nav-link.active { color: var(--app-sidebar-active); background: rgba(var(--bs-primary-rgb), .9); box-shadow: 0 6px 16px -6px rgba(var(--bs-primary-rgb), .9); }
.app-sidebar .nav-link .badge { margin-left: auto; }
.app-sidebar .user-card { margin: .75rem; padding: .75rem; border-radius: .8rem; background: rgba(255, 255, 255, .06); display: flex; align-items: center; gap: .65rem; flex-shrink: 0; }
.app-sidebar .user-card .avatar { width: 38px; height: 38px; border-radius: 12px; background: rgba(var(--bs-primary-rgb), 1); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.app-sidebar .user-card .nama { color: #fff; font-weight: 600; font-size: .85rem; }
.app-sidebar .user-card .peran { font-size: .72rem; }

.app-main { margin-left: var(--app-sidebar-w); min-height: 100vh; display: flex; flex-direction: column; transition: margin-left .2s ease; }
.app-topbar { position: sticky; top: 0; z-index: 1030; height: var(--app-topbar-h); background: rgba(var(--bs-body-bg-rgb), .82); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--bs-border-color); display: flex; align-items: center; gap: .5rem; padding: 0 1.5rem; }
.app-content { padding: 1.5rem; flex: 1; }
.app-footer { padding: 1rem 1.5rem; color: var(--bs-secondary-color); font-size: .8125rem; border-top: 1px solid var(--bs-border-color); }
.page-head { margin-bottom: 1.25rem; }
.page-head h1 { font-size: 1.5rem; margin: 0; }
.page-head .breadcrumb { font-size: .8125rem; margin-bottom: .35rem; --bs-breadcrumb-divider-color: var(--bs-secondary-color); }

body.sidebar-mini .app-sidebar { width: var(--app-sidebar-mini); }
body.sidebar-mini .app-main { margin-left: var(--app-sidebar-mini); }
body.sidebar-mini .app-sidebar .nav-title,
body.sidebar-mini .app-sidebar .nav-link span,
body.sidebar-mini .app-sidebar .nav-link .badge,
body.sidebar-mini .app-sidebar .brand .brand-text,
body.sidebar-mini .app-sidebar .user-card .user-text { display: none; }
body.sidebar-mini .app-sidebar .nav-link { justify-content: center; }
body.sidebar-mini .app-sidebar .user-card { justify-content: center; }

@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); width: var(--app-sidebar-w) !important; box-shadow: var(--app-shadow-lg); }
  body.sidebar-open .app-sidebar { transform: none; }
  .app-main, body.sidebar-mini .app-main { margin-left: 0; }
  body.sidebar-mini .app-sidebar .nav-title,
  body.sidebar-mini .app-sidebar .nav-link span,
  body.sidebar-mini .app-sidebar .brand .brand-text,
  body.sidebar-mini .app-sidebar .user-card .user-text { display: initial; }
  .app-backdrop { position: fixed; inset: 0; background: rgba(9, 14, 25, .45); z-index: 1035; display: none; }
  body.sidebar-open .app-backdrop { display: block; }
  .app-content { padding: 1rem; }
  .app-topbar { padding: 0 1rem; }
}

/* ----- Langkah komponen (penyunting inovasi) ----- */
.komponen-nav .nav-link { display: flex; align-items: center; gap: .65rem; border-radius: .7rem; padding: .7rem .85rem; color: var(--bs-body-color); font-weight: 600; font-size: .9rem; }
.komponen-nav .nav-link .langkah { width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; background: var(--app-surface-2); border: 1px solid var(--bs-border-color); flex-shrink: 0; }
.komponen-nav .nav-link.lengkap .langkah { background: #198754; border-color: #198754; color: #fff; }
.komponen-nav .nav-link.active { background: rgba(var(--bs-primary-rgb), .1); color: var(--bs-primary); }
.komponen-nav .nav-link.active .langkah { border-color: var(--bs-primary); color: var(--bs-primary); }
.komponen-nav .nav-link.lengkap.active .langkah { color: #fff; }
.komponen-nav .nav-link.terkunci { opacity: .55; }

/* ----- Garis waktu ----- */
.timeline { position: relative; padding-left: 1.75rem; list-style: none; margin: 0; }
.timeline::before { content: ""; position: absolute; left: .55rem; top: .3rem; bottom: .3rem; width: 2px; background: var(--bs-border-color); }
.timeline > li { position: relative; padding-bottom: 1.1rem; }
.timeline > li:last-child { padding-bottom: 0; }
.timeline > li::before { content: ""; position: absolute; left: -1.5rem; top: .32rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--app-surface); border: 3px solid var(--bs-primary); }
.timeline > li.t-success::before { border-color: #198754; }
.timeline > li.t-warning::before { border-color: #e0a800; }
.timeline > li.t-danger::before { border-color: #dc3545; }
.timeline > li.t-secondary::before { border-color: #98a2b3; }

/* ----- Indikator ----- */
.indikator-item { border: 1px solid var(--bs-border-color); border-radius: .85rem; background: var(--app-surface); }
.indikator-item + .indikator-item { margin-top: .75rem; }
.indikator-item .nomor { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; background: var(--app-surface-2); flex-shrink: 0; }
.indikator-item.status-SESUAI { border-left: 4px solid #198754; }
.indikator-item.status-PERBAIKAN { border-left: 4px solid #dc3545; }
.indikator-item.status-DIISI { border-left: 4px solid var(--bs-primary); }
.berkas-chip { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--bs-border-color); border-radius: 999px; padding: .25rem .4rem .25rem .7rem; font-size: .8rem; background: var(--app-surface-2); max-width: 100%; }
.berkas-chip .nama { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.dropzone { border: 2px dashed var(--bs-border-color); border-radius: .85rem; padding: 1.25rem; text-align: center; color: var(--bs-secondary-color); transition: border-color .15s, background .15s; cursor: pointer; }
.dropzone:hover, .dropzone.over { border-color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .04); }

/* =========================================================================
   Situs publik
   ========================================================================= */
.pub-nav { position: sticky; top: 0; z-index: 1030; background: rgba(var(--bs-body-bg-rgb), .86); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.pub-nav.scrolled { border-bottom-color: var(--bs-border-color); box-shadow: var(--app-shadow-sm); }
.pub-nav .navbar-brand img { width: 38px; height: 38px; }
.pub-nav .nav-link { font-weight: 600; color: var(--bs-body-color); border-radius: .6rem; padding: .5rem .85rem !important; white-space: nowrap; }
.pub-nav .nav-link.active, .pub-nav .nav-link:hover { color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .08); }

.hero { position: relative; overflow: hidden; color: #fff; background: var(--app-hero-bg); padding: 5.5rem 0 7rem; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(900px 480px at 85% 10%, rgba(var(--bs-primary-rgb), .65), transparent 60%),
  radial-gradient(700px 420px at 0% 100%, rgba(11, 143, 135, .55), transparent 60%),
  radial-gradient(500px 260px at 60% 120%, rgba(245, 184, 46, .25), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; opacity: .14; background-image: radial-gradient(rgba(255, 255, 255, .9) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.hero .lead { color: rgba(255, 255, 255, .82); max-width: 640px; }
.hero .chip { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-weight: 600; font-size: .82rem; }
.hero-search { background: #fff; border-radius: 1rem; padding: .4rem; box-shadow: var(--app-shadow-lg); max-width: 640px; }
.hero-search .form-control { border: 0; box-shadow: none !important; font-size: 1rem; }
[data-bs-theme=dark] .hero-search { background: var(--app-surface); }
/* ---- Orbital pimpinan (hero beranda) ---- */
.foto-hero-pratinjau { position: relative; width: 120px; height: 140px; border-radius: .75rem; overflow: hidden; background: var(--app-hero-bg); }
.foto-hero-pratinjau img { width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.foto-hero-pratinjau .badge { position: absolute; left: .35rem; top: .35rem; font-size: .65rem; }
.foto-pimpinan { width: 64px; height: 64px; font-size: 1.15rem; color: var(--bs-primary); }
.orbit-wrap { display: flex; flex-direction: column; align-items: center; }
.orbit { position: relative; width: min(100%, 460px); aspect-ratio: 1; container-type: inline-size; }
.orbit::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--bs-primary-rgb), .55) 0%, rgba(var(--bs-primary-rgb), .18) 45%, transparent 70%); filter: blur(8px); }
.orbit-cincin { position: absolute; border-radius: 50%; pointer-events: none; }
.orbit-cincin-luar { inset: 6%; border: 1.5px dashed rgba(255, 255, 255, .3); }
.orbit-cincin-dalam { inset: 19%; border: 1px solid rgba(255, 255, 255, .16); background: radial-gradient(circle, rgba(255, 255, 255, .06), transparent 70%); }
.orbit-lintasan { position: absolute; inset: 0; animation: orbit-putar 70s linear infinite; }
.orbit-lintasan-dalam { animation-duration: 45s; animation-direction: reverse; pointer-events: none; }
@keyframes orbit-putar { to { transform: rotate(360deg); } }
.orbit-satelit, .orbit-ikon { position: absolute; top: 50%; left: 50%; --a: 0deg; }
.orbit-satelit { width: 20cqw; height: 20cqw; margin: -10cqw 0 0 -10cqw; transform: rotate(var(--a)) translateX(44cqw) rotate(calc(var(--a) * -1)); z-index: 2; outline: 0; }
.orbit-satelit-isi { position: relative; width: 100%; height: 100%; animation: orbit-putar 70s linear infinite reverse; }
.orbit-satelit img, .orbit-satelit .orbit-inisial { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 10px 26px rgba(4, 12, 32, .45); background: #e8eef9; transition: transform .25s ease; }
.orbit-satelit:hover img, .orbit-satelit:focus-visible img, .orbit-satelit:hover .orbit-inisial { transform: scale(1.08); }
.orbit-satelit:focus-visible img, .orbit-satelit:focus-visible .orbit-inisial { outline: 3px solid var(--app-warning, #f5b82e); outline-offset: 3px; }
.orbit-label { position: absolute; top: calc(100% + .35rem); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; max-width: 36cqw; padding: .2rem .6rem; border-radius: .6rem; background: rgba(255, 255, 255, .95); color: #101828; box-shadow: 0 6px 16px rgba(4, 12, 32, .3); line-height: 1.15; text-align: center; white-space: nowrap; }
.orbit-label b, .orbit-label small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.orbit-label b { font-size: .72rem; }
.orbit-label small { font-size: .64rem; color: #475467; }
.orbit-ikon { width: 10cqw; height: 10cqw; margin: -5cqw 0 0 -5cqw; transform: rotate(var(--a)) translateX(31cqw) rotate(calc(var(--a) * -1)); }
.orbit-ikon > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: 4.2cqw; backdrop-filter: blur(6px); animation: orbit-putar 45s linear infinite; }
.orbit-ikon.i0 { --a: 20deg; } .orbit-ikon.i1 { --a: 140deg; } .orbit-ikon.i2 { --a: 260deg; }
.orbit-satelit.n1.s0 { --a: -35deg; }
.orbit-satelit.n2.s0 { --a: -35deg; } .orbit-satelit.n2.s1 { --a: 145deg; }
.orbit-satelit.n3.s0 { --a: -90deg; } .orbit-satelit.n3.s1 { --a: 30deg; } .orbit-satelit.n3.s2 { --a: 150deg; }
.orbit-satelit.n4.s0 { --a: -45deg; } .orbit-satelit.n4.s1 { --a: 45deg; } .orbit-satelit.n4.s2 { --a: 135deg; } .orbit-satelit.n4.s3 { --a: 225deg; }
.orbit-satelit.n5.s0 { --a: -90deg; } .orbit-satelit.n5.s1 { --a: -18deg; } .orbit-satelit.n5.s2 { --a: 54deg; } .orbit-satelit.n5.s3 { --a: 126deg; } .orbit-satelit.n5.s4 { --a: 198deg; }
/* Foto utama pimpinan (latar transparan) di depan lapisan orbit. */
.orbit-hero .orbit-foto { position: absolute; left: 50%; bottom: 0; z-index: 5; height: 104%; width: auto; max-width: 96%; object-fit: contain; object-position: 50% 100%; transform: translateX(-50%); pointer-events: none;
  filter: drop-shadow(0 22px 34px rgba(4, 12, 32, .55)); -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); }
.orbit-hero .orbit::after { content: ""; position: absolute; left: 50%; bottom: 4%; width: 70%; height: 18%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--bs-primary-rgb), .55), transparent); filter: blur(10px); z-index: 4; pointer-events: none; }
.orbit-hero .orbit-papan { margin-top: -2.25rem; z-index: 6; }
.orbit-inti { position: absolute; top: 50%; left: 50%; width: 44cqw; height: 44cqw; transform: translate(-50%, -50%); border-radius: 50%; padding: 1.2cqw; background: conic-gradient(from 180deg, #fff, rgba(var(--bs-primary-rgb), .9), #4fc1c6, #fff); box-shadow: 0 0 0 1.4cqw rgba(255, 255, 255, .08), 0 22px 60px rgba(4, 12, 32, .55); z-index: 3; }
.orbit-inti img, .orbit-inti .orbit-inisial { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: #e8eef9; }
.orbit-inti .orbit-logo { object-fit: contain; padding: 14%; background: #fff; }
.orbit-inisial { display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 6.5cqw; letter-spacing: .02em; background: linear-gradient(135deg, var(--bs-primary), #0b8f87) !important; }
.orbit-inti .orbit-inisial { font-size: 13cqw; }
.orbit-kosong .orbit-satelit .orbit-inisial { font-size: 7cqw; }
.orbit-papan { position: relative; z-index: 4; display: flex; flex-direction: column; align-items: center; width: max-content; max-width: 92%; margin: -1.25rem auto 0; padding: .55rem 1.15rem; border-radius: 1rem; background: rgba(255, 255, 255, .96); color: #101828; box-shadow: 0 14px 34px rgba(4, 12, 32, .4); text-align: center; }
.orbit-papan b { font-size: 1rem; line-height: 1.25; }
.orbit-papan span { font-size: .8rem; color: #475467; }
.orbit:hover .orbit-lintasan, .orbit:hover .orbit-satelit-isi, .orbit:hover .orbit-ikon > span,
.orbit:focus-within .orbit-lintasan, .orbit:focus-within .orbit-satelit-isi { animation-play-state: paused; }
@media (max-width: 991.98px) { .orbit { width: min(100%, 380px); margin-top: 1rem; } }
@media (prefers-reduced-motion: reduce) { .orbit-lintasan, .orbit-satelit-isi, .orbit-ikon > span { animation: none; } }

.hero-stats { margin-top: -4.25rem; position: relative; z-index: 2; }
.hero-stat { background: var(--app-surface); border-radius: 1rem; padding: 1.25rem; box-shadow: var(--app-shadow); height: 100%; }
.hero-stat .val { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.hero-stat .lbl { color: var(--bs-secondary-color); font-weight: 600; font-size: .85rem; margin-top: .35rem; }

.section { padding: 4.5rem 0; }
.section-sm { padding: 3rem 0; }
.section-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; }
.section-kicker { color: var(--bs-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }

.inov-card { border: 1px solid var(--bs-border-color); border-radius: 1rem; overflow: hidden; background: var(--app-surface); height: 100%; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.inov-card:hover { transform: translateY(-4px); box-shadow: var(--app-shadow-lg); }
.inov-card .media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .9), rgba(11, 143, 135, .85)); overflow: hidden; }
.inov-card .media img { width: 100%; height: 100%; object-fit: cover; }
.inov-card .media .placeholder-ikon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .85); font-size: 3rem; }
.inov-card .media .badges { position: absolute; top: .75rem; left: .75rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.inov-card .media .badges .badge { background: rgba(255, 255, 255, .92); color: #1e2533; font-weight: 700; }
.inov-card .media .play { position: absolute; right: .75rem; bottom: .75rem; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; display: flex; align-items: center; justify-content: center; }
.inov-card .body { padding: 1.1rem 1.15rem; flex: 1; display: flex; flex-direction: column; }
.inov-card .judul { font-weight: 700; font-size: 1.05rem; line-height: 1.3; color: var(--bs-body-color); }
.inov-card .ringkas { color: var(--bs-secondary-color); font-size: .875rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.inov-card .meta { font-size: .8rem; color: var(--bs-secondary-color); border-top: 1px solid var(--bs-border-color); padding: .75rem 1.15rem; display: flex; justify-content: space-between; gap: .5rem; }
.stretched-link:focus-visible { outline: 3px solid rgba(var(--bs-primary-rgb), .5); outline-offset: 2px; }

.komitmen-card { border-radius: 1rem; padding: 1.5rem; background: var(--app-surface); border: 1px solid var(--bs-border-color); height: 100%; }
.sambutan { border-radius: 1.25rem; background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .08), rgba(11, 143, 135, .08)); border: 1px solid var(--bs-border-color); padding: 2.25rem; }
.sambutan blockquote { font-size: 1.12rem; line-height: 1.7; }
.cta { border-radius: 1.25rem; background: var(--app-hero-bg); color: #fff; padding: 2.5rem; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 100% 0, rgba(var(--bs-primary-rgb), .7), transparent 60%), radial-gradient(500px 260px at 0 100%, rgba(11, 143, 135, .6), transparent 60%); }
.cta > * { position: relative; }

.tahun-rail { position: relative; }
.tahun-rail .tahun-blok { position: relative; padding-left: 2.25rem; padding-bottom: 2.25rem; }
.tahun-rail .tahun-blok::before { content: ""; position: absolute; left: .7rem; top: 2.4rem; bottom: 0; width: 2px; background: var(--bs-border-color); }
.tahun-rail .tahun-blok:last-child::before { display: none; }
.tahun-rail .tahun-label { position: absolute; left: 0; top: .2rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--bs-primary); box-shadow: 0 0 0 6px rgba(var(--bs-primary-rgb), .15); }

.filter-bar { position: sticky; top: 72px; z-index: 5; }
.pub-footer { background: var(--app-hero-bg); color: rgba(255, 255, 255, .72); padding: 3.5rem 0 2rem; }
.pub-footer a { color: rgba(255, 255, 255, .82); }
.pub-footer a:hover { color: #fff; }
.pub-footer h6 { color: #fff; }

.detail-hero { background: var(--app-hero-bg); color: #fff; padding: 3rem 0 4.5rem; position: relative; overflow: hidden; }
.detail-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 90% 0, rgba(var(--bs-primary-rgb), .55), transparent 60%); }
.detail-hero .container { position: relative; }
.detail-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .5); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .75); }
/* ---- Sorotan detail inovasi: sosok inovator & ide inovasi ---- */
.sorotan { position: relative; border-radius: 1.25rem; overflow: hidden; background: var(--app-surface, var(--bs-body-bg)); border: 1px solid var(--bs-border-color); box-shadow: var(--app-shadow-sm); }
.sorotan-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.sorotan-sosok { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.75rem 1.5rem; color: #fff; background: var(--app-hero-bg); }
.sorotan-sosok::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px 220px at 50% 30%, rgba(var(--bs-primary-rgb), .6), transparent 70%); pointer-events: none; }
.sorotan-sosok > * { position: relative; }
.sorotan-sosok .sorotan-label { color: rgba(255, 255, 255, .75); }
.sorotan-foto { position: relative; width: 168px; height: 168px; border-radius: 50%; padding: 5px; background: conic-gradient(from 200deg, #fff, rgba(var(--bs-primary-rgb), 1), #4fc1c6, #f5b82e, #fff); box-shadow: 0 0 0 8px rgba(255, 255, 255, .07), 0 18px 40px rgba(4, 12, 32, .45); margin-bottom: 1rem; }
.sorotan-foto img, .sorotan-foto > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: linear-gradient(135deg, var(--bs-primary), #0b8f87); color: #fff; font-size: 3rem; font-weight: 800; }
.sorotan-lencana { position: absolute; right: 6px; bottom: 8px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #f5b82e; color: #3d2b00; font-size: 1.1rem; border: 3px solid #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
.sorotan-nama { font-size: 1.15rem; font-weight: 800; line-height: 1.25; }
.sorotan-jabatan { font-size: .9rem; color: rgba(255, 255, 255, .85); margin-top: .15rem; }
.sorotan-unit { font-size: .8rem; color: rgba(255, 255, 255, .65); margin-top: .35rem; }
.sorotan-tim { display: flex; align-items: center; margin-top: 1rem; color: rgba(255, 255, 255, .75); }
.sorotan-tim-av { display: grid; place-items: center; width: 30px; height: 30px; margin-left: -8px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--bs-primary); font-size: .68rem; font-weight: 800; border: 2px solid rgba(16, 24, 40, .6); }
.sorotan-tim-av:first-child { margin-left: 0; }
.sorotan-tim-av.lebih { background: rgba(255, 255, 255, .2); color: #fff; }
.sorotan-ide { position: relative; display: flex; flex-direction: column; padding: 1.75rem 1.75rem 1.5rem; background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .07), transparent 60%); }
.sorotan-kutip { position: absolute; top: .5rem; right: 1.25rem; font-size: 5.5rem; line-height: 1; color: rgba(var(--bs-primary-rgb), .12); }
.sorotan-teks { position: relative; font-size: clamp(1.1rem, 1.7vw, 1.35rem); font-weight: 600; line-height: 1.5; letter-spacing: -.01em; border-left: 4px solid var(--bs-primary); padding-left: 1rem; white-space: pre-line; }
@media (max-width: 767.98px) { .sorotan-foto { width: 132px; height: 132px; } .sorotan-ide { padding: 1.5rem 1.25rem; } }
@media print { .sorotan-sosok { background: none !important; color: #000; } .sorotan-sosok .sorotan-label, .sorotan-jabatan, .sorotan-unit, .sorotan-tim { color: #333 !important; } }
.detail-hero .breadcrumb a { color: rgba(255, 255, 255, .85); }
.detail-body { margin-top: -2.75rem; position: relative; z-index: 2; }
.prose { line-height: 1.75; font-size: 1rem; }
.prose p { margin-bottom: 1rem; }
.video-frame { border-radius: 1rem; overflow: hidden; box-shadow: var(--app-shadow); background: #000; }

/* ----- Halaman auth ----- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-side { background: var(--app-hero-bg); color: #fff; position: relative; overflow: hidden; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 380px at 100% 0, rgba(var(--bs-primary-rgb), .7), transparent 60%), radial-gradient(520px 320px at 0 100%, rgba(11, 143, 135, .6), transparent 60%); }
.auth-side > * { position: relative; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.25rem; }
.auth-card { width: 100%; max-width: 470px; }
.qr-box { border: 1px dashed var(--bs-border-color); border-radius: 1rem; padding: 1rem; min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--app-surface); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ----- Toast ----- */
.toast-container { z-index: 1090; }

/* ----- Cetak ----- */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff !important; font-size: 11pt; }
  .app-sidebar, .app-topbar, .app-footer, .no-print, .toast-container, .btn, .pub-nav, .pub-footer { display: none !important; }
  .app-main { margin: 0 !important; }
  .app-content { padding: 0 !important; }
  .card { box-shadow: none !important; border-color: #ccc !important; break-inside: avoid; }
  .print-only { display: block !important; }
  a[href]::after { content: none !important; }
  canvas { max-width: 100% !important; }
}
.print-only { display: none; }

/* ===================== Beranda: foto latar hero ===================== */
.hero-latar { position: absolute; inset: 0; z-index: 0; }
.hero-latar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 1.4s ease, transform 8s ease-out; }
.hero-latar img.aktif { opacity: 1; transform: scale(1); }
.hero-berfoto::before { z-index: 1; background: linear-gradient(100deg, rgba(8, 14, 30, calc(var(--hero-gelap, .55) + .15)) 0%, rgba(8, 14, 30, var(--hero-gelap, .55)) 55%, rgba(8, 14, 30, calc(var(--hero-gelap, .55) - .15)) 100%); }
.hero-berfoto::after { z-index: 1; opacity: .08; }
.hero-berfoto .container { z-index: 2; }
.hero-berfoto h1, .hero-berfoto .lead { text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero-keterangan { position: absolute; right: 1rem; bottom: 5rem; z-index: 2; max-width: min(420px, 80vw); font-size: .75rem; color: rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .35); border-radius: 999px; padding: .3rem .8rem; backdrop-filter: blur(4px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .hero-latar img { transition: none; transform: none; } }

/* ===================== Berita publik ===================== */
.berita-card .judul { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.berita-sorotan .berita-sorotan-media { position: relative; height: 100%; min-height: 260px; background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .9), rgba(11, 143, 135, .85)); }
.berita-sorotan .berita-sorotan-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.berita-sorotan .placeholder-ikon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .85); font-size: 4rem; }
.berita-sorotan { transition: box-shadow .18s ease; }
.berita-sorotan:hover { box-shadow: var(--app-shadow-lg); }
.berita-sampul { background: var(--bs-tertiary-bg); }
.berita-sampul img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.berita-sampul figcaption { font-size: .8rem; color: var(--bs-secondary-color); padding: .6rem 1.5rem; border-bottom: 1px solid var(--bs-border-color); }
.berita-mini-media { width: 72px; height: 54px; border-radius: .6rem; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); }
.berita-mini-media img { width: 100%; height: 100%; object-fit: cover; }
.berita-mini:hover .fw-semibold { color: var(--bs-primary); }

/* Tipografi isi berita (juga dipakai editor). */
.berita-isi { font-size: 1.05rem; line-height: 1.8; overflow-wrap: anywhere; }
.berita-isi > *:first-child { margin-top: 0; }
.berita-isi p { margin: 0 0 1.1rem; }
.berita-isi h2 { font-size: 1.5rem; font-weight: 800; margin: 2rem 0 .9rem; letter-spacing: -.01em; }
.berita-isi h3 { font-size: 1.25rem; font-weight: 700; margin: 1.6rem 0 .75rem; }
.berita-isi h4 { font-size: 1.1rem; font-weight: 700; margin: 1.4rem 0 .6rem; }
.berita-isi ul, .berita-isi ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
.berita-isi li { margin-bottom: .35rem; }
.berita-isi blockquote { border-left: 4px solid var(--bs-primary); background: rgba(var(--bs-primary-rgb), .06); padding: .9rem 1.2rem; border-radius: 0 .75rem .75rem 0; margin: 1.4rem 0; font-style: italic; }
.berita-isi blockquote > :last-child { margin-bottom: 0; }
.berita-isi a { text-decoration: underline; text-underline-offset: 3px; }
.berita-isi img { max-width: 100%; height: auto; border-radius: .75rem; }
.berita-isi figure { margin: 1.6rem 0; }
.berita-isi figure.gambar-tengah { text-align: center; }
.berita-isi figure.gambar-tengah img { max-width: 75%; }
.berita-isi figure.gambar-kiri { float: left; max-width: 45%; margin: .3rem 1.4rem 1rem 0; }
.berita-isi figure.gambar-kanan { float: right; max-width: 45%; margin: .3rem 0 1rem 1.4rem; }
.berita-isi figcaption { font-size: .82rem; color: var(--bs-secondary-color); margin-top: .5rem; text-align: center; font-style: normal; }
.berita-isi figure.video { position: relative; aspect-ratio: 16 / 9; }
.berita-isi figure.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: .75rem; }
.berita-isi table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; }
.berita-isi th, .berita-isi td { border: 1px solid var(--bs-border-color); padding: .5rem .7rem; }
.berita-isi th { background: var(--bs-tertiary-bg); }
.berita-isi pre { background: var(--bs-tertiary-bg); padding: 1rem; border-radius: .6rem; overflow: auto; font-size: .85rem; }
.berita-isi hr { margin: 2rem auto; width: 40%; opacity: .2; }
.berita-isi .text-justify { text-align: justify; }
.berita-isi::after { content: ""; display: table; clear: both; }
@media (max-width: 575.98px) { .berita-isi figure.gambar-kiri, .berita-isi figure.gambar-kanan { float: none; max-width: 100%; margin: 1.2rem 0; } }

/* ===================== Editor WYSIWYG ===================== */
.editor { border: 1px solid var(--bs-border-color); border-radius: .85rem; background: var(--app-surface); }
.editor > :first-child { border-top-left-radius: calc(.85rem - 1px); border-top-right-radius: calc(.85rem - 1px); }
.editor > .editor-kaki { border-bottom-left-radius: calc(.85rem - 1px); border-bottom-right-radius: calc(.85rem - 1px); }
.editor:focus-within { border-color: rgba(var(--bs-primary-rgb), .55); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .12); }
.editor.is-invalid { border-color: var(--bs-danger); }
.editor-alat { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; gap: .25rem; padding: .45rem; border-bottom: 1px solid var(--bs-border-color); background: var(--bs-tertiary-bg); }
.editor-alat .btn { --bs-btn-padding-x: .5rem; --bs-btn-padding-y: .3rem; line-height: 1; border: 0; }
.editor-alat .btn.active { background: rgba(var(--bs-primary-rgb), .14); color: var(--bs-primary); }
.editor-alat .pemisah { width: 1px; background: var(--bs-border-color); margin: .15rem .2rem; }
.editor-alat .form-select { width: auto; --bs-form-select-bg-img: none; padding-right: .75rem; }
.editor-isi { min-height: 420px; max-height: 70vh; overflow-y: auto; padding: 1.4rem 1.6rem; outline: 0; }
.editor-isi:empty::before { content: attr(data-placeholder); color: var(--bs-secondary-color); pointer-events: none; }
.editor-isi img { cursor: pointer; }
.editor-isi img.terpilih { outline: 3px solid var(--bs-primary); outline-offset: 2px; }
.editor-isi figure.video::before { content: "▶ Video YouTube"; position: absolute; left: .75rem; top: .75rem; z-index: 1; font-size: .75rem; background: rgba(0, 0, 0, .6); color: #fff; border-radius: .4rem; padding: .15rem .5rem; pointer-events: none; }
.editor-isi figure.video iframe { pointer-events: none; }
.editor-sumber { width: 100%; min-height: 420px; max-height: 70vh; border: 0; padding: 1rem 1.2rem; font-family: var(--bs-font-monospace); font-size: .82rem; background: var(--bs-body-bg); resize: vertical; outline: 0; }
.editor-kaki { display: flex; justify-content: space-between; gap: .5rem; font-size: .75rem; color: var(--bs-secondary-color); padding: .4rem .8rem; border-top: 1px solid var(--bs-border-color); background: var(--bs-tertiary-bg); }
.editor.layar-penuh { position: fixed; inset: 0; z-index: 1080; border-radius: 0; display: flex; flex-direction: column; }
.editor.layar-penuh .editor-alat { top: 0; }
.editor.layar-penuh .editor-isi, .editor.layar-penuh .editor-sumber { flex: 1; max-height: none; }
.editor.unggah-seret .editor-isi { background: rgba(var(--bs-primary-rgb), .05); outline: 2px dashed rgba(var(--bs-primary-rgb), .5); outline-offset: -8px; }

/* Pengelola berita */
.sampul-pratinjau { aspect-ratio: 16 / 9; border-radius: .75rem; overflow: hidden; background: var(--bs-tertiary-bg); border: 1px dashed var(--bs-border-color); display: flex; align-items: center; justify-content: center; color: var(--bs-secondary-color); cursor: pointer; }
.sampul-pratinjau img { width: 100%; height: 100%; object-fit: cover; }
.tabel-thumb { width: 64px; height: 40px; border-radius: .4rem; object-fit: cover; background: var(--bs-tertiary-bg); display: inline-flex; align-items: center; justify-content: center; color: var(--bs-secondary-color); }
.latar-item { position: relative; border-radius: .75rem; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bs-tertiary-bg); }
.latar-item img { width: 100%; height: 100%; object-fit: cover; }
.latar-item .latar-aksi { position: absolute; top: .4rem; right: .4rem; display: flex; gap: .25rem; }
.latar-item .latar-no { position: absolute; top: .4rem; left: .4rem; }
.seksi-baris { border: 1px solid var(--bs-border-color); border-radius: .75rem; padding: .75rem .9rem; background: var(--app-surface); }
.seksi-baris.nonaktif { opacity: .6; }

/* ===================== Indeks Inovasi Daerah ===================== */
.indeks-kartu { color: #fff; background: var(--app-hero-bg); border-radius: 1.25rem; padding: 1.75rem; box-shadow: var(--app-shadow-lg); position: relative; overflow: hidden; }
.indeks-kartu::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 260px at 100% 0, rgba(var(--bs-primary-rgb), .55), transparent 65%); pointer-events: none; }
.indeks-kartu > * { position: relative; }
.indeks-skor { font-size: clamp(3rem, 6vw, 4.25rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.indeks-ubah { display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px; padding: .35rem .85rem; font-size: .85rem; background: rgba(255, 255, 255, .14); }
.indeks-ubah.indeks-naik { background: rgba(25, 195, 125, .25); }
.indeks-ubah.indeks-turun { background: rgba(240, 82, 82, .28); }
.indeks-naik-teks { color: var(--bs-success); font-weight: 700; }
.indeks-turun-teks { color: var(--bs-danger); font-weight: 700; }
.indeks-tetap-teks { color: var(--bs-secondary-color); }

/* ===================== Buku panduan ===================== */
.panduan-sampul { background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .08), transparent 60%), var(--app-surface); }
.panduan-daftar { top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
.panduan-daftar .list-group-item { font-size: .85rem; border: 0; padding: .45rem 1rem; }
.panduan-daftar .list-group-item.active { background: rgba(var(--bs-primary-rgb), .1); color: var(--bs-primary); font-weight: 700; }
.panduan-no { display: inline-flex; width: 1.5rem; height: 1.5rem; border-radius: 50%; align-items: center; justify-content: center; font-size: .7rem; font-weight: 800; background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); flex-shrink: 0; }
.panduan-daftar .active .panduan-no { background: var(--bs-primary); color: #fff; }
.panduan-bab { scroll-margin-top: 84px; transition: box-shadow .4s ease; }
.panduan-sorot { box-shadow: 0 0 0 .3rem rgba(var(--bs-primary-rgb), .35) !important; }
.panduan-bagian + .panduan-bagian { border-top: 1px dashed var(--bs-border-color); margin-top: 1.25rem; }
.panduan-langkah { counter-reset: langkah; list-style: none; padding-left: 0; margin: .75rem 0 1rem; }
.panduan-langkah > li { counter-increment: langkah; position: relative; padding: .15rem 0 .55rem 2.4rem; }
.panduan-langkah > li::before { content: counter(langkah); position: absolute; left: 0; top: .05rem; width: 1.7rem; height: 1.7rem; border-radius: .5rem; background: rgba(var(--bs-primary-rgb), .12); color: var(--bs-primary); font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; }
.panduan-gambar { margin: 1rem 0 1.25rem; border: 1px solid var(--bs-border-color); border-radius: 1rem; overflow: hidden; background: var(--bs-tertiary-bg); }
.panduan-gambar-tombol { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.panduan-gambar-tombol img { display: block; width: 100%; height: auto; }
.panduan-zoom { position: absolute; right: .75rem; top: .75rem; width: 2.2rem; height: 2.2rem; border-radius: .6rem; background: rgba(0, 0, 0, .55); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s ease; }
.panduan-gambar-tombol:hover .panduan-zoom, .panduan-gambar-tombol:focus-visible .panduan-zoom { opacity: 1; }
.panduan-gambar figcaption { padding: .9rem 1.1rem; background: var(--app-surface); border-top: 1px solid var(--bs-border-color); font-size: .875rem; }
.panduan-penanda { counter-reset: penanda; list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.panduan-penanda > li { counter-increment: penanda; position: relative; padding-left: 2rem; }
.panduan-penanda > li::before { content: counter(penanda); position: absolute; left: 0; top: 0; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: #f59e0b; color: #fff; font-weight: 800; font-size: .75rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px #fff; }
@media print {
	.app-sidebar, .app-topbar, .app-footer, .d-print-none, .breadcrumb { display: none !important; }
	.app-main { margin: 0 !important; padding: 0 !important; }
	.panduan .col-xl-9 { width: 100% !important; flex: 0 0 100%; max-width: 100%; }
	.panduan-bab { break-before: page; box-shadow: none !important; border: 0 !important; }
	.panduan-gambar { break-inside: avoid; }
	.panduan-bab .card-body { padding: 0 !important; }
	.card { box-shadow: none !important; }
}

/* ===================================================================
   Buku digital (flip book) — bahan promosi inovasi (komponen flipbook.js)
   =================================================================== */
.fb { position: relative; outline: 0; --fb-kertas: #fff; --fb-pw: 320px; }
.fb:focus-visible { box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .4); border-radius: 1rem; }
.fb-panggung { position: relative; display: flex; overflow: hidden; padding: 20px 12px; min-height: 340px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fb-diperbesar .fb-panggung { overflow: auto; touch-action: auto; cursor: grab; }
.fb-panggung.fb-seret { cursor: grabbing; }
.fb-buku { position: relative; margin: auto; display: flex; flex-shrink: 0; perspective: 2600px; transition: transform .6s cubic-bezier(.45, .05, .3, 1); }
.fb:not(.fb-siap) .fb-buku { visibility: hidden; height: 0 !important; }
.fb-hal { position: relative; flex: 0 0 var(--fb-pw); width: var(--fb-pw); height: 100%; background: var(--fb-kertas); display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 24px 48px -20px rgba(4, 12, 32, .6), 0 2px 6px rgba(4, 12, 32, .18); }
.fb-hal canvas, .fb-muka canvas { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; }
.fb-tunggal .fb-kiri { display: none; }
.fb-tunggal .fb-kanan { border-radius: .4rem; }
.fb-ganda .fb-kiri { border-radius: .5rem 0 0 .5rem; }
.fb-ganda .fb-kanan { border-radius: 0 .5rem .5rem 0; }
.fb-hal.fb-kosong { background: transparent; box-shadow: none; }
.fb-ganda .fb-hal::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12%; pointer-events: none; }
.fb-ganda .fb-kiri::after { right: 0; background: linear-gradient(to left, rgba(0, 0, 0, .2), rgba(0, 0, 0, .05) 40%, transparent); }
.fb-ganda .fb-kanan::after { left: 0; background: linear-gradient(to right, rgba(0, 0, 0, .22), rgba(0, 0, 0, .05) 40%, transparent); }
.fb-hal.fb-kosong::after { display: none; }
.fb-memuat { background: linear-gradient(100deg, #eef1f6 30%, #fafbfd 50%, #eef1f6 70%) 0 0 / 300% 100%; animation: fb-kilau 1.3s linear infinite; }
@keyframes fb-kilau { to { background-position: -150% 0; } }
.fb-galat-hal::before { content: "Halaman gagal dimuat"; font-size: .8rem; color: #6c757d; }
/* Daun yang sedang dibalik */
.fb-daun { position: absolute; top: 0; height: 100%; width: var(--fb-pw); transform-style: preserve-3d; z-index: 3; will-change: transform; }
.fb-daun-kanan { left: var(--fb-pw); transform-origin: left center; }
.fb-daun-kiri { left: 0; transform-origin: right center; }
.fb-daun-penuh { left: 0; transform-origin: left center; }
.fb-muka { position: absolute; inset: 0; background: var(--fb-kertas); -webkit-backface-visibility: hidden; backface-visibility: hidden; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 0 28px rgba(0, 0, 0, .22); }
.fb-belakang { transform: rotateY(180deg); }
.fb-muka.fb-kosong { background: transparent; box-shadow: none; }
.fb-muka.fb-kertas { background: linear-gradient(to left, #e7eaf0, #fff 35%); }
.fb-muka::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.fb-daun-kanan .fb-depan::after, .fb-daun-penuh .fb-depan::after { background: linear-gradient(to right, rgba(0, 0, 0, .38), transparent 70%); }
.fb-daun-kanan .fb-belakang::after { background: linear-gradient(to left, rgba(0, 0, 0, .38), transparent 70%); }
.fb-daun-kiri .fb-depan::after { background: linear-gradient(to left, rgba(0, 0, 0, .38), transparent 70%); }
.fb-daun-kiri .fb-belakang::after, .fb-daun-penuh .fb-belakang::after { background: linear-gradient(to right, rgba(0, 0, 0, .38), transparent 70%); }
.fb-membalik .fb-depan::after { animation: fb-redup var(--fb-durasi, 720ms) ease-in both; }
.fb-membalik .fb-belakang::after { animation: fb-terang var(--fb-durasi, 720ms) ease-out both; }
.fb-membalik.fb-datang .fb-depan::after { animation-name: fb-terang; }
.fb-membalik.fb-datang .fb-belakang::after { animation-name: fb-redup; }
@keyframes fb-redup { from { opacity: 0; } to { opacity: 1; } }
@keyframes fb-terang { from { opacity: 1; } to { opacity: 0; } }
/* Status memuat / galat */
.fb-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 1.5rem; text-align: center; }
.fb-status:empty { display: none; }
.fb-kotak { width: 100%; max-width: 380px; background: var(--app-surface); color: var(--bs-body-color); border-radius: 1rem; padding: 1.75rem; box-shadow: var(--app-shadow-lg); }
.fb-kotak .progress { height: 6px; }
.fb-awal { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 300px; padding: 2rem 1rem; }
.fb-awal .icon-box { background: rgba(255, 255, 255, .12); color: #fff; }
/* Bilah kontrol */
.fb-alat { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .75rem; margin: .5rem auto 0; padding: .35rem .6rem; width: fit-content; max-width: 100%; border-radius: 999px; background: var(--app-surface); border: 1px solid var(--bs-border-color); box-shadow: var(--app-shadow); }
.fb-grup { display: inline-flex; align-items: center; gap: .1rem; }
.btn-fb { --bs-btn-padding-x: 0; --bs-btn-padding-y: 0; --bs-btn-color: var(--bs-body-color); --bs-btn-hover-bg: rgba(var(--bs-primary-rgb), .1); --bs-btn-hover-color: var(--bs-primary); --bs-btn-active-bg: rgba(var(--bs-primary-rgb), .18); --bs-btn-active-color: var(--bs-primary); --bs-btn-disabled-color: var(--bs-body-color); --bs-btn-disabled-opacity: .35; --bs-btn-border-width: 0; display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 999px; line-height: 1; }
.fb-posisi { display: flex; align-items: center; gap: .6rem; }
.fb-posisi .form-range { width: 160px; }
.fb-label { font-size: .82rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 96px; text-align: center; }
.fb-zoom { font-size: .75rem; width: 2.75rem; text-align: center; font-variant-numeric: tabular-nums; }
.fb-pemisah { width: 1px; height: 1.5rem; background: var(--bs-border-color); }
@media (max-width: 575.98px) {
  .fb-alat { border-radius: 1rem; width: 100%; }
  .fb-posisi { order: -1; flex-basis: 100%; }
  .fb-posisi .form-range { flex: 1; width: auto; }
}
/* Layar penuh */
.fb:fullscreen, .fb.fb-semu { background: #0b1220; padding: 1rem; display: flex; flex-direction: column; justify-content: center; }
.fb.fb-semu { position: fixed; inset: 0; z-index: 1085; }
html.fb-kunci-gulir { overflow: hidden; }
.fb:fullscreen .fb-alat, .fb.fb-semu .fb-alat { background: rgba(10, 18, 36, .8); border-color: rgba(255, 255, 255, .15); color: #fff; }
.fb:fullscreen .btn-fb, .fb.fb-semu .btn-fb { --bs-btn-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .14); --bs-btn-hover-color: #fff; --bs-btn-active-bg: rgba(255, 255, 255, .22); --bs-btn-active-color: #fff; --bs-btn-disabled-color: #fff; }
.fb-tutup-penuh { position: absolute; top: .75rem; right: .75rem; z-index: 6; border-radius: 999px; }
[data-bs-theme="dark"] .fb-memuat { background-image: linear-gradient(100deg, #d9dee8 30%, #eef1f6 50%, #d9dee8 70%); }
@media (prefers-reduced-motion: reduce) { .fb-buku { transition: none; } .fb-memuat { animation: none; } }

/* ---- Etalase publikasi di detail inovasi ---- */
.etalase { position: relative; background: var(--app-hero-bg); color: #fff; padding: 3.5rem 0 3rem; overflow: hidden; scroll-margin-top: 72px; }
.etalase::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(900px 420px at 12% 0, rgba(var(--bs-primary-rgb), .5), transparent 60%), radial-gradient(720px 380px at 100% 100%, rgba(11, 143, 135, .38), transparent 60%); }
.etalase > .container { position: relative; }
.etalase-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--app-gold); margin-bottom: .6rem; }
.etalase-pilihan { display: flex; gap: .75rem; overflow-x: auto; padding: .25rem .1rem .5rem; scrollbar-width: thin; scroll-snap-type: x proximity; }
@media (min-width: 992px) { .etalase-pilihan > :first-child { margin-left: auto; } }
.etalase-pilih { display: flex; align-items: center; gap: .8rem; flex: 0 0 auto; min-width: 190px; padding: .6rem 1rem .6rem .6rem; border-radius: 1rem; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: #fff; text-align: left; scroll-snap-align: start; transition: background-color .2s, transform .2s, box-shadow .2s, color .2s; }
.etalase-pilih:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.etalase-pilih:focus-visible { outline: 2px solid var(--app-gold); outline-offset: 2px; }
.etalase-pilih.active { background: #fff; border-color: #fff; color: #0f1b33; box-shadow: 0 14px 32px -12px rgba(0, 0, 0, .55); }
.etalase-pilih .etalase-meta { opacity: .7; }
.etalase-sampul { position: relative; width: 46px; height: 62px; flex-shrink: 0; border-radius: .3rem .45rem .45rem .3rem; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 1), #4fc1c6); box-shadow: 2px 4px 10px rgba(0, 0, 0, .35), inset 3px 0 0 rgba(255, 255, 255, .25); }
.etalase-pilih[data-jenis="laporan"] .etalase-sampul { background: linear-gradient(135deg, #0b8f87, #36c08e); }
.etalase-pilih[data-jenis="flyer"] .etalase-sampul { background: linear-gradient(135deg, #f08a24, #f5b82e); }
.etalase-sampul canvas, .etalase-sampul img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.etalase-sampul.ada-sampul::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(to right, rgba(0, 0, 0, .25), transparent); }
.etalase-meja { margin-top: 1.25rem; padding: .5rem .5rem 1.25rem; border-radius: 1.5rem; background: radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, .11), rgba(255, 255, 255, .02) 65%); border: 1px solid rgba(255, 255, 255, .08); }
.etalase .fb-alat { background: rgba(10, 18, 36, .7); border-color: rgba(255, 255, 255, .14); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.etalase .btn-fb { --bs-btn-color: #fff; --bs-btn-hover-bg: rgba(255, 255, 255, .14); --bs-btn-hover-color: #fff; --bs-btn-active-bg: rgba(255, 255, 255, .22); --bs-btn-active-color: #fff; --bs-btn-disabled-color: #fff; }
.etalase .fb-pemisah { background: rgba(255, 255, 255, .2); }
.etalase .form-range::-webkit-slider-runnable-track { background: rgba(255, 255, 255, .25); }
.etalase .form-range::-moz-range-track { background: rgba(255, 255, 255, .25); }
.etalase-petunjuk { font-size: .8rem; color: rgba(255, 255, 255, .62); text-align: center; margin: 1rem 0 0; }
.promosi-item { display: flex; align-items: center; gap: .75rem; padding: .65rem; border-radius: .85rem; border: 1px solid var(--bs-border-color); }
.promosi-item + .promosi-item { margin-top: .6rem; }
