/* WF Learn front end. Colours come from Settings > Appearance as CSS variables. Fonts inherit from the theme/Oxygen.
 * Sizes use var(--wfl-rem) (Settings > Appearance > Text size) instead of rem, so CSS frameworks that set a small
 * root font size (Automatic.css uses 62.5%) do not shrink the plugin. */

.wfl, .wfl-switch-back { --wfl-rem: 16px; }

.wfl {
	--wfl-primary: #009fe3;
	--wfl-heading: #29235c;
	--wfl-text: #29235c;
	--wfl-surface: #f1f4f9;
	--wfl-success: #009fe3;
	--wfl-radius: 18px;
	--wfl-card: #fff;
	--wfl-border: color-mix(in srgb, var(--wfl-heading) 11%, transparent);
	--wfl-muted: color-mix(in srgb, var(--wfl-text) 64%, transparent);
	--wfl-tint: color-mix(in srgb, var(--wfl-primary) 11%, #fff);
	--wfl-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .04);
	--wfl-shadow-lift: 0 2px 4px rgba(16, 24, 40, .04), 0 8px 20px rgba(16, 24, 40, .07);
	color: var(--wfl-text);
	font-family: inherit;
	line-height: 1.55;
	box-sizing: border-box;
}
.wfl *, .wfl *::before, .wfl *::after { box-sizing: inherit; }
.wfl a { color: inherit; }
.wfl [hidden] { display: none !important; }

/* ---------- Typography ---------- */
.wfl .wfl-h2 { margin: 0; color: var(--wfl-heading); font-size: clamp(calc(1.4 * var(--wfl-rem)), calc(1.25 * var(--wfl-rem)) + .6vw, calc(1.75 * var(--wfl-rem))); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.wfl .wfl-eyebrow { display: block; margin-bottom: calc(.5 * var(--wfl-rem)); font-size: calc(.9 * var(--wfl-rem)); font-weight: 600; color: var(--wfl-muted); letter-spacing: .02em; }
.wfl .wfl-muted { color: var(--wfl-muted); }
.wfl .wfl-small { font-size: calc(.9375 * var(--wfl-rem)); }
.wfl .wfl-center { text-align: center; }

/* ---------- Icons ---------- */
.wfl-icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* ---------- Buttons ---------- */
.wfl .wfl-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .72em 1.45em; border: 2px solid var(--wfl-primary); border-radius: 999px;
	background: var(--wfl-primary); color: #fff; font: inherit; font-size: calc(1.0625 * var(--wfl-rem)); font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
	box-shadow: none;
}
/* Hover keeps the colour (no dimming); just a small lift. */
.wfl .wfl-btn:hover, .wfl .wfl-btn:focus-visible { background: var(--wfl-primary); color: #fff; opacity: 1; filter: none; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16, 24, 40, .08); }
.wfl .wfl-btn:focus-visible, .wfl button:focus-visible, .wfl a:focus-visible, .wfl input:focus-visible { outline: 3px solid color-mix(in srgb, var(--wfl-primary) 45%, transparent); outline-offset: 2px; }
.wfl .wfl-btn-ghost { background: #fff; color: var(--wfl-primary); box-shadow: none; }
.wfl .wfl-btn-ghost:hover, .wfl .wfl-btn-ghost:focus-visible { background: var(--wfl-tint); color: var(--wfl-primary); }
.wfl .wfl-btn-sm { padding: .55em 1.15em; font-size: calc(.9375 * var(--wfl-rem)); }
.wfl .wfl-btn-row { display: flex; flex-wrap: wrap; gap: calc(.75 * var(--wfl-rem)); justify-content: center; }
.wfl .wfl-action-form { display: inline-block; margin: 0; }

/* ---------- Pills ---------- */
.wfl .wfl-pill {
	display: inline-flex; align-items: center; gap: .35em; padding: .45em 1em; border-radius: 999px;
	font-size: calc(.875 * var(--wfl-rem)); font-weight: 600; letter-spacing: .01em; white-space: nowrap; line-height: 1;
}
.wfl .wfl-pill-not_enrolled { background: var(--wfl-primary); color: #fff; }
.wfl .wfl-pill-not_started { background: color-mix(in srgb, var(--wfl-heading) 8%, #fff); color: var(--wfl-muted); }
.wfl .wfl-pill-in_progress { background: var(--wfl-tint); color: var(--wfl-primary); }
.wfl .wfl-pill-completed { background: var(--wfl-success); color: #fff; }

/* ---------- Progress ---------- */
.wfl .wfl-progress { width: 100%; }
.wfl .wfl-progress-meta { display: flex; justify-content: space-between; gap: calc(1 * var(--wfl-rem)); margin-bottom: calc(.5 * var(--wfl-rem)); font-size: calc(.9375 * var(--wfl-rem)); color: var(--wfl-muted); }
.wfl .wfl-progress-meta strong { color: var(--wfl-primary); font-weight: 700; }
.wfl .wfl-progress-track { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--wfl-primary) 14%, #fff); overflow: hidden; }
.wfl .wfl-progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--wfl-primary), color-mix(in srgb, var(--wfl-primary) 70%, #6fd3ff)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.wfl .wfl-mini-progress { display: inline-block; width: 90px; height: 5px; border-radius: 99px; background: color-mix(in srgb, var(--wfl-primary) 14%, #fff); overflow: hidden; vertical-align: middle; }
.wfl .wfl-mini-progress span { display: block; height: 100%; background: var(--wfl-primary); border-radius: inherit; }

/* ---------- Status markers ---------- */
.wfl .wfl-marker { position: relative; display: inline-grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; }
.wfl .wfl-marker-empty { border: 2px solid color-mix(in srgb, var(--wfl-heading) 18%, transparent); }
.wfl .wfl-marker-done { background: var(--wfl-success); color: #fff; }
.wfl .wfl-marker-done .wfl-icon { width: 16px; height: 16px; }
.wfl .wfl-marker-partial svg { width: 28px; height: 28px; }
.wfl .wfl-ring-bg { fill: none; stroke: color-mix(in srgb, var(--wfl-primary) 16%, #fff); stroke-width: 3; }
.wfl .wfl-ring-fg { fill: none; stroke: var(--wfl-primary); stroke-width: 3; stroke-linecap: round; }
.wfl .wfl-marker-locked { background: color-mix(in srgb, var(--wfl-heading) 7%, #fff); color: var(--wfl-muted); }
.wfl .wfl-marker-locked .wfl-icon { width: 14px; height: 14px; }

/* ---------- Cards ---------- */
.wfl .wfl-card { background: var(--wfl-card); border-radius: var(--wfl-radius); box-shadow: var(--wfl-shadow); }
.wfl .wfl-empty { padding: calc(2.25 * var(--wfl-rem)) calc(1.5 * var(--wfl-rem)); text-align: center; }
.wfl .wfl-empty p { margin: 0 0 calc(1 * var(--wfl-rem)); color: var(--wfl-muted); }

/* ---------- Course status bar ---------- */
.wfl .wfl-status-bar {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: center;
	margin: 0 0 calc(2.25 * var(--wfl-rem)); padding: calc(1.25 * var(--wfl-rem)); background: var(--wfl-surface); border-radius: var(--wfl-radius);
}
.wfl .wfl-status-cell { padding: calc(.5 * var(--wfl-rem)) calc(1.25 * var(--wfl-rem)); text-align: center; }
.wfl .wfl-status-cell + .wfl-status-cell { border-left: 1px solid var(--wfl-border); }
.wfl .wfl-status-progress { text-align: left; }

/* ---------- Outline (course content) ---------- */
.wfl .wfl-outline-head { display: flex; align-items: center; justify-content: space-between; gap: calc(1 * var(--wfl-rem)); margin: 0 0 calc(1.25 * var(--wfl-rem)); }
.wfl .wfl-outline-head .wfl-icon-chevron { transition: transform .2s ease; }
.wfl .wfl-expand-all[aria-expanded="true"] .wfl-icon-chevron { transform: rotate(180deg); }
.wfl .wfl-section-title { display: flex; align-items: center; gap: calc(.6 * var(--wfl-rem)); margin: calc(1.75 * var(--wfl-rem)) 0 calc(.75 * var(--wfl-rem)); color: var(--wfl-heading); font-size: calc(1.125 * var(--wfl-rem)); font-weight: 700; }
.wfl .wfl-section-title::before { content: ""; width: 4px; height: 1.1em; border-radius: 4px; background: var(--wfl-primary); }
.wfl .wfl-outline > .wfl-section-title:first-of-type { margin-top: calc(.25 * var(--wfl-rem)); }

.wfl .wfl-lesson {
	margin: 0 0 calc(.75 * var(--wfl-rem)); background: var(--wfl-card); border: 1px solid var(--wfl-border);
	border-radius: calc(var(--wfl-radius) - 4px); overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease;
}
.wfl .wfl-lesson:hover, .wfl .wfl-lesson.is-open { box-shadow: var(--wfl-shadow); border-color: color-mix(in srgb, var(--wfl-heading) 8%, transparent); }
.wfl .wfl-lesson-head { display: flex; align-items: center; gap: calc(1 * var(--wfl-rem)); padding: calc(1.05 * var(--wfl-rem)) calc(1.25 * var(--wfl-rem)); }
.wfl .wfl-lesson-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: calc(.2 * var(--wfl-rem)); font-size: calc(1.125 * var(--wfl-rem)); line-height: 1.35; }
.wfl .wfl-lesson-title a, .wfl .wfl-lesson-title .wfl-link-disabled { color: var(--wfl-heading); font-weight: 600; text-decoration: none; }
.wfl .wfl-lesson-title a:hover { color: var(--wfl-primary); }
.wfl .wfl-lesson-meta { font-size: calc(.9375 * var(--wfl-rem)); font-weight: 400; color: var(--wfl-muted); }
.wfl .wfl-link-disabled { color: color-mix(in srgb, var(--wfl-heading) 78%, #fff) !important; cursor: default; }

.wfl .wfl-toggle {
	display: inline-flex; align-items: center; gap: calc(.35 * var(--wfl-rem)); padding: calc(.4 * var(--wfl-rem)) calc(.7 * var(--wfl-rem)); border: 0; border-radius: 999px;
	background: transparent; color: var(--wfl-primary); font: inherit; font-size: calc(.9375 * var(--wfl-rem)); font-weight: 600; cursor: pointer;
}
.wfl .wfl-toggle:hover { background: var(--wfl-tint); }
.wfl .wfl-toggle .wfl-icon { transition: transform .25s ease; }
.wfl .wfl-toggle[aria-expanded="true"] .wfl-icon { transform: rotate(180deg); }
.wfl .wfl-toggle-icon { width: 38px; height: 38px; padding: 0; justify-content: center; background: var(--wfl-tint); }

.wfl .wfl-lesson-body { border-top: 1px dashed var(--wfl-border); background: linear-gradient(180deg, color-mix(in srgb, var(--wfl-surface) 70%, #fff), #fff 60px); animation: wfl-reveal .25s ease; }
.wfl .wfl-steps-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: calc(.4 * var(--wfl-rem)) calc(1 * var(--wfl-rem)); padding: calc(.85 * var(--wfl-rem)) calc(1.25 * var(--wfl-rem)) calc(.35 * var(--wfl-rem)) calc(3.4 * var(--wfl-rem)); }
.wfl .wfl-steps-title { font-size: calc(.875 * var(--wfl-rem)); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--wfl-muted); }
.wfl .wfl-steps-meta { display: inline-flex; align-items: center; gap: calc(.6 * var(--wfl-rem)); font-size: calc(.9375 * var(--wfl-rem)); color: var(--wfl-muted); }
.wfl .wfl-steps-meta .wfl-mini-progress { width: 70px; }
.wfl .wfl-topic-list { margin: 0; padding: calc(.1 * var(--wfl-rem)) calc(1.25 * var(--wfl-rem)) calc(.6 * var(--wfl-rem)) calc(3.4 * var(--wfl-rem)); list-style: none; }
.wfl .wfl-quiz-row { padding: 0; margin: 0 0 calc(.75 * var(--wfl-rem)); }
.wfl .wfl-quiz-row .wfl-topic { padding: calc(1 * var(--wfl-rem)) calc(1.25 * var(--wfl-rem)); background: var(--wfl-card); border: 1px dashed color-mix(in srgb, var(--wfl-primary) 45%, transparent); border-radius: calc(var(--wfl-radius) - 4px); }
.wfl .wfl-tag { display: inline-flex; align-items: center; gap: .3em; margin-left: auto; padding: .2em .65em; border-radius: 6px; background: var(--wfl-tint); color: var(--wfl-primary); font-size: calc(.8125 * var(--wfl-rem)); font-weight: 700; white-space: nowrap; }
.wfl .wfl-tag + .wfl-tag { margin-left: calc(.35 * var(--wfl-rem)); }
.wfl .wfl-tag-soft { background: color-mix(in srgb, var(--wfl-heading) 7%, #fff); color: var(--wfl-muted); font-weight: 600; }
.wfl .wfl-tag .wfl-icon { width: 1em; height: 1em; }
.wfl .wfl-topic { display: flex; align-items: center; gap: calc(.85 * var(--wfl-rem)); padding: calc(.85 * var(--wfl-rem)) 0; border-bottom: 1px solid var(--wfl-border); margin: 0; font-size: calc(1.0625 * var(--wfl-rem)); line-height: 1.45; }
.wfl .wfl-topic:last-child { border-bottom: 0; }
.wfl .wfl-topic .wfl-marker { width: 24px; height: 24px; }
.wfl .wfl-topic .wfl-marker-partial svg { width: 24px; height: 24px; }
.wfl .wfl-topic .wfl-marker-done .wfl-icon { width: 14px; height: 14px; }
.wfl .wfl-topic a { color: var(--wfl-text); text-decoration: none; }
.wfl .wfl-topic a:hover { color: var(--wfl-primary); }
.wfl .wfl-topic.is-current a { color: var(--wfl-primary); font-weight: 700; }
.wfl .wfl-lesson-standalone { margin-top: calc(2 * var(--wfl-rem)); }
.wfl .wfl-lesson-standalone .wfl-lesson-body { border-top: 0; }

.wfl .wfl-outline-compact .wfl-lesson { border-radius: 12px; }
.wfl .wfl-outline-compact .wfl-lesson-head { padding: calc(.75 * var(--wfl-rem)) calc(1 * var(--wfl-rem)); }
.wfl .wfl-outline-compact .wfl-topic-list, .wfl .wfl-outline-compact .wfl-steps-head { padding-left: calc(3 * var(--wfl-rem)); }

/* ---------- Lesson / topic pages ---------- */
.wfl .wfl-step-header { margin: 0 0 calc(2 * var(--wfl-rem)); padding: calc(1.1 * var(--wfl-rem)) calc(1.35 * var(--wfl-rem)) calc(1.25 * var(--wfl-rem)); background: var(--wfl-surface); border-radius: var(--wfl-radius); }
.wfl .wfl-step-header-top { display: flex; align-items: center; justify-content: space-between; gap: calc(1 * var(--wfl-rem)); margin-bottom: calc(1 * var(--wfl-rem)); }
.wfl .wfl-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: calc(.35 * var(--wfl-rem)); font-size: calc(1 * var(--wfl-rem)); font-weight: 600; }
.wfl .wfl-breadcrumbs a { color: var(--wfl-primary); text-decoration: none; }
.wfl .wfl-breadcrumbs a:hover { text-decoration: underline; }
.wfl .wfl-breadcrumbs [aria-current] { color: var(--wfl-muted); }
.wfl .wfl-breadcrumbs .wfl-sep { display: inline-flex; color: var(--wfl-muted); }
.wfl .wfl-breadcrumbs .wfl-sep .wfl-icon { width: .85em; height: .85em; }
.wfl .wfl-step-header .wfl-progress-meta { font-size: calc(.9375 * var(--wfl-rem)); font-weight: 600; color: var(--wfl-heading); }

.wfl .wfl-step-nav {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: calc(1 * var(--wfl-rem));
	margin-top: calc(2.5 * var(--wfl-rem)); padding-top: calc(1.75 * var(--wfl-rem)); border-top: 1px solid var(--wfl-border);
}
.wfl .wfl-step-nav-next { text-align: right; }
.wfl .wfl-step-nav-mid { display: flex; flex-direction: column; align-items: center; gap: calc(.6 * var(--wfl-rem)); }
.wfl .wfl-step-nav .wfl-btn span { display: flex; flex-direction: column; text-align: left; max-width: 260px; overflow: hidden; }
.wfl .wfl-step-nav-next .wfl-btn span { text-align: right; }
.wfl .wfl-step-nav .wfl-btn span { display: block; white-space: nowrap; text-overflow: ellipsis; }
.wfl .wfl-step-nav .wfl-btn small { display: block; }
.wfl .wfl-step-nav .wfl-btn small { font-size: calc(.8125 * var(--wfl-rem)); font-weight: 600; letter-spacing: .02em; opacity: .85; }
.wfl .wfl-btn-complete { padding-inline: 1.8em; }
.wfl .wfl-btn-complete.is-complete { background: #fff; color: var(--wfl-success); border-color: var(--wfl-success); box-shadow: none; }
.wfl .wfl-btn-complete.is-complete .wfl-icon { width: 1.1em; height: 1.1em; }
.wfl .wfl-btn-complete.is-complete:hover { background: var(--wfl-tint); color: var(--wfl-success); }
.wfl .wfl-back-link { font-size: calc(1 * var(--wfl-rem)); font-weight: 600; color: var(--wfl-primary); text-decoration: underline; text-underline-offset: 3px; }

/* Tabs */
.wfl .wfl-tablist { display: inline-flex; gap: calc(.25 * var(--wfl-rem)); padding: calc(.3 * var(--wfl-rem)); margin-bottom: calc(1.5 * var(--wfl-rem)); background: var(--wfl-surface); border-radius: 999px; }
.wfl .wfl-tab { display: inline-flex; align-items: center; gap: calc(.45 * var(--wfl-rem)); padding: calc(.55 * var(--wfl-rem)) calc(1.15 * var(--wfl-rem)); border: 0; border-radius: 999px; background: transparent; color: var(--wfl-muted); font: inherit; font-size: calc(1 * var(--wfl-rem)); font-weight: 600; cursor: pointer; }
.wfl .wfl-tab.is-active { background: #fff; color: var(--wfl-primary); box-shadow: 0 1px 3px rgba(16, 24, 40, .08); }

/* Materials */
.wfl .wfl-materials-text { margin-bottom: calc(1.25 * var(--wfl-rem)); }
.wfl .wfl-files { display: grid; gap: calc(.6 * var(--wfl-rem)); margin: 0; padding: 0; list-style: none; }
.wfl .wfl-file { display: flex; align-items: center; gap: calc(.9 * var(--wfl-rem)); padding: calc(.9 * var(--wfl-rem)) calc(1.1 * var(--wfl-rem)); border: 1px solid var(--wfl-border); border-radius: 14px; text-decoration: none; transition: border-color .15s ease, background .15s ease; }
.wfl .wfl-file:hover { border-color: var(--wfl-primary); background: var(--wfl-tint); }
.wfl .wfl-file > .wfl-icon { width: 1.5em; height: 1.5em; color: var(--wfl-primary); }
.wfl .wfl-file-name { flex: 1; display: flex; flex-direction: column; font-weight: 600; color: var(--wfl-heading); }
.wfl .wfl-file-name small { font-weight: 500; color: var(--wfl-muted); }

/* Locked */
.wfl .wfl-locked { max-width: 520px; margin: calc(1 * var(--wfl-rem)) auto; padding: calc(2.5 * var(--wfl-rem)) calc(2 * var(--wfl-rem)); text-align: center; background: var(--wfl-surface); border-radius: var(--wfl-radius); }
.wfl .wfl-locked > .wfl-icon { width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: #fff; color: var(--wfl-primary); box-shadow: var(--wfl-shadow); }
.wfl .wfl-locked h3 { margin: calc(1 * var(--wfl-rem)) 0 calc(.4 * var(--wfl-rem)); color: var(--wfl-heading); }
.wfl .wfl-locked p { margin: 0 0 calc(1.25 * var(--wfl-rem)); color: var(--wfl-muted); }

/* Completion banner */
.wfl .wfl-celebrate {
	position: relative; display: flex; align-items: center; gap: calc(1.25 * var(--wfl-rem)); margin: 0 0 calc(2 * var(--wfl-rem)); padding: calc(1.5 * var(--wfl-rem)) calc(1.75 * var(--wfl-rem));
	border-radius: var(--wfl-radius); color: #fff; overflow: hidden;
	background: radial-gradient(circle at 92% 20%, rgba(255, 255, 255, .22) 0 12%, transparent 13%), radial-gradient(circle at 80% 90%, rgba(255, 255, 255, .14) 0 9%, transparent 10%), linear-gradient(120deg, var(--wfl-primary), var(--wfl-heading));
	animation: wfl-pop .5s cubic-bezier(.2, 1.4, .4, 1);
}
.wfl .wfl-celebrate h3 { margin: 0 0 calc(.25 * var(--wfl-rem)); color: #fff; font-size: calc(1.4 * var(--wfl-rem)); font-weight: 700; line-height: 1.3; }
.wfl .wfl-celebrate p { margin: 0 0 calc(.9 * var(--wfl-rem)); opacity: .9; }
.wfl .wfl-celebrate .wfl-btn, .wfl .wfl-celebrate .wfl-btn:hover { background: #fff; color: var(--wfl-heading); border-color: #fff; }
.wfl .wfl-celebrate-icon { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.wfl .wfl-celebrate-icon .wfl-icon { width: 34px; height: 34px; }

/* ---------- Course library ---------- */
.wfl .wfl-search-card { position: relative; z-index: 1; margin: 0 0 calc(3.5 * var(--wfl-rem)); padding: calc(1.5 * var(--wfl-rem)) calc(1.5 * var(--wfl-rem)) calc(1.75 * var(--wfl-rem)); text-align: center; background: var(--wfl-card); border-radius: var(--wfl-radius); box-shadow: var(--wfl-shadow); }
.wfl .wfl-search-label { display: block; margin-bottom: calc(.7 * var(--wfl-rem)); color: var(--wfl-heading); font-size: calc(1.25 * var(--wfl-rem)); font-weight: 600; }
.wfl .wfl-search-field { position: relative; }
.wfl .wfl-search-field .wfl-icon { position: absolute; left: calc(1.1 * var(--wfl-rem)); top: 50%; transform: translateY(-50%); color: var(--wfl-muted); }
.wfl .wfl-search-input { width: 100%; padding: calc(.9 * var(--wfl-rem)) calc(1 * var(--wfl-rem)) calc(.9 * var(--wfl-rem)) calc(3 * var(--wfl-rem)); border: 1.5px solid color-mix(in srgb, var(--wfl-heading) 30%, transparent); border-radius: 12px; background: #fff; color: var(--wfl-text); font: inherit; font-size: calc(1 * var(--wfl-rem)); transition: border-color .15s ease, box-shadow .15s ease; }
.wfl .wfl-search-input:focus { outline: 0; border-color: var(--wfl-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wfl-primary) 16%, transparent); }
.wfl .wfl-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(.55 * var(--wfl-rem)); margin-top: calc(1.1 * var(--wfl-rem)); }
.wfl .wfl-chip { padding: calc(.5 * var(--wfl-rem)) calc(1.15 * var(--wfl-rem)); border: 1.5px solid color-mix(in srgb, var(--wfl-heading) 25%, transparent); border-radius: 10px; background: #fff; color: var(--wfl-heading); font: inherit; font-size: calc(1 * var(--wfl-rem)); cursor: pointer; transition: all .15s ease; }
.wfl .wfl-chip:hover { border-color: var(--wfl-primary); color: var(--wfl-primary); }
.wfl .wfl-chip.is-active { background: var(--wfl-primary); border-color: var(--wfl-primary); color: #fff; }

.wfl .wfl-grid { display: grid; gap: calc(4 * var(--wfl-rem)) calc(1.5 * var(--wfl-rem)); }
.wfl .wfl-cols-1 { grid-template-columns: 1fr; }
.wfl .wfl-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wfl .wfl-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wfl .wfl-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wfl .wfl-course-card { display: flex; flex-direction: column; align-items: center; gap: calc(.9 * var(--wfl-rem)); padding: 0 calc(1.25 * var(--wfl-rem)) calc(1.6 * var(--wfl-rem)); text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.wfl .wfl-course-card:hover { transform: translateY(-3px); box-shadow: var(--wfl-shadow-lift); }
.wfl .wfl-card-thumb { display: block; width: 104px; height: 104px; margin-top: -40px; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 12px rgba(16, 24, 40, .1); }
.wfl .wfl-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.wfl .wfl-course-card:hover .wfl-card-thumb img { transform: scale(1.05); }
.wfl .wfl-course-card:not(:has(.wfl-card-thumb)) { padding-top: calc(1.6 * var(--wfl-rem)); }
.wfl .wfl-card-title { flex: 1; display: flex; align-items: center; margin: 0; font-size: calc(1.125 * var(--wfl-rem)); font-weight: 600; line-height: 1.35; }
.wfl .wfl-card-title a { color: var(--wfl-heading); text-decoration: none; }
.wfl .wfl-card-title a:hover { color: var(--wfl-primary); }
.wfl .wfl-card-text { margin: 0; font-size: calc(1 * var(--wfl-rem)); color: var(--wfl-muted); }
.wfl .wfl-card-progress { display: flex; align-items: center; gap: calc(.5 * var(--wfl-rem)); }
.wfl .wfl-no-results { margin: calc(2 * var(--wfl-rem)) 0; text-align: center; color: var(--wfl-muted); }

/* ---------- Dashboard ---------- */
.wfl .wfl-dash-intro { margin-bottom: calc(2.25 * var(--wfl-rem)); text-align: center; }
.wfl .wfl-dash-intro p { margin: 0 0 calc(1.1 * var(--wfl-rem)); }
.wfl .wfl-dash-course .wfl-lesson-title { flex-direction: row; align-items: center; flex-wrap: wrap; gap: calc(.25 * var(--wfl-rem)) calc(1 * var(--wfl-rem)); }
.wfl .wfl-dash-actions { display: flex; align-items: center; gap: calc(.6 * var(--wfl-rem)); }
.wfl .wfl-icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--wfl-primary); background: var(--wfl-tint); transition: background .15s ease, color .15s ease; }
.wfl .wfl-icon-btn:hover { background: var(--wfl-primary); color: #fff; }
.wfl .wfl-dash-progress { display: flex; align-items: flex-end; gap: calc(1.25 * var(--wfl-rem)); padding: calc(1 * var(--wfl-rem)) calc(1.25 * var(--wfl-rem)); background: var(--wfl-surface); }
.wfl .wfl-dash-progress .wfl-progress { flex: 1; }
.wfl .wfl-dash-course .wfl-outline { padding: calc(1 * var(--wfl-rem)) calc(1.25 * var(--wfl-rem)) calc(.5 * var(--wfl-rem)); }
.wfl .wfl-dash-block { margin-top: calc(3.5 * var(--wfl-rem)); }
.wfl .wfl-block-head { display: flex; flex-direction: column; align-items: center; gap: calc(.6 * var(--wfl-rem)); margin-bottom: calc(1.5 * var(--wfl-rem)); text-align: center; }
.wfl .wfl-block-head > .wfl-icon { width: 30px; height: 30px; color: var(--wfl-primary); }

/* Badges: a centred, wrapping row of compact tiles. */
.wfl .wfl-points { display: flex; justify-content: center; margin: calc(-.5 * var(--wfl-rem)) 0 calc(1.5 * var(--wfl-rem)); }
.wfl .wfl-points span { display: inline-flex; align-items: center; gap: .45em; padding: .5em 1.1em; border-radius: 999px; background: var(--wfl-tint); color: var(--wfl-primary); font-size: calc(1.0625 * var(--wfl-rem)); font-weight: 700; }
.wfl .wfl-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(1 * var(--wfl-rem)); margin: 0 auto; padding: 0; list-style: none; }
.wfl .wfl-badge-item { position: relative; display: flex; flex-direction: column; align-items: center; gap: calc(.3 * var(--wfl-rem)); flex: 0 1 172px; min-width: 140px; margin: 0; padding: calc(1.1 * var(--wfl-rem)) calc(.85 * var(--wfl-rem)) calc(1.2 * var(--wfl-rem)); text-align: center; background: var(--wfl-card); border: 1px solid var(--wfl-border); border-radius: calc(var(--wfl-radius) - 4px); }
.wfl .wfl-badge-item.is-earned { box-shadow: var(--wfl-shadow); }
.wfl .wfl-badge-item.is-locked { background: color-mix(in srgb, var(--wfl-surface) 60%, #fff); }
.wfl .wfl-badge-item.is-locked .wfl-badge { filter: grayscale(1); opacity: .35; }
.wfl .wfl-badge-item.is-locked .wfl-badge-name { color: var(--wfl-muted); }
.wfl .wfl-badge-name { margin-top: calc(.4 * var(--wfl-rem)); font-weight: 700; font-size: calc(1.0625 * var(--wfl-rem)); line-height: 1.3; color: var(--wfl-heading); }
.wfl .wfl-badge-desc { font-size: calc(.9375 * var(--wfl-rem)); color: var(--wfl-muted); line-height: 1.4; }
.wfl .wfl-badge-count { position: absolute; top: calc(.6 * var(--wfl-rem)); right: calc(.6 * var(--wfl-rem)); padding: .25em .6em; border-radius: 999px; background: var(--wfl-heading); color: #fff; font-size: calc(.8125 * var(--wfl-rem)); font-weight: 700; line-height: 1; }
.wfl-badge { display: inline-grid; place-items: center; width: var(--wfl-badge-size, 56px); height: var(--wfl-badge-size, 56px); flex: none; }
.wfl-badge-img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.wfl-badge-icon { --wfl-badge-color: var(--wfl-primary, #009fe3); border-radius: 50%; color: #fff; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .3), transparent 45%), var(--wfl-badge-color); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5), 0 0 0 2px var(--wfl-badge-color); }
.wfl-badge-icon svg { width: 46%; height: 46%; fill: currentColor; }

/* Certificates */
.wfl .wfl-cert-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: calc(.85 * var(--wfl-rem)); margin: 0; padding: 0; list-style: none; }
.wfl .wfl-cert { display: flex; align-items: center; gap: calc(1 * var(--wfl-rem)); padding: calc(1 * var(--wfl-rem)) calc(1.15 * var(--wfl-rem)); background: var(--wfl-card); border: 1px solid var(--wfl-border); border-radius: 14px; text-decoration: none; transition: all .15s ease; }
.wfl .wfl-cert:hover { border-color: transparent; box-shadow: var(--wfl-shadow); transform: translateY(-1px); }
.wfl .wfl-cert-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--wfl-tint); color: var(--wfl-primary); }
.wfl .wfl-cert-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.wfl .wfl-cert-text strong { color: var(--wfl-heading); font-weight: 600; }
.wfl .wfl-cert-text small { color: var(--wfl-muted); }
.wfl .wfl-cert > .wfl-icon-download { color: var(--wfl-primary); }

/* Resume */
.wfl .wfl-resume span { max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Toasts ---------- */
.wfl-toasts { position: fixed; right: calc(1.25 * var(--wfl-rem)); bottom: calc(1.25 * var(--wfl-rem)); z-index: 99999; display: grid; gap: calc(.75 * var(--wfl-rem)); }
.wfl-toast { display: flex; align-items: center; gap: calc(.9 * var(--wfl-rem)); min-width: 260px; max-width: 340px; padding: calc(.85 * var(--wfl-rem)) calc(1 * var(--wfl-rem)) calc(.85 * var(--wfl-rem)) calc(.85 * var(--wfl-rem)); background: #fff; border-radius: 16px; box-shadow: 0 2px 6px rgba(16, 24, 40, .06), 0 12px 32px rgba(16, 24, 40, .12); animation: wfl-toast-in .55s cubic-bezier(.2, 1.3, .4, 1) both; }
.wfl-toast:nth-child(2) { animation-delay: .15s; }
.wfl-toast:nth-child(3) { animation-delay: .3s; }
.wfl-toast > div { flex: 1; display: flex; flex-direction: column; }
.wfl-toast small { font-size: calc(.8125 * var(--wfl-rem)); font-weight: 700; letter-spacing: .03em; color: var(--wfl-primary); }
.wfl-toast strong { color: var(--wfl-heading); font-size: calc(1.0625 * var(--wfl-rem)); }
.wfl-toast-close { align-self: flex-start; padding: calc(.2 * var(--wfl-rem)); border: 0; background: none; color: var(--wfl-muted); cursor: pointer; }
.wfl-toast.is-leaving { animation: wfl-toast-out .3s ease forwards; }

/* ---------- User switching ---------- */
.wfl-switch-back {
	--wfl-heading: #29235c;
	position: fixed; left: calc(1 * var(--wfl-rem)); bottom: calc(1 * var(--wfl-rem)); z-index: 99998; padding: calc(.55 * var(--wfl-rem)) calc(1 * var(--wfl-rem)); border-radius: 999px;
	background: var(--wfl-heading); color: #fff !important; font-size: calc(.9375 * var(--wfl-rem)); font-weight: 600; text-decoration: none;
	box-shadow: 0 4px 14px rgba(16, 24, 40, .16);
}

/* ---------- Motion ---------- */
@keyframes wfl-reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes wfl-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes wfl-toast-in { from { opacity: 0; transform: translateY(20px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes wfl-toast-out { to { opacity: 0; transform: translateX(30px); } }
@media (prefers-reduced-motion: reduce) {
	.wfl *, .wfl-toast { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
	.wfl .wfl-cols-3, .wfl .wfl-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ---------- Quizzes ---------- */
.wfl .wfl-quiz-card { display: flex; flex-wrap: wrap; align-items: center; gap: calc(1.25 * var(--wfl-rem)) calc(2 * var(--wfl-rem)); margin: calc(2 * var(--wfl-rem)) 0; padding: calc(1.5 * var(--wfl-rem)) calc(1.75 * var(--wfl-rem)); background: var(--wfl-surface); border-radius: var(--wfl-radius); }
.wfl .wfl-quiz-facts { display: flex; flex-wrap: wrap; gap: calc(.75 * var(--wfl-rem)); margin: 0; padding: 0; list-style: none; flex: 1 1 100%; }
.wfl .wfl-quiz-facts li { display: flex; flex-direction: column; min-width: 92px; padding: calc(.7 * var(--wfl-rem)) calc(1 * var(--wfl-rem)); background: #fff; border-radius: 12px; }
.wfl .wfl-quiz-facts strong { color: var(--wfl-heading); font-size: calc(1.35 * var(--wfl-rem)); line-height: 1.1; }
.wfl .wfl-quiz-facts span { font-size: calc(.875 * var(--wfl-rem)); color: var(--wfl-muted); }
.wfl .wfl-quiz-best { margin: 0; display: flex; align-items: center; gap: calc(.5 * var(--wfl-rem)); }
.wfl .wfl-quiz-form { margin: calc(2 * var(--wfl-rem)) 0; }
.wfl .wfl-quiz-timer { position: sticky; top: calc(1 * var(--wfl-rem)); z-index: 5; display: inline-flex; gap: calc(.5 * var(--wfl-rem)); align-items: center; margin-bottom: calc(1 * var(--wfl-rem)); padding: calc(.45 * var(--wfl-rem)) calc(.9 * var(--wfl-rem)); border-radius: 999px; background: var(--wfl-heading); color: #fff; font-size: calc(.9375 * var(--wfl-rem)); }
.wfl .wfl-quiz-timer.is-low { background: #c0392b; }
.wfl .wfl-question { margin: 0 0 calc(1.25 * var(--wfl-rem)); padding: calc(1.25 * var(--wfl-rem)) calc(1.4 * var(--wfl-rem)); border: 1px solid var(--wfl-border); border-radius: calc(var(--wfl-radius) - 4px); background: #fff; }
.wfl .wfl-question legend { display: contents; }
.wfl .wfl-q-num { display: block; margin-bottom: calc(.35 * var(--wfl-rem)); font-size: calc(.8125 * var(--wfl-rem)); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wfl-primary); }
.wfl .wfl-q-text { display: block; margin-bottom: calc(.9 * var(--wfl-rem)); color: var(--wfl-heading); font-weight: 600; font-size: calc(1.125 * var(--wfl-rem)); }
.wfl .wfl-q-text p { margin: 0; }
.wfl .wfl-choices { display: grid; gap: calc(.5 * var(--wfl-rem)); }
.wfl .wfl-choice { display: flex; align-items: center; gap: calc(.7 * var(--wfl-rem)); padding: calc(.7 * var(--wfl-rem)) calc(.9 * var(--wfl-rem)); border: 1.5px solid var(--wfl-border); border-radius: 10px; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.wfl .wfl-choice:hover { border-color: var(--wfl-primary); }
.wfl .wfl-choice:has(input:checked) { border-color: var(--wfl-primary); background: var(--wfl-tint); }
.wfl .wfl-choice input { accent-color: var(--wfl-primary); width: calc(1.1 * var(--wfl-rem)); height: calc(1.1 * var(--wfl-rem)); flex: none; }
.wfl .wfl-input { width: 100%; padding: calc(.75 * var(--wfl-rem)) calc(.9 * var(--wfl-rem)); border: 1.5px solid color-mix(in srgb, var(--wfl-heading) 25%, transparent); border-radius: 10px; font: inherit; color: var(--wfl-text); background: #fff; }
.wfl .wfl-input:focus { outline: 0; border-color: var(--wfl-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--wfl-primary) 15%, transparent); }
.wfl .wfl-quiz-submit { display: flex; justify-content: flex-end; }
.wfl .wfl-score-ring { position: relative; width: 112px; height: 112px; flex: none; }
.wfl .wfl-score-ring svg { width: 100%; height: 100%; }
.wfl .wfl-score-ring .wfl-ring-bg, .wfl .wfl-score-ring .wfl-ring-fg { stroke-width: 8; }
.wfl .wfl-score-ring strong { position: absolute; inset: 0; display: grid; place-items: center; color: var(--wfl-heading); font-size: calc(1.5 * var(--wfl-rem)); }
.wfl .wfl-quiz-result.is-fail .wfl-ring-fg { stroke: #e0786a; }
.wfl .wfl-quiz-result.is-pending .wfl-ring-fg { stroke: #b9a7e8; }
.wfl .wfl-quiz-verdict { flex: 1; min-width: 220px; }
.wfl .wfl-quiz-verdict h3 { margin: 0 0 calc(.25 * var(--wfl-rem)); color: var(--wfl-heading); font-size: calc(1.4 * var(--wfl-rem)); }
.wfl .wfl-quiz-verdict p { margin: 0 0 calc(.5 * var(--wfl-rem)); }
.wfl .wfl-btn-row.wfl-left { justify-content: flex-start; margin-top: calc(.75 * var(--wfl-rem)); }
.wfl .wfl-review { display: grid; gap: calc(.75 * var(--wfl-rem)); margin: 0; padding: 0; list-style: none; counter-reset: q; }
.wfl .wfl-review-item { padding: calc(1 * var(--wfl-rem)) calc(1.2 * var(--wfl-rem)) calc(1 * var(--wfl-rem)) calc(3.2 * var(--wfl-rem)); position: relative; border-radius: 12px; border: 1px solid var(--wfl-border); background: #fff; }
.wfl .wfl-review-item::before { counter-increment: q; content: counter(q); position: absolute; left: calc(1 * var(--wfl-rem)); top: calc(1 * var(--wfl-rem)); display: grid; place-items: center; width: calc(1.6 * var(--wfl-rem)); height: calc(1.6 * var(--wfl-rem)); border-radius: 50%; font-size: calc(.875 * var(--wfl-rem)); font-weight: 700; color: #fff; background: var(--wfl-success); }
.wfl .wfl-review-item.is-wrong::before { background: #e0786a; }
.wfl .wfl-review-item.is-pending::before { background: #b9a7e8; }
.wfl .wfl-review-q { font-weight: 600; color: var(--wfl-heading); margin-bottom: calc(.35 * var(--wfl-rem)); }
.wfl .wfl-review-item p { margin: calc(.2 * var(--wfl-rem)) 0; }
.wfl .wfl-review-label { color: var(--wfl-muted); font-size: calc(.9375 * var(--wfl-rem)); }
.wfl .wfl-review-why { margin-top: calc(.5 * var(--wfl-rem)); padding: calc(.6 * var(--wfl-rem)) calc(.8 * var(--wfl-rem)); border-left: 3px solid var(--wfl-primary); background: var(--wfl-tint); border-radius: 0 8px 8px 0; font-size: calc(1 * var(--wfl-rem)); }

/* ---------- Assignments ---------- */
.wfl .wfl-assignment { margin: calc(2 * var(--wfl-rem)) 0; padding: calc(1.4 * var(--wfl-rem)) calc(1.5 * var(--wfl-rem)); border: 1px solid var(--wfl-border); border-radius: var(--wfl-radius); }
.wfl .wfl-block-row { display: flex; align-items: center; gap: calc(.6 * var(--wfl-rem)); margin-bottom: calc(.6 * var(--wfl-rem)); }
.wfl .wfl-block-row h3 { margin: 0; color: var(--wfl-heading); font-size: calc(1.25 * var(--wfl-rem)); }
.wfl .wfl-block-row > .wfl-icon { color: var(--wfl-primary); width: 1.4em; height: 1.4em; }
.wfl .wfl-assignment .wfl-file { flex-wrap: wrap; }
.wfl .wfl-feedback { margin: calc(.4 * var(--wfl-rem)) 0 0; padding: calc(.6 * var(--wfl-rem)) calc(.8 * var(--wfl-rem)); background: var(--wfl-surface); border-radius: 8px; font-size: calc(1 * var(--wfl-rem)); }
.wfl .wfl-upload { display: flex; flex-wrap: wrap; gap: calc(.75 * var(--wfl-rem)); align-items: center; margin-top: calc(1 * var(--wfl-rem)); }
.wfl .wfl-upload-drop { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: calc(.25 * var(--wfl-rem)); padding: calc(.9 * var(--wfl-rem)) calc(1 * var(--wfl-rem)); border: 2px dashed color-mix(in srgb, var(--wfl-primary) 40%, transparent); border-radius: 12px; cursor: pointer; }
.wfl .wfl-upload-drop input { font: inherit; }
.wfl .wfl-upload-drop span { display: none; }
.wfl .wfl-upload-drop small { color: var(--wfl-muted); }
.wfl .wfl-notice { margin: calc(.75 * var(--wfl-rem)) 0; padding: calc(.6 * var(--wfl-rem)) calc(.9 * var(--wfl-rem)); border-radius: 10px; background: var(--wfl-tint); color: var(--wfl-heading); font-size: calc(1 * var(--wfl-rem)); }
.wfl .wfl-notice-error { background: #fdecea; color: #8a1f11; }

@media (max-width: 720px) {
	.wfl .wfl-status-bar { grid-template-columns: 1fr; padding: calc(.75 * var(--wfl-rem)); }
	.wfl .wfl-status-cell + .wfl-status-cell { border-left: 0; border-top: 1px solid var(--wfl-border); }
	.wfl .wfl-status-cell { padding: calc(.9 * var(--wfl-rem)) calc(.5 * var(--wfl-rem)); }
	.wfl .wfl-step-nav { grid-template-columns: 1fr 1fr; }
	.wfl .wfl-step-nav-mid { grid-column: 1 / -1; order: -1; }
	.wfl .wfl-step-nav .wfl-btn span { max-width: 120px; }
	.wfl .wfl-topic-list { padding-left: calc(1.25 * var(--wfl-rem)); }
	.wfl .wfl-lesson-head { padding: calc(.9 * var(--wfl-rem)) calc(1 * var(--wfl-rem)); gap: calc(.75 * var(--wfl-rem)); }
	.wfl .wfl-toggle-label { display: none; }
	.wfl .wfl-dash-progress { flex-direction: column; align-items: stretch; }
	.wfl .wfl-step-header-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
	.wfl .wfl-cols-2, .wfl .wfl-cols-3, .wfl .wfl-cols-4 { grid-template-columns: 1fr; }
	.wfl .wfl-dash-course .wfl-pill { display: none; }
	.wfl-toasts { left: calc(1 * var(--wfl-rem)); right: calc(1 * var(--wfl-rem)); }
	.wfl-toast { max-width: none; }
	.wfl .wfl-badge-item { flex-basis: calc(50% - calc(.5 * var(--wfl-rem))); min-width: 0; }
}
.wfl .wfl-step-header-top:last-child { margin-bottom: 0; }
.wfl .wfl-choice span, .wfl .wfl-review-item p, .wfl .wfl-quiz-verdict p, .wfl .wfl-assignment p { font-size: calc(1.0625 * var(--wfl-rem)); line-height: 1.55; }
.wfl .wfl-quiz-verdict h3 { font-weight: 700; }
.wfl .wfl-quiz-facts strong { font-weight: 700; } .wfl .wfl-quiz-best { font-size: calc(1.0625 * var(--wfl-rem)); }
