/* Continuous document scroll; navigation remains inside the viewport. */
.catalog-reader-body{--reader-nav-height:calc(var(--header) + var(--safe-top,0px));--reader-strip-height:0px;--reader-anchor-offset:240px}
.reader-layout{align-items:start}
.reader-sidebar{position:sticky;top:calc(var(--reader-nav-height) + 12px);height:calc(100dvh - var(--reader-nav-height) - 24px);max-height:calc(100dvh - var(--reader-nav-height) - 24px);display:flex;flex-direction:column;align-self:start;overflow:hidden;border-bottom:1px solid #ffffff1c}
.reader-sidebar-header{flex:0 0 auto}
.catalog-thumbnails{flex:1 1 auto;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain;align-content:start;scroll-behavior:auto}
.catalog-thumbnails .page-thumb[hidden]{display:none!important}
.sidebar-pdf{display:block;flex:0 0 auto;padding:16px 20px;border-top:1px solid #ffffff21;color:var(--orange);font-size:11px;line-height:1.5;min-height:48px}
.reader-sidebar #no-pages{flex:0 0 auto;font-size:11px;padding:12px 16px}
.reader-controls{position:sticky;top:calc(var(--reader-nav-height) + var(--reader-strip-height));z-index:8;background:#172125;padding-top:12px;box-shadow:0 10px 20px #10171930}
.reader-toolbar{gap:14px;padding-bottom:12px;flex-wrap:wrap}
.reader-page-meta{padding:12px 0 16px}
.catalog-page-viewport{height:auto;min-height:0;max-height:none;overflow:visible;overscroll-behavior:auto;border:0;background:transparent}
.catalog-page-canvas{width:100%;min-width:0;transition:none;display:flex;flex-direction:column;gap:36px}
.catalog-sheet{min-width:0;scroll-margin-top:var(--reader-anchor-offset);outline-offset:5px}
.catalog-sheet-heading{display:flex;align-items:baseline;gap:16px;padding:17px 0 13px;border-top:1px solid #ffffff24}
.sheet-number{font:11px monospace;color:var(--orange);white-space:nowrap}
.catalog-sheet-heading h3{font-size:15px;line-height:1.6;font-weight:500;color:#dbe5e8}
.catalog-sheet-scroll{width:100%;overflow-x:auto;overscroll-behavior-x:contain;background:#28373d;border:1px solid #40545c}
.catalog-sheet-canvas{width:100%;min-width:100%}
.catalog-full-page{display:block;width:100%;height:auto;max-width:none;background:#fff}
.catalog-sheet-description{font-size:11px;color:#9fb7c0;line-height:1.8;padding-top:13px}
.reader-page-bottom{margin-top:30px}
@media(max-width:900px){.catalog-thumbnails{padding:16px 22px;grid-template-columns:1fr}.sidebar-pdf{padding:14px;font-size:10px}}
@media(max-width:600px){
 .reader-layout{display:flex;flex-direction:column}
 .reader-sidebar{position:sticky;top:var(--reader-nav-height);height:auto;max-height:none;z-index:10;width:100%;border-bottom:1px solid #55717b;box-shadow:0 8px 18px #0003}
 .reader-sidebar-header{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:8px 6%;border:0}
 .reader-sidebar-header label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .reader-sidebar-header input{height:36px;min-width:0;font-size:16px}
 .reader-sidebar-header p{margin:0;align-self:center;font-size:10px}
 .catalog-thumbnails{display:flex;flex:0 0 auto;max-height:112px;gap:10px;padding:4px 6% 9px;overflow-x:auto;overflow-y:hidden}
 .page-thumb{width:52px;flex:0 0 52px}
 .page-thumb img{width:52px;height:74px;object-fit:cover}
 .thumb-title{display:none}.thumb-number{width:19px;height:19px;font-size:9px;top:3px;left:3px}
 .sidebar-pdf{display:none}
 .reader-sidebar #no-pages{padding:6px 6%;font-size:10px}
 .reader-workspace{padding-top:0}
 .reader-controls{padding-top:10px;top:calc(var(--reader-nav-height) + var(--reader-strip-height))}
 .reader-toolbar{gap:8px;align-items:center;padding-bottom:10px}
 .page-navigation{gap:6px}.page-select-label{display:none}.page-navigation select{font-size:12px;min-height:44px}
 .reader-zoom{gap:6px}.reader-page-meta{padding:10px 0 12px}.reader-page-meta h2{font-size:12px}
 .catalog-page-viewport{height:auto;min-height:0;max-height:none}
 .catalog-page-canvas{gap:24px}.catalog-sheet-heading{gap:12px;padding:12px 0 10px}.catalog-sheet-heading h3{font-size:12px}.catalog-sheet-description{font-size:10px}
}
@media(max-height:600px) and (min-width:601px){.reader-sidebar-header{padding-top:12px;padding-bottom:10px}.reader-sidebar-header label{margin-bottom:8px}.reader-sidebar-header p{margin-top:8px}.catalog-thumbnails{padding-top:12px}.sidebar-pdf{padding-top:10px;padding-bottom:10px}}
/* Start navigation below the site header, with the introduction in the reading column. */
.catalog-reader-body .reader-section{margin-top:calc(var(--reader-nav-height) + 12px)}
.catalog-reader-body .reader-workspace>.reader-intro{padding:12px 0 30px;max-width:none;width:100%;margin:0;flex-wrap:wrap}
.catalog-reader-body .reader-workspace>.reader-intro h1{font-size:clamp(32px,3.2vw,48px)}
.catalog-reader-body .reader-workspace>.reader-intro .reader-back{margin-bottom:23px}
@media(max-width:600px){.catalog-reader-body .reader-section{margin-top:var(--reader-nav-height)}.catalog-reader-body .reader-workspace>.reader-intro{padding:24px 0}.catalog-reader-body .reader-workspace>.reader-intro h1{font-size:30px}}
