/* Salkeen v2. Emerald, ivory and brass. Mobile first; the top nav takes over from 900px. */
:root {
  --color-bg: #F7F4EC;
  --color-surface: #FFFDF8;
  --color-primary: #123F35;
  --color-primary-deep: #0B2E27;
  --color-accent: #7A6026;          /* brass text on ivory, 5.4:1 or better */
  --color-brass: #A4864A;           /* brass fills and rules */
  --color-brass-lt: #D9BE82;        /* brass on emerald */
  --color-text: #252923;
  --color-muted: #5A5F57;
  --color-border: #DDD6C8;
  --color-active-soft: #E4EFE8;
  --on-primary: #FFFDF8;
  --color-link-strong: #123F35;      /* emerald text on ivory; brass in the dark theme (see below) */
  --shadow: 0 10px 24px -12px rgba(11, 46, 39, .35), 0 2px 6px rgba(11, 46, 39, .12);
  --f-head: "Brygada 1918", "Amiri Quran", Georgia, "Times New Roman", serif;
  --f-ui: "Hanken Grotesk", "Amiri Quran", "Segoe UI", system-ui, sans-serif;
  --f-ur: "Gulzar", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", serif;
  --f-ar: "Amiri Quran", "Scheherazade New", "Traditional Arabic", serif;
  /* layout */
  --max: 72rem;
  --gut: 1rem;
  --top-h: 3.75rem;
  --bnav-h: 4.25rem;
  --player-h: 0px;                  /* set by the audio page when the mini-player is showing */
  --r: 6px;
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2.25rem; --s7: 3.5rem;
}
html[data-theme="dark"] {
  --color-bg: #101A17;
  --color-surface: #16231F;
  --color-primary: #1B5646;
  --color-primary-deep: #0A1613;
  --color-accent: #D9BE82;
  --color-brass: #B89B58;
  --color-text: #ECE8DC;
  --color-muted: #AEB5AC;
  --color-border: #2B3A35;
  --color-active-soft: #1F3A32;
  --color-link-strong: #D9BE82;
  --shadow: 0 10px 24px -12px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .35);
}
@media (min-width: 900px) { :root { --gut: 2rem; --top-h: 4.5rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 1rem); }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font: 400 1rem/1.6 var(--f-head);
  padding-block-end: calc(var(--bnav-h) + var(--player-h) + env(safe-area-inset-bottom));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
html[data-theme="dark"] body { background-image: none; }
@media (min-width: 900px) { body { padding-block-end: var(--player-h); } }
img, svg { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; inset-inline-start: .5rem; top: -4rem; background: var(--color-primary); color: var(--on-primary); padding: .6rem 1rem; z-index: 100; border-radius: var(--r); }
.skip:focus { top: .5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.35rem; height: 1.35rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.orn { width: 1rem; height: 1rem; color: var(--color-brass); }
[hidden] { display: none !important; }

/* two languages in the page, one shown */
html[data-lang="ur"] .le, html[data-lang="en"] .lu { display: none !important; }
.lu, [lang="ur"] { font-family: var(--f-ur); font-weight: 400; line-height: 1.9; font-synthesis: none; }
.eyebrow { font: 600 .72rem/1.4 var(--f-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--color-accent); margin: 0; }
html[data-lang="ur"] .eyebrow { letter-spacing: 0; font-family: var(--f-ur); font-size: .95rem; text-transform: none; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 500; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
html[data-lang="ur"] h1, html[data-lang="ur"] h2, html[data-lang="ur"] h3 { line-height: 1.7; letter-spacing: 0; }
p { margin: 0; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--color-bg) 94%, transparent); border-bottom: 1px solid var(--color-border); backdrop-filter: blur(8px); }
.bar { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); min-height: var(--top-h); display: flex; align-items: center; gap: var(--s4); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--color-primary); margin-inline-end: auto; }
html[data-theme="dark"] .brand { color: var(--color-brass-lt); }
.mk { width: 1.7rem; height: 2.1rem; color: var(--color-brass); flex: none; }
.bw { display: grid; line-height: 1; }
.bw b { font: 500 1.7rem/1 var(--f-head); letter-spacing: -.01em; }
.bw small { font: 500 .52rem/1.2 var(--f-ui); letter-spacing: .2em; color: var(--color-muted); margin-top: .2rem; white-space: nowrap; }
html[data-lang="ur"] .bw small { font: 400 .8rem/1.5 var(--f-ur); letter-spacing: 0; }
@media (min-width: 900px) { .bw b { font-size: 2.2rem; } .bw small { font-size: .56rem; } .mk { width: 2rem; height: 2.5rem; } .brand { margin-inline-end: 0; } }
.dnav { display: none; }
@media (min-width: 900px) {
  .dnav { display: flex; gap: 2.2rem; margin-inline: auto; }
  .dnav a { text-decoration: none; font: 500 1rem/1 var(--f-head); padding: .5rem 0; border-bottom: 2px solid transparent; color: var(--color-text); }
  html[data-lang="ur"] .dnav a { font-family: var(--f-ur); font-size: 1.1rem; }
  .dnav a:hover { color: var(--color-accent); }
  .dnav a[aria-current="page"] { color: var(--color-primary); border-bottom-color: var(--color-brass); }
  html[data-theme="dark"] .dnav a[aria-current="page"] { color: var(--color-brass-lt); }
}
.tools { display: flex; align-items: center; gap: .25rem; }
.lang { display: flex; align-items: center; font: 500 .85rem/1 var(--f-ui); }
.lang button { background: none; border: 0; padding: .6rem .55rem; min-height: 2.75rem; color: var(--color-muted); border-bottom: 2px solid transparent; }
.lang button + button { border-inline-start: 1px solid var(--color-border); }
.lang button[lang="ur"] { font-family: var(--f-ur); font-size: 1.05rem; line-height: 1; }
.lang button[aria-pressed="true"] { color: var(--color-primary); font-weight: 700; }
html[data-theme="dark"] .lang button[aria-pressed="true"] { color: var(--color-brass-lt); }
.ibtn { background: none; border: 0; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: 50%; color: var(--color-text); }
.ibtn:hover { background: var(--color-active-soft); }
#tbtn .t-sun { display: none; } html[data-theme="dark"] #tbtn .t-sun { display: contents; } html[data-theme="dark"] #tbtn .t-moon { display: none; }

/* search dialog */
.sdlg { border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); border-radius: 10px; padding: 0; width: min(36rem, calc(100vw - 1.5rem)); margin-block-start: 4.5rem; box-shadow: var(--shadow); }
.sdlg::backdrop { background: rgba(11, 46, 39, .55); }
.sform { display: flex; align-items: center; gap: .5rem; padding: .4rem .6rem .4rem 1rem; border-bottom: 1px solid var(--color-border); }
.sform input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 3rem; outline: none; font: 400 1.05rem var(--f-ui); }
.shits { list-style: none; margin: 0; padding: 0; max-height: min(60vh, 26rem); overflow: auto; }
.shits a { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; text-decoration: none; min-height: 3rem; align-items: center; border-bottom: 1px solid var(--color-border); }
.shits a:hover, .shits a:focus-visible { background: var(--color-active-soft); }
.shits small { color: var(--color-muted); font: 500 .75rem var(--f-ui); }
.shint { padding: .8rem 1rem; color: var(--color-muted); font: .85rem var(--f-ui); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 3rem; padding: .5rem 1.4rem; border-radius: var(--r); text-decoration: none; font: 500 1rem/1.2 var(--f-head); border: 1px solid var(--color-primary); background: var(--color-primary); color: var(--on-primary); text-align: center; }
html[data-lang="ur"] .btn { font-family: var(--f-ur); font-size: 1.08rem; }
.btn:hover { background: var(--color-primary-deep); }
.btn.brass { background: linear-gradient(#B89A58, #9B7E3F); border-color: #B89A58; color: #1A1608; }
.btn.brass:hover { background: #B89A58; }
.btn.ghost { background: transparent; color: var(--color-primary); border-color: var(--color-brass); }
html[data-theme="dark"] .btn.ghost { color: var(--color-brass-lt); }
.btn.ghost:hover { background: var(--color-active-soft); }
.btn.ghost-l { background: transparent; color: #F4EBD3; border-color: rgba(217, 190, 130, .7); }
.btn.ghost-l:hover { background: rgba(255, 255, 255, .08); }
.btn.block { width: 100%; }
.tlink { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; color: var(--color-accent); font: 500 .95rem var(--f-head); border-bottom: 1px solid currentColor; padding-block: .25rem; min-height: 2rem; }
html[data-lang="ur"] .tlink { font-family: var(--f-ur); }
.tlink .ic, .btn .ic { width: 1.1rem; height: 1.1rem; }
[dir="rtl"] .ic.flip, [dir="rtl"] .tlink .ic, [dir="rtl"] .btn .ic.arrow-i { transform: scaleX(-1); }
.band .tlink { color: #F4EBD3; }

/* ---------- hero and banners ---------- */
.hero, .banner { position: relative; isolation: isolate; color: #F7F1E1; background: #0B2E27 url("../img/banner-arch-m-793.webp") center / cover no-repeat; }
.hero::before, .banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 45%, rgba(6, 30, 25, .42), rgba(6, 30, 25, .18) 62%, rgba(6, 30, 25, .32)); }
.banner { background-position: center top; }
@media (min-width: 700px) { .hero, .banner { background-image: url("../img/banner-arch-1400.webp"); } }
@media (min-width: 1500px) { .hero, .banner { background-image: url("../img/banner-arch-1942.webp"); } }
/* left-aligned banners (library, listen): text on the calm wall, the window niche on the far side */
.banner.left { background-image: url("../img/banner-wall-m-900.webp"); background-position: center; }
.banner.left::before { background: linear-gradient(90deg, rgba(6, 30, 25, .35), rgba(6, 30, 25, .05) 70%); }
@media (min-width: 700px) { .banner.left { background-image: url("../img/banner-wall-1400.webp"); background-position: right center; } }
@media (min-width: 1500px) { .banner.left { background-image: url("../img/banner-wall-2000.webp"); } }
.hero { text-align: center; }
.hin { max-width: 52rem; margin: 0 auto; padding: 2rem var(--gut) 2.2rem; display: grid; gap: .9rem; justify-items: center; }
@media (min-width: 900px) { .hin { padding-block: 3.4rem 3.2rem; } }
.verse { margin: 0; display: grid; gap: .35rem; justify-items: center; }
.verse .ar { font: 400 clamp(1.7rem, 5.6vw, 2.5rem)/1.9 var(--f-ar); color: #E7CB8C; margin: 0; max-width: 40rem; }
.verse .ref { font: 500 .8rem var(--f-ui); letter-spacing: .06em; color: #CDBB8E; }
.verse .tr { font: italic 400 1rem/1.5 var(--f-head); color: #EFE6D0; max-width: 34rem; }
.hero h1 { font-size: clamp(2.2rem, 8vw, 3.9rem); color: #FFFDF6; text-wrap: balance; }
.hero .lede { color: #E8E1CD; font-size: 1.05rem; max-width: 34rem; }
.hero .btns { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; margin-top: .4rem; }
.hero .btns .btn { min-width: 11.5rem; }
.rule { display: flex; align-items: center; gap: .7rem; color: var(--color-brass-lt); width: min(14rem, 60%); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .6; }
.rule .orn { color: currentColor; }

.banner .bwrap { max-width: var(--max); margin: 0 auto; padding: 1.4rem var(--gut) 1.6rem; text-align: center; display: grid; gap: .55rem; justify-items: center; }
@media (min-width: 900px) { .banner .bwrap { padding-block: 2.2rem 2.4rem; } }
.banner h1 { font-size: clamp(2rem, 7vw, 3.2rem); color: #FFFDF6; }
.banner .lead { color: #E5DEC9; max-width: 34rem; }
.crumbs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .5rem; justify-content: center; font: 400 .82rem var(--f-ui); color: #D4C9A8; }
.crumbs li + li::before { content: "/"; margin-inline-end: .5rem; opacity: .7; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.banner.left .bwrap { text-align: start; justify-items: start; }
.banner.left .crumbs { justify-content: flex-start; }
.bsearch { display: flex; width: min(34rem, 100%); background: var(--color-surface); border-radius: var(--r); overflow: hidden; margin-top: .4rem; color: var(--color-text); }
.bsearch .ic { margin: 0 .2rem 0 .9rem; align-self: center; color: var(--color-muted); }
.bsearch input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 3rem; padding: 0 .8rem; outline: none; font: 400 1rem var(--f-ui); }
.bsearch button { border: 0; background: var(--color-brass); color: #1A1608; padding: 0 1.3rem; font: 600 .95rem var(--f-ui); }

/* ---------- layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }
.sec { padding-block: var(--s6); }
.shead { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: var(--s4); flex-wrap: wrap; }
.shead h2 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); }
.shead .tlink { font-size: .85rem; }
.hr { border: 0; border-top: 1px solid var(--color-border); margin: 0; }

/* next gathering strip */
.next { background: var(--color-surface); border-block: 1px solid var(--color-border); }
.next .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.6rem; padding-block: .8rem; min-height: 3.5rem; }
.next .nx-l { display: flex; align-items: center; gap: .6rem; }
.next .nx { display: flex; align-items: center; gap: .55rem; font-size: 1rem; }
.next .nx .ic { color: var(--color-accent); }
.next a.tlink { margin-inline-start: auto; }
.next.link { display: block; text-decoration: none; }
@media (max-width: 699px) {
  .next .nx-l { display: none; }
  .next .wrap { flex-wrap: nowrap; }
  .next .nxs { display: flex; flex-wrap: wrap; gap: .1rem .8rem; flex: 1; }
  .next a.tlink { border: 0; margin: 0; }
  .next a.tlink .t { display: none; }
}

/* begin your journey */
.journey { display: grid; gap: 0; }
.jstep { display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--color-border); text-decoration: none; min-height: 4.5rem; }
.jstep .jn { width: 3rem; height: 3rem; border-radius: 50%; background: #EFE7D2; color: var(--color-accent); display: grid; place-items: center; }
html[data-theme="dark"] .jstep .jn { background: var(--color-active-soft); }
.jstep h3 { font-size: 1.2rem; } .jstep p { color: var(--color-muted); font-size: .95rem; }
.jstep .num { display: none; }
@media (min-width: 900px) {
  .journey { grid-template-columns: repeat(3, 1fr); }
  .jstep { grid-template-columns: 1fr; align-content: start; padding: 0 2rem; border-bottom: 0; border-inline-start: 1px solid var(--color-border); gap: .5rem; }
  .jstep:first-child { border-inline-start: 0; padding-inline-start: 0; }
  .jstep .jn { display: none; }
  .jstep .num { display: block; font: 400 2.6rem/1 var(--f-head); color: var(--color-accent); }
  .jstep h3 { font-size: 1.5rem; }
  .jstep .go { margin-top: .6rem; }
}
.jstep .go { color: var(--color-muted); } .jstep:hover h3 { color: var(--color-accent); }

/* home: library and recordings side by side */
.duo { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .duo { grid-template-columns: 1.7fr 1fr; gap: 3rem; } .duo > :last-child { border-inline-start: 1px solid var(--color-border); padding-inline-start: 3rem; } }

/* ---------- book covers and items ---------- */
.cover { --c1: #164A3E; --c2: #0B2E27; position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4.1; border-radius: 3px 6px 6px 3px; color: #EBD79F; text-align: center; padding: 14% 12%; background: linear-gradient(105deg, rgba(255,255,255,.14) 0 3%, rgba(0,0,0,.2) 3.4% 4.4%, transparent 5%), linear-gradient(160deg, var(--c1), var(--c2)); box-shadow: var(--shadow); overflow: hidden; }
.cover::before { content: ""; position: absolute; inset: 6% 7% 6% 9%; border: 1px solid rgba(217, 190, 130, .55); border-radius: 40% 40% 2px 2px / 22% 22% 2px 2px; }
.cover span { position: relative; font: 500 clamp(1rem, 2.6vw, 1.35rem)/1.2 var(--f-head); text-wrap: balance; }
.cover .ur { font-family: var(--f-ur); line-height: 1.7; }
.cover.c2 { --c1: #E9DFC6; --c2: #D7C9A5; color: #3A3220; }
.cover.c2::before { border-color: rgba(138, 109, 49, .5); }
.cover.c3 { --c1: #6B1E24; --c2: #4A1318; }
.cover.c4 { --c1: #1D3B63; --c2: #122846; }
.cover.c5 { --c1: #5B3A22; --c2: #3E2614; }
.cover.c6 { --c1: #3C4A27; --c2: #26311A; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover.has-img { padding: 0; } .cover.has-img::before { display: none; }

.book { display: grid; gap: .55rem; align-content: start; text-decoration: none; }
.book h3 { font-size: 1.1rem; line-height: 1.25; }
.book .meta { color: var(--color-muted); font: 400 .85rem var(--f-ui); display: flex; flex-wrap: wrap; gap: .1rem .5rem; }
.book .go { color: var(--color-accent); font: 500 .92rem var(--f-head); border-bottom: 1px solid currentColor; justify-self: start; padding-block: .15rem; }
.chip { display: inline-block; border: 1px solid var(--color-border); border-radius: 4px; padding: .05rem .5rem; font: 500 .72rem/1.6 var(--f-ui); color: var(--color-muted); background: var(--color-surface); }
.grid4 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1rem; }
@media (min-width: 700px) { .grid4 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.6rem; } }
@media (min-width: 1000px) { .grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4rem 2.2rem; } }
.grid4.list { grid-template-columns: 1fr; gap: 0; }
.grid4.list .book { grid-template-columns: 4rem 1fr; gap: .2rem 1rem; padding: .8rem 0; border-bottom: 1px solid var(--color-border); align-items: center; }
.grid4.list .book .cover { grid-row: span 3; }
.row3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
@media (max-width: 699px) { .row3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .row3 > :nth-child(3) { display: none; } }
.feature { display: grid; grid-template-columns: 7rem 1fr; gap: 1.2rem; padding: 1.2rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r); align-items: center; }
.feature .cover { width: 100%; }
.feature h3 { font-size: 1.5rem; } .feature p { color: var(--color-muted); margin: .3rem 0 .7rem; }
@media (max-width: 520px) { .feature { grid-template-columns: 5.2rem 1fr; padding: .9rem; } .feature h3 { font-size: 1.2rem; } .feature p { display: none; } }
.feat2 { display: grid; gap: 1rem; }
@media (min-width: 800px) { .feat2 { grid-template-columns: 1fr 1fr; gap: 1.4rem; } }

/* library toolbar */
.toolbar { background: var(--color-surface); border-bottom: 1px solid var(--color-border); position: sticky; top: var(--top-h); z-index: 20; }
.toolbar .wrap { display: flex; align-items: center; gap: .6rem; padding-block: .7rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.toolbar .wrap::-webkit-scrollbar { display: none; }
.tchip { flex: none; min-height: 2.75rem; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--color-border); background: transparent; font: 500 .92rem var(--f-head); text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; }
html[data-lang="ur"] .tchip { font-family: var(--f-ur); }
.tchip[aria-pressed="true"], .tchip[aria-current="true"] { background: var(--color-primary); color: var(--on-primary); border-color: var(--color-primary); }
@media (min-width: 900px) { .tchip { border-radius: var(--r); background: transparent; } .tchip[aria-pressed="true"] { background: var(--color-brass); border-color: var(--color-brass); color: #1A1608; } }
.sel { flex: none; min-height: 2.75rem; border: 1px solid var(--color-border); border-radius: var(--r); background: var(--color-surface); padding: 0 .8rem; font: 400 .9rem var(--f-ui); }
.vt { margin-inline-start: auto; display: none; gap: .4rem; flex: none; }
@media (min-width: 900px) { .vt { display: flex; } }
.vt button { width: 2.75rem; height: 2.75rem; border: 1px solid var(--color-border); border-radius: var(--r); background: transparent; display: grid; place-items: center; }
.vt button[aria-pressed="true"] { background: var(--color-brass); border-color: var(--color-brass); color: #1A1608; }
.nores { padding: 2.5rem 0; text-align: center; color: var(--color-muted); display: grid; gap: 1rem; justify-items: center; }

/* ---------- silsila ---------- */
.sl-cols { display: grid; gap: var(--s5); padding-block: var(--s5) var(--s6); }
@media (min-width: 900px) { .sl-cols { grid-template-columns: minmax(18rem, 24rem) 1fr; align-items: start; gap: 2rem; } }
.panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r); padding: var(--s5); }
.panel h2 { font-size: 1.8rem; margin-bottom: .6rem; }
.panel > p { color: var(--color-muted); margin-bottom: 1.1rem; }
.frame { position: relative; border-color: var(--color-brass); box-shadow: inset 0 0 0 4px var(--color-surface), inset 0 0 0 5px color-mix(in srgb, var(--color-brass) 45%, transparent); padding: clamp(1.4rem, 4vw, 2.6rem); }
.tabs { display: flex; padding: 3px; border: 1px solid rgba(217, 190, 130, .6); border-radius: var(--r); width: min(24rem, 100%); }
.tabs button { flex: 1; min-height: 2.75rem; background: transparent; border: 0; color: #F4EBD3; border-radius: 4px; font: 500 1rem var(--f-head); }
html[data-lang="ur"] .tabs button { font-family: var(--f-ur); }
.tabs button[aria-selected="true"] { background: #F4EBD3; color: var(--color-primary-deep); }
@media (min-width: 900px) { .tabs { display: none; } }
@media (max-width: 899px) {
  .sl-cols .pane { display: none; }
  .sl-cols .pane.on { display: block; }
  .sl-cols { padding-inline: 0; } .sl-cols .panel { border-inline: 0; border-radius: 0; }
}
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.doc { display: grid; grid-template-columns: 3rem 1fr auto; align-items: center; gap: .9rem; padding: .8rem; border: 1px solid var(--color-border); border-radius: var(--r); background: var(--color-bg); min-height: 4.2rem; }
.doc .di { width: 3rem; height: 3rem; border-radius: 50%; background: #EFE7D2; color: var(--color-accent); display: grid; place-items: center; }
html[data-theme="dark"] .doc .di { background: var(--color-active-soft); }
.doc b { font: 500 1.05rem/1.3 var(--f-head); display: block; }
.doc small { color: var(--color-muted); font: .82rem var(--f-ui); }
.doc a.dl { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; color: var(--color-accent); border-radius: 50%; }
.doc a.dl:hover { background: var(--color-active-soft); }
.doc .titlelink { text-decoration: none; }
.doc .titlelink:hover b { color: var(--color-accent); }
.docs .two { grid-template-columns: 3rem 1fr; } .docs .two .dd { display: grid; gap: .2rem; }
.docs .dd .sub { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }

.lineage { list-style: none; margin: 1.6rem 0 0; padding: 0; position: relative; }
.lineage::before { content: ""; position: absolute; inset-inline-start: 1.6rem; top: 1.4rem; bottom: 1.4rem; width: 0; border-inline-start: 2px solid var(--color-brass); opacity: .7; }
.lk { position: relative; display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; align-items: center; padding-block: .6rem; min-height: 4rem; }
.lk .nd { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; z-index: 1; }
.lk .nd svg { width: 100%; height: 100%; }
.lk .nm { font: 500 clamp(1.25rem, 3.4vw, 1.7rem)/1.25 var(--f-head); }
.lk .nm .lu { font-size: 1.15em; }
.lk .hon { display: block; font: 400 .95rem var(--f-head); color: var(--color-muted); margin-top: .1rem; }
.lk:first-child .nm { color: var(--color-primary); } html[data-theme="dark"] .lk:first-child .nm { color: var(--color-brass-lt); }
.lk .rh { font-size: .6em; margin-inline-start: .4em; color: var(--color-muted); vertical-align: super; }
.lk:target .nm { color: var(--color-accent); }
.nd .o1 { fill: var(--color-primary); stroke: var(--color-brass); } .nd .o2 { fill: none; stroke: var(--color-brass-lt); }

/* ---------- audio ---------- */
.alay { display: grid; gap: var(--s5); padding-block: var(--s5) var(--s6); }
@media (min-width: 900px) { .alay { grid-template-columns: 15rem 1fr; gap: 3rem; } }
.side h2 { font-size: 1.4rem; margin-bottom: .8rem; }
.side a.item { display: flex; align-items: center; gap: .7rem; min-height: 2.75rem; padding: .3rem .8rem; text-decoration: none; font: 500 1rem var(--f-head); }
html[data-lang="ur"] .side a.item { font-family: var(--f-ur); }
.side a.item[aria-current="page"] { background: var(--color-active-soft); color: var(--color-link-strong); font-weight: 700; }
.side .lbl { margin: 1.4rem 0 .4rem; }
.side nav .item .ic.flip { margin-inline-start: auto; color: var(--color-muted); }
@media (max-width: 899px) { .side { display: none; } }
.colls { list-style: none; margin: 0 0 var(--s6); padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .9rem; }
.coll { display: grid; gap: .3rem; justify-items: center; text-align: center; text-decoration: none; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--r); padding: 1.1rem .8rem; }
.coll:hover { border-color: var(--color-brass); }
.coll .ar-i { width: 2.6rem; height: 3.4rem; color: var(--color-brass); } .coll .ar-i path { fill: none; stroke: currentColor; stroke-width: 1.4; }
.coll b { font: 500 1.2rem var(--f-head); } .coll span.n { color: var(--color-muted); font: .85rem var(--f-ui); }
.years { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: var(--s5); scrollbar-width: thin; }
.recs { list-style: none; margin: 0; padding: 0; }
.rec { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--color-border); min-height: 4.6rem; }
.rec[aria-current="true"] { background: var(--color-active-soft); margin-inline: -.6rem; padding-inline: .6rem; }
.pbtn { width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid var(--color-brass); background: var(--color-primary); color: #F4EBD3; display: grid; place-items: center; }
.pbtn:hover { background: var(--color-primary-deep); }
.pbtn .ic { width: 1.2rem; height: 1.2rem; fill: currentColor; stroke: none; }
.rec .tt { font: 500 1.1rem/1.3 var(--f-head); } .rec .ss { color: var(--color-muted); font: .85rem var(--f-ui); display: flex; flex-wrap: wrap; gap: .1rem .8rem; }
.rec .dl { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; color: var(--color-accent); border-radius: 50%; }
.rec .dl:hover { background: var(--color-active-soft); }
.rec .err { color: #9B2C2C; font: .85rem var(--f-ui); }
html[data-theme="dark"] .rec .err { color: #F1A9A0; }
.skel { height: 4.2rem; margin: .5rem 0; border-radius: var(--r); background: linear-gradient(90deg, var(--color-border), var(--color-active-soft), var(--color-border)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- programme ---------- */
.pcols { display: grid; gap: var(--s6); padding-block: var(--s5) var(--s6); }
@media (min-width: 900px) { .pcols.two { grid-template-columns: 1fr 1fr; gap: 3rem; } .pcols.two > :last-child { border-inline-start: 1px solid var(--color-border); padding-inline-start: 3rem; } }
.gath { position: relative; display: grid; gap: 1.2rem; grid-template-columns: 1fr; background: var(--color-surface); border: 1px solid var(--color-brass); border-radius: var(--r); padding: 1.4rem; box-shadow: inset 0 0 0 4px var(--color-surface), inset 0 0 0 5px color-mix(in srgb, var(--color-brass) 40%, transparent); }
@media (min-width: 700px) { .gath { grid-template-columns: auto 1fr; padding: 2rem 2.4rem; gap: 2rem; } }
.gdate { display: grid; gap: .2rem; justify-items: center; text-align: center; font: 400 3.2rem/1 var(--f-head); color: var(--color-accent); }
.gdate small { font: 500 1.4rem/1 var(--f-head); color: var(--color-text); letter-spacing: .04em; display: block; }
.gdate .mid { width: 1px; height: 1.4rem; background: var(--color-brass); margin: .3rem 0; }
.gbody { display: grid; gap: .6rem; align-content: center; }
.gbody h2 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.gbody .range { font: 400 1.3rem var(--f-head); }
.gbody .btns { display: grid; gap: .6rem; max-width: 22rem; margin-top: .6rem; }
@media (max-width: 699px) {
  .gath { grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 1rem; align-items: start; }
  .gdate { background: linear-gradient(#B89A58, #9B7E3F); color: #1A1608; padding: .8rem .3rem; border-radius: var(--r); font-size: 1.5rem; } .gdate small { color: #1A1608; font-size: 1rem; } .gdate .mid { background: #1A1608; }
  .gath .btns { grid-column: 1 / -1; } .gbody h2 { font-size: 1.5rem; } .gbody .range { font-size: 1.05rem; }
}
.nogath { padding: 1.4rem; border: 1px dashed var(--color-brass); border-radius: var(--r); color: var(--color-muted); background: var(--color-surface); }
.pcols h2.h { font-size: clamp(1.7rem, 4.5vw, 2.3rem); margin-bottom: .5rem; }
.pcols .sub { color: var(--color-muted); margin-bottom: 1rem; }
.crow { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; padding: .7rem 0; border-bottom: 1px solid var(--color-border); }
.crow .who { min-width: 0; flex: 1; } .crow .who b { display: block; font: 500 1.2rem var(--f-head); } .crow .who span { font: .95rem var(--f-ui); overflow-wrap: anywhere; }
.form { display: grid; gap: 1rem; margin-top: 1.4rem; }
.field { display: grid; gap: .35rem; }
.field label { font: 600 .9rem var(--f-ui); }
.field input, .field textarea { width: 100%; min-height: 3rem; border: 1px solid var(--color-border); border-radius: var(--r); background: var(--color-surface); padding: .6rem .8rem; font: 400 1rem var(--f-ui); }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; border-color: var(--color-accent); }
.field .help { color: var(--color-muted); font: .82rem var(--f-ui); }
.alert { padding: .8rem 1rem; border-radius: var(--r); border: 1px solid; font: .95rem/1.5 var(--f-ui); }
.alert.ok { background: var(--color-active-soft); border-color: var(--color-primary); }
.alert.bad { background: #FBEAE7; border-color: #B3261E; color: #6B1410; }
html[data-theme="dark"] .alert.bad { background: #3A1B18; color: #F6C9C3; border-color: #E0766C; }
.hp { position: absolute; inset-inline-start: -9999px; height: 0; overflow: hidden; }

/* schedule */
.chain { list-style: none; margin: 0; padding: 0; }
.mon { padding-block: 1.4rem .4rem; border-bottom: 1px solid var(--color-border); display: grid; gap: .4rem 2rem; }
@media (min-width: 800px) { .mon { grid-template-columns: 11rem 1fr; } }
.mon h2 { font-size: 1.5rem; }
.gi { display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr; gap: .2rem 1.2rem; padding: .7rem 0; align-items: center; border-bottom: 1px dotted var(--color-border); }
.gi:last-child { border-bottom: 0; }
.gi .d { font: 600 1.25rem var(--f-head); } .gi .d small { display: block; color: var(--color-muted); font: .85rem var(--f-ui); }
.gi .c { font: 500 1.15rem var(--f-head); display: flex; flex-wrap: wrap; gap: .3rem .7rem; align-items: center; }
.gi.past .d, .gi.past .c { color: var(--color-muted); }
.gi.next, .gi.now { background: var(--color-active-soft); margin-inline: -.7rem; padding-inline: .7rem; border-radius: var(--r); }
.gi.big .d, .gi.big .c { font-size: 1.4rem; }
.badge { font: 600 .72rem var(--f-ui); padding: .1rem .6rem; border-radius: 999px; border: 1px solid var(--color-border); color: var(--color-muted); }
.badge.on { background: var(--color-primary); color: var(--on-primary); border-color: var(--color-primary); }
.badge.hot { background: var(--color-brass); color: #1A1608; border-color: var(--color-brass); }
@media (max-width: 599px) { .gi { grid-template-columns: 1fr; } }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding-block: .8rem; scrollbar-width: thin; }

/* ---------- band and footer ---------- */
.band { background: #0B2E27 url("../img/niche-band-1000.webp") right center / cover no-repeat; color: #F4EBD3; }
@media (min-width: 900px) { .band { background-image: url("../img/niche-band-2000.webp"); } }
html[dir="rtl"] .band { background-position: left center; transform: none; }
.bandin { max-width: var(--max); margin: 0 auto; padding: 2.2rem var(--gut); display: grid; gap: 1.2rem; align-items: center; }
@media (min-width: 900px) { .bandin { grid-template-columns: 1fr 1.2fr; gap: 3rem; padding-block: 3rem; } .bandr { border-inline-start: 1px solid rgba(217, 190, 130, .5); padding-inline-start: 2.2rem; } .band .bandr { max-width: 30rem; } }
.band .eyebrow { color: var(--color-brass-lt); margin-bottom: .6rem; }
.band h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); color: #FFFDF6; }
.bandr { display: grid; gap: .9rem; justify-items: start; } .bandr p { color: #E5DEC9; font-size: 1rem; }
.band .btns { display: flex; gap: .7rem; flex-wrap: wrap; }
.foot { background: var(--color-bg); border-top: 1px solid var(--color-border); }
.fwrap { max-width: var(--max); margin: 0 auto; padding: 1.6rem var(--gut) 1rem; display: grid; gap: 1rem; align-items: center; }
@media (min-width: 900px) { .fwrap { grid-template-columns: auto 1fr auto; } }
.fnav { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; justify-content: center; }
.fnav a { text-decoration: none; font: 400 .9rem var(--f-head); min-height: 2.75rem; display: inline-flex; align-items: center; }
html[data-lang="ur"] .fnav a { font-family: var(--f-ur); }
.fnav a:hover { color: var(--color-accent); }
.ftag { color: var(--color-muted); font: italic .9rem var(--f-head); }
.fbase { max-width: var(--max); margin: 0 auto; padding: .8rem var(--gut) 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; color: var(--color-muted); font: .78rem var(--f-ui); border-top: 1px solid var(--color-border); }
.fbase .tech { display: flex; gap: 1rem; } .fbase a { color: inherit; }

/* ---------- mobile bottom navigation ---------- */
.bnav { position: fixed; inset-inline: 0; bottom: 0; z-index: 50; height: calc(var(--bnav-h) + env(safe-area-inset-bottom)); padding: .3rem .3rem env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); gap: .15rem; background: var(--color-surface); border-top: 1px solid var(--color-border); box-shadow: 0 -6px 16px -10px rgba(11, 46, 39, .35); }
.bnav a { display: grid; justify-items: center; align-content: center; gap: .15rem; border-radius: 14px; text-decoration: none; color: var(--color-muted); font: 500 .72rem/1.2 var(--f-ui); min-height: 3rem; padding: .25rem .1rem; }
.bnav a .ic { width: 1.5rem; height: 1.5rem; }
html[data-lang="ur"] .bnav a { font: 400 .95rem/1.4 var(--f-ur); }
.bnav a[aria-current="page"] { background: var(--color-active-soft); color: var(--color-primary); font-weight: 700; }
html[data-theme="dark"] .bnav a[aria-current="page"] { color: var(--color-brass-lt); }
@media (min-width: 900px) { .bnav { display: none; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 899px) { .hide-m { display: none !important; } }
@media print { .top, .bnav, .player, .band { display: none; } }
.field .fe { color: #9B2C2C; font: .85rem var(--f-ui); }
html[data-theme="dark"] .field .fe { color: #F1A9A0; }
.field [aria-invalid="true"] { border-color: #B3261E; }
.crow .ibtn.done { color: var(--color-link-strong); background: var(--color-active-soft); }
.months { margin-top: 1rem; }
.next .nxs { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 2rem; flex: 1; }
@media (min-width: 700px) { .next .nxs { padding-inline-start: 1.6rem; margin-inline-start: .2rem; border-inline-start: 1px solid var(--color-border); } .next .wrap { padding-block: 1rem; } }
/* band: the text sits on solid emerald, the niche photograph shows on the far side */
.band { background-color: #0B2E27; background-image: linear-gradient(90deg, #0B2E27 0, #0B2E27 58%, rgba(11, 46, 39, .6) 72%, rgba(11, 46, 39, 0) 90%), url("../img/niche-band-1000.webp"); background-size: 100% 100%, cover; background-position: 0 0, right center; background-repeat: no-repeat; }
@media (min-width: 900px) { .band { background-image: linear-gradient(90deg, #0B2E27 0, #0B2E27 62%, rgba(11, 46, 39, .6) 74%, rgba(11, 46, 39, 0) 90%), url("../img/niche-band-2000.webp"); } }
html[dir="rtl"] .band { background-image: linear-gradient(270deg, #0B2E27 0, #0B2E27 58%, rgba(11, 46, 39, .6) 72%, rgba(11, 46, 39, 0) 90%), url("../img/niche-band-1000.webp"); background-position: 0 0, left center; }
@media (min-width: 900px) { html[dir="rtl"] .band { background-image: linear-gradient(270deg, #0B2E27 0, #0B2E27 62%, rgba(11, 46, 39, .6) 74%, rgba(11, 46, 39, 0) 90%), url("../img/niche-band-2000.webp"); } }
@media (max-width: 899px) { .band { background-image: linear-gradient(180deg, rgba(11,46,39,.92), rgba(11,46,39,.78)), url("../img/niche-band-1000.webp"); } html[dir="rtl"] .band { background-image: linear-gradient(180deg, rgba(11,46,39,.92), rgba(11,46,39,.78)), url("../img/niche-band-1000.webp"); } }
html[dir="rtl"] .band { transform: none; }
.cover::after { content: ""; position: absolute; bottom: 14%; inset-inline: 0; margin-inline: auto; width: .6rem; height: .6rem; background: currentColor; transform: rotate(45deg); opacity: .7; }
.cover.has-img::after { display: none; }

.sal { font-family: var(--f-ar); font-size: 1.15em; line-height: 1; }

@media (max-width: 599px) { .hide-s { display: none !important; } .lang button { padding-inline: .4rem; } .tools { gap: 0; } }
.tlink-b { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; font: inherit; min-height: 2rem; }
.doc { grid-template-columns: 3rem minmax(0, 1fr) auto; }
.docs .two { grid-template-columns: 3rem minmax(0, 1fr); }
.doc b, .doc small, .titlelink { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 389px) {
  .bar { gap: .4rem; }
  .bw b { font-size: 1.45rem; } .mk { width: 1.4rem; height: 1.8rem; }
  .bw small { letter-spacing: .12em; font-size: .46rem; }
  html[data-lang="ur"] .bw small { font-size: .72rem; }
  .lang button { padding-inline: .3rem; font-size: .78rem; } .lang button[lang="ur"] { font-size: .95rem; }
}
.gi.next, .gi.now { margin-inline: 0; padding-inline: .7rem; }

.fbase .tech { gap: .4rem 1.2rem; flex-wrap: wrap; align-items: center; }
.tl { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: 0; border: 0; background: none; color: var(--color-muted); font: .82rem var(--f-ui); text-decoration: none; }
.tl:hover { color: var(--color-accent); } .tl[hidden] { display: none; }
.tl .ic { width: 1.05rem; height: 1.05rem; }
.tl .t-sun { display: none; } html[data-theme="dark"] .tl .t-sun { display: contents; } html[data-theme="dark"] .tl .t-moon { display: none; }
.show-s { display: none !important; } @media (max-width: 599px) { .show-s { display: inline-flex !important; } }

/* Ahsan-ul-Wazaif feature: page 1 of the PDF as the cover */
.wz { background: var(--color-primary-deep); color: #F4EBD3; border-block: 1px solid rgba(217, 190, 130, .35); }
.wzin { max-width: var(--max); margin: 0 auto; padding: 1.2rem var(--gut); display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.1rem; align-items: center; }
.wzc { display: block; border-radius: 2px; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .7); background: #fff; line-height: 0; }
.wzc img { width: 100%; height: auto; display: block; }
.wzt { display: grid; gap: .35rem; justify-items: start; }
.wz .eyebrow { color: var(--color-brass-lt); }
.wz h2 { font-size: clamp(1.7rem, 5vw, 2.4rem); color: #FFFDF6; }
.wzs { color: #E5DEC9; font-size: .98rem; max-width: 34rem; }
.wz .btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .4rem; }
.wz .btn { min-height: 2.9rem; padding-inline: 1.1rem; }
@media (min-width: 900px) { .wzin { grid-template-columns: 9rem minmax(0, 1fr); gap: 2.2rem; padding-block: 1.8rem; } }
@media (max-width: 420px) { .wz .btns .btn { flex: 1 1 100%; } }
.wz.lib-top { margin-top: 1.4rem; border: 1px solid rgba(217, 190, 130, .45); border-radius: var(--r); }

.hero .tlink { color: #F4EBD3; margin-top: .2rem; }
@media (max-width: 599px) { .hero .tr, .hero .lede { display: none; } .hin { padding-block: 1.4rem 1.5rem; gap: .7rem; } }

.lk .nd svg { width: 2.7rem; height: 2.7rem; }
.lineage::before { border-inline-start: 1.5px solid var(--color-brass); opacity: .55; }

.cover .cl { display: block; margin-top: .5rem; font: 600 .62rem var(--f-ui); letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
html[data-lang="ur"] .cover .cl { font: 400 .95rem var(--f-ur); letter-spacing: 0; text-transform: none; }

/* Photographic banner set (OpenArt Nano Banana Pro). Switch back with V2_BANNERS = 'original' in inc/shell.php. */
.banners-real .hero, .banners-real .banner { background-image: url("../img/banner-real-arch-m-793.webp"); }
@media (min-width: 700px) { .banners-real .hero, .banners-real .banner { background-image: url("../img/banner-real-arch-1400.webp"); } }
@media (min-width: 1500px) { .banners-real .hero, .banners-real .banner { background-image: url("../img/banner-real-arch-1942.webp"); } }
.banners-real .banner.left { background-image: url("../img/banner-real-wall-m-900.webp"); }
@media (min-width: 700px) { .banners-real .banner.left { background-image: url("../img/banner-real-wall-1400.webp"); } }
@media (min-width: 1500px) { .banners-real .banner.left { background-image: url("../img/banner-real-wall-2000.webp"); } }
/* the photographs are lighter than the illustrations, so the shade over them is a little deeper to keep the text readable */
.banners-real .hero::before, .banners-real .banner::before { background: radial-gradient(ellipse at 50% 45%, rgba(6, 30, 25, .5), rgba(6, 30, 25, .34) 62%, rgba(6, 30, 25, .46)); }
.banners-real .banner.left::before { background: linear-gradient(90deg, rgba(6, 30, 25, .4), rgba(6, 30, 25, .08) 72%); }

/* Set "a": the hero1a / hero2a pictures you chose. Active when V2_BANNERS = 'a' in inc/shell.php. */
.banners-a .hero, .banners-a .banner { background-image: url("../img/banner-a-arch-m-793.webp"); }
@media (min-width: 700px) { .banners-a .hero, .banners-a .banner { background-image: url("../img/banner-a-arch-1400.webp"); } }
@media (min-width: 1500px) { .banners-a .hero, .banners-a .banner { background-image: url("../img/banner-a-arch-1942.webp"); } }
.banners-a .banner.left { background-image: url("../img/banner-a-wall-m-900.webp"); }
@media (min-width: 700px) { .banners-a .banner.left { background-image: url("../img/banner-a-wall-1400.webp"); } }
@media (min-width: 1500px) { .banners-a .banner.left { background-image: url("../img/banner-a-wall-2000.webp"); } }
.banners-a .hero::before, .banners-a .banner::before { background: radial-gradient(ellipse at 50% 45%, rgba(5, 26, 21, .46), rgba(5, 26, 21, .3) 62%, rgba(5, 26, 21, .42)); }
.banners-a .banner.left::before { background: linear-gradient(90deg, rgba(5, 26, 21, .42), rgba(5, 26, 21, .06) 72%); }

/* Ahsan-ul-Wazaif cover: same soft book edges and spine shade as the other covers */
.wzc { position: relative; border-radius: 3px 6px 6px 3px; overflow: hidden; }
.wzc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(105deg, rgba(255, 255, 255, .28) 0 3%, rgba(0, 0, 0, .16) 3.4% 4.6%, transparent 6%); }

/* ---------- Urdu: Gulzar has a small x-height, so Urdu text is set larger and more open than Latin ---------- */
html[data-lang="ur"] .banner .lead { font-size: 1.25rem; line-height: 2; max-width: 38rem; }
html[data-lang="ur"] .crumbs { font-family: var(--f-ur); font-size: 1.05rem; line-height: 1.9; }
html[data-lang="ur"] .crumbs li + li::before { content: "‹"; margin-inline: 0 .5rem; opacity: .8; }
html[data-lang="ur"] .eyebrow { font-size: 1.1rem; }
.gd { display: grid; justify-items: center; }
.gd > span { display: grid; justify-items: center; gap: .1rem; }
html[data-lang="ur"] .gdate { gap: .4rem; }
html[data-lang="ur"] .gdate .gd .lu { font: 400 2.8rem/1.25 var(--f-ur); color: var(--color-accent); }
html[data-lang="ur"] .gdate .gd .lu small { font: 400 1.5rem/1.5 var(--f-ur); letter-spacing: 0; color: var(--color-text); }
html[data-lang="ur"] .gdate .mid { margin: .1rem 0; }
@media (max-width: 699px) { html[data-lang="ur"] .gdate .gd .lu { font-size: 1.9rem; color: #1A1608; } html[data-lang="ur"] .gdate .gd .lu small { font-size: 1.15rem; color: #1A1608; } }
html[data-lang="ur"] .gbody h2 { font-size: clamp(2rem, 6vw, 2.7rem); }
html[data-lang="ur"] .gbody .range { font: 400 1.6rem/1.9 var(--f-ur); }
html[data-lang="ur"] .gath .btn { font-size: 1.2rem; }

/* the schedule list */
html[data-lang="ur"] .sched .chips .tchip { font-size: 1.2rem; min-height: 3rem; padding-inline: 1.2rem; }
html[data-lang="ur"] .sched .mon { padding-block: 1.8rem .8rem; gap: .4rem 2.4rem; }
html[data-lang="ur"] .sched .mon h2 { font-size: 2rem; line-height: 1.7; }
@media (min-width: 800px) { html[data-lang="ur"] .sched .mon { grid-template-columns: 13rem 1fr; } }
html[data-lang="ur"] .sched .gi { grid-template-columns: minmax(11rem, 16rem) 1fr; padding-block: 1rem; row-gap: 0; }
html[data-lang="ur"] .sched .gi .d { font: 400 1.7rem/1.7 var(--f-ur); font-weight: 400; }
html[data-lang="ur"] .sched .gi .d small { font: 400 1.15rem/1.8 var(--f-ur); color: var(--color-muted); }
html[data-lang="ur"] .sched .gi .c { font: 400 1.7rem/1.7 var(--f-ur); gap: .3rem .9rem; }
html[data-lang="ur"] .sched .gi.big .d, html[data-lang="ur"] .sched .gi.big .c { font-size: 1.95rem; }
html[data-lang="ur"] .sched .badge { font: 400 1.05rem/1.7 var(--f-ur); padding: .05rem .8rem; }
html[data-lang="ur"] .sched .sub { font-size: 1.15rem; line-height: 2; }
@media (max-width: 599px) {
  html[data-lang="ur"] .sched .gi { grid-template-columns: 1fr; }
  html[data-lang="ur"] .sched .gi .d { font-size: 1.5rem; }
  html[data-lang="ur"] .sched .gi .c { font-size: 1.55rem; }
}

.nw { white-space: nowrap; }
.sched .gath .btns { max-width: none; }
@media (max-width: 699px) { .sched .gath .btn, .gath .btn { white-space: normal; line-height: 1.5; padding-block: .55rem; } }

/* next-Ijtema card: the buttons sit under the text on large screens and across the whole card on phones */
.gath > .btns { grid-column: 2; display: grid; gap: .6rem; max-width: 24rem; margin-top: -.2rem; }
.gath .gdate { grid-row: 1 / 3; }
@media (max-width: 699px) { .gath > .btns { grid-column: 1 / -1; max-width: none; margin-top: 0; } .gath .gdate { grid-row: auto; } }

/* a quiet marker in front of every month in the month column */
.mon h2 { display: flex; align-items: center; gap: .6rem; }
.mon h2::before { content: ""; flex: none; width: .5rem; height: .5rem; background: var(--color-brass); opacity: .7; transform: rotate(45deg); border-radius: 1px; }

/* the month you jumped to: a soft wash that settles from a gentle glow, and a fuller marker */
.mon:target { background: color-mix(in srgb, var(--color-brass) 9%, transparent); box-shadow: 0 0 0 .7rem color-mix(in srgb, var(--color-brass) 9%, transparent); border-radius: var(--r); animation: monglow 1.8s ease-out; }
.mon:target h2::before { opacity: 1; background: var(--color-brass); }
@keyframes monglow {
  from { background: color-mix(in srgb, var(--color-brass) 30%, transparent); box-shadow: 0 0 0 .7rem color-mix(in srgb, var(--color-brass) 30%, transparent); }
  to { background: color-mix(in srgb, var(--color-brass) 9%, transparent); box-shadow: 0 0 0 .7rem color-mix(in srgb, var(--color-brass) 9%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .mon:target { animation: none; } }

/* typographic covers: room for the title (two lines in Urdu) above the small diamond, which now sits at the foot of the cover */
.cover { padding: 14% 12% 24%; }
.cover::after { bottom: 9%; }
html[data-lang="ur"] .cover span { font-size: clamp(.95rem, 2.2vw, 1.2rem); line-height: 1.75; }
.cover.has-img { padding: 0; }
