/* =====================================================================
   PUSTAKA — Repositori Institusi Poltekkes Kemenkes Manado
   Tema "repository" v2 (2026) · semua kelas berawalan .pk-
   ===================================================================== */
:root {
    --pk-ink: #0F2A23;
    --pk-ink-2: #22362F;
    --pk-muted: #4A5D55;
    --pk-line: #DCE5DF;
    --pk-line-2: #EEF3EF;
    --pk-bg: #F6F8F5;
    --pk-card: #FFFFFF;
    --pk-green: #0B6B4F;
    --pk-green-d: #08553F;
    --pk-mint: #E2F5EC;
    --pk-mint-2: #B9E7CF;
    --pk-deep: #143A30;
    --pk-amber-bg: #FFF1D6;
    --pk-amber: #7A4A00;
    --pk-blue-bg: #DFF0FF;
    --pk-blue: #0B4A80;
    --pk-serif: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; /* satu keluarga huruf untuk seluruh tema */
    --pk-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --pk-radius: 14px;
}

body.pk-body {
    margin: 0;
    padding: 0 !important;
    background: var(--pk-bg) !important;
    color: var(--pk-ink);
    font-family: var(--pk-sans);
    font-size: 15px;
    line-height: 1.55;
    display: block;
}
.pk-body a { color: var(--pk-green); }
.pk-body a:hover { color: var(--pk-green-d); }
.pk-body h1, .pk-body h2, .pk-body h3, .pk-body h4, .pk-body h5, .pk-body h6 { color: var(--pk-ink); font-family: var(--pk-sans); letter-spacing: -0.01em; }
.pk-body, .pk-body button, .pk-body input, .pk-body select, .pk-body textarea, .pk-body .tooltip, .pk-body .popover, .pk-body .modal { font-family: var(--pk-sans); }
.pk-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pk-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.pk-serif { font-family: var(--pk-serif); }
.pk-body :focus-visible { outline: 3px solid #1D9A73; outline-offset: 2px; }

/* ---------- tombol & label ---------- */
.pk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px;
    font: 700 14px/1 var(--pk-sans); text-decoration: none !important; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
.pk-btn-primary { background: var(--pk-green); color: #fff !important; }
.pk-btn-primary:hover { background: var(--pk-green-d); }
.pk-btn-line { background: #fff; color: var(--pk-ink) !important; border-color: var(--pk-line); font-weight: 600; }
.pk-btn-line:hover { border-color: var(--pk-green); color: var(--pk-green) !important; }
.pk-btn-sm { min-height: 36px; padding: 0 13px; font-size: 13px; border-radius: 9px; }
.pk-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.5; }
.pk-badge-type { background: var(--pk-mint); color: var(--pk-green); }
.pk-badge-open { background: var(--pk-blue-bg); color: var(--pk-blue); }
.pk-badge-lock { background: var(--pk-amber-bg); color: var(--pk-amber); }
.pk-badge-soft { background: var(--pk-line-2); color: #2D4A40; }
.pk-chip { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 8px; background: var(--pk-line-2); color: #2D4A40 !important; font-size: 13px; font-weight: 600; text-decoration: none !important; }
.pk-chip:hover { background: var(--pk-mint); color: var(--pk-green) !important; }
.pk-card { background: var(--pk-card); border: 1px solid var(--pk-line); border-radius: 16px; }

/* ---------- kepala situs ---------- */
.pk-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--pk-line); }
.pk-header-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 12px 24px; max-width: 1240px; margin: 0 auto; }
.pk-brand { display: flex; align-items: center; gap: 12px; color: var(--pk-ink) !important; text-decoration: none !important; }
.pk-brand img { height: 44px; width: auto; }
.pk-brand-t { display: flex; flex-direction: column; line-height: 1.2; }
.pk-brand-t b { font-family: var(--pk-serif); font-size: 21px; font-weight: 800; letter-spacing: .3px; }
.pk-brand-t span { font-size: 12px; color: var(--pk-muted); }
.pk-search { flex: 1 1 360px; min-width: 0; display: flex; gap: 6px; background: var(--pk-line-2); border-radius: 12px; padding: 5px; margin: 0; }
.pk-search select { flex: none; height: 40px; border: 0; border-radius: 9px; background: #fff; padding: 0 10px; font: 600 13px var(--pk-sans); color: var(--pk-ink); }
.pk-search input { flex: 1 1 auto; min-width: 0; width: 100%; height: 40px; border: 0; background: transparent; padding: 0 10px; font: 15px var(--pk-sans); color: var(--pk-ink); outline: none; }
.pk-search button { height: 40px; padding: 0 16px; border: 0; border-radius: 9px; background: var(--pk-green); color: #fff; font: 700 14px var(--pk-sans); cursor: pointer; }
.pk-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.pk-nav > a, .pk-nav > button.pk-navbtn { padding: 10px 12px; border-radius: 10px; font: 600 14px var(--pk-sans); color: var(--pk-ink) !important; text-decoration: none !important; background: none; border: 0; cursor: pointer; }
.pk-nav > a:hover, .pk-nav > button.pk-navbtn:hover { background: var(--pk-line-2); }
.pk-profile { position: relative; margin-left: 6px; }
.pk-profile img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--pk-mint); cursor: pointer; }
.pk-profile .dropdown-menu { border-radius: 12px; border: 1px solid var(--pk-line); padding: 6px; min-width: 220px; }
.pk-profile .dropdown-item { border-radius: 8px; padding: 9px 12px; font-size: 14px; }
.pk-profile-h { padding: 8px 12px 10px; border-bottom: 1px solid var(--pk-line-2); margin-bottom: 4px; font-size: 13px; color: var(--pk-muted); }
.pk-profile-h b { display: block; color: var(--pk-ink); font-size: 15px; }
.pk-menu-toggle { display: none; }
@media (max-width: 900px) {
    .pk-header-in { padding: 10px 16px; }
    .pk-brand-t span { display: none; }
    .pk-nav { display: none !important; }      /* di ponsel menu pindah ke bilah bawah */
    .pk-nav > a, .pk-nav > button.pk-navbtn { width: 100%; text-align: left; display: flex; align-items: center; gap: 6px; padding: 12px; }
    .pk-nav .pk-profile { margin: 6px 0 4px; padding-top: 10px; border-top: 1px solid var(--pk-line-2); }
    .pk-search { order: 5; flex-basis: 100%; }
    .pk-search select { max-width: 96px; }
    .pk-search button { padding: 0 12px; }
    .pk-hero-in { padding: 36px 16px 30px; }
    .pk-main, .pk-results, .pk-detail, .pk-page { padding-left: 16px; padding-right: 16px; }
    .pk-hero-search select { flex: 1 1 100%; }
    .pk-hero-search button { flex: 1 1 100%; justify-content: center; }
    .pk-item { padding: 16px; }
}

/* ---------- beranda ---------- */
.pk-hero { background: var(--pk-ink); color: #fff; }
.pk-hero-in { max-width: 1240px; margin: 0 auto; padding: 64px 24px 52px; display: flex; flex-direction: column; gap: 26px; }
.pk-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--pk-mint-2); }
.pk-hero h1 { margin: 0; font-family: var(--pk-serif); font-size: clamp(28px, 3.8vw, 44px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: #fff; max-width: 800px; }
.pk-hero p.pk-lead { margin: 0; font-size: 17px; line-height: 1.6; color: #D3E6DC; max-width: 720px; }
.pk-hero-search { background: #fff; border-radius: 16px; padding: 8px; display: flex; flex-wrap: wrap; gap: 8px; max-width: 920px; box-shadow: 0 10px 30px rgba(0,0,0,.25); margin: 0; }
.pk-hero-search select { height: 52px; border: 0; background: var(--pk-line-2); border-radius: 10px; padding: 0 14px; font: 600 14px var(--pk-sans); color: var(--pk-ink); }
.pk-hero-search input { flex: 1 1 200px; min-width: 0; width: 100%; height: 52px; border: 0; padding: 0 12px; font: 16px var(--pk-sans); color: var(--pk-ink); outline: none; }
.pk-hero-search button { height: 52px; padding: 0 26px; border: 0; border-radius: 10px; background: var(--pk-green); color: #fff; font: 700 15px var(--pk-sans); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.pk-hero-types { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pk-hero-types span { font-size: 13px; color: var(--pk-mint-2); margin-right: 4px; }
.pk-hero-types a { padding: 8px 14px; border-radius: 999px; border: 1px solid #3E6A5B; color: #fff !important; font-size: 13px; font-weight: 600; text-decoration: none !important; }
.pk-hero-types a:hover { background: #1C4A3D; }
.pk-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: #2C4C42; border-radius: 14px; overflow: hidden; }
.pk-stats > div { background: var(--pk-deep); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.pk-stats b { font-family: var(--pk-serif); font-size: 28px; font-weight: 800; color: #fff; line-height: 1.2; }
.pk-stats span { font-size: 13px; color: var(--pk-mint-2); }
.pk-main { max-width: 1240px; margin: 0 auto; padding: 52px 24px 24px; display: flex; flex-direction: column; gap: 60px; }
.pk-sec-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 18px; }
.pk-sec-h h2 { margin: 0; font-family: var(--pk-serif); font-size: 26px; font-weight: 800; letter-spacing: -0.015em; }
.pk-sec-h p { margin: 6px 0 0; color: var(--pk-muted); font-size: 15px; }
.pk-sec-h a { font-weight: 700; font-size: 14px; }
.pk-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.pk-tile { background: #fff; border: 1px solid var(--pk-line); border-radius: var(--pk-radius); padding: 16px 18px; display: flex; gap: 14px; align-items: center; color: var(--pk-ink) !important; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.pk-tile:hover { border-color: var(--pk-green); transform: translateY(-1px); }
.pk-tile-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--pk-mint); color: var(--pk-green); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex: none; }
.pk-tile b { display: block; font-size: 15px; }
.pk-tile small { font-size: 13px; color: var(--pk-muted); }
.pk-two { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.pk-two > .pk-col-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pk-two > .pk-col-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.pk-side-h { margin: 0; font-family: var(--pk-serif); font-size: 18px; font-weight: 800; }
.pk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-years { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pk-years a { text-align: center; padding: 10px 0; border-radius: 10px; background: var(--pk-line-2); font-weight: 700; font-size: 14px; color: var(--pk-ink) !important; text-decoration: none !important; }
.pk-years a:hover { background: var(--pk-mint); }
.pk-deposit { background: var(--pk-mint); border-radius: 20px; padding: 34px; display: flex; flex-wrap: wrap; gap: 30px; align-items: center; }
.pk-deposit > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; }
.pk-deposit h2 { margin: 0; font-family: var(--pk-serif); font-size: 26px; font-weight: 800; }
.pk-deposit p { margin: 0; color: #2D4A40; line-height: 1.6; }
.pk-deposit ol { flex: 2 1 460px; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.pk-deposit li { background: #fff; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.pk-deposit li i { font-style: normal; font-family: var(--pk-serif); font-size: 26px; font-weight: 700; color: var(--pk-green); line-height: 1; }
.pk-deposit li span { font-size: 13px; color: var(--pk-muted); }
.pk-oa { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pk-oa a { background: #fff; border: 1px solid var(--pk-line); border-radius: 12px; height: 84px; display: flex; align-items: center; justify-content: center; padding: 12px; }
.pk-oa a:hover { border-color: var(--pk-green); }
.pk-oa img { max-width: 100%; max-height: 54px; object-fit: contain; }
.pk-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.pk-pager a, .pk-pager span { min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff; border: 1px solid var(--pk-line); color: var(--pk-ink) !important; font-weight: 600; text-decoration: none !important; }
.pk-pager .on { background: var(--pk-green); border-color: var(--pk-green); color: #fff !important; }

/* ---------- kartu karya (beranda & hasil) ---------- */
.pk-item { background: #fff; border: 1px solid var(--pk-line); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 9px; margin-bottom: 14px; }
.pk-item-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; }
.pk-item-meta .pk-when { color: var(--pk-muted); font-weight: 600; }
.pk-item h3 { margin: 0; font-family: var(--pk-serif); font-size: 17.5px; line-height: 1.45; font-weight: 700; }
.pk-item h3 a { color: var(--pk-ink) !important; text-decoration: none; }
.pk-item h3 a:hover { color: var(--pk-green) !important; text-decoration: underline; }
.pk-item-by { margin: 0; font-size: 14px; color: #2D4A40; }
.pk-item-by a { color: #2D4A40 !important; }
.pk-item-by .pk-role { color: var(--pk-muted); }
.pk-item-abs { margin: 0; font-size: 14px; line-height: 1.65; color: var(--pk-muted); }
.pk-item-abs mark { background: #FFF3B0; color: inherit; padding: 0 1px; border-radius: 2px; }
.pk-item-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px solid var(--pk-line-2); padding-top: 12px; margin-top: 2px; }
.pk-item-act .pk-end { margin-left: auto; font-size: 12px; color: var(--pk-muted); }
.pk-item-act .bookMarkBook.bg-success { background: var(--pk-green) !important; color: #fff !important; border-color: var(--pk-green); }

/* ---------- hasil penelusuran ---------- */
.pk-results { max-width: 1240px; margin: 0 auto; padding: 28px 24px 56px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.pk-filter { flex: 1 1 260px; max-width: 100%; display: flex; flex-direction: column; gap: 14px; }
.pk-filter-h { display: flex; justify-content: space-between; align-items: center; }
.pk-filter-h h2 { margin: 0; font-size: 16px; font-weight: 700; font-family: var(--pk-sans); }
.pk-filter-h a { font-size: 13px; font-weight: 600; }
.pk-fset { margin: 0; background: #fff; border: 1px solid var(--pk-line); border-radius: 14px; padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pk-fset legend { font-size: 12px; font-weight: 700; color: var(--pk-muted); text-transform: uppercase; letter-spacing: 1px; padding: 0 4px; width: auto; margin: 0; }
.pk-fset label.pk-opt { display: flex; align-items: center; gap: 10px; font-size: 14px; min-height: 32px; cursor: pointer; margin: 0; font-weight: 500; }
.pk-fset input[type=radio] { width: 18px; height: 18px; accent-color: var(--pk-green); margin: 0; flex: none; }
.pk-fset select, .pk-fset input[type=text] { height: 40px; border: 1px solid var(--pk-line); border-radius: 9px; padding: 0 10px; font: 14px var(--pk-sans); color: var(--pk-ink); background: #fff; width: 100%; }
.pk-fset .pk-more { max-height: 240px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.pk-filter .pk-btn { width: 100%; }
.pk-list { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; }
.pk-list-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.pk-list-h h1 { margin: 0; font-family: var(--pk-serif); font-size: 26px; font-weight: 800; }
.pk-list-h p { margin: 4px 0 0; font-size: 14px; color: var(--pk-muted); }
.pk-active { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pk-active a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--pk-mint); color: var(--pk-green) !important; font-size: 13px; font-weight: 600; text-decoration: none !important; }
.pk-active a span { font-size: 16px; line-height: 1; }
.pk-empty { background: #fff; border: 1px dashed var(--pk-line); border-radius: 16px; padding: 40px 24px; text-align: center; color: var(--pk-muted); }
.pk-empty img { max-width: 200px; margin: 0 auto 12px; display: block; }
/* paginasi bawaan SLiMS */
.pk-list .biblioPaging, .pk-list .pagingList { margin: 14px 0; text-align: center; }
.pk-list .pagingList a, .pk-list .pagingList b { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 10px; margin: 2px; padding: 0 10px; border: 1px solid var(--pk-line); background: #fff; color: var(--pk-ink); text-decoration: none; font-weight: 600; }
.pk-list .pagingList b { background: var(--pk-green); color: #fff; border-color: var(--pk-green); }
@media (max-width: 900px) {
    .pk-filter { order: 2; }
    .pk-filter-toggle { display: inline-flex !important; }
}
.pk-filter-toggle { display: none; }

/* ---------- detail karya ---------- */
.pk-detail { max-width: 1240px; margin: 0 auto; padding: 22px 24px 64px; display: flex; flex-direction: column; gap: 20px; }
.pk-crumb { font-size: 13px; color: var(--pk-muted); display: flex; flex-wrap: wrap; gap: 6px; }
.pk-d-grid { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; }
.pk-d-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.pk-d-side { flex: 1 1 330px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; }
.pk-d-card { background: #fff; border: 1px solid var(--pk-line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.pk-d-card h2 { margin: 0; font-family: var(--pk-serif); font-size: 20px; font-weight: 800; }
.pk-d-head { display: flex; gap: 22px; align-items: flex-start; }
.pk-d-cover { flex: none; width: 120px; border-radius: 10px; overflow: hidden; border: 1px solid var(--pk-line); background: var(--pk-line-2); }
.pk-d-cover img { width: 100%; height: auto; display: block; }
.pk-d-title { margin: 0; font-family: var(--pk-serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; font-weight: 800; letter-spacing: -0.015em; }
.pk-people { display: flex; flex-wrap: wrap; gap: 10px; }
.pk-person { display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 999px; border: 1px solid var(--pk-line); color: var(--pk-ink) !important; text-decoration: none !important; }
.pk-person:hover { border-color: var(--pk-green); }
.pk-person i { font-style: normal; width: 32px; height: 32px; border-radius: 50%; background: var(--pk-ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.pk-person.pk-adv i { background: var(--pk-green); }
.pk-person span { display: flex; flex-direction: column; line-height: 1.25; }
.pk-person b { font-size: 14px; }
.pk-person small { font-size: 12px; color: var(--pk-muted); }
.pk-dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px 20px; border-top: 1px solid var(--pk-line-2); padding-top: 18px; }
.pk-dl dt { font-size: 12px; color: var(--pk-muted); font-weight: 600; }
.pk-dl dd { margin: 3px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.pk-abs { margin: 0; font-family: var(--pk-sans); font-size: 15.5px; line-height: 1.8; color: var(--pk-ink-2); white-space: pre-line; }
.pk-abs-more summary { cursor: pointer; font-weight: 700; color: var(--pk-green); margin-top: 6px; }
.pk-files { display: flex; flex-direction: column; gap: 10px; }
.pk-file { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; border: 1px solid var(--pk-line-2); border-radius: 12px; }
.pk-file-ic { width: 40px; height: 40px; border-radius: 10px; background: #FBE7E4; color: #A3321F; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.pk-file-t { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pk-file-t b { font-size: 15px; }
.pk-file-t small { font-size: 12px; color: var(--pk-muted); }
.pk-btn-lock { background: #FFF8EA; color: var(--pk-amber) !important; border-color: #E6C27A; }
.pk-cite { background: var(--pk-ink); color: #fff; border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.pk-cite h2 { margin: 0; font-size: 16px; font-weight: 700; color: #fff; font-family: var(--pk-sans); }
.pk-cite-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-cite-tabs button { height: 36px; padding: 0 12px; border-radius: 9px; border: 1px solid #3E6A5B; background: transparent; color: #fff; font: 600 13px var(--pk-sans); cursor: pointer; }
.pk-cite-tabs button[aria-selected="true"] { background: var(--pk-mint-2); color: var(--pk-ink); border-color: var(--pk-mint-2); font-weight: 700; }
.pk-cite-text { margin: 0; background: var(--pk-deep); border-radius: 12px; padding: 14px; font-family: var(--pk-sans); font-size: 14px; line-height: 1.65; color: #EAF5EF; overflow-wrap: anywhere; }
.pk-cite-act { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-cite-act button, .pk-cite-act a { flex: 1 1 auto; min-height: 44px; border: 1px solid #3E6A5B; border-radius: 10px; background: transparent; color: #fff !important; font: 600 14px var(--pk-sans); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none !important; padding: 0 12px; }
.pk-cite-act .pk-copy { background: var(--pk-mint-2); color: var(--pk-ink) !important; border-color: var(--pk-mint-2); font-weight: 700; }
.pk-side-card { background: #fff; border: 1px solid var(--pk-line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.pk-side-card h2 { margin: 0; font-size: 15px; font-weight: 700; font-family: var(--pk-sans); }
.pk-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: var(--pk-line-2); border-radius: 8px; padding: 10px; overflow-wrap: anywhere; color: var(--pk-ink); }
.pk-kv { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.pk-kv div { display: flex; justify-content: space-between; gap: 10px; }
.pk-kv dt { color: var(--pk-muted); font-weight: 500; }
.pk-kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; font-weight: 600; }
.pk-rel a { display: block; font-family: var(--pk-sans); font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--pk-ink) !important; padding: 8px 0; border-bottom: 1px solid var(--pk-line-2); }
.pk-rel a:last-child { border-bottom: 0; }
.pk-rel a:hover { color: var(--pk-green) !important; }
.pk-details > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.pk-details > summary::-webkit-details-marker { display: none; }
.pk-details > summary::after { content: '+'; font-size: 22px; color: var(--pk-green); font-weight: 700; }
.pk-details[open] > summary::after { content: '–'; }
/* tabel eksemplar SLiMS di dalam kartu detail */
.pk-copies .w-100 { display: grid !important; grid-template-columns: 1.4fr 1fr 1fr .6fr; gap: 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--pk-line-2); }
.pk-copies .w-100 > div { width: auto !important; max-width: none !important; flex: none !important; padding: 0 !important; border: 0 !important; background: none !important; }
.pk-copies .availability-item { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pk-copies .add-to-chart-button, .pk-copies .btn-reservasi, .pk-copies .lock-button { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--pk-line); background: #fff; color: var(--pk-green); cursor: pointer; }
.pk-copies .lock-button { color: #9aa5a0; cursor: not-allowed; }
@media (max-width: 700px) {
    .pk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pk-stats b { font-size: 24px; }
    .pk-deposit { padding: 22px; }
    .pk-sec-h h2, .pk-deposit h2 { font-size: 25px; }
    .pk-d-card { padding: 20px; }
    .pk-d-head { flex-direction: column; }
    .pk-d-cover { width: 96px; }
    .pk-d-side { position: static; }
    .pk-copies .w-100 { grid-template-columns: 1fr 1fr; }
}
/* komentar SLiMS */
.pk-d-card .comment-item, .pk-d-card .commentList { font-size: 14px; }

/* ---------- halaman lain & anggota ---------- */
.pk-page { max-width: 1240px; margin: 0 auto; padding: 32px 24px 56px; }
.pk-page > h1 { font-family: var(--pk-serif); font-size: 26px; font-weight: 800; margin: 0 0 18px; }
.pk-page-card { background: #fff; border: 1px solid var(--pk-line); border-radius: 18px; padding: 24px; }

/* ---------- kaki situs ---------- */
.pk-footer { background: var(--pk-ink); color: #D3E6DC; margin-top: 40px; }
.pk-footer a { color: #D3E6DC !important; }
.pk-footer a:hover { color: #fff !important; }
.pk-footer-in { max-width: 1240px; margin: 0 auto; padding: 40px 24px 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; font-size: 14px; line-height: 1.75; }
.pk-footer b.pk-fh { color: #fff; display: block; margin-bottom: 4px; }
.pk-footer .pk-fbrand { font-family: var(--pk-sans); font-size: 20px; font-weight: 800; }
.pk-footer .pk-mono { font-family: ui-monospace, monospace; font-size: 13px; }
.pk-footer-bottom { max-width: 1240px; margin: 0 auto; padding: 14px 24px 24px; border-top: 1px solid #2C4C42; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: #9FC3B3; }
.pk-visitors { display: flex; gap: 16px; flex-wrap: wrap; }
.pk-visitors b { color: #fff; }

/* modal penelusuran lanjut (Bootstrap) */
#advSearchModal .modal-content { border-radius: 16px; border: 0; }
#advSearchModal .modal-header { border-bottom: 1px solid var(--pk-line-2); }
#advSearchModal .modal-title { font-family: var(--pk-sans); font-weight: 800; }
#advSearchModal label { font-size: 13px; font-weight: 700; color: var(--pk-muted); }
#advSearchModal .form-control { border-radius: 9px; border-color: var(--pk-line); height: 42px; }
#advSearchModal .btn-primary { background: var(--pk-green); border-color: var(--pk-green); border-radius: 10px; font-weight: 700; padding: 10px 18px; }

@media print {
    .pk-header, .pk-footer, .pk-d-side .pk-cite-act, .pk-item-act { display: none !important; }
}

/* ---------- pembaca berkas layar penuh ---------- */
body.pk-reader-body { height: 100vh; overflow: hidden; }
.pk-reader { display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: 100vh; }
.pk-rd-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: var(--pk-ink); color: #fff; min-width: 0; }
.pk-rd-back { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid #3E6A5B; color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none !important; flex: none; }
.pk-rd-back:hover { background: #1C4A3D; }
.pk-rd-title { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.pk-rd-title b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.pk-rd-title small { font-size: 12px; color: var(--pk-mint-2); }
.pk-rd-toggle { display: none; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 0; background: var(--pk-mint-2); color: var(--pk-ink); font: 700 13px var(--pk-sans); cursor: pointer; flex: none; }
.pk-rd-side { background: #fff; border-right: 1px solid var(--pk-line); overflow-y: auto; padding: 18px 14px 24px; display: flex; flex-direction: column; gap: 10px; }
.pk-rd-side h2 { margin: 0 6px 4px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--pk-muted); }
.pk-rd-parts, .pk-rd-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pk-rd-parts > li > a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--pk-ink) !important; font-weight: 600; font-size: 14px; text-decoration: none !important; }
.pk-rd-parts > li > a:hover { background: var(--pk-line-2); }
.pk-rd-parts > li > a.on { background: var(--pk-mint); color: var(--pk-green) !important; font-weight: 800; }
.pk-rd-parts > li > a.locked { color: var(--pk-muted) !important; }
.pk-rd-parts > li > a i { font-size: 12px; color: var(--pk-amber); }
.pk-rd-toc { margin: 4px 0 8px 12px; padding-left: 10px; border-left: 2px solid var(--pk-mint-2); }
.pk-rd-tocitem { width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 8px; font: 500 13px/1.4 var(--pk-sans); color: #2D4A40; cursor: pointer; }
.pk-rd-tocitem:hover { background: var(--pk-line-2); color: var(--pk-green); }
.pk-rd-tocitem.sub { padding-left: 20px; font-size: 12.5px; }
.pk-rd-tocitem small { flex: none; font-size: 11px; color: var(--pk-muted); }
.pk-rd-note { margin: 4px 8px; font-size: 12.5px; color: var(--pk-muted); }
.pk-rd-pn { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--pk-line-2); }
.pk-rd-pn .pk-btn { flex: 1 1 auto; }
.pk-rd-main { min-width: 0; min-height: 0; background: #525659; display: flex; }
.pk-rd-main iframe { border: 0; width: 100%; height: 100%; flex: 1; display: block; background: #525659; }
.pk-rd-msg { margin: auto; max-width: 460px; background: #fff; border-radius: 18px; padding: 32px; text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.pk-rd-msg h1 { margin: 0; font-size: 22px; font-weight: 800; }
.pk-rd-msg p { margin: 0; color: var(--pk-muted); }
.pk-rd-msg > i { font-size: 26px; color: var(--pk-amber); }
@media (max-width: 900px) {
    .pk-reader { grid-template-columns: minmax(0, 1fr); }
    .pk-rd-toggle { display: inline-flex; }
    .pk-rd-back span, .pk-rd-toggle span { display: none; }
    .pk-rd-side { position: fixed; z-index: 20; top: 60px; left: 0; bottom: 0; width: min(320px, 88vw); transform: translateX(-105%); transition: transform .2s; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
    .pk-rd-side.open { transform: none; }
}

/* =====================================================================
   MENU BAWAH (ponsel) — Beranda · Jelajahi · [Akun] · Unggah · Lainnya
   ===================================================================== */
.pk-tabbar, .pk-sheet { display: none; }
@media (max-width: 900px) {
    body.pk-body { padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
    .pk-tabbar {
        display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
        height: calc(66px + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom);
        background: rgba(255, 255, 255, .97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid var(--pk-line); box-shadow: 0 -8px 24px rgba(15, 42, 35, .08);
    }
    .pk-tabbar > a, .pk-tabbar > button {
        height: 66px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
        border: 0; background: none; padding: 0; margin: 0; cursor: pointer; font: 700 11px var(--pk-sans);
        color: var(--pk-muted) !important; text-decoration: none !important; -webkit-tap-highlight-color: transparent;
    }
    .pk-tabbar svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .pk-tabbar > a.on, .pk-tabbar > button.on { color: var(--pk-green) !important; }
    .pk-tabbar > a.on svg { stroke-width: 2.4; }
    .pk-tabbar > a:active, .pk-tabbar > button:active { transform: scale(.94); }
    .pk-tabbar > a.pk-tab-center { justify-content: flex-end; padding-bottom: 9px; color: var(--pk-ink) !important; }
    .pk-tab-center i {
        width: 58px; height: 58px; margin-top: -30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
        background: linear-gradient(145deg, var(--pk-green), var(--pk-deep)); color: #fff; overflow: hidden;
        border: 4px solid #fff; box-shadow: 0 8px 20px rgba(11, 107, 79, .35); font-style: normal;
    }
    .pk-tab-center i svg { width: 26px; height: 26px; stroke-width: 2.2; }
    .pk-tab-center i img { width: 100%; height: 100%; object-fit: cover; }
    .pk-tabbar > a.pk-tab-center.on { color: var(--pk-green) !important; }
    .pk-tab-center.on i { box-shadow: 0 0 0 3px var(--pk-mint-2), 0 8px 20px rgba(11, 107, 79, .35); }

    .pk-sheet { position: fixed; inset: 0; z-index: 1050; background: rgba(15, 42, 35, .45); align-items: flex-end; }
    .pk-sheet.open { display: flex; }
    .pk-sheet[hidden] { display: none !important; }
    .pk-sheet-box { width: 100%; max-height: 78vh; overflow: auto; background: #fff; border-radius: 22px 22px 0 0;
        padding: 10px 16px calc(84px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 30px rgba(0, 0, 0, .18); animation: pkSheetUp .22s ease-out; }
    @keyframes pkSheetUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
    .pk-sheet-grip { width: 42px; height: 5px; border-radius: 99px; background: var(--pk-line); margin: 2px auto 12px; }
    .pk-sheet-who { display: flex; align-items: center; gap: 12px; padding: 6px 4px 14px; border-bottom: 1px solid var(--pk-line-2); margin-bottom: 8px; }
    .pk-sheet-av { width: 44px; height: 44px; border-radius: 50%; background: var(--pk-ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; overflow: hidden; flex: none; }
    .pk-sheet-av img { width: 100%; height: 100%; object-fit: cover; }
    .pk-sheet-who b { display: block; font-size: 15px; color: var(--pk-ink); }
    .pk-sheet-who small { color: var(--pk-muted); font-size: 12px; }
    .pk-sheet-list { display: flex; flex-direction: column; }
    .pk-sheet-list > a, .pk-sheet-list > button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 12px; border-radius: 12px; border: 0; background: none;
        color: var(--pk-ink) !important; font: 600 15px var(--pk-sans); text-align: left; text-decoration: none !important; cursor: pointer; }
    .pk-sheet-list i { width: 20px; text-align: center; color: var(--pk-green); }
    .pk-sheet-list > a:hover, .pk-sheet-list > a:active, .pk-sheet-list > button:hover { background: var(--pk-line-2); }
    .pk-sheet-list > a.danger { color: #A3321F !important; }
    .pk-sheet-list > a.danger i { color: #A3321F; }
    body.pk-sheet-open { overflow: hidden; }
    /* tombol melayang plugin lain (mis. Asisten Pustaka) naik di atas menu bawah */
    body.pk-body .asp-root { --asp-bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
}

/* ---------- ponsel: kepala & menu bawah tetap tampil saat digulir, tanpa geser ke samping ---------- */
@media (max-width: 900px) {
    html { overflow-x: hidden; scroll-padding-top: calc(var(--pk-head-h, 128px) + 8px); }
    @supports (overflow: clip) { html { overflow-x: clip; } }
    body.pk-body { max-width: 100%; overflow-x: clip; }
    body.pk-body:not(.pk-reader-body) { padding-top: var(--pk-head-h, 128px) !important; }
    body.pk-body:not(.pk-reader-body) > .pk-header,
    body.pk-body:not(.pk-reader-body) .pk-header {
        position: fixed; top: 0; left: 0; right: 0; width: 100%;
        padding-top: env(safe-area-inset-top);
        -webkit-transform: translateZ(0); transform: translateZ(0);
    }
    .pk-tabbar { -webkit-transform: translateZ(0); transform: translateZ(0); max-width: 100vw; }
    .pk-header-in { padding: 10px 16px; gap: 10px 12px; }
    .pk-search { min-width: 0; max-width: 100%; }
    .pk-search input { min-width: 0; }

    /* hasil penelusuran (Jelajahi): tidak ada isi yang melebihi lebar layar */
    .pk-results, .pk-list, .pk-item, .biblioResult { min-width: 0; max-width: 100%; }
    .pk-item h3, .pk-item-by, .pk-item-abs, .pk-active a { overflow-wrap: anywhere; }
    .pk-item-act { flex-wrap: wrap; }
    .pk-list .biblioPaging { display: block; max-width: 100%; }
    .pk-list .biblioPaging .pagingList { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 100%;
        background: transparent; border-radius: 0; padding: 0; }
    .pk-list .biblioPaging .pagingList a, .pk-list .biblioPaging .pagingList b { margin: 0; min-width: 40px; height: 40px; padding: 0 10px !important;
        font-size: 14px; box-shadow: none; flex: 0 0 auto; }
}
