/* ATHAR 4.3.0 — explicit user-approved interface corrections. */
/* Preset colors are supplied by app.js; 60/30/10 is a design hierarchy, not per-pixel math. */
:root{--athar-secondary:#d9dce1;--athar-primary:#121417;--athar-highlight:#ff5a1f}
body{background:var(--bg)!important}
body .app-shell{min-height:0!important;padding-bottom:calc(106px + env(safe-area-inset-bottom))!important}
body .glass-nav{grid-template-columns:repeat(5,minmax(0,1fr))!important}
body .glass-nav .tab.active{color:var(--nav-accent,var(--accent))!important}








































/* Five grouped, fully previewed palettes rather than independent color selectors. */
.athar-theme-list{display:grid;gap:12px}
.athar-theme-option{display:flex;align-items:center;gap:12px;min-height:80px;text-align:start;padding:12px;background:var(--surface2);border:1px solid var(--line);border-radius:18px;color:var(--text)}
.athar-theme-option.selected{border-color:var(--accent);outline:1px solid var(--accent)}
.athar-theme-samples{display:flex;flex:0 0 87px;height:48px;gap:3px;padding:4px;background:var(--surface);border-radius:11px;overflow:hidden}
.athar-theme-samples i{display:block;min-width:0;border-radius:5px}
.athar-theme-samples i:first-child{flex:6}.athar-theme-samples i:nth-child(2){flex:3}.athar-theme-samples i:last-child{flex:1}
.athar-theme-copy{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}
.athar-theme-copy strong{font-size:13px}.athar-theme-copy small{font-size:10px;color:var(--muted);overflow-wrap:anywhere;line-height:1.5}
.athar-theme-selected{flex:0 0 18px;color:var(--accent);font-size:20px}
/* Authentic continuous Mushaf-style reading: contextual actions only after Ayah selection. */
.athar-quran-reader .athar-mushaf-page{display:block;direction:rtl;text-align:justify;text-align-last:right;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:clamp(18px,5vw,34px);font-family:var(--font-arabic)!important;font-size:calc(clamp(22px,5.8vw,28px) * var(--arabic-scale,1))!important;line-height:2.3;letter-spacing:0;white-space:normal;word-break:normal;unicode-bidi:plaintext}
.athar-quran-reader .athar-verse{display:inline;cursor:pointer;scroll-margin-top:75px;font-family:var(--font-arabic)!important}
.athar-quran-reader .athar-verse:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:5px}
.athar-quran-reader .athar-verse.is-selected{background:color-mix(in srgb,var(--accent) 14%,transparent);border-radius:4px}
.athar-quran-reader .athar-verse-marker{display:inline;color:var(--accent);white-space:nowrap;font-family:var(--font-arabic)!important;font-size:.75em}
.athar-quran-reader .athar-ayah-menu{position:sticky;bottom:calc(env(safe-area-inset-bottom) + 12px);display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:center;margin:14px auto 0;padding:12px;background:var(--surface2);border:1px solid var(--line);border-radius:16px;box-shadow:0 8px 22px #0004;z-index:4}
.athar-quran-reader .athar-ayah-menu button{border:1px solid var(--line);border-radius:12px;padding:9px 12px;background:var(--surface);color:var(--text)}
.athar-quran-reader .athar-ayah-menu button:first-of-type{background:var(--accent);color:var(--accent-ink);border:0}
.athar-quran-reader .athar-ayah-menu span{font-size:11px;color:var(--muted)}
/* Khatma: compact 4-column grid and real checkmarks. */
.athar-khatma-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:14px 0 100px}
.athar-khatma-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:100px;min-width:0;padding:8px 4px;border-radius:15px;border:1px solid var(--line);background:var(--surface);color:var(--text);text-align:center}
.athar-khatma-tile.is-complete{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--surface))}
.athar-khatma-check{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;border:1.5px solid var(--muted);font-size:15px;font-family:var(--font-english)!important}
.athar-khatma-tile.is-complete .athar-khatma-check{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}
.athar-khatma-number{font-size:13px;font-weight:750}.athar-khatma-name{font-family:var(--font-arabic)!important;font-size:clamp(10px,2.5vw,13px);line-height:1.35;overflow-wrap:anywhere}
.athar-khatma-tile:disabled{opacity:.45}
/* All strings rendered in Arabic use the chosen Arabic font, regardless of page language. */
body :lang(ar),body [dir=rtl],body .arabic-dua,body .arabic-heading,body .athar-font-ar{font-family:var(--font-arabic)!important;letter-spacing:normal!important}
body .athar-font-en,body :lang(en){font-family:var(--font-english)!important}
body .athar-font-ar :lang(ar),body .athar-mushaf-page *{font-family:var(--font-arabic)!important}

@media(max-width:350px){.athar-khatma-grid{gap:5px}}




