body:has(.catalog-reader){padding:0;overflow:hidden}body:has(.catalog-reader)>header{display:none}body:has(.catalog-reader) .site-header{display:none}body:has(.catalog-reader) .site-footer{display:none}body:has(.catalog-reader) .bottom-nav{display:none}body:has(.catalog-reader) .scroll-to-top{display:none}.catalog-reader{z-index:40;background:var(--green-50);flex-direction:column;height:100dvh;display:flex;position:fixed;inset:0}.reader-header{padding:env(safe-area-inset-top) 12px 0;background:var(--brand-emerald);color:#fff;align-items:center;gap:12px;min-height:56px;display:flex}.reader-header h1{flex:1;margin:0;font-size:18px}.reader-header a,.reader-header button,.reader-toolbar button{width:44px;height:44px;color:inherit;cursor:pointer;background:0 0;border:0;border-radius:6px;flex-shrink:0;place-items:center;display:grid}.reader-toolbar{background:var(--surface);color:var(--brand-emerald);border-bottom:1px solid var(--border);justify-content:center;align-items:center;gap:4px;padding:6px 4px;display:flex}.reader-toolbar form{white-space:nowrap;align-items:center;gap:5px;font-size:13px;display:flex}.reader-toolbar input{text-align:center;border:1px solid var(--border);border-radius:6px;width:48px;min-height:44px;padding:4px;font-size:16px}.reader-toolbar button:disabled{opacity:.35;cursor:default}.catalog-reader a:focus-visible,.catalog-reader button:focus-visible{outline:3px solid var(--brand-blue);outline-offset:-3px}.reader-header a:focus-visible,.reader-header button:focus-visible{outline-color:#fff}.reader-fullscreen-message{top:calc(112px + env(safe-area-inset-top));z-index:3;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:12px;position:absolute;inset-inline:12px}.reader-scroll{inset:calc(112px + env(safe-area-inset-top)) 0 0;overscroll-behavior:contain;padding-bottom:env(safe-area-inset-bottom);position:absolute;overflow:auto}.reader-scroll .pdfViewer{padding-top:8px}.reader-overlay{inset:calc(112px + env(safe-area-inset-top)) 0 0;text-align:center;background:var(--green-50);z-index:2;flex-direction:column;justify-content:center;align-items:center;gap:16px;padding:24px;display:flex;position:absolute}.reader-overlay h2{margin:0;font-size:20px}.reader-overlay p{margin:0}.reader-overlay progress{width:min(260px,80%);accent-color:var(--brand-emerald)}.reader-spinner{border:3px solid var(--green-200);border-top-color:var(--brand-emerald);border-radius:50%;width:36px;height:36px;animation:1s linear infinite reader-spin}@keyframes reader-spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.reader-spinner{animation:none}}@media (max-width:359px){.reader-toolbar{gap:0}.reader-toolbar input{width:40px}.reader-toolbar form{gap:2px;font-size:12px}}
