/* "Learn more" slideshow pop-up (user, 2026-10-26): the upgrade pop-up's look (_upsell.html) — dunes backdrop, a framed
   real screen, dots / arrows / pause, a title and one line per slide. Markup: the learn_dialog macro in _learn_more.html;
   behaviour: static/js/aiq-learn.js. Rounded on purpose, like the upgrade pop-up (excluded in scripts/square_corners.py). */
.rl-back { position: fixed; inset: 0; z-index: var(--z-dlg); background: var(--pop-scrim); display: flex;
           align-items: center; justify-content: center; padding: 16px; animation: aiqPopFade .16s ease-out; }
.rl-back[hidden] { display: none; }
.rl-card { position: relative; width: 100%; max-width: 600px; background: var(--pop-bg); color: var(--pop-ink);
           border-radius: 20px; box-shadow: 0 24px 64px rgba(15,17,21,.28); overflow: hidden;
           font-family: 'Inter', sans-serif; font-size: 13px; animation: aiqPopRise .16s ease-out; }
html:not([data-theme="light"]) .rl-card { background: #1C1D21; box-shadow: 0 24px 64px rgba(0,0,0,.55); outline: 1px solid rgba(255,255,255,.06); }
.rl-media { position: relative; margin: 8px 8px 0; padding: 18px 22px 22px; border-radius: 14px; overflow: hidden;
            background: #232838 url('../img/upsell/bg-dunes.webp') center 40% / cover no-repeat; }
.rl-imgs { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #111216;
           box-shadow: 0 10px 30px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
.rl-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; }
.rl-img.on { opacity: 1; }
.rl-ctl { position: absolute; z-index: 2; border: 0; cursor: pointer; color: #fff; background: rgba(20,21,26,.72);
          backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: inline-flex; align-items: center; justify-content: center;
          width: 32px; height: 32px; border-radius: 10px; }
.rl-ctl:hover { background: rgba(20,21,26,.9); }
.rl-close { top: 10px; right: 10px; font-size: 15px; }
.rl-pause { bottom: 10px; right: 10px; font-size: 14px; }
.rl-nav { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 2; display: flex; align-items: center;
          gap: 2px; height: 32px; padding: 0 4px; border-radius: 10px; background: rgba(20,21,26,.72);
          backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.rl-nav button { border: 0; background: none; color: #fff; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.rl-arr { width: 26px; height: 26px; border-radius: 8px; font-size: 13px; }
.rl-arr:hover { background: rgba(255,255,255,.12); }
.rl-dot { width: 18px; height: 26px; }
.rl-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4); }
.rl-dot.on::before { background: #fff; }
.rl-body { padding: 22px 26px 22px; }
.rl-title { font-size: 21px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; margin: 0 0 6px; color: var(--pop-ink);
            display: flex; align-items: center; gap: 8px; }
.rl-pro { font-size: 11px; font-weight: 600; line-height: 18px; padding: 0 7px; border-radius: 999px; color: var(--pop-blue);
          border: 1px solid currentColor; letter-spacing: .02em; }
.rl-pro[hidden] { display: none; }
.rl-text { font-size: 14px; line-height: 1.5; color: var(--pop-sub); margin: 0; min-height: 42px; }
.rl-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.rl-btn { font: inherit; font-size: 14px; font-weight: 600; height: 40px; padding: 0 18px; border-radius: 10px; cursor: pointer;
          display: inline-flex; align-items: center; text-decoration: none; border: 1px solid var(--pop-line2); background: none; color: var(--pop-ink); }
.rl-btn:hover { background: var(--pop-hover); }
.rl-btn.pri { border: 0; background: var(--pop-blue); color: #fff; }
.rl-btn.pri:hover { background: var(--pop-blue-h); }
@media (max-width: 767px) {
  .rl-card { border-radius: 18px; }
  .rl-media { margin: 6px 6px 0; border-radius: 13px; padding: 12px 14px 16px; }
  .rl-body { padding: 18px; }
  .rl-title { font-size: 18px; }
  .rl-foot .rl-btn { flex: 1; justify-content: center; }
}
