/* Perpustakaan POLITA — frontend stylesheet (tanpa build step) */
:root {
    --brand: #24609F;
    --brand-deep: #173E68;
    --ink: #12263D;
    --text: #1D2939;
    --muted: #4D5B6E;
    --line: #DCE5EF;
    --mist: #F0F5FA;
    --mist-2: #E4EDF7;
    --paper: #FFFFFF;
    --leaf: #2E9645;
    --leaf-deep: #1E7537;
    --leaf-soft: #7CC576;
    --accent: #F5A524;
    --accent-soft: #FFF2DC;
    --accent-ink: #6E4100;
    --spine-1: #2F6FB3;
    --spine-2: #1F548C;
    --spine-3: #8FB6DE;
    --r-sm: 6px;
    --r-md: 12px;
    --r-lg: 20px;
    --shadow-raised: 0 10px 30px rgba(18, 38, 61, .12);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.01em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.icon { flex: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 10px; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #E8941A; }
.btn-soft { background: var(--mist); color: var(--brand); }
.btn-soft:hover { background: var(--mist-2); }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Header ---------- */
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand img { height: 48px; width: auto; }
.topbar-meta { display: none; gap: 8px; }
.meta-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--mist); color: var(--muted); font-size: .85rem; font-weight: 600; text-decoration: none; }
.meta-chip:hover { color: var(--brand); }

.mainnav { position: sticky; top: 0; z-index: 40; background: var(--brand); transition: background-color .25s var(--ease), box-shadow .25s var(--ease); }
/* Saat menempel di atas: transparan ±20% + blur agar konten di belakang tetap terbaca samar. */
.mainnav.is-stuck { background: rgba(36, 96, 159, .8); background: color-mix(in srgb, var(--brand) 80%, transparent); -webkit-backdrop-filter: blur(10px) saturate(140%); backdrop-filter: blur(10px) saturate(140%); box-shadow: 0 6px 20px rgba(18, 38, 61, .18); }
.mainnav.is-stuck.nav-open { background: var(--brand); }
.mainnav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; position: relative; }
.nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; margin-left: -12px; background: transparent; border: 0; color: #fff; font-weight: 700; cursor: pointer; border-radius: 8px; }
.nav-toggle .when-open { display: none; }
.mainnav.nav-open .nav-toggle .when-open { display: block; }
.mainnav.nav-open .nav-toggle .when-closed { display: none; }
.nav-search { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #fff; border-radius: 10px; }
.nav-search:hover { background: rgba(255,255,255,.12); }

.nav-list { list-style: none; display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--brand-deep); padding: 8px 20px 16px; max-height: calc(100vh - 56px); overflow-y: auto; }
.mainnav.nav-open .nav-list { display: block; }
.nav-link { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; min-height: 48px; padding: 0 4px; background: transparent; border: 0; color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.1); }
.nav-link.is-active { color: var(--accent); }
.caret { transition: transform .2s var(--ease); }
.nav-item.is-open > .nav-link .caret { transform: rotate(180deg); }
.submenu { list-style: none; display: none; padding: 4px 0 8px 12px; }
.nav-item.is-open > .submenu { display: block; }
.submenu a { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; color: #D9E5F2; font-size: .95rem; font-weight: 500; text-decoration: none; border-radius: 8px; }
.submenu a:hover, .submenu a.is-active { color: #fff; background: rgba(255,255,255,.08); }
.submenu a.is-active { color: var(--accent); }

@media (min-width: 720px) {
    .topbar-meta { display: flex; }
}

@media (min-width: 1024px) {
    .nav-toggle { display: none; }
    .mainnav-inner { justify-content: center; }
    .nav-list { display: flex; position: static; background: transparent; padding: 0; max-height: none; overflow: visible; }
    .nav-item { position: relative; }
    .nav-link { width: auto; min-height: 56px; padding: 0 16px; border: 0; font-size: .95rem; white-space: nowrap; }
    .nav-link:hover { background: rgba(255,255,255,.1); }
    .nav-link.is-active { color: #fff; background: rgba(255,255,255,.14); box-shadow: inset 0 -3px 0 var(--accent); }
    .submenu { position: absolute; top: 100%; left: 0; min-width: 270px; padding: 8px; background: var(--ink); border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: 0 18px 40px rgba(18,38,61,.28); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s; display: block; }
    .nav-item:hover > .submenu, .nav-item:focus-within > .submenu, .nav-item.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
    .nav-item:hover > .nav-link .caret { transform: rotate(180deg); }
    .nav-search { position: absolute; right: 20px; }
}

/* ---------- Search form ---------- */
.search-form { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 14px; padding: 6px 6px 6px 14px; border: 1px solid transparent; max-width: 620px; }
.search-form:focus-within { border-color: var(--accent); }
.search-icon { color: var(--muted); }
.search-form input { flex: 1; min-width: 0; height: 48px; border: 0; outline: 0; font: inherit; font-size: 1rem; color: var(--text); background: transparent; }
.search-form input::placeholder { color: #6B7889; }
.search-raised { box-shadow: var(--shadow-raised); max-width: none; }
.search-inline { border-color: var(--line); margin-top: 20px; }

/* ---------- Hero ---------- */
.hero-default { position: relative; background: var(--brand-deep); color: #fff; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; padding-top: 72px; padding-bottom: 120px; }
.hero-kicker { color: #BBD0E8; font-weight: 600; margin-bottom: 12px; }
.hero-default h1 { color: #fff; font-size: clamp(2.2rem, 5.5vw, 3.75rem); font-weight: 800; letter-spacing: -.025em; max-width: 14ch; }
.hero-lead { margin: 16px 0 28px; font-size: 1.15rem; color: #DCE7F4; max-width: 46ch; }
.hero-npp { margin-top: 18px; font-size: .85rem; color: #A9C1DD; letter-spacing: .02em; }
.spines { display: block; width: 100%; }
.spines-hero { position: absolute; left: 0; right: 0; bottom: 0; height: 96px; opacity: .95; }

/* ======================================================================================== */
/* Hero dengan foto slider: foto di kanan, gradasi biru dari kiri */
.hero-default.has-media { min-height: clamp(520px, 62vh, 660px); display: flex; align-items: center; }
.hero-default.has-media .hero-inner { width: 100%; }
.hero-media { position: absolute; inset: 0 0 0 28%; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s var(--ease); }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade {
    position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg,
        var(--brand-deep) 0%,
        var(--brand-deep) 30%,
        color-mix(in srgb, var(--brand-deep) 85%, transparent) 42%,
        color-mix(in srgb, var(--brand-deep) 40%, transparent) 62%,
        transparent 85%);
}
.spines-hero { z-index: 1; }
.hero-default .hero-inner { z-index: 2; }

.hero-slide-caption {
    position: absolute; right: 24px; bottom: 170px; z-index: 2; max-width: 340px;
    display: flex; flex-direction: column; gap: 2px;
    padding: 12px 16px; border-radius: 10px;
    background: rgba(18, 38, 61, .78); color: #E6EEF7; font-size: .9rem; line-height: 1.45;
}
.hero-slide-caption strong { color: #fff; font-size: 1rem; }
.hero-slide-caption a { color: var(--accent); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; margin-top: 4px; }

.hero-controls { position: absolute; left: 0; right: 0; bottom: 116px; z-index: 3; display: flex; justify-content: flex-end; align-items: center; gap: 8px; }

@media (max-width: 900px) {
    .hero-media { inset: 0; }
    .hero-shade { background: color-mix(in srgb, var(--brand-deep) 80%, transparent); }
    .hero-slide-caption { display: none; }
    .hero-controls { justify-content: center; bottom: 104px; }
}
/* =========================================================================================== */

.hero-slider { position: relative; background: var(--ink); }
.slides { position: relative; aspect-ratio: 1440 / 520; min-height: 300px; max-height: 560px; overflow: hidden; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .6s var(--ease); }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption { position: absolute; inset: 0; display: flex; align-items: center; padding-bottom: 40px; }
.slide-caption { max-width: 560px; background: rgba(18, 38, 61, .78); color: #E6EEF7; padding: 28px 32px; border-radius: var(--r-lg); backdrop-filter: blur(4px); font-size: 1.1rem; line-height: 1.55; }
.slide-title { color: #fff; font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 10px; }
.slide-caption .btn { margin-top: 20px; }
@media (max-width: 640px) {
    .slide figcaption { align-items: flex-end; padding-bottom: 48px; }
    .slide-caption { padding: 18px 20px; font-size: 1rem; }
}
.slider-controls { position: absolute; z-index: 2; left: 0; right: 0; bottom: 64px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; pointer-events: none; }
.slider-controls > * { pointer-events: auto; }
.slider-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.slider-dots { display: flex; gap: 4px; }
.dot-btn { width: 24px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; }
.dot-btn::after { content: ""; position: absolute; left: 4px; right: 4px; top: 19px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.55); }
.dot-btn.is-active::after { background: var(--accent); }
.hero-search-band { position: relative; z-index: 3; margin-top: -30px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-tight { padding-top: 40px; padding-bottom: 72px; }
.section-mist { background: var(--mist); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.link-more { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 700; text-decoration: none; }
.link-more:hover { text-decoration: underline; }
.empty { padding: 28px; text-align: center; color: var(--muted); background: var(--mist); border: 1px dashed var(--line); border-radius: var(--r-md); }
.section-mist .empty { background: #fff; }

/* Quick access */
.quick { padding-top: 40px; padding-bottom: 24px; }
.quick-list { list-style: none; display: grid; gap: 12px; grid-template-columns: 1fr; }
.quick-item { display: flex; align-items: center; gap: 14px; height: 100%; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--text); text-decoration: none; background: #fff; transition: border-color .18s var(--ease), background-color .18s var(--ease); }
.quick-item:hover { border-color: var(--brand); background: #FAFCFF; }
.quick-icon { width: 48px; height: 48px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--mist); color: var(--brand); transition: background-color .18s var(--ease), color .18s var(--ease); }
.quick-list li:nth-child(2) .quick-icon { background: #E6F4E8; color: var(--leaf-deep); }
.quick-list li:nth-child(3) .quick-icon { background: var(--accent-soft); color: var(--accent-ink); }
.quick-item:hover .quick-icon { background: var(--brand); color: #fff; }
.quick-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.quick-text strong { color: var(--ink); font-size: 1.02rem; }
.quick-text span { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.quick-caret { color: #9AA8B8; }
@media (min-width: 640px) { .quick-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .quick-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* About */
.about-grid { display: grid; gap: 40px; align-items: center; }
.about-art { position: relative; background: var(--mist); border-radius: var(--r-lg); aspect-ratio: 4 / 3; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.about-shelf { position: absolute; left: 0; right: 0; bottom: 0; }
.spines-about { height: 120px; }
.about-logo { position: relative; width: min(70%, 340px); background: #fff; padding: 18px 22px; border-radius: var(--r-md); margin-bottom: 60px; }
.about-text h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; margin-bottom: 14px; }
.about-text p { color: var(--muted); font-size: 1.05rem; max-width: 60ch; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }

/* Post cards */
.card-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color .18s var(--ease), transform .18s var(--ease); }
.post-card:hover { border-color: #B7C9DD; transform: translateY(-2px); }
.post-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.post-thumb { aspect-ratio: 16 / 10; background: var(--mist-2); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-fallback, .cover-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--brand); }
.post-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.post-body h3 { font-size: 1.1rem; font-weight: 700; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--muted); font-size: .85rem; }
.post-meta-lg { margin-bottom: 18px; font-size: .95rem; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: .78rem; }
.post-sub { color: var(--muted); font-size: .9rem; font-weight: 600; }
.post-excerpt { color: var(--muted); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Books */
.book-row { list-style: none; display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.book { display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; }
.book-cover { aspect-ratio: 3 / 4; border-radius: 4px 8px 8px 4px; overflow: hidden; background: var(--spine-3); box-shadow: inset 6px 0 0 rgba(18,38,61,.18), 0 6px 14px rgba(18,38,61,.12); transition: transform .18s var(--ease); }
.book-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-fallback { color: #fff; }
.book:hover .book-cover { transform: translateY(-3px); }
.book-title { font-weight: 700; font-size: .95rem; color: var(--ink); line-height: 1.35; }
.book-author { color: var(--muted); font-size: .82rem; }

/* Dua kolom: koleksi + artikel (daftar menurun) */
.dual-grid { display: grid; gap: 48px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .dual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; } }
.dual-col { min-width: 0; }
.dual-col .section-head { margin-bottom: 18px; }
.stack-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.stack-item { display: flex; align-items: center; gap: 16px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); color: var(--text); text-decoration: none; transition: border-color .18s var(--ease), background-color .18s var(--ease); }
.stack-item:hover { border-color: var(--brand); background: #FAFCFF; }
.stack-thumb { flex: none; width: 128px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: var(--mist-2); }
.stack-thumb.is-cover { width: 72px; aspect-ratio: 3 / 4; border-radius: 3px 6px 6px 3px; background: var(--spine-3); box-shadow: inset 4px 0 0 rgba(18,38,61,.18); }
.stack-thumb img { width: 100%; height: 100%; object-fit: cover; }
.stack-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stack-text strong { color: var(--ink); font-size: 1rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stack-excerpt { color: var(--muted); font-size: .88rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.stack-text time { color: var(--muted); font-size: .8rem; font-weight: 600; }
@media (max-width: 480px) { .stack-thumb { width: 96px; } .stack-thumb.is-cover { width: 60px; } }

/* Koleksi terbaru versi ringkas: 3 kolom x 2 baris di dalam kolom kiri */
.book-row-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; }
.book-row-sm .book { gap: 6px; }
.book-row-sm .book-title { font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-row-sm .book-author { font-size: .75rem; }
@media (min-width: 960px) and (max-width: 1100px) { .book-row-sm { gap: 14px 12px; } }

/* Badge koleksi internal pada sampul */
.book-cover { position: relative; }
.book-badge { position: absolute; top: 6px; right: 6px; z-index: 1; padding: 2px 7px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: .65rem; font-weight: 800; letter-spacing: .02em; }

/* Badge link di judul section */
.chip-links { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px 0 14px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); color: var(--brand); font-size: .85rem; font-weight: 700; text-decoration: none; transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease); }
.chip-link:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-link-accent { background: var(--accent-soft); border-color: #F6D9A8; color: var(--accent-ink); }
.chip-link-accent:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.dual-sub { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.dual-sub .section-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }

/* Daftar koleksi (Koleksi Internal / Terbaru): kartu ringkas, sampul 3:4, maks 4 kolom */
.card-grid-books { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
@media (min-width: 640px) { .card-grid-books { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .card-grid-books { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.post-card-book .post-thumb { aspect-ratio: 3 / 4; background: var(--spine-3); }
.post-card-book .post-body { padding: 12px 14px 16px; gap: 4px; }
.post-card-book .post-meta { font-size: .78rem; }
.post-card-book h3 { font-size: .95rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Join CTA */
.join { background: var(--leaf-deep); color: #fff; }
.join-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-top: 44px; padding-bottom: 44px; }
.join h2 { color: #fff; font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 800; max-width: 30ch; }

/* Partners / e-resources */
.partners { padding: 48px 0 56px; background: var(--paper); }
.partners-head { align-items: flex-end; margin-bottom: 22px; }
.partners-head p { color: var(--muted); font-size: .9rem; }
.partners-viewport { --visible: 3; overflow: hidden; }
.partners-track { list-style: none; display: flex; transition: transform .6s var(--ease); will-change: transform; }
.partners-track.no-anim { transition: none; }
.partner { flex: 0 0 calc(100% / var(--visible)); padding: 0 6px; }
.partner-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 132px; padding: 16px 14px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; transition: border-color .18s var(--ease), transform .18s var(--ease); }
.partner-link:hover { border-color: var(--brand); transform: translateY(-2px); }
.partner-link img { max-width: 100%; max-height: 68px; width: auto; height: auto; object-fit: contain; }
.partner-link img[src*="google.com/s2/favicons"] { width: 56px; height: 56px; border-radius: 12px; }
.page-layout + .partners { background: var(--mist); border-top: 1px solid var(--line); }
.partner-name { font-size: .8rem; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.3; }
.partner-link:not(:has(img)) .partner-name { font-size: 1rem; font-weight: 800; color: var(--brand); }
@media (min-width: 720px) { .partners-viewport { --visible: 4; } }
@media (min-width: 1024px) { .partners-viewport { --visible: 6; } }

/* ---------- Inner pages ---------- */
.page-head { background: var(--mist); padding: 32px 0 36px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.8rem, 4.2vw, 2.7rem); font-weight: 800; letter-spacing: -.02em; }
.page-head .lead { margin-top: 10px; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 65ch; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-bottom: 14px; font-size: .88rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.page-layout { display: grid; gap: 28px; padding-top: 36px; padding-bottom: 72px; }
.page-main { min-width: 0; }
.sidenav-title { font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.sidenav ul { list-style: none; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.sidenav a { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 10px; background: var(--mist); color: var(--text); font-size: .93rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sidenav a:hover { background: var(--mist-2); }
.sidenav a.is-current { background: var(--brand); color: #fff; }
.related a { flex-direction: column; align-items: flex-start; justify-content: center; padding: 10px 14px; white-space: normal; min-width: 220px; }
.related small { color: var(--muted); font-weight: 500; }
@media (min-width: 960px) {
    .page-layout.has-side { grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
    .page-layout.has-side.reverse { grid-template-columns: minmax(0, 1fr) 300px; }
    .sidenav { position: sticky; top: 80px; }
    .sidenav ul { flex-direction: column; gap: 4px; overflow: visible; }
    .sidenav a { white-space: normal; padding: 10px 14px; background: transparent; }
    .sidenav a:hover { background: var(--mist); }
    .related a { min-width: 0; }
}

/* Rich text */
.prose { max-width: 72ch; font-size: 1.04rem; line-height: 1.75; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.22rem; margin-top: 1.6em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .35em; }
.prose img { border-radius: var(--r-md); }
.prose blockquote { margin: 1.4em 0; padding: 16px 20px; background: var(--mist); border-radius: var(--r-md); color: var(--ink); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.prose code { background: var(--mist); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.prose-intro { margin-bottom: 28px; }
.prose mark { background: var(--accent-soft); color: inherit; padding: 0 .2em; border-radius: 3px; }
.prose pre { background: var(--ink); color: #E6EEF7; padding: 16px; border-radius: var(--r-md); overflow-x: auto; font-size: .9rem; }
.prose pre code { background: none; padding: 0; }

/* Tabel: lembut, tidak kaku */
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; -webkit-overflow-scrolling: touch; }
.prose .table-wrap { max-width: none; }
.table-wrap table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; line-height: 1.5; }
.table-wrap th { background: var(--mist); color: var(--ink); font-weight: 700; text-align: left; padding: 12px 16px; white-space: nowrap; }
.table-wrap td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
.table-wrap thead + tbody tr:first-child td { border-top-color: var(--line); }
.table-wrap tbody tr:nth-child(even) td { background: #FAFCFE; }
.table-wrap tbody tr:hover td { background: #F2F7FD; }
.table-wrap p { margin: 0; }

.block { margin-top: 40px; }
.page-main > .block:first-child { margin-top: 0; }
.block-title { font-size: 1.25rem; font-weight: 800; margin-bottom: 16px; }

.link-list, .child-grid { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.link-item, .child-item { display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; color: var(--text); text-decoration: none; transition: border-color .18s var(--ease); }
.link-item:hover, .child-item:hover { border-color: var(--brand); }
.link-icon { width: 44px; height: 44px; flex: none; border-radius: 10px; background: var(--mist); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.link-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.link-text strong { color: var(--ink); }
.link-text span { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-caret, .child-caret { color: #9AA8B8; flex: none; }
.child-item { flex-wrap: wrap; min-height: 72px; }
.child-label { flex: 1; font-weight: 700; color: var(--ink); }
.child-text { order: 3; flex-basis: 100%; color: var(--muted); font-size: .9rem; }

.file-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.file-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; }
.file-badge { width: 46px; height: 46px; flex: none; border-radius: 10px; background: var(--mist); color: var(--brand); font-size: .7rem; font-weight: 800; letter-spacing: .03em; display: inline-flex; align-items: center; justify-content: center; }
.file-name { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); }

.post-hero { margin: 0 0 28px; }
.post-hero img { width: 100%; border-radius: var(--r-md); }

.result-list { list-style: none; border-top: 1px solid var(--line); }
.result-list a { display: flex; flex-direction: column; gap: 4px; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.result-list a:hover strong { color: var(--brand); text-decoration: underline; }
.result-list strong { color: var(--ink); font-size: 1.05rem; }
.result-list span { color: var(--muted); font-size: .93rem; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 36px; }
.pager-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; background: #fff; }
.pager-btn:hover { border-color: var(--brand); color: var(--brand); }
.pager-btn.is-disabled { color: #9AA8B8; border-color: var(--mist-2); }
.pager-pages { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pager-num { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
a.pager-num:hover { border-color: var(--brand); color: var(--brand); }
.pager-num.is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager-gap { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 44px; color: var(--muted); }
@media (max-width: 560px) { .pager-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .pager-btn { padding: 0 12px; } }
.pager-info { margin-top: 12px; text-align: center; color: var(--muted); font-size: .85rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mist); color: var(--text); }
.spines-footer { height: 36px; background: var(--paper); }
.footer-main { padding: 52px 0 28px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.25fr 1fr 1fr 1.1fr; gap: 40px; } }
.footer-brand img { height: 48px; width: auto; margin-bottom: 14px; }
.footer-inst { font-weight: 700; color: var(--ink); }
.footer-desc { color: var(--muted); font-size: .93rem; margin-top: 6px; max-width: 36ch; }
.footer-title { font-size: 1rem; font-weight: 800; margin-bottom: 14px; }
.socials { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.socials a { width: 44px; height: 44px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; transition: background-color .18s var(--ease), color .18s var(--ease); }
.socials a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: .93rem; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { color: var(--brand); margin-top: 3px; }
.contact-list a { color: var(--text); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--brand); text-decoration: underline; }
.hours { margin: 0; font-size: .93rem; }
.hours-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #C9D6E4; }
.hours-row:first-child { padding-top: 0; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.online-now { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--leaf-deep); background: #E6F4E8; padding: 6px 12px; border-radius: 999px; margin-bottom: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 0 rgba(46,150,69,.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46,150,69,.45); } 70% { box-shadow: 0 0 0 8px rgba(46,150,69,0); } 100% { box-shadow: 0 0 0 0 rgba(46,150,69,0); } }
.stat-grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column-reverse; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.stat dd { margin: 0; font-size: 1.35rem; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat dt { font-size: .8rem; color: var(--muted); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--muted); font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom { background: var(--brand-deep); color: #D3E0EF; font-size: .88rem; }
.footer-bottom-inner { padding-top: 16px; padding-bottom: 16px; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 48px; height: 48px; border: 0; border-radius: 14px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 10px 24px rgba(18, 38, 61, .25); opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s, background-color .18s var(--ease); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-deep); }
.to-top::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 9px; height: 3px; border-radius: 2px; background: var(--accent); }
@media (min-width: 1024px) { .to-top { right: 28px; bottom: 28px; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
