/* Layout concept: a night sky where the Silsila is a chain of lamps climbing to the moon (hero),
   unrolled as a full lineage path (tree), then plain indexes for books, audio and visiting. */
:root {
  --night: #0a111c;
  --night-2: #0f1929;
  --night-3: #162235;
  --line: #243449;
  --moon: #ece6d6;
  --moon-dim: #a3afbf;
  --lamp: #f0b45a;
  --lamp-deep: #c98a2e;
  --sage: #86bfae;
  --f-display: "Brygada 1918", Georgia, "Times New Roman", serif;
  --f-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-quran: "Amiri Quran", "Scheherazade New", "Noto Naskh Arabic", serif;
  --f-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Noto Naskh Arabic", serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--night);
  color: var(--moon);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  padding-block: 0;
  overflow-x: hidden;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--lamp); color: var(--night); }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; text-wrap: balance; margin: 0; line-height: 1.08; letter-spacing: -0.015em; }
p { margin: 0; }
.wrap { max-width: 1240px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.ur { font-family: var(--f-urdu); direction: rtl; line-height: 2.1; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--night); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; padding-block: 0.7rem; flex-wrap: wrap; }
.mark { font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; text-decoration: none; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 0.6rem; }
.mark small { font-family: var(--f-urdu); font-size: 0.85rem; color: var(--sage); font-weight: 400; }
.top nav { display: flex; gap: 0.25rem 1.4rem; flex-wrap: wrap; margin-left: auto; font-size: 0.95rem; }
.top nav a { text-decoration: none; color: var(--moon-dim); padding: 0.25rem 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.top nav a:hover { color: var(--moon); border-bottom-color: var(--lamp); }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.7rem); font-weight: 600; }
.hero h1 em { font-style: normal; font-weight: inherit; }
.hero .lede { margin-top: 1.4rem; max-width: 34rem; color: var(--moon-dim); font-size: 1.15rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.8rem 1.1rem; margin-top: 2rem; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--lamp); color: var(--night); font-weight: 600; text-decoration: none; padding: 0.85rem 1.4rem; border-radius: 6px; transition: background .2s; }
.btn:hover { background: #ffc875; }
.btn.ghost { background: transparent; color: var(--moon); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--lamp); background: transparent; }
.chain { position: relative; display: flex; flex-direction: column; align-items: center; }
.chain svg { width: 100%; max-width: 440px; height: auto; overflow: visible; display: block; }
.chain .arc { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; }
.chain .dot { fill: var(--night-3); stroke: var(--lamp); stroke-width: 1.5; cursor: pointer; transition: r .25s, fill .25s; }
.chain .dot:hover, .chain .dot:focus-visible, .chain .dot.on { fill: var(--lamp); }
.cap { min-height: 3.4rem; text-align: center; margin-top: 0.2rem; }
.cap .ur { font-size: 1.35rem; line-height: 1.9; color: var(--moon); }
.cap .en { color: var(--moon-dim); font-size: 0.95rem; }
.title-ur { font-size: clamp(2rem, 4.2vw, 3rem); color: var(--sage); margin-top: 0.4rem; text-align: center; line-height: 2; }

/* start path */
.start .wrap { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(1.5rem, 4vw, 4rem); padding-block: clamp(3rem, 6vw, 5rem); }
.start h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.start .sub { color: var(--moon-dim); margin-top: 0.9rem; max-width: 22rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 3.4rem 1fr auto; gap: 1rem; align-items: baseline; padding: 1.35rem 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { font-family: var(--f-display); font-size: 1.7rem; color: var(--moon-dim); }
.steps h3 { font-size: 1.45rem; }
.steps p { color: var(--moon-dim); margin-top: 0.3rem; font-size: 1rem; max-width: 34rem; }
.steps a.go { color: var(--lamp); text-decoration: none; font-weight: 600; white-space: nowrap; }
.steps a.go:hover { text-decoration: underline; }

/* lineage tree */
.tree { background: var(--night-2); border-block: 1px solid var(--line); }
.tree .wrap { padding-block: clamp(3.5rem, 7vw, 6rem); }
.tree .head { max-width: 40rem; margin-inline: auto; text-align: center; }
.tree h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.tree .head p { margin-top: 1rem; color: var(--moon-dim); }
.path { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; position: relative; --p: 0%; }
.path::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line); transform: translateX(-50%); }
.path::after { content: ""; position: absolute; left: 50%; top: 0; height: var(--p); width: 2px; background: var(--lamp); transform: translateX(-50%); }
.link { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding-block: 1.1rem; scroll-margin-top: 6rem; }
.link .body { grid-column: 1; text-align: right; padding-right: 3.2rem; }
.link:nth-child(even) .body { grid-column: 2; text-align: left; padding-right: 0; padding-left: 3.2rem; }
.link:nth-child(even) .ur { direction: rtl; text-align: left; }
.link .ur { font-size: clamp(1.45rem, 2.4vw, 2rem); text-align: right; display: block; color: var(--moon); }
.link .en { color: var(--moon-dim); font-size: 1rem; }
.link::before { content: ""; position: absolute; left: 50%; top: 2.1rem; width: 14px; height: 14px; border-radius: 50%; background: var(--night-3); border: 2px solid var(--line); transform: translateX(-50%); transition: background .4s, border-color .4s; z-index: 1; }
.link.lit::before { background: var(--lamp); border-color: var(--lamp); }
.link.first .ur { font-size: clamp(1.9rem, 3.2vw, 2.7rem); color: var(--lamp); }
.link.first::before { width: 20px; height: 20px; top: 2.3rem; }
.note { max-width: 40rem; margin: 2.5rem auto 0; text-align: center; color: var(--moon-dim); font-size: 0.9rem; }

/* library */
.library .wrap { padding-block: clamp(3.5rem, 7vw, 6rem); }
.library h2, .audio h2, .visit h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.index { margin-top: 2.2rem; }
.row { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 1rem 2rem; padding-block: 1.6rem; border-top: 1px solid var(--line); align-items: baseline; }
.row:last-child { border-bottom: 1px solid var(--line); }
.row h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); display: flex; align-items: baseline; gap: 0.8rem; flex-wrap: wrap; }
.row h3 .ur { font-size: 1.1rem; color: var(--sage); font-weight: 400; font-family: var(--f-urdu); }
.row ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem; }
.row li a { text-decoration: none; background-image: linear-gradient(var(--lamp), var(--lamp)); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; padding-bottom: 2px; transition: background-size .3s cubic-bezier(.2,.8,.2,1), color .2s; }
.row li a:hover { background-size: 100% 1px; color: #fff; }
.row li span { color: var(--moon-dim); font-size: 0.9rem; margin-left: 0.35rem; }

/* audio */
.audio { background: var(--night-2); border-block: 1px solid var(--line); }
.audio .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3.5rem, 7vw, 6rem); align-items: start; }
.audio .sub { color: var(--moon-dim); margin-top: 1rem; max-width: 30rem; }
.years { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.8rem; }
.years button { font: inherit; font-size: 0.95rem; font-variant-numeric: tabular-nums; background: transparent; color: var(--moon-dim); border: 1px solid var(--line); border-radius: 6px; padding: 0.4rem 0.75rem; cursor: pointer; transition: all .2s; }
.years button:hover { color: var(--moon); border-color: var(--moon-dim); }
.years button[aria-pressed="true"] { background: var(--lamp); border-color: var(--lamp); color: var(--night); font-weight: 600; }
.coll { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; color: var(--moon-dim); font-size: 0.98rem; }
.coll a { text-decoration: none; color: var(--moon); border-bottom: 1px solid var(--line); }
.coll a:hover { border-color: var(--lamp); }
.player { background: var(--night-3); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.1rem, 2.4vw, 1.8rem); }
.player .now { display: flex; gap: 1rem; align-items: center; }
.play { flex: none; width: 3.4rem; height: 3.4rem; border-radius: 50%; border: 0; background: var(--lamp); color: var(--night); cursor: pointer; display: grid; place-items: center; transition: transform .2s; }
.play:hover { transform: scale(1.06); }
.play svg { width: 1.2rem; height: 1.2rem; fill: currentColor; }
.player .meta { min-width: 0; }
.player .t { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.2; }
.player .s { color: var(--moon-dim); font-size: 0.9rem; }
.bar { height: 4px; background: var(--line); border-radius: 4px; margin-top: 1.2rem; overflow: hidden; }
.bar i { display: block; height: 100%; width: 12%; background: var(--lamp); border-radius: 4px; }
.tracks { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.tracks li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 0.6rem; padding: 0.7rem 0; border-top: 1px solid var(--line); align-items: baseline; font-size: 0.98rem; cursor: pointer; }
.tracks li:hover { color: #fff; }
.tracks li[aria-current="true"] { color: var(--lamp); }
.tracks .d { color: var(--moon-dim); font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.tracks .i { color: var(--moon-dim); font-variant-numeric: tabular-nums; }
.pv { margin-top: 0.8rem; color: var(--moon-dim); font-size: 0.82rem; }

/* visit */
.visit .wrap { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3.5rem, 7vw, 6rem); }
.visit .sub { color: var(--moon-dim); margin-top: 1rem; max-width: 28rem; }
.app { margin-top: 2rem; display: inline-flex; align-items: center; gap: 0.8rem; border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 1.2rem; text-decoration: none; transition: border-color .2s; }
.app:hover { border-color: var(--lamp); }
.app b { display: block; font-weight: 600; }
.app small { color: var(--moon-dim); }
.app svg { width: 1.8rem; height: 1.8rem; stroke: var(--lamp); fill: none; stroke-width: 1.6; }
.list a { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 1rem; padding: 1.15rem 0; border-top: 1px solid var(--line); text-decoration: none;  }
.list a:last-child { border-bottom: 1px solid var(--line); }
.list b { display: inline-block; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.list a:hover b { transform: translateX(0.4rem); }
.list b { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; }
.list small { display: block; color: var(--moon-dim); font-size: 0.92rem; }
.list .tag { color: var(--lamp); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

footer { border-top: 1px solid var(--line); color: var(--moon-dim); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; padding-block: 2rem; }
footer a { text-decoration: none; }
footer a:hover { color: var(--moon); text-decoration: underline; }

/* search */
.search { position: relative; flex: 0 1 19rem; min-width: 0; }
.search svg.mag { position: absolute; left: 0.8rem; top: 50%; width: 1rem; height: 1rem; transform: translateY(-50%); stroke: var(--moon-dim); fill: none; stroke-width: 1.8; pointer-events: none; }
.search input { width: 100%; font: inherit; font-size: 0.95rem; color: var(--moon); background: var(--night-2); border: 1px solid var(--line); border-radius: 8px; padding: 0.6rem 2.6rem 0.6rem 2.4rem; transition: border-color .2s, background .2s; }
.search input::placeholder { color: var(--moon-dim); }
.search input:hover { border-color: var(--moon-dim); }
.search input:focus { outline: none; border-color: var(--lamp); background: var(--night-3); }
.search kbd { position: absolute; right: 0.7rem; top: 50%; transform: translateY(-50%); font: inherit; font-size: 0.78rem; color: var(--moon-dim); border: 1px solid var(--line); border-radius: 4px; padding: 0 0.4rem; pointer-events: none; }
.results { position: absolute; right: 0; top: calc(100% + 0.5rem); width: min(36rem, calc(100vw - 32px)); background: var(--night-3); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; z-index: 40; }
.results[hidden] { display: none; }
.chips { display: flex; gap: 0.4rem; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; font: inherit; font-size: 0.85rem; background: transparent; color: var(--moon-dim); border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.8rem; cursor: pointer; transition: all .2s; }
.chips button:hover { color: var(--moon); }
.chips button[aria-pressed="true"] { background: var(--lamp); border-color: var(--lamp); color: var(--night); font-weight: 600; }
.hits { list-style: none; margin: 0; padding: 0.35rem; max-height: min(60vh, 26rem); overflow-y: auto; }
.hits a { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 0.8rem; align-items: baseline; padding: 0.65rem 0.7rem; border-radius: 8px; text-decoration: none; }
.hits a:hover, .hits a[aria-selected="true"] { background: var(--night-2); }
.hits .k { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--lamp); }
.hits .tt { font-family: var(--f-display); font-size: 1.1rem; line-height: 1.25; overflow-wrap: anywhere; }
.hits .ss { display: block; font-family: var(--f-body); font-size: 0.85rem; color: var(--moon-dim); }
.hits mark { background: rgba(240,180,90,.25); color: var(--moon); border-radius: 2px; }
.hits .head { padding: 0.5rem 0.7rem 0.2rem; font-size: 0.8rem; color: var(--moon-dim); }
.hits .none { padding: 1.2rem 0.9rem; color: var(--moon-dim); }
.hits .none b { color: var(--moon); font-weight: 600; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 1080px) {
  .top .wrap { gap: 0.8rem 1.2rem; }
  .top nav { gap: 0.25rem 1rem; }
}
@media (max-width: 880px) {
  .top .wrap { padding-block: 0.6rem; }
  .mark { order: 1; }
  .top nav { order: 2; margin-left: auto; }
  .search { order: 3; flex: 1 1 100%; }
  .search kbd { display: none; }
  .results { left: 0; right: 0; width: auto; }
  .hero .wrap, .start .wrap, .audio .wrap, .visit .wrap { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
  .steps li { grid-template-columns: 2.6rem minmax(0, 1fr); }
  .steps a.go { grid-column: 2; }
  .path::before, .path::after { left: 8px; }
  .link { grid-template-columns: 1fr; }
  .link .body, .link:nth-child(even) .body { grid-column: 1; text-align: left; padding-left: 2.4rem; padding-right: 0; }
  .link .ur, .link:nth-child(even) .ur { text-align: left; }
  .link::before { left: 8px; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .mark small { font-size: 0.8rem; }
  .hero .wrap { padding-block: 2rem 2.5rem; }
  .hero .lede { font-size: 1.05rem; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  .chain svg { max-width: 320px; }
  .title-ur { font-size: 1.9rem; }
  .steps li { padding: 1.1rem 0; }
  .row { padding-block: 1.3rem; }
  .hits a { grid-template-columns: minmax(0, 1fr); gap: 0.1rem; }
  .player { padding: 1rem; }
  .tracks li { grid-template-columns: 1.4rem minmax(0, 1fr); }
  .tracks .d { display: none; }
  .list a { grid-template-columns: minmax(0, 1fr) auto; }
  footer .wrap { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* breadcrumbs and shared page bits for internal pages */
.crumbs { display: flex; flex-wrap: wrap; gap: 0.3rem 0.6rem; padding: 1.2rem 0 0; margin: 0; font-size: 0.92rem; color: var(--moon-dim); list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 0.6rem; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--moon); text-decoration: underline; }
.crumbs [aria-current] { color: var(--moon); }
footer .social { display: inline-flex; gap: 1.2rem; }
.years a.yr { font-size: 0.95rem; font-variant-numeric: tabular-nums; color: var(--moon-dim); border: 1px solid var(--line); border-radius: 6px; padding: 0.4rem 0.75rem; text-decoration: none; transition: all .2s; }
.years a.yr:hover { color: var(--night); background: var(--lamp); border-color: var(--lamp); }
.tracks li:focus-visible { outline: 2px solid var(--lamp); outline-offset: -2px; }
.cap .ur { line-height: 2.5; padding-top: 0.4rem; }
.cap { min-height: 5rem; }

/* Nastaliq needs tall line boxes: keep Urdu and English apart */
.link .ur { line-height: 2.7; padding-block: 0.3rem 0.15rem; }
.link .en { display: block; margin-top: 0.15rem; }
.link.first .ur { line-height: 3.2; padding-top: 0.8rem; }
.cap .ur { line-height: 2.9; padding-block: 0.5rem 0.2rem; }
.cap .en { margin-top: 0.2rem; }
.cap { min-height: 6.2rem; }

/* small "رح" after the names of the teachers who have passed */
.ur sup.rh { font-family: var(--f-urdu); font-size: 0.62em; line-height: 0; vertical-align: super; color: var(--lamp); margin-inline-start: 0.55em; padding-inline: 0.1em; font-weight: 400; }

/* honorific after an English name, as on the old site */
.en .hon { font-size: 0.85em; opacity: 0.8; font-style: italic; }

/* the Prophet's name in the headline: same weight and colour as the rest, no ornament */
.hero h1 em { color: inherit; }

/* link under the home player to the full collection */
.player .more { display: flex; justify-content: space-between; align-items: center; margin-top: 0.4rem; padding: 0.9rem 0 0.2rem; border-top: 1px solid var(--line); color: var(--lamp); font-weight: 600; text-decoration: none; min-height: 2.75rem; }
.player .more:hover { text-decoration: underline; }

/* header controls that only exist on phones */
.sbtn { display: none; }
.top nav svg { display: none; }
.top nav .short { display: none; }
.top nav a.only-m { display: none; }

/* phones: slim top bar (name + search), the four sections in a tab bar at the bottom */
@media (max-width: 600px) {
  :root { --tabh: calc(3.7rem + env(safe-area-inset-bottom, 0px)); }
  body { padding-bottom: var(--tabh); }
  .top .wrap { flex-wrap: wrap; gap: 0.5rem; padding-block: 0.5rem; }
  .mark { order: 1; font-size: 1.3rem; }
  .sbtn { order: 2; display: inline-grid; place-items: center; margin-left: auto; width: 2.75rem; height: 2.75rem; background: transparent; color: var(--moon); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
  .sbtn svg { width: 1.15rem; height: 1.15rem; stroke: currentColor; fill: none; stroke-width: 1.8; }
  .top.searching .sbtn { border-color: var(--lamp); color: var(--lamp); }
  .search { order: 3; display: none; flex: 1 1 100%; }
  .top.searching .search { display: block; }
  .search input { font-size: 1rem; min-height: 2.75rem; }
  .top nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; background: var(--night-2); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .top nav a { display: grid; justify-items: center; align-content: center; gap: 0.2rem; min-height: 3.7rem; padding: 0.4rem 0.1rem; border: 0; font-size: 0.74rem; color: var(--moon-dim); }
  .top nav a:hover { border: 0; }
  .top nav a[aria-current="page"] { color: var(--lamp); }
  .top nav svg { display: block; width: 1.3rem; height: 1.3rem; stroke: currentColor; fill: none; stroke-width: 1.6; }
  .top nav a.only-m { display: grid; }
  .top nav a.only-d { display: none; }
  .top nav .full { display: none; }
  .top nav .short { display: inline; }
  footer { padding-bottom: 0.5rem; }
}

/* offline page */
.off { max-width: 36rem; padding-block: clamp(3rem, 10vw, 6rem); }
.off h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
.off p { color: var(--moon-dim); margin-top: 1rem; }
.off .cta .btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.off .cta .btn.ghost { border: 1px solid var(--line); }

/* the verse that opens the home page */
.hero .verse { margin: 0; text-align: center; }
.hero h1[lang="ar"] { font-family: var(--f-quran); font-weight: 400; direction: rtl; font-size: clamp(2rem, 4.3vw, 3.5rem); line-height: 2.2; letter-spacing: 0; text-wrap: balance; color: var(--moon); }
.hero .verse-en { margin: 1rem auto 0; max-width: 31rem; color: var(--moon-dim); font-size: 1.1rem; }
.hero .verse-ref { margin-top: 0.7rem; color: var(--lamp); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.hero .verse + .lede { margin-top: 2rem; }

/* how to add the site to the home screen on iPhone and iPad */
.ios-help { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(var(--tabh, 0px) + 0.8rem); z-index: 70; max-width: 26rem; margin-inline: auto; background: var(--night-3); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; }
.ios-help > b { font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; }
.ios-help ol { margin: 0.7rem 0 1rem; padding-left: 1.2rem; color: var(--moon-dim); display: grid; gap: 0.4rem; }
.ios-help ol b { color: var(--moon); font-weight: 600; }
.ios-help .shr { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--moon); font-weight: 600; }
.ios-help .shr svg { width: 1.1rem; height: 1.1rem; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ios-help .btn { min-height: 2.75rem; font: inherit; font-weight: 600; cursor: pointer; }

.ios-help p { margin: -0.4rem 0 1rem; color: var(--moon-dim); font-size: 0.92rem; }
.ios-help p b { color: var(--moon); font-weight: 600; }
