/* Peta Al-Qur'an — a night sky of 6,236 ayat. Desktop: lesson column left, sticky stage right.
   Phones: the stage sticks to the top half, the lesson scrolls under it. */
/* Two themes: night (default) and paper. Every colour on the page and on the canvas is a token here;
   js reads the --c-*, --d-* and --dot tokens to paint the dots. */
:root {
  --bg: #070B16; --bg2: #0C1324; --ink: #E9EDF5; --mid: #AEB8CB; --muted: #77839A;
  --line: rgba(255,255,255,.09); --gold: #E3C16F; --card: rgba(16,23,42,.86);
  --surface: #0B1222; --surface2: #10172A; --glow: #0F1A33;
  --fg-rgb: 255,255,255; --gold-rgb: 227,193,111; --shadow-rgb: 0,0,0; --shadow-a: 1;
  --p0: #6FA8DC; --p1: #A58BF2; --p2: #E8A54B; --p3: #4FBF94;
  --strip: rgba(232,165,75,.55); --road: rgba(185,166,240,.28); --road-up: rgba(232,201,106,.45); --road-down: rgba(224,99,79,.45); --road-side: rgba(201,139,122,.35);
  /* dots: themes of the message map */
  --dot: #EFE6CC;
  --c-allah: #6FA8DC; --c-doa: #A9CBF2; --c-akhirat: #A58BF2; --c-wahyu: #F0C25A; --c-kisah: #E2914A; --c-ingkar: #C9694E;
  --c-munafik: #B8566C; --c-ahlulkitab: #D8B27E; --c-amal: #4FBF94; --c-akhlak: #93D9AE; --c-hukum: #3AA6A6; --c-umat: #7FC6D0; --c-manusia: #B6D86C;
  /* dots: the deep dives */
  --d-tanda-langit: #8FA8F0; --d-tanda-waktu: #C7B8F5; --d-tanda-hujan: #7FC6E8; --d-tanda-bumi: #7CC48A; --d-tanda-laut: #4F9BD9;
  --d-tanda-hewan: #E2A55A; --d-tanda-manusia: #E7899A; --d-alam-umum: #B9C3D6;
  --d-st-dunia: #9FB4CC; --d-st-mati: #A99BD6; --d-st-kiamat: #B58BF0; --d-st-bangkit: #9C8CF2; --d-st-mahsyar: #8E7DE0; --d-st-catatan: #7C8FE8;
  --d-st-hisab: #6F9FE0; --d-st-surga: #E8C96A; --d-st-neraka: #E0634F; --d-st-dialog: #C98B7A;
  --d-ty-perintah: #4FBF94; --d-ty-larangan: #E0705F; --d-ty-aturan: #5AB0D6; --d-ty-janji: #E3C16F; --d-ty-gambaran: #8E9AB3; --d-name: #E3C16F;
  --f-ui: 'Inter', system-ui, -apple-system, sans-serif;
  --f-head: 'Newsreader', Georgia, serif;
  --f-ar: 'Amiri Quran', 'Amiri', serif;
  --col: 440px;
  color-scheme: dark;
}
/* paper: a quiet page, ink-dark dots, an antique gold */
:root[data-theme="light"] {
  --bg: #F2F0EA; --bg2: #FFFFFF; --ink: #161D2C; --mid: #435069; --muted: #7A8397;
  --line: rgba(22,29,44,.12); --gold: #94701F; --card: rgba(255,255,255,.95);
  --surface: #FBFAF7; --surface2: #FFFFFF; --glow: #FBFAF6;
  --fg-rgb: 22,29,44; --gold-rgb: 148,112,31; --shadow-rgb: 40,46,64; --shadow-a: .32;
  --p0: #2C6AA3; --p1: #6A4EC4; --p2: #B5641A; --p3: #23875C;
  --strip: rgba(181,100,26,.7); --road: rgba(106,78,196,.35); --road-up: rgba(148,112,31,.6); --road-down: rgba(190,66,46,.55); --road-side: rgba(150,92,74,.45);
  --dot: #2B3550;
  --c-allah: #2C6AA3; --c-doa: #5C8FC8; --c-akhirat: #6A4EC4; --c-wahyu: #B5860E; --c-kisah: #C0601B; --c-ingkar: #A8432B;
  --c-munafik: #98304C; --c-ahlulkitab: #9A7240; --c-amal: #23875C; --c-akhlak: #3E9E68; --c-hukum: #1C7C7C; --c-umat: #3A8C9E; --c-manusia: #6E8F1F;
  --d-tanda-langit: #4762C4; --d-tanda-waktu: #7A5FC4; --d-tanda-hujan: #2889BA; --d-tanda-bumi: #3A9550; --d-tanda-laut: #1F6AAA;
  --d-tanda-hewan: #BD7C22; --d-tanda-manusia: #BF4C68; --d-alam-umum: #6A768C;
  --d-st-dunia: #5C7592; --d-st-mati: #7864B4; --d-st-kiamat: #8650D0; --d-st-bangkit: #6B58D2; --d-st-mahsyar: #5B4DBE; --d-st-catatan: #4A60C4;
  --d-st-hisab: #3B74BC; --d-st-surga: #A9810F; --d-st-neraka: #BE422E; --d-st-dialog: #A3604F;
  --d-ty-perintah: #23875C; --d-ty-larangan: #C2463A; --d-ty-aturan: #2A80AE; --d-ty-janji: #A9810F; --d-ty-gambaran: #6A768C; --d-name: #A07A1A;
  color-scheme: light;
}
:root[data-theme="light"] .drawer, :root[data-theme="light"] .pmenu, :root[data-theme="light"] .pinchip { border-color: rgba(22,29,44,.14); }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; background: radial-gradient(1200px 900px at 72% 40%, var(--glow) 0%, var(--bg) 60%) fixed var(--bg); color: var(--ink); font: 15.5px/1.65 var(--f-ui); -webkit-font-smoothing: antialiased; }
a { color: var(--gold); }
b { font-weight: 600; }

.brand { position: fixed; top: 18px; left: 24px; z-index: 30; font: 600 12px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.brand:hover { color: var(--ink); }

/* ── stage ── */
.stage { position: fixed; top: 0; right: 0; bottom: 0; left: var(--col); }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.labels { position: absolute; inset: 0; pointer-events: none; transition: opacity .5s; }
.labels.out { opacity: 0; transition: opacity .25s; }
.lbl { position: absolute; font-size: 12px; line-height: 1.35; color: var(--mid); }
.lbl.pillar { display: grid; gap: 2px; }
.lbl.pillar b { font: 500 20px/1.15 var(--f-head); }
.lbl.pillar span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.lbl.pillar em { font-style: normal; font-size: 12px; color: var(--ink); font-variant-numeric: tabular-nums; }
.lbl.area { font-size: 11px; color: var(--mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.lbl.area i { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.lbl.area small { color: var(--muted); font-size: 10.5px; }
.lbl.lane { display: grid; gap: 1px; text-align: right; }
.lbl.lane b { font: 500 16px/1.2 var(--f-head); }
.lbl.lane span { font-size: 11px; color: var(--muted); }
.lbl.surahname { font-size: 11px; color: var(--muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbl.surahname.on { color: var(--gold); font-weight: 600; }
.lbl.tick { font-size: 10.5px; color: var(--muted); transform: translateX(-50%); white-space: nowrap; }
.lbl.divider { width: 0; border-left: 1px dashed rgba(var(--gold-rgb),.5); }
.lbl.era { text-align: center; font-size: 12px; color: var(--gold); }
.lbl.cluster { display: grid; gap: 2px; text-align: center; pointer-events: auto; cursor: default; }
.lbl.cluster span { font: 500 13.5px/1.25 var(--f-head); color: var(--ink); text-wrap: balance; }
.lbl.cluster small { font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lbl.episode { font-size: 12px; line-height: 16px; color: var(--mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; pointer-events: auto; cursor: default; }
.lbl.episode:hover, .lbl.cluster:hover span { color: var(--gold); }
.lbl.rowline { height: 0; border-top: 1px solid rgba(var(--fg-rgb),.04); }
.lbl.colhead { height: 56px; display: flex; align-items: flex-end; justify-content: center; }
.lbl.colhead span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 10.5px; color: var(--muted); white-space: nowrap; max-height: 56px; overflow: hidden; }

.tip { position: absolute; z-index: 5; max-width: 320px; pointer-events: none; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 12.5px; line-height: 1.45; color: var(--mid); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 10px 30px rgba(var(--shadow-rgb),calc(.35 * var(--shadow-a))); }
.tip b { color: var(--ink); display: block; font-size: 12px; margin-bottom: 3px; }
.tip i { font-style: normal; color: var(--muted); font-size: 11px; display: block; margin-top: 4px; }

.ex { margin-top: 8px; font-size: 13.5px; line-height: 1.6; color: var(--mid); }
.ex summary { cursor: pointer; font-size: 12px; font-weight: 600; color: var(--gold); }
.ex p { margin: 6px 0 0; }
.ex .ex-rep, .now-ex .ex-rep { color: var(--ink); font-style: italic; }
.ex ul { margin: 8px 0 0; padding-left: 16px; display: grid; gap: 4px; }
.ex li b { color: var(--ink); font-weight: 600; }
.ex small { display: block; margin-top: 8px; font-size: 11px; color: var(--muted); }
.now-ex p { margin: 4px 0 0 !important; font-size: 13.5px !important; line-height: 1.6; }
.legend button.asb i { background: var(--gold); border-radius: 50%; }

/* ── chapter rail ── */
.rail { position: fixed; z-index: 20; left: 14px; top: 50%; transform: translateY(-50%); display: grid; gap: 2px; }
.rail a { display: flex; align-items: center; gap: 10px; height: 18px; text-decoration: none; color: var(--muted); }
.rail a.gap { margin-top: 12px; }
.rail i { width: 6px; height: 6px; border-radius: 50%; background: rgba(var(--fg-rgb),.22); transition: transform .2s, background .2s; flex: none; }
.rail a.on i { background: var(--gold); transform: scale(1.5); }
.rail a:hover i { background: var(--ink); }
.rail span { font-size: 11.5px; white-space: nowrap; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; pointer-events: none;
  background: var(--surface2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; color: var(--ink); box-shadow: 0 4px 14px rgba(var(--shadow-rgb),calc(.4 * var(--shadow-a))); }
.rail:hover span { opacity: .8; transform: none; }
.rail a:hover span, .rail a.on span { opacity: 1; transform: none; }
.rail:not(:hover) a.on span { opacity: 0; }

/* ── a pinned message ── */
.pinchip { position: absolute; z-index: 6; top: 18px; left: 50%; transform: translateX(-50%); max-width: min(620px, 92%); display: flex; align-items: center; gap: 10px;
  background: var(--surface2); border: 1px solid rgba(var(--gold-rgb),.45); border-radius: 12px; padding: 8px 8px 8px 14px; box-shadow: 0 10px 30px rgba(var(--shadow-rgb),calc(.4 * var(--shadow-a))); }
.pinchip span { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.pinchip b { font-weight: 500; font-size: 13px; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pinchip button { flex: none; font: 500 12px var(--f-ui); color: var(--mid); background: rgba(var(--fg-rgb),.05); border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; cursor: pointer; }
.pinchip button:hover { color: var(--ink); }
#pinOff { font-size: 16px; line-height: 1; padding: 3px 9px; }

/* ── lesson column ── */
.lesson { position: relative; z-index: 2; width: var(--col); padding: 0 34px 0 40px; }
.step { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-block: 14vh; opacity: .28; transition: opacity .5s; }
.step.active { opacity: 1; }
.step.tall { min-height: 170vh; display: block; padding: 0; }
.step.tall > .pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; gap: 12px; padding-block: 8vh 5vh; box-sizing: border-box; }
.pin > * { flex: none; }
.pin > .dd-list, .pin > .storylist { flex: 0 0 auto; max-height: 36%; min-height: 0; }
.pin > .surah-msgs, .pin > .results { flex: 0 1 auto; min-height: 60px; max-height: none; }
.pin > .dd-now, .pin > .ep-now { flex: 1 1 0; min-height: 110px; max-height: none; overflow-y: auto; }
.pin h2 { font-size: clamp(22px, 2.1vw, 28px); }
.pin > p:not(.kicker) { font-size: 14.5px; }
.step.intro { min-height: 100vh; }
.kicker { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
h1, h2 { margin: 0; font-family: var(--f-head); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(40px, 4.6vw, 58px); line-height: 1.04; letter-spacing: -.015em; }
h2 { font-size: clamp(26px, 2.5vw, 32px); line-height: 1.15; }
.step p { margin: 0; color: var(--mid); }
.step p b { color: var(--ink); }
.hint { font-size: 13px; color: var(--muted) !important; }
.note { font-size: 12.5px; color: var(--muted) !important; }
.p0 { color: var(--p0) !important; } .p1 { color: var(--p1) !important; } .p2 { color: var(--p2) !important; } .p3 { color: var(--p3) !important; }
.four { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.four li { color: var(--mid); font-size: 14.5px; line-height: 1.5; }
.four li b { display: block; font: 500 18px/1.3 var(--f-head); }
.four em { font-style: normal; color: var(--ink); font-variant-numeric: tabular-nums; font-size: 13px; }
blockquote { position: relative; margin: 4px 0 0; padding: 16px 18px 14px 44px; border-radius: 14px; background: rgba(var(--gold-rgb),.07); color: var(--mid); font: italic 16px/1.55 var(--f-head); }
blockquote::before { content: '\201C'; position: absolute; left: 14px; top: 4px; font: 400 44px/1 var(--f-head); color: var(--gold); opacity: .8; }
blockquote cite { display: block; margin-top: 6px; font: normal 12px var(--f-ui); color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button, .legend button { font: 500 12.5px var(--f-ui); color: var(--mid); background: rgba(var(--fg-rgb),.04); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chips button:hover, .legend button:hover { color: var(--ink); border-color: rgba(var(--fg-rgb),.2); }
.chips button[aria-pressed="true"], .legend button[aria-pressed="true"] { color: var(--bg); background: var(--gold); border-color: var(--gold); }
.legend { display: flex; flex-wrap: wrap; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.legend button[aria-pressed="true"] i { outline: 1px solid var(--bg); }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.field { display: grid; gap: 5px; }
.field span { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field select, .field input { font: 15px var(--f-ui); color: var(--ink); background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.surah-msgs, .results { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 46vh; overflow: auto; }
.surah-msgs li, .results li { position: relative; padding: 9px 10px 9px 26px; border-radius: 8px; cursor: pointer; font-size: 13.5px; line-height: 1.45; color: var(--mid); }
.surah-msgs li:hover, .results li:hover { background: rgba(var(--fg-rgb),.05); color: var(--ink); }
.surah-msgs li small, .results li small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.surah-msgs li small b { color: var(--gold); font-weight: 600; }
.results .count { font-size: 12px; color: var(--muted); padding: 4px 2px; cursor: default; border: 0; }
.step.tall > .closing { position: relative; padding-bottom: 12vh; }
.closing { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.closing p { font-size: 13px; color: var(--muted) !important; }

/* lesson 5: the message being pointed at, in full */
.now { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: rgba(var(--fg-rgb),.025); display: grid; gap: 6px; min-height: 132px; align-content: start; }
.now b { font: 500 20px/1.25 var(--f-head); color: var(--ink); }
.step .now p { color: var(--mid); font-size: 14.5px; line-height: 1.55; }
.now small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* lesson 6: the episode being pointed at */
.ep-now { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 5px; min-height: 64px; align-content: start; transition: border-color .2s; }
.ep-now.on { border-color: rgba(var(--gold-rgb),.35); background: rgba(var(--gold-rgb),.04); }
.ep-now b { font: 500 18px/1.25 var(--f-head); color: var(--ink); }
.step .ep-now p { font-size: 14px; color: var(--mid); line-height: 1.5; }
.step .ep-now:not(.on) p { color: var(--muted); font-size: 13px; }
.ep-now small { font-size: 11.5px; color: var(--muted); }
/* lesson 6: every story, to pick from */
.story-now { display: grid; gap: 4px; padding: 2px 0 4px; }
.story-now b { font: 500 22px/1.2 var(--f-head); color: var(--ink); }
.story-now span { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.step .story-now p { font-size: 14px; color: var(--mid); }
.storylist { max-height: 40vh; overflow-y: auto; margin-right: -12px; padding-right: 12px; display: grid; gap: 18px;
  mask-image: linear-gradient(#000 88%, transparent); -webkit-mask-image: linear-gradient(#000 88%, transparent); padding-bottom: 28px; scrollbar-width: thin; scrollbar-color: rgba(var(--fg-rgb),.15) transparent; }
.sg { display: grid; gap: 2px; }
.sg-h { margin: 0 0 6px !important; font-size: 11px !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted) !important; }
.st { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: 2px 12px; width: 100%; text-align: left; font: inherit; color: var(--mid);
  background: transparent; border: 0; border-radius: 10px; padding: 9px 12px 10px 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.st:hover { background: rgba(var(--fg-rgb),.04); color: var(--ink); }
.st[aria-pressed="true"] { background: rgba(var(--gold-rgb),.1); color: var(--ink); }
.st-name { font: 400 17px/1.3 var(--f-head); }
.st-meta { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-strip { grid-column: 1 / -1; width: 100%; height: 8px; margin-top: 6px; display: block; }
.st-strip rect { fill: var(--strip); }
.st-strip rect.st-base { fill: rgba(var(--fg-rgb),.08); }
.st:hover .st-strip rect:not(.st-base), .st[aria-pressed="true"] .st-strip rect:not(.st-base) { fill: var(--gold); }

/* ── deep dives ── */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px; gap: 2px; background: rgba(var(--fg-rgb),.02); }
.seg button { font: 500 12.5px var(--f-ui); color: var(--mid); background: none; border: 0; border-radius: 99px; padding: 6px 13px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--gold); color: var(--bg); }
.dd-list { display: grid; gap: 1px; max-height: 34vh; overflow-y: auto; padding-right: 8px; margin-right: -8px; scrollbar-width: thin; scrollbar-color: rgba(var(--fg-rgb),.15) transparent; }
.dd-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 2px 10px; text-align: left; font: inherit; color: var(--mid); background: transparent; border: 0; border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.dd-row > span:first-child { grid-column: 1 / 3; }
.dd-row > i { width: 9px; height: 9px; border-radius: 2px; }
.dd-row > i + span { grid-column: 2; }
.dd-row span { font: 400 15.5px/1.3 var(--f-head); }
.dd-row span i { font-style: normal; font-family: var(--f-ar); color: var(--gold); font-size: 15px; margin-left: 4px; }
.dd-row small { font-size: 11.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dd-row:hover { background: rgba(var(--fg-rgb),.04); color: var(--ink); }
.dd-row.on { background: rgba(var(--gold-rgb),.09); color: var(--ink); }
.dd-row .tbar { grid-column: 1 / -1; display: flex; height: 4px; border-radius: 2px; overflow: hidden; margin-top: 4px; background: rgba(var(--fg-rgb),.05); }
.dd-row .tbar i { display: block; height: 100%; }
.dd-row.stop em { font-style: normal; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--bg); background: var(--c); }
.dd-row.stop em + span { grid-column: 2; }
.dd-group { margin: 10px 0 2px !important; font-size: 11px !important; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted) !important; }
.dd-group:first-child { margin-top: 0 !important; }
.dd-now { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; max-height: 38vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(var(--fg-rgb),.15) transparent; }
.dd-title { font: 500 19px/1.25 var(--f-head); color: var(--ink); }
.dd-title .ar { font-style: normal; font-family: var(--f-ar); color: var(--gold); margin-left: 6px; }
.dd-sub { font-size: 11.5px; color: var(--muted); margin-top: -4px; }
.step .dd-now p { font-size: 14px; }
.step .dd-hint { font-size: 13px; color: var(--muted) !important; }
.dd-type { margin: 6px 0 0 !important; font-size: 11px !important; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--t) !important; }
.dd-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.dd-msgs li { position: relative; padding: 7px 9px 7px 25px; border-radius: 8px; cursor: pointer; font-size: 13.5px; line-height: 1.45; color: var(--mid); }
.dd-msgs li:hover { background: rgba(var(--fg-rgb),.05); color: var(--ink); }
.dd-msgs li small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.dd-open { justify-self: start; font: 500 12.5px var(--f-ui); color: var(--gold); background: none; border: 1px solid rgba(var(--gold-rgb),.35); border-radius: 99px; padding: 5px 12px; cursor: pointer; }
.types { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--mid); }
.types span { display: inline-flex; align-items: center; gap: 6px; }
.types i { width: 9px; height: 9px; border-radius: 2px; }
/* labels on the stage */
.lbl.band { display: grid; text-align: right; pointer-events: auto; cursor: pointer; }
.lbl.band b { font: 400 15px/1.2 var(--f-head); color: var(--ink); }
.lbl.band small { font-size: 11px; color: var(--muted); }
.lbl.band:hover b, .lbl.station:hover b, .lbl.name:hover span { color: var(--gold); }
.lbl.name { display: grid; pointer-events: auto; cursor: pointer; white-space: nowrap; transform: translate(0, -50%); }
.lbl.name.r { transform: translate(-100%, -50%); text-align: right; }
.lbl.name.c { transform: translate(-50%, -50%); text-align: center; }
.lbl.name span { font: 400 13.5px/1.2 var(--f-head); color: var(--ink); }
.lbl.name i { font-style: normal; font-family: var(--f-ar); font-size: 13px; color: var(--gold); line-height: 1.05; }
.lbl.name small { font-size: 10.5px; color: var(--muted); }
.lbl.allah { transform: translate(-50%, -50%); display: grid; text-align: center; }
.lbl.allah b { font: 64px/1.1 var(--f-ar); color: var(--gold); font-weight: 400; }
.lbl.allah small { font-size: 11px; color: var(--muted); margin-top: 10px; }
.lbl.road svg { position: absolute; left: 0; top: 0; overflow: visible; }
.lbl.road path { fill: none; stroke: var(--road); stroke-width: 1.5; stroke-dasharray: 3 5; }
.lbl.road path.up { stroke: var(--road-up); } .lbl.road path.down { stroke: var(--road-down); } .lbl.road path.side { stroke: var(--road-side); }
.lbl.station { text-align: center; display: grid; gap: 1px; pointer-events: auto; cursor: pointer; }
.lbl.station b { font: 400 14.5px/1.2 var(--f-head); color: var(--ink); }
.lbl.station b em { font: 600 10px var(--f-ui); color: var(--muted); margin-right: 5px; font-style: normal; }
.lbl.station.end b { font-size: 20px; }
.lbl.station small { font-size: 10.5px; color: var(--muted); }
.lbl.ring { text-align: center; font: 400 13px var(--f-head); color: var(--mid); }
.lbl.ring.core { color: var(--gold); font: 400 16px/1.1 var(--f-head); }
.lbl.ring.core small { font: 10.5px var(--f-ui); color: var(--muted); }
.lbl.ring { text-shadow: 0 0 6px var(--bg); }
.lbl.cluster { pointer-events: auto; }

/* ── the ayah: a floating window in the middle, ~75% of the screen, two columns ── */
.scrim { position: fixed; inset: 0; z-index: 39; background: rgba(var(--shadow-rgb), calc(.42 * var(--shadow-a) + .1)); animation: fadeIn .3s ease; }
:root[data-theme="light"] .scrim { background: rgba(242,240,234,.55); }
.drawer { position: fixed; z-index: 40; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(1180px, 78vw); height: min(860px, 84vh); display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 30px 90px rgba(var(--shadow-rgb),calc(.55 * var(--shadow-a))), 0 6px 20px rgba(var(--shadow-rgb),calc(.25 * var(--shadow-a)));
  animation: popIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes popIn { from { opacity: 0; transform: translate(-50%, -48%) scale(.97); } }
@keyframes fadeIn { from { opacity: 0; } }
.drawer .close { position: absolute; z-index: 3; top: 16px; right: 18px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg2); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
#drawerBody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.dr-head { flex: none; padding: 18px 70px 12px; border-bottom: 1px solid var(--line); }
.dr-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
.dr-col { overflow-y: auto; padding: 24px 34px 40px; scrollbar-width: thin; scrollbar-color: rgba(var(--fg-rgb),.15) transparent; }
.dr-side { border-left: 1px solid var(--line); background: rgba(var(--fg-rgb),.015); }
.dr-main .dr-ar { font-size: 34px; line-height: 2.1; }
.dr-main .dr-tr { font-size: 16px; line-height: 1.7; }
.dr-side .tf { font-size: 15px; line-height: 1.7; }
.dr-side .tf-full { max-height: none; overflow: visible; font-size: 15px; }
.dr-top { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 0 0 2px; }
.dr-ref { font: 500 26px/1.2 var(--f-head); margin: 0; text-align: center; }
.dr-step { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--mid); font-size: 18px; line-height: 1; cursor: pointer; }
.dr-step:hover:not(:disabled) { color: var(--ink); border-color: rgba(var(--fg-rgb),.25); }
.dr-step:disabled { opacity: .3; cursor: default; }
.dr-meta { text-align: center; }
.dr-go { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 22px; }
.dr-go a { display: grid; text-decoration: none; color: var(--ink); font-size: 13.5px; font-weight: 500; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: rgba(var(--fg-rgb),.03); }
.dr-go a:hover { border-color: rgba(var(--gold-rgb),.45); }
.dr-go a small { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.dr-taf { display: grid; gap: 10px; margin-bottom: 24px; }
.dr-taf:empty { display: none; }
.tf { font-size: 14px; color: var(--mid); line-height: 1.6; }
.tf > b, .tf summary { display: block; font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 2px; cursor: default; }
.tf summary { cursor: pointer; color: var(--gold); }
.tf p { margin: 0 0 6px; }
.tf.ctx { background: rgba(var(--gold-rgb),.07); border-radius: 12px; padding: 12px 14px; }
.tf-src { font-size: 11.5px; color: var(--muted); margin: 0; }
.tf-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tf-tabs button { font: 500 12px var(--f-ui); color: var(--mid); background: rgba(var(--fg-rgb),.04); border: 1px solid var(--line); border-radius: 99px; padding: 5px 11px; cursor: pointer; }
.tf-tabs button[aria-selected="true"] { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.tf-full { font-size: 14px; line-height: 1.7; color: var(--mid); margin-top: 10px; max-height: 50vh; overflow-y: auto; padding-right: 6px; }
.tf-full p { margin: 0 0 10px; }
.dr-meta { font-size: 12px; color: var(--muted); margin: 0; }
.dr-ar { font: 28px/2.05 var(--f-ar); direction: rtl; text-align: right; color: var(--ink); margin: 0 0 14px; min-height: 2em; }
.dr-ar.wait { color: var(--muted); font: 13px var(--f-ui); text-align: left; direction: ltr; }
.dr-tr { color: var(--mid); margin: 0 0 22px; font-size: 15px; }
.dr-h { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }
.dm { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: rgba(var(--fg-rgb),.02); }
.dm p { margin: 0 0 6px; color: var(--ink); font-size: 14.5px; line-height: 1.5; }
.dm .dm-meta { font-size: 11.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.dm button { font: 500 12px var(--f-ui); color: var(--gold); background: none; border: 0; padding: 0; cursor: pointer; }
.dm button[data-more] { margin-left: auto; }
.dm button[data-pin], .dm button.rep { color: var(--mid); }
.dm button.rep { color: var(--muted); }
.dm-report { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); }
.dm-report[hidden] { display: none; }
.dm .dm-report button { color: var(--ink); border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; }
.dm button[data-pin]:hover { color: var(--gold); }
.dm-list { margin-top: 10px; display: grid; gap: 10px; }
.dm-list h5 { margin: 6px 0 0; font-size: 12px; font-weight: 600; color: var(--c); }
.dm-list p { font-size: 13.5px; color: var(--mid); margin: 0; cursor: pointer; }
.dm-list p:hover { color: var(--ink); }
.dm-list sup { font-size: 10px; color: var(--muted); margin-right: 4px; }

/* ── phones and narrow windows: stage on top, lesson below ── */
@media (max-width: 900px) {
  .stage { left: 0; bottom: auto; height: 52vh; height: 52svh; background: var(--bg); z-index: 3; border-bottom: 1px solid var(--line); }
  .lesson { width: auto; padding: 52vh 18px 30vh; z-index: 1; }
  .step { min-height: 60vh; padding-block: 5vh; opacity: .35; justify-content: flex-start; }
  .step.intro { min-height: 60vh; }
  .step.tall { min-height: 100vh; padding-top: 6vh; }
  .step.tall > .pin { position: static; height: auto; padding-block: 0; }
  .rail { display: none; }
  .step > * { position: relative; }
  .brand { top: 12px; left: 16px; }
  .lbl.pillar b { font-size: 15px; } .lbl.pillar span { display: none; }
  .lbl.area { display: none; }
  .lbl.lane span { display: none; } .lbl.lane b { font-size: 13px; }
  .lbl.cluster span { -webkit-line-clamp: 2; font-size: 10.5px; }
  .lbl.episode { display: none; }
}
@media (prefers-reduced-motion: reduce) { .step, .labels { transition: none; } .drawer, .scrim { animation: none; } }

/* ── phones: the dots on top, the lesson in a sheet, one lesson at a time ── */
html.phone body { overflow: hidden; height: 100%; }
html.phone .brand, html.phone .rail { display: none; }
html.phone #cv { touch-action: manipulation; }
html.phone .stage { position: fixed; inset: 0; height: auto; left: 0; border: 0; background: transparent; z-index: 1; }
.pbar { position: fixed; z-index: 30; top: 0; left: 0; right: 0; padding: calc(env(safe-area-inset-top, 0px) + 8px) 8px 8px; display: flex; align-items: center; gap: 6px;
  background: linear-gradient(var(--bg) 60%, transparent); }
.pbar[hidden] { display: none; }
.pbar > button:not(.ptitle) { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(var(--fg-rgb),.04); color: var(--ink); font-size: 22px; line-height: 1; }
.pbar > button:disabled { opacity: .25; }
.ptitle { flex: 1; min-width: 0; display: grid; justify-items: center; background: none; border: 0; color: var(--ink); font: inherit; padding: 2px 4px; }
.ptitle small { font-size: 10.5px; letter-spacing: .1em; color: var(--gold); font-variant-numeric: tabular-nums; }
.ptitle span { font: 400 16px/1.2 var(--f-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.pmenu { position: fixed; z-index: 31; top: calc(env(safe-area-inset-top, 0px) + 58px); left: 12px; right: 12px; max-height: 70vh; overflow-y: auto; display: grid;
  background: var(--surface2); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 20px 50px rgba(var(--shadow-rgb),calc(.5 * var(--shadow-a))); }
.pmenu button { text-align: left; font: 400 15px/1.3 var(--f-head); color: var(--ink); background: none; border: 0; border-radius: 8px; padding: 10px 12px; }
.pmenu button:active { background: rgba(var(--fg-rgb),.06); }
html.phone .lesson { position: fixed; z-index: 10; left: 0; right: 0; bottom: 0; width: auto; height: 40vh; height: 40svh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 0 18px calc(env(safe-area-inset-bottom, 0px) + 28px); background: var(--surface); border-top: 1px solid var(--line); border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 40px rgba(var(--shadow-rgb),calc(.45 * var(--shadow-a))); transition: height .3s cubic-bezier(.2,.8,.2,1); overscroll-behavior: contain; }
html.phone .lesson.open { height: 84vh; height: 84svh; }
.grab { display: block; position: sticky; top: 0; z-index: 2; width: 100%; height: 22px; margin: 0 0 4px; border: 0; padding: 0; background: var(--surface); }
.grab::after { content: ''; display: block; width: 42px; height: 4px; border-radius: 2px; background: rgba(var(--fg-rgb),.25); margin: 9px auto; }
html.phone .step { display: none; min-height: 0; padding: 4px 0 0; opacity: 1; gap: 12px; background: none; }
html.phone .step.active { display: flex; }
html.phone .step.tall { min-height: 0; }
html.phone .step.intro { min-height: 0; }
html.phone h1 { font-size: 34px; }
html.phone h2 { font-size: 23px; }
html.phone .step p { font-size: 15px; }
html.phone .dd-list, html.phone .storylist { max-height: none; overflow: visible; mask-image: none; -webkit-mask-image: none; margin-right: 0; padding-right: 0; }
html.phone .dd-now { max-height: none; overflow: visible; }
html.phone .surah-msgs, html.phone .results { max-height: none; }
html.phone .hint { display: none; }
.pnext { display: none; }
html.phone .pnext { display: block; margin: 10px 0 0; width: 100%; text-align: left; font: 500 14px var(--f-ui); color: var(--bg); background: var(--gold); border: 0; border-radius: 12px; padding: 13px 16px; }
html.phone .tip { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 62px); left: 12px; right: 12px; max-width: none; transform: none !important; pointer-events: auto; z-index: 12; font-size: 13.5px; }
html.phone .tip i { color: var(--gold); }
html.phone .pinchip { top: auto; bottom: calc(40vh + 10px); max-width: calc(100% - 24px); }
html.phone .pinchip span { display: none; }
html.phone .drawer { left: 0; top: 0; transform: none; width: 100%; height: 100%; border-radius: 0; border: 0; z-index: 50; display: block; overflow-y: auto; overflow-x: hidden; animation: slideUp .3s cubic-bezier(.2,.8,.2,1); }
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } }
html.phone #drawerBody { display: block; }
html.phone .dr-head { padding: calc(env(safe-area-inset-top, 0px) + 16px) 56px 10px 18px; }
html.phone .drawer .close { top: calc(env(safe-area-inset-top, 0px) + 12px); right: 12px; }
html.phone .dr-cols { display: block; }
html.phone .dr-col { overflow: visible; padding: 18px 18px 8px; }
html.phone .dr-side { border-left: 0; border-top: 1px solid var(--line); padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 40px); }
html.phone .dr-main .dr-ar { font-size: 28px; }
html.phone .dr-ref { font-size: 21px; }
html.phone .scrim { display: none; }
html.phone .labels .lbl.area, html.phone .labels .lbl.episode { display: none; }
html.phone .lbl.pillar b { font-size: 14px; } html.phone .lbl.pillar span { display: none; }
html.phone .lbl.cluster span { font-size: 11px; }
html.phone .lbl.station b { font-size: 12px; } html.phone .lbl.station.end b { font-size: 15px; }
html.phone .lbl.name span { font-size: 11px; } html.phone .lbl.name i { font-size: 11px; }
html.phone .lbl.allah b { font-size: 42px; }
html.phone .lbl.band b { font-size: 12px; }
html.phone .loading { padding-bottom: 40vh; }

.lbl.lane.v { text-align: center; }
.lbl.lane.v b { font: 500 11.5px/1.15 var(--f-head); }
.lbl.hdivider { height: 0; border-top: 1px dashed rgba(var(--gold-rgb),.55); }
.lbl.vera { font-size: 9.5px; color: var(--gold); text-align: right; }
.lbl.station.side { text-align: left; }
.lbl.station.side.r { text-align: right; }
.lbl.surahname { font-variant-numeric: tabular-nums; }
.lbl.band.top { display: block; text-align: left; white-space: nowrap; }
.lbl.band.top b { font-size: 12px; }
html.phone .lbl.station.side small { display: none; }
html.phone .lbl.station.side b { font-size: 11.5px; }

/* ── the theme switch ── */
.themebtn { position: fixed; z-index: 30; top: 14px; right: 18px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--card); color: var(--mid); cursor: pointer; transition: color .2s, border-color .2s; }
.themebtn:hover { color: var(--gold); border-color: rgba(var(--gold-rgb),.45); }
.themebtn svg { width: 16px; height: 16px; }
.themebtn .sun { display: none; } :root[data-theme="light"] .themebtn .sun { display: block; } :root[data-theme="light"] .themebtn .moon { display: none; }
html.phone .themebtn { display: none; }
body, .drawer, .lesson, .pbar, .tip, .pmenu { transition: background-color .35s, color .35s; }
.pmenu .ptheme { font: 500 13.5px var(--f-ui); color: var(--gold); border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; }

/* Siapa Tuhanmu: the three ways, and rows that show how much the Qur'an says */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ways button { display: grid; gap: 1px; justify-items: start; text-align: left; font: inherit; color: var(--mid); background: rgba(var(--fg-rgb),.03);
  border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px 10px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.ways button small { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ways button span { font: 400 17px/1.2 var(--f-head); white-space: nowrap; }
.ways button:hover { color: var(--ink); border-color: rgba(var(--fg-rgb),.2); }
.ways button[aria-pressed="true"] { color: var(--ink); border-color: rgba(var(--gold-rgb),.6); background: rgba(var(--gold-rgb),.08); }
.ways button[aria-pressed="true"] small { color: var(--gold); }
.step .way-note { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin-top: -2px; }
.dd-row.way-row { grid-template-columns: minmax(0,1fr) auto; row-gap: 5px; padding: 8px 10px 9px; }
.dd-row.way-row > .wr-name { grid-column: 1; font: 400 15.5px/1.3 var(--f-head); }
.way-row .wr-name .ar { font-style: normal; font-family: var(--f-ar); color: var(--gold); font-size: 15px; margin-left: 4px; }
.dd-row.way-row > small { grid-column: 2; align-self: baseline; }
.way-row .wr-bar { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: rgba(var(--fg-rgb),.06); overflow: hidden; }
.way-row .wr-bar i { display: block; height: 100%; width: var(--w); background: var(--k); border-radius: 2px; opacity: .85; }
.dd-row.way-row.on .wr-bar i, .dd-row.way-row:hover .wr-bar i { opacity: 1; }
.dd-now.empty { min-height: 0; border-style: dashed; padding: 9px 12px; flex: 0 0 auto !important; }
.dd-now.empty .dd-hint { font-size: 12.5px !important; }
html.phone .ways button span { font-size: 15px; }

/* the names rosette: each name along its own ray from «الله» */
.lbl.ray { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; pointer-events: auto; cursor: pointer; padding: 2px 4px; border-radius: 4px; }
.lbl.ray.left { flex-direction: row-reverse; }
.lbl.ray i { font-style: normal; font-family: var(--f-ar); font-size: 16px; line-height: 1; color: var(--gold); }
.lbl.ray span { font: 400 13.5px/1 var(--f-head); color: var(--ink); }
.lbl.ray small { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lbl.ray:hover span, .lbl.ray:hover small { color: var(--gold); }
html.phone .lbl.ray i { font-size: 13px; }
.lbl.allah small { white-space: nowrap; }
.surah-msgs li.on, .results li.on { background: rgba(var(--gold-rgb),.09); color: var(--ink); }

/* the rings: each section's name written along its ring */
.lbl.arcs { pointer-events: none; }
.lbl.arcs svg { position: absolute; left: 0; top: 0; overflow: visible; }
.lbl.arcs text { fill: var(--mid); font-family: var(--f-ui); letter-spacing: .02em; }
.lbl.arcs circle { fill: var(--muted); }
.lbl.arcs path.hit { fill: none; stroke: transparent; stroke-width: 14; pointer-events: stroke; cursor: pointer; }
.lbl.arcs g:hover text, .lbl.arcs g.on text { fill: var(--gold); }
.lbl.arcs g:hover circle, .lbl.arcs g.on circle { fill: var(--gold); }
.lbl.arcs g.on text { font-weight: 600; }
.lbl.arcs text.rname { fill: var(--ink); font-family: var(--f-head); letter-spacing: .01em; }

/* the ayah: play, and word by word */
.dr-tools { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; }
.dr-play, .dr-wbw { display: inline-flex; align-items: center; gap: 7px; font: 500 12.5px var(--f-ui); color: var(--mid); background: rgba(var(--fg-rgb),.04);
  border: 1px solid var(--line); border-radius: 99px; padding: 6px 13px 6px 10px; cursor: pointer; }
.dr-wbw { padding: 6px 13px; margin-left: auto; }
.dr-link { display: inline-flex; align-items: center; font: 500 12.5px var(--f-ui); color: var(--mid); background: rgba(var(--fg-rgb),.04); border: 1px solid var(--line); border-radius: 99px; padding: 6px 13px; cursor: pointer; }
.dr-link:hover { color: var(--ink); border-color: rgba(var(--gold-rgb),.45); }
.dr-play:hover, .dr-wbw:hover { color: var(--ink); border-color: rgba(var(--gold-rgb),.45); }
.dr-play svg { width: 15px; height: 15px; fill: var(--gold); }
.dr-play .i-pause { display: none; } .dr-play.on .i-pause { display: block; } .dr-play.on .i-play { display: none; }
.dr-play.on { color: var(--ink); border-color: rgba(var(--gold-rgb),.6); background: rgba(var(--gold-rgb),.1); }
.dr-wbw[aria-pressed="true"] { color: var(--bg); background: var(--gold); border-color: var(--gold); }
.dr-ar .w { position: relative; display: inline-block; border-radius: 6px; padding: 0 2px; cursor: help; transition: background .15s; }
.dr-ar .w:hover, .dr-ar .w:focus { background: rgba(var(--gold-rgb),.14); outline: none; }
.dr-ar .w-id { position: absolute; z-index: 5; left: 50%; bottom: 100%; transform: translate(-50%, -2px); white-space: nowrap; pointer-events: none;
  font: 500 12.5px/1.3 var(--f-ui); direction: ltr; color: var(--ink); background: var(--surface2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px;
  box-shadow: 0 6px 18px rgba(var(--shadow-rgb),calc(.35 * var(--shadow-a))); opacity: 0; transition: opacity .12s; }
.dr-ar .w:hover .w-id, .dr-ar .w:focus .w-id { opacity: 1; }
.dr-ar.wbw { display: flex; flex-wrap: wrap; direction: rtl; gap: 14px 16px; line-height: 1.5; }
.dr-ar.wbw .w { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; cursor: default; padding: 2px 4px; }
.dr-ar.wbw .w-id { position: static; transform: none; opacity: 1; border: 0; background: none; box-shadow: none; padding: 0;
  font-size: 12.5px; color: var(--muted); white-space: normal; max-width: 9em; text-align: center; }
html.phone .dr-ar.wbw { gap: 10px 12px; }
.dr-ar.wbw .w-ar { line-height: 1.75; }
.dr-ar.wbw .w-id { margin-top: 2px; }

/* the ayah in its surah */
.dr-ctx { margin: 6px 0 26px; }
.ctx-around { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 2px; }
.ctx-around li { font-size: 13.5px; line-height: 1.55; color: var(--muted); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.ctx-around li:hover { background: rgba(var(--fg-rgb),.04); color: var(--mid); }
.ctx-around li.here { color: var(--ink); background: rgba(var(--gold-rgb),.1); cursor: default; }
.ctx-around li.more { cursor: default; padding: 0 10px; background: none; }
.ctx-around sup { font-size: 10px; color: var(--muted); margin-right: 5px; font-variant-numeric: tabular-nums; }
.surah-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: rgba(var(--fg-rgb),.02); display: grid; gap: 6px; }
.sc-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sc-head b { font: 500 19px/1.2 var(--f-head); color: var(--ink); }
.sc-head .ar { font-style: normal; font-family: var(--f-ar); color: var(--gold); font-size: 18px; }
.sc-head span { font-size: 13px; color: var(--muted); font-style: italic; }
.sc-meta { margin: 0; font-size: 12px; color: var(--muted); }
.sc-h { margin: 6px 0 0; font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sc-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sc-top li { position: relative; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 6px 8px 6px 24px; border-radius: 8px; cursor: pointer; }
.sc-top li:hover { background: rgba(var(--fg-rgb),.04); }
.sc-top li span { font: 400 14.5px/1.3 var(--f-head); color: var(--ink); }
.sc-top li small { font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ctx-around li:not(.here):not(.more) { max-height: calc(1.55em * 3 + 12px); overflow: hidden; }

/* the right column's tabs */
.dr-side { padding-top: 0; }
.dr-tabs { position: sticky; top: 0; z-index: 2; display: flex; gap: 4px; margin: 0 -34px 18px; padding: 14px 34px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.dr-tabs button { font: 500 13px var(--f-ui); color: var(--mid); background: none; border: 1px solid transparent; border-radius: 99px; padding: 6px 14px; cursor: pointer; }
.dr-tabs button:hover { color: var(--ink); }
.dr-tabs button[aria-selected="true"] { color: var(--ink); border-color: rgba(var(--gold-rgb),.55); background: rgba(var(--gold-rgb),.09); }
.dr-panel[hidden] { display: none; }
/* where else a message is said */
.dm-else { margin-top: 12px; display: grid; gap: 8px; }
.dm-else-h { margin: 0 !important; font-size: 11.5px !important; font-weight: 600; color: var(--muted) !important; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.dm-else-h button { font: 500 11.5px var(--f-ui); color: var(--gold); background: rgba(var(--gold-rgb),.08); border: 0; border-radius: 6px; padding: 2px 7px; cursor: pointer; font-variant-numeric: tabular-nums; }
.hops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.hops li { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; display: grid; gap: 3px; background: rgba(var(--fg-rgb),.02); transition: border-color .15s; }
.hops li:hover { border-color: rgba(var(--gold-rgb),.5); }
.hops li b { font-size: 11.5px; font-weight: 600; color: var(--gold); }
.hops li span { font-size: 12.5px; line-height: 1.45; color: var(--mid); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hops-more summary { cursor: pointer; font-size: 12px; color: var(--gold); margin: 2px 0 6px; }
html.phone .dr-tabs { margin: 0 -18px 14px; padding: 10px 18px; top: 0; }

.rel-note { font-size: 13px; color: var(--muted); line-height: 1.55; margin: -4px 0 14px; }
/* ayat that explain ayat (tafsir Al-Qur'an bil-Qur'an) */
.bayan { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.bayan li { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px 10px; cursor: pointer; display: grid; gap: 5px; background: rgba(var(--fg-rgb),.02); transition: border-color .15s; }
.bayan li:hover { border-color: rgba(var(--gold-rgb),.5); }
.by-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.by-top b { font-size: 12px; font-weight: 600; color: var(--gold); }
.by-t { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: rgba(var(--gold-rgb),.12); border-radius: 99px; padding: 2px 8px; }
.by-n { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink); }
.bayan li span { font-size: 12.5px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bayan li small { font-size: 10.5px; color: var(--muted); opacity: .8; }
.dr-tabs button i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--gold); margin-left: 3px; }
.dr-by { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: baseline; font: 400 13px var(--f-ui); color: var(--mid); background: rgba(var(--gold-rgb),.08); border: 1px solid rgba(var(--gold-rgb),.28); border-radius: 99px; padding: 6px 13px; margin: -10px 0 20px; cursor: pointer; }
.dr-by:hover { border-color: rgba(var(--gold-rgb),.6); color: var(--ink); }
.dr-by span { color: var(--muted); }
.dr-by b { font-weight: 600; color: var(--gold); }
.hops.rel { grid-template-columns: 1fr; }
.hops.rel li span { -webkit-line-clamp: 4; font-size: 13.5px; }
.hops.rel li small { font-size: 11px; color: var(--muted); }

/* a theme's colour is a small dot in front of the line it belongs to (no stripes on cards) */
.surah-msgs li[style*="--c"]::before, .results li[data-m]::before, .dd-msgs li::before, .sc-top li::before {
  content: ''; position: absolute; left: 10px; top: calc(9px + .52em); width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--muted)); }
.dd-msgs li::before { top: calc(7px + .52em); }
.sc-top li::before { left: 9px; top: calc(6px + .62em); }
.now b::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--gold)); margin: 0 9px 0 1px; vertical-align: .18em; }
.dm .dm-meta > span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--mid); }
.dm .dm-meta > span:first-child::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }

/* ── Di tengah hidup Nabi ﷺ: the sirah timeline ── */
.lbl.sx-line { height: 1px; background: var(--line); }
.lbl.sx-tick { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: .7; }
.lbl.sx-era { display: grid; gap: 1px; text-align: right; }
.lbl.sx-era b { font: 500 16px/1.2 var(--f-head); color: var(--ink); }
.lbl.sx-era span { font-size: 11px; color: var(--muted); }
.lbl.sx-ev { text-align: center; display: grid; gap: 0; pointer-events: auto; cursor: pointer; }
.lbl.sx-ev b { font: 400 13px/1.2 var(--f-head); color: var(--ink); }
.lbl.sx-ev small { font-size: 10px; color: var(--muted); }
.lbl.sx-ev:hover b { color: var(--gold); }
.lbl.sx-ev.ph b { font-size: 10.5px; line-height: 1.15; }
.lbl.sx-note { font-size: 11px; color: var(--muted); text-align: center; }
.sx-list { margin-top: 14px; }
.sx-h { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 14px 10px 4px; }
.sx-row small { white-space: nowrap; }
.sx-when { font-size: 12.5px; color: var(--gold); margin: 2px 0 8px; }
.sx-parts { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.sx-parts li { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; cursor: pointer; background: rgba(var(--fg-rgb),.02); transition: border-color .15s; }
.sx-parts li:hover { border-color: rgba(var(--gold-rgb),.5); }
.sx-parts li > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; }
.sx-parts li b { font-size: 12.5px; font-weight: 600; color: var(--gold); }
.sx-parts li p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--mid); }
.sx-rel { font-size: 10px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); background: rgba(var(--gold-rgb),.12); border-radius: 99px; padding: 2px 7px; }
.sx-rel.tentang { background: rgba(var(--fg-rgb),.07); color: var(--mid); }
.sx-rel.dibacakan { background: transparent; border: 1px solid rgba(var(--gold-rgb),.4); color: var(--mid); }
.dr-ev { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: baseline; font: 400 13px var(--f-ui); color: var(--mid); background: rgba(var(--fg-rgb),.04); border: 1px solid var(--line); border-radius: 99px; padding: 6px 13px; margin: -10px 8px 20px 0; cursor: pointer; }
.dr-ev:hover { border-color: rgba(var(--gold-rgb),.6); color: var(--ink); }
.dr-ev span { color: var(--muted); }
.dr-ev b { font-weight: 600; color: var(--ink); }
.dr-ev small { color: var(--muted); }
#drBy:empty + #drSirah .dr-ev:first-child { margin-top: -10px; }
.lbl.sx-ev b, .lbl.sx-ev small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbl.sx-ev b { font-size: 12.5px; }
.lbl.sx-stem { width: 1px; background: var(--line); }
.sx-beda { font-size: 10px; color: var(--muted); border: 1px dashed var(--line); border-radius: 99px; padding: 1px 7px; }
a.sx-page { display: inline-block; text-decoration: none; }
.sx-more { font-size: 13px; color: var(--gold); text-decoration: none; }
.sx-more:hover { text-decoration: underline; }
