.book-cover{margin:0 0 1rem;display:flex;flex-direction:column;gap:.35rem;align-items:flex-start;max-width:100%}.book-cover img{width:120px;height:180px;object-fit:contain;background:#f5f2fa;border:1px solid #ddd5e9;border-radius:6px;max-width:100%}.cover-credit{font-size:.75rem}.book-cover+*{overflow-wrap:anywhere}

.book-detail-trigger{cursor:pointer}.book-detail-trigger:focus-visible{outline:3px solid #6030a2;outline-offset:4px}#book-detail-dialog{width:min(760px,calc(100% - 24px));max-width:760px;max-height:90vh;overflow:auto;border:1px solid #d8cce5;border-radius:18px;padding:24px;color:#241d34;background:#fff}#book-detail-dialog::backdrop{background:#241d3488}.book-detail-header{display:flex;justify-content:space-between;align-items:start;gap:16px;flex-wrap:wrap}.book-detail-header h2{font-size:1.5rem;margin:0 0 20px}.book-detail-grid{display:grid;grid-template-columns:minmax(0,170px) minmax(0,1fr);gap:24px;overflow-wrap:anywhere}.book-detail-grid>*{min-width:0}.book-detail-grid h3{font-size:1.5rem;margin-top:0}.book-detail-grid dl{display:grid;grid-template-columns:1fr;gap:4px}.book-detail-grid dt{font-weight:700}.book-detail-grid dd{margin:0 0 10px}.book-detail-description{white-space:pre-wrap}.book-detail-grid a{display:inline-block;margin:6px 10px 6px 0}.book-detail-grid .book-cover img{max-width:150px;width:auto;height:auto;max-height:230px;object-fit:contain}@media(max-width:550px){#book-detail-dialog{padding:18px}.book-detail-grid{grid-template-columns:minmax(0,1fr)}.book-detail-grid>.book-cover{justify-self:center}}

/* Shared reader/admin menu controls; icons follow the text. */
[data-reader-menu] a,.menu-profile,.menu-exit{display:inline-flex;align-items:center;gap:7px}.menu-profile{max-width:100%;min-width:0}.menu-profile>span{max-width:22ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.menu-profile svg,.menu-exit svg{flex:none}.menu-exit{background:transparent!important;color:#6030a2!important;border:1px solid #d3c3e5!important;border-radius:9px;padding:8px 12px;font:inherit;font-weight:650;min-height:44px;cursor:pointer}.menu-exit:hover{background:#eee7f7!important}.menu-feedback:empty{display:none}.menu-feedback{font-size:.8rem;flex-basis:100%;color:#9b2727}[data-reader-menu]{align-items:center;min-width:0}[data-reader-menu]>a{min-height:44px}[data-reader-menu],#admin-menu{overflow-wrap:anywhere}@media(max-width:550px){.menu-profile>span{max-width:18ch}}

/* Accessibility tools: local icon, keyboard-operable native dialog and preferences. */
#a11y-launcher{position:fixed;inset-inline-start:16px;bottom:16px;z-index:100;display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border:2px solid #fff;border-radius:30px;background:#6030a2;color:#fff;box-shadow:0 3px 15px #241d3440;font:600 14px/1.4 system-ui,sans-serif;min-height:48px;cursor:pointer}#a11y-launcher svg{flex:none}#a11y-panel{width:min(480px,calc(100% - 24px));max-width:480px;max-height:90vh;overflow:auto;border:2px solid #6030a2;border-radius:18px;padding:24px;background:#fff;color:#241d34}#a11y-panel::backdrop{background:#241d3488}.a11y-heading{display:flex;justify-content:space-between;gap:12px;align-items:start;flex-wrap:wrap}.a11y-heading h2{font-size:1.5rem;margin:0 0 12px}#a11y-panel label{display:block;margin:18px 0}#a11y-panel select{display:block;width:100%;padding:10px;margin-top:8px;font:inherit;min-height:44px}#a11y-panel .a11y-check{display:flex;align-items:center;gap:12px;min-height:44px}#a11y-panel input[type=checkbox]{width:22px;height:22px;min-width:22px;min-height:22px;accent-color:#6030a2;margin:0}.a11y-actions{display:flex;gap:12px;flex-wrap:wrap}#a11y-panel button{min-height:44px}#a11y-panel .a11y-note{font-size:.85em}#a11y-feedback:empty{display:none}body{padding-bottom:5rem}:focus-visible{outline:3px solid #0755cc!important;outline-offset:4px}
html[data-a11y-size]{font-size:calc(var(--a11y-root-size)*var(--a11y-scale))!important}html[data-a11y-size] body{font-size:calc(var(--a11y-body-size)*var(--a11y-scale))!important}html[data-a11y-size] :is(h1,h2,h3,h4,p,a,button,label,.brand){overflow-wrap:anywhere!important}html[data-a11y-size] .brand{white-space:normal!important}html[data-a11y-size] :is(main,header,footer,nav,article,section,form,dialog){min-width:0}html[data-a11y-links] a{text-decoration:underline!important;text-decoration-thickness:2px!important;text-underline-offset:4px!important}
html[data-a11y-spacing] :is(p,li,dd,label,input,textarea){line-height:1.85!important;letter-spacing:.08em!important;word-spacing:.12em!important}html[data-a11y-spacing] p{margin-bottom:1.5em!important}html[data-a11y-motion] *,html[data-a11y-motion] *::before,html[data-a11y-motion] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
html[data-a11y-contrast] :is(body,header,main,footer,section,article,form,dialog,.hero-copy,.hero-featured,.settings,.console-heading,.reader-panel,.recent){background-color:#fff!important;background-image:none!important;color:#111!important;box-shadow:none!important;border-color:#111!important}html[data-a11y-contrast] :is(h1,h2,h3,h4,p,label,span,dt,dd,small,strong){color:#111!important}html[data-a11y-contrast] a{color:#003b80!important;text-decoration:underline!important}html[data-a11y-contrast] :is(button,.button){background:#111!important;color:#fff!important;border:2px solid #111!important}html[data-a11y-contrast] :is(button,.button) *{color:inherit!important}html[data-a11y-contrast] :is(input,textarea,select){color:#111!important;background:#fff!important;border:2px solid #111!important}html[data-a11y-contrast] :is(input,textarea)::placeholder{color:#444!important;opacity:1}html[data-a11y-contrast] .brand>span{background:#fff!important;color:#111!important}html[data-a11y-contrast] :disabled{opacity:1!important;outline:1px dashed currentColor;cursor:not-allowed}
@media(max-width:550px){#a11y-launcher{inset-inline-start:12px;bottom:12px;padding:9px 12px}#a11y-panel{padding:18px}}

/* Keep close controls visible while long book details and admin editors scroll. */
#book-detail-dialog[open]{display:flex;flex-direction:column;overflow:hidden;padding:0;max-height:90vh;max-height:90dvh}
#book-detail-dialog .book-detail-header{flex:0 0 auto;flex-wrap:nowrap;align-items:flex-start;padding:20px 24px 14px;background:inherit;border-bottom:1px solid #e1d8ed}
#book-detail-dialog .book-detail-header h2{min-width:0;overflow-wrap:anywhere;margin:0}
#book-detail-dialog .book-detail-header button{flex-shrink:0}
#book-detail-body{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:20px 24px 24px;scrollbar-gutter:stable}
.dialog-close-bar{position:sticky;top:-24px;z-index:5;display:flex;justify-content:flex-end;background:inherit;margin:-24px -24px 16px;padding:12px 24px;border-bottom:1px solid #e1d8ed}
#a11y-panel .a11y-heading{position:sticky;top:-22px;z-index:5;background:inherit;padding-block:10px;border-bottom:1px solid #e1d8ed}
@media(max-width:550px){#book-detail-dialog .book-detail-header{padding:16px;gap:10px}#book-detail-body{padding:16px}#book-detail-dialog .book-detail-header h2{font-size:1.2rem}#a11y-panel .a11y-heading{top:-18px}}

.affiliate-disclosure{font-size:.9rem;line-height:1.5;padding:.75rem;border-left:3px solid #7434c4;overflow-wrap:anywhere}[data-affiliate-label]{display:inline-block;margin:.4rem;font-weight:600}

[data-amazon-ad-label]{display:inline-block;margin:.25rem .4rem;font-size:.8rem;font-weight:600;color:inherit}
