/* KNIGO R8 — final geometry layer, deliberately independent of reader preferences.
   One bounded stage for scene / navigation / page content. No CSS zoom/transforms on
   page content; browser zoom remains native. Images are decorative, text stays HTML. */
:root{--stage-width:1920px;--body-width:1720px;--wide-width:1840px;--nav-height:94px;font-size:16px}
html{min-width:0;text-size-adjust:100%;-webkit-text-size-adjust:100%}
body{min-width:0;margin:0}
main,section,aside,article,nav,header,footer{min-width:0}
input,select,textarea{max-width:100%;min-width:0}
[hidden]{display:none!important}
/* A wide display adds a quiet outer margin, not a second, differently scaled layout. */
body:not(.reader-page) .scene{width:min(100%,var(--stage-width));max-width:var(--stage-width);margin-inline:auto;container-type:inline-size;container-name:scene;isolation:isolate;overflow:visible;background-size:cover!important;background-position:center top!important}
body:not(.reader-page) .page-width{width:min(90%,var(--body-width));margin-inline:auto}
body:not(.reader-page) .wide-width{width:min(94%,var(--wide-width));margin-inline:auto}
body:not(.reader-page) .site-header,body.reader-page .site-header{height:var(--nav-height);min-height:var(--nav-height);width:min(94%,1804px);max-width:1804px;margin:0 auto;padding:0 22px;gap:24px;position:relative;flex-shrink:0}
.site-header .brand{display:flex;align-items:center;gap:8px;white-space:nowrap;flex:0 0 auto;max-width:40%;min-width:0}
.site-header .brand>img,.reader-page .site-header .brand>img{width:66px;height:66px;min-width:0;flex:0 0 auto;object-fit:contain}
.site-header .brand>span{min-width:0}
.site-header .brand strong,.reader-page .site-header .brand strong{font-size:46px;line-height:1;white-space:nowrap;letter-spacing:-.045em}
.site-header .brand small,.reader-page .site-header .brand small{font-size:9px;line-height:1.3;letter-spacing:.01em;margin-top:5px;white-space:normal}
.site-header .desktop-nav,body.reader-page .site-header .desktop-nav{display:flex;align-items:center;gap:clamp(16px,2vw,34px);flex:1;min-width:0;margin-left:12px;justify-content:flex-start}
.nav-library-group,.nav-personal-group{display:flex;align-items:center;gap:clamp(15px,2.1vw,34px);min-width:0}
.nav-library-group{flex:0 0 auto}.nav-personal-group{margin-left:auto;gap:22px;border-left:1px solid var(--line);padding-left:22px}
.site-header .desktop-nav a,body.reader-page .site-header .desktop-nav a{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:12px 0;color:var(--ink);font-size:17px;line-height:1.3;white-space:nowrap;border-bottom:1px solid transparent;text-decoration:none}
.site-header .desktop-nav a:hover,.site-header .desktop-nav a[aria-current=page]{color:var(--green);border-bottom-color:var(--gold)}
.site-header .desktop-nav .nav-data,.reader-page .desktop-nav .nav-data{font-size:15px;color:var(--muted);padding-left:0;margin:0;border-left:0}
.site-header .desktop-nav .nav-shelf{margin:0}
.site-header .desktop-nav .nav-search,body.reader-page .site-header .desktop-nav .nav-search{margin:0 0 0 0;font-size:17px;flex:0 0 auto}
.desktop-nav .icon{width:19px;height:19px}
.site-header .menu-toggle,body.reader-page .site-header .menu-toggle{display:none}
.mobile-menu .nav-personal-group{padding:0;border:0;margin:0}
/* Home content is sized from its own stage, not the unbounded viewport. */
body:not(.reader-page) .home-hero{display:grid;grid-template-columns:minmax(0,52fr) minmax(0,30fr) minmax(0,18fr);gap:0;width:72%;max-width:none;margin:0 0 0 19.4%;height:auto;min-height:calc(clamp(525px,38.54cqw,740px) - var(--nav-height));padding:clamp(30px,2.8cqw,54px) 0 66px;box-sizing:border-box;align-items:start}
.home-copy{min-width:0}.home-copy h1{font-size:clamp(50px,4.7cqw,88px);line-height:1.04;letter-spacing:-.04em;margin:30px 0 20px;white-space:normal}
.home-copy>p{font-size:clamp(18px,1.4cqw,26px);line-height:1.45;white-space:normal;margin-bottom:26px}
.home-copy .search-form{width:100%;max-width:100%}.home-copy .search-input{min-width:0}.home-copy .search-form>.button{flex:0 0 auto;min-width:90px}
.home-copy .eyebrow{font-size:clamp(10px,.8cqw,13px);letter-spacing:.15em}
.home-hero .crest-stage{width:auto;margin:0;padding:0 5px;min-width:0}.home-hero .crest-stage img{width:100%;height:auto;max-height:420px;object-fit:contain}
.home-hero .hero-quote{display:block;padding:clamp(40px,5cqw,85px) 0 0 14px;margin:0;min-width:0}.hero-quote p{font-size:clamp(16px,1.35cqw,24px);line-height:1.5;overflow-wrap:break-word}.hero-quote small{font-size:11px;line-height:1.5}
.home-hero .hero-motto{bottom:27px;left:14%;width:72%;font-size:10px;line-height:1.5;white-space:normal;transform:none}
.home-hero::after{left:calc(41% - 90px);bottom:2px;width:180px}
.compact-scene{min-height:260px}.compact-scene .masthead{width:58%;max-width:none;margin:0 0 0 23%;padding:23px 0 34px;background:none}
.masthead h1{font-size:clamp(48px,4.2cqw,66px);line-height:1.08;overflow-wrap:break-word}.masthead>p{font-size:20px}
.discovery{gap:5%;grid-template-columns:minmax(0,48fr) minmax(0,47fr);padding:34px 0 14px}.discovery .section-title{flex-wrap:wrap;gap:8px}.discovery .section-title h2{font-size:31px}
.author-line{min-width:0}.author-line>span{overflow-wrap:break-word}.genre-row>span{min-width:0;line-height:1.3}.genre-row>small{flex-shrink:0}
body:not(.reader-page) .catalog-layout{width:min(94%,1820px);grid-template-columns:clamp(215px,17%,255px) minmax(0,1fr);padding:24px 24px 0;gap:24px}
.book-card .card-copy,.search-result>div{min-width:0}.book-card h3{overflow-wrap:break-word}
.results-toolbar,.shelf-summary{gap:12px;flex-wrap:wrap}.results-toolbar>div{flex-wrap:wrap;max-width:100%}
.directory-index-primary{padding-top:0}.directory-overview{padding-bottom:18px;margin-bottom:22px}
.directory-filters{flex-wrap:wrap}.directory-filters .standalone-search{min-width:0;flex:1 1 360px}.directory-select{max-width:100%}
.directory-author{overflow:hidden}.directory-author h2{overflow-wrap:break-word}
.author-intro{grid-template-columns:minmax(0,24fr) minmax(0,49fr) minmax(0,23fr);gap:2%;max-width:1540px}
.author-reading-route{min-width:0;overflow-wrap:break-word}.author-heading h1{overflow-wrap:break-word}.author-heading>p{overflow-wrap:break-word}
.directory-bottom,.genre-guides{min-width:0}.genre-entry{min-width:0}.genre-entry h3{overflow-wrap:break-word}
.footer-top,.footer-bottom{width:min(100%,1800px);margin-inline:auto}.footer-top nav{flex-wrap:wrap}.site-footer .brand{max-width:100%}
/* Reader grid and sticky tools never inherit body font settings. */
body.reader-page .r-layout-frame{width:min(var(--r-page-width),1980px);max-width:1980px;container-type:inline-size}
body.reader-page .r-breadcrumb,body.reader-page .motto{width:min(96%,1980px);max-width:1980px}
.r-shell{grid-template-columns:clamp(230px,20%,280px) minmax(0,1fr) 80px;gap:16px;align-items:start}
.r-rail{align-self:stretch;min-width:0;max-width:100%;height:auto;overflow:visible}
.r-tools,.r-focused .r-tools{position:sticky;display:grid;grid-template-columns:1fr;gap:5px;padding:6px;top:12px;border:1px solid var(--r-border);border-radius:5px;max-height:none!important;overflow:visible!important}
.r-tool{min-width:0;width:100%;max-width:100%;height:clamp(46px,calc((100dvh - 90px)/7),62px);min-height:44px;white-space:normal;overflow-wrap:normal;word-break:normal;line-height:1.15;font:12px/1.15 "Times New Roman",Georgia,serif;padding:5px 1px;gap:4px}
.r-tool [data-r-label]{font:inherit;white-space:normal;line-height:1.15;max-width:100%;overflow-wrap:anywhere;display:block;text-align:center}
.r-tool .r-icon{width:22px;height:22px;min-width:0;flex-shrink:0}
.r-sidebar{overflow:visible;max-height:none;min-height:0;padding:20px 16px 12px}.r-book{grid-template-columns:64px minmax(0,1fr);gap:12px;margin-bottom:16px}.r-book>a,.r-book img{width:64px;height:auto}.r-book h2{font-size:20px;line-height:1.24;hyphens:auto;overflow-wrap:break-word}.r-book .text-link{font-size:14px;line-height:1.4;hyphens:auto}
.r-nav-scroll{max-height:clamp(130px,calc(100dvh - 350px),460px);overflow:auto}.r-nav-scroll a{overflow-wrap:anywhere}
.r-reading-heading h1{font-size:clamp(30px,3.5cqw,48px);line-height:1.15}.r-reading-heading h2{font-size:clamp(22px,2.5cqw,29px);line-height:1.25}.r-reading-heading{margin-bottom:30px}
body.reader-page #reading-content.r-text{min-width:0;overflow-wrap:anywhere}
.r-text.is-verse .verse-line{overflow-wrap:anywhere;min-width:0}
.r-focused .r-shell{grid-template-columns:minmax(0,1fr) 80px}.r-focused .r-tools{top:66px}
.r-dialog{width:370px;max-width:calc(100vw - 120px);max-height:calc(100dvh - 24px);min-width:0;font-size:14px}
.r-focused .r-dialog{max-height:calc(100dvh - 78px)}
.r-dialog[open]{display:flex;flex-direction:column}
.r-dialog-header{flex:0 0 auto;gap:10px;padding:12px 16px}.r-dialog-header h2{font-size:25px;line-height:1.2;overflow-wrap:break-word}.r-close{min-width:38px;min-height:38px;width:38px;height:38px}
.r-dialog-body,.r-dialog:not(#r-settings) .r-dialog-body{flex:1 1 auto;max-height:none;min-height:0;overflow-y:auto;padding:18px 16px;overscroll-behavior:contain}
.r-dialog .r-dialog-actions{display:flex;flex:0 0 auto;flex-wrap:wrap;gap:8px;padding:12px 16px;max-width:100%}.r-dialog .r-dialog-actions .button{min-width:0;max-width:100%;font-size:13px;line-height:1.3;min-height:42px;white-space:normal;padding:8px 10px}
.r-dialog .r-dialog-actions [data-r-action=reset-settings]{flex:1}.r-print-grid{display:grid;grid-template-columns:1fr;gap:16px}.r-print-grid .r-control{margin:0}.r-print-custom{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:1px solid var(--r-border);padding:12px;margin:0;min-width:0}.r-print-custom legend{font-size:13px;padding:0 5px}.r-print-custom label{font-size:13px;display:flex;flex-direction:column;gap:5px;min-width:0}.r-print-custom input{width:100%;min-height:40px;padding:6px 8px;font-size:14px;border:1px solid var(--r-border);color:var(--r-ink);background:var(--r-bg)}
.r-dialog .r-print-explanation .r-note{margin:0 0 18px}.r-print-grid .r-checkbox{min-width:0;font-size:14px}.r-print-grid select{width:100%;max-width:100%}
.r-quick-size{min-width:0}.r-quick-size>span{min-width:0}.r-quick-size button,.r-quick-size output{flex-shrink:0}
.r-mini-player{flex-wrap:wrap}.r-focused .r-focus-exit{font-size:13px;max-width:calc(100% - 24px)}
@container readerframe (max-width:1100px){.r-shell{grid-template-columns:minmax(0,1fr) 80px}.r-sidebar{display:none}}
@media(min-width:1360px){body.r-panel-reserve .r-shell{grid-template-columns:minmax(0,1fr) 370px 80px;gap:14px}body.r-panel-reserve .r-sidebar{display:none}body.r-panel-reserve .r-paper{grid-column:1}body.r-panel-reserve .r-rail{grid-column:3}}
/* 1280 / 1440 / 1920 tuning with a shared frame and constant UI font sizes. */
@media(min-width:1101px) and (max-width:1359px){
 .site-header .brand strong,body.reader-page .site-header .brand strong{font-size:41px}.site-header .brand>img,body.reader-page .site-header .brand>img{width:60px;height:60px}.site-header .brand small,body.reader-page .site-header .brand small{font-size:8px}
 .site-header .desktop-nav,body.reader-page .site-header .desktop-nav{margin-left:4px;gap:18px}.nav-library-group{gap:20px}.nav-personal-group{padding-left:17px;gap:17px}.site-header .desktop-nav a,body.reader-page .site-header .desktop-nav a{font-size:16px}.site-header .desktop-nav .nav-data{font-size:14px}
}
@media(min-width:1760px){:root{--nav-height:100px}.site-header .brand strong,body.reader-page .site-header .brand strong{font-size:50px}.site-header .brand>img,body.reader-page .site-header .brand>img{width:74px;height:74px}.site-header .desktop-nav a,body.reader-page .site-header .desktop-nav a{font-size:19px}.site-header .desktop-nav .nav-data{font-size:16px}}
@media(max-width:1100px){
 :root{--nav-height:82px}
 body:not(.reader-page) .site-header,body.reader-page .site-header{width:96%;height:82px;min-height:82px;padding:0 16px;justify-content:space-between;gap:12px}
 .site-header .desktop-nav,body.reader-page .site-header .desktop-nav{display:none}
 .site-header .menu-toggle,body.reader-page .site-header .menu-toggle{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:8px;flex:0 0 44px;border:1px solid var(--line)}
 .site-header .brand{max-width:calc(100% - 58px)}
 .mobile-menu:not([hidden]),body.reader-page .mobile-menu:not([hidden]){position:absolute;display:flex;flex-direction:column;gap:10px;top:81px;left:2%;width:96%;max-width:96%;margin:0;padding:14px 20px;z-index:50;background:var(--paper-raised);border:1px solid var(--gold);box-shadow:0 6px 18px #26180025}
 .mobile-menu .nav-library-group,.mobile-menu .nav-personal-group{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 14px;width:100%;padding:0;border:0;margin:0}
 .mobile-menu .nav-personal-group{grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid var(--line);padding-top:10px}
 .mobile-menu a{font-size:16px;line-height:1.3;padding:10px 4px;min-height:44px;display:flex;align-items:center;gap:8px;min-width:0}
 body:not(.reader-page) .home-hero{grid-template-columns:minmax(0,1fr) minmax(150px,28%);gap:20px;width:78%;margin-left:16%;min-height:405px;padding:34px 0 60px;height:auto}.home-copy h1{font-size:clamp(40px,5.3cqw,57px);margin:24px 0 20px}.home-copy>p{font-size:18px}.home-hero .hero-quote{display:none}.home-hero .crest-stage{padding-top:24px}.hero-motto{font-size:9px}
 .compact-scene .masthead{width:65%;margin-left:22%}.masthead h1{font-size:50px}
 body:not(.reader-page) .catalog-layout{display:block;width:94%;padding:20px}.author-intro{grid-template-columns:190px minmax(0,1fr);gap:24px}.author-reading-route{grid-column:1/-1}
 .footer-top{flex-wrap:wrap}.footer-top nav{gap:14px}
}
@media(max-width:760px){
 :root{--nav-height:76px}
 body:not(.reader-page) .site-header,body.reader-page .site-header{width:100%;height:76px!important;min-height:76px;padding:0 12px!important;gap:10px}
 .site-header .brand strong,body.reader-page .site-header .brand strong{font-size:34px}.site-header .brand>img,body.reader-page .site-header .brand>img{width:54px;height:54px}.site-header .brand small,body.reader-page .site-header .brand small{font-size:8px;letter-spacing:0}
 .mobile-menu:not([hidden]),body.reader-page .mobile-menu:not([hidden]){left:0;width:100%;max-width:100%;top:75px;padding:12px 16px}
 body:not(.reader-page) .home-hero{display:block;width:88%;margin:0 auto;height:auto;min-height:0;padding:30px 0 52px}.home-copy h1{font-size:clamp(33px,9.7cqw,54px);margin:22px 0 18px}.home-copy>p{font-size:17px;line-height:1.5}.home-copy .eyebrow{font-size:9px;letter-spacing:.12em}
 .home-hero .crest-stage{width:154px;max-width:44%;margin:22px auto 0;padding:0}.home-hero .hero-motto{left:0;width:100%;bottom:16px;font-size:7px;letter-spacing:.12em}.home-hero::after{display:none}
 .home-copy .search-form>.button{min-width:70px}.hero-meta{font-size:11px;gap:10px}.compact-scene .masthead{width:88%;margin:0 auto;padding:22px 0 28px;background:none}.masthead h1{font-size:42px}.masthead>p{font-size:18px}
 .discovery{display:block}.discovery .section-title h2{font-size:28px}.discovery>div+div{margin-top:30px}.discovery .section-title>a{font-size:13px}.genre-row{gap:10px}.genre-row>span{font-size:17px}.genre-row>img{width:70px;height:58px}.genre-row>small{font-size:12px;padding-right:8px}
 .directory-index-primary{padding-top:0}.directory-overview{padding-bottom:15px;margin-bottom:20px}.directory-overview p{font-size:14px}.directory-filters{gap:10px}.directory-select{min-width:0;flex:1}.directory-select select{font-size:14px;width:100%}.directory-filters .standalone-search{flex-basis:100%;width:100%;min-width:0}
 .author-intro{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}.author-reading-route{grid-column:auto}.author-heading h1{font-size:30px}.author-heading h1 strong{font-size:42px}
 .footer-top{display:grid;grid-template-columns:minmax(0,1fr) auto}.footer-top nav{grid-template-columns:1fr 1fr}.footer-bottom{gap:7px}.site-footer .brand{min-width:0;white-space:normal}
 body.reader-page{--r-tool-bottom:64px;padding-bottom:calc(var(--r-tool-bottom) + env(safe-area-inset-bottom))}
 body.reader-page .r-layout-frame,.r-focused .r-layout-frame{width:100%;max-width:none;margin:0}.r-shell,.r-focused .r-shell{display:block}.r-sidebar{display:none}.r-rail{position:fixed;left:0;right:0;bottom:0;height:auto;max-width:100%;padding:6px 8px calc(6px + env(safe-area-inset-bottom));z-index:40;background:var(--r-panel)}
 .r-tools,.r-focused .r-tools{position:static;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px;padding:0;border:0;top:auto;width:100%}
 .r-tool{height:50px;min-height:48px;font-size:10px;padding:4px 0;gap:3px;min-width:0}.r-tool .r-icon{width:20px;height:20px}.r-tool [data-r-label]{font-size:10px;line-height:1.05;overflow-wrap:anywhere;max-width:100%}
 .r-paper{padding:28px 18px 0;min-height:60vh;border-radius:0;border-inline:0}.r-reading-heading h1{font-size:33px;line-height:1.15}.r-reading-heading h2{font-size:24px}.r-reading-heading{margin-bottom:25px}
 .r-dialog{left:8px!important;right:8px!important;top:auto!important;bottom:calc(var(--r-tool-bottom) + env(safe-area-inset-bottom) + 6px)!important;max-height:52dvh;width:auto;max-width:none}
 .r-focused .r-dialog{max-height:52dvh}.r-dialog-header{padding:9px 12px}.r-dialog-header h2{font-size:23px}.r-dialog-body,.r-dialog:not(#r-settings) .r-dialog-body{max-height:none;min-height:0;flex:1 1 auto;padding:14px 12px}.r-dialog .r-dialog-actions{padding:9px 12px}.r-dialog .r-dialog-actions .button{font-size:12px;min-height:40px;padding:7px 9px;line-height:1.25}
 .r-dialog .r-dialog-actions [data-r-action=reset-settings]{flex:1}.r-dialog .r-dialog-actions [data-r-action=close-dialog]{flex:0 1 auto}
 .r-settings-grid,.r-print-grid{grid-template-columns:minmax(0,1fr)}.r-control-title{min-width:0}.r-control-title label{font-size:13px}.r-number-wrap{min-width:0}.r-number-wrap input{width:64px;max-width:100%}.r-quick-size{gap:6px}.r-quick-size>span{font-size:12px;line-height:1.3;margin-right:auto}.r-quick-size button{width:34px;height:38px}.r-quick-size output{font-size:12px;min-width:38px}
 .r-focused .r-paper{padding-top:76px}.r-focus-exit{font-size:12px;top:8px;right:8px;padding:8px 10px}.r-focus-exit kbd{display:none}.r-chapter-nav{gap:8px}.r-chapter-nav .button{font-size:13px;padding:8px 10px;white-space:normal}.r-mini-player{bottom:calc(var(--r-tool-bottom) + env(safe-area-inset-bottom) + 8px)}
}
@media(max-width:480px){.r-tool [data-r-label]{display:none}.r-tool .r-icon{width:22px;height:22px}.r-tool{min-height:46px;height:46px}body.reader-page{--r-tool-bottom:60px}}
@media(max-width:359px){
 .site-header .brand>img,body.reader-page .site-header .brand>img{width:44px;height:44px}.site-header .brand strong,body.reader-page .site-header .brand strong{font-size:28px}.site-header .brand small,body.reader-page .site-header .brand small{font-size:7px;line-height:1.2}.site-header .brand{gap:6px}.site-header .menu-toggle{width:42px;height:42px;min-width:42px}
 body.reader-page{--r-tool-bottom:108px}.r-tools,.r-focused .r-tools{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}.r-tool{height:44px;min-height:44px}.r-reading-heading h1{font-size:29px}.r-paper{padding-inline:14px}.r-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .mobile-menu a{font-size:15px}.mobile-menu .nav-library-group{gap:6px}.catalog-main .book-grid{grid-template-columns:1fr!important}.directory-author{gap:13px;padding:14px}.directory-author h2{font-size:22px}.genre-entry>img{width:48px;height:48px}.genre-entry h3{font-size:22px}.directory-author-portrait{flex-basis:52px}.directory-author-portrait img,.author-monogram{width:52px;height:52px}
 .r-dialog .r-dialog-actions .button{font-size:11px}.r-dialog-header h2{font-size:21px}.r-dialog .r-quick-size>span{max-width:75px}.r-dialog{left:6px!important;right:6px!important}
}
@media(max-width:300px){.site-header .brand small{display:none}.home-copy .search-form{flex-wrap:wrap}.home-copy .search-input{flex-basis:100%}.home-copy .search-form>.button{width:100%}.r-theme-grid{grid-template-columns:1fr}.r-control-title{flex-wrap:wrap}.r-number-wrap{margin-left:auto}.r-dialog .r-quick-size{flex-wrap:wrap}.genre-entry{gap:10px;padding:12px}.author-line .avatar{width:34px;height:34px}.author-line{gap:8px}.genre-row>img{width:50px}.genre-row>span{font-size:16px}.footer-top{grid-template-columns:1fr}.r-focus-exit{max-width:calc(100% - 16px);font-size:11px}}
@media(min-width:761px) and (max-height:560px){.r-sidebar{display:none}.r-shell{grid-template-columns:minmax(0,1fr) 84px}.r-tool{height:44px;min-height:44px;gap:2px;padding:2px;font-size:11px}.r-tool .r-icon{width:19px;height:19px}.r-tools{gap:3px;padding:4px}.r-dialog-header{padding:9px 12px}.r-dialog-header h2{font-size:22px}.r-dialog .r-dialog-actions{padding:8px 12px}.r-dialog .r-dialog-actions .button{min-height:36px}}
@media(min-width:761px) and (max-height:440px){.r-shell,.r-focused .r-shell{grid-template-columns:minmax(0,1fr) 102px}.r-tools,.r-focused .r-tools{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.r-tool{height:44px}.r-tool [data-r-label]{display:none}.r-tool .r-icon{width:22px;height:22px}}
@media(max-height:420px) and (max-width:760px){.r-dialog,.r-focused .r-dialog{max-height:calc(100dvh - var(--r-tool-bottom) - 16px)}.r-dialog-header{padding:7px 10px}.r-dialog-header h2{font-size:20px}.r-close{height:32px;width:32px;min-height:32px;min-width:32px}.r-dialog .r-dialog-actions{padding:7px 10px}.r-dialog .r-dialog-actions .button{min-height:34px}.r-mini-player{max-height:calc(100dvh - var(--r-tool-bottom) - 20px);overflow-y:auto}}
@media print{
 html.reader-document,body.reader-page{font-size:12pt!important;margin:0!important;padding:0!important;min-height:0!important;height:auto!important;background:#fff!important;color:#000!important;display:block!important}
 .reader-page .site-header,.reader-page .site-footer,.r-backdrop,.r-sidebar,.r-rail,.r-dialog,.r-focus-exit,.r-mini-player,.r-breadcrumb,.r-chapter-footer,.r-provenance,.reader-page .motto,.toast,.skip-link,.noscript-note{display:none!important}
 body.reader-page .reader-scene,body.reader-page main,body.reader-page .r-layout-frame,body.reader-page .r-shell{display:block!important;width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;container-type:normal!important;overflow:visible!important;background:none!important}
 .r-paper{display:block!important;width:100%!important;min-height:0!important;height:auto!important;border:0!important;margin:0!important;padding:0!important;box-shadow:none!important;border-radius:0!important;background:white!important;color:black!important}
 .r-paper:before,.r-paper:after{display:none!important}.r-text{max-width:none!important;width:100%!important;color:#000!important}.r-text p{break-inside:auto;orphans:3;widows:3}.r-text.is-verse{display:block!important}.r-text.is-verse .verse-line{margin:0!important}.r-reading-heading{break-after:avoid}.r-speaking{outline:0;background:none}.r-byline{color:#000!important}
}
/* At very high browser zoom, short tab rows wrap rather than hiding the last tab. */
@media(max-width:400px){.tab-list,.search-tabs{flex-wrap:wrap;overflow:visible;gap:4px}.tab-list>button,.search-tabs>button{font-size:14px;padding:10px 8px;white-space:normal;min-height:40px}.search-result .result-actions{gap:6px}.directory-overview i{margin:0 7px}}
/* Audit follow-ups: the 1041–1100 band must use the same search-grid span as tablets. */
@media(max-width:1100px){.search-layout>.filter-toggle{grid-column:1/-1}.search-main,.search-suggestions{min-width:0}.search-main .search-tabs{max-width:100%}}
.book-summary h1,.main-author{overflow-wrap:break-word;hyphens:auto}
@media(max-width:480px){.search-suggestions{grid-template-columns:minmax(0,1fr)}.search-suggestions .paper-quote{grid-column:auto}.search-result h2{overflow-wrap:anywhere}.book-summary h1{overflow-wrap:anywhere}}
.r-reset-short{display:none}
/* A high-zoom / short landscape viewport needs enough room to operate the panel.
   Temporarily stow its duplicate tool row; leave a strip of the text visible. */
@media(max-width:760px) and (max-height:360px){
 body.r-panel-open .r-rail{display:none}
 body.r-panel-open .r-dialog,body.r-focused.r-panel-open .r-dialog{bottom:6px!important;max-height:82dvh;top:auto!important}
 .r-dialog .r-dialog-header{padding:6px 10px}.r-dialog-header h2{font-size:19px}.r-close{width:30px;min-width:30px;height:30px;min-height:30px}
 .r-dialog .r-dialog-actions{padding:6px 10px;flex-wrap:nowrap;gap:6px}.r-dialog .r-dialog-actions .button{font-size:12px;min-height:32px;padding:6px 9px}
 .r-reset-full{display:none}.r-reset-short{display:inline}.r-dialog-body,.r-dialog:not(#r-settings) .r-dialog-body{padding:10px;min-height:0}
}
