/* portal/training — self-playing walkthrough. The canvas is a fixed 1280x720
   logical surface scaled to the stage, so slides and snapshots share coordinates. */
.tr-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: #0f172a; border: 1px solid var(--brand-border); }
.tr-canvas { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; overflow: hidden; background: #f4f6f3; }
.tr-view { position: absolute; inset: 0; width: 1280px; height: 720px; border: 0; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s linear .35s; background: #f4f6f3; pointer-events: none; }
.tr-view.on { opacity: 1; visibility: visible; transition: opacity .35s ease; }

/* Spotlight: the box-shadow dims everything outside the highlighted element. */
.tr-spot { position: absolute; left: 0; top: 0; width: 0; height: 0; border-radius: 12px; opacity: 0; pointer-events: none;
    box-shadow: 0 0 0 3px var(--brand-primary), 0 0 0 3000px rgba(15, 23, 42, .42);
    transition: opacity .3s ease, left .45s ease, top .45s ease, width .45s ease, height .45s ease; }
.tr-spot.on { opacity: 1; }
.tr-spot.jump { transition: opacity .3s ease; }

.tr-ripple { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; background: var(--brand-primary); opacity: 0; pointer-events: none; }
.tr-ripple.go { animation: tr-ripple .7s ease-out; }
@keyframes tr-ripple { 0% { opacity: .75; transform: scale(.4); } 100% { opacity: 0; transform: scale(4.5); } }

.tr-cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15, 23, 42, .45); }
.tr-cover[hidden] { display: none; }

.tr-caption { min-height: 4.4em; margin-top: .75rem; padding: .75rem 1rem; border-radius: 10px; background: var(--brand-primary-light); color: var(--brand-navy); font-size: 1.02rem; line-height: 1.45; font-weight: 600; }

.tr-progress { display: flex; gap: 3px; margin-top: .75rem; }
.tr-progress button { flex: 1 1 0; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #e2e8f3; }
.tr-progress button.done { background: #9db3e3; }
.tr-progress button.cur { background: var(--brand-primary); }
.tr-progress button.gap { margin-left: 6px; }

#trChapters .list-group-item { padding: .5rem .25rem; font-size: .9rem; border-color: var(--brand-border); cursor: pointer; background: transparent; color: var(--brand-navy); }
#trChapters .list-group-item.cur { font-weight: 800; color: var(--brand-primary); }

/* ── Slides (1280x720 logical px) ─────────────────────────────────────────── */
.tr-slide { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 70px; font-family: 'Nunito', sans-serif; color: var(--brand-navy); background: #fff; }
.tr-slide-dark { background: linear-gradient(135deg, #1c3e82 0%, #2754b4 60%, #3a6bd0 100%); color: #fff; }
.tr-logo { height: 64px; width: auto; margin-bottom: 44px; }
.tr-kicker { font-size: 20px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; opacity: .8; }
.tr-title { font-size: 84px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: 10px; }
.tr-sub { font-size: 34px; font-weight: 600; opacity: .9; margin-top: 12px; }
.tr-h { font-size: 44px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 44px; align-self: flex-start; }

.tr-flow { display: flex; align-items: stretch; gap: 14px; width: 100%; }
.tr-box { position: relative; flex: 1 1 0; display: flex; flex-direction: column; gap: 6px; padding: 26px 20px; border: 2px solid var(--brand-border); border-radius: 18px; background: #fff; }
.tr-box > i { font-size: 38px; color: var(--brand-primary); line-height: 1; margin-bottom: 6px; }
.tr-box strong { font-size: 23px; font-weight: 800; }
.tr-box span { font-size: 17px; color: var(--brand-muted); line-height: 1.35; }
.tr-box em { position: absolute; top: -15px; right: 16px; padding: 3px 14px; border-radius: 99px; background: var(--brand-primary); color: #fff; font-size: 15px; font-weight: 800; font-style: normal; }
.tr-box.tr-you { border-color: var(--brand-primary); background: var(--brand-primary-light); }
.tr-box.tr-done > i { color: #16a34a; }
.tr-arrow { align-self: center; font-size: 30px; color: #9db3e3; }
.tr-fcm { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 34px; padding: 20px 24px; border: 2px dashed var(--brand-border); border-radius: 18px; font-size: 19px; color: var(--brand-muted); opacity: .35; transition: opacity .4s ease, border-color .4s ease, background .4s ease; }
.tr-fcm i { font-size: 28px; color: var(--brand-primary); }
.tr-fcm strong { color: var(--brand-navy); font-size: 21px; white-space: nowrap; }
.tr-slide.fcm .tr-fcm { opacity: 1; border-color: var(--brand-primary); background: var(--brand-primary-light); }

.tr-recap { align-self: flex-start; margin: 0; padding-left: 1.3em; font-size: 28px; line-height: 1.4; }
.tr-recap li { margin-bottom: 18px; padding-left: 8px; color: var(--brand-muted); }
.tr-recap li strong { color: var(--brand-navy); }
.tr-recap li::marker { color: var(--brand-primary); font-weight: 800; }
