/* Book-style word table: one atomic Arabic/Bengali cell, in RTL source order. */
#verses.book-pages{--book-paper:#fffdf6;--book-ink:#3c463b;--book-rule:#b9beac;--book-soft:#f2f2e7;background:var(--book-paper);border:1px solid var(--book-rule);border-radius:2px;padding:0 16px 16px;box-shadow:0 5px 22px #3d442a0b}
.book-page-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:19px 8px 13px;border-bottom:3px double var(--book-rule);margin-bottom:0;color:#526348}.book-page-heading strong{font-size:16px;font-weight:600}.book-page-heading small{font-size:10px;color:#8b927d}.book-page-heading .book-surah-name{font-size:12px;color:#697b57;white-space:nowrap}
.book-pages .verse-card{border:0;border-radius:0;background:var(--book-paper);margin:0;overflow:visible;box-shadow:none;scroll-margin-top:25px}.book-pages .verse-header{padding:15px 3px 10px}.book-pages .verse-id{font-size:11px;color:#7a856c}.book-pages .verse-medallion{border-radius:50%;background:transparent;border-color:#b6c3a7;color:#667b50;width:27px;height:27px}.book-pages .verse-actions button{background:transparent;color:#788668}
.book-pages .word-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(max(148px,calc(var(--arabic-size)*4.2),20%),1fr));direction:rtl;gap:0;align-items:stretch;position:relative;padding:0 0 31px;border-top:1px solid var(--book-rule);border-right:1px solid var(--book-rule);border-left:1px solid var(--book-rule);background:var(--book-paper)}
.book-pages .word{display:grid;grid-template-rows:96px minmax(47px,1fr) 22px;grid-template-columns:minmax(0,1fr);justify-content:stretch;align-items:stretch;justify-items:stretch;min-width:0;max-width:none;width:100%;padding:0;border:0;border-left:1px solid var(--book-rule);border-bottom:1px solid var(--book-rule);border-radius:0;background:transparent;color:var(--book-ink);box-shadow:none;overflow:visible}
.book-pages .word .arabic{display:block;align-content:center;text-align:center;unicode-bidi:isolate;padding:7px 5px 12px;line-height:2.2;font-size:var(--arabic-size);min-width:0;white-space:nowrap;position:relative}
.book-pages .word .meaning{display:flex;align-items:center;justify-content:center;max-width:none;min-height:0;padding:8px 9px 7px;border-top:1px solid var(--book-rule);font-size:14px;line-height:1.8;direction:ltr;color:var(--book-ink);text-wrap:pretty;overflow-wrap:anywhere}
.book-pages .word .pos-tags{padding:2px 6px;min-height:22px;border-top:1px solid #dce0d0;align-content:center;background:#f1f3e8;opacity:1;color:#7c8c68;font-size:8px;line-height:1.6;letter-spacing:.5px}
.book-pages .word:hover,.book-pages .word.is-current{background:#f0f5e5;box-shadow:inset 0 0 0 2px #9cad80;border-color:var(--book-rule)}.book-pages .word:focus-visible{outline:3px solid #c5a359;outline-offset:-4px;z-index:1}.book-pages .word-row>.end-marker{position:absolute;bottom:0;left:13px;padding:0;font-size:20px;line-height:1.5;height:28px;align-self:auto;color:#73885c}
.book-pages .translation{border:1px solid var(--book-rule);margin:0 0 9px;padding:15px 18px 17px;background:#fafbf3;position:relative}.book-pages .translation-label{font-size:10px;letter-spacing:0;color:#788a5e;padding-bottom:7px;margin-bottom:9px;border-bottom:1px solid #d9e0c9}.book-pages .translation p{font-size:14px;line-height:2;color:#48543e;margin:0}.book-pages .translation details{padding-top:7px}.book-pages .verse-card.playing .verse-header{background:#edf2e2}.book-pages .verse-card.playing .word-row{outline:2px solid #91ab73;outline-offset:-2px}
.book-reading-hint{font-size:11px;color:var(--muted);margin:13px 2px 0;text-align:center}
body.dark #verses.book-pages{--book-paper:#233329;--book-ink:#dce4d3;--book-rule:#58694e;--book-soft:#2d402e}body.dark .book-page-heading{color:#c4d6b1}body.dark .book-page-heading .book-surah-name{color:#b6c7a3}body.dark .book-pages .word .pos-tags{background:#2f4330;color:#b1c598;border-top-color:#455a3d}body.dark .book-pages .word:hover,body.dark .book-pages .word.is-current{background:#354b31;box-shadow:inset 0 0 0 2px #8fa674}body.dark .book-pages .translation{background:#293e2c}body.dark .book-pages .translation-label{color:#b0c397;border-bottom-color:#4a603c}body.dark .book-pages .translation p{color:#dae4d1}
@media(max-width:850px){#verses.book-pages{padding:0 11px 12px}.book-pages .word{grid-template-rows:91px minmax(47px,1fr) 22px}.book-page-heading{padding:16px 3px 11px}.book-page-heading strong{font-size:15px}}
@media(max-width:600px){#verses.book-pages{padding:0 7px 9px}.book-page-heading{padding:14px 3px 12px;gap:8px;align-items:flex-start}.book-page-heading strong{font-size:13px}.book-page-heading small{display:block;font-size:8px;margin-top:3px}.book-page-heading .book-surah-name{font-size:10px;padding-top:3px}.book-pages .verse-header{padding:12px 2px 9px}.book-pages .verse-id{font-size:9px;gap:7px}.book-pages .verse-medallion{width:25px;height:25px}.book-pages .word-row{grid-template-columns:repeat(auto-fit,minmax(max(120px,calc(var(--arabic-size)*3.3),20%),1fr));padding-bottom:28px}.book-pages .word{grid-template-rows:88px minmax(48px,1fr) 21px}.book-pages .word .arabic{font-size:calc(var(--arabic-size) - 2px);padding:7px 4px 12px}.book-pages .word .meaning{font-size:13px;padding:8px 8px;line-height:1.85}.book-pages .word .pos-tags{font-size:8px;min-height:21px}.book-pages .word-row>.end-marker{font-size:18px;height:25px;left:10px}.book-pages .translation{padding:12px 13px 14px;margin-bottom:7px}.book-pages .translation-label{font-size:9px}.book-pages .translation p{font-size:14px;line-height:2}.book-reading-hint{font-size:9px}}
@media(max-width:340px){.book-pages .word-row{grid-template-columns:repeat(auto-fit,minmax(max(120px,calc(var(--arabic-size)*3.3)),1fr))}.book-pages .word .arabic{font-size:calc(var(--arabic-size) - 5px)}}
