/* Only the reader occupies the viewport while a book is open. */
#bibi-dialog{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:hidden;background:#fff;box-shadow:none}
#bibi-dialog::backdrop{background:#fff;backdrop-filter:none}
#bibi-frame{display:block;width:100%;height:100%;border:0;background:#fff}
body.reading>.header,body.reading>.demo-strip,body.reading>#main,body.reading>.footer,body.reading>.mobile-nav{display:none}
#reader-dialog{width:100%;height:100dvh;max-width:none;max-height:none;margin:0;inset:0;border-radius:0}
body:has(#reader-dialog[open]) .mobile-nav{display:none}
.tenant-switcher{display:flex;gap:12px;align-items:center;margin:22px 0 16px;font-size:12px;color:var(--muted)}
.tenant-switcher select{min-height:44px;max-width:240px;border:0;border-radius:9px;background:var(--soft);color:var(--ink);padding:10px 32px 10px 12px}
.tenant-switcher a{margin-left:auto;color:var(--accent);min-height:44px;display:flex;align-items:center}
.brand-logo[data-text-logo=true]{width:185px;background:none}
.brand-logo[data-text-logo=true] .institution-wordmark{display:grid;align-content:center;gap:4px;height:100%;color:var(--accent);line-height:1.2}
.brand-logo[data-text-logo=true] .institution-wordmark>span:first-child{font-size:19px;overflow-wrap:anywhere;word-break:normal}
body[data-brand=institution] .institution-heading p{color:var(--muted)}
.demo-strip>.container>a:last-child{white-space:nowrap}
@media(max-width:650px){
 .brand-logo[data-text-logo=true]{width:155px}
 .brand-logo[data-text-logo=true] .institution-wordmark>span:first-child{font-size:16px}
 .brand-logo[data-text-logo=true] .institution-wordmark>span:nth-child(2){font-size:10px}
 .brand-logo[data-text-logo=true] .institution-wordmark>small{font-size:9px}
 .tenant-switcher{gap:9px;flex-wrap:wrap}
 .tenant-switcher select{max-width:205px;font-size:13px}
 .tenant-switcher a{font-size:11px}
}
