/* ============================================================
   RISPRO Projects (views/site/microsite/project.php)
   ============================================================ */
.page-head { padding: 56px 0 8px; }
.page-head .section-title { font-size: clamp(30px, 4vw, 46px); }

.summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 32px 0 20px; }
.summary .kpi { display: flex; align-items: center; gap: 18px; background: var(--surface); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.summary .kpi .scheme-icon { width: 52px; height: 52px; border-radius: 14px; flex: none; }
.summary .kpi .scheme-icon svg { width: 24px; height: 24px; }
.summary .kpi .num { font-size: 26px; }

/* ---------- filter ---------- */
.filter-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 24px; }
.filter-grid { display: grid; grid-template-columns: 2fr repeat(5, 1fr); gap: 10px; }
.filter-grid .select { width: 100%; border-radius: 12px; }
.search-box { position: relative; }
.search-box input {
    width: 100%; font: inherit; font-size: 14px; color: var(--ink);
    padding: 10px 16px 10px 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
}
.search-box input:focus, .filter-grid .select:focus { outline: 3px solid var(--primary-50); border-color: var(--primary); }
.search-box svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.filter-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.result-info { font-size: 14px; color: var(--muted); }
.result-info b { color: var(--ink); }
.link-btn { font: inherit; font-size: 14px; font-weight: 500; color: var(--primary); background: none; border: 0; cursor: pointer; padding: 4px 0; }
.link-btn:hover { text-decoration: underline; }
.link-btn[hidden] { display: none; }

/* ---------- project list ---------- */
.plist { display: grid; gap: 14px; }
.pcard {
    position: relative; display: grid; grid-template-columns: 1fr 240px; gap: 24px;
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 22px 24px 22px 28px; overflow: hidden;
}
.pcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, var(--primary)); }
.pcard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.tag {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500;
    padding: 3px 10px; border-radius: 99px; background: var(--bg); color: var(--muted);
}
.tag.scheme { background: color-mix(in srgb, var(--accent, var(--primary)) 13%, white); color: var(--accent, var(--primary)); font-weight: 600; }
.tag.status-on::before, .tag.status-off::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.tag.status-on { color: #1f8a4c; background: #e8f5ee; }
.tag.status-on::before { background: #1f8a4c; }
.tag.status-off::before { background: #a6a3b5; }
.pcard h3 { margin: 0 0 12px; font-size: 16px; font-weight: 600; line-height: 1.45; }
.pi { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.avatar {
    width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center;
    background: var(--primary-50); color: var(--primary); font-weight: 600; font-size: 13px; overflow: hidden;
}
.pi b { display: block; color: var(--ink); font-weight: 500; font-size: 14px; }
.pmeta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.pmeta span b { color: var(--ink); font-weight: 500; }
.pside { border-left: 1px solid var(--line); padding-left: 24px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px; }
.fund small { display: block; font-size: 12px; color: var(--muted); }
.fund b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fund .ongoing { margin-top: 8px; font-size: 13px; color: var(--muted); }
.fund .ongoing b { font-size: 13px; color: var(--ink); }
.pside .btn { padding: 9px 16px; font-size: 13px; justify-content: center; }

/* skeleton */
/* .skel dasar ada di microsite.css */
.pcard.loading .skel { height: 14px; margin-bottom: 10px; }

.state { text-align: center; padding: 56px 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--muted); }
.state h3 { color: var(--ink); margin: 0 0 6px; font-size: 18px; }

/* ---------- pagination ---------- */
.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pager button {
    min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--surface); font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; transition: border-color .15s, color .15s;
}
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager button[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }
.pager .gap { color: var(--muted); padding: 0 4px; }

/* ---------- modal abstract ---------- */
dialog.modal {
    width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0;
    border-radius: 24px; box-shadow: 0 30px 80px rgba(22, 19, 42, .35); color: var(--ink);
}
dialog.modal::backdrop { background: rgba(22, 19, 42, .55); backdrop-filter: blur(3px); }
.modal-head { display: flex; gap: 16px; align-items: center; padding: 24px 28px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.modal-head .avatar { width: 56px; height: 56px; font-size: 18px; }
.modal-head .avatar img { width: 100%; height: 100%; object-fit: cover; }
.modal-head small { display: block; font-size: 12px; color: var(--muted); }
.modal-head b { font-size: 16px; font-weight: 600; }
.modal-close { margin-left: auto; align-self: flex-start; }
.modal-body { padding: 24px 28px 28px; }
.modal-body h3 { margin: 12px 0 18px; font-size: 18px; line-height: 1.45; font-weight: 600; }
.modal-body h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.modal-body .abstract { font-size: 14px; line-height: 1.75; text-align: justify; color: #3a3850; }

@media (max-width: 1100px) {
    .filter-grid { grid-template-columns: repeat(3, 1fr); }
    .filter-grid .search-box { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .pcard { grid-template-columns: 1fr; gap: 16px; }
    .pside { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0 0; flex-direction: row; align-items: center; }
    .filter-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .summary { grid-template-columns: 1fr; }
    .pside { flex-direction: column; align-items: stretch; }
    .modal-head, .modal-body { padding-left: 20px; padding-right: 20px; }
}

/* ukuran skeleton loading (pengganti atribut style) */
.skel.sk-inline { display: inline-block; height: 26px; }
.skel.sk-num { width: 90px; }
.skel.sk-fund { width: 200px; }
.skel.sk-block { display: block; height: 12px; margin-bottom: 8px; }
.skel.sk-title { display: block; height: 18px; width: 90%; margin-bottom: 0; }
.skel.h18, .pcard.loading .skel.h18 { height: 18px; }
.skel.h20, .pcard.loading .skel.h20 { height: 20px; }
.skel.w30 { width: 30%; } .skel.w40 { width: 40%; } .skel.w50 { width: 50%; } .skel.w60 { width: 60%; }
.skel.w70 { width: 70%; } .skel.w80 { width: 80%; } .skel.w90 { width: 90%; }
