/* Bibliosage Book Samples: shelf + reader */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,500&family=Inter:wght@400;500;600&display=swap');

.bsx{--teal:#164b52;--teal-d:#0f3a40;--ink:#14262b;--text:#2d3a3e;--muted:#5d6b6e;--paper:#f8f7f3;--band:#e6ebe7;--line:#cfd6d3;
  background:var(--paper);color:var(--text);font-family:'Newsreader',Georgia,serif;-webkit-font-smoothing:antialiased;padding:44px 0 56px}
.bsx *{box-sizing:border-box}
.bsx-wrap{max-width:1100px;margin:0 auto;padding:0 24px}
.bsx-eyebrow{font-family:'Inter',Arial,sans-serif;font-size:13px;letter-spacing:.18em;text-transform:uppercase;color:var(--teal);margin:0 0 10px;font-weight:500}
.bsx-h1,.bsx .bsx-h1{font-weight:500;font-size:clamp(34px,5vw,52px);line-height:1.1;color:var(--ink);margin:0 0 10px;padding:0}
.bsx-lead{font-size:20px;line-height:1.6;margin:0 0 36px;max-width:36em}

/* shelf */
.bsx-shelf{display:grid;grid-template-columns:repeat(var(--bsx-cols,5),1fr);gap:34px 22px}

.bsx-book{display:flex;flex-direction:column}
.bsx-cover{display:block;position:relative;width:100%;aspect-ratio:7/10;background:transparent;border:0;padding:0;cursor:pointer;transition:transform .2s}
.bsx-cover:hover,.bsx-cover:focus-visible{transform:translateY(-4px);outline:none}
.bsx-cover img{display:block;position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:auto;height:100%;max-width:100%;object-fit:cover;border-radius:3px;box-shadow:0 12px 26px rgba(15,58,64,.22);transition:box-shadow .2s}
.bsx-cover:hover img,.bsx-cover:focus-visible img{box-shadow:0 18px 34px rgba(15,58,64,.3)}
.bsx-t{font-weight:500;font-size:18px;line-height:1.25;color:var(--ink);margin:16px 0 4px;min-height:3.75em;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.bsx-a{font-size:16px;color:var(--muted);margin:0 0 14px}
.bsx-acts{display:flex;flex-direction:column;gap:8px;margin-top:auto}
.bsx-btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:6px;font-family:'Inter',Arial,sans-serif;
  font-size:15px;font-weight:500;text-decoration:none!important;cursor:pointer;border:1.5px solid var(--teal);transition:background .2s,color .2s;flex:1}
.bsx-solid{background:var(--teal);color:#fff!important}.bsx-solid:hover{background:var(--teal-d)}
.bsx-ghost{background:transparent;color:var(--teal)!important}.bsx-ghost:hover{background:var(--teal);color:#fff!important}

/* reader */
.bsx-modal{--teal:#164b52;--teal-d:#0f3a40;--ink:#14262b;--text:#2d3a3e;--paper:#f8f7f3;position:fixed;top:0;left:0;right:0;bottom:0;width:100vw;height:100vh;height:100dvh;margin:0;z-index:2147483000;background:rgba(10,24,27,.98);display:none;flex-direction:column}
.bsx-modal.open{display:flex}
.bsx-bar{display:flex;align-items:center;gap:10px;padding:10px 16px;color:#fff;font-family:'Inter',Arial,sans-serif;font-size:14px}
.bsx-bar .bsx-name{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}
.bsx-ib{background:rgba(255,255,255,.12);color:#fff;border:0;border-radius:6px;padding:8px 12px;font:500 14px 'Inter',Arial,sans-serif;cursor:pointer;text-decoration:none!important}
.bsx-ib:hover{background:rgba(255,255,255,.24)}
.bsx-ib.buy{background:#f5c04a;color:#14262b!important}
.bsx-stage{flex:1;display:flex;align-items:center;justify-content:center;gap:4px;padding:6px 56px 14px;position:relative;min-height:0;touch-action:pan-y}
.bsx-page{height:100%;max-height:100%;display:flex;align-items:center;justify-content:center;min-width:0}
.bsx-page canvas,.bsx-page img{max-height:100%;max-width:100%;height:auto;width:auto;background:#fff;box-shadow:0 10px 30px rgba(0,0,0,.45);display:block}
.bsx-nav{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:64px;border:0;border-radius:8px;background:rgba(255,255,255,.12);color:#fff;font-size:26px;cursor:pointer}
.bsx-nav:hover{background:rgba(255,255,255,.25)}.bsx-prev{left:8px}.bsx-next{right:8px}
.bsx-nav[disabled]{opacity:.25;cursor:default}
.bsx-foot{color:#cfd8d6;text-align:center;font:13px 'Inter',Arial,sans-serif;padding:0 12px 12px}
.bsx-msg{color:#fff;font:16px 'Inter',Arial,sans-serif;text-align:center}
.bsx-end{background:var(--paper);color:var(--ink);max-width:460px;width:100%;padding:40px 30px;border-radius:8px;text-align:center;font-family:'Newsreader',Georgia,serif}
.bsx-end h2{font-weight:500;font-size:32px;line-height:1.2;margin:0 0 8px;color:var(--ink)}
.bsx-end p{font-size:18px;margin:0 0 22px;color:var(--text)}
.bsx-end .bsx-btn{flex:none;padding:13px 26px;font-size:16px}
@media (max-width:760px){.bsx-stage{padding:4px 6px 10px}.bsx-nav{display:none}
  .bsx-t{font-size:16px}.bsx-acts{flex-direction:column}.bsx-bar .bsx-ib.fs{display:none}}
.bsx-empty{font-family:'Inter',Arial,sans-serif;font-size:15px;color:var(--muted)}
.bsx .bsx-h1,.bsx .bsx-t,.bsx .bsx-a,.bsx .bsx-lead,.bsx-end h2,.bsx-end p{font-family:'Newsreader',Georgia,serif}
.bsx .bsx-eyebrow,.bsx .bsx-btn,.bsx-modal .bsx-eyebrow{font-family:'Inter',Arial,sans-serif}
.bsx .bsx-cover[disabled]{cursor:default}

/* shelf adapts to the width of the area it is placed in */
.bsx-wrap{container-type:inline-size}
@container (max-width:900px){.bsx .bsx-shelf{grid-template-columns:repeat(min(var(--bsx-cols,5),3),1fr)}}
@container (max-width:520px){.bsx .bsx-shelf{grid-template-columns:repeat(2,1fr);gap:26px 16px}}
.bsx p.bsx-t{line-height:1.25;margin:16px 0 4px;padding:0}
.bsx p.bsx-a{line-height:1.4;margin:0 0 14px;padding:0}
.bsx p.bsx-lead{padding:0}
