/* Webcafe Learn. Look and feel follow webcafe.co.za (see Webcafe Quoter's site-chrome.css):
   Montserrat headings, Inter body, navy text, lime pill buttons, sky-blue surfaces. */
:root {
  --cyan: #00B2FE;
  --cyan-2: #35C3FF;
  --cyan-ink: #0284C7;
  --lime: #86C53C;
  --lime-ink: #4D7C0F;
  --lime-soft: #F0F9E6;
  --navy: #0E1B38;
  --slate: #1E293B;
  --grey: #475569;
  --muted: #64748B;
  --sky: #EBF8FF;
  --sky-2: #E0F2FE;
  --sky-line: #BAE6FD;
  --line: #E2E8F0;
  --bg: #F7FAFC;
  --white: #FFFFFF;
  --sky-text: #93C5FD;
  --red: #DC2626;
  --red-soft: #FEF2F2;
  --amber: #B45309;
  --font-head: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(14, 27, 56, .04), 0 8px 24px rgba(14, 27, 56, .06);
  --shadow-lg: 0 18px 40px rgba(14, 27, 56, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 16px/1.65 var(--font-body);
  color: var(--slate); background: var(--bg); -webkit-font-smoothing: antialiased; }
main { flex: 1; }
a { color: var(--cyan-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 1.35rem; font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
small, .muted { color: var(--muted); }
code { font-size: .88em; background: var(--sky); border: 1px solid var(--sky-line); padding: 1px 6px; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.ico { flex: none; vertical-align: middle; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page { padding-top: 32px; padding-bottom: 64px; }

/* ---- Header ---- */
.site-header { background: var(--white); border-bottom: 1px solid var(--sky-line); position: sticky; top: 0; z-index: 40; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 40px; width: auto; display: block; }
.brand-tag { font: 700 12px/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--white);
  background: var(--navy); padding: 6px 10px; border-radius: 999px; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu .nl { font-weight: 600; font-size: 15px; color: var(--navy); text-decoration: none; padding: 10px 14px; border-radius: 10px; }
.menu .nl:hover { color: var(--lime-ink); }
.menu .nl.active { color: var(--lime-ink); box-shadow: inset 0 -3px 0 var(--lime); border-radius: 0; }
.user-menu { position: relative; margin-left: 10px; }
.user-menu summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 5px 12px 5px 5px;
  border: 1px solid var(--line); border-radius: 999px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu[open] summary, .user-menu summary:hover { border-color: var(--sky-line); background: var(--sky); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--cyan), var(--lime));
  color: var(--white); font: 700 13px var(--font-head); }
.user-name { font-weight: 600; font-size: 14.5px; color: var(--navy); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); min-width: 260px; background: var(--white); border: 1px solid var(--sky-line);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; }
.dropdown-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown-head strong { display: block; font-family: var(--font-head); color: var(--navy); }
.dropdown-head span { font-size: 13px; color: var(--muted); }
.dropdown a, .dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px;
  font: 500 14.5px var(--font-body); color: var(--slate); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--sky); color: var(--navy); }
.dropdown form { margin: 0; }

/* ---- Flash ---- */
.flashes { padding-top: 18px; }
.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 8px; background: var(--sky); border: 1px solid var(--sky-line); color: var(--navy); font-weight: 500; }
.flash-error { background: var(--red-soft); border-color: #FECACA; color: var(--red); }
.flash-success { background: var(--lime-soft); border-color: #D9F0C1; color: var(--lime-ink); }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer;
  font: 700 15px/1.2 var(--font-head); padding: 13px 26px; border-radius: 999px; border: 2px solid var(--lime);
  background: var(--lime); color: var(--navy); transition: background .15s, border-color .15s, color .15s, transform .15s; }
.btn:hover { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.btn:active { transform: translateY(1px); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-ms { background: var(--white); border: 1px solid var(--line); color: var(--slate); font-family: var(--font-body); font-weight: 600; }
.btn-ms:hover { background: var(--sky); border-color: var(--sky-line); }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--cyan-ink); cursor: pointer; }
button.link:hover { text-decoration: underline; }
form.inline { display: inline; margin: 0; }

/* ---- Hero bands ---- */
.hero { background: linear-gradient(180deg, var(--sky) 0%, #F4FBFF 60%, var(--bg) 100%); border-bottom: 1px solid var(--sky-line); }
.hero .wrap { padding-top: 48px; padding-bottom: 44px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 700 12px/1 var(--font-head); letter-spacing: .14em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--cyan); }
.lead { font-size: 1.1rem; color: var(--grey); max-width: 62ch; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.crumbs { display: flex; width: fit-content; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--grey); text-decoration: none; margin-bottom: 18px; }
.crumbs:hover { color: var(--navy); }

/* Status card, after the website's "Your business, running" panel */
.status-card { background: var(--white); border: 1px solid var(--sky-line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 22px 24px; }
.status-card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.status-card header strong { font-family: var(--font-head); color: var(--navy); font-size: 15px; }
.status-list { list-style: none; margin: 0; padding: 0; }
.status-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--slate); }
.status-list li:last-child { border-bottom: 0; }
.status-list .val { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.dot.on { background: var(--lime); box-shadow: 0 0 0 4px var(--lime-soft); }
.dot.blue { background: var(--cyan); box-shadow: 0 0 0 4px var(--sky); }

/* ---- Chips and pills ---- */
.chip { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1 var(--font-body); padding: 6px 10px; border-radius: 999px;
  background: var(--sky); color: var(--cyan-ink); border: 1px solid var(--sky-line); white-space: nowrap; }
.chip.lime { background: var(--lime-soft); color: var(--lime-ink); border-color: #D9F0C1; }
.chip.navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chip.grey { background: #F1F5F9; color: var(--grey); border-color: var(--line); }
.chip.amber { background: #FFFBEB; color: var(--amber); border-color: #FDE68A; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.meta-inline { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 14px; }
.meta-inline span { display: inline-flex; align-items: center; gap: 6px; }

/* ---- Cards ---- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 24px; }
.card.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.card-head h2 { margin: 0; }
.icon-tile { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--sky); color: var(--cyan-ink); border: 1px solid var(--sky-line); flex: none; }
.icon-tile.lime { background: var(--lime-soft); color: var(--lime-ink); border-color: #D9F0C1; }

.section { margin-bottom: 44px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.course-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--sky-line); border-radius: var(--radius);
  padding: 24px; color: inherit; text-decoration: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
.course-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--cyan-2); color: inherit; }
.course-card .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.course-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.course-card p { color: var(--grey); font-size: 14.5px; margin-bottom: 18px; }
.course-card .foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.course-card .go { display: inline-flex; align-items: center; gap: 6px; font: 700 14px var(--font-head); color: var(--navy); }
.course-card:hover .go { color: var(--lime-ink); }
.course-card.compact p { display: none; }

.progress { height: 8px; background: #E8EEF4; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--lime), #9BD45A); border-radius: 999px; }
.progress-row { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.progress-row .progress { flex: 1; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stat { padding: 4px 18px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font: 800 1.9rem/1.1 var(--font-head); color: var(--navy); }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; }

.coming-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.coming-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--white); border: 1px dashed var(--sky-line); border-radius: 14px; }
.coming-item strong { display: block; font-family: var(--font-head); font-size: 14.5px; color: var(--navy); }
.coming-item span { font-size: 13px; color: var(--muted); }
.coming-item .icon-tile { width: 38px; height: 38px; border-radius: 10px; }

/* ---- Course page ---- */
.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.aside-sticky { position: sticky; top: 100px; }
.module-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow); }
.module-card > header { display: flex; align-items: center; gap: 14px; padding: 18px 22px; background: linear-gradient(180deg, #FBFDFF, var(--white)); border-bottom: 1px solid var(--line); }
.module-num { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--navy); color: var(--white); font: 700 14px var(--font-head); flex: none; }
.module-card > header h3 { margin: 0; font-size: 1rem; }
.module-card > header p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }
.module-card > header .count { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.lesson-rows { list-style: none; margin: 0; padding: 0; }
.lesson-rows li a, .lesson-rows li > span { display: flex; align-items: center; gap: 14px; padding: 13px 22px; border-bottom: 1px solid var(--line); color: var(--slate); text-decoration: none; font-size: 15px; }
.lesson-rows li:last-child a, .lesson-rows li:last-child > span { border-bottom: 0; }
.lesson-rows li a:hover { background: var(--sky); color: var(--navy); }
.lesson-rows .kind { color: var(--cyan-ink); }
.lesson-rows .kind.check { color: var(--lime-ink); }
.lesson-rows .right { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); color: transparent; flex: none; }
.tick.done { background: var(--lime); border-color: var(--lime); color: var(--white); }
.prose { max-width: 74ch; font-size: 16.5px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.12rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--cyan); }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.4em 0; font-size: 15px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prose th { background: var(--sky); color: var(--navy); font-family: var(--font-head); font-size: 13.5px; text-align: left; }
.prose th, .prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose tr:nth-child(even) td { background: #FBFDFF; }
.prose blockquote { margin: 1.4em 0; padding: 14px 18px; border: 1px solid #D9F0C1; border-left: 4px solid var(--lime); background: var(--lime-soft); border-radius: 0 12px 12px 0; color: var(--slate); }
.prose blockquote p:last-child { margin: 0; }
.prose strong { color: var(--navy); }
.disclaimer { display: flex; gap: 10px; font-size: 13.5px; color: var(--grey); background: #F8FAFC; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }

/* ---- Lesson player ---- */
.player { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: calc(100vh - 77px); }
.player-nav { background: var(--white); border-right: 1px solid var(--line); padding: 22px 18px 32px; position: sticky; top: 77px; height: calc(100vh - 77px); overflow-y: auto; }
.player-nav .crumbs { margin-bottom: 12px; }
.player-nav .course-title { font: 700 15px/1.35 var(--font-head); color: var(--navy); margin-bottom: 12px; }
.player-nav .progress-row { margin-bottom: 22px; }
.nav-module { margin-bottom: 18px; }
.nav-module h4 { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px 8px; }
.nav-lessons { list-style: none; margin: 0; padding: 0; }
.nav-lessons a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--slate); text-decoration: none; font-size: 14px; line-height: 1.35; }
.nav-lessons a:hover { background: var(--sky); }
.nav-lessons .tick { width: 18px; height: 18px; border-width: 2px; }
.nav-lessons li.current a { background: var(--sky); color: var(--navy); font-weight: 600; box-shadow: inset 3px 0 0 var(--cyan); }
.player-main { padding: 36px 48px 64px; min-width: 0; }
.player-inner { max-width: 860px; margin: 0 auto; }
.lesson-head { margin-bottom: 26px; }
.lesson-head .meta { margin-bottom: 14px; }
.video { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.video iframe, .video video { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video figcaption { font-size: 12.5px; color: var(--muted); background: var(--white); padding: 8px 14px; }
.lesson-body { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.empty-note { display: flex; gap: 12px; align-items: center; color: var(--grey); background: var(--sky); border: 1px dashed var(--sky-line); border-radius: 12px; padding: 18px; }

/* ---- Questions ---- */
.question { border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin: 0 0 16px; background: var(--white); }
.question legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font: 600 16px/1.45 var(--font-body); color: var(--navy); display: flex; gap: 12px; }
.question legend + * { clear: both; }
.qn { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--navy); color: var(--white); font: 700 13px var(--font-head); }
.question legend small { display: block; font-weight: 500; color: var(--muted); }
.option { display: flex; align-items: flex-start; gap: 12px; margin: 8px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  cursor: pointer; font-size: 15px; transition: border-color .15s, background .15s; }
.option:hover { border-color: var(--sky-line); background: #FAFDFF; }
.option input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--cyan-ink); flex: none; }
.option:has(input:checked) { border-color: var(--cyan); background: var(--sky); }
.question.graded .option { cursor: default; }
.option.correct { border-color: var(--lime); background: var(--lime-soft); }
.option.picked-wrong { border-color: #FCA5A5; background: var(--red-soft); }
.question.right { border-color: #C5E6A6; }
.question.wrong { border-color: #FECACA; }
.explain { margin: 14px 0 0; padding: 12px 14px; background: var(--sky); border-radius: 10px; font-size: 14.5px; color: var(--slate); }
.explain b { color: var(--navy); }
.result-banner { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 14px; margin: 0 0 22px; background: var(--sky); border: 1px solid var(--sky-line); }
.result-banner.good { background: var(--lime-soft); border-color: #D9F0C1; }
.result-banner.bad { background: var(--red-soft); border-color: #FECACA; }
.result-banner .score-ring { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--white);
  font: 800 18px var(--font-head); color: var(--navy); border: 4px solid var(--cyan); }
.result-banner.good .score-ring { border-color: var(--lime); }
.result-banner.bad .score-ring { border-color: var(--red); }
.result-banner strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; }
.result-banner span { color: var(--grey); font-size: 14.5px; }

/* ---- Exam ---- */
.exam-bar { position: sticky; top: 77px; z-index: 5; background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.exam-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.exam-bar strong { font-family: var(--font-head); color: var(--navy); }
.timer { display: inline-flex; align-items: center; gap: 8px; font: 700 1.1rem ui-monospace, 'SFMono-Regular', Consolas, monospace; background: var(--navy); color: var(--white); padding: 8px 14px; border-radius: 999px; }
.timer.low { background: var(--red); }
.exam-wrap { max-width: 860px; margin: 0 auto; }
.rules { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.rules li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.rules li .ico { color: var(--cyan-ink); margin-top: 2px; }
.review { list-style: none; padding: 0; margin: 0; }
.review li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.review li .ico { margin-top: 2px; }
.review li.right .ico { color: var(--lime-ink); }
.review li.wrong .ico { color: var(--red); }

/* ---- Certificate callout ---- */
.cert-callout { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 16px; background: linear-gradient(135deg, var(--navy), #1B3366); color: var(--white); margin-bottom: 24px; }
.cert-callout .icon-tile { background: rgba(134, 197, 60, .18); border-color: rgba(134, 197, 60, .4); color: var(--lime); }
.cert-callout strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.cert-callout span { color: var(--sky-text); font-size: 14px; }
.cert-callout .btn { margin-left: auto; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; margin: 0 -28px -28px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.data th { text-align: left; font: 700 12px var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  background: #F8FAFC; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: #FBFDFF; }
table.data th:first-child, table.data td:first-child { padding-left: 28px; }
table.data th:last-child, table.data td:last-child { padding-right: 28px; }
.who strong { display: block; color: var(--navy); }
.who span { font-size: 13px; color: var(--muted); }
.mini-progress { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.mini-progress .progress { flex: 1; height: 6px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center; }
.kpi b { display: block; font: 800 1.7rem/1.1 var(--font-head); color: var(--navy); }
.kpi span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---- Forms ---- */
.field { display: block; margin: 0 0 18px; }
.field > span { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.field > span small { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input:not([type]) {
  display: block; width: 100%; padding: 12px 14px; border: 1px solid #CBD5E1; border-radius: 12px; font: inherit; color: var(--slate); background: var(--white);
  transition: border-color .15s, box-shadow .15s; }
input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0, 178, 254, .15); }
input:disabled { background: #F8FAFC; color: var(--muted); }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 22px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--cyan-ink); }
.form-section { padding-top: 22px; margin-top: 8px; border-top: 1px solid var(--line); }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin: 22px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---- Auth ---- */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: calc(100vh - 77px); }
.auth-side { background: radial-gradient(1200px 500px at 0% 0%, #1B3366 0%, var(--navy) 55%); color: var(--white); padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; }
.auth-side h1 { color: var(--white); font-size: clamp(2rem, 3.4vw, 2.8rem); }
.auth-side h1 em { font-style: normal; color: var(--lime); }
.auth-side .eyebrow { color: var(--sky-text); }
.auth-side p { color: var(--sky-text); font-size: 1.05rem; max-width: 46ch; }
.auth-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.auth-points li { display: flex; gap: 14px; align-items: center; color: var(--white); font-weight: 500; }
.auth-points .icon-tile { width: 40px; height: 40px; background: rgba(0, 178, 254, .14); border-color: rgba(0, 178, 254, .35); color: var(--cyan-2); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.auth-foot { margin-top: 22px; font-size: 14.5px; color: var(--muted); text-align: center; }
body.auth-page .site-footer { display: none; }

/* ---- Verify ---- */
.verify-card { text-align: center; }
.verify-badge { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--lime-soft); color: var(--lime-ink); border: 1px solid #D9F0C1; }
.verify-badge.bad { background: var(--red-soft); color: var(--red); border-color: #FECACA; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; text-align: left; max-width: 460px; margin: 24px auto; padding: 20px 24px; background: #F8FAFC; border: 1px solid var(--line); border-radius: 14px; }
.facts dt { font-weight: 600; color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; color: var(--navy); font-weight: 600; }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: var(--sky-text); padding: 44px 0 22px; margin-top: auto; }
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot p { max-width: 46ch; font-size: 14.5px; margin: 10px 0 0; }
.wordmark { font: 800 24px/1 var(--font-head); letter-spacing: -.02em; color: var(--white); }
.wordmark i { font-style: normal; color: var(--lime); }
.wordmark span { font-weight: 600; color: var(--cyan-2); }
.foot-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.site-footer a { color: var(--sky-text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; }
.site-footer a:hover { color: var(--lime); }
.copy { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(147, 197, 253, .22); font-size: 13.5px; }

/* ---- Responsive ---- */
@media (max-width: 1020px) {
  .hero-grid, .course-layout { grid-template-columns: 1fr; }
  .aside-sticky { position: static; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .player { grid-template-columns: 1fr; }
  .player-nav { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); max-height: 320px; }
  .player-main { padding: 28px 20px 48px; }
}
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 40px 24px; }
  .auth-points { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .brand img { height: 32px; }
  .user-name { display: none; }
  .user-menu summary { padding: 4px; }
  .menu .nl { padding: 8px 10px; }
  .lesson-body, .card { padding: 22px 18px; }
  .table-wrap { margin: 0 -18px -22px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
  .stat { padding: 4px 10px; }
  .stat b { font-size: 1.5rem; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .cert-callout { flex-wrap: wrap; }
  .cert-callout .btn { margin-left: 0; }
  .lesson-rows .right span.when { display: none; }
}
