/* Stub Learn – front end. Inherits the theme's fonts; colours come from Settings. */
.stl{--stl-ink:#1d1d1f;--stl-muted:#5f6368;--stl-line:#e3e3e0;--stl-soft:#f6f6f3;--stl-good:#1e7a46;--stl-bad:#b3261e;--stl-warn:#8a5a00;color:var(--stl-ink);line-height:1.55;box-sizing:border-box}
.stl *,.stl *::before,.stl *::after{box-sizing:inherit}
.stl-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.stl-muted{color:var(--stl-muted)}
.stl-hp{position:absolute;left:-9999px}

/* Buttons */
.stl-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5em;min-height:46px;padding:.7em 1.4em;border:2px solid var(--stl-accent);border-radius:var(--stl-radius);background:var(--stl-accent);color:var(--stl-accent-text)!important;font:inherit;font-weight:600;line-height:1.2;text-decoration:none!important;cursor:pointer;transition:filter .15s,transform .15s}
.stl-btn:hover{filter:brightness(1.08)}
.stl-btn:active{transform:translateY(1px)}
.stl-btn:focus-visible,.stl a:focus-visible,.stl input:focus-visible,.stl summary:focus-visible,.stl-chip-btn:focus-visible{outline:3px solid var(--stl-ink);outline-offset:2px}
.stl-btn[disabled],.stl-btn.is-waiting{opacity:.45;cursor:not-allowed;pointer-events:none}
.stl-btn-ghost{background:transparent;color:var(--stl-accent)!important}
.stl-btn-block{width:100%}
.stl-btn-small{min-height:38px;padding:.45em 1em;font-size:.92em}
.stl-btn.is-ready{animation:stl-pulse 1.6s ease-out 2}
@keyframes stl-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--stl-accent) 55%,transparent)}100%{box-shadow:0 0 0 14px transparent}}
@media (prefers-reduced-motion:reduce){.stl-btn.is-ready{animation:none}}

/* Notices */
.stl-notice{padding:.8em 1em;border-radius:var(--stl-radius);background:var(--stl-soft);border-left:4px solid var(--stl-accent);margin:0 0 1em}
.stl-notice.is-error{border-color:var(--stl-bad);background:#fdf0ef}

/* Progress */
.stl-progress{height:8px;border-radius:99px;background:var(--stl-line);overflow:hidden}
.stl-progress>span{display:block;height:100%;background:var(--stl-accent);border-radius:inherit;transition:width .4s ease}
.stl-progress-text{margin:.5em 0 1em;color:var(--stl-muted);font-size:.95em}

/* Facts row */
.stl-facts{display:flex;flex-wrap:wrap;gap:.5em;list-style:none;margin:0 0 1.25em;padding:0}
.stl-facts li{background:var(--stl-soft);border:1px solid var(--stl-line);border-radius:99px;padding:.3em .9em;font-size:.92em;margin:0}

/* Course panel */
.stl-course{margin:2em 0}
.stl-cta{background:#fff;border:1px solid var(--stl-line);border-radius:calc(var(--stl-radius) + 4px);padding:1.25em;margin-bottom:1.5em}
.stl-cta form{margin:0}
.stl-curriculum{list-style:none;margin:0;padding:0;border:1px solid var(--stl-line);border-radius:calc(var(--stl-radius) + 4px);overflow:hidden;background:#fff}
.stl-lesson{display:flex;gap:.9em;align-items:flex-start;padding:1em 1.1em;border-top:1px solid var(--stl-line);margin:0}
.stl-lesson:first-child{border-top:0}
.stl-lesson-icon{flex:0 0 32px;height:32px;border-radius:50%;display:grid;place-items:center;background:var(--stl-soft);color:var(--stl-muted)}
.stl-lesson.is-done .stl-lesson-icon,.stl-lesson.is-passed .stl-lesson-icon{background:var(--stl-good);color:#fff}
.stl-lesson.is-failed .stl-lesson-icon{background:#fdf0ef;color:var(--stl-bad)}
.stl-lesson:not(.is-locked):not(.is-done):not(.is-passed) .stl-lesson-icon{background:var(--stl-accent);color:var(--stl-accent-text)}
.stl-lesson-body{display:flex;flex-direction:column;min-width:0}
.stl-lesson-body a{font-weight:600;color:inherit;text-decoration:none}
.stl-lesson-body a:hover{text-decoration:underline}
.stl-lesson-body small{color:var(--stl-muted)}
.stl-lesson.is-locked .stl-lesson-body>span{color:var(--stl-muted)}

/* Cards (dashboard, catalogue) */
.stl-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.25em;margin:1em 0}
.stl-card{background:#fff;border:1px solid var(--stl-line);border-radius:calc(var(--stl-radius) + 4px);overflow:hidden;display:flex;flex-direction:column}
.stl-card-img img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover;height:auto}
.stl-card-body{padding:1.1em 1.2em 1.3em;display:flex;flex-direction:column;gap:.6em;flex:1}
.stl-card-body h3{margin:0;font-size:1.15em;line-height:1.3}
.stl-card-body h3 a{color:inherit;text-decoration:none}
.stl-card-body p{margin:0}
.stl-card-body .stl-btn{margin-top:auto;align-self:flex-start}
.stl-chip{align-self:flex-start;font-size:.8em;font-weight:600;padding:.2em .7em;border-radius:99px;background:var(--stl-soft);color:var(--stl-muted)}
.stl-chip.is-progress{background:#fff4dc;color:var(--stl-warn)}
.stl-chip.is-passed,.stl-chip.is-done{background:#e5f4ea;color:var(--stl-good)}
.stl-hello{font-size:1.35em;font-weight:600;margin:0 0 .5em}
.stl-empty{padding:2em;text-align:center;background:var(--stl-soft);border-radius:calc(var(--stl-radius) + 4px)}
.stl-account{margin-top:2em;border-top:1px solid var(--stl-line);padding-top:1em}
.stl-account summary{cursor:pointer;font-weight:600}
.stl-password-form{max-width:360px;display:grid;gap:.4em;margin:1em 0}

/* Forms */
.stl-login{max-width:440px;margin:0 auto}
.stl-login-form{display:grid;gap:.6em}
.stl input[type=email],.stl input[type=password],.stl input[type=text]{width:100%;min-height:48px;padding:.6em .8em;border:1.5px solid #b9b9b4;border-radius:var(--stl-radius);font:inherit;background:#fff}
.stl label{font-weight:600}
.stl-alt{text-align:center;margin:.5em 0 0;font-size:.95em}
.stl-sent{text-align:center;padding:1.5em;background:var(--stl-soft);border-radius:calc(var(--stl-radius) + 4px)}
.stl-sent h2{margin-top:0}

/* ---------- Focus-mode player ---------- */
body.stl-focus{margin:0;background:#f4f4f2}
.stl-player{min-height:100vh;display:flex;flex-direction:column}
.stl-bar{position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:1em;padding:.6em 1em;background:#fff;border-bottom:1px solid var(--stl-line);min-height:60px}
.admin-bar .stl-bar{top:32px}
@media (max-width:782px){.admin-bar .stl-bar{top:46px}}
.stl-bar-back{display:flex;align-items:center;gap:.4em;color:inherit;text-decoration:none;font-weight:600;min-width:0;flex:0 1 auto;min-height:44px}
.stl-bar-course{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:28vw}
.stl-bar-mid{flex:1;display:flex;align-items:center;gap:.8em;min-width:0}
.stl-bar-pos{font-size:.9em;color:var(--stl-muted);white-space:nowrap}
.stl-bar-progress{flex:1;max-width:340px}
.stl-bar-actions{display:flex;align-items:center;gap:.5em}
.stl-chip-btn{border:1px solid var(--stl-line);background:#fff;border-radius:99px;padding:.45em 1em;font:inherit;font-size:.9em;cursor:pointer;min-height:38px}
.stl-chip-btn[aria-pressed=true]{background:var(--stl-accent);color:var(--stl-accent-text);border-color:var(--stl-accent)}
.stl-stage{flex:1;display:flex;flex-direction:column;position:relative}
.stl-frame{flex:1;width:100%;border:0;background:#fff;display:block}
.stl-saved{position:fixed;right:1em;bottom:1em;margin:0;padding:.4em .9em;border-radius:99px;background:rgba(29,29,31,.85);color:#fff;font-size:.85em;opacity:0;transform:translateY(6px);transition:all .2s;pointer-events:none}
.stl-saved.is-on{opacity:1;transform:none}
.stl-saved.is-error{background:var(--stl-bad)}
.stl-overlay{position:absolute;inset:0;background:rgba(244,244,242,.96);display:grid;place-items:center;padding:1em;z-index:5}
.stl-overlay[hidden]{display:none}
.stl-message{background:#fff;max-width:520px;width:100%;margin:3em auto;padding:2em;border-radius:calc(var(--stl-radius) + 4px);text-align:center;box-shadow:0 8px 30px rgba(0,0,0,.06)}
.stl-message h1,.stl-message h2{margin-top:0;font-size:1.4em}
.stl-article{background:#fff;max-width:780px;width:100%;margin:2em auto;padding:clamp(1.25em,4vw,3em);border-radius:calc(var(--stl-radius) + 4px)}
.stl-article>h1{margin-top:0;font-size:clamp(1.6em,3vw,2.2em);line-height:1.2}
.stl-content img{max-width:100%;height:auto}
.stl-complete{margin-top:2.5em;padding-top:1.5em;border-top:1px solid var(--stl-line);display:flex;flex-wrap:wrap;gap:1em;align-items:center}
.stl-done-note{margin:0;color:var(--stl-good);font-weight:600}
.stl-pager{display:flex;justify-content:space-between;gap:1em;max-width:780px;width:100%;margin:0 auto 2em;padding:0 1em;font-size:.95em}
.stl-pager a{color:var(--stl-muted)}
/* SCORM lessons fill the screen exactly, so the course's own bottom buttons are always visible. */
body.stl-type-scorm{overflow:hidden}
body.stl-type-scorm .stl-player{height:100vh;height:100dvh;min-height:0}
.admin-bar.stl-type-scorm .stl-player{height:calc(100dvh - 32px)}
body.stl-type-scorm .stl-stage{min-height:0}
body.stl-type-scorm .stl-frame{min-height:0;height:100%}
@media (max-width:640px){
  .stl-bar{flex-wrap:wrap;gap:.35em .6em;padding:.45em .75em;min-height:0}
  .stl-bar-back{flex:1 1 0;min-height:40px}
  .stl-bar-course{max-width:none}
  .stl-bar-mid{order:3;flex-basis:100%}
  .stl-bar-pos{font-size:.8em}
  .stl-article{margin:0;border-radius:0}
  .admin-bar.stl-type-scorm .stl-player{height:calc(100dvh - 46px)}
}

/* ---------- Quiz ---------- */
.stl-quiz{margin-top:1.5em}
.stl-quiz-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5em;color:var(--stl-muted);font-weight:600}
.stl-timer{font-variant-numeric:tabular-nums;background:var(--stl-soft);border-radius:99px;padding:.2em .8em}
.stl-timer.is-low{background:#fdf0ef;color:var(--stl-bad)}
.stl-q{border:0;padding:0;margin:1.5em 0}
.stl-q legend{font-size:1.2em;font-weight:600;margin-bottom:1em;padding:0}
.stl-opt{display:flex;gap:.8em;align-items:flex-start;padding:.9em 1em;border:1.5px solid var(--stl-line);border-radius:var(--stl-radius);margin-bottom:.6em;cursor:pointer;font-weight:400!important;background:#fff}
.stl-opt:hover{border-color:#b9b9b4}
.stl-opt input{margin-top:.25em;width:1.15em;height:1.15em;accent-color:var(--stl-accent);flex:0 0 auto}
.stl-opt:has(input:checked){border-color:var(--stl-accent);background:color-mix(in srgb,var(--stl-accent) 7%,#fff)}
.stl-quiz-nav{display:flex;flex-wrap:wrap;gap:.8em;align-items:center;justify-content:space-between}
.stl-qdots{display:flex;flex-wrap:wrap;gap:6px;margin-top:1.25em}
.stl-qdot{width:12px;height:12px;border-radius:50%;border:0;padding:0;background:var(--stl-line);cursor:pointer}
.stl-qdot.is-answered{background:color-mix(in srgb,var(--stl-accent) 55%,#fff)}
.stl-qdot.is-current{outline:2px solid var(--stl-accent);outline-offset:2px}
.stl-result{text-align:center;padding:1.5em;border-radius:calc(var(--stl-radius) + 4px);margin-bottom:1.5em;outline:none}
.stl-result.is-pass{background:#e5f4ea}
.stl-result.is-fail{background:#fdf0ef}
.stl-result h2{margin:0 0 .3em}
.stl-big{font-size:1.8em;font-weight:700;margin:.2em 0}
.stl-review{padding-left:1.4em}
.stl-review li{margin-bottom:1em;padding-left:.4em}
.stl-review li::marker{font-weight:700}
.stl-review li.is-right::marker{color:var(--stl-good)}
.stl-review li.is-wrong::marker{color:var(--stl-bad)}
.stl-review-q{font-weight:600}
.stl-review p{margin:.2em 0}

/* ---------- Standalone learning area (course, My learning, Sign in, Verify) ---------- */
body.stl-standalone{margin:0;background:#f4f4f2;min-height:100vh;display:flex;flex-direction:column}
.stl-top{background:#fff;border-bottom:1px solid var(--stl-line)}
.stl-top-inner{max-width:1100px;margin:0 auto;padding:.75em 1.25em;display:flex;align-items:center;justify-content:space-between;gap:1em}
.stl-top-brand{display:flex;align-items:center;text-decoration:none!important;color:var(--stl-ink);font-weight:700;font-size:1.1em;min-height:44px}
.stl-top-logo{max-height:44px;width:auto;display:block}
.stl-top-nav{display:flex;align-items:center;gap:1.25em}
.stl-top-nav a:not(.stl-btn){color:var(--stl-ink);text-decoration:none;font-weight:600;padding:.5em 0;white-space:nowrap}
.stl-top-nav a:not(.stl-btn):hover{text-decoration:underline}
.stl-page{flex:1;width:100%}
.stl-page-inner{max-width:880px;margin:0 auto;padding:clamp(1.5em,4vw,3em) 1.25em 3em}
.stl-page-title{font-size:clamp(1.8em,4vw,2.4em);line-height:1.15;margin:0 0 .75em}
.stl-course-hero{display:grid;gap:1.5em;margin-bottom:1em}
.stl-course-hero-img img{width:100%;height:auto;aspect-ratio:16/7;object-fit:cover;border-radius:calc(var(--stl-radius) + 6px);display:block}
.stl-course-hero h1{font-size:clamp(2em,5vw,2.8em);line-height:1.1;margin:.1em 0 .4em}
.stl-eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:.78em;font-weight:700;color:var(--stl-accent);margin:0}
.stl-lede{font-size:1.15em;color:var(--stl-muted);margin:0}
.stl-page-content>.stl-course{margin-top:1.5em}
.stl-bottom{margin-top:auto;background:#fff;border-top:1px solid var(--stl-line);font-size:.9em;color:var(--stl-muted)}
.stl-bottom a{color:var(--stl-muted)}
.stl-bottom-links{display:flex;gap:1.25em}
@media (max-width:600px){.stl-top-nav{gap:.9em;font-size:.92em}.stl-top-logo{max-height:36px;max-width:45vw;object-fit:contain}.stl-bottom .stl-top-inner{flex-direction:column;align-items:flex-start;gap:.4em}}

/* ---------- Certificates ---------- */
.stl-cert-cta{margin:1em 0 0}
.stl-cert-btn{align-self:flex-start}
.stl-card-body .stl-cert-btn{margin-top:0}
.stl-verify{max-width:560px}
.stl-verify-form{display:grid;gap:.5em;margin-bottom:1.5em}
.stl-verify-row{display:flex;gap:.6em}
.stl-verify-row input{flex:1;text-transform:uppercase;letter-spacing:.05em}
.stl-verify-result{background:#fff;border:1px solid var(--stl-line);border-left:6px solid var(--stl-good);border-radius:calc(var(--stl-radius) + 4px);padding:1.25em 1.5em}
.stl-verify-result.is-expired{border-left-color:var(--stl-warn)}
.stl-verify-result.is-revoked,.stl-verify-result.is-bad{border-left-color:var(--stl-bad)}
.stl-verify-result h2{margin:0 0 .75em;font-size:1.3em}
.stl-verify-result dl{display:grid;grid-template-columns:auto 1fr;gap:.45em 1.5em;margin:0}
.stl-verify-result dt{color:var(--stl-muted)}
.stl-verify-result dd{margin:0;font-weight:600}
