:root{--ivory:#faf6ec;--burgundy:#6e1427;--gold:#ab8b4e;--ink:#35272a;--line:#e4daca}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--ivory);color:var(--ink);font:16px/1.6 Arial,sans-serif}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--gold);outline-offset:4px}a{color:inherit;text-decoration:none}header{max-width:1320px;padding:22px 40px;margin:auto;display:flex;align-items:center;gap:35px;border-bottom:1px solid var(--line)}.logo{width:115px;height:85px;object-fit:contain;mix-blend-mode:multiply}nav{display:flex;gap:32px;margin-left:auto}nav button{border:0;background:none;color:inherit}nav a,nav button{font-size:14px}.private{font-size:10px;letter-spacing:1.5px;color:var(--burgundy);border:1px solid #d4bdac;padding:6px 11px;border-radius:20px}.hero{padding:70px 24px 35px;text-align:center;overflow:hidden;background:radial-gradient(ellipse at 50% 65%,#e9ddc666,transparent 65%)}.eyebrow{font-size:10px;letter-spacing:3px;color:var(--gold);font-weight:bold}h1,h2,h3{font-family:Georgia,serif;font-weight:normal;line-height:1.12}h1{font-size:clamp(44px,5.6vw,76px);letter-spacing:-2px;margin:23px 0;color:var(--burgundy)}h1 em{font-weight:normal;color:#927443}.hero p{font-size:16px;color:#7a6e67}.primary{display:inline-flex;gap:30px;background:var(--burgundy);padding:14px 25px;color:#fff9ed;border-radius:5px;margin-top:12px;font-size:14px}.hero-note{font-size:10px;color:#8c7b69;margin:23px 0 46px;letter-spacing:.4px}.hero-note span{margin:0 10px;color:var(--gold)}.shelf{display:flex;gap:16px;justify-content:center;align-items:flex-end;height:250px;max-width:940px;margin:auto;perspective:1400px;padding:0 12px}.featured{flex:0 1 165px;height:221px;position:relative;border:0;border-radius:3px 9px 9px 3px;color:#f8eac8;background:var(--burgundy);box-shadow:8px 7px 10px #38240c33,inset 7px 0 3px #0003;transform:rotateY(-13deg);transition:transform .45s,box-shadow .45s;padding:18px 18px 15px 25px;display:flex;align-items:center;justify-content:space-between;flex-direction:column}.featured:nth-child(2n){background:#27443d;height:239px}.featured:nth-child(3n){background:#9c7e45;height:211px}.featured:after{content:'';position:absolute;inset:10px 9px 10px 15px;border:1px solid #e2c98d77;pointer-events:none}.featured:hover,.featured:focus-visible{transform:translateY(-18px) translateZ(40px) rotateY(0);box-shadow:12px 22px 20px #38240c33}.featured small{font:10px Georgia;letter-spacing:1px}.featured strong{font:21px/1.3 Georgia}.featured .ornament{font-size:25px}.shelf-base{height:13px;max-width:1000px;margin:auto;background:linear-gradient(#d9c4a5,#c7ad89);box-shadow:0 14px 22px #5d361b20;border-radius:2px}.shelf-caption{font:italic 13px Georgia!important;margin:26px 0 15px!important;color:#9b8873!important}#library{max-width:1220px;margin:auto;padding:65px 40px;scroll-margin-top:20px}h2{font-size:40px;color:var(--burgundy);margin:12px 0}.section-heading{display:flex;align-items:center;justify-content:space-between}.section-heading p{font-size:13px;color:#968477}.search{display:flex;align-items:center;border:1px solid #dcccba;border-radius:7px;padding:12px 18px;margin:27px 0 20px;background:#fffdf7;gap:14px}.search span{font-size:28px;color:var(--gold)}.search input{border:0;outline:0;background:none;width:100%;color:var(--ink)}kbd{color:#a99a8c;border:1px solid var(--line);padding:0 9px;border-radius:4px}.filters{display:flex;flex-wrap:wrap;gap:8px}.filters button{padding:8px 16px;border:1px solid var(--line);background:none;border-radius:25px;font-size:12px;color:#77665c}.filters button[aria-pressed=true]{color:#fff9ed;background:var(--burgundy);border-color:var(--burgundy)}.sortbar{display:flex;justify-content:space-between;align-items:center;margin:30px 0 24px;font-size:12px;color:#89776a}.sortbar select{border:0;background:transparent;color:var(--burgundy);font-size:12px}.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:34px 25px}.card{min-width:0}.coverbutton{display:block;width:100%;height:265px;border:1px solid var(--line);background:#f1e9db;border-radius:7px;padding:20px;overflow:hidden;position:relative}.coverbutton img{height:100%;max-width:100%;object-fit:contain;filter:drop-shadow(5px 7px 4px #2d1b1326);transition:transform .35s}.coverbutton:hover img{transform:translateY(-6px) scale(1.035)}.readlabel{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);background:var(--burgundy);color:white;padding:5px 14px;border-radius:20px;font-size:11px;opacity:0;transition:.2s}.coverbutton:hover .readlabel,.coverbutton:focus-visible .readlabel{opacity:1}.card h3{font-size:20px;margin:13px 0 8px;line-height:1.3;color:var(--burgundy)}.card small{font-size:10px;color:#9a805a;letter-spacing:.4px}.cardbottom{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#9a8b7d;margin-top:8px}.cardbottom button{border:0;background:none;color:var(--burgundy);font-size:17px}.closing{text-align:center;border-top:1px solid var(--line);padding:45px 20px 60px}.closing>span{color:var(--gold);font-size:28px}.closing h2{font-size:30px}.closing p{font-size:13px;color:#938171}footer{text-align:center;background:#f0e9db;padding:25px;font-size:11px;color:#978371}footer img{mix-blend-mode:multiply}footer p{margin:6px}footer small{font-size:10px}#resume{max-width:1140px;margin:30px auto 0;padding:20px 25px;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;justify-content:space-between;gap:15px}#resume[hidden]{display:none}#resume small{color:var(--gold)}#resume h3{margin:5px 0;font-size:22px}#resume button,#empty button{padding:10px 18px;background:var(--burgundy);color:white;border:0;border-radius:4px}#empty{text-align:center;padding:50px}dialog{max-width:none;width:100vw;height:100dvh;max-height:100dvh;border:0;padding:0;background:#e9e2d6;color:var(--ink)}dialog[open]{display:flex;flex-direction:column}body:has(dialog[open]){overflow:hidden}.readerbar,.readertools{background:var(--ivory);display:flex;align-items:center;gap:15px;padding:12px 22px;border-bottom:1px solid var(--line)}.readerbar>div{flex:1;min-width:0}.readerbar strong{display:block;font:18px Georgia}.readerbar small{display:block;font-size:10px;color:#987d56}.readerbar button,.readertools button{background:none;border:1px solid var(--line);padding:7px 12px;border-radius:4px;color:var(--burgundy);font-size:12px;min-height:40px}.readertools{justify-content:center;padding:8px;font-size:12px}.readertools input{width:60px;padding:5px;border:1px solid var(--line);background:white;text-align:center}#viewport{flex:1;overflow:auto;padding:24px;text-align:center}#paper{width:min(850px,100%);margin:auto;transition:width .15s}#pageCanvas{display:block;width:100%;height:auto;box-shadow:0 5px 25px #32221220}#pageStatus{font-size:12px;color:var(--burgundy)}.readerfoot{text-align:center;padding:7px;font-size:10px;color:#88745d;background:var(--ivory)}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--burgundy);color:white;border-radius:6px;padding:12px 22px;font-size:13px;display:none;z-index:10}.toolgap{width:20px}button:disabled{opacity:.35;cursor:default}@media(max-width:800px){header{padding:12px 22px;gap:15px}.private{font-size:8px}nav{gap:17px}.logo{width:90px;height:65px}.hero{padding-top:50px}.shelf{height:210px;gap:12px}.featured{height:175px;flex-basis:133px;padding:15px}.featured:nth-child(2n){height:192px}.featured:nth-child(3n){height:170px}.featured strong{font-size:17px}.featured:nth-child(n+5){display:none}.grid{grid-template-columns:repeat(3,1fr)}#library{padding:45px 24px}.coverbutton{height:230px}#resume{margin:25px 24px 0}}@media(max-width:560px){nav a{display:none}nav button{font-size:12px}.private{padding:4px 7px;letter-spacing:1px}.hero{padding:36px 16px 20px}h1{font-size:47px}.eyebrow{font-size:8px;letter-spacing:2px}.hero p{font-size:14px}.hero-note{font-size:8px;margin-bottom:30px}.shelf{height:185px;gap:12px}.featured{flex-basis:103px;height:154px;padding:16px 10px 10px 15px}.featured:nth-child(2n){height:170px}.featured:nth-child(3n){height:148px}.featured:nth-child(n+4){display:none}.featured strong{font-size:15px}.featured small{font-size:7px}.featured .ornament{font-size:19px}.grid{grid-template-columns:repeat(2,1fr);gap:27px 14px}.coverbutton{height:218px;padding:14px}.card h3{font-size:17px}.filters button{font-size:11px;padding:7px 12px}#library{padding:35px 18px}h2{font-size:32px}.section-heading p{font-size:10px}.search{padding:9px 12px}.search input{font-size:14px}.closing h2{font-size:27px}.readerbar{padding:9px;gap:7px;flex-wrap:wrap}.readerbar>div{order:-1;flex-basis:100%;padding:5px}.readerbar strong{font-size:16px}.readerbar button{flex:1}.readertools{gap:6px;flex-wrap:wrap}.readertools button{padding:6px 10px}#fullscreen{display:none}.toolgap{width:4px}#viewport{padding:12px 6px}#resume h3{font-size:18px}#resume button{font-size:11px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

#fallbackImage{width:100%;height:auto;box-shadow:0 5px 25px #32221220}#pageCanvas[hidden],#fallbackImage[hidden]{display:none}
/* The moving home shelf and the full library use the original scanned covers. */
.book-carousel{position:relative;max-width:1120px;margin:24px auto 0;padding:28px 24px 0;isolation:isolate;overflow:hidden}.carousel-arch{position:absolute;z-index:-1;left:50%;top:0;transform:translateX(-50%);width:76%;height:352px;border:1px solid #ddcfb4;border-bottom:0;border-radius:180px 180px 0 0;background:radial-gradient(ellipse at 50% 25%,#fffdf6 0%,#f0e6d1 72%,#e1d0ae 100%);box-shadow:inset 0 4px 26px #6c4c1d0c}.book-carousel .shelf{--book-gap:207px;position:relative;display:block;max-width:1060px;height:332px;padding:0;margin:0 auto;perspective:1400px;touch-action:pan-y}.book-carousel .featured,.book-carousel .featured:nth-child(n){display:block;position:absolute;left:50%;bottom:0;flex:none;width:202px;height:294px;margin:0;padding:0 8px;background:none;border:0;border-radius:0;box-shadow:none;color:var(--burgundy);opacity:1;transform:translateX(calc(-50% + var(--offset)*var(--book-gap))) translateY(calc(var(--distance)*8px)) rotateY(calc(var(--offset)*-13deg)) scale(calc(1 - var(--distance)*.1));transform-origin:50% 100%;transition:transform 1100ms cubic-bezier(.22,.75,.18,1),opacity 800ms ease;will-change:transform;cursor:pointer}.book-carousel .featured::after{content:none}.book-carousel .featured[data-position="3"],.book-carousel .featured[data-position="-3"]{opacity:0;pointer-events:none}.carousel-book{display:block;position:relative;width:100%;height:100%;transform-style:preserve-3d;box-shadow:11px 13px 17px #4c2f1338;border-radius:2px 5px 5px 2px;transition:transform .35s,box-shadow .35s}.carousel-book>img{display:block;width:100%;height:100%;object-fit:fill;border-radius:2px 5px 5px 2px}.carousel-book::after,.book-object::after{content:'';position:absolute;top:3px;bottom:2px;right:-5px;width:6px;z-index:-1;background:repeating-linear-gradient(to bottom,#fefaf1 0px,#fefaf1 1px,#cbbf9f 2px,#f4ead5 3px);transform:skewY(-10deg);border-radius:0 3px 3px 0}.book-spine{position:absolute;pointer-events:none;inset:0 auto 0 0;width:10px;background:linear-gradient(90deg,#37190b45,#fff8e311 50%,#482b1720 85%,transparent);border-right:1px solid #93745422;border-radius:2px 0 0 2px}.featured-read{position:absolute;bottom:15px;left:50%;transform:translateX(-50%);padding:5px 14px;border-radius:20px;background:#6e1427ed;color:#fff9ed;white-space:nowrap;font:11px Arial,sans-serif;opacity:0;transition:opacity .25s}.book-carousel .featured[data-position="0"] .carousel-book{box-shadow:14px 16px 24px #4c2f1345}.book-carousel .featured:hover .carousel-book,.book-carousel .featured:focus-visible .carousel-book{transform:translateY(-9px)}.book-carousel .featured:hover .featured-read,.book-carousel .featured:focus-visible .featured-read{opacity:1}.book-carousel .shelf-base{position:relative;height:20px;max-width:1040px;border-top:2px solid #dfc998;border-radius:3px;background:linear-gradient(180deg,#c9ad79,#b28c56 38%,#c9ab74 42%,#b89764 90%);box-shadow:0 16px 24px #5c3e232a,0 2px 2px #fff8df inset;z-index:12}.book-carousel .shelf-base::after{content:'';position:absolute;inset:4px 0 2px;background:repeating-linear-gradient(1deg,transparent 0px,transparent 3px,#7f59220c 4px,#fff4d61c 6px);pointer-events:none}.carousel-controls{display:flex;align-items:center;justify-content:center;gap:18px;margin:31px 0 19px}.carousel-controls>button{display:grid;place-items:center;width:40px;height:40px;border:1px solid #d4c2a0;border-radius:50%;color:var(--burgundy);background:#fffbf1;font-size:19px;line-height:1;transition:background .2s,transform .2s}.carousel-controls>button:hover{background:#efe2c9;transform:translateY(-2px)}.shelf-dots{display:flex;align-items:center;gap:7px}.shelf-dots button{display:block;width:8px;height:8px;border:0;border-radius:8px;background:#cfc0a3;padding:0;transition:width .4s,background .4s}.shelf-dots button[aria-current="true"]{width:24px;background:var(--burgundy)}.carousel-controls #shelfPause{width:auto;display:flex;gap:6px;border:0;background:transparent;border-radius:4px;padding:0 3px;font-size:15px}.carousel-controls #shelfPause span{font-size:10px}.featured-caption{min-height:112px;padding:5px 10px 15px}.featured-caption .eyebrow{font-size:8px;letter-spacing:2px}.featured-caption h3{font:25px/1.25 Georgia,serif;color:var(--burgundy);margin:9px 0}.hero .featured-caption p{font-size:10px;color:#9c896c;margin:8px 0}.hero{padding-bottom:10px}.hero-note{margin-bottom:25px}
#grid.grid{display:block}.library-shelf{--book-stage:248px;--shelf-pad:24px;position:relative;margin:0 0 28px;padding:var(--shelf-pad) 28px 24px;border:1px solid #dacbac;border-radius:7px;background:linear-gradient(180deg,#e7dcc5 0px,#f4ebda calc(var(--shelf-pad) + var(--book-stage)),#faf6ec calc(var(--shelf-pad) + var(--book-stage) + 20px));box-shadow:inset 9px 0 10px -9px #64431d60,inset -9px 0 10px -9px #64431d60,0 5px 15px #5b3c1510}.library-shelf::before{content:'';position:absolute;left:12px;right:12px;top:10px;height:calc(var(--book-stage) + var(--shelf-pad) - 10px);border-top:1px solid #c7b38b66;background:radial-gradient(ellipse at 50% 0,#fffdf577,transparent 70%),repeating-linear-gradient(88deg,transparent 0,transparent 54px,#c9b2880d 55px,transparent 57px);pointer-events:none}.shelf-books{position:relative;display:grid;grid-template-columns:repeat(var(--shelf-columns),minmax(0,1fr));gap:25px;align-items:start}.shelf-ledge{position:absolute;top:calc(var(--shelf-pad) + var(--book-stage));left:8px;right:8px;height:16px;z-index:2;background:linear-gradient(180deg,#d9c194 0px,#c6a570 3px,#b38a54 5px,#c6a16b 10px,#b18c55 16px);border-top:1px solid #f5dfb2;border-bottom:1px solid #92713c55;border-radius:2px;box-shadow:0 10px 10px #68471c22,0 -3px 5px #5a361218}.shelf-books .card{position:relative;min-width:0;animation:shelveIn .65s ease both;animation-delay:calc(var(--book-order)*55ms)}.shelf-books .coverbutton{display:flex;align-items:flex-end;justify-content:center;width:100%;height:var(--book-stage);padding:14px 12px 0;overflow:visible;background:none;border:0;border-radius:0;perspective:1000px;position:relative;z-index:3}.book-object{position:relative;display:block;width:min(100%,172px);height:228px;transform:rotateY(-9deg);transform-origin:50% 100%;transition:transform .4s,filter .4s;filter:drop-shadow(8px 5px 5px #48301635);isolation:isolate}.shelf-books .coverbutton img{display:block;max-width:none;width:100%;height:100%;object-fit:fill;border-radius:2px 5px 4px 2px;filter:none;transform:none}.shelf-books .coverbutton:hover img{transform:none}.shelf-books .coverbutton:hover .book-object,.shelf-books .coverbutton:focus-visible .book-object{transform:translateY(-13px) rotateY(0deg);filter:drop-shadow(12px 12px 8px #48301645)}.shelf-books .readlabel{z-index:4;bottom:13px}.shelf-books .card h3{font-size:18px;margin:27px 0 8px;line-height:1.3;position:relative;z-index:3}.shelf-books .card>small{font-size:9px;color:#9c8055;letter-spacing:.4px}.shelf-books .cardbottom{margin-top:7px;font-size:10px}.shelf-books .cardbottom button{padding:2px 7px;min-width:32px;min-height:32px}.section-heading h2{font-size:42px}#library{padding-top:40px}.private{font-size:8px}@keyframes shelveIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:900px){.book-carousel .shelf{--book-gap:175px;height:314px}.book-carousel .featured,.book-carousel .featured:nth-child(n){width:184px;height:270px}.carousel-arch{height:335px;width:90%}.library-shelf{padding-left:24px;padding-right:24px}.shelf-books{gap:26px}}
@media(max-width:560px){.book-carousel{padding:17px 0 0;margin:24px -16px 0}.book-carousel .shelf{--book-gap:160px;height:280px}.book-carousel .featured,.book-carousel .featured:nth-child(n){display:block;width:172px;height:249px;padding:0 7px}.carousel-arch{width:94%;height:299px;border-radius:100px 100px 0 0}.book-carousel .featured[data-position="2"],.book-carousel .featured[data-position="-2"]{opacity:0;pointer-events:none}.book-carousel .shelf-base{height:17px;margin:0 11px}.carousel-controls{gap:11px;margin-top:25px}.carousel-controls>button{width:36px;height:36px}.shelf-dots{gap:5px}.shelf-dots button{width:6px;height:6px}.shelf-dots button[aria-current="true"]{width:20px}.featured-caption{min-height:107px;padding:1px 24px 15px}.featured-caption h3{font-size:21px}.hero .featured-caption p{font-size:9px}.library-shelf{--book-stage:212px;--shelf-pad:18px;padding-left:17px;padding-right:17px;margin-bottom:21px}.shelf-books{gap:18px}.shelf-books .coverbutton{padding:12px 4px 0}.book-object{width:min(100%,139px);height:195px}.shelf-books .card h3{font-size:16px;margin-top:25px}.shelf-books .card>small{font-size:8px}.shelf-books .cardbottom{font-size:9px}.shelf-ledge{left:5px;right:5px;height:14px}.section-heading h2{font-size:32px}.private{font-size:7px;padding:4px 6px;letter-spacing:.6px}#library{padding-left:13px;padding-right:13px}.library-shelf::before{left:8px;right:8px}.carousel-controls #shelfPause span{font-size:9px}}
@media(prefers-reduced-motion:reduce){.book-carousel *,.shelf-books *{animation:none!important;transition:none!important}.book-carousel .featured{will-change:auto}}
@media(min-width:1050px){.hero{display:grid;grid-template-columns:minmax(310px,.9fr) minmax(0,1.4fr);gap:36px;max-width:1380px;margin:auto;text-align:left;padding:40px 45px 25px;align-items:center}.hero-copy{padding-bottom:32px}.hero h1{font-size:clamp(52px,4.3vw,65px);letter-spacing:-1.8px}.hero .eyebrow{font-size:9px;letter-spacing:2px}.hero p{font-size:15px}.hero-note{font-size:9px;line-height:1.7;max-width:330px}.hero .book-carousel{width:100%;margin:0;padding:24px 0 0;text-align:center}.hero .book-carousel .shelf{--book-gap:146px;height:291px}.hero .book-carousel .featured,.hero .book-carousel .featured:nth-child(n){width:166px;height:242px;padding:0 7px}.hero .carousel-arch{height:310px;width:98%;border-radius:140px 140px 0 0}.hero .carousel-controls{margin-top:26px}.hero .featured-caption{min-height:100px}.hero .featured-caption h3{font-size:22px}.hero .featured-caption .eyebrow{font-size:8px}.hero .featured-caption p{font-size:10px}.hero .book-carousel .shelf-base{margin:0 4px}.hero .primary{margin-top:8px}}
@media(max-width:560px){.hero{padding-top:25px}.hero h1{font-size:44px;line-height:1.08;margin:18px 0}.hero-copy>p{font-size:13px;margin:11px 0}.hero-copy .primary{padding:11px 21px;font-size:13px}.hero-note{margin:16px 0 0;font-size:8px}.book-carousel{margin-top:15px}.featured-caption h3{font-size:20px}}
/* Home is deliberately limited to the hero and moving shelf. */
.home-page main{min-height:calc(100vh - 270px)}.site-nav{align-items:center}.site-nav a[aria-current="page"]{color:var(--burgundy);border-bottom:1px solid var(--gold)}.library-page main{min-height:65vh}.library-page #library{padding-top:48px}.library-page #library .section-heading h1{font-size:42px;line-height:1.15;letter-spacing:-.8px;margin:10px 0 5px;color:var(--burgundy)}.library-page #library .section-heading{border-bottom:1px solid var(--line);padding-bottom:19px}.library-page #library .search{margin-top:26px}.library-page #resume:not([hidden]){margin-top:30px}.library-page #resume:not([hidden])+#library{padding-top:30px}
@media(max-width:560px){header{padding:10px 16px;gap:12px}.site-nav{gap:10px}.site-nav a{display:inline-flex}.site-nav a,.site-nav button{font-size:10px;white-space:nowrap}.logo{width:82px;height:60px}header .private{display:none}.library-page #library{padding-top:29px}.library-page #library .section-heading h1{font-size:32px}.library-page .section-heading .eyebrow{font-size:8px}.home-page main{min-height:calc(100vh - 240px)}}

/* Complete original homepage logo, aligned with the content edge. */
.home-page header{padding-top:20px;padding-bottom:20px;min-height:132px;gap:32px}
.home-brand{display:flex;align-items:center;justify-content:flex-start;flex:0 0 auto;line-height:0;padding:4px 0}
.home-brand .logo{display:block;width:120px;height:auto;max-width:none;object-fit:contain;mix-blend-mode:normal}
.home-page footer img{display:block;width:80px;height:auto;margin:0 auto 12px;mix-blend-mode:normal}
@media(max-width:800px){.home-page header{padding:16px 24px;min-height:112px;gap:20px}.home-brand .logo{width:100px}}
@media(max-width:560px){.home-page header{padding:14px 18px;min-height:96px;gap:16px}.home-brand .logo{width:88px}.home-page .site-nav{gap:16px}.home-page .site-nav a{font-size:11px}.home-page main{min-height:calc(100vh - 240px)}}

.parts-dialog{width:min(740px,calc(100vw - 32px));height:auto;max-height:90dvh;padding:28px;border:1px solid var(--line);border-radius:12px;background:var(--ivory);overflow:auto;box-shadow:0 20px 100px #35272a55}.parts-dialog[open]{display:block}.parts-dialog::backdrop{background:#24191c99}.parts-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.parts-top button{border:1px solid var(--line);background:transparent;border-radius:5px;padding:8px 12px;color:var(--burgundy)}.parts-intro{display:flex;align-items:center;gap:28px;padding:26px 0}.parts-intro>img{width:112px;height:auto;box-shadow:4px 7px 14px #35272a33}.parts-intro h2{font-size:30px;margin:0 0 12px}.parts-intro p{margin:0 0 6px;color:var(--burgundy)}.parts-intro small{color:#89776a}.part-choices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.part-choice{display:flex;align-items:center;text-align:left;gap:14px;background:#fffdf7;border:1px solid var(--line);border-radius:7px;padding:12px;color:var(--burgundy)}.part-choice:hover{border-color:var(--gold);background:#f4ecde}.part-choice img{width:46px;height:auto}.part-choice>span:first-of-type{flex:1}.part-choice strong,.part-choice small{display:block}.part-choice strong{font-family:Georgia,serif;font-size:21px}.part-choice small{font-size:11px;color:#89776a}@media(max-width:560px){.parts-dialog{padding:20px;max-height:92dvh}.parts-intro{gap:18px}.parts-intro>img{width:82px}.parts-intro h2{font-size:24px}.parts-intro p{font-size:13px}.part-choices{grid-template-columns:1fr}}

/* Keep every library book title centred beneath its cover at every width. */
.library-page .shelf-books .card h3{text-align:center;inline-size:100%;margin-inline:auto;text-wrap:balance;overflow-wrap:anywhere}
.library-page .shelf-books .card h3 a{display:block;text-align:inherit}

/* About kiishti: a quiet editorial page with the original brand. */
.footer-nav{display:flex;justify-content:center;flex-wrap:wrap;gap:22px;margin:15px 0 12px}.footer-nav a{display:inline-flex;font-size:11px}.about-page header{min-height:124px}.about-brand{display:flex;flex-shrink:0;line-height:0}.about-brand .logo{display:block;width:112px;height:auto;mix-blend-mode:normal}.about-main{padding-bottom:70px}.about-hero{text-align:center;padding:64px 24px 56px;background:radial-gradient(ellipse at center,#e9ddc655,transparent 70%);border-bottom:1px solid var(--line)}.about-emblem{display:block;width:152px;height:auto;margin:34px auto 30px}.about-hero h1{font-size:clamp(38px,5vw,64px);letter-spacing:-1.5px;margin:22px 0}.about-hero h1 em{color:#927443}.about-hero>p{max-width:590px;margin:20px auto 0;color:#7a6e67;font-size:17px;line-height:1.8}.about-story{max-width:920px;margin:auto;padding:0 32px}.about-story>section{padding:55px 0;border-bottom:1px solid var(--line)}.about-story h2{font-size:34px;line-height:1.22;margin:14px 0 24px;max-width:650px}.about-story p{font-size:16px;line-height:1.9;color:#685b55;max-width:760px;margin:16px 0}.about-story strong{color:var(--burgundy)}.about-logo-story{display:grid;grid-template-columns:240px 1fr;gap:45px;align-items:center}.about-logo-panel{padding:44px 30px;border:1px solid #d9c7a8;background:#f3ecdd;border-radius:100px 100px 8px 8px}.about-logo-panel img{display:block;width:100%;height:auto}.about-story .about-wish{text-align:center;border-bottom:0;padding-bottom:0}.about-wish h2,.about-wish p{margin-left:auto;margin-right:auto}.about-page footer>img{display:block;height:auto;margin:auto}.about-page .site-nav a[aria-current=page]{color:var(--burgundy);text-decoration:underline;text-underline-offset:6px}
@media(max-width:800px){.about-logo-story{grid-template-columns:180px 1fr;gap:28px}.about-logo-panel{padding:36px 22px}.about-page header{min-height:110px}.about-brand .logo{width:100px}}
@media(max-width:560px){header{flex-wrap:wrap}.site-nav{flex-wrap:wrap;justify-content:flex-end;row-gap:7px;flex:1;min-width:0}.home-page .site-nav{column-gap:12px}.about-page header{padding:14px 18px;gap:18px;min-height:96px}.about-brand .logo{width:88px}.about-page .site-nav a{font-size:11px}.about-hero{padding:38px 22px}.about-emblem{width:120px;margin:27px auto}.about-hero h1{font-size:39px}.about-hero>p{font-size:15px}.about-story{padding:0 24px}.about-story>section{padding:36px 0}.about-story h2{font-size:29px}.about-story p{font-size:15px}.about-logo-story{display:block}.about-logo-panel{width:180px;margin:0 auto 30px}.about-main{padding-bottom:45px}}

/* Readable static terms, accessible from every page footer. */
.terms-main{max-width:860px;padding:60px 32px 70px;margin:auto}.terms-heading{padding-bottom:28px;border-bottom:1px solid var(--line)}.terms-heading h1{font-size:clamp(38px,5vw,54px);letter-spacing:-1px}.terms-heading>p{font-size:12px;color:#89776a}.terms-heading .terms-lead{font-size:17px;line-height:1.8;color:#685b55;max-width:670px}.terms-main section{padding:24px 0 12px}.terms-main h2{font-size:25px;line-height:1.3;margin:8px 0 16px}.terms-main section p{font-size:15px;line-height:1.9;color:#685b55;margin:14px 0}.terms-end{display:flex;justify-content:space-between;flex-wrap:wrap;gap:20px;border-top:1px solid var(--line);margin-top:26px;padding-top:26px;color:var(--burgundy);font-size:13px}.terms-end a{text-decoration:underline;text-underline-offset:4px}@media(max-width:560px){.terms-main{padding:36px 24px 45px}.terms-main h2{font-size:23px}.terms-heading .terms-lead{font-size:15px}.terms-heading h1{font-size:38px}}
/* A compact left drawer keeps the homepage focused on its books. */
.menu-toggle{display:flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;border:1px solid var(--line);border-radius:6px;padding:8px 10px;background:transparent;color:var(--burgundy);min-width:44px;min-height:44px;font-size:12px}.menu-toggle>span:first-child{font-size:20px;line-height:1}.site-menu{position:fixed;inset:0 auto 0 0;margin:0;width:min(320px,88vw);height:100dvh;max-height:100dvh;padding:25px 24px;background:var(--ivory);border:0;border-right:1px solid var(--line);overflow:auto;box-shadow:10px 0 70px #35272a33}.site-menu[open]{display:flex;flex-direction:column}.site-menu::backdrop{background:#24191c80}.menu-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.menu-heading button{border:0;background:none;color:var(--burgundy);font-size:29px;min-width:44px;min-height:44px}.menu-brand img{display:block;width:106px;height:auto;margin:20px auto 30px}.drawer-nav{display:flex;flex-direction:column;gap:4px;margin:0;width:100%}.drawer-nav>a,.drawer-nav summary{display:block;padding:11px 12px;border-radius:5px;font-size:15px;color:var(--burgundy)}.drawer-nav summary{cursor:pointer;list-style:revert}.drawer-nav a:hover,.drawer-nav summary:hover,.drawer-nav a[aria-current=page]{background:#eee2cd}.drawer-nav details>a{display:block;padding:9px 18px 9px 30px;font-size:13px;color:#7a6e67}.menu-terms{display:block;margin-top:30px;padding:18px 12px;border-top:1px solid var(--line);color:#89776a;font-size:11px}.utility-main{max-width:960px;margin:auto;padding:60px 32px 75px}.utility-heading{margin-bottom:35px}.utility-heading h1{font-size:clamp(38px,5vw,58px);letter-spacing:-1px}.utility-heading>p{color:#7a6e67;max-width:650px}.notice-panel{padding:30px;border:1px solid var(--line);border-radius:10px;background:#f3ecdd;margin-bottom:30px}.notice-panel h2{font-size:29px;line-height:1.3}.notice-panel p,.contact-topics p{font-size:15px;line-height:1.9;color:#685b55}.contact-topics{display:grid;grid-template-columns:1fr 1fr;gap:26px;margin:35px 0}.contact-topics section:last-child{grid-column:1/-1}.contact-topics h2{font-size:25px}.contact-topics a{font-size:13px;color:var(--burgundy);text-decoration:underline}.calendar-label{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:11px;color:#89776a;margin-bottom:13px}.calendar-panel{border:1px solid var(--line);border-radius:10px;background:#fffdf7;padding:22px}.calendar-controls{display:flex;align-items:center;gap:12px;margin-bottom:25px}.calendar-controls h2{flex:1;margin:0;font-size:27px;text-align:center}.calendar-controls button{border:1px solid var(--line);background:var(--ivory);padding:7px 12px;min-height:40px;border-radius:5px;color:var(--burgundy)}.calendar-weekdays,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.calendar-weekdays{text-align:center;font-size:11px;color:#89776a;margin-bottom:10px}.calendar-days button{position:relative;min-height:62px;border:1px solid #eee6d8;border-radius:5px;background:none;color:var(--ink)}.calendar-days button:hover{background:#f3ecdd}.calendar-days button[aria-current=date]{border:2px solid var(--gold);font-weight:bold}.calendar-days button[aria-pressed=true]{background:var(--burgundy);color:var(--ivory);border-color:var(--burgundy)}.event-dot{display:block;width:5px;height:5px;border-radius:50%;background:var(--gold);position:absolute;bottom:6px;left:calc(50% - 2px)}.event-section{padding-top:35px;scroll-margin-top:25px}.event-section>h2{font-size:32px;margin-bottom:12px}.calendar-selection,.calendar-note{font-size:12px;color:#89776a}.event-empty,.event-card{padding:22px;border:1px solid var(--line);border-radius:8px;margin-top:15px}.event-empty h3,.event-card h3{font-size:23px;color:var(--burgundy);margin:0 0 10px}.event-empty p,.event-card p{font-size:14px;color:#7a6e67}.event-card small{color:#89776a;font-size:11px}.calendar-note{margin-top:24px;line-height:1.8}
@media(max-width:800px){header{gap:18px}}
@media(max-width:560px){header,.home-page header,.about-page header{gap:12px}.menu-toggle-label{display:none}.menu-toggle{padding:7px;min-width:38px;min-height:40px}.home-page .site-nav{column-gap:10px}.site-nav{column-gap:10px}.site-nav a,.site-nav button,.home-page .site-nav a,.about-page .site-nav a{font-size:10px}.utility-main{padding:35px 22px 45px}.notice-panel{padding:22px}.notice-panel h2{font-size:25px}.contact-topics{grid-template-columns:1fr;gap:14px}.calendar-panel{padding:14px 10px}.calendar-controls{gap:7px}.calendar-controls h2{font-size:22px}.calendar-controls button{padding:6px 9px;font-size:12px}.calendar-days button{min-height:44px;font-size:13px}.calendar-weekdays,.calendar-days{gap:3px}.footer-nav{column-gap:16px;row-gap:10px}.drawer-nav a,.drawer-nav summary{font-size:15px}.drawer-nav details>a{font-size:13px}}
/* Live dates and local prayer times, separate from the book carousel. */
.today-panel{max-width:1060px;margin:28px auto 0;padding:22px 28px;background:#fffdf7;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 24px #6e142705}.today-top{display:flex;justify-content:space-between;align-items:center;gap:12px}.today-top>button{background:none;border:0;color:#89776a;font-size:11px;min-height:32px}.today-dates{display:grid;grid-template-columns:1fr 1fr;gap:25px;padding:17px 0 21px}.today-dates small{font-size:9px;letter-spacing:1.6px;color:var(--gold)}.today-dates p{font-family:Georgia,serif;font-size:23px;line-height:1.4;color:var(--burgundy);margin:7px 0 0}.today-hijri{text-align:right}.today-hijri p{font-family:Georgia,'Times New Roman',serif;font-size:26px}.today-hijri>span{display:block;font-size:10px;color:#89776a;margin-top:5px}.today-location{display:flex;align-items:center;gap:9px;border-top:1px solid var(--line);padding:16px 0 4px}.today-location>div{flex:1;min-width:0}.today-location strong{font-size:13px;color:var(--burgundy);display:block}.today-location small{font-size:10px;color:#89776a;display:block;margin-top:2px}.today-location button,.city-picker button{font-size:11px;border:1px solid var(--line);border-radius:5px;background:var(--ivory);color:var(--burgundy);padding:8px 11px;min-height:38px}.today-status{font-size:11px;line-height:1.6;color:#89776a;margin:10px 0}.prayer-times{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}.prayer-time{text-align:center;padding:14px 10px;border-radius:7px;background:#f3ecdd}.prayer-time small{display:block;color:#89764f;font-size:11px}.prayer-time strong{display:block;margin-top:4px;font:23px Georgia,serif;color:var(--burgundy)}.today-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:11px;color:var(--burgundy);padding-top:7px}.today-bottom small{font-size:10px;color:#89776a}.today-details{margin-top:14px;font-size:10px;color:#89776a}.today-details summary{cursor:pointer}.today-details p{max-width:850px;line-height:1.8}.today-details a,.today-bottom small a{text-decoration:underline;text-underline-offset:2px}.city-picker{padding:14px 0}.city-picker[hidden]{display:none}.city-picker>label{display:block;font-size:11px;margin-bottom:6px;color:#89776a}.city-picker>div:first-of-type{display:flex;gap:8px}.city-picker input{flex:1;min-width:0;width:100%;padding:9px 12px;border:1px solid var(--line);border-radius:5px;background:white;font-size:13px}.city-results{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px;font-size:12px}.city-results button{text-align:left;background:white}.city-results strong,.city-results small{display:block}.city-results small{font-size:10px;color:#89776a}.utility-main .today-panel{margin:0 0 20px}.today-panel[data-full-timings=true] .today-bottom>a{display:none}
@media(max-width:1100px){.home-page .today-panel{margin-left:24px;margin-right:24px}}@media(max-width:560px){.home-page .today-panel{margin:20px 16px 0;padding:17px 16px}.today-panel{padding:18px 16px}.today-dates{gap:14px;padding-top:13px}.today-dates p{font-size:18px}.today-hijri p{font-size:23px}.today-dates small{font-size:8px}.today-hijri>span{font-size:9px}.today-location{flex-wrap:wrap}.today-location>div{flex-basis:100%;margin-bottom:5px}.today-location button{flex:1}.prayer-times{gap:7px}.prayer-time{padding:13px 4px}.prayer-time small{font-size:10px}.prayer-time strong{font-size:20px}.city-results{grid-template-columns:1fr}.today-top .eyebrow{font-size:8px}.today-bottom{font-size:10px}.today-details{font-size:10px}}

.location-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:13px}.location-filters label{min-width:0;font-size:11px;color:#89776a}.location-filters label>span{font-size:10px}.location-filters select,.location-filters input{display:block;width:100%;height:42px;margin-top:6px;padding:8px 10px;border:1px solid var(--line);border-radius:5px;background:white;color:var(--ink);font-size:12px}.city-picker>.location-filters:first-of-type{display:grid}.city-picker>div:not(.location-filters):not(.city-results){display:flex;gap:8px}@media(max-width:560px){.location-filters{grid-template-columns:1fr;gap:10px}}
.calendar-view-switch{display:flex;gap:8px;margin:26px 0 18px}.calendar-view-switch button{border:1px solid var(--line);background:transparent;border-radius:20px;padding:9px 20px;font-size:13px;color:var(--burgundy)}.calendar-view-switch button[aria-pressed=true]{background:var(--burgundy);color:var(--ivory)}.calendar-jump{display:flex;gap:12px;align-items:flex-end;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:24px}.calendar-jump label{display:flex;flex-direction:column;font-size:11px;color:#89776a;gap:5px}.calendar-jump select,.calendar-jump input{border:1px solid var(--line);border-radius:5px;background:var(--ivory);padding:8px 10px;min-height:40px;color:var(--burgundy);font-size:13px}.calendar-jump input{width:100px}.calendar-jump>button,.events-heading>button,#retryCalendar{border:1px solid var(--line);background:var(--ivory);padding:8px 12px;min-height:40px;border-radius:5px;color:var(--burgundy);font-size:12px}.calendar-month-heading{flex:1;text-align:center;min-width:0}.calendar-month-heading>p{margin:5px 0;color:var(--burgundy);font-size:21px}.calendar-month-heading>small{display:block;font-size:11px;color:#89776a}.calendar-page .calendar-days button{min-height:95px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.calendar-days button>small{font-size:11px;color:#89776a}.calendar-days button>strong{font:30px Georgia,serif;color:var(--burgundy)}.calendar-days button[aria-pressed=true]>small,.calendar-days button[aria-pressed=true]>strong{color:var(--ivory)}.calendar-page .calendar-days button[aria-current=date]{box-shadow:inset 0 0 0 1px var(--gold)}.calendar-legend{display:flex;flex-wrap:wrap;gap:20px;margin-top:18px;color:#89776a;font-size:10px}.legend-dot{display:inline-block;background:var(--gold);width:6px;height:6px;border-radius:50%;margin-right:5px}.selected-date-panel{border-bottom:1px solid var(--line);padding:22px 0}.selected-date-panel h2{font-size:23px}.selected-date-panel>p[lang=ar]{font-size:23px;color:var(--burgundy)}.events-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.calendar-page .today-panel .prayer-times,.calendar-page .today-panel .today-bottom>a{display:none}.calendar-page .today-panel{margin-bottom:22px}.calendar-page #monthView[hidden]{display:none}.calendar-page .event-card{border-left:3px solid var(--gold);background:#fffdf7}.calendar-page .event-card h3{line-height:1.5;font-size:22px}.calendar-page .calendar-controls>button{flex-shrink:0}
@media(max-width:560px){.calendar-page .utility-main{padding-left:15px;padding-right:15px}.calendar-jump{gap:8px;flex-wrap:wrap}.calendar-jump label:first-child{flex:1;min-width:145px}.calendar-jump select{width:100%;font-size:12px}.calendar-jump input{width:78px}.calendar-page .calendar-controls{flex-wrap:wrap;gap:6px}.calendar-month-heading{flex-basis:65%}.calendar-controls .calendar-month-heading h2{font-size:22px}.calendar-month-heading>p{font-size:21px}.calendar-month-heading>small{font-size:9px}.calendar-page .calendar-days button{min-height:73px;padding:4px 1px}.calendar-days button>small{font-size:8px}.calendar-days button>strong{font-size:25px}.calendar-legend{gap:9px;font-size:9px}.selected-date-panel h2{font-size:21px;line-height:1.5}.events-heading{align-items:flex-start;flex-direction:column}.calendar-page .event-card h3{font-size:20px}}

.calendar-page [hidden]{display:none!important}

.retry-live{background:var(--ivory);border:1px solid var(--line);border-radius:5px;padding:9px 14px;color:var(--burgundy);font-size:12px;min-height:40px}

/* Responsive polish: one heading scale, readable contrast and thumb-sized controls. */
:root{--gold:#856931}
h1,h2,h3{overflow-wrap:break-word;text-wrap:balance}
.eyebrow{color:#856931}
.hero p,.utility-heading>p,.about-hero>p{color:#685b55}
.section-heading{gap:16px;min-width:0}.section-heading>div{min-width:0}
.featured-caption h3{max-width:32ch;margin-inline:auto;line-height:1.35}
.readerbar strong,.parts-intro>div{overflow-wrap:anywhere;min-width:0}
.shelf-dots{gap:0}.shelf-dots button{position:relative;width:28px;height:44px;border-radius:0;background:transparent}
.shelf-dots button::after{content:'';position:absolute;inset:19px 10px;background:#b4a181;border-radius:8px}
.shelf-dots button[aria-current=true]{width:28px;background:transparent}
.shelf-dots button[aria-current=true]::after{inset-inline:4px;background:var(--burgundy)}
.carousel-controls>button,.carousel-controls #shelfPause{min-width:44px;min-height:44px}
.book-carousel .shelf{--drag-x:0px;user-select:none;-webkit-user-select:none}
.book-carousel .featured,.book-carousel .featured:nth-child(n){translate:var(--drag-x) 0}
.book-carousel .shelf.is-dragging .featured{transition:none}
.book-carousel img{-webkit-user-drag:none;pointer-events:none}
.book-carousel .featured{transition-duration:650ms,400ms}
.today-dates>div,.prayer-time{min-width:0}.today-dates p{overflow-wrap:anywhere}
@media(max-width:560px){
 .hero h1{font-size:clamp(32px,8.8vw,40px);letter-spacing:-1px;line-height:1.15}
 .about-hero h1,.terms-heading h1,.utility-heading h1{font-size:clamp(29px,7.8vw,36px);letter-spacing:-.7px;line-height:1.2}
 .library-page #library .section-heading h1{font-size:clamp(28px,7.8vw,34px)}
 .about-story h2,.notice-panel h2,.event-section>h2{font-size:25px;line-height:1.3}
 .calendar-page .event-card h3{font-size:18px;line-height:1.5}
 .parts-intro h2{font-size:21px;line-height:1.35}
 .featured-caption h3{font-size:19px}.featured-caption{min-height:115px}
 .library-page .shelf-books .card h3{font-size:15px;line-height:1.4}
 .section-heading{align-items:flex-start;flex-wrap:wrap}.sortbar{gap:12px;flex-wrap:wrap}
 .today-dates p{font-size:17px}.today-hijri p{font-size:21px}
 .today-status,.calendar-selection,.calendar-note,.event-card small{color:#726154}
 .menu-toggle,.readerbar button,.readertools button,.today-location button,.calendar-controls button,.filters button{min-height:44px}
 .shelf-books .cardbottom button{min-width:44px;min-height:44px}
 .carousel-controls{gap:6px}.shelf-dots{gap:0}
 .site-nav a,.site-nav button{min-height:44px;align-items:center;display:inline-flex}
 input:not([type=checkbox]):not([type=radio]),select,.search input,.location-filters input,.location-filters select,.calendar-jump input,.calendar-jump select{font-size:16px}
 .calendar-page .calendar-month-heading{flex:1 1 calc(100% - 100px)}
 .calendar-page .calendar-controls #calendarToday{margin-inline:auto}
}
@media(max-width:360px){.home-brand .logo,.about-brand .logo{width:72px}.carousel-controls{gap:2px}.shelf-dots button,.shelf-dots button[aria-current=true]{width:25px}.today-dates{grid-template-columns:1fr;gap:12px}.today-hijri{text-align:left}.prayer-time strong{font-size:18px}.calendar-page .calendar-controls .calendar-month-heading h2{font-size:19px}}

footer,.cardbottom,.shelf-books .card>small,.today-status,.today-location small,.today-details,.calendar-note,.event-card small{color:#74614b}
@media(prefers-reduced-motion:reduce){.book-carousel .featured{translate:0 0!important}}

/* Quieter, compact typography and deliberate two-part event dates. */
html::before{content:'';position:fixed;z-index:10000;inset:0 0 auto;height:3px;opacity:0;pointer-events:none;background:linear-gradient(90deg,transparent,var(--burgundy),var(--gold),transparent);background-size:200% 100%}
html[data-loading=true]::before{opacity:1;animation:loadingFlow 1.1s linear infinite}
dialog[aria-busy=true] #pageStatus::before{content:'';display:inline-block;width:11px;height:11px;margin-right:7px;border:2px solid var(--line);border-top-color:var(--burgundy);border-radius:50%;vertical-align:middle;animation:readingLoad .8s linear infinite}
@keyframes readingLoad{to{transform:rotate(360deg)}}
@keyframes loadingFlow{from{background-position:200% 0}to{background-position:0 0}}
@media(prefers-reduced-motion:reduce){html[data-loading=true]::before{animation:none;background:var(--burgundy)}}
.event-dates{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:baseline;color:var(--burgundy);font-size:12px;line-height:1.6;margin-bottom:4px}
.event-dates time{white-space:nowrap;font-variant-numeric:tabular-nums}
.event-dates>span{min-width:0;overflow-wrap:break-word}
.event-source{display:block;margin-bottom:10px;line-height:1.5}
.calendar-page .event-card h3{font-size:19px;line-height:1.45;text-wrap:pretty}
.calendar-page .event-card p{margin:8px 0 0}
.events-heading h2{font-size:27px;line-height:1.3}
.hero h1{font-size:clamp(38px,4.1vw,57px);line-height:1.2}
.utility-heading h1,.terms-heading h1,.about-hero h1{font-size:clamp(34px,4.4vw,48px);line-height:1.2}
.online-presence{display:inline-flex;align-items:center;gap:6px;font:11px/1.3 Arial,sans-serif;color:#65584f;white-space:nowrap;padding:4px 0;cursor:help}
.online-presence::before{content:'';width:6px;height:6px;border-radius:50%;background:#3e7657;box-shadow:0 0 0 3px #3e76570d}
.online-presence[data-state=unavailable]::before{background:#a99b88;box-shadow:none}
header.site-header{display:grid;grid-template-columns:44px 100px minmax(0,1fr) auto;align-items:center;gap:20px;min-height:0;padding:16px 28px;max-width:1220px}
.site-header .site-brand{display:block;line-height:0;justify-self:start}
.site-header .site-brand .logo{display:block;width:94px;height:auto;mix-blend-mode:normal}
.site-header .site-nav{justify-self:end;margin:0;gap:20px;flex-wrap:wrap;justify-content:flex-end;min-width:0}
.site-header .site-nav a,.site-header .site-nav button{font-size:12px}
.site-header .online-presence{justify-self:end;max-width:150px;white-space:normal}
.night-note{padding:10px 12px;border-left:2px solid var(--gold);background:#f3ecdd;line-height:1.7;font-size:12px}

.site-header .chat-nav-link{color:var(--burgundy);font-weight:bold}
.app-tabbar{display:none}.app-install-button{background:transparent;color:var(--burgundy);border:1px solid var(--line);border-radius:7px;min-height:44px;padding:10px 12px;margin-top:22px;text-align:left;font-size:12px}
.app-install-dialog{width:min(440px,calc(100vw - 32px));height:auto;max-height:80dvh;padding:26px;border:1px solid var(--line);border-radius:14px;background:var(--ivory);color:var(--ink);margin:auto}
.app-install-dialog[open]{display:block}.app-install-dialog::backdrop{background:#35272a77}.app-install-dialog h2{font-size:25px;margin:10px 0 18px}.app-install-dialog p{font-size:14px;line-height:1.8}.app-install-dialog>button{float:right;border:0;background:none;color:var(--burgundy);min-width:44px;min-height:44px;font-size:25px}

.chat-page .chat-main{max-width:720px;padding-top:22px}
.chat-page .chat-heading h1{font-size:30px;margin:4px 0}.chat-page .chat-heading .eyebrow,.chat-page .chat-intro{display:none}
.chat-page .chat-heading{margin-bottom:16px}.chat-page .chat-window{border-radius:12px}
.chat-page .chat-join{padding:20px}.chat-page .chat-join h2{font-size:22px;margin-bottom:16px}
.chat-page .chat-rules{margin-top:15px}.chat-page .chat-privacy{margin-top:13px;padding-top:12px}
.chat-page .chat-start{font-size:10px;margin:12px 14px 0}.chat-page .chat-session{padding:9px 16px}
.chat-page .chat-session button{min-height:36px;background:none;border:0;padding:6px;color:#74614b}
.chat-page .chat-feed{max-height:430px;min-height:120px;padding:14px 16px;gap:14px}
.chat-page .chat-message-footer{justify-content:flex-end;gap:9px}.chat-page .chat-message-footer time{font-size:10px}
.chat-message.pending{opacity:.65}.chat-empty{text-align:center;font-size:13px;color:#74614b;padding:20px 15px 0;margin-bottom:0}
.chat-message-menu{position:relative}.chat-message-menu summary{list-style:none;min-width:36px;min-height:30px;display:grid;place-items:center;cursor:pointer;font-size:12px;color:#74614b}
.chat-message-menu summary::-webkit-details-marker{display:none}.chat-message-menu>div{position:absolute;right:0;bottom:100%;z-index:5;min-width:120px;background:var(--ivory);border:1px solid var(--line);border-radius:8px;box-shadow:0 5px 18px #35272a18;padding:4px;display:grid}
.chat-page .chat-message-menu button{min-height:40px;text-align:left;font-size:12px;padding:8px}
.chat-page .chat-compose{position:relative;padding:11px 13px;background:var(--ivory)}
.chat-page .chat-compose>small{display:none}.chat-page .chat-send-row{gap:8px}
.chat-page #chatEmojiToggle{min-width:44px;padding:5px;background:transparent;color:var(--burgundy);font-size:26px}
.chat-emoji-picker{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;padding:8px;margin-bottom:10px;border:1px solid var(--line);border-radius:8px;background:#fffdf7}
.chat-page .chat-emoji-picker button{min-width:36px;padding:5px;background:transparent;font-size:22px}
.chat-page .chat-status{font-size:11px;line-height:1.5;padding:9px 14px;color:#74614b}
.chat-report-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:10px;font-size:11px}
@media(max-width:560px){.chat-page .chat-main{padding:16px 12px 28px}.chat-page .chat-heading h1{font-size:25px}.chat-page .chat-heading{margin-bottom:12px}.chat-page .chat-feed{max-height:360px}.chat-page .chat-join{padding:18px 15px}.chat-page .chat-message{max-width:90%}.chat-page .chat-message>p{padding:9px 12px}.chat-page .chat-rules{font-size:11px}.chat-page .chat-status{font-size:11px}.chat-page .chat-send-row input{padding:10px 11px}.chat-page #chatSend{padding-inline:12px}}
.chat-main{max-width:760px;margin:auto;padding:38px 24px 55px}
.chat-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.chat-heading h1{font-size:38px;letter-spacing:-.7px;margin:12px 0 4px}.chat-heading .eyebrow{font-size:9px}
.chat-intro{font-size:14px;color:#74614b;margin:8px 0 23px}
.chat-window{background:#fffdf7;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.chat-window [hidden],.chat-main [hidden]{display:none!important}
.chat-join{padding:25px}.chat-join h2{font-size:27px;margin:0 0 20px}.chat-join>label{display:block;font-size:13px;color:var(--burgundy);margin-bottom:8px}
.chat-join-row,.chat-send-row{display:flex;align-items:center;gap:9px}
.chat-main input:not([type=checkbox]){flex:1;min-width:0;width:100%;background:var(--ivory);border:1px solid #d9cbb7;border-radius:7px;padding:11px 12px;color:var(--ink);font-size:16px}
.chat-main button{min-height:44px;background:var(--burgundy);border:0;border-radius:7px;padding:10px 15px;color:#fff9ed;font-size:13px}
.chat-rules,.chat-privacy{font-size:12px;line-height:1.8;color:#74614b}.chat-rules{margin:20px 0 13px}.chat-privacy{border-top:1px solid var(--line);padding-top:15px;margin-top:18px}
.chat-join>.chat-agree{display:flex;align-items:center;gap:10px;font-size:12px;min-height:44px;margin:0}.chat-agree input{width:18px;height:18px;accent-color:var(--burgundy)}
.chat-session{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 20px;border-bottom:1px solid var(--line);color:var(--burgundy);font-size:12px}.chat-session button{background:transparent;border:1px solid var(--line);color:var(--burgundy)}
.chat-start{text-align:center;margin:15px 15px 5px;font-size:11px;color:#74614b}
.chat-feed{min-height:160px;max-height:430px;overflow-y:auto;padding:18px 20px 25px;display:flex;flex-direction:column;gap:17px;overscroll-behavior:contain}
.chat-message{max-width:88%;align-self:flex-start;min-width:90px}.chat-message>small{display:block;color:#74614b;font-size:11px;margin:0 4px 4px}.chat-message>p{margin:0;background:#f6f0e5;border:1px solid var(--line);border-radius:14px 14px 14px 3px;padding:10px 14px;font-size:14px;line-height:1.7;overflow-wrap:anywhere;white-space:pre-wrap}
.chat-message.mine{align-self:flex-end}.chat-message.mine>p{background:#efe3d0;border-color:#dfcdae;border-radius:14px 14px 3px 14px}
.chat-message-footer{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:10px;color:#74614b}.chat-message-footer button{background:transparent;color:var(--burgundy);min-height:36px;font-size:10px;padding:5px 7px}
.chat-compose{padding:14px 18px;background:#f4edde;border-top:1px solid var(--line)}.chat-compose>small{display:block;font-size:10px;color:#74614b;margin-top:10px}
.chat-emojis{display:flex;gap:4px;margin-bottom:8px}.chat-emojis button{background:transparent;color:var(--ink);font-size:21px;min-width:40px;padding:5px}
.chat-status{font-size:12px;padding:13px 20px;margin:0;line-height:1.7;color:var(--burgundy);border-top:1px solid var(--line)}
.chat-admin{margin-top:25px;padding:15px;border:1px solid var(--line);border-radius:8px;font-size:12px}.chat-admin summary{cursor:pointer;color:var(--burgundy)}.chat-admin>div{display:flex;gap:10px;flex-wrap:wrap}.chat-admin p{line-height:1.8}.chat-owner-link{display:block;margin-top:22px;font-size:11px;color:#74614b;text-decoration:underline;text-underline-offset:3px}
@media(max-width:560px){.chat-main{padding:25px 16px 40px}.chat-heading h1{font-size:29px}.chat-heading .eyebrow{font-size:8px;letter-spacing:1.2px}.chat-join{padding:20px 17px}.chat-join h2{font-size:23px}.chat-join-row,.chat-send-row{gap:7px}.chat-main button{padding-inline:12px}.chat-feed{padding-inline:15px;max-height:370px}.chat-compose{padding-inline:14px}.chat-message>p{font-size:13px}.chat-rules,.chat-privacy{font-size:11px}.chat-session{padding-inline:15px}}

/* Arabic UI dates use native Arabic shaping and never strand the year suffix. */
.today-dates{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
.today-hijri p,#selectedHijriArabic,.calendar-month-heading>p[lang=ar]{font-family:'Geeza Pro','Noto Naskh Arabic',Tahoma,Arial,sans-serif;font-weight:400;letter-spacing:0;word-spacing:normal;line-height:1.7}
.today-hijri p{white-space:nowrap;overflow-wrap:normal;font-size:23px;direction:rtl;unicode-bidi:isolate}
.today-hijri>span{line-height:1.6;text-wrap:pretty}
.library-featured{max-width:1060px;margin:24px auto 0;padding:0 24px;text-align:center}
.parts-intro>img{display:none}.parts-intro{padding:20px 0 14px}
.parts-intro h2{font-size:25px;line-height:1.35}
.part-choices{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:12px;padding:12px 12px 20px;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
.part-choice{flex:0 0 68%;max-width:300px;scroll-snap-align:center;flex-direction:column;text-align:center;padding:22px 16px;gap:16px;min-width:0}
.part-choice img{width:140px;max-width:100%;height:auto;box-shadow:5px 8px 14px #35272a25}
.part-choice>span:first-of-type{flex:0}.part-choice strong{font-size:20px}.part-choice small{margin-top:6px}
.parts-slider-controls{display:flex;justify-content:center;align-items:center;gap:18px;padding-top:6px;color:#74614b;font-size:11px}
.parts-slider-controls button{min-width:44px;min-height:44px;background:transparent;color:var(--burgundy);border:1px solid var(--line);border-radius:50%;font-size:18px}
@media(max-width:700px){
 .today-dates{grid-template-columns:minmax(0,1fr);gap:16px}
 .today-dates p{margin-top:5px}.today-hijri{text-align:right}
 .today-hijri p{font-size:21px;line-height:1.7}
 .today-hijri>span{font-size:11px;line-height:1.65}
 .library-featured{padding:0 16px;margin-top:12px}
 .library-featured .book-carousel{margin-inline:0}
 .part-choice{flex-basis:78%;padding:18px 14px}.part-choice img{width:128px}
 .parts-intro h2{font-size:20px}
}
@media(max-width:700px){
 header.site-header{grid-template-columns:44px minmax(0,1fr) auto;gap:8px 14px;padding:12px 18px}
 .site-header .site-brand{grid-column:2;grid-row:1}.site-header .menu-toggle{grid-column:1;grid-row:1}
 .site-header .site-brand .logo{width:76px}
 .site-header .site-nav{grid-column:1/-1;justify-self:stretch;justify-content:center;column-gap:16px;row-gap:0;border-top:1px solid var(--line);padding-top:4px}
 .site-header .site-nav a,.site-header .site-nav button{font-size:11px;min-height:36px;display:inline-flex;align-items:center;padding:0}
 .site-header .online-presence{grid-column:3;grid-row:1;font-size:10px;max-width:110px}
 .calendar-page .calendar-controls .calendar-month-heading h2{font-size:18px;line-height:1.4}
 .calendar-page .calendar-month-heading>p{font-size:18px;line-height:1.5}
 .calendar-page .selected-date-panel{padding:16px 0}
 .calendar-page .selected-date-panel h2{font-size:17px;line-height:1.6}
 .calendar-page .calendar-controls{gap:8px;margin-bottom:18px}
 .calendar-page .calendar-jump{margin-bottom:18px;padding-bottom:16px}
 .calendar-page .event-section{padding-top:24px}
}
@media(max-width:560px){
 .hero h1{font-size:clamp(27px,7.1vw,32px);line-height:1.23;letter-spacing:-.5px;margin:15px 0}
 .hero-copy>p{font-size:12px;line-height:1.7}
 .about-hero h1,.terms-heading h1,.utility-heading h1{font-size:clamp(25px,6.5vw,30px);letter-spacing:-.4px;line-height:1.25}
 .library-page #library .section-heading h1{font-size:28px}
 .about-story h2,.notice-panel h2,.contact-topics h2,.terms-main h2{font-size:22px;line-height:1.4}
 .about-story p,.terms-main section p,.notice-panel p,.contact-topics p{font-size:14px;line-height:1.8}
 .about-hero>p,.terms-heading .terms-lead,.utility-heading>p{font-size:14px;line-height:1.75}
 .featured-caption h3{font-size:17px;line-height:1.4}.featured-caption{min-height:100px}
 .today-dates p{font-size:15px;line-height:1.5}.today-hijri p{font-size:19px}
 .prayer-time strong{font-size:18px}.prayer-time small{font-size:10px}
 .calendar-page .event-card{padding:16px 14px;margin-top:12px}
 .calendar-page .event-card h3{font-size:16px;line-height:1.5}
 .event-dates{display:grid;grid-template-columns:1fr;gap:2px;font-size:11px}
 .event-dates>span{font-size:11px}.event-source{font-size:10px;margin:5px 0 9px}
 .events-heading h2{font-size:22px}.calendar-controls .calendar-month-heading h2{font-size:20px}
 .calendar-month-heading>p{font-size:18px}.selected-date-panel h2{font-size:18px;line-height:1.5}
 .selected-date-panel>p[lang=ar]{font-size:20px}
 .parts-intro h2{font-size:19px}.part-choice strong{font-size:18px}
 .online-presence{font-size:10px;gap:5px}
 header{row-gap:4px}.home-page header{row-gap:4px}
}

/* Shared mobile layout: one shell, a steady scale, and consistent safe areas. */
@media(max-width:700px){
 body{padding-bottom:calc(70px + env(safe-area-inset-bottom,0px));font-size:14px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
 header.site-header{position:sticky;top:0;z-index:35;background:var(--ivory);padding:calc(10px + env(safe-area-inset-top,0px)) 18px 10px;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;min-height:80px}
 .site-header .site-nav{display:none}.site-header .site-brand .logo{width:72px}.site-header .online-presence{font-size:10px}
 .app-tabbar{position:fixed;z-index:40;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:0;padding:7px max(8px,env(safe-area-inset-right,0px)) calc(7px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));background:var(--ivory);border-top:1px solid var(--line);box-shadow:0 -4px 18px #35272a06}
 .app-tabbar a,.app-tabbar button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:48px;min-width:0;padding:4px;border:0;border-radius:8px;background:transparent;color:#786956;font:10px/1.2 Arial,sans-serif}
 .app-tabbar svg{width:21px;height:21px;flex:none}.app-tabbar [aria-current=page]{color:var(--burgundy);background:#efe5d5}
 .utility-main,.terms-main{padding:26px 18px 38px}.utility-heading,.terms-heading{margin-bottom:22px}
 .utility-heading h1,.terms-heading h1,.about-hero h1{font-size:28px;line-height:1.25;letter-spacing:-.5px}
 .utility-heading>p,.terms-heading .terms-lead{font-size:14px;line-height:1.75}
 .about-hero{padding:28px 20px}.about-story{padding-inline:20px}.about-story>section{padding-block:28px}
 .about-story h2,.terms-main h2,.contact-topics h2{font-size:22px;line-height:1.4}
 .hero{padding-top:24px}.hero h1{font-size:30px;line-height:1.22}
 .library-page #library{padding-top:26px}.library-page #library .section-heading h1{font-size:28px}
 .calendar-page .utility-main{padding-top:26px}.calendar-panel{padding:15px 10px}
 .today-panel{padding:18px 16px}.home-page .today-panel{margin-top:18px}
 .chat-page .chat-feed{max-height:clamp(140px,35dvh,360px)}
 footer{padding:22px 18px}.footer-nav{gap:12px 18px}
}
@media(display-mode:standalone){html,body{background:var(--ivory)}header.site-header{background:var(--ivory)}}

/* Compact spacing baseline: keep content grouped without reducing tap targets. */
.utility-main,.terms-main{padding-top:36px;padding-bottom:44px}
.utility-heading{margin-bottom:24px}.utility-heading h1{margin:12px 0;font-size:clamp(30px,4vw,44px)}
.hero{padding-top:38px;padding-bottom:24px}.hero-note{margin:16px 0 24px}
.today-panel{padding:20px 24px}.today-dates{padding:12px 0 14px;gap:16px}
.today-location{padding-top:12px}.today-details{margin-top:10px}
.calendar-view-switch{margin:18px 0 14px}.calendar-panel{padding:18px}
.calendar-jump{padding-bottom:14px;margin-bottom:16px}
.calendar-page .calendar-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:10px;margin-bottom:16px}
.calendar-page .calendar-controls #calendarToday{grid-column:2;justify-self:center;margin:0;min-height:44px}
.calendar-month-heading h2{font-size:25px;line-height:1.3}.calendar-month-heading>p{margin:4px 0;line-height:1.5}
.calendar-page .calendar-days button{min-height:78px}
.calendar-legend{gap:8px 16px;margin-top:12px;align-items:center}.calendar-legend>span{display:inline-flex;align-items:center;gap:5px}
.legend-today,.legend-selected{display:inline-block;width:11px;height:11px;border-radius:3px}
.legend-today{border:2px solid var(--gold)}.legend-selected{background:var(--burgundy)}
.calendar-days button[aria-current=date]{outline:2px solid var(--gold);outline-offset:-2px}
.calendar-page .selected-date-panel{padding:16px 0}.selected-date-panel h2{margin:8px 0;font-size:22px;line-height:1.4}
.selected-date-panel>p[lang=ar]{margin:6px 0;font-size:22px;line-height:1.5}
.calendar-page .event-section{padding-top:20px}.events-heading h2{margin:8px 0;font-size:25px;line-height:1.35}
.calendar-page .event-card{padding:18px;margin-top:12px}.event-card p:last-child{margin-bottom:0}
.calendar-note{margin-top:14px}.calendar-selection{margin:12px 0}
footer{padding-block:28px}
@media(max-width:700px){
 .utility-main,.terms-main,.calendar-page .utility-main{padding:20px 18px 28px}
 .utility-heading{margin-bottom:18px}.utility-heading h1{font-size:28px;margin:8px 0}.utility-heading>p{margin:8px 0;line-height:1.6}
 .hero{padding:22px 18px 18px}.hero-note{margin-bottom:16px}
 .today-panel{padding:16px}.today-dates{gap:12px;padding:10px 0 12px}
 .calendar-panel{padding:14px 10px}.calendar-jump{gap:8px;padding-bottom:12px;margin-bottom:12px}
 .calendar-jump label:first-child{flex:1;min-width:0}.calendar-jump select{width:100%}
 .calendar-page .calendar-controls{gap:6px;margin-bottom:12px}
 .calendar-controls .calendar-month-heading h2{font-size:20px}.calendar-month-heading>p{font-size:20px}
 .calendar-page .calendar-days button{min-height:66px}.calendar-days button>strong{font-size:24px}
 .calendar-legend{font-size:10px;gap:8px 12px}.calendar-legend>span:last-child{flex-basis:100%}
 .calendar-page .selected-date-panel{padding:14px 0}.selected-date-panel h2{font-size:19px}
 .selected-date-panel>p[lang=ar]{font-size:21px}.events-heading{gap:8px}
 .events-heading h2{font-size:22px}.calendar-page .event-section{padding-top:16px}
 .calendar-page .event-card{padding:14px;margin-top:10px}
 .prayer-times{margin:10px 0;gap:7px}.prayer-time{padding:11px 5px}
 .about-story>section{padding-block:22px}.contact-topics{margin:22px 0;gap:16px}
 footer{padding-block:20px}
}

.calendar-grid-note{font-size:11px;color:#726154;line-height:1.6;margin:8px 0 0}

/* Homepage daily summary: compact information hierarchy, optional tools below. */
.daily-summary{max-width:1060px;padding:14px 22px;margin-top:18px;border-radius:14px;background:#fffdf7;box-shadow:none}
.daily-summary .today-top{gap:8px}.daily-summary .today-top .eyebrow{font-size:9px;letter-spacing:1.8px}
.daily-summary #refreshToday{min-width:44px;min-height:44px;font-size:21px;padding:0;background:none;border:0}
.daily-summary .today-dates{padding:2px 0 12px;gap:12px 24px;align-items:start}
.daily-summary .today-dates p{font-size:19px;line-height:1.4;margin:4px 0 0}
.daily-summary .today-hijri p{font-size:23px}.daily-summary .today-hijri>span{font-size:11px;line-height:1.4;margin-top:3px}
.daily-summary .today-dates small{font-size:9px;letter-spacing:1px}
.daily-summary .today-location{padding:4px 0;border-top:1px solid var(--line);gap:8px;flex-wrap:nowrap}
.daily-summary .today-location>div{flex:1;min-width:0;margin:0}
.daily-summary .today-location strong{font-size:12px;line-height:1.5;font-weight:normal}
.daily-summary #chooseCity{flex:0 0 auto;min-height:44px;padding:0 8px;border:0;background:transparent;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.daily-summary .prayer-times{gap:0;margin:4px 0 8px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#f3ecdd}
.daily-summary .prayer-time{padding:10px 6px;background:transparent;border-radius:0}
.daily-summary .prayer-time+.prayer-time{border-left:1px solid var(--line)}
.daily-summary .prayer-time small{font-size:11px}.daily-summary .prayer-time strong{font-size:21px;white-space:nowrap;margin-top:3px}
.daily-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:11px;color:var(--burgundy)}
.daily-actions>a,.daily-details>summary{display:flex;align-items:center;min-height:44px;cursor:pointer}
.daily-details{display:contents}.daily-details>summary{list-style:none;margin-left:auto;gap:6px}.daily-details>summary:after{content:'⌄'}.daily-details[open]>summary:after{content:'⌃'}.daily-details>summary::-webkit-details-marker{display:none}
.daily-details-body{flex:1 0 100%;min-width:0;border-top:1px solid var(--line);padding:12px 0 4px;font-size:12px;color:#726154;line-height:1.7}
.daily-details-body p{margin:10px 0}.daily-details-body a{text-decoration:underline}.daily-location-tools{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.daily-location-tools button{min-height:44px;border:1px solid var(--line);border-radius:6px;padding:8px 12px;background:var(--ivory);color:var(--burgundy);font-size:12px}
@media(max-width:700px){
 .home-page .daily-summary{margin:12px 18px 0;padding:10px 14px 6px}
 .daily-summary .today-dates{grid-template-columns:minmax(0,1fr);gap:8px;padding-bottom:10px}
 .daily-summary .today-dates>div:first-child{display:flex;flex-wrap:wrap;align-items:baseline;gap:3px 10px}
 .daily-summary .today-dates>div:first-child p{margin:0;font-size:14px}
 .daily-summary .today-hijri{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:2px 8px}
 .daily-summary .today-hijri>small{text-align:left}.daily-summary .today-hijri>p{margin:0;font-size:20px;line-height:1.5}
 .daily-summary .today-hijri>span{grid-column:1/-1;font-size:10px;margin:0;text-align:right}
 .daily-summary .prayer-time{padding:9px 4px}.daily-summary .prayer-time strong{font-size:19px}
 .daily-summary .today-location strong{font-size:12px}.daily-summary .today-top .eyebrow{font-size:9px}
 .daily-summary .daily-actions{font-size:11px}.daily-summary .city-picker input,.daily-summary .city-picker select{font-size:16px}
}
@media(max-width:359px){.daily-summary .today-hijri{grid-template-columns:1fr}.daily-summary .today-hijri>p{font-size:19px}.daily-summary .prayer-time strong{font-size:17px}}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.daily-details:not([open])>.daily-details-body{display:none}

/* Immediate native-style touch acknowledgement; no delay before actions. */
@media (pointer:coarse),(max-width:700px){
 :where(button,a[href],summary,[role="button"],label:has(input[type="checkbox"])){ -webkit-tap-highlight-color:rgba(110,20,39,.14)}
 :where(button,a[href],summary,[role="button"]){transition:filter 120ms ease-out,opacity 120ms ease-out,scale 120ms ease-out}
 :where(button,a[href],summary,[role="button"]):active:not(:disabled):not([aria-disabled="true"]){filter:brightness(.82);opacity:.82;transition-duration:0s}
 :where(button,[role="button"]):active:not(:disabled):not([aria-disabled="true"]):not(.featured){scale:.97}
 .app-tabbar :is(a,button):active,.drawer-nav :is(a,summary):active,.daily-details>summary:active{background:#eadfcf;color:var(--burgundy)}
 :where(button,a[href],[role="button"])[aria-disabled="true"],button:disabled{cursor:default}
}
@media(prefers-reduced-motion:reduce){
 :where(button,a[href],summary,[role="button"]){transition:none!important}
 :where(button,[role="button"]):active:not(:disabled):not([aria-disabled="true"]):not(.featured){scale:none}
}

/* Calendar: date browsing first, advanced controls and timings on demand. */
.calendar-page .utility-heading{margin-bottom:14px}.calendar-page .utility-heading>.eyebrow{display:none}
.calendar-page .utility-heading h1{font-size:30px;margin:0}
.calendar-page .daily-summary{margin:0 0 14px;padding:10px 18px 4px}
.calendar-page .daily-summary .daily-actions>a{display:none}
.calendar-page .calendar-view-switch{margin:12px 0;gap:7px;align-items:center}
.calendar-page .calendar-view-switch button{min-height:44px;padding:7px 16px;font-size:12px}
.calendar-page #calendarToday{margin-left:auto;white-space:nowrap}
.calendar-jump-disclosure{border-bottom:1px solid var(--line);margin-bottom:12px}
.calendar-jump-disclosure>summary,.selected-time-details>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;font-size:12px;color:var(--burgundy);list-style:none}
.calendar-jump-disclosure>summary:after,.selected-time-details>summary:after{content:'+';margin-left:auto}
.calendar-jump-disclosure[open]>summary:after,.selected-time-details[open]>summary:after{content:'−'}
.calendar-jump-disclosure>summary::-webkit-details-marker,.selected-time-details>summary::-webkit-details-marker{display:none}
.calendar-jump-disclosure .calendar-jump{border:0;margin:0;padding:8px 0 14px}
.calendar-page .calendar-controls{margin-bottom:12px}
.calendar-page .calendar-controls h2{font-size:23px}.calendar-page .calendar-month-heading>p{font-size:21px;margin:2px 0}
.calendar-page .selected-date-panel{padding:12px 0 4px}.calendar-page .selected-date-panel h2{margin:5px 0;font-size:20px}
.calendar-page .selected-date-panel>p[lang=ar]{margin:4px 0;font-size:21px}
.calendar-page .calendar-selection{font-size:11px;margin:8px 0;line-height:1.5}
.selected-time-details{margin-top:5px}.selected-time-details[open]{padding-bottom:10px}
.calendar-page .event-section{padding-top:12px}.calendar-page .event-section>.eyebrow{display:none}
.calendar-page .events-heading{gap:8px;flex-direction:row;align-items:center;flex-wrap:wrap}
.calendar-page .events-heading h2{font-size:23px;margin:6px 0}.calendar-page .event-card{margin-top:10px}
@media(max-width:700px){
 .calendar-page .utility-main{padding:16px 14px 24px}.calendar-page .utility-heading h1{font-size:25px}
 .calendar-page .daily-summary{padding:8px 12px 2px;margin:0 0 12px}
 .calendar-page .calendar-panel{padding:8px 9px 10px}.calendar-page .calendar-days button{min-height:59px;gap:2px}
 .calendar-page .calendar-controls h2{font-size:18px}.calendar-page .calendar-month-heading>p{font-size:19px}
 .calendar-page .calendar-weekdays{margin-bottom:6px}.calendar-page .calendar-legend{margin-top:9px}
 .calendar-page .calendar-view-switch button{padding:6px 11px;font-size:11px}
 .calendar-page .selected-date-panel h2{font-size:17px;line-height:1.5}.calendar-page .selected-date-panel>p[lang=ar]{font-size:20px}
 .calendar-page .events-heading h2{font-size:20px}.calendar-page .calendar-grid-note{font-size:10px;line-height:1.5}
}

/* Keep location tools visible; compact spacing rather than hidden controls. */
.daily-summary .today-location{flex-wrap:wrap;padding:8px 0 2px;gap:6px 10px}
.daily-summary .today-location>div{flex:1 1 220px}
.daily-summary .today-location strong{font-weight:600}
.daily-summary #useMyLocation,.daily-summary #chooseCity{flex:0 0 auto;min-height:44px;border:1px solid var(--line);border-radius:6px;background:var(--ivory);padding:8px 12px;text-decoration:none;font-size:12px}
.daily-summary .today-status{margin:6px 0 8px;font-size:11px;line-height:1.5}
.daily-summary .city-picker{padding:10px 0 4px}
@media(max-width:700px){
 .daily-summary .today-location>div{flex-basis:100%}
 .daily-summary #useMyLocation,.daily-summary #chooseCity{flex:1 1 0;padding:7px 8px;font-size:11px}
 .daily-summary .today-location small{font-size:10px;margin-top:1px}
 .daily-summary .today-status{font-size:10px;margin:6px 0}
}

/* Desktop home: introduction and daily essentials left, sliding shelf right. */
@media(min-width:1050px){
 .home-page main{max-width:1280px;margin:0 auto;padding:28px 32px 36px;display:grid;grid-template-columns:minmax(340px,.85fr) minmax(0,1.3fr);grid-template-rows:auto auto;gap:14px 36px;align-items:start}
 .home-page main>.hero{display:contents}
 .home-page .hero-copy{grid-column:1;grid-row:2;padding:0;text-align:left;min-width:0}
 .home-page .hero-copy h1{font-size:36px;line-height:1.18;letter-spacing:-.8px;margin:12px 0}
 .home-page .hero-copy>p{font-size:14px;margin:8px 0}
 .home-page .hero-copy .primary{padding:10px 18px;margin-top:5px;font-size:12px;min-height:44px;align-items:center}
 .home-page .hero-copy .hero-note{font-size:9px;line-height:1.6;margin:10px 0 0;max-width:none}
 .home-page main>.daily-summary{grid-column:1;grid-row:1;width:100%;max-width:none;margin:0;padding:12px 18px 6px;min-width:0}
 .home-page .daily-summary .today-dates{grid-template-columns:1fr;gap:9px;padding-bottom:10px}
 .home-page .daily-summary .today-dates>div:first-child{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
 .home-page .daily-summary #gregorianToday{font-size:15px;margin:0}
 .home-page .daily-summary .today-hijri p{font-size:22px;margin:2px 0}
 .home-page .daily-summary .today-location>div{flex-basis:100%}
 .home-page .daily-summary #useMyLocation,.home-page .daily-summary #chooseCity{flex:1}
 .home-page .hero>.book-carousel{grid-column:2;grid-row:1/span 2;align-self:start;min-width:0;width:100%;margin:0;padding:0;overflow:hidden;text-align:center;background:radial-gradient(ellipse at 50% 50%,#e9ddc666,transparent 70%)}
 .home-page .hero .book-carousel .shelf{--book-gap:158px;height:325px}
 .home-page .hero .book-carousel .featured,.home-page .hero .book-carousel .featured:nth-child(n){width:184px;height:270px}
 .home-page .hero .carousel-arch{height:345px;width:96%}
 .home-page .hero .carousel-controls{margin-top:18px}
 .home-page .hero .featured-caption{min-height:90px;padding-bottom:10px}
}

/* Quieter supporting panel; the shelf remains the primary visual feature. */
.welcome-desktop{display:none}
@media(min-width:1050px){
 .welcome-desktop{display:inline}.welcome-mobile{display:none}
 .home-page main{column-gap:44px;row-gap:20px}
 .home-page main>.daily-summary{background:#fcf9f2;border-color:#e9e1d3;border-radius:10px;box-shadow:none;padding:10px 16px 4px}
 .home-page .daily-summary .today-top .eyebrow{font-size:9px;letter-spacing:1.3px;color:#75613d}
 .home-page .daily-summary .today-top #refreshToday{font-size:18px;color:#796a5a}
 .home-page .daily-summary .today-dates small{font-size:9px;letter-spacing:.8px}
 .home-page .daily-summary .today-location strong{font-weight:500}
 .home-page .daily-summary #useMyLocation,.home-page .daily-summary #chooseCity{background:transparent;border-color:#e0d7c7;font-size:11px}
 .home-page .daily-summary .prayer-times{background:transparent;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;margin-top:9px}
 .home-page .daily-summary .prayer-time{padding:10px 4px}
 .home-page .daily-summary .prayer-time strong{font-size:20px}
 .home-page .daily-summary .today-status{font-size:10px;color:#726154}
 .home-page .hero-copy{padding:0 4px}
 .home-page .hero-copy>.eyebrow{display:none}
 .home-page .hero-copy h1{font-size:30px;line-height:1.2;letter-spacing:-.4px;margin:0 0 10px}
 .home-page .hero-copy>p{font-size:13px;line-height:1.6;margin:0 0 10px}
 .home-page .hero-copy .hero-note{font-size:10px;margin-top:10px;color:#726154}
 .home-page .hero>.book-carousel{align-self:start;padding-top:0}
}

/* Small-screen review: retain primary slider controls without crowding. */
.shelf-count{display:none}
@media(max-width:700px){
 .carousel-controls{max-width:100%;padding-inline:4px}
 .search{gap:10px}.search kbd{display:none}
 .library-page .sortbar{align-items:center;gap:8px 12px}
 .readerbar button,.readertools button{min-height:44px}
 .readertools input{font-size:16px;min-height:40px}
 .chat-page .chat-send-row input{min-width:0}
 .city-results button{overflow-wrap:anywhere}
}
@media(max-width:400px){
 .carousel-controls .shelf-dots{display:none}
 .carousel-controls .shelf-count{display:block;min-width:50px;font-size:12px;color:#726154;font-variant-numeric:tabular-nums}
 .carousel-controls{gap:12px}
 .carousel-controls #shelfPause{min-width:44px}
}

/* Header grid reserves exactly 44px for the menu at every breakpoint. */
.site-header .menu-toggle{display:grid;place-items:center;gap:0;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;line-height:1;justify-self:start;align-self:center;border:1px solid var(--line);border-radius:8px}
.site-header .menu-toggle svg{display:block;width:20px;height:20px;pointer-events:none}

.cms-preview-bar{padding:10px 18px;background:#2d4e45;color:white;text-align:center;font-size:12px}.cms-preview-bar a{margin-left:14px;text-decoration:underline}.cms-static article{max-width:760px}.cms-static article h2{font-size:24px;margin:24px 0 12px}.cms-static article p{font-size:15px;line-height:1.9}.cms-static a{color:var(--burgundy)}

.owner-studio-link{display:block;font-size:12px;color:var(--burgundy);padding:12px;margin-top:12px;border-top:1px solid var(--line)}
.analytics-privacy{max-width:800px;margin:20px auto;padding:20px;line-height:1.6}.analytics-privacy h2{font-size:clamp(22px,4vw,30px)}.analytics-privacy p{font-size:14px}.analytics-privacy button{min-height:44px}
/* One shared public header. Library bookmark control keeps its local behavior. */
.site-header .site-nav :is(a,button){padding:0;line-height:1.6}
@media(max-width:700px){.app-tabbar{grid-template-columns:repeat(6,minmax(0,1fr))}.app-tabbar :is(a,button){padding-inline:1px}}

.parts-slider-controls[hidden]{display:none}
