@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');
:root{--ink:#182d29;--muted:#60716c;--green:#163e36;--gold:#d7bb78;--bg:#f6f7f4;--line:#dce2dc;--white:#fff;--serif:'Libre Baskerville',Georgia,serif;--sans:'DM Sans',Arial,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.6 var(--sans)}button,input,select{font:inherit}a{color:inherit;text-decoration:none}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #bd8c23;outline-offset:4px}button{color:inherit}h1,h2,h3,p{margin-top:0}svg{width:20px;height:20px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}button svg{vertical-align:middle}.header{height:100px;max-width:1512px;margin:auto;padding:0 56px;display:flex;align-items:center;gap:60px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:13px;align-items:center}.brand-mark{height:49px;width:43px;border:1px solid #9baaa0;background:var(--green);color:#e7ce92;font:37px/47px Georgia;text-align:center;border-radius:3px}.brand-mark span{font-size:24px}.brand-word{font:700 27px/1 var(--serif);letter-spacing:-1px}.brand-word small{display:block;font:600 10px/1 var(--sans);letter-spacing:2.5px;margin-top:10px}.header nav{display:flex;gap:30px;font-size:14px;font-weight:600;height:100%;align-items:center}.header nav a{height:100%;display:flex;align-items:center;border-bottom:2px solid transparent}.header nav a.active{border-color:var(--green)}.header-note{margin-left:auto;font:italic 14px var(--serif);color:var(--muted)}.layout{max-width:1512px;margin:auto;display:grid;grid-template-columns:220px minmax(0,1fr);gap:44px;padding:34px 56px 64px}.sidebar{border-right:1px solid var(--line);padding-right:25px}.sidebar-inner{position:sticky;top:25px}.sidebar h2,.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.7px;text-transform:uppercase;color:var(--muted);margin:0 0 18px}.sidebar h2{margin-top:6px}.category-list{display:flex;flex-direction:column;gap:4px}.category-list a{font-size:14px;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 10px;border-radius:5px;line-height:1.4}.category-list a span{font-size:12px;color:var(--muted)}.category-list a:hover{background:#e8eee8}.category-list a.selected{background:var(--green);color:white}.category-list a.selected span{color:#c6d9cb}.sidebar-rule{border:0;border-top:1px solid var(--line);margin:26px 0}.side-note{font:italic 16px/1.8 var(--serif);color:#738379;padding:0 10px}.intro{display:flex;gap:22px;align-items:center;justify-content:space-between;margin-bottom:23px}.intro .eyebrow{color:#547163;margin-bottom:8px}.intro h1{font:400 clamp(27px,3.1vw,43px)/1.3 var(--serif);letter-spacing:-1.5px;margin:0 0 8px}.intro p{font-size:14px;color:var(--muted);margin:0}.count-seal{flex-shrink:0;text-align:right;border-left:1px solid var(--line);padding-left:25px;min-width:115px}.count-seal strong{font:400 35px/1.2 var(--serif);display:block}.count-seal span{font-size:11px;text-transform:uppercase;letter-spacing:1.4px;color:var(--muted)}.search-box{background:var(--white);border:1px solid #becbc1;display:flex;align-items:center;gap:12px;padding:8px 9px 8px 18px;border-radius:7px;box-shadow:0 5px 18px #193e3604}.search-box svg{color:#75877c}.search-box input{min-width:0;flex:1;border:0;background:none;padding:8px 0;outline:none;font-size:15px}.search-box button{border:0;background:var(--green);color:white;border-radius:4px;padding:10px 25px;font-size:14px;font-weight:600}.search-box:focus-within{outline:2px solid #718d78;outline-offset:2px}.filters{display:flex;gap:12px;align-items:center;margin:15px 0 25px;flex-wrap:wrap}.filter{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.filter select{font-size:13px;max-width:205px;border:1px solid var(--line);border-radius:4px;background:transparent;padding:6px 25px 6px 9px;color:var(--ink)}.mobile-category{display:none}.clear{padding:5px;border:0;border-bottom:1px solid #96a99a;background:none;font-size:13px;margin-left:auto}.section-line{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.section-line h2{font-size:12px;font-weight:700;letter-spacing:1.4px;text-transform:uppercase;margin:0}.text-link{font-size:12px;font-weight:600;border-bottom:1px solid #a4b5a9}.featured{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:31px}.collection-card{position:relative;border-radius:5px;overflow:hidden;min-height:107px;padding:17px 18px;display:flex;flex-direction:column;justify-content:space-between;background:#e9ede7;border:1px solid #dce2d9;transition:transform .2s}.collection-card:hover{transform:translateY(-3px)}.collection-card:nth-child(2){background:#eee9df;border-color:#e5ddcf}.collection-card:nth-child(3){background:#e5ebef;border-color:#d7e0e7}.collection-card small{font-size:10px;letter-spacing:1.4px;text-transform:uppercase;color:#647368}.collection-card h3{font:400 17px/1.4 var(--serif);margin:6px 20px 0 0;max-width:210px}.collection-card .arrow{position:absolute;right:17px;bottom:14px}.results-heading{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:22px;margin-bottom:20px}.results-heading h2{font:400 22px var(--serif);margin:0}.result-count{font-size:12px;color:var(--muted)}.sort{margin-left:auto;display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted)}.sort select{border:0;background:transparent;color:var(--ink);font-size:12px;padding:5px}.book-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px 20px}.book-card{min-width:0;position:relative}.book-card .cover-link{display:block}.cover-frame{aspect-ratio:0.70;background:#e9ede6;padding:13px 18px;border:1px solid #e0e5dc;border-radius:4px;display:flex;align-items:center;justify-content:center;overflow:hidden}.original-cover{display:block;object-fit:contain;width:100%;height:100%;filter:drop-shadow(3px 4px 4px #0002)}.type-cover{width:100%;height:100%;min-height:0;display:flex;position:relative;flex-direction:column;align-items:center;justify-content:space-between;text-align:center;padding:16px 11px;background:var(--cover-color,#1e4a3e);color:var(--cover-text,#eee4c9);border:1px solid #ffffff35;outline:1px solid #ffffff45;outline-offset:-7px;overflow:hidden}.type-cover .cover-series{font-size:8px;font-weight:550;letter-spacing:1.4px;line-height:1.5;text-transform:uppercase;max-width:100%;opacity:.83}.type-cover .cover-title{font:400 clamp(15px,1.3vw,22px)/1.45 var(--serif);overflow-wrap:anywhere;margin:10px 0;letter-spacing:-.35px;max-height:70%;overflow:hidden}.type-cover .cover-author{font-size:9px;letter-spacing:.5px;line-height:1.4;opacity:.85}.type-cover:after{content:'';width:20px;border-top:1px solid currentColor;position:absolute;top:41px;opacity:.35}.book-card:hover .cover-frame{border-color:#abbdae}.book-card:hover h3{color:#467159}.book-card .book-category{font-size:10px;font-weight:600;letter-spacing:.6px;color:#677d6e;text-transform:uppercase;margin:13px 0 5px}.book-card h3{font:600 15px/1.45 var(--sans);margin:0 0 4px;overflow-wrap:anywhere}.book-card .author{font-size:12px;line-height:1.5;color:var(--muted);margin:0 0 8px}.book-meta{font-size:11px;color:#687970;display:flex;gap:9px;align-items:center;flex-wrap:wrap}.book-meta .lang{padding:1px 6px;border:1px solid var(--line);border-radius:3px;color:#42644d}.book-meta .dot{width:2px;height:2px;border-radius:50%;background:#809186}.pagination{display:flex;justify-content:center;align-items:center;gap:7px;margin-top:37px}.pagination button{background:white;border:1px solid var(--line);border-radius:4px;min-width:37px;min-height:37px;padding:5px 10px;font-size:13px}.pagination button.current{background:var(--green);color:white}.pagination .dots{padding:0 5px}.empty{text-align:center;padding:60px 20px;border:1px dashed #bdccbf;border-radius:8px}.empty h2{font-family:var(--serif);font-weight:400}.empty p{color:var(--muted);font-size:14px}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 23px;background:var(--green);border:1px solid var(--green);color:white;border-radius:4px;font-size:14px;font-weight:600;min-height:47px}.button.secondary{background:transparent;color:var(--green);border-color:#a7b9aa}.button[aria-disabled=true]{opacity:.5;pointer-events:none}.page-wrap{max-width:1240px;margin:0 auto;padding:35px 56px 70px}.breadcrumb{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted);margin-bottom:27px;flex-wrap:wrap}.breadcrumb a{border-bottom:1px solid #aab8ae}.detail{display:grid;grid-template-columns:270px minmax(0,1fr);gap:55px;align-items:start;padding:15px 0 40px}.detail .cover-frame{padding:20px 27px}.detail .type-cover .cover-title{font-size:27px}.detail .type-cover .cover-series{font-size:10px}.detail .type-cover .cover-author{font-size:12px}.detail .type-cover:after{top:49px}.detail h1{font:400 clamp(27px,3.4vw,40px)/1.4 var(--serif);margin:0 0 13px;letter-spacing:-1px}.detail .eyebrow{color:#53795d;margin:4px 0 12px}.detail .detail-author{font-size:17px;color:#67796c;margin-bottom:24px}.detail-data{display:flex;gap:32px;margin:0 0 25px;flex-wrap:wrap;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.detail-data dt{font-size:11px;text-transform:uppercase;letter-spacing:1.1px;color:var(--muted)}.detail-data dd{margin:3px 0 0;font-size:15px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}.detail-note{font-size:13px;color:var(--muted);max-width:500px}.availability{font-size:13px;background:#eee8d9;color:#675324;padding:12px 16px;border-radius:4px}.source-name{font-size:12px;overflow-wrap:anywhere;color:var(--muted);margin-top:20px}.related{border-top:1px solid var(--line);padding-top:25px}.related h2{font:400 25px var(--serif)}.collection-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:28px}.collection-grid .collection-card{min-height:185px;padding:24px}.collection-grid .collection-card h3{font-size:24px;max-width:85%}.collection-grid .collection-card small{font-size:11px}.page-title{font:400 39px/1.35 var(--serif);letter-spacing:-1px;margin-bottom:12px}.page-intro{color:var(--muted)}footer{border-top:1px solid var(--line);padding:30px 56px;max-width:1512px;margin:auto;display:flex;align-items:center;gap:35px;font-size:12px;color:var(--muted)}.footer-brand{font:700 18px var(--serif);color:var(--green);white-space:nowrap}.footer-brand span{font:400 14px var(--sans);margin-left:5px}footer p{margin:0}footer>span{margin-left:auto;font-size:11px}.skip{position:absolute;left:15px;top:-100px;z-index:100;background:white;padding:10px 20px}.skip:focus{top:10px}.initial{padding:100px 20px;text-align:center;color:var(--muted)}.loader{display:inline-block;width:26px;height:26px;border:2px solid #d4dfd4;border-top-color:var(--green);border-radius:50%;animation:spin .8s linear infinite}.initial p{margin-top:12px;font-size:14px}@keyframes spin{to{transform:rotate(360deg)}}.noscript{padding:20px;text-align:center}
.reader-page{background:#dbe1dc;min-height:calc(100vh - 100px)}.reader-top{display:flex;align-items:center;gap:20px;padding:15px 28px;background:#f6f7f4;border-bottom:1px solid #c9d2c9}.reader-top h1{font-size:15px;line-height:1.4;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reader-back{font-size:12px;display:flex;align-items:center;gap:6px;white-space:nowrap}.reader-top .download{margin-left:auto;white-space:nowrap;font-size:12px;display:flex;align-items:center;gap:7px}.reader-tools{display:flex;justify-content:center;align-items:center;gap:12px;background:white;box-shadow:0 1px 4px #0001;padding:10px 15px;position:sticky;top:0;z-index:4;flex-wrap:wrap}.reader-tools button{border:1px solid #d2dcd3;background:white;border-radius:4px;min-height:36px;min-width:37px;padding:5px 9px}.reader-tools form{display:flex;align-items:center;gap:8px;font-size:13px}.reader-tools input{width:62px;border:1px solid #bdcdbf;border-radius:4px;padding:5px;text-align:center;font-size:13px}.reader-tools select{font-size:13px;border:1px solid #d2dcd3;border-radius:4px;background:white;min-height:36px;padding:3px 6px;max-width:120px}.tool-divider{height:23px;border-left:1px solid #dae2dc;margin:0 3px}.reader-body{padding:24px 16px 45px;overflow:auto;min-height:65vh;text-align:center}.canvas-holder{display:inline-block;position:relative;max-width:none;background:white;box-shadow:0 6px 30px #13271d24;vertical-align:top}.canvas-holder canvas{display:block;max-width:none}.reader-status{margin:0;padding:12px;text-align:center;font-size:12px;color:#4c6453}.reader-status:empty{display:none}.reader-error{padding:50px 20px;text-align:center;max-width:630px;margin:auto}.reader-error h2{font-family:var(--serif);font-weight:400}.reader-error p{color:var(--muted)}.reader-error .button{margin-top:10px}.screen-reader{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.reader-progress{height:2px;background:#dde6de}.reader-progress div{height:100%;background:#477451;transition:width .3s}.reader-page.loading canvas{opacity:.3}.import-notice{border:1px solid #dacfb3;background:#f5efdf;padding:10px 15px;font-size:12px;border-radius:4px;margin-bottom:20px}.visually-hidden{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}
@media(min-width:1600px){.type-cover .cover-title{font-size:22px}}@media(max-width:1190px){.header{padding:0 30px;gap:45px}.layout{padding:30px;grid-template-columns:190px minmax(0,1fr);gap:28px}.sidebar{padding-right:15px}.book-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:25px 18px}.type-cover .cover-title{font-size:20px}.featured{gap:10px}.collection-card{padding:15px 13px}.collection-card h3{font-size:15px}.count-seal{display:none}.intro h1{font-size:35px}.page-wrap{padding:30px}.detail{gap:35px}.header-note{font-size:12px}footer{padding:28px 30px}}@media(max-width:800px){.header{height:83px;padding:0 22px;gap:25px}.header-note{display:none}.header nav{margin-left:auto;gap:20px;font-size:13px}.brand-word{font-size:23px}.brand-word small{font-size:8px;letter-spacing:2px}.brand-mark{width:36px;height:43px;line-height:41px;font-size:31px}.layout{display:block;padding:26px 22px 45px}.sidebar{display:none}.mobile-category{display:flex}.filter label{display:none}.filter select{max-width:170px}.filters{gap:8px}.intro h1{font-size:34px}.featured{margin-bottom:25px}.book-grid{gap:25px 19px}.cover-frame{padding:14px 18px}.type-cover .cover-title{font-size:20px}.type-cover .cover-series{font-size:8px}.detail{grid-template-columns:210px minmax(0,1fr);gap:26px}.detail .cover-frame{padding:15px}.detail .type-cover .cover-title{font-size:23px}.detail h1{font-size:29px}.detail-data{gap:19px}.collection-grid{grid-template-columns:repeat(2,1fr)}.reader-top{padding:12px 18px;gap:15px}.reader-top h1{font-size:13px}footer{padding:25px 22px;flex-wrap:wrap;gap:8px 25px}footer>span{display:none}}
@media(max-width:520px){.header{padding:0 17px;height:78px;gap:15px}.brand{gap:9px}.brand-word{font-size:21px}.header nav{gap:15px;font-size:12px}.layout{padding:24px 17px 38px}.intro{margin-bottom:18px}.intro .eyebrow{font-size:9px;letter-spacing:1.5px}.intro h1{font-size:29px;letter-spacing:-1px;max-width:320px}.intro p{font-size:13px;max-width:300px}.search-box{padding-left:12px;gap:8px}.search-box input{font-size:14px}.search-box button{padding:10px 14px;font-size:12px}.filters{margin:12px 0 24px;display:grid;grid-template-columns:1fr 1fr}.filter select{width:100%;max-width:100%;font-size:12px;min-height:37px}.filter{min-width:0}.clear{font-size:12px;justify-self:end;margin:0;padding:5px}.featured{display:flex;overflow:auto;scroll-snap-type:x mandatory;margin-right:-17px;padding-right:17px;padding-bottom:5px;gap:10px}.featured .collection-card{flex:0 0 190px;min-height:105px;scroll-snap-align:start}.collection-card h3{font-size:16px}.section-line h2{font-size:10px}.text-link{font-size:11px}.results-heading{flex-wrap:wrap;padding-top:20px;gap:8px;margin-bottom:17px}.results-heading h2{font-size:21px}.result-count{font-size:11px}.sort{font-size:11px;gap:1px}.sort select{font-size:11px;max-width:90px;padding-right:0}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 14px}.cover-frame{padding:10px 13px}.type-cover{padding:13px 10px}.type-cover .cover-title{font-size:17px;line-height:1.45}.type-cover .cover-series{font-size:7px;letter-spacing:1px}.type-cover .cover-author{font-size:8px}.type-cover:after{top:35px}.book-card .book-category{font-size:9px;letter-spacing:.3px;margin-top:11px}.book-card h3{font-size:14px}.book-card .author{font-size:11px}.book-meta{font-size:10px;gap:7px}.page-wrap{padding:23px 17px 40px}.detail{display:block;padding-top:0}.detail>.cover-frame{width:215px;margin:0 auto 28px}.detail-content{text-align:left}.detail h1{font-size:29px}.detail .detail-author{font-size:16px;margin-bottom:20px}.detail-data{gap:27px}.actions .button{flex:1;padding:11px 13px}.detail-note{font-size:12px}.related h2{font-size:23px}.page-title{font-size:30px}.page-intro{font-size:14px}.collection-grid{gap:12px}.collection-grid .collection-card{min-height:155px;padding:17px}.collection-grid .collection-card h3{font-size:18px;max-width:100%}.collection-grid .collection-card small{font-size:9px}.reader-top{padding:12px;gap:10px;flex-wrap:wrap}.reader-top h1{order:3;width:100%;white-space:normal;font-size:14px}.reader-top .download{margin-left:auto}.reader-tools{gap:7px;padding:9px 7px}.reader-tools form{gap:5px;font-size:12px}.reader-tools input{width:47px}.reader-tools button{min-width:32px;padding:5px}.reader-tools select{font-size:12px;max-width:99px}.tool-divider{margin:0}.reader-body{padding:14px 8px 30px}.pagination{gap:5px}.pagination button{min-width:32px;padding:5px 8px}.reader-page{min-height:calc(100vh - 78px)}footer p{font-size:11px}footer{display:block}.footer-brand{display:block;margin-bottom:6px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}@media(min-width:801px){.book-card{animation:arrive .35s both}.book-card:nth-child(2n){animation-delay:.04s}.book-card:nth-child(3n){animation-delay:.08s}@keyframes arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}}

/* Keep interface labels readable at every breakpoint. */
.header nav,.filter select,.clear,.search-box input{font-size:14px}
.eyebrow,.sidebar h2,.book-card .book-category,.book-meta,.book-card .author,.result-count,.section-line h2,.text-link,.sort,.sort select,.collection-card small,.filter,.count-seal span,.reader-status,.reader-back,.reader-top .download,.detail-data dt,.breadcrumb,.source-name,footer p{font-size:12px}
@media(max-width:520px){.intro h1{font-size:29px}.header nav{font-size:13px}.book-card .book-category{font-size:11px}.filter select{font-size:13px}.book-meta,.book-card .author{font-size:12px}.results-heading .sort{margin-left:auto}}
/* RealDeen Library / Editorial edition */
:root{--ink:#142e28;--green:#123e32;--muted:#69776e;--bg:#f9f9f5;--line:#dce2d9;--serif:'Libre Baskerville',Georgia,serif}
body{background:var(--bg)}.header{max-width:1456px;height:101px;padding:0 48px;gap:90px;background:var(--bg)}.brand-mark{width:45px;height:50px;line-height:48px;background:#143d30;border:0;box-shadow:inset 0 0 0 1px #d0b77540;outline:1px solid #c5ad74;outline-offset:-5px}.brand-word{font-size:27px}.brand-word small{font-size:9px;letter-spacing:2.8px}.header nav{gap:35px;font-size:14px}.header nav a{position:relative}.header nav a.active{border-color:transparent}.header nav a.active:after{content:'';position:absolute;bottom:26px;height:3px;width:20px;background:#ae8b4e;left:0}.header-explore{margin-left:auto;display:flex;gap:20px;align-items:center;font-size:13px;font-weight:600}.header-explore span{font-size:22px;font-weight:400}.layout{display:block;max-width:1456px;padding:29px 48px 76px}.library-content{min-width:0}.masthead{display:grid;grid-template-columns:1.05fr 1fr;background:#103326;min-height:355px;position:relative;overflow:hidden;border-radius:10px;color:#f3efde}.masthead-copy{position:relative;z-index:2;padding:43px 0 39px 47px}.masthead .eyebrow{display:flex;align-items:center;gap:9px;color:#d8be82;font-size:10px;letter-spacing:2.2px;margin:0 0 19px}.masthead .eyebrow span{display:inline-block;width:22px;border-top:1px solid #bea46b}.masthead h1,.masthead h2{font:400 clamp(33px,3.6vw,52px)/1.2 var(--serif);letter-spacing:-1.8px;margin:0 0 17px}.masthead h1 em,.masthead h2 em{font-weight:400;color:#e8d5a9}.masthead-description{font-size:14px;line-height:1.75;color:#c9d3c6;max-width:410px;margin-bottom:25px}.masthead-stats{display:flex;align-items:center;gap:17px;font-size:11px;color:#ccd6c9}.masthead-stats strong{font:400 19px var(--serif);color:#f5eedc;margin-right:5px}.masthead-stats i{height:15px;border-left:1px solid #5d79684d}.masthead-stats b{font-weight:400;color:#839c87;margin:0 3px}.masthead-art{position:relative;background:url('library-still-life-v2.png') 60% 53%/cover no-repeat;min-height:100%}.masthead-art:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#103326 0%,#10332600 25%)}.art-caption{position:absolute;bottom:22px;left:15%;right:25px;display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.6px;color:#d9caad99}.discovery-bar{background:white;padding:22px 26px 19px;border:1px solid #dce3d8;border-radius:8px;margin:20px 0 29px;box-shadow:0 7px 25px #18392205;display:grid;grid-template-columns:1.15fr 1fr;gap:28px;align-items:center}.search-box{box-shadow:none;border:0;border-radius:0;padding:0;gap:10px;background:none;min-height:47px}.search-box input{font-size:15px;min-width:50px}.search-box svg{width:21px;height:21px;color:#4b6751}.search-box button{background:#174333;padding:12px 18px;white-space:nowrap;display:flex;align-items:center;gap:18px;font-size:13px;border-radius:4px}.search-box button svg{color:#d9cca4;width:17px}.filters{margin:0;padding-left:24px;border-left:1px solid #e0e5dc;display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:12px}.filter{display:block;min-width:0}.filter label{display:block;font-size:9px;font-weight:650;letter-spacing:1.25px;text-transform:uppercase;margin-bottom:3px;color:#7a887b}.filter select{font-size:12px;width:100%;max-width:100%;border:0;border-bottom:1px solid #e6e9e1;border-radius:0;padding:4px 13px 4px 0;color:#334b3b}.mobile-category{display:block}.clear{grid-column:1/-1;justify-self:end;margin:0;font-size:12px;padding:0}.section-line{margin-bottom:14px;align-items:center}.section-line h2{font:400 22px var(--serif);text-transform:none;letter-spacing:-.5px}.section-line h2 span{font:500 11px var(--sans);letter-spacing:1px;color:#9c956d;margin-right:12px}.text-link{font-size:12px;border:0;display:inline-flex;align-items:center;gap:8px}.text-link:after{content:'↗';font-size:17px}.featured{gap:18px;margin-bottom:35px}.collection-card{border:0;border-radius:5px;background:#e7ecdf;min-height:126px;padding:18px 23px;overflow:hidden}.collection-card:nth-child(2){background:#eee7d9;border:0}.collection-card:nth-child(3){background:#e2e9ea;border:0}.collection-card small{font-size:9px;letter-spacing:1.8px;color:#7a846d;font-weight:600}.collection-card h3{font-size:22px;line-height:1.3;letter-spacing:-.65px;max-width:90%;margin:10px 0 7px}.collection-count{font-size:11px;color:#788272}.collection-card .arrow{right:23px;bottom:20px;width:33px;height:33px;border:1px solid #9eac9655;border-radius:50%;display:flex;align-items:center;justify-content:center}.collection-card .arrow svg{width:15px}.collection-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px #15342009}.results-heading{padding-top:27px;margin-bottom:25px;gap:16px}.results-heading h2{font-size:31px;letter-spacing:-1px}.result-count{color:#7e8a7d;font-size:12px;border-left:1px solid #d6ddce;padding-left:15px}.sort{font-size:12px}.sort select{font-size:12px}.book-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:30px 22px}.book-card{background:transparent;border:0;min-width:0}.cover-frame{aspect-ratio:.79;padding:18px 28px;background:#eff1e9;border:0;border-radius:5px;position:relative;transition:background .2s}.type-cover{padding:17px 15px 15px;align-items:flex-start;text-align:left;background:linear-gradient(120deg,#ffffff0c,#0000000b),var(--cover-color);outline:none;border:0;box-shadow:3px 7px 13px #0e261b24,inset 3px 0 #ffffff12,inset 5px 0 #00000020,inset -1px 0 #00000024;transition:transform .25s;justify-content:flex-start}.type-cover:before{content:'';position:absolute;inset:9px;border:1px solid currentColor;opacity:.16;pointer-events:none}.type-cover:after{content:'';height:1px;position:static;width:29px;order:2;background:currentColor;opacity:.55;margin-top:13px;border:0}.type-cover .cover-series{font-size:8px;letter-spacing:2px;font-family:var(--sans);font-weight:600;text-align:left;line-height:1.5;opacity:.8;position:relative;z-index:1}.cover-series>span{display:block;font-size:5px;letter-spacing:1.5px;font-weight:400;margin-top:3px;opacity:.7}.cover-number{font:400 51px/1 var(--serif);letter-spacing:-4px;opacity:.18;position:absolute;right:14px;top:41px}.type-cover .cover-title{font:400 clamp(15px,1.25vw,21px)/1.38 var(--serif);letter-spacing:-.6px;max-height:64%;margin:36px 0 0;overflow-wrap:normal;text-wrap:balance;position:relative;z-index:1;order:1}.type-cover .cover-author{font-size:7px;letter-spacing:.6px;line-height:1.5;order:3;margin-top:auto;padding-top:13px;opacity:.85;max-width:100%}.book-card:hover .type-cover{transform:translateY(-5px)}.book-card:hover .cover-frame{background:#e5ebdf}.book-card .book-category{font-size:9px;letter-spacing:1.05px;color:#748065;margin:15px 0 6px;line-height:1.5;font-weight:600}.book-card h3{font:550 15px/1.45 var(--sans);letter-spacing:-.2px;margin:0 0 5px;min-height:43px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.book-card .author{font-size:12px;color:#7b8777;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:0 0 11px}.book-meta{font-size:10px;gap:7px;color:#87917f}.book-meta .lang{border:0;background:#eaf0e4;border-radius:3px;padding:2px 7px;font-size:9px;color:#546949}.book-open{border-top:1px solid #dfe5d8;margin-top:12px;padding:10px 0 0;display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:550;color:#31533b}.book-open svg{width:16px;height:16px}.pagination{margin-top:40px;gap:8px}.pagination button{border-color:#dfe5d9;border-radius:4px;min-height:39px;min-width:39px}.page-wrap{max-width:1360px;padding-top:35px}.detail{padding:15px 0 45px;grid-template-columns:290px minmax(0,1fr);gap:65px}.detail>.cover-frame{padding:25px 38px;aspect-ratio:.77}.detail .type-cover{padding:23px 19px 21px}.detail .type-cover .cover-title{font-size:27px;margin-top:50px}.detail .cover-number{font-size:70px;top:66px;right:23px}.detail .type-cover .cover-author{font-size:10px}.detail .type-cover .cover-series{font-size:11px}.detail .cover-series>span{font-size:7px}.detail h1{font-size:41px;line-height:1.35;letter-spacing:-1.5px;max-width:700px}.detail-data{gap:40px;padding:22px 0}.detail-note{font-size:14px;line-height:1.8}.actions{margin:26px 0 19px}.button{border-radius:4px;min-height:50px}.related .book-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-width:1075px}.related h2{font-size:30px;margin-bottom:25px}.related .cover-frame{padding:20px 35px}.collection-grid .collection-card{min-height:205px;padding:27px;background:#e5ebdf!important}.collection-grid .collection-card:nth-child(3n+2){background:#eee7d9!important}.collection-grid .collection-card:nth-child(3n+3){background:#e3e9e9!important}.collection-grid .collection-card h3{font-size:29px}.collection-grid .collection-card small{font-size:11px}.collection-grid .collection-card .collection-count{font-size:13px}.collection-grid .collection-card .arrow{right:27px;bottom:26px}footer{max-width:1360px;padding:31px 0 40px;margin:0 48px;border-top:1px solid #d2dbcb;gap:28px}.footer-brand{font-size:20px}footer p{font-size:12px}.reader-page{background:#e1e6dd}.reader-tools{box-shadow:0 2px 12px #18392205}.reader-top{background:#f8f9f5}
@media(min-width:1500px){footer{margin-left:auto;margin-right:auto}.type-cover .cover-title{font-size:21px}}
@media(max-width:1190px){.header{padding:0 30px;gap:55px}.layout{padding:25px 30px 60px}.masthead{min-height:325px;grid-template-columns:1.1fr 1fr}.masthead-copy{padding:35px 0 32px 32px}.masthead h1,.masthead h2{font-size:40px}.masthead-description{font-size:13px;max-width:350px}.masthead-stats{gap:12px;font-size:10px}.masthead-stats strong{font-size:17px}.discovery-bar{display:block;padding:20px 24px}.filters{border:0;padding:17px 0 0;gap:22px;grid-template-columns:1fr 1fr 1fr}.filter label{font-size:10px}.filter select{font-size:13px}.book-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:29px 20px}.type-cover .cover-title{font-size:19px}.cover-frame{padding:18px 25px}.collection-card h3{font-size:21px}.header-explore{font-size:12px;gap:15px}.results-heading h2{font-size:29px}.detail{gap:45px;grid-template-columns:270px minmax(0,1fr)}.detail h1{font-size:36px}.page-wrap{padding:30px}.type-cover .cover-title{margin-top:34px}.detail .type-cover .cover-title{font-size:24px}footer{margin:0 30px}.related .book-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.related .cover-frame{padding:18px 25px}}
@media(max-width:800px){.header{height:85px;padding:0 22px;gap:25px}.header-explore{display:none}.header nav{margin-left:auto;gap:25px}.header nav a.active:after{bottom:20px}.layout{padding:22px}.masthead{min-height:310px;grid-template-columns:1.15fr .85fr}.masthead-copy{padding:32px 0 30px 28px}.masthead h1,.masthead h2{font-size:35px;letter-spacing:-1.3px}.masthead .eyebrow{font-size:8px;letter-spacing:1.5px}.masthead-description{font-size:12px;max-width:310px;line-height:1.75}.masthead-stats{gap:10px;flex-wrap:wrap;font-size:10px}.masthead-stats span:last-child{display:none}.masthead-stats i:last-of-type{display:none}.masthead-art{background-position:57% center}.art-caption{display:none}.discovery-bar{margin:17px 0 26px;padding:17px 18px}.search-box button{font-size:12px;padding:11px 16px;gap:10px}.search-box input{font-size:14px}.filters{gap:16px}.filter label{display:block}.filter select{font-size:12px}.section-line h2{font-size:20px}.section-line h2 span{font-size:10px;margin-right:8px}.featured{gap:12px}.collection-card{padding:17px 17px;min-height:123px}.collection-card h3{font-size:19px}.collection-card small{font-size:8px;letter-spacing:1.1px}.collection-count{font-size:10px}.collection-card .arrow{right:15px;bottom:17px;width:26px;height:26px}.collection-card .arrow svg{width:12px}.book-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:27px 18px}.book-card h3{font-size:14px}.book-card .author{font-size:12px}.cover-frame{padding:16px 23px}.type-cover .cover-title{font-size:18px;margin-top:32px}.cover-number{font-size:46px;top:40px}.detail{grid-template-columns:225px minmax(0,1fr);gap:30px}.detail>.cover-frame{padding:19px 27px}.detail h1{font-size:30px}.detail .type-cover{padding:17px 15px}.detail .type-cover .cover-title{font-size:23px;margin-top:35px}.detail .type-cover .cover-series{font-size:8px}.detail .cover-series>span{font-size:5px}.detail .cover-number{font-size:52px;top:44px}.detail-data{gap:25px}.detail-data dd{font-size:14px}.detail-note{font-size:13px}.related .book-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.related .book-card:nth-child(4){display:none}.related .cover-frame{padding:16px 23px}.collection-grid .collection-card h3{font-size:25px}footer{margin:0 22px;padding:25px 0}}
@media(max-width:520px){.header{height:80px;padding:0 18px;gap:15px}.brand-mark{height:42px;width:36px;line-height:40px;font-size:31px}.brand-word{font-size:22px}.brand-word small{font-size:7px;letter-spacing:2.5px}.header nav{gap:17px;font-size:12px}.header nav a.active:after{bottom:17px}.layout{padding:16px 16px 45px}.masthead{display:block;min-height:0;border-radius:7px}.masthead-copy{padding:29px 24px 27px;background:linear-gradient(90deg,#103326f5,#103326d9 55%,#10332670);position:relative;z-index:2}.masthead-art{position:absolute;inset:0;background-position:67% center;opacity:.44}.masthead-art:before{background:linear-gradient(90deg,#103326bb,transparent)}.masthead h1,.masthead h2{font-size:36px;line-height:1.23;letter-spacing:-1.4px;margin-bottom:14px}.masthead .eyebrow{font-size:8px;letter-spacing:1.4px;margin-bottom:18px}.masthead-description{font-size:12px;max-width:265px;color:#c9d5c3;line-height:1.7;margin-bottom:23px}.masthead-stats{font-size:11px;gap:17px}.masthead-stats strong{font-size:20px}.discovery-bar{padding:14px 14px;margin:15px 0 25px;border-radius:6px}.search-box{gap:8px}.search-box>svg{width:17px}.search-box input{font-size:12px;min-width:0}.search-box button{padding:10px 12px;font-size:11px;gap:0}.search-box button svg{display:none}.filters{gap:11px;padding-top:15px;grid-template-columns:1.15fr 1fr .8fr}.filter label{font-size:8px;letter-spacing:.9px}.filter select{font-size:11px;min-height:32px;padding-right:6px}.clear{font-size:11px}.section-line h2{font-size:19px;letter-spacing:-.6px}.section-line h2 span{display:none}.text-link{font-size:10px}.text-link:after{font-size:15px}.featured{display:grid;grid-template-columns:1fr;gap:10px;padding:0;margin:0 0 25px;overflow:visible}.collection-card{min-height:0;padding:15px 18px;display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:15px;border-radius:5px}.collection-card small{grid-column:1;font-size:8px;letter-spacing:1.4px}.collection-card h3{font-size:20px;line-height:1.3;grid-column:1;margin:6px 0;max-width:100%}.collection-count{grid-column:1;font-size:10px}.collection-card .arrow{right:18px;top:50%;transform:translateY(-50%);width:30px;height:30px}.results-heading{padding-top:22px;margin-bottom:21px;gap:10px;flex-wrap:wrap}.results-heading h2{font-size:26px}.result-count{font-size:11px;border:0;padding:0}.sort{font-size:10px;margin-left:auto}.sort select{font-size:11px;max-width:85px}.book-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 15px}.cover-frame{aspect-ratio:.77;padding:14px 20px;border-radius:4px}.type-cover{padding:14px 11px 12px}.type-cover .cover-series{font-size:6px;letter-spacing:1.4px}.cover-series>span{font-size:4px;letter-spacing:.8px}.cover-number{font-size:42px;top:35px;right:11px}.type-cover .cover-title{font-size:17px;line-height:1.35;letter-spacing:-.45px;margin-top:29px;max-height:65%}.type-cover:after{margin-top:10px;width:22px}.type-cover .cover-author{font-size:6px;letter-spacing:.25px;padding-top:9px}.book-card .book-category{font-size:8px;letter-spacing:.6px;margin-top:12px}.book-card h3{font-size:13px;min-height:38px;line-height:1.45}.book-card .author{font-size:11px;margin-bottom:9px}.book-meta{font-size:9px;gap:5px}.book-meta .lang{font-size:8px;padding:2px 5px}.book-open{font-size:10px;margin-top:10px;padding-top:9px}.book-open svg{width:14px}.pagination button{min-width:34px;min-height:36px}.page-wrap{padding:23px 17px 40px}.detail{display:block}.detail>.cover-frame{width:225px;margin:0 auto 29px;padding:23px 31px}.detail .type-cover .cover-title{font-size:23px;margin-top:38px}.detail .cover-number{top:44px;font-size:54px}.detail h1{font-size:30px}.detail .eyebrow{font-size:10px}.detail .detail-author{font-size:16px}.detail-data{gap:26px;padding:18px 0}.actions{margin-top:23px}.button{min-height:47px}.related h2{font-size:26px}.related .book-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.related .book-card:nth-child(4){display:block}.related .cover-frame{padding:14px 20px}.collection-grid{grid-template-columns:1fr;gap:12px}.collection-grid .collection-card{min-height:150px;padding:22px}.collection-grid .collection-card h3{font-size:26px}.collection-grid .collection-card small{font-size:10px}.collection-grid .collection-card .collection-count{font-size:12px}.collection-grid .collection-card .arrow{right:22px;bottom:auto}.reader-page{min-height:calc(100vh - 80px)}footer{margin:0 17px;padding:23px 0}.footer-brand{font-size:19px}footer p{font-size:12px}}
@media(prefers-reduced-motion:reduce){.book-card:hover .type-cover,.collection-card:hover{transform:none}}

/* Supporting metadata remains readable; covers are artwork-sized typography. */
.book-card .book-category,.book-card .author,.book-meta,.book-meta .lang,.book-open,.collection-count,.collection-card small,.filter label,.filter select,.masthead-stats,.text-link,.result-count,.sort,.sort select{font-size:12px}
.book-card h3{font-size:15px;min-height:44px}.masthead-description{font-size:15px}.header nav{font-size:14px}
@media(min-width:1191px){.cover-frame{padding:16px 22px}.type-cover .cover-title{font-size:18px}.type-cover .cover-title{margin-top:30px}.type-cover .cover-series{font-size:7px}.cover-number{font-size:46px}}
@media(max-width:520px){.filter label{font-size:10px}.filter select{font-size:12px}.book-card .book-category{font-size:10px}.book-card h3{font-size:14px;min-height:41px}.masthead-description{font-size:13px}.header nav{font-size:13px}.collection-card small{font-size:10px}}

/* V3: illustrated editions and RealDeen identity */
.brand-emblem{display:block;width:52px;height:52px;object-fit:contain;flex-shrink:0}.header{gap:40px}.header nav{gap:25px}.header nav a{white-space:nowrap}.cover-frame,.detail>.cover-frame,.related .cover-frame{padding:0;aspect-ratio:2/3;background:#15352e;box-shadow:0 9px 19px #10291e18;border:0;border-radius:4px}.type-cover.illustrated-cover{padding:18px 16px;text-align:left;align-items:flex-start;justify-content:flex-start;outline:0;border:0;color:#fff5df;background:#132a24;box-shadow:inset 5px 0 8px #0004;isolation:isolate}.cover-art{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover}.illustrated-cover:before{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#08171155,transparent 65%,#061511d9)}.type-cover.illustrated-cover:after{display:none}.type-cover.illustrated-cover .cover-series{font-size:8px;letter-spacing:1.8px;opacity:1;color:#e6d9b9}.illustrated-cover .cover-series>span{display:block;font-size:6px;margin-top:4px;letter-spacing:1.1px}.type-cover.illustrated-cover .cover-title{font-size:clamp(16px,1.45vw,23px);line-height:1.32;margin:19px 0 12px;max-height:62%;text-shadow:0 2px 12px #0008;overflow-wrap:anywhere}.type-cover.illustrated-cover .cover-author{margin-top:auto;padding:8px 0 0;font-size:10px;line-height:1.45;opacity:1;color:#fff5df;text-shadow:0 1px 6px #000}.detail .type-cover.illustrated-cover{padding:24px}.detail .type-cover.illustrated-cover .cover-title{font-size:28px;margin-top:28px}.detail .type-cover.illustrated-cover .cover-author{font-size:12px}.card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px;padding-top:12px;border-top:1px solid #d5ddcf}.card-action{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;padding:5px 0;border:0;background:none;color:#163e36;min-height:35px}.card-action.secondary{margin-left:auto}.card-action svg{width:14px;height:14px}.preparing{flex-basis:100%;font-size:11px;color:#6c756c}.premium-footer{display:block;max-width:none;margin:30px 0 0;padding:0;border:0;background:#102e27;color:#f5edda;text-align:left}.footer-inner{max-width:1456px;margin:auto;padding:64px 48px 22px}.footer-invitation{display:flex;justify-content:space-between;align-items:center;gap:35px;padding-bottom:44px;border-bottom:1px solid #ffffff26}.footer-kicker{font-size:10px;letter-spacing:2px;color:#cfb77b;font-weight:600}.footer-invitation h2{font:400 clamp(28px,3.3vw,45px)/1.35 var(--serif);letter-spacing:-1px;margin:15px 0 0}.footer-invitation em{font-weight:400;color:#d9c796}.footer-cta{display:flex;align-items:center;justify-content:space-between;gap:35px;border:1px solid #ae9b67;padding:17px 23px;color:#f1e0b6;font-size:14px;white-space:nowrap}.footer-cta:hover{background:#ffffff09}.footer-cta span{font-size:23px}.footer-columns{display:grid;grid-template-columns:2fr 1fr 1.3fr 1.2fr;gap:48px;padding:45px 0}.footer-identity .brand{gap:13px}.footer-emblem{display:flex;background:#efe6cd;border-radius:50%;padding:11px}.footer-emblem img{display:block;width:40px;height:40px}.premium-footer .brand-word{font-size:26px}.premium-footer .brand-word small{font-size:8px;letter-spacing:2.3px}.premium-footer p{color:#b7c7bc;font-size:13px;line-height:1.85;margin:20px 0 0;max-width:310px}.footer-links{display:flex;flex-direction:column;gap:10px;align-items:flex-start}.footer-links h3{font:600 11px var(--sans);text-transform:uppercase;letter-spacing:1.8px;color:#d9c796;margin:0 0 9px}.footer-links a{font-size:13px;color:#c1d0c6}.footer-links a:hover{color:white;text-decoration:underline}.footer-note p{font:400 19px/1.7 var(--serif);color:#e3e7d9;margin-top:17px}.footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #ffffff26;padding-top:22px;font-size:11px;color:#a6b9ab}.footer-bottom a{color:#e2cf99}
@media(max-width:1000px){.header-explore{display:none}.header nav{margin-left:auto}.footer-columns{gap:25px;grid-template-columns:1.6fr 1fr 1fr}.footer-note{display:none}}
@media(max-width:650px){.header{height:auto;min-height:116px;flex-wrap:wrap;justify-content:center;padding:16px 18px 0;gap:12px}.brand-emblem{width:42px;height:42px}.header nav{width:100%;margin:0;height:42px;justify-content:center;gap:27px;font-size:12px}.header nav a{height:42px}.header nav a.active:after{bottom:0}.footer-inner{padding:38px 22px 22px}.footer-invitation{display:block;padding-bottom:30px}.footer-invitation h2{font-size:29px}.footer-cta{margin-top:25px;width:max-content;font-size:12px;padding:12px 17px}.footer-columns{grid-template-columns:1fr 1fr;gap:30px;padding:30px 0}.footer-identity{grid-column:1/-1}.footer-identity p{max-width:370px}.footer-bottom{flex-wrap:wrap;font-size:10px;gap:15px}.footer-bottom>span:nth-child(2){display:none}.type-cover.illustrated-cover{padding:15px 12px}.type-cover.illustrated-cover .cover-title{font-size:18px;margin-top:17px}.type-cover.illustrated-cover .cover-author{font-size:9px}.card-action{font-size:11px}.premium-footer{margin-top:12px}}

.header .brand-word{font-family:var(--serif);font-size:31px;font-weight:400;letter-spacing:-1.5px}.header .brand-word small{font-family:var(--sans);font-size:9px;font-weight:600;letter-spacing:3.1px;margin-top:10px}.premium-footer .brand-word{font-size:32px;font-weight:400}.premium-footer .brand-word small{letter-spacing:3px;font-size:9px}@media(max-width:650px){.header .brand-word{font-size:27px}.header .brand-word small{font-size:8px;letter-spacing:2.6px}}

/* ==========================================================
   REALDEEN — FULL DESKTOP WIDTH
   Symmetrical / proportional / desktop only
   ========================================================== */
@media (min-width:1200px){

  /* Shared desktop grid */
  .header,
  .layout{
    width:100% !important;
    max-width:none !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-left:clamp(40px,4vw,76px) !important;
    padding-right:clamp(40px,4vw,76px) !important;
    box-sizing:border-box;
  }

  /* Main library area fills the shared grid */
  .library-content{
    width:100%;
    max-width:none;
    min-width:0;
  }

  /* Hero / slider */
  .masthead{
    width:100%;
    max-width:none;
    min-height:clamp(355px,22vw,430px);
    grid-template-columns:1.04fr .96fr;
  }

  .masthead-copy{
    padding-left:clamp(42px,3.2vw,64px);
    padding-right:clamp(30px,2.5vw,52px);
  }

  /* Search and filter bar */
  .discovery-bar{
    width:100%;
    max-width:none;
  }

  /* Three perfectly equal collection cards */
  .featured{
    width:100%;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:clamp(16px,1.2vw,24px);
  }

  /* Six equal book columns */
  .book-grid{
    width:100%;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:32px clamp(18px,1.3vw,27px);
  }

  /* Keep book-cover shape unchanged */
  .cover-frame{
    aspect-ratio:.79;
  }

  /* Footer follows same desktop horizontal geometry */
  .premium-footer .footer-inner{
    width:100% !important;
    max-width:none !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-left:clamp(40px,4vw,76px);
    padding-right:clamp(40px,4vw,76px);
    box-sizing:border-box;
  }
}

.header-free-books{
  font-weight:700;
}

/* Header library / collections wording */
.header-explore{
    display:flex;
    align-items:center;
    gap:9px;
    white-space:nowrap;
}

.header-free-books{
    font-weight:800;
}

.header-explore-separator{
    opacity:.45;
    font-weight:400;
}

.header-explore-text{
    font-weight:500;
}

.header-explore-arrow{
    margin-left:8px;
    font-size:18px;
    font-weight:400;
}

/* Premium dark filter panel */
.discovery-bar .filters{
    background:#103326;
    border-left:0;
    border-radius:6px;
    padding:14px 18px;
    align-self:stretch;
}

.discovery-bar .filter label{
    color:#d7bb78;
}

.discovery-bar .filter select{
    color:#f4f1e7;
    background:transparent;
    border-bottom:1px solid rgba(255,255,255,.20);
}

.discovery-bar .filter select option{
    color:#182d29;
    background:#ffffff;
}

.discovery-bar .clear{
    color:#e7ddc4;
    border-color:rgba(255,255,255,.25);
}

/* ==========================================================
   REALDEEN PREMIUM LIGHT PAPER TEXTURE
   Subtle / elegant / non-distracting
   ========================================================== */

body{
    background-color:#f6f5f0;
    background-image:
        radial-gradient(circle at 12% 18%, rgba(22,62,54,.028) 0, transparent 24%),
        radial-gradient(circle at 88% 36%, rgba(183,151,84,.026) 0, transparent 28%),
        radial-gradient(circle at 45% 82%, rgba(22,62,54,.018) 0, transparent 26%),
        repeating-linear-gradient(
            0deg,
            rgba(30,48,41,.012) 0px,
            rgba(30,48,41,.012) 1px,
            transparent 1px,
            transparent 4px
        ),
        repeating-linear-gradient(
            90deg,
            rgba(140,118,72,.008) 0px,
            rgba(140,118,72,.008) 1px,
            transparent 1px,
            transparent 5px
        );
    background-attachment:fixed;
}

/* Keep content surfaces clean above the texture */
.discovery-bar{
    background-color:rgba(255,255,255,.94);
}

.collection-card{
    box-shadow:
        0 1px 0 rgba(255,255,255,.65) inset,
        0 10px 30px rgba(18,45,37,.025);
}

/* Maintain clean dark footer */
.premium-footer{
    background:#103326;
}

/* Premium search-box border */
.discovery-bar .search-box{
    border:1px solid #cbd5cd !important;
    border-radius:6px !important;
    background:#ffffff !important;
    padding:8px 9px 8px 18px !important;
    min-height:58px;
    transition:border-color .2s ease, box-shadow .2s ease;
}

.discovery-bar .search-box:focus-within{
    border-color:#496c5c !important;
    box-shadow:0 0 0 3px rgba(22,62,54,.07) !important;
    outline:none !important;
}

.discovery-bar .search-box input{
    border:0 !important;
    outline:0 !important;
    background:transparent !important;
}

/* =========================================
   MOBILE HEADER — LEFT ALIGN
   Desktop remains unchanged
   ========================================= */
@media (max-width:800px){

    .header{
        justify-content:flex-start !important;
        text-align:left !important;
    }

    .header > .brand{
        margin-left:0 !important;
        margin-right:0 !important;
        justify-content:flex-start !important;
        text-align:left !important;
    }

    .header .rd-logo{
        margin-left:0 !important;
        margin-right:0 !important;
        align-items:flex-start !important;
        text-align:left !important;
    }

    .header nav{
        margin-left:auto !important;
    }
}

/* =========================================
   MOBILE — PREVENT LEFT / RIGHT PAGE MOVEMENT
   ========================================= */

html,
body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
}

@media (max-width:800px){

    html,
    body{
        width:100%;
        max-width:100vw;
        overflow-x:hidden !important;
        overscroll-behavior-x:none;
    }

    .header,
    .layout,
    .library-content,
    .masthead,
    .discovery-bar,
    .featured,
    .results-heading,
    .book-grid,
    .premium-footer,
    .footer-inner{
        width:100%;
        max-width:100%;
        min-width:0;
        box-sizing:border-box;
    }

    .header{
        overflow:hidden;
    }

    .header > .brand{
        flex:0 0 auto;
        min-width:0;
    }

    .header nav{
        min-width:0;
        flex-shrink:1;
        overflow:hidden;
    }

    .rd-hero-carousel,
    .rd-hero-stage,
    .rd-hero-slide{
        max-width:100%;
        overflow:hidden;
    }

    img,
    svg,
    video,
    canvas{
        max-width:100%;
    }
}

/* =========================================
   MOBILE HEADER + NAV — FULL LEFT ALIGNMENT
   ========================================= */
@media (max-width:800px){

    .header{
        justify-content:flex-start !important;
        text-align:left !important;
    }

    .header > .brand{
        margin-left:0 !important;
        margin-right:0 !important;
        justify-content:flex-start !important;
    }

    .header nav{
        margin-left:0 !important;
        margin-right:0 !important;
        justify-content:flex-start !important;
        text-align:left !important;
        align-self:flex-start !important;
    }

    .header nav a{
        justify-content:flex-start !important;
        text-align:left !important;
    }
}

/* =========================================================
   REALDEEN — PREMIUM LIBRARY SEARCH PANEL
   ========================================================= */

.search-identity{
    display:none;
}

@media (max-width:800px){

    .discovery-bar{
        background:#f2efe7 !important;
        border:1px solid #d8ddd4 !important;
        border-radius:10px !important;
        padding:12px !important;
        box-shadow:0 12px 35px rgba(20,55,43,.07) !important;
    }

    .discovery-bar .search-box{
        display:grid !important;
        grid-template-columns:auto minmax(0,1fr) auto;
        grid-template-rows:auto auto;
        align-items:center;

        column-gap:12px;
        row-gap:11px;

        background:#fff !important;
        border:1px solid #b9c8bd !important;
        border-radius:9px !important;

        padding:14px !important;
        min-height:0 !important;

        box-shadow:
            0 8px 22px rgba(18,53,41,.055),
            inset 0 1px 0 rgba(255,255,255,.9);
    }

    .search-identity{
        display:block;
        grid-column:1 / -1;

        padding:0 0 11px;
        margin-bottom:1px;

        border-bottom:1px solid #e3e7df;
    }

    .search-identity span{
        display:block;

        color:#a38342;
        font-size:10px;
        font-weight:750;
        line-height:1;
        letter-spacing:1.8px;

        margin-bottom:6px;
    }

    .search-identity strong{
        display:block;

        color:#153d31;
        font-family:var(--serif);
        font-size:20px;
        font-weight:400;
        line-height:1.2;
        letter-spacing:-.35px;
    }

    .discovery-bar .search-box > svg{
        grid-column:1;
        grid-row:2;

        width:20px;
        height:20px;

        color:#315d4b;
    }

    .discovery-bar .search-box input{
        grid-column:2;
        grid-row:2;

        width:100%;
        min-width:0;

        font-size:14px !important;
        color:#263c34;
    }

    .discovery-bar .search-box button{
        grid-column:3;
        grid-row:2;

        min-height:48px;
        padding:10px 17px !important;

        background:#174333 !important;
        color:#fff;

        border-radius:6px !important;
        font-weight:700;
    }

    .discovery-bar .filters{
        margin-top:11px;
    }
}

@media (max-width:520px){

    .search-identity strong{
        font-size:19px;
    }

    .discovery-bar .search-box{
        grid-template-columns:auto minmax(0,1fr) auto;
        padding:13px !important;
    }

    .discovery-bar .search-box input{
        font-size:13px !important;
    }

    .discovery-bar .search-box button{
        min-height:46px;
        padding:9px 14px !important;
        font-size:12px !important;
    }
}
