/* Gulshan e Sultania Books: library, book page and reader. Uses the theme variables with safe fallbacks. */
.gesbq-head,.gesbq-wrap,.gesbq-bar{--q-p:var(--p,#00843D);--q-on:var(--on-p,#fff);--q-s:var(--surface,#fff);--q-s2:var(--surface-2,#EDF1EF);--q-b:var(--border,#DCE3E0);--q-t:var(--text,#1E2427);--q-m:var(--muted,#4A5559)}
.gesbq-wrap{width:min(100% - 32px,1100px);margin-inline:auto;color:var(--q-t)}
.gesbq-body{padding:clamp(24px,4vw,48px) 0 140px}
.gesbq-head{background:var(--hero-bg,linear-gradient(160deg,#04321C,#0B5A32));padding:clamp(32px,5vw,64px) 0;color:#fff}
.gesbq-head h1{margin:0;color:#fff;font-size:clamp(1.8rem,4vw,3rem);display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 18px}
.gesbq-head__desc{margin:10px 0 0;color:#D4DFD9}
.gesbq-crumb{margin:0 0 8px}.gesbq-crumb a{color:#CFE9DA}
.gesbq-notice{padding:28px;border:1px solid var(--q-b);border-radius:18px;background:var(--q-s);text-align:center}
.gesbq-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 20px;border:0;border-radius:999px;background:var(--q-p);color:var(--q-on);font:inherit;font-weight:600;text-decoration:none;cursor:pointer}
.gesbq-input{min-height:44px;padding:.5em .9em;border:1px solid var(--q-b);border-radius:10px;background:var(--q-s);color:var(--q-t);font:inherit}
.gesbq-link{color:var(--q-p);font-weight:600;text-decoration:none}
.gesbq-pn{display:flex;justify-content:space-between;gap:12px;margin:28px 0}
.gesbq-pn a{color:var(--q-p);font-weight:600;text-decoration:none}
.gesbq-body{padding-bottom:48px}
/* Gulshan e Sultania Books: books library, book page and PDF reader. Builds on quran.css. */
.gesb-filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:24px}
.gesb-filters input[type=search]{flex:1 1 220px}
.gesb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:24px}
.gesb-card{display:flex;flex-direction:column;gap:6px}
.gesb-card h3{margin:8px 0 0;font-size:1.05rem}
.gesb-card h3 a{color:var(--q-t);text-decoration:none}
.gesb-card h3 a:hover{color:var(--q-p)}
.gesb-card p{margin:0;color:var(--q-m);font-size:.9rem}
.gesb-cover{display:block;aspect-ratio:3/4;border-radius:6px 14px 14px 6px;overflow:hidden;background:linear-gradient(150deg,color-mix(in srgb,var(--q-p) 85%,#000),color-mix(in srgb,var(--q-p) 55%,#000));box-shadow:0 10px 26px rgba(0,0,0,.18);transition:transform .3s}
.gesb-cover:hover{transform:translateY(-5px)}
.gesb-cover img{display:block;width:100%;height:100%;object-fit:cover}
.gesb-ph{display:flex;align-items:flex-end;width:100%;height:100%;padding:20px 18px;color:#fff;font-size:1.15rem;line-height:1.3}
.gesb-cover--lg{max-width:320px}
.gesb-chip{display:inline-block;padding:.15em .7em;border-radius:999px;font-size:.78rem;font-weight:600;background:color-mix(in srgb,var(--q-p) 14%,var(--q-s));color:var(--q-p);text-decoration:none}
.gesb-single{display:grid;grid-template-columns:minmax(0,320px) 1fr;gap:clamp(24px,5vw,56px);align-items:start;margin-bottom:40px}
.gesb-facts{display:grid;gap:10px;margin:0 0 20px}
.gesb-facts div{display:grid;grid-template-columns:120px 1fr;gap:12px}
.gesb-facts dt{color:var(--q-m);font-weight:600}
.gesb-facts dd{margin:0}
.gesb-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px}
.gesb-btn2{background:transparent;color:var(--q-p);border:2px solid var(--q-p)}
.gesb-desc{line-height:1.8}
@media (max-width:760px){.gesb-single{grid-template-columns:1fr}.gesb-cover--lg{max-width:240px}}

/* Reader */
.gesb-readerwrap{padding-bottom:40px}
.gesb-reader{display:flex;flex-direction:column;border:1px solid var(--q-b);border-radius:16px;overflow:hidden;background:var(--q-s)}
.gesb-reader:fullscreen{border-radius:0;height:100vh}
.gesb-reader:-webkit-full-screen{border-radius:0;height:100vh}
.gesb-bar{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;padding:8px 12px;border-bottom:1px solid var(--q-b);background:var(--q-s2)}
.gesb-title{max-width:34ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gesb-sp{flex:1}
.gesb-iconb{display:inline-grid;place-items:center;min-width:38px;height:38px;padding:0 6px;border:1px solid var(--q-b);border-radius:10px;background:var(--q-s);color:var(--q-t);font:inherit;font-size:1.1rem;text-decoration:none;cursor:pointer}
.gesb-iconb:hover,.gesb-iconb[aria-pressed="true"]{border-color:var(--q-p);color:var(--q-p)}
.gesb-pg{display:inline-flex;align-items:center;gap:6px;font-variant-numeric:tabular-nums}
.gesb-pg input{width:64px;min-height:38px;padding:0 6px;text-align:center;border:1px solid var(--q-b);border-radius:8px;background:var(--q-s);color:var(--q-t);font:inherit}
.gesb-zoom{min-width:48px;text-align:center;font-variant-numeric:tabular-nums}
.gesb-pages{position:relative;height:min(82vh,1100px);overflow:auto;padding:12px;background:#E4E8E6;outline:none}
.gesb-reader:fullscreen .gesb-pages{height:calc(100vh - 56px)}
.gesb-reader:-webkit-full-screen .gesb-pages{height:calc(100vh - 56px)}
.gesb-page{margin:0 auto 12px;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.18)}
.gesb-page canvas{display:block}
.gesb-pages.is-dark{background:#14171A}
.gesb-pages.is-dark canvas{filter:invert(1) hue-rotate(180deg)}
.gesb-pages.is-dark .gesb-page{background:#111}
.gesb-msg{margin:0;padding:12px 16px;color:var(--q-m)}
