/* Wisdom frame — single canvas hosting two alternating modes (ayah / quote).
   Each mode reuses its original component styles (quran-content / quote-content);
   wisdom.css owns the stage and the show/hide of the modes. */

.wisdom-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

/* A quiet clock pinned to the top — reserve its strip so the centered ayah /
   quote below never rides under it. */
.wisdom-now {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-home-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--splash-text);
  text-shadow: var(--splash-shadow);
  font-feature-settings: var(--feat-tnum);
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
  pointer-events: none;
}

.wisdom-now-period {
  font-family: var(--font-home-label);
  font-size: 0.46em;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-left: 3px;
  color: var(--splash-text-3);
  text-transform: lowercase;
}

.wisdom-mode {
  position: absolute;
  inset: 30px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 480ms var(--ease-in-out);
}

#frame-wisdom[data-mode="ayah"] .wisdom-mode-ayah,
#frame-wisdom[data-mode="quote"] .wisdom-mode-quote {
  opacity: 1;
  pointer-events: auto;
}
