/* SOKA DIGITAL LIBRARY — blue/cyan editorial, native responsive CSS. */
:root{--ink:#0a2530;--ink2:#183744;--cyan:#26bdcb;--cyan2:#95e5e8;--paper:#f8f9f7;--white:#fff;--muted:#75868e;--line:#e3e9e8;--serif:Georgia,'Times New Roman',serif;--sans:Inter,'Segoe UI',Arial,sans-serif}
*,*:before,*:after{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.35;cursor:not-allowed}img{display:block;max-width:100%}[hidden]{display:none!important}.shell{width:min(1240px,calc(100% - 64px));margin-inline:auto}.no-scroll{overflow:hidden}.eyebrow{display:inline-flex;align-items:center;gap:10px;color:#43808b;font-size:11px;line-height:1.4;letter-spacing:.16em;font-weight:800}.eyebrow.light{color:#a6d7da}.live-dot{width:7px;height:7px;border-radius:50%;background:var(--cyan);box-shadow:0 0 0 5px #26bdcb25}.topbar{background:#fafaf8;position:relative;z-index:20;border-bottom:1px solid #e6ebe8}.topbar-inner{height:84px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:inline-flex;align-items:center;gap:12px}.brand-symbol{position:relative;display:flex;align-items:center;justify-content:center;width:47px;height:47px;border-radius:3px 19px 3px 3px;background:var(--ink);color:white;font-family:var(--serif);font-size:28px}.brand-star{position:absolute;right:-9px;top:-7px;color:#13adbd;font:20px var(--sans)}.brand-copy{display:flex;flex-direction:column;gap:3px}.brand-copy strong{font-size:12px;letter-spacing:.15em;font-weight:900}.brand-copy small{font-size:9px;letter-spacing:.15em;color:#71828b;font-weight:700}.top-nav{display:flex;align-items:center;gap:34px}.top-nav>a{font-size:12px;font-weight:700;color:#465e68;transition:color .2s}.top-nav>a:hover{color:#0593a5}.top-nav .nav-pill{border:1px solid #c8d8d8;color:var(--ink);padding:12px 17px;border-radius:40px}
.library-hero{background:#082631;color:#f5fbfb;overflow:hidden;position:relative}.library-hero:before{content:"";position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;background:linear-gradient(112deg,transparent 20%,#0e374128 60%,#12a8b50a 100%),repeating-linear-gradient(90deg,transparent 0,transparent 118px,#ffffff06 119px,#ffffff06 120px)}.hero-grid{position:relative;min-height:562px;display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:35px}.hero-copy{padding:80px 0 83px;position:relative;z-index:2}.hero-copy h1{font-size:clamp(46px,5.9vw,88px);letter-spacing:-.065em;line-height:1.04;max-width:810px;margin:26px 0 27px;font-weight:700}.hero-copy h1 em{font-family:var(--serif);font-weight:400;letter-spacing:-.07em;color:var(--cyan2)}.hero-copy p{font-size:15px;line-height:1.9;color:#b6ccd0;max-width:525px;margin:0}.hero-cta{margin-top:35px;display:inline-flex;align-items:center;gap:35px;border-bottom:1px solid #5a929a;padding:0 0 12px;font-size:12px;letter-spacing:.04em;font-weight:800}.hero-cta span{font-size:21px;font-weight:400;color:var(--cyan2)}.hero-art{position:relative;height:480px;display:flex;justify-content:center;align-items:center;perspective:1600px}.art-page{position:absolute;width:min(288px,68%);height:390px;border-radius:4px 11px 13px 4px;box-shadow:-20px 20px 56px #0005}.art-page-back{background:#2eb6c3;transform:translate(35px,-9px) rotate(11deg)}.art-page-front{background:linear-gradient(155deg,#f4f6ee,#eaf3ef);color:var(--ink);transform:translate(-7px,8px) rotate(-6deg);padding:28px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:-18px 26px 60px #0007;border-left:7px solid #c6d3d1}.art-page-front>span,.art-page-front>small{letter-spacing:.14em;font-size:8px;font-weight:800}.art-page-front div i{display:block;background:#19b4c6;width:38px;height:38px;border-radius:50% 50% 3px 50%;margin-bottom:15px}.art-page-front div strong{font-size:49px;line-height:.99;letter-spacing:-.06em}.art-corner{position:absolute;top:20px;right:0;font-size:10px;letter-spacing:.18em;color:#8daeb4}.art-corner b{font-weight:500;margin-left:20px}.art-caption{position:absolute;bottom:18px;right:0;font-family:var(--serif);font-size:13px;font-style:italic;color:#87a8ad}.hero-bottom{position:relative;display:flex;align-items:center;justify-content:space-between;height:55px;border-top:1px solid #ffffff26;color:#a3c8cb;font-size:9px;font-weight:800;letter-spacing:.16em}.hero-bottom b{padding-left:7px;font-size:15px;font-weight:400}
.collection-section{padding-top:99px;padding-bottom:125px}.section-intro{display:flex;align-items:end;justify-content:space-between;gap:35px}.section-intro h2,.reader-details h2{font-size:clamp(34px,4vw,57px);letter-spacing:-.055em;line-height:1.08;margin:17px 0 17px}.section-intro h2 em,.reader-details h2 em,.dashboard h1 em,.edit-head h1 em,.auth-card h1 em{font-weight:400;font-family:var(--serif);color:#1596a7}.section-intro p{margin:0;color:#70838a;font-size:14px;line-height:1.8}.small-stats{display:flex;gap:26px;padding-bottom:6px}.small-stats span{display:flex;flex-direction:column;color:#7d8f92;font-size:11px;white-space:nowrap}.small-stats b{font-size:35px;line-height:1.3;font-weight:500;color:var(--ink);letter-spacing:-.06em}.filterbar{margin-top:44px;padding:12px;background:#fff;border:1px solid var(--line);display:flex;align-items:stretch;gap:10px}.search-control{display:flex;align-items:center;gap:10px;flex:1;padding:0 15px}.search-control span{font-size:30px;color:#74a8b0;line-height:1}.search-control input{width:100%;background:none;border:0;outline:none;font-size:13px;color:#183744}.filterbar select{min-width:190px;background:#f4f8f6;border:1px solid #edf0ee;padding:0 18px;color:#38525d;font-size:12px}.button{display:inline-flex;align-items:center;justify-content:space-between;gap:24px;min-height:46px;padding:13px 19px;border:1px solid transparent;font-size:12px;letter-spacing:.01em;font-weight:800;transition:background .2s,color .2s,transform .2s}.button:hover{transform:translateY(-1px)}.button.dark{background:#0c303b;color:#fff}.button.dark:hover{background:#12606b}.button.light{background:white;color:var(--ink)}.button.outline{border-color:#cfdddc;background:transparent;color:var(--ink)}.button.outline:hover{background:#e8f3f0}.button.small{min-height:42px}.button.wide{width:100%;margin-top:15px}.reset-link{align-self:center;padding-inline:12px;font-size:12px;color:#47767f}.catalog-meta{display:flex;justify-content:space-between;color:#7a8c92;font-size:11px;margin:33px 0 18px}.catalog-meta strong{color:var(--ink)}.book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:42px 22px}.book-card{min-width:0;display:block}.book-cover{height:350px;position:relative;overflow:hidden;background:#0c3944;padding:12px;box-shadow:0 6px 20px #0c303b14;transition:transform .25s,box-shadow .25s}.book-card:hover .book-cover{transform:translateY(-5px);box-shadow:0 22px 38px #0c303b22}.book-cover.has-cover{padding:0}.book-cover>img{width:100%;height:100%;object-fit:cover}.book-cover-inner{background:radial-gradient(circle at 90% 5%,#2c919866,transparent 35%),linear-gradient(150deg,#123d4a,#082a36);height:100%;color:white;padding:19px;display:flex;flex-direction:column;justify-content:space-between;border:1px solid #ffffff25}.book-cover:nth-child(even) .book-cover-inner{background-color:#073844}.cover-top,.cover-bottom{display:flex;align-items:center;justify-content:space-between;font-size:8px;letter-spacing:.13em;font-weight:800;color:#d6e8e8}.cover-top span{font-size:22px;color:#40c0cb}.cover-center{display:flex;flex-direction:column;gap:16px}.cover-center small{font-size:9px;color:#a0e2e4;font-weight:900;letter-spacing:.12em}.cover-center strong{font-family:var(--serif);font-size:clamp(22px,2vw,34px);line-height:1.04;letter-spacing:-.05em;font-weight:400;overflow-wrap:anywhere}.cover-bottom{border-top:1px solid #ffffff35;padding-top:16px}.cover-arrow{position:absolute;bottom:0;right:0;display:grid;place-items:center;width:43px;height:43px;background:var(--cyan);color:#062932;font-size:21px;transform:translateY(100%);transition:transform .25s}.book-card:hover .cover-arrow{transform:translateY(0)}.card-meta{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:18px;font-size:9px;letter-spacing:.1em;color:#708f95;font-weight:800}.book-card h3{font-size:18px;line-height:1.35;letter-spacing:-.025em;margin:10px 0 6px}.book-card p{margin:0;color:#809097;font-size:12px}.empty-state{text-align:center;border:1px dashed #c7dbda;background:#f2f7f5;padding:60px 20px}.empty-symbol{font-size:38px;color:#11aab7}.empty-state h3{font-size:22px;letter-spacing:-.04em}.empty-state p{color:#74878e;font-size:13px}.empty-state .button{margin-top:14px}.pager{display:flex;justify-content:center;gap:22px;align-items:center;margin-top:48px;font-size:12px;color:#647e84}.pager a{padding:13px 16px;border:1px solid #cad8d7;color:var(--ink);font-weight:800}.library-end{background:#e9f1ef;padding:55px 0}.end-grid{display:grid;grid-template-columns:1fr 2fr 1fr;align-items:center;gap:35px}.end-grid p{font-family:var(--serif);font-size:25px;line-height:1.3;margin:0;letter-spacing:-.03em}.end-grid a{font-size:11px;font-weight:800;text-align:right}.site-footer{background:#062632;color:#d8e6e6}.footer-inner{min-height:155px;display:flex;justify-content:space-between;align-items:center;gap:35px}.footer-inner strong{letter-spacing:.17em;font-size:12px}.footer-inner p{font-size:12px;color:#8daeb4}.footer-inner>span{font-size:10px;letter-spacing:.06em;color:#8daeb4}
/* Reader */
.reader-page{overflow:hidden}.reader-heading{padding-top:52px;padding-bottom:35px;display:flex;justify-content:space-between;gap:30px;align-items:end}.reader-heading .eyebrow{margin-top:26px}.reader-heading h1{font-size:clamp(30px,3.4vw,50px);letter-spacing:-.05em;line-height:1.12;margin:13px 0 12px;max-width:820px}.reader-heading p{color:#73858a;font-size:13px;margin:0}.back-link{color:#557b83;font-size:12px;font-weight:700;display:inline-block;margin-bottom:4px}.reader-action{display:flex;align-items:center;gap:8px}.reader-outline{background:none;border:1px solid #d6e0dd;padding:10px 15px;display:flex;align-items:center;gap:9px;font-size:12px;color:var(--ink);white-space:nowrap}.reader-outline:hover{background:#e9f4f2}.reader-stage{position:relative;background:#082630;min-height:760px;padding:25px max(20px,calc((100vw - 1240px)/2)) 26px;color:white;display:flex;flex-direction:column;justify-content:space-between;gap:12px}.reader-stage:fullscreen{padding:18px 24px;min-height:100vh}.reader-stage:fullscreen .reader-center{min-height:calc(100vh - 155px)}.reader-stage-top{display:flex;justify-content:space-between;gap:20px;letter-spacing:.17em;font-weight:800;font-size:9px;color:#9dbec3}.reader-top-dot{color:var(--cyan);font-size:9px;padding:0 8px}.reader-center{position:relative;flex:1;min-height:610px;display:flex;align-items:center;justify-content:center}.flipbook{width:100%;height:min(650px,68vw);max-height:650px;min-height:430px;display:flex;align-items:center;justify-content:center}.flipbook .page{background:#fff;color:#263d44;overflow:hidden;box-shadow:inset 2px 0 12px #00000009}.page-paper{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:white}.page-paper canvas{display:block;max-width:100%;max-height:100%;object-fit:contain}.page-number{position:absolute;bottom:9px;right:12px;font-size:8px;color:#87a0a7;background:#ffffffa6;padding:3px}.reader-loading,.reader-error{text-align:center;position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:8;background:#082630}.reader-loading h2,.reader-error h3{font-family:var(--serif);font-weight:400;font-size:28px;margin:20px 0 8px}.reader-loading p,.reader-error p{color:#89aaae;font-size:12px}.loading-wheel{width:35px;height:35px;border:2px solid #27505a;border-top-color:#45c6d0;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.reader-error .button{margin-top:15px}.reader-toolbar{height:62px;max-width:760px;min-width:min(100%,600px);margin-inline:auto;border:1px solid #31515b;background:#102f3a;display:flex;align-items:center;justify-content:center;gap:12px;padding:10px 20px}.reader-toolbar button{background:transparent;border:0;color:#dcecee;font-size:21px;padding:5px 11px}.reader-toolbar button:hover:not(:disabled){color:#40d6e0}.reader-counter{display:flex;gap:9px;font-size:13px;font-weight:800;letter-spacing:.08em}.reader-counter .separator{color:#618893}.reader-toolbar input[type=range]{flex:1;min-width:60px;max-width:330px;accent-color:#43c5ce}.reader-tools-sep{width:1px;height:18px;background:#365662}.reader-details{display:grid;grid-template-columns:1fr 1fr;gap:60px;padding-top:80px;padding-bottom:100px}.reader-details p{font-size:15px;line-height:1.95;color:#62747d;white-space:normal}.details-pills{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.details-pills span{font-size:10px;color:#47757d;border:1px solid #d3e1df;padding:10px 14px}.toc-panel{position:fixed;z-index:65;top:0;right:0;height:100dvh;width:min(390px,100%);background:#f7faf9;box-shadow:-20px 0 80px #071d2455;padding:28px;overflow:auto}.toc-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:23px;border-bottom:1px solid #d6e1e1}.toc-head strong{font-size:20px}.toc-head button{border:0;background:transparent;font-size:20px}.toc-list{margin-top:20px}.toc-item{width:100%;display:flex;gap:10px;justify-content:space-between;text-align:left;background:none;border:0;border-bottom:1px solid #e7eeed;padding:16px 0;font-size:12px;font-weight:700;color:#1f4149}.toc-item:hover{background:#e9f4f2}.toc-item small{color:#83a3a7;font-size:11px}.zoom-overlay{position:fixed;inset:0;background:#0a2029;z-index:70;color:#fff;display:flex;flex-direction:column}.zoom-controls{height:72px;padding:16px 28px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #ffffff25}.zoom-controls strong{letter-spacing:.12em;font-size:11px}.zoom-controls>div{display:flex;gap:7px}.zoom-controls button{background:#234752;color:#fff;border:1px solid #476974;padding:10px 15px}.zoom-canvas-wrap{flex:1;overflow:auto;display:flex;justify-content:center;align-items:flex-start;padding:25px}.zoom-canvas-wrap canvas{max-width:100%;height:auto;box-shadow:0 20px 65px #0006}.flipbook-fallback .page{position:relative;width:min(510px,100%);height:100%;box-shadow:0 20px 60px #0005}.flipbook-fallback .page:not(:first-child){display:none}
/* Admin */
.auth-wrap{min-height:65vh;display:flex;align-items:center;justify-content:center;padding-top:70px;padding-bottom:100px}.auth-card{width:min(490px,100%);background:white;padding:48px;border:1px solid #e1e8e5;box-shadow:0 15px 60px #1136400b}.auth-card h1{font-size:43px;line-height:1.1;letter-spacing:-.05em;margin:18px 0}.auth-card p{font-size:13px;color:#71858a;line-height:1.8}.auth-note{display:block;margin-top:22px;color:#859397;font-size:11px}.stack-form{display:flex;flex-direction:column;gap:19px;margin-top:24px}.stack-form label{display:flex;flex-direction:column;gap:9px;font-size:12px;font-weight:800;color:#31515a}.stack-form label span{color:#0f98ab}.stack-form input:not([type=file]),.stack-form select,.stack-form textarea{width:100%;border:1px solid #dbe6e3;background:#fbfcfb;padding:13px 14px;outline:none;color:var(--ink);font-size:13px;border-radius:0}.stack-form input:focus,.stack-form select:focus,.stack-form textarea:focus{border-color:#1bb1c3;box-shadow:0 0 0 3px #25aeba14}.stack-form input[type=file]{font-size:12px;font-weight:400;width:100%;padding:19px 15px;background:#f5faf8;border:1px dashed #b8d1cf}.stack-form textarea{resize:vertical}.stack-form label small{color:#92a09f;font-size:11px;font-weight:400;line-height:1.5}.notice{padding:15px 18px;border-left:3px solid #17a9bb;background:#ebf8f7;color:#195460;font-size:12px;margin:19px 0}.notice.danger{border-color:#dc7d7d;background:#fff1ef;color:#a63f3f}.dashboard{padding:75px 0 110px}.admin-top{display:flex;align-items:end;justify-content:space-between;gap:30px}.dashboard h1,.edit-head h1{font-size:58px;letter-spacing:-.06em;line-height:1;margin:20px 0}.admin-top p,.edit-head p{color:#6d8187;font-size:13px}.admin-top-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.dashboard-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:42px}.dashboard-stats>div{background:#10323d;color:white;min-height:160px;padding:24px 28px;display:flex;flex-direction:column;align-items:start}.dashboard-stats>div:nth-child(2){background:#144451}.dashboard-stats>div:nth-child(3){background:#0a6b78}.dashboard-stats span{letter-spacing:.13em;font-size:10px;font-weight:800;color:#b2d4d7}.dashboard-stats strong{font-size:54px;font-weight:500;letter-spacing:-.07em;line-height:1.25}.dashboard-stats small{font-size:11px;color:#a2d7dd}.admin-table-card{margin-top:36px;background:white;border:1px solid #e0e8e6}.table-top{padding:30px;display:flex;align-items:end;justify-content:space-between;gap:20px}.table-top h2{font-size:25px;margin:8px 0 0;letter-spacing:-.04em}.table-top>span{font-size:11px;color:#8c9b9c}.table-scroll{width:100%;overflow-x:auto}.admin-table{border-collapse:collapse;width:100%;min-width:840px}.admin-table th{text-align:left;white-space:nowrap;border-bottom:1px solid #e2eae8;border-top:1px solid #e2eae8;background:#f6f9f8;color:#819699;font-size:9px;letter-spacing:.13em;padding:15px 25px}.admin-table td{padding:17px 25px;border-bottom:1px solid #eef2ef;font-size:12px;color:#48646b}.table-title{display:flex;gap:13px;align-items:center}.table-cover{display:flex;flex:0 0 33px;width:33px;height:45px;background:#10404b;color:#9ee2e2;align-items:center;justify-content:center;font-family:var(--serif);font-size:22px}.table-title strong{color:#17323d;font-size:13px;display:block;max-width:300px}.table-title small{font-size:11px;color:#98a5a5;display:block;margin-top:5px}.status-pill{display:inline-flex;padding:6px 10px;font-size:10px;font-weight:800;white-space:nowrap}.status-pill.published{color:#167e8c;background:#e6f7f5}.status-pill.draft{color:#8a7b45;background:#faf4de}.table-actions{display:flex;align-items:center;gap:15px;white-space:nowrap}.table-actions a{color:#117c8c;font-size:11px;font-weight:800}.table-actions button{background:none;border:none;padding:0;font-size:11px}.delete-link{color:#b65454}.admin-hint{margin-top:18px;color:#91a09f;font-size:11px}.edit-page{padding-top:45px;padding-bottom:120px}.edit-head{margin:20px 0 34px}.edit-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}.edit-main{display:flex;flex-direction:column;gap:20px}.edit-panel{background:white;border:1px solid #e1e9e7;padding:30px}.edit-panel h2{font-size:18px;margin:0;letter-spacing:-.02em}.edit-panel>p{font-size:12px;line-height:1.7;color:#778e91}.form-columns{display:grid;grid-template-columns:1fr 160px;gap:14px}.attached-file{background:#f0f7f5;padding:14px;font-size:12px;color:#416970}.attached-file>a{color:#0a889a;font-weight:800}.remove-cover{display:inline-flex!important;align-items:center;flex-direction:row!important;gap:7px;margin-left:15px;font-weight:500!important}.radio-stack{margin:20px 0;display:flex;flex-direction:column;gap:10px}.radio-stack label{border:1px solid #e3ece9;padding:15px;display:flex;align-items:start;gap:10px;cursor:pointer}.radio-stack input{accent-color:#0a8392}.radio-stack span{display:flex;flex-direction:column;gap:5px}.radio-stack strong{font-size:12px}.radio-stack small{font-size:11px;color:#849696}.edit-help{background:#e4f1ef;border-left:3px solid #18aabc;color:#24646e;padding:20px;font-size:10px;letter-spacing:.12em;font-weight:800;margin-top:20px}.edit-help p{font-size:12px;line-height:1.8;letter-spacing:normal;font-weight:400;margin-bottom:0}
@media(max-width:1080px){.book-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.hero-copy h1{font-size:60px}.hero-art{height:410px}.art-page{height:330px;width:245px}.art-page-front div strong{font-size:42px}.end-grid{grid-template-columns:1fr 1.5fr}.end-grid a{grid-column:2;text-align:left}.admin-top{align-items:start;flex-direction:column}.edit-layout{grid-template-columns:minmax(0,1fr) 300px}}
@media(max-width:780px){.shell{width:calc(100% - 36px)}.topbar-inner{height:73px}.top-nav{gap:16px}.top-nav>a:not(.nav-pill){display:none}.top-nav .nav-pill{font-size:10px;padding:9px 13px}.hero-grid{grid-template-columns:1fr;min-height:auto;gap:0}.hero-copy{padding:65px 0 10px}.hero-copy h1{font-size:clamp(45px,9vw,70px)}.hero-copy p{font-size:13px}.hero-art{height:390px}.hero-bottom span:nth-child(2){display:none}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:38px 14px}.book-cover{height:330px}.section-intro{align-items:start;flex-direction:column}.collection-section{padding:70px 0 90px}.filterbar{flex-wrap:wrap}.search-control{min-width:100%;height:45px}.filterbar select{flex:1;min-height:43px}.reader-heading{flex-direction:column;align-items:start}.reader-action{width:100%}.reader-stage{min-height:650px;padding:20px 12px}.reader-center{min-height:490px}.flipbook{height:540px;min-height:360px}.reader-toolbar{min-width:0;width:100%;gap:2px;padding:7px}.reader-toolbar button{padding:5px 8px}.reader-toolbar input[type=range]{max-width:175px}.reader-details{grid-template-columns:1fr;padding-top:55px;padding-bottom:75px;gap:0}.end-grid{grid-template-columns:1fr;gap:17px}.end-grid a{grid-column:auto}.dashboard{padding-top:48px}.dashboard-stats{grid-template-columns:repeat(3,1fr);gap:8px}.dashboard-stats>div{padding:16px;min-height:120px}.dashboard-stats strong{font-size:38px}.dashboard-stats span{font-size:8px}.dashboard-stats small{font-size:9px}.edit-layout{grid-template-columns:1fr}.edit-side{order:-1}.edit-help{display:none}.edit-head h1,.dashboard h1{font-size:44px}.library-end{padding:43px 0}}
@media(max-width:520px){.brand-copy strong{font-size:10px}.brand-copy small{font-size:8px}.brand-symbol{width:40px;height:40px;font-size:24px}.hero-copy{padding-top:52px}.hero-copy h1{font-size:45px}.hero-art{height:320px}.art-page{height:285px;width:206px}.art-page-front{padding:17px}.art-page-front div strong{font-size:36px}.art-caption{bottom:2px;font-size:11px}.hero-bottom{font-size:8px}.hero-bottom span:last-child{display:none}.section-intro h2,.reader-details h2{font-size:38px}.small-stats b{font-size:31px}.small-stats{gap:35px}.filterbar{padding:8px}.filterbar select{min-width:0;width:60%;font-size:11px}.filterbar .button{padding-inline:15px}.book-grid{gap:30px 13px}.book-cover{height:255px;padding:8px}.book-cover-inner{padding:13px}.cover-top,.cover-bottom{font-size:6px}.cover-center strong{font-size:23px}.book-card h3{font-size:14px}.book-card p{font-size:10px}.card-meta{font-size:8px}.reader-heading{padding-top:35px}.reader-heading h1{font-size:31px}.reader-outline{font-size:11px;padding:9px}.reader-stage{min-height:570px}.reader-center{min-height:415px}.flipbook{height:460px;min-height:370px}.reader-stage-top{font-size:7px;letter-spacing:.09em}.reader-toolbar{height:55px}.reader-toolbar button{font-size:18px}.reader-counter{font-size:11px;gap:5px}.reader-tools-sep{display:none}.auth-card{padding:32px 23px}.auth-card h1{font-size:36px}.dashboard-stats{grid-template-columns:1fr 1fr}.dashboard-stats>div:nth-child(3){grid-column:1/-1}.dashboard-stats>div{min-height:105px}.admin-top-actions{width:100%}.edit-head h1{font-size:40px}.edit-panel{padding:22px}.form-columns{grid-template-columns:1fr}.table-top{flex-direction:column;align-items:start}.footer-inner{min-height:140px;flex-direction:column;align-items:start;justify-content:center;gap:10px}.footer-inner p{margin-bottom:0}.zoom-controls{padding:12px}.zoom-controls strong{font-size:9px;letter-spacing:normal}.zoom-controls button{padding:8px;font-size:11px}}

.reader-alternative{display:inline-flex;margin-top:18px;padding:10px 15px;border:1px solid #43636d;color:#a7dce0;font-size:12px;font-weight:700}.reader-alternative:hover{background:#24424d}

/* ==============================================================
   SOKA BOOKS V1.2 — LIGHT EDITORIAL EDITION
   Inspired by the clarity of premium digital publishing interfaces;
   original village identity, no FlippingBook branded assets.
   ============================================================== */
:root{--ink:#172c3b;--ink2:#304b5d;--cyan:#0db6cc;--cyan2:#88e6ed;--paper:#fff;--white:#fff;--muted:#6f8493;--line:#e8edf1;--sans:'Plus Jakarta Sans','Segoe UI',Arial,sans-serif;--serif:'DM Sans',Arial,sans-serif;--blue:#1555ed;--primary:#124cec;--shade:#f3f7fc}
body{background:#fff;color:var(--ink);font-family:var(--sans);letter-spacing:-.012em}
.shell{width:min(1280px,calc(100% - 88px))}
.eyebrow{color:#3e6c85;font-size:10px;letter-spacing:.14em;font-weight:800}
/* Site navigation */
.topbar{background:rgba(255,255,255,.96);border-color:#e8eef3;position:relative;z-index:21}
.topbar-inner{height:86px}.brand{gap:13px}.brand-symbol{border-radius:14px 15px 6px 15px;background:linear-gradient(145deg,#083891,#147bba);font-family:var(--sans);font-weight:800;font-size:23px;width:47px;height:47px;box-shadow:0 8px 19px #1555ed21}.brand-star{font-size:16px;color:#48d9e8;right:-5px;top:-7px}
.brand-copy strong{font-weight:800;font-size:14px;letter-spacing:-.035em}.brand-mark{color:#09acc8}.brand-copy small{font-size:9px;letter-spacing:.125em;font-weight:700;color:#7d92a0}.top-nav{gap:34px}.top-nav>a{font-size:12px;color:#33495a;font-weight:700}.top-nav>a:hover{color:#1555ed}.top-nav .nav-pill{background:#122d43;border:1px solid #122d43;border-radius:9px;color:white!important;padding:13px 18px;box-shadow:0 3px 12px #0d234915}.top-nav .nav-pill:hover{background:#1746aa}.top-nav .nav-pill span{padding-left:10px}
/* Hero: crisp typography + tactile publication mockup */
.library-hero{background:#fff;color:var(--ink);overflow:hidden}
.library-hero:before{background:radial-gradient(ellipse 48% 68% at 90% 42%,#e7f7fc 0%,#f6faff 63%,transparent 90%)}
.hero-grid{min-height:650px;grid-template-columns:1.2fr .8fr;gap:16px}
.hero-copy{padding:104px 0 82px}.hero-kicker{display:flex;align-items:center;gap:10px;font-size:10px;font-weight:800;letter-spacing:.14em;color:#4b6782}.hero-kicker .pulse,.reader-live-dot{width:8px;height:8px;background:#18bdc9;border-radius:50%;display:inline-block;box-shadow:0 0 0 4px #1fbfce23}.kicker-line{height:1px;width:30px;background:#afc9d8;margin:0 3px}
.hero-copy h1{font-size:clamp(47px,5.15vw,77px);font-weight:800;letter-spacing:-.077em;line-height:1.13;margin:25px 0 23px;max-width:780px}
.headline-soft{color:#8095a4}.hero-accent{color:#1558e9}.hero-underline{color:#162f44;position:relative;white-space:nowrap}.hero-underline:after{content:"";position:absolute;left:3%;bottom:-10px;right:1%;height:7px;background:#31d0df;transform:rotate(-2deg);border-radius:100%;z-index:0}
.hero-copy p{max-width:540px;color:#6a7f90;line-height:1.9;font-size:14px}
.hero-buttons{display:flex;align-items:center;gap:29px;margin-top:30px;flex-wrap:wrap}.hero-primary{border-radius:10px;background:#1757ea;color:white;padding:17px 23px;font-size:12px;box-shadow:0 9px 25px #165eea25;gap:23px;min-height:50px}.hero-primary:hover{background:#1245c6;color:white;transform:translateY(-2px)}.hero-primary span{font-size:18px;line-height:1}.hero-secondary{display:inline-flex;align-items:center;gap:22px;font-size:12px;font-weight:800;color:#2d4b61;border-bottom:1px solid #b9c7d0;padding:14px 0}.hero-secondary span{font-size:19px;color:#1c76b8}
.hero-proof{display:flex;align-items:center;gap:12px;margin-top:58px}.proof-icon{display:grid;place-items:center;width:37px;height:37px;border:1px solid #dbeaf0;border-radius:100%;color:#0fb4ca;font-size:19px}.hero-proof strong,.hero-proof small{display:block}.hero-proof strong{font-size:11px;color:#314e62}.hero-proof small{font-size:10px;color:#8ea1ac;margin-top:4px}
.hero-art{height:558px;position:relative;align-self:center;perspective:1100px}.art-glow{position:absolute;width:440px;height:440px;border-radius:50%;background:radial-gradient(circle,#a4dfff 0%,#d8effd 45%,#e9f7ff 65%,transparent 69%);top:60px;left:50%;transform:translateX(-50%)}.art-shadow{position:absolute;width:290px;height:50px;bottom:54px;left:calc(50% - 145px);background:#284d8a21;filter:blur(22px);border-radius:50%;transform:rotate(-6deg)}
.art-page{width:270px;height:396px;border-radius:5px 14px 15px 5px;box-shadow:-18px 23px 30px #234f8230;position:absolute;top:89px;left:calc(50% - 130px)}.art-page-back{background:linear-gradient(155deg,#226bec,#0c2a88);transform:translate(48px,2px) rotate(10deg);display:flex;flex-direction:column;justify-content:space-between;color:white;padding:22px;box-shadow:-15px 14px 20px #164fa52e}.art-page-back .mini-label{font-size:17px;line-height:1.2;font-weight:800;letter-spacing:-.045em}.art-page-back>span{font-size:9px;letter-spacing:.14em;font-weight:800}
.art-page-front{background:#f9fffe;transform:translate(-17px,3px) rotate(-8deg);border-left:8px solid #bdcfd6;box-shadow:-17px 20px 38px #0b356f3c;color:#143853;display:flex;flex-direction:column;justify-content:space-between;padding:24px}.art-page-front .book-top,.art-page-front .book-bottom{display:flex;justify-content:space-between;gap:8px;font-size:8px;letter-spacing:.07em;font-weight:800;color:#527a90}.art-page-front .book-bottom{border-top:1px solid #d2e5e7;padding-top:13px}.book-bottom span{font-size:18px;color:#1472d4}
.book-graphic{height:115px;display:flex;align-items:center;justify-content:center;position:relative}.book-graphic span{position:absolute;border-radius:22px 85px 12px 90px;transform:rotate(-30deg)}.graph-a{width:119px;height:52px;background:#145ad5;top:16px;left:39px}.graph-b{width:118px;height:42px;background:#1fd1d9;top:48px;left:92px}.graph-c{width:80px;height:34px;background:#c9f5f5;top:74px;left:43px}.book-cover-title small{font-size:8px;font-weight:800;letter-spacing:.13em;color:#4d91af;line-height:1.35}.book-cover-title strong{font-size:45px;display:block;line-height:.97;letter-spacing:-.075em;margin-top:12px}.book-cover-title strong span{color:#13b5c8}
.art-bubble{position:absolute;z-index:3;background:white;box-shadow:0 13px 40px #18467b20;border:1px solid #e9f0f5;border-radius:11px;color:#506e86;font-size:10px;font-weight:800;padding:12px 17px;white-space:nowrap}.art-bubble-one{top:44px;right:-4px;transform:rotate(3deg)}.art-bubble-one span{color:#13bec6;padding-left:7px}.art-bubble-two{bottom:75px;left:0;transform:rotate(-4deg)}.art-bubble-two .dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#22cbb7;margin-right:7px}.floating-controls{position:absolute;z-index:4;bottom:12px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:9px;padding:10px 17px;border-radius:100px;background:white;box-shadow:0 10px 35px #2e68971c}.floating-controls span{font-size:18px;color:#67869b}.floating-controls i{height:6px;width:6px;border-radius:50%;background:#c8d7e1}.floating-controls i.on{width:18px;background:#17a9e6;border-radius:10px}
.hero-bottom{height:57px;border-color:#e2ebf2;color:#80909c;font-size:9px;letter-spacing:.14em}.hero-bottom a{color:#3a657d}.hero-bottom a span{padding-left:14px;font-size:15px;color:#176cea}
/* Catalog */
.collection-section{padding-top:108px;padding-bottom:124px}.section-intro h2{font-size:clamp(37px,4.3vw,61px);line-height:1.13;letter-spacing:-.065em;font-weight:800;margin:16px 0}.heading-outline{color:#1558ed}.section-intro p{color:#7e8f9d;max-width:530px;font-size:13px}.small-stats{align-items:center;gap:23px}.small-stats>span{display:flex;flex-direction:column}.small-stats b{font-size:35px;font-weight:800;letter-spacing:-.07em;color:#18364b}.small-stats small{font-size:10px;color:#8297a6;margin-top:4px}.small-stats i{height:46px;width:1px;background:#dce5ed}
.filterbar{margin-top:42px;border:1px solid #e6eef5;background:#f9fbfd;box-shadow:none;padding:9px;border-radius:12px;gap:7px}.search-control{background:white;border:1px solid #eff2f6;border-radius:7px;min-height:48px}.search-control input{font-family:var(--sans);color:#223c50}.search-control span{font-size:24px;color:#3a819b}.filterbar select{border-radius:7px;border:1px solid #eef3f7;background:#fff;color:#455f72;min-width:195px}.filterbar .button.dark{border-radius:7px;background:#143c73;color:white}.filterbar .button.dark:hover{background:#1559d5}
.catalog-meta{margin:34px 0 24px}.catalog-meta strong{font-size:12px;letter-spacing:-.02em}.catalog-meta>span{font-size:9px;letter-spacing:.12em;font-weight:800}
.book-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:45px 23px}.book-cover{height:auto;aspect-ratio:.75;max-height:376px;background:#eaf1f7;border:8px solid #f3f7fa;border-radius:9px;box-shadow:none;overflow:hidden;padding:0}.book-cover:before{content:"";position:absolute;z-index:3;inset:0;pointer-events:none;box-shadow:inset 9px 0 15px #152f4d13}.book-card:hover .book-cover{box-shadow:0 16px 35px #0e4e8920;transform:translateY(-5px)}.book-cover.has-cover{padding:0}.book-cover-inner{border:0;background:radial-gradient(ellipse at 100% 1%,#1a9acb70,transparent 43%),linear-gradient(145deg,#0c427d,#0c2d64);padding:22px;border-radius:2px}.book-card:nth-child(3n+2) .book-cover-inner{background:radial-gradient(circle at 93% 12%,#31d9d45b,transparent 40%),linear-gradient(160deg,#115c89,#063858)}.book-card:nth-child(3n+3) .book-cover-inner{background:radial-gradient(circle at 82% 20%,#3c7ec367,transparent 45%),linear-gradient(158deg,#052e4b,#153a7c)}
.cover-center strong{font-family:var(--sans);font-size:clamp(23px,2.1vw,35px);line-height:1.08;font-weight:800;letter-spacing:-.057em}.cover-center small{font-size:9px;color:#84dfee}.cover-arrow{width:42px;height:42px;background:#155fee;border-radius:8px 0 0 0;color:white}.card-meta{margin-top:16px;color:#5082a0}.book-card h3{font-size:16px;line-height:1.4;font-weight:800;letter-spacing:-.025em;margin:10px 0 5px}.book-card p{font-size:11px;color:#8293a0}.read-link{display:flex;align-items:center;gap:9px;color:#1969db;font-size:11px;font-weight:800;margin-top:14px}.read-link span{font-size:15px}.empty-state{background:#f9fcfe;border-color:#d3e3ee;border-radius:12px}.empty-state h3{font-weight:800}.pager a{border-radius:8px;border-color:#d5e5ef}
/* Three simple steps */
.reading-guide{padding:100px 0;background:#f4f8fc}.guide-heading h2{font-size:clamp(33px,4.2vw,56px);line-height:1.16;font-weight:800;letter-spacing:-.065em;margin:15px 0 44px}.guide-heading h2 em{font-style:normal;color:#1966df}.guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.guide-grid>div{position:relative;border:1px solid #e4edf3;border-radius:12px;background:white;padding:34px;min-height:219px}.guide-num{font-size:10px;letter-spacing:.1em;color:#8e9da9;font-weight:800}.guide-icon{font-size:43px;color:#176ee2;display:block;margin:15px 0 7px;line-height:1}.guide-grid h3{font-weight:800;font-size:17px;letter-spacing:-.04em;margin:12px 0}.guide-grid p{font-size:12px;color:#7b91a1;line-height:1.8;max-width:260px}
.library-end{padding:85px 0;background:#eaf5fc}.end-grid{display:flex;justify-content:space-between;align-items:center;gap:40px}.end-grid h2{font-size:clamp(32px,4.2vw,57px);letter-spacing:-.07em;line-height:1.15;margin:15px 0 0;font-weight:800}.end-grid h2 em{font-style:normal;color:#1759db}.end-grid>a{white-space:nowrap}
.site-footer{background:#12364c;color:#f1fafc}.footer-inner{min-height:165px}.footer-brand{font-size:21px;font-weight:800;letter-spacing:-.05em}.footer-brand span{color:#29ccdb}.footer-brand p{letter-spacing:normal;font-size:11px;font-weight:500;color:#a3bac5}.footer-side{display:flex;flex-direction:column;align-items:end;gap:8px}.footer-side span{font-size:11px;font-weight:700}.footer-side small{font-size:10px;color:#99b2be}
/* Reading experience: neutral stage, white floating controls, tactile shadows */
.reader-page{background:white}.reader-heading{padding-top:51px;padding-bottom:26px;align-items:end}.reader-heading .eyebrow{margin-top:25px;gap:8px}.crumb-dot{color:#c1d5e3}.back-link{color:#57778c;font-size:11px}.reader-title h1{font-family:var(--sans);font-size:clamp(29px,3vw,45px);font-weight:800;letter-spacing:-.06em;line-height:1.17;max-width:900px;margin:10px 0 10px}.reader-heading p{color:#7d93a2;font-size:12px}.reader-meta-divider{color:#b8cbd7;padding:0 8px}.draft-warning{display:inline-block;background:#fff2e6;color:#995d25;padding:7px 11px;margin-top:12px;font-size:10px;font-weight:800;border-radius:4px}.reader-action{gap:9px}.reader-outline{border-radius:8px;border-color:#e0eaf1;font-weight:800;font-size:12px;color:#2d5068;background:#fff}.reader-outline:hover{background:#edf8fc}
.reader-stage{background:radial-gradient(ellipse 55% 100% at 50% 44%,#fff 0%,#f1f6fa 66%,#eaf1f8 100%);padding:20px max(22px,calc((100vw - 1280px)/2)) 30px;gap:12px;min-height:798px;color:#1d3a52;border-top:1px solid #e6eef6;border-bottom:1px solid #e0eaf2}
.reader-stage:fullscreen{background:#edf4fa;padding:20px 30px;min-height:100vh}.reader-stage:fullscreen .reader-center{min-height:calc(100vh - 165px)}
.reader-stage-top{font-size:9px;color:#6c8291;letter-spacing:.14em;font-weight:800}.reader-stage-top>div{display:flex;align-items:center;gap:11px}.reader-live-dot{height:7px;width:7px;box-shadow:none}
.reader-center{min-height:600px}.flipbook{height:min(650px,68vw);max-height:650px;min-height:410px;filter:drop-shadow(0 20px 23px #122f491f)}.flipbook .page{box-shadow:inset 5px 0 13px #0000000c}.reader-loading,.reader-error{background:transparent;color:#244256}.reader-loading h2,.reader-error h3{font-family:var(--sans);font-size:22px;font-weight:800;letter-spacing:-.05em}.reader-loading p,.reader-error p{color:#8195a3;font-size:12px}.reader-alternative{border-radius:7px;border-color:#d5e6f0;color:#27678e}.reader-alternative:hover{background:#e9f2fa}.loading-wheel{border-color:#cfe1ed;border-top-color:#1367ed}
.reader-toolbar{height:60px;border:1px solid #dfe8ef;background:rgba(255,255,255,.98);box-shadow:0 12px 35px #12365812;border-radius:12px;color:#324c60;max-width:800px;min-width:min(100%,600px);gap:14px;padding:9px 16px}.reader-toolbar-group{display:flex;align-items:center;gap:4px}.reader-toolbar button,.reader-toolbar .toolbar-pdf{font-family:var(--sans);font-weight:600;display:grid;place-items:center;background:none;color:#445f73;border:0;min-width:34px;min-height:34px;font-size:23px;padding:5px;border-radius:8px}.reader-toolbar button:hover:not(:disabled),.reader-toolbar .toolbar-pdf:hover{background:#eff6fb;color:#145ee5}.reader-toolbar .toolbar-pdf{font-size:17px}.reader-tools-sep{background:#e3ebf1;width:1px;height:24px;flex:0 0 1px}.reader-counter{min-width:85px;font-weight:800;letter-spacing:.01em;font-size:12px;color:#173a50}.reader-counter .separator{color:#9aaebc}.reader-toolbar input[type=range]{accent-color:#1559e7;max-width:320px}.reader-stage-hint{display:flex;justify-content:space-between;font-size:9px;letter-spacing:.13em;color:#8ca3b4;font-weight:800}
.reader-details{padding-top:95px;padding-bottom:100px}.reader-details h2{font-size:clamp(33px,4.2vw,53px);font-weight:800;letter-spacing:-.065em}.reader-details h2 em{font-style:normal;color:#1764df}.reader-details>div:nth-child(2)>p{line-height:1.9;color:#718b9d;font-size:14px}.details-pills span{border-color:#e0ebf3;background:#f4f9fc;border-radius:20px;color:#35617c;font-size:10px}
.toc-panel,.thumb-panel{position:fixed;z-index:65;top:0;right:0;height:100dvh;width:min(370px,100%);background:#fff;box-shadow:-20px 0 80px #12365833;padding:26px;overflow:auto;border-left:1px solid #e5edf3}.toc-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e6edf3;padding-bottom:20px}.toc-head small{font-size:9px;letter-spacing:.17em;color:#70a1b3;font-weight:800;display:block;margin-bottom:7px}.toc-head strong{font-size:20px;letter-spacing:-.05em}.toc-head button{border:none;background:#f2f7fa;border-radius:8px;padding:9px 12px;font-size:13px;color:#40647b}.toc-list{display:flex;flex-direction:column;gap:5px;padding-top:16px}.toc-item{border:0;border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;padding:13px 15px;font-size:12px;color:#365f77;gap:10px}.toc-item:hover{background:#eef7fb}.toc-item small{color:#6aa4b7;font-size:10px}.thumb-hint{color:#7b93a3;font-size:11px;line-height:1.6;padding:12px 0}.thumb-list{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.thumb-page{border:1px solid #e0eaf1;background:#f6f9fc;color:#44677b;border-radius:7px;min-height:54px;font-weight:800;font-size:11px}.thumb-page:hover,.thumb-page.active{background:#185ee9;color:white;border-color:#185ee9}.thumb-list>p{grid-column:1/-1;font-size:11px;line-height:1.7;color:#869aaa}
.zoom-overlay{background:#eaf1f8;color:#203d54}.zoom-controls{background:white;border-bottom:1px solid #e5eef6}.zoom-controls strong{color:#1b455f}.zoom-controls button{background:#f4f8fc;color:#2a536e;border-color:#dbe9f1;border-radius:7px}.copy-toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#16465f;color:white;border:1px solid #1e7188;border-radius:9px;padding:12px 20px;font-weight:800;font-size:12px;z-index:101;box-shadow:0 15px 45px #103e5940}
/* Admin remains compatible with V1.1, now shares typography and softer cards */
.dashboard h1,.edit-head h1,.auth-card h1{font-family:var(--sans);font-weight:800}.dashboard h1 em,.edit-head h1 em,.auth-card h1 em{font-family:var(--sans);font-style:normal;color:#1465e8;font-weight:800}.dashboard-stats>div{border-radius:10px;background:#103c64}.dashboard-stats>div:nth-child(2){background:#145380}.dashboard-stats>div:nth-child(3){background:#086e91}.admin-table-card,.edit-panel,.auth-card{border-radius:12px;overflow:hidden}.edit-panel,.auth-card{overflow:visible}.button.dark{border-radius:7px;background:#154c86}.button.outline{border-radius:7px}.stack-form input:not([type=file]),.stack-form select,.stack-form textarea{border-radius:7px}.notice{border-radius:5px}.status-pill{border-radius:6px}
@media(max-width:1110px){.hero-grid{grid-template-columns:1fr .9fr}.hero-copy h1{font-size:clamp(45px,5.4vw,68px)}.hero-art{transform:scale(.9);transform-origin:50% 50%}.small-stats{gap:15px}}
@media(max-width:780px){.shell{width:calc(100% - 40px)}.topbar-inner{height:72px}.top-nav{gap:10px}.top-nav .nav-pill{padding:10px 12px;font-size:10px}.brand-copy strong{font-size:12px}.hero-grid{grid-template-columns:1fr;gap:0}.hero-copy{padding:65px 0 15px}.hero-copy h1{font-size:clamp(45px,9vw,70px)}.hero-art{height:405px;transform:scale(.84)}.art-glow{top:-10px}.art-page{top:18px}.art-bubble-one{top:0}.art-bubble-two{bottom:0}.floating-controls{bottom:-24px}.hero-proof{margin-top:35px}.hero-bottom span:nth-child(2){display:none}.section-intro{align-items:flex-start;flex-direction:column}.collection-section{padding-top:72px;padding-bottom:85px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:35px 18px}.book-cover{max-height:430px}.filterbar{flex-wrap:wrap}.search-control{min-width:100%}.filterbar select{min-height:43px;flex:1}.guide-grid{grid-template-columns:1fr;gap:12px}.guide-grid>div{min-height:190px}.reading-guide{padding:70px 0}.end-grid{flex-direction:column;align-items:flex-start}.reader-heading{flex-direction:column;align-items:flex-start}.reader-action{width:100%;justify-content:flex-start}.reader-stage{min-height:680px;padding:17px 12px 20px}.reader-center{min-height:500px}.flipbook{height:540px;min-height:360px}.reader-toolbar{min-width:0;width:min(680px,100%);gap:6px;padding:7px 9px}.reader-toolbar input[type=range]{max-width:175px}.reader-stage-hint{font-size:7px}.reader-details{padding-top:65px;padding-bottom:75px}}
@media(max-width:520px){.topbar-inner{gap:8px}.brand-symbol{height:40px;width:40px}.brand-copy strong{font-size:10px}.brand-copy small{font-size:7px}.top-nav .nav-pill{font-size:9px;padding:10px}.hero-copy{padding-top:50px}.hero-copy h1{font-size:44px;letter-spacing:-.067em;line-height:1.14}.hero-copy p{font-size:12px}.hero-kicker{font-size:8px;letter-spacing:.1em}.hero-proof{margin-top:29px}.hero-art{height:316px;transform:scale(.66);transform-origin:50% 30%}.art-page{top:0}.art-glow{top:-44px}.art-bubble-one{top:-30px}.art-bubble-two{bottom:-15px}.floating-controls{bottom:-20px}.hero-bottom{font-size:8px;height:54px}.hero-buttons{gap:15px}.hero-primary{font-size:11px;padding:15px 17px}.hero-secondary{font-size:11px}.section-intro h2{font-size:38px}.small-stats b{font-size:30px}.filterbar select{min-width:0}.book-grid{gap:32px 14px}.book-cover{border-width:5px;border-radius:7px}.book-cover-inner{padding:12px}.cover-center strong{font-size:21px}.cover-top,.cover-bottom{font-size:7px}.card-meta{font-size:8px}.book-card h3{font-size:13px}.read-link{font-size:10px}.reading-guide{padding:60px 0}.guide-heading h2{font-size:34px}.library-end{padding:60px 0}.end-grid h2{font-size:38px}.footer-inner{align-items:flex-start}.footer-side{align-items:flex-start}.reader-heading{padding-top:30px}.reader-title h1{font-size:31px}.reader-stage{min-height:555px}.reader-stage-top{font-size:7px}.reader-center{min-height:397px}.flipbook{height:420px;min-height:355px}.reader-toolbar{height:54px;gap:1px;border-radius:9px;padding:5px 6px}.reader-toolbar button,.reader-toolbar .toolbar-pdf{min-width:27px;min-height:31px;font-size:17px;padding:3px}.reader-counter{min-width:65px;font-size:10px}.reader-toolbar input[type=range]{max-width:85px}.reader-tools-sep{height:18px}.reader-stage-hint span:last-child{display:none}.thumb-list{grid-template-columns:repeat(4,1fr)}.reader-details h2{font-size:37px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.book-cover,.button,.cover-arrow{transition:none}}

/* V1.3 — orientasi mengikuti dimensi halaman PDF (portrait / landscape / persegi). */
.reader-stage.pdf-landscape{min-height:650px}
.reader-stage.pdf-landscape .reader-center{min-height:450px}
.reader-stage.pdf-landscape .flipbook{height:min(640px,65vw);max-height:640px;min-height:310px}
.reader-stage.pdf-square .flipbook{height:min(650px,68vw);min-height:350px}
.flipbook-fallback .page{width:min(var(--book-page-width,510px),100%);height:min(var(--book-page-height,720px),100%);aspect-ratio:var(--book-page-ratio,0.70833)}
@media(max-width:780px){
 .reader-stage.pdf-landscape{min-height:550px}
 .reader-stage.pdf-landscape .reader-center{min-height:350px}
 .reader-stage.pdf-landscape .flipbook{height:min(510px,70vw);min-height:260px}
}
@media(max-width:520px){
 .reader-stage.pdf-landscape{min-height:440px}
 .reader-stage.pdf-landscape .reader-center{min-height:265px}
 .reader-stage.pdf-landscape .flipbook{height:min(330px,75vw);min-height:210px}
 .reader-stage.pdf-square .flipbook{height:min(440px,90vw);min-height:275px}
}
