/* app/explore.css - the five Explore screens on Compare > Explore (app/explore.js). "Now" hides all of this. */

/* While a design is chosen, the old Explore (search, tabs, list) steps aside for it */
#mExplore[data-vx] .m-screen-body > :not(.vx) { display: none !important; }
#mExplore:not([data-vx]) .vx { display: none; }
.vx { position: relative; flex: 1; min-height: 0; overflow: hidden; --vx-line: rgba(243, 237, 226, 0.09); --vx-fill: rgba(243, 237, 226, 0.07); --vx-fill-2: rgba(243, 237, 226, 0.12); --vx-clear-x: var(--night); }
.vx-page { position: absolute; inset: 0; background: var(--sheet); padding-top: 2px; }
.vx-page[hidden] { display: block !important; visibility: hidden; }
.vx button { -webkit-tap-highlight-color: transparent; font: inherit; color: inherit; }
.vx button:active { scale: 0.98; }
.vx-home[hidden], .vx-results[hidden] { display: none; }

/* ---------- Search field ---------- */
.vx-search { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; height: 44px; margin: 2px 0 6px; padding: 0 6px 0 12px; border-radius: 12px; background: var(--vx-fill-2); color: var(--text-3); box-shadow: 0 6px 12px -10px var(--sheet); }
.vx-search::before { content: ''; position: absolute; left: -16px; right: -16px; bottom: 100%; height: 10px; background: var(--sheet); }
.vx-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: 400 var(--fs-base) var(--font-ui); outline: none; -webkit-appearance: none; appearance: none; }
.vx-search input::-webkit-search-cancel-button { display: none; }
.vx-search input::placeholder { color: var(--text-3); }
.vx-sico svg { display: block; width: 18px; height: 18px; }
.vx-clear { display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: none; padding: 0; }
.vx-clear[hidden] { display: none; }
.vx-clear svg { width: 18px; height: 18px; color: var(--text-2); }
.vx-search:focus-within { box-shadow: 0 0 0 1.5px rgba(236, 201, 122, 0.55); }

/* ---------- Shared parts ---------- */
.vx-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 24px 0 8px; }
.vx-head h3 { margin: 0; font: 600 var(--fs-s) var(--font-ui); letter-spacing: 0; color: var(--accent); } /* in its own case, not capitals (founder, 2026-11-14) */
.vx-more { border: 0; background: none; padding: 6px 0 6px 12px; margin: -6px 0; color: var(--text-2) !important; font: 500 var(--fs-s) var(--font-ui) !important; }
.vx-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 0; border: 0; border-bottom: 1px solid var(--vx-line); background: none; text-align: left; }
.vx-row-t { flex: 1; min-width: 0; display: grid; gap: 3px; }
.vx-row-t b { font: 400 var(--fs-base) var(--font-ui); color: var(--text); }
.vx-row-t small { display: flex; align-items: center; gap: 5px; font-size: var(--fs-s); line-height: 1.4; color: var(--text-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.vx-row-t small svg { flex: none; width: 13px; height: 13px; color: var(--accent); }
.vx-row-n { flex: none; font-size: var(--fs-s); color: var(--text-3); font-variant-numeric: tabular-nums; }
.vx-chev { flex: none; display: grid; color: var(--text-3); }
.vx-chev svg { width: 16px; height: 16px; }
.vx-num { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--vx-fill); font: 600 var(--fs-xs) var(--font-ui); color: var(--text-2); font-variant-numeric: tabular-nums; }
.vx-mdisc { flex: none; display: inline-grid; }
.vx-ayah { display: grid; gap: 4px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--vx-line); background: none; text-align: left; }
.vx-ayah-ref { font: 600 var(--fs-xs) var(--font-ui); letter-spacing: 0.04em; color: var(--accent); }
.vx-ayah-t { font-size: var(--fs-m); line-height: 1.5; color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 1.5em; }
.vx-ayah-t mark { background: none; color: var(--text); font-weight: 600; }
.vx-readall { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; margin: 14px 0 8px; border: 0; border-radius: 12px; background: var(--vx-fill); color: var(--accent) !important; font: 500 var(--fs-base) var(--font-ui) !important; }
.vx-readall svg { width: 14px; height: 14px; }
.vx-quiet, .vx-none, .vx-note, .vx-psub { margin: 6px 0; color: var(--text-3); font-size: var(--fs-base); line-height: 1.5; }
.vx-none { margin-top: 24px; }
.vx-note { padding: 10px 12px; border-radius: 10px; background: var(--vx-fill); font-size: var(--fs-m); }
.vx-foot { display: block; width: 100%; margin: 28px 0 8px; padding: 12px 0; border: 0; background: none; color: var(--text-3) !important; font-size: var(--fs-s) !important; text-align: center; }
.vx-top { display: grid; gap: 4px; width: 100%; margin: 10px 0; padding: 16px; border: 0; border-radius: 16px; background: var(--vx-fill-2); text-align: left; }
.vx-top small { font: 600 var(--fs-xs) var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.vx-top b { font: 600 var(--fs-l) var(--font-ui); color: var(--text); }
.vx-top-t { font-size: var(--fs-m); line-height: 1.5; color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }

/* Pages that slide in */
.vx-back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin: 0 0 0 -8px; padding: 0 8px 0 0; border: 0; background: none; color: var(--accent) !important; font: 500 var(--fs-base) var(--font-ui) !important; }
.vx-back svg { width: 22px; height: 22px; }
.vx-ptitle { margin: 6px 0 2px; font: 600 26px/1.15 var(--font-ui); letter-spacing: -0.01em; color: var(--text); }
.vx-mhero { display: grid; justify-items: start; gap: 6px; padding: 10px 0 4px; }
.vx-mhero h2 { margin: 8px 0 0; font: 600 26px/1.15 var(--font-ui); letter-spacing: -0.01em; color: var(--text); }
.vx-mhero p { margin: 0; font-size: var(--fs-base); line-height: 1.45; color: var(--text-2); }
.vx-mhero small { font-size: var(--fs-s); color: var(--text-3); }
.vx-mhero .vx-kicker { margin-top: 8px; margin-bottom: -6px; font: 600 var(--fs-s) var(--font-ui); letter-spacing: 0; color: var(--accent); text-shadow: 0 1px 10px rgba(8, 12, 30, 0.45); } /* gold, as the headings */
.vx-shero { padding: 6px 0 4px; }
.vx-shero-n { font: 600 var(--fs-s) var(--font-ui); letter-spacing: 0.08em; color: var(--accent); }
.vx-shero h2 { margin: 2px 0 6px; font: 600 26px/1.15 var(--font-ui); letter-spacing: -0.01em; color: var(--text); }
.vx-shero p { display: flex; align-items: center; gap: 6px; margin: 0; font-size: var(--fs-m); color: var(--text-3); }
.vx-shero p svg { width: 14px; height: 14px; color: var(--accent); }
.vx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 8px; margin-top: 16px; }
.vx-cell { height: 48px; border: 0; border-radius: 12px; background: var(--vx-fill); font: 500 var(--fs-base) var(--font-ui); font-variant-numeric: tabular-nums; }
.vx-sources { font-size: var(--fs-m); line-height: 1.55; color: var(--text-2); }
.vx-sources :is(a) { color: var(--accent); }
/* the index down the right edge of All Surahs */
.vx-allpage { padding-right: 34px; }
.vx-scrub { position: fixed; z-index: 4; right: 2px; top: 150px; bottom: calc(env(safe-area-inset-bottom) + 40px); width: 30px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 6px 0; border-radius: 15px; touch-action: none; transition: background 0.2s; }
.vx-scrub span { font: 600 10px/1 var(--font-ui); color: var(--accent); font-variant-numeric: tabular-nums; pointer-events: none; }
.vx-scrub.is-on { background: var(--vx-fill-2); }
.vx-scrub .vx-scrub-tip { position: absolute; right: 40px; translate: 0 -50%; display: none; min-width: 52px; padding: 10px 12px; border-radius: 14px; background: var(--text); color: var(--sheet); font-size: 20px; text-align: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); }
.vx-scrub.is-on .vx-scrub-tip { display: block; }

/* Sideways shelves */
.vx-shelf { display: flex; gap: 10px; margin: 0 -16px; padding: 2px 16px 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.vx-shelf::-webkit-scrollbar { display: none; }
.vx-shelf > * { scroll-snap-align: start; flex: none; }
.vx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vx-chips.is-row { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.vx-chips.is-row::-webkit-scrollbar { display: none; }
.vx-chip { flex: none; min-height: 36px; padding: 0 14px; border: 1px solid var(--vx-line); border-radius: 18px; background: var(--vx-fill); font: 500 var(--fs-m) var(--font-ui) !important; color: var(--text) !important; white-space: nowrap; }

/* ---------- 1 Spotlight ---------- */
.vx-search.is-big { height: 50px; border-radius: 14px; }
.vx-search.is-big input { font-size: var(--fs-l); }
.vx-mtile { display: grid; align-content: start; justify-items: start; gap: 4px; width: 128px; min-height: 112px; padding: 12px; border: 0; border-radius: 16px; background: var(--vx-fill); text-align: left; }
.vx-mtile b { margin-top: 8px; font: 500 var(--fs-m) / 1.25 var(--font-ui); color: var(--text); }
.vx-mtile small { font-size: var(--fs-xs); color: var(--text-3); }
.vx-tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vx-ttile { display: grid; gap: 2px; min-height: 64px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--vx-fill); text-align: left; }
.vx-ttile b { font: 500 var(--fs-m) / 1.25 var(--font-ui); color: var(--text); }
.vx-ttile small { font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ---------- 2 Library (grouped lists, like the phone's Settings) ---------- */
.vx-group { margin: 12px 0 0; padding: 0 14px; border-radius: 16px; background: var(--vx-fill); }
.vx-group .vx-row:last-child { border-bottom: 0; }
.vx-d2 .vx-head { margin: 26px 0 0; padding: 0 2px; }
.vx-pico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(236, 201, 122, 0.14); color: var(--accent); }
.vx-pico svg { width: 20px; height: 20px; }
.vx-d2 .vx-group:first-child .vx-row { min-height: 64px; }

/* ---------- 3 For now ---------- */
.vx-hero { position: relative; display: grid; gap: 12px; width: 100%; margin: 8px 0 0; padding: 18px 18px 16px; border: 1px solid rgba(236, 201, 122, 0.22); border-radius: 22px; overflow: hidden; text-align: left;
  background: radial-gradient(120% 90% at 100% 0%, rgba(236, 201, 122, 0.14), transparent 60%), color-mix(in srgb, var(--night) 70%, #000 30%); }
.vx-hero-tag { display: inline-flex; align-items: center; gap: 8px; font: 600 var(--fs-xs) var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.vx-hero-ar { margin: 4px 0 0; font: 400 26px/1.9 var(--font-quran); color: var(--text); text-align: right; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; min-height: 1.9em; }
.vx-hero-en { margin: 0; font-size: var(--fs-base); line-height: 1.5; color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.vx-hero-foot { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; padding-top: 12px; border-top: 1px solid var(--vx-line); }
.vx-hero-foot b { font: 600 var(--fs-l) var(--font-ui); color: var(--text); }
.vx-hero-foot small { grid-row: 2; font-size: var(--fs-s); color: var(--text-3); }
.vx-hero-foot .vx-chev { grid-row: 1 / 3; grid-column: 2; }
.vx-wcard { display: grid; align-content: start; justify-items: start; gap: 4px; width: 220px; min-height: 128px; padding: 14px; border: 0; border-radius: 18px; background: var(--vx-fill); text-align: left; }
.vx-wcard b { margin-top: 8px; font: 500 var(--fs-base) / 1.25 var(--font-ui); color: var(--text); }
.vx-wcard small { font-size: var(--fs-s); line-height: 1.4; color: var(--text-3); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vx-wcard-n { margin-top: auto; padding-top: 6px; font: 600 var(--fs-xs) var(--font-ui); color: var(--accent); }
.vx-wcard.is-saved small { -webkit-line-clamp: 4; color: var(--text-2); }
.vx-scard { display: grid; align-content: end; justify-items: start; gap: 2px; width: 120px; height: 120px; padding: 12px; border: 0; border-radius: 18px; background: var(--vx-fill); text-align: left; }
.vx-scard-n { font: 300 34px/1 var(--font-ui); color: var(--accent); font-variant-numeric: tabular-nums; margin-bottom: auto; }
.vx-scard b { font: 500 var(--fs-m) var(--font-ui); color: var(--text); }
.vx-scard small { font-size: var(--fs-xs); color: var(--text-3); }

/* ---------- 4 Contents, on the Ivory paper ---------- */
html.m-on[data-v2] #mExplore[data-vx='4'] { --sheet: var(--v-sheet, #faf6ee); --text: var(--v-ink, #1d2236); --text-2: var(--v-ink-2, #474c5e); --text-3: var(--v-ink-3, #5f6475); --accent: var(--v-gold-ink, #85631f);
  background: var(--sheet); color: var(--text); border-top-color: rgba(181, 138, 58, 0.35); }
#mExplore[data-vx='4'] .vx { --vx-line: var(--v-line, rgba(29, 34, 54, 0.13)); --vx-fill: rgba(29, 34, 54, 0.05); --vx-fill-2: rgba(29, 34, 54, 0.07); --vx-clear-x: #faf6ee; }
#mExplore[data-vx='4'] :is(.m-screen-title, .m-x) { color: var(--text); }
#mExplore[data-vx='4'] .m-sheet-grab::before, #mExplore[data-vx='4'] .m-sheet-grab span { background: rgba(29, 34, 54, 0.25); }
#mExplore[data-vx='4'] .vx-search:focus-within { box-shadow: 0 0 0 1.5px rgba(181, 138, 58, 0.6); }
html.m-on[data-v2][data-vtheme='dark'] #mExplore[data-vx='4'] { --sheet: var(--v-card); }
html[data-vtheme='dark'] #mExplore[data-vx='4'] .vx { --vx-fill: rgba(241, 235, 223, 0.06); --vx-fill-2: rgba(241, 235, 223, 0.09); --vx-clear-x: var(--v-card); }
.vx-d4-title { margin: 0 0 12px; font: 600 30px/1.1 var(--font-ui); letter-spacing: -0.015em; color: var(--text); }
.vx-jump { position: sticky; top: 50px; z-index: 2; display: flex; gap: 6px; margin: 4px -16px 0; padding: 8px 16px 10px; background: var(--sheet); border-bottom: 1px solid var(--vx-line); overflow-x: auto; scrollbar-width: none; }
.vx-jump::-webkit-scrollbar { display: none; }
.vx-jchip { flex: none; min-height: 34px; padding: 0 14px; border: 1px solid var(--vx-line); border-radius: 17px; background: none; font: 500 var(--fs-m) var(--font-ui) !important; color: var(--text-2) !important; transition: background 0.25s, color 0.25s, border-color 0.25s; }
.vx-jchip.is-on { background: var(--text); border-color: var(--text); color: var(--sheet) !important; }
.vx-part { padding-top: 6px; }
.vx-part-h { display: flex; align-items: center; gap: 12px; margin: 26px 0 6px; font: 600 var(--fs-xs) var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.vx-part-h::after { content: ''; flex: 1; height: 1px; background: color-mix(in srgb, var(--accent) 40%, transparent); }
.vx-entry { display: flex; align-items: baseline; gap: 12px; width: 100%; min-height: 48px; padding: 12px 0; border: 0; background: none; text-align: left; }
.vx-entry-n { flex: none; width: 28px; font: 500 var(--fs-s) var(--font-ui); color: var(--accent); font-variant-numeric: tabular-nums; }
.vx-entry-t { min-width: 0; display: grid; gap: 2px; max-width: 70%; }
.vx-entry-t b { font: 400 var(--fs-base) var(--font-ui); color: var(--text); }
.vx-entry-t small { font-size: var(--fs-s); line-height: 1.4; color: var(--text-3); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vx-leader { flex: 1; min-width: 12px; align-self: baseline; height: 1px; border-bottom: 1.5px dotted color-mix(in srgb, var(--text) 26%, transparent); translate: 0 -4px; }
.vx-entry-a { flex: none; font-size: var(--fs-s); color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ---------- 5 Heart (thumb-first) ---------- */
.vx-d5 { padding-bottom: calc(env(safe-area-inset-bottom) + 96px); }
.vx-ask { margin: 10px 0 14px; font: 600 26px/1.2 var(--font-ui); letter-spacing: -0.01em; color: var(--text); }
.vx-feel { display: flex; flex-wrap: wrap; gap: 8px; }
.vx-fchip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 10px; border: 1px solid var(--vx-line); border-radius: 22px; background: var(--vx-fill); font: 500 var(--fs-base) var(--font-ui) !important; color: var(--text) !important; }
.vx-pick { position: relative; display: grid; grid-template-columns: 1fr 88px; gap: 8px; height: 200px; padding: 0 8px; border-radius: 16px; background: var(--vx-fill); }
.vx-pick-band { position: absolute; left: 8px; right: 8px; top: 80px; height: 40px; border-radius: 10px; background: var(--vx-fill-2); pointer-events: none; }
.vx-wheel { position: relative; z-index: 1; height: 200px; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.vx-wheel::-webkit-scrollbar { display: none; }
.vx-wheel-pad { display: block; height: 80px; }
.vx-wheel span { display: flex; align-items: center; height: 40px; padding: 0 10px; scroll-snap-align: center; font: 400 var(--fs-base) var(--font-ui); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.15s; font-variant-numeric: tabular-nums; }
.vx-wheel:last-of-type span { justify-content: center; }
.vx-wheel span.is-on { color: var(--text); font-weight: 500; }
.vx-gobtn { display: block; width: 100%; min-height: 50px; margin: 10px 0 0; border: 0; border-radius: 14px; background: #f3ede2; color: var(--night) !important; font: 600 var(--fs-base) var(--font-ui) !important; }
.vx-search.is-bottom { position: fixed; top: auto; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 18px); height: 52px; margin: 0; border-radius: 26px; background: color-mix(in srgb, var(--sheet) 82%, #fff 10%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 0 0 1px var(--vx-line); transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1); }
.vx-search.is-bottom::before { display: none; }
.vx-bfade { position: fixed; z-index: 2; left: 0; right: 0; bottom: 0; height: calc(env(safe-area-inset-bottom) + 104px); background: linear-gradient(transparent, var(--sheet) 55%); pointer-events: none; }
.vx-d5 .vx-results { padding-top: 4px; }

@media (prefers-reduced-motion: reduce) {
  .vx button:active { scale: none; }
  .vx-search.is-bottom, .vx-jchip { transition: none; }
}

/* ---------- Sky (founder, 2026-11-06): the Prayer screen's sky, lent to Explore (explore.js lendSky) ----------
   Laid out like the Prayer screen: the sky stays still at the top behind the title; what is below slides up over it
   with the same soft edge; the Ayah is written on the sky in white, as the countdown is. */
#mExplore.vx-sky-on { --vx-grow: 90px; padding-top: 0; overflow: hidden; border-top: 0; }
#mExplore.vx-sky-on .m-screen-nav { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 64px; padding-top: 12px; background: transparent; }
#mExplore.vx-sky-on :is(.m-screen-title, .m-x) { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25); }
#mExplore.vx-sky-on .m-x { color: #fff; }
#mExplore.vx-sky-on .m-sheet-grab { top: 0; }
#mExplore.vx-sky-on .m-screen-body { position: relative; z-index: 1; }
#mExplore.vx-sky-on .vx-page { -webkit-mask-image: linear-gradient(transparent 60px, #000 84px); mask-image: linear-gradient(transparent 60px, #000 84px); }
#mExplore.vx-sky-on .vx-page:not(.vx-dsky) { padding-top: 70px; } /* pages opened from it: the sky stays behind the title */
.vx-dsky { background: transparent !important; padding-top: 0 !important; }
.vx-skytop { position: relative; height: calc(var(--v-sky-h) + var(--vx-grow) - 20px); box-sizing: border-box; padding-top: 70px; }
.vx-below { position: relative; margin: 0 -16px; padding: 4px 16px calc(env(safe-area-inset-bottom) + 28px); background: var(--sheet); }
.vx-below::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 28px; background: linear-gradient(transparent, var(--sheet)); pointer-events: none; }
.vx-below .vx-search { position: relative; top: auto; margin-top: 4px; box-shadow: none; }
.vx-below .vx-search::before { display: none; }
.vx-below .m-head:first-child { margin-top: 18px; }

/* the deck of Ayahs on the sky */
.vx-deck { position: relative; height: 100%; margin: 0 -16px; overflow: hidden; touch-action: pan-y; }
/* (founder, 2026-11-09: the scene's words in the app's warm off-white, not pure white; the English at the small reading
   size so more of a long Ayah shows; See all a quiet link, not a button over the picture) */
.vx-dcard { --vx-ink: #f3ede2; position: absolute; inset: 0; display: flex; flex-direction: column; padding: 0 20px 34px; color: var(--vx-ink); will-change: transform; }
.vx-dcard.is-side { pointer-events: none; }
.vx-dtop { display: flex; align-items: center; gap: 8px; font: 600 var(--fs-xs) var(--font-ui); letter-spacing: 0; /* (founder, 2026-11-14: in its own case, not capitals) */ color: color-mix(in srgb, var(--vx-ink) 88%, transparent); }
.vx-dtop .v-disc { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); }
.vx-dread { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; border: 0; background: none; text-align: left; color: var(--vx-ink) !important; }
.vx-dread:active { scale: 0.99; }
.vx-dar { margin: 0; font: 400 25px/1.85 var(--font-quran); text-align: right; color: var(--vx-ink); text-shadow: 0 1px 14px rgba(8, 12, 30, 0.35);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vx-den { margin: 0; max-width: none; /* (founder, 2026-11-13: the English runs the full width, not three short lines) */ font: 400 var(--fs-base) / 1.55 var(--font-ui); color: var(--vx-ink); text-shadow: 0 1px 12px rgba(8, 12, 30, 0.35);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.vx-dfoot { display: flex; align-items: center; gap: 12px; padding-top: 16px; }
.vx-dref { margin-left: auto; letter-spacing: 0; text-transform: none; font: 500 var(--fs-s) var(--font-ui); color: color-mix(in srgb, var(--vx-ink) 86%, transparent); text-shadow: 0 1px 10px rgba(8, 12, 30, 0.3); }
/* the Moment it belongs to: the same frosted chip as the Prayer screen's "Today" */
.vx-dchip { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; margin-left: -2px; padding: 0 2px; border: 0; background: none;
  font: 600 var(--fs-s) var(--font-ui) !important; color: var(--vx-ink) !important; text-shadow: 0 1px 3px rgba(8, 12, 30, 0.45), 0 1px 12px rgba(8, 12, 30, 0.4); }
.vx-dchip .vx-chev { color: var(--vx-ink); }
.vx-dchip .vx-chev svg { width: 14px; height: 14px; }

/* Go to an Ayah: two curved wheels, the Ayah under them, then Read */
.vx-goto { padding: 6px; border-radius: 18px; background: rgba(243, 237, 226, 0.06); }
.vx-gwheels { position: relative; display: grid; grid-template-columns: 1fr 76px; height: 180px; }
.vx-gband { position: absolute; left: 4px; right: 4px; top: 72px; height: 36px; border-radius: 10px; background: rgba(243, 237, 226, 0.08); pointer-events: none; }
.vx-w2 { position: relative; z-index: 1; height: 180px; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.vx-w2::-webkit-scrollbar { display: none; }
.vx-w2pad { display: block; height: 72px; }
.vx-w2 span { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; scroll-snap-align: center; font: 400 var(--fs-l) var(--font-ui); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; transform-origin: center; }
.vx-w2 span b { flex: none; width: 26px; font: 500 var(--fs-s) var(--font-ui); color: var(--accent); text-align: right; }
.vx-w2.is-ayah span { justify-content: center; }
.vx-gprev { display: grid; gap: 3px; width: 100%; margin: 6px 0 0; padding: 12px 10px 4px; border: 0; border-top: 1px solid var(--vx-line); background: none; text-align: left; }
.vx-gref { font: 600 var(--fs-xs) var(--font-ui); letter-spacing: 0.04em; color: var(--accent); }
.vx-gen { font-size: var(--fs-m); line-height: 1.5; color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 3em; }
.vx-gread { display: block; width: 100%; min-height: 48px; margin: 8px 0 0; border: 0; border-radius: 13px; background: #f3ede2; color: var(--night) !important; font: 600 var(--fs-base) var(--font-ui) !important; }

/* ---------- A Moment's scene over the sky (app/scenes.js) ---------- */
.vx-scene { position: absolute; z-index: 0; top: 0; left: 0; right: 0; height: calc(var(--v-sky-h) + var(--vx-grow, 0px)); overflow: hidden; pointer-events: none; opacity: 0; transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1); }
.vx-scene.is-on { opacity: 1; }
.vx-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the same shade as the Prayer sky's at the very top, so the gold title reads on every scene */
.vx-scene::after { content: ''; position: absolute; inset: 0 0 auto; height: 120px; background: linear-gradient(rgba(8, 12, 30, 0.36), rgba(8, 12, 30, 0.2) 40px, transparent); }
/* the shader version of a scene (scenes-gl.js) cross-fades over the drawn canvas, at the same pace as the scenes do */
.vx-scene > canvas, .vx-gl { transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1); }
.vx-gl { position: absolute; inset: 0; opacity: 0; }
.vx-scene.is-gl > canvas { opacity: 0; }
.vx-scene.is-gl .vx-gl.is-shown { opacity: 1; } /* (one shader scene at a time; they cross-fade) */
@media (prefers-reduced-motion: reduce) { .vx-scene, .vx-scene > canvas, .vx-gl { transition-duration: 0.2s; } }
/* Mac and phone only: try any scene on any Ayah */
.vx-scene-pick { position: absolute; z-index: 4; top: 18px; right: 58px; min-height: 30px; padding: 0 12px; border: 0; border-radius: 15px; background: rgba(6, 10, 28, 0.42);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font: 600 12px var(--font-ui); }

/* Explore's switch under the search (founder, 2026-11-09: layout 6): the app's own sliding switch, full width */
.vx-below .vx-switch { margin: 12px 0 4px; }
.vx-tablist { min-height: 50vh; }
.vx-tablist > .m-head:first-child, .vx-tablist > :first-child { margin-top: 8px; }

/* ?debug=explore: the readout sits at the foot, clear of the scene it describes */
.vx-debug { top: auto; bottom: 0; max-height: 46dvh; }

/* A Moment's own page on Explore's sky (founder, 2026-11-09): its scene across the top, the title over it */
#mExplore.vx-sky-on .vx-mscene { background: transparent !important; padding-top: 0 !important; }
.vx-mtop { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 34px; }
.vx-mtop .vx-back { align-self: flex-start; color: #f3ede2 !important; text-shadow: 0 1px 10px rgba(8, 12, 30, 0.45); }
.vx-mtop .vx-mhero h2 { color: #f3ede2; text-shadow: 0 1px 14px rgba(8, 12, 30, 0.4); }
.vx-mtop .vx-mhero p { color: color-mix(in srgb, #f3ede2 90%, transparent); text-shadow: 0 1px 12px rgba(8, 12, 30, 0.4); }
.vx-mtop .vx-mhero small { color: color-mix(in srgb, #f3ede2 75%, transparent); text-shadow: 0 1px 10px rgba(8, 12, 30, 0.4); }
.vx-mbody { padding-top: 12px; }
.vx-mtop .vx-mhero .v-disc { background: rgba(6, 10, 28, 0.32) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgba(243, 237, 226, 0.18); }
/* The themes' signs (and a Surah's number on its page): a soft round tile with a fine gold line icon, the size of a
   Moment's disc (founder, 2026-11-10) */
.vx-tsign { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--vx-fill); color: var(--accent); }
.vx-tsign svg { width: 19px; height: 19px; }
.vx-tsign.is-big { width: 44px; height: 44px; }
.vx-tsign.is-big svg { width: 24px; height: 24px; }
.vx-snum { font: 600 var(--fs-base) var(--font-ui); font-variant-numeric: tabular-nums; }
.vx-mtop .vx-tsign { color: #f3ede2; }
.vx-sar { font: 400 24px/1.6 var(--font-quran); /* the same Quran script as the Ayahs on the cards (founder, 2026-11-14) */ color: color-mix(in srgb, #f3ede2 90%, transparent); text-shadow: 0 1px 12px rgba(8, 12, 30, 0.4); }
.vx-mhero small.vx-splace { display: flex; align-items: center; gap: 5px; }
.vx-splace svg { width: 13px; height: 13px; }
.vx-mbody .vx-grid { margin-top: 10px; }
.vx-tabnote { margin: 14px 0 2px; font: 600 var(--fs-s) var(--font-ui); letter-spacing: 0; color: var(--accent); } /* gold, as the list headings (founder, 2026-11-14) */
.vx-empty { display: grid; justify-items: center; gap: 8px; padding: 34px 16px 20px; text-align: center; }
.vx-empty b { margin-top: 6px; font: 500 var(--fs-base) var(--font-ui); color: var(--text); }
.vx-empty p { margin: 0; max-width: 30ch; font-size: var(--fs-s); line-height: 1.5; color: var(--text-3); }
/* a deeper shadow under the words, so they read over a bright scene (the dunes at Asr) without a box or an edge */
.vx-mtop .vx-mhero h2 { text-shadow: 0 1px 2px rgba(8, 12, 30, 0.45), 0 2px 22px rgba(8, 12, 30, 0.6); }
.vx-mtop .vx-mhero p, .vx-mtop .vx-mhero small, .vx-mtop .vx-sar { text-shadow: 0 1px 2px rgba(8, 12, 30, 0.55), 0 1px 16px rgba(8, 12, 30, 0.6); }

/* (founder, 2026-11-10) Explore's sky is 90px taller than the Prayer screen's (170 was too much, the Prayer height too
   tight): the Arabic in two lines, the English in three; the reference back at the top right */
.vx-dread { gap: 8px; margin-top: 12px; }
.vx-dar { font-size: 24px; line-height: 1.8; }
.vx-den { -webkit-line-clamp: 3; }
/* (founder, 2026-11-14: "any changes we make to one card should cascade to all explore cards") every Explore card -
   Moments, Themes, Surahs and Saved - is the one card (ayahCard() in explore.js) styled only here: change it here, never
   per tab. */
/* (founder, 2026-11-14, chosen from a side-by-side page of real Ayahs) smaller, so the Arabic sits on one line and the
   English on two: Arabic 20px, English 14px, the Moment's name and the reference 11px */
.vx-dar { font-size: 20px; }
.vx-den { font-size: 14px; }
.vx-dtop { font-size: 11px; }
.vx-dtop .vx-dref { font-size: 11px; } /* (2026-11-14: one px up from 10) */
.vx-dfoot { padding-top: 2px; }
.vx-dchip { min-height: 36px; }
.vx-skytop.vx-mtop { padding-bottom: 26px; }

/* (founder, 2026-11-14) Back is a round icon, the same as the close button; and a page's title sits right under it, so
   no empty sky between them - the scene shows below the title instead */
.vx-back { position: relative; justify-content: center; width: 44px; height: 44px; min-height: 44px; margin: 0 0 0 -6px; padding: 0; border-radius: 50%; }
.vx-back::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); transition: scale 0.12s ease-out; }
.vx-back:active::before { scale: 0.92; }
.vx-back svg { position: relative; width: 20px; height: 20px; margin-left: -2px; }
.vx-skytop.vx-mtop { justify-content: flex-start; }
.vx-mtop .vx-mhero { padding-top: 0; }
.vx-mhero h2 .vx-tmean { font-weight: 400; opacity: 0.78; }

/* One side margin for every Explore screen (founder, 2026-11-14: Surah 13's text was not in line with "Explore"): 20px,
   the same as the header's title and the swipe card, on the left and the right. The parts that run edge to edge (the
   card deck, the panel below the scene, the scrolling rows) step out by the same 20px. */
#mExplore .m-list.vx-page { padding-left: 20px; padding-right: 20px; }
#mExplore .vx-below { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
#mExplore .vx-deck { margin-left: -20px; margin-right: -20px; }
#mExplore .vx-search::before { left: -20px; right: -20px; }
#mExplore :is(.vx-shelf, .vx-chips.is-row) { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; scroll-padding: 0 20px; }
#mExplore .vx-jump { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
#mExplore .vx-search.is-bottom { left: 20px; right: 20px; }
#mExplore .m-x { margin-right: 2px; } /* its round face ends 20px from the edge, as the text does */

/* (founder, 2026-11-14) the arrow at the end of a row in a round face, as the Back and close buttons */
.vx-row .vx-chev { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }
.vx-row .vx-chev svg { width: 14px; height: 14px; margin-left: 1px; }

/* (founder, 2026-11-14) the arrow after words - "See all 51", "Scene: ..." - the same arrow as the rows, in a smaller
   round face so it sits beside the text */
.vx-dchip .vx-chev, .vx-scene-pick .vx-chev { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-left: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: currentColor; }
.vx-dchip .vx-chev svg, .vx-scene-pick .vx-chev svg { width: 12px; height: 12px; margin-left: 1px; }
.vx-scene-pick { display: inline-flex; align-items: center; }

/* (founder, 2026-11-15: every scene should melt into the next, with no ghost of the Prayer sky) The scene coming in
   fades in over the one going, which stays whole until it is covered and only then lets go - so the sky below never
   shows through half-way. The water scenes, one shader with four looks, fade through a picture of the last look
   (.vx-veil, scenes.js). And while any scene shows, the Prayer sky's own hills and mosque step aside under it: they
   wait until the scene has fully come in, and come back at once when it starts to leave (the scene still covers them). */
.vx-gl { z-index: 1; }
.vx-gl.is-shown { z-index: 2; }
.vx-gl:not(.is-shown) { transition: opacity 0.2s ease 0.9s; }
.vx-veil { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; opacity: 0; }
.vx-scene > canvas.vx-veil { transition: none; }
.vx-scene > canvas.vx-veil.is-fading { transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1); }
#mExplore .v-ls :is(.pp-hills, .pp-mist) { transition: opacity 0s; }
#mExplore .v-ls.pp-under-scene :is(.pp-hills, .pp-mist) { opacity: 0; transition: opacity 0.2s ease 0.9s; }

/* The deck's round arrows, for a computer only (founder, 2026-11-15): the same round face as every arrow in the app, at
   the card's sides, half-strength until the pointer is over the deck. A phone never shows them (it swipes). */
.vx-deckarrow { display: none; }
@media (hover: hover) and (pointer: fine) {
  .vx-deckarrow { display: grid; place-items: center; position: absolute; top: var(--vx-foot-y, 50%); z-index: 4; width: 28px; height: 28px; margin-top: -14px; padding: 0; border: 0; border-radius: 50%;
    background: rgba(6, 10, 28, 0.32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgba(243, 237, 226, 0.18); color: #fff; cursor: pointer; opacity: 0.55; transition: opacity 0.2s ease, transform 0.2s ease; }
  .vx-deckarrow svg { width: 14px; height: 14px; }
  .vx-deckarrow.is-prev { right: 58px; }
  .vx-deckarrow.is-next { right: 20px; }
  .vx-deck:hover .vx-deckarrow { opacity: 1; }
  .vx-deckarrow:hover { transform: scale(1.06); }
  .vx-deckarrow:active { transform: scale(0.94); }
  .vx-deckarrow:focus-visible { outline: 2px solid var(--gold, #ecc97a); outline-offset: 2px; opacity: 1; }
}

/* The live card's top line: where the Ayah sits, its group then its name (founder, 2026-11-16) */
.vx-dwhere { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-dparent { font-weight: 500; opacity: 0.72; }
.vx-dsep { opacity: 0.5; }
.vx-dname { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* Readable over every sky (founder, 2026-11-16: accessibility pass). On a bright day sky the ivory words measured 1.8-2.9 to
   1 against the sky, under the 4.5 to 1 that small text needs. A shaded band behind them was tried and taken out the same
   day (founder: the scenes looked washed out, with a sharp line across). Instead each word carries a soft dark halo that
   hugs its letters: the scene is untouched around the words, and the letters stand clear on any sky. */
.vx-dcard :is(.vx-dtop, .vx-dref, .vx-dar, .vx-den, .vx-dchip), .vx-mtop .vx-mhero > *, .vx-mtop .vx-back, #mExplore.vx-sky-on .m-screen-title {
  text-shadow: 0 0 1px rgba(8, 12, 30, 0.7), 0 1px 2px rgba(8, 12, 30, 0.5), 0 0 6px rgba(8, 12, 30, 0.32) !important; }
/* (2026-11-16, on the S24: the widest, softest layer of the halo read as a grey smudge around small words - taken out; the
   halo now hugs the letters) - and the small lines over a scene are solid ivory, not see-through */
.vx-mtop .vx-mhero small, .vx-dchip span { color: #f3ede2 !important; }
