/* ==========================================================================
   Tema OPAC "gms" — Perpustakaan TK & SD Green Montessori School
   Palet & huruf mengikuti website GMS (greenmontessori.sch.id):
   turquoise #355951 · green #339965 · lime #B6EF75 · light green #F5FFE7
   Poppins (judul) · Quicksand (isi) · Libre Baskerville italic (aksen)
   1. Token  2. Dasar  3. Komponen  4. Navigasi  5. Pita & pencarian
   6. Beranda  7. Hasil  8. Detail  9. Halaman umum  10. Anggota
   11. Footer & modal  12. Kiosk buku tamu  13. Responsif
   ========================================================================== */

/* 1. Token ---------------------------------------------------------------- */
:root {
  --g-turq: #355951;
  --g-turq-h: #4C796F;
  --g-turq-80: #5D7A74;
  --g-turq-60: #869B97;
  --g-turq-20: #D7DEDC;
  --g-green: #339965;
  --g-green-h: #55BB87;
  --g-green-40: #ADD6C1;
  --g-green-20: #D6EBE0;
  --g-lime: #B6EF75;
  --g-lime-h: #DCF4B6;
  --g-lime-20: #F0FCE3;
  --g-page: #F5FFE7;
  --g-cream: #FFF7D8;
  --g-yellow: #FFF0B5;
  --g-orange: #F59E2C;
  --g-ink: #1C3D31;
  --g-red: #8C3B3B;
  --g-red-l: #FDEEEE;
  --g-white: #FFFFFF;
  --g-line: #D7DEDC;
  --g-r: 20px;
  --g-r-sm: 12px;
  --g-r-lg: 28px;
  --g-shadow: 0 4px 16px rgba(53, 89, 81, .08);
  --g-shadow-h: 0 10px 28px rgba(53, 89, 81, .14);
  --g-font: 'Quicksand', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --g-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --g-serif: 'Libre Baskerville', Georgia, serif;
}

/* 2. Dasar ---------------------------------------------------------------- */
html { scroll-behavior: smooth; }
html, body.g-body { max-width: 100%; overflow-x: clip; }
body.g-body { font-family: var(--g-font); font-weight: 500; color: var(--g-turq); background: var(--g-page); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.g-body h1, .g-body h2, .g-body h3, .g-body h4, .g-body h5 { font-family: var(--g-head); font-weight: 600; color: var(--g-turq); letter-spacing: -.01em; }
.g-body a { color: var(--g-turq); }
.g-body a:hover { color: var(--g-green); }
.g-body :focus-visible { outline: 3px solid var(--g-green-h); outline-offset: 2px; }
.g-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.g-muted { color: var(--g-turq-80); }
.g-ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.g-skip { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--g-turq); color: #fff !important; padding: 8px 14px; border-radius: 10px; }
.g-skip:focus { left: 8px; }
.g-announce { background: var(--g-lime); color: var(--g-turq); font-family: var(--g-head); font-weight: 500; font-size: 14px; text-align: center; padding: 8px 0; }

/* 3. Komponen ------------------------------------------------------------- */
.g-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--g-r-sm); font-family: var(--g-head); font-weight: 500; font-size: 15px; letter-spacing: .03em; line-height: 1.2; padding: 12px 22px; cursor: pointer; text-decoration: none !important; transition: background .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.g-btn--cta { background: var(--g-lime); color: var(--g-turq) !important; }
.g-btn--cta:hover { background: var(--g-lime-h); }
.g-btn--green { background: var(--g-green); color: var(--g-cream) !important; }
.g-btn--green:hover { background: var(--g-green-h); color: #fff !important; }
.g-btn--ghost { background: transparent; color: var(--g-turq) !important; box-shadow: inset 0 0 0 1.5px var(--g-turq); padding: 10px 18px; }
.g-btn--ghost:hover, .g-btn--ghost.is-on { background: var(--g-turq); color: #fff !important; }
.g-btn--sm { font-size: 14px; padding: 9px 16px; }
.g-btn--block { width: 100%; }

.g-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--g-turq-20); color: var(--g-turq); white-space: nowrap; }
.g-chip .g-ic { width: 13px; height: 13px; }
.g-chip--tk { background: var(--g-yellow); color: var(--g-turq); }
.g-chip--sd { background: var(--g-green-20); color: var(--g-turq); }
.g-chip--call { background: #fff; box-shadow: inset 0 0 0 1px var(--g-line); font-family: ui-monospace, Consolas, monospace; font-weight: 600; }
.g-chip--gmd { background: var(--g-lime-20); color: var(--g-green); text-transform: uppercase; letter-spacing: .08em; font-family: var(--g-head); font-weight: 600; }

.g-avail { display: inline-flex; align-items: center; gap: 6px; font-family: var(--g-head); font-weight: 500; font-size: 13px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.g-avail .g-ic { width: 15px; height: 15px; }
.g-avail--yes { background: var(--g-green-20); color: var(--g-green); }
.g-avail--no { background: var(--g-red-l); color: var(--g-red); }
.g-avail--none { background: var(--g-turq-20); color: var(--g-turq-80); }

.g-act { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--g-turq-80) !important; padding: 5px 11px; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1px var(--g-line); text-decoration: none !important; transition: background .15s, color .15s; }
.g-act .g-ic { width: 15px; height: 15px; }
.g-act:hover { background: var(--g-green-20); color: var(--g-turq) !important; }
.g-act.is-on { background: var(--g-green); color: #fff !important; box-shadow: none; }

.g-panel { background: var(--g-white); border: 1px solid var(--g-line); border-radius: var(--g-r); padding: 28px; box-shadow: var(--g-shadow); }
.g-empty { color: var(--g-turq-80); background: #fff; border: 1px dashed var(--g-turq-60); border-radius: var(--g-r-sm); padding: 16px 20px; margin: 0; width: 100%; }
.g-empty--soft { background: rgba(255,255,255,.6); }

/* sampul buku */
.g-cover { --c: var(--g-turq); position: relative; display: block; width: 100%; aspect-ratio: 5 / 7; border-radius: 4px 10px 10px 4px; overflow: hidden; background: var(--c); box-shadow: inset 6px 0 0 rgba(0,0,0,.12), 0 6px 16px rgba(28,61,49,.16); }
.g-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.g-cover__ph { position: absolute; inset: 0; padding: 16px 12px 12px 16px; color: var(--g-cream); font-family: var(--g-serif); font-style: italic; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }

/* bootstrap umum */
.g-body .form-control, .g-body .custom-select { border-radius: var(--g-r-sm); border: 1px solid var(--g-turq-20); min-height: 44px; font-family: var(--g-font); font-weight: 600; color: var(--g-turq); }
.g-body .form-control:focus, .g-body .custom-select:focus { border-color: var(--g-green); box-shadow: 0 0 0 3px rgba(51,153,101,.15); }
.g-body .btn { border-radius: var(--g-r-sm); font-family: var(--g-head); font-weight: 500; letter-spacing: .03em; }
.g-body .btn-primary, .g-body .btn-info, .g-body .btn-success { background: var(--g-green); border-color: var(--g-green); color: #fff; }
.g-body .btn-primary:hover, .g-body .btn-info:hover, .g-body .btn-success:hover { background: var(--g-green-h); border-color: var(--g-green-h); }
.g-body .btn-outline-primary { color: var(--g-turq); border-color: var(--g-turq); }
.g-body .btn-outline-primary:hover { background: var(--g-turq); color: #fff; }
.g-body .form-check-input { accent-color: var(--g-green); }
.g-body .alert { border-radius: var(--g-r-sm); border: 0; font-weight: 600; }
.g-body .alert-info { background: var(--g-green-20); color: var(--g-turq); }
.g-body .nav-tabs { border-bottom: 1px solid var(--g-line); gap: 6px; }
.g-body .nav-tabs .nav-link { border: 0; border-radius: var(--g-r-sm) var(--g-r-sm) 0 0; font-family: var(--g-head); font-weight: 500; color: var(--g-turq-80); padding: 9px 16px; }
.g-body .nav-tabs .nav-link.active, .g-body .nav-pills .nav-link.active { background: var(--g-turq); color: #fff; }
.g-body .table { background: #fff; color: var(--g-turq); }
.g-body .table th { border-top: 0; font-family: var(--g-head); font-weight: 500; color: var(--g-turq-80); font-size: 14px; }
.g-body .table td, .g-body .table th { border-color: var(--g-line); vertical-align: middle; }
.g-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 4. Navigasi ------------------------------------------------------------- */
.g-nav { background: var(--g-turq); position: sticky; top: 0; z-index: 1030; box-shadow: 0 2px 12px rgba(28,61,49,.18); }
.g-nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.g-brand { display: flex; align-items: center; gap: 14px; color: #fff !important; text-decoration: none !important; min-width: 0; flex: 0 1 auto; }
.g-brand__text strong, .g-brand__text small { overflow: hidden; text-overflow: ellipsis; }
.g-brand img { height: 40px; width: auto; flex: none; }
.g-brand__mark { color: var(--g-lime); }
.g-brand__mark .g-ic { width: 32px; height: 32px; }
.g-brand__text { min-width: 0; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.25); }
.g-brand strong { display: block; font-family: var(--g-head); font-size: 16px; font-weight: 600; line-height: 1.15; white-space: nowrap; color: #fff; }
.g-brand small { display: block; font-size: 12px; color: var(--g-lime-h); font-weight: 600; white-space: nowrap; }
.g-nav__links { display: flex; align-items: center; gap: 2px; }
.g-nav__link { display: inline-block; color: var(--g-page) !important; font-family: var(--g-head); font-weight: 500; font-size: 15px; padding: 8px 13px; border-radius: 10px; text-decoration: none !important; white-space: nowrap; transition: background .15s, color .15s; }
.g-nav__link:hover { background: rgba(255,255,255,.1); color: #fff !important; }
.g-nav__link.is-on { background: var(--g-lime); color: var(--g-turq) !important; }
.g-nav .dropdown-toggle::after { vertical-align: .15em; margin-left: .35em; }
.g-nav .dropdown-menu { border-radius: 14px; border: 1px solid var(--g-line); box-shadow: var(--g-shadow-h); padding: 6px; min-width: 250px; margin-top: 10px; }
.g-nav .dropdown-item { display: flex; align-items: center; gap: 10px; border-radius: 10px; font-weight: 600; padding: 9px 12px; color: var(--g-turq) !important; white-space: normal; }
.g-nav .dropdown-item .g-ic { color: var(--g-green); }
.g-nav .dropdown-item:hover, .g-nav .dropdown-item:focus { background: var(--g-green-20); }
.g-lang { display: inline-flex; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 2px; margin: 0 8px; }
.g-lang a { font-family: var(--g-head); font-size: 12px; font-weight: 600; color: var(--g-page) !important; padding: 3px 10px; border-radius: 999px; text-decoration: none !important; letter-spacing: .04em; }
.g-lang a.is-on { background: var(--g-page); color: var(--g-turq) !important; }
.g-nav__basket { position: relative; padding: 8px 10px; }
.g-nav__basket .g-ic { width: 22px; height: 22px; }
.g-badge { background: var(--g-orange); color: #fff; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 1px 6px; margin-left: -6px; }
.g-nav .g-btn--ghost { color: var(--g-turq) !important; background: var(--g-lime); box-shadow: none; padding: 9px 16px; }
.g-nav .g-btn--ghost:hover, .g-nav .g-btn--ghost.is-on { background: var(--g-lime-h); color: var(--g-turq) !important; }
.g-member { padding: 4px 14px 4px 4px !important; }
.g-member img, .g-member__dot { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; background: #fff; }
.g-nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; flex: none; }
.g-nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; margin: 5px 0; transition: .2s; }
.g-nav.is-open .g-nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.g-nav.is-open .g-nav__toggle span:nth-child(2) { opacity: 0; }
.g-nav.is-open .g-nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 5. Pita & pencarian ----------------------------------------------------- */
.g-band { position: relative; overflow: hidden; overflow: clip; text-align: center; padding: 34px 0 40px; background: var(--g-turq); border-top: 1px solid rgba(255,255,255,.08); }
.g-band--plain { padding: 42px 0 46px; }
.g-band__in { position: relative; z-index: 2; }
.g-band__deco { position: absolute; border-radius: 50%; border: 1px solid rgba(182,239,117,.18); }
.g-band__deco--1 { width: 220px; height: 220px; left: -60px; top: -90px; }
.g-band__deco--2 { width: 320px; height: 320px; right: -80px; bottom: -200px; }
.g-band__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(182,239,117,.15); color: var(--g-lime); margin-bottom: 10px; }
.g-band__icon .g-ic { width: 26px; height: 26px; }
.g-band__title { color: #fff !important; font-size: clamp(26px, 3.6vw, 38px); margin: 0 0 6px; }
.g-band__sub { color: var(--g-turq-20); margin: 0 auto; max-width: 640px; font-size: 16px; }

.g-search { max-width: 760px; margin: 0 auto; }
.g-band__title + .g-search, .g-band__sub + .g-search { margin-top: 18px; }
.g-search__box { display: flex; align-items: center; background: #fff; border-radius: 14px; padding: 6px 6px 6px 18px; box-shadow: 0 8px 26px rgba(0,0,0,.16); }
.g-search__icon { display: grid; place-items: center; color: var(--g-turq-80); margin-right: 10px; }
.g-search__icon .g-ic { width: 22px; height: 22px; }
.g-search__box input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 17px; font-family: var(--g-font); font-weight: 600; color: var(--g-turq); background: transparent; padding: 10px 0; }
.g-search__box input::placeholder { color: var(--g-turq-60); font-weight: 500; }
.g-search--big .g-search__box { padding: 8px 8px 8px 22px; border-radius: 16px; }
.g-search--big .g-search__box input { font-size: 18px; }
.g-search--big .g-btn { padding: 14px 30px; font-size: 16px; }
.g-scope { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; color: var(--g-turq-20); font-weight: 600; font-size: 14px; }
.g-scope label { margin: 0; cursor: pointer; }
.g-scope input { position: absolute; opacity: 0; pointer-events: none; }
.g-scope b { display: inline-block; padding: 5px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: #fff; font-family: var(--g-head); font-weight: 500; transition: .15s; }
.g-scope input:checked + b { background: var(--g-lime); color: var(--g-turq); border-color: var(--g-lime); }
.g-scope input:focus-visible + b { outline: 3px solid var(--g-green-h); }

/* 6. Beranda -------------------------------------------------------------- */
.g-hero { position: relative; overflow: hidden; padding: 64px 0 120px; background: var(--g-turq); }
.g-hero::before { content: ""; position: absolute; width: 520px; height: 520px; left: -220px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(182,239,117,.14), transparent 70%); }
.g-hero::after { content: ""; position: absolute; width: 700px; height: 700px; right: -260px; bottom: -420px; border-radius: 50%; background: radial-gradient(circle, rgba(51,153,101,.35), transparent 70%); }
.g-hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; text-align: center; }
.g-hero--split .g-hero__grid { grid-template-columns: 1.05fr .95fr; text-align: left; }
.g-hero--split .g-search { margin: 0; }
.g-hero--split .g-scope { justify-content: flex-start; }
.g-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--g-lime); font-family: var(--g-head); font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; padding: 6px 14px 6px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(182,239,117,.25); }
.g-eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--g-lime); box-shadow: 0 0 0 4px rgba(182,239,117,.2); }
.g-hero h1 { color: #fff; font-size: clamp(36px, 5vw, 60px); font-weight: 600; line-height: 1.05; letter-spacing: -.02em; margin: 0; }
.g-hero h1 em { font-family: var(--g-serif); font-style: italic; font-weight: 400; color: var(--g-lime); }
.g-hero__sub { color: var(--g-turq-20); font-size: 18px; max-width: 560px; margin: 18px auto 30px; }
.g-hero--split .g-hero__sub { margin-left: 0; }
.g-hero__stats { display: flex; gap: 36px; margin: 34px 0 0; padding: 0; justify-content: center; }
.g-hero--split .g-hero__stats { justify-content: flex-start; }
.g-hero__stats div { margin: 0; }
.g-hero__stats dt { font-family: var(--g-head); font-weight: 600; font-size: 28px; color: #fff; line-height: 1; }
.g-hero__stats dd { margin: 6px 0 0; font-size: 13px; color: var(--g-turq-20); }
.g-hero__media { position: relative; height: 470px; }
.g-ph { position: absolute; margin: 0; overflow: hidden; border-radius: var(--g-r-lg); box-shadow: 0 24px 50px rgba(0,0,0,.28); border: 4px solid rgba(255,255,255,.9); }
.g-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.g-ph--a { left: 0; top: 30px; width: 64%; height: 300px; transform: rotate(-2deg); z-index: 2; }
.g-ph--b { right: 0; top: 0; width: 42%; height: 220px; transform: rotate(3deg); z-index: 1; }
.g-ph--c { right: 6%; bottom: 0; width: 56%; height: 200px; transform: rotate(-1deg); z-index: 3; }
.g-hero__badge { position: absolute; left: 4%; bottom: 26px; z-index: 4; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; background: #fff; border-radius: 16px; padding: 12px 16px 12px 12px; box-shadow: var(--g-shadow-h); }
.g-hero__badge span { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px; background: var(--g-lime); color: var(--g-turq); display: grid; place-items: center; }
.g-hero__badge b { font-family: var(--g-head); font-weight: 600; font-size: 14px; color: var(--g-turq); line-height: 1.2; }
.g-hero__badge small { font-size: 12px; color: var(--g-turq-80); }

.g-libs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: -64px; position: relative; z-index: 3; }
.g-lib { display: flex; align-items: flex-start; gap: 20px; padding: 26px 28px; border-radius: var(--g-r); background: #fff; color: var(--g-turq) !important; text-decoration: none !important; border: 1px solid var(--g-line); box-shadow: var(--g-shadow-h); transition: transform .2s, box-shadow .2s, border-color .2s; }
.g-lib:hover { transform: translateY(-3px); border-color: var(--g-green-40); }
.g-lib__icon { flex: none; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 18px; color: var(--g-turq); }
.g-lib__icon .g-ic { width: 36px; height: 36px; }
.g-lib--tk .g-lib__icon { background: var(--g-yellow); }
.g-lib--sd .g-lib__icon { background: var(--g-green-20); }
.g-lib__body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.g-lib__tag { font-family: var(--g-head); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--g-green); }
.g-lib strong { font-family: var(--g-head); font-size: 24px; font-weight: 600; line-height: 1.2; }
.g-lib__desc { color: var(--g-turq-80); font-size: 15px; }
.g-lib__meta { font-size: 13px; color: var(--g-turq-80); }
.g-lib__meta b { color: var(--g-turq); }
.g-lib__go { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 12px; font-family: var(--g-head); font-weight: 500; font-size: 14px; color: var(--g-green); }

.g-sec { padding-top: 64px; }
.g-sec__head { margin-bottom: 22px; }
.g-sec__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.g-sec__head h2 { font-size: clamp(24px, 2.8vw, 32px); margin: 0; }
.g-sec__head p { color: var(--g-turq-80); margin: 4px 0 0; }
.g-more { display: inline-flex; align-items: center; gap: 6px; font-family: var(--g-head); font-weight: 500; color: var(--g-green) !important; text-decoration: none !important; }

.g-ddc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.g-ddc__item { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: #fff; border-radius: var(--g-r); padding: 18px; border: 1px solid var(--g-line); color: var(--g-turq) !important; text-decoration: none !important; transition: transform .15s, box-shadow .15s, border-color .15s; }
.g-ddc__item:hover { transform: translateY(-2px); box-shadow: var(--g-shadow); border-color: var(--g-green-40); }
.g-ddc__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--g-green-20); color: var(--g-green); margin-bottom: 4px; }
.g-ddc__icon .g-ic { width: 22px; height: 22px; }
.g-ddc__num { font-family: var(--g-head); font-weight: 600; font-size: 13px; color: var(--g-turq-80); letter-spacing: .06em; }
.g-ddc__name { font-family: var(--g-head); font-weight: 500; font-size: 15px; line-height: 1.25; }

.g-tabs { display: inline-flex; background: #fff; border: 1px solid var(--g-line); border-radius: 12px; padding: 4px; }
.g-tabs button { border: 0; background: transparent; font-family: var(--g-head); font-weight: 500; font-size: 14px; color: var(--g-turq-80); padding: 7px 18px; border-radius: 9px; cursor: pointer; }
.g-tabs button.is-on { background: var(--g-turq); color: #fff; }

.g-shelf { display: none; gap: 20px; overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x mandatory; }
.g-shelf.is-on { display: flex; }
.g-shelf::-webkit-scrollbar { height: 6px; }
.g-shelf::-webkit-scrollbar-thumb { background: var(--g-turq-20); border-radius: 6px; }
.g-book { flex: none; width: 148px; scroll-snap-align: start; color: var(--g-turq) !important; text-decoration: none !important; }
.g-book .g-cover { transition: transform .2s; }
.g-book:hover .g-cover { transform: translateY(-4px); }
.g-book__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; font-weight: 700; font-size: 14px; line-height: 1.35; }

.g-picks { margin-top: 64px; padding: 52px 0 44px; background: var(--g-cream); border-top: 1px solid #F3E7B8; border-bottom: 1px solid #F3E7B8; }
.g-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.g-service { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r); padding: 22px; color: var(--g-turq) !important; text-decoration: none !important; transition: transform .15s, border-color .15s, box-shadow .15s; }
.g-service:hover { transform: translateY(-2px); border-color: var(--g-green-40); box-shadow: var(--g-shadow); }
.g-service__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--g-green-20); color: var(--g-green); margin-bottom: 10px; }
.g-service__icon .g-ic { width: 22px; height: 22px; }
.g-service b { font-family: var(--g-head); font-weight: 600; font-size: 17px; }
.g-service small { color: var(--g-turq-80); font-size: 14px; }
.g-news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.g-news__item { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r); padding: 20px 22px; color: var(--g-turq) !important; text-decoration: none !important; transition: box-shadow .15s, border-color .15s; }
.g-news__item:hover { box-shadow: var(--g-shadow); border-color: var(--g-green-40); }
.g-news__item time { font-family: var(--g-head); font-size: 12px; font-weight: 500; color: var(--g-green); text-transform: uppercase; letter-spacing: .1em; }
.g-news__item b { font-family: var(--g-head); font-weight: 600; font-size: 17px; line-height: 1.3; }
.g-news__item span { color: var(--g-turq-80); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.g-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 64px; padding-bottom: 80px; }
.g-info__card { background: #fff; border-radius: var(--g-r); padding: 24px; border: 1px solid var(--g-line); }
.g-info__card--cta { background: var(--g-green-20); border-color: var(--g-green-40); }
.g-info__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--g-page); color: var(--g-green); }
.g-info__card--cta .g-info__icon { background: #fff; }
.g-info__icon .g-ic { width: 22px; height: 22px; }
.g-info__card h3 { font-size: 19px; margin: 12px 0 6px; }
.g-info__card p { color: var(--g-turq-80); margin: 0 0 14px; }
.g-info__card p b { color: var(--g-turq); }

.g-kicker { display: inline-block; font-family: var(--g-head); font-weight: 500; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--g-green); margin-bottom: 6px; }
.g-kicker--light { color: var(--g-lime); }
.g-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 14px; }
.g-gallery__item { margin: 0; overflow: hidden; border-radius: var(--g-r); background: var(--g-turq-20); }
.g-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.g-gallery__item:hover img { transform: scale(1.05); }
.g-gallery__item--0 { grid-column: span 2; grid-row: span 2; }
.g-gallery__item--1 { grid-column: span 2; }
.g-gallery__item--4 { grid-column: span 2; }
.g-btn--line { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.g-btn--line:hover { background: rgba(255,255,255,.1); }

/* 7. Hasil pencarian ------------------------------------------------------ */
.g-results-page { padding-top: 32px; padding-bottom: 64px; }
.g-results-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.g-filter { position: sticky; top: 92px; }
.g-filter__toggle { display: none; }
.g-filter__panel { background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r); padding: 20px; max-height: calc(100vh - 110px); overflow-y: auto; }
.g-filter__title { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0 0 6px; }
.g-filter .list-group-item { padding: 12px 0 !important; border-color: var(--g-line) !important; color: var(--g-turq); }
.g-filter .list-group-item strong { font-family: var(--g-head); font-size: 14px; font-weight: 500; }
.g-filter .dropdown-toggle { color: var(--g-turq-80); }
.g-filter .form-check { padding-left: 1.6rem; margin: 4px 0; }
.g-filter .form-check-input { margin-top: .35rem; width: 16px; height: 16px; }
.g-filter .form-check-label { font-weight: 600; font-size: 14px; }
.g-filter .row { margin: 0 0 10px !important; gap: 6px; flex-wrap: nowrap; }
.g-filter .row .px-3 { padding: 0 4px !important; color: var(--g-turq-80); }
.g-filter .js-input-from, .g-filter .js-input-to { min-height: 38px; text-align: center; padding: 4px; }
.g-filter .btn-primary { width: 100%; padding: 10px; }
.g-filter .irs--round .irs-bar, .g-filter .irs-bar, .g-filter .irs-from, .g-filter .irs-to, .g-filter .irs-single { background: var(--g-green) !important; }
.g-filter .irs--round .irs-handle { border-color: var(--g-green) !important; }
.g-filter a[data-toggle="collapse"] { font-weight: 700; font-size: 14px; color: var(--g-green); }

.g-results__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.g-results__title { font-size: clamp(22px, 2.4vw, 28px); margin: 0; }
.g-results__count { margin: 2px 0 0; color: var(--g-turq-80); }
.g-results__count b { color: var(--g-green); }
.g-results__tools { display: flex; align-items: center; gap: 10px; }
.g-sort { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--g-turq-80); font-size: 14px; font-weight: 600; }
.g-sort .custom-select { width: auto; min-height: 40px; padding-left: 14px; }
.g-view { display: inline-flex; background: #fff; border: 1px solid var(--g-line); border-radius: 12px; padding: 3px; margin: 0; }
.g-view button { display: grid; place-items: center; border: 0; background: transparent; width: 36px; height: 32px; border-radius: 9px; color: var(--g-turq-80); cursor: pointer; }
.g-view button .g-ic { width: 18px; height: 18px; }
.g-view button.is-on { background: var(--g-turq); color: #fff; }

.g-results__list .biblioPagingTop { display: none; }
.g-results__list .search-found-info, .g-results__list .search-query-time { display: none; }

.g-item { display: grid; grid-template-columns: 104px 1fr 170px; gap: 22px; background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r); padding: 18px; margin-bottom: 14px; transition: box-shadow .15s, border-color .15s; }
.g-item:hover { border-color: var(--g-green-40); box-shadow: var(--g-shadow); }
.g-item__cover { display: block; }
.g-item__body { min-width: 0; }
.g-item__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.g-item__title { font-family: var(--g-head); font-size: 19px; font-weight: 600; line-height: 1.3; margin: 0 0 4px; }
.g-item__title a { color: var(--g-turq) !important; text-decoration: none !important; }
.g-item__title a:hover { color: var(--g-green) !important; }
.g-item__authors { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--g-turq-80); margin-bottom: 8px; }
.g-item__authors .g-ic { width: 15px; height: 15px; }
.g-author { font-weight: 700; color: var(--g-green) !important; text-decoration: none !important; }
.g-author:hover { text-decoration: underline !important; }
.g-item__notes { color: var(--g-turq-80); font-size: 14px; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.g-item__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.g-item__side { display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: center; padding-left: 18px; border-left: 1px solid var(--g-line); }
.g-item__side .g-avail { justify-content: center; }
.g-results__list .highlight, .g-results__list mark { background: var(--g-lime-h); color: inherit; padding: 0 2px; border-radius: 3px; }

.g-results--grid .biblioResult { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.g-gitem { position: relative; background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r); padding: 14px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s, border-color .15s; }
.g-gitem:hover { box-shadow: var(--g-shadow); border-color: var(--g-green-40); }
.g-gitem__cover { display: block; padding: 0 6px; }
.g-gitem__title { font-family: var(--g-head); font-size: 15px; font-weight: 500; line-height: 1.3; margin: 0; }
.g-gitem__title a { color: var(--g-turq) !important; text-decoration: none !important; }
.g-gitem__meta .g-avail { font-size: 12px; padding: 4px 10px; }
.g-gitem__chips { display: flex; gap: 4px; flex-wrap: wrap; }
.g-gitem__add { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 0; background: var(--g-lime); color: var(--g-turq); cursor: pointer; z-index: 2; }
.g-gitem__add .g-ic { width: 18px; height: 18px; }

.biblioPaging { margin: 26px 0 8px; }
.biblioPaging .pagingList { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.biblioPaging .pagingList a, .biblioPaging .pagingList b { display: inline-block; min-width: 40px; text-align: center; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--g-line); background: #fff; color: var(--g-turq) !important; font-family: var(--g-head); font-weight: 500; font-size: 14px; text-decoration: none !important; }
.biblioPaging .pagingList b { background: var(--g-turq); border-color: var(--g-turq); color: #fff !important; }
.biblioPaging .pagingList a:hover { border-color: var(--g-green); color: var(--g-green) !important; }

.g-noresult { text-align: center; background: #fff; border: 1px dashed var(--g-turq-60); border-radius: var(--g-r); padding: 48px 24px; }
.g-noresult__icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--g-green-20); color: var(--g-green); }
.g-noresult__icon .g-ic { width: 34px; height: 34px; }
.g-noresult h3 { font-size: 22px; margin: 14px 0 6px; }
.g-noresult p { color: var(--g-turq-80); max-width: 480px; margin: 0 auto 18px; }
.g-noresult__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* 8. Detail buku ---------------------------------------------------------- */
.g-detail-page { padding-top: 24px; padding-bottom: 64px; }
.g-back { display: inline-flex; align-items: center; gap: 6px; font-family: var(--g-head); font-weight: 500; margin-bottom: 14px; text-decoration: none !important; }
.g-detail { display: grid; grid-template-columns: 290px 1fr; gap: 40px; align-items: start; background: #fff; border: 1px solid var(--g-line); border-radius: 20px; padding: 34px; box-shadow: var(--g-shadow); }
.g-detail__side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.g-detail__cover { --c: var(--g-turq); position: relative; aspect-ratio: 5 / 7; border-radius: 6px 14px 14px 6px; overflow: hidden; background: var(--c); box-shadow: inset 8px 0 0 rgba(0,0,0,.12), 0 14px 30px rgba(28,61,49,.22); }
.g-detail__cover img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.g-detail__ph { position: absolute; inset: 0; padding: 26px 20px 20px 26px; color: var(--g-cream); font-family: var(--g-serif); font-style: italic; font-size: 22px; line-height: 1.3; }
.g-detail__btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.g-detail__main { min-width: 0; }
.g-detail__title { font-size: clamp(26px, 3.2vw, 38px); font-weight: 600; line-height: 1.15; margin: 12px 0 10px; }
.g-detail__authors { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--g-turq-80); margin-bottom: 18px; }
.g-detail__authors a { font-weight: 700; color: var(--g-green); }
.g-detail__notes { color: var(--g-turq-80); font-size: 16px; line-height: 1.8; padding-bottom: 10px; border-bottom: 1px solid var(--g-line); }
.g-detail__block { margin-top: 30px; }
.g-detail__block h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 0 0 12px; }
.g-detail__block h2 .g-ic { color: var(--g-green); }
.g-copies table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--g-line); border-radius: var(--g-r-sm); overflow: hidden; background: #fff; }
.g-copies td, .g-copies th { padding: 12px 14px; border: 0 !important; border-bottom: 1px solid var(--g-line) !important; vertical-align: middle; }
.g-copies tr:last-child td { border-bottom: 0 !important; }
.g-copies .biblio-item-code { font-weight: 700; color: var(--g-turq-80); }
.g-copies .biblio-call-number { font-family: ui-monospace, Consolas, monospace; font-weight: 600; }
.g-copies .biblio-location { font-weight: 700; }
.g-status { display: inline-block; border-radius: 999px; padding: 5px 14px; font-family: var(--g-head); font-weight: 500; font-size: 13px; }
.g-status--yes { background: var(--g-green-20); color: var(--g-green); }
.g-status--no { background: var(--g-red-l); color: var(--g-red); }
.g-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0; background: var(--g-page); border-radius: var(--g-r-sm); padding: 6px 20px; }
.g-facts > div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--g-line); }
.g-facts dt { color: var(--g-turq-80); font-weight: 600; font-size: 13px; margin: 0; }
.g-facts dd { margin: 0; font-weight: 700; font-size: 15px; word-break: break-word; }
.g-subjects a { display: inline-block; background: var(--g-green-20); color: var(--g-turq) !important; font-weight: 700; font-size: 14px; padding: 5px 14px; border-radius: 999px; margin: 0 6px 8px 0; text-decoration: none !important; }
.g-subjects a:hover { background: var(--g-green); color: #fff !important; }
.g-subjects br { display: none; }

/* 9. Halaman umum --------------------------------------------------------- */
.g-content { padding-top: 32px; padding-bottom: 64px; }
.g-prose { font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.g-prose img { max-width: 100%; height: auto; border-radius: var(--g-r-sm); }
.g-prose h1, .g-prose h2, .g-prose h3 { margin-top: 1.2em; }
.g-prose > :first-child { margin-top: 0; }
.g-prose table:not(.table) { width: 100%; border-collapse: collapse; }
.g-prose table:not(.table) td, .g-prose table:not(.table) th { border: 1px solid var(--g-line); padding: 8px 10px; }
.g-prose input[type=text], .g-prose input[type=email], .g-prose input[type=password], .g-prose input[type=number], .g-prose input[type=date], .g-prose input[type=tel], .g-prose select, .g-prose textarea { border-radius: var(--g-r-sm); border: 1px solid var(--g-turq-20); padding: 8px 12px; font-family: var(--g-font); max-width: 100%; }
.g-prose input[type=submit], .g-prose button[type=submit], .g-prose .button { background: var(--g-green); color: #fff; border: 0; border-radius: var(--g-r-sm); padding: 10px 24px; font-family: var(--g-head); font-weight: 500; cursor: pointer; }
.g-newslist { display: grid; gap: 14px; max-width: 860px; }
.g-newslist > .alert { margin: 0; }
.g-newscard { display: flex; gap: 18px; background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r); padding: 18px; color: var(--g-turq) !important; text-decoration: none !important; transition: box-shadow .15s, border-color .15s; }
.g-newscard:hover { box-shadow: var(--g-shadow); border-color: var(--g-green-40); }
.g-newscard__date { flex: none; width: 66px; height: 72px; border-radius: 12px; background: var(--g-turq); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.g-newscard__date span { font-family: var(--g-head); font-size: 26px; font-weight: 600; }
.g-newscard__date small { font-family: var(--g-head); font-weight: 500; text-transform: uppercase; font-size: 11px; margin-top: 5px; letter-spacing: .1em; color: var(--g-lime); }
.g-newscard__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.g-newscard__body time { font-family: var(--g-head); font-size: 12px; font-weight: 500; color: var(--g-green); text-transform: uppercase; letter-spacing: .1em; }
.g-newscard__body b { font-family: var(--g-head); font-weight: 600; font-size: 19px; line-height: 1.3; }
.g-newscard__body span { color: var(--g-turq-80); font-size: 15px; }
.g-newscard__body em { display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-family: var(--g-head); font-weight: 500; color: var(--g-green); font-size: 14px; }
.g-librarians { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 18px; }
.g-librarians .librarian { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: start; background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r); padding: 20px; margin: 0; box-shadow: var(--g-shadow); }
.g-librarians .librarian > [class*="span"] { width: auto; float: none; margin: 0; }
.g-librarians .librarian img { width: 130px; height: 130px; object-fit: cover; border-radius: 50%; border: 4px solid var(--g-green-20); }
.g-librarians .librarian > * { min-width: 0; overflow-wrap: anywhere; }
.g-librarians .librarian .row-fluid { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--g-line); }
.g-librarians .librarian .row-fluid > * { width: auto; float: none; margin: 0; }
.g-librarians .key { font-weight: 600; color: var(--g-turq-80); font-size: 13px; }
.g-librarians .librarian-social { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.g-content--login .g-panel { max-width: 460px; margin: 0 auto; }
.g-content--login input[type=text], .g-content--login input[type=password] { width: 100%; min-height: 46px; border-radius: var(--g-r-sm); border: 1px solid var(--g-turq-20); padding: 8px 14px; margin: 4px 0 12px; }
.g-content--login input[type=submit], .g-content--login button, .g-content--login .btn { min-height: 44px; padding: 0 24px; }
.g-content--login input[value="Home"], .g-content--login input[type=button] { background: #fff; border: 1px solid var(--g-turq-20); border-radius: var(--g-r-sm); padding: 0 20px; min-height: 44px; color: var(--g-turq); font-family: var(--g-head); }

/* 10. Anggota ------------------------------------------------------------- */
.g-login-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; max-width: 980px; margin: 0 auto; }
.g-login h1, .g-login h2, .g-login h3, .g-login h4, .g-login .tagline { font-family: var(--g-head); font-weight: 600; font-size: 22px; color: var(--g-turq); margin-bottom: 6px; }
.g-login .loginInfo { color: var(--g-turq-80); font-size: 15px; margin-bottom: 8px; }
.g-login .fieldLabel { font-family: var(--g-head); font-weight: 500; font-size: 14px; color: var(--g-turq); margin: 14px 0 4px; }
.g-login .login_input { margin: 0; }
.g-login hr { border-color: var(--g-line); }
.g-login .form-control, .g-login input[type=text], .g-login input[type=password] { width: 100% !important; max-width: none; min-height: 46px; }
.g-login .btn, .g-login input[type=submit], .g-login button[type=submit] { width: 100%; min-height: 48px; border-radius: var(--g-r-sm); background: var(--g-lime) !important; border: 0 !important; color: var(--g-turq) !important; font-family: var(--g-head); font-weight: 500; font-size: 16px; letter-spacing: .03em; margin-top: 14px; }
.g-login .btn:hover, .g-login input[type=submit]:hover { background: var(--g-lime-h) !important; }
.g-login-help { background: var(--g-green-20); border-color: var(--g-green-40); box-shadow: none; }
.g-login-help__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #fff; color: var(--g-green); }
.g-login-help__icon .g-ic { width: 24px; height: 24px; }
.g-login-help h2 { font-size: 19px; margin: 12px 0 6px; }
.g-login-help p { color: var(--g-turq-80); }
.g-login-help a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.g-member-area { padding: 24px; }

/* 11. Footer & modal ------------------------------------------------------ */
.g-footer { position: relative; overflow-x: clip; clip-path: inset(-240px 0 0 0); background: var(--g-ink); color: var(--g-turq-20); padding: 0 0 0; margin-top: 140px; }
.g-footer__cta { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: -84px; padding: 34px 40px; border-radius: var(--g-r-lg); background: linear-gradient(120deg, var(--g-turq) 0%, #2D6B5E 60%, var(--g-green) 130%); box-shadow: 0 24px 50px rgba(28,61,49,.25); }
.g-footer__cta h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 4px; }
.g-footer__cta p { margin: 0; color: var(--g-turq-20); }
.g-footer__cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.g-footer .g-btn--cta { color: var(--g-turq) !important; }
.g-footer .g-btn--line { color: #fff !important; }
.g-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding: 60px 0 10px; position: relative; z-index: 2; }
.g-footer__logo { height: 36px; width: auto; margin-bottom: 16px; }
.g-footer__about p { font-size: 15px; max-width: 340px; }
.g-footer h3 { color: #fff; font-family: var(--g-head); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.g-footer ul { list-style: none; padding: 0; margin: 0; }
.g-footer li { margin-bottom: 10px; }
.g-footer a { color: var(--g-turq-20) !important; text-decoration: none !important; font-weight: 600; transition: color .15s; }
.g-footer nav a:hover, .g-footer__line a:hover { color: var(--g-lime) !important; }
.g-footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.g-footer__social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff !important; font-family: var(--g-head); font-weight: 500; font-size: 13px; }
.g-footer__social a:hover { background: var(--g-lime); color: var(--g-turq) !important; border-color: var(--g-lime); }
.g-footer__social .g-ic, .g-footer__social i { width: 16px; height: 16px; font-size: 15px; }
.g-footer__hours { margin-bottom: 16px !important; }
.g-footer__hours li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.g-footer__hours span { font-family: var(--g-head); font-weight: 600; font-size: 12px; color: var(--g-turq); background: var(--g-lime); border-radius: 6px; padding: 2px 8px; }
.g-footer__hours b { font-weight: 600; color: #fff; font-size: 14px; }
.g-footer__line { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 0 0 10px; }
.g-footer__line .g-ic { margin-top: 3px; color: var(--g-lime); }
.g-footer__bottom { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding: 20px 0 28px; font-size: 13px; color: var(--g-turq-60); }
.g-footer__bottom a { color: #fff !important; }
.g-footer__markwrap { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.g-footer__mark { position: absolute; left: 50%; bottom: -0.12em; transform: translateX(-50%); max-width: 100%; overflow: hidden; text-align: center; z-index: 1; white-space: nowrap; font-family: var(--g-serif); font-style: italic; font-size: clamp(60px, 11vw, 170px); line-height: 1; color: rgba(182,239,117,.05); pointer-events: none; user-select: none; }
.g-totop { position: fixed; right: 22px; bottom: 90px; z-index: 1040; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; border: 0; background: var(--g-turq); color: var(--g-lime); box-shadow: var(--g-shadow-h); opacity: 0; pointer-events: none; transition: opacity .2s; cursor: pointer; }
.g-totop.is-on { opacity: 1; pointer-events: auto; }

.g-modal .modal-content { border: 0; border-radius: 18px; overflow: hidden; color: var(--g-turq); }
.g-modal .modal-header { border-bottom: 1px solid var(--g-line); padding: 18px 24px; }
.g-modal .modal-title { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0; }
.g-modal .modal-title .g-ic { color: var(--g-green); }
.g-modal .modal-body { padding: 22px 24px; }
.g-modal .modal-footer { border-top: 1px solid var(--g-line); padding: 14px 24px; gap: 8px; }
.g-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.g-form-grid label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-family: var(--g-head); font-weight: 500; font-size: 14px; color: var(--g-turq); }

#toast-container > div { border-radius: 14px; box-shadow: var(--g-shadow-h); opacity: 1; font-family: var(--g-font); font-weight: 600; }
#toast-container > .toast-success { background-color: var(--g-green); }
#toast-container > .toast-info { background-color: var(--g-turq); }

/* WhatsApp mengambang */
.g-wa { position: fixed; right: 18px; bottom: 18px; z-index: 1045; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.g-wa__btn { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; background: var(--g-turq); color: #fff; font-family: var(--g-head); font-weight: 500; font-size: 14px; letter-spacing: .03em; padding: 12px 18px 12px 14px; border-radius: 999px; box-shadow: 0 8px 24px rgba(28,61,49,.35); transition: background .15s, transform .15s; }
.g-wa__btn:hover { background: var(--g-turq-h); transform: translateY(-1px); }
.g-wa__btn i { font-size: 22px; color: var(--g-lime); }
.g-wa.is-open .g-wa__btn { background: var(--g-turq-h); }
.g-wa__panel { width: 320px; max-width: calc(100vw - 36px); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(28,61,49,.3); }
.g-wa__panel[hidden] { display: none; }
.g-wa__top { display: flex; align-items: center; gap: 10px; background: var(--g-turq); color: #fff; padding: 12px 14px; }
.g-wa__top b { display: block; font-family: var(--g-head); font-weight: 600; font-size: 14px; }
.g-wa__top small { display: block; font-size: 12px; color: var(--g-turq-20); }
.g-wa__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--g-lime); color: var(--g-turq); display: grid; place-items: center; font-size: 20px; flex: none; }
.g-wa__x { margin-left: auto; background: none; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; opacity: .85; }
.g-wa__body { padding: 14px; background: var(--g-page); }
.g-wa__bubble { background: #fff; border-radius: 4px 14px 14px 14px; padding: 10px 12px; font-size: 14px; color: var(--g-turq); box-shadow: 0 1px 2px rgba(0,0,0,.06); margin: 0 0 12px; }
.g-wa__lab { display: block; font-family: var(--g-head); font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--g-turq-80); margin-bottom: 5px; }
.g-wa__body textarea { width: 100%; border: 1px solid var(--g-turq-20); border-radius: 12px; padding: 9px 10px; font-family: var(--g-font); font-weight: 600; font-size: 14px; color: var(--g-turq); resize: vertical; margin-bottom: 10px; }
.g-wa__body textarea:focus { outline: 0; border-color: var(--g-green); box-shadow: 0 0 0 3px rgba(51,153,101,.15); }
.g-wa__send i { font-size: 18px; }
.g-footer__line i.fab { width: 18px; margin-top: 3px; color: var(--g-lime); font-size: 16px; }
.g-login-help a i.fab { font-size: 17px; }
@media (max-width: 575px) { .g-wa__btn span { display: none; } .g-wa__btn { padding: 14px; } .g-wa__btn i { font-size: 26px; } .g-totop { bottom: 86px; right: 20px; } }

/* 12. Kiosk buku tamu ----------------------------------------------------- */
.g-kiosk { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 24px; overflow: hidden; background: var(--g-turq); }
.g-kiosk::before, .g-kiosk::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(182,239,117,.16); }
.g-kiosk::before { width: 520px; height: 520px; left: -200px; top: -220px; }
.g-kiosk::after { width: 680px; height: 680px; right: -260px; bottom: -360px; }
.g-kiosk__card { position: relative; z-index: 2; width: 100%; max-width: 500px; background: #fff; border-radius: 22px; padding: 34px 32px 26px; text-align: center; box-shadow: 0 24px 50px rgba(0,0,0,.25); }
.g-kiosk__logo { height: 34px; width: auto; margin-bottom: 18px; }
.g-kiosk__photo { position: relative; width: 108px; height: 108px; margin: 0 auto 10px; border-radius: 50%; background: var(--g-green-20); border: 4px solid #fff; box-shadow: var(--g-shadow); display: grid; place-items: center; overflow: hidden; color: var(--g-green); }
.g-kiosk__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.g-kiosk__wave .g-ic { width: 44px; height: 44px; }
.g-kiosk h1 { font-size: 26px; margin: 8px 0; }
.g-kiosk__info { color: var(--g-turq-80); min-height: 52px; margin-bottom: 16px; }
.g-kiosk__form { text-align: left; display: flex; flex-direction: column; gap: 6px; }
.g-kiosk__form label { font-family: var(--g-head); font-weight: 500; font-size: 14px; color: var(--g-turq); margin: 6px 0 0; }
.g-kiosk__form .form-control { min-height: 52px; font-size: 19px; }
.g-kiosk__form .g-btn { margin-top: 14px; font-size: 17px; padding: 15px; }
.g-kiosk__home { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-family: var(--g-head); font-weight: 500; text-decoration: none !important; }

/* 13. Responsif ----------------------------------------------------------- */
@media (max-width: 1100px) {
  .g-nav__toggle { display: block; margin-left: auto; }
  .g-brand { flex: 1 1 0; }
  .g-nav__links { position: fixed; top: 0; right: 0; bottom: 0; z-index: 1060; width: min(86vw, 360px); display: flex; flex-direction: column; align-items: stretch; gap: 4px; padding: 14px 16px 24px; background: var(--g-turq); box-shadow: -20px 0 50px rgba(0,0,0,.25); overflow-y: auto; transform: translateX(105%); visibility: hidden; transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s linear .32s; }
  .g-nav.is-open .g-nav__links { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2,.8,.2,1); }
  .g-drawer__head { display: flex; }
  .g-nav__link { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; font-size: 16px; }
  .g-nav .dropdown { width: 100%; }
  .g-nav .dropdown-menu { position: static !important; transform: none !important; float: none; box-shadow: none; border: 0; margin: 2px 0 8px; background: rgba(255,255,255,.06); min-width: 0; }
  .g-nav .dropdown-item { color: var(--g-page) !important; }
  .g-nav .dropdown-item .g-ic { color: var(--g-lime); }
  .g-nav .dropdown-item:hover, .g-nav .dropdown-item:focus { background: rgba(255,255,255,.08); }
  .g-nav .dropdown-divider { border-color: rgba(255,255,255,.12); }
  .g-lang { align-self: flex-start; margin: 14px 0 10px; }
  .g-nav__links .g-btn { width: 100%; justify-content: center; padding: 13px 16px; }
  .g-nav__links > .dropdown:last-child { margin-top: auto; }
}
@media (max-width: 991px) {
  .g-hero--split .g-hero__grid { grid-template-columns: 1fr; text-align: center; }
  .g-hero--split .g-search { margin: 0 auto; }
  .g-hero--split .g-scope, .g-hero--split .g-hero__stats { justify-content: center; }
  .g-hero--split .g-hero__sub { margin-left: auto; }
  .g-hero__media { height: 340px; max-width: 560px; width: 100%; margin: 0 auto; }
  .g-ph--a { height: 220px; } .g-ph--b { height: 160px; } .g-ph--c { height: 150px; }
  .g-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .g-gallery__item--1, .g-gallery__item--4 { grid-column: span 1; }
  .g-gallery__item--5 { display: none; }
  .g-footer__grid { grid-template-columns: 1fr 1fr; }
  .g-ddc { gap: 10px; }
  .g-ddc__item { padding: 14px; }
  .g-services { grid-template-columns: repeat(2, 1fr); }
  .g-news { grid-template-columns: 1fr; }
  .g-results-layout { grid-template-columns: 1fr; }
  .g-filter { position: static; }
  .g-filter__toggle { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 1px solid var(--g-line); background: #fff; color: var(--g-turq); border-radius: 12px; padding: 11px; font-family: var(--g-head); font-weight: 500; }
  .g-filter__panel { display: none; margin-top: 10px; max-height: none; }
  .g-filter.is-open .g-filter__panel { display: block; }
  .g-filter__title { display: none; }
  .g-detail { grid-template-columns: 1fr; padding: 22px; }
  .g-detail__side { position: static; max-width: 270px; margin: 0 auto; width: 100%; }
  .g-facts { grid-template-columns: 1fr; }
  .g-login-grid { grid-template-columns: 1fr; }
  .g-footer__about { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .g-hero__media { height: 260px; }
  .g-ph--a { height: 170px; } .g-ph--b { height: 120px; } .g-ph--c { height: 120px; }
  .g-hero__badge { display: none; }
  .g-hero__stats { gap: 22px; }
  .g-hero__stats dt { font-size: 22px; }
  .g-footer__cta { padding: 26px 22px; margin-top: -70px; }
  .g-footer__cta-btns .g-btn { flex: 1; }
  .g-hero { padding: 52px 0 104px; }
  .g-libs { grid-template-columns: 1fr; gap: 16px; }
  .g-lib { padding: 20px; gap: 16px; }
  .g-lib__icon { width: 56px; height: 56px; border-radius: 14px; }
  .g-lib__icon .g-ic { width: 28px; height: 28px; }
  .g-lib strong { font-size: 21px; }
  .g-ddc { grid-template-columns: repeat(2, 1fr); }
  .g-info { grid-template-columns: 1fr; }
  .g-book { width: 128px; }
  .g-item { grid-template-columns: 84px 1fr; gap: 14px; padding: 14px; }
  .g-item__side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; padding-left: 0; border-left: 0; padding-top: 12px; border-top: 1px solid var(--g-line); }
  .g-item__side .g-btn { flex: 1; }
  .g-item__title { font-size: 17px; }
  .g-results__tools { width: 100%; justify-content: space-between; }
  .g-facts > div { grid-template-columns: 1fr; gap: 0; }
  .g-form-grid { grid-template-columns: 1fr; }
  .g-panel { padding: 20px; }
  .g-newscard { padding: 14px; gap: 12px; }
  .g-newscard__date { width: 56px; height: 62px; }
  .g-librarians { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .g-eyebrow { font-size: 11px; letter-spacing: .1em; }
  .g-brand img { height: 28px; }
  .g-brand { gap: 10px; }
  .g-nav__in { min-height: 62px; gap: 8px; }
  .g-brand__text { padding-left: 10px; }
  .g-brand strong { font-size: 14px; }
  .g-brand small { font-size: 11px; }
  .g-search__box, .g-search--big .g-search__box { padding-left: 14px; }
  .g-search__box input, .g-search--big .g-search__box input { font-size: 16px; }
  .g-search__box .g-btn, .g-search--big .g-btn { padding: 11px 16px; font-size: 15px; }
  .g-services { grid-template-columns: 1fr; }
  .g-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .g-gallery { grid-auto-rows: 120px; gap: 10px; }
  .g-copies table, .g-copies tbody, .g-copies tr, .g-copies td { display: block; width: 100%; }
  .g-copies tr { padding: 10px 6px; border-bottom: 1px solid var(--g-line); }
  .g-copies td { border: 0 !important; padding: 2px 8px; }
  .g-librarians .librarian { grid-template-columns: 1fr; justify-items: center; }
  .g-kiosk__card { padding: 28px 20px 22px; }
}
@media (max-width: 400px) {
  .g-eyebrow__long { display: none; }
  .g-brand small { display: none; }
  .g-brand strong { font-size: 14px; }
}

/* ===== Modern: navbar, drawer, overlay, sheet, rak, animasi ===== */
html.g-lock, html.g-lock body { overflow: hidden; }
.g-nav { background: transparent; transition: box-shadow .2s; }
.g-nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(53,89,81,.97); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .g-nav::before { background: rgba(53,89,81,.86); -webkit-backdrop-filter: saturate(140%) blur(12px); backdrop-filter: saturate(140%) blur(12px); }
}
.g-nav__in { transition: min-height .2s; }
body.is-scrolled .g-nav { box-shadow: 0 6px 24px rgba(28,61,49,.22); }
body.is-scrolled .g-nav__in { min-height: 60px; }
body.is-scrolled .g-brand img { height: 34px; }
.g-drawer__head { display: none; align-items: center; justify-content: space-between; padding: 4px 4px 12px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.12); color: var(--g-lime); font-family: var(--g-head); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; }
.g-drawer__x, .g-filter__x { width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.g-overlay { position: fixed; inset: 0; z-index: 1055; background: rgba(15,35,28,.45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: g-fade .2s ease; }
.g-overlay[hidden] { display: none; }
@keyframes g-fade { from { opacity: 0; } to { opacity: 1; } }

.g-filter__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.g-filter__x { display: none; background: var(--g-turq-20); color: var(--g-turq); }

.g-shelfwrap { position: relative; }
.g-shelfwrap.is-hidden { display: none; }
.g-shelf__nav { position: absolute; top: calc(50% - 40px); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--g-line); background: #fff; color: var(--g-turq); font-size: 28px; line-height: 1; display: grid; place-items: center; padding-bottom: 4px; box-shadow: var(--g-shadow-h); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.g-shelf__nav--prev { left: -18px; }
.g-shelf__nav--next { right: -18px; }
.g-shelfwrap.can-prev .g-shelf__nav--prev, .g-shelfwrap.can-next .g-shelf__nav--next { opacity: 1; pointer-events: auto; }
.g-shelf__nav:hover { transform: scale(1.06); background: var(--g-lime); border-color: var(--g-lime); }
.g-shelfwrap.can-next .g-shelf { -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
.g-shelfwrap.can-prev.can-next .g-shelf { -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 88%, transparent); }
.g-shelfwrap.can-prev:not(.can-next) .g-shelf { -webkit-mask-image: linear-gradient(to right, transparent, #000 8%); mask-image: linear-gradient(to right, transparent, #000 8%); }
@media (hover: none) { .g-shelf__nav { display: none; } }

.g-js .g-cover img, .g-js .g-detail__cover img, .g-js .g-gallery__item img, .g-js .g-ph img { opacity: 0; transition: opacity .45s ease, transform .5s ease; }
.g-js .g-cover img.is-loaded, .g-js .g-detail__cover img.is-loaded, .g-js .g-gallery__item img.is-loaded, .g-js .g-ph img.is-loaded { opacity: 1; }
.g-cover { background-image: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.12) 50%, transparent 70%); background-size: 200% 100%; background-color: var(--c); animation: g-shimmer 1.6s linear infinite; }
@keyframes g-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }

.g-reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .15s, border-color .15s; }
.g-reveal:not(.g-in) { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
  .g-cover { animation: none; }
  .g-reveal:not(.g-in) { opacity: 1; transform: none; }
  * { scroll-behavior: auto !important; }
}

@media (max-width: 991px) {
  .g-filter__panel { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1060; max-height: 84vh; margin: 0; border-radius: 22px 22px 0 0; border: 0; padding: 8px 20px 24px; box-shadow: 0 -20px 50px rgba(0,0,0,.25); transform: translateY(105%); visibility: hidden; transition: transform .32s cubic-bezier(.2,.8,.2,1), visibility 0s linear .32s; }
  .g-filter.is-open .g-filter__panel { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2,.8,.2,1); }
  .g-filter__panel::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 5px; background: var(--g-turq-20); margin: 4px auto 12px; }
  .g-filter__head { position: sticky; top: -8px; background: #fff; padding: 6px 0 10px; z-index: 2; }
  .g-filter__title { display: flex; }
  .g-filter__x { display: grid; place-items: center; }
  .g-filter__toggle { box-shadow: var(--g-shadow); }
}
@media (max-width: 767px) {
  .g-ddc { grid-auto-flow: column; grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-columns: 148px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin: 0 -20px; padding-left: 20px; padding-right: 20px; scroll-padding-left: 20px; }
  .g-ddc::-webkit-scrollbar { display: none; }
  .g-ddc__item { scroll-snap-align: start; }
  .g-services { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .g-service { padding: 16px; }
  .g-service small { font-size: 13px; }
  .g-sec { padding-top: 48px; }
  .g-results__tools .g-sort { flex: 1; }
  .g-results__tools .g-sort .custom-select { flex: 1; width: 100%; }
  .g-shelf { margin: 0 -20px; padding-left: 20px; padding-right: 20px; scroll-padding-left: 20px; }
}
@media (max-width: 575px) {
  .g-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .g-footer__about, .g-footer__visit { grid-column: 1 / -1; }
  .g-libs { margin-top: -48px; }
  .g-lib__go { margin-top: 6px; }
}
.g-overlay--nav { z-index: 1029; }
html.g-lock .g-wa, html.g-lock .g-totop { display: none; }
@media (max-width: 1100px) { .g-drawer__head { display: flex; } }
@media (max-width: 991px) { .g-results-layout .g-filter { position: static; top: auto; } }

/* ===== v3: banner "pengetahuan" beranimasi ===== */
.g-band { padding: 46px 0 78px; background: linear-gradient(135deg, #2C4C45 0%, var(--g-turq) 42%, #2D6B5E 100%); border-top: 0; }
.g-band--plain { padding: 50px 0 88px; }
.g-band__deco { display: none; }
.g-band__wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 40px; z-index: 1; fill: var(--g-page); pointer-events: none; }

.g-know { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.g-know__net { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity 1.2s ease; }
.g-know__net.is-on { opacity: 1; }
.g-know__glow { position: absolute; border-radius: 50%; will-change: transform; }
.g-know__glow--1 { width: 560px; height: 560px; left: -180px; top: -300px; background: radial-gradient(circle, rgba(182,239,117,.20), transparent 64%); animation: g-aurora 18s ease-in-out infinite alternate; }
.g-know__glow--2 { width: 640px; height: 640px; right: -220px; bottom: -380px; background: radial-gradient(circle, rgba(85,187,135,.45), transparent 64%); animation: g-aurora 22s ease-in-out -6s infinite alternate-reverse; }
@keyframes g-aurora { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,30px) scale(1.12); } 100% { transform: translate(-40px,50px) scale(.95); } }

.g-know__orbit { position: absolute; right: 7%; top: 50%; width: 280px; height: 280px; margin-top: -140px; border-radius: 50%; border: 1px dashed rgba(182,239,117,.28); animation: g-spin 46s linear infinite; }
.g-know__orbit i { position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--g-lime); box-shadow: 0 0 0 5px rgba(182,239,117,.18), 0 0 18px rgba(182,239,117,.8); }
.g-know__orbit--2 { right: auto; left: 5%; width: 170px; height: 170px; margin-top: -85px; top: 38%; border-color: rgba(255,255,255,.16); animation-duration: 30s; animation-direction: reverse; }
.g-know__orbit--2 i { width: 7px; height: 7px; margin-left: -3.5px; top: -3.5px; background: #fff; box-shadow: 0 0 12px rgba(255,255,255,.8); }
@keyframes g-spin { to { transform: rotate(360deg); } }

.g-know__g { position: absolute; left: var(--x); top: var(--y); font-family: var(--g-serif); font-style: italic; font-size: calc(22px * var(--s)); line-height: 1; color: rgba(255,255,255,.17); white-space: nowrap; transform: rotate(var(--r)); animation: g-float var(--t) ease-in-out var(--d) infinite; translate: calc(var(--mx, 0) * -26px * var(--s)) calc(var(--my, 0) * -18px * var(--s)); transition: translate .8s cubic-bezier(.2,.8,.2,1); }
.g-know__g--ic { color: rgba(182,239,117,.30); }
.g-know__g--ic .g-ic { width: calc(26px * var(--s)); height: calc(26px * var(--s)); }
@keyframes g-float {
  0%, 100% { transform: translateY(0) rotate(var(--r)); opacity: .75; }
  50% { transform: translateY(-16px) rotate(calc(var(--r) + 10deg)); opacity: 1; }
}
.g-know--hero .g-know__g { color: rgba(255,255,255,.11); }
.g-know--hero .g-know__g--ic { color: rgba(182,239,117,.2); }
.g-know--hero .g-know__orbit { right: auto; left: 44%; top: 18%; }
.g-know--kiosk .g-know__g { font-size: calc(30px * var(--s)); }
.g-hero .g-know { z-index: 1; }

/* teks banner muncul bergantian */
.g-band__in > * { animation: g-rise .7s cubic-bezier(.2,.8,.2,1) both; }
.g-band__in > :nth-child(2) { animation-delay: .06s; }
.g-band__in > :nth-child(3) { animation-delay: .12s; }
.g-band__in > :nth-child(4) { animation-delay: .18s; }
.g-band__in > :nth-child(5) { animation-delay: .24s; }
@keyframes g-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.g-band__icon { position: relative; width: 58px; height: 58px; background: rgba(182,239,117,.16); box-shadow: inset 0 0 0 1px rgba(182,239,117,.3); margin-bottom: 14px; }
.g-band__icon::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(182,239,117,.55); animation: g-ring 2.8s ease-out infinite; }
@keyframes g-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.g-band__title { letter-spacing: -.02em; text-wrap: balance; }
.g-band--plain .g-band__title::after { content: ""; display: block; width: 56px; height: 4px; margin: 14px auto 0; border-radius: 4px; background: linear-gradient(90deg, var(--g-lime), var(--g-green-h)); transform-origin: center; animation: g-grow .9s .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes g-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.g-band__sub { color: rgba(240,252,227,.82); text-wrap: balance; }
.g-band--plain .g-band__sub { margin-top: 12px; }

.g-crumbs { display: flex; width: fit-content; max-width: 100%; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 0 auto 16px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-family: var(--g-head); font-size: 13px; color: var(--g-turq-20); }
.g-crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--g-lime-h) !important; text-decoration: none !important; }
.g-crumbs a:hover { color: #fff !important; }
.g-crumbs .g-ic { width: 14px; height: 14px; }
.g-crumbs__sep { opacity: .45; }
.g-crumbs [aria-current] { color: #fff; }

/* ===== v3: dropdown menu dengan ikon & keterangan ===== */
.g-nav .g-dd { min-width: 330px; padding: 8px; border: 0; border-radius: 18px; box-shadow: 0 20px 50px rgba(28,61,49,.22), 0 0 0 1px rgba(53,89,81,.08); }
.g-nav .g-dd.show { animation: g-dd .2s cubic-bezier(.2,.8,.2,1); }
/* GMS: pakai translate/scale (bukan transform) supaya tidak menimpa posisi dropdown dari Popper */
@keyframes g-dd { from { opacity: 0; translate: 0 -6px; scale: .98; } to { opacity: 1; translate: 0 0; scale: 1; } }
.g-nav .g-mi { align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; transition: background .15s; }
.g-mi__ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--g-green-20); color: var(--g-green); transition: background .15s, color .15s, transform .2s; }
.g-mi__ic .g-ic { width: 19px; height: 19px; color: inherit !important; }
.g-mi__tx { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.g-mi__tx b { font-family: var(--g-head); font-weight: 500; font-size: 14.5px; }
.g-mi__tx small { font-size: 12.5px; font-weight: 500; color: var(--g-turq-80); }
.g-nav .g-mi:hover .g-mi__ic, .g-nav .g-mi:focus .g-mi__ic { background: var(--g-green); color: #fff; transform: scale(1.05); }
.g-nav .g-mi.is-on { background: var(--g-lime-20); }
.g-nav .g-mi.is-on .g-mi__ic { background: var(--g-turq); color: var(--g-lime); }
@media (max-width: 1100px) {
  .g-nav .g-dd { min-width: 0; box-shadow: none; padding: 6px; border-radius: 14px; }
  .g-nav .g-dd.show { animation: none; }
  .g-nav .g-mi__ic { width: 34px; height: 34px; background: rgba(255,255,255,.08); color: var(--g-lime); }
  .g-nav .g-mi__tx b { color: var(--g-page); }
  .g-nav .g-mi__tx small { color: rgba(240,252,227,.6); }
  .g-nav .g-mi.is-on { background: rgba(182,239,117,.14); }
  .g-nav .g-mi.is-on .g-mi__ic { background: var(--g-lime); color: var(--g-turq); }
}

/* ===== v3: halaman umum dengan sidebar ===== */
.g-content { padding-top: 20px; }
.g-pagegrid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
.g-pagebody { min-width: 0; }
.g-side { position: sticky; top: 92px; display: grid; gap: 16px; }
.g-side__nav { background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r); padding: 14px; box-shadow: var(--g-shadow); }
.g-side__label { margin: 4px 8px 10px; font-family: var(--g-head); font-weight: 600; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--g-green); }
.g-side__links { display: grid; gap: 2px; }
.g-side__link { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; color: var(--g-turq) !important; text-decoration: none !important; transition: background .15s, transform .15s; }
.g-side__link:hover { background: var(--g-page); transform: translateX(3px); }
.g-side__link:hover .g-mi__ic { background: var(--g-green); color: #fff; }
.g-side__link.is-on { background: var(--g-turq); color: #fff !important; transform: none; box-shadow: 0 8px 20px rgba(53,89,81,.25); }
.g-side__link.is-on .g-mi__ic { background: var(--g-lime); color: var(--g-turq); }
.g-side__link.is-on .g-mi__tx small { color: var(--g-turq-20); }
.g-side__help { position: relative; overflow: hidden; padding: 22px 20px; border-radius: var(--g-r); color: var(--g-turq-20); background: linear-gradient(160deg, var(--g-turq) 0%, #2D6B5E 100%); box-shadow: var(--g-shadow); }
.g-side__help::after { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -80px; border-radius: 50%; border: 1px dashed rgba(182,239,117,.3); animation: g-spin 40s linear infinite; }
.g-side__helpic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(182,239,117,.15); color: var(--g-lime); margin-bottom: 12px; }
.g-side__help b { display: block; font-family: var(--g-head); font-weight: 600; font-size: 17px; color: #fff; }
.g-side__help p { font-size: 14px; margin: 4px 0 12px; }
.g-side__hours { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; font-size: 13.5px; }
.g-side__hours li { display: flex; align-items: flex-start; gap: 8px; }
.g-side__hours span { flex: none; font-family: var(--g-head); font-weight: 600; font-size: 11px; color: var(--g-lime); background: rgba(255,255,255,.1); border-radius: 6px; padding: 1px 7px; margin-top: 1px; }
.g-side__mail { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; color: var(--g-lime-h) !important; font-size: 13.5px; overflow-wrap: anywhere; }

/* panel konten */
.g-pagebody > .g-panel { padding: 34px 38px; background: #fff linear-gradient(90deg, var(--g-green), var(--g-lime)) no-repeat top / 100% 4px; }
.g-prose { color: var(--g-turq); }
.g-prose p { margin: 0 0 1em; }
.g-prose strong, .g-prose b { color: var(--g-ink); }
.g-prose > hr:first-child, .g-prose > style:first-child + hr { display: none; }
.g-prose hr { border: 0; height: 1px; background: var(--g-line); margin: 1.6em 0; }
.g-prose h2, .g-prose h3, .g-prose h4 { position: relative; padding-left: 16px; margin-bottom: .6em; }
.g-prose h2::before, .g-prose h3::before, .g-prose h4::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 5px; border-radius: 5px; background: linear-gradient(180deg, var(--g-lime), var(--g-green)); }
.g-prose a:not(.g-btn):not(.g-linkbtn) { color: var(--g-green); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(51,153,101,.35); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.g-prose a:not(.g-btn):not(.g-linkbtn):hover { text-decoration-color: var(--g-green); }
.g-prose ol { list-style: none; counter-reset: g-step; padding-left: 0 !important; margin: 0 0 1.4em; display: grid; gap: 10px; }
.g-prose ol > li { counter-increment: g-step; position: relative; min-height: 56px; padding: 14px 16px 14px 62px; background: var(--g-page); border: 1px solid var(--g-green-20); border-radius: 16px; }
.g-prose ol > li::before { content: counter(g-step); position: absolute; left: 14px; top: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--g-turq); color: var(--g-lime); font-family: var(--g-head); font-weight: 600; font-size: 15px; }
.g-prose ul { list-style: none; padding-left: 0 !important; margin: 0 0 1.2em; }
.g-prose ul > li { position: relative; padding-left: 26px; margin: 8px 0; }
.g-prose ul > li::before { content: ""; position: absolute; left: 6px; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--g-green); transform: rotate(45deg); }
.g-prose ul > p { padding-left: 26px; margin: 4px 0 10px; }
.g-prose blockquote { margin: 1.2em 0; padding: 16px 20px; border-radius: 14px; background: var(--g-cream); border-left: 5px solid var(--g-orange); }
.g-prose table:not(.table) { border-collapse: separate; border-spacing: 0; border: 1px solid var(--g-line); border-radius: 14px; overflow: hidden; font-size: 15px; }
.g-prose table:not(.table) td, .g-prose table:not(.table) th { border: 0; border-bottom: 1px solid var(--g-line); border-right: 1px solid var(--g-line); padding: 10px 12px; vertical-align: top; }
.g-prose table:not(.table) tr > :last-child { border-right: 0; }
.g-prose table:not(.table) tr:last-child > * { border-bottom: 0; }
.g-prose table:not(.table) th, .g-prose table:not(.table) thead td { background: var(--g-turq); color: #fff; font-family: var(--g-head); font-weight: 500; }
.g-prose table:not(.table) tbody tr:nth-child(even) td { background: #FAFFF3; }
.g-prose .g-table-wrap { border-radius: 14px; margin: 0 0 1.2em; }

.g-linkbtn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--g-green-20); color: var(--g-turq) !important; font-family: var(--g-head); font-weight: 500; font-size: 14px; text-decoration: none !important; transition: background .15s, transform .15s; }
.g-linkbtn::after { content: "\2197"; font-size: 13px; }
.g-linkbtn:hover { background: var(--g-lime); transform: translateY(-1px); }
.g-linkbtn strong { color: inherit; font-weight: inherit; }

.g-embed { margin: 20px 0; border: 1px solid var(--g-line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--g-shadow); }
.g-embed__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--g-page); border-bottom: 1px solid var(--g-line); font-family: var(--g-head); font-weight: 500; font-size: 13.5px; }
.g-embed__name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.g-embed__dots { display: inline-flex; gap: 5px; margin-right: 4px; }
.g-embed__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--g-turq-20); }
.g-embed__dots i:first-child { background: var(--g-lime); }
.g-embed__bar a { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--g-line); color: var(--g-turq) !important; text-decoration: none !important; font-size: 12.5px; }
.g-embed__bar a:hover { background: var(--g-lime); box-shadow: none; }
.g-embed > iframe { display: block; width: 100% !important; max-width: 100% !important; height: min(78vh, 760px) !important; max-height: none !important; border: 0; }
.g-embed > .responsive-iframe-container { margin: 0; }
.g-embed > .responsive-iframe-container iframe { display: block; }

/* pustakawan */
.g-librarians { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important; gap: 20px; }
.g-librarians .librarian { grid-template-columns: 1fr !important; justify-items: stretch !important; gap: 0; padding: 0 0 20px; overflow: hidden; text-align: center; transition: transform .2s, box-shadow .2s; }
.g-librarians .librarian:hover { transform: translateY(-4px); box-shadow: var(--g-shadow-h); }
.g-librarians .librarian::before { content: ""; display: block; height: 92px; background: linear-gradient(120deg, var(--g-turq) 0%, #2D6B5E 60%, var(--g-green) 100%); }
.g-librarians .librarian > [class*="span"]:first-of-type { margin-top: -58px !important; }
.g-librarians .librarian img { width: 116px; height: 116px; border: 5px solid #fff; box-shadow: 0 8px 20px rgba(28,61,49,.18); background: #fff; }
.g-librarians .librarian > [class*="span"] + [class*="span"] { padding: 10px 20px 0; text-align: left; }
.g-librarians .span8 > .row-fluid:first-child, .g-librarians .span8 > .row-fluid:nth-child(2) { display: block; text-align: center; border: 0; padding: 0; }
.g-librarians .span8 > .row-fluid:first-child .key, .g-librarians .span8 > .row-fluid:nth-child(2) .key { display: none; }
.g-librarians .span8 > .row-fluid:first-child > :last-child { font-family: var(--g-head); font-weight: 600; font-size: 18px; color: var(--g-turq); }
.g-librarians .span8 > .row-fluid:nth-child(2) > :last-child { display: inline-block; margin: 6px 0 12px; padding: 3px 12px; border-radius: 999px; background: var(--g-green-20); color: var(--g-green); font-family: var(--g-head); font-weight: 500; font-size: 13px; }
.g-librarians .librarian .row-fluid { grid-template-columns: 70px minmax(0, 1fr); font-size: 14px; }
.g-librarians .span8 > .row-fluid:last-child { border-bottom: 0; }

/* berita */
.g-newslist { max-width: none; }
.g-newscard { transition: box-shadow .2s, border-color .2s, transform .2s; }
.g-newscard:hover { transform: translateY(-3px); }
.g-newscard__date { background: linear-gradient(160deg, var(--g-turq), #2D6B5E); }

@media (max-width: 991px) {
  .g-pagegrid { display: flex; flex-direction: column; align-items: stretch; gap: 18px; }
  .g-side__nav { min-width: 0; max-width: 100%; }
  .g-side { display: contents; }
  .g-side__nav { order: 0; padding: 0; background: none; border: 0; box-shadow: none; }
  .g-side__label { display: none; }
  .g-side__links { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -20px; padding: 2px 20px 8px; scrollbar-width: none; }
  .g-side__links::-webkit-scrollbar { display: none; }
  .g-side__link { flex: none; scroll-snap-align: start; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--g-line); }
  .g-side__link:hover { transform: none; }
  .g-side__link .g-mi__ic { width: 30px; height: 30px; border-radius: 50%; }
  .g-side__link .g-mi__ic .g-ic { width: 16px; height: 16px; }
  .g-side__link .g-mi__tx small { display: none; }
  .g-side__link .g-mi__tx b { font-size: 14px; white-space: nowrap; }
  .g-pagebody { order: 1; }
  .g-side__help { order: 2; }
  .g-know__orbit { right: -60px; }
  .g-know__orbit--2 { left: -50px; }
}
@media (max-width: 767px) {
  .g-band { padding: 34px 0 62px; }
  .g-band--plain { padding: 38px 0 70px; }
  .g-band__wave { height: 26px; }
  .g-know__g:nth-child(3n), .g-know__g:nth-child(3n+1) { display: none; }
  .g-know__orbit { width: 200px; height: 200px; margin-top: -100px; }
  .g-pagebody > .g-panel { padding: 24px 18px; }
  .g-prose ol > li { padding: 12px 14px 12px 54px; }
  .g-prose ol > li::before { left: 10px; width: 30px; height: 30px; }
  .g-embed > iframe { height: 70vh !important; }
  .g-crumbs { font-size: 12px; padding: 5px 12px; }
  .g-band__icon { width: 50px; height: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .g-know__glow, .g-know__orbit, .g-know__g, .g-band__icon::after, .g-side__help::after { animation: none !important; }
  .g-band__in > *, .g-band--plain .g-band__title::after { animation: none !important; }
  .g-know__g { translate: none; }
}
.g-prose .ck-content.p-5, .g-prose > .p-5 { padding: 0 !important; }
@media (max-width: 575px) { .g-crumbs > :nth-child(n+4) { display: none; } }

/* ===== v3.1: perbaikan QA ===== */
@media (max-width: 991px) {
  .g-wa__btn span { display: none; }
  .g-wa__btn { padding: 14px; border-radius: 50%; }
  .g-wa__btn i { font-size: 26px; }
  .g-totop { bottom: 86px; }
}
.g-embed__hint { margin: 0; padding: 8px 14px; font-size: 13px; color: var(--g-turq-80); background: var(--g-cream); border-bottom: 1px solid var(--g-line); }

@media (max-width: 1100px) { .g-nav__links > .dropdown:last-child { margin-top: 12px; } }

/* ===== Area anggota v2 ===== */
.g-mem { display: grid; gap: 16px; max-width: 1040px; }
.g-mem__profile { display: flex; align-items: center; gap: 18px; background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r); padding: 18px 22px; box-shadow: var(--g-shadow); }
.g-mem__avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--g-green-20); color: var(--g-green); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--g-green-20); }
.g-mem__avatar img { width: 100%; height: 100%; object-fit: cover; }
.g-mem__avatar .g-ic { width: 34px; height: 34px; }
.g-mem__who { flex: 1; min-width: 0; }
.g-mem__who h2 { font-size: 20px; margin: 0 0 2px; overflow-wrap: anywhere; }
.g-mem__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 14px; color: var(--g-turq-80); }
.g-mem__meta b { color: var(--g-turq); font-variant-numeric: tabular-nums; }
.g-mem__state { display: inline-flex; align-items: center; gap: 7px; margin: 8px 0 0; padding: 3px 12px 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--g-green-20); color: var(--g-green); }
.g-mem__state i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.g-mem__state--soon { background: #FFF3DD; color: #A3600B; }
.g-mem__state--expired, .g-mem__state--pending { background: var(--g-red-l); color: var(--g-red); }
.g-mem__acts { display: flex; flex-direction: column; gap: 8px; flex: none; }
.g-mem__acts .g-btn { justify-content: flex-start; }

.g-mem__alert { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.g-mem__alert > .g-ic { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.g-mem__alert--good { background: var(--g-green-20); color: var(--g-turq); }
.g-mem__alert--good > .g-ic { color: var(--g-green); }
.g-mem__alert--warn { background: #FFF3DD; color: #6E4308; }
.g-mem__alert--warn > .g-ic { color: var(--g-orange); }
.g-mem__alert--bad { background: var(--g-red-l); color: var(--g-red); }

.g-mem__tabs { display: flex; gap: 4px; padding: 5px; background: #fff; border: 1px solid var(--g-line); border-radius: 16px; overflow-x: auto; scrollbar-width: none; position: sticky; top: 76px; z-index: 5; box-shadow: var(--g-shadow); }
.g-mem__tabs::-webkit-scrollbar { display: none; }
.g-mem__tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 12px; font-family: var(--g-head); font-weight: 500; font-size: 14.5px; color: var(--g-turq-80) !important; text-decoration: none !important; white-space: nowrap; transition: background .15s, color .15s; }
.g-mem__tab .g-ic { width: 18px; height: 18px; }
.g-mem__tab em { font-style: normal; font-size: 12px; font-weight: 600; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--g-page); color: var(--g-turq); text-align: center; font-variant-numeric: tabular-nums; }
.g-mem__tab:hover { background: var(--g-page); color: var(--g-turq) !important; }
.g-mem__tab.is-on { background: var(--g-turq); color: #fff !important; }
.g-mem__tab.is-on em { background: var(--g-lime); color: var(--g-turq); }

.g-mem__body { background: #fff; border: 1px solid var(--g-line); border-radius: var(--g-r); padding: 24px; box-shadow: var(--g-shadow); min-width: 0; }
.g-mem__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.g-mem__head h2 { font-size: 20px; margin: 0 0 4px; }
.g-mem__head p { margin: 0; color: var(--g-turq-80); font-size: 14.5px; max-width: 60ch; }
.g-mem__dl { display: inline-flex; align-items: center; gap: 6px; font-family: var(--g-head); font-weight: 500; font-size: 13px; padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--g-line); color: var(--g-turq) !important; text-decoration: none !important; }
.g-mem__dl:hover { background: var(--g-page); }
.g-mem__dl .g-ic { width: 16px; height: 16px; }
.g-mem__sub { font-size: 17px; margin: 28px 0 10px; }

.g-mem__list { display: grid; gap: 10px; }
.g-mem__item { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 16px 12px 12px; border: 1px solid var(--g-line); border-left: 5px solid var(--g-green-40); border-radius: 14px; }
.g-mem__item--warn { border-left-color: var(--g-orange); }
.g-mem__item--bad { border-left-color: var(--g-red); background: #FFFAFA; }
.g-mem__item--plain { border-left-width: 1px; }
.g-mem__cover { display: block; width: 62px; }
.g-mem__cover .g-cover__ph { font-size: 9px; padding: 6px; }
.g-mem__info { min-width: 0; display: grid; gap: 4px; }
.g-mem__title { font-family: var(--g-head); font-weight: 600; font-size: 15.5px; line-height: 1.3; color: var(--g-turq) !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.g-mem__title:hover { color: var(--g-green) !important; }
.g-mem__by, .g-mem__when { font-size: 13px; color: var(--g-turq-80); }
.g-mem__dates { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 2px 0 0; }
.g-mem__dates div { display: flex; gap: 6px; align-items: baseline; }
.g-mem__dates dt { font-size: 12px; font-weight: 600; color: var(--g-turq-60); text-transform: uppercase; letter-spacing: .05em; }
.g-mem__dates dd { margin: 0; font-size: 14px; }
.g-mem__dates code { font-size: 12.5px; color: var(--g-turq-80); background: var(--g-page); padding: 1px 6px; border-radius: 6px; }
.g-mem__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.g-mem__chip { font-family: var(--g-head); font-weight: 500; font-size: 13px; padding: 4px 12px; border-radius: 999px; white-space: nowrap; background: var(--g-green-20); color: var(--g-green); }
.g-mem__chip--warn { background: #FFF3DD; color: #A3600B; }
.g-mem__chip--bad { background: var(--g-red); color: #fff; }
.g-mem__link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--g-green) !important; text-decoration: none !important; white-space: nowrap; background: none; border: 0; padding: 0; cursor: pointer; }
.g-mem__link:hover { text-decoration: underline !important; }
.g-mem__link--quiet { color: var(--g-turq-80) !important; font-weight: 600; }
.g-mem__link.is-armed, .g-mem__btn.is-armed { color: var(--g-red) !important; }
.g-mem__note { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; font-size: 13.5px; color: var(--g-turq-80); }
.g-mem__note .g-ic { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--g-green); }

.g-mem__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.g-mem__card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.g-mem__card .g-mem__cover { width: 100%; margin-bottom: 4px; }
.g-mem__card .g-mem__cover .g-cover__ph { font-size: 13px; padding: 12px; }
.g-mem__cardacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.g-mem__btn { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--g-green-40); background: var(--g-green-20); color: var(--g-turq) !important; font-family: var(--g-head); font-weight: 500; font-size: 13px; cursor: pointer; text-decoration: none !important; }
.g-mem__btn .g-ic { width: 15px; height: 15px; }
.g-mem__btn:hover { background: var(--g-lime); border-color: var(--g-lime); }
.g-mem__btn.is-done { background: #fff; border-color: var(--g-line); color: var(--g-green) !important; }
.g-mem__btn--quiet { background: none; border-color: transparent; color: var(--g-turq-80) !important; }
.g-mem__btn--quiet:hover { background: var(--g-red-l); border-color: transparent; color: var(--g-red) !important; }

.g-mem__steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 18px; counter-reset: none; flex-wrap: wrap; }
.g-mem__steps li { display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--g-page); color: var(--g-turq-80); font-size: 13.5px; font-weight: 600; }
.g-mem__steps b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--g-turq-60); font-family: var(--g-head); font-size: 13px; box-shadow: inset 0 0 0 1px var(--g-line); }
.g-mem__steps .is-done b { background: var(--g-green); color: #fff; box-shadow: none; }
.g-mem__steps .is-now { background: var(--g-turq); color: #fff; }
.g-mem__steps .is-now b { background: var(--g-lime); color: var(--g-turq); box-shadow: none; }
.g-mem__send { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--g-line); }
.g-mem__send form { margin: 0; }

.g-mem__rows { list-style: none; padding: 0; margin: 0; }
.g-mem__rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; flex-wrap: wrap; padding: 11px 2px; border-bottom: 1px solid var(--g-line); }
.g-mem__rows li:last-child { border-bottom: 0; }
.g-mem__rows a { font-weight: 700; color: var(--g-turq) !important; min-width: 0; flex: 1 1 260px; }
.g-mem__rows span { font-size: 13.5px; color: var(--g-turq-80); white-space: nowrap; font-variant-numeric: tabular-nums; }

.g-mem__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.g-mem__facts div { padding: 11px 0; border-bottom: 1px solid var(--g-line); min-width: 0; }
.g-mem__facts dt { font-size: 12px; font-weight: 600; color: var(--g-turq-60); text-transform: uppercase; letter-spacing: .05em; }
.g-mem__facts dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.g-mem__pass { display: grid; gap: 6px; max-width: 420px; }
.g-mem__pass label { font-family: var(--g-head); font-weight: 500; font-size: 14px; margin: 8px 0 0; }
.g-mem__pass .g-btn { justify-self: start; margin-top: 12px; }
.g-mem__passerr { margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--g-red-l); color: var(--g-red); font-size: 14px; font-weight: 600; }

.g-mem__empty { text-align: center; padding: 32px 16px 20px; }
.g-mem__empty > span { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--g-green-20); color: var(--g-green); margin-bottom: 12px; }
.g-mem__empty > span .g-ic { width: 30px; height: 30px; }
.g-mem__empty h3 { font-size: 18px; margin: 0 0 6px; }
.g-mem__empty p { color: var(--g-turq-80); margin: 0 auto 16px; max-width: 46ch; }

.g-mem__help { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--g-r); background: var(--g-green-20); }
.g-mem__help p { margin: 0; flex: 1 1 240px; font-size: 14.5px; }
.g-mem__helpic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--g-green); }

/* halaman masuk */
.g-pwwrap { position: relative; }
.g-pwwrap input { padding-right: 104px !important; }
.g-pwtoggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--g-page); color: var(--g-turq); font-family: var(--g-head); font-size: 12.5px; font-weight: 500; padding: 6px 12px; border-radius: 8px; cursor: pointer; }

@media (max-width: 1100px) { .g-mem__tabs { top: 64px; } }
@media (max-width: 767px) {
  .g-mem__profile { flex-wrap: wrap; padding: 16px; gap: 14px; }
  .g-mem__avatar { width: 60px; height: 60px; }
  .g-mem__acts { flex-direction: row; width: 100%; }
  .g-mem__acts .g-btn { flex: 1; justify-content: center; }
  .g-mem__tabs { margin: 0 -20px; border-radius: 0; border-left: 0; border-right: 0; padding: 6px 16px; }
  .g-mem__tab { flex: none; padding: 9px 12px; }
  .g-mem__body { padding: 18px 16px; }
  .g-mem__item { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
  .g-mem__cover { width: 52px; }
  .g-mem__side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .g-mem__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .g-mem__facts { grid-template-columns: 1fr; }
  .g-mem__send .g-btn { width: 100%; }
}
.g-mem { grid-template-columns: minmax(0, 1fr); }
.g-mem__title, .g-mem__rows a { text-decoration: none !important; }
@media (max-width: 767px) {
  .g-mem__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; overflow: visible; padding: 6px 10px; }
  .g-mem__tab { position: relative; flex-direction: column; gap: 3px; padding: 8px 2px 7px; font-size: 11.5px; line-height: 1.2; white-space: normal; text-align: center; }
  .g-mem__tab .g-ic { width: 20px; height: 20px; }
  .g-mem__tab em { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; padding: 0 5px; font-size: 10.5px; line-height: 16px; }
}

/* ===== Kartu anggota digital ===== */
.g-card { display: grid; justify-items: center; gap: 18px; padding: 8px 0 4px; }
.g-card__stage { --s: 1; --w: 324px; --h: 204px; width: calc(var(--w) * var(--s)); height: calc(var(--h) * var(--s)); perspective: 1800px; max-width: 100%; }
.g-card__flip { position: relative; width: 100%; height: 100%; transition: transform .7s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; cursor: pointer; }
.g-card.is-flipped .g-card__flip { transform: rotateY(180deg); }
.g-card__face { position: absolute; left: 0; top: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.g-card__face--back { transform: rotateY(180deg); }
.g-card__face .gc { transform: scale(var(--s)); transform-origin: 0 0; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 14px 34px rgba(28,61,49,.22); }
.g-card__acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.g-card .g-mem__note { justify-content: center; text-align: center; }
.g-card__print { display: none; }
.g-card__print.is-shot { display: flex; gap: 6mm; position: fixed; left: -10000px; top: 0; padding: 4mm; background: #fff; }
@media (prefers-reduced-motion: reduce) { .g-card__flip { transition: none; } }
@media print {
  body * { visibility: hidden !important; }
  .g-card__print, .g-card__print * { visibility: visible !important; }
  .g-card__print { display: flex !important; gap: 6mm; position: absolute; left: 0; top: 0; }
}

/* QA-FIX mobile WA (2026-10-26): tombol WhatsApp tidak menutupi konten di HP */
@media (max-width: 575px) {
  body { padding-bottom: 76px; }
  .g-wa { right: 12px; bottom: 12px; }
  .g-hero__stats { gap: 20px; flex-wrap: wrap; padding-right: 0; }
  .g-totop { right: 14px; bottom: 76px; }
}

/* ===== jam layanan: daftar hari → jam (gms_hours_block) ===== */
.g-side__hours, .g-footer__hours, .g-hours { display: block; margin: 0 0 14px; padding: 0; }
.g-side__hours dl, .g-footer__hours dl, .g-hours dl { margin: 6px 0 0; display: grid; gap: 0; }
.g-side__hours dl div, .g-footer__hours dl div, .g-hours dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 5px 0; }
.g-side__hours dt, .g-footer__hours dt, .g-hours dt { font-weight: 500; margin: 0; }
.g-side__hours dd, .g-footer__hours dd, .g-hours dd { margin: 0; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-side__hours-tag, .g-footer__hours-tag, .g-hours-tag { display: inline-block; font-family: var(--g-head); font-weight: 600; font-size: 11px; letter-spacing: .02em; border-radius: 6px; padding: 2px 8px; }
/* sidebar (kotak hijau tua) */
.g-side__hours { font-size: 13.5px; }
.g-side__hours-tag { color: var(--g-lime); background: rgba(255,255,255,.1); }
.g-side__hours dl div { border-bottom: 1px dashed rgba(255,255,255,.16); }
.g-side__hours dl div:last-child { border-bottom: 0; }
.g-side__hours dt { color: rgba(255,255,255,.72); }
.g-side__hours dd { color: #fff; }
/* footer */
.g-footer__hours { font-size: 14px; margin-bottom: 16px !important; }
.g-footer__hours-tag { color: var(--g-turq); background: var(--g-lime); }
.g-footer__hours dl div { border-bottom: 1px dashed rgba(255,255,255,.14); }
.g-footer__hours dl div:last-child { border-bottom: 0; }
.g-footer__hours dt { color: rgba(255,255,255,.7); }
.g-footer__hours dd { color: #fff; }
/* kartu beranda (putih) */
.g-hours { font-size: 15px; }
.g-hours-tag { color: var(--g-turq); background: var(--g-lime-h); }
.g-hours dl div { border-bottom: 1px dashed var(--g-line); }
.g-hours dl div:last-child { border-bottom: 0; }
.g-hours dt { color: var(--g-turq-80, #5d7a73); }
.g-hours dd { color: var(--g-turq); }