/* ==============================================================
   QURAN & HADITH EXPERIENCE (qx-)
   Shared by the Quran reader, audio, memorisation, Quranic Arabic, Noorani Qaida, recitation teachers and the
   hadith library: the deep-green jewel hero with its "+" lattice and gold, the area switcher that joins the
   pages up, panels, progress rings, chips, "what next" cards and the motion layer (quran-hadith.js).
   Only transform and opacity are animated; everything stands still for prefers-reduced-motion.
   ============================================================== */

/* ---------- Hero ---------- */
.qx-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: var(--ip-jewel);
  padding-block: clamp(1.35rem, 1rem + 1.6vw, 2.25rem) clamp(3.4rem, 2.8rem + 2vw, 4.4rem);
}
/* A large eight-point star turning slowly at the end of the hero, in gold. */
.qx-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline-end: clamp(-150px, -7vw, -50px);
  top: 50%;
  width: clamp(260px, 32vw, 460px);
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f1d59a, #e6b85c 55%, rgba(46, 184, 114, .8));
  opacity: .16;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M100 8l26 66 66 26-66 26-26 66-26-66-66-26 66-26z'/%3E%3Cpath d='M35 35l65 27 65-27-27 65 27 65-65-27-65 27 27-65z'/%3E%3Ccircle cx='100' cy='100' r='22'/%3E%3Ccircle cx='100' cy='100' r='60'/%3E%3Ccircle cx='100' cy='100' r='92' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M100 8l26 66 66 26-66 26-26 66-26-66-66-26 66-26z'/%3E%3Cpath d='M35 35l65 27 65-27-27 65 27 65-65-27-65 27 27-65z'/%3E%3Ccircle cx='100' cy='100' r='22'/%3E%3Ccircle cx='100' cy='100' r='60'/%3E%3Ccircle cx='100' cy='100' r='92' stroke-width='1.2'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  transform: translateY(-50%);
  animation: qx-star 180s linear infinite;
  pointer-events: none;
}
/* A soft gold horizon under the hero, so the lattice fades into the page. */
.qx-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(230, 184, 92, .55), transparent);
}
@keyframes qx-star {
  to { transform: translateY(-50%) rotate(360deg); }
}
.qx-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 992px) {
  .qx-hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: 2.5rem; }
  .qx-hero--wide .qx-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
.qx-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .2rem .45rem;
  margin: 0 0 .85rem;
  padding: 0;
  list-style: none;
  font-size: .8rem;
  color: rgba(255, 255, 255, .72);
}
.qx-crumbs li + li::before {
  content: "/";
  margin-inline-end: .45rem;
  color: rgba(255, 255, 255, .4);
}
.qx-crumbs a {
  color: rgba(255, 255, 255, .86);
  text-decoration: none;
}
.qx-crumbs a:hover,
.qx-crumbs a:focus-visible {
  color: #fff;
  text-decoration: underline;
}
.qx-crumbs [aria-current] { color: #fff; font-weight: 600; }
.qx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .7rem;
  padding: .28rem .75rem;
  border: 1px solid rgba(241, 213, 154, .45);
  border-radius: var(--ip-radius-pill);
  background: rgba(230, 184, 92, .12);
  color: #f6dfa8;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}
html[lang="ar"] .qx-eyebrow,
html[lang="ur"] .qx-eyebrow { letter-spacing: 0; font-size: .86rem; }
.qx-title {
  margin: 0 0 .5rem;
  font-family: var(--ip-font-display);
  font-size: clamp(1.85rem, 1.35rem + 2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: #fff;
  text-wrap: balance;
}
.qx-title em {
  font-style: normal;
  color: #f1d59a;
}
html[lang="ar"] .qx-title { font-family: var(--ip-font-arabic); font-weight: 700; line-height: 1.4; letter-spacing: 0; }
html[lang="ur"] .qx-title { font-family: var(--ip-font-urdu); font-weight: 700; line-height: 1.9; letter-spacing: 0; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); }
.qx-title-ar {
  display: block;
  margin-bottom: .2rem;
  font-family: var(--ip-font-quran);
  font-size: clamp(1.45rem, 1.15rem + 1.2vw, 2.1rem);
  font-weight: 400;
  line-height: 1.6;
  color: #f1d59a;
  letter-spacing: 0;
}
.qx-lead {
  max-width: 40rem;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, .86);
  text-wrap: pretty;
}
.qx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.2rem;
}
.qx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 44px;
  padding: .55rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--ip-radius-btn);
  background: linear-gradient(135deg, #f1d59a, #e6b85c);
  color: #2a1c00;
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 24px -14px rgba(230, 184, 92, .9);
  transition: transform .2s var(--ip-ease), box-shadow .2s var(--ip-ease), background-color .2s;
}
.qx-btn:hover,
.qx-btn:focus-visible { color: #2a1c00; transform: translateY(-2px); box-shadow: 0 16px 28px -14px rgba(230, 184, 92, 1); }
.qx-btn--ghost {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
  box-shadow: none;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.qx-btn--ghost:hover,
.qx-btn--ghost:focus-visible { color: #fff; background: rgba(255, 255, 255, .16); box-shadow: none; }
.qx-btn--green {
  background: linear-gradient(140deg, var(--ip-area), var(--ip-area-fill));
  color: #fff;
  box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--ip-area-fill) 90%, transparent);
}
.qx-btn--green:hover,
.qx-btn--green:focus-visible { color: #fff; }
.qx-btn--soft {
  background: var(--ip-surface);
  border-color: var(--ip-line-strong);
  color: var(--ip-ink-2);
  box-shadow: none;
}
.qx-btn--soft:hover,
.qx-btn--soft:focus-visible { color: var(--ip-area-strong); border-color: var(--ip-area); background: var(--ip-area-soft); box-shadow: none; }
.qx-btn--sm { min-height: 36px; padding: .35rem .85rem; font-size: .82rem; }
.qx-kbd {
  display: inline-block;
  min-width: 1.4em;
  padding: .05rem .35rem;
  border: 1px solid currentColor;
  border-radius: 5px;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  opacity: .65;
}

/* Hero facts: small glass tiles */
.qx-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.qx-facts li {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .7rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--ip-radius-pill);
  background: rgba(255, 255, 255, .07);
  color: rgba(255, 255, 255, .9);
  font-size: .8rem;
  font-weight: 600;
}
.qx-facts strong { color: #fff; font-variant-numeric: tabular-nums; }
.qx-facts i { color: #f1d59a; }

/* The glass card on the hero's other side: continue reading, today's work, a featured item. */
.qx-glass {
  position: relative;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05));
  color: #fff;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.qx-glass__label {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .55rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #f1d59a;
}
html[lang="ar"] .qx-glass__label,
html[lang="ur"] .qx-glass__label { letter-spacing: 0; font-size: .85rem; }
.qx-glass__title { margin: 0; font-size: 1.15rem; font-weight: 700; color: #fff; }
.qx-glass__text { margin: .2rem 0 0; font-size: .86rem; color: rgba(255, 255, 255, .78); }
.qx-glass .qx-ring__track { stroke: rgba(255, 255, 255, .16); }
.qx-glass .qx-ring__bar { stroke: #f1d59a; }
.qx-glass .qx-ring__label { color: #fff; }

/* ---------- Area switcher: one strip that joins every Quran and hadith page ---------- */
.qx-areanav {
  position: relative;
  z-index: 3;
  margin-top: clamp(-2.6rem, -2rem - 1vw, -2.1rem);
}
.qx-areanav__box {
  display: flex;
  gap: .35rem;
  padding: .45rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  border: 1px solid var(--ip-line);
  border-radius: 20px;
  background: var(--ip-surface);
  box-shadow: var(--ip-shadow-md);
}
.qx-areanav__box::-webkit-scrollbar { display: none; }
.qx-areanav__item {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .4rem .85rem;
  border-radius: 14px;
  color: var(--ip-ink-2);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: background-color .2s var(--ip-ease), color .2s var(--ip-ease), transform .2s var(--ip-ease);
}
.qx-areanav__item:hover,
.qx-areanav__item:focus-visible { color: var(--ip-area-strong); background: var(--ip-area-soft); }
.qx-areanav__icon {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 1rem;
  background: var(--qx-tile-bg, var(--ip-tile-emerald-bg));
  color: var(--qx-tile-fg, var(--ip-tile-emerald-fg));
  transition: transform .3s var(--ip-spring);
}
.qx-areanav__item:hover .qx-areanav__icon { transform: rotate(-8deg) scale(1.08); }
.qx-areanav__item[aria-current="page"] {
  color: #fff;
  background: linear-gradient(140deg, var(--ip-green-500), var(--ip-green-700));
  box-shadow: 0 10px 20px -12px rgba(16, 80, 58, .8);
}
.qx-areanav__item[aria-current="page"] .qx-areanav__icon { background: rgba(255, 255, 255, .18); color: #fff; }
body.dark .qx-areanav__item[aria-current="page"] { background: linear-gradient(140deg, #1f7a63, #10503a); }
.qx-tile--emerald { --qx-tile-bg: var(--ip-tile-emerald-bg); --qx-tile-fg: var(--ip-tile-emerald-fg); }
.qx-tile--gold { --qx-tile-bg: var(--ip-tile-gold-bg); --qx-tile-fg: var(--ip-tile-gold-fg); }
.qx-tile--sky { --qx-tile-bg: var(--ip-tile-sky-bg); --qx-tile-fg: var(--ip-tile-sky-fg); }
.qx-tile--violet { --qx-tile-bg: var(--ip-tile-violet-bg); --qx-tile-fg: var(--ip-tile-violet-fg); }
.qx-tile--rose { --qx-tile-bg: var(--ip-tile-rose-bg); --qx-tile-fg: var(--ip-tile-rose-fg); }

/* ---------- Panels and section heads ---------- */
.qx-page { padding-block: 1.25rem 3rem; }
.qx-panel {
  position: relative;
  padding: clamp(1rem, .8rem + .8vw, 1.4rem);
  border: 1px solid var(--ip-line);
  border-radius: 20px;
  background: var(--ip-surface);
  box-shadow: var(--ip-shadow-sm);
}
.qx-panel + .qx-panel { margin-top: 1rem; }
.qx-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .25rem .75rem;
  margin-bottom: .9rem;
}
.qx-head__title {
  margin: 0;
  font-family: var(--ip-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ip-ink);
}
html[lang="ar"] .qx-head__title { font-family: var(--ip-font-arabic); }
html[lang="ur"] .qx-head__title { font-family: var(--ip-font-urdu); line-height: 1.9; }
.qx-head__lead { margin: 0; font-size: .86rem; color: var(--ip-muted); }
.qx-head__end { margin-inline-start: auto; }

/* ---------- Chips and segmented controls ---------- */
.qx-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.qx-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 34px;
  padding: .25rem .8rem;
  border: 1px solid var(--ip-line-strong);
  border-radius: var(--ip-radius-pill);
  background: var(--ip-surface);
  color: var(--ip-ink-2);
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ip-ease), color .2s var(--ip-ease), border-color .2s var(--ip-ease), transform .2s var(--ip-ease);
}
.qx-chip:hover,
.qx-chip:focus-visible { border-color: var(--ip-area); color: var(--ip-area-strong); background: var(--ip-area-soft); }
.qx-chip.is-on,
.qx-chip[aria-pressed="true"],
.qx-chip[aria-current="page"] { background: var(--ip-area-fill); border-color: var(--ip-area-fill); color: #fff; }
.qx-chip__count {
  padding: 0 .4rem;
  border-radius: var(--ip-radius-pill);
  background: color-mix(in srgb, currentColor 14%, transparent);
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
}
.qx-hero .qx-chip { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); color: #fff; }
.qx-hero .qx-chip:hover,
.qx-hero .qx-chip:focus-visible { background: rgba(255, 255, 255, .18); color: #fff; }

.qx-seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 14px;
  background: var(--ip-surface-2);
}
.qx-seg button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-height: 36px;
  padding: .3rem .5rem;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ip-muted);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s var(--ip-ease), color .2s var(--ip-ease), box-shadow .2s;
}
.qx-seg button:hover { color: var(--ip-ink); }
.qx-seg button[aria-selected="true"],
.qx-seg button[aria-pressed="true"] { background: var(--ip-surface); color: var(--ip-area-strong); box-shadow: var(--ip-shadow-sm); }

/* ---------- Progress ring ---------- */
.qx-ring {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--qx-ring-size, 64px);
  height: var(--qx-ring-size, 64px);
  flex-shrink: 0;
}
.qx-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
[dir="rtl"] .qx-ring svg { transform: rotate(-90deg) scaleY(-1); }
.qx-ring__track { fill: none; stroke: var(--ip-surface-3); stroke-width: 4; }
.qx-ring__bar {
  fill: none;
  stroke: var(--ip-area);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--qx-p, 0) * 100);
  transition: stroke-dashoffset 1.1s var(--ip-ease);
}
.qx-ring--gold .qx-ring__bar { stroke: var(--ip-saffron-500); }
.qx-ring:not([style*="--qx-p"]) .qx-ring__bar,
.qx-ring.is-zero .qx-ring__bar { opacity: 0; }
.qx-ring__label {
  position: relative;
  font-size: .82rem;
  font-weight: 800;
  color: var(--ip-ink);
  font-variant-numeric: tabular-nums;
}
.qx-ring__label small { font-size: .62rem; font-weight: 700; opacity: .7; }

/* ---------- Bar ---------- */
.qx-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--ip-surface-3);
}
.qx-bar > span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ip-area-fill), var(--ip-turquoise-500));
  transform-origin: left center;
  transform: scaleX(var(--qx-p, 0));
  transition: transform .9s var(--ip-ease);
}
[dir="rtl"] .qx-bar > span { transform-origin: right center; }

/* ---------- Search field on a panel or hero ---------- */
.qx-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}
.qx-search > i {
  position: absolute;
  inset-inline-start: .95rem;
  color: var(--ip-area-strong);
  pointer-events: none;
}
.qx-search input {
  width: 100%;
  min-height: 46px;
  padding: .5rem 1rem;
  padding-inline-start: 2.6rem;
  border: 1px solid var(--ip-line-strong);
  border-radius: var(--ip-radius-pill);
  background: var(--ip-surface);
  color: var(--ip-ink);
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.qx-search input:focus { outline: none; border-color: var(--ip-area); box-shadow: 0 0 0 4px var(--ip-area-soft); }
.qx-search input::placeholder { color: var(--ip-muted); }

/* ---------- "What next" cards ---------- */
.qx-next {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.qx-next__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  height: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--ip-line);
  border-radius: 16px;
  background: var(--ip-surface);
  color: var(--ip-ink);
  text-decoration: none;
  transition: transform .25s var(--ip-ease), box-shadow .25s var(--ip-ease), border-color .25s var(--ip-ease);
}
.qx-next__card:hover,
.qx-next__card:focus-visible { transform: translateY(-3px); box-shadow: var(--ip-shadow-md); border-color: color-mix(in srgb, var(--ip-area) 40%, var(--ip-line)); color: var(--ip-ink); }
.qx-next__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  font-size: 1.15rem;
  background: var(--qx-tile-bg, var(--ip-tile-emerald-bg));
  color: var(--qx-tile-fg, var(--ip-tile-emerald-fg));
}
.qx-next__title { display: block; font-size: .92rem; font-weight: 700; line-height: 1.3; }
.qx-next__text { display: block; margin-top: .1rem; font-size: .78rem; color: var(--ip-muted); line-height: 1.4; }
.qx-next__go { margin-inline-start: auto; color: var(--ip-area-strong); transition: transform .25s var(--ip-ease); }
.qx-next__card:hover .qx-next__go { transform: translateX(3px); }
[dir="rtl"] .qx-next__go { transform: scaleX(-1); }
[dir="rtl"] .qx-next__card:hover .qx-next__go { transform: scaleX(-1) translateX(3px); }

/* ---------- Empty / loading ---------- */
.qx-empty {
  display: grid;
  justify-items: center;
  gap: .4rem;
  padding: 2rem 1rem;
  border: 1px dashed var(--ip-line-strong);
  border-radius: 18px;
  text-align: center;
  color: var(--ip-muted);
}
.qx-empty i { font-size: 1.8rem; color: var(--ip-accent); }
.qx-empty p { margin: 0; max-width: 28rem; }

/* ---------- Motion layer (quran-hadith.js adds .qx-js on <html>) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .qx-js [data-qx-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s var(--ip-ease), transform .6s var(--ip-ease);
    transition-delay: calc(var(--qx-i, 0) * 45ms);
  }
  .qx-js [data-qx-reveal].is-in { opacity: 1; transform: none; }
  [data-qx-tilt] {
    transform: perspective(900px) rotateX(var(--qx-rx, 0deg)) rotateY(var(--qx-ry, 0deg));
    transition: transform .35s var(--ip-ease);
    will-change: transform;
  }
}
@media (prefers-reduced-motion: reduce) {
  .qx-hero::before { animation: none; }
  .qx-ring__bar,
  .qx-bar > span { transition: none; }
}
/* A short burst of gold stars when something is finished. */
.qx-burst {
  position: fixed;
  z-index: 2000;
  width: 10px;
  height: 10px;
  pointer-events: none;
  background: var(--qx-burst, #e6b85c);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: qx-burst .9s var(--ip-ease) forwards;
}
@keyframes qx-burst {
  from { opacity: 1; transform: translate(0, 0) scale(.6) rotate(0); }
  to { opacity: 0; transform: translate(var(--qx-dx), var(--qx-dy)) scale(1.3) rotate(160deg); }
}

/* A live toast used by the area's scripts. */
.qx-toast {
  position: fixed;
  z-index: 1300;
  inset-inline: 0;
  bottom: 1.25rem;
  width: fit-content;
  max-width: calc(100% - 2rem);
  margin-inline: auto;
  padding: .6rem 1rem;
  border-radius: 14px;
  background: #0d3b29;
  color: #fff;
  font-size: .88rem;
  font-weight: 600;
  box-shadow: var(--ip-shadow-lg);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s var(--ip-ease), transform .25s var(--ip-ease);
  pointer-events: none;
}
.qx-toast.is-on { opacity: 1; transform: none; }
body.dark .qx-toast { background: #1f7a63; }

@media (max-width: 575.98px) {
  .qx-hero { padding-block: 1rem 3.1rem; }
  .qx-hero::before { width: 240px; inset-inline-end: -100px; top: 28%; opacity: .12; }
  .qx-title { font-size: 1.65rem; }
  .qx-lead { font-size: .92rem; line-height: 1.55; }
  .qx-crumbs { margin-bottom: .55rem; }
  .qx-eyebrow { margin-bottom: .5rem; }
  .qx-actions { gap: .45rem; margin-top: .9rem; }
  .qx-actions .qx-btn { min-height: 40px; padding: .45rem .8rem; font-size: .85rem; }
  .qx-facts { display: none; }
  .qx-glass { padding: .85rem .9rem; border-radius: 18px; }
  .qx-areanav__item { flex: 0 0 auto; min-height: 44px; padding: .35rem .7rem; font-size: .84rem; }
  .qx-areanav__icon { width: 28px; height: 28px; }
}
@media print {
  .qx-hero,
  .qx-areanav,
  .qx-next { display: none !important; }
}
.qx-areanav--flat { margin-top: 1rem; }
