/* ============================================================
   Soofos — Base shell styling
   Ported from Presentation/assets/shell.css.
   Structure consumed by TASK-002 (shell PHP templates/partials).
   All visual values reference CSS custom properties from tokens.css.
   ============================================================ */

/* ---------- Prototype toolbar (staff controls) ---------- */
#sf-toolbar {
  position: sticky; top: 0; z-index: 900;
  display: flex; align-items: center; gap: 14px;
  background: var(--ink); color: var(--white);
  padding: 7px 18px; font: 800 12px var(--font);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
#sf-toolbar .tb-brand { font-weight: 900; letter-spacing: -.2px; display:flex; align-items:center; gap:7px; }
#sf-toolbar .tb-brand b { color: var(--white); }
#sf-toolbar .tb-dot { color: var(--blue); }
#sf-toolbar a { color: var(--blue-fill); }
#sf-toolbar .tb-home { color:var(--white); background:rgba(255,255,255,.12); padding:5px 12px; border-radius:8px; font-weight:800; }
#sf-toolbar .tb-home:hover { background: rgba(255,255,255,.22); }
#sf-toolbar .tb-crumb { color:var(--faint); font-weight:700; }
#sf-toolbar .tb-crumb b { color:var(--white); }
#sf-toolbar .tb-spacer { flex: 1; }
#sf-toolbar .tb-label { color:var(--faint); font-weight:800; text-transform:uppercase; letter-spacing:.05em; font-size:10px; }

.tb-select {
  background: rgba(255,255,255,.10); color:var(--white); border:1px solid rgba(255,255,255,.2);
  border-radius:8px; padding: 5px 10px; font: 800 11.5px var(--font); cursor: pointer;
}
.tb-select:hover { background: rgba(255,255,255,.18); }
.tb-seg { display:inline-flex; background: rgba(255,255,255,.08); border-radius:8px; padding:2px; }
.tb-seg button {
  border:none; background:none; color:var(--blue-fill); cursor:pointer;
  padding:4px 11px; border-radius:8px; font:800 11px var(--font);
}
.tb-seg button.on { background:var(--blue); color:var(--white); }

/* ---------- Page frame ---------- */
#sf-frame { min-height: 100vh; background: var(--page); }
#sf-main-wrap { display: block; }
#sf-main { margin: 0 auto; }
.layout-app #sf-body { display: flex; align-items: flex-start; }
.layout-app #sf-sidebar { flex: none; }
.layout-app #sf-main { flex: 1; min-width: 0; }

/* ---------- Marketing / app top nav ----------
   Calm Workspace header: big logo, Explore dropdown, search as the primary
   (central, dominant) control, icon-based right cluster. Global — this partial
   renders on marketing, portal, player and Studio surfaces. */
#sf-nav {
  display: flex; align-items: center; gap: 20px;
  background: var(--white); border-bottom: 1px solid var(--card-border);
  padding: 14px 40px; position: sticky; top: 39px; z-index: 800;
}
#sf-nav .nv-logo { display: flex; align-items: center; flex: none; text-decoration: none; }
#sf-nav .nv-logo img { height: 46px; width: auto; display: block; }

/* Pages composed via header.php never render the prototype toolbar, so the
   nav (and any sticky offset tuned to the 39px toolbar) sticks to the top. */
#sf-frame.no-toolbar #sf-nav { top: 0; }
#sf-frame.no-toolbar #sf-sidebar { top: 0; min-height: 100vh; }

/* Explore — native <details> disclosure holding the catalogue links. */
#sf-nav .nv-explore { position: relative; flex: none; }
#sf-nav .nv-explore-toggle {
  list-style: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 14px; border-radius: var(--r-btn);
  font-size: 15px; font-weight: 800; color: var(--ink); cursor: pointer;
}
#sf-nav .nv-explore-toggle::-webkit-details-marker { display: none; }
#sf-nav .nv-explore-toggle:hover { background: var(--blue-tint); }
#sf-nav .nv-explore-caret { transition: transform .15s ease; color: var(--muted-2); }
#sf-nav .nv-explore[open] .nv-explore-caret { transform: rotate(180deg); }

/* ============================================================
   Explore mega-menu (HEADER).
   Two-row layout matching the soofos.nl browse pattern:
     row 1 = "important pages" (Plus, For Business, Teach, Programs)
     row 2 = category list (left) + sub-category panel (right)
   Footer row = "Browse all courses" link.
   All values via tokens.css — no hardcoded hex / px / font family.
   ============================================================ */
#sf-nav .nv-mega {
  position: absolute; top: calc(100% + 10px); left: 0;
  display: flex; flex-direction: column; gap: 16px;
  width: min(820px, calc(100vw - 32px));
  padding: 20px 22px 18px;
  background: var(--white); border: 1px solid var(--card-border);
  border-radius: var(--r-card); box-shadow: var(--shadow-pop); z-index: 60;
}

/* ---- Row 1: important pages (4 pill cards) ------------------ */
#sf-nav .nv-mega__row--pages {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--card-border);
}
#sf-nav .nv-mega__page {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px; border-radius: var(--r-card-sm);
  background: var(--strip); border: 1px solid transparent;
  text-decoration: none; color: var(--ink);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
#sf-nav .nv-mega__page:hover,
#sf-nav .nv-mega__page:focus-visible {
  background: var(--white);
  border-color: var(--blue-border);
  transform: translateY(-1px);
  outline: none;
}
#sf-nav .nv-mega__page-icon {
  flex: none; width: 36px; height: 36px; border-radius: 10px;
  background: var(--blue-fill); color: var(--deep-blue);
  display: grid; place-items: center;
}
#sf-nav .nv-mega__page-icon .sf-icon { width: 20px; height: 20px; }
#sf-nav .nv-mega__page-body { display: flex; flex-direction: column; min-width: 0; }
#sf-nav .nv-mega__page-label {
  font-size: 14px; font-weight: 800; color: var(--ink); line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#sf-nav .nv-mega__page-desc {
  font-size: 11.5px; font-weight: 600; color: var(--muted-2);
  margin-top: 3px; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---- Row 2: category list + sub-category fly-out ------------- */
#sf-nav .nv-mega__row--cats {
  display: grid; grid-template-columns: 260px 1fr; gap: 18px;
  min-height: 240px;
}
#sf-nav .nv-mega__cats {
  display: flex; flex-direction: column; gap: 2px;
  max-height: 320px; overflow-y: auto;
  padding-right: 4px; /* room for the scrollbar inside the panel */
}
#sf-nav .nv-mega__cat {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-btn);
  font-size: 14px; font-weight: 700; color: var(--ink);
  text-decoration: none; cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
#sf-nav .nv-mega__cat:hover,
#sf-nav .nv-mega__cat:focus-visible,
#sf-nav .nv-mega__cat.is-active {
  background: var(--blue-tint); color: var(--deep-blue); outline: none;
}
#sf-nav .nv-mega__cat.is-active { background: var(--blue-fill); }
#sf-nav .nv-mega__cat-name {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#sf-nav .nv-mega__cat-count {
  flex: none; font-size: 11.5px; font-weight: 800; color: var(--faint);
}
#sf-nav .nv-mega__cat:hover .nv-mega__cat-count,
#sf-nav .nv-mega__cat.is-active .nv-mega__cat-count { color: var(--blue); }
#sf-nav .nv-mega__cat-caret {
  flex: none; color: var(--muted-2);
  transition: transform .15s ease, color .12s ease;
}
#sf-nav .nv-mega__cat-caret .sf-icon { width: 14px; height: 14px; }
#sf-nav .nv-mega__cat:hover .nv-mega__cat-caret,
#sf-nav .nv-mega__cat.is-active .nv-mega__cat-caret { color: var(--blue); }
#sf-nav .nv-mega__cat.is-active .nv-mega__cat-caret { transform: translateX(2px); }

/* Right-hand sub-category panel (one pane per parent, swapped by JS). */
#sf-nav .nv-mega__subs {
  position: relative; min-width: 0;
  background: var(--strip); border-radius: var(--r-card-sm);
  padding: 16px 18px;
}
#sf-nav .nv-mega__sub-pane { display: block; }
#sf-nav .nv-mega__sub-pane[hidden] { display: none; }
#sf-nav .nv-mega__sub-head {
  margin: 0 0 10px; font-size: 11px; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase; color: var(--faint);
}
#sf-nav .nv-mega__sub-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 14px;
}
#sf-nav .nv-mega__sub-link {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: var(--r-btn);
  font-size: 13.5px; font-weight: 700; color: var(--ink);
  text-decoration: none;
}
#sf-nav .nv-mega__sub-link:hover,
#sf-nav .nv-mega__sub-link:focus-visible {
  background: var(--white); color: var(--deep-blue); outline: none;
}
#sf-nav .nv-mega__sub-name {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#sf-nav .nv-mega__sub-count {
  flex: none; font-size: 11px; font-weight: 800; color: var(--faint);
}
#sf-nav .nv-mega__sub-link:hover .nv-mega__sub-count { color: var(--blue); }

#sf-nav .nv-mega__sub-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px; padding: 7px 10px;
  font-size: 12.5px; font-weight: 800; color: var(--deep-blue);
  text-decoration: none; border-radius: var(--r-btn);
}
#sf-nav .nv-mega__sub-cta:hover { background: var(--white); color: var(--blue-hover); }
#sf-nav .nv-mega__sub-cta-icon .sf-icon { width: 14px; height: 14px; }

/* ---- Footer: All courses link ------------------------------- */
#sf-nav .nv-mega__row--foot {
  padding-top: 12px;
  border-top: 1px solid var(--card-border);
}
#sf-nav .nv-mega__foot-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; color: var(--deep-blue);
  text-decoration: none;
}
#sf-nav .nv-mega__foot-link .sf-icon { width: 16px; height: 16px; }
#sf-nav .nv-mega__foot-link:hover { color: var(--blue-hover); }

/* Search — the primary control: fills the middle, larger, calm. */
#sf-nav .nv-search {
  flex: 1; max-width: 620px; display: flex; align-items: center; gap: 10px;
  min-height: 44px; background: var(--strip); border: 1px solid var(--card-border);
  border-radius: var(--r-btn); padding: 10px 18px;
  font-size: 15px; color: var(--muted-2); font-weight: 600; cursor: pointer; text-decoration: none;
}
#sf-nav .nv-search:hover { background: var(--white); border-color: var(--blue-border); }
#sf-nav .nv-search-icon { color: var(--muted-2); }

/* Right cluster */
#sf-nav .nv-actions { display: flex; align-items: center; gap: 16px; flex: none; margin-left: auto; }
#sf-nav .nv-login { font-size: 15px; font-weight: 800; color: var(--ink); cursor: pointer; text-decoration: none; }
#sf-nav .nv-login:hover { color: var(--blue); }
#sf-nav .nv-cta { padding: 11px 24px; }
#sf-nav .nv-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--blue-fill); color: var(--deep-blue);
  font: 900 14px var(--font); display: grid; place-items: center; cursor: pointer;
  border: 2px solid var(--blue-border); text-decoration: none;
}
#sf-nav .nv-bell { display: inline-flex; color: var(--muted); cursor: pointer; }
#sf-nav .nv-bell:hover { color: var(--deep-blue); }
#sf-nav .nv-streak { display:flex; align-items:center; gap:6px; font:900 13px var(--font); color:var(--amber-text-2); background:var(--amber-fill); border-radius: var(--r-btn); padding:6px 12px; }
#sf-nav .nv-streak .sf-icon { width: 16px; height: 16px; }

/* Hamburger — hidden on desktop, shown at the drawer breakpoint (720px)
   where it replaces the Explore mega-menu + the row's Log in link. */
#sf-nav .nv-menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  border: none; border-radius: var(--r-btn); background: transparent;
  color: var(--ink); cursor: pointer;
}
#sf-nav .nv-menu-toggle:hover,
#sf-nav .nv-menu-toggle:focus-visible { background: var(--blue-tint); outline: none; }

/* ============================================================
   Mobile off-canvas drawer (#nv-drawer). Right-side panel + scrim,
   toggled by nv-mobile.js via the .is-open class. Kept in the DOM at
   all times (visibility + pointer-events, not display) so the slide
   transition can animate and focus can leave cleanly.
   ============================================================ */
.nv-drawer {
  position: fixed; inset: 0; z-index: 1150;
  visibility: hidden; pointer-events: none;
}
.nv-drawer.is-open { visibility: visible; pointer-events: auto; }
.nv-drawer__scrim {
  position: absolute; inset: 0; background: rgba(33,52,75,.55);
  opacity: 0; transition: opacity .2s ease;
}
.nv-drawer.is-open .nv-drawer__scrim { opacity: 1; }
.nv-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 320px; max-width: 85vw; overflow-y: auto;
  background: var(--white); box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .25s ease;
}
.nv-drawer.is-open .nv-drawer__panel { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .nv-drawer__scrim, .nv-drawer__panel { transition: none; }
}
.nv-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 10px 14px 20px; border-bottom: 1px solid var(--card-border);
  flex: none;
}
.nv-drawer__title { font-size: 15px; font-weight: 900; color: var(--ink); }
.nv-drawer__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: none; border-radius: var(--r-btn);
  background: transparent; color: var(--muted-2); cursor: pointer;
}
.nv-drawer__close:hover,
.nv-drawer__close:focus-visible { background: var(--blue-tint); color: var(--ink); outline: none; }
.nv-drawer__body {
  display: flex; flex-direction: column; gap: 26px;
  padding: 20px 20px 28px;
}
.nv-drawer__search {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; background: var(--page); border: 1px solid var(--card-border);
  border-radius: var(--r-btn); padding: 10px 14px;
  font-size: 14px; font-weight: 600; color: var(--muted-2);
  text-decoration: none; cursor: pointer;
}
.nv-drawer__search:hover,
.nv-drawer__search:focus-visible { background: var(--white); border-color: var(--blue-border); outline: none; }
.nv-drawer__cats { display: flex; flex-direction: column; }
.nv-drawer__section-label {
  margin: 0 0 8px; font-size: 11px; font-weight: 900; letter-spacing: .08em;
  text-transform: uppercase; color: var(--faint);
}
.nv-drawer__cat-link {
  display: flex; align-items: center; min-height: 44px;
  padding: 4px 2px; font-size: 15px; font-weight: 700; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--card-border);
}
.nv-drawer__cat-link:last-child { border-bottom: none; }
.nv-drawer__cat-link:hover,
.nv-drawer__cat-link:focus-visible { color: var(--blue); outline: none; }
.nv-drawer__all { font-weight: 800; color: var(--deep-blue); }
.nv-drawer__actions { display: flex; flex-direction: column; gap: 12px; }
.nv-drawer__login {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; font-size: 15px; font-weight: 800; color: var(--ink);
  text-decoration: none; border: 1px solid var(--card-border); border-radius: var(--r-btn);
}
.nv-drawer__login:hover,
.nv-drawer__login:focus-visible { color: var(--blue); border-color: var(--blue-border); outline: none; }
.nv-drawer__cta { justify-content: center; text-align: center; }

/* Header responsive — none existed before; the row now degrades cleanly. */
@media (max-width: 820px) {
  #sf-nav .nv-mega { width: calc(100vw - 32px); }
  #sf-nav .nv-mega__row--pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #sf-nav .nv-mega__row--cats { grid-template-columns: 1fr; min-height: 0; }
  #sf-nav .nv-mega__subs { padding: 14px 16px; }
  #sf-nav .nv-mega__sub-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  #sf-nav { gap: 12px; padding: 12px 20px; }
  #sf-nav .nv-logo img { height: 36px; }
  #sf-nav .nv-search { font-size: 14px; padding: 10px 14px; }
  #sf-nav .nv-actions { gap: 12px; }
  /* The drawer (#nv-drawer) replaces the Explore mega-menu and the row's
     Log in link below this width — the hamburger opens it instead. */
  #sf-nav .nv-explore { display: none; }
  #sf-nav .nv-login { display: none; }
  #sf-nav .nv-menu-toggle { display: inline-flex; }
}
@media (max-width: 460px) {
  #sf-nav { gap: 10px; padding: 10px 16px; }
  #sf-nav .nv-search span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  #sf-nav .nv-search { flex: 1; max-width: none; justify-content: center; }
  #sf-nav .nv-cta { padding: 9px 16px; }
}

/* flow / minimal nav */
#sf-nav.nav-flow { justify-content: space-between; }
#sf-nav.nav-flow .nv-exit { font-size:13px; font-weight:800; color:var(--muted-2); cursor:pointer; }
#sf-nav.nav-flow .nv-exit:hover { color: var(--blue); }

/* ---------- Sidebar (portal / instructor / manager) ---------- */
#sf-sidebar {
  width: 240px; background: var(--white); border-right: 1px solid var(--card-border);
  min-height: calc(100vh - 39px); padding: 18px 14px; position: sticky; top: 39px;
  align-self: stretch;
}
.sb-profile { display:flex; align-items:center; gap:10px; padding:6px 8px 16px; border-bottom:1px solid var(--card-border); margin-bottom:14px; }
.sb-profile .av { width:36px;height:36px;border-radius:50%;background:var(--blue-fill);color:var(--deep-blue);font:900 14px var(--font);display:grid;place-items:center; }
.sb-profile .nm { font:900 13px var(--font); color:var(--ink); }
.sb-profile .rk { font:700 11px var(--font); color:var(--muted-2); }
.sb-group { font-size:10px; font-weight:900; letter-spacing:.08em; color:var(--faint); padding:16px 10px 8px; }
.sb-group:first-of-type { padding-top: 4px; }
.sb-nav { display:flex; flex-direction:column; gap:2px; }
.sb-item {
  display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:10px;
  font:700 13px var(--font); color:var(--near-ink); cursor:pointer;
}
.sb-item:hover { background: var(--blue-tint); }
.sb-item.on { background: var(--blue-fill); color: var(--deep-blue); font-weight: 800; }
.sb-item .sb-tag { margin-left:auto; }

/* ---------- Footer (marketing) ---------- */
#sf-footer { background: var(--ink); color: var(--white); padding: 48px 64px 34px; }
#sf-footer .ft-cols { display:grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap:32px; max-width:1200px; margin:0 auto; }
#sf-footer .ft-logo { font-size:22px; font-weight:900; }
#sf-footer .ft-logo span { color: var(--blue-on-navy); }
#sf-footer h4 { font-size:12px; font-weight:900; letter-spacing:.05em; color:var(--faint); margin:0 0 12px; text-transform:uppercase; }
/* wp_nav_menu columns output bare <li> items (items_wrap %3$s) — reset list defaults */
#sf-footer ul { list-style: none; margin: 0; padding: 0; }
#sf-footer li { list-style: none; display: block; margin: 0; padding: 0; }
#sf-footer a { display:block; color:var(--blue-fill); font-size:13.5px; font-weight:600; padding:5px 0; }
#sf-footer a:hover { color:var(--white); }
#sf-footer .ft-bottom { max-width:1200px; margin:26px auto 0; padding-top:20px; border-top:1px solid rgba(255,255,255,.14); display:flex; gap:18px; font-size:12px; color:var(--faint); font-weight:700; }

/* Footer responsive: the 5-track grid never fit small screens — columns
   clipped out of view and the bottom bar wrapped word-per-line. */
@media (max-width: 820px) {
  #sf-footer { padding: 40px 28px 28px; }
  #sf-footer .ft-cols { grid-template-columns: 1fr 1fr; }
  /* Logo/blurb column gets its own full-width row above the link columns. */
  #sf-footer .ft-cols > div:first-child { grid-column: 1 / -1; }
  #sf-footer .ft-bottom { flex-wrap: wrap; row-gap: 8px; }
  #sf-footer .ft-bottom > * { white-space: nowrap; }
}
@media (max-width: 460px) {
  #sf-footer { padding: 34px 20px 24px; }
  #sf-footer .ft-cols { gap: 24px; }
}

/* ---------- Modal ---------- */
#sf-modal-bg {
  position: fixed; inset: 0; background: rgba(33,52,75,.55); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 30px;
}
#sf-modal-bg.on { display: flex; }
#sf-modal {
  background: var(--white); border-radius: 18px; max-width: 640px; width: 100%;
  max-height: 88vh; overflow: auto; box-shadow: 0 24px 60px rgba(33,52,75,.4);
}

/* ---------- Toast ---------- */
#sf-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: var(--white); padding: 13px 22px; border-radius:8px;
  font: 800 13px var(--font); z-index: 1100; opacity: 0; transition: all .25s; pointer-events: none;
  box-shadow: 0 10px 30px rgba(33,52,75,.35);
}
#sf-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Variant show/hide helper (shell.js toggles .sf-hidden) ---------- */
.sf-hidden { display: none !important; }

/* ---------- Employee frame: hide all sales / upgrade / buy triggers ----------
   Any upsell, buy, or plan-change element gets class .sales-only so the
   company-provided employee view never shows purchase triggers. */
body[data-persona="employee"] .sales-only { display: none !important; }

/* small screens: let it scroll horizontally rather than break */
#sf-frame { overflow-x: auto; }

/* ---------- Shared course card (template-parts/card/course-card.php) ----------
   Added by TASK-002: course-card.php uses these class names. All values via var(). */
.course-card {
  display: flex; flex-direction: column; border-radius: var(--r-card);
  border: 1.5px solid var(--card-border); background: var(--white);
  overflow: hidden; text-decoration: none; color: inherit;
  transition: box-shadow .18s, border-color .18s;
}
.course-card:hover { box-shadow: var(--shadow-soft); border-color: var(--blue-border); }
.course-card__thumb {
  position: relative; aspect-ratio: 1.75 / 1; background: var(--strip); overflow: hidden;
}
.course-card__badge {
  position: absolute; top: 8px; left: 8px; font-size: 9.5px; font-weight: 900;
  padding: 2px 8px; border-radius: 99px;
}
.course-card__body { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.course-card__title { font-size: 12px; font-weight: 800; color: var(--ink); line-height: 1.35; }
.course-card__meta  { font-size: 10.5px; color: var(--muted-2); font-weight: 700; }
.course-card__progress-bar {
  height: 4px; background: var(--card-border); border-radius: 99px; overflow: hidden; margin-top: 4px;
}
.course-card__progress-fill {
  height: 100%; background: var(--blue); border-radius: 99px; transition: width .4s ease;
}
