@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');
:root{--wood:#211b18;--wood2:#342720;--wood3:#463328;--gold:#caa967;--goldsoft:#e6ce9e;--cream:#f5f0e6;--paper:#fffdf8;--ink:#29303b;--muted:#727477;--line:#e2dacf;--shadow:0 15px 35px #1c110b17}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:'Cairo',Tahoma,sans-serif;line-height:1.7}html[lang=en] body{font-family:'Inter',Arial,sans-serif;line-height:1.55}button,input,select,textarea{font:inherit}button,a{cursor:pointer}a{text-decoration:none;color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #bd8e3f;outline-offset:3px}button:disabled{opacity:.6;cursor:wait}[hidden]{display:none!important}.sr-only{position:absolute;left:-99999px;width:1px;height:1px;overflow:hidden}
.headstrip{background:#1c1715;color:var(--cream);padding:15px clamp(20px,5vw,78px);display:flex;align-items:center;gap:16px;min-height:92px;border-bottom:2px solid #b68b4e}.monogram{display:grid;place-items:center;border:1px solid var(--gold);height:52px;width:52px;font:700 33px Georgia,serif;color:var(--gold)}.branding{display:flex;flex-direction:column;line-height:1.35}.branding strong{font:700 26px Georgia,serif;letter-spacing:2px}.branding span{font-size:12px;color:#d1c2aa}.head-actions{margin-inline-start:auto;display:flex;align-items:center;gap:15px}.account{font-size:11px;color:var(--goldsoft);max-width:180px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.language-toggle{display:inline-flex;gap:2px;padding:3px;border:1px solid #7c674e;border-radius:8px;background:#2d241f;direction:ltr}.language-toggle button{background:transparent;color:#d7c8ab;border:0;border-radius:5px;padding:7px 12px;font-weight:600;font-size:12px}.language-toggle button.active{background:#d5b577;color:#231a14}.linkbtn{background:transparent;border:1px solid #9b825d;color:#f9e6c6;padding:8px 13px;border-radius:6px;font-size:12px}.navline{background:#30251e;color:#f5efe2;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,5vw,78px);min-height:46px}.navline nav{display:flex;flex-wrap:wrap;gap:29px;align-items:center}.navline a{font-size:12px;font-weight:700;padding:13px 0;border-bottom:2px solid transparent}.navline a:hover{color:#e5c38b;border-bottom-color:#caa967}.secure-mark{color:#d1b98e;font-size:11px}
.hero{min-height:415px;display:grid;grid-template-columns:1.22fr .78fr;background:linear-gradient(120deg,#1c1613,#37271e 56%,#271d18);position:relative;color:#fbf7eb;overflow:hidden}.hero:before{content:'';position:absolute;inset:0;opacity:.12;background:repeating-linear-gradient(94deg,transparent 0,transparent 48px,#a27d53 49px,#291c13 50px)}.hero-text{z-index:1;position:relative;padding:75px max(30px,6vw);max-width:840px}.eyebrow{font-size:11px;color:#e6ce9e;letter-spacing:1.3px;font-weight:700}.hero h1{font-size:clamp(29px,4vw,52px);line-height:1.3;margin:12px 0;color:#fffaf0;font-weight:800}.gold-line{background:var(--gold);height:3px;width:80px;margin:20px 0 24px}.hero-desc{font-size:15px;max-width:640px;color:#eee0ce;line-height:2;margin:0 0 26px}.primary{border:0;background:linear-gradient(110deg,#d8b978,#bd9857);color:#201712;display:inline-flex;align-items:center;justify-content:center;border-radius:5px;padding:12px 25px;font-weight:800;font-size:13px;min-height:43px}.primary:hover{background:linear-gradient(110deg,#e6c68a,#c6a367)}.shelf-art{position:relative;z-index:1;align-self:stretch;overflow:hidden;border-inline-start:2px solid #826544;display:grid;align-items:end;padding:0 7% 63px}.art-light{position:absolute;left:12%;right:12%;top:0;height:86%;background:radial-gradient(ellipse at 50% 8%,#d7ac6933,transparent 64%)}.art-books{display:flex;justify-content:center;align-items:end;gap:8px;z-index:1;direction:ltr}.art-book{position:relative;width:24%;min-width:53px;max-width:95px;height:235px;display:flex;flex-direction:column;justify-content:space-between;align-items:center;padding:20px 3px;border:1px solid #bba16caa;border-radius:3px 7px 3px 3px;box-shadow:inset 4px 0 8px #ffffff14,inset -6px 0 9px #0007,8px 9px 9px #0009;color:#f2dcb2}.art-book:before{content:'✧';font-size:27px;position:absolute;top:38%;color:#ccb379}.art-book span{writing-mode:vertical-rl;font:700 12px Georgia,serif;letter-spacing:2px}.art-book b{font:700 15px Georgia,serif}.art-book.a{background:#182c48;height:242px}.art-book.b{background:#55312c;height:282px}.art-book.c{background:#284839;height:222px}.art-book.d{background:#514631;height:258px}.wood-shelf{position:absolute;bottom:42px;left:0;right:0;height:22px;background:linear-gradient(#896445,#36241a 50%,#503729);border-top:4px solid #b68a53;box-shadow:0 13px 28px #0008}
.security-message{max-width:1260px;margin:20px auto 0;padding:12px 19px;font-size:12px;background:#eee6d9;border-inline-start:3px solid #b18b4b;color:#524631;min-height:1px}.security-message:empty{display:none}.section{max-width:1260px;margin:62px auto;padding:0 22px}.section-head{display:flex;align-items:center;gap:17px;justify-content:space-between;border-bottom:1px solid #ddcfbb;padding-bottom:18px;margin-bottom:24px}.section-head small{font-size:11px;font-weight:700;color:#916e39;letter-spacing:1px}.section-head h2{margin:3px 0 0;font-size:27px;color:#293443}.flourish{color:#a88b61;font-size:27px}.featured-area{border:1px solid var(--line);background:var(--paper);border-radius:9px;display:grid;grid-template-columns:260px 1fr;gap:44px;padding:30px;align-items:center;box-shadow:var(--shadow)}.featured-cover{background:linear-gradient(135deg,#1a3553,#101e32);color:#ead5aa;min-height:280px;border-radius:5px;box-shadow:12px 10px 15px #17212e38,inset 7px 0 #cba87155,inset -2px 0 8px #0008;display:flex;flex-direction:column;align-items:center;justify-content:space-around;padding:25px;text-align:center;border:1px solid #d5b477}.featured-cover>span{font:700 15px Georgia,serif;letter-spacing:3px}.featured-cover .star{font-size:28px}.featured-cover strong{font-size:23px;line-height:1.5}.featured-cover small{font-size:13px}.featured-cover i{font:700 18px Georgia,serif}.featured-text .caps,.small-caption{font-size:11px;color:#a38356;font-weight:800}.featured-text h3{font-size:27px;margin:10px 0;color:#23344e}.featured-text p{font-size:14px;line-height:1.9;max-width:620px;color:#52575d}.open-volume{margin-top:14px;display:inline-flex;gap:12px;align-items:center;background:#273d52;color:#fff;border-radius:4px;padding:10px 20px;font-size:13px;font-weight:700}.open-volume:hover{background:#39556d}.right-arrow{font-size:17px}
.filters{display:flex;align-items:end;gap:14px;flex-wrap:wrap;background:#fffefb;border:1px solid var(--line);border-radius:9px;padding:18px;margin-bottom:26px}.filters label{display:flex;flex-direction:column;gap:5px;font-size:12px;color:#5f5953;font-weight:700}.filters .searchbox{flex:1;min-width:220px}.filters input,.filters select{width:100%;background:#fff;border:1px solid #d5cdbd;padding:10px 14px;border-radius:5px;color:#273340;font-size:13px;min-height:43px}.filters select{min-width:118px}.subtle{border:1px solid #bda77f;background:#fffaf0;padding:9px 15px;border-radius:5px;color:#5f4732;font-size:12px;font-weight:700;min-height:41px}.subtle:hover{background:#efe1c8}.shelf-groups{display:grid;gap:32px}.shelf-group{border-radius:7px;background:linear-gradient(90deg,#2d201a,#443027 45%,#2a1c16);padding:19px 25px 0;box-shadow:0 20px 30px #3d2f2420;border:1px solid #7f6043}.shelf-label{color:#e4c79a;font-size:16px;font-weight:800;display:flex;gap:12px;align-items:center;border-bottom:1px solid #886c53;padding-bottom:10px}.shelf-label b{font-size:11px;border:1px solid #8f7657;border-radius:20px;min-width:23px;text-align:center}.volume-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:25px;padding:26px 0 29px}.book-card{display:flex;flex-direction:column;align-items:stretch;gap:0;background:#fffdf8;border-radius:7px 7px 4px 4px;overflow:hidden;border:1px solid #cfb78d;box-shadow:4px 6px 13px #0006;transition:transform .15s}.book-card:hover{transform:translateY(-6px)}.book-cover{height:190px;background:linear-gradient(140deg,#1c3659,#14243c);display:flex;align-items:center;justify-content:center;padding:17px;color:#f0d6a5;position:relative}.book-cover:before{content:'';position:absolute;inset:10px;border:1px solid #d6b77e99;pointer-events:none}.book-cover.ink{background:linear-gradient(130deg,#283b4a,#17242d)}.book-cover.emerald{background:linear-gradient(135deg,#265747,#173b30)}.book-cover.wine{background:linear-gradient(120deg,#673b43,#40242c)}.cover-inset{position:relative;text-align:center;display:flex;flex-direction:column;gap:5px;align-items:center}.cover-company{font:700 16px Georgia,serif;letter-spacing:3px}.cover-glyph{font-size:23px}.cover-inset strong{font-size:19px}.cover-inset small{font-size:12px}.cover-inset em{font:700 14px Georgia,serif}.book-info{padding:18px;display:flex;flex-direction:column;flex:1}.book-info h3{font-size:16px;line-height:1.6;min-height:50px;margin:8px 0;color:#24364a}.book-info p{font-size:12px;color:#616166;line-height:1.7;flex:1;min-height:42px}.book-info .open-volume{margin-top:14px;padding:9px 12px;font-size:12px;justify-content:center}.shelf-edge{height:20px;margin:0 -25px;background:linear-gradient(#926e49,#493124 65%,#281b15);border-top:3px solid #c09a5e;box-shadow:0 13px 12px #0007}.empty{padding:40px;text-align:center;color:#6b635b}.timeline{display:flex;flex-wrap:wrap;gap:12px}.timeline-chip{border:1px solid #c7b48d;background:#fff;border-radius:25px;color:#604b35;padding:11px 18px;font-weight:700}.timeline-chip.selected,.timeline-chip:hover{background:#30241c;color:#ecd1a3}footer{margin-top:75px;background:#211b17;color:#dfcdb2;padding:30px clamp(20px,5vw,78px);display:flex;align-items:center;gap:20px;justify-content:space-between;font-size:12px}footer>span{font:700 25px Georgia,serif;letter-spacing:3px}footer p{max-width:720px;margin:0;opacity:.8}
.admin-main{max-width:1300px;margin:40px auto 90px;padding:0 20px;min-height:60vh}.admin-header{border-bottom:1px solid #d8c4a5;padding-bottom:20px}.admin-header small{color:#a08150;font-size:11px;letter-spacing:1px;font-weight:800}.admin-header h1{margin:8px 0 7px;font-size:31px;color:#263547}.admin-header p{margin:0;font-size:13px;color:#6e7174}.admin-main .security-message{max-width:100%;margin:25px 0}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:25px 0}.metrics>div{background:#fff;border:1px solid var(--line);padding:22px 15px;border-top:3px solid #a68c5a;border-radius:7px;display:flex;flex-direction:column;gap:7px}.metrics strong{font-size:32px;color:#293b50}.metrics span{font-size:12px;color:#6c6f74}.admin-tabs{display:flex;gap:7px;border-bottom:1px solid #cbb58e}.admin-tabs button{border:0;border-bottom:3px solid transparent;background:transparent;padding:15px 22px;font-size:13px;font-weight:700;color:#71634e}.admin-tabs button.active{border-bottom-color:#9b763b;color:#24394f}.admin-panel{padding:24px;background:#fff;border:1px solid var(--line);border-top:0;border-radius:0 0 7px 7px;min-height:230px}.admin-panel h2{font-size:19px;color:#29374b;margin:0 0 20px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px}th{background:#2e3e51;color:#fff;padding:12px;text-align:start;white-space:nowrap}td{border-bottom:1px solid #e7e3dd;padding:12px;color:#4a4d50}tr:nth-child(even) td{background:#faf8f4}.row-actions{display:flex;gap:6px;flex-wrap:wrap}.row-actions button{white-space:nowrap;min-height:32px;padding:5px 9px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-grid label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700;color:#5a534b}.form-grid input:not([type=checkbox]),.form-grid select,.form-grid textarea{border:1px solid #d7cfc4;background:#fff;padding:10px;border-radius:5px;color:#273242;font-size:13px;min-height:42px}.form-grid .wide{grid-column:1/-1}.form-grid .checkrow{flex-direction:row;align-items:center;gap:10px}.form-grid input[type=checkbox]{height:17px;width:17px}.helper{color:#77746f;font-size:12px;line-height:1.8;margin:16px 0}.form-actions{display:flex;gap:10px;margin:22px 0 10px}.form-message{min-height:22px;font-size:12px;color:#34533c}.audit-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.audit-head h2{margin:0}.reader-main{max-width:1500px;margin:25px auto;padding:0 24px;min-height:70vh}.reader-main h1{color:#25394c;font-size:22px}.reader-main .security-message{max-width:100%}.reader-main #viewerActions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.publication-iframe{display:block;width:100%;height:75vh;min-height:620px;background:#fff;border:1px solid #d7c8a8;box-shadow:var(--shadow)}
@media(max-width:900px){.hero{grid-template-columns:1fr}.shelf-art{display:none}.hero-text{padding:60px 30px}.featured-area{grid-template-columns:190px 1fr;gap:25px}.featured-cover{min-height:240px}.metrics{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.headstrip{padding:12px 16px;gap:8px;flex-wrap:wrap}.monogram{height:39px;width:39px;font-size:26px}.branding strong{font-size:20px}.branding span{font-size:10px}.head-actions{width:100%;justify-content:space-between;gap:7px}.account{max-width:85px}.navline{padding:0 15px;gap:10px}.navline nav{gap:15px}.secure-mark{font-size:9px}.hero{min-height:315px}.hero-text{padding:50px 22px}.hero-desc{font-size:13px}.section{margin:38px auto;padding:0 15px}.section-head h2{font-size:22px}.featured-area{grid-template-columns:1fr;padding:20px}.featured-cover{max-width:230px;margin:auto;width:100%}.filters{display:grid;grid-template-columns:1fr 1fr}.filters .searchbox{grid-column:1/-1;min-width:0}.filters input,.filters select{min-width:0}.volume-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.shelf-group{padding:16px 15px 0}.shelf-edge{margin:0 -15px}.metrics{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:1}footer{flex-direction:column;align-items:flex-start}.publication-iframe{height:70vh;min-height:420px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

/* Administration interface additions */
.admin-quick{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:24px 0 16px}
.admin-quick .subtle{display:inline-flex;align-items:center;text-decoration:none}
.local-preview-note{margin:12px 0;padding:13px 17px;background:#fff7e7;border:1px solid #cdb78d;border-inline-start:4px solid #b69356;border-radius:5px;color:#604d34;font-size:13px;font-weight:600}
.danger{color:#8e372e!important;border-color:#dfb8b1!important}
.danger:hover{background:#fff0ed!important}
.admin-panel form input[type=file]{background:#fdf9f2;border:1px dashed #aa8c60;padding:16px}
.admin-panel form input[type=file]::file-selector-button{background:#304156;color:white;border:0;padding:9px 13px;border-radius:4px;margin-inline-end:13px;cursor:pointer}
.admin-main #adminState:empty{display:none}

.admin-panel .file-picker .sr-only{position:absolute!important;width:1px!important;height:1px!important;clip-path:inset(50%);overflow:hidden}
.custom-file-input{display:flex;align-items:center;gap:14px;justify-content:space-between;border:1px dashed #aa8c60;padding:14px 18px;background:#fdf9f2;border-radius:5px;cursor:pointer;min-height:58px}
.custom-file-input>span:first-child{font-size:12px;color:#665949;font-weight:500;min-width:0;overflow-wrap:anywhere}
.custom-file-input .file-button{color:#fff;background:#304156;border-radius:4px;padding:8px 14px;font-size:12px;white-space:nowrap}
.file-picker:focus-within .custom-file-input{outline:3px solid #bd8e3f;outline-offset:3px}


/* V8 – Executive Library. Heritage materiality, contemporary information architecture. */
:root{--gold:#d4b376;--goldsoft:#ebd6aa;--cream:#f3eee5;--paper:#fffcf5;--ink:#222a33;--line:#e2d5c2;--shadow:0 24px 55px #24170d1c}
body.library-v8{background:#f4efe6;background-image:radial-gradient(circle at 50% 0,#faf7f0 0,transparent 45%),linear-gradient(90deg,#e7ded0 0 1px,transparent 1px);background-size:auto,140px 140px}
.library-v8 .headstrip{min-height:88px;background:#1f1a16;border-bottom:1px solid #80613d;padding-inline:clamp(22px,5vw,82px)}
.library-v8 .brand-mark{display:flex;align-items:center;gap:16px}
.library-v8 .monogram{font-size:27px;height:48px;width:48px;border-color:#ba9558;color:#d8ba86;border-radius:50%;background:linear-gradient(145deg,#44382b,#181511);box-shadow:0 0 0 4px #c5a46a14}
.library-v8 .branding strong{font-size:27px;font-weight:700;letter-spacing:.12em;color:#f9f5ec}
.library-v8 .branding span{font-size:12px;letter-spacing:0;color:#d8c8aa}
.library-v8 .navline{min-height:54px;background:#292018;border-bottom:1px solid #6a4d30;padding-inline:clamp(22px,5vw,82px)}
.library-v8 .navline nav{gap:37px}.library-v8 .navline a{font-size:12px;padding:15px 0}.library-v8 .secure-mark{font-size:11px;color:#e2c998}
.library-v8 .head-actions .account{color:#ddccae}.library-v8 .language-toggle{border-color:#69523c;background:#1a1512}.library-v8 .language-toggle button.active{background:#d8b776;color:#281a0e}
.library-v8 .hero{min-height:465px;grid-template-columns:1.12fr .88fr;background:radial-gradient(ellipse at 32% 20%,#513b2b 0,transparent 47%),linear-gradient(108deg,#251b17 0%,#38251c 51%,#1a1613 100%);border-bottom:6px solid #b68b50}
.library-v8 .hero:before{opacity:.08;background:repeating-linear-gradient(90deg,#3b2a21 0,#3b2a21 30px,#543f30 31px,#22160f 33px)}
.library-v8 .hero-text{padding-block:70px 62px;padding-inline:clamp(28px,6vw,110px);max-width:900px;display:flex;flex-direction:column;align-items:flex-start}
.library-v8 .hero-eyebrow{display:inline-flex;gap:12px;align-items:center;border:1px solid #a5815180;padding:8px 16px;border-radius:50px;color:#efd4a0;font-size:11px;letter-spacing:.04em;font-weight:700;background:#ffffff08}
.library-v8 .hero-dot{width:7px;height:7px;background:#cda66a;border-radius:50%;box-shadow:0 0 0 3px #cda66a33}
.library-v8 .hero h1{font-weight:800;font-size:clamp(32px,3.7vw,57px);max-width:670px;line-height:1.35;letter-spacing:-.025em;margin:19px 0 0}
.library-v8 .gold-line{margin:19px 0 18px;height:2px;width:87px}
.library-v8 .hero-desc{max-width:610px;margin:0;color:#e9d8c2;font-size:15px;line-height:2.15}
.library-v8 .hero-buttons{display:flex;align-items:center;gap:14px;margin-top:29px;flex-wrap:wrap}
.library-v8 .hero .primary{border-radius:4px;background:linear-gradient(105deg,#e7c790,#c69d5e);padding:13px 26px;box-shadow:0 8px 26px #07030040;color:#251812}
.library-v8 .secondary-hero{display:inline-flex;padding:13px 20px;border:1px solid #af936b;color:#f0e0c8;border-radius:4px;font-size:13px;font-weight:700;min-height:48px}
.library-v8 .secondary-hero:hover{background:#fff1}
.library-v8 .hero-ornament{display:flex;gap:18px;margin-top:28px;color:#d7b878;font-size:15px;opacity:.8;align-self:flex-start}
.library-v8 .shelf-art{overflow:hidden;border-inline-start:1px solid #89683d;background:linear-gradient(90deg,#201713,#3c2a1f,#1a1410);padding:0 11% 78px}
.library-v8 .shelf-art:before{content:'';position:absolute;inset:13% 7% 13%;border:1px solid #ac805144;box-shadow:inset 0 0 90px #0009;pointer-events:none}
.library-v8 .art-books{align-items:end;gap:9px;filter:drop-shadow(12px 8px 9px #000a)}
.library-v8 .art-book{width:23%;height:254px;border-radius:3px 7px 3px 3px;border:1px solid #e3c58f77;box-shadow:inset 7px 0 7px #fff2,inset -10px 0 8px #0007,7px 8px 7px #0008}
.library-v8 .art-book.a{background:linear-gradient(95deg,#213e59,#0d2338);height:259px}
.library-v8 .art-book.b{background:linear-gradient(95deg,#603b35,#381e21);height:307px}
.library-v8 .art-book.c{background:linear-gradient(95deg,#32604d,#183e30);height:246px}
.library-v8 .art-book.d{background:linear-gradient(95deg,#594c32,#29291a);height:281px}
.library-v8 .art-book:after{content:'';position:absolute;inset:9px 7px;border-top:1px solid #dfc6917e;border-bottom:1px solid #dfc6917e;pointer-events:none}
.library-v8 .wood-shelf{bottom:51px;height:24px;border-top:4px solid #d2aa6d;background:linear-gradient(#947047 2%,#4c2c19 48%,#21150e 100%);box-shadow:0 19px 25px #000a}
.library-v8 .art-top{position:absolute;top:0;left:0;right:0;height:17px;background:linear-gradient(#5d4030,#2b201a);border-bottom:2px solid #aa8456}
.library-v8 .art-bottom{position:absolute;bottom:0;left:0;right:0;height:43px;background:linear-gradient(#2b1d14,#17110f)}
.library-v8 .library-note{max-width:1250px;margin:20px auto 0;border-inline-start:3px solid #a57d41;background:#eee3ce;color:#67513a;border-radius:3px;padding:12px 18px;min-height:0;font-size:12px}
.library-v8 .library-note:empty{display:none}
.library-v8 .section{max-width:1250px;margin:67px auto;padding-inline:24px}
.library-v8 .section-head{padding-bottom:21px;border-bottom:1px solid #d8c6a7;margin-bottom:24px}
.library-v8 .section-head h2{color:#2b3036;font-size:clamp(23px,2.2vw,30px);font-weight:800}
.library-v8 .section-head small{letter-spacing:.09em;color:#977449;font-size:11px}
.library-v8 .fine-decoration{font-size:23px;color:#b49360}
.library-v8 .featured-area{background:linear-gradient(115deg,#fffdf7,#f6efe3);border:1px solid #d5c39f;border-radius:9px;grid-template-columns:minmax(225px,270px) 1fr;gap:54px;min-height:340px;padding:35px 47px;box-shadow:0 14px 40px #2f241112}
.library-v8 .featured-cover{min-height:295px;border:1px solid #d5bb85;border-radius:4px;box-shadow:inset 7px 0 #bf92557a,inset 0 0 0 10px #0002,11px 13px 20px #121c2636;background:linear-gradient(112deg,#263d59,#13273f);position:relative}
.library-v8 .featured-cover:after{content:'';position:absolute;inset:12px;border:1px solid #d9c59a88;pointer-events:none}
.library-v8 .featured-text h3{font-size:clamp(23px,2.2vw,31px);color:#25364a;font-weight:800}
.library-v8 .featured-text p{font-size:14px;color:#5b5b58;line-height:2.15}
.library-v8 .open-volume{background:#243b50;color:#f8f8f2;padding:12px 22px;min-height:45px;border-radius:4px;font-weight:700;box-shadow:0 5px 13px #101c2a24}
.library-v8 .open-volume:hover{background:#39556d}
.library-v8 .collection-background{background:linear-gradient(#ece3d4,#f0e8dd);border-top:1px solid #e0cfb4;border-bottom:1px solid #dfcfb4;margin-top:68px;padding:1px 0 40px}
.library-v8 .collection-section{margin:47px auto 0}
.library-v8 .count-pill{border:1px solid #d1b88d;border-radius:40px;padding:8px 16px;color:#785a30;background:#fff8ec;font-size:12px;font-weight:800}
.library-v8 .filters{border:1px solid #d9cbb6;box-shadow:0 5px 18px #3525120b;background:#fffcf7;padding:20px;border-radius:8px;gap:14px;margin-bottom:29px}
.library-v8 .filters label{color:#685948;font-weight:700;font-size:12px}
.library-v8 .filters .searchbox{flex:2;min-width:250px}
.library-v8 .filters input,.library-v8 .filters select{background:#fff;border-color:#dfd3c2;border-radius:4px;min-height:47px}
.library-v8 .subtle{border-color:#bda47d;background:#fbf1df;min-height:47px;padding:10px 17px}
.library-v8 .shelf-groups{gap:29px}
.library-v8 .shelf-group{background:linear-gradient(100deg,#291b16,#493228 50%,#261916);padding:24px 28px 0;border:1px solid #a7845b;border-radius:8px 8px 4px 4px;box-shadow:0 22px 32px #33231533}
.library-v8 .shelf-label{padding-bottom:16px;color:#e8d1a9;border-bottom-color:#957454;font-size:17px}
.library-v8 .shelf-label b{background:#30231b;border-color:#a58154;min-width:28px}
.library-v8 .volume-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:25px 0 30px}
.library-v8 .book-card{background:#fffdf8;border-color:#d7c19b;border-radius:5px 5px 3px 3px;box-shadow:6px 7px 15px #0d080855;transition:transform .22s ease,box-shadow .22s ease;min-width:0}
.library-v8 .book-card:hover{transform:translateY(-7px);box-shadow:9px 14px 22px #0d080866}
.library-v8 .book-cover{height:215px;border-bottom:5px solid #cfb079;box-shadow:inset 8px 0 8px #ffffff10,inset -7px 0 12px #0005}
.library-v8 .book-cover:after{content:'';position:absolute;inset:17px;border:1px solid #d6b77eaa;pointer-events:none}
.library-v8 .book-cover:before{inset:11px;opacity:.4}
.library-v8 .cover-inset{gap:9px;color:#f3dcaa}
.library-v8 .cover-company{font-size:17px}.library-v8 .cover-glyph{font-size:25px}.library-v8 .cover-inset strong{font-size:20px}
.library-v8 .book-info{padding:19px 20px 21px}.library-v8 .book-info h3{font-size:15px;font-weight:800;line-height:1.65;min-height:52px}
.library-v8 .book-info p{font-size:12px;min-height:42px}.library-v8 .book-info .open-volume{margin-top:15px}
.library-v8 .shelf-edge{height:22px;border-top:3px solid #ceab73;background:linear-gradient(#99734a,#4b3024 60%,#24160f);margin-inline:-28px}
.library-v8 .timeline{display:flex;gap:10px}.library-v8 .timeline-chip{border-color:#bca577;background:#fffdf8;border-radius:5px;padding:12px 20px;color:#674d32}
.library-v8 .timeline-chip.selected,.library-v8 .timeline-chip:hover{background:#2b231d;color:#eacb94}
.library-v8 footer{background:#201916;border-top:3px solid #b28b57;padding-block:33px}.library-v8 .footer-identity{display:flex;align-items:center;gap:13px;font:700 20px Georgia,serif;letter-spacing:.14em}.library-v8 .footer-gold{color:#d4b376}.library-v8 .footer-est{font:700 13px Georgia,serif;color:#bba174}.library-v8 footer p{font-size:11px;line-height:1.9}
@media(max-width:900px){.library-v8 .featured-area{gap:25px;padding:28px;grid-template-columns:200px 1fr}.library-v8 .volume-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-v8 .hero{grid-template-columns:1fr}.library-v8 .shelf-art{display:none}}
@media(max-width:640px){.library-v8 .headstrip{padding:12px 17px}.library-v8 .brand-mark{gap:11px}.library-v8 .branding strong{font-size:21px}.library-v8 .branding span{font-size:10px}.library-v8 .head-actions{width:100%}.library-v8 .navline{padding:0 16px}.library-v8 .navline nav{gap:20px}.library-v8 .navline a{font-size:11px}.library-v8 .hero{min-height:auto}.library-v8 .hero-text{padding:51px 23px}.library-v8 .hero h1{font-size:32px}.library-v8 .hero-desc{font-size:13px}.library-v8 .section{padding-inline:16px;margin:43px auto}.library-v8 .featured-area{grid-template-columns:1fr;gap:20px;padding:21px}.library-v8 .featured-cover{max-width:220px;margin-inline:auto;min-height:245px;width:100%}.library-v8 .featured-text h3{font-size:23px}.library-v8 .collection-background{margin-top:43px}.library-v8 .filters{display:grid;grid-template-columns:1fr 1fr;padding:15px}.library-v8 .filters .searchbox{grid-column:1/-1;min-width:0}.library-v8 .volume-grid{grid-template-columns:1fr;gap:18px}.library-v8 .shelf-group{padding:17px 17px 0}.library-v8 .shelf-edge{margin-inline:-17px}.library-v8 footer{padding:26px 20px}}


/* V9 embedded magazine reader. Independent of SharePoint chrome. */
.reader-overlay[hidden]{display:none!important}.reader-overlay{position:fixed;inset:0;z-index:99999;display:flex;flex-direction:column;background:#f1eee7;overscroll-behavior:contain;animation:readerEnter .20s ease-out}.reader-overlay[dir="rtl"]{direction:rtl}.reader-overlay[dir="ltr"]{direction:ltr}.reader-toolbar{flex:0 0 auto;display:flex;align-items:center;gap:12px;min-height:69px;padding:10px clamp(12px,3vw,42px);background:#1c2e46;color:#f8f4ed;box-shadow:0 5px 25px #0b17273b}.reader-brand{letter-spacing:.16em;color:#e1bd72;font-family:Georgia,serif;font-weight:800;font-size:15px;white-space:nowrap}.reader-titles{min-width:0;flex:1;display:flex;flex-direction:column;gap:3px}.reader-titles strong{font-size:clamp(12px,1.2vw,16px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.reader-titles small{color:#d3dce8;font-size:10px;letter-spacing:.02em}.reader-tool-button{border:1px solid #8b98ac80;color:#f9f6f0;display:inline-flex;align-items:center;gap:6px;justify-content:center;min-height:40px;padding:8px 11px;background:#ffffff10;border-radius:9px;font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}.reader-tool-button:hover,.reader-tool-button:focus-visible{background:#ffffff23;border-color:#e0bc75}.reader-viewport{flex:1;min-height:0;position:relative;overflow:hidden;background:#eeeae2}.reader-page{width:100%;height:100%;display:block;border:0;background:#fff}.reader-alert{position:absolute;top:25px;left:clamp(12px,3vw,50px);right:clamp(12px,3vw,50px);background:#fffbea;border:1px solid #e4c98a;color:#2c3546;padding:19px 24px;border-radius:10px;box-shadow:0 9px 30px #0002;font-size:14px;z-index:2}.reader-alert[hidden]{display:none!important}.reader-overlay:-webkit-full-screen{width:100%;height:100%}.reader-overlay:fullscreen{width:100%;height:100%}@keyframes readerEnter{from{opacity:.5;transform:translateY(8px)}to{opacity:1;transform:none}}@media(max-width:650px){.reader-toolbar{min-height:62px;gap:8px;padding:9px}.reader-brand{font-size:12px;letter-spacing:.1em}.reader-tool-button{min-height:38px;padding:6px 9px}.reader-button-label{display:none}.reader-titles small{display:none}}
