/* ============================================================
   COURSES V2: the catalogue and course-page redesign (Nov 2026)
   The only catalogue since 7 Nov 2026; html.crs-v2 ships in the markup. Uses the role tokens from
   styles.css.
   ============================================================ */


/* ---- catalogue: hero ---- */
html.crs-v2 .crs-hero { background: var(--naija-deep-green); color: #F6F8F5; border-radius: 28px; padding: 44px 40px 36px; margin: 0 0 28px; position: relative; overflow: hidden; }
html.crs-v2 .crs-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 28px), repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 28px); }
html.crs-v2 .crs-kicker { font: 700 13px Inter, sans-serif; letter-spacing: .14em; color: var(--proof-gold); margin: 0 0 10px; }
html.crs-v2 .crs-hero h1 { font: 800 clamp(30px, 4.4vw, 48px)/1.08 Poppins, sans-serif; letter-spacing: -.03em; margin: 0 0 12px; color: #F6F8F5; }
html.crs-v2 .crs-hero .crs-lede { color: #C9DED1; font-size: 17px; line-height: 1.6; max-width: 640px; margin: 0 0 22px; }
html.crs-v2 .crs-search { position: relative; z-index: 1; max-width: 560px; min-height: 52px; border-radius: 14px; border: 0; font-size: 16px; padding: 0 18px; }

/* ---- catalogue: rail + grid ---- */
html.crs-v2 .crs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
html.crs-v2 .crs-rail { position: sticky; top: 88px; background: #fff; border: 1px solid var(--slate-200); border-radius: 20px; padding: 18px 18px 14px; }
html.crs-v2 .crs-rail > summary { font: 700 15px Inter, sans-serif; color: var(--ink-navy); cursor: pointer; list-style: none; padding: 2px 0 10px; }
html.crs-v2 .crs-rail > summary::-webkit-details-marker { display: none; }
html.crs-v2 .crs-group { border: 0; margin: 0 0 16px; padding: 0; }
html.crs-v2 .crs-group legend, html.crs-v2 .crs-legend { font: 700 12px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-500); margin: 0 0 8px; padding: 0; }
html.crs-v2 .crs-cats { display: flex; flex-direction: column; gap: 2px; }
html.crs-v2 .crs-cat { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; min-height: 38px; padding: 6px 10px; border: 0; border-radius: 10px; background: none; font: 500 14px Inter, sans-serif; color: var(--slate-700); cursor: pointer; text-align: left; }
html.crs-v2 .crs-cat:hover { background: var(--mint-50); }
html.crs-v2 .crs-cat.active { background: var(--mint-50); color: var(--naija-deep-green); font-weight: 700; }
html.crs-v2 .crs-n { font-size: 12px; color: var(--slate-500); }
html.crs-v2 .crs-opt { display: flex; align-items: center; gap: 8px; min-height: 34px; font-size: 14px; color: var(--slate-700); cursor: pointer; }
html.crs-v2 .crs-opt input { accent-color: var(--action-green); width: 18px; height: 18px; }
html.crs-v2 .crs-clear { font-size: 14px; }

html.crs-v2 .crs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 18px; }
html.crs-v2 .crs-head h2 { font: 700 22px Poppins, sans-serif; letter-spacing: -.01em; margin: 0; }
html.crs-v2 .crs-sort-wrap { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--slate-500); white-space: nowrap; }
html.crs-v2 .crs-sort { min-height: 42px; border-radius: 12px; font-weight: 600; }
html.crs-v2 .crs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }

/* ---- the card ---- */
html.crs-v2 .crs-card { padding: 0; overflow: hidden; border-radius: 18px; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
html.crs-v2 .crs-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(11,61,46,.35); }
.crs-cover { aspect-ratio: 16 / 9; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 16px 18px; }
.crs-cover-cat { font: 700 11px Inter, sans-serif; letter-spacing: .14em; opacity: .9; }
.crs-cover-title { font: 800 20px/1.15 Poppins, sans-serif; letter-spacing: -.01em; }
.crs-cover-big { aspect-ratio: 16 / 8; border-radius: 18px 18px 0 0; }
.crs-cover-big .crs-cover-title { font-size: 24px; }
html.crs-v2 .crs-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
html.crs-v2 .crs-card h3 { font: 600 16px/1.35 Inter, sans-serif; margin: 0; color: var(--ink-navy); }
html.crs-v2 .crs-tagline { font-size: 14px; line-height: 1.5; color: var(--slate-500); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.crs-v2 .crs-rating { font-size: 13px; color: var(--slate-500); }
html.crs-v2 .crs-rating b { color: #B45309; }
html.crs-v2 .crs-meta { font-size: 13px; color: var(--slate-500); margin: auto 0 0; }

/* ---- course page ---- */
html.crs-v2 .crs-title h1 { font: 800 clamp(28px, 3.6vw, 42px)/1.12 Poppins, sans-serif; letter-spacing: -.03em; margin: 0 0 10px; }
html.crs-v2 .crs-title .crs-lede { font-size: 18px; line-height: 1.55; color: var(--slate-700); max-width: 760px; margin: 0 0 14px; }
html.crs-v2 .crs-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 14px; color: var(--slate-500); margin: 0 0 28px; }
html.crs-v2 .crs-facts-rating:empty { display: none; }
html.crs-v2 .crs-pill { background: var(--mint-50); color: var(--naija-deep-green); font-weight: 600; padding: 5px 12px; border-radius: 999px; }
html.crs-v2 .crs-pill-gold { background: #FEF3C7; color: #78350F; }
html.crs-v2 .crs-detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
html.crs-v2 .crs-block { background: #fff; border: 1px solid var(--slate-200); border-radius: 22px; padding: 26px 28px; margin: 0 0 20px; }
html.crs-v2 .crs-block h2 { font: 700 22px Poppins, sans-serif; letter-spacing: -.01em; margin: 0 0 14px; }
html.crs-v2 .crs-block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
html.crs-v2 .crs-outcomes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
html.crs-v2 .crs-outcomes li { position: relative; padding-left: 28px; line-height: 1.5; }
html.crs-v2 .crs-outcomes li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--action-green); font-weight: 800; }
html.crs-v2 .crs-lessons { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--slate-100); }
html.crs-v2 .crs-lesson { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 4px; border-bottom: 1px solid var(--slate-100); cursor: pointer; }
html.crs-v2 .crs-lesson:hover .crs-lesson-title { color: var(--action-green); }
html.crs-v2 .crs-num { flex: none; width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--mint-50); color: var(--naija-deep-green); font: 700 13px Inter, sans-serif; }
html.crs-v2 .crs-lesson.done .crs-num { background: var(--action-green); color: #fff; }
html.crs-v2 .crs-lesson-project .crs-num { background: var(--proof-gold); color: var(--ink-navy); }
html.crs-v2 .crs-lesson-title { flex: 1; font-weight: 500; line-height: 1.4; }
html.crs-v2 .crs-min { font-size: 13px; color: var(--slate-500); white-space: nowrap; }
html.crs-v2 .crs-col-main .lab-section { background: #fff; border: 1px solid var(--slate-200); border-radius: 22px; padding: 6px 28px 22px; margin: 0 0 20px; }
html.crs-v2 .crs-col-main .lab-section h2 { font: 700 22px Poppins, sans-serif; }
html.crs-v2 .crs-project { background: #FFFBEB; border-color: #FDE68A; }
html.crs-v2 .crs-project .crs-kicker { color: #92400E; }
html.crs-v2 .crs-rubric { list-style: none; padding: 0; margin: 14px 0 18px; }
html.crs-v2 .crs-rubric li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #FDE68A; line-height: 1.45; }
html.crs-v2 .crs-review blockquote { font-size: 18px; line-height: 1.6; margin: 10px 0; color: var(--ink-navy); }

html.crs-v2 .crs-col-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
html.crs-v2 .crs-enroll { background: #fff; border: 1px solid var(--slate-200); border-radius: 22px; overflow: hidden; box-shadow: 0 24px 48px -28px rgba(15,23,42,.35); }
html.crs-v2 .crs-enroll-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; }
html.crs-v2 .crs-price { font: 700 22px Poppins, sans-serif; color: var(--ink-navy); margin: 0; }
html.crs-v2 .crs-cta { width: 100%; border-radius: 14px; }
html.crs-v2 .crs-enroll .btn.primary { background: var(--action-green); }
html.crs-v2 .crs-enroll .btn.primary:hover { background: var(--action-green-hover); }
html.crs-v2 .crs-small { font-size: 13px; margin: 6px 0 0; }
html.crs-v2 .crs-includes { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--slate-700); }
html.crs-v2 .crs-includes li { position: relative; padding-left: 24px; line-height: 1.45; }
html.crs-v2 .crs-includes li::before { content: "\2713"; position: absolute; left: 0; color: var(--action-green); font-weight: 800; }
html.crs-v2 .crs-sell { background: var(--naija-deep-green); color: #C9DED1; border-radius: 22px; padding: 22px; }
html.crs-v2 .crs-sell h3 { color: #F6F8F5; font: 700 18px Poppins, sans-serif; margin: 0 0 6px; }
html.crs-v2 .crs-sell p { margin: 0 0 10px; line-height: 1.55; font-size: 14px; }
html.crs-v2 .crs-sell .link-btn { color: var(--proof-gold); font-weight: 600; }

/* ---- phones ---- */
@media (max-width: 860px) {
  html.crs-v2 .crs-hero { padding: 30px 22px 24px; border-radius: 22px; }
  html.crs-v2 .crs-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  html.crs-v2 .crs-rail { position: static; }
  html.crs-v2 .crs-detail { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* The enrol card comes right after the title on a phone. */
  html.crs-v2 .crs-detail { display: flex; flex-direction: column; }
  html.crs-v2 .crs-col-side { position: static; order: -1; margin: 0 0 20px; }
  html.crs-v2 .crs-enroll .crs-cover-big { display: none; }
  html.crs-v2 .crs-outcomes { grid-template-columns: minmax(0, 1fr); }
  html.crs-v2 .crs-block { padding: 20px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html.crs-v2 .crs-card { transition: none; }
}
