@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Noto+Serif+Devanagari:wght@400;500;600;700&display=swap');
:root{--forest:#15352e;--deep:#0d2926;--gold:#cda66b;--ink:#2f302a;--cream:#f7f3ea;--border:#e4dbc9}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--ink);font-family:'DM Sans',system-ui,sans-serif}button,select,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.top{height:84px;background:#112d29;display:flex;align-items:center;justify-content:space-between;padding:0 max(4vw,24px);color:#fff;position:sticky;top:0;z-index:5;border-bottom:1px solid #ffffff23}.logo{display:flex;align-items:center;gap:14px;font:700 23px Georgia,serif;letter-spacing:2px}.logo em{font-style:normal;color:#e0ba76}.logo small{display:block;letter-spacing:1.5px;font-size:10px;font-family:'DM Sans',sans-serif;font-weight:400;color:#dec796;margin-top:5px}.lotus{font:36px 'Noto Serif Devanagari',serif;color:#e8c37c}.top nav{display:flex;gap:31px;color:#e1e9e2;font-size:13px}.top nav a:hover{color:#e5bb78}.outline{border:1px solid #7b988c;color:#f9f4e7;background:transparent;padding:10px 16px;border-radius:25px;font-size:13px}.hero{background:radial-gradient(ellipse at 78% 40%,#386357 0%,#1b4039 32%,#112c28 77%);min-height:535px;padding:58px max(5vw,25px);display:grid;grid-template-columns:1.15fr 1fr;gap:35px;overflow:hidden;color:#fff}.heroContent{max-width:625px;align-self:center}.eyebrow{color:#d6ad70;letter-spacing:3px;font-size:11px;font-weight:700}.hero h1{font:500 clamp(43px,5vw,78px)/1.11 'Playfair Display',Georgia,serif;letter-spacing:-1.8px;margin:26px 0}.hero h1 i{color:#e7c18a;font-weight:400}.hero h1 span{display:block;font:500 clamp(22px,2.6vw,33px)/1.6 'Noto Serif Devanagari',serif;letter-spacing:0;margin-top:17px;color:#f7e8ca}.hero p{max-width:530px;color:#cbd8d0;line-height:1.85;font-size:15px}.heroActions{display:flex;gap:14px;flex-wrap:wrap;margin-top:32px}.goldBtn{border:0;background:linear-gradient(130deg,#f1d7a1,#c89d5d);color:#16352d;padding:15px 22px;border-radius:8px;font-weight:700}.lightBtn{padding:14px 20px;border:1px solid #86a49b;border-radius:8px;color:#edf5ed;font-size:14px}.heroFooter{margin-top:42px;color:#dfc89d;font-size:12px;letter-spacing:.6px}.heroVisual{position:relative;display:grid;place-items:center;min-height:430px}.halo{position:absolute;width:440px;height:440px;border:1px solid #d2ad6c42;border-radius:50%;box-shadow:0 0 0 33px #d2ad6c09,0 0 0 70px #d2ad6c0a}.bookCover{z-index:1;background:linear-gradient(115deg,#0a2426,#1e5050 65%,#10332f);width:267px;height:375px;border-radius:4px 13px 13px 4px;box-shadow:-13px 8px 0 #081e20,18px 24px 45px #051c1cba;transform:rotate(-7deg);padding:15px;border:2px solid #b8995c;display:flex}.bookBorder{border:1px solid #ad8d55;display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1;color:#f2dca5;gap:26px}.coverOm{font:78px 'Noto Serif Devanagari',serif}.coverLine{font:600 25px 'Noto Serif Devanagari',serif}.coverDivider{font-size:25px}.coverSub{font:12px Georgia,serif;letter-spacing:2.1px}.coverFoot{font:12px 'Noto Serif Devanagari',serif}.floatingQuote{position:absolute;right:0;bottom:29px;z-index:2;background:#f6f1e4;color:#284335;padding:17px 19px;border-radius:9px;box-shadow:0 10px 30px #0004;font:17px 'Noto Serif Devanagari',serif}.floatingQuote small{font:12px 'DM Sans',sans-serif;color:#706c5b}.sectionHeading{max-width:1280px;margin:0 auto;padding:76px 26px 22px}.dark{color:#a67938}.sectionHeading h2,.categories h2,.readerTop h2{font:500 clamp(28px,3vw,42px) 'Playfair Display',Georgia,serif;color:#1d382f;margin:13px 0}.sectionHeading h2 span,.readerTop h2 span{color:#bb944d}.sectionHeading p{color:#77786d;font-size:14px}.library{max-width:1280px;margin:auto;padding:12px 26px 40px;display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.libraryCard{min-height:264px;position:relative;border-radius:16px;overflow:hidden;padding:27px;color:white;background:linear-gradient(130deg,#143c38,#2b645a);display:flex;justify-content:space-between;box-shadow:0 15px 30px #24352d12}.libraryCard.amber{background:linear-gradient(120deg,#815b33,#b58d51)}.libraryCard.maroon{background:linear-gradient(120deg,#612a36,#904951)}.cardSymbol{font:90px 'Noto Serif Devanagari',serif;color:#eacb8d99;position:absolute;right:18px;top:23px}.cardText{z-index:1;align-self:flex-end}.tiny{font-size:10px;letter-spacing:1.3px;color:#e6d9b2}.cardText h3{margin:13px 0 3px;font:600 27px 'Noto Serif Devanagari',serif}.cardText p{margin:0 0 13px;font:19px 'Playfair Display',serif}.cardText small{display:block;color:#e7dfd3}.cardText button{border:0;background:#eac790;color:#13352e;border-radius:6px;font-weight:700;padding:10px 13px;margin-top:18px}.cardText button span{margin-left:15px}.categories{max-width:1280px;margin:0 auto;padding:15px 26px 65px}.categories h2{font-size:28px}.categoryGrid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.categoryGrid>div,.categoryGrid>a{background:#fffcf6;border:1px solid var(--border);border-radius:12px;padding:23px 13px;text-align:center}.categoryGrid b{font-size:29px;display:block;margin-bottom:12px;color:#ab824b}.categoryGrid strong{font-size:13px;display:block;color:#314a3f}.categoryGrid small{display:block;font-size:11px;color:#948f80;margin-top:8px}.readerZone{background:#ece8dd;padding:70px max(3vw,18px) 65px;scroll-margin-top:84px}.readerTop{max-width:1150px;margin:0 auto 26px;display:flex;align-items:center;justify-content:space-between;gap:20px}.readerTop h2{font-family:'Noto Serif Devanagari',serif;font-size:34px}.readerTop p{color:#687269;font-size:13px}.darkOutline{border-color:#a2ad9b;color:#245241}.readingControls{max-width:1150px;margin:0 auto 18px;display:flex;gap:12px;flex-wrap:wrap;align-items:end}.readingControls label{font-size:11px;font-weight:700;color:#6e6e61;display:flex;flex-direction:column;gap:6px}.readingControls select,.readingControls button{background:#fffaf1;border:1px solid #d5cbb7;padding:10px 13px;border-radius:7px;color:#264a3c}.openBook{max-width:1150px;margin:auto;display:grid;grid-template-columns:1fr 1fr;border:1px solid #c7b99b;border-radius:5px 14px 14px 5px;overflow:hidden;box-shadow:0 23px 40px #382e2529,0 0 0 7px #dacdb74d;background:#fffaf0;min-height:465px}.paper{padding:37px 42px 46px;position:relative;min-width:0;background:linear-gradient(90deg,#ede0c7 0%,#fff9eb 6%,#fffdf6 90%,#eee3cb 100%)}.rightPaper{border-left:1px solid #cfc0a2;background:linear-gradient(90deg,#e5d8bd,#fffaf0 7%,#fffdf7 97%)}.pageTop{text-align:center;font:12px Georgia,serif;letter-spacing:2px;color:#ae8a52}.paper h3{text-align:center;font:500 21px 'Noto Serif Devanagari',serif;color:#24483e;margin:18px 0}.rightPaper h3{font-family:'Playfair Display',serif}.shloka{white-space:pre-line;text-align:center;margin:25px auto;font:500 clamp(19px,2vw,25px)/2.1 'Noto Serif Devanagari',serif;color:#302b24}.translit{text-align:center;font:13px/1.7 Georgia,serif;color:#867767}.meaning{white-space:pre-wrap;font:17px/1.85 'Noto Serif Devanagari',serif;color:#423930;margin-bottom:18px}.english{font:17px/1.85 Georgia,serif}.pageBottom{position:absolute;bottom:17px;left:0;right:0;text-align:center;color:#927f60;font:12px Georgia,serif}.pageNav{max-width:1150px;margin:25px auto;display:flex;justify-content:center;align-items:center;gap:25px}.pageNav button,.utilityRow button{border:1px solid #bdbaa9;padding:11px 18px;background:#fffaf1;border-radius:7px;color:#315448}.pageNav span{font-size:13px;color:#657369}.audioDock{max-width:1150px;margin:0 auto 24px;background:#15382f;color:#fff;border-radius:13px;padding:18px 22px;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}.audioTitle{display:flex;align-items:center;gap:12px}.audioTitle small{display:block;font-size:11px;margin-top:5px;color:#b5cbbd}.audioIcon{background:#386454;font-size:25px;padding:10px 15px;border-radius:50%}.audioButtons{display:flex;gap:7px;flex-wrap:wrap}.audioButtons button{padding:11px 13px;color:#f7f4e9;background:#315449;border:1px solid #628173;border-radius:6px}.audioButtons .audioPrimary{background:#e5c58b;color:#16372d;border-color:#e5c58b;font-weight:700}.voiceLink{border:0;color:#dfc393;background:none}.utilityRow{max-width:900px;margin:20px auto;display:flex;gap:9px}.utilityRow input{flex:1;min-width:40px;border:1px solid #d9d2bd;background:#fffbf2;padding:12px;border-radius:7px}.searchResults{max-width:900px;margin:0 auto}.searchResults button{width:100%;background:#fffbf2;border:1px solid #e1d5bf;text-align:left;margin:4px 0;padding:10px;color:#214f3d;border-radius:5px}.sourceOptions{max-width:900px;margin:20px auto;background:#fffbf5;padding:19px;border:1px solid #d1b88b;border-radius:8px;font-size:13px;line-height:1.7}.sourceTitle{font-size:16px;font-weight:700}.sourceOptions a{color:#396e55;text-decoration:underline}.sourceOptions button,.importLabel{padding:8px 11px;border-radius:5px;border:1px solid #c5ae87;background:white;cursor:pointer}.importLabel input{display:none}.attribution{text-align:center;font-size:11px;color:#737a6f;margin:25px auto}.attribution a{text-decoration:underline}.modal{position:fixed;inset:0;background:#041d1abf;z-index:10;display:grid;place-items:center;padding:15px}.modal[hidden],.sourceOptions[hidden]{display:none}.modalBox{position:relative;max-width:495px;width:100%;max-height:94vh;overflow:auto;background:#faf7ee;border-radius:14px;padding:30px;box-shadow:0 30px 60px #0008}.modalBox h2{font:34px 'Playfair Display',serif;color:#1a4134}.modalBox p{font-size:13px;line-height:1.75;color:#6b6e62}.modalBox label{display:block;font-size:13px;font-weight:700;margin:18px 0;color:#335043}.modalBox select,.modalBox input{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid #cfc8b3;background:white;border-radius:6px}.modalBox input[type=range]{padding:0}.close{position:absolute;right:22px;top:14px;border:0;font-size:30px;background:none}footer{background:#102e29;padding:34px 5vw;color:#d9b983;text-align:center;font:18px 'Noto Serif Devanagari',serif}footer span{display:block;font:10px 'DM Sans',sans-serif;letter-spacing:2px;margin-top:12px;color:#b3c2b4}@media(max-width:800px){.top{height:70px}.top nav{display:none}.hero{grid-template-columns:1fr;padding:42px 24px 56px}.heroVisual{min-height:360px}.bookCover{width:222px;height:315px}.floatingQuote{right:5%}.library{grid-template-columns:1fr}.libraryCard{min-height:215px}.categoryGrid{grid-template-columns:repeat(2,1fr)}.openBook{grid-template-columns:1fr}.paper{min-height:310px;padding:30px 24px 42px}.rightPaper{border-left:0;border-top:1px solid #d0c0a6}.readerTop{display:block}.readerTop button{margin-top:10px}.utilityRow{flex-wrap:wrap}.utilityRow input{flex-basis:100%}}@media(max-width:460px){.logo{font-size:15px}.lotus{font-size:29px}.top>.outline{font-size:11px;padding:8px}.hero h1{font-size:42px}.heroFooter{line-height:2}.sectionHeading{padding-top:46px}.categoryGrid{grid-template-columns:repeat(2,1fr)}.readerZone{padding-top:45px}.audioDock{justify-content:center}.audioTitle{width:100%}}

/* Book experience: a separate, immersive reader instead of a scroll destination. */
body.book-open{overflow:hidden;background:#0b201c}
body.book-open>.top,body.book-open>footer{visibility:hidden}
.readerZone{display:none;position:fixed;inset:0;z-index:60;overflow-y:auto;overscroll-behavior:contain;padding:0 0 56px;background:radial-gradient(ellipse at 53% -25%,#496858 0%,#1b3b32 40%,#0b211c 92%);scroll-margin-top:0;color:#f2e9d1}
body.book-open .readerZone{display:block;animation:readerEnter .42s ease both}
.readerChrome{position:sticky;top:0;z-index:70;display:flex;justify-content:space-between;align-items:center;gap:15px;min-height:76px;padding:12px clamp(16px,4vw,66px);background:#0c2924ef;border-bottom:1px solid #d5b77835;backdrop-filter:blur(12px)}
.readerChromeBrand{display:flex;align-items:center;gap:13px;text-align:center}.brandOm{font-size:36px;color:#ddbb78}.readerChromeBrand strong{display:block;font:600 21px 'Noto Serif Devanagari',serif;color:#f0d69f}.readerChromeBrand small{display:block;color:#d4c49d;font:10px 'DM Sans',sans-serif;letter-spacing:1.7px}
.readerBack,.soundToggle{background:#1e4538;border:1px solid #bbac854f;color:#fbecd0;border-radius:24px;padding:11px 16px;font-size:13px;white-space:nowrap}.readerBack:hover,.soundToggle:hover{background:#335e48}.soundToggle[aria-pressed="false"]{opacity:.65}
.bookReaderContent{max-width:1400px;margin:auto;padding:36px clamp(16px,3vw,46px) 12px}
.readerZone .readerTop,.readerZone .readingControls,.readerZone .openBook,.readerZone .pageNav,.readerZone .audioDock,.readerZone .utilityRow,.readerZone .searchResults,.readerZone .sourceOptions,.readerZone .attribution{max-width:1140px}
.readerZone .readerTop{margin:0 auto 23px;color:#fff;align-items:center}.readerZone .readerTop .eyebrow{color:#e5bd79}.readerZone .readerTop h2{color:#f9ebc6;font-size:clamp(25px,3vw,34px);margin:7px 0}.readerZone .readerTop h2 span{color:#e9bf76}.readerZone .readerTop p{color:#d4cbb6;margin:3px 0}.readerZone .readerTop .darkOutline{color:#eee0c0;border-color:#b7a77c}
.readerZone .readingControls{border:1px solid #e4c99747;background:#ffffff0e;padding:15px 19px;border-radius:15px;margin-bottom:26px;align-items:center;box-shadow:0 10px 25px #0002}.readerZone .readingControls label{color:#e7dbbd}.readerZone .readingControls select,.readerZone .readingControls button{color:#194236;background:#fffaf0;border-color:#b6a57d}
.openBook{position:relative;isolation:isolate;perspective:2200px;overflow:visible;border-radius:7px 19px 19px 7px;border:7px solid #93754f;box-shadow:0 32px 90px #0009,0 6px 0 #573c28,0 0 0 1px #f7daa1,0 0 0 13px #e7cf9a18;min-height:500px;transform:translateZ(0)}
.openBook:before{content:'';position:absolute;top:0;bottom:0;left:50%;width:24px;transform:translateX(-50%);z-index:2;pointer-events:none;background:linear-gradient(90deg,transparent,#65442635 29%,#0002 48%,#fff6 78%,transparent)}
.openBook .paper{padding:44px clamp(26px,3.3vw,56px) 54px;min-height:490px;background:repeating-linear-gradient(0deg,#ffffff14 0px,#ffffff14 2px,transparent 2px,transparent 6px),linear-gradient(90deg,#d4c4a9 0%,#fbf1d9 7%,#fffaf0 87%,#f0e2c6 100%)}
.openBook .rightPaper{background:repeating-linear-gradient(0deg,#ffffff14 0px,#ffffff14 2px,transparent 2px,transparent 6px),linear-gradient(90deg,#e8d4b4 0%,#fff8e8 8%,#fffbf3 93%,#c7b38f 100%)}
.openBook .paper h3{color:#724920}.openBook .pageTop{color:#956e41}.openBook .meaning,.openBook .shloka{color:#31271e}
.pageEdge{position:absolute;z-index:5;top:42%;transform:translateY(-50%);height:76px;width:40px;border:1px solid #a27f4c84;background:#f7eac8e6;color:#684324;font:40px Georgia,serif;display:grid;place-items:center;box-shadow:0 3px 10px #0004}.pageEdgePrev{left:-14px;border-radius:0 20px 20px 0}.pageEdgeNext{right:-14px;border-radius:20px 0 0 20px}.pageEdge:hover{background:#e8cd94}.pageEdge:disabled{opacity:.25;cursor:not-allowed}
.flipSheet{position:absolute;z-index:8;top:0;bottom:0;width:50%;left:50%;transform-origin:left center;transform-style:preserve-3d;pointer-events:none;box-shadow:3px 8px 21px #0003;will-change:transform}.flipSheet[hidden]{display:none}.flipSheet.turnForward{animation:flipForward 670ms cubic-bezier(.23,.5,.21,1) both}.flipSheet.turnBackward{left:0;transform-origin:right center;animation:flipBackward 670ms cubic-bezier(.23,.5,.21,1) both}
.flipFace{position:absolute;inset:0;backface-visibility:hidden;overflow:hidden;background:#fff8e7;box-shadow:inset 3px 0 9px #a6885940}.flipFace.flipFront .paper{width:100%;height:100%;min-height:100%;border:none}.flipBack{transform:rotateY(180deg);display:flex;align-items:center;justify-content:center;flex-direction:column;background:linear-gradient(110deg,#e5d6b9,#fffaf0 60%,#eedfc2);color:#9f7e4c}.flipBack span{font-size:64px}.flipBack small{letter-spacing:3px}
@keyframes flipForward{from{transform:rotateY(0)}to{transform:rotateY(-180deg)}}@keyframes flipBackward{from{transform:rotateY(0)}to{transform:rotateY(180deg)}}@keyframes readerEnter{from{opacity:.1;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}
.readerZone .pageNav{gap:30px;margin:26px auto;justify-content:space-between}.readerZone .pageNav>button{border:1px solid #d8bd82;background:#f8eccf;color:#244639;min-width:125px}.bookProgress{flex:1;max-width:360px;text-align:center}.bookProgress #position{color:#f6eac6;font-weight:600}.bookProgress small{display:block;color:#c5bea9;font-size:11px;margin-top:6px}.progressTrack{height:5px;background:#ffffff35;border-radius:20px;overflow:hidden;margin-top:12px}.progressFill{height:100%;width:0%;background:#d6ad6b;border-radius:20px;transition:width .3s ease}
.readerZone .audioDock{border:1px solid #d8bd8240;background:#123329;box-shadow:0 15px 24px #0003}.readerZone .utilityRow input{background:#fffdf6}.readerZone .sourceOptions{background:#f7eacc;color:#2d4638;padding:20px;border-radius:10px;margin:12px auto}.readerZone .attribution{color:#d1c9af}.readerZone .attribution a{color:#e9bb6d}.readerZone .searchResults{margin-inline:auto}.readerZone .searchResults button{color:#1c4034}
.modal{z-index:200}
@media(max-width:760px){.readerChrome{min-height:64px;padding:9px 12px;gap:6px}.readerChromeBrand strong{font-size:15px}.readerChromeBrand small{font-size:8px;letter-spacing:.3px}.brandOm{display:none}.readerBack,.soundToggle{font-size:12px;padding:10px 11px}.readerBack span{display:none}.soundToggle{max-width:115px;overflow:hidden;text-overflow:ellipsis}.bookReaderContent{padding:22px 14px 35px}.readerZone .readerTop{display:block}.readerZone .readerTop .darkOutline{margin-top:14px}.readerZone .readingControls{gap:8px;padding:12px}.readerZone .readingControls select{max-width:150px}.openBook{border-width:5px;min-height:auto}.openBook:before{display:none}.openBook .paper{min-height:200px;padding:24px 22px 37px}.openBook .rightPaper{border-top:1px solid #dfcda8}.openBook .leftPaper{padding-bottom:28px}.pageEdge{width:28px;height:50px;font-size:28px;top:46%}.pageEdgePrev{left:-7px}.pageEdgeNext{right:-7px}.flipSheet{width:100%;left:0;top:0;bottom:0}.flipSheet.turnForward,.flipSheet.turnBackward{transform-origin:left center}.readerZone .pageNav{gap:9px}.readerZone .pageNav>button{min-width:86px;padding:10px 8px;font-size:12px}.bookProgress small{display:none}.readerZone .audioDock{padding:14px}.readerZone .audioButtons button{font-size:12px}.readerZone .readerTop h2{font-size:25px}}
@media(prefers-reduced-motion:reduce){body.book-open .readerZone{animation:none}.flipSheet.turnForward,.flipSheet.turnBackward{animation-duration:1ms}}

/* An embossed cover briefly swings open as the book is entered. */
.openingCover{position:absolute;z-index:15;top:0;bottom:0;left:50%;width:50%;transform-origin:left center;backface-visibility:hidden;transform-style:preserve-3d;background:linear-gradient(100deg,#0b241f,#295c44 55%,#103329);border:5px solid #b58d51;box-shadow:4px 0 20px #0008;display:grid;place-items:center;pointer-events:none;visibility:hidden}
.openingCoverBorder{border:2px solid #bca06c80;inset:12px;position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#f4d597;gap:15px}
.openingOm{font:70px 'Noto Serif Devanagari',serif}.openingHindi{font:600 25px 'Noto Serif Devanagari',serif}.openingOrnament{letter-spacing:8px}.openingEnglish{font:14px Georgia,serif;letter-spacing:3px}
body.book-open .openingCover{visibility:visible;animation:openCover 850ms cubic-bezier(.16,.83,.4,1) .15s forwards}
@keyframes openCover{0%{opacity:1;transform:rotateY(-3deg)}70%{opacity:1}100%{opacity:0;transform:rotateY(-175deg);visibility:hidden}}
.readerZone .audioDock{position:fixed;bottom:12px;left:50%;transform:translateX(-50%);width:min(1140px,calc(100% - 32px));z-index:85;box-shadow:0 10px 34px #0009;padding:12px 18px;margin:0;backdrop-filter:blur(10px)}
.readerZone .audioTitle small{color:#bfd3c7}.readerZone .audioButtons button{padding:10px 12px}
.bookReaderContent{padding-bottom:180px}
@media(max-width:760px){.openingCover{left:0;width:100%}.openingOm{font-size:48px}.openingHindi{font-size:21px}.readerZone .audioDock{bottom:6px;width:calc(100% - 12px);padding:10px 11px;gap:5px;justify-content:center}.readerZone .audioTitle{display:none}.readerZone .audioButtons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.readerZone .audioButtons button{padding:8px 5px;min-height:35px;font-size:11px}.readerZone .voiceLink{padding:5px;font-size:11px}.bookReaderContent{padding-bottom:195px}}
@media(prefers-reduced-motion:reduce){body.book-open .openingCover{display:none}}

/* Keep content-library links from latest book integrations. */
.categoryGrid>a.categoryReady{display:block;text-decoration:none;background:#eaf0e3;border-color:#a9b99b;transition:transform .16s,box-shadow .16s}.categoryGrid>a.categoryReady:hover{transform:translateY(-4px);box-shadow:0 10px 25px #173d2c22}.categoryGrid>a.categoryReady small{color:#285c43;font-weight:700}

.cardText a.bookLink{display:inline-block;background:#eac790;color:#13352e;text-decoration:none;border-radius:6px;font-weight:700;padding:10px 13px;margin-top:18px}.cardText a.bookLink:hover{background:#f6d8a0}

/* Divya Granth mobile one-page reading: don't overlay the text with playback panels. */
.mobilePageLabel{display:none}
.musicBar{max-width:1140px;margin:0 auto 18px;display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:14px 18px;border:1px solid #bcad7f61;border-radius:12px;background:#13382f;color:#f5e5c4;box-shadow:0 8px 24px #0003}
.musicName{display:flex;align-items:center;gap:12px;flex:1 1 185px}.musicName>span{font-size:28px;color:#e5b975}.musicName strong{display:block;font-family:Georgia,serif;font-size:16px;font-weight:600}.musicName small{display:block;font-size:10px;color:#b4cabb;margin-top:3px}
.musicBar label{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#d8cca9}.musicBar select{background:#f8efdc;border:1px solid #a99a72;border-radius:7px;color:#234336;padding:9px 8px;min-width:150px;max-width:230px}.musicVolume input{width:106px;accent-color:#dab775}.musicBar button{border:1px solid #d9be86;background:#ddbb82;color:#17352e;border-radius:8px;padding:12px 14px;font-weight:700;min-height:40px;cursor:pointer}
.musicBar button[aria-pressed="true"]{background:#274d3e;color:#f0dcad}.readerZone .audioDock{position:static!important;left:auto!important;bottom:auto!important;transform:none!important;width:100%!important;margin:18px auto 12px!important;backdrop-filter:none!important;box-shadow:0 8px 24px #0003!important}
.readerZone .audioTitle{display:flex}.readerZone .voiceLink{border:1px solid #688372;border-radius:8px;padding:10px 12px;color:#f5e3c1}
@media(max-width:760px){
 .readerZone{padding-bottom:32px}
 .bookReaderContent{padding:12px 12px 40px!important}
 .readerChrome{padding:10px 10px;min-height:58px}
 .readerChromeBrand strong{font-size:15px}
 .readerChromeBrand small{font-size:8px}
 .readerZone .readerTop{display:none}
 .readerZone .readingControls{margin:0 auto 14px;padding:10px 12px;gap:8px;display:grid;grid-template-columns:1fr 1fr}
 .readerZone .readingControls label{min-width:0;font-size:10px}
 .readerZone .readingControls select{width:100%;max-width:100%!important;padding:10px 6px}
 .readerZone .readingControls #favorite{padding:10px 8px}
 .readerZone .openBook{width:100%;max-width:540px;display:block;min-height:0;border:5px solid #8a6b44;border-left-width:10px;border-right-width:6px;border-radius:7px 20px 19px 5px;box-shadow:inset 5px 0 10px #6b47252b,0 16px 35px #0006,0 0 0 1px #e4c88a;margin:0 auto;overflow:hidden}
 .readerZone .openBook:before{display:block;left:0;width:14px;transform:none;background:linear-gradient(90deg,#65422677,#9e795b33,transparent);z-index:3}
 .readerZone .openBook .paper{height:min(68svh,635px);min-height:380px;padding:55px clamp(20px,6vw,38px) 55px!important;border:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#cdb48b transparent;background:radial-gradient(circle at 40% 20%,#fffdf5 15%,#fdf3dc 83%,#ead3aa)}
 .readerZone .openBook[data-mobile-side="original"] .rightPaper{display:none}
 .readerZone .openBook[data-mobile-side="meaning"] .leftPaper{display:none}
 .readerZone .openBook .pageTop{font-size:10px;letter-spacing:1.4px}
 .readerZone .openBook .paper h3{font-size:clamp(19px,5vw,23px);line-height:1.5;margin:20px auto 27px}
 .readerZone .openBook .shloka{font-size:clamp(21px,5.8vw,28px);line-height:1.9;margin:25px auto}
 .readerZone .openBook .meaning{font-size:clamp(18px,4.8vw,22px);line-height:1.9}
 .readerZone .openBook .english{font-size:clamp(16px,4.4vw,19px);line-height:1.8}
 .readerZone .openBook .pageEdge{width:31px;height:52px;top:52%;background:#eacf93d1;border:0}
 .readerZone .openBook .pageEdgePrev{left:0;border-radius:0 12px 12px 0}
 .readerZone .openBook .pageEdgeNext{right:0;border-radius:12px 0 0 12px}
 .mobilePageLabel{display:block;position:absolute;z-index:4;left:50%;top:13px;transform:translateX(-50%);width:max-content;max-width:75%;text-align:center;color:#9d7b50;font:10px Georgia,serif;letter-spacing:1px;text-transform:uppercase;background:#fff7e7a9;padding:4px 8px;border-radius:20px;pointer-events:none}
 .readerZone .pageNav{margin:13px auto 12px;gap:10px}
 .readerZone .pageNav>button{min-width:76px;font-size:12px;padding:10px 7px}
 .readerZone .bookProgress #position{font-size:11px}
 .readerZone .openBook .flipSheet{width:100%;left:0}
 .readerZone .openBook .flipSheet.turnBackward{left:0;transform-origin:right center}
 .readerZone .openBook .flipSheet.turnForward{transform-origin:left center}
 .readerZone .audioDock{padding:12px!important;display:grid;grid-template-columns:1fr auto;gap:8px!important;border-radius:11px}
 .readerZone .audioTitle{display:flex!important;min-width:0;grid-column:1}
 .readerZone .audioIcon{font-size:17px;padding:8px 11px}
 .readerZone .audioTitle strong{font-size:13px}
 .readerZone .audioTitle small{font-size:10px;max-width:225px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .readerZone .voiceLink{grid-column:2;grid-row:1;font-size:11px;padding:8px 9px}
 .readerZone .audioButtons{grid-column:1 / -1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;width:100%}
 .readerZone .audioButtons button{padding:10px 3px;min-height:40px;font-size:11px}
 .readerZone .musicBar{padding:12px;gap:10px;display:grid;grid-template-columns:1fr 1fr;margin:0 auto 16px}
 .musicName{grid-column:1 / -1}.musicBar .musicSelect{grid-column:1 / -1}
 .musicBar select{width:100%;max-width:none}.musicVolume input{width:100%}
 .musicBar button{font-size:12px;padding:10px 8px;align-self:end}
}
@media(max-width:390px){.readerZone .audioTitle small{max-width:145px}.readerChromeBrand strong{font-size:13px}.readerZone .openBook .paper{min-height:360px}}
@media(prefers-reduced-motion:reduce){.readerZone .openBook .flipSheet.turnForward,.readerZone .openBook .flipSheet.turnBackward{animation-duration:1ms}}

/* Keep the verified offline edition available on phones. */
.readerZone .utilityRow{flex-wrap:wrap}.readerZone .utilityRow #download{color:#254537;background:#eacb90;border-color:#d4ab72;font-size:12px}.readerZone .utilityRow input{min-width:min(230px,100%)}
@media(max-width:760px){.readerZone .utilityRow{margin-top:16px}.readerZone .utilityRow #download{width:100%;order:2}.readerZone .utilityRow input{flex-basis:100%}}



/* CLASSIC BOOK RESTORATION — matches the earlier heritage visual language. */
body{background:radial-gradient(ellipse at 50% 32%,#294636 0%,#132b20 65%,#0b2118 100%);color:#f0dcb2;font-family:Georgia,'Noto Serif Devanagari',serif}
.top{background:#11261c!important;border-bottom:1px solid #aa8b574f!important;min-height:79px;padding:12px 5vw}
.top .logo{color:#e8c791!important;font:400 30px Georgia,serif!important;text-transform:none!important}.top .logo small{font:10px Arial,sans-serif;letter-spacing:3px;color:#e1c9a1}.top .lotus{font-size:36px;color:#dfb46e}
.top nav a{display:inline-block;padding:12px 4px;color:#f1d3a4;text-decoration:none;font:13px Arial,sans-serif}.top>.outline{background:transparent;color:#dbc08e;border:1px solid #c3a16b88;border-radius:12px}
.oldMenu{display:none;background:transparent;border:0;color:#e1c691;font-size:28px;padding:8px}
body:not(.book-open) main{background:transparent;max-width:none;padding:0}
.oldLibrary{max-width:1050px;margin:auto;padding:14px 20px}
.oldLibraryHeading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:0 0 20px}
.oldLibraryHeading h1{font:400 clamp(34px,5vw,45px) Georgia,serif;color:#f4dfb8;margin:0}
.oldLibraryHeading span{font:15px Arial,sans-serif;color:#b3bbaa}
.oldBookShelf{display:grid;gap:22px}
.oldBookCard{display:grid;grid-template-columns:174px minmax(0,1fr);gap:23px;align-items:center;background:linear-gradient(145deg,#f5eacb,#e6d7b5);border:1px solid #d8ba7e;border-radius:20px;box-shadow:0 14px 24px #0004;min-height:230px;padding:18px 22px;color:#322820}
.oldBookCard[hidden]{display:none}
.oldCover{width:152px;height:193px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-decoration:none;color:#f8dfb0;font:20px Georgia,serif;border:5px double #d6a961;border-radius:12px 18px 18px 12px;box-shadow:inset 0 0 0 3px #714528,inset 0 0 0 6px #bd965c,4px 8px 12px #0004;padding:8px;cursor:pointer}
.oldCover span{font-size:43px;filter:drop-shadow(0 2px 4px #0005)}.oldCover b{font:600 18px 'Noto Serif Devanagari',serif;line-height:1.45;text-align:center}.oldCover em{font:18px Georgia,serif;text-align:center}
.oldRam{background:radial-gradient(at 20% 10%,#884727,#4b2013 77%)}.oldGita{background:radial-gradient(at 20% 10%,#5a4673,#2b244c 77%)}.oldMaha{background:radial-gradient(at 20% 10%,#276b6a,#0c3a42 77%)}
.oldBookDescription small{font:11px Arial,sans-serif;letter-spacing:2px;color:#987856}.oldBookDescription h2{font:400 clamp(27px,3.5vw,37px) Georgia,serif;margin:12px 0;color:#342a21}
.oldBookDescription p{font:16px/1.6 Arial,sans-serif;color:#746d5c;margin:0 0 15px}.oldBookDescription a{font:700 17px Arial,sans-serif;color:#265b43;text-decoration:none}.oldBookDescription a:hover{text-decoration:underline}.oldPending{font:700 13px Arial,sans-serif;color:#9d6f46}
.oldSearch{display:flex;align-items:center;gap:20px;margin:27px 0 20px;border:1px solid #9cad95;border-radius:45px;padding:13px 23px}.oldSearch span{font-size:31px}.oldSearch input{background:none;flex:1;color:#fff2d8;border:0;outline:none;font:17px Arial,sans-serif;padding:8px}.oldSearch input::placeholder{color:#b8b8ad}
body:not(.book-open) .categories{max-width:1050px;margin:10px auto 60px;padding:0 20px}body:not(.book-open) .categories h2{color:#edcc94}body:not(.book-open) .categoryGrid>a,body:not(.book-open) .categoryGrid>div{background:#efe4c8;border-radius:14px}
body.book-open>.top{display:none}
.readerZone{background:radial-gradient(ellipse at 50% 10%,#244333,#10291f 80%)!important}
.readerChrome{position:relative!important;background:transparent!important;border:0!important;min-height:110px;padding:15px 22px!important}
.readerChromeBrand strong{font:400 26px Georgia,serif!important;color:#eccd95!important}.readerChromeBrand small{font:12px Arial,sans-serif!important;color:#bdb8a8!important;letter-spacing:.4px!important;margin-top:7px!important}
.readerBack{border:1px solid #9ba58c;color:#efce94;border-radius:14px;background:transparent;font-size:28px;width:52px;height:52px;display:grid;place-items:center}
.readerChrome .soundToggle{display:none!important}
.bookReaderContent{padding:5px 20px 38px!important}.readerZone .readerTop{display:block!important;text-align:center;margin:0 auto 8px!important}.readerZone .readerTop h2,.readerZone .readerTop .eyebrow{display:none}
.readerZone .readerTop p{font:12px Arial,sans-serif;color:#d0c7aa}
.oldSettingsPanel{max-width:1060px;margin:0 auto 10px;color:#cbb78d}.oldSettingsPanel>summary{display:none}.oldSettingsPanel .readingControls{border:1px solid #aa956b60;background:#163629;border-radius:12px;padding:10px 13px;margin:0 auto 12px}
.openBook,.readerZone .openBook{display:grid!important;grid-template-columns:1fr 1fr!important;min-height:440px!important;overflow:hidden!important;max-width:1050px!important;border:9px solid #785331!important;border-radius:20px!important;box-shadow:0 18px 40px #0009,inset 0 0 0 3px #b88b58!important;background:#37291f!important}
.readerZone .openBook:before{display:block!important;left:50%!important;transform:translateX(-50%)!important;width:17px!important;background:linear-gradient(90deg,#482e22aa,#fff0d444,#0005,#fae6bb57)!important;z-index:5}
.readerZone .openBook .paper{display:flex!important;flex-direction:column;position:relative;height:490px!important;min-height:490px!important;overflow-y:auto!important;scrollbar-width:thin;padding:30px 27px 57px!important;background:radial-gradient(ellipse at 45% 25%,#fff0d4,#ead6ae)!important;color:#372a20}
.readerZone .openBook .paper h3{color:#815932;font:400 20px/1.5 'Noto Serif Devanagari',serif;margin:16px auto}.readerZone .openBook .pageTop{color:#9b815e;font:10px Georgia,serif;letter-spacing:1.4px}
.readerZone .openBook .shloka{font:500 clamp(16px,2.3vw,24px)/1.8 'Noto Serif Devanagari',serif;margin:20px auto}
.readerZone .openBook .meaning{font:clamp(15px,2vw,20px)/1.8 'Noto Serif Devanagari',serif}.readerZone .openBook .english{font:clamp(14px,1.8vw,19px)/1.75 Georgia,serif}.readerZone .openBook .pageBottom{bottom:18px;color:#997751}
.oldPagePlay{position:absolute;bottom:16px;left:14px;width:39px;height:39px;border:0;border-radius:50%;background:#215e42;color:#f6dcb1;font-size:18px;z-index:8;cursor:pointer}
.readerZone .openBook .pageEdge{width:23px;height:45px;opacity:.7;top:52%!important;z-index:9}.readerZone .openBook .flipSheet{width:50%!important;left:50%!important}.readerZone .openBook .flipSheet.turnBackward{left:0!important}
.mobilePageLabel{display:none!important}
.readerZone .pageNav{max-width:1050px;margin:17px auto 10px;gap:18px}.readerZone .pageNav>button{border:1px solid #b39a68;background:#173a2e;color:#e8d2ab;border-radius:30px}
.oldReaderTools{display:flex;justify-content:center;gap:13px;flex-wrap:wrap;margin:11px auto}.oldReaderTools button{background:transparent;border:0;color:#ddc89e;font:13px Arial,sans-serif;padding:9px;cursor:pointer}
.readerZone .audioDock{position:static!important;transform:none!important;left:auto!important;bottom:auto!important;box-shadow:none!important;border:0!important;background:transparent!important;display:flex!important;justify-content:center!important;max-width:1050px;margin:3px auto 17px!important;padding:5px!important;gap:9px}
.readerZone .audioTitle{display:none!important}.readerZone .audioButtons{display:flex!important;flex-wrap:wrap!important;width:auto!important;gap:8px}.readerZone .audioButtons button,.readerZone .voiceLink{background:#204c3a;border:1px solid #b19a6b80;color:#f3d7a5;border-radius:25px;padding:10px 14px!important;min-height:38px;font:12px Arial,sans-serif}
.readerZone .musicBar{max-width:1050px;background:#173b2b;border:1px solid #bcaa7e50;border-radius:15px}
body.oldDark .readerZone .openBook .paper{background:radial-gradient(ellipse at 50% 25%,#383632,#242826)!important;color:#f1deb9!important}body.oldDark .readerZone .openBook .shloka,body.oldDark .readerZone .openBook .meaning,body.oldDark .readerZone .openBook .english{color:#f3e4c8!important}body.oldDark .readerZone .openBook .paper h3{color:#e6c18b!important}
@media(max-width:760px){
 .top nav{display:none}.top nav.expanded{display:flex;flex-direction:column;position:absolute;right:16px;top:74px;background:#133829;border:1px solid #ab8f63;padding:16px;z-index:100;border-radius:12px}.top>.outline{display:none}.oldMenu{display:block}
 .oldLibrary{padding:12px}.oldLibraryHeading h1{font-size:31px}.oldLibraryHeading span{font-size:12px;text-align:right}
 .oldBookCard{grid-template-columns:105px minmax(0,1fr);gap:13px;min-height:178px;padding:12px;border-radius:19px}.oldCover{width:100%;height:160px;gap:9px}.oldCover span{font-size:30px}.oldCover b{font-size:14px}.oldCover em{font-size:13px}
 .oldBookDescription small{font-size:9px;letter-spacing:2px}.oldBookDescription h2{font-size:27px;margin:8px 0}.oldBookDescription p{font-size:13px;line-height:1.5;margin-bottom:12px}.oldBookDescription a{font-size:14px}
 .readerChrome{min-height:83px;padding:12px!important}.readerChromeBrand strong{font-size:22px!important}.readerChromeBrand small{font-size:10px!important}.readerBack{width:42px;height:42px}
 .bookReaderContent{padding:0 10px 34px!important}.readerZone .readerTop{display:block!important}.oldSettingsPanel>summary{display:none}
 .readerZone .openBook{display:grid!important;grid-template-columns:1fr 1fr!important;height:408px!important;min-height:408px!important;border-width:7px!important;border-radius:17px!important}
 .readerZone .openBook[data-mobile-side="original"] .rightPaper,.readerZone .openBook[data-mobile-side="meaning"] .leftPaper{display:flex!important}
 .readerZone .openBook:before{left:50%!important;width:12px!important;transform:translateX(-50%)!important}
 .readerZone .openBook .paper{min-height:394px!important;height:394px!important;min-width:0!important;padding:21px 10px 48px!important;overflow-y:auto!important}
 .readerZone .openBook .paper h3{font-size:15px!important;line-height:1.45!important;margin:13px auto!important}.readerZone .openBook .pageTop{font-size:9px!important}
 .readerZone .openBook .shloka{font-size:14px!important;line-height:1.6!important;margin:14px auto!important}.readerZone .openBook .meaning{font-size:13px!important;line-height:1.55!important}.readerZone .openBook .english{font-size:12px!important;line-height:1.6!important}
 .readerZone .openBook .flipSheet{width:50%!important;left:50%!important}.readerZone .openBook .flipSheet.turnBackward{left:0!important}.readerZone .openBook .openingCover{width:50%!important;left:50%!important}
 .oldPagePlay{width:33px;height:33px;bottom:11px;left:8px}
 .readerZone .audioDock{display:flex!important;grid-template-columns:none!important;flex-wrap:wrap!important;width:100%!important}
 .readerZone .audioButtons{display:flex!important;grid-template-columns:none!important;flex-wrap:wrap!important;width:100%!important;justify-content:center}
 .readerZone .audioButtons button,.readerZone .voiceLink{font-size:11px;padding:8px 11px!important;min-height:34px}
 .readerZone .musicBar{display:flex;flex-wrap:wrap}
}


/* FAMILY DEDICATION — original, unaltered photograph and a restrained gold frame. */
/* The dedication belongs to the library home, never inside the full-screen book. */
body.book-open .familyDedication{display:none!important}

.familyDedication{width:min(1050px,calc(100% - 40px));margin:32px auto 24px;position:relative;isolation:isolate;padding:31px 38px 28px;background:
 radial-gradient(ellipse at 23% 38%,rgba(223,182,106,.13),transparent 54%),
 linear-gradient(120deg,#183a2d 0%,#173b2d 49%,#102b22 100%);
 border:1px solid #d2b681a1;border-radius:26px;color:#f3e3c5;box-shadow:0 22px 55px #0004,inset 0 0 0 5px #e7c98c0c;overflow:hidden}
.familyDedication:before{content:'';position:absolute;inset:8px;border:1px solid #c3a87231;border-radius:20px;pointer-events:none}
.familyDedication:after{content:'✦';position:absolute;right:-10px;bottom:-120px;font:300px Georgia,serif;color:#ebcb8539;opacity:.15;pointer-events:none}
.dedicationOrnament{text-align:center;color:#cbaa71;font:18px Georgia,serif;letter-spacing:12px;margin:0 auto 19px;line-height:1}
.dedicationOrnament span{letter-spacing:0;font-size:24px}
.dedicationInner{display:grid;grid-template-columns:210px minmax(0,1fr);gap:38px;align-items:center;max-width:815px;margin:0 auto}
.dedicationPortrait{margin:0;text-align:center;position:relative}
.dedicationPhotoMat{display:block;margin:auto;padding:9px;background:#ecd9ab;border:2px solid #ac793d;box-shadow:0 0 0 4px #e7c8826e,0 17px 33px #0005;border-radius:115px 115px 10px 10px;overflow:hidden;width:194px}
.dedicationPhotoMat img{width:100%;height:218px;display:block;object-fit:cover;object-position:center 28%;border-radius:96px 96px 5px 5px;filter:none}
.dedicationPortrait figcaption{margin:17px auto 0;color:#e8cb91;font:15px 'Noto Serif Devanagari',Georgia,serif;line-height:1.6}
.dedicationWords{min-width:0}
.dedicationEyebrow{color:#e1b877;font:11px Arial,sans-serif;letter-spacing:2.8px;margin:0 0 16px}
.dedicationWords h1{margin:0;color:#f0d09d;font:400 clamp(25px,3.6vw,39px)/1.12 Georgia,serif;letter-spacing:-.45px;text-wrap:balance}
.dedicationWords h1 span{display:block;color:#e9ddbf;font:italic 20px/1.3 Georgia,serif;letter-spacing:0;margin-bottom:10px}
.dedicationWords h1 strong{display:block;color:#f7d79d;font-weight:400}
.dedicationHindi{margin:18px 0 12px;color:#eed9af;font:17px/1.9 'Noto Serif Devanagari',serif}
.dedicationEnglish{margin:0;font:14px/1.7 Georgia,serif;color:#d1cbbc;max-width:490px}
.dedicationEnd{display:flex;align-items:center;gap:15px;color:#d5ac6c;max-width:230px;margin-top:20px;font:18px Georgia,serif}
.dedicationEnd span{height:1px;background:linear-gradient(90deg,transparent,#c59f68);flex:1}
.dedicationEnd span:last-child{transform:rotate(180deg)}
@media(max-width:760px){
 .familyDedication{width:calc(100% - 24px);padding:20px 17px 21px;margin:18px auto 12px;border-radius:21px}
 .familyDedication:before{inset:6px;border-radius:16px}
 .dedicationOrnament{font-size:13px;margin-bottom:17px;letter-spacing:7px}
 .dedicationInner{grid-template-columns:minmax(100px,34%) minmax(0,1fr);gap:15px}
 .dedicationPhotoMat{padding:5px;width:100%;max-width:150px;border-radius:96px 96px 8px 8px;box-shadow:0 0 0 2px #e7c8826e,0 10px 23px #0005}
 .dedicationPhotoMat img{height:clamp(126px,38vw,178px);border-radius:90px 90px 5px 5px}
 .dedicationPortrait figcaption{font-size:10px;margin:12px auto 0}
 .dedicationEyebrow{font-size:8px;letter-spacing:1.3px;margin-bottom:10px}
 .dedicationWords h1{font-size:clamp(19px,4.9vw,28px);line-height:1.2}
 .dedicationWords h1 span{font-size:clamp(12px,3.6vw,16px);margin-bottom:7px}
 .dedicationHindi{font-size:clamp(11px,3vw,15px);line-height:1.6;margin:11px 0 7px}
 .dedicationEnglish{font-size:11px;line-height:1.6}
 .dedicationEnd{margin-top:10px;max-width:150px}
}
@media(max-width:360px){
 .familyDedication{padding:16px 12px 16px}
 .dedicationInner{grid-template-columns:100px minmax(0,1fr);gap:12px}
 .dedicationPhotoMat img{height:123px}
 .dedicationWords h1{font-size:19px}
 .dedicationEnglish{font-size:10px}
}



/* DIVYA GRANTH · Heritage UI refinement, 11 Nov 2026
   Single source of truth for homepage polish and full-screen Gita reader.
   Keep the father's original photo, the existing covers and all original text. */
:root{--dg-forest:#102b20;--dg-forest-light:#1c4330;--dg-paper:#f2e4c5;--dg-gold:#d7ba80;--dg-muted:#d0c7b5;--dg-ink:#342a20}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
button,a,select,input{touch-action:manipulation}
:where(button,a,select,input,summary):focus-visible{outline:3px solid #f7d598!important;outline-offset:3px}
button:disabled{cursor:not-allowed}
body:not(.book-open) .top{position:sticky;top:0;z-index:45;background:#10281fef!important;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid #d9b87b42!important;box-shadow:0 8px 30px #06171027}
body:not(.book-open) .top .logo{line-height:1.08;display:flex;align-items:center;gap:10px}
body:not(.book-open) .top nav a{transition:color .2s ease}
body:not(.book-open) .top nav a:hover{color:#ffebb9}
.familyDedication{background:radial-gradient(ellipse at 76% 0%,#b78b4f21,transparent 62%),linear-gradient(125deg,#183d2d,#0d2b20)!important;box-shadow:0 16px 55px #0817106e, inset 0 0 0 5px #edd09b10!important}
.dedicationPhotoMat{filter:drop-shadow(0 12px 10px #0003)}
.dedicationPhotoMat img{background:#b34c70}
.dedicationWords h1 strong{color:#ffe0a5!important;letter-spacing:.2px}
.dedicationEyebrow{text-transform:uppercase}
.libraryEyebrow{font:700 10px Arial,sans-serif;letter-spacing:3.2px;color:#d4b679;margin:0 0 10px}
.oldLibrary{padding-top:25px!important}
.oldLibraryHeading{margin-bottom:22px;align-items:end}
.oldLibraryHeading h1{font-size:clamp(29px,4.9vw,44px)!important;letter-spacing:-.9px;line-height:1.15}
.oldLibraryHeading>span{color:#c8c8ad;font:12px/1.6 Arial,sans-serif;text-align:right;max-width:210px}
.oldBookShelf{gap:18px}
.oldBookCard{background:linear-gradient(135deg,#fbefd0 0%,#f4e6c7 49%,#ead6af 100%)!important;border:1px solid #cfb382!important;border-radius:20px!important;box-shadow:0 12px 30px #020f0b43, inset 0 1px 0 #fff5e2!important;transition:transform .2s ease,box-shadow .2s ease;position:relative;overflow:hidden}
.oldBookCard::before{content:'';position:absolute;inset:9px;border:1px solid #b69b6242;border-radius:15px;pointer-events:none}
.oldBookCard:hover{transform:translateY(-2px);box-shadow:0 20px 35px #020f0b60!important}
.oldCover{position:relative;isolation:isolate;transition:transform .25s ease,box-shadow .25s ease;box-shadow:inset 0 0 0 2px #643b25,inset 0 0 0 6px #d0ad70,5px 7px 14px #0004!important}
.oldCover::before{content:'';position:absolute;inset:8px;border:1px solid #e6c27f9e;border-radius:5px 12px 12px 5px;z-index:-1}
.oldCover::after{content:'✦  ❖  ✦';color:#f0d19c8c;letter-spacing:5px;font:11px Georgia,serif;position:absolute;bottom:9px;left:0;right:0;text-align:center}
.oldCover:hover,.oldCover:focus-visible{transform:translateY(-3px) rotate(-1deg)}
.oldBookDescription{position:relative;z-index:1}
.oldBookDescription small{letter-spacing:2px;font-size:10px}
.oldBookDescription h2{letter-spacing:-.4px;line-height:1.1;margin:10px 0}
.oldBookDescription p{max-width:520px;color:#5f5b51;line-height:1.65;margin-bottom:14px}
.oldBookDescription>a{display:inline-flex;align-items:center;min-height:38px;gap:7px;color:#1e583c!important;text-decoration:none;font-weight:700}
.oldBookDescription>a:hover{text-decoration:underline}
.oldBookDescription .oldSourceNote{display:block;margin-top:3px;font:10px/1.6 Arial,sans-serif;letter-spacing:.2px;color:#866e53}
.oldSearch{background:#142f25b8;box-shadow:inset 0 0 0 1px #c9bb8d1a;min-height:62px;transition:border-color .2s ease,background .2s ease}
.oldSearch:focus-within{border-color:#dfc48c;background:#183a2c}
.oldSearch input{width:100%;min-width:0}
body:not(.book-open) .categories{margin-top:12px!important;margin-bottom:64px!important}
body:not(.book-open) .categories h2{font:400 clamp(25px,3vw,32px) Georgia,serif;color:#f0d5a6!important;margin:0 0 20px}
body:not(.book-open) .categoryGrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body:not(.book-open) .categoryGrid>a{min-height:142px;display:flex;align-items:flex-start;flex-direction:column;justify-content:center;text-align:left;gap:9px;background:linear-gradient(145deg,#f6e8c9,#ebdaba)!important;border:1px solid #bea36e!important;border-radius:17px!important;box-shadow:0 9px 23px #0003;padding:18px 21px;position:relative;transition:transform .2s ease,box-shadow .2s ease;color:#253b30;text-decoration:none}
body:not(.book-open) .categoryGrid>a::after{content:'↗';position:absolute;right:15px;top:14px;color:#537b61;font:17px Arial,sans-serif}
body:not(.book-open) .categoryGrid>a:hover{transform:translateY(-2px);box-shadow:0 17px 28px #0005}
body:not(.book-open) .categoryGrid b{font-size:25px;margin:0;line-height:1}
body:not(.book-open) .categoryGrid strong{font:600 17px Georgia,'Noto Serif Devanagari',serif;color:#264c37;line-height:1.3}
body:not(.book-open) .categoryGrid small{color:#706653;font:12px/1.5 Arial,sans-serif;margin:0}
body:not(.book-open) .categoryGrid>a[hidden]{display:none}
body:not(.book-open) .categories.filtered .categoryGrid{margin-bottom:10px}
/* Gita paper: independently scrolling scripture with dedicated playback footer. */
.readerZone .openBook .paper{padding:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;min-width:0}
.readerZone .openBook .paper .dgVerseScroll{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b99765 transparent;padding:30px 28px 15px}
.readerZone .openBook .dgVerseFooter{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;flex:0 0 56px;min-height:56px;padding:8px 14px;background:linear-gradient(180deg,#f1dfb9,#ebd4a5);border-top:1px solid #bea27380}
.readerZone .openBook .dgVerseFooter .oldPagePlay{position:static!important;inset:auto!important;bottom:auto!important;left:auto!important;width:38px;height:38px;min-width:38px;border:1px solid #d6b888;border-radius:50%;background:#225c42;color:#ffeed1;font-size:18px;box-shadow:0 3px 9px #0002}
.readerZone .openBook .dgVerseFooter .pageBottom{position:static!important;inset:auto!important;color:#8b6c42;font:12px Georgia,serif;margin:0!important;min-width:0;text-align:right}
body.oldDark .readerZone .openBook .dgVerseFooter{background:linear-gradient(180deg,#31372e,#242c27);border-color:#7a674a}
body.oldDark .readerZone .openBook .dgVerseFooter .pageBottom{color:#dbc49f}
/* Gita controls are in a real section below the book. */
.readerZone .audioDock{display:grid!important;grid-template-columns:1fr!important;justify-content:stretch!important;align-items:stretch;gap:12px!important;background:#173c2d!important;border:1px solid #a9996f84!important;box-shadow:0 10px 22px #0003!important;border-radius:16px!important;margin:14px auto 19px!important;padding:16px 18px!important}
.readerZone .audioTitle{display:flex!important;gap:12px;align-items:center;min-width:0}
.readerZone .audioTitle strong{font:400 18px Georgia,serif;color:#f1d49a}
.readerZone .audioTitle small{display:block;color:#c8c7b4;white-space:normal;font:11px/1.6 Arial,sans-serif;max-width:none}
.readerZone .audioButtons{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important;width:100%!important;justify-content:stretch!important;margin:0!important}
.readerZone .audioButtons button{min-width:0!important;min-height:45px!important;border-radius:10px!important;padding:10px 9px!important;background:#2a543e!important;color:#f0dcbb!important;border:1px solid #ab9266a3!important;font:13px Arial,sans-serif;line-height:1.35!important;white-space:normal}
.readerZone .audioButtons button.audioPrimary{background:#dec08c!important;color:#1b3d2d!important;font-weight:700}
.readerZone .voiceLink{justify-self:start;border:0!important;padding:4px 2px!important;min-height:35px!important;color:#e7c794!important;background:transparent!important;border-radius:0!important;font:13px Arial,sans-serif!important}
.readerZone .oldReaderTools{gap:8px;margin:11px auto}
.readerZone .oldReaderTools button{min-height:42px;border:1px solid #ac986876;border-radius:11px;padding:10px 14px;background:#1b3d2d;color:#edd2a6}
.readerZone .pageNav{gap:10px}
.readerZone .pageNav>button{min-height:46px;padding:10px 16px;font:14px Arial,sans-serif}
.readerZone .musicBar{box-shadow:0 7px 24px #0002}
.readerZone .readerChrome{padding-top:max(12px,env(safe-area-inset-top))!important}
.readerZone .readerChromeBrand strong{font-family:Georgia,'Noto Serif Devanagari',serif!important}
.readerZone .bookReaderContent{padding-bottom:max(38px,env(safe-area-inset-bottom))!important}
.readerZone .modalBox{max-height:min(90vh,700px);overflow:auto}
@media(max-width:760px){
 body:not(.book-open) .top{min-height:72px;padding:10px 15px}
 body:not(.book-open) .top .logo{font-size:25px!important}
 body:not(.book-open) .top .logo small{letter-spacing:1.7px;font-size:8px}
 body:not(.book-open) .top nav.expanded{position:absolute;right:12px;top:calc(100% + 3px);width:min(300px,calc(100vw - 24px));box-shadow:0 19px 32px #0007}
 .oldLibrary{padding:19px 13px 0!important}
 .oldLibraryHeading{align-items:start;gap:12px}
 .libraryEyebrow{font-size:9px;letter-spacing:2px}
 .oldLibraryHeading h1{font-size:30px!important;line-height:1.1}
 .oldLibraryHeading>span{font-size:11px;max-width:125px;align-self:end}
 .oldBookCard{grid-template-columns:110px minmax(0,1fr);min-height:180px;gap:16px;padding:14px;border-radius:17px}
 .oldCover{height:154px;width:100%;min-width:0}
 .oldBookDescription h2{font-size:clamp(22px,5.9vw,28px)}
 .oldBookDescription p{font:12px/1.5 Arial,sans-serif;margin-bottom:6px}
 .oldBookDescription a{font-size:13px}
 .oldBookDescription small{font-size:9px}
 .oldSearch{margin:23px 0 19px;padding:11px 17px;min-height:55px;gap:12px}
 body:not(.book-open) .categories{padding:0 13px}
 body:not(.book-open) .categoryGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 body:not(.book-open) .categoryGrid>a{padding:16px 13px;min-height:138px;gap:7px}
 body:not(.book-open) .categoryGrid strong{font-size:14px}
 body:not(.book-open) .categoryGrid small{font-size:11px}
 body:not(.book-open) .categoryGrid>a::after{right:10px;top:11px;font-size:14px}
 .readerZone .openBook .paper{padding:0!important;overflow:hidden!important}
 .readerZone .openBook .paper .dgVerseScroll{padding:19px 10px 10px}
 .readerZone .openBook .dgVerseFooter{flex-basis:46px;min-height:46px;padding:5px 7px}
 .readerZone .openBook .dgVerseFooter .oldPagePlay{width:32px;height:32px;min-width:32px;font-size:16px}
 .readerZone .openBook .dgVerseFooter .pageBottom{font-size:9px}
 .readerZone .pageNav>button{min-height:44px;padding:10px 12px;font-size:12px}
 .readerZone .audioDock{padding:13px!important;gap:10px!important}
 .readerZone .audioTitle strong{font-size:16px}
 .readerZone .audioButtons{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .readerZone .audioButtons button{min-height:44px!important;font-size:12px!important}
 .readerZone .voiceLink{min-height:36px!important}
 .readerZone .oldReaderTools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .readerZone .oldReaderTools button{font-size:11px;padding:9px 4px;white-space:normal}
}
@media(max-width:560px){
 .familyDedication{padding:22px 18px!important;margin-top:17px!important;margin-bottom:19px!important}
 .dedicationInner{grid-template-columns:1fr!important;gap:17px!important;text-align:center}
 .dedicationPhotoMat{width:147px!important;padding:6px!important;border-radius:85px 85px 7px 7px!important}
 .dedicationPhotoMat img{height:172px!important;border-radius:80px 80px 4px 4px!important;object-position:center 27%}
 .dedicationPortrait figcaption{font-size:12px!important;margin-top:10px!important}
 .dedicationOrnament{margin-bottom:16px}
 .dedicationWords h1{font-size:26px!important}
 .dedicationWords h1 span{font-size:16px!important}
 .dedicationEyebrow{font-size:9px!important;letter-spacing:1.7px!important;margin-bottom:10px!important}
 .dedicationHindi{font-size:14px!important;margin:13px auto 9px!important}
 .dedicationEnglish{font-size:12px!important;max-width:320px;margin:auto}
 .dedicationEnd{margin:14px auto 0!important}
}
@media(max-width:375px){
 .oldBookCard{grid-template-columns:99px minmax(0,1fr);gap:10px;padding:10px;min-height:158px}
 .oldCover{height:145px}.oldCover b{font-size:12px}.oldCover em{font-size:12px}
 .oldBookDescription h2{font-size:21px}.oldBookDescription p{font-size:11px;line-height:1.45}
 .oldLibraryHeading h1{font-size:27px!important}
 .readerZone .openBook .paper .dgVerseScroll{padding:14px 7px 8px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.oldBookCard,.oldCover,body:not(.book-open) .categoryGrid>a{transition:none}}

/* Device voice preference is transparent about unverified gender. */
.readerZone .modalBox .genderAvailability{margin:2px 0 11px;padding:10px 12px;font:12px/1.6 Arial,sans-serif;color:#53695a;background:#f0eadc;border:1px solid #d9c9ab;border-radius:10px}
.readerZone .modalBox #voiceGender{width:100%;min-height:42px}

/* Separate original Valmiki Sanskrit edition: use the classic hand-bound cover. */
.oldValmiki{background:radial-gradient(ellipse at 18% 0%,#536137,#213b28 77%)}
.oldValmiki span{filter:drop-shadow(0 3px 8px #0004)}

/* Mobile app shell. Original dark-green-and-gold palette, original book cards. */
.dgMobileDock,.dgMobileResume{display:none}
@media(max-width:760px){
 html{scroll-padding-top:78px;-webkit-text-size-adjust:100%}
 body:not(.book-open){padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}
 button,select,a{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
 :where(button,a,input,select):focus-visible{outline:3px solid #e6c080;outline-offset:2px}
 .dgMobileDock{position:fixed;z-index:105;inset:auto 0 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;
   padding:7px max(9px,env(safe-area-inset-right,0px)) calc(7px + env(safe-area-inset-bottom,0px)) max(9px,env(safe-area-inset-left,0px));
   border-top:1px solid #bea473a8;background:#123a2eeb;box-shadow:0 -8px 28px #001b1950;
   backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
 .dgMobileDock button{min-height:57px;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
   color:#e5d6b6;background:transparent;border:0;border-radius:13px;padding:5px 1px;font:600 11px/1.1 system-ui,sans-serif}
 .dgMobileDock button[aria-current="page"]{background:#dabb86;color:#193c2d}
 .dgDockGlyph{font:500 23px/1.1 system-ui,sans-serif;height:26px}.dgDockText{white-space:nowrap}
 .top{min-height:68px!important;height:68px!important;padding:8px 15px!important}
 .top .logo{font-size:clamp(19px,5.5vw,25px)!important;gap:9px;letter-spacing:0}
 .top .logo small{font-size:8px!important;letter-spacing:1px!important}.top .lotus{font-size:26px}
 .top .oldMenu{min-width:46px;min-height:46px;border-radius:12px;border:1px solid #c7aa7359}
 body:not(.book-open) .top nav.expanded{right:12px;top:calc(100% + 5px);width:min(292px,calc(100vw - 24px));
   padding:12px;border-radius:17px;background:#133b2b;box-shadow:0 18px 35px #0008}
 body:not(.book-open) .top nav.expanded a{padding:15px 11px;min-height:46px;border-bottom:1px solid #ffffff13}
 .dgMobileResume:not([hidden]){display:flex;align-items:center;gap:12px;width:calc(100% - 26px);margin:17px auto 2px;padding:12px;
   background:linear-gradient(125deg,#f9efd5,#e7d4b2);color:#284732;border:1px solid #ba9d6b;
   border-radius:17px;box-shadow:0 8px 21px #0003}
 .dgResumeSymbol{flex:0 0 48px;width:48px;height:48px;display:grid;place-items:center;font:28px Georgia,serif;color:#f5dda6;
   background:#23553c;border-radius:12px}
 .dgResumeText{min-width:0;flex:1;display:grid;gap:4px}
 .dgResumeText small{font:700 9px system-ui,sans-serif;letter-spacing:.6px;color:#86663d}
 .dgResumeText strong{font:600 16px Georgia,'Noto Serif Devanagari',serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .dgResumeText>span{font:11px system-ui,sans-serif;color:#65725c}
 .dgMobileResume a{display:flex;align-items:center;gap:5px;min-height:44px;padding:8px 12px;border-radius:12px;
   background:#205c40;color:#fff2d2;font:700 12px system-ui,sans-serif}
 .oldBookShelf{display:flex!important;gap:12px!important;overflow-x:auto;overflow-y:hidden;
   scroll-snap-type:x mandatory;scroll-padding-inline:11px;-webkit-overflow-scrolling:touch;scrollbar-width:none;
   padding:4px 11px 20px;margin-inline:-11px}
 .oldBookShelf::-webkit-scrollbar{display:none}
 .oldBookShelf .oldBookCard{flex:0 0 min(88%,410px);width:min(88%,410px);scroll-snap-align:center;min-height:183px}
 .oldBookDescription>a{min-height:44px;align-items:center}.oldSearch input{font-size:16px}
 body:not(.book-open) .categoryGrid>a{min-height:145px}
 .readerZone{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))!important}
 .readerZone .bookReaderContent{padding:10px 12px calc(110px + env(safe-area-inset-bottom,0px))!important}
 .readerZone .readerChrome{min-height:68px!important;padding:10px 11px!important}
 .readerZone .readerChromeBrand strong{font-size:clamp(17px,4.6vw,23px)!important}
 .readerZone .readerBack{min-width:47px;min-height:47px}
 .readerZone .pageNav>button{min-height:48px;padding:10px 11px;border-radius:13px;font-size:13px}
 .readerZone .readingControls label{min-width:0}.readerZone .readingControls select{min-height:46px;max-width:100%;font-size:16px}
 .readerZone .oldSettingsPanel summary{display:flex;align-items:center;min-height:46px}
 .readerZone .audioButtons{gap:8px!important}
 .readerZone .audioButtons button{min-height:49px!important;padding:11px 7px!important;font-size:13px!important;border-radius:11px!important}
 .readerZone .oldReaderTools button{min-height:46px;border-radius:11px}
 .readerZone .voiceLink{min-height:46px!important;border-radius:11px!important}
 .readerZone .openBook .dgVerseFooter .oldPagePlay{width:40px;min-width:40px;height:40px}
 .readerZone .utilityRow button,.readerZone .musicBar button{min-height:46px;border-radius:11px}
 .modalBox{max-height:calc(100dvh - 36px);overscroll-behavior:contain}
 .modalBox select{min-height:46px;font-size:16px}
}
@media(max-width:375px){
 .dgMobileDock{gap:3px;padding-inline:5px}.dgMobileDock button{font-size:10px;min-height:55px}
 .dgMobileResume a{padding-inline:9px}.oldBookShelf .oldBookCard{flex-basis:94%;width:94%;gap:10px!important}
}
@media(prefers-reduced-motion:reduce){.dgMobileDock *,.dgMobileResume *{transition:none!important}}

/* Official Divya Granth sacred-book and Om identity in the brand header. */
.top .brandMark{display:block;flex:0 0 42px;width:42px;height:42px;border-radius:11px;
 border:1px solid #d9bd84b0;box-shadow:0 3px 13px #0004;object-fit:cover}
@media(max-width:760px){.top .brandMark{width:38px;height:38px;flex-basis:38px;border-radius:10px}}

/* iPhone-safe compact home and fully visible cards. */
html,body{max-width:100%;overflow-x:clip}
@supports not (overflow:clip){html,body{overflow-x:hidden}}
@media(max-width:760px){
 .top{height:auto!important;min-height:calc(62px + env(safe-area-inset-top,0px))!important;
  display:flex;align-items:center;box-sizing:border-box;gap:8px;
  padding:max(10px,env(safe-area-inset-top,0px)) max(14px,env(safe-area-inset-right,0px))
   10px max(14px,env(safe-area-inset-left,0px))!important}
 .top .logo{display:flex;align-items:center;flex:1 1 auto;min-width:0;overflow:hidden;gap:9px!important;
  font-size:clamp(18px,5vw,22px)!important;line-height:1.12}
 .top .logo>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .top .brandMark{width:34px!important;height:34px!important;flex:0 0 34px!important;border-radius:9px!important}
 .top .logo small{font:500 8px/1.25 system-ui,sans-serif!important;letter-spacing:.6px!important;
   white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}
 .top #menuButton{flex:0 0 44px;min-height:44px!important;width:44px;height:44px;
   display:grid;place-items:center;line-height:1;margin:0 0 0 3px;padding:0!important;
   font-size:24px!important;position:relative;z-index:2}
 .top nav.expanded{max-width:calc(100% - 24px);left:auto!important;
  right:max(12px,env(safe-area-inset-right,0px))!important}
 .familyDedication{max-width:calc(100% - 26px);box-sizing:border-box}
 .oldLibrary,.categories{max-width:100%;box-sizing:border-box}
 .oldBookShelf{display:grid!important;grid-template-columns:minmax(0,1fr)!important;
   width:100%;max-width:100%;overflow:visible!important;scroll-snap-type:none!important;
   scroll-padding:0!important;margin:0!important;padding:0!important;gap:14px!important}
 .oldBookShelf .oldBookCard{width:100%!important;max-width:100%!important;min-width:0!important;
   flex:none!important;scroll-snap-align:none!important;
   grid-template-columns:minmax(94px,110px) minmax(0,1fr);gap:12px!important;
   padding:13px!important;margin:0;overflow:hidden}
 .oldBookShelf .oldCover{max-width:100%;min-width:0}
 .oldBookShelf .oldBookDescription{min-width:0;overflow-wrap:break-word}
 .oldBookShelf .oldBookDescription h2{overflow-wrap:anywhere}
 body:not(.book-open) .categoryGrid{min-width:0;max-width:100%}
 body:not(.book-open) .categoryGrid>a{min-width:0;max-width:100%;overflow-wrap:anywhere}
 .dgMobileDock{gap:3px!important;
   padding:4px max(9px,env(safe-area-inset-right,0px))
    calc(5px + env(safe-area-inset-bottom,0px)) max(9px,env(safe-area-inset-left,0px))!important;
   box-shadow:0 -3px 17px #00190f70!important}
 .dgMobileDock button{min-height:47px!important;padding:4px 1px!important;
   gap:2px!important;font-size:10px!important;border-radius:10px!important}
 .dgMobileDock button[aria-current="page"]{background:#d5b77b26!important;
   color:#f7d89c!important;box-shadow:inset 0 2px 0 #daba7e}
 .dgMobileDock .dgDockGlyph{font-size:19px!important;height:21px!important;line-height:21px!important}
 .dgMobileDock .dgDockText{line-height:1.1}
 body:not(.book-open){padding-bottom:calc(68px + env(safe-area-inset-bottom,0px))!important}
 .readerZone .bookReaderContent{padding-bottom:calc(75px + env(safe-area-inset-bottom,0px))!important}
 .readerZone{padding-bottom:calc(68px + env(safe-area-inset-bottom,0px))!important}
}
@media(max-width:375px){
 .oldBookShelf .oldBookCard{grid-template-columns:95px minmax(0,1fr);gap:10px!important;padding:10px!important}
 .top .logo{font-size:18px!important}.top .brandMark{flex-basis:32px!important;width:32px!important;height:32px!important}
}

/* iOS PWA standalone mode: Safari may report a zero CSS safe-area inset
   despite placing content underneath its native status bar. Reserve at
   least 48px for the notch/status indicators without affecting Safari tabs. */
@supports (-webkit-touch-callout:none){
 @media (display-mode:standalone) and (max-width:760px){
  :root{--dg-pwa-safe-top:max(48px,env(safe-area-inset-top,0px))}
  body:not(.book-open) .top{
   min-height:calc(58px + var(--dg-pwa-safe-top))!important;
   padding-top:var(--dg-pwa-safe-top)!important
  }
  .readerZone .readerChrome{
   min-height:calc(58px + var(--dg-pwa-safe-top))!important;
   padding-top:var(--dg-pwa-safe-top)!important
  }
 }
}
/* Keep the opening card and sticky header legible on narrow iPhones. */
@media(max-width:390px){
 .top .logo>span{letter-spacing:0!important}
 .top .logo small{letter-spacing:.3px!important}
 .top #menuButton{margin-right:1px!important}
}

/* Uniform custom outline icons: crisp on Safari and Android at device scale. */
@media(max-width:760px){
 .dgMobileDock .dgDockGlyph{display:flex!important;align-items:center;justify-content:center;
  height:24px!important;width:28px;margin:0 auto}
 .dgMobileDock .dgDockGlyph svg{display:block;flex:0 0 auto;width:22px;height:22px;
  stroke:currentColor;stroke-width:1.8;vector-effect:non-scaling-stroke}
 .dgMobileDock button{gap:3px!important}
 .dgMobileDock .dgDockText{font:600 10.5px/1.2 system-ui,sans-serif;letter-spacing:.15px}
 .dgMobileDock button[aria-current="page"] .dgDockGlyph svg{stroke-width:2.05}
}

/* Narration controls clearly distinguish paid natural audio from device TTS. */
#voiceModal .dgVoicePreview{display:inline-flex;align-items:center;justify-content:center;min-height:46px;
 padding:10px 17px;margin:9px 0 6px;background:#23543d;color:#f8e8c9;
 border:1px solid #c4a56e;border-radius:10px;font:600 13px system-ui,sans-serif}
#voiceModal #neuralVoice:disabled,#voiceModal #voiceList:disabled{opacity:.65}
#voiceModal #voiceQuality{font-size:16px}

/* Explicit warning before a large, optional free on-device neural voice download. */
#voiceModal .dgFreeVoiceInfo{font:12px/1.65 system-ui,sans-serif;padding:11px 13px;margin:9px 0;
 border:1px solid #cdb380;border-radius:11px;background:#f3e6cc;color:#495340}
#voiceModal .dgFreeVoiceInfo[hidden]{display:none}

/* One-minute voice setup: three core choices, one optional free toggle. */
.dgSimpleVoiceModal{max-width:450px!important;padding:24px 22px 22px!important}
.dgSimpleVoiceModal h2{font:27px/1.17 Georgia,serif!important;margin:8px 0}
.dgSimpleVoiceModal .dgEasySubtitle{margin:8px 0 15px;color:#566a5c;line-height:1.5}
.dgEasyVoiceGrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.dgSimpleVoiceModal label{font:600 13px/1.4 system-ui,sans-serif;margin:10px 0!important}
.dgEasyVoiceGrid label{margin:0!important}
.dgEasyVoiceGrid select{min-height:48px;border-radius:11px!important;padding:10px!important;font:15px system-ui,sans-serif}
.dgEasySpeed{display:block;margin:18px 0 9px!important}
.dgEasySpeed>span{float:right;color:#26734a}
.dgEasySpeed input[type=range]{accent-color:#27734c}
.dgSimpleVoiceModal .dgFreeCheckbox{display:flex;align-items:center;gap:12px;
 padding:11px 12px;margin:14px 0 9px!important;border:1px solid #d8c8a4;border-radius:12px;
 background:#f4f0e5;color:#274b38;cursor:pointer}
.dgFreeCheckbox input{flex:0 0 22px;width:22px!important;height:22px!important;
 margin:0!important;padding:0!important;accent-color:#2c7550}
.dgFreeCheckbox span{display:flex;flex-direction:column;gap:2px}
.dgFreeCheckbox strong{font-weight:700;font-size:13px}
.dgFreeCheckbox small{font:11px/1.4 system-ui,sans-serif;color:#56685b}
#easyVoiceHint{font:12px/1.4 system-ui,sans-serif!important;color:#506458;
 margin:5px 0 14px!important}
.dgEasyActions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.dgEasyActions button{min-height:48px;border-radius:11px;border:1px solid #bbab87;
 background:#efe6d1;color:#1b4530;font:650 13px system-ui,sans-serif}
.dgEasyActions .goldBtn{background:#286444!important;color:#fff3de!important;border-color:#286444}
.dgLegacyVoiceHidden{display:none!important}
.dgTapToStart{display:block;min-height:48px;width:100%;margin:10px auto!important;
 background:#bf9c55!important;border:2px solid #efd49e!important;color:#183927!important;
 border-radius:13px;font:700 15px system-ui,sans-serif;box-shadow:0 3px 12px #0002}
.dgTapToStart[hidden]{display:none!important}
@media(max-width:390px){.dgEasyVoiceGrid{grid-template-columns:1fr;gap:8px}
 .dgSimpleVoiceModal{padding:20px 16px!important}
}

/* Never display the experimental model switch when runtime disabled it. */
.dgFreeCheckbox[hidden]{display:none!important}

/* Only show a selectable gender when it has a genuine voice source. */
.dgEasyVoiceGrid select option:disabled{color:#847f77}
#easyVoiceHint{overflow-wrap:anywhere}

/* Temple bell: a small devotional ritual between the family dedication and library.
   CSS-art bronze bell with a separately moving clapper (pendulum), not a sticky overlay. */
.dgTempleBell{width:min(1050px,calc(100% - 40px));min-width:0;margin:12px auto 26px;
 padding:13px 24px 13px 13px;display:grid;grid-template-columns:104px minmax(0,1fr) auto;
 gap:17px;align-items:center;isolation:isolate;position:relative;
 border:1px solid #d7b77991;border-radius:21px;overflow:hidden;
 background:radial-gradient(ellipse at 8% 47%,#d9b36520,transparent 31%),
 linear-gradient(110deg,#15372b 0%,#1e4634 52%,#143428 100%);
 color:#f0d7a8;box-shadow:0 13px 31px #061a1236,inset 0 1px #ffecbc16}
.dgTempleBell:after{content:'';position:absolute;inset:6px;border:1px solid #ebcd8b18;
 border-radius:16px;pointer-events:none;z-index:-1}
.dgBellArt{width:100px;height:112px;display:flex;align-items:center;justify-content:center;
 border-radius:17px;background:radial-gradient(circle,#d0a65826 0%,#072b2100 75%)}
.dgBellButton{display:grid;place-items:center;width:100px;height:108px;cursor:pointer;
 background:transparent!important;border:0!important;padding:0!important;
 border-radius:16px;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.dgBellSvg{display:block;width:94px;height:105px;overflow:visible;
 filter:drop-shadow(0 5px 7px #0008)}
.dgBellPendant{transform-box:view-box;transform-origin:60px 22px}
.dgBellClapper{transform-box:view-box;transform-origin:60px 91px}
.dgBellIsRinging .dgBellPendant{animation:dgBellSwing 1.55s cubic-bezier(.25,.15,.27,1) both}
.dgBellIsRinging .dgBellClapper{animation:dgBellClapperSwing 1.55s ease-in-out both}
@keyframes dgBellSwing{
 0%,100%{transform:rotate(0)}14%{transform:rotate(15deg)}
 32%{transform:rotate(-12deg)}49%{transform:rotate(8deg)}
 66%{transform:rotate(-5deg)}83%{transform:rotate(2deg)}
}
@keyframes dgBellClapperSwing{
 0%,100%{transform:rotate(0)}14%{transform:rotate(-19deg)}
 32%{transform:rotate(17deg)}49%{transform:rotate(-12deg)}
 66%{transform:rotate(7deg)}83%{transform:rotate(-3deg)}
}
.dgBellWords{min-width:0;overflow-wrap:anywhere}
.dgBellEyebrow{display:block;font:700 10px/1.45 system-ui,sans-serif;letter-spacing:1.4px;
 color:#ddb87d;text-transform:uppercase}
.dgBellEyebrow span{margin-left:6px;color:#d4a460}
.dgBellWords h2{color:#f2d69b!important;margin:6px 0 5px!important;
 font:500 clamp(20px,2.1vw,25px)/1.3 'Noto Serif Devanagari',Georgia,serif!important;
 letter-spacing:0;text-wrap:balance}
.dgBellWords h2 span{font:400 clamp(13px,1.4vw,17px)/1.35 Georgia,serif;color:#e4cbaa;white-space:nowrap}
.dgBellWords p{margin:0 0 6px;font:13px/1.48 system-ui,sans-serif;color:#dbd4bb}
#dgBellStatus{display:block;font:11px/1.45 system-ui,sans-serif;color:#d8b780;min-height:16px}
.dgBellActions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.dgBellActions button{min-height:46px;border-radius:12px;padding:11px 16px;
 font:700 12px/1.2 system-ui,sans-serif;cursor:pointer;white-space:nowrap;
 touch-action:manipulation;transition:background .18s ease,transform .18s ease}
.dgBellRingAction{background:linear-gradient(125deg,#ead49c,#bb9250)!important;
 border:1px solid #f3d79a!important;color:#1a392d!important}
.dgBellRingAction span{font-size:15px}
.dgBellAuto{background:#193b30!important;border:1px solid #d5b87999!important;
 color:#ecd5a7!important}
.dgBellAutoState{display:inline-grid;place-items:center;margin-left:7px;min-width:35px;
 padding:4px 8px;border:1px solid #d7bd8852;border-radius:999px;color:#e5c48b;
 font-size:10px;background:#ffffff0d}
.dgBellAuto[aria-pressed="true"]{background:#d5ba7b!important;color:#183a2b!important}
.dgBellAuto[aria-pressed="true"] .dgBellAutoState{color:#173c2d;background:#fff9db;
 border-color:#fff0b8}
@media(hover:hover){
 .dgBellActions button:hover{transform:translateY(-2px)}
 .dgBellButton:hover .dgBellSvg{filter:drop-shadow(0 7px 9px #0009) brightness(1.14)}
}
body.book-open .dgTempleBell{display:none!important}
@media(max-width:760px){
 .dgTempleBell{width:calc(100% - 24px);grid-template-columns:86px minmax(0,1fr);
  gap:8px 13px;margin:14px auto 18px;padding:12px 14px 14px;border-radius:17px}
 .dgBellArt,.dgBellButton{width:86px;height:94px}
 .dgBellSvg{width:78px;height:89px}
 .dgBellEyebrow{font-size:9px;letter-spacing:.8px}
 .dgBellWords h2{font-size:clamp(18px,4.8vw,23px)!important;margin:4px 0!important}
 .dgBellWords h2 span{display:block;font-size:13px;line-height:1.2}
 .dgBellWords p{font-size:11px;margin-bottom:3px}
 #dgBellStatus{font-size:10px}
 .dgBellActions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;
  width:100%;gap:10px;margin-top:3px}
 .dgBellActions button{width:100%;min-height:47px;padding:10px 9px;font-size:12px}
}
@media(max-width:360px){
 .dgTempleBell{grid-template-columns:72px minmax(0,1fr);padding:10px}
 .dgBellArt,.dgBellButton{width:72px;height:84px}
 .dgBellSvg{width:70px;height:80px}
 .dgBellWords h2{font-size:18px!important}
}
@media(prefers-reduced-motion:reduce){
 .dgBellIsRinging .dgBellPendant,.dgBellIsRinging .dgBellClapper{animation:none!important}
 .dgBellActions button{transition:none!important}
}
.oldBhagavata{background:radial-gradient(ellipse at 18% 0%,#2f6a7a,#123a4a 72%)}
.oldBhagavata span{filter:drop-shadow(0 3px 8px #0004)}
@media (max-width:900px){input:not([type=range]):not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important}}
