/* Easy Quran Wa Hadees - the new PC App (web), trial of 27-Nov-2026.
   The look follows the mushaf and the Windows program: lapis and gold of Quran illumination, the program's two row tints
   (light green, light blue), Urdu in Alvi Nastaleeq, the ayat in the Muhammadi Quranic font. */
@font-face { font-family: "Alvi Nastaleeq"; src: local("Alvi Nastaleeq"), url("https://app.easyquranwahadees.com/fonts/AlviNastaleeq.ttf?w=1") format("truetype"); font-display: swap; }
@font-face { font-family: "Muhammadi Quranic"; src: local("MUHAMMADI QURANIC FONT"), url("https://app.easyquranwahadees.com/fonts/MuhammadiQuranic.ttf?w=1") format("truetype"); font-display: swap; }

:root {
  --paper: #f3f6f8; --leaf: #ffffff; --ink: #17212b; --muted: #55636f; --rule: #c9d3dc;
  --lapis: #1e4a72; --lapis-deep: #12314e; --gold: #b08a2e; --green: #1d6b4c; --rubric: #a32a2a;
  --tint-a: #e3eed9; --tint-b: #d6e9f2; --mark: #ffe89a; --focus: #1e4a72;
  --urdu: "Alvi Nastaleeq", "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif;
  --arabic: "Muhammadi Quranic", "Amiri", "Traditional Arabic", serif;
  --latin: "Alegreya Sans", "Segoe UI", Tahoma, sans-serif;
  --scale: 1;
}
:root[data-theme="dark"] {
  --paper: #0f1a24; --leaf: #16232f; --ink: #e6edf2; --muted: #9fb0be; --rule: #2b3d4d;
  --lapis: #9cc4e8; --lapis-deep: #0b1722; --gold: #d1ab52; --green: #7fd0a8; --rubric: #f09a8c;
  --tint-a: #1b3328; --tint-b: #183246; --mark: #6b5510; --focus: #9cc4e8;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--urdu); font-size: 17px; line-height: 2.3; display: flex; flex-direction: column; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---- top bar */
.bar { display: flex; align-items: center; gap: 14px; padding: 8px 16px; background: var(--lapis-deep); color: #fff; border-bottom: 3px solid var(--gold); flex: none; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; white-space: nowrap; }
.brand-ur { font-size: 1.25rem; line-height: 1.9; }
/* 261128: the logo as it has always been used (dome, Kaaba and the words), on a white plate because it is drawn for a white ground */
.brand-logo { display: block; height: 40px; width: auto; background: #fff; border-radius: 8px; padding: 3px 10px; }
.find { flex: 1; display: flex; max-width: 720px; margin: 0 auto; background: #fff; border-radius: 8px; overflow: hidden; }
:root[data-theme="dark"] .find { background: #1d2c3a; }
.find input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 2px 14px; color: #17212b; line-height: 2.1; }
:root[data-theme="dark"] .find input { color: #e6edf2; }
.find input::placeholder { color: #7a8894; }
.find input:focus { outline: none; }
.find:focus-within { box-shadow: 0 0 0 2px var(--gold); }
.find button { border: 0; background: var(--gold); color: #1b1404; padding: 0 20px; line-height: 2.1; }
.tools { display: flex; gap: 6px; align-items: center; }
.tools button { border: 1px solid #ffffff55; background: transparent; color: #fff; border-radius: 8px; min-width: 40px; height: 38px; padding: 0 10px; line-height: 1; }
.tools button:hover { background: #ffffff1f; }
#install { background: var(--gold); color: #1b1404; border-color: var(--gold); line-height: 1.9; height: auto; }

/* ---- three columns: surahs on the right, the text in the middle, the books on the left */
.shell { flex: 1; min-height: 0; display: grid; grid-template-columns: 260px minmax(0, 1fr) 280px; }
.side { background: var(--leaf); overflow: auto; padding: 12px 12px 20px; }
.nav { border-inline-end: 1px solid var(--rule); }
.books { border-inline-start: 1px solid var(--rule); }
.reader { overflow: auto; padding: 18px clamp(12px, 3vw, 40px) 60px; scroll-behavior: smooth; }
.reader:focus { outline: none; }

.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.seg button { border: 0; background: transparent; line-height: 2; }
.seg button[aria-selected="true"] { background: var(--lapis-deep); color: #fff; }
:root[data-theme="dark"] .seg button[aria-selected="true"] { background: #24405a; }
#nav-filter { width: 100%; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); padding: 0 10px; line-height: 2; margin-bottom: 6px; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { display: flex; gap: 10px; align-items: baseline; padding: 0 8px; border-radius: 6px; color: var(--ink); text-decoration: none; line-height: 2.2; }
.nav-list a:hover { background: var(--tint-b); }
.nav-list a[aria-current="true"] { background: var(--tint-a); color: var(--green); }
.nav-list .no { font-family: var(--latin); font-size: 0.85rem; color: var(--muted); min-width: 2.2em; text-align: center; }
.nav-list .cnt { margin-inline-start: auto; font-family: var(--latin); font-size: 0.8rem; color: var(--muted); }

.books h2 { margin: 0 0 2px; font-size: 1.15rem; font-weight: 400; color: var(--lapis); }
.hint, .trial-note { color: var(--muted); font-size: 0.86rem; line-height: 2; margin: 0 0 8px; }
.trial-note { margin-top: 14px; padding: 4px 10px; border-inline-start: 3px solid var(--gold); background: var(--paper); }
.book-list { list-style: none; margin: 0; padding: 0; }
.book-list label { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 4px 8px; border-radius: 6px; cursor: pointer; }
.book-list label:hover { background: var(--tint-b); }
.book-list input { accent-color: var(--green); width: 18px; height: 18px; margin-top: 12px; }
.book-list .bn { line-height: 2; }
.book-list .ba { grid-column: 2; color: var(--muted); font-size: 0.82rem; line-height: 1.8; }
.stats { font-family: var(--latin); font-size: 0.8rem; line-height: 1.5; color: var(--muted); margin-top: 16px; }

/* ---- the text */
.surah-head { text-align: center; margin: 0 auto 18px; max-width: 900px; }
.surah-head h1 { font-family: var(--arabic); font-weight: 400; font-size: calc(2.1rem * var(--scale)); line-height: 1.9; margin: 0; color: var(--lapis); }
.surah-head p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.9; }
.more { display: block; margin: 10px auto; border: 1px solid var(--rule); background: var(--leaf); border-radius: 8px; padding: 0 18px; line-height: 2.1; color: var(--lapis); }
.more:hover { border-color: var(--lapis); }
.more[hidden] { display: none; }

.ayat { max-width: 900px; margin: 0 auto 22px; background: var(--leaf); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; scroll-margin-top: 12px; }
.ayat.target { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.ayat-top { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--rule); font-size: 0.86rem; color: var(--muted); line-height: 2; }
.ayat-top .ref { color: var(--rubric); }
.ayat-top .acts { margin-inline-start: auto; display: flex; gap: 4px; }
.ayat-top button { border: 0; background: transparent; color: var(--muted); border-radius: 6px; padding: 0 8px; line-height: 1.9; }
.ayat-top button:hover { background: var(--tint-b); color: var(--ink); }
/* the ayat itself: between two gold rules, as on a mushaf page */
.ar { font-family: var(--arabic); font-size: calc(1.95rem * var(--scale)); line-height: 2.15; text-align: center; margin: 0; padding: 10px 18px 8px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); box-shadow: inset 0 3px 0 var(--leaf), inset 0 4px 0 var(--gold), inset 0 -3px 0 var(--leaf), inset 0 -4px 0 var(--gold); }
.ar .no { font-family: var(--urdu); font-size: 0.55em; color: var(--gold); border: 1px solid var(--gold); border-radius: 50%; display: inline-block; min-width: 2.1em; height: 2.1em; line-height: 2.1em; vertical-align: middle; margin: 0 6px; }
.tr { padding: 4px 16px 6px; }
.tr:nth-of-type(odd) { background: var(--tint-a); }
.tr:nth-of-type(even) { background: var(--tint-b); }
.tr .bk { font-size: 0.8rem; color: var(--muted); line-height: 1.9; }
.tr .tx { font-size: calc(1.08rem * var(--scale)); line-height: 2.5; white-space: pre-line; overflow-wrap: anywhere; }
.tr.long .tx { max-height: 15em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.tr.long.open .tx { max-height: none; -webkit-mask-image: none; mask-image: none; }
.tr .open-btn { border: 0; background: transparent; color: var(--lapis); padding: 0; line-height: 2; text-decoration: underline; text-underline-offset: 6px; }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---- search results */
.result-head { max-width: 900px; margin: 0 auto 14px; }
.result-head h1 { font-size: 1.35rem; font-weight: 400; margin: 0; color: var(--lapis); line-height: 2.2; }
.result-head .per { color: var(--muted); font-size: 0.9rem; margin: 0; line-height: 2; }
.result-head .opts { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.92rem; }
.result-head .opts label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.result-head .opts input { accent-color: var(--green); }
.hit { max-width: 900px; margin: 0 auto 12px; background: var(--leaf); border: 1px solid var(--rule); border-radius: 10px; padding: 6px 16px 8px; }
.hit a.ref { color: var(--rubric); text-decoration: none; font-size: 0.92rem; }
.hit a.ref:hover { text-decoration: underline; text-underline-offset: 6px; }
.hit .ar-s { font-family: var(--arabic); font-size: calc(1.35rem * var(--scale)); line-height: 2; margin: 0; }
.hit .sn { margin: 0; line-height: 2.4; }
.hit .sn .bk { color: var(--muted); font-size: 0.8rem; }
.empty { max-width: 900px; margin: 30px auto; text-align: center; color: var(--muted); }
.busy { max-width: 900px; margin: 30px auto; text-align: center; color: var(--muted); }

/* ---- narrower windows */
@media (max-width: 1100px) {
  /* a narrower window: the books become one line above the text */
  .shell { grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .books { grid-column: 1 / -1; grid-row: 1; border: 0; border-bottom: 1px solid var(--rule); padding: 2px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; overflow: visible; }
  .books h2 { margin: 0; }
  .books .hint, .books .trial-note, .book-list .ba { display: none; }
  .book-list { display: flex; flex-wrap: wrap; gap: 0 6px; }
  .book-list label { padding: 0 8px; }
  .book-list input { margin-top: 11px; }
  .stats { margin: 0; margin-inline-start: auto; }
}
@media (max-width: 720px) {
  body { display: block; height: auto; }
  .bar { flex-wrap: wrap; position: sticky; top: 0; z-index: 5; }
  .find { order: 3; flex-basis: 100%; }
  .shell { display: block; overflow: visible; }
  .side.nav { border: 0; border-bottom: 1px solid var(--rule); max-height: 30vh; }
  .reader { overflow: visible; padding: 14px 10px 40px; }
  .brand-ur { font-size: 1.05rem; }
  .brand-logo { height: 34px; padding: 2px 8px; }
}
@media (prefers-reduced-motion: reduce) { .reader { scroll-behavior: auto; } }

/* ---- 27-Nov-2026, second round: two sections, all books, Hadees */
.sections { display: flex; gap: 4px; }
.sections a { color: #fff; text-decoration: none; padding: 0 14px; border-radius: 8px; line-height: 2.1; border: 1px solid transparent; white-space: nowrap; }
.sections a:hover { background: #ffffff1f; }
.sections a[aria-current="page"] { background: var(--gold); color: #1b1404; }
.nav-title { margin: 0 0 6px; font-size: 1.1rem; font-weight: 400; color: var(--lapis); line-height: 2.1; }
.back { display: inline-block; color: var(--lapis); font-size: 0.86rem; text-underline-offset: 6px; }
#kitab-filter { width: 100%; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); padding: 0 10px; line-height: 2; margin-bottom: 6px; }
.nav-list li[hidden] { display: none; }

.mine { list-style: none; margin: 0 0 10px; padding: 0; }
.mine li { display: grid; grid-template-columns: 1fr auto; gap: 0 6px; padding: 2px 8px; border-radius: 6px; border-inline-start: 3px solid var(--gold); background: var(--paper); margin-bottom: 6px; }
.mine .bn { line-height: 2; }
.mine .ba { grid-column: 1; color: var(--muted); font-size: 0.8rem; line-height: 1.8; }
.mine .ord { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 2px; }
.mine .ord button { border: 0; background: transparent; color: var(--muted); width: 28px; height: 28px; border-radius: 6px; line-height: 1; font-family: var(--latin); }
.mine .ord button:hover:not(:disabled) { background: var(--tint-b); color: var(--ink); }
.mine .ord button:disabled { opacity: 0.3; cursor: default; }
.opts-list li { display: block; border: 0; background: transparent; padding: 0 4px; }
.opts-list label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.opts-list input { accent-color: var(--green); width: 18px; height: 18px; }
.wide { width: 100%; border: 1px solid var(--green); background: var(--green); color: #fff; border-radius: 8px; line-height: 2.2; }
:root[data-theme="dark"] .wide { color: #06241a; }
.wide:hover { filter: brightness(1.08); }

dialog#chooser { width: min(880px, 94vw); height: min(86vh, 900px); padding: 0; border: 1px solid var(--rule); border-top: 3px solid var(--gold); border-radius: 12px; background: var(--leaf); color: var(--ink); overflow: hidden; }
dialog#chooser[open] { display: flex; flex-direction: column; }
dialog#chooser::backdrop { background: #0b17228c; }
.dlg-head { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.dlg-head h2 { margin: 0; font-size: 1.2rem; font-weight: 400; color: var(--lapis); }
.dlg-head input { flex: 1; min-width: 160px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); padding: 0 12px; line-height: 2.1; }
.dlg-count { color: var(--muted); font-size: 0.88rem; }
.dlg-head button { border: 0; background: var(--green); color: #fff; border-radius: 8px; padding: 0 22px; line-height: 2.2; }
:root[data-theme="dark"] .dlg-head button { color: #06241a; }
.dlg-list { overflow: auto; padding: 8px 16px 20px; }
.dlg-list summary { cursor: pointer; color: var(--rubric); font-size: 1.08rem; line-height: 2.3; border-bottom: 1px solid var(--rule); }
.dlg-list summary .cnt { font-family: var(--latin); font-size: 0.8rem; color: var(--muted); }
.dlg-list ul { list-style: none; margin: 0 0 8px; padding: 0; }
.dlg-list label { display: grid; grid-template-columns: 24px minmax(0, 1.1fr) minmax(0, 1.3fr) 70px 90px; gap: 0 10px; align-items: baseline; padding: 0 6px; border-radius: 6px; cursor: pointer; line-height: 2.2; }
.dlg-list label:hover { background: var(--tint-b); }
.dlg-list li:nth-child(even) label { background: color-mix(in srgb, var(--tint-a) 45%, transparent); }
.dlg-list li:nth-child(even) label:hover { background: var(--tint-b); }
.dlg-list input { accent-color: var(--green); width: 17px; height: 17px; align-self: center; }
.dlg-list .ba { color: var(--muted); font-size: 0.86rem; }
.dlg-list .by, .dlg-list .bw { font-family: var(--latin); font-size: 0.82rem; color: var(--muted); text-align: left; direction: ltr; }

.tr.ltr, .sn.ltr { direction: ltr; text-align: left; }
.tr.ltr .tx, .sn.ltr { font-family: var(--latin); font-size: calc(1.02rem * var(--scale)); line-height: 1.75; }
.tr.ltr .bk { direction: rtl; text-align: right; }
.tr.other .tx { font-family: "Nirmala UI", "Noto Sans Devanagari", "Noto Sans Bengali", "Mangal", "Vrinda", sans-serif; line-height: 2; direction: ltr; text-align: left; }
.urdu-head { font-family: var(--urdu) !important; }
.hadees .bab { margin: 0; padding: 2px 16px; color: var(--rubric); font-size: calc(1rem * var(--scale)); line-height: 2.3; border-bottom: 1px solid var(--rule); }
.hadees .har { font-family: var(--arabic); font-size: calc(1.45rem * var(--scale)); line-height: 2.1; margin: 0; padding: 8px 18px; text-align: justify; border-bottom: 1px solid var(--gold); }
.hadees .tr + .har { border-top: 1px solid var(--gold); border-bottom: 0; }      /* the Arabic now stands after the Urdu */
.hadees .tr { background: var(--tint-a); }
.hadees .tr.ltr { background: var(--tint-b); }
.hit .bab { margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 2; }
.hit .also { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 2; }
.result-head .opts select { font: inherit; border: 1px solid var(--rule); border-radius: 6px; background: var(--leaf); color: var(--ink); padding: 0 6px; }
.result-head .opts a { color: var(--lapis); text-underline-offset: 6px; }
.tiles { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tiles a { display: block; background: var(--leaf); border: 1px solid var(--rule); border-inline-start: 4px solid var(--gold); border-radius: 8px; padding: 6px 14px; text-decoration: none; color: var(--ink); }
.tiles a:hover { border-color: var(--green); border-inline-start-color: var(--green); }
.tiles .tn { display: block; font-size: 1.15rem; color: var(--lapis); line-height: 2.2; }
.tiles .tc { display: block; color: var(--muted); font-size: 0.84rem; line-height: 1.9; }
@media (max-width: 1100px) {
  .books .mine { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; }
  .books .mine li { margin: 0; padding: 0 8px; }
  .books .mine .ba { display: none; }
  .books .wide { width: auto; padding: 0 14px; line-height: 2; }
  .opts-list { display: flex; }
}
@media (max-width: 720px) { .sections a { padding: 0 10px; } .dlg-list label { grid-template-columns: 24px minmax(0, 1fr) 60px; } .dlg-list .ba, .dlg-list .bw { display: none; } }
/* the Hindi tarjuma is typed for the program's own Hindi font (K010): its letters are stored as Latin codes, so it must be drawn in that font */
@font-face { font-family: "K010"; src: url("https://app.easyquranwahadees.com/fonts/K010.ttf?w=1") format("truetype"); font-display: swap; }
.tr.hindi .tx, .sn.hindi { font-family: "K010", sans-serif; direction: ltr; text-align: left; font-size: calc(1.3rem * var(--scale)); line-height: 1.8; }

/* ---- 27-Nov-2026, third round: Hadees extras, topics, list of books, bookmarks */
.ayat-top .intl { color: #1565c0; font-size: 0.82rem; padding: 0 6px; }
:root[data-theme="dark"] .ayat-top .intl { color: #8ec5ff; }
.ayat-top .kind { font-size: 0.78rem; line-height: 1.7; padding: 0 8px; border-radius: 10px; background: #e3eed9; color: #1d6b4c; }
.ayat-top .kind.k1, .ayat-top .kind.k6, .ayat-top .kind.k10 { background: #f1e3f6; color: #7b1fa2; }
.ayat-top .kind.k2 { background: #fbe3e3; color: #c62828; }
.ayat-top .kind.k4, .ayat-top .kind.k9 { background: #fff1d6; color: #8a5a00; }
.ayat-top .kind.k5 { background: #e6e9ee; color: #44505c; }
.ayat-top button.on { color: var(--gold); font-weight: 600; }
.hadees .ravi { margin: 0; padding: 2px 16px; font-size: 0.86rem; line-height: 2.1; color: var(--muted); border-top: 1px solid var(--rule); }
.hadees .ravi span { color: var(--lapis); }
.rel { padding: 4px 12px 6px; border-top: 1px solid var(--rule); }
.rel > button { border: 1px solid var(--rule); background: var(--leaf); color: var(--lapis); border-radius: 14px; padding: 0 14px; line-height: 1.9; font-size: 0.86rem; margin-inline-end: 6px; }
.rel > button:hover { border-color: var(--lapis); }
.rel-list ol { margin: 6px 0 0; padding: 0; list-style: none; }
.rel-list li { padding: 2px 6px; border-top: 1px dashed var(--rule); line-height: 2.1; }
.rel-list a { color: var(--rubric); text-decoration: none; font-size: 0.9rem; }
.rel-list a:hover { text-decoration: underline; text-underline-offset: 6px; }
.rel-list .pc { font-family: var(--latin); font-size: 0.78rem; color: var(--green); }
.rel-list .sn { display: block; color: var(--muted); font-size: 0.86rem; }
.seg a { text-align: center; text-decoration: none; color: var(--ink); line-height: 2; }
.seg a[aria-selected="true"] { background: var(--lapis-deep); color: #fff; }
:root[data-theme="dark"] .seg a[aria-selected="true"] { background: #24405a; }
#topic-filter, #b-filter { border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); padding: 0 10px; line-height: 2; }
#topic-filter { width: 100%; margin-bottom: 6px; }
#b-filter { min-width: 260px; background: var(--leaf); }
.crumbs { margin: 0; font-size: 0.84rem; color: var(--muted); line-height: 2; }
.crumbs a { color: var(--lapis); text-underline-offset: 6px; }
.result-head .per a { color: var(--green); text-underline-offset: 6px; }
.t-ar { font-family: var(--arabic); font-size: 0.9em; color: var(--muted); margin-inline-start: 10px; }
.chips { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips a { display: inline-block; border: 1px solid var(--rule); background: var(--leaf); border-radius: 16px; padding: 0 12px; line-height: 2; text-decoration: none; color: var(--ink); font-size: 0.92rem; }
.chips a:hover { border-color: var(--green); color: var(--green); }
.chips a span { font-family: var(--latin); font-size: 0.76rem; color: var(--muted); }
.table-wrap { max-width: 1180px; margin: 0 auto; overflow: auto; background: var(--leaf); border: 1px solid var(--rule); border-radius: 10px; }
.btable { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 2.2; }
.btable th { position: sticky; top: 0; background: var(--lapis-deep); color: #fff; font-weight: 400; padding: 0 10px; white-space: nowrap; text-align: right; }
.btable th[data-col] { cursor: pointer; }
.btable th[data-col]:hover { background: #1e4a72; }
.btable th[aria-sort="ascending"]::after { content: " ▲"; color: #ffd98a; font-size: 0.7em; }
.btable th[aria-sort="descending"]::after { content: " ▼"; color: #ffd98a; font-size: 0.7em; }
.btable td { padding: 0 10px; border-bottom: 1px solid var(--rule); }
.btable tbody tr:nth-child(even) { background: color-mix(in srgb, var(--tint-a) 40%, transparent); }
.btable td.n { font-family: var(--latin); direction: ltr; text-align: left; white-space: nowrap; color: var(--muted); }
.btable a { color: var(--lapis); text-decoration: none; }
.btable a:hover { text-decoration: underline; text-underline-offset: 6px; }
.result-head:has(#b-filter) { max-width: 1180px; }
.intro { max-width: 900px; margin: 0 auto; background: var(--leaf); border: 1px solid var(--rule); border-top: 3px solid var(--gold); border-radius: 10px; padding: 14px 24px 20px; font-size: calc(1.08rem * var(--scale)); line-height: 2.5; }
.intro p { margin: 0 0 8px; overflow-wrap: anywhere; }
.intro h2 { font-size: 1.15rem; font-weight: 400; color: var(--rubric); margin: 12px 0 2px; }
.intro b { color: var(--lapis); font-weight: 400; }
.marks { list-style: none; margin: 0 auto; padding: 0; max-width: 900px; }
.marks li { display: flex; align-items: center; gap: 12px; background: var(--leaf); border: 1px solid var(--rule); border-inline-start: 4px solid var(--gold); border-radius: 8px; padding: 2px 14px; margin-bottom: 8px; }
.marks a { color: var(--lapis); text-decoration: none; flex: 1; }
.marks .d { font-family: var(--latin); font-size: 0.8rem; color: var(--muted); }
.marks button { border: 0; background: transparent; color: var(--muted); border-radius: 6px; padding: 0 8px; }
.marks button:hover { background: var(--tint-b); color: var(--ink); }
@media (max-width: 1250px) { .sections a { padding: 0 8px; } .brand-ur { display: none; } }

/* ---- 27-Nov-2026: Mushaf pages */
.page-go { display: flex; align-items: center; gap: 6px; margin: 4px 0 8px; font-size: 0.92rem; }
.page-go input { width: 64px; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); padding: 0 8px; line-height: 2; font-family: var(--latin); text-align: center; direction: ltr; }
.page-go span { font-family: var(--latin); color: var(--muted); direction: ltr; }
.page-go button { border: 0; background: var(--green); color: #fff; border-radius: 8px; padding: 0 14px; line-height: 2; margin-inline-start: auto; }
:root[data-theme="dark"] .page-go button { color: #06241a; }
#page-filter { width: 100%; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); padding: 0 10px; line-height: 2; margin-bottom: 6px; }
.mushaf-bar { max-width: 860px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mushaf-bar .where { color: var(--muted); font-size: 0.92rem; }
.mushaf-bar .turn { border: 1px solid var(--rule); background: var(--leaf); color: var(--lapis); border-radius: 8px; padding: 0 16px; line-height: 2; text-decoration: none; }
.mushaf-bar .turn:hover { border-color: var(--lapis); }
.mushaf-bar .turn[aria-disabled="true"] { visibility: hidden; }
/* the page: a leaf inside a double gold frame, each line spread from edge to edge as in print */
.mushaf-page { max-width: 860px; margin: 0 auto; background: var(--leaf); border: 1px solid var(--gold); outline: 3px double var(--gold); outline-offset: 5px; border-radius: 4px; padding: 14px 26px 18px; font-family: var(--arabic); direction: rtl; }
.mushaf-page .ln { white-space: nowrap; text-align: justify; line-height: 2.05; overflow: hidden; }
.mushaf-page .ln.short { text-align: center; }
.mushaf-page .pc.hit { background: var(--mark); border-radius: 4px; }
.mushaf-page .no { font-family: 'Segoe UI', Tahoma, 'Noto Sans Arabic', sans-serif; font-weight: 600; font-size: 0.4em; color: var(--gold); border: 1px solid var(--gold); border-radius: 50%; display: inline-block; min-width: 2em; height: 2em; line-height: 1.9em; padding: 0 0.2em; text-align: center; vertical-align: 0.5em; margin: 0 0.4em; text-decoration: none; text-align-last: center; }
.mushaf-page .no:hover { background: var(--gold); color: var(--leaf); }
.surah-band { font-family: var(--urdu); font-size: 0.62em; line-height: 2.4; text-align: center; color: var(--lapis); background: var(--tint-b); border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); margin: 0.35em -26px; }
.surah-band small { font-size: 0.72em; color: var(--muted); margin-inline-start: 1em; }
.ayat-top .to-page { color: var(--muted); text-decoration: none; padding: 0 8px; border-radius: 6px; line-height: 1.9; }
.ayat-top .to-page:hover { background: var(--tint-b); color: var(--ink); }
@media (max-width: 720px) { .mushaf-page { padding: 10px 12px 14px; outline-offset: 3px; } .surah-band { margin: 0.35em -12px; } }

/* ---- 27-Nov-2026: recitation bar (the same band as the top bar, closing the page from below) */
.player { flex: none; display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; padding: 6px 16px; background: var(--lapis-deep); color: #fff; border-top: 3px solid var(--gold); font-size: 0.9rem; line-height: 2; position: sticky; bottom: 0; z-index: 5; }
.player[hidden] { display: none; }
.player button { border: 1px solid rgba(255, 255, 255, 0.35); background: transparent; color: #fff; border-radius: 8px; padding: 0 12px; line-height: 1.9; }
.player button:hover { border-color: #fff; }
.player .p-main { background: var(--gold); border-color: var(--gold); min-width: 5.4em; font-weight: 600; }
.player .p-where { color: #fff; text-decoration: none; padding: 0 8px; }
.player a.p-where[href]:hover { text-decoration: underline; }
.player .p-note { color: #ffd9a8; font-size: 0.85rem; }
.player .p-opt { display: inline-flex; align-items: center; gap: 6px; }
.player .p-gap { margin-inline-start: auto; }
.player select { border: 1px solid rgba(255, 255, 255, 0.35); background: var(--lapis-deep); color: #fff; border-radius: 8px; padding: 0 6px; height: 2.1em; font-family: var(--latin); font-size: 0.9rem; max-width: 46vw; direction: ltr; }
.player select.ur { font-family: var(--urdu); direction: rtl; }
.player input[type="checkbox"] { accent-color: var(--gold); width: 1.1em; height: 1.1em; }
.player :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ayat.playing { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.ayat.playing .ar { background: var(--tint-a); }
.mushaf-page .pc { cursor: pointer; }
.mushaf-page .pc.playing { background: var(--tint-a); border-radius: 4px; }
.mushaf-page .pc.playing.hit { background: var(--tint-a); }
@media (max-width: 720px) { .player { padding: 6px 10px; gap: 6px 8px; } .player .p-gap { margin-inline-start: 0; } .player .p-lbl { display: none; } .player .p-qari { flex: 1; min-width: 0; } .player .p-qari select { width: 100%; max-width: none; } .player button { padding: 0 9px; } .player .p-where { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }

/* ---- 3-Dec-2026: statistics of the Quran (the pages of the Windows program's statistics window) */
#s-find { width: 100%; border: 1px solid var(--rule); border-radius: 8px; background: var(--paper); padding: 0 10px; line-height: 2; margin-bottom: 6px; }
.s-head { max-width: 1180px; }
.s-head h1 .t-ar { font-size: 1.05em; }
.fg { font-family: var(--latin); font-weight: 500; }
.s-tools { display: flex; gap: 8px; margin-top: 6px; }
.s-tools button { border: 1px solid var(--rule); background: var(--leaf); color: var(--lapis); border-radius: 14px; padding: 0 14px; line-height: 1.9; font-size: 0.86rem; }
.s-tools button:hover { border-color: var(--lapis); }
.s-seg { max-width: 360px; margin: 6px 0 0; }
.s-note { max-width: 1180px; margin: 10px auto 0; color: var(--muted); font-size: 0.86rem; line-height: 2.1; padding: 2px 12px; border-inline-start: 3px solid var(--gold); background: var(--leaf); }
.s-cards { list-style: none; margin: 0 auto 14px; padding: 0; max-width: 1180px; display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }
.s-card > a, .s-card > div { display: flex; flex-direction: column; align-items: center; height: 100%; text-align: center; text-decoration: none; color: var(--ink); background: var(--tint-a); border: 1px solid var(--rule); border-top: 3px solid var(--green); border-radius: 10px; padding: 4px 10px 8px; }
.s-card > a:hover { border-color: var(--green); }
.s-card .cap { color: var(--green); font-size: 1.08rem; line-height: 2.2; }
.s-card .fig { font-size: 1.5rem; line-height: 2.1; }
.s-card .fig.n { font-family: var(--latin); font-size: 2rem; font-weight: 700; line-height: 1.5; direction: ltr; }
.s-card .det { color: var(--muted); font-size: 0.86rem; line-height: 2; margin-top: auto; }
.stable th { text-align: center; }
.stable th:first-child { text-align: right; }
.stable td.n { text-align: center; }
.stable td.n a { color: var(--lapis); font-weight: 500; }
.stable td.sbar { width: 16%; min-width: 90px; padding: 0 8px; }
.stable td.sbar i { display: block; height: 0.85em; min-width: 1px; background: color-mix(in srgb, var(--green) 55%, var(--leaf)); border-radius: 3px; }
.stable td.ssplit { width: 14%; min-width: 110px; padding: 0 8px; }
.stable td.ssplit span { display: block; height: 0.85em; background: #d6b26e; border-radius: 3px; overflow: hidden; }
.stable td.ssplit i { display: block; height: 100%; background: color-mix(in srgb, var(--green) 70%, var(--leaf)); }
.stable td.ar-c { font-family: var(--arabic); font-size: 1.12em; }
.stable tr.on td { background: var(--mark); }
@media (max-width: 720px) { .stable { font-size: 0.88rem; } .stable td, .stable th { padding: 0 6px; } .s-cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; } }
/* a list on paper: only the list */
@media print {
  body { display: block; height: auto; background: #fff; color: #000; }
  .bar, .side, .player, .s-tools, .more, .s-seg { display: none !important; }
  .shell { display: block; } .reader { overflow: visible; padding: 0; }
  .table-wrap { overflow: visible; border: 0; max-width: none; } .s-head, .s-note, .s-cards { max-width: none; }
  .btable th { position: static; background: none; color: #000; border-bottom: 2px solid #000; }
  .btable a, .crumbs a { color: #000; text-decoration: none; }
}
.stable td.wd { min-width: 15em; }
@media (max-width: 720px) {
  .stable .hs { display: none; } .stable td.sbar { width: auto; min-width: 54px; } .stable td.wd { min-width: 12em; }
  /* seven sections do not fit in one line of a phone: smaller gaps, and a second line where even that is not enough */
  .sections { flex-wrap: wrap; gap: 2px; } .sections a { padding: 0 7px; }
}
@media (max-width: 720px) { .stable td:first-child:not(.n) { min-width: 7em; } }   /* a topic's name is not broken into four lines */

/* ---- narrators (ravi), 3-Dec-2026: pages #/h/r ... and the list under a hadees */
.r-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.r-bar input { flex: 1 1 260px; min-width: 0; border: 1px solid var(--rule); border-radius: 8px; background: var(--leaf); color: var(--ink); padding: 0 10px; line-height: 2.1; font: inherit; }
.r-bar select { font: inherit; border: 1px solid var(--rule); border-radius: 8px; background: var(--leaf); color: var(--ink); padding: 0 8px; max-width: 100%; line-height: 2.1; }
.r-h2 { max-width: 1180px; margin: 4px auto 6px; font-size: 1.08rem; font-weight: 400; color: var(--green); line-height: 2.1; }
.r-cards { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.r-seg { max-width: 420px; }
.chips a[aria-current="true"] { border-color: var(--green); color: var(--green); background: var(--tint-a); }
.tiles a.tile-r { border-inline-start-color: var(--green); background: var(--tint-a); }
.nav-extra { margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.nav-extra a { color: var(--green); }
.nav-sub { margin: 10px 0 2px; padding: 0 8px; font-size: 0.86rem; color: var(--muted); font-weight: 400; line-height: 2; }
.panel .hint a, .books .hint a { color: var(--lapis); text-underline-offset: 6px; }
.r-chain { width: 100%; border-collapse: collapse; font-size: 0.9rem; line-height: 2.1; margin-top: 6px; }
.r-chain th { text-align: right; font-weight: 400; color: var(--muted); font-size: 0.8rem; padding: 0 6px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.r-chain td { padding: 0 6px; border-bottom: 1px dashed var(--rule); vertical-align: top; }
.r-chain td:first-child, .r-chain th:first-child { width: 1.8em; padding: 0 2px; text-align: center; }
.r-chain td.n { font-family: var(--latin); direction: ltr; text-align: center; white-space: nowrap; }
.r-chain td.n a { color: var(--lapis); }
.r-chain input { accent-color: var(--green); width: 1.1em; height: 1.1em; vertical-align: middle; }
.r-find-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 4px; }
.r-find-row button { border: 1px solid var(--green); background: var(--tint-a); color: var(--green); border-radius: 14px; padding: 0 14px; line-height: 2; font-size: 0.9rem; }
.r-find-row button:hover { background: var(--leaf); }
.r-find-row button:disabled { opacity: 0.5; }
.r-find-row a { font-size: 0.86rem; color: var(--lapis); text-underline-offset: 6px; }
.rel-list .hint { margin: 0; font-size: 0.8rem; }
@media (max-width: 720px) { .r-chain .hs { display: none; } .r-chain { font-size: 0.86rem; } .r-chain td, .r-chain th { padding: 0 4px; } .r-cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }
@media print { .r-bar, .r-seg, #r-more { display: none !important; } .r-h2, .r-cards { max-width: none; } }

/* 261204 (site build): the way to the downloads and the other pages of the site */
.sections a.out { border-color: #ffffff73; }
