/* SportIQ design system — Talstack structure, Nigerian national colours. */
:root {
  --brand: #008751;          /* flag green */
  --brand-hover: #006b40;
  --primary: #0b3d2e;        /* deep green: headings, dark sections */
  --accent: #f2c230;         /* gold */
  --accent-soft: #fff6d7;
  --accent-text: #7a5b00;
  --dark-btn: #0b3d2e;
  --tint: #e6f4ec;
  --surface: #f6faf7;
  --card: #ffffff;
  --border: #e3ebe6;
  --text: #2b3530;
  --muted: #6b7a72;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --warning: #9a6b00;
  --warning-soft: #fff3cd;
  --info-soft: #e8f1fb;
  --info: #1f5fa8;
  --ring: rgba(0, 135, 81, .28);
  --radius-button: 8px;
  --radius-input: 10px;
  --radius-image: 16px;
  --radius-card: 20px;
  --radius-banner: 24px;
  --radius-pill: 80px;
  --shadow: 0 1px 2px rgba(11, 61, 46, .06), 0 8px 24px rgba(11, 61, 46, .06);
  --shadow-lg: 0 20px 50px rgba(11, 61, 46, .14);
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --maxw: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #19a866; --brand-hover: #22c079; --primary: #e6f4ec; --accent: #f2c230; --accent-soft: #3a3214; --accent-text: #f2c230; --dark-btn: #19a866;
    --tint: #123526; --surface: #0b1712; --card: #10211a; --border: #1f3a2d; --text: #dce8e1; --muted: #93a79c;
    --danger-soft: #3b1714; --warning-soft: #3a2f0e; --info-soft: #11263b; --info: #8bb8ee; --warning: #f2c230;
    --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 20px 50px rgba(0,0,0,.4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand: #19a866; --brand-hover: #22c079; --primary: #e6f4ec; --accent: #f2c230; --accent-soft: #3a3214; --accent-text: #f2c230; --dark-btn: #19a866;
  --tint: #123526; --surface: #0b1712; --card: #10211a; --border: #1f3a2d; --text: #dce8e1; --muted: #93a79c;
  --danger-soft: #3b1714; --warning-soft: #3a2f0e; --info-soft: #11263b; --info: #8bb8ee; --warning: #f2c230;
  --shadow: 0 1px 2px rgba(0,0,0,.3); --shadow-lg: 0 20px 50px rgba(0,0,0,.4); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--card); }
body.app-body { background: var(--surface); }
img, video { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--primary); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
.serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.tricolour { height: 4px; background: linear-gradient(90deg, #008751 33.3%, #fff 33.3% 66.6%, #008751 66.6%); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: var(--radius-button);
  font: 600 .95rem/1.2 var(--font-sans); border: 1px solid transparent; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, border-color .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-dark { background: var(--dark-btn); color: #fff; }
.btn-dark:hover { background: #072a20; }
.btn-gold { background: var(--accent); color: #0b3d2e; }
.btn-gold:hover { background: #e3b11f; }
.btn-secondary { background: var(--card); color: var(--primary); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--brand); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--tint); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: .45rem .8rem; font-size: .85rem; }
.btn-lg { padding: .9rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }

/* Pills, badges, eyebrows */
.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: var(--radius-pill); font-size: .8rem; font-weight: 600; background: var(--tint); color: var(--brand); }
.pill-gold { background: var(--accent-soft); color: var(--accent-text); }
.pill-dark { background: #0b3d2e; color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--brand); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.badge { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .55rem; border-radius: var(--radius-pill); font-size: .75rem; font-weight: 600; background: var(--tint); color: var(--brand); white-space: nowrap; }
.badge-gold { background: var(--accent-soft); color: var(--accent-text); }
.badge-grey { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }
.badge-red { background: var(--danger-soft); color: var(--danger); }
.badge-blue { background: var(--info-soft); color: var(--info); }
.badge-amber { background: var(--warning-soft); color: var(--warning); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 1.5rem; }
.card-tight { padding: 1rem; }
.card-tint { background: var(--tint); border-color: transparent; }
.card-dark { background: #0b3d2e; color: #e6f4ec; border-color: transparent; }
.card-dark h2, .card-dark h3 { color: #fff; }
.card h3 { margin-bottom: .35rem; }
.card-link { display: block; color: inherit; text-decoration: none !important; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }

/* Grid utilities */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.hide-sm { display: none; }
@media (min-width: 900px) { .hide-sm { display: initial; } .hide-lg { display: none !important; } }

/* Forms */
label { display: block; font-weight: 600; font-size: .9rem; color: var(--primary); margin-bottom: .35rem; }
.field { margin-bottom: 1rem; }
.field .help { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.field .error, .errorlist { color: var(--danger); font-size: .85rem; margin: .25rem 0 0; padding: 0; list-style: none; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=date],
input[type=datetime-local], input[type=search], input[type=file], select, textarea {
  width: 100%; padding: .65rem .85rem; border: 1px solid var(--border); border-radius: var(--radius-input); background: var(--card);
  color: var(--text); font: inherit; font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 1.05rem; height: 1.05rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; color: var(--text); }
.check input { margin-top: .25rem; }
.form-grid { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-end; }
.inline-form > * { flex: 1 1 160px; }
.inline-form .btn { flex: 0 0 auto; }

/* Alerts / messages */
.alert { padding: .85rem 1rem; border-radius: 12px; margin-bottom: 1rem; border: 1px solid transparent; font-size: .95rem; }
.alert-success { background: var(--tint); color: var(--brand); border-color: rgba(0,135,81,.2); }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-warning { background: var(--warning-soft); color: var(--warning); }
.alert-info { background: var(--info-soft); color: var(--info); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: var(--surface); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface); }

/* Progress */
.progress { height: 8px; background: var(--tint); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.progress-gold > span { background: var(--accent); }

/* Avatar */
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--tint); color: var(--brand); display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.4rem; }

/* ---------- Public site ---------- */
.announce { background: #0b3d2e; color: #e6f4ec; font-size: .875rem; }
.announce .container { display: flex; align-items: center; justify-content: center; gap: .75rem; padding-top: .55rem; padding-bottom: .55rem; text-align: center; flex-wrap: wrap; }
.announce a { color: var(--accent); font-weight: 600; }
.notice { padding: .6rem 0; font-size: .9rem; text-align: center; }
.notice-info { background: var(--info-soft); color: var(--info); }
.notice-warning { background: var(--warning-soft); color: var(--warning); }
.notice-danger { background: var(--danger-soft); color: var(--danger); }

.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.nav .container { display: flex; align-items: center; gap: 1rem; height: 72px; }
.nav-actions .btn { padding: .6rem .9rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap; font-weight: 700; font-size: 1.25rem; color: var(--primary); text-decoration: none !important; letter-spacing: -.02em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; background: #008751; display: grid; place-items: center; position: relative; overflow: hidden; }
.logo-mark::before { content: ""; position: absolute; inset: 0 33.3%; background: #fff; }
.logo-mark span { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #008751; }
.logo b { color: var(--brand); }
.nav-links { display: none; align-items: center; gap: .25rem; flex: 1; }
.nav-links > a, .nav-drop > button { color: var(--primary); font-weight: 500; font-size: .93rem; padding: .5rem .6rem; white-space: nowrap; border-radius: 8px; background: none; border: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: .25rem; }
.nav-links > a:hover, .nav-drop > button:hover { background: var(--tint); text-decoration: none; }
.nav-actions { display: none; align-items: center; gap: .5rem; margin-left: auto; }
.nav-drop { position: relative; }
.mega { position: absolute; top: calc(100% + 10px); left: -12px; width: min(680px, 90vw); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-lg); padding: 1rem; display: none; grid-template-columns: 1fr 1fr; gap: .25rem; }
.mega.narrow { width: 320px; grid-template-columns: 1fr; }
.nav-drop:hover .mega, .nav-drop:focus-within .mega, .nav-drop.open .mega { display: grid; }
.mega::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.mega a { display: flex; gap: .8rem; padding: .75rem; border-radius: 12px; color: var(--text); text-decoration: none; }
.mega a:hover { background: var(--surface); }
.mega .mi { width: 38px; height: 38px; border-radius: 10px; background: var(--tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.mega strong { display: block; color: var(--primary); font-size: .95rem; }
.mega small { color: var(--muted); font-size: .8rem; line-height: 1.4; display: block; }
.burger { margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 8px; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; color: var(--primary); }
@media (min-width: 1080px) { .nav-links, .nav-actions { display: flex; } .burger, .nav-mobile-cta { display: none !important; } }
.nav-mobile-cta { margin-left: auto; }
.drawer { position: fixed; inset: 0; background: var(--card); z-index: 100; padding: 0 16px 32px; overflow-y: auto; display: none; }
.drawer.open { display: block; }
.drawer-head { display: flex; align-items: center; height: 72px; }
.drawer details { border-bottom: 1px solid var(--border); }
.drawer summary { padding: 1rem 0; font-weight: 600; color: var(--primary); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.drawer summary::-webkit-details-marker { display: none; }
.drawer details a, .drawer > nav > a:not(.btn) { display: block; padding: .65rem 0; color: var(--text); }
.drawer > nav > a:not(.btn) { border-bottom: 1px solid var(--border); padding: 1rem 0; font-weight: 600; color: var(--primary); }
.drawer .btn { margin-top: 1rem; }

.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-tint { background: var(--surface); }
.section-dark { background: #0b3d2e; color: #cfe3d8; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: #a9c9b8; }

.hero { padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -160px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, var(--tint), transparent); z-index: -1; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } .hero { padding: 80px 0 96px; } }
.hero h1 { margin: 1rem 0 1.25rem; }
.hero h1 em { font-style: normal; color: var(--brand); font-family: var(--font-serif); font-weight: 500; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-note { margin-top: 1.25rem; font-size: .9rem; color: var(--muted); }
.mock { position: relative; }
.mock-window { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-banner); box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-body { display: grid; grid-template-columns: 120px 1fr; min-height: 330px; }
.mock-side { background: #0b3d2e; padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.mock-side i { height: 8px; border-radius: 4px; background: rgba(255,255,255,.18); }
.mock-side i.on { background: var(--accent); width: 70%; }
.mock-main { padding: 18px; display: grid; gap: 12px; align-content: start; }
.mock-card { border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.mock-line { height: 8px; border-radius: 4px; background: var(--border); }
.mock-line.w60 { width: 60%; } .mock-line.w40 { width: 40%; } .mock-line.w80 { width: 80%; }
.mock-line.green { background: var(--brand); }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-stat { border-radius: 12px; padding: 10px; background: var(--tint); display: grid; gap: 6px; }
.mock-stat b { font-size: 1.1rem; color: var(--primary); }
.mock-stat.gold { background: var(--accent-soft); }
.mock-phone { position: absolute; right: -6px; bottom: -36px; width: 150px; background: var(--card); border: 6px solid #0b3d2e; border-radius: 26px; box-shadow: var(--shadow-lg); padding: 10px; display: none; animation: float 6s ease-in-out infinite; }
@media (min-width: 560px) { .mock-phone { display: block; } }
.mock-cert { border-radius: 14px; background: var(--tint); padding: 10px; text-align: center; }
.mock-qr { width: 54px; height: 54px; margin: 6px auto; background: repeating-conic-gradient(#0b3d2e 0 25%, #fff 0 50%) 0 0/12px 12px; border-radius: 4px; }
.float-chip { position: absolute; left: -10px; top: 40px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 10px 12px; display: none; align-items: center; gap: 10px; font-size: .85rem; animation: float 7s ease-in-out infinite reverse; }
@media (min-width: 560px) { .float-chip { display: flex; } }
.float-chip .avatar { width: 32px; height: 32px; background: var(--accent-soft); color: var(--accent-text); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .mock-phone, .float-chip, .marquee-track { animation: none !important; } }

.logos { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logos p { text-align: center; color: var(--muted); font-weight: 500; margin-bottom: 1.5rem; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; align-items: center; }
.logo-row span { font-weight: 700; color: var(--muted); font-size: 1rem; letter-spacing: -.01em; opacity: .85; display: inline-flex; align-items: center; gap: .45rem; }
.logo-row img { height: 34px; width: auto; filter: grayscale(1); opacity: .75; }

.course-tile { border-radius: var(--radius-image); overflow: hidden; border: 1px solid var(--border); background: var(--card); display: flex; flex-direction: column; color: inherit; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
.course-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.course-cover { aspect-ratio: 16 / 9; position: relative; display: flex; align-items: flex-end; padding: 14px; color: #fff; overflow: hidden; }
.course-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(0,0,0,.25)); }
.course-cover .cover-art { position: absolute; right: -20px; top: -20px; width: 130px; height: 130px; border-radius: 50%; border: 18px solid rgba(255,255,255,.12); }
.course-cover .cover-art2 { position: absolute; right: 50px; bottom: -40px; width: 90px; height: 90px; border-radius: 50%; background: rgba(242,194,48,.35); }
.course-cover .pill { position: relative; background: rgba(255,255,255,.92); color: #0b3d2e; }
.course-body { padding: 16px; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.course-body h3 { font-size: 1.05rem; margin: 0; }
.course-meta { display: flex; gap: .75rem; flex-wrap: wrap; color: var(--muted); font-size: .82rem; margin-top: auto; padding-top: .5rem; }
.course-meta span { display: inline-flex; gap: .3rem; align-items: center; }
.price { font-weight: 700; color: var(--primary); }
.price.free { color: var(--brand); }

.bento { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .bento { grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto auto; } .bento .big { grid-row: span 3; } }
.bento-card { border-radius: var(--radius-card); padding: 1.75rem; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: .5rem; color: inherit; text-decoration: none !important; overflow: hidden; position: relative; transition: border-color .15s; }
.bento-card:hover { border-color: var(--brand); }
.bento-card.big { background: #0b3d2e; color: #cfe3d8; border: 0; }
.bento-card.big h3 { color: #fff; font-size: 1.6rem; }
.bento-card p { color: var(--muted); margin: 0; }
.bento-card.big p { color: #a9c9b8; }
.bento-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--brand); display: grid; place-items: center; margin-bottom: .5rem; }
.path-steps { display: grid; gap: .6rem; margin-top: 1.5rem; }
.path-step { display: flex; align-items: center; gap: .8rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: .75rem 1rem; }
.path-step b { color: #fff; font-weight: 600; }
.path-step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #0b3d2e; font-weight: 700; display: grid; place-items: center; font-size: .85rem; flex: none; }
.path-step .bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); overflow: hidden; }
.path-step .bar span { display: block; height: 100%; background: var(--accent); }
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; margin-top: auto; padding-top: 1rem; }
.chart-bars i { flex: 1; background: var(--tint); border-radius: 6px 6px 2px 2px; }
.chart-bars i.on { background: var(--brand); }

.feature-stack { display: grid; gap: 1.25rem; }
.feature-row { display: grid; gap: 1.5rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 1.5rem; }
@media (min-width: 900px) { .feature-row { grid-template-columns: 1fr 1.1fr; padding: 2.5rem; } .feature-row:nth-child(even) .feature-visual { order: -1; } }
.feature-row h3 { font-size: 1.6rem; }
.feature-row ul { padding-left: 0; list-style: none; margin: 1rem 0 0; display: grid; gap: .5rem; }
.feature-row li { display: flex; gap: .5rem; align-items: flex-start; }
.feature-row li .icon { color: var(--brand); margin-top: .2rem; }
.feature-visual { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-image); padding: 1.25rem; box-shadow: var(--shadow); }

.role-tabs { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
.role-tabs button { border: 1px solid var(--border); background: var(--card); color: var(--primary); border-radius: var(--radius-pill); padding: .55rem 1.1rem; font: 600 .9rem var(--font-sans); cursor: pointer; }
.role-tabs button[aria-selected="true"] { background: #0b3d2e; color: #fff; border-color: #0b3d2e; }
.role-panel { display: none; }
.role-panel.active { display: grid; }

.stats { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 1.5rem; border-radius: var(--radius-card); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--accent); font-family: var(--font-serif); font-weight: 500; line-height: 1.1; }
.stat span { color: #cfe3d8; }
.illustrative { font-size: .75rem; color: #a9c9b8; margin-top: 1rem; text-align: center; }

.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 1.25rem; width: max-content; animation: scroll 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.quote-card { width: min(360px, 82vw); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.quote-card p { margin: 0; color: var(--text); }
.quote-who { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.quote-who strong { display: block; color: var(--primary); font-size: .95rem; }
.quote-who small { color: var(--muted); }

.press-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .press-grid { grid-template-columns: repeat(3, 1fr); } }
.press-card { border: 1px solid var(--border); border-radius: var(--radius-card); padding: 1.25rem; color: inherit; text-decoration: none !important; }
.press-card .outlet { font-weight: 700; color: var(--brand); font-size: .9rem; }
.press-card p { color: var(--primary); font-weight: 600; margin: .5rem 0; }

.post-card { display: flex; flex-direction: column; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border); background: var(--card); color: inherit; text-decoration: none !important; }
.post-card:hover { box-shadow: var(--shadow); }
.post-cover { aspect-ratio: 16/9; position: relative; overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover .cover-art { position: absolute; left: -30px; bottom: -30px; width: 140px; height: 140px; border-radius: 50%; border: 20px solid rgba(255,255,255,.12); }
.post-body { padding: 1.25rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.post-body h3 { font-size: 1.1rem; margin: 0; }
.post-meta { display: flex; gap: .5rem; align-items: center; color: var(--muted); font-size: .82rem; flex-wrap: wrap; }

.cta-band { border-radius: var(--radius-banner); background: #0b3d2e; color: #cfe3d8; padding: 3rem 1.5rem; text-align: center; position: relative; overflow: hidden; }
.cta-band::before, .cta-band::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255,255,255,.06); }
.cta-band::before { left: -90px; top: -90px; }
.cta-band::after { right: -90px; bottom: -90px; border-color: rgba(242,194,48,.18); }
.cta-band h2 { color: #fff; max-width: 680px; margin: .5rem auto 1rem; position: relative; }
.cta-band p { max-width: 600px; margin: 0 auto; color: #a9c9b8; position: relative; }
.cta-band .hero-cta { justify-content: center; position: relative; }
.cta-band .eyebrow { color: var(--accent); }
@media (min-width: 900px) { .cta-band { padding: 4.5rem 2rem; } }

.footer { background: var(--surface); border-top: 1px solid var(--border); padding-top: 64px; font-size: .95rem; }
.footer-top { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer ul a { color: var(--text); }
.newsletter { display: flex; gap: .5rem; margin-top: 1rem; max-width: 380px; }
.newsletter input { flex: 1; }
.newsletter button { width: 46px; padding: 0; }
.footer-bottom { margin-top: 3rem; padding: 1.5rem 0; border-top: 1px solid var(--border); display: flex; gap: 1rem; justify-content: space-between; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: .875rem; }
.footer-bottom a { color: var(--muted); }
.socials { display: flex; gap: .5rem; }
.socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--primary); }

.page-hero { padding: 56px 0 40px; background: var(--surface); border-bottom: 1px solid var(--border); }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 720px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.prose img { border-radius: var(--radius-image); }
.prose blockquote { border-left: 4px solid var(--accent); margin: 1rem 0; padding: .25rem 1rem; color: var(--muted); }
.prose code { background: var(--surface); padding: .1rem .3rem; border-radius: 4px; }

.filters { display: grid; gap: .75rem; }
@media (min-width: 900px) { .catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; align-items: start; } .filters { position: sticky; top: 90px; } }
.chip-list { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { padding: .3rem .75rem; border-radius: var(--radius-pill); border: 1px solid var(--border); font-size: .82rem; color: var(--primary); background: var(--card); text-decoration: none !important; }
.chip.on, .chip:hover { background: #0b3d2e; color: #fff; border-color: #0b3d2e; }

.accordion details { border: 1px solid var(--border); border-radius: 14px; padding: 0 1.25rem; background: var(--card); margin-bottom: .75rem; }
.accordion summary { padding: 1rem 0; font-weight: 600; color: var(--primary); cursor: pointer; }
.accordion details[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 1rem; }

.verify-card { max-width: 720px; margin: 0 auto; }
.verify-status { display: flex; gap: 1rem; align-items: center; padding: 1.25rem; border-radius: 16px; margin-bottom: 1.5rem; }
.verify-status .big-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.verify-valid { background: var(--tint); } .verify-valid .big-icon { background: var(--brand); color: #fff; }
.verify-bad { background: var(--danger-soft); } .verify-bad .big-icon { background: var(--danger); color: #fff; }
.verify-warn { background: var(--warning-soft); } .verify-warn .big-icon { background: var(--warning); color: #fff; }
dl.details { display: grid; grid-template-columns: 1fr; gap: .25rem 1.5rem; margin: 0; }
@media (min-width: 600px) { dl.details { grid-template-columns: 200px 1fr; } }
dl.details dt { color: var(--muted); font-size: .9rem; }
dl.details dd { margin: 0 0 .5rem; font-weight: 600; color: var(--primary); }

.auth-wrap { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 48px 16px; background: var(--surface); }
.auth-card { width: 100%; max-width: 460px; }
.auth-card.wide { max-width: 720px; }

/* ---------- App shell (learner + back office) ---------- */
.app { display: grid; min-height: 100vh; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .app { grid-template-columns: 276px 1fr; } }
.sidebar { display: none; background: var(--card); border-right: 1px solid var(--border); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; flex-direction: column; gap: .2rem; }
@media (min-width: 1000px) { .sidebar { display: flex; } }
.sidebar.dark { background: #0b3d2e; border-color: #0b3d2e; }
.sidebar.dark .logo { color: #fff; }
.sidebar.dark .side-link { color: #cfe3d8; }
.sidebar.dark .side-link:hover { background: rgba(255,255,255,.07); }
.sidebar.dark .side-link.active { background: rgba(242,194,48,.15); color: var(--accent); }
.sidebar.dark .side-label { color: #7fa592; }
.sidebar .logo { margin: 0 .5rem 1.5rem; }
.side-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1rem .75rem .35rem; font-weight: 600; }
.side-link { display: flex; align-items: center; gap: .7rem; padding: .55rem .75rem; border-radius: 10px; color: var(--text); font-weight: 500; font-size: .93rem; text-decoration: none !important; }
.side-link:hover { background: var(--surface); }
.side-link.active { background: var(--tint); color: var(--brand); font-weight: 600; }
.side-link .count { margin-left: auto; background: var(--accent); color: #0b3d2e; font-size: .72rem; font-weight: 700; padding: 0 .45rem; border-radius: 99px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; display: flex; align-items: center; gap: .75rem; padding: 0 16px; background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 40; }
@media (min-width: 768px) { .topbar { padding: 0 28px; } }
.topbar .search { flex: 1; max-width: 420px; position: relative; }
.topbar .search input { padding-left: 2.3rem; background: var(--surface); }
.topbar .search .icon { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--primary); border: 1px solid var(--border); background: var(--card); }
.icon-btn .dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; background: var(--danger); border-radius: 50%; }
.content { padding: 24px 16px 96px; width: 100%; max-width: 1240px; }
@media (min-width: 768px) { .content { padding: 32px 28px 48px; } }
.page-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-title h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.page-title p { margin: .25rem 0 0; color: var(--muted); }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }
.breadcrumbs a { color: var(--muted); }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--border); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 60; padding-bottom: env(safe-area-inset-bottom); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 10px; font-size: .7rem; color: var(--muted); text-decoration: none !important; }
.tabbar a.active { color: var(--brand); font-weight: 600; }
.tabbar .icon { width: 22px; height: 22px; }
@media (min-width: 1000px) { .tabbar { display: none; } .content { padding-bottom: 48px; } }
.mobile-menu-btn { display: grid; }
@media (min-width: 1000px) { .mobile-menu-btn { display: none; } }
.side-drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.side-drawer.open { display: block; }
.side-drawer .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.side-drawer .sidebar { display: flex; position: absolute; left: 0; top: 0; bottom: 0; width: 280px; }

.kpis { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 1100px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.25rem; }
.kpi .label { font-size: .82rem; color: var(--muted); display: flex; gap: .35rem; align-items: center; }
.kpi .value { font-size: 1.8rem; font-weight: 700; color: var(--primary); letter-spacing: -.02em; line-height: 1.2; margin-top: .25rem; }
.kpi .sub { font-size: .8rem; color: var(--muted); }
.kpi.gold { background: var(--accent-soft); border-color: transparent; }
.kpi.green { background: var(--tint); border-color: transparent; }
.split { display: grid; gap: 1.25rem; }
@media (min-width: 1100px) { .split { grid-template-columns: 2fr 1fr; } .split-even { grid-template-columns: 1fr 1fr; } }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { padding: .85rem 0; border-bottom: 1px solid var(--border); display: flex; gap: .75rem; align-items: center; }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; color: var(--primary); }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; color: var(--border); margin: 0 auto .75rem; }
.continue-card { display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 720px) { .continue-card { grid-template-columns: 200px 1fr auto; } }
.continue-card .course-cover { border-radius: 14px; }

.player-layout { display: grid; gap: 1.5rem; }
@media (min-width: 1100px) { .player-layout { grid-template-columns: 1fr 320px; } }
.player { background: #000; border-radius: var(--radius-image); overflow: hidden; aspect-ratio: 16/9; }
.player video { width: 100%; height: 100%; }
.player-toolbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .75rem; }
.outline { max-height: 70vh; overflow-y: auto; }
.outline h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 1rem 0 .4rem; }
.outline a { display: flex; gap: .6rem; padding: .5rem .6rem; border-radius: 10px; color: var(--text); font-size: .9rem; align-items: flex-start; text-decoration: none !important; }
.outline a:hover { background: var(--surface); }
.outline a.current { background: var(--tint); color: var(--brand); font-weight: 600; }
.outline .tick { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex: none; margin-top: 2px; display: grid; place-items: center; }
.outline .tick.done { background: var(--brand); border-color: var(--brand); color: #fff; }
.transcript { max-height: 280px; overflow-y: auto; white-space: pre-wrap; font-size: .92rem; background: var(--surface); padding: 1rem; border-radius: 12px; }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1rem; overflow-x: auto; }
.tabs a, .tabs button { padding: .7rem 1rem; color: var(--muted); font-weight: 600; font-size: .92rem; border: 0; background: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; font-family: inherit; text-decoration: none !important; }
.tabs .active, .tabs [aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; } .tab-panel.active { display: block; }

.exam-q { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; margin-bottom: 1rem; }
.exam-q .qn { font-size: .8rem; color: var(--muted); font-weight: 600; }
.exam-q .qtext { font-weight: 600; color: var(--primary); margin: .25rem 0 .75rem; white-space: pre-wrap; }
.option { display: flex; gap: .7rem; align-items: flex-start; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: 12px; margin-bottom: .5rem; cursor: pointer; font-weight: 400; color: var(--text); }
.option:hover { border-color: var(--brand); }
.option:has(input:checked) { border-color: var(--brand); background: var(--tint); }
.option.correct { border-color: var(--brand); background: var(--tint); }
.option.wrong { border-color: var(--danger); background: var(--danger-soft); }
.timer { position: sticky; top: 72px; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 1rem; background: #0b3d2e; color: #fff; padding: .75rem 1.25rem; border-radius: 14px; margin-bottom: 1rem; }
.timer b { font-size: 1.25rem; color: var(--accent); font-variant-numeric: tabular-nums; }

.badge-tile { text-align: center; padding: 1.25rem; border-radius: 16px; border: 1px solid var(--border); background: var(--card); }
.badge-tile .medal { width: 64px; height: 64px; margin: 0 auto .75rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; background: var(--accent-soft); border: 3px solid var(--accent); }
.badge-tile.locked { opacity: .45; filter: grayscale(1); }
.cred-card { border-radius: 18px; padding: 1.25rem; background: linear-gradient(135deg, #0b3d2e, #008751); color: #e6f4ec; position: relative; overflow: hidden; }
.cred-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; border: 24px solid rgba(242,194,48,.25); }
.cred-card h3 { color: #fff; position: relative; }
.cred-card .code { font-family: ui-monospace, Consolas, monospace; color: var(--accent); }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.chart .bar { width: 100%; background: var(--brand); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.chart .col small { font-size: .68rem; color: var(--muted); }
.hbar { display: grid; grid-template-columns: 120px 1fr 48px; gap: .6rem; align-items: center; font-size: .88rem; margin-bottom: .5rem; }
.hbar .track { height: 10px; border-radius: 5px; background: var(--tint); overflow: hidden; }
.hbar .track span { display: block; height: 100%; background: var(--brand); }
.hbar b { text-align: right; color: var(--primary); }
.definition { font-size: .78rem; color: var(--muted); }
.builder-module { border: 1px solid var(--border); border-radius: 16px; background: var(--card); margin-bottom: 1rem; }
.builder-module > header { padding: 1rem 1.25rem; display: flex; justify-content: space-between; gap: .75rem; align-items: center; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.builder-lesson { display: flex; gap: .75rem; align-items: center; padding: .75rem 1.25rem; border-bottom: 1px solid var(--border); }
.builder-lesson:last-child { border-bottom: 0; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); }
.status-published { background: var(--brand); } .status-in_review { background: var(--accent); } .status-approved { background: var(--info); } .status-retired { background: var(--danger); }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); }
.timeline li { padding: 0 0 1rem 1rem; position: relative; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.pagination a, .pagination span { padding: .4rem .8rem; border: 1px solid var(--border); border-radius: 8px; font-size: .9rem; }
.pagination .current { background: #0b3d2e; color: #fff; border-color: #0b3d2e; }
.message-thread .msg { padding: 1rem; border-radius: 14px; background: var(--surface); margin-bottom: .75rem; }
.message-thread .msg.staff { background: var(--tint); }
.message-thread .msg.internal { background: var(--warning-soft); }
.data-saver .player video { display: none; }
@media print { .nav, .footer, .sidebar, .topbar, .tabbar, .announce { display: none !important; } }

/* Checkbox / radio groups rendered by Django (CheckboxSelectMultiple, RadioSelect) */
.field > div[id] { display: flex; flex-wrap: wrap; gap: .5rem; }
.field > div[id] > div { margin: 0; }
.field > div[id] label { display: inline-flex; gap: .45rem; align-items: center; font-weight: 500; color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: .35rem .85rem; cursor: pointer; background: var(--card); margin: 0; font-size: .9rem; }
.field > div[id] label:has(input:checked) { border-color: var(--brand); background: var(--tint); color: var(--brand); }
.bento-card.big .path-steps { margin-top: auto; }

.hero-grid > *, .split > *, .grid > *, .catalog-layout > *, .player-layout > * { min-width: 0; }
@media (max-width: 560px) { .mock-body { grid-template-columns: 52px 1fr; } .mock-main { padding: 12px; } }
.side-link .badge { flex: none; font-size: .62rem; padding: 0 .4rem; }
.exam-q legend { float: left; width: 100%; padding: 0; margin-bottom: .25rem; } .exam-q legend + * { clear: both; } fieldset.exam-q { min-width: 0; }

/* Language switcher (public header and footer) */
.lang-switch { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
.lang-switch select { width: auto; padding: .35rem .55rem; font-size: .85rem; }
.footer .lang-switch select { background: transparent; color: inherit; border-color: currentColor; }
.footer .lang-switch option { color: #0b3d2e; }
