/* ============================================================
 * Research UNESA — portal scholar SINTA
 * ============================================================ */
:root {
  --rsc-primary: #0b4d70;
  --rsc-primary-2: #1c8ac0;
  --rsc-ink: #1f2937;
  --rsc-muted: #6b7280;
  --rsc-line: #e5eaef;
  --rsc-bg: #f6f9fb;
}

.rsc-wrap { padding-top: 24px; padding-bottom: 48px; }
.rsc-loading, .rsc-empty, .rsc-err { color: var(--rsc-muted); font-size: 14px; padding: 14px 0; }
.rsc-err { color: #b42318; }

/* ---------- HERO ---------- */
.rsc-hero {
  background: linear-gradient(135deg, var(--rsc-primary) 0%, var(--rsc-primary-2) 100%);
  color: #fff;
  padding: 54px 20px 48px;
  text-align: center;
}
.rsc-hero-inner { max-width: 760px; margin: 0 auto; }
.rsc-hero h1 { font-size: 40px; font-weight: 800; margin: 0 0 10px; color: #fff; }
.rsc-hero h1 span { opacity: .8; font-weight: 400; }
.rsc-hero p { font-size: 16px; line-height: 1.6; margin: 0 auto 24px; max-width: 620px; opacity: .95; }
.rsc-search { display: flex; gap: 8px; max-width: 560px; margin: 0 auto; }
.rsc-search input {
  flex: 1; padding: 14px 18px; border: none; border-radius: 40px;
  font-size: 15px; outline: none; color: var(--rsc-ink);
}
.rsc-search button {
  padding: 0 28px; border: none; border-radius: 40px; cursor: pointer;
  background: #062f45; color: #fff; font-weight: 600; font-size: 15px;
  transition: background .2s;
}
.rsc-search button:hover { background: #04202f; }
.rsc-hint { font-size: 13px; margin-top: 14px; opacity: .9; }
.rsc-hint a { color: #fff; text-decoration: underline; }

/* ---------- STATISTIK ---------- */
.rsc-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: -34px; margin-bottom: 26px;
}
.rsc-stat {
  background: #fff; border: 1px solid var(--rsc-line); border-radius: 14px;
  padding: 18px 12px; text-align: center; box-shadow: 0 6px 20px rgba(11, 77, 112, .06);
}
.rsc-stat .num { font-size: 26px; font-weight: 800; color: var(--rsc-primary); line-height: 1.1; }
.rsc-stat .lbl { font-size: 12px; color: var(--rsc-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- QUARTILE ---------- */
.rsc-quartile-box {
  background: #fff; border: 1px solid var(--rsc-line); border-radius: 14px;
  padding: 20px 22px; margin-bottom: 26px;
}
.rsc-quartile-box h3 { font-size: 16px; font-weight: 700; margin: 0 0 14px; color: var(--rsc-ink); }
.rsc-qrow { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.rsc-qname { width: 54px; font-size: 12px; font-weight: 700; text-align: center; padding: 2px 0; border-radius: 6px; color: #fff; }
.rsc-qbar { flex: 1; height: 12px; background: #eef2f5; border-radius: 8px; overflow: hidden; }
.rsc-qfill { display: block; height: 100%; border-radius: 8px; }
.rsc-qval { width: 60px; text-align: right; font-size: 13px; font-weight: 600; color: var(--rsc-ink); }

/* Warna quartile */
.rsc-q-q1 { background: #1a7f37 !important; }
.rsc-q-q2 { background: #2f80ed !important; }
.rsc-q-q3 { background: #e2a63b !important; }
.rsc-q-q4 { background: #b0562e !important; }
.rsc-q-noq { background: #94a3b8 !important; }

/* ---------- HASIL CARI ---------- */
.rsc-results-section h3 { font-size: 18px; font-weight: 700; margin: 0 0 14px; color: var(--rsc-ink); }
.rsc-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.rsc-card {
  position: relative; overflow: hidden;
  display: flex; gap: 14px; align-items: flex-start; padding: 16px;
  background: #fff; border: 1px solid var(--rsc-line); border-radius: 14px;
  text-decoration: none; color: var(--rsc-ink);
  box-shadow: 0 1px 2px rgba(11, 77, 112, .04);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.rsc-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--rsc-primary), var(--rsc-primary-2));
  opacity: 0; transition: opacity .2s;
}
.rsc-card:hover {
  box-shadow: 0 16px 32px -14px rgba(11, 77, 112, .4);
  transform: translateY(-3px);
  border-color: rgba(28, 138, 192, .35);
}
.rsc-card:hover::before { opacity: 1; }
.rsc-card-media { position: relative; flex-shrink: 0; }
.rsc-card-photo {
  width: 64px; height: 64px; border-radius: 14px; object-fit: cover;
  background: #e5edf2; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--rsc-line);
}
.rsc-card-score {
  position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--rsc-primary), var(--rsc-primary-2));
  color: #fff; font-size: 10px; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  white-space: nowrap; box-shadow: 0 3px 8px rgba(11, 77, 112, .3);
}
.rsc-card-score b { font-size: 11px; }
.rsc-card-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rsc-card-name { font-weight: 800; font-size: 15.5px; line-height: 1.25; color: var(--rsc-ink); transition: color .2s; }
.rsc-card:hover .rsc-card-name { color: var(--rsc-primary); }
.rsc-card-meta { font-size: 12px; color: var(--rsc-muted); margin: 3px 0 4px; }
.rsc-card-arrow { align-self: center; font-size: 22px; line-height: 1; color: #cbd5e1; transition: color .2s, transform .2s; }
.rsc-card:hover .rsc-card-arrow { color: var(--rsc-primary); transform: translateX(3px); }
.rsc-match { display: inline-block; margin-top: 5px; font-size: 11px; font-weight: 600; padding: 1px 9px; border-radius: 999px; align-self: flex-start; }
.rsc-match-title { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }

/* ---------- PROFIL ---------- */
.rsc-back { margin: 0 0 16px; }
.rsc-back a { color: var(--rsc-primary); text-decoration: none; font-weight: 600; }
.rsc-profil-head {
  position: relative; overflow: hidden;
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--rsc-line); border-radius: 16px; padding: 24px; margin-bottom: 22px;
  box-shadow: 0 12px 30px -20px rgba(11, 77, 112, .4);
}
.rsc-profil-head::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--rsc-primary), var(--rsc-primary-2));
}
.rsc-photo { width: 120px; height: 120px; border-radius: 16px; object-fit: cover; background: #e5edf2; flex-shrink: 0; }
.rsc-ident { flex: 1; min-width: 240px; }
.rsc-ident h1 { font-size: 24px; font-weight: 800; margin: 0 0 4px; color: var(--rsc-ink); }
.rsc-ident-meta { font-size: 13px; color: var(--rsc-muted); margin: 0 0 14px; }
.rsc-scores { display: flex; flex-wrap: wrap; gap: 10px; }
.rsc-score { background: var(--rsc-bg); border: 1px solid var(--rsc-line); border-radius: 10px; padding: 8px 16px; text-align: center; min-width: 78px; }
.rsc-score .v { font-size: 20px; font-weight: 800; color: var(--rsc-primary); }
.rsc-score .l { font-size: 11px; color: var(--rsc-muted); text-transform: uppercase; letter-spacing: .03em; }

.rsc-profil-body { display: grid; grid-template-columns: 1fr 300px; gap: 22px; }
.rsc-pub-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.rsc-pub-toolbar h3 { font-size: 18px; font-weight: 700; margin: 0; color: var(--rsc-ink); }
.rsc-pub-filter { font-size: 13px; color: var(--rsc-muted); }
.rsc-pub-filter input { vertical-align: middle; }

.rsc-pub {
  position: relative;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--rsc-line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(11, 77, 112, .03);
  transition: box-shadow .18s ease, border-color .18s ease;
}
.rsc-pub:hover { border-color: rgba(28, 138, 192, .3); box-shadow: 0 12px 26px -16px rgba(11, 77, 112, .4); }
.rsc-pub-body { min-width: 0; }
.rsc-pub-title { margin: 0 0 7px; font-size: 15.5px; font-weight: 700; line-height: 1.4; }
.rsc-pub-title a { color: var(--rsc-ink); text-decoration: none; }
.rsc-pub-title a:hover { color: var(--rsc-primary); text-decoration: underline; }
.rsc-pub-authors { margin: 0 0 7px; font-size: 13.5px; color: #475569; line-height: 1.9; }
.rsc-author { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
a.rsc-author { color: var(--rsc-primary); text-decoration: none; font-weight: 600; }
a.rsc-author:hover span { text-decoration: underline; }
.rsc-author-photo {
  width: 18px; height: 18px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: #e5edf2; border: 1px solid #dbe4ec; box-shadow: none;
}
.rsc-pub-cite { margin: 0 0 7px; font-size: 13.5px; color: var(--rsc-muted); line-height: 1.55; }
.rsc-pub-date {
  display: inline-block; font-weight: 700; color: var(--rsc-primary);
  background: rgba(11, 77, 112, .08); border-radius: 6px; padding: 1px 8px; margin-right: 8px;
}
.rsc-pub-jurnal { font-style: italic; color: #475569; }
.rsc-pub-penerbit { color: var(--rsc-muted); }
.rsc-pub-penerbit::before { content: " · "; }
.rsc-pub-type { margin: 0 0 9px; font-size: 12px; color: var(--rsc-muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rsc-type-family { color: var(--rsc-muted); }
.rsc-type-val { font-weight: 600; color: #475569; }
.rsc-type-peer { color: var(--rsc-muted); }
.rsc-pub-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; }
.rsc-q { display: inline-block; padding: 1px 8px; border-radius: 6px; color: #fff; font-weight: 700; font-size: 11px; }
.rsc-cite { color: var(--rsc-muted); }
.rsc-links a { color: var(--rsc-primary); text-decoration: none; margin-left: 8px; font-weight: 600; }
.rsc-links a:hover { text-decoration: underline; }

/* Sidebar co-author */
.rsc-side-card { background: #fff; border: 1px solid var(--rsc-line); border-radius: 14px; padding: 18px; position: sticky; top: 90px; }
.rsc-side-card h4 { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: var(--rsc-ink); }
.rsc-co { display: flex; align-items: center; gap: 10px; padding: 7px 0; text-decoration: none; color: var(--rsc-ink); border-bottom: 1px solid #f1f5f8; }
.rsc-co:last-child { border-bottom: none; }
.rsc-co img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #e5edf2; flex-shrink: 0; }
.rsc-co-name { flex: 1; font-size: 13px; line-height: 1.3; }
.rsc-co:hover .rsc-co-name { color: var(--rsc-primary); }
.rsc-co-jml { font-size: 12px; color: var(--rsc-muted); font-weight: 600; }

/* ---------- MODAL ---------- */
.rsc-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.rsc-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.rsc-modal-box { position: relative; background: #fff; border-radius: 16px; max-width: 620px; width: 100%; max-height: 82vh; overflow: auto; padding: 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.rsc-modal-close { position: absolute; top: 12px; right: 16px; border: none; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--rsc-muted); }
.rsc-modal-box h3 { font-size: 18px; font-weight: 700; margin: 0 20px 6px 0; color: var(--rsc-ink); }
.rsc-modal-jurnal { font-size: 13px; color: var(--rsc-muted); margin: 0 0 14px; }
.rsc-modal-box h4 { font-size: 14px; margin: 12px 0 6px; color: var(--rsc-ink); }
.rsc-modal-authors { font-size: 14px; line-height: 1.7; }
.rsc-modal-authors a { color: var(--rsc-primary); text-decoration: none; font-weight: 600; }
.rsc-modal-authors a:hover { text-decoration: underline; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .rsc-profil-body { grid-template-columns: 1fr; }
  .rsc-side-card { position: static; }
}
@media (max-width: 680px) {
  .rsc-stats { grid-template-columns: repeat(2, 1fr); margin-top: -20px; }
  .rsc-hero h1 { font-size: 30px; }
  .rsc-photo { width: 92px; height: 92px; }
}

/* ============================================================
 * SDG (ditambahkan 2026-08-18)
 * ============================================================ */
.rsc-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 26px; }
.rsc-two-col > .rsc-quartile-box, .rsc-two-col > .rsc-sdg-box { margin-bottom: 0; }

.rsc-sdg-box { background: #fff; border: 1px solid var(--rsc-line); border-radius: 14px; padding: 20px 22px; }
.rsc-sdg-box h3 { font-size: 16px; font-weight: 700; margin: 0 0 14px; color: var(--rsc-ink); }
.rsc-sdg-belum { font-size: 12px; font-weight: 400; color: var(--rsc-muted); }
.rsc-sdg-grid { display: flex; flex-direction: column; gap: 6px; }
.rsc-sdgbar { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.rsc-sdgbar-no { width: 24px; height: 24px; flex-shrink: 0; border-radius: 6px; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rsc-sdgbar-track { flex: 1; height: 10px; background: #eef2f5; border-radius: 6px; overflow: hidden; }
.rsc-sdgbar-fill { display: block; height: 100%; border-radius: 6px; }
.rsc-sdgbar-val { width: 58px; text-align: right; font-size: 12px; font-weight: 600; color: var(--rsc-ink); }
.rsc-sdgbar:hover .rsc-sdgbar-val { color: var(--rsc-primary); }

/* Badge SDG di baris publikasi & modal */
.rsc-sdg-badge { display: inline-block; padding: 1px 8px; border-radius: 6px; color: #fff; font-weight: 700; font-size: 11px; }
.rsc-modal-sdg { margin: 0 0 14px; font-size: 13px; color: var(--rsc-muted); display: flex; align-items: center; gap: 8px; }

/* Dot SDG bernomor (rekap kartu & sidebar) */
.rsc-sdg-dot { display: inline-flex; align-items: center; gap: 4px; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; cursor: pointer; }
.rsc-sdg-dot b { font-weight: 700; opacity: .9; font-size: 11px; }
.rsc-card-sdgs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.rsc-card-sdgs .rsc-sdg-dot { cursor: default; }

/* Sidebar rekap SDG (profil) */
.rsc-side-hint { font-size: 12px; color: var(--rsc-muted); margin: 0 0 10px; }
.rsc-sdg-rekap { display: flex; flex-wrap: wrap; gap: 6px; }
.rsc-sdg-rekap .rsc-sdg-dot { transition: transform .12s, box-shadow .12s; }
.rsc-sdg-rekap .rsc-sdg-dot:hover { transform: translateY(-1px); }
.rsc-sdg-rekap .rsc-sdg-dot.active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px currentColor; }
.rsc-sdg-all { background: #64748b !important; }

@media (max-width: 760px) {
  .rsc-two-col { grid-template-columns: 1fr; }
}

/* ============================================================
 * SDG pakai LOGO resmi (override, 2026-08-18) — /assets/img/sdgs/
 * ============================================================ */
/* Bar distribusi global: logo di kiri */
.rsc-sdgbar-ico { width: 30px; height: 30px; flex-shrink: 0; border-radius: 5px; object-fit: cover; }

/* Badge logo di baris publikasi & modal */
.rsc-sdg-badge-ico { width: 24px; height: 24px; border-radius: 4px; object-fit: cover; vertical-align: middle; }
.rsc-modal-sdg .rsc-sdg-badge-ico { width: 40px; height: 40px; border-radius: 6px; }

/* Dot = logo (+jumlah) untuk rekap kartu & sidebar */
.rsc-sdg-dot { display: inline-flex; align-items: center; gap: 5px; padding: 0; background: transparent !important; color: var(--rsc-ink); min-width: 0; height: auto; border-radius: 0; font-weight: 700; }
.rsc-sdg-dot img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; display: block; }
.rsc-sdg-dot b { font-size: 12px; font-weight: 700; color: var(--rsc-muted); opacity: 1; }

/* Rekap di kartu hasil cari: logo lebih kecil, tanpa angka */
.rsc-card-sdgs .rsc-sdg-dot img { width: 26px; height: 26px; }
.rsc-card-sdgs .rsc-sdg-dot b { display: none; }

/* Rekap sidebar profil: item logo+jumlah, klik untuk filter */
.rsc-sdg-rekap { gap: 8px; }
.rsc-sdg-rekap .rsc-sdg-dot { cursor: pointer; padding: 2px; border-radius: 8px; }
.rsc-sdg-rekap .rsc-sdg-dot.active { background: #eef4f8 !important; box-shadow: inset 0 0 0 2px var(--rsc-primary); }
.rsc-sdg-rekap .rsc-sdg-dot:hover { background: #f3f7fa !important; }

/* Tombol "Semua" (tanpa logo) */
.rsc-sdg-all { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 8px; background: #64748b !important; color: #fff !important; font-size: 12px; font-weight: 700; cursor: pointer; }
.rsc-sdg-all.active { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px #475569; }

/* ---------- HALAMAN SDG (/research/sdgs/{sdg}/{page}) ---------- */
.rsc-sdg-head {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--rsc-line); border-radius: 14px;
  padding: 22px 24px; margin-bottom: 20px;
}
.rsc-sdg-head-ikon { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.rsc-sdg-head-txt { min-width: 0; }
.rsc-sdg-head h1 { font-size: 24px; font-weight: 800; margin: 0 0 6px; color: var(--rsc-ink); line-height: 1.25; }
.rsc-sdg-head-count { margin: 0; font-size: 14px; color: var(--rsc-muted); }

.rsc-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.rsc-pg-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 12px;
  border: 1px solid var(--rsc-line); border-radius: 8px; background: #fff;
  color: var(--rsc-ink); font-size: 13px; font-weight: 600; text-decoration: none;
  transition: border-color .15s, color .15s, background .15s;
}
.rsc-pg-btn:hover { border-color: var(--rsc-primary-2); color: var(--rsc-primary); }
.rsc-pg-current { background: var(--rsc-primary); border-color: var(--rsc-primary); color: #fff; }
.rsc-pg-current:hover { color: #fff; }
.rsc-pg-disabled { color: #cbd5e1; cursor: default; }
.rsc-pg-dots { color: var(--rsc-muted); padding: 0 2px; }

