/* Course Detail V2 + Module Player V2 — Stewardship Commons Design System v1.0.
 * Scoped under .cd2 so it never collides with the original /styles/course-detail.css
 * (.cd) or any other course styles. Both Desktop and Mobile widgets render at the
 * same time; viewport gates below hide whichever doesn't fit at 768px — same
 * pattern as organization-detail and the SL25 winners page.
 *
 *   Course Detail desktop  →  Figma 1847:43934 / 1847:43971 / 1847:44220 / 1847:44873
 *   Course Detail mobile   →  Figma 1497:19074
 *   Module Player desktop  →  Figma 1847:44586 / 1847:44759
 */

/* ===== Viewport gates ===== */
.cd2--desktop { display: block; }
.cd2--mobile  { display: none; }
@media (max-width: 768px) {
    .cd2--desktop { display: none; }
    .cd2--mobile  { display: block; }
}

.cd2 {
    --c2-brand-25:   #F6F9FF;
    --c2-brand-50:   #EBF1FF;
    --c2-brand-100:  #DADFED;
    --c2-brand-600:  #465DA6;
    --c2-brand-700:  #384A85;
    --c2-brand-900:  #1C2542;
    --c2-teal:       #2FB8A9;
    --c2-gray-50:    #FAFAFA;
    --c2-gray-100:   #F5F5F5;
    --c2-gray-200:   #E9EAEB;
    --c2-gray-300:   #D5D7DA;
    --c2-gray-400:   #BFBFBF;
    --c2-gray-500:   #717680;
    --c2-gray-600:   #535862;
    --c2-gray-700:   #414651;
    --c2-gray-900:   #252B37;
    --c2-ink:        #1C1C1C;
    --c2-white:      #FFFFFF;
    --c2-radius-md:  6px;
    --c2-radius-lg:  8px;
    --c2-radius-xl:  12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--c2-gray-700);
}
.cd2 *, .cd2 *::before, .cd2 *::after { box-sizing: border-box; }
.cd2 a { color: inherit; text-decoration: none; }

/* ======================== shared button ======================== */
.c2-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 8px; padding: 12px 24px; font-size: 16px; line-height: 24px;
    font-weight: 600; cursor: pointer; border: 1px solid transparent;
    box-shadow: 0 1px 2px 0 rgba(10,13,18,.05);
}
.c2-btn--primary { background: var(--c2-brand-600); border-color: var(--c2-brand-600); color: #fff; }
.c2-btn--primary:hover { background: var(--c2-brand-700); border-color: var(--c2-brand-700); color: #fff; }
.c2-btn--ghost { background: #fff; border-color: var(--c2-gray-300); color: var(--c2-gray-700); }
.c2-btn--ghost:hover { background: var(--c2-gray-50); }
.c2-btn--link { background: transparent; border: 0; box-shadow: none; padding: 0; color: var(--c2-brand-600); font-weight: 600; cursor: pointer; }
.c2-btn--link:hover { text-decoration: underline; }

/* ======================== container ======================== */
.c2-container { max-width: 1216px; margin: 0 auto; padding: 0 32px; }

/* ============================================================
   COURSE DETAIL — Figma 1847:43934
   ============================================================ */

/* Breadcrumb (Figma 1847:44255 + 1497:19078) — Home icon + chevron separators */
.c2-crumbs { display: flex; align-items: center; gap: 6px; margin: 0 0 16px 0; font-size: 14px; line-height: 20px; }
.c2-crumbs__link { display: inline-flex; align-items: center; color: var(--c2-gray-500); text-decoration: none; }
.c2-crumbs__link:hover { color: var(--c2-brand-600); text-decoration: underline; }
.c2-crumbs__sep { color: var(--c2-gray-400); display: inline-flex; }
.c2-crumbs__sep svg { width: 16px; height: 16px; display: block; }
.c2-crumbs__current { color: var(--c2-gray-700); font-weight: 600; max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c2-crumbs__home svg { width: 16px; height: 16px; display: block; }

/* Empty-state message (e.g. Learner Perspectives with no data yet) */
.c2-empty { margin: 0; padding: 16px 20px; border: 1px dashed var(--c2-gray-300); border-radius: var(--c2-radius-lg); color: var(--c2-gray-500); font-size: 14px; line-height: 22px; background: #fff; }

/* Hero band */
.c2-hero { position: relative; overflow: hidden; background: var(--c2-brand-25); padding: 48px 0 32px; }
/* The clip above crops the decorative art, but it also cut off the Share dropdown,
   which is taller than the hero. Lift it only while that menu is open. */
.c2-hero:has(.dropdown-menu.show) { overflow: visible; }
.c2-hero__inner { position: relative; z-index: 1; max-width: 720px; } /* keep text out of illustration */
/* The menu still sat under the stats card, which is z-index 2 for the overlap.
   Raise the content layer only, so the card keeps overlapping the hero band. */
.c2-hero:has(.dropdown-menu.show) .c2-hero__inner { z-index: 3; }
/* Decorative hero illustration (Figma 1847:43937 desktop / 1497:19538 mobile) */
.c2-hero__art {
    position: absolute; pointer-events: none; user-select: none;
    right: 0; top: 0;
    width: 410px; height: 437px;
    z-index: 0;
}
.c2-hero__art img, .c2-hero__art svg { display: block; width: 100%; height: 100%; }
.c2-hero__eyebrow {
    display: inline-block; margin: 0 0 12px 0;
    font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: .04em;
    text-transform: uppercase; color: var(--c2-teal);
}
.c2-hero__title { margin: 0 0 12px 0; font-size: 36px; line-height: 44px; font-weight: 700; letter-spacing: -.02em; color: var(--c2-brand-900); }
.c2-hero__subtitle { margin: 0 0 24px 0; font-size: 18px; line-height: 28px; color: var(--c2-gray-600); max-width: 820px; }
.c2-hero__chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.c2-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
    background: #fff; border: 1px solid var(--c2-gray-200); border-radius: 999px;
    font-size: 14px; line-height: 20px; color: var(--c2-gray-700);
}
.c2-chip__icon { width: 16px; height: 16px; flex: 0 0 16px; color: var(--c2-brand-600); }
.c2-hero__cta { display: flex; gap: 16px; align-items: center; }

/* Course Stats Strip (Figma 1847:43971) — 5-column info card with bold value + label.
   Card overlaps the hero / "What you'll learn" boundary (negative top margin pulls it
   up into the lighter section below the hero band). */
.c2-stats-wrap { padding: 0; }
.c2-stats {
    position: relative; z-index: 2;  /* sit ABOVE the position:relative hero so the -24px overlap isn't covered */
    margin: -24px 0 0 0;
    background: #fff;
    border: 1px solid var(--c2-gray-200);
    border-radius: var(--c2-radius-xl);
    box-shadow: 0 1px 2px 0 rgba(10,13,18,.05);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.c2-stats__cell {
    min-width: 0;
    padding: 20px 16px;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.c2-stats__value, .c2-stats__label { max-width: 100%; }
.c2-stats__cell + .c2-stats__cell { border-left: 1px solid var(--c2-gray-200); }
.c2-stats__value { font-size: 18px; line-height: 28px; font-weight: 700; color: var(--c2-gray-900); }
.c2-stats__label { font-size: 14px; line-height: 20px; color: var(--c2-gray-500); }

/* What you'll learn */
.c2-section { padding: 48px 0; }
.c2-section--alt { background: var(--c2-gray-50); }
.c2-section__title { margin: 0 0 16px 0; font-size: 24px; line-height: 32px; font-weight: 700; color: var(--c2-gray-900); letter-spacing: -.01em; }
.c2-section__body { margin: 0; font-size: 16px; line-height: 24px; color: var(--c2-gray-700); }

/* Two-column area: left content + right sidebar (Instructor / Org) */
.c2-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }

/* Inside the Course — ONE bordered card containing all module rows + last-updated
   nested at the bottom (Figma 1847:44220). */
.c2-modules-card {
    background: #fff; border: 1px solid var(--c2-gray-200); border-radius: var(--c2-radius-xl);
    padding: 20px 24px;
}
.c2-modules-list { display: flex; flex-direction: column; }
.c2-module-row { padding: 12px 0; }
.c2-module-row + .c2-module-row { border-top: 1px solid var(--c2-gray-200); }
.c2-module-row__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.c2-module-row__title { margin: 0 0 4px 0; font-size: 18px; line-height: 28px; font-weight: 600; color: var(--c2-gray-900); }
.c2-module-row__sub { font-size: 14px; line-height: 20px; color: var(--c2-gray-500); }
.c2-module-row__toggle {
    display: inline-flex; align-items: center; gap: 6px;
    background: none; border: 0; padding: 4px 8px; color: var(--c2-brand-600);
    font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.c2-module-row__toggle svg { width: 16px; height: 16px; transition: transform .15s ease; }
.c2-module-row[data-open="true"] .c2-module-row__toggle svg { transform: rotate(180deg); }
.c2-module-row__body { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--c2-gray-200); font-size: 14px; line-height: 22px; color: var(--c2-gray-600); }
.c2-module-row[data-open="true"] .c2-module-row__body { display: block; }
.c2-modules-card__updated {
    margin: 16px 0 0 0; padding-top: 16px; border-top: 1px solid var(--c2-gray-200);
    font-size: 14px; line-height: 20px; color: var(--c2-gray-500);
}
.c2-modules-card__updated strong { color: var(--c2-gray-700); }

/* Side card — Instructor / Organisation */
.c2-side {
    background: #fff; border: 1px solid var(--c2-gray-200); border-radius: var(--c2-radius-xl);
    padding: 24px; display: flex; flex-direction: column; gap: 20px;
}
.c2-side__group { display: flex; flex-direction: column; gap: 12px; }
.c2-side__group + .c2-side__group { padding-top: 20px; border-top: 1px solid var(--c2-gray-200); }
.c2-side__heading {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 4px 0;
    font-size: 18px; line-height: 28px; font-weight: 700; color: var(--c2-gray-900);
}
.c2-side__seeall { font-size: 14px; font-weight: 600; color: var(--c2-brand-600); background: none; border: 0; padding: 0; cursor: pointer; }
.c2-side__seeall:hover { text-decoration: underline; }
.c2-person { display: flex; align-items: center; gap: 12px; }
.c2-person__avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--c2-gray-100); flex: 0 0 40px; }
.c2-person__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c2-person__name { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--c2-brand-600); }
.c2-person__name:hover { text-decoration: underline; }
.c2-person__role { font-size: 14px; line-height: 20px; color: var(--c2-gray-500); }

/* Banner — pull-quote band (Figma 1499:19675) — quotation icon + quote text + author attribution */
.c2-banner {
    margin: 32px 0 0; padding: 24px 28px;
    background: var(--c2-brand-25); border: 1px solid var(--c2-brand-50); border-radius: var(--c2-radius-xl);
    display: flex; flex-direction: column; gap: 16px;
    color: var(--c2-gray-700);
}
.c2-banner__icon { width: 36px; height: 36px; flex: 0 0 36px; color: var(--c2-brand-600); }
.c2-banner__quote { margin: 0; font-size: 16px; line-height: 24px; }
.c2-banner__by { display: flex; align-items: center; gap: 12px; }

/* Learner Perspectives */
.c2-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.c2-testimonial { background: #fff; border: 1px solid var(--c2-gray-200); border-radius: var(--c2-radius-xl); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.c2-testimonial__head { display: flex; align-items: center; gap: 12px; }
.c2-testimonial__quote { margin: 0; font-size: 14px; line-height: 22px; color: var(--c2-gray-600); }

/* Recommended Courses + Related Content card (Figma 1499:23829) — bordered card,
   full-bleed image at top, padded content body. */
.c2-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.c2-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--c2-gray-200); border-radius: var(--c2-radius-xl);
    overflow: hidden;
}
.c2-card__media { position: relative; height: 180px; background: var(--c2-gray-100); }
.c2-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c2-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px; flex: 1 0 0; }
.c2-card__title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--c2-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c2-card:hover .c2-card__title { text-decoration: underline; }
.c2-card__desc { margin: 0; font-size: 14px; line-height: 20px; color: var(--c2-gray-500); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c2-card__meta { font-size: 14px; line-height: 20px; color: var(--c2-gray-500); }

/* Category badge (top-left over the cover image) */
.c2-card__badge {
    position: absolute; top: 8px; left: 8px; z-index: 1;
    display: inline-flex; align-items: center; max-width: calc(100% - 16px);
    padding: 4px 10px; border-radius: 999px;
    background: var(--c2-brand-600); color: #fff;
    font-size: 12px; line-height: 16px; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* Meta row (duration / level / free) */
.c2-card__metarow { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; }
.c2-card__metaitem { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 20px; color: var(--c2-gray-500); }
.c2-card__metaitem svg { width: 16px; height: 16px; flex: 0 0 16px; }
/* Divider + author row */
.c2-card__divider { height: 1px; background: var(--c2-gray-200); margin: 4px 0 0; }
.c2-card__author { display: flex; align-items: center; gap: 8px; }
.c2-card__author-avatar { width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%; overflow: hidden; background: var(--c2-gray-100); }
.c2-card__author-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.c2-card__author-name { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--c2-gray-900); }
.c2-card__author-org { font-size: 12px; line-height: 16px; color: var(--c2-gray-500); }

/* Admin owner transfer (rendered above the hero) */
.c2-admin { padding: 16px 0; }
.c2-admin__label { display: block; margin-bottom: 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--c2-gray-700); }
.c2-admin__select { width: 100%; max-width: 480px; padding: 10px 12px; border: 1px solid var(--c2-gray-300); border-radius: var(--c2-radius-lg); font-family: inherit; font-size: 14px; color: var(--c2-gray-900); background: #fff; }
.c2-admin__select:focus { outline: none; border-color: var(--c2-brand-600); }
.c2-admin .c2-btn { margin-top: 12px; }

/* All Instructors modal — Figma 1847:44873 */
.c2-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(28, 37, 66, .55); }
.c2-modal[data-open="true"] { display: flex; }
.c2-modal__card { background: #fff; border-radius: var(--c2-radius-xl); padding: 32px; width: 100%; max-width: 720px; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.c2-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.c2-modal__title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--c2-gray-900); }
.c2-modal__close { background: none; border: 0; padding: 4px; cursor: pointer; color: var(--c2-gray-500); }
.c2-modal__close svg { width: 24px; height: 24px; display: block; }
.c2-modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }

/* ============================================================
   MODULE PLAYER — Figma 1847:44586 / 1847:44759
   ============================================================ */

/* Top progress bar — Figma sits at the very top of the page, below the chrome */
.c2-progress { padding: 16px 0; background: #fff; border-bottom: 1px solid var(--c2-gray-200); }
.c2-progress__inner { display: flex; align-items: center; gap: 16px; }
.c2-progress__bar { flex: 1 0 0; height: 8px; background: var(--c2-gray-100); border-radius: 999px; overflow: hidden; }
.c2-progress__fill { height: 100%; background: linear-gradient(90deg, var(--c2-brand-600), var(--c2-teal)); border-radius: 999px; transition: width .3s ease; }
.c2-progress__label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--c2-gray-700); min-width: 110px; text-align: right; }

/* Player layout: left sidebar (course outline + instructors) + main content */
.c2-player { padding: 24px 0 64px; }
.c2-player__layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; }

/* Sidebar */
.c2-side-outline { background: var(--c2-brand-25); border-radius: var(--c2-radius-xl); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.c2-side-outline__title { margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--c2-gray-900); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c2-outline-list { display: flex; flex-direction: column; gap: 4px; }
.c2-outline-item {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    border-radius: var(--c2-radius-lg); background: transparent; text-decoration: none;
}
.c2-outline-item:hover { background: #fff; }
.c2-outline-item[aria-current="true"] { background: #fff; box-shadow: 0 1px 2px rgba(10,13,18,.06); }
.c2-outline-item__check {
    width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--c2-gray-300);
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; color: #fff;
}
.c2-outline-item[data-done="true"] .c2-outline-item__check { background: var(--c2-brand-600); border-color: var(--c2-brand-600); }
.c2-outline-item[data-done="true"] .c2-outline-item__check svg { width: 12px; height: 12px; display: block; }
.c2-outline-item__check svg { display: none; }
.c2-outline-item__text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.c2-outline-item__meta { font-size: 12px; line-height: 18px; color: var(--c2-gray-500); }
.c2-outline-item__title { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--c2-gray-900); }

/* Instructors & Organisation in sidebar */
.c2-side-instructors { background: #fff; border: 1px solid var(--c2-gray-200); border-radius: var(--c2-radius-xl); padding: 20px; }

/* Player main */
.c2-player-main { background: #fff; border: 1px solid var(--c2-gray-200); border-radius: var(--c2-radius-xl); padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.c2-player-main__crumbs { font-size: 14px; line-height: 20px; color: var(--c2-gray-500); }
.c2-player-main__title { margin: 0; font-size: 28px; line-height: 36px; font-weight: 700; color: var(--c2-gray-900); letter-spacing: -.01em; }
.c2-player-main__body { font-size: 16px; line-height: 26px; color: var(--c2-gray-700); }
.c2-player-main__body img, .c2-player-main__body video, .c2-player-main__body iframe { max-width: 100%; height: auto; border-radius: var(--c2-radius-lg); display: block; }
.c2-player-main__actions { display: flex; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--c2-gray-200); }


/* ============================================================
   MOBILE  (.cd2--mobile)  Figma 1497:19074  ≤768px
   Single-column reflow of the V2 course detail page.
   ============================================================ */

.cd2--mobile { font-size: 14px; line-height: 22px; }
.cd2--mobile .c2-container { padding: 0 16px; max-width: 100%; }

/* Hero band */
.cd2--mobile .c2-hero { padding: 20px 0 16px; }
.cd2--mobile .c2-hero__art { width: 175px; height: 250px; right: 0; top: 0; opacity: 1; }
.cd2--mobile .c2-hero__inner { max-width: 100%; }
.cd2--mobile .c2-crumbs { margin-bottom: 12px; font-size: 12px; line-height: 18px; gap: 4px; }
.cd2--mobile .c2-crumbs__sep svg, .cd2--mobile .c2-crumbs__home svg { width: 14px; height: 14px; }
.cd2--mobile .c2-hero__eyebrow { font-size: 12px; line-height: 18px; margin-bottom: 8px; }
.cd2--mobile .c2-hero__title { font-size: 22px; line-height: 28px; margin-bottom: 8px; }
.cd2--mobile .c2-hero__subtitle { font-size: 14px; line-height: 22px; margin-bottom: 16px; }

/* Compact inline instructor preview in the hero (mobile-only — Figma 1497:19497).
   Two overlapping 36×36 avatars + a two-line name/org block to the right. */
.cd2--mobile .c2-hero-instructor {
    display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
    font-size: 14px; line-height: 22px; color: var(--c2-gray-700);
}
.cd2--mobile .c2-hero-instructor__avatars {
    display: flex; align-items: center; flex: 0 0 auto;
}
.cd2--mobile .c2-hero-instructor__avatars .c2-hero-instructor__avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: var(--c2-gray-100); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--c2-gray-200); }
.cd2--mobile .c2-hero-instructor__avatars .c2-hero-instructor__avatar + .c2-hero-instructor__avatar { margin-left: -16px; }
.cd2--mobile .c2-hero-instructor__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd2--mobile .c2-hero-instructor__who { display: flex; flex-direction: column; }
.cd2--mobile .c2-hero-instructor__name { font-weight: 600; color: var(--c2-gray-900); }
.cd2--mobile .c2-hero-instructor__org { color: var(--c2-gray-500); }

/* Hero CTA — stacks Join + Share full-width */
.cd2--mobile .c2-hero__cta { flex-direction: row; gap: 8px; align-items: stretch; }
.cd2--mobile .c2-hero__cta .c2-btn { flex: 1 0 0; padding: 10px 14px; font-size: 14px; }
.cd2--mobile .c2-hero__cta ul.list-unstyled { flex: 0 0 auto; margin: 0; padding: 0; }

/* Stats Strip — 2 cells per row with a thin VERTICAL divider between them
   (Figma 1497:19554/19571/19572/19567). 3rd row = 1 cell alone (Credential),
   no divider on its row. Pure flex-wrap so the last solo item flows naturally. */
.cd2--mobile .c2-stats-wrap { padding: 0; }
.cd2--mobile .c2-stats {
    margin: 0; display: flex; flex-wrap: wrap;
    border-radius: var(--c2-radius-lg);
    padding: 4px 0;
}
.cd2--mobile .c2-stats__cell {
    flex: 0 0 50%; padding: 12px 16px;
    text-align: left; align-items: flex-start; gap: 2px;
    position: relative;
}
/* Vertical divider — appears only on the LEFT cell of each pair (odd children that aren't the last solo). */
.cd2--mobile .c2-stats__cell:nth-child(odd):not(:last-child)::after {
    content: ""; position: absolute; right: 0; top: 12px; bottom: 12px;
    width: 1px; background: var(--c2-gray-200);
}
.cd2--mobile .c2-stats__cell + .c2-stats__cell { border-left: 0; }
.cd2--mobile .c2-stats__value { font-size: 14px; line-height: 20px; font-weight: 700; }
.cd2--mobile .c2-stats__label { font-size: 12px; line-height: 18px; }

/* Sections — tighter padding */
.cd2--mobile .c2-section { padding: 24px 0; }
.cd2--mobile .c2-section__title { font-size: 18px; line-height: 26px; margin-bottom: 12px; }
.cd2--mobile .c2-section__body { font-size: 14px; line-height: 22px; }

/* Inside the Course — same card but slimmer */
.cd2--mobile .c2-cols { grid-template-columns: 1fr; gap: 16px; }
.cd2--mobile .c2-modules-card { padding: 16px; }
.cd2--mobile .c2-module-row__title { font-size: 15px; line-height: 22px; }
.cd2--mobile .c2-module-row__sub { font-size: 12px; line-height: 18px; }
.cd2--mobile .c2-module-row__toggle { font-size: 13px; }

/* Instructors + Organisation become STACKED sections under Inside the Course */
.cd2--mobile .c2-side { background: transparent; border: 0; padding: 0; gap: 12px; }
.cd2--mobile .c2-side__group { gap: 8px; }
.cd2--mobile .c2-side__group + .c2-side__group { padding-top: 12px; border-top: 1px solid var(--c2-gray-200); }
.cd2--mobile .c2-side__heading { font-size: 16px; line-height: 24px; }
.cd2--mobile .c2-person__avatar { width: 36px; height: 36px; flex-basis: 36px; }
.cd2--mobile .c2-person__name { font-size: 14px; line-height: 20px; }
.cd2--mobile .c2-person__role { font-size: 12px; line-height: 18px; }

/* Banner — mobile (smaller padding + scaled quote icon) */
.cd2--mobile .c2-banner { margin-top: 16px; padding: 16px; gap: 12px; }
.cd2--mobile .c2-banner__icon { width: 28px; height: 28px; flex-basis: 28px; }
.cd2--mobile .c2-banner__quote { font-size: 14px; line-height: 22px; }

/* Learner Perspectives — single column */
/* Learner Perspectives — horizontal scroll-snap carousel (Figma 1499:23781 + dots 1499:23799) */
.cd2--mobile .c2-testimonials {
    display: flex; grid-template-columns: none; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -16px; padding: 0 16px 4px;
}
.cd2--mobile .c2-testimonials::-webkit-scrollbar { display: none; }
.cd2--mobile .c2-testimonial { flex: 0 0 85%; scroll-snap-align: start; padding: 16px; gap: 12px; }
.cd2--mobile .c2-carousel-dots {
    display: flex; justify-content: center; gap: 8px; margin-top: 16px;
}
.cd2--mobile .c2-carousel-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c2-gray-300); border: 0; padding: 0; cursor: pointer; transition: background .15s, width .15s; }
.cd2--mobile .c2-carousel-dot.is-active { width: 18px; border-radius: 3px; background: var(--c2-brand-600); }
.cd2--mobile .c2-testimonial__quote { font-size: 13px; line-height: 20px; }

/* Recommended Courses — horizontal scroller */
.cd2--mobile .c2-cards {
    display: flex; grid-template-columns: none; gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    padding-bottom: 8px;
    margin: 0 -16px; padding-left: 16px; padding-right: 16px;
}
.cd2--mobile .c2-cards::-webkit-scrollbar { display: none; }
.cd2--mobile .c2-cards .c2-card { flex: 0 0 240px; width: 240px; scroll-snap-align: start; }
.cd2--mobile .c2-card__media { height: 132px; }
.cd2--mobile .c2-card__title { font-size: 14px; line-height: 20px; }
.cd2--mobile .c2-card__meta { font-size: 12px; line-height: 18px; }

/* Related Content — vertical list (overrides the horizontal scroller above) */
.cd2--mobile .c2-related-list { display: flex; flex-direction: column; gap: 16px; }
.cd2--mobile .c2-related-row { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; }
.cd2--mobile .c2-related-row__media { flex: 0 0 96px; width: 96px; height: 72px; border-radius: var(--c2-radius-lg); overflow: hidden; background: var(--c2-gray-100); }
.cd2--mobile .c2-related-row__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd2--mobile .c2-related-row__title { margin: 0 0 4px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--c2-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cd2--mobile .c2-related-row__meta { font-size: 12px; line-height: 18px; color: var(--c2-gray-500); }

/* Empty-state */
.cd2--mobile .c2-empty { padding: 12px 14px; font-size: 13px; }

/* Submit form — full width */
.cd2--mobile #c2TestimonialForm { max-width: 100%; padding: 16px; gap: 12px; }

/* Modal — full-screen sheet on mobile */
.cd2--mobile .c2-modal { padding: 0; }
.cd2--mobile .c2-modal__card { max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; padding: 20px 16px; overflow-y: auto; }
.cd2--mobile .c2-modal__grid { grid-template-columns: 1fr; gap: 16px; }

/* ============================================================
   MOBILE — Module Player  (.cd2--mobile .c2-player*)
   Figma flow 1545:1258 — player screen 1515:3005, sidebar 1515:5453.
   White page, no progress bar, course-title bar, 20/30 module title.
   ============================================================ */
.cd2--mobile .c2-progress { display: none; }
.cd2--mobile .c2-player { padding: 0 0 40px; background: #fff; }
.cd2--mobile .c2-player-main { padding: 0; border: 0; border-radius: 0; gap: 0; }
/* Course-title bar (1515:3820): 16/24 semibold black, 24/16/16 padding, #D9D9D9 rule. */
.cd2--mobile .c2-player-main__crumbs {
    width: 100%;
    padding: 24px 0 16px;
    border-bottom: 1px solid #D9D9D9;
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
    color: #000;
}
/* Module title (1515:3824): Text xl/Semibold 20/30. */
.cd2--mobile .c2-player-main__title { margin: 24px 0 0; font-size: 20px; line-height: 30px; font-weight: 600; letter-spacing: 0; color: #000; }
.cd2--mobile .c2-player-main__body { margin-top: 16px; font-size: 14px; line-height: 22px; color: #000; }
.cd2--mobile .c2-player-main__actions { padding-top: 16px; gap: 8px; }
.cd2--mobile .c2-player-main__actions .c2-btn { flex: 1 0 0; padding: 10px 14px; font-size: 14px; text-align: center; justify-content: center; }

/* Collapsible course outline — rows per the drawer (1515:5644). */
.cd2--mobile .c2-side-outline { padding: 0; background: #fff; border: 1px solid var(--c2-gray-200); border-radius: var(--c2-radius-lg); gap: 0; overflow: hidden; }
.cd2--mobile .c2-outline-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; padding: 16px; background: transparent; border: 0; border-bottom: 1px solid #D9D9D9; cursor: pointer;
    font-family: inherit; text-align: left; color: #000;
}
.cd2--mobile .c2-outline-toggle .c2-side-outline__title { font-size: 16px; line-height: 24px; font-weight: 600; color: #000; }
.cd2--mobile .c2-outline-toggle__chev { flex: 0 0 20px; transition: transform .2s ease; color: var(--c2-gray-500); }
.cd2--mobile .c2-outline-toggle[aria-expanded="true"] .c2-outline-toggle__chev { transform: rotate(180deg); }
.cd2--mobile .c2-outline-list { padding: 8px; gap: 8px; }
.cd2--mobile .c2-outline-item { padding: 12px; }
.cd2--mobile .c2-outline-item[aria-current="true"] { background: var(--c2-brand-50); box-shadow: none; }
.cd2--mobile .c2-outline-item__check { width: 16px; height: 16px; flex-basis: 16px; }
.cd2--mobile .c2-outline-item[data-done="true"] .c2-outline-item__check svg { width: 10px; height: 10px; }
.cd2--mobile .c2-outline-item__meta { color: #595959; }
.cd2--mobile .c2-outline-item__title { line-height: 22px; color: #000; }

/* Instructors card (1515:5784): #D9D9D9 border, r8, p16, 14px text. */
.cd2--mobile .c2-side-instructors { padding: 16px; border-radius: var(--c2-radius-lg); border-color: #D9D9D9; }
.cd2--mobile .c2-side-instructors .c2-person__name { font-size: 14px; line-height: 20px; }
.cd2--mobile .c2-side-instructors .c2-person__role { font-size: 14px; line-height: 20px; }

/* ============================================================
   Related Content — media type badge (Video play / Podcast audio)
   Figma desktop 1847:44575 (bottom-right) · mobile 1499:24421 (centered)
   ============================================================ */
.cd2 .c2-card__media, .cd2 .c2-related-row__media { position: relative; }
.cd2 .c2-media-badge {
    position: absolute; right: 8px; bottom: 8px;
    width: 28px; height: 28px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(10, 13, 18, .65); color: #fff; backdrop-filter: blur(2px);
}
.cd2 .c2-media-badge svg { display: block; }
.cd2 .c2-media-badge--center {
    right: 50%; bottom: 50%; transform: translate(50%, 50%);
    width: 24px; height: 24px;
}

/* =================================================================
   Interaction & accessibility enhancements
   ================================================================= */

/* Keyboard focus rings on interactive elements */
.c2-btn:focus-visible,
.c2-btn--link:focus-visible,
.c2-crumbs__link:focus-visible,
.c2-module-row__toggle:focus-visible,
.c2-side__seeall:focus-visible,
.c2-person__name:focus-visible,
.c2-modal__close:focus-visible,
.c2-outline-item:focus-visible,
.c2-carousel-dot:focus-visible,
.c2-outline-toggle:focus-visible {
    outline: 2px solid var(--c2-brand-600);
    outline-offset: 2px;
}

/* Missing hover states */
.c2-module-row__toggle:hover { background: rgba(0, 0, 0, 0.04); }
.c2-modal__close:hover { background: rgba(0, 0, 0, 0.04); }
.cd2--mobile .c2-carousel-dot:hover { opacity: .8; }
.cd2--mobile .c2-outline-toggle:hover { background: rgba(0, 0, 0, 0.04); }

/* Pressed state, no motion */
.c2-btn--primary:active,
.c2-btn--link:active,
.c2-side__seeall:active,
.c2-crumbs__link:active {
    filter: brightness(0.96);
}
.c2-btn--ghost:active { background: var(--c2-gray-100); }

/* Smooth programmatic scroll on mobile carousels */
.cd2--mobile .c2-testimonials,
.cd2--mobile .c2-cards { scroll-behavior: smooth; }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .c2-module-row__toggle svg,
    .cd2--mobile .c2-outline-toggle__chev {
        transition: none;
        transform: none;
    }
    .c2-progress__fill,
    .cd2--mobile .c2-carousel-dot {
        transition: none;
    }
}

/* ============================== FINAL QUIZ (V2) ============================== */
.c2-quiz { display: flex; flex-direction: column; gap: 32px; margin-top: 8px; }
.c2-quiz__question { display: flex; gap: 16px; }
.c2-quiz__num {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--c2-brand-50);
    color: var(--c2-brand-600);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.c2-quiz__question-body { flex: 1 1 auto; min-width: 0; }
/* Text md/Semibold, black — mirrors the player's section headings. */
.c2-quiz__question-text { margin: 4px 0 12px; font-size: 16px; line-height: 24px; font-weight: 600; color: #000; }
.c2-quiz__options { display: flex; flex-direction: column; gap: 4px; }
/* Option rows echo the sidebar module rows: 12px pad, r8, Brand/50 when active. */
.c2-quiz__option {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: var(--c2-radius-lg);
    cursor: pointer;
    font-size: 16px;
    line-height: 24px;
    color: var(--c2-ink);
}
.c2-quiz__option:hover { background: var(--c2-gray-50); }
.c2-quiz__option:has(input:checked) { background: var(--c2-brand-50); }
.c2-quiz__option input {
    margin-top: 2px;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    accent-color: var(--c2-brand-600);
}
.c2-quiz__option--correct { border-color: #17B26A; background: #ECFDF3; }
.c2-quiz__option--wrong { border-color: #F04438; background: #FEF3F2; }
.c2-quiz__error { margin: 8px 0 0; color: #F04438; font-size: 14px; line-height: 20px; }
.c2-quiz__result {
    margin: 8px 0 24px;
    padding: 16px;
    border-radius: var(--c2-radius-lg);
    border: 1px solid var(--c2-gray-200);
}
.c2-quiz__result--pass { border-color: #17B26A; background: #ECFDF3; }
.c2-quiz__result--fail { border-color: #F04438; background: #FEF3F2; }
.c2-quiz__result-headline { margin: 0; color: var(--c2-ink); }
.c2-quiz__result-msg { margin-top: 8px; color: var(--c2-gray-600); }
.c2-quiz__result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

/* Quiz at mobile sizes — body scale is 14/22 per 1515:3005. */
.cd2--mobile .c2-quiz__question-text { font-size: 14px; line-height: 22px; }
.cd2--mobile .c2-quiz__option { font-size: 14px; line-height: 22px; }
.cd2--mobile .c2-quiz__num { width: 28px; height: 28px; font-size: 14px; }

/* Lesson embeds (Rise exports, pdf viewer, video): span the full card width —
   Rise needs ≥768px to use its desktop layout — and get real height. The CMS
   content carries inline width/height styles, hence the !important. */
.c2-player-main__body iframe:not([data-c2-fit]) {
    display: block;
    width: 100% !important;
    max-width: 100%;
    margin: 0;
    height: 78vh !important;
    min-height: 560px;
    border: 0;
}
.cd2--mobile .c2-player-main__body iframe:not([data-c2-fit]) {
    width: 100% !important;
    margin: 0;
    height: 70vh !important;
    min-height: 480px;
}
/* Scale-to-fit wrapper for lesson exports (course-v2-lesson.js). */
.c2-lesson-fit { overflow: hidden; border-radius: var(--c2-radius-lg); }
.c2-lesson-fit iframe[data-c2-fit] { display: block; border: 0; max-width: none; transform-origin: 0 0; }
