*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--scale: 1;--stone: #eef0ec;--paper: #fbfbf8;--ink: #1d2528;--ink-2: #3f4b50;--muted: #6a7579;--line: #d8ddd8;--line-2: #e6e9e5;--teal: #15393f;--teal-2: #24555d;--teal-soft: #e2ebe9;--pom: #a3203a;--pom-d: #841a2f;--pom-soft: #f6e6e8;--gold: #b48d48;--on-dark: #eef3f1;--shadow: 0 1px 2px rgba(21, 57, 63, .06), 0 8px 28px rgba(21, 57, 63, .08);--f-hy-serif: "Noto Serif Armenian", "Noto Serif", Georgia, serif;--f-hy-sans: "Noto Sans Armenian", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;--f-en: "Noto Serif", Georgia, "Times New Roman", serif;--f-ar: "Amiri Quran", "Amiri", "Noto Naskh Arabic", "Traditional Arabic", serif;--bar-h: 60px;color-scheme:light}@media (prefers-color-scheme: dark){:root{--stone: #111719;--paper: #172024;--ink: #e5eae7;--ink-2: #c3cdca;--muted: #8e9b98;--line: #2a373a;--line-2: #213034;--teal: #0c2529;--teal-2: #6eb0b8;--teal-soft: #1b2e31;--pom: #e0667d;--pom-d: #c94d65;--pom-soft: #34212a;--gold: #d2ae6c;--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .25);color-scheme:dark}}html{-webkit-text-size-adjust:100%}body{font-family:var(--f-hy-sans);font-size:16px;line-height:1.55;background:var(--stone);color:var(--ink);-webkit-font-smoothing:antialiased;min-height:100vh;padding-bottom:env(safe-area-inset-bottom,0px)}body.no-scroll{overflow:hidden}a{color:inherit;text-decoration:none}button,select,input{font:inherit;color:inherit}button{cursor:pointer;background:none;border:none}:focus-visible{outline:2px solid var(--pom);outline-offset:2px;border-radius:6px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.home [lang=en],.sh-meta [lang=en],.t-en{font-family:var(--f-en)}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;color:var(--ink-2);transition:background .15s,color .15s}.icon-btn:hover{background:var(--teal-soft);color:var(--teal-2)}.icon-btn svg{width:22px;height:22px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 20px;border-radius:12px;font-weight:600;font-size:1rem;transition:background .15s,transform .1s}.btn:active{transform:translateY(1px)}.btn.primary{background:var(--pom);color:#fff}.btn.primary:hover{background:var(--pom-d)}.btn.secondary{background:var(--teal-soft);color:var(--teal-2)}.btn.secondary:hover{background:var(--line)}.btn svg{width:18px;height:18px}.link-btn{color:var(--pom);font-weight:600;font-size:.9rem;text-decoration:underline;text-underline-offset:3px}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field>span{font-size:.85rem;color:var(--muted);font-weight:500}.field.grow{flex:1}select,.jump-type input{width:100%;min-height:48px;padding:0 12px;border:1.5px solid var(--line);border-radius:12px;background:var(--paper);color:var(--ink);font-size:1rem;transition:border-color .15s}select{-moz-appearance:none;appearance:none;-webkit-appearance:none;padding-right:36px;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a7579' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center;background-size:18px}select:focus,.jump-type input:focus{border-color:var(--teal-2);outline:none}.segmented{display:flex;gap:4px;padding:4px;border-radius:12px;background:var(--teal-soft)}.segmented button{flex:1;min-height:40px;border-radius:9px;font-weight:600;color:var(--muted);font-size:.95rem;transition:background .15s,color .15s}.segmented button.active{background:var(--paper);color:var(--ink);box-shadow:0 1px 3px #0000001f}.segmented.small button{min-height:36px;font-size:.9rem}.jump{display:flex;flex-direction:column;gap:14px}.jump-fields{display:flex;gap:10px}.ayah-field{width:96px;flex-shrink:0}.jump-type{display:flex;flex-direction:column;gap:6px}.type-row{display:flex;gap:8px}.jump-type input{font-size:1.5rem;font-weight:600;text-align:center;letter-spacing:.06em;font-family:var(--f-hy-sans);min-height:56px}.jump-type input::placeholder{font-size:1.05rem;font-weight:400;color:var(--muted);letter-spacing:0}.jump-type input[aria-invalid=true]{border-color:var(--pom)}.colon-btn{width:56px;flex-shrink:0;border-radius:12px;border:1.5px solid var(--line);background:var(--paper);font-size:1.8rem;font-weight:700;line-height:1}.colon-btn:active{background:var(--teal-2);color:var(--paper)}.type-hint{text-align:center;font-size:.85rem;color:var(--muted)}.type-hint.err{color:var(--pom)}.sura-jump{display:flex;gap:10px;align-items:flex-end}.sura-jump .btn{flex-shrink:0}.sidebar .sura-jump{flex-direction:column;align-items:stretch}.jump-panel{display:flex;flex-direction:column;gap:28px}.jump-panel h3,.settings h3{font-size:.95rem;font-weight:600;color:var(--ink-2);margin-bottom:12px}.hero{position:relative;overflow:hidden;background:var(--teal);color:var(--on-dark);padding:72px 20px 120px;text-align:center}.hero-pattern{position:absolute;top:0;right:0;bottom:0;left:0;opacity:.09;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 100 100' fill='none' stroke='%23ffffff' stroke-width='1.2'%3E%3Crect x='21' y='21' width='58' height='58'/%3E%3Crect x='21' y='21' width='58' height='58' transform='rotate(45 50 50)'/%3E%3Ccircle cx='50' cy='50' r='13'/%3E%3C/svg%3E");background-size:80px 80px;mask-image:radial-gradient(ellipse at 50% 40%,#000 20%,transparent 75%);-webkit-mask-image:radial-gradient(ellipse at 50% 40%,#000 20%,transparent 75%)}.hero-gear{position:absolute;top:14px;right:14px;color:var(--on-dark);z-index:2}.hero-gear:hover{background:#ffffff1a;color:#fff}.hero-inner{position:relative;z-index:1;max-width:720px;margin:0 auto}.hero-star{width:54px;height:54px;stroke:var(--gold);stroke-width:2.4;margin-bottom:14px}.hero-ar{font-family:var(--f-ar);font-size:clamp(1.6rem,5vw,2.1rem);color:var(--gold);line-height:1.6}.hero-title{font-family:var(--f-hy-serif);font-weight:700;font-size:clamp(4rem,17vw,8.5rem);line-height:1;letter-spacing:-.01em;margin:2px 0 18px}.hero-sub{font-family:var(--f-hy-serif);font-size:clamp(1.2rem,3.6vw,1.55rem);line-height:1.45}.hero-en{margin-top:10px;font-size:.98rem;font-style:italic;opacity:.72}.home-main{position:relative;z-index:2;max-width:1040px;margin:-76px auto 0;padding:0 16px 48px;display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.card{background:var(--paper);border-radius:20px;padding:26px;box-shadow:var(--shadow);border:1px solid var(--line-2)}.card-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:18px;flex-wrap:wrap}.card-head h2{font-family:var(--f-hy-serif);font-size:1.45rem;font-weight:700;line-height:1.3}.en-tag{font-size:.9rem;color:var(--muted);font-style:italic}.read-note{font-size:1.02rem;color:var(--ink-2);line-height:1.65;margin-bottom:18px}.en-line{display:block;margin-top:6px;font-size:.88rem;color:var(--muted);font-style:italic}.start-btn{width:100%;display:flex;align-items:center;gap:16px;text-align:left;padding:16px 18px;border-radius:16px;background:var(--pom);color:#fff;transition:background .15s,transform .1s}.start-btn:hover{background:var(--pom-d)}.start-btn:active{transform:translateY(1px)}.start-ar{font-family:var(--f-ar);font-size:1.7rem;line-height:1.2;min-width:64px;text-align:center;padding:4px 8px;border-radius:10px;background:#ffffff24}.start-text{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}.start-text strong{font-size:1.1rem;font-weight:600}.start-text small{font-size:.9rem;opacity:.88}.start-text em{display:block;font-size:.8rem;opacity:.8}.start-btn svg{width:22px;height:22px}.small-link{display:inline-block;margin-top:12px;font-size:.92rem;color:var(--pom);font-weight:600}.small-link span{font-weight:400;color:var(--muted);font-style:italic;margin-left:6px;font-size:.85rem}.or-sura{margin-top:24px;padding-top:20px;border-top:1px solid var(--line-2)}.or-label{font-size:.95rem;font-weight:600;color:var(--ink-2);margin-bottom:10px}.or-label span{font-weight:400;font-style:italic;color:var(--muted);font-size:.85rem;margin-left:6px}.index{grid-column:1 / -1;margin-top:18px}.card-head.plain{padding:0 4px}.index-grid{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:8px}.index-item{display:flex;align-items:center;gap:12px;padding:12px 14px;background:var(--paper);border:1px solid var(--line-2);border-radius:14px;transition:border-color .15s,background .15s}.index-item:hover{border-color:var(--teal-2)}.index-item.current{border-color:var(--pom);background:var(--pom-soft)}.ix-n{width:34px;height:34px;flex-shrink:0;display:grid;place-items:center;border-radius:10px;background:var(--teal-soft);color:var(--teal-2);font-weight:700;font-size:.9rem}.index-item.current .ix-n{background:var(--pom);color:#fff}.ix-names{flex:1;min-width:0;display:flex;flex-direction:column}.ix-hy{font-family:var(--f-hy-serif);font-weight:600;font-size:1.02rem;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ix-tr{font-size:.8rem;color:var(--muted)}.ix-ar{font-family:var(--f-ar);font-size:1.3rem;color:var(--teal-2);line-height:1.3}.home-foot{max-width:760px;margin:0 auto;padding:8px 20px 48px;text-align:center;color:var(--muted);font-size:.88rem;line-height:1.6}.home-foot p+p{margin-top:4px;font-style:italic}.topbar{position:sticky;top:0;z-index:40;height:var(--bar-h);display:flex;align-items:center;gap:8px;padding:0 10px;padding-top:env(safe-area-inset-top,0px);background:color-mix(in srgb,var(--stone) 88%,transparent);backdrop-filter:saturate(1.4) blur(14px);-webkit-backdrop-filter:saturate(1.4) blur(14px);border-bottom:1px solid var(--line)}.topbar-title{flex:1;min-width:0;display:flex;align-items:baseline;justify-content:center;gap:10px}.tt-name{font-family:var(--f-hy-serif);font-weight:600;font-size:1.05rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tt-ref{font-variant-numeric:tabular-nums;font-weight:600;font-size:.92rem;color:var(--pom);background:var(--pom-soft);padding:2px 8px;border-radius:8px;flex-shrink:0}.topbar-actions{display:flex;align-items:center;gap:4px}.pill-btn{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 12px;border-radius:12px;background:var(--teal-soft);color:var(--teal-2);font-weight:600;font-size:.92rem}.pill-btn svg{width:19px;height:19px}.read-progress{position:absolute;left:0;right:0;bottom:-1px;height:2px}.read-progress div{height:100%;background:var(--pom);transform-origin:left;transform:scaleX(0)}.reader-grid{display:grid;grid-template-columns:320px minmax(0,1fr);max-width:1280px;margin:0 auto}.sidebar{border-right:1px solid var(--line)}.sidebar-inner{position:sticky;top:var(--bar-h);padding:28px 22px;max-height:calc(100vh - var(--bar-h));overflow-y:auto}.reader-main{padding:36px 40px 64px;min-width:0}.sura-page,.ayah-page{max-width:780px;margin:0 auto}.jump-btn{display:none}.sura-head{position:relative;text-align:center;padding:28px 16px 30px;margin-bottom:8px}.sh-badge{position:relative;width:60px;height:60px;margin:0 auto 4px;display:grid;place-items:center}.sura-star{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;stroke:var(--gold);stroke-width:2.6}.sh-badge span{position:relative;font-weight:700;color:var(--teal-2);font-size:.95rem;font-variant-numeric:tabular-nums}.sura-head h1{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px}.sh-ar{font-family:var(--f-ar);font-size:2.6rem;font-weight:400;line-height:1.35;color:var(--teal-2)}.sh-hy{font-family:var(--f-hy-serif);font-size:clamp(1.7rem,5vw,2.2rem);font-weight:700;line-height:1.25}.sh-meta{margin-top:10px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:1rem;color:var(--ink-2);flex-wrap:wrap}.sh-meta.dim{margin-top:4px;color:var(--muted);font-size:.92rem}.sep{width:4px;height:4px;border-radius:50%;background:var(--gold)}.basmala{text-align:center;padding:22px 0 26px;margin-bottom:8px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:6px}.basmala .t-ar,.basmala .t-hy,.basmala .t-en{text-align:center}.ayah{display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;padding:26px 0;border-bottom:1px solid var(--line-2);scroll-margin-top:calc(var(--bar-h) + 10px)}.ayah-num{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;border:1.5px solid var(--line);color:var(--teal-2);font-weight:700;font-size:.88rem;font-variant-numeric:tabular-nums;transition:background .15s,border-color .15s}.ayah-num:hover{border-color:var(--pom);color:var(--pom);background:var(--pom-soft)}.ayah-body{display:flex;flex-direction:column;gap:14px;min-width:0}.t-ar{font-family:var(--f-ar);direction:rtl;text-align:right;font-size:calc(1.95rem * var(--scale));line-height:2.05;color:var(--ink)}.ar-end{color:var(--gold);font-size:.85em;white-space:nowrap}.t-hy{font-family:var(--f-hy-serif);font-size:calc(1.36rem * var(--scale));line-height:1.8;color:var(--ink);letter-spacing:.005em;word-spacing:.04em}.t-en{font-family:var(--f-en);font-size:calc(1.02rem * var(--scale));line-height:1.7;color:var(--muted)}.t-ar+.t-hy{padding-top:2px}.ayah.big{border-bottom:none;padding:30px 28px;background:var(--paper);border-radius:20px;border:1px solid var(--line-2);box-shadow:var(--shadow)}.ayah.big .t-ar{font-size:calc(2.3rem * var(--scale))}.ayah.big .t-hy{font-size:calc(1.55rem * var(--scale))}.ayah.big .t-en{font-size:calc(1.1rem * var(--scale))}.single{display:flex;flex-direction:column;gap:16px;align-items:center}.single .ayah{width:100%}.context-link{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:12px;color:var(--teal-2);background:var(--teal-soft);font-weight:600;font-size:.95rem}.context-link:hover{background:var(--line)}.pager{display:flex;justify-content:space-between;gap:12px;margin-top:36px}.pager-btn{flex:1;max-width:340px;display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:16px;background:var(--paper);transition:border-color .15s}.pager-btn:hover{border-color:var(--pom)}.pager-btn span{display:flex;flex-direction:column;min-width:0}.pager-btn small{font-size:.82rem;color:var(--muted)}.pager-btn strong{font-family:var(--f-hy-serif);font-weight:600;font-size:1.02rem;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pager-btn svg{color:var(--pom)}.pager-btn.next{margin-left:auto;justify-content:flex-end;text-align:right}.state{display:flex;flex-direction:column;align-items:center;gap:16px;padding:64px 16px;color:var(--muted);text-align:center}.spinner{width:34px;height:34px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--pom);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:fixed;left:50%;bottom:calc(18px + env(safe-area-inset-bottom,0px));transform:translate(-50%);z-index:60;display:flex;align-items:center;gap:10px;padding:8px 8px 8px 18px;max-width:calc(100vw - 24px);background:var(--teal);color:var(--on-dark);border-radius:14px;box-shadow:0 10px 30px #00000040;font-size:.95rem;animation:toast-in .25s ease-out}.toast button{padding:8px 12px;border-radius:10px;background:#ffffff1f;font-weight:600;white-space:nowrap}.toast .toast-x{padding:8px;background:none}.toast .toast-x svg{width:16px;height:16px}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,10px)}}.sheet-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:100;background:#08141673;display:flex;align-items:center;justify-content:center;padding:16px;animation:fade .15s}.sheet{width:100%;max-width:460px;max-height:calc(100vh - 32px);overflow-y:auto;background:var(--paper);border-radius:22px;box-shadow:0 20px 60px #0000004d;animation:pop .2s ease-out}.sheet-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;padding:16px 12px 12px 22px;background:var(--paper);border-bottom:1px solid var(--line-2)}.sheet-head h2{font-family:var(--f-hy-serif);font-size:1.25rem}.sheet-body{padding:20px 22px 26px}@keyframes fade{0%{opacity:0}}@keyframes pop{0%{opacity:0;transform:translateY(12px)}}.settings{display:flex;flex-direction:column;gap:26px}.toggles{display:flex;flex-direction:column;gap:8px}.toggle-row{position:relative;display:flex;align-items:center;gap:14px;padding:12px 14px;border-radius:14px;border:1.5px solid var(--line);cursor:pointer;transition:border-color .15s,background .15s}.toggle-row.on{border-color:var(--teal-2);background:var(--teal-soft)}.toggle-row input{position:absolute;opacity:0;pointer-events:none}.toggle-row:has(input:focus-visible){outline:2px solid var(--pom);outline-offset:2px}.toggle-sample{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:var(--paper);border:1px solid var(--line);font-size:1.2rem;font-weight:600;color:var(--teal-2)}.s-ar{font-family:var(--f-ar);font-size:1.45rem;line-height:1;padding-bottom:6px}.s-hy{font-family:var(--f-hy-serif)}.s-en{font-family:var(--f-en)}.toggle-label{flex:1;font-weight:500}.switch{width:44px;height:26px;border-radius:13px;background:var(--line);position:relative;transition:background .15s;flex-shrink:0}.switch:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:transform .15s}.toggle-row.on .switch{background:var(--teal-2)}.toggle-row.on .switch:after{transform:translate(18px)}.warn{margin-top:10px;color:var(--pom);font-size:.9rem}.size-row{display:flex;align-items:center;gap:12px}.size-btn{width:56px;height:48px;border-radius:12px;border:1.5px solid var(--line);font-family:var(--f-hy-serif);font-size:1.1rem;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:2px}.size-btn.big{font-size:1.5rem}.size-btn small{font-size:.9rem;color:var(--muted)}.size-btn:disabled{opacity:.35;cursor:default}.size-meter{flex:1;text-align:center;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink-2)}.settings-foot{display:flex;flex-direction:column;gap:8px;align-items:flex-start;padding-top:16px;border-top:1px solid var(--line-2);color:var(--muted);font-size:.9rem}.notfound{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:32px 20px;text-align:center}.nf-star{width:84px;height:84px;stroke:var(--gold);stroke-width:1.6;margin-bottom:8px}.notfound h1{font-family:var(--f-hy-serif);font-size:1.9rem}.notfound p{color:var(--muted);max-width:420px;margin-bottom:10px}@media (max-width: 1023px){.reader-grid{grid-template-columns:minmax(0,1fr)}.sidebar{display:none}.jump-btn{display:inline-flex}.reader-main{padding:20px 18px 56px}}@media (max-width: 760px){.home-main{grid-template-columns:minmax(0,1fr);margin-top:-64px}.hero{padding:60px 18px 100px}.index{margin-top:8px}}@media (max-width: 600px){:root{--bar-h: 56px}.card{padding:20px 18px;border-radius:18px}.card-head h2{font-size:1.3rem}.topbar{padding:0 6px;gap:4px}.topbar-title{flex-direction:column;align-items:center;gap:0}.tt-name{font-size:.98rem;max-width:100%}.tt-ref{font-size:.8rem;padding:0 6px}.pill-btn span{display:none}.pill-btn{width:42px;padding:0;justify-content:center;background:none}.ayah{display:block;padding:22px 0}.ayah:after{content:"";display:table;clear:both}.ayah-num{float:left;width:34px;height:34px;font-size:.8rem;margin:6px 12px 4px 0}.ayah-body{display:block}.ayah-body>p+p{margin-top:12px}.t-ar{font-size:calc(1.7rem * var(--scale));line-height:2.1}.t-hy{font-size:calc(1.28rem * var(--scale));line-height:1.8}.t-en{font-size:calc(.98rem * var(--scale))}.ayah.big{padding:22px 18px}.ayah.big .t-ar{font-size:calc(2rem * var(--scale))}.ayah.big .t-hy{font-size:calc(1.42rem * var(--scale))}.sh-ar{font-size:2.2rem}.pager{flex-direction:column}.pager-btn{max-width:none}.pager-btn.next{margin-left:0}.sheet-backdrop{align-items:flex-end;padding:0}.sheet{max-width:none;border-radius:22px 22px 0 0;max-height:88vh;padding-bottom:env(safe-area-inset-bottom,0px)}.sura-jump{flex-direction:column;align-items:stretch}.index-grid{grid-template-columns:minmax(0,1fr)}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.nowrap{white-space:nowrap}
