/* KNIGO R7: bounded UI geometry. Only #reading-content receives reader font settings. */
:root{font-size:16px}
body{min-width:0}
.page-width{width:min(90%,1720px)}
.wide-width{width:min(94%,1840px)}
.site-header{width:min(94%,1880px);height:94px;margin:0 auto;padding:0 22px;gap:22px}
.brand{gap:9px}.brand>img{width:68px;height:68px}.brand strong{font-size:46px}.brand small{font-size:9px;letter-spacing:.025em}
.desktop-nav{display:flex;justify-content:flex-start;margin-left:24px;gap:clamp(18px,2.15vw,38px)}
.desktop-nav>a{font-size:17px;line-height:1.35;min-height:44px;white-space:nowrap}
.desktop-nav .nav-data{margin-left:auto;font-size:14px;padding-left:20px;border-left:1px solid var(--line);border-bottom:0;color:var(--muted)}
.desktop-nav .nav-search{margin-left:0;gap:9px;font-size:17px;justify-content:flex-end}
.site-header .menu-toggle{display:none}
.account-actions,.utility-actions{display:none!important}
/* `cover` preserves the source aspect ratio. Crop, rather than stretch, on other shapes. */
.scene{background-size:cover!important;background-position:center top;background-repeat:no-repeat}
.home-hero{width:72%;margin-left:19.4%;height:calc(clamp(520px,38.54vw,760px) - 94px);min-height:0;grid-template-columns:52% 30% 18%;padding:clamp(28px,2.8vw,54px) 0 62px;gap:0}
.home-copy h1{font-size:clamp(50px,4.8vw,88px);line-height:1.04;margin:30px 0 18px;white-space:normal}
.home-copy>p{font-size:clamp(18px,1.38vw,25px);line-height:1.45;margin-bottom:24px}
.home-copy .eyebrow{font-size:11px}
.crest-stage{padding:0 4px}.crest-stage img{max-height:420px;width:100%;object-fit:contain}
.hero-quote{padding:60px 0 0 16px;margin:0}.hero-quote p{font-size:clamp(17px,1.45vw,24px);line-height:1.5}.hero-quote small{font-size:11px}
.hero-motto{bottom:28px;left:13%;width:74%;font-size:10px;letter-spacing:.22em}
.home-hero::after{bottom:2px}
.discovery{padding:34px 0 12px;gap:5%;grid-template-columns:48% 47%}
.discovery .section-title h2{font-size:31px}.genre-row>span{font-size:19px}.author-line>span{font-size:18px}
.compact-scene{min-height:258px}.masthead{width:58%;margin-left:23%;padding:20px 0 30px}.masthead h1{font-size:58px;margin:14px 0 9px}.masthead>p{font-size:20px;line-height:1.5}
.footer-top{gap:24px;max-width:1820px;margin:auto}.footer-bottom{max-width:1820px;margin:auto;font-size:12px;gap:24px;padding-top:10px}.site-footer{padding:18px 4% 14px}.footer-top nav{gap:24px}.footer-top nav a{font-size:14px}
.catalog-layout{width:min(94%,1820px);grid-template-columns:230px minmax(0,1fr);gap:24px;padding:24px 24px 0}
.catalog-main .book-grid,[data-shelf-grid].book-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.catalog-main .book-card,.book-card.compact-card{padding:14px 14px 12px;min-height:0}
.catalog-main .cover-link{height:180px;padding-right:18px}.book-card h3{font-size:18px;line-height:1.26}.book-author{font-size:14px;line-height:1.45;min-height:0}.book-meta{font-size:12px;color:var(--muted);margin-bottom:6px}.tags{margin-top:8px;min-height:0}.tags>span{font-size:11px}
.compact-card .card-copy{gap:5px}.catalog-main .read-button{display:none}.pagination{gap:6px;margin:22px 0}.pagination button{font-size:14px;min-width:38px;min-height:40px}
.catalog-main .list-view{grid-template-columns:1fr}.catalog-main .list-view .book-card{grid-template-columns:88px minmax(0,1fr)}.catalog-main .list-view .cover-link{height:122px}
.author-intro{width:min(86%,1540px);margin:0 auto;display:grid;grid-template-columns:minmax(180px,24%) minmax(0,49%) minmax(170px,23%);gap:2%;padding:26px 0 34px;min-height:0;background:transparent;overflow:visible;box-shadow:none}
.author-intro::after{display:none}.portrait-frame>img{height:auto;max-height:338px;object-fit:contain;object-position:left top}.author-heading{min-width:0;padding:8px 8px 0}.author-heading h1{font-size:36px;line-height:1.06;margin:20px 0;max-width:none}.author-heading h1 strong{font-size:54px}.author-heading>p:not(.lifespan){font-size:17px;line-height:1.62;max-width:none}.author-heading .eyebrow{font-size:10px}
.author-reading-route{border-left:1px solid var(--line);align-self:center;padding:6px 0 6px 22px}.author-reading-route .eyebrow{font-size:9px;letter-spacing:.14em}.author-reading-route h2{font-size:28px;margin:15px 0}.author-reading-route>a:not(.text-link){display:block;border-bottom:1px solid var(--line-light);padding:12px 0}.author-reading-route a span{font-size:17px}.author-reading-route small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.author-reading-route p{font-size:14px;line-height:1.6;color:var(--muted);margin-top:20px}
.author-body{gap:24px;padding:18px 0 24px}.author-statistics{margin:0 0 18px}.author-works{gap:18px;grid-template-columns:repeat(5,minmax(0,1fr))}.author-works .cover-link{height:215px}.author-main .tab-list{position:static;background:transparent}.timeline{padding:22px}.timeline li{font-size:14px;line-height:1.5}.availability-note{font-size:13px;line-height:1.5;color:var(--muted);margin-top:12px}
.book-intro{width:min(90%,1740px);margin:0 auto;grid-template-columns:24% minmax(0,47%) minmax(0,23%);gap:3%;min-height:0;padding:20px 0 34px}.large-cover img{height:400px}.book-summary h1{font-size:58px}.main-author{font-size:26px}.book-summary>p:not(.synopsis):not(.subtle-note){font-size:17px;line-height:1.6}.book-summary .synopsis{font-size:18px}.book-facts{padding:22px}.book-facts dl{font-size:14px}.book-facts .fact-note{margin-top:16px}.book-below{padding:28px 0 12px;gap:5%}.related-grid{gap:18px}
.search-hero{width:56%;padding:34px 0 36px;min-height:0}.search-hero h1{font-size:56px}.search-hero>p{font-size:24px}.search-layout{grid-template-columns:210px minmax(0,1fr) 224px;gap:24px}.search-result{grid-template-columns:86px minmax(0,1fr) 96px;gap:18px}.search-result>a>img{width:86px;height:121px;object-fit:contain}.search-result h2{font-size:26px}.search-result p{font-size:16px;line-height:1.55}.result-actions{grid-column:auto;flex-direction:column}.result-actions .button{font-size:13px;padding:8px;white-space:normal}.search-main .section-title{flex-wrap:wrap}.search-tabs{gap:12px}
/* The two directory pages add editorial depth while keeping individual entries compact. */
.directory-page,.genre-hub{padding-top:26px}
.directory-overview{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px;border-bottom:1px solid var(--line);padding-bottom:18px}
.directory-overview>span{font:10px/1.5 Arial,sans-serif;letter-spacing:.15em;color:var(--muted)}.directory-overview p{font-size:16px;margin:0}.directory-overview i{font-style:normal;margin:0 16px;color:var(--gold)}.directory-overview>a{font-size:14px}
.author-editorial{display:grid;grid-template-columns:190px minmax(0,1.2fr) minmax(260px,.9fr);gap:30px;align-items:stretch;padding:28px;background:#fffcf478;border:1px solid var(--line);box-shadow:0 5px 20px #5836000c;position:relative}
.featured-portrait{display:block;align-self:start;box-shadow:2px 5px 12px #38230424}.featured-portrait img{width:100%;height:auto}
.featured-author{padding:2px 0}.featured-author .eyebrow{font-size:10px}.featured-author h2{font-size:42px;line-height:1.08;margin:12px 0 14px}.featured-author>p{font-size:17px;line-height:1.55;margin-bottom:14px;max-width:45ch}
.editorial-links{display:flex;flex-wrap:wrap;gap:7px 18px;font-size:14px;margin-bottom:18px}.featured-author .button{font-size:14px;min-height:40px}
.author-routes{border-left:1px solid var(--line);padding:4px 0 4px 26px}.author-routes .eyebrow{font-size:10px}.author-routes h3{font-size:25px;line-height:1.25;margin:10px 0}.author-routes>a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid var(--line-light)}.author-routes>a span{font-size:16px}.author-routes small{color:var(--muted);font-size:11px;white-space:nowrap}.author-routes p{font-size:13px;line-height:1.55;margin:15px 0 0;color:var(--muted)}
.directory-index{padding-top:35px;scroll-margin-top:20px}.directory-index .section-title{margin-bottom:18px}.directory-index .section-title h2{font-size:31px}.directory-index .section-title>span{font-size:14px;color:var(--muted)}
.directory-filters{display:flex;align-items:center;gap:14px}.directory-filters .standalone-search{flex:1;margin:0;width:auto;padding:5px 14px}.directory-filters input{font-size:16px;min-height:40px}.directory-select select{min-height:48px;font-size:15px}.directory-filters button{font-size:14px;padding:10px;min-height:44px}
.author-alphabet{gap:5px;margin:20px 0}.author-alphabet .letter{min-width:34px;height:38px;min-height:38px;padding:5px 9px;font-size:15px;border-radius:2px}
.author-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.directory-author{display:flex;align-items:center;gap:17px;padding:18px;background:#fffcf452;border:1px solid var(--line-light);border-radius:3px;min-width:0;transition:border-color .15s,background .15s}.directory-author:hover{background:#fffaf0;border-color:var(--gold)}
.directory-author-portrait{display:block;flex:0 0 64px}.directory-author-portrait img,.author-monogram{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;object-fit:cover;border:2px solid #c5a767}.author-monogram{background:#123e2e;color:#dfc584;font-size:23px}.directory-author>div{min-width:0}.directory-author h2{font-size:23px;line-height:1.14;margin:0 0 7px;letter-spacing:-.015em}.directory-author p{font-size:13px;line-height:1.4;color:var(--muted);margin:0 0 7px}.directory-author-count{font-size:12px}
.directory-bottom{margin-top:34px;border-block:1px solid var(--line);padding:22px 0;display:flex;align-items:center;gap:30px}.directory-bottom>div{margin-right:auto}.directory-bottom .eyebrow{font-size:9px}.directory-bottom h2{font-size:26px;margin:8px 0 0}.directory-bottom>a{font-size:15px}
.genre-intro{display:grid;grid-template-columns:1fr minmax(280px,.55fr);gap:35px;align-items:center;margin:2px 0 24px}.genre-intro h2{font-size:35px;margin:12px 0}.genre-intro p{font-size:17px;line-height:1.6;max-width:64ch;margin-bottom:0}.genre-intro .eyebrow{font-size:10px}.genre-intro .standalone-search{width:100%;margin:0;font-size:16px}
.genre-featured{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:32px}.genre-featured>a{display:block;position:relative;overflow:hidden;height:180px;border:1px solid var(--gold);background:#193326;color:#fcf4e4;border-radius:3px}.genre-featured img{position:absolute;right:0;top:0;width:70%;height:100%;object-fit:cover;opacity:.75}.genre-featured a:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#142c22f7,#142c2299 58%,transparent)}.genre-featured a:nth-child(2){background:#765535}.genre-featured a:nth-child(2):after{background:linear-gradient(90deg,#533c22f7,#533c2299 58%,transparent)}.genre-featured a:nth-child(3):after{background:linear-gradient(90deg,#382c1df7,#382c1d99 58%,transparent)}.genre-featured span{position:relative;z-index:1;display:flex;flex-direction:column;padding:25px;height:100%;align-items:start;gap:10px}.genre-featured small{font:9px/1.4 Arial,sans-serif;letter-spacing:.14em;color:#d7bf89}.genre-featured b{font-size:29px;line-height:1.12;font-weight:400;max-width:10ch}.genre-featured em{font-size:13px;font-style:normal;margin-top:auto}
.genre-hub .section-title h2{font-size:31px}.genre-hub .section-title>span{font-size:14px;color:var(--muted)}
.genres-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.genre-entry{display:flex;align-items:center;gap:15px;min-width:0;border:1px solid var(--line-light);background:#fffcf45c;padding:18px;border-radius:3px;color:var(--ink);transition:border-color .15s,background .15s}.genre-entry:hover{text-decoration:none;background:#fffaf0;border-color:var(--gold)}.genre-entry>img{width:68px;height:68px;flex-shrink:0}.genre-entry>.genre-entry-copy{min-width:0}.genre-entry h3{font-size:24px;line-height:1.14;margin:0 0 7px}.genre-entry p{font-size:13px;line-height:1.4;margin:0 0 5px;color:var(--muted)}.genre-entry small{font-size:12px;color:var(--green)}.genre-entry>b{font-weight:400;margin-left:auto;color:var(--gold)}
.genre-guides{display:grid;grid-template-columns:1fr 1fr;gap:35px;margin-top:32px;border-top:1px solid var(--line);padding-top:27px}.genre-guides>div+div{border-left:1px solid var(--line);padding-left:35px}.genre-guides .eyebrow{font-size:9px}.genre-guides h2{font-size:29px;margin:13px 0}.genre-guides p{font-size:16px;color:var(--muted)}
/* Data center: transfer actions are here only, not duplicated across shelf and header. */
.data-intro{display:flex;gap:40px;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 0 25px}.data-intro h2{font-size:35px;margin:14px 0}.data-intro p{font-size:18px;line-height:1.6;max-width:73ch;margin:0}.data-seal{display:flex;align-items:center;justify-content:center;flex:0 0 96px;height:96px;border:3px double var(--gold);border-radius:50%;font-size:54px;color:var(--gold);background:#fdf5e5}
.data-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:24px 0;margin-bottom:8px;gap:20px}.data-stats>div{border-right:1px solid var(--line);padding:0 16px}.data-stats>div:last-child{border:0}.data-stats strong{font-size:31px;font-weight:400;display:block;color:var(--green)}.data-stats span{font-size:14px;color:var(--muted)}
.transfer-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:28px;padding-bottom:32px}.transfer-card{display:flex;align-items:start;gap:22px;padding:27px;background:#fffcf478;border:1px solid var(--line);margin-bottom:20px}.transfer-card>div{flex:1;min-width:0}.section-number{font:26px/1 Georgia,serif;color:var(--gold);border-bottom:1px solid var(--gold);padding-bottom:12px}.transfer-card h2{font-size:30px;margin:0 0 13px}.transfer-card p{font-size:17px;line-height:1.6}.transfer-card .small-status{font-size:13px;color:var(--muted);margin:14px 0 0}.transfer-card .button{font-size:15px;min-height:44px}.file-picker{display:block;cursor:pointer;max-width:100%;padding:16px;border:1px dashed var(--gold);background:#fffaf0;font-size:16px}.file-picker input{display:block;width:100%;border:0;padding:12px 0 0;font-size:14px;background:transparent}.import-preview{padding-top:22px;margin-top:20px;border-top:1px solid var(--line)}.import-preview h3{font-size:24px}.import-preview fieldset{border:1px solid var(--line);padding:16px}.import-preview legend{font-size:15px}.import-preview label{display:flex;gap:10px;align-items:center;font-size:15px;line-height:1.5;padding:9px 0}.import-preview input{accent-color:var(--green)}.transfer-buttons{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}.import-undo{margin-top:20px;border-top:1px solid var(--line);padding-top:16px}.transfer-status:not(:empty){padding:18px;background:#e8eadc;border:1px solid var(--line);font-size:16px;line-height:1.6}.transfer-status[data-error=true]{background:#f3e0d6;color:#793e27}
.storage-panel{border:1px solid var(--line);padding:25px;align-self:start;background:#fffaf095}.storage-panel h2{font-size:29px;margin:14px 0 20px}.storage-panel h3{font-size:23px;margin-top:20px}.storage-panel p{font-size:14px;line-height:1.7;color:var(--muted)}.storage-panel dl{margin:0 0 20px}.storage-panel dt{font-size:13px;color:var(--muted);margin-top:16px}.storage-panel dd{margin:4px 0 0;font-size:16px;color:var(--green)}.storage-panel .button{font-size:14px;min-height:44px;width:100%}.storage-panel hr{border:0;border-top:1px solid var(--line);margin:24px 0}.storage-panel .small-status{font-size:12px}.small-status{line-height:1.6}
/* Three desktop tuning bands: no typography-scaled controls or whole-page transforms. */
@media(min-width:1101px) and (max-width:1359px){
 .site-header{gap:12px;padding:0 16px}.brand strong{font-size:41px}.brand>img{width:60px;height:60px}.brand small{font-size:8px}.desktop-nav{gap:20px;margin-left:10px}.desktop-nav>a{font-size:16px}.desktop-nav .nav-data{font-size:13px;padding-left:16px}.desktop-nav .nav-search{font-size:16px}
 .catalog-layout{grid-template-columns:205px minmax(0,1fr);gap:18px;padding-inline:18px}.catalog-main .cover-link{height:163px}.catalog-main .book-card{padding:12px}.catalog-main .book-grid{gap:12px}
 .author-editorial{grid-template-columns:160px minmax(0,1.2fr) minmax(220px,.9fr);gap:22px;padding:22px}.featured-author h2{font-size:37px}.author-routes{padding-left:20px}.directory-author{gap:13px;padding:15px}.directory-author h2{font-size:21px}.genre-entry{padding:15px;gap:12px}.genre-entry>img{width:58px;height:58px}.genre-entry h3{font-size:22px}
 .author-heading h1{font-size:31px}.author-heading h1 strong{font-size:46px}.author-reading-route{padding-left:14px}.author-reading-route h2{font-size:24px}.author-intro{width:88%}
 .book-summary h1{font-size:47px}.book-summary .main-author{font-size:23px}.book-facts{padding:17px}.book-facts dl{font-size:13px}
 .search-layout{grid-template-columns:190px minmax(0,1fr) 190px;gap:20px}.search-result{grid-template-columns:78px minmax(0,1fr);gap:16px}.search-result>a>img{width:78px;height:112px}.result-actions{grid-column:2;flex-direction:row;justify-content:flex-start}.search-result h2{font-size:24px}
}
@media(min-width:1360px) and (max-width:1759px){.home-copy h1{font-size:clamp(60px,4.8vw,76px)}.author-editorial{grid-template-columns:180px minmax(0,1.2fr) minmax(260px,.9fr)}.catalog-main .cover-link{height:180px}}
@media(min-width:1760px){.site-header{height:100px;padding-inline:28px}.brand strong{font-size:51px}.brand>img{width:76px;height:76px}.desktop-nav>a{font-size:19px}.desktop-nav .nav-search{font-size:19px}.desktop-nav .nav-data{font-size:16px}.home-hero{height:660px}.home-copy h1{font-size:86px}.masthead{padding:27px 0 37px}.masthead h1{font-size:66px}.catalog-layout{grid-template-columns:255px minmax(0,1fr);gap:30px}.catalog-main .book-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.catalog-main .cover-link{height:195px}.author-editorial{grid-template-columns:220px minmax(0,1.2fr) minmax(330px,.9fr);gap:38px;padding:32px}.featured-author h2{font-size:50px}.author-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.genre-featured>a{height:200px}.genre-featured b{font-size:35px}.genre-entry{padding:24px;gap:23px}.genre-entry>img{width:78px;height:78px}.genre-entry h3{font-size:29px}.genre-entry p{font-size:15px}.data-intro p{font-size:20px}}
@media(max-width:1100px){
 .site-header{width:96%;height:82px;padding:0 18px;justify-content:space-between}.site-header .desktop-nav{display:none}.site-header .menu-toggle{display:flex;width:44px;height:44px}.brand strong{font-size:41px}.brand>img{width:62px;height:62px}.brand small{font-size:9px}.mobile-menu:not([hidden]){top:81px;left:2%;width:96%;font-size:16px}
 .home-hero{grid-template-columns:minmax(0,1fr) 230px;width:80%;margin-left:16%;height:auto;min-height:415px;padding:34px 0 54px}.home-copy h1{font-size:48px}.home-copy>p{font-size:18px}.hero-quote{display:none}.crest-stage{padding-top:20px}.hero-motto{font-size:8px;left:0;width:100%;bottom:20px}
 .page-width{width:92%}.wide-width{width:94%}.catalog-layout{display:block;padding:20px}.catalog-main{margin-top:16px}.catalog-main .book-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.filter-panel:not(.is-open){display:none}.filter-toggle{display:flex}.filter-panel.is-open{position:fixed;inset:0 auto 0 0;z-index:61;width:min(370px,90vw);padding:24px;overflow:auto;background:var(--paper)}
 .masthead{width:66%;margin-left:22%;padding-top:18px}.masthead h1{font-size:50px}.compact-scene{min-height:230px}
 .author-editorial{grid-template-columns:155px minmax(0,1fr);gap:23px;padding:23px}.author-routes{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:6px 24px;border-left:0;border-top:1px solid var(--line);padding:20px 0 0}.author-routes .eyebrow,.author-routes h3,.author-routes p{grid-column:1/-1}.author-routes h3{margin:0}.featured-author h2{font-size:37px}.author-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.directory-overview{flex-wrap:wrap;gap:8px 22px}.directory-filters{flex-wrap:wrap}.directory-filters .standalone-search{min-width:250px}.directory-index .section-title{align-items:center}
 .genres-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.genre-intro{grid-template-columns:1fr;gap:18px}.genre-intro .standalone-search{max-width:550px}.genre-featured{gap:14px}.genre-featured>a{height:158px}.genre-featured span{padding:19px}.genre-featured b{font-size:26px}
 .author-intro{width:88%;grid-template-columns:190px minmax(0,1fr);gap:26px}.author-reading-route{grid-column:1/-1;border-left:0;border-top:1px solid var(--line);display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:18px 0 0}.author-reading-route .eyebrow{width:100%}.author-reading-route p{display:none}.author-heading h1{font-size:32px}.author-heading h1 strong{font-size:46px}.author-works{grid-template-columns:repeat(3,minmax(0,1fr))}
 .book-intro{grid-template-columns:210px minmax(0,1fr);gap:27px;width:90%}.book-facts{grid-column:1/-1}.large-cover img{height:330px}.book-summary h1{font-size:43px}.book-summary>p:not(.synopsis):not(.subtle-note){font-size:16px}.book-below{display:block}.book-below>div+div{margin-top:25px}
 .search-layout{grid-template-columns:minmax(0,1fr) 205px;gap:22px}.search-result{grid-template-columns:78px minmax(0,1fr);gap:16px}.result-actions{grid-column:2;flex-direction:row}.search-hero{width:76%}.search-hero h1{font-size:46px}.search-layout>.filter-toggle{margin:0}
 .transfer-layout{grid-template-columns:minmax(0,1fr) 270px;gap:20px}.transfer-card{padding:22px;gap:17px}.storage-panel{padding:21px}.data-intro h2{font-size:32px}
}
@media(max-width:760px){
 .site-header{width:100%;height:76px;padding:0 14px}.brand strong{font-size:36px}.brand>img{width:54px;height:54px}.brand small{font-size:8px}.mobile-menu:not([hidden]){top:75px;left:0;width:100%}
 .home-hero{width:88%;margin:0 auto;display:block;min-height:0;padding:32px 0 50px}.home-copy h1{font-size:clamp(38px,9vw,57px);margin:22px 0 20px}.home-copy>p{font-size:18px}.crest-stage{width:170px;margin:24px auto 0;padding:0}.home-scene{background-position:center top}.hero-motto{font-size:7px;letter-spacing:.12em;bottom:18px}
 .discovery{display:block;padding-top:25px}.discovery>div+div{margin-top:30px}.discovery .section-title h2{font-size:28px}.genre-row{min-height:62px}.genre-row>img{width:80px;height:60px}.genre-row>span{font-size:17px}.genre-row>small{font-size:12px}.author-line>span{font-size:16px}.section-title>a{font-size:13px}
 .masthead{width:88%;margin:0 auto;padding:22px 0 28px}.masthead h1{font-size:44px}.masthead>p{font-size:18px}.compact-scene{min-height:0;background-position:center center!important}.compact-scene .masthead{background:#f8f2e165}.breadcrumbs{font-size:12px}
 .catalog-layout{width:96%;padding:20px 10px;border-inline:0}.catalog-main .book-grid,[data-shelf-grid].book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.catalog-main .book-card{padding:11px}.catalog-main .cover-link{height:160px;padding-right:18px}.book-card h3{font-size:17px}.book-author{font-size:13px;min-height:0}.tags>span{font-size:10px}.tags{gap:3px}.results-toolbar{gap:10px}.results-toolbar>div{gap:6px}.sort-label select{max-width:144px;font-size:12px}.pagination button{min-height:44px}
 .directory-overview{display:block;font-size:13px}.directory-overview p{font-size:14px;margin:10px 0}.directory-overview>a{font-size:13px}.directory-overview i{margin:0 9px}.author-editorial{grid-template-columns:112px minmax(0,1fr);padding:18px;gap:18px}.featured-author h2{font-size:32px;margin-top:10px}.featured-author>p{font-size:15px}.editorial-links{font-size:13px}.featured-author .button{font-size:13px}.featured-author .eyebrow{font-size:8px}.author-routes{display:block;padding-top:18px}.author-routes .eyebrow{font-size:9px}.author-routes h3{font-size:24px;margin-top:8px}.author-routes>a{padding:12px 0}.directory-index{padding-top:28px}.directory-index .section-title h2{font-size:27px}.directory-index .section-title{flex-wrap:wrap;gap:10px}.directory-index .section-title>span{font-size:13px}.directory-filters{gap:10px}.directory-filters .standalone-search{width:100%;flex-basis:100%;min-width:0}.directory-select{flex:1}.directory-select select{width:100%;min-height:44px}.author-alphabet{gap:5px}.author-alphabet .letter{min-width:36px;height:42px}.author-grid{grid-template-columns:1fr;gap:10px}.directory-author{padding:16px;gap:18px}.directory-author h2{font-size:23px}.directory-author p{font-size:14px}.directory-author-count{font-size:13px}.directory-bottom{flex-wrap:wrap;gap:18px}.directory-bottom>div{width:100%}
 .genre-intro h2{font-size:30px}.genre-intro p{font-size:16px}.genre-featured{grid-template-columns:1fr;gap:12px}.genre-featured>a{height:144px}.genre-featured b{font-size:31px;max-width:none}.genre-featured span{padding:21px}.genre-featured img{width:48%}.genre-entry{padding:16px;gap:15px}.genre-entry>img{width:62px;height:62px}.genre-entry h3{font-size:25px}.genre-entry p{font-size:14px}.genres-grid{grid-template-columns:1fr;gap:12px}.genre-guides{grid-template-columns:1fr;gap:25px}.genre-guides>div+div{border-left:0;border-top:1px solid var(--line);padding:25px 0 0}.genre-hub .section-title h2{font-size:27px}.genre-hub .section-title{flex-wrap:wrap}.genre-guides h2{font-size:27px}
 .author-intro{grid-template-columns:1fr;width:88%;gap:25px;padding-top:22px}.portrait-frame{width:175px;margin:auto}.author-heading{padding:0}.author-heading h1{font-size:32px}.author-heading h1 strong{font-size:44px}.author-reading-route{grid-column:auto;display:block;padding-top:20px}.author-reading-route h2{font-size:27px}.author-body{width:92%}.author-statistics{padding:18px}.author-statistics b{font-size:21px}.author-works{grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 15px}.author-works .cover-link{height:205px}.author-works .book-card h3{font-size:18px}.timeline li{font-size:15px}
 .book-intro{grid-template-columns:1fr;width:88%;gap:22px}.large-cover{width:180px;margin:auto}.large-cover img{height:auto}.book-facts{grid-column:auto}.book-breadcrumb{margin:18px 4%;width:92%}.book-summary h1{font-size:43px}.book-summary .synopsis{font-size:18px}.book-summary>p:not(.synopsis):not(.subtle-note){font-size:17px}.book-actions .button{font-size:14px}.book-summary .availability-note{font-size:12px!important}.book-below .related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.related-grid .cover-link{height:215px}
 .search-layout{grid-template-columns:1fr}.search-hero{width:88%;text-align:left;padding:24px 0 32px}.search-hero h1{font-size:43px}.search-hero>p{font-size:22px}.search-hero .search-form{width:100%;max-width:100%;margin:0}.search-result{grid-template-columns:72px minmax(0,1fr);gap:14px}.search-result>a>img{width:72px;height:104px}.search-result h2{font-size:24px}.result-actions{grid-column:2;flex-wrap:wrap}.search-suggestions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.search-suggestions .paper-quote{grid-column:1/-1}.search-main .section-title h2{font-size:28px}
 .data-seal{display:none}.data-intro h2{font-size:31px}.data-intro p{font-size:17px}.data-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.data-stats>div:nth-child(2){border:0}.transfer-layout{grid-template-columns:1fr}.transfer-card{padding:21px 18px;gap:15px}.transfer-card h2{font-size:28px}.transfer-card p{font-size:16px}.section-number{font-size:22px}.file-picker input{font-size:12px}.storage-panel{padding:24px}.footer-top{gap:18px}.footer-bottom{gap:8px}.footer-top nav{gap:10px}.footer-top nav a{font-size:13px}
}
@media(max-width:370px){.author-editorial{grid-template-columns:1fr}.featured-portrait{width:130px;margin:auto}.featured-author{text-align:left}.featured-author h2 br{display:none}.catalog-main .cover-link{height:145px}.genre-entry>img{width:54px;height:54px}.genre-entry{padding:14px;gap:12px}.genre-entry h3{font-size:23px}.transfer-card{display:block}.section-number{display:inline-block;margin-bottom:15px}}
/* Reading repairs: sticky rail's parent stretches to article height. No nested rail scrollbar. */
body.reader-page .site-header{width:min(96%,2000px);margin:0 auto;height:94px}.reader-page .brand strong{font-size:44px}.reader-page .brand>img{width:66px;height:66px}.reader-page .desktop-nav{gap:clamp(18px,2.1vw,36px)}.reader-page .desktop-nav>a{font-size:17px}.reader-page .desktop-nav .nav-data{font-size:14px}.reader-page .desktop-nav .nav-search{font-size:17px}
.r-layout-frame{width:min(var(--r-page-width),2000px);max-width:2000px;margin:18px auto 0}
.r-shell{grid-template-columns:clamp(226px,20%,290px) minmax(0,1fr) 76px;gap:14px;align-items:start}
.r-rail{align-self:stretch;min-width:0;height:auto}
.r-tools{position:sticky;top:12px;display:grid;gap:5px;padding:6px;border:1px solid var(--r-border);background:var(--r-panel);border-radius:5px;max-height:none!important;overflow:visible!important;overscroll-behavior:auto}
.r-tool{min-height:46px;height:clamp(46px,calc((100dvh - 120px)/7),64px);padding:5px 2px;gap:4px;font-size:12px;line-height:1.1;box-shadow:none}
.r-tool .r-icon{width:22px;height:22px}.r-tool [data-r-label]{overflow-wrap:normal}
.r-sidebar{position:sticky;top:12px;max-height:none;min-height:0;overflow:visible;padding:20px 17px 14px;scrollbar-gutter:auto}
.r-book{display:grid;grid-template-columns:62px minmax(0,1fr);align-items:start;gap:13px;margin-bottom:20px}.r-book>a{width:62px}.r-book img{width:62px;height:auto}.r-book h2{font-size:20px;line-height:1.2;margin:0 0 8px;overflow-wrap:normal;hyphens:auto}.r-book .text-link{font-size:14px;line-height:1.45;text-decoration:none;color:var(--r-muted);hyphens:auto;overflow-wrap:normal}
.r-toc-tabs{gap:12px;margin-bottom:12px}.r-toc-tabs button{font-size:14px;min-height:40px;padding:8px 0}.r-toc-search{font-size:14px;min-height:42px;margin-bottom:9px}.r-nav-scroll{max-height:clamp(144px,calc(100dvh - 334px),500px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#af966b transparent;min-height:0}.r-nav-scroll a{font-size:15px;min-height:44px;padding:11px 10px}.r-sidebar .r-about{font-size:14px;min-height:39px;padding:9px 3px}.r-nav-window{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:8px 0;font:12px/1.4 Arial,sans-serif;color:var(--r-muted)}.r-nav-window button{border:1px solid var(--r-border);min-height:36px;padding:5px 8px;border-radius:3px;color:var(--r-accent)}
.r-paper{padding:36px clamp(20px,2.2cqw,44px) 0;min-width:0;background:var(--r-bg)}
.r-reading-heading{margin-bottom:30px}.r-reading-heading h1{font-size:clamp(32px,3.5cqw,49px)}.r-reading-heading h2{font-size:28px}
/* Width is explicit. The old mobile/max-width rule must never reset a requested width. */
.reader-page #reading-content.r-text{width:min(100%,var(--r-text-width));max-width:100%;margin-inline:auto;box-sizing:border-box;min-width:0;flex:none;font-size:var(--r-size);font-family:var(--r-font)}
.reader-page #reading-content.is-verse{width:min(100%,var(--r-text-width));max-width:100%;text-align:left}.reader-page #reading-content.is-verse .verse-line{width:fit-content;max-width:100%;margin-inline:auto;padding-left:1em;text-indent:-1em}
.r-text.is-verse .verse-line{margin-inline:0!important}.r-paper[data-mode=poetry] #reading-content{max-width:100%;width:min(100%,var(--r-text-width));display:grid;grid-template-columns:minmax(0,max-content);justify-content:center}
.r-backdrop{background-size:cover!important;background-position:center top;position:fixed;inset:0;pointer-events:none}
.r-breadcrumb{width:min(96%,2000px);max-width:2000px;padding:15px 18px}.r-breadcrumb .breadcrumbs{font-size:13px}
.reader-page .motto{width:min(96%,2000px);margin-top:18px}.reader-page .site-footer{font-size:14px}.reader-page .footer-top nav a{font-size:14px}
/* Small, non-modal popovers. They neither dim the whole page nor block text scrolling. */
.r-dialog{position:fixed;z-index:80;top:12px;right:106px;left:auto;bottom:auto;margin:0;width:370px;max-width:calc(100vw - 120px);max-height:calc(100dvh - 24px);background:var(--r-panel);box-shadow:0 7px 28px #1c170a30;border:1px solid var(--r-border);border-radius:6px;overflow:hidden;font-size:14px}
.r-dialog::backdrop{background:transparent}.r-dialog[open]{display:flex;flex-direction:column}.r-dialog-header{padding:13px 16px;gap:14px;flex-shrink:0}.r-dialog-header h2{font-size:26px}.r-close{width:38px;height:38px;min-height:38px;min-width:38px}.r-dialog-body{padding:18px 16px;max-height:calc(100dvh - 165px);overflow-y:auto;min-height:0;box-shadow:none}.r-dialog:not(#r-settings) .r-dialog-body{max-height:calc(100dvh - 104px)}
.r-settings-grid{grid-template-columns:1fr;gap:16px}.r-control-title label{font-size:14px}.r-number-wrap input{width:73px;font-size:14px}.r-control input[type=range]{height:28px}.r-control select{min-height:42px;font-size:14px}.r-control .r-note{font-size:11px;line-height:1.5;margin-top:6px}.r-dialog .r-note{font-size:12px;line-height:1.55}.r-dialog .r-quick-size{gap:8px;margin-bottom:16px;padding-bottom:15px}.r-quick-size>span{font-size:13px}.r-quick-size button{width:38px;height:38px;font-size:17px}.r-quick-size output{font-size:14px;min-width:44px}.r-dialog .r-dialog-actions{padding:12px 16px;margin:0;border-top:1px solid var(--r-border);background:var(--r-panel);display:flex;gap:10px;flex-shrink:0}.r-dialog-actions .button{font-size:13px;min-height:42px;padding:8px 11px;line-height:1.35}.r-dialog-actions [data-r-action=reset-settings]{flex:1}.r-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.r-theme{font-size:13px;min-height:56px;padding:9px;gap:9px}.r-swatch{width:24px;height:24px}.r-control [data-r-print-margin]{margin-top:12px}.r-panel-hint{font:11px/1.5 Arial,sans-serif;color:var(--r-muted);margin:12px 0 0}
.r-focused .r-shell{grid-template-columns:minmax(0,1fr) 76px}.r-focused .r-layout-frame{width:96%;max-width:1700px;margin-top:64px}.r-focused .r-tools{top:64px}
@container readerframe (max-width:1080px){.r-shell{grid-template-columns:minmax(0,1fr) 76px;gap:12px}.r-sidebar{display:none}.r-paper{padding-inline:26px}}
@media(min-width:1760px){.reader-page .site-header{height:100px}.reader-page .desktop-nav>a{font-size:18px}.r-shell{grid-template-columns:290px minmax(0,1fr) 84px;gap:20px}.r-tool{font-size:13px}.r-paper{padding-top:42px}.r-reading-heading h1{font-size:49px}.r-sidebar{padding:22px}.r-book{grid-template-columns:76px minmax(0,1fr);gap:15px}.r-book>a,.r-book img{width:76px}.r-book h2{font-size:23px}.r-book .text-link{font-size:16px}}
@media(min-width:1101px){body.reader-page .site-header .desktop-nav{display:flex}body.reader-page .site-header .menu-toggle{display:none}}
@media(max-width:1100px){body.reader-page .site-header{height:82px;justify-content:space-between;width:96%}.reader-page .brand strong{font-size:40px}.reader-page .brand small{font-size:8px}.reader-page .site-header .desktop-nav{display:none}.reader-page .site-header .menu-toggle{display:flex}.reader-page .mobile-menu:not([hidden]){top:81px;left:2%;width:96%}.r-dialog{right:98px}}
@media(min-width:761px) and (max-height:540px){.r-tool{height:44px;min-height:44px;font-size:10px;gap:2px;padding:3px}.r-tool .r-icon{width:19px;height:19px}.r-tools{gap:3px;padding:4px}.r-sidebar{position:static}.r-focused .r-tools{top:64px}}
@media(min-width:761px) and (max-height:420px){.r-tools{grid-template-columns:repeat(2,minmax(0,1fr))}.r-tool{height:43px;min-height:43px}.r-tool [data-r-label]{display:none}}
@media(max-width:760px){
 body.reader-page{--r-tool-bottom:68px;padding-bottom:calc(var(--r-tool-bottom) + env(safe-area-inset-bottom))}.reader-page .site-header{width:100%!important;height:76px!important;padding:0 12px!important}.reader-page .brand strong{font-size:36px}.reader-page .brand>img{width:54px;height:54px}.reader-page .brand small{font-size:8px}.reader-page .mobile-menu:not([hidden]){top:75px;left:0;width:100%}
 .r-breadcrumb{width:100%;padding:12px 16px}.r-layout-frame,.r-focused .r-layout-frame{width:100%;margin:0;max-width:none}.r-shell,.r-focused .r-shell{display:block}.r-paper{padding:30px 18px 0;border-radius:0;min-height:60vh}.r-reading-heading h1{font-size:34px}.r-reading-heading h2{font-size:25px}.r-reading-heading{margin-bottom:28px}.r-sidebar{display:none}
 .r-rail{position:fixed;left:0;right:0;bottom:0;z-index:40;padding:6px 8px calc(6px + env(safe-area-inset-bottom));border-top:1px solid var(--r-border);background:var(--r-panel)}.r-tools,.r-focused .r-tools{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;position:static;padding:0;border:0;border-radius:0;max-height:none!important;overflow:visible!important}.r-tool{height:54px;min-height:54px;font-size:10px;gap:4px;padding:5px 0;border-radius:3px}.r-tool .r-icon{width:21px;height:21px}
 .r-dialog{left:8px!important;right:8px!important;top:auto!important;bottom:calc(var(--r-tool-bottom) + env(safe-area-inset-bottom) + 7px)!important;width:auto;max-width:none;max-height:48dvh;border-radius:7px}.r-dialog-header{padding:10px 12px}.r-dialog-header h2{font-size:23px}.r-dialog-body,.r-dialog:not(#r-settings) .r-dialog-body{padding:14px 12px;max-height:calc(48dvh - 122px)}.r-dialog:not(#r-settings) .r-dialog-body{max-height:calc(48dvh - 59px)}.r-dialog .r-dialog-actions{padding:10px 12px}.r-settings-grid{grid-template-columns:1fr}.r-theme-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.r-theme{font-size:11px;padding:8px;gap:6px}.r-swatch{width:20px;height:20px}.r-focus-exit{font-size:12px}.r-focused .r-paper{padding-top:75px}.r-mini-player{bottom:calc(var(--r-tool-bottom) + env(safe-area-inset-bottom) + 8px)}.r-chapter-nav{gap:8px}.r-chapter-nav .button{font-size:13px;padding:9px 11px}
}
@media(max-width:400px){body.reader-page{--r-tool-bottom:116px}.r-tools,.r-focused .r-tools{grid-template-columns:repeat(4,minmax(0,1fr))}.r-tool{height:48px;min-height:48px;font-size:11px}.r-theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.r-dialog .r-quick-size>span{font-size:12px}.r-dialog .r-quick-size{gap:7px}.r-dialog-actions .button{font-size:12px}}
@media(max-width:760px) and (max-height:450px){body.reader-page{--r-tool-bottom:58px}.r-tools,.r-focused .r-tools{grid-template-columns:repeat(7,minmax(0,1fr))}.r-tool{height:44px;min-height:44px;font-size:10px}.r-dialog{max-height:65dvh}.r-dialog-body{max-height:calc(65dvh - 116px)}.r-dialog:not(#r-settings) .r-dialog-body{max-height:calc(65dvh - 56px)}}
@media print{.r-rail,.r-dialog,.r-nav-scroll,.r-sidebar,.r-backdrop,.r-focus-exit,.r-mini-player{display:none!important}.reader-page #reading-content.r-text{width:100%!important;max-width:none!important;font-size:12pt!important}.r-paper{padding:0!important;min-height:0!important}.r-reading-heading{margin-bottom:20pt}.r-reading-heading h1{font-size:24pt}.r-reading-heading h2{font-size:17pt}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
@media(min-width:1200px){
 .r-panel-reserve .r-shell{grid-template-columns:minmax(0,1fr) 370px 76px;gap:14px}
 .r-panel-reserve .r-sidebar{display:none}
 .r-panel-reserve .r-paper{grid-column:1}
 .r-panel-reserve .r-rail{grid-column:3}
}
/* Short section headers use the corresponding wide source, not a stretched full-height room. */
.compact-scene{background-image:url('../backgrounds/reader-room-hd.png');background-position:center top}
@media(max-width:760px){.compact-scene{background-image:linear-gradient(#f8f2e18c,#f8f2e1a0),url('../backgrounds/reader-room-hd.png')}}
/* Short utility/error pages end with the footer at the viewport bottom. */
body:not(.reader-page){display:flex;flex-direction:column;min-height:100dvh}
body:not(.reader-page)>.site-footer{margin-top:auto}
.r-tool[aria-expanded=true]{background:var(--r-selected);color:var(--r-accent);border-color:var(--r-accent)}
