/* ============================================================
   SITAKA — komponen khusus template tema-riski
   ------------------------------------------------------------
   Dimuat SETELAH bootstrap, tailwind, style.css lama, dan
   sitaka-base.css. Token warna/tipografi berasal dari
   sitaka-base.css (bahasa visual cekjurnal.id).
   ============================================================ */

/* ---------- Penyesuaian dasar terhadap Bootstrap/Tailwind ---------- */
body.cj { background: var(--cj-surface-alt); }
body.cj .container { max-width: var(--cj-container); }

/* Bootstrap 4 memberi h1–h6 warna/ukuran sendiri; ikuti tipografi CJ */
body.cj h1, body.cj h2, body.cj h3, body.cj h4, body.cj h5 {
  font-family: var(--cj-font-head);
  letter-spacing: -0.02em;
}

.sk-anchor { scroll-margin-top: calc(var(--cj-header-h) + 16px); }

/* ============================================================
   HEADER
   ============================================================ */
.sk-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--cj-ink-strong);
  min-width: 0;
}
.sk-brand:hover { color: var(--cj-ink-strong); }
.sk-brand img { height: 38px; width: auto; flex: 0 0 auto; }
.sk-brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.sk-brand__name {
  font-family: var(--cj-font-head);
  font-size: 15px;
  font-weight: 800;
  color: var(--cj-brand-text);
  white-space: nowrap;
}
.sk-brand__sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cj-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 768px) {
  .sk-brand img { height: 44px; }
  .sk-brand__name { font-size: 16.5px; }
}

/* Tombol emas "Area Anggota" di header */
.sk-cta { display: none; }
@media (min-width: 1024px) {
  .sk-cta { display: inline-flex; }
}
.cj-btn.sk-cta { min-height: 40px; padding: 8px 16px; font-size: 14px; }

/* submenu juga terbuka lewat klik/sentuh (aria-expanded diatur sitaka.js) */
.cj-nav__link[aria-expanded="true"] + .cj-submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.cj-nav__link[aria-expanded="true"] .cj-nav__caret { transform: rotate(180deg); }
/* submenu panjang (Layanan) tetap bisa digulir */
.cj-submenu ul { max-height: calc(100vh - var(--cj-header-h) - 24px); overflow-y: auto; }

/* z-index header tetap 900 (bawaan CJ): popup promo (1000), badge akreditasi
   (1001), dan modal Bootstrap (1050) harus tampil di atasnya. */

/* ============================================================
   HERO BERANDA
   ============================================================ */
/* overflow terlihat + z-index di atas .sk-stats supaya panel "Cari berdasarkan"
   (absolute, di bawah kotak pencarian) tidak terpotong/tertimpa */
.sk-hero, .sk-pagehead { overflow: visible; }
.sk-hero .cj-hero__inner { z-index: 6; padding-bottom: 72px; }
.sk-pagehead { z-index: 6; }

/* Konten hero selebar container: judul + kotak pencarian memanjang penuh */
.sk-hero { min-height: 480px; }
.sk-hero__content { width: 100%; }

.sk-hero__title {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 5.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #fff;
}
.sk-hero__title em { font-style: normal; color: var(--cj-gold); }
/* "Selamat Datang di" sebagai baris pembuka kecil dengan garis emas */
.sk-hero__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--cj-font-body);
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.sk-hero__kicker::before {
  content: "";
  flex: 0 0 auto;
  width: 36px;
  height: 3px;
  border-radius: var(--cj-r-pill);
  background: var(--cj-gold);
}
.sk-hero .cj-hero__lead { max-width: none; margin-bottom: 24px; font-size: clamp(15px, 1.6vw, 18px); }

/* Kotak pencarian hero lebih tinggi */
.sk-hero .sk-search__box { padding: 8px 8px 8px 22px; }
body.cj .sk-hero .sk-search__box .input-transparent { height: 54px; font-size: 17px; }
.sk-hero .sk-search__btn { min-height: 54px; padding-inline: 26px; }

@media (min-width: 1024px) {
  .sk-hero { min-height: 620px; }
  .sk-hero .cj-hero__inner { padding-bottom: 120px; }
}

/* --- Slideshow latar (diisi dari admin: Sistem > Slide Beranda) --- */
.sk-slides { position: absolute; inset: 0; z-index: 0; overflow: hidden; } /* slide membesar saat transisi: jangan meluber keluar hero */
.sk-slide {
  position: absolute;
  inset: 0;
  background-color: var(--cj-navy-deep);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 7s ease-out;
}
.sk-slide.is-active { opacity: 1; transform: scale(1); }

/* Gradasi: pekat di kiri, sedikit lebih bening ke kanan; teks tetap terbaca di seluruh lebar */
.sk-hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(var(--cj-navy-rgb), 0.55) 0%, rgba(var(--cj-navy-rgb), 0) 35%),
    linear-gradient(to right, rgba(0, 34, 68, 0.92) 0%, rgba(var(--cj-navy-rgb), 0.8) 45%, rgba(var(--cj-navy-rgb), 0.5) 100%);
}
@media (max-width: 1023px) {
  .sk-hero__shade { background: linear-gradient(to bottom, rgba(0, 34, 68, 0.88) 0%, rgba(var(--cj-navy-rgb), 0.82) 100%); }
}

/* Titik navigasi slide di pojok kanan bawah hero */
.sk-dots {
  position: absolute;
  z-index: 6;
  right: max(16px, calc((100% - var(--cj-container)) / 2 + var(--cj-gutter)));
  bottom: 56px;
  display: flex;
  gap: 6px;
}
@media (min-width: 1024px) { .sk-dots { bottom: 88px; } }
.sk-dot {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.sk-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: var(--cj-r-pill);
  background: rgba(255, 255, 255, 0.45);
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, background-color 0.3s ease;
}
.sk-dot:hover::before { background: rgba(255, 255, 255, 0.8); }
.sk-dot.is-active::before { width: 22px; background: var(--cj-gold); }

@media (prefers-reduced-motion: reduce) {
  .sk-slide { transition: opacity 0.3s ease; transform: none !important; }
}

/* ============================================================
   PENCARIAN (dipakai di hero & kepala halaman)
   ============================================================ */
body.cj .search { margin-top: 0; position: relative; }

.sk-search__box {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 18px;
  background: #fff;
  border: 1px solid var(--cj-line);
  border-radius: var(--cj-r-lg);
  box-shadow: var(--cj-shadow-lg);
}
.sk-search__box:focus-within {
  border-color: var(--cj-gold);
  box-shadow: 0 0 0 4px rgba(var(--cj-gold-rgb), 0.25), var(--cj-shadow-lg);
}
.sk-search__ico { color: var(--cj-muted-soft); font-size: 16px; }
body.cj .sk-search__box .input-transparent {
  flex: 1 1 auto;
  min-width: 0;
  height: 46px;
  padding: 0 4px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--cj-ink-strong);
  font-family: var(--cj-font-body);
  font-size: 16px;
}
body.cj .sk-search__box .input-transparent::placeholder { color: var(--cj-muted-soft); font-weight: 400; }
.sk-search__btn { flex: 0 0 auto; min-height: 46px; }
@media (max-width: 479px) {
  .sk-search__btn span { display: none; }
}

/* Panel "Cari berdasarkan" milik Vue */
body.cj .advanced-wraper {
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 16px 18px;
  border: 1px solid var(--cj-line);
  border-radius: var(--cj-r-lg);
  box-shadow: var(--cj-shadow-lg);
  color: var(--cj-ink);
  text-align: left;
}
body.cj .advanced-wraper .label { color: var(--cj-muted); font-size: 13px; font-weight: 600; }
body.cj .advanced-wraper .btn { border-radius: var(--cj-r-pill); font-size: 13.5px; }
body.cj .advanced-wraper .btn-primary { background: var(--cj-navy); border-color: var(--cj-navy); }

/* ============================================================
   KEPALA HALAMAN DALAM (pengganti .c-header lama)
   ============================================================ */
.sk-pagehead .cj-pagehead__lead { margin-bottom: 18px; }
.sk-pagehead--compact { padding: 18px 0 22px; }
.sk-pagehead .search { max-width: 760px; }
@media (min-width: 768px) {
  .sk-pagehead { padding: 36px 0 40px; }
  .sk-pagehead--compact { padding: 22px 0 26px; }
}

.sk-page { padding: 20px 0 56px; }
.sk-page__card {
  padding: 22px 18px;
  background: var(--cj-surface);
  border: 1px solid var(--cj-line);
  border-radius: var(--cj-r-xl);
  box-shadow: var(--cj-shadow-sm);
}
@media (min-width: 768px) {
  .sk-page { padding: 28px 0 72px; }
  .sk-page__card { padding: 32px 34px; }
}

/* ============================================================
   HALAMAN LAYANAN — Cek Pinjaman & Barang Temuan (?p=cek-pinjaman, ?p=barang-temuan)
   ============================================================ */
.sk-tool {
  padding: 22px 18px 24px;
  background: var(--cj-surface);
  border: 1px solid var(--cj-line);
  border-radius: var(--cj-r-xl);
  box-shadow: var(--cj-shadow);
}
@media (min-width: 768px) { .sk-tool { padding: 30px 32px 32px; } }

.sk-tool__head {
  display: grid;
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}
@media (min-width: 900px) {
  .sk-tool__head { grid-template-columns: 1fr minmax(0, 460px); gap: 32px; }
}
.sk-tool__title { margin: 0 0 6px; font-size: clamp(1.15rem, 3vw, 1.4rem); color: var(--cj-brand-text); }
.sk-tool__desc { margin: 0; color: var(--cj-muted); font-size: 14.5px; }

/* Form input satu baris + tombol */
.sk-inline-form { display: flex; gap: 8px; }
.sk-inline-form .cj-input { flex: 1 1 auto; min-width: 0; }
.sk-inline-form .cj-btn { flex: 0 0 auto; }

.sk-hint { margin: 8px 0 0; color: var(--cj-muted); font-size: 12.5px; }
.sk-hint i { color: var(--cj-gold); margin-right: 4px; }

/* Status: memuat / kosong / galat */
.sk-state {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border: 1px dashed var(--cj-line);
  border-radius: var(--cj-r-lg);
  background: var(--cj-surface-alt);
  color: var(--cj-muted);
  font-size: 14px;
}
.sk-state i { font-size: 18px; color: var(--cj-muted-soft); }
.sk-state--error { border-color: #FCA5A5; background: #FEF2F2; color: #991B1B; }
.sk-state--error i { color: var(--cj-danger); }
.sk-state--ok { border-color: #A7F3D0; background: #ECFDF5; color: #065F46; }
.sk-state--ok i { color: var(--cj-success); }

.sk-spin {
  width: 18px;
  height: 18px;
  border: 2px solid var(--cj-line);
  border-top-color: var(--cj-navy);
  border-radius: 50%;
  animation: sk-spin 0.7s linear infinite;
}
@keyframes sk-spin { to { transform: rotate(360deg); } }

/* --- Hasil cek pinjaman --- */
.sk-member {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding: 16px 18px;
  margin-bottom: 16px;
  border-radius: var(--cj-r-lg);
  background: linear-gradient(135deg, var(--cj-navy) 0%, var(--cj-navy-deep) 100%);
  color: #fff;
}
.sk-member__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(var(--cj-gold-rgb), 0.2);
  color: var(--cj-gold);
  font-size: 18px;
}
.sk-member__info { flex: 1 1 200px; min-width: 0; }
.sk-member__name { display: block; font-family: var(--cj-font-head); font-size: 17px; font-weight: 700; }
.sk-member__meta { display: block; color: rgba(255, 255, 255, 0.72); font-size: 13px; }
.sk-member__stats { display: flex; flex-wrap: wrap; gap: 8px; }
.sk-chip {
  display: inline-flex;
  flex-direction: column;
  min-width: 92px;
  padding: 8px 12px;
  border-radius: var(--cj-r-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.sk-chip strong { color: #fff; font-family: var(--cj-font-head); font-size: 18px; line-height: 1.1; }
.sk-chip span { color: rgba(255, 255, 255, 0.72); font-size: 11.5px; }
.sk-chip--warn strong { color: var(--cj-gold); }

.sk-loans { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sk-loan {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--cj-line);
  border-radius: var(--cj-r-lg);
  background: var(--cj-surface);
}
.sk-loan__ico {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--cj-r-md);
  background: rgba(var(--cj-navy-rgb), 0.07);
  color: var(--cj-navy);
}
.sk-loan__title { font-weight: 600; color: var(--cj-ink-strong); line-height: 1.4; }
.sk-loan__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--cj-muted); font-size: 13px; }
.sk-loan__meta b { color: var(--cj-ink); font-weight: 600; }
.sk-loan--late { border-color: #FCA5A5; background: #FFFBFB; }
.sk-loan--late .sk-loan__ico { background: #FEF2F2; color: var(--cj-danger); }
@media (min-width: 768px) {
  .sk-loan { grid-template-columns: auto 1fr auto; align-items: center; }
  .sk-loan__ico { grid-row: auto; }
  .sk-loan .cj-badge { justify-self: end; }
}

/* --- Barang temuan --- */
.sk-found-tools { display: grid; gap: 10px; }
@media (min-width: 640px) { .sk-found-tools { grid-template-columns: 1fr 1fr; } }

.sk-found-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.sk-found {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--cj-line);
  border-radius: var(--cj-r-lg);
  background: var(--cj-surface);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.sk-found:hover { border-color: rgba(var(--cj-gold-rgb), 0.6); box-shadow: var(--cj-shadow); transform: translateY(-2px); }
.sk-found__top { display: flex; align-items: center; gap: 10px; }
.sk-found__ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: var(--cj-r-md);
  background: rgba(var(--cj-gold-rgb), 0.18);
  color: #8A6D1F;
}
.sk-found__name { margin: 0; font-family: var(--cj-font-head); font-size: 15px; font-weight: 700; color: var(--cj-ink-strong); line-height: 1.3; }
.sk-found__desc { margin: 0; color: var(--cj-muted); font-size: 13.5px; line-height: 1.55; }
.sk-found__meta { display: flex; flex-direction: column; gap: 3px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--cj-line-soft); color: var(--cj-muted); font-size: 12.5px; }
.sk-found__meta i { width: 16px; color: var(--cj-muted-soft); }
.sk-found__owner { color: var(--cj-success); font-weight: 600; }

.sk-steps {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 16px 18px;
  border-radius: var(--cj-r-lg);
  background: var(--cj-warning-bg);
  color: var(--cj-warning-text);
  font-size: 13.5px;
  list-style: none;
  counter-reset: sk-step;
}
.sk-steps li { position: relative; margin: 0; padding-left: 30px; }
.sk-steps li::before {
  counter-increment: sk-step;
  content: counter(sk-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--cj-gold);
  color: var(--cj-navy-deep);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 21px;
}
@media (min-width: 768px) { .sk-steps { grid-template-columns: repeat(3, 1fr); } }

/* ============================================================
   STATISTIK BERANDA (gaya kartu pda.polines.ac.id)
   ============================================================ */
.sk-stats { position: relative; z-index: 4; margin-top: -44px; padding-bottom: 8px; }
@media (min-width: 1024px) { .sk-stats { margin-top: -72px; } }

.sk-stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 992px) { .sk-stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

.sk-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 16px 16px 18px;
  background: var(--cj-surface);
  border: 1px solid var(--cj-line);
  border-radius: var(--cj-r-lg);
  box-shadow: var(--cj-shadow);
}
@media (min-width: 768px) { .sk-stat { padding: 22px 24px 24px; } }

.sk-stat__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sk-stat__label { color: var(--cj-ink); font-size: 13px; font-weight: 500; line-height: 1.35; }
@media (min-width: 768px) { .sk-stat__label { font-size: 14.5px; } }
.sk-stat__ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(var(--cj-navy-rgb), 0.08);
  color: var(--cj-navy);
  font-size: 13px;
}
.sk-stat__num {
  font-family: var(--cj-font-head);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--cj-ink-strong);
}
.sk-stat__num--brand { color: var(--cj-navy); }

/* ============================================================
   SLIDER BARANG TEMUAN (beranda)
   ============================================================ */
.sk-rail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}
.sk-rail-head .cj-head__title { margin-bottom: 4px; }
.sk-rail-head .cj-head__desc { margin: 0; }

.sk-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 82%;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 2px 14px;
  scrollbar-width: none; /* navigasi lewat tombol panah, geser, atau keyboard */
  overscroll-behavior-x: contain;
}
.sk-rail::-webkit-scrollbar { display: none; }
.sk-rail > * { scroll-snap-align: start; }
.sk-rail:focus-visible { outline: 2px solid var(--cj-gold); outline-offset: 4px; border-radius: var(--cj-r-lg); }
@media (min-width: 640px) { .sk-rail { grid-auto-columns: calc((100% - 14px) / 2); } }
@media (min-width: 992px) { .sk-rail { grid-auto-columns: calc((100% - 42px) / 4); } }
.sk-rail .sk-found:hover { transform: none; }

.sk-rail__nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
.sk-rail__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--cj-tap);
  height: var(--cj-tap);
  border: 1px solid var(--cj-line);
  border-radius: 50%;
  background: var(--cj-surface);
  color: var(--cj-brand-text);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.sk-rail__btn:hover { background: var(--cj-gold); border-color: var(--cj-gold); color: var(--cj-navy); }
.sk-rail__btn:disabled { opacity: 0.4; cursor: default; background: var(--cj-surface); color: var(--cj-muted); border-color: var(--cj-line); }

/* ============================================================
   POPUP PENGUMUMAN (admin: Sistem > Popup Beranda)
   ============================================================ */
.sk-popup {
  position: fixed;
  inset: 0;
  z-index: 1040; /* di atas header & badge akreditasi, di bawah modal Bootstrap */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.sk-popup[hidden] { display: none; }
.sk-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 34, 68, 0.72);
  backdrop-filter: blur(3px);
  animation: sk-fade 0.25s ease;
}
.sk-popup__dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 520px);
  max-height: calc(100vh - 32px);
  background: var(--cj-surface);
  border-radius: var(--cj-r-xl);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: sk-pop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.sk-popup__dialog.is-multi { width: min(100%, 900px); }

.sk-popup__head {
  position: relative;
  padding: 16px 64px 14px 20px;
  background: linear-gradient(135deg, var(--cj-navy) 0%, var(--cj-navy-deep) 100%);
  color: #fff;
}
.sk-popup__head .cj-eyebrow { margin-bottom: 6px; background: rgba(255, 255, 255, 0.13); color: #fff; }
.sk-popup__title { margin: 0; color: #fff !important; font-size: 17px; }
.sk-popup__x {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: var(--cj-r-sm);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}
.sk-popup__x:hover { background: rgba(255, 255, 255, 0.24); }
.sk-popup__x svg { width: 14px; height: 14px; }

.sk-popup__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* tanpa ini kolom melebar seukuran gambar asli (mis. 1080px) di HP */
  gap: 14px;
  padding: 16px;
  overflow-y: auto;
  background: var(--cj-surface-alt);
}
@media (min-width: 720px) {
  .sk-popup__dialog.is-multi .sk-popup__body { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sk-popup__item { margin: 0; min-width: 0; }
.sk-popup__item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--cj-r-md);
  box-shadow: var(--cj-shadow-sm);
}
.sk-popup__item a { display: block; border-radius: var(--cj-r-md); transition: transform 0.18s ease; }
.sk-popup__item a:hover { transform: translateY(-2px); }
.sk-popup__item figcaption { margin-top: 8px; color: var(--cj-ink); font-size: 13.5px; font-weight: 600; text-align: center; }
.sk-popup__foot { display: flex; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--cj-line); }

body.sk-popup-open { overflow: hidden; }

@keyframes sk-fade { from { opacity: 0; } }
@keyframes sk-pop { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
@media (prefers-reduced-motion: reduce) {
  .sk-popup__backdrop, .sk-popup__dialog { animation: none; }
}

/* ============================================================
   E-RESOURCES & KOLEKSI (beranda)
   ============================================================ */
.sk-eres .er-marquee { margin-top: 8px; }

body.cj .subtitle-section {
  display: block;
  margin-top: 6px;
  color: var(--cj-muted);
  font-family: var(--cj-font-body);
  font-size: 14.5px;
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.6;
}
.sk-collection-head { margin-bottom: 20px; }
.sk-collection-head .cj-head__title { margin-bottom: 0; }

/* Peta & kontak */
.sk-map iframe { width: 100%; border-radius: var(--cj-r-xl); box-shadow: var(--cj-shadow); }
.sk-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.sk-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--cj-line);
  border-radius: var(--cj-r-md);
  background: var(--cj-surface);
  color: var(--cj-brand-text);
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.sk-social a:hover { background: var(--cj-gold); border-color: var(--cj-gold); color: var(--cj-navy); }

/* ============================================================
   HALAMAN PANDUAN (?p=panduan) — daftar tautan ala s.id
   ============================================================ */
.sk-guides { display: grid; gap: 28px; max-width: 880px; margin: 0 auto; }
.sk-guides__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--cj-brand-text);
  font-size: 1.1rem;
}
.sk-guides__title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: var(--cj-r-pill);
  background: var(--cj-gold);
}
.sk-guides__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .sk-guides__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.sk-guides__list li { margin: 0; }

.sk-guide {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  min-height: 72px;
  padding: 12px 16px 12px 12px;
  background: var(--cj-surface);
  border: 1px solid var(--cj-line);
  border-radius: var(--cj-r-lg);
  box-shadow: var(--cj-shadow-sm);
  color: var(--cj-ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.sk-guide:hover, .sk-guide:focus-visible {
  border-color: rgba(var(--cj-gold-rgb), 0.7);
  box-shadow: var(--cj-shadow);
  color: var(--cj-ink);
  transform: translateY(-2px);
}
.sk-guide__ico {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--cj-r-md);
  background: rgba(var(--cj-navy-rgb), 0.08);
  color: var(--cj-navy);
  font-size: 19px;
}
.sk-guide--wa .sk-guide__ico { background: #E8F8EE; color: #128C4A; }
.sk-guide__body { flex: 1 1 auto; min-width: 0; }
.sk-guide__name { display: block; font-family: var(--cj-font-head); font-size: 15px; font-weight: 700; color: var(--cj-ink-strong); line-height: 1.35; }
.sk-guide__desc { display: block; margin-top: 2px; color: var(--cj-muted); font-size: 13px; line-height: 1.45; }
.sk-guide .cj-arrow { flex: 0 0 auto; transition: transform 0.16s ease; }
.sk-guide:hover .cj-arrow { transform: rotate(45deg) translate(2px, -2px); }

/* ============================================================
   FOOTER
   ============================================================ */
.cj-footer .sk-footer__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cj-footer .sk-footer__logo img { height: 52px; width: auto; margin: 0; }
.cj-footer .sk-footer__logo strong { color: #fff; font-family: var(--cj-font-head); font-size: 16px; line-height: 1.25; }
.cj-footer .sk-footer__logo span { display: block; color: rgba(255, 255, 255, 0.6); font-size: 12px; font-weight: 500; }
.cj-footer .sk-footer__about, .cj-footer .sk-footer__about p { color: rgba(255, 255, 255, 0.68); font-size: 13.5px; line-height: 1.7; }
.cj-footer .sk-hours { margin: 0 0 14px; padding: 0; list-style: none; }
.cj-footer .sk-hours li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 7px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.14); font-size: 13.5px; }
.cj-footer .sk-hours strong { color: #fff; font-weight: 600; }
.cj-footer .cj-footer__contact i { width: 18px; color: var(--cj-gold); }
.cj-footer button.sk-link {
  padding: 6px 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  cursor: pointer;
}
.cj-footer button.sk-link:hover { color: var(--cj-gold); }

/* Tombol chat SLiMS sejajar dengan bahasa visual baru */
body.cj #show-pchat2 .btn-primary { background: var(--cj-navy); border-color: var(--cj-navy); border-radius: var(--cj-r-pill); }

/* ============================================================
   KONTEN HALAMAN SLiMS (artikel, detail, area anggota)
   ============================================================ */
body.cj .result-search .btn-primary,
body.cj .member-area .btn-primary { background-color: var(--cj-navy); border-color: var(--cj-navy); }
body.cj .result-search .btn-primary:hover,
body.cj .member-area .btn-primary:hover { background-color: var(--cj-blue); border-color: var(--cj-blue); }

body.cj .sk-page__card img { max-width: 100%; height: auto; }
/* Isi halaman statis (Sejarah, Visi Misi, Warta, dst.): SLiMS membungkusnya dengan
   div.ck-content.p-5 (padding 48px). Di dalam kartu, padding itu ganda: buang. */
.sk-page__card > .ck-content,
.sk-page__card > .ck-content.p-5 { padding: 0 !important; }
.sk-page__card .ck-content > :first-child,
.sk-page__card > :first-child { margin-top: 0; }
.sk-page__card .ck-content > :last-child { margin-bottom: 0; }


/* ============================================================
   WARTA (?p=news) — grid kartu + kolom cari
   ============================================================ */
.sk-news-search { max-width: 640px; margin-top: 4px; }
.sk-news { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sk-news > :not(.sk-news-card) { grid-column: 1 / -1; } /* info jumlah & penomoran halaman: selebar grid */
.sk-news > .alert { margin: 0; border-radius: var(--cj-r-md); font-size: 14px; }
.sk-news > .alert-info { display: none; } /* "We have N news for you!" bawaan SLiMS (berbahasa Inggris); pesan kosong tetap tampil */
.sk-news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cj-surface);
  border: 1px solid var(--cj-line);
  border-radius: var(--cj-r-lg);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.sk-news-card:hover { transform: translateY(-3px); box-shadow: var(--cj-shadow); border-color: rgba(var(--cj-gold-rgb), 0.55); }
.sk-news-card__media { display: block; aspect-ratio: 16 / 9; background: var(--cj-line-soft); overflow: hidden; }
.sk-news-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sk-news-card__ph {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--cj-navy) 0%, var(--cj-navy-deep) 100%);
  color: var(--cj-gold); font-size: 34px;
}
.sk-news-card__body { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; padding: 16px 18px 18px; }
.sk-news-card__date { color: var(--cj-muted); font-size: 12.5px; }
.sk-news-card__title { margin: 0; font-size: 17px; line-height: 1.35; }
.sk-news-card__title a { color: var(--cj-ink-strong) !important; }
.sk-news-card__title a:hover { color: var(--cj-brand-text) !important; }
.sk-news-card__sum {
  margin: 0; color: var(--cj-muted); font-size: 14px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sk-news-card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--cj-brand-text) !important; }
.sk-news .pagingList { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }

/* ============================================================
   BERANDA DI HP: tanpa tombol subjek, koleksi jadi slider
   ============================================================ */
@media (max-width: 767.98px) {
  /* deret tombol subjek (komponen slims-group-subject) tepat di bawah judul bagian */
  .sk-coll .sk-collection-head + div { display: none !important; }
  .sk-coll .collection {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: calc(-1 * var(--cj-gutter));
    padding-inline: var(--cj-gutter);
  }
  .sk-coll .collection::-webkit-scrollbar { display: none; }
  .sk-coll .collection > * { flex: 0 0 42%; max-width: 42%; scroll-snap-align: start; padding-bottom: 6px !important; }

  /* Pembaca teraktif (slims-group-member): geser ke samping, kartu berikutnya mengintip */
  .sk-readers .cj-container > .flex {
    flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-inline: calc(-1 * var(--cj-gutter)); padding-inline: var(--cj-gutter); padding-bottom: 4px;
  }
  .sk-readers .cj-container > .flex::-webkit-scrollbar { display: none; }
  .sk-readers .cj-container > .flex > * {
    flex: 0 0 72%; max-width: 72%; padding: 0 !important; margin: 0 !important; scroll-snap-align: start;
  }
  .sk-readers .card-image-rounded { width: 88px; height: 88px; }
  .sk-readers .card-title { font-size: 16px; }
}

@media print {
  .sk-popup, .cj-footer, #akr-float { display: none !important; }
}

/* ============================================================
   FORMULIR LAYANAN (plugin polines_layanan: index.php?p=formulir)
   ============================================================ */
.sk-form { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.sk-form__intro {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border: 1px solid var(--cj-line); border-top: 4px solid var(--cj-gold);
  border-radius: var(--cj-r-lg); background: var(--cj-surface); box-shadow: var(--cj-shadow-sm);
}
.sk-form__intro p { margin: 0 0 8px; color: var(--cj-ink); line-height: 1.6; }
.sk-form__intro p:last-child { margin-bottom: 0; }
.sk-form__ico {
  flex: 0 0 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--cj-r-md); background: rgba(var(--cj-gold-rgb), .16); color: var(--cj-navy); font-size: 18px;
}
.sk-form__req-note { font-size: 13px; color: var(--cj-muted) !important; }
.sk-req { color: var(--cj-danger); font-weight: 700; }
.sk-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sk-form__section { padding: 16px 18px 4px; border-left: 4px solid var(--cj-navy); }
.sk-form__section h2 { margin: 0 0 6px; font-size: 18px; font-weight: 800; color: var(--cj-ink-strong); }
.sk-form__section p { margin: 0 0 6px; color: var(--cj-muted); font-size: 14px; }

.sk-q {
  margin: 0; min-width: 0; padding: 16px 18px; border: 1px solid var(--cj-line);
  border-radius: var(--cj-r-lg); background: var(--cj-surface);
}
.sk-q.has-error { border-color: var(--cj-danger); box-shadow: 0 0 0 3px rgba(220, 38, 38, .12); }
.sk-q__label { float: left; width: 100%; margin: 0 0 10px; padding: 0; font-size: 15px; font-weight: 700; color: var(--cj-ink-strong); line-height: 1.45; }
.sk-q__label + * { clear: both; }
.sk-q__help { margin: -4px 0 10px; color: var(--cj-muted); font-size: 13px; }
.sk-q__err { margin: 8px 0 0; color: var(--cj-danger); font-size: 13px; font-weight: 600; }
.sk-q__other { margin-top: 8px; }
.sk-q__options { display: grid; gap: 4px; }
.sk-opt {
  display: flex; align-items: center; gap: 10px; margin: 0; min-height: var(--cj-tap);
  padding: 6px 10px; border-radius: var(--cj-r-sm); cursor: pointer; color: var(--cj-ink); font-weight: 500;
}
.sk-opt:hover { background: var(--cj-line-soft); }
.sk-opt input[type=radio], .sk-opt input[type=checkbox] { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--cj-navy); }
.sk-opt--other .cj-input { flex: 1 1 auto; min-width: 0; padding-block: 6px; }

.sk-scale { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sk-scale__opts { display: flex; gap: 6px; }
.sk-scale__opt { margin: 0; cursor: pointer; }
.sk-scale__opt input { position: absolute; opacity: 0; pointer-events: none; }
.sk-scale__opt span {
  display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--cj-line);
  border-radius: 50%; font-weight: 700; color: var(--cj-ink); background: var(--cj-surface); transition: .15s;
}
.sk-scale__opt:hover span { border-color: var(--cj-navy); }
.sk-scale__opt input:checked + span { background: var(--cj-navy); border-color: var(--cj-navy); color: #fff; }
.sk-scale__opt input:focus-visible + span { outline: 3px solid rgba(var(--cj-gold-rgb), .7); outline-offset: 2px; }
.sk-scale__end { font-size: 12.5px; color: var(--cj-muted); font-weight: 600; }
@media (max-width: 575.98px) {
  .sk-scale { display: grid; grid-template-columns: 1fr 1fr; }
  .sk-scale__opts { grid-column: 1 / -1; grid-row: 1; justify-content: space-between; }
  .sk-scale__opt span { width: 46px; height: 46px; }
  .sk-scale__end:last-child { text-align: right; }
}

.sk-form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 4px; }
.sk-form__submit .sk-hint { margin: 0; }

.sk-form--done { text-align: center; padding: 36px 20px; border: 1px solid var(--cj-line); border-radius: var(--cj-r-xl); background: var(--cj-surface); }
.sk-form--done h2 { margin: 12px 0 6px; font-weight: 800; color: var(--cj-ink-strong); }
.sk-form--done p { color: var(--cj-muted); margin: 0 auto 18px; max-width: 520px; }
.sk-form__done-ico {
  width: 64px; height: 64px; margin: 0 auto; display: grid; place-items: center; border-radius: 50%;
  background: rgba(5, 150, 105, .14); color: var(--cj-success); font-size: 26px;
}
.sk-form__done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.sk-forms { max-width: 960px; }

/* ============================================================
   KETERSEDIAAN EKSEMPLAR (detail koleksi) — baris jadi kartu
   ============================================================ */
.sk-avail > .flex-col { display: grid !important; gap: 8px; }
.sk-avail > .flex-col > .flex-row {
  display: grid !important; grid-template-columns: minmax(0, 1fr) 130px 250px;
  grid-template-areas: "loc code status"; align-items: center; gap: 6px 16px;
  padding: 12px 16px; border: 1px solid var(--cj-line); border-radius: var(--cj-r-md); background: var(--cj-surface);
}
.sk-avail > .flex-col > .flex-row > div {
  flex: none !important; max-width: none !important; width: auto !important;
  padding: 0 !important; border: 0 !important; min-width: 0;
}
.sk-avail > .flex-col > .flex-row > div:nth-child(1) { grid-area: loc; }
.sk-avail > .flex-col > .flex-row > div:nth-child(2) {
  grid-area: code; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: var(--cj-muted);
}
.sk-avail > .flex-col > .flex-row > div:nth-child(3) { grid-area: status; }
.sk-avail > .flex-col > .flex-row > div:nth-child(1) > div:first-child { display: none; } /* tanda "#" */
.sk-avail > .flex-col > .flex-row > div:nth-child(1) > div { margin: 0 !important; }
.sk-avail span.block { font-weight: 700; color: var(--cj-ink-strong); line-height: 1.35; }
.sk-avail small { display: block; margin-top: 2px; font-size: 13px; }

.sk-avail .availability-item {
  display: block; width: 100%; padding: 6px 10px; border-radius: 4px; text-align: left;
  font-size: 12.5px; font-weight: 700; line-height: 1.35; color: #065F46; background: #D1FAE5;
}
.sk-avail .item-onloan { color: #991B1B; background: #FEE2E2; }
.sk-avail .item-notforloan { color: #92400E; background: #FEF3C7; }
:root[data-theme="dark"] .sk-avail .availability-item { color: #86EFAC; background: #0D2A20; }
:root[data-theme="dark"] .sk-avail .item-onloan { color: #FCA5A5; background: #2A1215; }
:root[data-theme="dark"] .sk-avail .item-notforloan { color: #FCD34D; background: #2A2110; }

@media (max-width: 767.98px) {
  .sk-avail > .flex-col > .flex-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "loc" "code" "status"; }
}

/* Informasi detail koleksi: label kiri, isi kanan, garis tipis per baris */
.sk-detail-dl { margin: 8px 0 0; }
.sk-detail-dl > dt, .sk-detail-dl > dd { margin: 0; padding-block: 9px; border-bottom: 1px solid var(--cj-line-soft); }
.sk-detail-dl > dt { font-weight: 600; color: var(--cj-muted); font-size: 14px; }
.sk-detail-dl > dd { color: var(--cj-ink); overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
  .sk-detail-dl > dt { flex: 0 0 38%; max-width: 38%; padding-right: 10px; font-size: 13px; }
  .sk-detail-dl > dd { flex: 0 0 62%; max-width: 62%; }
}

/* ============================================================
   KOLEKSI DIGITAL di hasil pencarian (repositori ETD + ePustaka)
   ============================================================ */
.sk-lintas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 18px; }
.sk-lintas__card { border: 1px solid var(--cj-line); border-radius: var(--cj-r-lg); background: var(--cj-surface); padding: 14px 16px; min-width: 0; }
.sk-lintas__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sk-lintas__head b { display: block; font-size: 15px; color: var(--cj-ink-strong); line-height: 1.2; }
.sk-lintas__head small { color: var(--cj-muted); font-size: 12.5px; }
.sk-lintas__ico { flex: 0 0 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(var(--cj-gold-rgb), .16); color: var(--cj-navy); }
.sk-lintas__count { margin-left: auto; font-weight: 800; font-size: 13px; color: var(--cj-navy); background: var(--cj-line-soft); padding: 4px 10px; border-radius: 6px; white-space: nowrap; }
.sk-lintas__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sk-lintas__list li { padding: 7px 0; border-top: 1px solid var(--cj-line-soft); }
.sk-lintas__list li:first-child { border-top: 0; }
.sk-lintas__list a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-weight: 600; font-size: 14px; color: var(--cj-ink-strong); line-height: 1.4; }
.sk-lintas__list a:hover { color: var(--cj-blue); text-decoration: underline; }
.sk-lintas__list small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--cj-muted); }
.sk-lintas__muat { color: var(--cj-muted); font-size: 13.5px; }
.sk-lintas__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.sk-lintas__more { border: 0; background: none; padding: 0; font-weight: 700; font-size: 13.5px; color: var(--cj-navy); cursor: pointer; }
.sk-lintas__all { margin-left: auto; font-weight: 700; font-size: 13.5px; color: var(--cj-navy); }
.sk-lintas__epus p { font-size: 13.5px; color: var(--cj-muted); margin: 0 0 12px; line-height: 1.55; }
.sk-lintas__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sk-lintas__btns .cj-btn { padding: 8px 14px; font-size: 13.5px; }
:root[data-theme="dark"] .sk-lintas__ico { color: var(--cj-gold); }
:root[data-theme="dark"] .sk-lintas__count, :root[data-theme="dark"] .sk-lintas__more, :root[data-theme="dark"] .sk-lintas__all { color: var(--cj-gold); }
@media (max-width: 991.98px) { .sk-lintas { grid-template-columns: 1fr; } }

/* ============================================================
   CAKUPAN PENCARIAN (Semua / Koleksi fisik / ETD / ePustaka)
   ============================================================ */
.sk-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.sk-scope__label { font-size: 13px; font-weight: 600; color: var(--cj-muted); margin-right: 2px; }
.sk-scope__opt {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 12px;
  border: 1px solid var(--cj-line); border-radius: 8px; background: var(--cj-surface);
  font-size: 13.5px; font-weight: 600; color: var(--cj-ink); cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.sk-scope__opt i { font-size: 12px; color: var(--cj-muted); }
.sk-scope__opt:hover { border-color: var(--cj-navy); }
.sk-scope__opt.is-on { background: var(--cj-navy); border-color: var(--cj-navy); color: #fff; }
.sk-scope__opt.is-on i { color: var(--cj-gold); }
.sk-scope__opt:focus-visible { outline: 3px solid rgba(var(--cj-gold-rgb), .7); outline-offset: 2px; }
/* di hero beranda (latar foto gelap) */
.sk-hero .sk-scope__label { color: rgba(255, 255, 255, .8); }
.sk-hero .sk-scope__opt { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; backdrop-filter: blur(4px); }
.sk-hero .sk-scope__opt i { color: rgba(255, 255, 255, .75); }
.sk-hero .sk-scope__opt:hover { border-color: #fff; }
.sk-hero .sk-scope__opt.is-on { background: var(--cj-gold); border-color: var(--cj-gold); color: var(--cj-navy-deep); }
.sk-hero .sk-scope__opt.is-on i { color: var(--cj-navy-deep); }
:root[data-theme="dark"] .sk-scope__opt.is-on { background: var(--cj-gold); border-color: var(--cj-gold); color: #0B1220; }
:root[data-theme="dark"] .sk-scope__opt.is-on i { color: #0B1220; }
@media (max-width: 575.98px) {
  .sk-scope { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--cj-gutter)); padding-inline: var(--cj-gutter); }
  .sk-scope::-webkit-scrollbar { display: none; }
  .sk-scope__opt { flex: 0 0 auto; }
}

/* hasil per cakupan (ETD / ePustaka) */
.sk-hasil-lain { display: grid; gap: 10px; }
.sk-hasil-lain__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 14px 16px; border: 1px solid var(--cj-line); border-radius: var(--cj-r-md); background: var(--cj-surface); }
.sk-hasil-lain__ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--cj-gold-rgb), .16); color: var(--cj-navy); }
.sk-hasil-lain__item h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.sk-hasil-lain__item h3 a { color: var(--cj-ink-strong); }
.sk-hasil-lain__item h3 a:hover { color: var(--cj-blue); text-decoration: underline; }
.sk-hasil-lain__meta { font-size: 13.5px; color: var(--cj-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.sk-hasil-lain__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sk-hasil-lain__tags span { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 4px; background: var(--cj-line-soft); color: var(--cj-ink); }
.sk-hasil-lain__info { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; font-size: 14px; }
:root[data-theme="dark"] .sk-hasil-lain__ico { color: var(--cj-gold); }
.sk-lintas__list small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
.sk-tersalin { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 4px; background: #D1FAE5; color: #065F46; font-size: 12px; font-weight: 700; }

/* item ETD / ePustaka bergaya sama dengan item koleksi fisik */
.sk-item-lain__cover { position: relative; display: block; }
.sk-item-lain__src {
  position: absolute; left: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 4px; font-size: 11.5px; font-weight: 700; background: var(--cj-navy); color: #fff;
}
.sk-item-lain--epustaka .sk-item-lain__src { background: #eb6834; }
.sk-item-lain__box .value.sk-item-lain__ico { font-size: 26px; color: var(--cj-navy); line-height: 1.6; }
.sk-item-lain--epustaka .sk-item-lain__box .value.sk-item-lain__ico { color: #eb6834; }
.sk-item-lain dl dt { font-weight: 600; }
.sk-sisipan__lagi { display: block; margin: -8px 0 22px; font-weight: 700; font-size: 14px; color: var(--cj-navy); text-align: right; }
.sk-filter-lebih { display: none !important; }
.sk-filter-lain { margin-bottom: 4px; }
.sk-filter-lain .form-check-label { width: 100%; cursor: pointer; }
.sk-filter-lain .form-check-input { cursor: pointer; }
:root[data-theme="dark"] .sk-item-lain__box .value.sk-item-lain__ico, :root[data-theme="dark"] .sk-sisipan__lagi { color: var(--cj-gold); }

/* Barang Temuan: foto barang (plugin Layanan Polines, migrasi 21) */
.sk-found__foto { display: block; margin: -16px -16px 4px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cj-line-soft); border-radius: var(--cj-r-lg) var(--cj-r-lg) 0 0; }
.sk-found__foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.sk-found__foto:hover img { transform: scale(1.04); }
