﻿/* Section three: full-width PDF reader and responsive controls. */
.book-preview{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 7% 95%,#00674770,transparent 45%),radial-gradient(ellipse at 90% 45%,#00644250,transparent 55%),#002d1e;color:#fff9e5;padding:88px 0 64px;scroll-margin-top:20px}
.book-preview:before{content:'';position:absolute;inset:0;z-index:-1;opacity:.09;background-image:repeating-linear-gradient(35deg,transparent 0 22px,#35936c 23px,transparent 24px),repeating-linear-gradient(-35deg,transparent 0 22px,#35936c 23px,transparent 24px);mask-image:linear-gradient(120deg,#000,transparent 45%)}
.bp-arc{position:absolute;top:0;left:-2%;width:104%;height:65px;overflow:visible;fill:none;stroke:#d6b85f;stroke-width:1.5;filter:drop-shadow(0 0 3px #f7d47a88)}
.bp-arc .bp-arc-light{stroke:#fff6cb;stroke-width:3;stroke-dasharray:.13 1;stroke-dashoffset:1;opacity:0;filter:drop-shadow(0 0 7px #fff3a0)}
.bp-container{max-width:1320px;width:calc(100% - 96px);padding-right:56px}
.bp-heading{text-align:left;margin:0 0 32px}.bp-heading h2{color:#fff9e7;font-size:clamp(30px,3.4vw,49px);line-height:1.5;letter-spacing:-1px}.bp-heading h2 span{color:#efca70}.bp-heading p{font-size:17px;margin-top:10px;color:#d3e5d4}.bp-heading:after{content:'';display:block;width:125px;height:6px;margin-top:19px;border-radius:8px;background:linear-gradient(90deg,#fbe19a,#e5a63d)}
.bp-layout{display:grid;grid-template-columns:minmax(310px,.85fr) minmax(0,1.65fr);gap:66px;align-items:stretch}
.bp-sidebar,.bp-reader{min-width:0;border:1px solid #d9bd70;border-radius:20px;background:linear-gradient(145deg,#00533360,#00261950);box-shadow:inset 0 0 30px #29a76b10,0 16px 32px #0002}
.bp-sidebar{padding:18px 14px;display:flex;flex-direction:column;gap:22px}.bp-tabs{display:grid;grid-template-columns:1fr 1fr 1.12fr;border:1px solid #a68f50;border-radius:10px;background:#003c2880}.bp-tabs button{color:#fff4cb;border:0;border-radius:9px;background:transparent;padding:12px 4px;font-size:14px;font-weight:700;line-height:1.7;min-height:52px;cursor:pointer}.bp-tabs button[aria-selected=true]{color:#002c1c;background:linear-gradient(125deg,#f7dc83,#eab347);box-shadow:0 0 18px #f4d28030,inset 0 1px 1px #fff9d3}
.bp-caption{min-height:170px;padding:8px 4px 0}.bp-caption h3{font-size:25px;color:#fff8de;line-height:1.6;margin:0 0 12px}.bp-caption p{font-size:15px;color:#d9e7d9;line-height:1.9;margin:0}
.bp-page-list{display:grid;gap:8px}.bp-page{display:flex;align-items:center;gap:9px;width:100%;padding:10px;border:1px solid #b69b54;border-radius:9px;background:#002f2180;color:#fff8de;text-align:left;font-size:15px;line-height:1.7;cursor:pointer;min-height:51px}.bp-page.is-active{background:linear-gradient(120deg,#f9dc85,#e8ae42);color:#002d1c;font-weight:700;box-shadow:0 2px 12px #e5ca6b25}.bp-page-number{font-size:14px;color:#e2c377;min-width:23px;text-align:center}.bp-page.is-active .bp-page-number{color:#35411f}.bp-chevron{margin-left:auto;font-size:27px;line-height:1}.bp-page:hover:not(.is-active){background:#126442}.bp-select,.bp-mobile-label{display:none}
.bp-position{display:flex;align-items:center;justify-content:center;gap:15px;color:#f7e1a0;font-size:16px;margin:5px 4px 0}.bp-position:before,.bp-position:after{content:'';flex:1;height:2px;background:linear-gradient(90deg,#b89137,#efcd72)}
.bp-reader{position:relative;align-self:start;--bp-header-height:70px;--bp-footer-height:52px}
.bp-reader-header{height:var(--bp-header-height);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 18px;border-bottom:1px solid #c4a854;border-radius:20px 20px 0 0;background:#003321}.bp-reader-header h3{font-size:25px;line-height:1.5;margin:0;color:#fff8df}
.bp-open{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:44px;border:1px solid #f1d18a;border-radius:10px;padding:8px 17px;background:linear-gradient(115deg,#f8dd89,#e8ae42);color:#002d1e;font-size:18px;font-weight:700;box-shadow:0 0 15px #e2cb7220;cursor:pointer;white-space:nowrap}.bp-open .icon{width:24px;height:24px}.bp-open:hover{filter:brightness(1.08)}
.bp-stage{position:relative;aspect-ratio:900 / 1273;width:100%;padding:8px;background:#003c28}
.bp-stage>img{display:block;width:100%;height:100%;object-fit:contain;transition:opacity .16s ease}.bp-stage.is-loading>img{opacity:.25}.bp-stage>p{position:absolute;inset:auto 15px 15px;text-align:center;background:#002d1e;padding:12px;border:1px solid #d9bd70;font-size:13px}
.bp-controls{height:var(--bp-footer-height);border-top:1px solid #c4a854;display:flex;align-items:center;justify-content:center;border-radius:0 0 20px 20px}
#sample-page{font-size:19px;color:#fff0bb;white-space:nowrap}
/* Outside the frame; vertically centered on the actual page. */
.bp-nav{position:absolute;z-index:1;top:calc((100% + var(--bp-header-height) - var(--bp-footer-height)) / 2);transform:translateY(-50%);width:44px;height:44px;border:1px solid #edcc6d;border-radius:50%;background:linear-gradient(135deg,#165636,#002d1d);color:#fff5c5;box-shadow:0 0 12px #e1ce6320;font:36px/1 Georgia,serif;cursor:pointer;padding:0 0 5px}.bp-reader .bp-prev{left:-55px}.bp-reader .bp-next{right:-55px}.bp-nav:disabled{opacity:.4;cursor:default}.bp-nav:hover:not(:disabled){background:#216b43}
.book-preview button:focus-visible,.book-preview select:focus-visible,.bp-dialog button:focus-visible,.bp-dialog .dialog-scroll:focus-visible{outline:3px solid #fff2ab;outline-offset:3px}
.bp-dialog{inset:0;margin:0;width:100vw;height:100dvh;border-radius:0;background:#002d1e;color:#fff4ce}.bp-dialog .dialog-header{background:#003e29;border-color:#ab9455;color:#fff4ce}.bp-dialog .dialog-header small{color:#dac58b}.bp-dialog .dialog-control{background:#07563a;border-color:#b79a58;color:#fff1bb}.bp-dialog .dialog-control:disabled{opacity:.3}.bp-dialog .dialog-scroll{padding:20px 24px 40px}.bp-dialog .dialog-scroll img{width:auto;height:100%;max-width:100%;object-fit:contain}.bp-dialog .dialog-scroll.is-zoomed img{width:2000px;height:auto;max-width:none;margin:0}.bp-dialog[open]{animation:bp-dialog-in .2s ease-out}.bp-dialog::backdrop{background:#001e17e8}
.book-preview.bp-motion-ready:not(.bp-entered) .bp-heading,.book-preview.bp-motion-ready:not(.bp-entered) .bp-sidebar,.book-preview.bp-motion-ready:not(.bp-entered) .bp-reader{opacity:0;transform:translateY(20px)}
.bp-motion-ready.bp-entered .bp-arc-light{animation:bp-sweep .6s ease-in-out both}.bp-motion-ready.bp-entered .bp-heading{animation:bp-rise .45s .45s both}.bp-motion-ready.bp-entered .bp-sidebar{animation:bp-rise .45s .58s both}.bp-motion-ready.bp-entered .bp-reader{animation:bp-rise .45s .7s both}
@keyframes bp-sweep{0%{opacity:0;stroke-dashoffset:1}15%,85%{opacity:1}100%{opacity:0;stroke-dashoffset:-.15}}@keyframes bp-rise{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@keyframes bp-dialog-in{from{opacity:0;transform:scale(.98)}to{opacity:1;transform:scale(1)}}
@media(max-width:1100px) and (min-width:769px){.bp-container{width:calc(100% - 40px);padding-right:44px}.bp-layout{grid-template-columns:minmax(270px,.95fr) minmax(0,1.55fr);gap:52px}.bp-sidebar{padding:12px 10px}.bp-tabs button{font-size:12px;min-height:48px}.bp-caption h3{font-size:22px}.bp-caption p{font-size:14px}.bp-page{font-size:13px;padding:8px}.bp-nav{width:36px;height:36px}.bp-reader .bp-prev{left:-45px}.bp-reader .bp-next{right:-45px}.bp-reader-header{padding:10px}.bp-reader-header h3{font-size:19px}.bp-open{font-size:14px;padding:8px 10px}.bp-open .icon{width:20px}#sample-page{font-size:16px}}
@media(max-width:768px){.book-preview{padding:64px 0 36px}.bp-container{width:calc(100% - 24px);max-width:740px;padding:0}.bp-arc{height:40px}.bp-heading{margin-bottom:23px;padding-inline:7px}.bp-heading h2{font-size:29px;letter-spacing:-.6px}.bp-heading p{display:none}.bp-heading:after{width:83px;height:5px;margin-top:14px}.bp-layout{grid-template-columns:minmax(0,1fr);gap:14px}.bp-sidebar{display:contents}.bp-tabs{order:1;margin:0 5px}.bp-tabs button{font-size:14px;padding:10px 3px;min-height:48px}.bp-pages{order:2;margin:0 5px}.bp-page-list,.bp-position{display:none}.bp-mobile-label{display:block;font-size:12px;color:#ddcea2;margin-bottom:5px}.bp-select{display:block;width:100%;min-height:44px;font:inherit;font-size:14px;color:#fff2c7;background:#064b33;border:1px solid #a89057;border-radius:8px;padding:8px 9px}.bp-select option{background:#003c29}.bp-reader{order:3;width:100%;border-radius:16px;--bp-header-height:65px;--bp-footer-height:70px}.bp-reader-header{padding:10px;border-radius:16px 16px 0 0;gap:8px}.bp-reader-header h3{font-size:19px}.bp-open{font-size:15px;padding:8px 10px;min-height:44px;border-radius:9px;gap:5px}.bp-open .icon{width:19px;height:19px}.bp-stage{padding:5px}.bp-controls{justify-content:space-between;padding:10px 13px;border-radius:0 0 16px 16px}.bp-nav{position:static;transform:none;flex-shrink:0;width:44px;height:44px;font-size:35px}#sample-page{font-size:17px}.bp-caption{order:4;margin:0 5px;padding:17px 15px;min-height:168px;background:#00442b70;border-radius:15px}.bp-caption h3{font-size:23px;line-height:1.6;margin-bottom:9px}.bp-caption p{font-size:15px;line-height:1.9}.bp-dialog .dialog-header{align-items:flex-start;flex-wrap:wrap;padding:10px 12px;gap:7px}.bp-dialog .dialog-header>div:first-child{width:100%}.bp-dialog .dialog-actions{width:100%;justify-content:flex-end}.bp-dialog .dialog-actions button:last-child{margin-left:auto}.bp-dialog .dialog-actions span{display:inline}.bp-dialog .dialog-scroll{padding:14px 10px 30px}.book-preview.bp-motion-ready:not(.bp-entered) .bp-sidebar{opacity:1;transform:none}.bp-motion-ready.bp-entered .bp-sidebar{animation:none}.bp-motion-ready.bp-entered .bp-heading{animation-delay:.25s;animation-duration:.25s}.bp-motion-ready.bp-entered .bp-reader{animation-delay:.4s;animation-duration:.25s}.bp-motion-ready.bp-entered .bp-arc-light{animation-duration:.35s}}
@media(prefers-reduced-motion:reduce){.book-preview *,.book-preview *:before,.book-preview *:after,.bp-dialog[open]{animation:none!important;transition:none!important}.book-preview.bp-motion-ready .bp-heading,.book-preview.bp-motion-ready .bp-sidebar,.book-preview.bp-motion-ready .bp-reader{opacity:1!important;transform:none!important}}

