/* AjrBook – Islamic theme: deep emerald, gold and ivory. Loaded after the main styles and overrides them.
   Artwork in img/theme/ was cut from the AjrBook design mock-up. */
:root {
  --em: #0b4a32;          /* emerald */
  --em-deep: #05301f;
  --em-soft: #e3eee7;
  --gold: #b8892a;
  --gold-strong: #8a6512;
  --gold-soft: #f5e6bf;
  --gold-line: #d9b765;
  --bg: #fbf5e8;
  --surface: #fffbf1;
  --line: #ecdcb6;
  --ink: #1f2a22;
  --muted: #5f6b60;
  --page: #fffcf4;
  --font-display: "Amiri", "Marcellus", "Times New Roman", serif;
}
:root[data-theme="dark"] {
  --em: #1d6b4c; --em-deep: #0a2a1d; --em-soft: #173a2b;
  --gold: #d9b45a; --gold-strong: #ecc96f; --gold-soft: #3a3016; --gold-line: #8a7234;
  --bg: #101a14; --surface: #16231b; --line: #2c3d31; --ink: #ece4cf; --muted: #a9b3a5; --page: #132019;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --em: #1d6b4c; --em-deep: #0a2a1d; --em-soft: #173a2b;
    --gold: #d9b45a; --gold-strong: #ecc96f; --gold-soft: #3a3016; --gold-line: #8a7234;
    --bg: #101a14; --surface: #16231b; --line: #2c3d31; --ink: #ece4cf; --muted: #a9b3a5; --page: #132019;
  }
}
body { background: var(--bg); margin: 0; }
.btn.primary, .btn.small.primary { background: var(--em); border-color: var(--em); color: #fffaf0; }
.btn.primary:hover { background: var(--em-deep); }

/* ---------- date strip ---------- */
.datebar { background: var(--em-deep); color: #efe6cc; }
.datebar .where, .datebar .adj-l, .datebar .adj-sep { color: #c9c0a4; }
.datebar .db-cal, .datebar a { color: #f3d98f; }
.datebar .db-cal:hover { background: rgba(255, 255, 255, .08); border-color: var(--gold-line); }
.datebar .adj button { color: #efe6cc; border-color: rgba(239, 230, 204, .35); }

/* ---------- header: emerald night sky with the mosque skyline ---------- */
header.top { position: relative; top: auto; backdrop-filter: none; border-bottom: 0; background: transparent; padding-bottom: 0; }
header.top > .wrap { position: relative; max-width: none; padding: 14px max(24px, env(safe-area-inset-right, 0px)) 40px max(24px, env(safe-area-inset-left, 0px)); gap: 18px 24px; flex-wrap: nowrap;
  background: radial-gradient(120% 140% at 62% 0%, #0a5a3b 0%, #063a26 45%, #032a1b 100%); color: #fffaf0; }
.brand { color: #fffaf0; gap: 12px; flex: none; }
.brand img { width: 92px; height: 62px; border-radius: 0; object-fit: contain; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-family: "Amiri", var(--font-display); font-size: 40px; font-weight: 400; color: #fffaf0; letter-spacing: .01em; }
.brand-txt small { font-family: "Amiri", serif; font-size: 16px; color: #e9c766; letter-spacing: .08em; margin-top: 6px; }
.hdr-search { flex: 0 1 430px; min-width: 180px; display: flex; align-items: center; gap: 10px; background: #f8f0dc; border-radius: 999px; padding: 0 18px; height: 46px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .12); }
.hdr-search svg { width: 20px; height: 20px; fill: none; stroke: #4c564d; stroke-width: 2; stroke-linecap: round; flex: none; }
.hdr-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: #1f2a22; outline: 0; }
.hdr-search:focus-within { box-shadow: 0 0 0 2px #e9c766; }
.hdr-art { flex: 1 1 300px; align-self: stretch; margin-block: -14px -40px; min-width: 0;
  background: url(img/theme/hdr-skyline.jpg) center bottom / auto 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.hdr-tools { margin-left: 0; gap: 10px; flex: none; }
header.top .ui-lang { background: rgba(255, 255, 255, .06); border: 1px solid rgba(233, 199, 102, .55); padding: 6px 10px 6px 12px; color: #fffaf0; }
header.top .ui-lang select { color: #fffaf0; font-size: 15px; max-width: 110px; width: 110px; }
header.top .ui-lang select option { color: #1f2a22; }
header.top .icon-btn { width: 44px; height: 44px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(233, 199, 102, .55); color: #f3d98f; }
header.top .score-btn { background: rgba(255, 255, 255, .06); border-color: rgba(233, 199, 102, .55); color: #fffaf0; }
header.top .score-btn .sc-bar { background: rgba(255, 255, 255, .2); }
header.top .score-btn .sc-bar i { background: #e9c766; }
#signin { background: transparent; border: 1.5px solid #e9c766; color: #fffaf0; border-radius: 999px; padding: 9px 18px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
#signin:hover { background: rgba(233, 199, 102, .15); }
.si-ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (max-width: 1180px) { .hdr-art { display: none; } header.top > .wrap { flex-wrap: wrap; } .hdr-search { flex: 1 1 260px; } }
@media (max-width: 700px) { .brand b { font-size: 30px; } .brand img { width: 64px; height: 44px; } header.top > .wrap { padding-bottom: 34px; } }

/* ---------- main menu: a cream bar resting on the header ---------- */
nav.main { margin: -28px auto 0; position: relative; z-index: 2; display: flex; justify-content: center; padding: 0 16px; }
nav.main .nav-in { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; background: var(--surface); border: 1px solid var(--gold-line); border-radius: 18px; padding: 7px 10px; box-shadow: 0 10px 24px -16px rgba(5, 48, 31, .55); }
nav.main a { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 16.5px; font-weight: 500; padding: 8px 16px; border-radius: 14px; }
nav.main a:hover { background: var(--gold-soft); color: var(--ink); }
nav.main a[aria-current="page"] { background: linear-gradient(#0d5a3c, #07402a); color: #fffaf0; box-shadow: inset 0 0 0 1px #e9c766; }
.nv-ic { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
nav.main a[aria-current="page"] .nv-ic { stroke: #e9c766; }
.nav-sep { width: 1px; height: 28px; background: var(--gold-line); margin: 0 6px; }

/* tools row under the menu: small arch chips */
.toolbar { border-top: 0; padding: 12px 16px 4px; gap: 8px; }
.toolbar a { --ib-cut: 0px; padding: 6px 15px; font-size: 14px; }
.toolbar a::before, .toolbar a::after { clip-path: none; border-radius: 14px 14px 8px 8px; }
.toolbar a::before { background: var(--gold-line); opacity: 1; }
.toolbar a::after { background: var(--surface); }
.toolbar a:hover::after { background: var(--gold-soft); }
.toolbar a[aria-current]::after { background: var(--em); }
.toolbar a[aria-current] { color: #fffaf0; }

/* ---------- moving-free reminder bars: emerald with gold ornament ends ---------- */
.time-bars { max-width: 1400px; margin: 10px auto 0; padding: 0 16px; display: grid; gap: 8px; }
.tbar { border-radius: 18px; border: 1.5px solid var(--gold-line); padding: 9px 64px; min-height: 58px;
  background: url(img/theme/orn-left.jpg) left center / auto 56px no-repeat, url(img/theme/orn-right2.jpg) right center / auto 56px no-repeat, linear-gradient(90deg, #06301f, #0b4a32 50%, #06301f); }
.tbar-night { background: linear-gradient(90deg, #121a30, #22305080 50%, #121a30), linear-gradient(90deg, #121a30, #24304f 50%, #121a30); border-color: #8a7a4a; }
.tbar .ib { --ib-cut: 0px; border-radius: 999px; padding: 8px 20px; font-size: 15px; color: #1f2a22; }
.tbar .ib::before, .tbar .ib::after { clip-path: none; border-radius: 999px; }
.tbar .ib::before { background: #e9c766; opacity: 1; }
.tbar .ib::after { background: #fdf7e6; }
.tb-t { font-size: 17px; color: #f3d98f; }
.tb-x { inset-inline-end: 54px; color: #f3d98f; }
@media (max-width: 700px) { .tbar { padding: 10px 40px 10px 14px; background: linear-gradient(90deg, #06301f, #0b4a32 50%, #06301f); } .tb-x { inset-inline-end: 6px; } }

/* ---------- reading area ---------- */
.reader { max-width: 1400px; grid-template-columns: 300px minmax(0, 1fr); gap: 22px; padding-top: 18px; }
@media (max-width: 1100px) { .reader { grid-template-columns: 260px minmax(0, 1fr); } }
@media (max-width: 860px) { .reader { grid-template-columns: minmax(0, 1fr); } }

/* ---------- side panels (surah list, My day): emerald arch on top, cream body ---------- */
:root { --star: polygon(50% 0%, 65.3% 13%, 85.4% 14.6%, 87% 34.7%, 100% 50%, 87% 65.3%, 85.4% 85.4%, 65.3% 87%, 50% 100%, 34.7% 87%, 14.6% 85.4%, 13% 65.3%, 0% 50%, 13% 34.7%, 14.6% 14.6%, 34.7% 13%); }
/* side panels: straight rounded cards, emerald title bar with a gold rule (no arch) */
.surahs { border: 2px solid var(--gold-line); border-radius: 16px; background: var(--surface); box-shadow: 0 14px 30px -24px rgba(5, 48, 31, .5); top: 12px; max-height: calc(100vh - 24px); }
.surahs .s-head, .myday .md-top { position: relative; background: linear-gradient(#0f5e3e, #063a26); border-bottom: 2px solid var(--gold-line); }
.surahs .s-head { flex-wrap: wrap; justify-content: center; gap: 4px 6px; padding: 12px 14px 10px; color: #fffaf0; }
.surahs .s-head b { flex: 1 0 100%; text-align: center; font-family: "Amiri", var(--font-display); font-size: 24px; font-weight: 700; color: #fffaf0; }
.surahs .s-head > span button, .surahs .s-head > button { background: rgba(255, 255, 255, .08); border-color: rgba(233, 199, 102, .6); color: #fffaf0; font-size: 12px; }
.surahs input#surah-search { margin: 12px 12px 6px; border-radius: 999px; padding: 10px 16px; background: #fff; border-color: var(--line); font-size: 15px; }
:root[data-theme="dark"] .surahs input#surah-search { background: var(--bg); }
.s-filter { display: flex; gap: 6px; justify-content: center; padding: 4px 12px 8px; }
.s-filter button { border: 1px solid var(--gold-line); background: transparent; color: var(--ink); border-radius: 999px; padding: 3px 14px; font-size: 13px; cursor: pointer; }
.s-filter button[aria-pressed="true"] { background: var(--em); border-color: var(--em); color: #fffaf0; }
.surahs ol { padding: 0 8px 10px; }
.surahs li button { grid-template-columns: 34px 1fr auto; padding: 8px 10px; border-radius: 10px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.surahs .n { position: relative; width: 30px; height: 30px; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; opacity: 1; color: #5a3f05; isolation: isolate; }
.surahs .n::before, .surahs .n::after { content: ""; position: absolute; clip-path: var(--star); z-index: -1; }
.surahs .n::before { inset: 0; background: #c99a2e; }
.surahs .n::after { inset: 2.5px; background: #f6dc93; }
.surahs .t { font-weight: 600; font-size: 14.5px; }
.surahs .a { font-family: "Amiri", var(--font-ar); font-size: 19px; }
.surahs li button[aria-current="true"] { background: linear-gradient(#0d5a3c, #07402a); color: #fffaf0; }
.surahs li button[aria-current="true"] .n::after { background: #e9c766; }

/* ---------- the Quran page: emerald arabesque frame, arched head, gold cartouche ---------- */
.page { position: relative; border: 10px solid #0b4a32; border-radius: 18px; padding: 0 0 24px; overflow: hidden; background: var(--page);
  box-shadow: inset 0 0 0 1.5px #e2c06a, 0 0 0 1.5px #e2c06a, 0 18px 36px -24px rgba(5, 48, 31, .55); }
.page > *:not(.page-head):not(.turn):not(.wide-btn):not(.loading) { margin-left: clamp(14px, 3.2vw, 38px); margin-right: clamp(14px, 3.2vw, 38px); }
.page > .loading { padding: 40px; }
.page-head { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: 10px; margin: 0 0 18px; padding: 14px clamp(12px, 3vw, 40px); min-height: 0; border-bottom: 1.5px solid #e2c06a; overflow: visible;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23e2c06a' stroke-opacity='.28' stroke-width='1'%3E%3Crect x='17' y='17' width='22' height='22'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3Cpath d='M0 28h10M46 28h10M28 0v10M28 46v10M0 0l10 10M56 0L46 10M0 56l10-10M56 56L46 46'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 56px 56px, radial-gradient(90% 160% at 50% 0%, #0f6343, #073b26); }
.ph-cart { flex: 0 1 640px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 8px; }
/* surah name in an illuminated mushaf heading: gold frame with ogee ends and star medallions (fixed ends, stretched middle) */
.ph-cart h2 { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: min(100%, 440px); height: 92px; margin: 0; padding: 0 12px 8px; line-height: 1; text-box: trim-both cap alphabetic; text-align: center;
  border-style: solid; border-color: transparent; border-width: 0 69px; border-image: url(img/theme/cartouche.svg) 0 90 fill / 0 69px stretch;
  font-family: var(--font-quran); font-size: 36px; color: #1f2a22; white-space: normal; text-align: end; }
.page-head .meta { position: absolute; left: 0; right: 0; bottom: -34px; color: var(--muted); font-size: 14px; }
.page-head + .qctl { margin-top: 40px !important; }
.ph-arrow, .pager button { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; flex: none; align-self: center; text-decoration: none;
  background: radial-gradient(circle at 50% 35%, #12704a, #06381f); border: 2px solid #e9c766; color: #fffaf0; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); cursor: pointer; padding: 0; }
.ph-arrow svg, .pager button svg { width: 22px; height: 22px; fill: none; stroke: #fffaf0; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ph-arrow:hover, .pager button:hover { filter: brightness(1.15); }
.pager { align-items: center; margin-top: 26px; flex-wrap: nowrap; }
.pager button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* controls: one compact row of small pills (ChatGPT mock-up) */
.qctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 4px !important; margin-bottom: 8px !important; padding-right: 0 !important; font-size: 13.5px; }
.qc-pill { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--gold-line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 0 rgba(0, 0, 0, .04); }
.qc-pill:hover { background: var(--gold-soft); }
.qc-pill svg, .qc-ic { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--em); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qc-play svg { fill: var(--ink); stroke: none; width: 13px; height: 13px; }
.qc-sel select { border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 13.5px; width: auto; max-width: 128px; padding: 0 2px; cursor: pointer; outline: 0; }
.qc-go input { width: 64px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 13.5px; padding: 0 0 0 8px; outline: 0; }
.qc-go span { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: normal; text-align: end; }
.page > .hint { justify-content: center; font-size: 12px; margin-bottom: 14px; }
.qctl .wide-btn { position: static; height: 34px; border-radius: 8px; padding: 0 12px; font-size: 13.5px; font-weight: 600; background: linear-gradient(#0d5a3c, #07402a); color: #fffaf0; border: 1px solid #e2c06a; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.qctl .wide-btn:hover { filter: brightness(1.15); background: linear-gradient(#0d5a3c, #07402a); }
.wide-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 700px) { .ph-cart { padding: 0; } .ph-cart h2 { font-size: 26px; height: 70px; line-height: 1; padding-bottom: 6px; border-width: 0 52px; border-image-width: 0 52px; min-width: 0; } .ph-arrow { width: 38px; height: 38px; } }
/* phones: the heading must fit between the two arrows (Safari would not shrink it and pushed the next arrow off the page) */
.ph-cart { min-width: 0; }
.ph-cart h2 { max-width: 100%; }
@media (max-width: 480px) { .page-head { padding: 12px 8px; gap: 6px; } .ph-cart h2 { font-size: 22px; height: 60px; border-width: 0 34px; border-image-width: 0 34px; padding: 0 4px 5px; } .ph-arrow { width: 34px; height: 34px; } .ph-arrow svg { width: 18px; height: 18px; } }
.hint { display: flex; align-items: center; gap: 8px; }
/* a chosen decorative border replaces the emerald frame */
.page[data-pt] { padding: 0 0 24px; box-shadow: none; }

/* ---------- My day panel ---------- */
.myday { border: 2px solid var(--gold-line); border-radius: 16px 0 0 0; padding-top: 0; background: var(--surface); }
.myday .md-top { margin: 0 -14px 12px; padding: 12px 16px; color: #fffaf0; border-radius: 14px 0 0 0; }
.myday .md-top b { font-family: "Amiri", var(--font-display); font-size: 24px; font-weight: 700; text-align: center; color: #fffaf0; }
.myday .md-top button { background: rgba(255, 255, 255, .08); border-color: rgba(233, 199, 102, .6); color: #fffaf0; }
/* prayer markers as 8-pointed stars */
.sd-c .ring { position: relative; border: 0; border-radius: 0; isolation: isolate; color: #0b4a32; background: none; }
.sd-c .ring::before, .sd-c .ring::after { content: ""; position: absolute; clip-path: var(--star); z-index: -1; }
.sd-c .ring::before { inset: 0; background: #c99a2e; }
.sd-c .ring::after { inset: 2.5px; background: var(--surface); }
.sd-c[style] .ring { background: none; color: #fff; }
.sd-c[style] .ring::after { background: var(--c); }
.sd-c[disabled] .ring::after { background: #0b4a32; }
.sd-c[disabled] .ring { color: #f3d98f; }
.sd-c[disabled] { opacity: .8; }

/* full screen keeps the plain mushaf look */
body.wide .page { border-radius: 0; box-shadow: none; }
body.wide .page-head { display: none; }
body.wide .page { border: 0; background: var(--page); box-shadow: none; }
body.wide nav.main { display: none; }

/* reminder bar: done items and the closing "Alhamdulillah" */
.tbar .ib.tb-done { color: #0b4a32; }
.tbar .ib.tb-done::after { background: #cfe8d6; }
.tbar .ib.tb-done::before { background: #7cc79a; }
.tbar-thanks .tb-in { flex-direction: column; gap: 2px; animation: tb-in .5s ease-out; }
.tbar-thanks .tb-t::before, .tbar-thanks .tb-t::after { content: "✦"; }
.tb-ar { font-family: "Amiri", var(--font-ar); font-size: 22px; color: #fffaf0; }
@keyframes tb-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tbar-thanks .tb-in { animation: none; } }

/* My day: a drawer fixed to the screen edge (never moves with the page), opened by a fixed tab */
.myday-rail { position: fixed; top: 0; bottom: 0; right: 0; left: auto; width: auto; z-index: 80; pointer-events: none; }
body.dock-left .myday-rail { left: 0; right: auto; }
.myday-rail .myday { position: relative; top: 0; height: 100vh; max-height: 100vh; pointer-events: auto; box-shadow: -14px 0 30px -18px rgba(5, 48, 31, .5); border-radius: 0; }
body.dock-left .myday-rail .myday { box-shadow: 14px 0 30px -18px rgba(5, 48, 31, .5); }
body.dock-right section[id^="view-"], body.dock-right footer, body.dock-left section[id^="view-"], body.dock-left footer { padding-left: 0 !important; padding-right: 0 !important; }
.myday .md-top { border-radius: 0; }
body.wide .myday-rail, body.wide .md-tab { display: none; }
.md-tab { position: fixed; z-index: 66; right: 0; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; display: inline-flex; align-items: center; gap: 8px; padding: 14px 8px;
  border: 1.5px solid #e2c06a; border-right: 0; border-radius: 12px 0 0 12px; background: linear-gradient(270deg, #07402a, #0d5a3c); color: #fffaf0; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.md-tab b { writing-mode: horizontal-tb; font-size: 12px; background: #e9c766; color: #07402a; border-radius: 999px; padding: 2px 6px; }
.md-tab:hover { filter: brightness(1.15); }
body.md-open .md-tab { display: none; }

/* ---------- page design: a tab at the side opens a drawer (no long bar above the Quran) ---------- */
.qbar-wrap { padding-top: 10px; }
.qbar-wrap .qbar-head { display: none; }
.qbar-wrap .qbar, .qbar-wrap.min .qbar { display: flex; position: fixed; z-index: 70; top: 120px; left: 0; width: min(360px, 92vw); max-height: calc(100vh - 110px); overflow-y: auto;
  flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 14px; padding: 18px; border: 2px solid var(--gold-line); border-left: 0; border-radius: 0 18px 18px 0;
  background: var(--surface); box-shadow: 0 18px 40px -16px rgba(5, 48, 31, .45); transform: translateX(-105%); transition: transform .25s ease; }
body.qd-open .qbar-wrap .qbar { transform: none; }
.qbar .grp { justify-content: space-between; }
.qd-title { font-family: "Amiri", var(--font-display); font-size: 22px; font-weight: 700; color: var(--em); padding-right: 30px; }
.qd-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--muted); }
.qd-setup { margin-top: 6px; border: 1px dashed var(--gold-line); background: none; border-radius: 10px; padding: 8px 12px; cursor: pointer; color: var(--em); font-weight: 600; }
.qd-tab { position: fixed; z-index: 65; left: 0; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; rotate: 180deg; display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 8px; border: 1.5px solid #e2c06a; border-left: 0; border-radius: 0 12px 12px 0; rotate: 0deg; writing-mode: vertical-rl; background: linear-gradient(90deg, #07402a, #0d5a3c); color: #fffaf0; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.qd-tab svg { width: 18px; height: 18px; fill: none; stroke: #e9c766; stroke-width: 1.8; writing-mode: horizontal-tb; }
.qd-tab:hover { filter: brightness(1.15); }
body.qd-open .qd-tab { display: none; }
body.wide .qd-tab { display: none; }
.qbar.in-wz { position: static !important; transform: none !important; width: auto; max-height: none; box-shadow: none; border: 1px solid var(--line); border-radius: 12px; }
.qbar.in-wz .qd-x, .qbar.in-wz .qd-title, .qbar.in-wz .qd-setup { display: none; }

/* ---------- first visit: welcome ---------- */
.wl-splash { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; text-align: center; color: #fffaf0;
  background: radial-gradient(120% 90% at 50% 20%, #0c5a3b, #042a1b 70%); animation: wl-in .6s ease-out; transition: opacity .6s ease; }
.wl-splash::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32vh; pointer-events: none; background: url(img/theme/hdr-skyline.jpg) center bottom / auto 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 17%, #000 32%, #000 68%, transparent 83%), linear-gradient(transparent, #000 35%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 17%, #000 32%, #000 68%, transparent 83%), linear-gradient(transparent, #000 35%); mask-composite: intersect; }
.wl-in { position: relative; z-index: 1; }
.wl-splash.out { opacity: 0; }
.wl-in { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px; margin-top: -12vh; }
.wl-bism { font-family: var(--font-quran); font-size: clamp(34px, 6vw, 64px); line-height: 1.8; color: #f3d98f; }
.wl-salam { font-family: "Amiri", serif; font-size: clamp(24px, 3.4vw, 36px); }
.wl-title { font-family: "Amiri", var(--font-display); font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; }
.wl-tag { font-family: "Amiri", serif; color: #e9c766; letter-spacing: .08em; font-size: 18px; }
.wl-go { margin-top: 18px; border: 1.5px solid #e9c766; background: rgba(255, 255, 255, .06); color: #fffaf0; border-radius: 999px; padding: 10px 34px; font: inherit; font-weight: 600; cursor: pointer; }
.wl-go:hover { background: rgba(233, 199, 102, .18); }
@keyframes wl-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wl-splash { animation: none; transition: none; } }

/* ---------- first visit: setup ---------- */
.wz { width: min(560px, 94vw); max-height: 90vh; padding: 0 0 18px; border: 2px solid var(--gold-line); border-radius: 18px; background: var(--surface); color: var(--ink); }
.wz::backdrop { background: rgba(4, 30, 20, .55); }
.wz-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: linear-gradient(#0f5e3e, #063a26); color: #fffaf0; border-bottom: 2px solid var(--gold-line); }
.wz-top b { font-family: "Amiri", var(--font-display); font-size: 22px; }
.wz-top span { font-size: 13px; color: #e7dbb8; }
.wz-dots { display: flex; gap: 6px; justify-content: center; padding: 12px 0 0; }
.wz-dots i { width: 28px; height: 4px; border-radius: 2px; background: var(--line); }
.wz-dots i.on { background: var(--gold); }
.wz h3 { font-family: "Amiri", var(--font-display); font-size: 24px; text-align: center; margin: 16px 20px 4px; }
.wz-note { text-align: center; color: var(--muted); font-size: 14px; margin: 0 24px 12px; }
.wz-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 8px 20px; }
.wz-row[hidden] { display: none; }
.wz-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 8px 20px; }
.wz-opt { border: 1.5px solid var(--gold-line); background: var(--page); color: var(--ink); border-radius: 12px; padding: 10px 12px; font: inherit; cursor: pointer; }
.wz-opt.big { min-width: 150px; padding: 14px 18px; font-weight: 600; font-size: 16px; }
.wz-opt:hover { background: var(--gold-soft); }
.wz-opt.on { border-color: var(--em); box-shadow: inset 0 0 0 1px var(--em); }
.wz-msg { text-align: center; font-size: 14px; color: var(--em); min-height: 1.4em; margin: 6px 20px 0; }
#wz-look { padding: 0 20px; }
.wz-foot { display: flex; align-items: center; gap: 10px; padding: 16px 20px 0; }
.wz-foot span { flex: 1; }
.wz-link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 14px; }
@media (max-width: 520px) { .wz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* one-window setup: a warning note, then sections that open and close */
.wz1 { width: min(640px, 95vw); display: flex; flex-direction: column; padding-bottom: 0; }
.wz1[open] { display: flex; }
.wz1 .wz-top { justify-content: center; }
.wz1 .wz-top b { font-size: 21px; text-align: center; }
.wz-scroll { overflow-y: auto; max-height: calc(90vh - 130px); padding: 14px 18px 6px; }
.wz-warn { display: flex; align-items: center; gap: 12px; background: #fff4d6; border: 1px solid #e2c06a; border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; color: #5a4310; }
.wz-warn span { flex: 1; }
:root[data-theme="dark"] .wz-warn { background: #3a3016; color: #f3e2b0; }
.wz-sec { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: var(--page); }
.wz-sec summary { cursor: pointer; padding: 12px 16px; font-weight: 700; font-size: 16px; color: var(--em); list-style: none; display: flex; align-items: center; gap: 8px; }
.wz-sec summary::-webkit-details-marker { display: none; }
.wz-sec summary::before { content: "▸"; color: var(--gold); transition: transform .2s; }
.wz-sec[open] summary::before { transform: rotate(90deg); }
[dir="rtl"] .wz-sec summary::before { content: "◂"; }
[dir="rtl"] .wz-sec[open] summary::before { transform: rotate(-90deg); }
.wz-body { padding: 4px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.wz-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.wz-f select, .wz-f input { font: inherit; font-size: 14.5px; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; background: var(--surface); color: var(--ink); max-width: 100%; }
.wz-c { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.wz-c input { width: 18px; height: 18px; accent-color: var(--em); }
.wz-seg { display: inline-flex; border: 1px solid var(--gold-line); border-radius: 10px; overflow: hidden; }
.wz-seg button { border: 0; background: var(--surface); color: var(--ink); padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.wz-seg button + button { border-left: 1px solid var(--gold-line); }
.wz-seg button[aria-pressed="true"] { background: var(--em); color: #fffaf0; }
.wz1 .wz-note { text-align: start; margin: 0; }
.wz-fam { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.wz-addrow input { flex: 1; min-width: 120px; }
.wz1 .wz-foot { padding: 12px 18px 16px; border-top: 1px solid var(--line); justify-content: flex-end; }
.wz1 .wz-foot .btn { padding: 10px 26px; }

/* family: each member's targets */
.fam-tg2 { border: 1px solid var(--gold-line); border-radius: 12px; margin: 6px 0 10px; background: var(--page); font-size: 14px; }
.fam-tg2 summary { cursor: pointer; padding: 9px 12px; font-weight: 700; color: var(--em); }
.ft-sec { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 12px; border-top: 1px dashed var(--line); }
.ft-sec > b { flex: 1 0 100%; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ft-sec label { display: inline-flex; align-items: center; gap: 6px; }
.ft-sec input[type=checkbox] { accent-color: var(--em); width: 16px; height: 16px; }
.ft-list { flex: 1 0 100%; display: flex; flex-direction: column; gap: 6px; }
.ft-item { display: flex; align-items: center; gap: 8px; }
.ft-item > input:first-child { flex: 1; min-width: 0; }
.ft-list [data-ladd] { align-self: flex-start; }
.ft-done { font-size: 13px; white-space: normal; text-align: end; }
.wz-radios { display: inline-flex; gap: 18px; }
.wz-radios label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.wz-radios input { width: 18px; height: 18px; accent-color: var(--em); }
.wz-today { margin: 0; font-size: 15px; } .wz-today b { color: var(--em); }
.wz-sub { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-strong); }
.wz-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.wz-checks .wz-c { font-size: 14px; }
.wz-famhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); padding-top: 12px; margin-top: 4px; }
.wz-plus { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--em); color: #fffaf0; font-size: 22px; line-height: 1; cursor: pointer; }
.wz-mem { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: var(--surface); display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.wz-memhead { display: flex; align-items: center; gap: 8px; }
.wz-memhead .wz-link { margin-inline-start: auto; font-size: 20px; text-decoration: none; }
.wz-addrow[hidden] { display: none; }
@media (max-width: 520px) { .wz-checks { grid-template-columns: minmax(0, 1fr); } }

/* ---------- simpler screen: Quran, Adhkar, Reports, a Menu and Setup ---------- */
#toolbar, .qd-tab, .md-tab { display: none !important; }
.nav-more { position: relative; }
.nav-more > summary { list-style: none; display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 16.5px; font-weight: 500; padding: 8px 16px; border-radius: 14px; cursor: pointer; }
.nav-more > summary::-webkit-details-marker { display: none; }
.nav-more > summary::after { content: "▾"; font-size: 12px; color: var(--gold); }
.nav-more > summary:hover, .nav-more[open] > summary { background: var(--gold-soft); }
.nav-more:has(a[aria-current]) > summary { box-shadow: inset 0 0 0 1px var(--gold-line); }
.nav-drop { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 90; width: min(460px, 92vw); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px;
  padding: 10px; background: var(--surface); border: 1.5px solid var(--gold-line); border-radius: 16px; box-shadow: 0 18px 40px -16px rgba(5, 48, 31, .45); }
nav.main .nav-drop a { font-size: 15px; padding: 9px 12px; border-radius: 10px; gap: 10px; }
nav.main .nav-drop a[aria-current] { background: var(--em); color: #fffaf0; box-shadow: none; }
.nav-setup { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--gold-line); background: var(--surface); color: var(--em); font: inherit; font-size: 16px; font-weight: 600; padding: 7px 16px; border-radius: 14px; cursor: pointer; }
.nav-setup:hover { background: var(--gold-soft); }
@media (max-width: 700px) { nav.main a, .nav-more > summary, .nav-setup { font-size: 14.5px; padding: 7px 10px; } .nav-drop { left: auto; right: -40px; transform: none; } }

/* Reports: My day sits at the top as a normal card */
.rep-today .myday.in-report { position: static; width: auto; height: auto; max-height: none; border: 2px solid var(--gold-line); border-radius: 16px; box-shadow: none; overflow: visible; margin-bottom: 16px; padding: 0 14px 14px; }
.rep-today .myday.in-report .md-top { border-radius: 14px 14px 0 0; }
.rep-today .myday.in-report .md-side, .rep-today .myday.in-report [data-close], .rep-today .myday.in-report .md-x { display: none; }
.rep-fam { margin-top: 18px; }

/* family invite links */
.fl-area { margin: 4px 0 8px; }
.fl-box { border: 1px dashed var(--gold-line); border-radius: 12px; padding: 10px 12px; background: var(--page); }
.fl-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fl-row input { flex: 1 1 260px; min-width: 0; font-size: 13px; }
.fl-row a.mo-btn { text-decoration: none; }
body.fl-member-on > *:not(.fl-member):not(script):not(dialog) { display: none !important; }
.fl-member { min-height: 100vh; display: grid; place-items: start center; padding: 24px 14px; background: radial-gradient(120% 60% at 50% 0%, #0c5a3b, #042a1b 60%, var(--bg) 60.1%); }
.fl-card { width: min(560px, 100%); background: var(--surface); border: 2px solid var(--gold-line); border-radius: 18px; padding: 18px 20px; box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .5); }
.fl-head { display: flex; align-items: center; gap: 10px; margin: -18px -20px 14px; padding: 12px 20px; background: linear-gradient(#0f5e3e, #063a26); border-radius: 16px 16px 0 0; color: #fffaf0; }
.fl-head b { font-family: "Amiri", var(--font-display); font-size: 26px; }
.fl-card h2 { font-family: "Amiri", var(--font-display); margin: 0; font-size: 26px; color: var(--em); }
.fl-card h3 { font-size: 15px; margin: 16px 0 8px; color: var(--gold-strong); text-transform: uppercase; letter-spacing: .04em; }
.fl-chips button { font-size: 15px; padding: 9px 14px; }
.fl-q { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.fl-q input { width: 90px; }
.fl-memo { margin: 0; padding-left: 18px; }
.fl-msg { min-height: 1.3em; color: var(--em); font-weight: 600; }
.wz1 .wz-top b { letter-spacing: .12em; font-size: 24px; }
.wz-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 10px 14px; background: #f3ead2; border-bottom: 1px solid var(--gold-line); }
:root[data-theme="dark"] .wz-langs { background: #1c2a20; }
.wz-langs button { border: 1px solid var(--gold-line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.wz-langs button:hover { background: var(--gold-soft); }
.wz-langs button[aria-pressed="true"] { background: var(--em); border-color: var(--em); color: #fffaf0; }
/* checkboxes and radios never shrink: same size on every row, aligned with the first line of their label */
.wz-c, .ft-sec label { align-items: flex-start; line-height: 1.35; }
.wz-c input[type=checkbox], .wz-c input[type=radio], .ft-sec input[type=checkbox], .wz-radios input, .md-goals input[type=checkbox], .dd-chk input[type=checkbox] { flex: none; width: 18px; height: 18px; margin: 1px 0 0; }
/* setup: your own targets */
.wz-checks#wz-mine { display: flex; flex-direction: column; gap: 4px; }
.wz-g { border-bottom: 1px dashed var(--line); padding: 4px 0; }
.wz-grow { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.wz-more { flex: none; border: 0; background: none; color: var(--gold-strong); font: inherit; font-size: 13px; cursor: pointer; padding: 2px 4px; }
.wz-gdet { margin: 6px 0 4px; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.wz-gdet[hidden] { display: none; }
.wz-subrow { display: flex; align-items: center; gap: 10px; justify-content: space-between; font-size: 14px; }
.wz-subrow .grow { flex: 1; }
.wz-qty { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.wz-qty input { width: 78px; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; background: var(--page); color: var(--ink); }
.wz-own { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.wz-own .wz-addrow input#wz-own { flex: 1 1 220px; }
.md-count { display: flex; align-items: center; gap: 6px; }
.md-count .grow { flex: 1; }
.md-count input { width: 70px; }
.wz1 .wz-top { position: relative; }
.wz-x { position: absolute; top: 50%; inset-inline-end: 12px; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(233, 199, 102, .6); background: rgba(255, 255, 255, .08); color: #fffaf0; font-size: 20px; line-height: 1; cursor: pointer; }
.wz-x:hover { background: rgba(255, 255, 255, .18); }
@media (max-width: 700px) { header.top > .wrap { flex-wrap: wrap; } .hdr-tools { flex-wrap: wrap; justify-content: center; width: 100%; } }

/* IndoPak Nastaleeq font made for Quran.com's IndoPak text (QUL / Tarteel, credited on the page) */
@font-face { font-family: "IndoPak Nastaleeq"; src: url("/qfont/indopak.ttf") format("truetype"); font-display: swap; }
.mushaf .end[data-ae] { cursor: pointer; border-radius: 50%; }
.mushaf .end[data-ae]:hover { background: var(--gold-soft); }
.mushaf .end.marked { background: #f3d98f; box-shadow: 0 0 0 2px #e2c06a; }
.ajr-toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 30px); opacity: 0; z-index: 300; background: #07402a; color: #fffaf0; border: 1px solid #e2c06a; padding: 10px 18px; border-radius: 999px; font-size: 15px; transition: opacity .2s, transform .2s; pointer-events: none; }
.ajr-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ayah number: our own gold rosette, the same in every mushaf and in full screen (does not depend on the Quran font) */
.aya-n { display: inline-grid; place-items: center; width: 2.6em; height: 2.6em; font-size: .55em; line-height: 1; vertical-align: middle; margin: 0 .2em;
  background: url(img/theme/ayah.svg) center / contain no-repeat; font-family: "Amiri", "Noto Naskh Arabic", serif !important; font-weight: 700; color: #6b4a08; }
.mline .end.aya-n { font-size: .55em; }
.mushaf .end.aya-n.marked { background-color: #f3d98f; border-radius: 50%; box-shadow: 0 0 0 2px #e2c06a; }
:root[data-theme="dark"] .aya-n { color: #3b2a05; }
.bk-end.aya-n[data-ba] { cursor: pointer; border-radius: 50%; }
.bk-end.aya-n.marked { background-color: #f3d98f; box-shadow: 0 0 0 2px #e2c06a; }

.tb-mini { justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid #e2c06a; background: linear-gradient(#0d5a3c, #07402a); color: #fffaf0; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
html[dir="rtl"] .tb-mini { justify-self: end; }

/* every section is a visible button: main row, then a row of tool buttons (no hidden menu) */
nav.main { flex-direction: column; align-items: center; gap: 10px; }
.nav-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 1100px; }
.nav-tools a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--gold-line); color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none; box-shadow: 0 4px 10px -8px rgba(5, 48, 31, .5); transition: background .15s, transform .15s; }
.nav-tools a:hover { background: var(--gold-soft); transform: translateY(-1px); }
.nav-tools a[aria-current="page"] { background: linear-gradient(#0d5a3c, #07402a); color: #fffaf0; }
.nav-tools a > span[aria-hidden] { font-size: 16px; line-height: 1; }
@media (max-width: 700px) { .nav-tools { gap: 6px; padding: 0 4px; } .nav-tools a { font-size: 13px; padding: 6px 10px; } }
body.wide .nav-tools { display: none; }

/* setup: Muslim / Muslimah picture cards */
.wz-gcards { display: flex; gap: 14px; flex-wrap: wrap; }
.wz-gc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 130px; padding: 12px 10px 10px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.wz-gc:hover { transform: translateY(-2px); }
.wz-gc input { position: absolute; opacity: 0; pointer-events: none; }
.wz-gi { width: 86px; height: 86px; }
.wz-gc b { font-size: 16px; color: var(--ink); }
.wz-gc::after { content: ""; position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--gold-line); background: #fff; }
.wz-gc:has(input:checked) { border-color: var(--em); box-shadow: 0 0 0 3px rgba(11, 90, 59, .18); background: var(--gold-soft); }
.wz-gc:has(input:checked)::after { background: var(--em) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' fill='none' stroke='white' stroke-width='3'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--em); }
.wz-gc:has(input:focus-visible) { outline: 2px solid var(--em); outline-offset: 2px; }
.wz-gf { align-items: flex-start; }

/* hadith: a calm, slightly larger quote box that always starts with "Hadith:" */
.hadith { margin: 6px 0 12px; padding: 12px 16px; border-radius: 12px; background: linear-gradient(135deg, #fbf3dc, #f6ead0); border: 1px solid var(--gold-line); border-inline-start: 4px solid var(--em); font-size: 16.5px; line-height: 1.6; color: var(--ink); font-family: Amiri, Georgia, serif; }
.hadith .hd-l { font-family: Figtree, system-ui, sans-serif; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--em); margin-inline-end: 6px; }
.hadith cite { font-style: normal; font-family: Figtree, system-ui, sans-serif; font-size: 13px; color: var(--muted); white-space: normal; text-align: end; }
:root[data-theme="dark"] .hadith { background: #1d2a1f; }
@media (max-width: 600px) { .hadith { font-size: 15.5px; padding: 10px 12px; } }
/* sunnah prayers: one line per prayer */
.dd-sun { display: flex; flex-direction: column; }
.dd-sun-r { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.dd-sun-r:last-child { border-bottom: 0; }
.dd-sun-r > b { font-size: 16px; }
.dd-sun-r > span { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.dd-sun-r .dd-chk { margin: 0; white-space: normal; text-align: end; }
@media (max-width: 600px) { .dd-sun-r { grid-template-columns: 64px 1fr; gap: 4px; } .dd-sun-r > b { font-size: 15px; } .dd-sun-r > span { gap: 4px 9px; } .dd-sun-r .dd-chk { font-size: 13.5px; gap: 5px; } }

/* Missed prayers (Qada): tidy aligned fields, one card per prayer */
.qd-period { display: grid; grid-template-columns: repeat(3, minmax(0, 110px)) auto; gap: 10px; align-items: end; }
.qd-period label, .qd-ymd2 label, .qd-today2 label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.qd-period .mo-in, .qd-ymd2 .mo-in, .qd-today2 .mo-in { width: 100%; height: 42px; font-size: 16px; text-align: center; box-sizing: border-box; }
.qd-period .mo-btn, .qd-today2 .mo-btn { height: 42px; padding: 0 16px; white-space: normal; text-align: end; }
.qd-note { margin: 10px 0 0 !important; font-size: 13px; }
.qd-p { padding: 14px 0; border-top: 1px solid var(--line); }
.qd-p:first-of-type { border-top: 0; padding-top: 4px; }
.qd-ph { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.qd-ph > b { font-size: 17px; }
.qd-ar { font-family: var(--font-ar, Amiri), serif; font-weight: 400; color: var(--muted); margin-inline-start: 6px; }
.qd-rem { font-size: 13px; color: var(--muted); } .qd-rem b { font-size: 16px; color: var(--em); }
.qd-p .fam-bar { margin: 8px 0 4px; max-width: none; }
.qd-made { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.qd-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: end; }
.qd-ymd2 { display: grid; grid-template-columns: repeat(4, minmax(0, 92px)); gap: 8px; }
.qd-ymd2.qd-one { grid-template-columns: minmax(0, 120px); }
.qd-owed { color: var(--em) !important; font-weight: 600; }
.qd-today2 { display: grid; grid-template-columns: 110px auto auto; gap: 8px; align-items: end; }
@media (max-width: 720px) {
  .qd-period { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qd-period .qd-apply { grid-column: 1 / -1; }
  .qd-grid { grid-template-columns: minmax(0, 1fr); }
  .qd-ymd2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .qd-today2 { grid-template-columns: minmax(0, 1fr) auto auto; }
}
.qd-period { justify-content: start; }
.qd-today2.qd-f { grid-template-columns: auto auto; }
@media (max-width: 720px) { .qd-period { justify-content: stretch; } .qd-today2.qd-f { grid-template-columns: minmax(0, 1fr) auto; } }
/* Set Targets: banner on Family and Reports, and the targets window */
.tg-ban { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 4px 0 16px; padding: 16px 20px; border-radius: 16px; color: #fffaf0; border: 1.5px solid var(--gold-line);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23e2c06a' stroke-opacity='.22' stroke-width='1'%3E%3Crect x='17' y='17' width='22' height='22'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 56px 56px, radial-gradient(120% 160% at 0% 0%, #10704b, #063522); box-shadow: 0 12px 26px -18px rgba(5, 48, 31, .7); }
.tg-ban > div { flex: 1 1 320px; } .tg-ban b { font-size: 18px; color: #f6dc8a; } .tg-ban p { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: #eaf2ec; }
.tg-btn { flex: none; border: 2px solid #f0d27a; background: linear-gradient(#f6dc8a, #d4a73e); color: #1d2a22; font: inherit; font-weight: 800; font-size: 16px; padding: 11px 22px; border-radius: 999px; cursor: pointer; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .5); }
.tg-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
@media (max-width: 600px) { .tg-ban { padding: 14px; } .tg-btn { width: 100%; } }
.wz-tg .wz-langs { display: none; }
.wz-tgintro { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; background: linear-gradient(135deg, #fbf3dc, #f6ead0); border: 1px solid var(--gold-line); border-inline-start: 4px solid var(--em); font-size: 15px; line-height: 1.55; }
.wz-xsec { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.wz-hzadd select { flex: 1 1 160px; min-width: 0; }
.wz-hzadd .wz-qty input { width: 64px; }
.wz-cl { margin-top: 10px; }
.wz-sub2 { display: block; font-size: 14px; margin-bottom: 6px; color: var(--em); }
.wz-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.wz-chip { border: 1px solid var(--gold-line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 13px; cursor: pointer; }
.wz-chip[aria-pressed="true"] { background: var(--em); color: #fffaf0; border-color: var(--em); }
.wz-chip[aria-pressed="true"]::before { content: "✓ "; }
/* Masnoon Hifz */
.hz-intro { margin: 0 0 14px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--gold-line); }
.hz-intro > p:first-child { margin: 0 0 10px; font-size: 15.5px; line-height: 1.6; }
.hz-sum { margin: 0 0 14px; font-size: 15px; } .hz-sum b { font-size: 20px; color: var(--em); } .hz-sum .fam-bar { margin-top: 6px; }
.hz-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.hz-head b { font-size: 17px; }
.hz-no { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--em); color: #f6dc8a; font-weight: 700; font-size: 14px; border: 1.5px solid var(--gold-line); }
.hz-ar { font-family: var(--font-quran); font-size: 20px; color: var(--muted); margin-inline-start: 6px; }
.hz-badge { flex: none; font-size: 12.5px; font-weight: 700; color: #fff; background: #1b7f5b; padding: 3px 10px; border-radius: 999px; }
.hz-card.hz-done { border-color: #1b7f5b; }
.hz-ctl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hz-ctl .mo-in { width: auto; }
.hz-text { margin-top: 12px; padding: 16px 18px; border-radius: 12px; background: #fffdf6; border: 1px solid var(--gold-line); font-family: var(--font-quran); font-size: 28px; line-height: 2.1; text-align: justify; color: var(--ink); }
:root[data-theme="dark"] .hz-text { background: #13201a; }
.hz-bas { text-align: center; margin-bottom: 4px; }
.hz-n { color: #a0782a; font-size: .85em; white-space: normal; text-align: end; }
.hz-h3 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 22px 0 10px; }
@media (max-width: 600px) { .hz-text { font-size: 23px; padding: 12px; line-height: 2; } .hz-ctl .mo-btn, .hz-ctl .mo-in { font-size: 14px; } .hz-read { flex: 1 1 100%; } }
/* ---------- Home page: everything on one screen ---------- */
.hm-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 14px; }
.hm-hero { color: #fffaf0; text-align: center; border-radius: 16px; border: 1.5px solid var(--gold-line); padding: 12px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; text-align: start;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23e2c06a' stroke-opacity='.2' stroke-width='1'%3E%3Crect x='17' y='17' width='22' height='22'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3Cpath d='M0 28h10M46 28h10M28 0v10M28 46v10'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 56px 56px, radial-gradient(120% 120% at 50% 0%, #11724c, #052c1c); box-shadow: 0 14px 30px -20px rgba(5, 48, 31, .8); }
.hm-bas { font-family: var(--font-quran); font-size: 22px; color: #f6dc8a; }
.hm-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); margin: 2px 0 0; color: #fff; line-height: 1.15; }
.hm-ar { font-family: var(--font-ar); font-size: 19px; color: #e9c766; }
.hm-lead { font-size: 14.5px; line-height: 1.55; color: #e3eee6; margin: 8px 0 12px; }
.hm-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hm-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer; text-decoration: none; color: #fffaf0; background: rgba(255,255,255,.06); border: 1.5px solid #e2c06a; }
.hm-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.hm-btn.gold { background: linear-gradient(#f6dc8a, #d4a73e); color: #1d2a22; border-color: #f0d27a; }
.hm-points { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; margin-top: 12px; font-size: 12.5px; color: #cfe3d7; text-align: start; }
.hm-offer { border-radius: 18px; border: 1.5px solid var(--gold-line); background: var(--surface); padding: 12px 14px 14px; }
.hm-h2 { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin: 0 0 10px; text-align: center; }
.hm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.hm-tile { display: grid; grid-template-columns: 38px 1fr; column-gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--page, #fffdf7); border: 1px solid var(--gold-line); color: var(--ink); text-decoration: none; transition: transform .15s, background .15s, border-color .15s; min-height: 64px; }
.hm-tile:hover { transform: translateY(-1px); background: var(--gold-soft); border-color: var(--em); color: var(--ink); }
.hm-ic { grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center; font-size: 19px; border-radius: 10px; background: radial-gradient(circle at 50% 35%, #12704a, #06381f); border: 1.5px solid #e9c766; }
.hm-tile b { font-size: 14px; line-height: 1.2; }
.hm-tile small { font-size: 11.5px; line-height: 1.3; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-top: 12px; }
.hm-steps > div { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: start; }
.hm-steps span { grid-row: 1 / 3; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(#f6dc8a, #d4a73e); color: #1d2a22; font-weight: 800; }
.hm-steps b { font-size: 14px; } .hm-steps p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.35; }
#view-home .free-band { margin-top: 24px; }
@media (max-width: 980px) { .hm-top { grid-template-columns: minmax(0, 1fr); } .hm-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .hm-top { padding-top: 10px; gap: 10px; }
  .hm-hero { padding: 14px 12px; } .hm-lead { font-size: 13.5px; margin: 6px 0 10px; } .hm-points { font-size: 11.5px; }
  .hm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .hm-tile { grid-template-columns: 30px 1fr; padding: 7px 8px; min-height: 48px; column-gap: 8px; }
  .hm-ic { width: 30px; height: 30px; font-size: 16px; border-radius: 8px; }
  .hm-tile b { font-size: 12.5px; } .hm-tile small { display: none; }
  .hm-steps { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

.hm-txt { flex: 1 1 520px; min-width: 0; }
.hm-hero .hm-bas { font-size: 18px; display: block; line-height: 1.4; }
.hm-hero .hm-lead { font-size: 15px; margin: 2px 0 4px; } .hm-hero .hm-lead b { color: #f6dc8a; font-family: var(--font-display); font-weight: 400; font-size: 18px; }
.hm-hero .hm-points { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; font-size: 12.5px; }
.hm-hero .hm-ctas { flex: none; }
.hm-wa { background: #1f9d55 !important; border-color: #9be1b7 !important; color: #fff !important; }
.hm-wa svg { width: 18px; height: 18px; }
.hm-wa[hidden] { display: none; }
@media (min-width: 1100px) { .hm-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } .hm-tile { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; row-gap: 4px; padding: 10px 8px; } .hm-ic { grid-row: auto; } }
@media (max-width: 560px) { .hm-hero { padding: 10px 12px; } .hm-hero .hm-ctas { width: 100%; } .hm-hero .hm-btn { flex: 1 1 auto; justify-content: center; } }

/* Home v3: one large green panel; Bismillah in the middle; all sections inside it */
.hm-panel { position: relative; border-radius: 20px; border: 2px solid var(--gold-line); padding: 22px 22px 18px; text-align: center; color: #fffaf0; box-shadow: 0 18px 40px -24px rgba(5, 48, 31, .9);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23e2c06a' stroke-opacity='.18' stroke-width='1'%3E%3Crect x='17' y='17' width='22' height='22'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3Cpath d='M0 28h10M46 28h10M28 0v10M28 46v10'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 56px 56px, radial-gradient(110% 90% at 50% 0%, #11724c, #052c1c); }
.hm-panel .hm-bas { display: block; font-family: var(--font-quran); font-size: clamp(26px, 3.2vw, 38px); color: #f6dc8a; line-height: 1.5; }
.hm-panel .hm-lead { font-size: clamp(14.5px, 1.4vw, 17px); color: #e3eee6; margin: 2px auto 6px; max-width: 46em; }
.hm-panel .hm-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 0 0 16px; font-size: 13px; color: #cfe3d7; }
.hm-panel .hm-grid { text-align: start; }
.hm-panel .hm-tile { background: rgba(255, 253, 246, .97); border-color: #e2c06a; }
.hm-panel .hm-tile:hover { background: #fff6dc; }
.hm-panel .hm-steps { padding-top: 12px; }
.hm-panel .hm-steps > div { background: rgba(255, 255, 255, .07); border-color: rgba(226, 192, 106, .45); }
.hm-panel .hm-steps b { color: #fff6dc; } .hm-panel .hm-steps p { color: #cfe3d7; }
.hm-foot { margin-top: 12px; } .hm-foot:not(:has(a:not([hidden]))) { display: none; }
.hm-wa { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: 999px; background: #1f9d55; border: 1.5px solid #9be1b7; color: #fff; font-weight: 700; text-decoration: none; font-size: 14px; }
.hm-wa svg { width: 18px; height: 18px; }
:root[data-theme="dark"] .hm-panel .hm-tile { background: #12201a; }
@media (max-width: 560px) { .hm-panel { padding: 16px 10px 12px; border-radius: 16px; } .hm-panel .hm-points { font-size: 11.5px; gap: 2px 10px; margin-bottom: 12px; } }
/* ---------- Home v4: illuminated panel in the manner of a mushaf frame ---------- */
.hx-panel { position: relative; margin-top: 4px; padding: 30px 34px 26px; text-align: center; border-radius: 6px; color: #fffaf0;
  background: url("img/theme/girih.svg") 0 0 / 120px 120px, radial-gradient(120% 90% at 50% 0%, #0f6a46, #04281a 80%);
  border: 3px solid #c99a35; box-shadow: inset 0 0 0 4px #063a26, inset 0 0 0 5.5px #e2c06a, inset 0 0 0 12px rgba(6, 58, 38, .0), 0 20px 44px -26px rgba(4, 40, 26, .9); }
.hx-panel::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(226, 192, 106, .45); border-radius: 3px; pointer-events: none; }
.hx-c { position: absolute; width: 46px; height: 46px; background: url("img/theme/corner.svg") center / contain no-repeat; pointer-events: none; }
.hx-c.tl { top: 8px; left: 8px; } .hx-c.tr { top: 8px; right: 8px; transform: scaleX(-1); } .hx-c.bl { bottom: 8px; left: 8px; transform: scaleY(-1); } .hx-c.br { bottom: 8px; right: 8px; transform: scale(-1); }
.hx-bas { display: inline-block; min-width: min(100%, 460px); box-sizing: border-box; padding: 0 30px 8px; height: 84px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  border-style: solid; border-color: transparent; border-width: 0 62px; border-image: url(img/theme/cartouche.svg) 0 90 fill / 0 62px stretch;
  font-family: var(--font-quran); font-size: clamp(24px, 2.6vw, 32px); color: #1f2a22; text-box: trim-both cap alphabetic; }
.hx-lead { font-family: Marcellus, var(--font-display); font-size: clamp(15px, 1.5vw, 19px); color: #f3ead2; margin: 12px auto 6px; max-width: 44em; line-height: 1.5; }
.hx-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 0; font-size: 13px; color: #e2c06a; letter-spacing: .02em; }
.hx-points span + span::before { content: "◆"; font-size: 8px; vertical-align: 2px; margin: 0 12px; color: #c99a35; }
.hx-rule { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px auto 16px; max-width: 520px; }
.hx-rule i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #e2c06a, transparent); }
.hx-rule b { width: 14px; height: 14px; background: #e2c06a; transform: rotate(45deg); box-shadow: 0 0 0 3px #063a26, 0 0 0 4px #e2c06a; }
.hx-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.hx-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 8px 10px; text-decoration: none; color: #1d2a22; border-radius: 4px;
  background: linear-gradient(#fffcf3, #f7edd3); border: 1px solid #c99a35; box-shadow: inset 0 0 0 3px #fffaf0, inset 0 0 0 4px rgba(201, 154, 53, .55); transition: transform .15s, box-shadow .15s; }
.hx-tile:hover { transform: translateY(-2px); color: #1d2a22; box-shadow: inset 0 0 0 3px #fffaf0, inset 0 0 0 4px #c99a35, 0 10px 20px -12px rgba(0, 0, 0, .55); }
.hx-med { width: 52px; height: 52px; display: grid; place-items: center; background: url("img/theme/khatam.svg") center / contain no-repeat; margin-bottom: 4px; }
.hx-med svg { width: 22px; height: 22px; fill: none; stroke: #f3d983; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hx-tile b { font-family: Marcellus, var(--font-display); font-weight: 400; font-size: 15px; line-height: 1.2; }
.hx-ar { font-family: Amiri, var(--font-ar); font-size: 15px; color: #9a7322; line-height: 1.3; }
.hx-tile small { font-size: 11px; color: #6b6450; line-height: 1.3; }
.hx-foot { margin-top: 14px; } .hx-foot:not(:has(a:not([hidden]))) { display: none; }
:root[data-theme="dark"] .hx-tile { background: linear-gradient(#17271f, #102019); color: #eef0e6; box-shadow: inset 0 0 0 3px #0d1712, inset 0 0 0 4px rgba(201, 154, 53, .55); }
:root[data-theme="dark"] .hx-tile small { color: #a9b5a9; }
@media (max-width: 1180px) { .hx-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 820px) { .hx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .hx-panel { padding: 24px 18px 20px; } }
@media (max-width: 560px) {
  .hx-panel { padding: 20px 12px 16px; } .hx-c { width: 30px; height: 30px; }
  .hx-bas { height: 64px; border-width: 0 44px; border-image-width: 0 44px; padding: 0 10px 6px; min-width: 0; font-size: 22px; }
  .hx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hx-tile { padding: 9px 4px 8px; } .hx-med { width: 42px; height: 42px; } .hx-med svg { width: 18px; height: 18px; }
  .hx-tile b { font-size: 13px; } .hx-ar { font-size: 13px; } .hx-tile small { display: none; }
  .hx-points { font-size: 11.5px; } .hx-points span + span::before { margin: 0 6px; }
}
.tbar button.ib { border: 0; font: inherit; font-size: 15px; cursor: pointer; background: none; position: relative; }
/* Bismillah sits fully inside the gold cartouche (its marks above and below need room) */
.hx-bas { height: 96px; font-size: clamp(21px, 2.1vw, 27px); padding: 0 34px 20px; }
@media (max-width: 560px) { .hx-bas { height: 70px; font-size: 18px; padding: 0 10px 14px; } }
.ju-done { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 12px 0 4px; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--gold-line); }
.ju-btn { font-size: 16px; padding: 10px 22px; }
.ju-ok { margin: 0; flex: 1; color: #0b4a32; font-size: 15.5px; }
.hz-when { display: inline-block; margin: 0 0 8px; padding: 3px 12px; border-radius: 999px; background: var(--gold-soft); border: 1px solid var(--gold-line); font-size: 13px; font-weight: 600; color: #6b4e12; }
.hz-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.hz-whole .hadith { font-size: 17px; }
.hz-hd-ar { display: block; font-family: var(--font-quran); font-size: 24px; line-height: 1.9; color: #1d2a22; margin: 4px 0 6px; text-align: right; }
@media (max-width: 600px) { .hz-hd-ar { font-size: 20px; } }
.hz-ban { margin: 20px 0 12px; padding: 16px 20px; border-radius: 16px; color: #fffaf0; border: 1.5px solid var(--gold-line);
  background: url("img/theme/girih.svg") 0 0 / 120px 120px, radial-gradient(120% 160% at 0% 0%, #10704b, #063522); box-shadow: 0 12px 26px -18px rgba(5, 48, 31, .7); }
.hz-ban b { font-family: Marcellus, var(--font-display); font-weight: 400; font-size: 24px; color: #f6dc8a; }
.hz-ban p { margin: 6px 0 0; font-size: 15.5px; line-height: 1.6; color: #eaf2ec; }
/* references may wrap (long gradings) so nothing runs off the screen */
.hadith cite { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 600px) { .hadith cite { display: block; margin-top: 4px; } .hz-head { align-items: flex-start; } }
/* night deeds bar: starry night sky background only (layout and buttons unchanged) */
.tbar-night { background: url("img/theme/night-sky.svg") 0 0 / 220px 70px, radial-gradient(120% 220% at 50% 0%, #2b3a6b 0%, #18224a 45%, #0b1130 100%); }
/* Reports opens with al-Isra 17:14 */
.rep-aya { margin: 4px 0 18px; padding: 18px 20px 14px; text-align: center; border-radius: 16px; border: 1.5px solid var(--gold-line); color: #fffaf0;
  background: url("img/theme/girih.svg") 0 0 / 120px 120px, radial-gradient(120% 160% at 50% 0%, #10704b, #063522); box-shadow: 0 12px 26px -18px rgba(5, 48, 31, .7); }
.rep-aya-ar { font-family: var(--font-quran); font-size: clamp(26px, 3.2vw, 36px); line-height: 1.9; color: #f6dc8a; }
.rep-aya-tr { font-family: Marcellus, var(--font-display); font-size: clamp(15px, 1.6vw, 18px); color: #eaf2ec; margin-top: 4px; }
.rep-aya-tr[lang="ur"] { font-family: "Noto Nastaliq Urdu", var(--font-ar), serif; line-height: 2; }
.rep-aya-ref { margin-top: 6px; font-size: 12.5px; letter-spacing: .06em; color: #e2c06a; }
.rep-note { margin: -6px 0 18px; padding: 16px 20px; border-radius: 16px; background: linear-gradient(135deg, #fffaf0, #f6ecd2); border: 1.5px solid var(--gold-line); border-inline-start: 5px solid var(--em); }
.rep-note .rn-dear { display: block; font-family: Marcellus, var(--font-display); font-weight: 400; font-size: 20px; color: var(--em); margin-bottom: 4px; }
.rep-note p { margin: 0 0 10px; font-size: 15.5px; line-height: 1.6; }
.rep-note .rn-full { color: #0b4a32; font-weight: 600; }
.rn-todo { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.rn-chip { border: 1px solid var(--gold-line); background: #fff; color: var(--ink); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.rn-chip:hover { background: var(--gold-soft); }
.rn-more { align-self: center; font-size: 13px; color: var(--muted); }
.rep-note[dir="rtl"] { border-inline-start: 5px solid var(--em); }
:root[data-theme="dark"] .rep-note { background: #142219; }
/* the ayah as a mushaf page: cream paper, double gold frame, corner ornaments, dark ink */
.rep-aya { padding: 16px 16px 12px; }
.rep-aya-page { position: relative; max-width: 760px; margin: 0 auto; padding: 22px 34px 18px; border-radius: 6px;
  background: radial-gradient(120% 140% at 50% 0%, #fffdf6, #f6ead0); border: 2px solid #c99a35; box-shadow: inset 0 0 0 4px #fffaf0, inset 0 0 0 5px rgba(201, 154, 53, .6), 0 10px 22px -14px rgba(0, 0, 0, .5); }
.rep-aya-page .hx-c { width: 34px; height: 34px; }
.rep-aya-page .hx-c.tl { top: 6px; left: 6px; } .rep-aya-page .hx-c.tr { top: 6px; right: 6px; } .rep-aya-page .hx-c.bl { bottom: 6px; left: 6px; } .rep-aya-page .hx-c.br { bottom: 6px; right: 6px; }
.rep-aya .rep-aya-ar { font-family: "Amiri Quran", "Scheherazade New", var(--font-quran); font-size: clamp(28px, 3.6vw, 42px); line-height: 2.1; color: #0b3f2a; text-shadow: none; word-spacing: .08em; }
.rep-aya-n { font-family: "Amiri Quran", var(--font-quran); color: #a0782a; font-size: .8em; }
.rep-aya .rep-aya-tr { font-family: Marcellus, Georgia, serif; font-style: normal; font-size: clamp(15px, 1.7vw, 19px); color: #fff6dc; margin-top: 12px; letter-spacing: .01em; }
.rep-aya .rep-aya-ref { margin-top: 4px; }
@media (max-width: 560px) { .rep-aya { padding: 10px 10px 10px; } .rep-aya-page { padding: 16px 18px 12px; } .rep-aya-page .hx-c { width: 22px; height: 22px; } }
/* setup window title in the same style as the Setup button */
.wz1 .wz-top b { display: inline-flex; align-items: center; gap: 9px; font-family: Figtree, system-ui, sans-serif; font-weight: 600; font-size: 19px; letter-spacing: 0; text-transform: none; color: #fffaf0; }
.wz-gear { width: 22px; height: 22px; fill: none; stroke: #e9c766; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* report note centred */
.rep-note { text-align: center; border-inline-start-width: 1.5px; border-top: 4px solid var(--em); }
.rep-note[dir="rtl"] { border-inline-start-width: 1.5px; }
.rep-note .rn-todo { justify-content: center; }
.rep-note p { max-width: 52em; margin-inline: auto; }
.wz-share { margin-inline-start: auto; border: 1.5px solid #e2c06a; background: linear-gradient(#0d5a3c, #07402a); color: #fffaf0; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: normal; text-align: end; }
.wz-share:hover { filter: brightness(1.12); }
.wz-memhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wz-sharebox { margin: 8px 0; }
.wz-sharebox .fl-row { display: flex; flex-wrap: wrap; gap: 6px; }
.wz-sharebox .fl-row input { flex: 1 1 200px; min-width: 0; }
.wz-share { margin-inline-start: auto; border: 1.5px solid #e2c06a; background: linear-gradient(#0d5a3c, #07402a); color: #fffaf0; border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: normal; text-align: end; }
.wz-share:hover { filter: brightness(1.12); }
.wz-memhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wz-sharebox { margin: 8px 0; }
.wz-sharebox .fl-row { display: flex; flex-wrap: wrap; gap: 6px; }
.wz-sharebox .fl-row input { flex: 1 1 200px; min-width: 0; }

/* Guide page banner */
.tut-ban { margin-top: 28px; padding: 34px 40px 30px; }
.tut-ban .eyebrow { color: #e9c96f; letter-spacing: 3px; }
.tut-ban .h1 { color: #fffaf0; margin: 6px 0 8px; }
.tut-ban p { color: #e6efe9; margin: 0 auto; }
.tut-ban + .chapters { justify-content: center; padding-top: 18px; }
@media (max-width: 560px) { .tut-ban { padding: 26px 18px 22px; } }
html[data-ui-rtl] .tut-txt, html[data-ui-rtl] .tut-fig figcaption, html[data-ui-rtl] .tut-ban { direction: rtl; }
html[data-ui-rtl] .tut-txt { text-align: right; }
html[data-ui-rtl] .tut-txt .intro, html[data-ui-rtl] .tut-txt .steps { line-height: 1.9; }

/* Follow us */
.follow-us { display: inline-flex; align-items: center; gap: 6px; }
.follow-us a.fl-li { display: inline-flex; align-items: center; gap: 4px; color: #0a66c2; font-weight: 600; text-decoration: none; }
.follow-us a.fl-li:hover { text-decoration: underline; }
.hx-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hm-li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: #0a66c2; color: #fff !important; font-weight: 600; text-decoration: none; border: 1.5px solid #e2c06a; }
.hm-li svg { width: 18px; height: 18px; }
.hm-li:hover { background: #084f96; }
/* adhan rewards */
.adhan-rw { margin: 12px 0; padding: 10px 14px; border: 1px solid #e2c06a; border-radius: 10px; background: #fbf6e6; }
.adhan-rw h4 { margin: 0 0 6px; color: #0e4a37; }
.adhan-rw ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; }
.adhan-rw cite { color: #6b6b6b; font-style: normal; font-size: 12.5px; }
.adhan-rw bdi { font-family: "Amiri", serif; font-size: 15px; }
.adhan-rw .rw-ar { display: block; margin-top: 6px; font-family: "Amiri", serif; font-size: 17px; line-height: 1.9; text-align: right; color: #0e4a37; }
.sd-rw { margin: 10px 0 4px; border: 1px solid #e2c06a; border-radius: 10px; background: #fbf6e6; padding: 8px 12px; }
.sd-rw summary { cursor: pointer; font-weight: 700; color: #0e4a37; }
.sd-rw ul { margin: 8px 0 2px; padding-inline-start: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.5; }
.sd-rw cite { color: #6b6b6b; font-style: normal; font-size: 12.5px; }
/* salah bar: the prayer of this moment */
.tbar-salah { background: radial-gradient(120% 220% at 50% 0%, #11603f 0%, #0b4a32 55%, #06301f 100%); border-color: #c9a227; }
.tbar-salah .tb-in { flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.tbar-salah .tb-t { color: #fff6dc; }
.tbar-salah .tb-cd { color: #e9d49c; font-size: 14px; }
.tbar-salah .tb-cd b { font-variant-numeric: tabular-nums; color: #fff; font-size: 16px; letter-spacing: .5px; }
.tbar-salah .tb-ok { color: #cfe8d6; font-weight: 600; }
.tbar-s-sunrise, .tbar-s-zawal { background: radial-gradient(120% 220% at 50% 0%, #7a4a12 0%, #5a360c 55%, #3b2306 100%); }
.tbar-s-ishraq, .tbar-s-duha { background: radial-gradient(120% 220% at 50% 0%, #1a6a52 0%, #0f5240 55%, #083528 100%); }
.tbar-s-tahajjud { background: url("img/theme/night-sky.svg") 0 0 / 220px 70px, radial-gradient(120% 220% at 50% 0%, #2b3a6b 0%, #18224a 45%, #0b1130 100%); }
.tbar-salah .tb-note2 { flex-basis: 100%; text-align: center; color: #e6efe9; font-size: 13px; line-height: 1.45; }
.tbar-salah .tb-adh { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 6px; border-top: 1px dashed rgba(233,212,156,.45); }

/* tilawat in paras */
.dd-til .dd-tilt, .dd-til .dd-tilr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.dd-til .dd-tl { font-weight: 600; width: 100%; }
.dd-chipb { border: 1.5px solid var(--gold, #c9a227); background: #fffaf0; color: #1f2a24; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.dd-chipb.on { background: #0e4a37; color: #fff; border-color: #0e4a37; }
.dd-pg { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.dd-num2 { width: 72px; height: 38px; box-sizing: border-box; font: inherit; font-size: 16px; padding: 4px 10px; border: 1.5px solid var(--gold, #c9a227); border-radius: 10px; background: #fff; color: #1f2a24; text-align: center; -webkit-appearance: none; appearance: none; }
.dd-til .dd-tilt[hidden] { display: none; }
.tbar-salah .tb-q { color: #f3dfa8; font-weight: 600; font-size: 14px; }
/* the question and its answers, framed together in a mushaf-style cartouche */
.tbar-salah .tb-ask { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; min-height: 56px; padding: 6px 4px;
  border-style: solid; border-color: transparent; border-width: 0 62px; border-image: url(img/theme/ask-frame.svg) 0 80 fill / 0 62px stretch; }
.tbar-salah .tb-ask .tb-q { font-style: italic; }
@media (max-width: 700px) {
  /* narrow screens: the answers wrap, so a rounded double gold frame with a star medallion on top */
  .tbar-salah .tb-ask { position: relative; border: 1.5px solid #c9a227; border-image: none; border-radius: 18px; padding: 16px 12px 10px; margin-top: 8px; background: rgba(255, 246, 220, .07); box-shadow: inset 0 0 0 4px rgba(11, 74, 50, .9), inset 0 0 0 5px rgba(201, 162, 39, .55); }
  .tbar-salah .tb-ask::before { content: ""; position: absolute; top: -11px; left: 50%; width: 22px; height: 22px; margin-left: -11px; background: url(img/theme/khatam.svg) center / contain no-repeat; }
  .tbar-salah .tb-ask .tb-q { width: 100%; text-align: center; }
}
/* answer buttons in the salah bar: gold capsules with a petal fringe */
.tbar-salah .tb-ask .ib, .tbar-salah .tb-adh .ib { border-style: solid; border-color: transparent; border-width: 7px 26px; border-image: url(img/theme/gold-btn.svg) 14 52 fill / 7px 26px stretch; font-size: 15px; border-radius: 0; background: none; box-shadow: none;
  color: #fff3cf; font-weight: 700; padding: 8px 4px; min-height: 0; line-height: 1.2; text-shadow: 0 1px 1px rgba(0, 0, 0, .45); }
.tbar-salah .tb-adh .ib:hover, .tbar-salah .tb-ask .ib:hover { filter: brightness(1.08) saturate(1.1); }
.tbar-salah .tb-adh .ib:active, .tbar-salah .tb-ask .ib:active { transform: translateY(1px); }
.tbar-salah .tb-adh .ib.tb-done { filter: brightness(1.15); }
.tbar-salah .tb-ask { gap: 4px 6px; }
.tbar-salah .tb-ask .ib::before, .tbar-salah .tb-ask .ib::after, .tbar-salah .tb-adh .ib::before, .tbar-salah .tb-adh .ib::after { display: none; }
/* night mode switch: lit green when on, like a power button */
html[data-theme="dark"] header.top #night { background: radial-gradient(circle at 50% 40%, #6dfc9a 0%, #22c55e 45%, #138a42 100%); border-color: #9dffbf; color: #fff;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, .35), 0 0 12px 3px rgba(74, 222, 128, .75), 0 0 26px 6px rgba(34, 197, 94, .35), inset 0 1px 2px rgba(255, 255, 255, .6); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) header.top #night { background: radial-gradient(circle at 50% 40%, #6dfc9a 0%, #22c55e 45%, #138a42 100%); border-color: #9dffbf; color: #fff;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, .35), 0 0 12px 3px rgba(74, 222, 128, .75), 0 0 26px 6px rgba(34, 197, 94, .35), inset 0 1px 2px rgba(255, 255, 255, .6); }
}
header.top #night { transition: background .25s, box-shadow .25s, border-color .25s; }
/* listen button on adhkar cards */
.adh-play { border: 1.5px solid #c9a227; background: #0e4a37; color: #fff3cf; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.adh-play.on { background: #22c55e; border-color: #9dffbf; color: #fff; box-shadow: 0 0 10px rgba(74, 222, 128, .6); }
/* the word being recited */
.mo-dua .ar .aw, .adh .ar .aw { border-radius: 6px; transition: background .12s, color .12s; }
.mo-dua .ar .aw.hl, .adh .ar .aw.hl { background: #f6dc8a; color: #0b4a32; box-shadow: 0 0 0 3px #f6dc8a; }
.adh-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.adh-playall { border: 1.5px solid #c9a227; background: #0e4a37; color: #fff3cf; border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 700; cursor: pointer; }
.adh-playall.on { background: #22c55e; border-color: #9dffbf; color: #fff; box-shadow: 0 0 12px rgba(74, 222, 128, .6); }
.adh .ar .aw.hl, .adh:has(.adh-play.on) { }
.adh:has(.adh-play.on) { outline: 2px solid #c9a227; outline-offset: 2px; }

/* ---------- salah bars: a sky for each time of day, gold double frame, faint girih ---------- */
.tbar-salah { position: relative; overflow: hidden; border: 1.5px solid #d4af37; border-radius: 20px; padding: 12px 64px 12px;
  box-shadow: inset 0 0 0 4px rgba(0,0,0,.12), inset 0 0 0 5px rgba(233,199,102,.55), 0 6px 18px -10px rgba(6,48,31,.55); }
.tbar-salah::after { content: ""; position: absolute; inset: 0; background: url(img/theme/girih.svg) center / 120px 120px; opacity: .7; pointer-events: none; }
.tbar-salah .tb-in { position: relative; z-index: 1; }
.tbar-salah .tb-head { display: inline-flex; align-items: center; gap: 10px; }
.tbar-salah .tb-head .tb-t { font-family: "Amiri", var(--font-display); font-size: 21px; letter-spacing: .01em; color: #fff6dc; }
.tbar-salah .tb-head .tb-t::before, .tbar-salah .tb-head .tb-t::after { color: #e9c766; }
.tbar-salah .tb-arn { font-family: "Amiri", var(--font-ar); font-size: 20px; color: #e9c766; padding-inline-start: 10px; border-inline-start: 1px solid rgba(233,199,102,.45); line-height: 1.1; }
.tb-sky { width: 30px; height: 30px; flex: none; background: center / contain no-repeat; filter: drop-shadow(0 0 6px rgba(243,217,143,.45)); }
.tb-sky-fajr { background-image: url(img/theme/sky-fajr.svg); }
.tb-sky-sun { background-image: url(img/theme/sky-sun.svg); }
.tb-sky-asr { background-image: url(img/theme/sky-asr.svg); }
.tb-sky-maghrib { background-image: url(img/theme/sky-maghrib.svg); }
.tb-sky-isha { background-image: url(img/theme/sky-isha.svg); }
.tbar-salah .tb-cd { background: rgba(0,0,0,.18); border: 1px solid rgba(233,199,102,.35); border-radius: 999px; padding: 3px 12px; }
.tbar-salah .tb-ok { color: #e3f3e8; }
/* the skies */
.tbar-s-fajr { background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(214,120,110,.28)), radial-gradient(90% 160% at 50% 120%, #8a4d6e 0%, #3c3770 45%, #1a2150 100%); }
.tbar-s-sunrise { background: radial-gradient(90% 170% at 50% 125%, #e0a24a 0%, #a05a24 40%, #4a2a12 100%); }
.tbar-s-ishraq, .tbar-s-duha { background: radial-gradient(110% 200% at 50% 0%, #1f8a6a 0%, #11664c 50%, #08402e 100%); }
.tbar-s-zawal { background: radial-gradient(110% 200% at 50% 0%, #9a6a1c 0%, #6a4510 55%, #3d270a 100%); }
.tbar-s-dhuhr { background: radial-gradient(110% 210% at 50% 0%, #1b8466 0%, #0d5e44 50%, #063826 100%); }
.tbar-s-asr { background: radial-gradient(70% 180% at 85% 0%, rgba(226,170,70,.45) 0%, rgba(226,170,70,0) 60%), radial-gradient(110% 210% at 50% 0%, #136045 0%, #0b4a32 55%, #062f1f 100%); }
.tbar-s-maghrib { background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(235,130,60,.35)), radial-gradient(90% 170% at 50% 125%, #c0562e 0%, #7a2f3c 45%, #351a3c 100%); }
.tbar-s-isha, .tbar-s-tahajjud { background: url(img/theme/night-sky.svg) 0 0 / 220px 70px, radial-gradient(120% 220% at 50% 0%, #2b3a6b 0%, #18224a 45%, #0b1130 100%); }
@media (max-width: 700px) {
  .tbar-salah { padding: 12px 14px; }
  .tbar-salah .tb-head { flex-wrap: wrap; justify-content: center; }
  .tbar-salah .tb-head .tb-t { font-size: 19px; }
}
@media (max-width: 700px) {
  .tbar-salah .tb-arn { border: 0; padding: 0; }
  .tbar-salah .tb-ask { background: rgba(0,0,0,.16); box-shadow: inset 0 0 0 4px rgba(0,0,0,.12), inset 0 0 0 5px rgba(201,162,39,.55); }
}
.mo-dua:has(.adh-play.on) { outline: 2px solid #c9a227; outline-offset: 2px; }
.mo-dua.q-tr-on .mn { background: #f6dc8a; border-radius: 8px; box-shadow: 0 0 0 4px #f6dc8a; }
/* word by word under the Quran duas */
.mo-dua .ar.wbw { line-height: 1.4; }
.mo-dua .ar.wbw .aw { display: inline-flex; flex-direction: column; align-items: center; vertical-align: top; margin: 0 3px 10px; padding: 2px 4px; }
.mo-dua .ar.wbw .aw b { font-weight: inherit; }
.mo-dua .ar.wbw .aw small { font-family: var(--font-ui, system-ui), sans-serif; font-size: 13px; line-height: 1.3; color: #5b6b62; max-width: 9em; text-align: center; margin-top: 2px; }
.mo-dua .ar.wbw-ur .aw small { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif; font-size: 14px; line-height: 1.9; }
.mo-dua .ar.wbw .aw.hl small { color: #0b4a32; }
.mo-dua.q-on { outline: 2px solid #c9a227; outline-offset: 2px; }
.mo-dua.q-intro { background: #fffaf0; }

/* contact */
.ct-list { display: grid; gap: 12px; max-width: 640px; margin: 18px auto 30px; }
.ct-row { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid #e6dcc0; border-radius: 14px; background: #fffaf0; color: inherit; text-decoration: none; }
.ct-row:hover { border-color: #c9a227; }
.ct-ic { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #0b4a32; color: #f3d98f; }
.ct-ic svg { width: 24px; height: 24px; }
.ct-youtube .ct-ic { background: #c4302b; color: #fff; } .ct-whatsapp .ct-ic { background: #25d366; color: #fff; }
.ct-facebook .ct-ic { background: #1877f2; color: #fff; } .ct-linkedin .ct-ic { background: #0a66c2; color: #fff; }
.ct-tx { display: flex; flex-direction: column; gap: 2px; } .ct-tx b { font-size: 1.05rem; } .ct-tx span { font-size: .9rem; opacity: .8; }
.ct-tx .ct-v { opacity: 1; color: #0b4a32; font-weight: 600; }
.q-yt { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding: 12px 16px; border: 1px solid #e6dcc0; border-radius: 14px; background: #fffaf0; color: inherit; text-decoration: none; }
.q-yt:hover { border-color: #c9a227; } .q-yt-ic { flex: none; width: 42px; height: 42px; border-radius: 50%; background: #c4302b; color: #fff; display: grid; place-items: center; font-size: 18px; }
.q-yt b { display: block; } .q-yt span span { font-size: .9rem; opacity: .8; }
/* Learn: Salah step by step */
.ls-bar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 14px 0 8px; }
.ls-bar select { margin-inline-start: 6px; }
.ls-legend { margin: 6px 0 10px; background: #fffaf0; border: 1px solid #e6dcc0; border-radius: 12px; padding: 8px 14px; }
.ls-legend summary { cursor: pointer; font-weight: 600; }
.ls-lg { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 10px 0 4px; font-size: .92rem; }
.ls-lgi b { font-family: var(--font-quran, "Amiri Quran", "Amiri", serif); font-size: 1.35rem; font-weight: 400; margin-inline-end: 4px; }
.ls-note { font-size: .9rem; opacity: .85; background: #f4efe2; border-radius: 10px; padding: 8px 12px; }
.ls-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 18px; }
.ls-jump a { font-size: .85rem; padding: 4px 10px; border: 1px solid #e6dcc0; border-radius: 20px; text-decoration: none; color: inherit; background: #fffaf0; }
.ls-jump a:hover { border-color: #c9a227; }
.ls-step { display: grid; grid-template-columns: 200px 1fr; gap: 6px 22px; padding: 18px; margin: 0 0 16px; border: 1px solid #e6dcc0; border-radius: 16px; background: #fffaf0; scroll-margin-top: 80px; }
.ls-fig { grid-row: span 2; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.ls-fig figure { margin: 0; text-align: center; }
.ls-fig img { width: 190px; height: auto; background: #f4efe2; border-radius: 12px; }
.ls-fig figcaption { font-size: .85rem; font-weight: 600; color: #8a6d12; }
.ls-num { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #8a6d12; }
.ls-step h3 { margin: 2px 0 6px; font-size: 1.25rem; }
.ls-arn { font-family: var(--font-quran, "Amiri", serif); font-weight: 400; color: #0b4a32; margin-inline-start: 8px; }
.ls-pos { font-size: .95rem; margin-bottom: 4px; }
.ls-do { margin: 4px 0 6px; line-height: 1.6; }
.ls-ref { font-size: .8rem; opacity: .7; }
.ls-recs { display: flex; flex-direction: column; gap: 12px; }
.ls-rec { border-top: 1px dashed #e0d3ad; padding-top: 10px; }
.ls-say { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.ls-lbl { font-size: .78rem; font-weight: 700; color: #8a6d12; text-transform: uppercase; letter-spacing: .04em; }
.ls-play { padding: 4px 14px; font-size: .9rem; }
.ls-play.on { background: #8a6d12; }
.ls .ar { font-family: var(--font-quran, "Amiri Quran", "Amiri", serif); font-size: calc(var(--qsize, 28px) * 1.05); line-height: 2.2; text-align: right; color: #0b2a1c; margin: 4px 0; }
.ls .ar .an { font-size: .8em; color: #8a6d12; }
.ls .ar .aw { border-radius: 8px; padding: 0 2px; transition: background .15s; }
.ls .ar .aw.hl { background: #f6dc8a; }
.ls-tr { font-style: italic; color: #375246; margin: 2px 0; }
.ls-mean { margin: 4px 0; line-height: 1.6; }
.ls-mean[dir="rtl"] { font-family: "Noto Nastaliq Urdu", serif; line-height: 2.2; }
.ls-times { font-size: .9rem; color: #0b4a32; font-weight: 600; }
.ls-notr .ls-tr { display: none; }
/* tajweed colours */
.tj-qal { color: #dd0008; } .tj-ghn { color: #ff7e1e; } .tj-ikh { color: #9400a8; } .tj-idgg { color: #169777; } .tj-idg { color: #169200; }
.tj-iql { color: #26bffd; } .tj-ikhs { color: #d500b7; } .tj-idgs { color: #58b800; } .tj-mnor { color: #537fff; } .tj-mper { color: #4050ff; }
.tj-mobl { color: #2144c1; } .tj-mnec { color: #000ebc; } .tj-sil { color: #aaaaaa; }
.ls-notj .ar [class^="tj-"] { color: inherit; }
@media (max-width: 640px) { .ls-step { grid-template-columns: 1fr; padding: 14px; } .ls-fig { grid-row: auto; flex-direction: row; justify-content: center; } .ls-fig img { width: 150px; } }

/* reserve space so the page does not jump while scripts fill it */
#ls-head:empty { min-height: 200px; }
footer .ft-links { max-width: 1100px; margin: 0 auto 10px; padding: 0 16px; text-align: center; font-size: .88rem; line-height: 2; }
footer .ft-links a { white-space: normal; text-align: end; }
.ls-rlab { font-weight: 700; color: #0b4a32; margin-bottom: 2px; }
.time-bars.tb-top { margin: 0; padding: 8px 8px 6px; background: #0f3a28; }
html { overflow-anchor: none; }
.ls-back { margin: 8px 0 0; } .ls-back a { color: inherit; opacity: .85; }
.ls-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 16px 0 30px; }
.ls-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid #e6dcc0; border-radius: 16px; background: #fffaf0; color: #2b2b2b; text-decoration: none; }
.ls-card b { color: #0b4a32; } .ls-card span:not(.ls-ic) { color: #4a4a4a; }
.ls-card:hover { border-color: #c9a227; } .ls-card .ls-ic { font-size: 2rem; } .ls-card b { font-size: 1.2rem; } .ls-card em { font-style: normal; color: #8a6d12; font-weight: 600; margin-top: auto; }
.ls-virt { margin: 10px 0 16px; padding: 14px 18px; border-radius: 14px; background: linear-gradient(135deg, #0f4a33, #0b3a28); color: #fffaf0; }
.ls-virt h3 { margin: 0 0 8px; color: #f3d98f; } .ls-virt ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; } .ls-virt small { opacity: .7; margin-inline-start: 6px; }
/* before the adhan: no big banner; the reward box itself is gold and shines on and off to catch the eye */
.tbar.tbar-adhan { background: none; border: 0; box-shadow: none; padding: 4px 0 6px; min-height: 0; }
.tbar.tbar-adhan::before, .tbar.tbar-adhan::after { display: none; }
.tbar-adhan .tb-in { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.tbar-adhan .tb-t { font-size: 1.15rem; color: #0b4a32; }
.tbar-adhan .tb-t::before, .tbar-adhan .tb-t::after { color: #b8860b; }
.tbar-adhan .tb-cd b { font-size: 1.35rem; font-variant-numeric: tabular-nums; color: #fff8dc; background: #0e4a37; border: 1px solid #d4af37; border-radius: 999px; padding: 1px 16px; }
.tbar-adhan .tb-av { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 7px; width: 100%; max-width: 580px; margin: 2px 0; padding: 14px 16px;
  border-radius: 16px; border: 2px solid #fff1b8; text-align: start; color: #2e2104;
  background: linear-gradient(135deg, #c8961a 0%, #ecc955 25%, #fff2b0 45%, #e2b434 65%, #f6d973 85%, #b8860b 100%); background-size: 220% 220%;
  animation: adhGold 6s ease-in-out infinite, adhGlow 2.4s ease-in-out infinite; }
.tbar-adhan .tb-av::after { content: ""; position: absolute; z-index: -1; pointer-events: none; top: -30%; bottom: -30%; width: 35%; left: -60%; transform: skewX(-22deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.9) 50%, rgba(255,255,255,0)); animation: adhShine 3.2s ease-in-out infinite; }
@keyframes adhShine { 0% { left: -60%; opacity: 0; } 8% { opacity: 1; } 45% { left: 130%; opacity: 1; } 46%, 100% { left: 130%; opacity: 0; } }
@keyframes adhGold { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes adhGlow { 0%, 100% { box-shadow: 0 0 0 2px rgba(184,134,11,.35), 0 4px 16px rgba(212,160,23,.4); } 50% { box-shadow: 0 0 0 4px rgba(255,214,90,.6), 0 0 30px rgba(255,200,40,.85); } }
.tbar-adhan .tb-avq { color: #5a3d00; font-weight: 700; text-align: center; margin-bottom: 2px; }
.tbar-adhan .tb-avi { display: block; line-height: 1.45; font-size: .95rem; }
.tbar-adhan .tb-avi i { font-style: normal; } .tbar-adhan .tb-avi small { color: #5a3d00; opacity: .8; font-size: .75rem; white-space: normal; text-align: end; }
.tbar-adhan .tb-learn { margin-top: 2px; font-weight: 700; }
html.dark .tbar-adhan .tb-t, [data-theme="dark"] .tbar-adhan .tb-t { color: #f3d98f; }
@media (prefers-reduced-motion: reduce) { .tbar-adhan .tb-av, .tbar-adhan .tb-av::after { animation: none; } }
/* adhan lesson: mu'adhdhin + answer buttons, whole-adhan player */
.ls-btns { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.ls-play.ls-muadh { background: #1f4d43; color: #fff8dc; }
.ls-play.ls-muadh.on { background: #8a6d12; }
.ls-full { text-align: center; margin: 14px 0 6px; }
.ls-full .btn { font-size: 1.02rem; padding: 10px 22px; }
.ls-full .btn.on { background: #8a6d12; }
.ls-rec.ls-turn { outline: 2px solid #c9a227; outline-offset: 3px; border-radius: 10px; }
.ls-rec.ls-turn::before { content: attr(data-turn); display: block; font-weight: 700; color: #8a6d12; margin-bottom: 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tbar-adhan .tb-t { color: #f3d98f; } }
.time-bars.tb-top .tbar-adhan .tb-t { color: #f3d98f; }
.tbar-adhan .tb-big { margin: 2px 0 0; font-family: var(--font-display, inherit); font-size: clamp(1.45rem, 4.2vw, 2.2rem); font-weight: 800; line-height: 1.2; color: #0b4a32; letter-spacing: .01em; }
.tbar-adhan .tb-big { background: linear-gradient(90deg, #0b4a32 0%, #0b4a32 35%, #b8860b 45%, #e0a800 50%, #b8860b 55%, #0b4a32 65%, #0b4a32 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: adhText 3.2s linear infinite; filter: drop-shadow(0 1px 0 rgba(0,0,0,.15)); }
@keyframes adhText { 0% { background-position: 100% 0; } 100% { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .tbar-adhan .tb-big { animation: none; } }
.time-bars.tb-top .tbar-adhan .tb-big, [data-theme="dark"] .tbar-adhan .tb-big { background-image: linear-gradient(90deg, #e9c766 0%, #e9c766 35%, #fff6cc 50%, #e9c766 65%, #e9c766 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tbar-adhan .tb-big { background-image: linear-gradient(90deg, #e9c766 0%, #e9c766 35%, #fff6cc 50%, #e9c766 65%, #e9c766 100%); } }
.ls-full .btn.ls-full-f { font-size: .92rem; padding: 8px 16px; background: #5a3d00; }
.ls-full .btn.ls-full-f.on { background: #8a6d12; }
.ls-fig { position: relative; }
.ls-float { position: absolute; z-index: 3; pointer-events: none; white-space: nowrap; font-family: "Amiri Quran", "Amiri", "Scheherazade New", serif; font-size: 22px; font-weight: 700; color: #0b4a32;
  text-shadow: 0 0 6px #fffaf0, 0 0 2px #fffaf0; transform: translate(-50%, 0); animation: lsRise 2.2s ease-out forwards; }
@keyframes lsRise { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.8); } 15% { opacity: 1; } 75% { opacity: .9; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), var(--rise, -120px)) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .ls-float { display: none; } }
/* lesson cards stay light in dark mode, so give them the light-theme text colours */
.ls-legend, .ls-note, .ls-jump a, .ls-step, .ls-card { --ink: #2a2316; --muted: #6e624b; --gold: #b98a12; --gold-strong: #8a6508; --gold-soft: #f0dca0; --line: #e2d3b2; --surface: #f4ead6; --page: #fffaf0; --ok: #2f7d4f; color: var(--ink); color-scheme: light; }
/* adhan lesson, last step: "then make your own dua", centred and in a calligraphic hand */
#ls-ask .ls-txt { text-align: center; display: flex; flex-direction: column; justify-content: center; }
#ls-ask h3 { font-size: 1.7rem; color: #0b4a32; margin: 4px 0 6px; }
#ls-ask .ls-pos { color: #8a6508; font-weight: 600; letter-spacing: .02em; }
#ls-ask .ls-do { font-size: 1.15rem; line-height: 1.9; max-width: 34em; margin: 8px auto; padding: 12px 18px; border-radius: 14px; background: #f6eed8; border: 1px solid #e6dcc0; }
#ls-ask .ls-txt[dir="rtl"] h3, #ls-ask .ls-txt[dir="rtl"] .ls-pos, #ls-ask .ls-txt[dir="rtl"] .ls-do { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif; }
#ls-ask .ls-txt[dir="rtl"] h3 { font-size: 1.9rem; line-height: 2.2; }
#ls-ask .ls-txt[dir="rtl"] .ls-do { font-size: 1.2rem; line-height: 2.5; }
#ls-ask .ls-txt[dir="rtl"] .ls-num { font-family: inherit; }
/* rewards box in the adhan lesson: same shining gold as the pre-adhan notice */
.ls-virt { position: relative; overflow: hidden; isolation: isolate; margin: 12px 0 18px; padding: 18px 20px 14px; border-radius: 18px; border: 2px solid #fff1b8; color: #2e2104;
  background: linear-gradient(135deg, #c8961a 0%, #ecc955 25%, #fff2b0 45%, #e2b434 65%, #f6d973 85%, #b8860b 100%); background-size: 220% 220%;
  animation: adhGold 6s ease-in-out infinite, adhGlow 2.4s ease-in-out infinite; }
.ls-virt::after { content: ""; position: absolute; z-index: -1; pointer-events: none; top: -30%; bottom: -30%; width: 30%; left: -60%; transform: skewX(-22deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.85) 50%, rgba(255,255,255,0)); animation: adhShine 3.6s ease-in-out infinite; }
.ls-virt h3 { text-align: center; font-size: 1.55rem; line-height: 1.6; color: #0b4a32; margin: 0 0 10px; padding: 0 0 8px; border-bottom: 1px solid rgba(90,61,0,.3); text-shadow: 0 1px 0 rgba(255,255,255,.6); }
.ls-virt h3 span { color: #8a5a00; font-size: .8em; }
.ls-virt[dir="rtl"] h3 { font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif; font-size: 1.6rem; line-height: 2.3; }
.ls-virt ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ls-virt li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border-radius: 12px; background: rgba(255, 252, 235, .72); border: 1px solid rgba(140, 98, 0, .3); }
.ls-virt .ls-vi { font-size: 1.25rem; line-height: 1.5; }
.ls-virt li b { display: block; font-weight: 600; color: #2e2104; line-height: 1.55; }
.ls-virt li small { display: block; color: #6b4a00; opacity: .85; font-size: .78rem; margin: 2px 0 0; }
.ls-virt[dir="rtl"] li small { text-align: right; }
@media (prefers-reduced-motion: reduce) { .ls-virt, .ls-virt::after { animation: none; } }
/* recitation blocks: centred, so Arabic, transliteration, meaning and buttons line up in every language */
.ls-rec { text-align: center; }
.ls-rec .ls-say { flex-direction: column; justify-content: center; gap: 6px; }
.ls-rec .ar { text-align: center; }
.ls-rec .ls-tr, .ls-rec .ls-mean, .ls-rec .ls-times, .ls-rec .ls-ref, .ls-rec .ls-rlab { text-align: center; }
.ls-rec .ls-btns { justify-content: center; }
.ls-step .ls-txt { text-align: center; }
.saw { font-family: "Noto Naskh Arabic", "Amiri", serif; font-size: .85em; line-height: 1; }
#ls-ask.ls-askon { box-shadow: 0 0 0 4px #e0b43c, 0 0 40px rgba(224,180,60,.6); transition: box-shadow .4s; }
/* fard / sunnah badge on lesson steps */
.ls-kind { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .03em; padding: 2px 10px; border-radius: 999px; vertical-align: middle; margin-inline-end: 4px; }
.ls-k-fard { background: #0b4a32; color: #fff3cf; border: 1px solid #d4af37; }
.ls-k-sunnah { background: #f3e3b0; color: #6b4a00; border: 1px solid #d4af37; }
.ls-step.ls-nofig { display: block; }
.ls-step.ls-nofig .ls-txt { max-width: 760px; margin: 0 auto; }
/* wudu summary: fard + sunnah lists */
.ls-sum { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; margin: 14px 0; }
.ls-sum > p { grid-column: 1 / -1; margin: 0; font-size: .85rem; color: var(--muted, #6b6b6b); text-align: center; }
.ls-sc { border: 1.5px solid #d4af37; border-radius: 14px; padding: 10px 16px; background: var(--card, #fffbef); }
.ls-sc h3 { margin: 0 0 6px; font-size: 1.05rem; text-align: center; }
.ls-sc-f { background: #0b4a32; color: #fff3cf; } .ls-sc-f h3, .ls-sc-f a { color: #fff3cf; } .ls-sc-f small { color: #e9d48a; }
.ls-sc-s { background: #fff7dc; color: #2e2400; } .ls-sc-s h3 { color: #6b4a00; } .ls-sc a { text-decoration: none; color: inherit; } .ls-sc a:hover { text-decoration: underline; }
.ls-sc ol { margin: 0; padding-inline-start: 1.4em; line-height: 1.9; } .ls-sc small { font-size: .72rem; opacity: .75; white-space: normal; text-align: end; }
.ls-sc-s ol { columns: 2; column-gap: 22px; } .ls-sc-s li { break-inside: avoid; }
@media (max-width: 760px) { .ls-sum { grid-template-columns: 1fr; } .ls-sc-s ol { columns: 1; } }
/* warning box (e.g. wasting water) */
.ls-warn { border: 2px solid #b3261e; border-radius: 14px; background: #fdecea; color: #4a0d09; padding: 10px 18px; margin: 14px 0; box-shadow: 0 0 0 4px rgba(179,38,30,.08); }
.ls-warn h3 { margin: 0 0 6px; text-align: center; color: #b3261e; font-size: 1.15rem; font-weight: 800; }
.ls-wi { text-align: center; padding: 6px 0; border-top: 1px dashed rgba(179,38,30,.3); } .ls-wi:first-of-type { border-top: 0; }
.ls-wi p { margin: 2px 0; font-weight: 600; } .ls-wi small { font-size: .74rem; opacity: .75; }
.ls-war { font-family: var(--font-ar, "Amiri"), serif; font-size: 1.5rem; font-weight: 400 !important; line-height: 1.9; }
/* water amounts */
.ls-water { border: 2px solid #2a7fb8; border-radius: 14px; background: #eaf5fc; color: #0d2f45; padding: 10px 16px; margin: 14px 0; }
.ls-water h3 { margin: 0 0 8px; text-align: center; color: #1b5f8c; font-size: 1.15rem; font-weight: 800; }
.ls-wg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ls-water .ls-wi { background: #fff; border: 1px solid #b9dcf2; border-radius: 10px; padding: 8px 10px; border-top: 1px solid #b9dcf2; }
.ls-wbig { display: block; font-size: 1.08rem; color: #1b5f8c; margin-bottom: 4px; }
.ls-water .ls-wi p { font-weight: 500; font-size: .92rem; }
.ls-wn { margin: 8px 0 0; text-align: center; font-size: .8rem; opacity: .8; }
@media (max-width: 760px) { .ls-wg { grid-template-columns: 1fr; } }
.ls-pdf { margin: 12px 0 4px; } .ls-pdf .btn { background: linear-gradient(135deg,#c8961a,#ffe7a0 45%,#d9a53e); color: #2c1d00 !important; border: 2px solid #fff0b8; font-weight: 800; text-decoration: none; padding: 8px 22px; border-radius: 999px; display: inline-block; }
.datebar .db-contact { color: #f3d98f !important; }
.datebar .wrap { max-width: 1260px; gap: 2px 12px; }
.hdr-search { display: none !important; }
.dd-tabs { margin-bottom: 14px; }
@media (min-width: 1181px) { .hx-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 1181px) { .hx-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
/* salah bar in gold */
.tbar-salah { background: linear-gradient(100deg, #b8860b 0%, #e9c766 22%, #fff3c4 40%, #f0d27a 55%, #c99a2e 78%, #a8780a 100%); border-color: #8a6410; box-shadow: 0 4px 18px rgba(120, 85, 10, .28), inset 0 1px 0 rgba(255,255,255,.6); }
.tbar-salah .tb-t { color: #2c1d00; text-shadow: 0 1px 0 rgba(255,255,255,.45); }
.tbar-salah .tb-cd { color: #4a3300; } .tbar-salah .tb-cd b { color: #0b4a32; }
.tbar-salah .tb-q { color: #3b2800; }
.tbar-salah .tb-ok { color: #0b4a32; }
.time-bars.tb-top .tbar-salah .tb-t, .time-bars.tb-top .tbar-salah .tb-q { color: #2c1d00; }
.tbar-salah .tb-note2 { color: #3b2800; } .tbar-salah .tb-adh { border-top-color: rgba(90,60,0,.35); }
.tbar-salah .tb-head .tb-t { color: #2c1d00; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.tbar-salah .tb-head .tb-t::before, .tbar-salah .tb-head .tb-t::after { color: #8a6410; }
.tbar-salah .tb-arn { color: #5a3c00; border-inline-start-color: rgba(90,60,0,.35); }
.tbar-salah .tb-cd { background: rgba(255,250,235,.55) !important; border-color: rgba(90,60,0,.35) !important; }
.tbar-salah .tb-cd.tb-late { background: #b3261e !important; color: #fff !important; border-color: #7a140f !important; font-weight: 700; animation: adhGlow 1.6s ease-in-out infinite; }
@media (max-width: 700px) { header.top .time-bars.tb-top { flex: 0 0 100%; width: 100%; order: 1; background: transparent; padding: 6px 0 4px; margin: 0; }
  header.top .brand { order: 0; } header.top .hdr-tools, header.top nav { order: 2; } }
/* language: a round globe; the real select sits invisibly on top so a tap opens the list of languages */
header.top .ui-lang { position: relative; width: 44px; height: 44px; padding: 0; border-radius: 50%; justify-content: center; gap: 0; }
header.top .ui-lang > span { font-size: 22px; line-height: 1; pointer-events: none; }
header.top .ui-lang select { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
header.top .ui-lang:focus-within { box-shadow: 0 0 0 3px rgba(233,199,102,.55); }
@media (max-width: 700px) {
  header.top .wrap { position: relative; }
  header.top .ui-lang { position: absolute; top: 10px; right: 10px; left: auto; z-index: 5; width: 40px; height: 40px; }
  .datebar .db-widget { display: none !important; }
}
.datebar .ui-lang { position: relative; width: 30px; height: 30px; padding: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); border: 1px solid rgba(233,199,102,.6); }
.datebar .ui-lang > span { font-size: 17px; line-height: 1; pointer-events: none; }
.datebar .ui-lang select { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; opacity: 0; cursor: pointer; }
.datebar .ui-lang:hover { background: rgba(233,199,102,.2); }
/* computer: Calendar sits between the Hijri and the Gregorian date */
@media (min-width: 701px) { .datebar .wrap > * { order: 5; } .datebar .wrap > .hij-grp { order: 1; } .datebar .wrap > .db-cal { order: 2; } .datebar .wrap > .sep { order: 3; } }
/* calendar header: centred, Hijri and Gregorian side by side */
#view-calendar .cal-wrap > .eyebrow, #view-calendar .cal-wrap > .h1 { text-align: center; }
#view-calendar .cal-nav { justify-content: center; gap: 14px; }
#view-calendar .cal-opt { display: flex; justify-content: center; }
#view-calendar .cal-title { display: flex; gap: 12px; min-width: 0; align-items: stretch; }
.ct-box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 22px; border-radius: 16px; min-width: 220px; }
.ct-box b { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.2; }
.ct-lab { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ct-h { background: #0b4a32; color: #fff6dc; border: 2px solid #d4af37; } .ct-h .ct-lab { color: #e9c766; } .ct-h .ar { font-family: var(--font-ar); font-size: 20px; color: #f3d98f; }
.ct-g { background: linear-gradient(135deg, #f6e3a6, #fff6d6 50%, #ecd28a); color: #2c1d00; border: 2px solid #d4af37; } .ct-g .ct-lab { color: #7a5200; }
@media (max-width: 700px) { .ct-h .ar { font-size: 16px; } #view-calendar .cal-title { order: -1; flex: 0 0 100%; justify-content: center; } .ct-box { min-width: 0; flex: 1; padding: 8px 10px; } .ct-box b { font-size: 18px; } }
@media (min-width: 701px) { .ct-box { width: 400px; flex: 0 0 400px; } .ct-box b { font-size: 22px; } }
@media (max-width: 700px) { .ct-box { flex: 1 1 0; width: 0; } }
/* date converter */
.ct-box[data-conv] { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.ct-box[data-conv]:hover, .ct-box[data-conv]:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(120,85,10,.28); outline: none; }
.ct-tap { font-size: 11.5px; font-weight: 700; opacity: .8; margin-top: 2px; }
.ct-h .ct-tap { color: #e9c766; } .ct-g .ct-tap { color: #7a5200; }
.cal-conv { max-width: 640px; margin: 4px auto 14px; padding: 14px 18px; border: 2px solid #d4af37; border-radius: 16px; background: var(--surface, #fffdf6); text-align: center; }
.cal-conv h3 { margin: 0 0 10px; font-size: 17px; color: var(--ink); }
.cc-row { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.cc-row select, .cc-row input { font: inherit; font-size: 16px; padding: 8px 10px; border: 1px solid var(--gold, #d4af37); border-radius: 10px; background: var(--bg, #fff); color: var(--ink); }
.cc-row input[type=number] { width: 96px; }
.cc-out { margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cc-big { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: #0b4a32; }
.cc-ar { font-family: var(--font-ar); font-size: 22px; color: var(--gold-strong, #8a6410); } .cc-sub { font-size: 14px; color: var(--muted); }
.cc-err { color: #b3261e; font-weight: 600; margin: 0; }
html.dark .cc-big, [data-theme="dark"] .cc-big { color: #e9c766; }
.cc-out { gap: 8px; } #cc-out { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.cal-convnote { text-align: center; font-size: 13px; color: var(--muted); margin: 0 auto 10px; max-width: 760px; line-height: 1.8; }
.cc-two { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.cc-side { border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cc-hs { background: #0b4a32; color: #fff6dc; border: 2px solid #d4af37; } .cc-hs .ct-lab { color: #e9c766; } .cc-hs .cc-ar { color: #f3d98f; }
.cc-gs { background: linear-gradient(135deg, #f6e3a6, #fff6d6 50%, #ecd28a); color: #2c1d00; border: 2px solid #d4af37; } .cc-gs .ct-lab { color: #7a5200; } .cc-gs .cc-sub { color: #4a3300; font-weight: 600; }
.cc-eq { font-size: 28px; font-weight: 800; color: #b8860b; }
.cc-btns { display: flex; gap: 10px; justify-content: center; margin-top: 10px; }
.cal-conv { max-width: 900px; } .cc-hs select, .cc-hs input { background: #fffaf0; color: #1d2a22; }
@media (max-width: 700px) { .cc-two { grid-template-columns: 1fr; } .cc-eq { transform: rotate(90deg); line-height: 1; } }
.cal-conv { box-sizing: border-box; } .cc-side { min-width: 0; box-sizing: border-box; } .cc-row select, .cc-row input { max-width: 100%; box-sizing: border-box; }
@media (max-width: 700px) { .cal-conv { padding: 12px 10px; margin-inline: 0; } }
/* phones: sections open clean, with a small sticky Home / Back bar */
#sec-bar { display: none; }
@media (max-width: 700px) {
  body:not([data-view="home"]) #datebar, body:not([data-view="home"]) header.top { display: none !important; }
  body:not([data-view="home"]) #sec-bar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 50; padding: 8px 12px; background: #0b3d2a; color: #fff6dc; border-bottom: 2px solid #d4af37; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
  #sec-bar .sb-back, #sec-bar .sb-home { flex: 0 0 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(233,199,102,.7); background: rgba(255,255,255,.06); color: #f3d98f; font-size: 22px; display: flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; padding: 0; }
  #sec-bar .sb-t { flex: 1; text-align: center; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  [dir="rtl"] #sec-bar .sb-back { transform: scaleX(-1); }
}
#adh-list { min-width: 0; } #adh-list > .adh, .adh { min-width: 0; max-width: 100%; box-sizing: border-box; } .adh .ar { overflow-wrap: anywhere; }
.adh-list { grid-template-columns: minmax(0, 1fr); }
.dd-durood { min-width: 0; max-width: 100%; overflow: hidden; } .dd-durood select { width: 100%; text-overflow: ellipsis; }
html, body { overflow-x: clip; }
/* nafl rak'ahs: one dropdown instead of four big buttons */
.tb-ask-dd { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.tb-ask-dd .tb-q { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tb-nsel { font: inherit; font-weight: 700; font-size: 16px; padding: 9px 38px 9px 16px; border-radius: 999px; border: 2px solid #d4af37; background: #0b4a32 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23f3d98f' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; color: #fff6dc; appearance: none; -webkit-appearance: none; cursor: pointer; }
[dir="rtl"] .tb-nsel { background-position: left 14px center; padding: 9px 16px 9px 38px; }
.tbar-salah .tb-ask.tb-ask-dd { border: 0 !important; background: none !important; box-shadow: none !important; padding: 4px 0 !important; min-height: 0 !important; margin-top: 6px; border-image: none !important; }
.tbar-salah .tb-ask.tb-ask-dd::before, .tbar-salah .tb-ask.tb-ask-dd::after { display: none !important; }
/* adhkar counter: one wide button across the card, easy to tap with either hand */
.adh-foot { flex-direction: column; align-items: stretch; gap: 6px; }
.adh-count { width: 100%; min-height: 62px; font-size: 24px; border-radius: 18px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.adh-foot > :not(.adh-count) { align-self: center; }
.adh-all { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; padding: 4px 0; }
.adh-all input { width: 20px; height: 20px; accent-color: #b8860b; }
/* reward line on the nafl banners */
.tbar-salah .tb-virt { display: block; flex-basis: 100%; max-width: 640px; margin: 6px auto 2px; padding: 6px 14px; border-radius: 12px; background: rgba(255, 250, 235, .55); border: 1px solid rgba(138, 100, 16, .35); color: #3b2800; font-size: 14px; font-weight: 600; line-height: 1.6; text-align: center; }
.tbar-salah .tb-virt small { display: block; font-size: 11px; font-weight: 600; color: #7a5200; opacity: .85; }
[lang="ur"] .tbar-salah .tb-virt, .tbar-salah[dir="rtl"] .tb-virt { line-height: 2; }
.ct-row { position: relative; } .ct-act { margin-inline-start: auto; align-self: center; background: #0b4a32; color: #fff6dc; border: 1.5px solid #d4af37; border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: 14px; white-space: normal; text-align: end; }
.ct-youtube .ct-act { background: #c4302b; border-color: #ffb3a8; color: #fff; } .ct-facebook .ct-act { background: #1877f2; border-color: #bcd6fb; color: #fff; } .ct-whatsapp .ct-act { background: #1f9e55; border-color: #b8ecc9; color: #fff; }
.ct-news { margin-top: 14px; border: 2px solid #d4af37; border-radius: 18px; padding: 16px; background: linear-gradient(135deg, #fff8e1, #fff3cf); text-align: center; }
.ct-news b { font-size: 18px; color: #0b4a32; } .ct-news p { margin: 4px 0 10px; }
.cn-row { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; } .cn-row input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 12px; border: 1px solid #d4af37; background: #fff; }
.ct-news .linkish { margin-top: 8px; font-size: 13px; } .cn-msg { font-weight: 600; color: #0b4a32; min-height: 1em; }
#ct-list, .ct-list { grid-template-columns: minmax(0, 1fr) !important; max-width: 100%; } .ct-row, .ct-news { min-width: 0; max-width: 100%; box-sizing: border-box; } .ct-tx { min-width: 0; }
@media (max-width: 700px) { .ct-row { flex-wrap: wrap; } .ct-act { margin-inline-start: 0; flex-basis: 100%; text-align: center; } .cn-row { flex-direction: column; } }
.datebar .db-subs { background: none; border: 0; cursor: pointer; font: inherit; padding: 0; }
.subs-dlg { border: 2px solid #d4af37; border-radius: 18px; padding: 0; max-width: min(420px, 92vw); background: #fffaf0; color: #1d2a22; }
.subs-dlg::backdrop { background: rgba(0,0,0,.45); }
.sd-in { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; } .sd-in h3 { margin: 0; color: #0b4a32; text-align: center; } .sd-in p { margin: 0; font-size: 14px; text-align: center; }
.sd-o { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e6dcc0; border-radius: 12px; font-weight: 700; cursor: pointer; background: #fff; }
.sd-o input { width: 20px; height: 20px; accent-color: #0b4a32; }
.sd-em { font: inherit; font-size: 16px; padding: 9px 12px; border: 1px solid #d4af37; border-radius: 10px; }
.sd-b { display: flex; justify-content: center; gap: 14px; align-items: center; margin-top: 4px; }
.sd-next { display: flex; flex-direction: column; gap: 8px; } .sd-go { display: block; text-align: center; padding: 11px; border-radius: 12px; color: #fff; font-weight: 800; text-decoration: none; background: #0b4a32; }
.sd-youtube { background: #c4302b; } .sd-facebook { background: #1877f2; } .sd-whatsapp { background: #1f9e55; } .sd-linkedin { background: #0a66c2; } .sd-did { opacity: .6; }
.sd-ok { color: #0b4a32; font-weight: 700; } .sd-err { color: #b3261e; font-weight: 700; }
/* top bar: SUBSCRIBE | CONTACT | SHARE WEBSITE, all the same plain style */
.datebar .db-links { display: inline-flex; align-items: center; gap: 10px; }
.datebar .db-lnk, .datebar .db-share.db-lnk { background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0; color: #f3d98f !important; font: inherit; font-size: 13px !important; font-weight: 700 !important; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; border-radius: 0; min-height: 0; }
.datebar .db-share.db-lnk svg { display: none; }
.datebar .db-lnk:hover { text-decoration: underline; color: #fff3cf !important; }
.datebar .db-bar { color: rgba(243,217,143,.5); font-weight: 400; }
.sd-ic { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; color: #fff; }
.sd-ic svg { width: 17px; height: 17px; }
.sd-ic-news { background: #0b4a32; color: #f3d98f; } .sd-ic-youtube { background: #ff0000; } .sd-ic-facebook { background: #1877f2; } .sd-ic-whatsapp { background: #25d366; } .sd-ic-linkedin { background: #0a66c2; }
.sd-go { display: flex; align-items: center; justify-content: center; gap: 10px; } .sd-go .sd-ic { background: rgba(255,255,255,.18); }
/* header: no % button; moon and Sign in sit with the language globe */
#score-btn { display: none !important; }
@media (max-width: 700px) {
  header.top .hdr-tools { position: absolute; top: 10px; right: 10px; left: auto; display: flex; align-items: center; gap: 6px; z-index: 5; margin: 0; padding: 0; width: auto; }
  header.top .hdr-tools .ui-lang { position: relative; top: auto; right: auto; width: 38px; height: 38px; }
  header.top .hdr-tools #night { width: 38px; height: 38px; min-width: 38px; padding: 0; font-size: 18px; }
  header.top .hdr-tools #signin { height: 38px; min-height: 38px; padding: 0 12px; font-size: 13px; white-space: normal; text-align: end; }
  header.top .brand { padding-right: 150px; }
}
@media (max-width: 700px) {
  header.top .hdr-tools #signin { width: 38px; padding: 0; justify-content: center; border-radius: 50%; }
  header.top .hdr-tools #signin > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  header.top .hdr-tools #signin .si-ic { width: 18px; height: 18px; margin: 0; }
  header.top .brand { padding-right: 0; max-width: calc(100% - 136px); }
  header.top .brand .name, header.top .brand b, header.top .brand-name { font-size: 30px; }
}
@media (max-width: 700px) { header.top .brand-txt small { font-size: 12px; white-space: nowrap; letter-spacing: .02em; } header.top .brand img { width: 64px; height: auto; } }
.tbar-salah .tb-adh { flex-direction: column; align-items: center; gap: 6px; }
.tbar-salah .tb-adhchk { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #3b2800; cursor: pointer; }
.tbar-salah .tb-adhchk input { width: 20px; height: 20px; accent-color: #0b4a32; }

/* salah banner, compact: title + countdown on one line, the virtue as a plain line, then rak'ahs, adhkar and the tick side by side */
.tbar-salah .tb-in { gap: 8px 14px; align-items: center; }
.tbar-salah .tb-head { order: 1; } .tbar-salah .tb-cd { order: 2; }
.tbar-salah .tb-virt { order: 3; flex-basis: 100%; max-width: none; margin: 0; padding: 0; background: none; border: 0; font-size: 14px; line-height: 1.6; }
.tbar-salah .tb-virt small { display: inline; margin-inline-start: 6px; }
.tbar-salah .tb-ask, .tbar-salah .tb-ok, .tbar-salah .tb-note2 { order: 4; }
.tbar-salah .tb-ask-dd { min-height: 0; padding: 0; margin: 0; border: 0; box-shadow: none; background: none; }
.tbar-salah .tb-ask-dd::before { display: none; }
.tbar-salah .tb-adh { order: 5; flex-basis: auto; flex-direction: row; align-items: center; border-top: 0; padding-top: 0; gap: 12px; }
.tbar-salah .tb-adh .ib { border: 2px solid #d4af37; border-image: none; border-radius: 999px; background: #0b4a32; color: #fff6dc; padding: 10px 20px; font-size: 16px; font-weight: 700; }
.tbar-salah .tb-adh .ib.tb-done { background: #1d7a50; }
/* rak'ahs dropdown and adhkar button: the same size */
.tbar-salah .tb-nsel, .tbar-salah .tb-adh .ib { box-sizing: border-box; height: 46px; min-width: 220px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; line-height: 1; padding-top: 0; padding-bottom: 0; }
.tbar-salah .tb-nsel { display: inline-block; text-align: center; text-align-last: center; }
.adh-recited { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #0b4a32; cursor: pointer; padding: 6px 14px; border: 2px solid #d4af37; border-radius: 999px; background: #fffaf0; }
.adh-recited input { width: 20px; height: 20px; accent-color: #0b4a32; }
.ct-instagram .ct-ic, .sd-ic-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); color: #fff; }
.ct-tiktok .ct-ic, .sd-ic-tiktok { background: #000; color: #fff; }
.ct-x .ct-ic, .sd-ic-x { background: #000; color: #fff; }
.ct-telegram .ct-ic, .sd-ic-telegram { background: #229ed9; color: #fff; }
/* 2027 calendar download on the home page */
.cal27 { text-align: center; margin: 22px auto 8px; }
.cal27-h { font-family: var(--serif, Georgia, serif); color: #0b4a32; margin: 0 0 12px; }
.cal27-h small { color: #8a6410; font-size: .7em; font-weight: 600; }
.cal27-row { display: flex; justify-content: center; align-items: stretch; gap: 16px; flex-wrap: wrap; }
.cal27-card { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fffcf2; border: 2px solid #d4af37; border-radius: 14px; padding: 10px 10px 12px; cursor: pointer; font: inherit; color: #0b4a32; box-shadow: 0 4px 14px rgba(11,74,50,.12); transition: transform .15s; }
.cal27-card:hover { transform: translateY(-2px); }
.cal27-card img { display: block; height: 220px; width: auto; border-radius: 8px; }
.cal27-m img { width: 124px; object-fit: cover; object-position: top; }
.cal27-card b { font-size: 16px; margin-top: 6px; } .cal27-card small { color: #8a6410; font-weight: 600; }
.cal27-dlg { border: 2px solid #d4af37; border-radius: 16px; padding: 16px; max-width: min(860px, 94vw); background: #fffcf2; }
.cal27-dlg::backdrop { background: rgba(0,0,0,.5); }
.cal27-dlg h3 { margin: 0 0 12px; color: #0b4a32; text-align: center; }
.cal27-opts { display: grid; gap: 12px; margin-bottom: 10px; }
.cal27-od { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } .cal27-om { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cal27-o { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.cal27-o img { width: 100%; border-radius: 8px; border: 1px solid #e3d6ad; }
.cal27-om .cal27-o img { max-height: 46vh; width: auto; max-width: 100%; }
.cal27-o span { color: #fff6dc; border: 2px solid #d4af37; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 14px; }
.cal27-dlg .linkish { display: block; margin: 4px auto 0; }
@media (max-width: 600px) { .cal27-card img { height: 160px; } .cal27-m img { width: 90px; } }
.cal27-o span { white-space: normal; text-align: end; }
.cal27-opts { display: block; max-height: 74vh; overflow: auto; }
.cal27-lang { margin-bottom: 14px; } .cal27-lang > b { display: block; color: #8a6410; margin-bottom: 6px; text-align: center; }
.cal27-cs { display: grid; gap: 10px; }
.cal27-od .cal27-cs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cal27-om .cal27-cs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cal27-om .cal27-o img { max-height: 30vh; }
@media (max-width: 600px) { .cal27-od .cal27-cs { grid-template-columns: 1fr 1fr 1fr; } .cal27-o span { font-size: 12px; padding: 5px 8px; } }
/* 2027 calendar maker (Calendar section) */
.cmk { margin: 28px 0 10px; background: #fffcf2; border: 2px solid #d4af37; border-radius: 16px; padding: 18px; }
.cmk-h { margin: 0 0 4px; color: #0b4a32; font-family: var(--serif, Georgia, serif); }
.cmk-s { margin: 0 0 14px; color: #555; }
.cmk-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; margin-bottom: 14px; }
.cmk-f { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: #0b4a32; }
.cmk-f > span { font-size: 14px; }
.cmk-f select { padding: 9px 10px; border: 2px solid #d4af37; border-radius: 10px; background: #fff; font: inherit; font-weight: 600; color: #1d2a22; }
.cmk-seg { display: flex; gap: 6px; flex-wrap: wrap; }
.cmk-seg button { flex: 1; min-width: 0; padding: 9px 10px; border: 2px solid #d4af37; border-radius: 10px; background: #fff; font: inherit; font-weight: 700; color: #0b4a32; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.cmk-seg button[aria-pressed="true"] { background: #0b4a32; color: #fff6dc; }
.cmk-cols i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #d4af37; display: inline-block; }
.cmk-prev { position: relative; text-align: center; background: #f3ecd6; border-radius: 12px; padding: 10px; min-height: 120px; }
.cmk-prev canvas { max-width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.18); }
.cmk-isMob .cmk-prev canvas { max-height: 80vh; width: auto; }
.cmk-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #0b4a32; background: rgba(243,236,214,.85); border-radius: 12px; }
.cmk-wait[hidden] { display: none; }
.cmk-dl { display: block; margin: 14px auto 0; font-size: 17px; padding: 12px 24px; }
.cmk-cols i { flex: none; }
.cmk-adjf { grid-column: span 2; } .cmk-adj button { flex: 1 0 44px; }
.cmk-hint { font-weight: 500; color: #555; font-size: 13px; line-height: 1.5; }
@media (max-width: 600px) { .cmk-adjf { grid-column: auto; } }
/* calendar section: space between today's dates and the converter, bigger converter heading */
#view-calendar .cal-nav { margin-bottom: 26px; }
.cal-conv { margin-top: 26px; }
.cal-conv h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.2; color: #0b4a32; margin: 4px 0 16px; }
@media (max-width: 700px) { .cal-conv h3 { font-size: 19px; } }
/* "print your 2027 calendar" advert on home and the blinking link in the calendar section */
.cmk-ad { display: flex; align-items: center; gap: 16px; text-decoration: none; background: linear-gradient(135deg, #0b4a32, #11603f 60%, #0b4a32); border: 2px solid #d4af37; border-radius: 16px; padding: 10px 16px; color: #fff6dc; box-shadow: 0 6px 18px rgba(11,74,50,.2); }
.cmk-ad img { width: 150px; height: auto; border-radius: 8px; border: 1px solid #d4af37; flex: none; }
.cmk-ad-t { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.cmk-ad-t b { font-family: var(--font-display); font-size: 24px; color: #fff; }
.cmk-ad-t small { color: #f3d98f; font-size: 14px; }
.cmk-ad-go { flex: none; background: linear-gradient(135deg, #f6e3a6, #e9c766); color: #0b4a32; font-weight: 800; border-radius: 999px; padding: 10px 18px; animation: cmkPulse 1.6s ease-in-out infinite; }
.cmk-ad:hover .cmk-ad-go { filter: brightness(1.06); }
@media (max-width: 640px) { .cmk-ad { flex-wrap: wrap; gap: 10px; padding: 10px; } .cmk-ad img { width: 96px; } .cmk-ad-t b { font-size: 19px; } .cmk-ad-go { width: 100%; text-align: center; } }
.cmk-blink { display: block; width: max-content; max-width: 100%; margin: 0 auto 4px; text-decoration: none; font-weight: 800; color: #0b4a32; background: #fff6d6; border: 2px solid #d4af37; border-radius: 999px; padding: 8px 18px; animation: cmkBlink 1.4s ease-in-out infinite; }
@keyframes cmkBlink { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(212,175,55,.6); } 50% { opacity: .55; box-shadow: 0 0 0 8px rgba(212,175,55,0); } }
@keyframes cmkPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .cmk-blink, .cmk-ad-go { animation: none; } }
/* converter: same box shape as today's Hijri / Gregorian boxes above */
.cal-conv { max-width: none; border: 0; background: none; padding: 0; margin: 30px auto 8px; }
.cal-conv h3 { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 0 14px; }
.cc-k { font-family: var(--font-display); font-size: 26px; font-weight: 700; letter-spacing: .08em; color: #0b4a32; }
.cc-k2 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: #8a6410; letter-spacing: .02em; }
.cc-two { display: flex; justify-content: center; align-items: stretch; gap: 12px; position: relative; }
.cc-side { border-radius: 16px; padding: 10px 22px; gap: 6px; justify-content: center; box-shadow: 0 6px 16px rgba(11,74,50,.12); }
.cc-eq { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 34px; height: 34px; line-height: 30px; font-size: 22px; text-align: center; border-radius: 50%; background: #fff6d6; border: 2px solid #d4af37; color: #8a6410; }
@media (min-width: 701px) { .cc-side { width: 400px; flex: 0 0 400px; } }
@media (max-width: 700px) {
  .cc-two { flex-direction: column; gap: 12px; } .cc-side { width: 100%; }
  .cc-eq { position: static; transform: none; margin: -24px auto; line-height: 30px; }
  .cc-k { font-size: 21px; } .cc-k2 { font-size: 15px; }
}
html.dark .cc-k, [data-theme="dark"] .cc-k { color: #e9c766; }
.cc-side { padding: 10px 12px; } .cc-hs .cc-row select { font-size: 15px; padding: 7px 8px; }
@media (min-width: 701px) { #view-calendar .cc-two { padding-inline-end: 86px; } }
@media (min-width: 701px) { #view-calendar .cc-eq { left: calc(50% - 43px); } #view-calendar .cc-btns { padding-inline-end: 86px; } }
.ls-k-must { background: #0b4a32; color: #fff3cf; border: 1px solid #d4af37; }

.pl-day{margin:6px 0 12px;text-align:center} .pl-day a{display:inline-block;font-weight:700;color:#0b4a32;background:#fbf5e3;border:2px solid #c9a227;border-radius:999px;padding:8px 16px;text-decoration:none}

/* setup: the deeds of A Day of Ibadah */
.wz-dintro{margin:0 0 8px} .wz-dtop{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin:0 0 10px;padding:10px 12px;border:2px solid var(--gold,#c9a227);border-radius:12px;background:var(--card,#fbf5e3)}
.wz-dall{font-weight:800;font-size:1.05em} .wz-dlv{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:.92em}
.wz-dlv button{font:inherit;font-weight:700;border:1px solid var(--gold,#c9a227);background:transparent;color:inherit;border-radius:999px;padding:3px 12px;cursor:pointer}
.wz-dcount{margin-inline-start:auto;font-weight:700;color:var(--gold-d,#8a6410)}
.wz-dsec{border:1px solid var(--line,#e3d6ad);border-radius:10px;margin:0 0 6px} .wz-dsec>summary{display:flex;align-items:center;gap:8px;padding:8px 10px;cursor:pointer;font-weight:700}
.wz-dsec>summary::after{content:"+";margin-inline-start:6px;width:24px;height:24px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#0b4a32;color:#f3d98f;font-weight:800}
.wz-dsec[open]>summary::after{content:"−"} .wz-dsec>summary::-webkit-details-marker{display:none} .wz-dsec>summary{list-style:none}
.wz-dn{margin-inline-start:auto;font-size:.85em;opacity:.75} .wz-dlist{padding:2px 10px 8px}
.wz-drow{display:flex;align-items:center;gap:8px;justify-content:space-between;border-top:1px dashed var(--line,#e3d6ad);padding:5px 0}
.wz-drow.k-fard{font-weight:700} .wz-k{font-style:normal;font-size:.72em;border-radius:999px;padding:0 7px;background:#f3e3a8;color:#5a4000;text-transform:capitalize}
.wz-drow.k-fard .wz-k{background:#0b4a32;color:#fff} .wz-drow.k-nafl .wz-k{background:#dcefe3;color:#0b4a32}
.wz-dur{font-family:"Noto Nastaliq Urdu",serif;font-size:.9em;opacity:.8;margin-inline-start:4px} .wz-fz{flex:none;font-size:.82em;font-weight:700;text-decoration:none;white-space:nowrap;color:var(--gold-d,#8a6410)}
.wz-dsec>summary::before{content:none!important} .wz-dsc{width:18px;height:18px;flex:none;accent-color:#0b4a32} .wz-dst{flex:1}
.wz-fday{margin:8px 0} .wz-fsec{display:block;margin:8px 0 2px;font-size:.9em;color:var(--gold-d,#8a6410)}

/* نامۂ اعمال */
.nama h3 [lang=ur],.ghibat [lang=ur],.gh-dlg [lang=ur]{font-family:"Noto Nastaliq Urdu",serif;line-height:2}
.nama-bar{position:relative;height:26px;border-radius:999px;background:var(--line,#e3d6ad);overflow:hidden;margin:0 0 10px} .nama-bar i{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,#0b4a32,#1b7a52)} .nama-bar span{position:relative;display:block;text-align:center;font-weight:800;line-height:26px;color:#fff;mix-blend-mode:difference}
.nama-g{margin:12px 0 2px;font-weight:800;color:var(--gold-d,#8a6410);font-size:.92em}
.ghibat{margin-top:16px;padding:12px 14px;border:2px dashed #b8442e;border-radius:12px;background:rgba(184,68,46,.06)} .gh-btns{display:flex;gap:8px;flex-wrap:wrap} .gh-name{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap;align-items:flex-end} .gh-name label{display:flex;flex-direction:column;gap:4px;flex:1;min-width:200px} .gh-ok{margin:10px 0 0;color:#0b4a32}
.gh-dlg{max-width:640px;width:calc(100% - 24px);border:2px solid #c9a227;border-radius:18px;padding:0;background:#0b1d16;color:#fff6dc} .gh-dlg::backdrop{background:rgba(0,0,0,.75)}
.gh-scene{padding:18px} .gh-scene h3{margin:0 0 12px;color:#f3d98f;text-align:center}
.gh-stage{position:relative;display:flex;align-items:center;justify-content:space-between;height:220px;border-radius:14px;background:radial-gradient(circle at 50% 120%,#3a1a12,#0b1d16 70%);overflow:hidden;padding:0 10px}
.gh-me,.gh-him{display:flex;flex-direction:column;align-items:center;font-size:44px;z-index:2} .gh-me b,.gh-him b{font-size:14px;color:#f3d98f;max-width:90px;text-align:center}
.gh-fly{position:absolute;inset:0} .gh-fly span{position:absolute;left:14%;white-space:nowrap;font-size:13px;font-weight:700;background:#fff3c4;color:#0b3a26;border:1px solid #c9a227;border-radius:999px;padding:3px 10px;opacity:0;animation:ghfly 3.2s ease-in-out forwards}
@keyframes ghfly{0%{opacity:0;transform:translate(0,0) scale(.7)}12%{opacity:1;transform:translate(10%,-40px) scale(1)}80%{opacity:1}100%{opacity:0;transform:translate(min(52vw,380px),10px) scale(.6)}}
.gh-sum{text-align:center;margin:12px 0} .gh-h{background:rgba(255,255,255,.06);border-radius:12px;padding:10px 14px;font-size:14px} .gh-h cite{color:#f3d98f;font-style:normal} .gh-ar{font-family:Amiri,serif;font-size:22px;line-height:2;color:#f3d98f;margin:8px 0}
.gh-do{margin-top:12px} .gh-do ol{margin:6px 0 0;padding-inline-start:20px} .gh-do li{margin:4px 0}
.rep-miss{margin-top:12px}
.gh-dlg [lang=ur]{display:block;direction:rtl;text-align:right;font-size:.95em} .gh-scene h3 [lang=ur]{text-align:center} .gh-dlg button [lang=ur]{display:inline;text-align:inherit}
.wz-rem{flex:none;display:flex;align-items:center;gap:4px} .wz-remb{font:inherit;font-size:.82em;border:1px solid var(--line,#e3d6ad);background:transparent;border-radius:999px;padding:1px 7px;cursor:pointer;opacity:.6} .wz-remb.on{opacity:1;border-color:#c9a227;background:#fbf5e3;font-weight:700;color:#0b4a32} .wz-rem input[type=time]{font:inherit;font-size:.85em;max-width:110px}
/* compact salah banner (takes about half the height) */
.tbar-salah { padding: 5px 52px 6px; min-height: 0; }
.tbar-salah .tb-in { gap: 3px 10px; }
.tbar-salah .tb-head .tb-t { font-size: 18px; } .tbar-salah .tb-arn { font-size: 17px; }
.tbar-salah .tb-cd { padding: 1px 10px; font-size: 12.5px; } .tbar-salah .tb-cd b { font-size: 14px; }
.tbar-salah .tb-virt { font-size: 12.5px; line-height: 1.35; }
.tbar-salah .tb-virt small { font-size: 10px; }
.tbar-salah .tb-note2 { order: 3; flex-basis: 100%; font-size: 11.5px; line-height: 1.2; opacity: .85; }
.tbar-salah .tb-ask { min-height: 0; padding: 0 2px; margin: 0; }
.tbar-salah .tb-ask .ib { border-width: 4px 18px; font-size: 13px; }
.tbar-salah .tb-q { font-size: 12.5px; }
.tbar-salah .tb-adh { order: 4; gap: 8px; }
.tbar-salah .tb-nsel, .tbar-salah .tb-adh .ib { height: 32px; min-width: 0; padding: 0 16px; font-size: 13px; border-width: 1.5px; }
@media (max-width: 700px) { .tbar-salah { padding: 6px 30px 6px 10px; } .tbar-salah .tb-ask { padding: 8px 6px 4px; margin-top: 6px; } }
.tbar-salah .tb-one{border:0!important;box-shadow:none!important;background:none!important;padding:0!important;margin:0!important} .tbar-salah .tb-one::before{display:none!important} .tbar-salah .tb-one .ib{font-size:14px;font-weight:700;padding:0 6px}
.tbar-salah .tb-one .ib { border: 1.5px solid #d4af37 !important; border-image: none !important; border-radius: 999px; background: #0b4a32 !important; color: #fff6dc !important; height: 32px; padding: 0 18px !important; display: inline-flex; align-items: center; font-size: 13px; }
/* ===== new home (preview: ?newhome=1) ===== */
html.nh #view-home .hm-top { display: none; }
html.nh body:has(#view-home:not([hidden])) #toolbar { display: none; }
.nh { padding-top: 14px; padding-bottom: 10px; }
.nh-hero { text-align: center; padding: 26px 18px 22px; border-radius: 22px; color: #fff6dc; border: 2px solid #c9a227;
  background: radial-gradient(120% 140% at 50% 0%, #17784f 0%, #0b4a32 55%, #06301f 100%); box-shadow: 0 10px 30px rgba(6, 48, 31, .25); position: relative; overflow: hidden; }
.nh-hero::after { content: ""; position: absolute; inset: 0; background: url(img/theme/girih.svg) center / 120px 120px; opacity: .18; pointer-events: none; }
.nh-hero > * { position: relative; z-index: 1; }
.nh-bas { font-family: "Amiri", serif; font-size: 22px; color: #f3d98f; }
.nh-hero h1 { font-family: "Amiri", var(--font-display, serif); font-size: clamp(30px, 5vw, 46px); margin: 4px 0 6px; color: #fff; line-height: 1.15; }
.nh-slogan { max-width: 760px; margin: 0 auto; font-size: 16px; color: #f3e6bf; line-height: 1.5; }
.nh-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 18px 0 8px; }
.nh-btn { font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; border-radius: 999px; padding: 12px 24px; border: 2px solid #d4af37; background: rgba(255, 246, 220, .08); color: #fff6dc; }
.nh-btn.pri { background: linear-gradient(180deg, #fff3c4, #e9c766 55%, #c9971f); color: #0b3a26; }
.nh-btn.sm { font-size: 13.5px; padding: 7px 14px; }
.nh-pts { font-size: 12.5px; color: #e9d49c; margin: 6px 0 0; }
.nh-sec { margin-top: 22px; }
.nh-sec > h2, .nh-close h2 { font-family: "Amiri", var(--font-display, serif); color: var(--green, #0b4a32); font-size: 26px; margin: 0 0 10px; text-align: center; }
.nh-cards { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 14px; }
.nh-card { background: var(--card, #fffdf6); border: 1.5px solid #e3d6ad; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nh-k { color: #8a6410; font-size: 13px; letter-spacing: .4px; text-transform: uppercase; }
.nh-rt { font-weight: 800; color: #0b4a32; font-size: 17px; } .nh-rem p { margin: 0; } .nh-ur { font-family: "Noto Nastaliq Urdu", serif; line-height: 2.1; }
.nh-rem small { color: #8a6410; font-weight: 700; } .nh-rem a { font-weight: 800; color: #0b4a32; }
.nh-ring { display: flex; align-items: center; gap: 12px; font-weight: 700; color: #0b4a32; } .nh-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.nh-my .nh-btn { color: #0b3a26; border-color: #c9a227; } .nh-my .nh-btn:not(.pri) { background: #fbf5e3; }
.nh-cal .cmk-ad { margin: 0; flex-direction: column; text-align: center; padding: 10px; }
.nh-cal .cmk-ad img { width: 100%; max-width: 260px; height: auto; margin: 0 auto; }
.nh-grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.nh-gridx { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.nh-tx { justify-content: center; text-align: center; font-size: 14px; }
.nh-close { margin: 26px 0 6px; text-align: center; padding: 22px 16px; border-radius: 20px; background: linear-gradient(180deg, #fbf5e3, #f3e3a8); border: 1.5px solid #c9a227; }
.nh-close p { max-width: 720px; margin: 0 auto 14px; color: #3b2800; }
@media (max-width: 900px) { .nh-cards { grid-template-columns: 1fr; } .nh-gridx { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { .nh-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .nh-hero { padding: 20px 12px; } .nh-slogan { font-size: 14px; } }
/* ===== the Quran Kareem button: shining gold, apart from the rest ===== */
@keyframes qshine { 0% { left: -60%; } 55%, 100% { left: 130%; } }
.hx-tile[href="#quran"], nav.main .nav-in > a[data-view="quran"], nav.main .nav-in > a[data-view="adhkar"], nav.main .nav-in > a[data-view="learn"], nav.main .nav-in > a.nav-zikr, nav.main .nav-in > a.nav-media, nav.main .nav-in > a[data-view="deeds"], nav.main .nav-in > a[data-tt="reports"] { position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #8a6410 0%, #e9c766 28%, #fff3c4 46%, #f0d27a 62%, #b8860b 100%) !important; color: #2c1d00 !important;
  border: 1.5px solid #fff1b8; box-shadow: 0 0 0 2px #b8860b, 0 6px 18px rgba(160, 110, 10, .45) !important; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.hx-tile[href="#quran"]::after, nav.main .nav-in > a[data-view="quran"]::after, nav.main .nav-in > a[data-view="adhkar"]::after, nav.main .nav-in > a[data-view="learn"]::after, nav.main .nav-in > a.nav-zikr::after, nav.main .nav-in > a.nav-media::after, nav.main .nav-in > a[data-view="deeds"]::after, nav.main .nav-in > a[data-tt="reports"]::after { content: ""; position: absolute; z-index: 2; pointer-events: none; top: -30%; bottom: -30%; width: 35%; left: -60%;
  transform: skewX(-22deg); background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.85), rgba(255,255,255,0)); animation: qshine 3.2s ease-in-out infinite; }
.hx-tile[href="#quran"] * { color: #2c1d00 !important; }
nav.main .nav-in > a[data-view="quran"], nav.main .nav-in > a[data-view="adhkar"], nav.main .nav-in > a[data-view="learn"], nav.main .nav-in > a.nav-zikr, nav.main .nav-in > a.nav-media, nav.main .nav-in > a[data-view="deeds"], nav.main .nav-in > a[data-tt="reports"] { border-radius: 999px; }
nav.main .nav-in > a[data-view="adhkar"]::after, nav.main .nav-in > a[data-view="learn"]::after, nav.main .nav-in > a.nav-zikr::after, nav.main .nav-in > a.nav-media::after, nav.main .nav-in > a[data-view="deeds"]::after, nav.main .nav-in > a[data-tt="reports"]::after { animation-delay: 1.6s; }
nav.main .nav-in > a[data-view="quran"] .nv-ic, nav.main .nav-in > a[data-view="adhkar"] .nv-ic, nav.main .nav-in > a[data-view="learn"] .nv-ic, nav.main .nav-in > a.nav-zikr .nv-ic, nav.main .nav-in > a.nav-media .nv-ic, nav.main .nav-in > a[data-view="deeds"] .nv-ic, nav.main .nav-in > a[data-tt="reports"] .nv-ic { stroke: #2c1d00 !important; }
@media (prefers-reduced-motion: reduce) { .hx-tile[href="#quran"]::after, nav.main .nav-in > a[data-view="quran"]::after, nav.main .nav-in > a[data-view="adhkar"]::after, nav.main .nav-in > a[data-view="learn"]::after, nav.main .nav-in > a.nav-zikr::after, nav.main .nav-in > a.nav-media::after, nav.main .nav-in > a[data-view="deeds"]::after, nav.main .nav-in > a[data-tt="reports"]::after { animation: none; display: none; } }
/* Quran Kareem tile: only the words, on a gold ornamented background */
.hx-tile.qk-tile { justify-content: center; align-items: center; min-height: 150px; padding: 14px 10px !important; }
.hx-tile.qk-tile::before { content: ""; position: absolute; inset: 6px; z-index: 0; pointer-events: none; border: 1.5px solid rgba(90, 60, 0, .55); border-radius: 6px;
  background: url(img/theme/girih.svg) center / 64px 64px, url(img/theme/khatam.svg) center / 150px 150px no-repeat; opacity: .3; filter: sepia(1) saturate(1.6) brightness(.9); }
.hx-tile.qk-tile .qk { position: relative; z-index: 1; font-family: "Amiri Quran", "Amiri", serif; font-weight: 700; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.5; color: #3a2600 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 0 14px rgba(255, 243, 196, .9); white-space: normal; text-align: end; }
.hx-tile.qk-tile .qk-c { position: absolute; z-index: 1; width: 22px; height: 22px; background: url(img/theme/corner.svg) center / contain no-repeat; opacity: .75; }
.hx-tile.qk-tile .qk-c.tl { top: 8px; left: 8px; } .hx-tile.qk-tile .qk-c.tr { top: 8px; right: 8px; transform: scaleX(-1); }
.hx-tile.qk-tile .qk-c.bl { bottom: 8px; left: 8px; transform: scaleY(-1); } .hx-tile.qk-tile .qk-c.br { bottom: 8px; right: 8px; transform: scale(-1, -1); }
/* new home: smaller, neater buttons (icon beside the name, no long description) */
html.nh .nh-grid4 .hx-tile, html.nh .nh-gridx .hx-tile { flex-direction: row; justify-content: flex-start; align-items: center; text-align: start; gap: 10px; padding: 8px 12px !important; min-height: 58px; }
html.nh .nh-grid4 .hx-med, html.nh .nh-gridx .hx-med { flex: none; width: 36px; height: 36px; margin: 0; } html.nh .nh-grid4 .hx-med svg, html.nh .nh-gridx .hx-med svg { width: 15px; height: 15px; }
html.nh .nh-grid4 .hx-tile b, html.nh .nh-gridx .hx-tile b { font-size: 14px; display: block; } html.nh .nh-grid4 .hx-ar, html.nh .nh-gridx .hx-ar { font-size: 12.5px; display: block; margin-inline-start: auto; }
html.nh .nh-grid4 .hx-tile small, html.nh .nh-gridx .hx-tile small { display: none; }
html.nh .nh-gridx { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 8px !important; } html.nh .nh-grid4 { gap: 8px !important; }
html.nh .hx-tile.qk-tile { min-height: 58px; justify-content: center; } html.nh .hx-tile.qk-tile .qk { font-size: 24px; line-height: 1.3; }
html.nh .hx-tile.qk-tile .qk-c { width: 12px; height: 12px; } html.nh .hx-tile.qk-tile::before { background-size: 40px 40px, 70px 70px; }
html.nh .nh-tx { justify-content: center !important; } html.nh .nh-tx b { font-size: 13.5px; }
html.nh .nh-btn { font-size: 15px; padding: 10px 20px; } html.nh .nh-btn.sm { font-size: 13px; padding: 6px 12px; }
html.nh .nh-cal .cmk-ad img { max-width: 200px; }
@media (max-width: 900px) { html.nh .nh-gridx { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) { html.nh .nh-grid4 .hx-ar, html.nh .nh-gridx .hx-ar { display: none; } html.nh .nh-grid4 .hx-tile, html.nh .nh-gridx .hx-tile { min-height: 50px; } }
/* new home: the calendar is just a square picture on the right; tap it to make yours. Not on phones. */
html.nh .nh-cards { grid-template-columns: 1.4fr 1fr 250px; align-items: stretch; }
html.nh .nh-cal { padding: 0; overflow: hidden; aspect-ratio: 1 / 1; align-self: center; border: 2px solid #c9a227; transition: transform .2s, box-shadow .2s; }
html.nh .nh-cal img { width: 100%; height: 100%; object-fit: cover; display: block; }
html.nh .nh-cal:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(11, 74, 50, .25); }
@media (max-width: 900px) { html.nh .nh-cards { grid-template-columns: 1fr; } html.nh .nh-cal { display: none; } }
/* Tasbih tab */
.tz-intro { margin: 4px 0 12px; color: #6b5a2a; }
.tz-card { background: var(--card, #fffdf6); border: 1.5px solid #e3d6ad; border-radius: 14px; padding: 12px 14px; margin: 0 0 10px; }
.tz-card.done { border-color: #1d7a50; background: #f0f8f2; }
.tz-ar { font-family: "Amiri", serif; font-size: 26px; line-height: 1.9; color: #06301f; text-align: center; }
.tz-card p { margin: 2px 0 6px; text-align: center; } .tz-ur { font-family: "Noto Nastaliq Urdu", serif; line-height: 2; }
.tz-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .tz-row small { color: #8a6410; font-weight: 600; }
.tz-btns { display: flex; gap: 6px; margin-inline-start: auto; }
.tz-c { font: inherit; font-size: 16px; min-width: 120px; padding: 10px 18px; border-radius: 999px; border: 2px solid #d4af37; background: #0b4a32; color: #fff6dc; cursor: pointer; }
.tz-c b { font-size: 20px; } .tz-card.done .tz-c { background: #1d7a50; }
.tz-r { font: inherit; border: 1px solid #e3d6ad; background: transparent; border-radius: 999px; width: 40px; cursor: pointer; }
/* prayer times open from the banner (no separate Prayer button) */
.tbar-salah .tb-head, .tbar-salah .tb-cd, .tbar-adhan .tb-head, .tbar-adhan .tb-cd { cursor: pointer; }
.tbar-salah .tb-cd:hover { filter: brightness(1.06); box-shadow: 0 0 0 2px rgba(11, 74, 50, .25); }
.hx-tile[href="#prayer"] { display: none !important; }
html.nh .nh-grid4 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 560px) { html.nh .nh-grid4 { grid-template-columns: 1fr 1fr !important; } html.nh .nh-grid4 .qk-tile { grid-column: 1 / -1; } }
.tz-card { position: relative; } .tz-card.mine { border-style: dashed; }
.tz-x { position: absolute; top: 8px; inset-inline-end: 10px; border: 0; background: transparent; font-size: 16px; cursor: pointer; opacity: .6; }
.tz-add { margin: 16px 0 6px; padding: 14px; border: 2px dashed #c9a227; border-radius: 14px; background: #fbf5e3; }
.tz-add > b { display: block; color: #0b4a32; margin-bottom: 8px; } .tz-addrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tz-addrow select { flex: 1; min-width: 220px; font: inherit; font-family: "Amiri", serif; font-size: 18px; padding: 6px 10px; border-radius: 10px; border: 1px solid #c9a227; background: #fff; }
.tz-nl input { width: 80px; font: inherit; padding: 6px 8px; border-radius: 10px; border: 1px solid #c9a227; }
#tz-own { width: 100%; margin-top: 8px; font: inherit; font-family: "Amiri", serif; font-size: 20px; padding: 8px 10px; border-radius: 10px; border: 1px solid #c9a227; }
/* phones: the top bar is one short line: Hijri date · date, then three small icons (subscribe, contact, share) */
@media (max-width: 700px) {
  .datebar .wrap { flex-wrap: nowrap; gap: 0 8px; padding-block: 3px; font-size: 11.5px; overflow: hidden; white-space: normal; text-align: end; }
  .datebar .where, .datebar .db-cal, .datebar .sep, .datebar .db-bar, .datebar .adj { display: none !important; }
  .datebar .db-links { gap: 2px; margin-inline-start: auto; flex: none; }
  .datebar .db-lnk, .datebar .db-share.db-lnk { font-size: 0 !important; letter-spacing: 0; width: 26px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
  .datebar .db-lnk::before { font-size: 14px; letter-spacing: 0; }
  .datebar .db-subs::before { content: "🔔"; } .datebar .db-contact::before { content: "✉️"; } .datebar .db-share::before { content: "🔗"; }
  .datebar .hij-grp, .datebar .wrap > span { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
}
/* phones: no top date bar at all; AjrBook starts at the very top */
@media (max-width: 700px) { .datebar { display: none !important; } }
@media (max-width: 700px) {
  .time-bars .tbar-salah .tb-in > .tb-date { display: flex !important; flex-wrap: wrap; order: 0; flex-basis: 100%; justify-content: center; gap: 0 6px; font-size: 12.5px; font-weight: 600; color: #4a3300 !important; text-shadow: none; margin: 0 0 2px; text-align: center; }
  .time-bars .tbar-salah .tb-date b { color: #0b4a32 !important; font-weight: 800; } .time-bars .tbar-salah .tb-date i { font-style: normal; opacity: .5; color: #4a3300; }
}
/* the golden salah banner: everything centred */
.tbar-salah .tb-in { justify-content: center; text-align: center; }
.tbar-salah .tb-in > * { margin-left: auto; margin-right: auto; }
.tbar-salah .tb-head, .tbar-salah .tb-virt, .tbar-salah .tb-note2, .tbar-salah .tb-date, .tbar-salah .tb-ok { text-align: center; justify-content: center; }
.tbar-salah .tb-virt small { display: inline-block; }
/* phones: one straight column, the same width everywhere, equal buttons */
@media (max-width: 700px) {
  header.top .time-bars.tb-top { padding: 6px 16px 4px !important; box-sizing: border-box; }
  .time-bars.tb-top .tbar { width: 100%; margin-left: 0; margin-right: 0; box-sizing: border-box; padding-left: 12px !important; padding-right: 12px !important; }
  .tbar-night .tb-in { flex-direction: column; align-items: center; }
  .tbar-night .ib { width: 240px; max-width: 100%; justify-content: center; text-align: center; box-sizing: border-box; }
  header.top .wrap { padding-bottom: 6px; }
  nav.main { margin: 10px auto 0; padding: 0 16px; }
  nav.main .nav-in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; box-sizing: border-box; gap: 8px; padding: 8px; }
  nav.main .nav-in > a, nav.main .nav-in > .nav-setup { width: 100%; box-sizing: border-box; justify-content: center; margin: 0; padding: 9px 4px; font-size: 14.5px; gap: 6px; border-radius: 999px; }
  nav.main .nav-in > .nav-sep { display: none; }
  #view-home .cmk-ad { display: none !important; }
}
@media (max-width: 700px) {
  header.top .time-bars.tb-top { padding: 6px 0 4px !important; margin: 0 -8px !important; width: auto !important; }
  .time-bars.tb-top .tbar { padding-left: 10px !important; padding-right: 10px !important; }
  .time-bars.tb-top .tbar .tb-in { width: 100%; margin: 0 auto; }
  .tbar-night .tb-x, .tbar .tb-x { position: absolute; }
  nav.main .nav-in > a, nav.main .nav-in > .nav-setup { white-space: nowrap; font-size: 13.5px; padding: 9px 2px; }
  nav.main .nav-in .nv-ic { width: 17px; height: 17px; flex: none; }
}
@media (max-width: 700px) { header.top .time-bars.tb-top { flex: 0 0 calc(100% + 16px) !important; max-width: none !important; } }
/* phones: SUBSCRIBE under the three round buttons; the subscribe window has a share button */
.hdr-subs { display: none; }
@media (max-width: 700px) {
  header.top .hdr-tools { flex-wrap: wrap; justify-content: flex-end; row-gap: 4px; }
  .hdr-subs { display: block; flex-basis: 100%; text-align: center; background: none; border: 0; padding: 2px 0 0; color: #f3d98f; font: inherit; font-size: 12px; font-weight: 800; letter-spacing: .12em; cursor: pointer; }
}
.sd-share { margin-top: 10px; text-align: center; } .sd-share .btn { width: 100%; }
@media (max-width: 700px) { #view-home .cmk-ad { display: none !important; } #view-home #cmk-bottom .cmk-ad { display: flex !important; } .cmk-bottom { padding-top: 12px; padding-bottom: 16px; } }
/* on the home page the Home button is not needed */
nav.main a[data-view="home"][aria-current="page"] { display: none !important; }
/* Hijri date in the banner opens the calendar */
a.tb-date { text-decoration: none; cursor: pointer; }
a.tb-date:hover b { text-decoration: underline; }
/* Deeds page: the complete-day target setup, up front */
.dd-dayset { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin: 10px 0 16px; padding: 16px 18px; border-radius: 16px;
  background: linear-gradient(135deg, #8a6410 0%, #e9c766 28%, #fff3c4 46%, #f0d27a 62%, #b8860b 100%); color: #2c1d00; border: 1.5px solid #fff1b8; box-shadow: 0 0 0 2px #b8860b, 0 8px 20px rgba(160,110,10,.35); }
.dd-dayset > div:first-child { flex: 1 1 320px; display: flex; flex-direction: column; gap: 4px; }
.dd-dayset b { font-size: 19px; }
.dd-dayset span { font-size: 14.5px; line-height: 1.45; }
.dd-dsb { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dd-dsb .btn { background: #0b4a32; color: #fff; border-color: #0b4a32; font-size: 16px; padding: 10px 22px; }
.dd-dsb a { color: #2c1d00; font-size: 13.5px; font-weight: 600; }
.dd-tgtab { font: inherit; cursor: pointer; border: 1.5px solid #b8860b; background: linear-gradient(135deg, #e9c766, #fff3c4 50%, #f0d27a); color: #2c1d00; font-weight: 700; border-radius: 999px; padding: 7px 14px; }
@media (max-width: 700px) { .dd-dsb { width: 100%; } .dd-dsb .btn { width: 100%; } }
/* Targets page: the complete day, every deed with its reward */
.dd-daytg { margin: 10px 0 22px; }
.dt-head { padding: 16px 18px; border-radius: 16px; color: #2c1d00; border: 1.5px solid #fff1b8; box-shadow: 0 0 0 2px #b8860b, 0 8px 20px rgba(160,110,10,.3);
  background: linear-gradient(135deg, #8a6410 0%, #e9c766 28%, #fff3c4 46%, #f0d27a 62%, #b8860b 100%); margin-bottom: 12px; }
.dt-head h2 { margin: 0 0 6px; font-size: 21px; color: #2c1d00; }
.dt-head p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; }
.dt-bar { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.dt-all { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; background: #0b4a32; color: #fff; padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.dt-lv { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; }
.dt-lv button { font: inherit; font-size: 13.5px; font-weight: 600; border: 1.5px solid #8a6410; background: rgba(255,255,255,.55); color: #2c1d00; border-radius: 999px; padding: 4px 11px; cursor: pointer; }
.dt-meter { position: relative; margin: 12px 0 8px; background: rgba(255,255,255,.55); border-radius: 999px; height: 26px; overflow: hidden; }
.dt-meter i { position: absolute; inset: 0 auto 0 0; background: #0b4a32; opacity: .85; border-radius: 999px; }
.dt-meter b { position: relative; z-index: 1; display: block; text-align: center; line-height: 26px; font-size: 13.5px; color: #2c1d00; mix-blend-mode: normal; text-shadow: 0 0 4px #fff3c4; }
.dt-links { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0 !important; }
.dt-more { font: inherit; font-weight: 700; font-size: 14px; border: 0; background: #0b4a32; color: #fff; padding: 7px 14px; border-radius: 10px; cursor: pointer; }
.dt-links a { color: #2c1d00; font-weight: 600; font-size: 14px; }
.dt-sec { border: 1.5px solid var(--gold-line); border-radius: 14px; background: var(--surface); margin: 8px 0; overflow: hidden; }
.dt-sec > summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; font-weight: 700; font-size: 16px; color: var(--em); list-style: none; }
.dt-sec > summary::-webkit-details-marker { display: none; }
.dt-sec > summary::after { content: "+"; margin-inline-start: 6px; font-size: 20px; color: var(--gold); }
.dt-sec[open] > summary::after { content: "−"; }
.dt-sec > summary input { width: 20px; height: 20px; accent-color: #0b4a32; flex: none; }
.dt-st { flex: 1; } .dt-st [lang="ur"] { font-weight: 600; color: var(--muted, #6b6b6b); margin-inline-start: 6px; }
.dt-n { font-size: 13px; background: var(--gold-soft); border-radius: 999px; padding: 2px 9px; color: var(--ink); }
.dt-list { padding: 0 12px 10px; }
.dt-row { border-top: 1px solid var(--gold-line); padding: 10px 4px; }
.dt-row.on { background: linear-gradient(90deg, rgba(11,74,50,.06), transparent); }
.dt-c { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; cursor: pointer; font-weight: 600; }
.dt-c input { width: 20px; height: 20px; accent-color: #0b4a32; flex: none; }
.dt-nm { flex: 1 1 200px; } .dt-nm [lang="ur"] { font-size: 1.05em; }
.dt-tag, .dt-lvl { font-style: normal; font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: var(--gold-soft); color: var(--ink); }
.dt-lvl.l1 { background: #dff0e6; } .dt-lvl.l4 { background: #fbe7b0; }
.dt-rew { margin: 6px 0 4px; padding-inline-start: 34px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.dt-rew li { margin: 2px 0; } .dt-rew small { color: var(--gold, #a67c00); font-weight: 600; white-space: normal; text-align: end; }
.dt-fz { margin-inline-start: 30px; font-size: 13px; font-weight: 600; color: var(--em); }
.dt-meter { height: auto; background: none; overflow: visible; }
.dt-meter b { text-align: start; line-height: 1.4; margin-bottom: 4px; text-shadow: none; }
.dt-track { display: block; position: relative; height: 10px; border-radius: 999px; background: rgba(255,255,255,.6); overflow: hidden; }
.dt-track i { position: absolute; inset: 0 auto 0 0; background: #0b4a32; border-radius: 999px; }
/* Targets page: only the complete day */
#view-deeds.dt-only .eyebrow, #view-deeds.dt-only .dd-tabs, #view-deeds.dt-only #dd-main > :not(#dd-daytg) { display: none !important; }

/* Zikr is its own page: no dua tabs there, and no Tasbih tab among the duas */
#view-adhkar .adh-tabs [data-p="tasbih"] { display: none !important; }
#view-adhkar.is-zikr .adh-tabs, #view-adhkar.is-zikr .eyebrow { display: none !important; }
/* Setup: a gear next to Sign in */
header.top .hdr-setup { display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; cursor: pointer; }
header.top .hdr-setup svg { display: block; }
@media (max-width: 700px) { header.top .hdr-tools .hdr-setup { width: 38px; height: 38px; min-width: 38px; } header.top .hdr-setup svg { width: 19px; height: 19px; } }
/* Targets: add your own */
.dt-own { margin: 14px 0 6px; }
.dt-ownbtn { width: 100%; font: inherit; font-size: 17px; font-weight: 700; padding: 14px; border-radius: 14px; cursor: pointer; border: 2px dashed #b8860b; background: var(--gold-soft); color: var(--em); }
.dt-ownbox { margin-top: 10px; padding: 12px 14px; border: 1.5px solid var(--gold-line); border-radius: 14px; background: var(--surface); }
.dt-ownbox > b { display: block; margin-bottom: 6px; color: var(--em); }
.dt-ownrow { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--gold-line); }
.dt-ownrow span { flex: 1; font-weight: 600; } .dt-ownrow small { color: var(--gold, #a67c00); font-weight: 700; }
.dt-ownrow button { border: 0; background: none; color: #b42318; font-size: 16px; cursor: pointer; }
.dt-ownadd { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.dt-ownadd #dt-owntxt { flex: 1 1 220px; font: inherit; padding: 9px 12px; border: 1.5px solid var(--gold-line); border-radius: 10px; background: #fff; color: #222; }
.dt-ownadd label { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.dt-ownadd input[type=number] { width: 72px; font: inherit; padding: 8px; border: 1.5px solid var(--gold-line); border-radius: 10px; }
/* Jumu'ah etiquette: virtues */
.ju-vh { font-size: 19px; color: var(--em); margin: 18px 0 8px; }
.ju-virt p { margin: 0; padding: 10px 2px; border-bottom: 1px solid var(--gold-line); display: flex; flex-direction: column; gap: 3px; line-height: 1.55; }
.ju-virt p:last-child { border-bottom: 0; }
.ju-virt small { color: var(--gold, #a67c00); font-weight: 600; }
/* How to support AjrBook: centred, readable button */
.share-band .share-inner > div:first-child { text-align: center; }
.share-band .share-inner > div:first-child p { margin-left: auto; margin-right: auto; }
.share-band .ctas { justify-content: center; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.share-band #copy-share { background: #0b4a32 !important; color: #fff !important; border: 2px solid #d4af37 !important; font-weight: 700; text-shadow: none; }
.share-band #copy-share:hover { background: #0e5c3e !important; }
/* only the checkbox completes the count: a stray tap on the text does nothing */
.adh-all { cursor: default; } .adh-all input { cursor: pointer; width: 24px; height: 24px; }
/* phones: SUBSCRIBE stays where it was; | SHARE sits beside it at the corner */
.hdr-sub2 { display: contents; } .hdr-sep, .hdr-share { display: none; }
@media (max-width: 700px) {
  .hdr-share { display: inline-flex !important; align-items: center; gap: 5px; position: absolute; right: 0; bottom: 0; flex-basis: auto !important; width: auto !important; padding: 2px 0 0 !important; }
  .hdr-share svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .hdr-share::before { content: "|"; color: #f3d98f; opacity: .7; margin-right: 6px; font-weight: 700; }
}
@media (max-width: 700px) { .hdr-share svg circle { fill: currentColor; } .hdr-share svg { width: 14px; height: 14px; } }
/* Setup: colour themes */
.wz-pals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.wz-pals button { font: inherit; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--gold-line, #d9c48a); background: var(--surface); color: var(--ink); cursor: pointer; }
.wz-pals button i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #d4af37; display: inline-block; }
.wz-pals button[aria-pressed="true"] { border-color: #b8860b; box-shadow: 0 0 0 2px #d4af37; }
/* Jumu'ah reward calculator: the five hours on a chart */
.ju-seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 2px; }
.ju-seg button { font: inherit; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; border: 1.5px solid #b8860b; background: var(--surface); color: var(--ink); cursor: pointer; }
.ju-seg button[aria-pressed="true"] { background: #0b4a32; color: #fff; border-color: #0b4a32; box-shadow: 0 0 0 2px #d4af37; }
.ju-chart { margin: 14px 0 10px; display: flex; flex-direction: column; gap: 7px; }
.ju-h { display: flex; align-items: center; gap: 10px; }
.ju-ic { font-size: 26px; width: 34px; text-align: center; flex: none; }
.ju-bar { width: var(--w, 100%); min-width: 190px; display: flex; flex-direction: column; padding: 7px 12px; border-radius: 10px; color: #2c1d00; background: linear-gradient(90deg, #f0d27a, #fff3c4 60%, #e9c766); border: 1.5px solid #b8860b; }
.ju-bar b { font-size: 14.5px; } .ju-bar i { font-style: normal; font-size: 13.5px; font-weight: 700; color: #6b4d00; }
.ju-h.on .ju-bar { background: #0b4a32; color: #fff; border-color: #d4af37; box-shadow: 0 0 0 2px #d4af37; } .ju-h.on .ju-bar i { color: #f3d98f; }
.ju-end .ju-bar { width: 100%; background: var(--surface); }
.ju-res h3 { margin: 10px 0 0; color: var(--em); }
/* Jumu'ah sunnah acts: illustrated cards */
.ju-banner { text-align: center; font-size: 24px !important; color: #f6dc8a !important; background: linear-gradient(180deg, #0e5c3e, #0b4a32); border: 2px solid #d4af37; border-radius: 18px; padding: 12px 16px; box-shadow: 0 0 0 3px #0b4a32, 0 8px 18px rgba(11,74,50,.3); margin-top: 26px !important; }
.ju-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 10px 0 18px; }
@media (min-width: 900px) { .ju-grid { grid-template-columns: 1fr 1fr; } }
.ju-card { display: flex !important; align-items: center; gap: 12px; padding: 12px 12px 12px 10px !important; border-radius: 18px; cursor: pointer;
  background: linear-gradient(135deg, #fffaf0, #f6ecd6); border: 2px solid #d4af37 !important; box-shadow: 0 0 0 3px #f6ecd6 inset, 0 4px 12px rgba(120,90,20,.15); }
.ju-num { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 19px; color: #fff; background: radial-gradient(circle at 35% 30%, #13704a, #06301f); border: 3px solid #d4af37; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.ju-txt { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ju-txt b { font-size: 15.5px; line-height: 1.4; color: #1f2a22; }
.ju-txt small { color: #a67c00; font-weight: 600; font-size: 12px; }
.ju-tick { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #0b4a32; margin-top: 2px; }
.ju-tick input { width: 20px; height: 20px; accent-color: #0b4a32; margin: 0; }
.ju-img { flex: none; width: 96px; height: 76px; object-fit: cover; border-radius: 12px; border: 1.5px solid #e2c06a; background: #f6ecd6; }
@media (max-width: 420px) { .ju-img { width: 80px; height: 66px; } .ju-num { width: 38px; height: 38px; font-size: 17px; } }
.ju-card:has(input:checked) { background: linear-gradient(135deg, #eef8f1, #dff0e6); }
:root[data-theme="dark"] .ju-card { background: linear-gradient(135deg, #2a2316, #221c12); } :root[data-theme="dark"] .ju-txt b { color: #f1e8d4; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ju-card { background: linear-gradient(135deg, #2a2316, #221c12); } :root:not([data-theme="light"]) .ju-txt b { color: #f1e8d4; } }
.ju-grid.ju-acts { padding: 0; }
.ju-card .ju-tick { flex-direction: row !important; align-self: flex-start; gap: 7px !important; }
.ju-card .ju-tick input { margin: 0 !important; }
.ju-card .ju-num { flex-direction: row !important; }
.ju-card:last-child { border-bottom: 2px solid #d4af37 !important; }
.ju-card .ju-num { display: grid !important; place-items: center; flex: 0 0 auto; }
/* Jumu'ah hours: most precious at the top, fading down */
.ju-h .ju-bar { box-shadow: 0 2px 6px rgba(120,80,0,.15); }
.ju-h1 .ju-bar { background: linear-gradient(100deg, #7a5508 0%, #c99a1e 30%, #fff1b8 50%, #d9ae35 70%, #8a6410 100%); border-color: #6b4a05; padding: 11px 14px; }
.ju-h1 .ju-bar b { font-size: 16.5px; } .ju-h1 .ju-bar b, .ju-h1 .ju-bar i { color: #241600; }
.ju-h1 .ju-ic { font-size: 34px; }
.ju-h2 .ju-bar { background: linear-gradient(100deg, #b8891a, #ecd07a 50%, #c79a28); border-color: #9a7212; }
.ju-h2 .ju-ic { font-size: 30px; }
.ju-h3 .ju-bar { background: linear-gradient(100deg, #dcbc5e, #f5e2a4 50%, #e2c46c); border-color: #c7a345; }
.ju-h3 .ju-ic { font-size: 27px; }
.ju-h4 .ju-bar { background: linear-gradient(100deg, #ecd9a0, #f9eecb 50%, #eedda8); border-color: #dcc27a; }
.ju-h4 .ju-ic { font-size: 24px; }
.ju-h5 .ju-bar { background: linear-gradient(100deg, #f5ead0, #fdf8ea 50%, #f6ecd4); border-color: #e6d6a6; }
.ju-h5 .ju-ic { font-size: 21px; }
.ju-h4 .ju-bar i, .ju-h5 .ju-bar i { color: #8a7038; }
.ju-top { font-style: normal; display: inline-block; margin-inline-start: 6px; font-size: 11.5px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: #0b4a32; color: #f6dc8a; vertical-align: 2px; }
.ju-h.on .ju-bar { color: inherit; box-shadow: 0 0 0 3px #0b4a32, 0 0 14px rgba(11,74,50,.45); }
.ju-h1.on .ju-bar { background: linear-gradient(100deg, #7a5508 0%, #c99a1e 30%, #fff1b8 50%, #d9ae35 70%, #8a6410 100%); }
.ju-h2.on .ju-bar { background: linear-gradient(100deg, #b8891a, #ecd07a 50%, #c79a28); }
.ju-h3.on .ju-bar { background: linear-gradient(100deg, #dcbc5e, #f5e2a4 50%, #e2c46c); }
.ju-h4.on .ju-bar { background: linear-gradient(100deg, #ecd9a0, #f9eecb 50%, #eedda8); }
.ju-h5.on .ju-bar { background: linear-gradient(100deg, #f5ead0, #fdf8ea 50%, #f6ecd4); }
.ju-h.on .ju-bar i { color: #241600; }
.ju-h.on { position: relative; } .ju-h.on .ju-bar b::before { content: "✓ "; color: #0b4a32; }
.ju-miss { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: #fdecec; border: 2px solid #c0392b; color: #7a1f16; font-weight: 700; line-height: 1.5; }
.ju-end.on .ju-bar { background: #0b4a32 !important; color: #fff !important; } .ju-end.on .ju-bar b { color: #fff !important; } .ju-end.on .ju-bar i { color: #f3d98f !important; } .ju-end.on .ju-bar b::before { color: #f3d98f; }
/* the five hours as a neat pyramid: each one a step smaller, centred */
.ju-chart .ju-h:not(.ju-end) { width: var(--w); margin-inline: auto; }
.ju-chart .ju-h:not(.ju-end) .ju-bar { width: auto; flex: 1; min-width: 0; }
.ju-chart .ju-end { width: 100%; }
.ju-h4 .ju-bar b, .ju-h5 .ju-bar b { font-size: 13.5px; } .ju-h4 .ju-bar i, .ju-h5 .ju-bar i { font-size: 12.5px; }
.ju-chart .ju-h:not(.ju-end) .ju-bar b, .ju-chart .ju-h:not(.ju-end) .ju-bar i { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ju-chart .ju-h1 .ju-bar b { white-space: normal; }
@media (max-width: 380px) { .ju-chart .ju-ic { width: 28px; font-size: 22px !important; } .ju-chart .ju-h1 .ju-ic { font-size: 28px !important; } .ju-chart .ju-h { gap: 6px; } .ju-chart .ju-bar { padding: 6px 10px; } }
.ju-chart .ju-h1:not(.ju-end) .ju-bar b { white-space: normal; overflow: visible; }
.ju-chart .ju-h1 .ju-top { display: table; margin: 4px 0 2px; }
/* Learn: full-width diagrams (Ka'bah, Safa and Marwah) */
.ls-dia { grid-column: 1 / -1; margin: 12px 0 4px; text-align: center; }
.ls-dia img { width: 100%; max-width: 640px; height: auto; border-radius: 16px; border: 1.5px solid #e2c06a; box-shadow: 0 4px 14px rgba(120,90,20,.12); }
.ls-dox h4 { margin: 12px 0 2px; font-size: 16px; color: var(--em); padding: 4px 10px; border-radius: 8px; background: var(--gold-soft); display: inline-block; }
.ls-dox p { margin: 2px 0 6px; }
/* Umrah: Guide · Tawaf duas · Sa'i duas tabs; the guide stays closed until asked */
.ut-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; }
.ut-tabs button { font: inherit; font-size: 15px; font-weight: 800; padding: 13px 6px; border-radius: 14px; cursor: pointer; color: #2c1d00; border: 2px solid #b8860b;
  background: linear-gradient(135deg, #e9c766, #fff3c4 50%, #f0d27a); box-shadow: 0 3px 8px rgba(120,80,0,.2); line-height: 1.25; }
.ut-tabs button[aria-selected="true"] { background: #0b4a32; color: #fff; border-color: #d4af37; box-shadow: 0 0 0 3px #d4af37; }
#ls-body.ut-on:not(.ut-guide) > :not(.ut-tabs):not(.ut-close) { display: none; }
#ls-body.ut-tawaf > .ls-permit, #ls-body.ut-sai > .ls-permit { display: none; }
#ls-body.ut-tawaf > .ls-virt, #ls-body.ut-sai > .ls-virt { display: none; }
#ls-body.ut-tawaf > #ls-tawaf, #ls-body.ut-sai > #ls-sai { display: grid; }
#ls-body.ut-tawaf > #ls-tawaf.ls-nofig, #ls-body.ut-sai > #ls-sai.ls-nofig { display: block; } /* no picture: the text uses the full width */
@media (max-width: 420px) { .ut-tabs button { font-size: 13.5px; padding: 11px 4px; } }
.ut-close { display: block; width: 100%; margin: 6px 0 18px; font: inherit; font-size: 16px; font-weight: 800; padding: 14px; border-radius: 14px; cursor: pointer; background: #0b4a32; color: #fff; border: 2px solid #d4af37; }
.ut-close[hidden] { display: none !important; }
/* Umrah: tawaf and sa'i counters */
.ut-trk { grid-column: 1 / -1; margin: 12px 0 6px; padding: 14px; border-radius: 16px; background: linear-gradient(135deg, #fffaf0, #f6ecd6); border: 2px solid #d4af37; }
.ut-trk h4 { margin: 0 0 10px; font-size: 18px; color: var(--em); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.trk-n { font-size: 14px; background: #0b4a32; color: #f6dc8a; border-radius: 999px; padding: 3px 12px; }
.trk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.trk-list li { border-radius: 12px; padding: 10px 12px; border: 1.5px solid #e2c06a; background: #fff; }
.trk-list li.dn { background: #e3f5ea; border-color: #2fbf71; opacity: .85; }
.trk-list li.cur { border: 3px solid #0b4a32; box-shadow: 0 0 0 3px #f6dc8a; }
.trk-list li.nx { opacity: .55; }
.trk-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.trk-row b { font-size: 15.5px; color: #1f2a22; }
.trk-ok { font-size: 20px; color: #0b8a4e; font-weight: 900; }
.trk-btn { font: inherit; font-weight: 800; font-size: 15px; padding: 9px 18px; border-radius: 999px; border: 2px solid #d4af37; background: #0b4a32; color: #fff; cursor: pointer; }
.trk-tip { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: #2c1d00; }
.trk-svg { width: 100%; max-width: 420px; display: block; margin: 8px auto 0; }
.trk-end { margin: 12px 0 0; padding: 12px; border-radius: 12px; background: #0b4a32; color: #fff; font-weight: 700; line-height: 1.55; }
.trk-reset { margin-top: 10px; font: inherit; font-size: 13.5px; font-weight: 700; background: none; border: 0; color: #8a6410; text-decoration: underline; cursor: pointer; }
:root[data-theme="dark"] .ut-trk { background: #221c12; } :root[data-theme="dark"] .trk-list li { background: #2a2316; } :root[data-theme="dark"] .trk-row b, :root[data-theme="dark"] .trk-tip { color: #f1e8d4; }
.trk-mob { margin: 0 0 12px; padding: 12px; border-radius: 12px; background: #eef4fb; border: 1.5px solid #6a9ad0; }
.trk-mob b { font-size: 15.5px; color: #173f7a; } .trk-mob p { margin: 6px 0 8px; font-size: 14px; line-height: 1.5; color: #1c2a3a; }
.trk-call { display: inline-block; font-weight: 800; font-size: 16px; padding: 9px 18px; border-radius: 999px; background: #173f7a; color: #fff !important; text-decoration: none; }
.trk-mob small { display: block; margin-top: 6px; color: #4a6a8a; font-size: 12px; }
.trk-mob summary { cursor: pointer; list-style: none; } .trk-mob summary::-webkit-details-marker { display: none; } .trk-mob summary::after { content: " ▾"; color: #173f7a; } .trk-mob[open] summary::after { content: " ▴"; }
.trk-mob ul { margin: 0 0 10px; padding-inline-start: 20px; font-size: 14px; line-height: 1.5; color: #1c2a3a; } .trk-mob li { margin: 3px 0; }
.ls-permit { margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; background: #eef4fb; border: 2px solid #6a9ad0; }
.ls-permit b { font-size: 17px; color: #173f7a; } .ls-permit p { margin: 6px 0 10px; font-size: 14.5px; line-height: 1.55; color: #1c2a3a; }
.ls-pbtn { display: inline-block; font-weight: 800; padding: 10px 18px; border-radius: 999px; background: #173f7a; color: #fff !important; text-decoration: none; }
/* the Tanzil credit only on the Quran page */
footer .ft-quran { display: none; }
body:has(#view-quran:not([hidden])) footer .ft-quran { display: inline; }

/* Umrah tabs: a little space under the header; round/lap switches with a lamp */
#ls-body .ut-tabs { margin-top: 16px; }
.trk-sw { display: inline-flex; align-items: center; gap: 10px; }
.trk-lamp { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d9d9d9, #8f8f8f); box-shadow: inset 0 -2px 3px rgba(0,0,0,.3); flex: none; }
.trk-sw.on .trk-lamp { background: radial-gradient(circle at 35% 30%, #c9ffd9, #22c35e 55%, #0b8a3e); box-shadow: 0 0 10px 3px rgba(34,195,94,.7), inset 0 -2px 3px rgba(0,0,0,.2); }
.trk-sw.cur .trk-lamp { background: radial-gradient(circle at 35% 30%, #fff6c9, #f2b51c 55%, #b8860b); box-shadow: 0 0 10px 3px rgba(242,181,28,.75); animation: trkPulse 1.4s ease-in-out infinite; }
@keyframes trkPulse { 50% { box-shadow: 0 0 3px 1px rgba(242,181,28,.4); } }
.trk-tg, .trk-btn { position: relative; display: inline-flex; align-items: center; width: 54px; height: 30px; border-radius: 999px; background: #c9c3b4; box-shadow: inset 0 2px 4px rgba(0,0,0,.25); border: 0; padding: 0; flex: none; }
.trk-tg.on { background: #1f9d55; }
.trk-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(#fff, #e9e9e9); box-shadow: 0 2px 4px rgba(0,0,0,.35); transition: left .2s; }
.trk-tg.on .trk-knob { left: 27px; }
.trk-btn { width: auto; min-width: 104px; height: 38px; padding: 0 14px 0 44px; cursor: pointer; background: linear-gradient(#5a3a10, #3b2508); box-shadow: inset 0 2px 4px rgba(0,0,0,.4), 0 0 0 2px #d4af37; font: inherit; }
.trk-btn .trk-knob { top: 5px; left: 5px; width: 28px; height: 28px; }
.trk-btn .trk-bl { color: #f6dc8a; font-weight: 800; font-size: 14.5px; }
.trk-btn:active .trk-knob { left: calc(100% - 33px); }
.trk-list li.cur { border-color: #b8860b; box-shadow: 0 0 0 3px #f6dc8a, 0 0 14px rgba(242,181,28,.35); }
.trk-ok { display: none; }
.trk-acts { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 10px; }
.trk-acts .trk-reset { margin-top: 0; }
.trk-undo { font: inherit; font-size: 14px; font-weight: 800; padding: 8px 16px; border-radius: 999px; border: 2px solid #b8860b; background: #fff8e6; color: #5a3a10; cursor: pointer; }
.trk-dua { font-weight: 700; color: #0b4a32 !important; }
/* Friday khutbah live translation */
.ju-live { margin-top: 26px; }
.kh-langs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.kh-langs button { font: inherit; font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 999px; border: 1.5px solid #b8860b; background: var(--surface); color: var(--ink); cursor: pointer; }
.kh-langs button[aria-pressed="true"] { background: #0b4a32; color: #fff; border-color: #0b4a32; }
.kh-live { color: #e53935; font-size: 11.5px; margin-inline-start: 4px; }
.kh-vid { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; border: 2px solid #d4af37; }
.kh-vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* computers: the salah banner on a tidy grid - date | title | countdown, then the virtue, then the buttons together in the middle */
@media (min-width: 701px) {
  .time-bars .tbar-salah > .tb-in { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px 16px; text-align: center; }
  .time-bars .tbar-salah > .tb-in > * { margin: 0 !important; }
  .time-bars .tbar-salah > .tb-in > .tb-date { grid-column: 1; grid-row: 1; justify-self: start; }
  .time-bars .tbar-salah > .tb-in > .tb-head { grid-column: 2; grid-row: 1; justify-self: center; }
  .time-bars .tbar-salah > .tb-in > .tb-cd { grid-column: 3; grid-row: 1; justify-self: end; }
  .time-bars .tbar-salah > .tb-in > .tb-virt, .time-bars .tbar-salah > .tb-in > .tb-note, .time-bars .tbar-salah > .tb-in > .tb-note2 { grid-column: 1 / -1; justify-self: center; max-width: 900px; }
  .time-bars .tbar-salah > .tb-in > .tb-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; }
}
@media (max-width: 700px) { .tbar-salah .tb-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; flex-basis: 100%; } }
/* "How many rak'ahs?": the dropdown is the button itself */
.tb-ask-dd { position: relative; display: inline-flex; }
.tb-ask-dd .tb-q { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tb-ask-dd .tb-nsel { -webkit-appearance: none; appearance: none; font: inherit; font-size: 14px; font-weight: 700; color: #fff; background: #0b4a32 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23f6dc8a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 10px 6px; border: 0; border-radius: 999px; padding: 8px 32px 8px 16px; cursor: pointer; }
@media (min-width: 701px) {
  .time-bars .tbar-salah > .tb-in > .tb-virt, .time-bars .tbar-salah > .tb-in > .tb-note, .time-bars .tbar-salah > .tb-in > .tb-note2 { grid-row: 2; order: 0; }
  .time-bars .tbar-salah > .tb-in > .tb-acts { grid-row: 5; order: 0; }
  .time-bars .tbar-salah > .tb-in > .tb-virt + .tb-virt { grid-row: 3; }
  .time-bars .tbar-salah > .tb-in > .tb-virt + .tb-virt + .tb-virt { grid-row: 4; } /* Tahajjud shows two verses: one under the other, not on top of each other */
}
@media (max-width: 700px) { .time-bars .tbar-salah > .tb-in > .tb-acts { order: 50; } }
.tb-ask-dd .tb-nsel { line-height: 1.35; }

/* real photos: the Ka'bah on the Umrah box, the Green Dome on the Ziyarat box */
.hx-tile.hx-photo { background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(6,32,20,.82) 100%), var(--ph) center / cover no-repeat !important; color: #fff !important; justify-content: flex-end; min-height: 150px; }
.hx-tile.hx-photo .hx-med { display: none; }
.hx-tile.hx-photo b { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.hx-tile.hx-photo .hx-ar { color: #f6dc8a !important; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.hx-tile.hx-photo small { color: #f3eedd !important; }
@media (max-width: 700px) { .hx-tile.hx-photo { min-height: 118px; } }
.ls-photo { margin: 0 0 14px; border-radius: 16px; overflow: hidden; border: 2px solid #d4af37; position: relative; }
.ls-photo img { display: block; width: 100%; height: 230px; object-fit: cover; }
.ls-photo figcaption { position: absolute; right: 6px; bottom: 4px; font-size: 10px; color: #fff; background: rgba(0,0,0,.45); padding: 1px 6px; border-radius: 6px; }
/* adhan page: both "play" buttons readable */
.ls-full .btn, .ls-full .btn.ls-full-f { color: #fff !important; background: #0b4a32; border: 2px solid #d4af37; font-weight: 700; }
.ls-full .btn.ls-full-f { background: #6b4a05; }
.ls-full .btn.on, .ls-full .btn.ls-full-f.on { background: #8a6d12; color: #fff !important; }
/* our own drawn Ka'bah and Green Dome inside the gold medallion */
.hx-med.hx-med2 { width: 64px; height: 64px; }
.hx-med.hx-med2 svg.hx-ic2 { width: 36px; height: 36px; fill: initial; stroke: none; filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.45)); }
@media (max-width: 700px) { .hx-med.hx-med2 { width: 52px; height: 52px; } .hx-med.hx-med2 svg.hx-ic2 { width: 30px; height: 30px; } }

/* one language at a time: the tiles show only the chosen language */
.hx-tile .hx-ar { display: none !important; }

/* the green header strip: a gold girih pattern over the green, a gold line under it */
header.top > .wrap { background: url("img/theme/girih-gold.svg") 0 0 / 96px 96px, radial-gradient(120% 140% at 62% 0%, #0a5a3b 0%, #063a26 45%, #032a1b 100%) !important; border-bottom: 2px solid #c9a23a; box-shadow: inset 0 -1px 0 rgba(255,231,160,.35); }
#datebar { background: url("img/theme/girih-gold.svg") 0 0 / 72px 72px, #05301f !important; border-bottom: 1px solid rgba(201,162,58,.6); }
/* the shine passes behind the words, never over them */
nav.main .nav-in > a > span, nav.main .nav-in > a > .nv-ic { position: relative; z-index: 2; }
nav.main .nav-in > a { isolation: isolate; }
nav.main .nav-in > a::after { z-index: 1 !important; }
nav.main .nav-in > a > span, nav.main .nav-in > a > .nv-ic { position: relative; z-index: 3 !important; }

/* Gold girih pattern on the calendar banner and the support band */
.cmk-ad { background: url("img/theme/girih-gold-soft.svg") 0 0 / 84px 84px, linear-gradient(135deg, #0b4a32, #11603f 60%, #0b4a32) !important; }
.share-band { background: url("img/theme/girih-gold-soft.svg") 0 0 / 96px 96px, var(--ink) !important; border-top: 2px solid #c9a23a; border-bottom: 2px solid #c9a23a; }

/* Home tiles: an embossed gold frame (gold only on the edge, the inside stays cream) */
.hx-tile { border: 4px solid transparent !important; border-radius: 6px !important;
  background: linear-gradient(#fffcf3, #f7edd3) padding-box, linear-gradient(135deg, #7a5a12 0%, #f6e08a 22%, #b8862a 45%, #fff0b3 68%, #a57a1c 85%, #6e500f 100%) border-box !important;
  box-shadow: 0 0 0 1px #6e500f, 0 3px 6px -2px rgba(0,0,0,.55), inset 0 0 0 1px rgba(110,80,15,.55), inset 0 2px 4px rgba(110,80,15,.18) !important; }
.hx-tile:hover { box-shadow: 0 0 0 1px #6e500f, 0 10px 18px -8px rgba(0,0,0,.6), inset 0 0 0 1px rgba(110,80,15,.7), inset 0 2px 4px rgba(110,80,15,.22) !important; }
:root[data-theme="dark"] .hx-tile { background: linear-gradient(#17271f, #102019) padding-box, linear-gradient(135deg, #7a5a12 0%, #f6e08a 22%, #b8862a 45%, #fff0b3 68%, #a57a1c 85%, #6e500f 100%) border-box !important; }

/* Language button: code + flag of the visitor's country, e.g. "EN 🇸🇦" */
label.ui-lang.ul-badge { width: auto !important; min-width: 44px; padding: 0 10px !important; border-radius: 999px !important; gap: 6px !important; display: inline-flex; align-items: center; justify-content: center; }
label.ui-lang.ul-badge .ul-code { font-size: 14px !important; font-weight: 700; letter-spacing: .5px; color: #ffe9a0; font-family: system-ui, sans-serif; }
label.ui-lang.ul-badge .ul-flag { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.25); pointer-events: none; }
.datebar label.ui-lang.ul-badge { height: 30px; padding: 0 8px !important; }
.datebar label.ui-lang.ul-badge .ul-code { font-size: 12px !important; }
html[data-ui="ar"] .share-band .sb-tr { display: none; } /* the hadith is already shown in Arabic above it */

/* Menu shine: all buttons light up together (the script restarts them at the same moment) */
@keyframes qshine2 { 0% { left: -60%; } 55%, 100% { left: 130%; } }
nav.main.nv-sync .nav-in > a::after { animation-name: qshine2 !important; animation-delay: 0s !important; }
/* phones: the language button stays a small circle, code on top and flag under it */
@media (max-width: 700px) {
  header.top label.ui-lang.ul-badge { width: 40px !important; min-width: 0; height: 40px; padding: 0 !important; border-radius: 50% !important; flex-direction: column; gap: 1px !important; }
  header.top label.ui-lang.ul-badge .ul-code { font-size: 11px !important; line-height: 1; }
  header.top label.ui-lang.ul-badge .ul-flag { width: 16px; height: 12px; }
}
/* footer: HOME | SHARE THIS PAGE | SUBSCRIBE on every page */
footer .ft-nav { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; letter-spacing: .5px; }
html:not([data-ui="ar"]):not([data-ui="ur"]):not([data-ui="fa"]) footer .ft-nav a { text-transform: uppercase; }
footer .ft-nav a { text-decoration: none; color: #8a6410; }
footer .ft-nav a:hover { text-decoration: underline; }
footer .ft-nav i { font-style: normal; color: #c9a23a; }
.ft-copied { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: #0b4a32; color: #fff; border: 1px solid #d4af37; border-radius: 999px; padding: 8px 16px; z-index: 9999; font-weight: 600; }
footer .wrap { display: flex !important; flex-direction: column; align-items: center !important; justify-content: center !important; text-align: center; gap: 8px; }
footer .ft-nav { justify-content: center; }
html[data-ui="ar"] footer .wrap, html[data-ui="ur"] footer .wrap, html[data-ui="fa"] footer .wrap { direction: rtl; }

/* Record my voice: a small bar under each dua / zikr / guide text and at the top of each surah */
.rv-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 4px; }
.rv-b { font: 600 14px/1 system-ui, sans-serif; padding: 9px 14px; border-radius: 999px; border: 1.5px solid #c9a23a; background: #fffaf0; color: #0b4a32; cursor: pointer; }
.rv-b:hover { background: #fff2cc; }
.rv-play { background: #0b4a32 !important; color: #fff !important; border-color: #0b4a32 !important; }
.rv-sel { background: #e9c766; }
.rv-on { background: #b3261e !important; color: #fff !important; border-color: #b3261e !important; animation: rvp 1.2s ease-in-out infinite; }
@keyframes rvp { 50% { box-shadow: 0 0 0 6px rgba(179,38,30,.18); } }
.rv-time { font: 700 14px system-ui, sans-serif; color: #b3261e; font-variant-numeric: tabular-nums; }
.rv-del { padding: 9px 11px; }
.rv-note { flex-basis: 100%; text-align: center; font-size: 12px; color: #7a6a44; }
.rv-note.rv-warn { color: #b3261e; font-weight: 600; }
.rv-surah { margin: 0 0 14px; padding: 10px; border: 1px dashed #c9a23a; border-radius: 14px; background: rgba(233,199,102,.08); }
:root[data-theme="dark"] .rv-b { background: #17271f; color: #f3e6bf; }
:root[data-theme="dark"] .rv-play { background: #c9a23a; color: #0b2a1c; }
:root[data-theme="dark"] .rv-note { color: #c9b57a; }
/* follow along while reading / listening */
.rv-reading { outline: 2px solid rgba(201,162,58,.65); outline-offset: 6px; border-radius: 10px; background: rgba(255,233,160,.10); transition: background .3s; }
.rvw.rv-now, .aw.rv-now { background: #ffe08a; color: #0b3b27 !important; border-radius: 6px; box-shadow: 0 0 0 3px #ffe08a; }
.rvw.rv-done, .aw.rv-done { color: #1f7a4d !important; }
:root[data-theme="dark"] .rvw.rv-done { color: #8fd3a8 !important; }
/* Bismillah on its own line above the ayat */
.ar-bas { display: block; text-align: center; margin: 0 0 .35em; }
.rv-share { background: #25d366 !important; color: #fff !important; border-color: #1da851 !important; }
/* how-to box for recording and sharing your voice (top of the adhkar) */
.rv-tut { margin: 0 0 16px; border-radius: 16px; border: 3px solid transparent; background: linear-gradient(#fffcf3, #f7edd3) padding-box, linear-gradient(135deg, #7a5a12, #f6e08a 25%, #b8862a 50%, #fff0b3 75%, #7a5a12) border-box; padding: 14px 18px; }
.rv-tut h3 { margin: 0 0 8px; color: #0b4a32; font-size: 19px; text-align: center; }
.rv-tut ol { margin: 0; padding-inline-start: 22px; color: #3b3220; line-height: 1.6; }
.rv-tut li { margin: 6px 0; }
.rv-tut p { margin: 10px 0 6px; text-align: center; font-size: 13px; color: #7a6a44; }
.rv-tut-ok { display: block; margin: 6px auto 0; padding: 9px 22px; border-radius: 999px; border: 0; background: #0b4a32; color: #fff; font-weight: 700; cursor: pointer; }
.rv-tut-open { display: none; width: 100%; padding: 4px; border: 0; background: none; color: #8a6410; font-weight: 700; cursor: pointer; text-decoration: underline; }
.rv-tut.rv-tut-min { padding: 6px; }
.rv-tut.rv-tut-min .rv-tut-in { display: none; }
.rv-tut.rv-tut-min .rv-tut-open { display: block; }
:root[data-theme="dark"] .rv-tut { background: linear-gradient(#17271f, #102019) padding-box, linear-gradient(135deg, #7a5a12, #f6e08a 25%, #b8862a 50%, #fff0b3 75%, #7a5a12) border-box; }
:root[data-theme="dark"] .rv-tut h3, :root[data-theme="dark"] .rv-tut ol { color: #f3e6bf; }

/* phones: a shorter surah list, so the page itself can still be scrolled past it */
@media (max-width: 860px) {
  .surahs { max-height: min(61vh, 560px); }
  /* a slim heading: title and its buttons on one line */
  .surahs .s-head { flex-wrap: nowrap; padding: 12px 12px; gap: 6px; }
  .surahs .s-head b { flex: 1 1 auto; font-size: 22px; text-align: start; }
  .surahs input { margin: 8px 10px 6px; padding: 8px 12px; }
  .s-filter { margin-bottom: 4px; }
  /* the "☰ Index" tab of the hidden list: lower down and slim, so it does not cover the back button or the surah arrows */
  body.surahs-min .s-handle { top: 34vh; padding: 12px 6px; font-size: 14px; }
}

/* A− / A+ beside the reading options on the Quran page */
.qc-size { padding: 0 !important; gap: 0; overflow: hidden; }
.qc-size button { border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; padding: 7px 13px; cursor: pointer; }
.qc-size button + button { border-left: 1px solid var(--line); }
.qc-size button:hover { background: var(--gold-soft); }
.qc-font .qc-aa { font-family: "Amiri Quran", "Amiri", serif; font-weight: 700; color: var(--gold-strong, #8a6a1f); margin-inline-end: 4px; }
.ls-sphoto { max-width: 760px; margin: 0 auto 14px; } .ls-sphoto img { height: 260px; }

/* surah list heading: the same gold mushaf pattern as the surah heading */
.surahs .s-head { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23e2c06a' stroke-opacity='.28' stroke-width='1'%3E%3Crect x='17' y='17' width='22' height='22'/%3E%3Crect x='17' y='17' width='22' height='22' transform='rotate(45 28 28)'/%3E%3Cpath d='M0 28h10M46 28h10M28 0v10M28 46v10M0 0l10 10M56 0L46 10M0 56l10-10M56 56L46 46'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 56px 56px, linear-gradient(#0f5e3e, #063a26); }

/* the "☰ Index" tab of the hidden list: gold so it is easy to see */
body.surahs-min .s-handle { background: linear-gradient(#f3d47a, #d4a73e); color: #1d2a22; font-weight: 800; border: 1px solid #b8892a; box-shadow: 0 4px 12px rgba(0, 0, 0, .3); }

.ls-map { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 14px; border-radius: 999px; background: #0b4a32; color: #fff !important; font-weight: 700; font-size: 14px; text-decoration: none; border: 2px solid #d4af37; }
.ls-map small { opacity: .8; font-weight: 500; }
.ls-map:hover { background: #0f6342; }
.ls-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 760px; margin: 0 auto 14px; }
.ls-photos .ls-photo { margin: 0; }
.ls-photos .ls-photo img { height: 240px; }
@media (max-width: 560px) { .ls-photos .ls-photo img { height: 170px; } }
.ls-photos:has(> .ls-photo:only-child) { grid-template-columns: 1fr; }
/* show the whole photo (the full masjid), not a cropped strip */
.ls-sphoto img, .ls-photos .ls-photo img { height: auto !important; max-height: 520px; object-fit: contain; background: #f4ead6; }
.ls-photos { align-items: start; }

/* New logo (Nov 2026): transparent mark with a thin light outline so the green star reads on the dark header; no moving light (final logo is still) */
.brand .brand-mark { display: inline-grid; place-items: center; flex: none; }
.brand .brand-mark img { width: 84px !important; height: 84px !important; border-radius: 0; object-fit: contain; }
@media (max-width: 700px) { .brand .brand-mark img { width: 60px !important; height: 60px !important; } }

/* Nama-e-Aamaal: one box, today / this week / this month */
.nama-per { display: flex; gap: 6px; padding: 5px; margin: 18px 0 14px; border-radius: 999px; background: linear-gradient(180deg, #0b4a32, #08382a); border: 1.5px solid #d3a93c; box-shadow: 0 4px 14px rgba(11,74,50,.18); }
.nama-per button { flex: 1; font: inherit; font-weight: 700; font-size: 15px; padding: 10px 8px; border: 0; border-radius: 999px; background: transparent; color: #f3e6c1; cursor: pointer; }
.nama-per button[aria-selected="true"] { background: linear-gradient(180deg, #f6dc8a, #d3a93c); color: #0b3f2a; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.nama-period .mo-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mo-bars.mo-bars-m, .mo-blabels.mo-blabels-m { grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; }
.mo-bars.mo-bars-m .b { border-radius: 4px 4px 0 0; }
.rep-did b, .rep-miss > b { display: block; margin: 12px 0 4px; }
@media (max-width: 640px) { .nama-period .mo-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the bedtime sheet */
.nama-dlg { max-width: 560px; width: calc(100vw - 24px); padding: 0; border: 0; border-radius: 22px; background: transparent; }
.nama-dlg::backdrop { background: rgba(4,28,19,.72); }
.nama-sheet { background: #fbf6ea; color: #2a2316; border: 2px solid #d3a93c; border-radius: 22px; padding: 22px 20px 16px; box-shadow: 0 0 0 6px #0b4a32, 0 18px 50px rgba(0,0,0,.45); max-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.nama-sheet .rep-aya-ar { color: #0b3f2a; text-align: center; font-size: clamp(24px, 6vw, 32px); line-height: 1.9; }
.nama-sheet .nama-ref { text-align: center; font-size: 13.5px; color: #6b5a33; margin: 0 0 10px; }
.nama-sheet h3 { margin: 4px 0 0; font-size: 22px; color: #0b3f2a; }
.nama-list { overflow: auto; min-height: 80px; margin: 0 -4px; padding: 0 4px; }
.nama-more { display: block; margin: 10px 0 0; font-weight: 700; color: #0b4a32; }
.nama-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #e3d6ad; margin-top: 12px; padding-top: 12px; }
.nama-foot .wz-c { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.nama-foot .btn { min-width: 110px; }
.nama-sheet > * { flex-shrink: 0; }
.nama-sheet > .nama-list { flex: 1 1 auto; flex-shrink: 1; outline: none; }
.nama-sheet .rep-aya-ar { direction: rtl; }
.nm-g { display: block; font-size: 12px; color: var(--muted); }
/* Nama-e-Aamaal summary rows */
.nama-sum { margin: 4px 0 6px; }
.ns-row { border: 1px solid #e3d6ad; border-radius: 12px; background: #fffdf6; margin: 6px 0; }
.ns-row > summary, div.ns-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; list-style: none; cursor: pointer; }
div.ns-row { cursor: default; }
.ns-row > summary::-webkit-details-marker { display: none; }
.ns-ic { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #fff; }
.ns-ok .ns-ic { background: #1f8a4c; } .ns-no .ns-ic { background: #c0392b; } .ns-mid .ns-ic { background: #d39b22; }
.ns-ic .av, .ns-ic img { width: 28px; height: 28px; }
.ns-t { flex: 1; font-weight: 600; color: #2a2316; }
.ns-pc { font-weight: 800; color: #0b4a32; min-width: 44px; text-align: end; }
.ns-no .ns-pc { color: #c0392b; } .ns-mid .ns-pc { color: #a8741a; }
.ns-plus { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #d3a93c; color: #8a6410; display: grid; place-items: center; font-weight: 800; transition: transform .2s; }
.ns-row[open] .ns-plus { transform: rotate(45deg); }
.ns-det { padding: 0 12px 10px 50px; }
[dir="rtl"] .ns-det { padding: 0 50px 10px 12px; }
.ns-tv { margin: 0 0 6px; font-size: 13.5px; color: #6b5a33; }
.ns-it { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; border-top: 1px dashed #eadfbf; font-size: 14px; }
.ns-it > span:nth-child(2) { flex: 1; }
.ns-it .mo-ok { color: #1f8a4c; } .ns-it .mo-no { color: #c0392b; }
.ns-punch { margin: 14px 0 6px; padding: 14px; border-radius: 14px; background: linear-gradient(180deg, #0b4a32, #08382a); color: #f6ecd0; text-align: center; border: 1.5px solid #d3a93c; }
.ns-punch b { display: block; font-size: 17px; color: #f6dc8a; }
.ns-punch p { margin: 6px 0 10px; }
.ns-go { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.ns-go a { flex: 1 1 0; min-width: 96px; padding: 10px 8px; border-radius: 12px; background: #fbf6ea; color: #0b3f2a; font-weight: 800; text-decoration: none; border: 1.5px solid #d3a93c; }
.ns-full { background: linear-gradient(180deg, #1f8a4c, #146b39); }
.ns-fam { margin-top: 12px; }
.ns-fh { display: block; margin: 0 0 4px; color: #0b3f2a; }
.ns-share { display: block; width: 100%; margin: 12px 0 0; padding: 11px; border-radius: 999px; border: 1.5px solid #0b4a32; background: #fff; color: #0b4a32; font: inherit; font-weight: 800; cursor: pointer; }
.nama-all { margin: 12px 0 0; } .nama-all > summary { cursor: pointer; font-weight: 700; color: #8a6410; padding: 6px 0; }
.nama-foot { flex-direction: column; align-items: stretch; }
.nama-foot .btn { width: 100%; }
[data-theme="dark"] .ns-row { background: #fffdf6; }
.ns-row > summary:focus:not(:focus-visible) { outline: none; }
.ns-g { display: block; font-size: 12px; color: #8a7a55; }
.nama-bar span { unicode-bidi: isolate; }
/* Nama-e-Aamaal head: gold ayah on green, red reminder, golden title */
.nh { margin: -22px -20px 10px; padding: 22px 18px 16px; border-radius: 20px 20px 0 0; text-align: center; color: #f3ead2;
  background: radial-gradient(120% 90% at 50% 0%, #135c3f 0%, #0b4a32 45%, #062a1d 100%); border-bottom: 2px solid #d3a93c; }
.mo-card.nama .nh { margin: -16px -16px 12px; border-radius: 16px 16px 0 0; }
.nh-aya { font-family: "Amiri Quran", "Amiri", var(--font-quran), serif; font-size: clamp(28px, 7vw, 40px); line-height: 2; color: #f3d98f; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
.nh-tr { margin: 2px 6px 4px; font-size: 16px; line-height: 1.55; color: #fff; font-weight: 600; }
.nh-tr[lang="ur"] { font-family: "Noto Nastaliq Urdu", serif; font-size: 17px; line-height: 2.2; font-weight: 400; }
.nh-ref { margin: 0 0 14px; font-size: 13px; color: #cdbf95; }
.nh-red { margin: 0 4px 16px; padding: 14px 14px; border-radius: 14px; background: linear-gradient(180deg, #5a1020, #3d0a16); border: 1.5px solid #e2546a; color: #fff; font-weight: 700; font-size: 16px; line-height: 1.55; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.nh[dir="rtl"] .nh-red { font-family: "Noto Nastaliq Urdu", var(--font-ar), serif; font-weight: 400; line-height: 2.1; }
.nh-title { display: flex; align-items: center; justify-content: center; gap: 12px; }
.nh-orn { color: #d3a93c; font-size: 22px; opacity: .9; }
.nh-t { font-family: "Marcellus", "Amiri", serif; font-weight: 400; font-size: clamp(34px, 9vw, 46px); line-height: 1.3; letter-spacing: .02em;
  background: linear-gradient(180deg, #fff6cf 0%, #f6dc8a 30%, #d3a93c 55%, #a77a1c 75%, #f3d98f 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.35)) drop-shadow(0 0 10px rgba(246,220,138,.25)); }
.nh-t2 { font-family: "Noto Nastaliq Urdu", serif; font-size: clamp(34px, 9vw, 46px); line-height: 2; }
.nh-t1 { font-family: "Amiri", serif; font-weight: 700; line-height: 1.8; }
.nh-sub { margin: 2px 0 0; color: #f3d98f; font-size: 15px; }
.nh[dir="rtl"] .nh-sub { font-family: "Noto Nastaliq Urdu", var(--font-ar), serif; line-height: 2.1; }
.nh-date { text-align: center; margin: 0 0 8px !important; }
/* the whole sheet scrolls (head, list, family); the close bar stays at the bottom */
.nama-sheet { display: block; overflow: auto; overscroll-behavior: contain; padding-bottom: 0; }
.nama-sheet > .nama-list { overflow: visible; }
.nama-foot { position: sticky; bottom: 0; background: #fbf6ea; margin: 12px -20px 0; padding: 12px 20px 14px; box-shadow: 0 -6px 14px rgba(251,246,234,.95); }
/* heading only: framed green band, crescent, golden title, the ayah small beneath */
.nh { position: relative; padding: 18px 22px 14px; background: url(img/theme/girih-gold-soft.svg) center / 120px, radial-gradient(120% 100% at 50% 0%, #156343 0%, #0b4a32 50%, #062a1d 100%); }
.nh::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(233,199,102,.55); border-radius: 14px; pointer-events: none; box-shadow: inset 0 0 0 3px rgba(11,74,50,.9), inset 0 0 0 4px rgba(233,199,102,.25); }
.nh-c { position: absolute; width: 34px; height: 34px; background: url(img/theme/corner.svg) center / contain no-repeat; pointer-events: none; }
.nh-c.tl { top: 4px; left: 4px; } .nh-c.tr { top: 4px; right: 4px; transform: scaleX(-1); } .nh-c.bl { bottom: 4px; left: 4px; transform: scaleY(-1); } .nh-c.br { bottom: 4px; right: 4px; transform: scale(-1); }
.nh-moon { display: block; width: 40px; height: 40px; margin: 0 auto -2px; }
.nh-title { position: relative; display: flex; justify-content: center; align-items: center; gap: 0; margin: 0 0 2px; }
.nh-title::before, .nh-title::after { content: ""; flex: 1; max-width: 70px; height: 2px; background: linear-gradient(90deg, transparent, #d3a93c); }
.nh-title::after { background: linear-gradient(90deg, #d3a93c, transparent); }
.nh-t { padding: 0 14px; font-size: clamp(38px, 10vw, 52px); }
.nh-aya { font-size: clamp(20px, 5.4vw, 26px); line-height: 1.9; margin-top: 2px; }
.nh-tr { font-size: 13.5px; font-weight: 500; color: #efe4c4; margin: 0 8px 2px; }
.nh-tr[lang="ur"] { font-size: 14.5px; line-height: 2.1; }
.nh-ref { font-size: 12px; color: #cdbf95; white-space: normal; text-align: end; }
.nh-date { margin: 6px 0 0 !important; display: inline-block; padding: 3px 14px; border-radius: 999px; border: 1px solid rgba(233,199,102,.6); color: #f3d98f !important; font-size: 13px; background: rgba(0,0,0,.18); }
.nh-red, .nh-sub, .nh-orn { display: none; }
.nh-sub2 { margin: 10px 10px 0; color: #f6dc8a; font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.nh[dir="rtl"] .nh-sub2 { font-family: "Noto Nastaliq Urdu", var(--font-ar), serif; font-weight: 400; line-height: 2.1; }
.ns-plus { width: auto; height: auto; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; font-weight: 700; border-width: 1px; white-space: normal; text-align: end; }
.ns-plus::after { content: " ▾"; }
.ns-row[open] .ns-plus { transform: none; background: #f3e6c1; }
.ns-row[open] .ns-plus::after { content: " ▴"; }
.ns-punch, .ns-punch b, .ns-punch p { text-align: center !important; }
.ns-go a, .ns-share, .nama-foot .btn { display: flex; align-items: center; justify-content: center; text-align: center !important; }
.nama-foot .wz-c { justify-content: center; }
/* logo more prominent: bigger, a soft light behind it and a golden glow */
.brand .brand-mark { position: relative; margin: -14px 0 -18px; }
.brand .brand-mark::before { content: ""; position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle, rgba(251,240,200,.38) 0%, rgba(246,220,138,.16) 45%, transparent 70%); pointer-events: none; }
.brand .brand-mark img { position: relative; width: 120px !important; height: 120px !important; filter: drop-shadow(0 0 5px rgba(246,220,138,.55)) drop-shadow(0 3px 6px rgba(0,0,0,.45)); }
@media (max-width: 700px) { .brand .brand-mark { margin: -6px 0 -8px; } .brand .brand-mark img { width: 64px !important; height: 64px !important; } }
/* the hadith and the note each on their own line (they were on the same grid row and overlapped) */
@media (min-width: 701px) {
  .time-bars .tbar-salah > .tb-in > .tb-note, .time-bars .tbar-salah > .tb-in > .tb-note2 { grid-row: 3; }
  .time-bars .tbar-salah > .tb-in > .tb-acts { grid-row: 4; }
}
/* the tick / cross always first on the left, then the name, whatever the language */
.nama-sum .ns-row > summary, .nama-sum div.ns-row, .nama-sum .ns-it, .nama-dlg .mo-row, .mo-card.nama .mo-row { direction: ltr; }
.nama-sum .ns-t, .nama-sum .ns-it > span:nth-child(2), .nama-dlg .mo-row .grow, .mo-card.nama .mo-row .grow { unicode-bidi: plaintext; text-align: left; }
.nama-sum .ns-det { padding: 0 12px 10px 50px !important; }
.ns-plus { display: inline-flex !important; align-items: center; gap: 3px; line-height: 1.6; }
/* name first, then the tick / cross after it (in reading order, in every language) */
.nama-sum .ns-row > summary, .nama-sum div.ns-row, .nama-sum .ns-it, .nama-dlg .mo-row, .mo-card.nama .mo-row { direction: inherit; }
.nama-sum .ns-t, .nama-sum .ns-it > span:nth-child(2), .nama-dlg .mo-row .grow, .mo-card.nama .mo-row .grow { unicode-bidi: normal; text-align: start; }
.nama-sum .ns-t { order: 1; flex: 0 1 auto; } .nama-sum .ns-ic { order: 2; margin-inline-end: auto; } .nama-sum .ns-pc { order: 3; } .nama-sum .ns-plus { order: 4; }
.nama-sum .ns-it > span:nth-child(2) { order: 1; flex: 0 1 auto; } .nama-sum .ns-it > span:nth-child(1) { order: 2; margin-inline-end: auto; font-weight: 800; }
.nama-sum .ns-it > .ns-pc { order: 3; }
.mo-card.nama .mo-row .grow { order: 1; flex: 0 1 auto; } .mo-card.nama .mo-row > span:first-child { order: 2; margin-inline-end: auto; }
.mo-card.nama .mo-row > .mo-sub { order: 3; }
.nama-sum .ns-det { padding: 0 14px 10px !important; }
/* plain marks, no circle: red ✘, green ✔, amber – */
.ns-ic { width: auto; height: auto; border-radius: 0; background: none !important; font-size: 20px; line-height: 1; }
.ns-ok .ns-ic { color: #1f8a4c; } .ns-no .ns-ic { color: #d0312d; } .ns-mid .ns-ic { color: #c9901a; }
.ns-fam .ns-ic { font-size: 14px; }
/* backbiting: your % falls, theirs rises */
.gh-pc { display: block; margin-top: 6px; font-style: normal; font-weight: 800; font-size: 26px; line-height: 1; padding: 6px 12px; border-radius: 12px; min-width: 70px; text-align: center; }
.gh-pc-me { color: #fff; background: linear-gradient(180deg, #2e8b57, #1f6b41); box-shadow: 0 0 0 2px rgba(243,217,143,.6); transition: background .4s; }
.gh-pc-me.gh-zero { background: linear-gradient(180deg, #b3261e, #7c140f); box-shadow: 0 0 0 2px #ff8a80, 0 0 18px rgba(255,80,80,.55); }
.gh-pc-him { color: #0b3a26; background: linear-gradient(180deg, #fff6cf, #f3d98f); box-shadow: 0 0 0 2px #d3a93c; }
.gh-pc-him.gh-full { box-shadow: 0 0 0 2px #f6dc8a, 0 0 22px rgba(246,220,138,.8); }
/* punch line: no green block, just the words; small buttons, not full width */
.ns-punch { background: none !important; border: 0 !important; box-shadow: none; padding: 10px 4px 4px; color: #2a2316; }
.ns-punch b { color: #8a1c1c !important; font-size: 19px !important; line-height: 1.5; }
.ns-full b { color: #1f6b41 !important; }
.ns-punch p { color: #4a3d22; margin: 4px 0 10px; }
.ns-go { gap: 8px; }
.ns-go a { flex: 0 0 auto !important; min-width: 0 !important; padding: 6px 14px !important; border-radius: 999px !important; font-size: 14px; border-width: 1px !important; background: #fff !important; }
.ns-share { display: flex; width: auto !important; margin: 12px auto 0 !important; padding: 8px 20px !important; font-size: 14px; }
.nama-foot { align-items: center; }
.nama-foot .btn { width: auto !important; min-width: 0; padding: 9px 26px; font-size: 15px; }
/* heading, then Today / This week / This month, then the progress */
.mo-card.nama-top { padding: 16px 16px 0; margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; overflow: hidden; }
.mo-card.nama-top .nh { margin-bottom: 0; }
.mo-card.nama-top .nama-per { margin: 12px 0 12px; }
.nama-pane > .mo-card:first-child, .nama-pane > .mo-card.nama-body { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; }
.nama-period .mo-stats { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.nama-period .mo-bars { height: 96px; margin-top: 22px; }
.nama-period .mo-bars.mo-bars-m { height: 80px; }
.nama-period .mo-stats { grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 6px; }
.nama-period .mo-stats div { padding: 8px 6px; font-size: 12.5px; line-height: 1.3; }
.nama-period .mo-stats b { font-size: 20px; margin-bottom: 2px; }
/* the punch line, prominent */
.ns-punch { margin: 18px 0 8px; padding: 14px 8px 6px; border-top: 2px solid #e9c766; }
.ns-punch b { font-size: clamp(21px, 2.6vw, 26px) !important; font-weight: 800; line-height: 1.45; letter-spacing: .005em; }
.ns-punch p { font-size: clamp(17px, 2vw, 20px) !important; font-weight: 700; color: #0b4a32 !important; margin: 8px 0 12px !important; }
[dir="rtl"] .ns-punch b, [dir="rtl"] .ns-punch p, .nama-sheet[dir="rtl"] .ns-punch b { line-height: 2; }
/* the backbiting question: a small box */
.ghibat { max-width: 520px; margin: 14px auto 4px !important; padding: 10px 14px !important; border-width: 1.5px !important; border-radius: 14px !important; text-align: center; }
.ghibat .gh-q { margin: 0 0 8px; font-size: 15px; }
.ghibat .gh-btns { display: flex; justify-content: center; gap: 8px; }
.ghibat .gh-btns .btn { padding: 5px 14px; font-size: 13.5px; }
.ghibat .gh-name { display: flex; gap: 8px; align-items: flex-end; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.ghibat .gh-name[hidden] { display: none; }
.ghibat .gh-name label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; text-align: start; flex: 1 1 220px; max-width: 300px; }
.ghibat .gh-name .mo-in { padding: 6px 10px; }
.ghibat .gh-ok { font-size: 13.5px; margin: 8px 0 0; }
/* two lines: the question with Yes / No, then the name with Show me */
.ghibat { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; }
.ghibat .gh-q { margin: 0; }
.ghibat .gh-name { flex-basis: 100%; margin-top: 2px; align-items: center; flex-wrap: nowrap; }
.ghibat .gh-name label { flex-direction: row; align-items: center; gap: 8px; max-width: none; flex: 1 1 auto; white-space: normal; text-align: end; }
.ghibat .gh-name label .mo-in { flex: 1 1 140px; min-width: 100px; }
.ghibat .gh-ok { flex-basis: 100%; }
@media (max-width: 520px) { .ghibat .gh-name label span { white-space: normal; font-size: 12px; } }
.ghibat { max-width: 660px; }
.ghibat .gh-name .btn { white-space: nowrap; flex: none; }
.gh-scene[dir="rtl"] .gh-h p[lang="ur"], .gh-scene[dir="rtl"] .gh-sum, .gh-scene[dir="rtl"] .gh-do { font-family: "Noto Nastaliq Urdu", var(--font-ar), serif; line-height: 2.2; }
.gh-scene .gh-arh { font-family: "Amiri", serif; font-size: 19px; line-height: 2; }
/* backbiting scene: one language; English as big as Urdu */
.gh-scene h3 { font-size: clamp(24px, 4.4vw, 30px) !important; line-height: 1.5; text-align: center; color: #f3d98f; }
.gh-scene[dir="rtl"] h3 { font-family: "Noto Nastaliq Urdu", var(--font-ar), serif; line-height: 2.1; }
.gh-scene .gh-sum { font-size: 18px; }
.gh-scene .gh-h p { font-size: 17px; line-height: 1.65; }
.gh-scene .gh-do { font-size: 17px; } .gh-scene .gh-do b { font-size: 19px; }
.gh-scene[dir="rtl"] .gh-h p[lang="ur"], .gh-scene[dir="rtl"] .gh-do, .gh-scene[dir="rtl"] .gh-sum { font-size: 17px; line-height: 2.2; }
.ns-go { flex-wrap: wrap; align-items: center; }
.ns-go .ns-share-in { margin: 0 !important; display: inline-flex; padding: 6px 14px !important; font-size: 14px; border-width: 1px; }
/* "the night is not over yet": a soft golden glow that breathes */
.ns-punch:not(.ns-full) p { display: inline-block; padding: 2px 10px; border-radius: 10px; animation: nsGlow 2.2s ease-in-out infinite; }
@keyframes nsGlow { 0%, 100% { text-shadow: 0 0 0 rgba(233,199,102,0); background: rgba(246,220,138,0); } 50% { text-shadow: 0 0 10px rgba(233,180,60,.85), 0 0 2px rgba(255,240,190,.9); background: rgba(246,220,138,.28); } }
@media (prefers-reduced-motion: reduce) { .ns-punch:not(.ns-full) p { animation: none; } }
.fam-cta { text-align: center; margin: 14px 0 4px; } .fam-cta .tg-btn { display: inline-flex; text-decoration: none; }
.nama-foot.nama-foot-page { position: static; margin: 18px auto 6px; padding: 14px 0 0; background: none; box-shadow: none; display: flex; flex-direction: column; align-items: center; gap: 10px; border-top: 1px solid #e3d6ad; max-width: 520px; }
/* ayah on top and biggest; the title under it */
.nh-aya { font-size: clamp(34px, 8.4vw, 52px) !important; line-height: 1.9 !important; margin: 0 0 2px; }
.nh-t { font-size: clamp(28px, 7vw, 40px) !important; }
.nh-title { margin: 8px 0 2px; }
.nh-tr { margin-bottom: 4px; }
/* Set new targets · Close · the checkbox, in one line */
.nama-foot.nama-foot-page { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; max-width: none; }
.nama-foot-page .tg-btn { display: inline-flex; text-decoration: none; padding: 9px 20px; font-size: 15px; }
.nama-foot-page .btn { padding: 10px 22px; }
/* the Nama-e-Aamaal full screen: nothing else visible */
dialog.nama-full { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fbf5e6; }
dialog.nama-full::backdrop { background: #fbf5e6; }
html.nama-open, html.nama-open body { overflow: hidden; }
.nama-fs { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: radial-gradient(120% 60% at 50% 0%, #fffaf0 0%, #fbf5e6 60%, #f5ecd6 100%); }
.nama-fs-body { max-width: 980px; margin: 0 auto; padding: 14px max(12px, env(safe-area-inset-left)) 28px; }
.nama-x { position: fixed; top: 10px; right: 12px; z-index: 5; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid #d3a93c; background: rgba(11,74,50,.92); color: #f6dc8a; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
[dir="rtl"] .nama-x { right: auto; left: 12px; }
@media (max-width: 700px) { .nama-fs-body { padding: 8px 8px 24px; } .nama-x { top: 6px; right: 6px; width: 36px; height: 36px; font-size: 22px; } }
.hm-cal-bottom { margin-top: 18px; margin-bottom: 18px; }
/* space between the ayah and its translation; the translation easy to read */
.nh-aya { margin-bottom: 12px !important; }
.nh-tr { font-size: clamp(16px, 2.1vw, 19px) !important; line-height: 1.6; font-weight: 600; color: #fffaf0; margin: 0 10px 6px !important; }
.nh-tr[lang="ur"] { font-size: clamp(17px, 2.3vw, 20px) !important; line-height: 2.2; font-weight: 400; }
.nh-ref { font-size: 13px; }
/* "not only for the awliya …": a cream ribbon the eye stops on */
.nh-sub2 { position: relative; display: inline-block; max-width: 760px; margin: 14px auto 4px !important; padding: 10px 22px; border-radius: 14px;
  background: linear-gradient(180deg, #fffaf0 0%, #f6e7bd 100%); color: #0b3f2a !important; border: 1.5px solid #d3a93c;
  box-shadow: 0 0 0 4px rgba(211,169,60,.18), 0 6px 18px rgba(0,0,0,.3); font-size: clamp(16px, 2.2vw, 19px) !important; font-weight: 800 !important; line-height: 1.5; overflow: hidden; }
.nh-sub2::before, .nh-sub2::after { content: "✦"; color: #b8892a; font-size: .9em; margin: 0 8px; }
.nh-sub2 { animation: nhRibbon 3.4s ease-in-out infinite; }
@keyframes nhRibbon { 0%, 100% { box-shadow: 0 0 0 4px rgba(211,169,60,.18), 0 6px 18px rgba(0,0,0,.3); } 50% { box-shadow: 0 0 0 5px rgba(246,220,138,.55), 0 0 22px rgba(246,220,138,.55), 0 6px 18px rgba(0,0,0,.3); } }
@media (prefers-reduced-motion: reduce) { .nh-sub2 { animation: none; } }
.nh[dir="rtl"] .nh-sub2 { font-weight: 400 !important; line-height: 2.1; }
.ns-face { order: 3; font-size: 22px; line-height: 1; flex: none; }
.nama-sum .ns-pc { order: 3; } .nama-sum .ns-face { order: 3; margin-inline-start: -4px; } .nama-sum .ns-plus { order: 4; }
/* "not only for the awliya": no box; the words themselves in gold, with a light that runs across them */
.nh-sub2 { display: block !important; max-width: 820px; margin: 14px auto 2px !important; padding: 0 12px !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; animation: none !important; overflow: visible !important;
  font-size: clamp(18px, 2.6vw, 24px) !important; font-weight: 800 !important; line-height: 1.45 !important; letter-spacing: .01em;
  background: linear-gradient(100deg, #e9c766 0%, #f6dc8a 35%, #fffdf3 50%, #f6dc8a 65%, #e9c766 100%) 0 0 / 250% 100% !important;
  -webkit-background-clip: text !important; background-clip: text !important; color: transparent !important;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.45)); animation: nhShine 3.6s linear infinite !important; }
.nh-sub2::before, .nh-sub2::after { content: none !important; }
@keyframes nhShine { 0% { background-position: 100% 0; } 100% { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .nh-sub2 { animation: none !important; } }
.nh[dir="rtl"] .nh-sub2 { font-weight: 400 !important; line-height: 2.1 !important; font-size: clamp(19px, 2.8vw, 26px) !important; }
.gh-scene .dlg-btns { display: flex; justify-content: center !important; margin-top: 14px; } .gh-scene .dlg-btns .btn { margin: 0 auto; }
/* "Learn how to answer the adhan": a clear green button that gently glows, not a faint pill */
.tbar-adhan .tb-learn { display: inline-flex !important; align-items: center; gap: 8px; margin: 10px auto 2px !important; padding: 12px 26px !important; border-radius: 999px !important;
  background: linear-gradient(180deg, #11603f, #0b4a32) !important; color: #fff6dc !important; border: 2px solid #e9c766 !important; font-size: 17px !important; font-weight: 800 !important; text-decoration: none;
  box-shadow: 0 4px 14px rgba(11,74,50,.35); animation: tbLearn 2.4s ease-in-out infinite; }
.tbar-adhan .tb-learn::before, .tbar-adhan .tb-learn::after { display: none !important; content: none !important; }
.tbar-adhan .tb-learn { position: relative; z-index: 1; }
.tbar-adhan .tb-learn:hover { filter: brightness(1.1); }
@keyframes tbLearn { 0%, 100% { box-shadow: 0 4px 14px rgba(11,74,50,.35), 0 0 0 0 rgba(233,199,102,.0); } 50% { box-shadow: 0 4px 14px rgba(11,74,50,.35), 0 0 0 7px rgba(233,199,102,.35); } }
@media (prefers-reduced-motion: reduce) { .tbar-adhan .tb-learn { animation: none; } }

/* Full virtue popup */
dialog.fz-pop{width:min(760px,94vw);height:min(82vh,900px);padding:0;border:2px solid #c9a227;border-radius:16px;overflow:hidden;background:#f7f2e4;box-shadow:0 20px 60px rgba(0,0,0,.45)}
dialog.fz-pop::backdrop{background:rgba(6,30,20,.55)}
dialog.fz-pop iframe{width:100%;height:100%;border:0;display:block}
dialog.fz-pop .fz-x{position:absolute;top:8px;right:8px;z-index:2;width:34px;height:34px;border-radius:50%;border:1.5px solid #c9a227;background:#0b4a32;color:#fff6dc;font-size:16px;cursor:pointer}

/* ---------- How did you pray: the ladder (best on top, darkest) ---------- */
.sd-how{margin:10px 0 6px;text-align:center}
.sd-ladder{display:flex;flex-direction:column;align-items:center;gap:6px;margin:4px 0 8px}
.sd-ladder .lv{position:relative;width:var(--w);min-height:46px;display:flex;align-items:center;gap:10px;border:0;border-radius:12px;padding:8px 14px;background:var(--c);color:#fff;font:700 15px/1.25 Figtree,system-ui,sans-serif;text-align:start;cursor:pointer;box-shadow:inset 0 -3px rgba(0,0,0,.25),0 2px 6px rgba(0,0,0,.12);transition:transform .15s,opacity .15s,box-shadow .15s;overflow:hidden}
.sd-ladder .lv:hover{transform:translateY(-1px)}
.sd-ladder .lv-n{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.18);border:1.5px solid rgba(255,255,255,.55);font-size:14px}
.sd-ladder .lv-t{flex:1}
.sd-ladder .lv-ok{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--c);font-weight:900}
.sd-ladder .lv-tg{flex:none;font-size:16px}
.sd-ladder .lv[aria-pressed="true"]{outline:3px solid #f0c75e;outline-offset:2px;transform:scale(1.02)}
.sd-ladder:has(.lv[aria-pressed="true"]) .lv[aria-pressed="false"]{opacity:.6}
/* the top tier: very dark emerald with gold */
.sd-ladder .lv-imam{background:radial-gradient(120% 160% at 25% 0%,#1f7a50 0%,#073321 45%,#020f09 100%);border:2px solid #d4af37;box-shadow:inset 0 0 0 1px rgba(255,233,160,.25),0 6px 18px rgba(212,175,55,.35)}
.sd-ladder .lv-imam .lv-t{background:linear-gradient(100deg,#c9962a,#fff1b8 40%,#e7c160 60%,#fff6d0 80%,#c9962a);-webkit-background-clip:text;background-clip:text;color:transparent}
.sd-ladder .lv-imam .lv-n{background:linear-gradient(135deg,#a8780f,#ffe9a0,#c39522);color:#2a1c00;border-color:#ffe9a0}
.sd-ladder .lv-imam::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 30%,rgba(255,240,190,.28) 45%,transparent 60%);transform:translateX(-100%);animation:lvShine 3.2s ease-in-out infinite}
@keyframes lvShine{60%,100%{transform:translateX(100%)}}
.sd-ladder .lv-row1{border:1.5px solid rgba(212,175,55,.75)}
.sd-ladder .lv-alone,.sd-ladder .lv-inTime{color:#2a1c00}
.sd-ladder .lv-alone .lv-n,.sd-ladder .lv-inTime .lv-n{border-color:rgba(42,28,0,.45)}
/* did not pray: a block of fire */
.sd-ladder .lv-missed{background:linear-gradient(0deg,#3d0503 0%,#8e1209 30%,#d8340f 60%,#ff8a1d 85%,#ffd04a 100%);background-size:100% 180%;animation:lvFire 1.4s ease-in-out infinite alternate;box-shadow:0 0 14px rgba(255,90,20,.55),inset 0 -6px 12px rgba(60,0,0,.6);text-shadow:0 1px 3px #3d0503}
.sd-ladder .lv-missed::before{content:"";position:absolute;left:0;right:0;bottom:-6px;height:70%;background:radial-gradient(14px 26px at 10% 100%,rgba(255,210,80,.85),transparent 70%),radial-gradient(12px 22px at 30% 100%,rgba(255,150,30,.85),transparent 70%),radial-gradient(16px 30px at 52% 100%,rgba(255,220,90,.8),transparent 70%),radial-gradient(12px 22px at 74% 100%,rgba(255,140,20,.85),transparent 70%),radial-gradient(14px 26px at 92% 100%,rgba(255,200,70,.85),transparent 70%);animation:lvFlick .5s steps(2) infinite alternate;pointer-events:none;mix-blend-mode:screen}
.sd-ladder .lv-missed .lv-n{background:rgba(60,0,0,.35);border-color:#ffd04a}
@keyframes lvFire{to{background-position:0 100%}}
@keyframes lvFlick{to{transform:translateY(-4px) scaleY(1.12);opacity:.8}}
@media (prefers-reduced-motion:reduce){.sd-ladder .lv-imam::after,.sd-ladder .lv-missed,.sd-ladder .lv-missed::before{animation:none}}
/* Targets: the fard target and Customize */
.dt-salah{border:1.5px solid #c9a227;border-radius:14px;background:#fffaf0;padding:12px 14px;margin:12px 0}
.dt-salah b{display:block;color:#0b4a32;font-size:16px} .dt-salah p{margin:4px 0 8px;font-size:13.5px;color:#5d4a1c}
.dt-salah .dt-c{display:flex;align-items:center;gap:8px;padding:5px 0;font-weight:600;color:#1d2a22}
.dt-custom{border-style:dashed!important} .dt-customn{margin:8px 0 0;font-weight:700;color:#8a5a00;text-align:center}
.dt-list .dt-salah,.wz-dlist .dt-salah{margin:4px 0 10px;background:#f3fbf6;border-color:#1f8a4c}
.dt-salah p{margin:6px 0 0}

/* Arabic page: Arabic is written in Naskh (Amiri), never in the Urdu Nastaliq font */
html[data-ui="ar"] .nh-sub2, html[data-ui="ar"] .nh-sub, html[data-ui="ar"] .nh-red, html[data-ui="ar"] .nh-t2, html[data-ui="ar"] .nh-tr,
html[data-ui="ar"] .nh-ur, html[data-ui="ar"] .ls-mean, html[data-ui="ar"] #ls-ask .ls-txt h3, html[data-ui="ar"] #ls-ask .ls-pos, html[data-ui="ar"] #ls-ask .ls-do,
html[data-ui="ar"] .ls-virt h3, html[data-ui="ar"] .gh-scene h3, html[data-ui="ar"] .gh-scene .gh-sum, html[data-ui="ar"] .gh-scene .gh-do, html[data-ui="ar"] .gh-scene p,
html[data-ui="ar"] .tz-ur, html[data-ui="ar"] .wz-dur, html[data-ui="ar"] .rep-aya-tr, html[data-ui="ar"] .nama h3, html[data-ui="ar"] .ghibat, html[data-ui="ar"] .gh-dlg {
  font-family: "Amiri", "Noto Naskh Arabic", var(--font-ar), serif !important; line-height: 1.8; }
html[data-ui="ar"] .nh-sub2 { font-weight: 700; }
/* ayah number: always centred in its rosette, also in the flowing mushaf and at large sizes */
.mline .end.aya-n, .mushaf.flow .mline > .end.aya-n, .mushaf .aya-n { display: inline-grid !important; place-items: center; line-height: 1 !important; padding: 0; }

/* setup: masnoon adhkar list and own tasbihat */
.wz-adhl { margin: 8px 0 4px; padding: 10px 12px; border: 1px dashed var(--gold, #c9a227); border-radius: 10px; background: rgba(201, 162, 39, .06); font-size: 13.5px; }
.wz-adhl ol { margin: 6px 0 6px; padding-inline-start: 22px; }
.wz-adhl li { margin: 3px 0; }
.wz-adhl li small { color: var(--muted, #6b6b6b); display: block; font-size: 11.5px; }
.wz-adhl li i { color: var(--gold-strong, #8a6410); font-style: normal; font-weight: 700; }
.wz-tsbrow { display: flex; align-items: center; gap: 8px; }
.wz-tsbrow .wz-c { flex: 1; }
.wz-tsbar { display: block; font-family: var(--font-ar, Amiri, serif); font-size: 15px; color: var(--gold-strong, #8a6410); }
.wz-tsb .wz-qty input { width: 76px; }
/* Nama-e-Aamaal: a deed whose time has not come yet today */
.ns-open .ns-t { opacity: .75; } .ns-later { color: #8a7a55 !important; font-weight: 600 !important; font-size: .85em; white-space: normal; text-align: end; }
.mo-open { color: #a8741a; }
