/* Hobah Release 96 — Books navigation rebuilt from scratch. Books-only layer. */
html,body{max-width:100%;overflow-x:hidden;}
.drawer.booksHubDrawer{
  position:fixed!important;
  inset:0 auto 0 0!important;
  display:flex!important;
  flex-direction:column!important;
  width:min(92vw,430px)!important;
  max-width:430px!important;
  min-width:0!important;
  height:100vh!important;
  height:100dvh!important;
  max-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  background:#f6f1e6!important;
  border-radius:0!important;
  overscroll-behavior:none;
  -webkit-overflow-scrolling:auto;
  box-shadow:18px 0 48px rgba(35,30,23,.16);
  transform:translate3d(-102%,0,0)!important;
  transition:transform .24s ease!important;
}
.drawer.booksHubDrawer.open{transform:translate3d(0,0,0)!important;}
.booksHubDrawer,.booksHubDrawer *{box-sizing:border-box;min-width:0;}

.books96Top{
  flex:0 0 auto;
  width:100%;
  padding:max(18px,env(safe-area-inset-top)) 18px 12px;
  background:#f6f1e6;
  border-bottom:1px solid rgba(84,63,40,.10);
  z-index:2;
}
.books96Header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px;}
.books96Header .eyebrow{display:block;color:#9a6f35;font:750 .69rem/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.22em;}
.books96Header h2{margin:.16rem 0 0;color:#123f36;font:400 2.25rem/1 Georgia,"Times New Roman",serif;letter-spacing:-.035em;}
.books96Close{flex:0 0 44px;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:#0d574c;font:400 2rem/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
.books96Close:active{background:rgba(18,63,54,.08);}

.books96Shelves{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding:5px;border-radius:18px;background:rgba(92,69,43,.09);}
.books96Shelves button{appearance:none;width:100%;min-height:58px;padding:10px 11px;border:0;border-radius:14px;background:transparent;color:#65594c;text-align:left;overflow:hidden;}
.books96Shelves button b,.books96Shelves button span{display:block;overflow:hidden;text-overflow:ellipsis;}
.books96Shelves button b{font:750 .88rem/1.15 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;white-space:normal;}
.books96Shelves button span{margin-top:4px;font:550 .66rem/1.15 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;white-space:nowrap;opacity:.72;}
.books96Shelves button.active{background:#fffdf8;color:#4d3521;box-shadow:0 4px 16px rgba(62,44,25,.10),inset 0 0 0 1px rgba(151,113,64,.14);}
.books96Shelves button:active{transform:scale(.988);}

.books96Search{display:flex;align-items:center;gap:9px;width:100%;height:50px;margin-top:11px;padding:0 10px 0 13px;border:1px solid rgba(99,75,46,.16);border-radius:15px;background:rgba(255,255,255,.78);box-shadow:0 2px 10px rgba(58,44,28,.04);overflow:hidden;}
.books96Search>span{flex:0 0 auto;color:#9a7440;font-size:1.05rem;}
.books96Search input{flex:1 1 auto;width:0;min-width:0;height:100%;border:0;outline:0;background:transparent;color:#352c23;font:500 16px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
.books96Search input::placeholder{color:#91887d;}
.books96Search button{flex:0 0 34px;width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:#8b7b67;font-size:1.2rem;}

/* This is the only scroll container inside Books. */
.books96Scroll{
  flex:1 1 auto!important;
  min-height:0!important;
  width:100%;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  -webkit-overflow-scrolling:touch!important;
  overscroll-behavior-y:contain;
  overscroll-behavior-x:none;
  touch-action:pan-y;
  padding:14px 14px max(34px,env(safe-area-inset-bottom));
  scroll-behavior:auto;
}
.books96Scroll>*{width:100%;max-width:100%;}

.books96Filters{margin-bottom:12px;}
.books96FilterGrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.books96FilterGrid button{appearance:none;min-height:42px;padding:9px 10px;border:1px solid rgba(100,76,47,.14);border-radius:13px;background:rgba(255,255,255,.56);color:#625446;font:700 .73rem/1.15 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:center;}
.books96FilterGrid button.active{background:#67492e;color:#fffaf2;border-color:#67492e;box-shadow:0 3px 10px rgba(68,48,29,.11);}
.books96Collection{display:block;width:100%;}
.books96Collection>span{display:block;margin:0 0 6px 2px;color:#8a6b45;font:750 .64rem/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-transform:uppercase;letter-spacing:.08em;}
.books96Collection select{display:block;width:100%;height:46px;padding:0 38px 0 12px;border:1px solid rgba(100,76,47,.15);border-radius:14px;background:#fffdf8;color:#47392c;font:650 15px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow:hidden;text-overflow:ellipsis;}

.books96Status{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin:0 2px 12px;color:#6d6254;}
.books96Status b{font:760 .72rem/1.25 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#554536;}
.books96Status span{max-width:220px;font:500 .66rem/1.3 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-align:right;opacity:.78;}
.books96Content{padding:0;}

.scriptureShelf{display:grid;gap:9px;width:100%;}
.scriptureBookCard{display:grid;grid-template-columns:44px minmax(0,1fr) 18px;align-items:center;gap:11px;width:100%;min-height:74px;padding:11px 12px;text-decoration:none;border:1px solid rgba(97,72,43,.10);border-radius:17px;background:rgba(255,255,255,.72);color:#372b20;box-shadow:0 2px 9px rgba(56,42,29,.04);overflow:hidden;}
.scriptureBookCard:active{transform:scale(.994);}
.scriptureBookCard .bookNo{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#efe5d3;color:#8b6b3d;font:760 .72rem/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
.scriptureBookCard .bookMeta{overflow:hidden;}
.scriptureBookCard .bookMeta b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:700 1.02rem/1.2 Georgia,"Times New Roman",serif;}
.scriptureBookCard .bookMeta small{display:block;margin-top:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#81766a;font:500 .7rem/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
.scriptureBookCard i{font-style:normal;color:#a27d49;font-size:1.25rem;}

.ancientShelf{display:grid;gap:10px;width:100%;}
.ancientTextCard{appearance:none;display:block;width:100%;max-width:100%;padding:14px;border:1px solid rgba(98,73,43,.12);border-radius:17px;background:rgba(255,255,255,.72);color:#352a20;text-align:left;box-shadow:0 2px 10px rgba(56,42,29,.045);overflow:hidden;}
.ancientTextCard:active{transform:scale(.994);}
.ancientCardTop{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px;}
.ancientCardTop em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#966f3d;font:760 .62rem/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-style:normal;text-transform:uppercase;letter-spacing:.055em;}
.ancientCardTop i{flex:0 0 auto;color:#a17b49;font-style:normal;font-size:1.1rem;}
.ancientTextCard>b{display:block;font:700 1rem/1.25 Georgia,"Times New Roman",serif;overflow-wrap:anywhere;}
.ancientTextCard p{margin:8px 0 0;color:#6d6257;font:400 .76rem/1.42 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}

.booksLoading,.booksEmpty{min-height:210px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:26px;text-align:center;color:#6d5d4b;}
.booksLoading b,.booksEmpty b{color:#443428;font:700 1rem/1.2 Georgia,"Times New Roman",serif;}
.booksLoading span,.booksEmpty span{max-width:270px;font:500 .76rem/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
.booksEmpty button{margin-top:7px;padding:9px 15px;border:0;border-radius:999px;background:#67492e;color:#fff;font-weight:700;}

/* Ancient readings use Hobah's normal reader surface and typography. */
.ancientPageReader{width:100%;max-width:100%;overflow:hidden;}
.ancientPageReader *{box-sizing:border-box;}
.ancientPageHead h1{overflow-wrap:anywhere;}
.ancientPageHead p{white-space:normal;overflow-wrap:anywhere;}
.ancientReaderTools{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto auto!important;gap:8px!important;align-items:center!important;}
.ancientReaderTools select{width:100%;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;}
.ancientReaderTools button{white-space:nowrap;}
.ancientInlineFind{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:7px;align-items:center;margin:0 0 15px;padding:8px 9px;border:1px solid rgba(105,77,45,.14);border-radius:14px;background:rgba(251,248,240,.96);}
.ancientInlineFind[hidden]{display:none!important;}
.ancientInlineFind>span{color:#98784c;}
.ancientInlineFind input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#33291f;font:500 16px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
.ancientInlineFind button{border:0;border-radius:10px;padding:8px 10px;background:#6a4d31;color:#fff;font:700 .7rem/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
.ancientInlineFind button:last-child{width:32px;height:32px;padding:0;background:#ece3d4;color:#66533e;font-size:1.1rem;}
.ancientReaderMatchStatus{min-height:0;margin:0 0 8px;color:#8a6c45;font:650 .68rem/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;}
.ancientReaderMatchStatus:empty{display:none;}
.ancientChapterText{font-size:1.03rem!important;line-height:1.68!important;overflow-wrap:anywhere;word-break:normal;}
.ancientPageReader[data-ancient-font="0"] .ancientChapterText{font-size:.94rem!important;}
.ancientPageReader[data-ancient-font="1"] .ancientChapterText{font-size:1.03rem!important;}
.ancientPageReader[data-ancient-font="2"] .ancientChapterText{font-size:1.13rem!important;}
.ancientPageReader[data-ancient-font="3"] .ancientChapterText{font-size:1.24rem!important;}
.ancientChapterText p{margin:0 0 1.08em;text-align:left;}
.ancientChapterText h3{margin:1.45em 0 .55em;color:inherit;font:700 1.04em/1.35 Georgia,"Times New Roman",serif;}
.ancientChapterText mark{background:#efd99d;color:inherit;border-radius:3px;padding:0 .08em;}
.ancientReaderPager button:disabled{opacity:.32;}

@media(min-width:700px){.ancientShelf{grid-template-columns:1fr 1fr;}}
@media(max-width:420px){
  .drawer.booksHubDrawer{width:94vw!important;max-width:390px!important;}
  .books96Top{padding-left:14px;padding-right:14px;}
  .books96Scroll{padding-left:12px;padding-right:12px;}
  .ancientReaderTools{grid-template-columns:minmax(0,1fr) auto auto!important;}
  .ancientReaderTools #ancientShelfBtn{grid-column:1/-1;width:100%;}
  .ancientInlineFind{grid-template-columns:auto minmax(0,1fr) auto;}
  .ancientInlineFind #ancientReaderFindBtn{grid-column:2;}
  .ancientInlineFind #ancientReaderClearBtn{grid-column:3;grid-row:1;}
}
@media(max-width:340px){
  .books96Shelves{grid-template-columns:1fr;}
  .books96FilterGrid{grid-template-columns:1fr;}
}