/* A quiet paper surface fades over the sky without repainting the atmosphere. */
.atmosphere::after { content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none; background: #f3efe6; background-image: radial-gradient(ellipse at 15% 0%, #fffcf5 0, transparent 65%), repeating-linear-gradient(0deg, #8e795704 0 1px, transparent 1px 4px); opacity: 0; transition: opacity 280ms cubic-bezier(.22,1,.36,1); }
html[data-page="quran"] { color-scheme: light; --ink: #292e28; --muted: #686b5e; --line: #3b453425; }
html[data-page="quran"] .atmosphere::after { opacity: 1; }
html[data-page="quran"] .app { color: #292e28; }
html[data-page="quran"] .wordmark img { filter: brightness(0); opacity: .75; }
html[data-page="quran"] .island-shell { color: #384033; border-color: #444e3222; background: #f7f4eced; box-shadow: 0 3px 15px #54472909, inset 0 1px #fff9; }
html[data-page="quran"] .island-shell :is(#headerDate,.prayer-place,.island-panel-heading,.island-panel-heading button,.island-chevron svg,.island-prayer-item span,.island-source) { color: #646958; }
html[data-page="quran"] .island-shell :is(#nextPrayer,.island-prayer-item strong,.island-status) { color: #303a2b; }
html[data-page="quran"] .island-prayer-item { background: #494f3608; border-color: #424e321c; }
html[data-page="quran"] .island-prayer-item.next { background: #e0e4d3; }
html[data-page="quran"] :is(.island-retry,.outline-button) { color: #424b38; background: transparent; border-color: #4c543639; }
html[data-page="quran"] .island-divider { background: #4c543625; }
html[data-page="quran"] .bottom-nav { background: #f9f6eedd; border-color: #5b63402d; box-shadow: inset 0 1px #fff, 0 5px 24px #584c2310; backdrop-filter: blur(18px); }
html[data-page="quran"] .bottom-nav a { color: #6b705f; }
html[data-page="quran"] .bottom-nav a[aria-current="page"] { color: #35412e; background: #4b603517; box-shadow: none; }
html[data-page="quran"] .nav-count { color: #fffaf0; background: #687554; }
.quran-page { padding-top: 10px; }
.quran-page .page-heading { padding: 4px 0 25px; border-bottom: 1px solid #4d513433; margin-bottom: 16px; }
.quran-page .page-heading .eyebrow { display: block; color: #73745f; font-size: 10px; letter-spacing: .18em; margin-bottom: 16px; }
.quran-page .page-heading h1 { color: #2d3529; font-size: clamp(37px,10vw,49px); line-height: 1.06; letter-spacing: -1.4px; margin: 0 0 13px; font-weight: 400; }
.quran-page .page-heading p { color: #737364; font-size: 12px; line-height: 1.7; }
.quran-page .search-box { min-height: 48px; padding: 0; border: 0; border-bottom: 1px solid #4d513426; border-radius: 0; background: transparent; color: #657054; margin: 0 0 18px; gap: 10px; }
.quran-page .search-box svg { width: 18px; height: 18px; }
.quran-page .search-box input { color: #30382b; font-size: 16px; padding: 12px 0; }
.quran-page .search-box input::placeholder { color: #777968; font-size: 13px; }
.quran-surah-label { color: #737664; font-size: 10px; letter-spacing: .14em; }
.quran-surah { border: 0; border-bottom: 1px solid #4d513426; border-radius: 0; padding-left: 0; background-color: transparent; color: #3b4532; font-size: 15px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235c654e' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.quran-surah option { background: #f3efe6; }
.quran-topics { margin: 10px 0 12px; gap: 16px; padding-bottom: 0; }
.quran-chip { min-height: 44px; border: 0; border-bottom: 2px solid transparent; padding: 0 1px; border-radius: 0; background: none; color: #777865; font-size: 11px; }
.quran-chip[aria-pressed="true"] { background: none; color: #3f5034; border-bottom-color: #63764d; }
.quran-result-head { padding: 10px 0 15px; border-bottom: 1px solid #4d513440; color: #737462; font-size: 10px; align-items: baseline; }
#quranSource { color: #737462; }
.quran-list { gap: 0; }
.quran-card { background: none; border: 0; border-bottom: 1px solid #4d513425; border-radius: 0; overflow: visible; }
.quran-card .entry-open { padding: 25px 0 28px; gap: 16px; border-radius: 0; }
.quran-card .entry-title { color: #697353; font-size: 11px; letter-spacing: .035em; font-weight: 500; }
.quran-card .entry-time { display: none; }
.quran-arabic { color: #656c56; font-size: 23px; line-height: 1.95; width: 100%; }
.quran-card .entry-preview { color: #30372b; font-size: 25px; line-height: 1.48; letter-spacing: -.25px; display: block; overflow: visible; -webkit-line-clamp: unset; }
.quran-card .entry-topic { color: #777965; font-size: 10px; line-height: 1.6; }
.surah-opening { padding: 30px 0 20px; color: #697353; }
.surah-opening p { color: #4d583f; }
.quran-more { border-radius: 0; min-height: 48px; margin-top: 22px; }
.quran-page .privacy-note { display: block; color: #797865; font-size: 11px; padding: 20px 0; }
.quran-page .privacy-note a { color: #53633d; }
.quran-page .empty-state { background: none; border: 0; color: #30372b; }
.quran-page .empty-state p { color: #737462; }
html[data-page="quran"] dialog { color: #30372b; background: #f6f2e9; border-color: #4d513433; box-shadow: 0 -15px 60px #262e2120; }
html[data-page="quran"] dialog::backdrop { background: #28301e66; }
html[data-page="quran"] .sheet-header { background: #f6f2e9; }
html[data-page="quran"] .sheet-header::before { background: #6b73554d; }
html[data-page="quran"] .icon-button { background: #65734c0a; border-color: #65734c30; }
html[data-page="quran"] :is(.sheet-intro,.quran-detail-source) { color: #747461; }
html[data-page="quran"] :is(.quran-detail-arabic,.quran-detail-translation) { color: #30372b; }
html[data-page="quran"] .verse-divider img { filter: brightness(0); opacity: .4; }
html[data-page="quran"] .verse-divider span { background: #56604033; }
html[data-page="quran"] .quran-detail-actions .save-button { background: #4e613f; color: #fffaf0; }
html[data-page="quran"] .city-list button { color: #414b35; border-color: #55604430; background: transparent; }
html[data-page="quran"] .city-list button[aria-current] { background: #dfe4d3; }
html[data-page="quran"] :is(button,a,input,select):focus-visible { outline-color: #63784b; }
@media (min-width:600px) { .quran-page { padding-top: 22px; } .quran-card .entry-open { padding-block: 30px; } .quran-card .entry-preview { font-size: 27px; } }
@media (hover:hover) and (pointer:fine) { .quran-card .entry-open:hover { background: #78865b08; } html[data-page="quran"] .bottom-nav a:hover { color: #293822; } }
html.instant-theme .atmosphere::after { transition: none; }
@media (prefers-reduced-motion:reduce) { .atmosphere::after { transition: none; } }

/* Reading desk: warm paper, a soft binding edge, and ink rather than panels. */
html[data-page="quran"] .atmosphere::after { background-color:#f4eedf; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23806d49' opacity='.10' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E"),linear-gradient(90deg,#a8926520,transparent 6%,#fff8e93b 48%,transparent 94%,#a8926520); }
.quran-page .page-heading { padding-bottom:16px;margin-bottom:12px; }
.quran-page .page-heading h1 { font-size:36px; }
.quran-page .page-heading .eyebrow { font-size:9px;margin-bottom:9px; }
.quran-modes { display:flex;border-bottom:1px solid #6d70552c;margin-bottom:16px;gap:24px; }
.quran-modes button { background:none;color:#747862;min-height:46px;font-size:13px;border-bottom:2px solid transparent; }
.quran-modes button[aria-pressed="true"] { color:#34452b;border-color:#526442; }
.reading-resume { width:100%;display:flex;align-items:center;justify-content:space-between;text-align:left;padding:16px 18px;margin:0 0 12px;background:#5264420d;border:1px solid #52644224;border-radius:4px;color:#526442;font-size:9px;letter-spacing:.1em; }
.reading-resume strong { display:block;font-family:Newsreader,Georgia,serif;font-weight:400;font-size:23px;letter-spacing:0;margin-top:8px;color:#34432b; }
.surah-row { width:100%;display:flex;gap:17px;align-items:center;padding:17px 2px;background:none;border-bottom:1px solid #626a4325;text-align:left;min-height:76px; }
.surah-number { width:34px;height:34px;display:grid;place-items:center;border:1px solid #6b744436;border-radius:9px;color:#71805a;font-size:11px; }
.surah-row strong { font-family:Newsreader,Georgia,serif;font-size:24px;font-weight:400; }
.surah-row small { display:block;font-size:10px;color:#7b7e68;margin-top:5px; }
.surah-arrow { margin-left:auto;color:#7c8669;font-size:20px; }
#readerToolbar { position:sticky;top:0;z-index:3;background:#f4eedff5;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0;border-bottom:1px solid #626a4330; }
#readerToolbar button,#readerToolbar select { background:none;color:#526442;min-height:44px;font-size:11px; }
#readerToolbar label { font-size:11px;white-space:nowrap; }
#readerToolbar select { border:1px solid #52644240;border-radius:4px;padding:0 6px; }
.quran-page[data-view="topics"] .quran-topics { flex-wrap:wrap;gap:6px 12px; }
.topic-explanation { font-size:11px;line-height:1.7;color:#747862;margin-top:12px; }
.profile-link { position:absolute;right:0;top:55px;width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--line);border-radius:50%;background:#ffffff08; }
html[data-page="quran"] .profile-link {color:#53633d;}
.profile-back { display:inline-block;padding:12px 0 22px;font-size:12px;color:var(--muted); }
.profile-entries { margin:24px 0; }
.profile-entries a { display:flex;align-items:center;gap:15px;padding:24px 16px;border-bottom:1px solid var(--line);background:#0a213d44; }
.profile-entries a>span:last-child { margin-left:auto; }
.profile-entries small { display:block;color:var(--muted);font-size:11px;margin-top:7px; }
.qibla-dial { position:relative;width:min(270px,80vw);aspect-ratio:1;margin:24px auto;border:1px solid #dac99b55;border-radius:50%;box-shadow:inset 0 0 0 12px #ffffff03,0 0 0 8px #ffffff02;background:repeating-conic-gradient(from 0deg,#dfcda655 0deg 1deg,transparent 1deg 10deg); }
.qibla-dial:before {content:'';position:absolute;inset:17px;border-radius:50%;background:#112a40;}
.qibla-dial>span {position:absolute;font-size:11px;color:#ddd2ac;z-index:1;}
.north {top:24px;left:48%;}.south{bottom:24px;left:48%;}.east{right:24px;top:48%;}.west{left:24px;top:48%;}
#qiblaNeedle {position:absolute;inset:47px;transition:transform 180ms linear;z-index:2;}
#qiblaNeedle:before {content:'';position:absolute;left:calc(50% - 2px);top:20px;width:4px;height:calc(50% - 20px);background:linear-gradient(#efe3b9,#b5a578);border-radius:50%;}
#qiblaNeedle span {position:absolute;top:0;left:calc(50% - 8px);color:#efe3b9;font-size:19px;}
.dial-center {position:absolute;top:calc(50% - 5px);left:calc(50% - 5px);width:10px;height:10px;border-radius:50%;background:#e7d9ae;}
.qibla-reading {text-align:center;margin:20px 0;}.qibla-reading strong {font:42px Newsreader,Georgia,serif;}.qibla-reading p {font-size:12px;line-height:1.6;color:var(--muted);margin-top:8px;}
#qiblaPage>.save-button,#qiblaPage>.outline-button {width:100%;justify-content:center;margin:6px 0;min-height:48px;}
#prayerForm {padding:18px;border:1px solid var(--line);border-radius:18px;background:#0d263cbf;}
#prayerForm label {font-size:13px;}#prayerText {width:100%;margin:14px 0;resize:vertical;min-height:105px;max-height:240px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);padding:8px 0;font-size:16px;line-height:1.6;}
#prayerForm>div {display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;}#prayerForm small {font-size:10px;color:var(--muted);}#prayerForm .save-button {padding:14px;min-height:44px;}
.community-toolbar {display:flex;align-items:center;justify-content:space-between;margin:30px 0 15px;}.community-toolbar h2 {font:25px Newsreader,Georgia,serif;}
#communityStatus {font-size:12px;line-height:1.6;color:var(--muted);}
.prayer-request {padding:22px 0;border-bottom:1px solid var(--line);}.request-meta{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);}.prayer-request p{font:23px/1.5 Newsreader,Georgia,serif;margin:18px 0;white-space:pre-wrap;overflow-wrap:anywhere;}.prayer-request>div:last-child{display:flex;justify-content:space-between;gap:8px;}.request-secondary{background:none;font-size:11px;min-width:44px;min-height:44px;color:var(--muted);}.prayer-request [aria-pressed="true"]{background:#d6d4b82b;}
@media(prefers-reduced-motion:reduce){#qiblaNeedle{transition:none;}}
#prayerForm .save-button {white-space:nowrap;font-size:12px;flex-shrink:0;}
.quran-page[data-view="read"] .quran-list { padding:0 15px;border-inline:1px solid #8f794c26;background:#fff9e520; }
.quran-page[data-view="read"] .quran-card .entry-open { padding-block:26px; }
.quran-card .entry-open { scroll-margin-top:76px; }
html[data-dayphase="day"] .reading-shade { background:linear-gradient(#0c244a05,#102b4c55 45%,#102b4c99); }
@media (max-width:360px) { .quran-modes {gap:20px;} #readerToolbar {gap:3px;} .quran-page[data-view="read"] .quran-list {padding-inline:8px;} }


