.card {
  flex: 1;
  min-width: 0;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  --card-px: 40px;
  --card-pb: 30px;
  padding: 18px var(--card-px) var(--card-pb);
  border-radius: var(--radius-card);
  border: 1px solid var(--glass-border);
  background: var(--glass);
  background-image: var(--grain, none); /* hides colour bands in the blurred sky (js/sky.js) */
  background-size: 128px 128px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-card);
  text-align: center;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.22);
  transition: background-color 1.2s ease;
  animation: rise 0.5s var(--ease);
}

.card.is-changing { animation: rise 0.45s var(--ease); }

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* A dimmed, non-interactive glimpse of the previous/next verse, sitting behind the live card in
   #cardStack until a swipe (js/app.js) slides it partway into view. Deliberately lighter-weight
   than the real card - no audio, actions, tags or tap targets, just enough to read "a card is
   there" and which verse it is. */
.card-peek {
  position: absolute;
  inset: 0;
  z-index: 1;
  justify-content: center;
  pointer-events: none;
  /* A fixed tint rather than var(--glass) + opacity: Isha's own glass tint is deliberately very
     subtle (by design, for the sky behind it), and stacking a dimming opacity on top of an already
     faint background made the peek nearly invisible there specifically - confirmed by testing each
     sky phase, not assumed. This keeps the peek reliably visible on every phase. */
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
  animation: none;
  transform: translateX(-100%);
}
#cardPeekNext { transform: translateX(100%); }
.card-peek { visibility: hidden; }
.card-stack.is-swiping .card-peek { visibility: visible; }
.card-peek .arabic { font-size: clamp(16px, 2vw, 20px); }

.card-top {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  min-width: 0;
}

.position {
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

/* "Ayah of the Day": a gold pill on today's Ayah. Away from it, the pill rolls left and curls up into a 28px
   circle with a back arrow (the label folds away while the arrow turns, like a wheel rolling; 0.7s, slowed at the
   founder's request so it can be seen); tapping the
   circle unrolls it as it goes back to today's Ayah. Only small layout properties change, on one element. */
.day-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 28px;
  margin: 4px 0;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(242, 212, 147, 0.5);
  background: var(--pill-fill);
  color: var(--accent);
  font: 600 var(--fs-xs) var(--font-ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  cursor: default;
  transition: padding 0.7s var(--ease-out), background 0.3s ease;
}
.day-label { display: inline-block; max-width: 12em; overflow: hidden; transition: max-width 0.7s var(--ease-out), opacity 0.35s ease; }
.day-back { flex: none; width: 0; opacity: 0; rotate: 200deg; transition: width 0.7s var(--ease-out), opacity 0.35s ease, rotate 0.7s var(--ease-out); }
.day-tag.is-away { padding: 0 6px; background: rgba(242, 212, 147, 0.12); cursor: pointer; }
.day-tag.is-away .day-label { max-width: 0; opacity: 0; }
.day-tag.is-away .day-back { width: 14px; opacity: 1; rotate: 0deg; }
@media (hover: hover) and (pointer: fine) { .day-tag.is-away:hover { background: rgba(242, 212, 147, 0.22); } }
.day-tag.is-away:active { scale: 0.94; }
@media (prefers-reduced-motion: reduce) {
  .day-tag, .day-label, .day-back { transition: opacity 0.2s ease; }
}

.card-icons { display: flex; align-items: center; flex: none; margin-left: auto; margin-right: -8px; }
.card-icons .icon-btn { position: relative; width: 36px; height: 36px; }
.card-icons .icon-btn.has-note::after { content: ""; position: absolute; top: 6px; right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.bookmark-btn[aria-pressed='true'] { color: var(--accent); }
.bookmark-btn[aria-pressed='true'] svg path { fill: currentColor; }

.verse {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.arabic {
  margin: 0;
  max-width: 660px;
  font-family: var(--font-quran);
  font-size: clamp(22px, 2.9vw, 30px);
  line-height: 1.9;
}

.verse.is-long .arabic { font-size: clamp(19px, 2.5vw, 25px); line-height: 1.95; }

.w {
  display: inline;
  padding: 2px 3px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.3s ease, opacity 0.4s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
/* The word you point at (its meaning shows) turns gold, like the recited word; no box (founder, 2026-10-15).
   Only where there is a real mouse, so a tapped word on a phone does not stay lit. */
.w.is-active { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .w:hover { color: var(--accent); } }
.w.is-outside { opacity: 0.72; }

/* Recitation (option 3 of 4, 2026-10-15; was a gold-tinted box): the word being recited turns gold, the words
   still to come wait, dimmed, and words already recited are back to full white, so you can see the flow through
   the Ayah. Colour and opacity only, so no word ever moves on its line. Reduced motion: no fading. */
.w.is-reciting { color: var(--accent); opacity: 1; }
.arabic:has(.is-reciting) .w.is-reciting ~ .w { opacity: 0.5; }

.tw {
  padding: 1px 3px;
  border-radius: 6px;
  transition: color 0.3s ease, opacity 0.4s ease;
}

.tw.is-reciting { color: var(--accent); }
.transliteration:has(.is-reciting) .tw.is-reciting ~ .tw { opacity: 0.5; }
@media (prefers-reduced-motion: reduce) { .w, .tw { transition: none; } }

.transliteration {
  margin: 0;
  max-width: 580px;
  font-size: var(--fs-s);
  font-weight: 300;
  line-height: 1.6;
  color: var(--text-2);
}

.translation {
  margin: 0;
  max-width: 600px;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
}

.verse.is-long .translation { font-size: var(--fs-base); }

.reference {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- Card faces ---------- */

.card-front { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* Turning the card over: "Materialise" (chosen 2026-10-14, option 1 of 4; the founder also liked Slide across).
   The glass card stays still. The side showing blurs away (.is-flip-out, 0.22s), the faces swap (js/app.js
   setFlipped), and the other side comes into focus from a soft blur (.is-flip-in = where it starts); on the back
   the sections (commentary, revelation) arrive one after another - the same feel as the pop-ups and "From the
   Sunnah". Reduced motion: a plain fade. */
.card { --flip-out: 220; }
.card > .card-front, .card > .card-back { transition: opacity 0.45s ease, filter 0.45s ease, translate 0.55s var(--ease-out); }
.card.is-flip-out > .card-front, .card.is-flip-out > .card-back { opacity: 0; filter: blur(6px); translate: 0 -6px; transition-duration: 0.22s; transition-timing-function: ease-in; }
.card.is-flip-in > .card-front, .card.is-flip-in > .card-back { opacity: 0; filter: blur(6px); translate: 0 10px; transition: none; }
.card-back .back-top, .card-back .back-body > .section { transition: opacity 0.45s ease, filter 0.45s ease, translate 0.55s var(--ease-out); }
.card.is-flip-in .card-back .back-top, .card.is-flip-in .card-back .back-body > .section { opacity: 0; filter: blur(5px); translate: 0 10px; transition: none; }
.card-back .back-top { transition-delay: 40ms; }
.card-back .back-body > .section:nth-child(1) { transition-delay: 160ms; }
.card-back .back-body > .section:nth-child(2) { transition-delay: 240ms; }
.card-back .back-body > .section:nth-child(3) { transition-delay: 320ms; }
.card-back .back-body > .section:nth-child(4) { transition-delay: 400ms; }
.card-back .back-body > .section:nth-child(5) { transition-delay: 480ms; }
.card-back .back-body > .section:nth-child(6) { transition-delay: 560ms; }
@media (prefers-reduced-motion: reduce) {
  .card > .card-front, .card > .card-back, .card-back .back-top, .card-back .back-body > .section { filter: none !important; translate: none !important; }
}

.card-back { width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: left; text-shadow: none; }
.back-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
.back-title { margin: 0; font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.card-back .icon-btn { width: 36px; height: 36px; }
.card-back .section { padding: 14px 0; }
.card-back .section h3 { margin-bottom: 8px; font-size: var(--fs-xs); color: var(--accent); }
/* Commentary uses the card's full width (founder, 2026-10-13: the 65ch cap left a ragged gap on the right). */
.card-back .section p { font-size: var(--fs-base); line-height: 1.65; max-width: none; }
.card-back .section .source { font-size: var(--fs-s); }
.card-back .rev-timeline { max-width: none; }
.back-reflect .private { margin-left: 6px; font-weight: 400; letter-spacing: 0.02em; text-transform: none; color: var(--text-3); }
.back-reflect textarea {
  width: 100%;
  resize: vertical;
  min-height: 110px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  font: 400 var(--fs-base)/1.55 var(--font-ui);
}
.back-reflect textarea::placeholder { color: var(--text-3); }
.card-back .reflect-list li { padding: 12px 14px; font-size: var(--fs-base); }


.action {
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: var(--fs-m);
  font-weight: 500;
  cursor: pointer;
  text-shadow: none;
  transition: background 0.2s, border-color 0.2s;
}
@media (hover: hover) and (pointer: fine) { .action:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.36); } }
.action[aria-expanded='true'] { background: rgba(255, 255, 255, 0.18); }
.action-primary { background: rgba(255, 255, 255, 0.94); color: var(--ink); border-color: transparent; }
@media (hover: hover) and (pointer: fine) { .action-primary:hover { background: #fff; } }
.action-wide { width: 100%; }

.notes-status { min-height: 18px; margin: 6px 2px 0; font-size: var(--fs-s); color: var(--text-3); }

.empty { max-width: 380px; padding: 40px 0; }
.empty-title { margin: 0 0 8px; font-size: var(--fs-xl); font-weight: 600; }
.empty-body { margin: 0 0 20px; font-size: var(--fs-base); line-height: 1.6; color: var(--text-2); }

@media (max-width: 640px) {
  .card { --card-px: 16px; --card-pb: 22px; padding: 10px var(--card-px) var(--card-pb); border-radius: 22px; gap: 14px; }
  .verse { gap: 14px; }
  .card-icons { margin-right: -6px; }
  .card-front { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .card, .card.is-changing { animation: none; }
}

/* ---------- Whole-Quran additions ---------- */

.card.is-loading .verse { opacity: 0.35; transition: opacity 0.2s; }

.verse.is-long .arabic, .verse.is-xlong .arabic { max-width: 720px; }
.verse.is-xlong .arabic { font-size: clamp(17px, 2.1vw, 20px); line-height: 2; }
.verse.is-xlong .translation { font-size: var(--fs-m); line-height: 1.65; }
.verse.is-xlong .transliteration { font-size: var(--fs-s); }

.pillar-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }

.pillar-tag {
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(242, 212, 147, 0.4);
  background: var(--pill-fill);
  color: var(--accent);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
  cursor: pointer;
  text-shadow: none;
  transition: background 0.2s;
}
@media (hover: hover) and (pointer: fine) { .pillar-tag:hover { background: rgba(242, 212, 147, 0.22); } }

/* Compact controls on phones */
@media (max-width: 640px) {
  .action { min-height: 36px; padding: 0 13px; font-size: var(--fs-s); }
  .day-tag { padding: 4px 10px; }
}

.pillar-more { min-width: 26px; padding: 0 8px; justify-content: center; background: var(--pill-fill); font-weight: 600; font-family: inherit; }
.back-reflect { border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* The day tag (with its 4px margin) and the icon buttons are both 36px tall, so they share a row and
   line up; with no day tag the position label gets the same 36px so it lines up with the icons too. */
.card-meta:not(.has-day) .position { display: flex; align-items: center; min-height: 36px; }
.rev-lead { display: block; }
.rev-lead .rev-icon { display: inline-block; width: 18px; height: 18px; margin: 0 6px 0 0; vertical-align: -3px; color: var(--accent); } /* in the line, not beside it: no indent */

/* ---------- The Quran rail (bottom of the card) ---------- */

.rail {
  width: calc(100% + 2 * var(--card-px));
  margin: 6px calc(-1 * var(--card-px)) calc(-1 * var(--card-pb));
  padding: 14px 22px 16px;
  border-top: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 0 calc(var(--radius-card) - 1px) calc(var(--radius-card) - 1px);
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: none;
}
.rail-arrow {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .rail-arrow:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.4); } }
.rail-track { position: relative; flex: 1; min-width: 0; height: 36px; cursor: pointer; touch-action: none; outline: none; }
.rail-track:focus-visible { box-shadow: 0 0 0 2px var(--accent); border-radius: 8px; }
.rail-line { position: absolute; left: 0; right: 0; top: 16px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); }
.rail-ticks { position: absolute; left: 0; right: 0; top: 12px; height: 12px; pointer-events: none; }
.rail-ticks i { position: absolute; top: 0; width: 1px; height: 12px; background: rgba(255, 255, 255, 0.28); }
.rail-fill { position: absolute; left: 0; top: 16px; height: 4px; width: 0; border-radius: 999px; background: rgba(242, 212, 147, 0.6); pointer-events: none; }
.rail-handle { position: absolute; top: 11px; left: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18); pointer-events: none; }
.rail-today { position: absolute; top: 10px; left: 0; width: 16px; height: 16px; margin-left: -8px; padding: 0; border: 0; background: transparent; color: var(--accent); cursor: pointer; }
.rail-today svg { width: 100%; height: 100%; display: block; }
.rail-tip {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 0;
  transform: translateX(-50%);
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: var(--panel-solid); /* it sits inside the player bar, which already blurs */
  font-size: var(--fs-s);
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  box-shadow: var(--panel-shadow);
}
.rail-tip.is-on { opacity: 1; }
.rail-num {
  flex: none;
  min-width: 112px;
  padding: 3px 0;
  border: 0;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.45);
  background: transparent;
  color: var(--text);
  font-size: var(--fs-s);
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
@media (max-width: 480px) {
  .rail { padding: 12px 14px 14px; gap: 8px; }
  .rail-num { display: none; }
}

/* Topic pills opening with "+N" (option 3 of 4, 2026-10-14; was a quick fade). The button rolls like the
   Ayah of the Day pill: the number slides away and the plus turns into a cross (tap it to fold back). The
   new pills come into focus one after another, like From the Sunnah; the pills that stay glide to their
   new places (js/app.js glideTags). --tag-out must match the leaving fade: the script waits for it. */
.pillar-tags { --tag-out: 180ms; --tag-glide: 420ms; }
.pillar-more { position: relative; z-index: 1; display: inline-flex; align-items: center; transition: background 0.2s, padding 0.7s var(--ease-out); }
.pillar-more > span { display: inline-block; }
.pillar-more .pm-plus { transition: rotate 0.7s var(--ease-out); }
.pillar-more .pm-n { max-width: 2em; overflow: hidden; transition: max-width 0.7s var(--ease-out), opacity 0.35s ease; }
.pillar-more.is-open { padding: 0 7px; }
.pillar-more.is-open .pm-plus { rotate: 135deg; }
.pillar-more.is-open .pm-n { max-width: 0; opacity: 0; }
.pillar-extra { transition: background 0.2s, opacity 0.45s ease, translate 0.6s var(--ease-out), scale 0.6s var(--ease-out), filter 0.45s ease;
  transition-delay: 0s, calc(60ms + var(--i, 0) * 90ms), calc(60ms + var(--i, 0) * 90ms), calc(60ms + var(--i, 0) * 90ms), calc(60ms + var(--i, 0) * 90ms); }
.pillar-extra.is-entering { opacity: 0; translate: 0 6px; scale: 0.94; filter: blur(4px); transition: none; }
.pillar-extra.is-leaving { opacity: 0; filter: blur(4px); scale: 0.96; transition: opacity 0.18s ease-in, filter 0.18s ease-in, scale 0.18s ease-in; }
@media (prefers-reduced-motion: reduce) {
  .pillar-extra.is-entering, .pillar-extra.is-leaving { translate: none; scale: none; filter: none; }
  .pillar-more .pm-plus { transition: none; }
}

/* Reading options (js/reading.js): hide a layer, and the text size (0.9 / 1 / 1.15). */
body.hide-ar .verse .arabic, body.hide-tr .verse .transliteration, body.hide-en .verse .translation { display: none; }
/* Text size (2026-10-15, fixed after the type scale): the Arabic scales smoothly (0.9 / 1 / 1.15); the
   transliteration and English step along the type scale instead of being multiplied, so Small never drops below
   11px and every size is one of the scale's. Very long Ayahs keep their one step smaller English. */
.verse .arabic { zoom: var(--read-zoom, 1); }
:root[data-read-size='s'] .verse .transliteration { font-size: var(--fs-xs); }
:root[data-read-size='l'] .verse .transliteration { font-size: var(--fs-m); }
:root[data-read-size='s'] .verse .translation { font-size: var(--fs-m); }
:root[data-read-size='l'] .verse .translation { font-size: var(--fs-l); }
:root[data-read-size='s'] .verse.is-xlong .translation { font-size: var(--fs-s); }
:root[data-read-size='l'] .verse.is-xlong .translation { font-size: var(--fs-base); }

/* Reading options: the "Aa" button on the card and its pop-up (chosen 2026-10-14, option 1 of 4, like Apple
   Books). The pop-up lives OUTSIDE the card (index.html) - inside, the card's blur stopped it frosting and the
   card stack's edge could cut it off - and js/reading.js places it just under the icon row, right edges lined up. */
.rd-pop { position: fixed; left: auto; width: 280px; max-width: calc(100vw - 32px); padding: 12px 14px; display: grid; gap: 4px; text-align: left; text-shadow: none; z-index: 25; transform-origin: top right; }
.rd-head { margin: 0 0 4px; font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.rd-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; font-size: var(--fs-base); color: var(--text); }
.rd-row + .rd-row { border-top: 1px solid rgba(255, 255, 255, 0.07); }
/* An iOS-style switch: a track with a knob that slides across. */
.rd-switch { position: relative; flex: none; width: 44px; height: 26px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.18); cursor: pointer; transition: background 0.2s ease; }
.rd-switch::before { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); transition: translate 0.25s var(--ease-out); }
.rd-switch[aria-pressed='true'] { background: var(--accent); }
.rd-switch[aria-pressed='true']::before { translate: 18px 0; }
.rd-switch[aria-disabled] { opacity: 0.55; cursor: not-allowed; }
.rd-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.rd-seg button { min-width: 38px; height: 30px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: 600 var(--fs-base) var(--font-ui); cursor: pointer; transition: background 0.15s, color 0.15s; }
.rd-seg button[aria-pressed='true'] { background: rgba(255, 255, 255, 0.94); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .rd-switch::before { transition: none; } }

/* A search list's name on the card ("1 of 51 · When someone has passed away"), with a small x that goes back
   to the whole Quran at the same Ayah. Long names are cut with "..." so the line never wraps. */
.position { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; white-space: nowrap; }
.list-name { overflow: hidden; text-overflow: ellipsis; margin-left: 4px; color: var(--text-2); }
.list-leave { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: 6px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--text-2); cursor: pointer; transition: background 0.15s, color 0.15s; }
@media (hover: hover) and (pointer: fine) { .list-leave:hover { background: rgba(255, 255, 255, 0.16); color: var(--text); } }
.card-meta { flex-wrap: nowrap; }

/* Small outlined button (Copy text in "From the Sunnah"). */
.hd-btn { padding: 5px 12px; border: 1px solid var(--panel-border); border-radius: 999px; background: transparent; color: var(--text); font: 500 var(--fs-s) var(--font-ui); cursor: pointer; transition: background 0.15s; }
@media (hover: hover) and (pointer: fine) { .hd-btn:hover { background: rgba(255, 255, 255, 0.08); } }

/* From the Sunnah (js/sunnah.js): each Hadith Ibn Kathir cites - who narrated it, Arabic, English, his note. */
.sn-list { display: grid; gap: 18px; text-align: left; }
.sn-item { display: grid; gap: 8px; }
.sn-item + .sn-item { padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.sn-lead { margin: 0; font-size: var(--fs-m); line-height: 1.55; color: var(--text-3); }
.sn-ar { margin: 0; font-family: var(--font-arabic); font-size: var(--fs-ar-m); line-height: 2; text-align: right; color: var(--text); }
.sn-en { margin: 0; font-size: var(--fs-base); line-height: 1.7; color: var(--text); }
.sn-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sn-note { font-size: var(--fs-s); line-height: 1.5; color: var(--text-2); font-style: italic; }
.sn-source { margin: 0; font-size: var(--fs-s); line-height: 1.5; color: var(--text-3); }

/* "From the Sunnah" folded under the Ayah. Opening: the panel grows (grid rows 0fr -> 1fr, so it animates to
   its real height), then each Hadith comes into focus from a soft blur and settles, one after another - the
   same "materialise" feel as the pop-ups. Closing is quicker. Reduced motion: a plain fade. */
.sn-fold { width: 100%; display: grid; justify-items: center; text-align: left; }
.sn-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid rgba(242, 212, 147, 0.35); border-radius: 999px; background: var(--pill-fill); color: var(--accent); font: 600 var(--fs-xs) var(--font-ui); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: background 0.2s ease, scale 0.12s ease-out; }
@media (hover: hover) and (pointer: fine) { .sn-toggle:hover { background: rgba(242, 212, 147, 0.1); } }
.sn-toggle:active { scale: 0.97; }
.sn-toggle .nav-chev { transition: rotate 0.45s var(--ease-out); }
.sn-fold.is-open .sn-toggle .nav-chev { rotate: 90deg; }
.sn-panel { width: 100%; display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease-out); }
.sn-fold.is-open .sn-panel { grid-template-rows: 1fr; transition-duration: 0.6s; }
.sn-panel-inner { min-height: 0; overflow: hidden; }
.sn-panel-inner .sn-list { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.sn-panel .sn-item, .sn-panel .sn-source { opacity: 0; translate: 0 10px; filter: blur(4px);
  transition: opacity 0.2s ease, translate 0.2s ease, filter 0.2s ease; }
.sn-fold.is-open .sn-item, .sn-fold.is-open .sn-source { opacity: 1; translate: 0 0; filter: blur(0);
  transition: opacity 0.5s ease, translate 0.6s var(--ease-out), filter 0.5s ease;
  transition-delay: calc(0.15s + var(--i, 0) * 0.09s); }
.sn-fold.is-open .sn-source { transition-delay: 0.45s; }
@media (prefers-reduced-motion: reduce) {
  .sn-panel { transition: none; }
  .sn-panel .sn-item, .sn-panel .sn-source { translate: none; filter: none; }
}

