/* ─── Mobile sticky CTA on /course/:slug (research §2.2) ─── */

#mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 70;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
  padding: var(--s-3) var(--s-4);
  display: none;
  align-items: center;
  gap: var(--s-3);
}

/* Show only on mobile where sidebar collapses */
@media (max-width: 900px) {
  #mobile-cta-bar { display: flex; }
  body { padding-bottom: 72px; /* room for sticky bar */ }
}

/* Hide if mobile bottom-nav already present (authenticated) */
body:has(.mobile-nav) #mobile-cta-bar {
  bottom: 64px; /* sit above mobile-nav */
}

.mcb-info {
  flex: 1;
  min-width: 0;
}

.mcb-state {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.mcb-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mcb-price {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  line-height: 1.1;
}

.mcb-cta {
  flex-shrink: 0;
  padding: 10px 18px;
  font-weight: var(--fw-semibold);
  white-space: nowrap;
}
