*{box-sizing:border-box}body{margin:0;background:#eef3f8;color:#172d4f;font:15px/1.5 "Segoe UI",Arial,sans-serif}a{color:#071689}button,select,a{touch-action:manipulation}button,select{font:inherit}button,.fb-toolbar a{border:1px solid #c7d4e1;background:#fff;color:#071689;padding:9px 13px;border-radius:5px;cursor:pointer;text-decoration:none;white-space:nowrap}button:hover,.fb-toolbar a:hover{background:#e3edf7}button:disabled{opacity:.45;cursor:default}button:focus-visible,a:focus-visible,select:focus-visible,summary:focus-visible,#stage:focus-visible{outline:3px solid #007eaa;outline-offset:3px}#viewer{max-width:1500px;margin:auto;padding:20px;min-width:0;height:100vh;height:100dvh;display:flex;flex-direction:column}.fb-header{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:16px}.fb-brand{font-weight:800;font-size:20px;letter-spacing:.02em;text-decoration:none}.fb-brand span{font-weight:500;font-size:12px;margin-left:16px;color:#48576a}h1{font-size:22px;line-height:1.25;margin:6px 0 0}.book-label{font-size:12px;color:#48576a}.book-label select{display:block;border:1px solid #c7d4e1;border-radius:5px;padding:8px;background:white;color:#172d4f;max-width:100%}.fb-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px;background:#fff;border-radius:8px;border:1px solid #d8e0e9}.fb-spacer{flex:1}.page-label{display:flex;gap:7px;align-items:center;font-size:13px}.page-label select{max-width:220px;width:155px;padding:9px 6px;border:1px solid #c7d4e1;border-radius:5px;background:white}#status{margin:8px 0 0;font-size:13px;color:#48576a;min-height:20px}#stage{flex:1;min-height:0;margin-top:8px;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative;background:radial-gradient(ellipse at center,#d9e4ef,#cbd8e5);border:1px solid #c3d2e0;border-radius:8px;padding:10px}#book{flex:none}.fb-page{background:#fff;overflow:hidden;position:relative;box-shadow:0 0 8px #172d4f25}.fb-page img{display:block;width:100%;height:100%;user-select:none;pointer-events:none}.page-link{position:absolute;display:block;z-index:5;cursor:pointer;border-radius:2px}.page-link:hover,.page-link:focus-visible{background:#007eaa20;outline:2px solid #007eaa}.fb-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 0;color:#48576a;font-size:12px}.fb-footer #page-status{font-weight:700;color:#172d4f}details{border-top:1px solid #cbd5e1;padding-top:10px}summary{cursor:pointer;font-weight:600;color:#071689}#thumbnails{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:12px;padding-top:16px}#thumbnails button{white-space:normal;text-align:left;padding:8px;font-size:12px;color:#172d4f}#thumbnails img{width:100%;display:block;margin-bottom:8px}#thumbnails button[aria-current=true]{border:2px solid #071689}#text-view{background:#fff;padding:25px;border:1px solid #cbd5e1;border-radius:8px}#text-view article{max-width:800px;margin:auto;padding:15px 0;border-bottom:1px solid #d8e0e9}#text-view h2{font-size:24px;color:#071689}#text-view p{white-space:pre-line;font-size:17px;line-height:1.65}#text-view ul{padding-left:20px}#zoom-dialog{max-width:none;width:96vw;height:96vh;padding:0;border:0;border-radius:8px;background:#eef3f8}#zoom-dialog::backdrop{background:#172d4fcc}#zoom-dialog header{display:flex;align-items:center;gap:12px;padding:12px;background:#fff}#zoom-title{flex:1;font-size:14px}#zoom-scroll{height:calc(100% - 66px);overflow:auto;padding:15px}#zoom-page{position:relative;margin:auto;width:max(850px,70vw);max-width:1800px;background:white}#zoom-page img{display:block;width:100%}#viewer:fullscreen{max-width:none;background:#eef3f8}[hidden]{display:none!important}body.embedded #viewer{padding:10px}body.embedded .fb-brand{font-size:16px}body.embedded h1{font-size:18px}body.embedded .fb-header{margin-bottom:8px}body.embedded .fb-toolbar{padding:8px}body.embedded .fb-footer{padding:8px 0}body.embedded details{display:none}@media(max-width:650px){#viewer{padding:12px}.fb-header{align-items:flex-start;flex-direction:column;gap:10px}.book-label{width:100%}.book-label select{width:100%}.fb-toolbar{gap:6px}.fb-toolbar button,.fb-toolbar a{font-size:13px;padding:8px}.page-label select{width:105px;font-size:13px}.fb-spacer{display:none}#stage{padding:4px}.fb-footer{font-size:12px}#zoom-dialog header{flex-wrap:wrap;gap:5px}#zoom-title{order:4;flex-basis:100%}#zoom-scroll{height:calc(100% - 95px)}body.embedded .fb-header{flex-direction:row;align-items:center}body.embedded .book-label{width:145px}body.embedded h1{font-size:16px}body.embedded .fb-brand span{display:none}body.embedded .fb-footer>span:nth-child(2){display:none}}
#text-view{overflow-wrap:anywhere;flex:1;min-height:0;overflow:auto;margin-top:8px}
.fb-site-links{font-size:12px;margin-top:6px}body.embedded .fb-site-links{display:none}
button.page-link{padding:0;border:0;background:transparent;min-width:0;min-height:0;border-radius:2px}
button.page-link:hover,button.page-link:focus-visible{background:#007eaa20;outline:2px solid #007eaa}

/* Size the reading area from the space left after the wrapping controls. */
.fb-header,.fb-toolbar,#status,.fb-footer,#contents{flex-shrink:0}
.fb-header>div{min-width:0}
#status:empty{display:none}
#contents{max-height:30%;overflow:auto}
#contents summary{position:sticky;top:0;background:#eef3f8;z-index:1}
@media(max-width:650px){body.embedded .book-label{flex-shrink:0}}
