@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&display=block');

/*
 Theme Name:   BBC Instructor
 Theme URI:    https://instructor.bamboobicycleclub.org
 Description:  Child theme for Kadence — Bamboo Bicycle Club instructor platform with custom page templates for dashboards, lessons, and courses.
 Author:       Bamboo Bicycle Club
 Author URI:   https://bamboobicycleclub.org
 Template:     kadence
 Version: 1.3.23
 Text Domain:  bbc-instructor
*/

/* ========================================
   BBC Brand Design Tokens
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&display=swap');

:root {
    /* Primary brand colours */
    --bbc-forest: #073e27;
    --bbc-teal: #3f8b66;
    --bbc-steel: #8da4c1;
    --bbc-gold: #ffa900;

    /* Highlight colours (dark backgrounds) */
    --bbc-lime: #d4fd62;
    --bbc-sky: #87ceeb;
    --bbc-yellow: #ffff00;
    --bbc-pink: #ffb6c1;

    /* Neutrals */
    --bbc-white: #ffffff;
    --bbc-off-white: #f8f9fa;
    --bbc-charcoal: #333333;
    --bbc-black: #000000;

    /* Typography */
    --bbc-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ========================================
   Global Overrides
   ======================================== */

body {
    font-family: var(--bbc-font);
    color: var(--bbc-charcoal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--bbc-font);
    color: var(--bbc-forest);
}

a {
    color: var(--bbc-teal);
}

a:hover {
    color: var(--bbc-forest);
}

/* ========================================
   Instructor Dashboard Template
   ======================================== */

.bbc-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.bbc-dashboard__header {
    background: var(--bbc-forest);
    color: var(--bbc-white);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.bbc-dashboard__header h1 {
    color: var(--bbc-white);
    font-weight: 800;
    margin: 0;
}

.bbc-dashboard__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.bbc-dashboard__card {
    background: var(--bbc-white);
    border: 1px solid var(--bbc-steel);
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid var(--bbc-teal);
}

.bbc-dashboard__card h3 {
    color: var(--bbc-forest);
    font-weight: 700;
    margin-top: 0;
}

/* ========================================
   Lesson View Template (TV-Optimised)
   Designed for 55" screens at 2-3m distance
   ======================================== */

.bbc-lesson-view {
    min-height: 100vh;
    background: var(--bbc-off-white);
    color: var(--bbc-charcoal);
    font-size: 20px;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
}

/* ── Error state ────────────────────────── */

.bbc-lesson-view__error {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    gap: 1rem;
}

.bbc-lesson-view__error h1 {
    color: var(--bbc-forest);
    font-size: 2rem;
}

/* ── Sticky top bar ─────────────────────── */

.bbc-lesson-view__topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bbc-forest);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.bbc-lesson-view__topbar-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0.75rem 3rem;
    max-width: 1800px;
    margin: 0 auto;
}

.bbc-lesson-view__topbar-back {
    color: var(--bbc-steel);
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.bbc-lesson-view__topbar-back:hover {
    color: var(--bbc-lime);
}

.bbc-lesson-view__topbar-title {
    flex: 1;
    min-width: 0;
}

.bbc-lesson-view__topbar-num {
    display: block;
    color: var(--bbc-lime);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bbc-lesson-view__topbar-heading {
    color: var(--bbc-white);
    font-weight: 800;
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bbc-lesson-view__topbar-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.bbc-lesson-view__topbar-duration {
    background: rgba(255, 255, 255, 0.15);
    color: var(--bbc-white);
    padding: 0.3rem 0.9rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.bbc-lesson-view__topbar-nav {
    display: flex;
    gap: 0.4rem;
}

.bbc-lesson-view__nav-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--bbc-white);
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.15s ease;
}

.bbc-lesson-view__nav-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    color: var(--bbc-white);
}

.bbc-lesson-view__nav-arrow--disabled {
    opacity: 0.25;
    pointer-events: none;
    cursor: default;
}

/* ── Main content area ──────────────────── */

.bbc-lesson-view__main {
    flex: 1;
    padding: 2.5rem 4rem 4rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* ── Section titles ─────────────────────── */

.bbc-lesson-view__section-title {
    color: var(--bbc-forest);
    font-weight: 700;
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin: 0 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--bbc-teal);
}

/* ── Video embed ────────────────────────── */

.bbc-lesson-view__video-section {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.bbc-lesson-view__video-wrap {
    width: 75%;
    aspect-ratio: 16 / 9;
    position: relative;
    background: var(--bbc-charcoal);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.bbc-lesson-view__video-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Editor content ─────────────────────── */

.bbc-lesson-view__editor-content {
    margin-bottom: 3rem;
}

.bbc-lesson-view__editor-content h2,
.bbc-lesson-view__editor-content h3 {
    color: var(--bbc-forest);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
}

.bbc-lesson-view__editor-content p {
    font-size: 1.25rem;
    line-height: 1.7;
}

.bbc-lesson-view__editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* ── Teaching sequence ──────────────────── */

.bbc-lesson-view__sequence {
    margin-bottom: 3rem;
}

.bbc-lesson-view__sequence-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bbc-lesson-view__step {
    background: var(--bbc-white);
    border: 1px solid #e0e0e0;
    border-left: 5px solid var(--bbc-teal);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.bbc-lesson-view__step-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    min-width: 60px;
    flex-shrink: 0;
}

.bbc-lesson-view__step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bbc-forest);
    color: var(--bbc-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
}

.bbc-lesson-view__step-time {
    background: rgba(63, 139, 102, 0.1);
    color: var(--bbc-teal);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.15rem 0.6rem;
    border-radius: 100px;
    white-space: nowrap;
}

.bbc-lesson-view__step-body {
    flex: 1;
    min-width: 0;
}

.bbc-lesson-view__step-activity {
    color: var(--bbc-forest);
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0 0 0.35rem;
}

.bbc-lesson-view__step-approach {
    color: var(--bbc-charcoal);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* ── Collapsible info panels ────────────── */

.bbc-lesson-view__panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.bbc-lesson-view__panel {
    background: var(--bbc-white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.bbc-lesson-view__panel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bbc-forest);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.bbc-lesson-view__panel-header::-webkit-details-marker {
    display: none;
}

.bbc-lesson-view__panel-header::after {
    content: '+';
    margin-left: auto;
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--bbc-steel);
    transition: transform 0.2s ease;
}

details[open] > .bbc-lesson-view__panel-header::after {
    content: '\2212';
}

.bbc-lesson-view__panel-content {
    padding: 0 1.5rem 1.5rem;
    font-size: 1.1rem;
    line-height: 1.65;
}

/* Panel colour variants */
.bbc-lesson-view__panel--safety {
    border-left: 5px solid #dc3545;
    background: #fff8f8;
}
.bbc-lesson-view__panel--safety .bbc-lesson-view__panel-header {
    color: #dc3545;
}

.bbc-lesson-view__panel--materials {
    border-left: 5px solid var(--bbc-gold);
}

.bbc-lesson-view__panel--outcomes {
    border-left: 5px solid var(--bbc-teal);
}

.bbc-lesson-view__panel--assessment {
    border-left: 5px solid var(--bbc-steel);
}

/* ── Bottom sections ────────────────────── */

.bbc-lesson-view__bottom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.bbc-lesson-view__checklist {
    background: var(--bbc-white);
    border: 1px solid #e0e0e0;
    border-top: 4px solid var(--bbc-gold);
    border-radius: 8px;
    padding: 1.5rem;
}

.bbc-lesson-view__tips {
    background: var(--bbc-white);
    border: 1px solid #e0e0e0;
    border-top: 4px solid var(--bbc-sky);
    border-radius: 8px;
    padding: 1.5rem;
}

.bbc-lesson-view__checklist-content,
.bbc-lesson-view__tips-content {
    font-size: 1.1rem;
    line-height: 1.65;
}

/* ── Responsive: smaller screens ────────── */

@media (max-width: 900px) {
    .bbc-lesson-view__main {
        padding: 2rem 1.5rem;
    }

    .bbc-lesson-view__topbar-inner {
        padding: 0.75rem 1.5rem;
        gap: 1rem;
    }

    .bbc-lesson-view__topbar-back {
        display: none;
    }

    .bbc-lesson-view__video-wrap {
        width: 100%;
    }

    .bbc-lesson-view__panels,
    .bbc-lesson-view__bottom {
        grid-template-columns: 1fr;
    }

    .bbc-lesson-view__step {
        flex-direction: column;
        gap: 0.75rem;
    }

    .bbc-lesson-view__step-header {
        flex-direction: row;
        gap: 0.75rem;
    }
}

/* ========================================
   Course Overview Template
   ======================================== */

.bbc-course-overview {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* ── Back link ──────────────────────────── */

.bbc-course-overview__back {
    margin-bottom: 1.5rem;
}

.bbc-course-overview__back a {
    color: var(--bbc-teal);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
}

.bbc-course-overview__back a:hover {
    color: var(--bbc-forest);
}

/* ── Course hero ────────────────────────── */

.bbc-course-overview__hero {
    background: var(--bbc-white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.bbc-course-overview__hero-image {
    aspect-ratio: 21 / 9;
    overflow: hidden;
    background: var(--bbc-off-white);
}

.bbc-course-overview__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bbc-course-overview__hero-body {
    padding: 2rem;
}

.bbc-course-overview__hero-body h1 {
    font-weight: 800;
    font-size: 2rem;
    color: var(--bbc-forest);
    margin: 0 0 0.75rem;
}

.bbc-course-overview__desc {
    font-size: 1.05rem;
    color: var(--bbc-charcoal);
    line-height: 1.65;
    margin: 0 0 1rem;
}

/* ── Lessons section ────────────────────── */

.bbc-course-overview__lessons h2 {
    color: var(--bbc-forest);
    font-weight: 700;
    font-size: 1.375rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bbc-teal);
}

/* ── Module cards ───────────────────────── */

.bbc-course-overview__module {
    background: var(--bbc-white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.bbc-course-overview__module-number {
    background: var(--bbc-teal);
    color: var(--bbc-white);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bbc-course-overview__module-body {
    padding: 0;
}

/* ── Lesson list ────────────────────────── */

.bbc-course-overview__lesson-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bbc-course-overview__lesson-row {
    border-bottom: 1px solid #f0f0f0;
}

.bbc-course-overview__lesson-row:last-child {
    border-bottom: none;
}

.bbc-course-overview__lesson-row a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    text-decoration: none;
    color: var(--bbc-charcoal);
    transition: background 0.15s ease;
}

.bbc-course-overview__lesson-row a:hover {
    background: var(--bbc-off-white);
}

.bbc-course-overview__lesson-num {
    font-family: var(--bbc-font);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--bbc-teal);
    min-width: 50px;
    flex-shrink: 0;
}

.bbc-course-overview__lesson-title {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--bbc-charcoal);
}

.bbc-course-overview__lesson-duration {
    font-size: 0.8rem;
    color: #888;
    flex-shrink: 0;
}

.bbc-course-overview__lesson-play {
    color: var(--bbc-gold);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.bbc-course-overview__lesson-row a:hover .bbc-course-overview__lesson-play {
    transform: translateX(2px);
}

/* ── Editor content ─────────────────────── */

.bbc-course-overview__editor-content {
    margin-top: 2rem;
    padding-top: 1rem;
}

/* ── Responsive ─────────────────────────── */

@media (max-width: 640px) {
    .bbc-course-overview {
        padding: 1rem;
    }

    .bbc-course-overview__hero-body {
        padding: 1.25rem;
    }

    .bbc-course-overview__hero-body h1 {
        font-size: 1.5rem;
    }

    .bbc-course-overview__lesson-row a {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .bbc-course-overview__lesson-num {
        min-width: 40px;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.bbc-btn-primary {
    background: var(--bbc-gold);
    color: var(--bbc-forest);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-family: var(--bbc-font);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.bbc-btn-primary:hover {
    opacity: 0.9;
    color: var(--bbc-forest);
}

.bbc-btn-secondary {
    background: var(--bbc-teal);
    color: var(--bbc-white);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-family: var(--bbc-font);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s ease;
}

.bbc-btn-secondary:hover {
    opacity: 0.9;
    color: var(--bbc-white);
}

/* Bamboo stripe decorative element */
.bbc-bamboo-stripe {
    width: 40px;
    background: linear-gradient(
        to bottom,
        var(--bbc-teal) 0%,
        var(--bbc-teal) 48%,
        transparent 48%,
        transparent 52%,
        var(--bbc-teal) 52%,
        var(--bbc-teal) 100%
    );
}

/* ========================================
   Dashboard Template (template-dashboard)
   ======================================== */

.bbc-dash {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ── Welcome banner ─────────────────────── */

.bbc-dash__welcome {
    background: var(--bbc-forest);
    color: var(--bbc-white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.bbc-dash__welcome h1 {
    color: var(--bbc-white);
    font-weight: 800;
    font-size: 1.75rem;
    margin: 0 0 0.25rem;
}

.bbc-dash__welcome p {
    margin: 0;
    opacity: 0.85;
    font-size: 1rem;
}

/* ── Section headings ───────────────────── */

.bbc-dash__section {
    margin-top: 2.5rem;
}

.bbc-dash__section h2 {
    color: var(--bbc-forest);
    font-weight: 700;
    font-size: 1.375rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bbc-teal);
}

/* ── Grid ───────────────────────────────── */

.bbc-dash__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* ── Course cards ───────────────────────── */

.bbc-dash__course-card {
    background: var(--bbc-white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.bbc-dash__course-card:hover {
    box-shadow: 0 6px 20px rgba(7, 62, 39, 0.12);
    transform: translateY(-2px);
}

.bbc-dash__course-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bbc-off-white);
}

.bbc-dash__course-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bbc-dash__course-card__body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.bbc-dash__course-card__body h3 {
    margin: 0 0 0.5rem;
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.3;
}

.bbc-dash__course-card__body h3 a {
    color: var(--bbc-forest);
    text-decoration: none;
}

.bbc-dash__course-card__body h3 a:hover {
    color: var(--bbc-teal);
}

.bbc-dash__course-card__desc {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.55;
    margin: 0 0 1rem;
    flex: 1;
}

.bbc-dash__course-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.bbc-dash__pill {
    background: rgba(63, 139, 102, 0.1);
    color: var(--bbc-teal);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

.bbc-dash__course-link {
    color: var(--bbc-gold);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
}

.bbc-dash__course-link:hover {
    color: var(--bbc-forest);
}

/* ── Cohort cards ───────────────────────── */

.bbc-dash__cohort-card {
    background: var(--bbc-white);
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--bbc-teal);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.2s ease;
}

.bbc-dash__cohort-card:hover {
    box-shadow: 0 4px 16px rgba(7, 62, 39, 0.1);
}

.bbc-dash__cohort-card h3 {
    margin: 0 0 0.25rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--bbc-forest);
}

.bbc-dash__cohort-course {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--bbc-teal);
    font-weight: 500;
}

.bbc-dash__cohort-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bbc-dash__cohort-detail {
    display: flex;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bbc-dash__label {
    font-weight: 600;
    color: var(--bbc-charcoal);
    min-width: 90px;
    flex-shrink: 0;
}

/* ── Empty states ───────────────────────── */

.bbc-dash__empty {
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    padding: 2rem 1rem;
    background: var(--bbc-off-white);
    border-radius: 8px;
    border: 1px dashed #ccc;
}

/* ── Editor content fallback ────────────── */

.bbc-dash__editor-content {
    padding-top: 1rem;
}

/* ── Responsive tweaks ──────────────────── */

@media (max-width: 640px) {
    .bbc-dash {
        padding: 1rem;
    }

    .bbc-dash__welcome {
        padding: 1.5rem 1.25rem;
    }

    .bbc-dash__welcome h1 {
        font-size: 1.375rem;
    }

    .bbc-dash__grid {
        grid-template-columns: 1fr;
    }

    .bbc-dash__cohort-detail {
        flex-direction: column;
        gap: 0.125rem;
    }

    .bbc-dash__label {
        min-width: auto;
    }
}

/* ========================================
   Cohort View Template
   ======================================== */

.bbc-cohort {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
}

/* ── Header ─────────────────────────────── */

.bbc-cohort__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.bbc-cohort__header-body h1 {
    color: var(--bbc-forest);
    font-weight: 800;
    font-size: 2rem;
    margin: 0 0 0.25rem;
}

.bbc-cohort__course {
    color: var(--bbc-teal);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
}

/* ── Details grid ───────────────────────── */

.bbc-cohort__details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: var(--bbc-white);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.bbc-cohort__detail {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.bbc-cohort__label {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--bbc-teal);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Section ────────────────────────────── */

.bbc-cohort__section h2 {
    color: var(--bbc-forest);
    font-weight: 700;
    font-size: 1.375rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bbc-teal);
}

/* ── Participants table ─────────────────── */

.bbc-cohort__table-wrap {
    overflow-x: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.bbc-cohort__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.bbc-cohort__table thead {
    background: var(--bbc-forest);
    color: var(--bbc-white);
}

.bbc-cohort__table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.bbc-cohort__table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.bbc-cohort__table tbody tr:last-child td {
    border-bottom: none;
}

.bbc-cohort__table tbody tr:hover {
    background: var(--bbc-off-white);
}

/* Status badges */
.bbc-cohort__status {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
}

.bbc-cohort__status--active {
    background: rgba(63, 139, 102, 0.12);
    color: #2d7a4f;
}

.bbc-cohort__status--completed {
    background: rgba(141, 164, 193, 0.2);
    color: #3b6fa0;
}

.bbc-cohort__status--withdrawn {
    background: #f0f0f0;
    color: #888;
}

/* ── Editor content ─────────────────────── */

.bbc-cohort__editor-content {
    margin-top: 2rem;
}

/* ── Responsive ─────────────────────────── */

@media (max-width: 640px) {
    .bbc-cohort {
        padding: 1rem;
    }

    .bbc-cohort__header {
        flex-direction: column;
    }

    .bbc-cohort__header-body h1 {
        font-size: 1.5rem;
    }

    .bbc-cohort__details {
        grid-template-columns: 1fr 1fr;
    }

    .bbc-cohort__table {
        font-size: 0.85rem;
    }

    .bbc-cohort__table th,
    .bbc-cohort__table td {
        padding: 0.5rem 0.75rem;
    }
}


/* ========================================
   Responsive: TV Display (1400px+)
   Primary use case for Lesson View
   ======================================== */

@media (min-width: 1400px) {
    .bbc-lesson-view { font-size: 22px; }
    .bbc-lesson-view__topbar-heading { font-size: 1.75rem; }
    .bbc-lesson-view__topbar-num { font-size: 0.85rem; }
    .bbc-lesson-view__topbar-inner { padding: 1rem 4rem; }
    .bbc-lesson-view__main { padding: 3rem 5rem 5rem; }
    .bbc-lesson-view__section-title { font-size: 2.25rem; }
    .bbc-lesson-view__video-wrap { width: 80%; }
    .bbc-lesson-view__editor-content h2 { font-size: 2rem; }
    .bbc-lesson-view__editor-content p { font-size: 1.35rem; }
    .bbc-lesson-view__editor-content table { font-size: 1.2rem; }
    .bbc-lesson-view__editor-content table th { font-size: 1rem; padding: 1rem 1.25rem; }
    .bbc-lesson-view__editor-content table td { padding: 1rem 1.25rem; }
    .bbc-lesson-view__editor-content .lesson-section { padding: 2rem; }
    .bbc-lesson-view__editor-content .lesson-section h3 { font-size: 1.5rem; }
    .bbc-lesson-view__editor-content .lesson-section li { font-size: 1.2rem; margin-bottom: 0.5rem; }
    .bbc-lesson-view__editor-content .approach-box,
    .bbc-lesson-view__editor-content .diff-box { font-size: 1.15rem; padding: 1rem 1.25rem; }
    .bbc-lesson-view__step-activity { font-size: 1.5rem; }
    .bbc-lesson-view__step-approach { font-size: 1.2rem; }
    .bbc-lesson-view__panel-content,
    .bbc-lesson-view__checklist-content,
    .bbc-lesson-view__tips-content { font-size: 1.2rem; }
    .bbc-lesson-view__nav-arrow { width: 52px; height: 52px; font-size: 1.15rem; }
    .bbc-lesson-view__topbar-duration { font-size: 1rem; padding: 0.4rem 1.1rem; }
}

/* ========================================
   Responsive: Tablet (max 768px)
   For instructors walking around workshop
   ======================================== */

@media (max-width: 768px) {
    /* Lesson View */
    .bbc-lesson-view { font-size: 17px; }
    .bbc-lesson-view__main { padding: 1.5rem 1rem; }
    .bbc-lesson-view__topbar-inner { padding: 0.5rem 1rem; gap: 0.75rem; }
    .bbc-lesson-view__topbar-back { display: none; }
    .bbc-lesson-view__topbar-heading { font-size: 1rem; }
    .bbc-lesson-view__video-wrap { width: 100%; }
    .bbc-lesson-view__panels,
    .bbc-lesson-view__bottom { grid-template-columns: 1fr; }
    .bbc-lesson-view__editor-content .lesson-section { padding: 1rem; }
    .bbc-lesson-view__editor-content .lesson-section h3 { font-size: 1.1rem; flex-wrap: wrap; }
    .bbc-lesson-view__section-title { font-size: 1.25rem; }
    .bbc-lesson-view__editor-content table { font-size: 0.9rem; }
    .bbc-lesson-view__editor-content table th,
    .bbc-lesson-view__editor-content table td { padding: 0.5rem 0.75rem; }

    /* Dashboard */
    .bbc-dash { padding: 1rem; }
    .bbc-dash__welcome { padding: 1.5rem 1.25rem; }
    .bbc-dash__welcome h1 { font-size: 1.25rem; }
    .bbc-dash__grid { grid-template-columns: 1fr; }

    /* Course Overview */
    .bbc-course-overview { padding: 1rem; }
    .bbc-course-overview__hero-body { padding: 1.25rem; }
    .bbc-course-overview__hero-body h1 { font-size: 1.5rem; }
}

/* ========================================
   Responsive: Mobile (max 480px)
   Basic usability only
   ======================================== */

@media (max-width: 480px) {
    .bbc-lesson-view { font-size: 16px; }
    .bbc-lesson-view__main { padding: 1rem 0.75rem; }
    .bbc-lesson-view__topbar-inner { padding: 0.4rem 0.75rem; gap: 0.5rem; }
    .bbc-lesson-view__topbar-heading { font-size: 0.9rem; white-space: normal; }
    .bbc-lesson-view__topbar-duration { display: none; }
    .bbc-lesson-view__nav-arrow { width: 36px; height: 36px; }
    .bbc-lesson-view__editor-content .lesson-section h3 { font-size: 1rem; }
    .bbc-lesson-view__editor-content .section-num { width: 28px; height: 28px; font-size: 0.85rem; }
    .bbc-lesson-view__step { flex-direction: column; gap: 0.5rem; }
    .bbc-lesson-view__step-header { flex-direction: row; gap: 0.5rem; }

    .bbc-dash__welcome h1 { font-size: 1.1rem; }
    .bbc-dash__course-card__body h3 { font-size: 1rem; }
    .bbc-course-overview__hero-body h1 { font-size: 1.25rem; }
    .bbc-course-overview__lesson-row a { padding: 0.5rem 0.75rem; gap: 0.35rem; font-size: 0.85rem; }
    .bbc-course-overview__lesson-num { min-width: 35px; font-size: 0.75rem; }
    .bbc-cohort__header { flex-direction: column; }
    .bbc-cohort__details { grid-template-columns: 1fr; }
    .bbc-cohort__table { font-size: 0.8rem; }
}

/* ========================================
   Lesson View: Enhanced Content UX v2
   Workshop-optimised instructor interface
   ======================================== */

/* ── "What To Do/Look For/Need" as styled cards ── */

.bbc-lesson-view__editor-content h4 {
    font-family: var(--bbc-font);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 1.5rem 0 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    display: inline-block;
}

/* What To Do = teal action label */
.bbc-lesson-view__editor-content h4:nth-of-type(1),
.bbc-lesson-view__editor-content h4[id*="what-to-do"],
.bbc-lesson-view__editor-content h4:has(+ ol),
.bbc-lesson-view__editor-content h4:has(+ ul) {
    background: rgba(63, 139, 102, 0.1);
    color: var(--bbc-teal);
    border-left: 3px solid var(--bbc-teal);
}

/* What To Look For = gold assessment label */

/* Activities label = teal */

/* ── Ordered list steps as prominent numbered items ── */

.bbc-lesson-view__editor-content ol {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1.5rem;
}

.bbc-lesson-view__editor-content ol > li {
    counter-increment: step-counter;
    position: relative;
    padding: 0.75rem 1rem 0.75rem 3.5rem;
    margin-bottom: 0.5rem;
    background: var(--bbc-white);
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 1.1rem;
    line-height: 1.5;
    transition: border-color 0.15s ease;
}

.bbc-lesson-view__editor-content ol > li:hover {
    border-color: var(--bbc-teal);
}

.bbc-lesson-view__editor-content ol > li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bbc-forest);
    color: var(--bbc-lime);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
}

/* ── Unordered list items with better spacing ── */

.bbc-lesson-view__editor-content ul {
    padding-left: 1.5rem;
    margin: 0.75rem 0 1.5rem;
}

.bbc-lesson-view__editor-content ul > li {
    padding: 0.35rem 0;
    line-height: 1.6;
    font-size: 1.1rem;
}

.bbc-lesson-view__editor-content ul > li::marker {
    color: var(--bbc-teal);
    font-size: 1.2em;
}

/* ── Blockquotes as instructor script callouts ── */

.bbc-lesson-view__editor-content blockquote {
    background: rgba(63, 139, 102, 0.05);
    border-left: 4px solid var(--bbc-teal);
    padding: 1.25rem 1.5rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--bbc-charcoal);
}

.bbc-lesson-view__editor-content blockquote::before {
    content: '\201C';
    font-size: 3rem;
    color: var(--bbc-teal);
    float: left;
    margin-right: 0.5rem;
    margin-top: -0.25rem;
    line-height: 1;
    font-family: Georgia, serif;
}

/* ── Strong text as inline labels ── */

.bbc-lesson-view__editor-content p > strong:first-child {
    color: var(--bbc-forest);
    font-size: 1.05em;
}

/* ── Video embed cards with labels ── */

.bbc-lesson-view__editor-content > div[style*="border-left-color: var(--bbc-gold)"] {
    margin: 1.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}


/* ── "What To Look For" assessment paragraph ── */

.bbc-lesson-view__editor-content h4 + p,
.bbc-lesson-view__editor-content .lesson-section > p:last-of-type {
    font-size: 1.05rem;
    line-height: 1.65;
}

/* ── Lesson section card refinements ── */

.bbc-lesson-view__editor-content .lesson-section {
    background: var(--bbc-white);
    border: 1px solid #e8e8e8;
    border-left: 5px solid var(--bbc-teal);
    border-radius: 10px;
    padding: 1.75rem 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease;
}

.bbc-lesson-view__editor-content .lesson-section:hover {
    box-shadow: 0 3px 16px rgba(7, 62, 39, 0.08);
}

.bbc-lesson-view__editor-content .lesson-section h3 {
    color: var(--bbc-forest);
    font-weight: 800;
    font-size: 1.4rem;
    margin: 0 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ── Section number circle ── */

.bbc-lesson-view__editor-content .section-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bbc-forest);
    color: var(--bbc-lime);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(7, 62, 39, 0.2);
}

/* ── Time badge pill ── */

.bbc-lesson-view__editor-content .time-badge {
    background: rgba(63, 139, 102, 0.12);
    color: var(--bbc-teal);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.25rem 0.85rem;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* ── Approach and differentiation boxes ── */

.bbc-lesson-view__editor-content .approach-box {
    background: rgba(63, 139, 102, 0.04);
    border-left: 4px solid var(--bbc-teal);
    padding: 1rem 1.25rem;
    margin: 0.75rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--bbc-charcoal);
}

.bbc-lesson-view__editor-content .diff-box {
    background: rgba(255, 169, 0, 0.05);
    border-left: 4px solid var(--bbc-gold);
    padding: 1rem 1.25rem;
    margin: 0.75rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--bbc-charcoal);
}

/* ── Break divider ── */

.bbc-lesson-view__editor-content .lesson-break {
    background: var(--bbc-off-white);
    border: 2px dashed #d0d0d0;
    border-radius: 10px;
    padding: 1.25rem 2rem;
    margin: 1.5rem 0;
    text-align: center;
    color: #888;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ── Table enhancements ── */

.bbc-lesson-view__editor-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 1.05rem;
    background: var(--bbc-white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.bbc-lesson-view__editor-content table th {
    background: var(--bbc-forest);
    color: var(--bbc-white);
    text-align: left;
    padding: 0.85rem 1.15rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.bbc-lesson-view__editor-content table td {
    padding: 0.75rem 1.15rem;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
    line-height: 1.5;
}

.bbc-lesson-view__editor-content table tr:last-child td {
    border-bottom: none;
}

.bbc-lesson-view__editor-content table tr:hover td {
    background: rgba(63, 139, 102, 0.03);
}

/* ── Checkbox items ── */

.bbc-lesson-view__editor-content li:has(> :first-child) {
    list-style: none;
}

/* ── H2 section headings ── */

.bbc-lesson-view__editor-content h2 {
    color: var(--bbc-forest);
    font-weight: 800;
    font-size: 1.6rem;
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--bbc-teal);
    letter-spacing: -0.01em;
}

.bbc-lesson-view__editor-content h2:first-child {
    margin-top: 0;
}

/* ── H3 sub-headings (non-section) ── */

.bbc-lesson-view__editor-content h3:not(:has(.section-num)) {
    color: var(--bbc-forest);
    font-weight: 700;
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
}

/* ── Document references ── */

.bbc-lesson-view__editor-content p:has(> em:only-child) {
    color: #888;
    font-size: 0.9rem;
    padding: 0.5rem;
    background: var(--bbc-off-white);
    border-radius: 6px;
    border: 1px dashed #ddd;
}

/* ── TV-specific enhancements ── */

@media (min-width: 1400px) {
    .bbc-lesson-view__editor-content ol > li {
        padding: 1rem 1.25rem 1rem 4rem;
        font-size: 1.25rem;
    }
    .bbc-lesson-view__editor-content ol > li::before {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    .bbc-lesson-view__editor-content .lesson-section {
        padding: 2rem 2.5rem;
    }
    .bbc-lesson-view__editor-content .lesson-section h3 {
        font-size: 1.6rem;
    }
    .bbc-lesson-view__editor-content .section-num {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }
    .bbc-lesson-view__editor-content h2 {
        font-size: 2rem;
    }
    .bbc-lesson-view__editor-content blockquote {
        font-size: 1.3rem;
    }
}

/* ── Tablet adjustments ── */

@media (max-width: 768px) {
    .bbc-lesson-view__editor-content ol > li {
        padding: 0.6rem 0.75rem 0.6rem 3rem;
        font-size: 0.95rem;
    }
    .bbc-lesson-view__editor-content ol > li::before {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
        left: 0.5rem;
    }
    .bbc-lesson-view__editor-content .lesson-section {
        padding: 1rem 1.25rem;
    }
    .bbc-lesson-view__editor-content .lesson-section h3 {
        font-size: 1.1rem;
    }
    .bbc-lesson-view__editor-content h2 {
        font-size: 1.3rem;
    }
}


/* ============================================================
   ACCESSIBILITY + UX UPGRADES — May 2026
   ============================================================ */

/* Skip-to-content link */
.bbc-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100000;
    padding: 12px 16px;
    background: var(--bbc-forest);
    color: var(--bbc-lime);
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 6px 0;
}
.bbc-skip-link:focus {
    left: 0;
    outline: 3px solid var(--bbc-lime);
    outline-offset: 2px;
}

/* Visible focus ring on all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.bbc-btn:focus-visible,
.bbc-courses-btn:focus-visible {
    outline: 3px solid var(--bbc-gold) !important;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Print stylesheet for workshop lesson printouts */
@media print {
    .site-header, .site-footer, .bbc-lesson-view__topbar,
    #wpadminbar, .bbc-courses-dropdown, .bbc-skip-link,
    .bbc-page-header__action, button, .siteseo-ai-modal,
    .bbc-register-cohort-btn {
        display: none !important;
    }
    body, .bbc-lesson-view, .bbc-lesson-view__main {
        background: white !important;
        color: #000 !important;
        font-size: 11pt !important;
        max-width: 100% !important;
    }
    .bbc-lesson-view h1, .bbc-lesson-view h2, .bbc-lesson-view h3 { page-break-after: avoid; }
    .bbc-step-card, .bbc-lesson-view__panel { page-break-inside: avoid; break-inside: avoid; }
    a { color: #000 !important; text-decoration: underline; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
}

/* Course CPT single page — light theme override (matches rest of site) */
body.single-course .entry-content,
body.single-course .content-container,
body.single-course main,
body.single-course .site-content,
body.single-course .content-bg {
    background: var(--bbc-off-white) !important;
    color: var(--bbc-charcoal) !important;
}
body.single-course .entry-content h1, body.single-course .entry-content h2, body.single-course .entry-content h3, body.single-course .entry-content h4, body.single-course article h1, body.single-course article h2, body.single-course article h3 { color: var(--bbc-forest) !important; }
body.single-course .entry-content p, body.single-course .entry-content li, body.single-course article p, body.single-course article li, body.single-course article td { color: var(--bbc-charcoal) !important; }
body.single-course table {
    background: white !important;
    border: 1px solid #e2e8f0;
}
body.single-course thead th {
    background: var(--bbc-forest) !important;
    color: white !important;
}
body.single-course tbody tr:nth-child(even) td {
    background: #f8f9fa !important;
}
body.single-course tbody tr:nth-child(odd) td {
    background: white !important;
}
body.single-course tbody td {
    color: var(--bbc-charcoal) !important;
    border-bottom: 1px solid #e2e8f0;
}
body.single-course .entry-content a:not(.bbc-back-dashboard), body.single-course article .entry-content a { color: var(--bbc-forest) !important; text-decoration: underline; }
body.single-course .entry-title {
    color: var(--bbc-forest) !important;
}

/* Cohort status badges */
.bbc-status {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.bbc-status--active { background: #d4edda; color: #155724; }
.bbc-status--completed { background: #cce5ff; color: #004085; }
.bbc-status--pending { background: #fff3cd; color: #856404; }
.bbc-status--withdrawn { background: #f8d7da; color: #721c24; }

/* (removed: pseudo-element back link replaced by JS-injected real anchor) */


/* ============================================================
   UNIVERSAL DESIGN TOKENS — May 2026
   Adds missing brand tokens, type/space/radius/shadow scale,
   and resets lesson content to use light-theme contrast.
   ============================================================ */

:root {
    /* Surface + structure */
    --bbc-surface: #ffffff;
    --bbc-surface-subtle: #f8f9fa;
    --bbc-surface-muted: #f0f0f0;
    --bbc-border-subtle: #e2e8f0;
    --bbc-border-light: #e0e0e0;
    --bbc-border-strong: #c5cdd6;
    /* Text variants */
    --bbc-text-primary: #1a3a2a;
    --bbc-text-secondary: #2d5a3d;
    --bbc-text-muted: #555555;
    --bbc-text-faint: #888888;
    /* Status */
    --bbc-success: #155724;
    --bbc-success-bg: #d4edda;
    --bbc-info: #004085;
    --bbc-info-bg: #cce5ff;
    --bbc-warn: #856404;
    --bbc-warn-bg: #fff3cd;
    --bbc-danger: #dc3545;
    --bbc-danger-bg: #f8d7da;
    /* Type scale */
    --bbc-text-xs: 0.75rem;
    --bbc-text-sm: 0.875rem;
    --bbc-text-base: 1rem;
    --bbc-text-md: 1.125rem;
    --bbc-text-lg: 1.25rem;
    --bbc-text-xl: 1.5rem;
    --bbc-text-2xl: 2rem;
    --bbc-text-3xl: 2.5rem;
    /* Spacing scale */
    --bbc-space-1: 0.25rem;
    --bbc-space-2: 0.5rem;
    --bbc-space-3: 0.75rem;
    --bbc-space-4: 1rem;
    --bbc-space-6: 1.5rem;
    --bbc-space-8: 2rem;
    --bbc-space-12: 3rem;
    /* Radius */
    --bbc-radius-sm: 4px;
    --bbc-radius-md: 8px;
    --bbc-radius-lg: 12px;
    --bbc-radius-pill: 999px;
    /* Shadow */
    --bbc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --bbc-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.08);
    --bbc-shadow-lg: 0 10px 15px rgba(7, 62, 39, 0.12);
}

/* ============================================================
   UNIVERSAL LESSON CONTENT RESET — fixes pale-lime headings,
   light-gray body text, and dark navy blockquotes that were
   designed for a dark theme but rendered on light background.
   ============================================================ */

.bbc-lesson-view,
.bbc-lesson-view__main {
    background: var(--bbc-surface-subtle) !important;
    color: var(--bbc-text-primary) !important;
}

.bbc-lesson-view__main h1,
.bbc-lesson-view__main h2,
.bbc-lesson-view__main > h1,
.bbc-lesson-view__main > h2 {
    color: var(--bbc-forest) !important;
    font-weight: 800 !important;
}

.bbc-lesson-view__main h3,
.bbc-lesson-view__main h4,
.bbc-lesson-view__main h5 {
    color: var(--bbc-text-primary) !important;
    font-weight: 700 !important;
}

.bbc-lesson-view__main p,
.bbc-lesson-view__main li,
.bbc-lesson-view__main span,
.bbc-lesson-view__main em,
.bbc-lesson-view__main strong {
    color: var(--bbc-text-primary) !important;
}

.bbc-lesson-view__main strong {
    font-weight: 700 !important;
}

.bbc-lesson-view__main em,
.bbc-lesson-view__main i {
    font-style: italic;
    color: var(--bbc-text-secondary) !important;
}

.bbc-lesson-view__main a {
    color: var(--bbc-forest) !important;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}
.bbc-lesson-view__main a:hover {
    color: var(--bbc-teal) !important;
}

/* Blockquote: light bg, charcoal text, forest accent border */
.bbc-lesson-view__main blockquote,
.bbc-lesson-view__main .wp-block-quote,
.bbc-lesson-view__main .wp-block-pullquote {
    background: var(--bbc-surface) !important;
    color: var(--bbc-text-primary) !important;
    border-left: 4px solid var(--bbc-forest) !important;
    border-radius: var(--bbc-radius-md) !important;
    padding: var(--bbc-space-6) var(--bbc-space-8) !important;
    margin: var(--bbc-space-6) 0 !important;
    box-shadow: var(--bbc-shadow-sm) !important;
    font-style: normal !important;
    quotes: none;
}
.bbc-lesson-view__main blockquote *,
.bbc-lesson-view__main .wp-block-quote *,
.bbc-lesson-view__main .wp-block-pullquote * {
    color: var(--bbc-text-primary) !important;
}
.bbc-lesson-view__main blockquote::before {
    content: none;
}

/* Tables: light alternating rows, dark forest header */
.bbc-lesson-view__main table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bbc-surface) !important;
    color: var(--bbc-text-primary) !important;
    border-radius: var(--bbc-radius-md);
    overflow: hidden;
    box-shadow: var(--bbc-shadow-sm);
    margin: var(--bbc-space-6) 0;
}
.bbc-lesson-view__main table th {
    background: var(--bbc-forest) !important;
    color: #fff !important;
    font-weight: 700;
    text-align: left;
    padding: var(--bbc-space-3) var(--bbc-space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: var(--bbc-text-sm);
}
.bbc-lesson-view__main table td {
    padding: var(--bbc-space-3) var(--bbc-space-4);
    border-bottom: 1px solid var(--bbc-border-light);
    color: var(--bbc-text-primary) !important;
    background: transparent !important;
}
.bbc-lesson-view__main table tr:nth-child(even) td {
    background: var(--bbc-surface-subtle) !important;
}
.bbc-lesson-view__main table tr:nth-child(odd) td {
    background: var(--bbc-surface) !important;
}

/* Lesson section headings (eg "[SESSION OVERVIEW]") */
.bbc-lesson-view__main .lesson-section,
.bbc-lesson-view__main .lesson-section-heading,
.bbc-lesson-view__main .section-num,
.bbc-lesson-view__main h2.lesson-section {
    color: var(--bbc-forest) !important;
    border-left: 4px solid var(--bbc-forest);
    padding-left: var(--bbc-space-3);
    background: transparent;
}

/* Code blocks readable */
.bbc-lesson-view__main code,
.bbc-lesson-view__main pre {
    background: var(--bbc-surface) !important;
    color: var(--bbc-text-primary) !important;
    border: 1px solid var(--bbc-border-light);
    border-radius: var(--bbc-radius-sm);
    padding: var(--bbc-space-1) var(--bbc-space-2);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.95em;
}
.bbc-lesson-view__main pre {
    padding: var(--bbc-space-4);
    overflow-x: auto;
}

/* Lists */
.bbc-lesson-view__main ul li,
.bbc-lesson-view__main ol li {
    margin-bottom: var(--bbc-space-2);
    line-height: 1.6;
}

/* HR separator */
.bbc-lesson-view__main hr {
    border: none;
    border-top: 2px solid var(--bbc-border-light);
    margin: var(--bbc-space-8) 0;
}

/* Universal card pattern */
.bbc-card {
    background: var(--bbc-surface);
    border-radius: var(--bbc-radius-md);
    padding: var(--bbc-space-6);
    box-shadow: var(--bbc-shadow-sm);
    border: 1px solid var(--bbc-border-light);
}

/* Universal section header */
.bbc-section-heading {
    color: var(--bbc-forest);
    font-size: var(--bbc-text-xl);
    font-weight: 700;
    margin-bottom: var(--bbc-space-4);
    padding-bottom: var(--bbc-space-2);
    border-bottom: 2px solid var(--bbc-teal);
}


/* ============================================================
   UNIVERSAL UI POLISH — fix Kadence button-style bleeding
   into card titles and links across all pages
   ============================================================ */

/* Kill Kadence button-style on ALL course/lesson card titles */
.bbc-dash__course-card h3 a,
.bbc-dash__course-card h3,
.bbc-dash__cohort-card h3,
.bbc-dash__cohort-card h3 a,
.bbc-course-card a,
.bbc-course-card h3,
.bbc-course-card h3 a {
    background: transparent !important;
    color: var(--bbc-forest) !important;
    padding: 0 !important;
    font-size: var(--bbc-text-md) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    display: block !important;
}
.bbc-dash__course-card h3 a:hover,
.bbc-dash__cohort-card h3 a:hover,
.bbc-course-card h3 a:hover {
    color: var(--bbc-teal) !important;
    text-decoration: underline !important;
}

/* Course/cohort card "View" CTA — proper outlined button */
.bbc-dash__course-link,
.bbc-dash__cohort-link,
.bbc-course-card__cta,
.bbc-cohort-card__cta {
    display: inline-block !important;
    background: var(--bbc-forest) !important;
    color: #ffffff !important;
    padding: var(--bbc-space-3) var(--bbc-space-4) !important;
    border-radius: var(--bbc-radius-md) !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: var(--bbc-text-sm) !important;
    transition: background 0.2s ease;
    margin-top: var(--bbc-space-4);
}
.bbc-dash__course-link:hover,
.bbc-dash__cohort-link:hover {
    background: var(--bbc-teal) !important;
    color: #ffffff !important;
}

/* Universal page heading: any .bbc-page-title gets forest color */
.bbc-page-title,
h1.bbc-page-title,
h2.bbc-page-title,
.bbc-section-title,
h1.bbc-section-title,
h2.bbc-section-title {
    color: var(--bbc-forest) !important;
    font-weight: 800 !important;
}
.bbc-page-subtitle {
    color: var(--bbc-text-muted) !important;
}

/* Universal: dashboard welcome + section titles + course overview titles */
.bbc-dash__welcome h1,
.bbc-dash__section h2,
.bbc-dash__section-title,
.bbc-course-overview__title,
.bbc-course-overview h1,
.bbc-course-overview h2 {
    color: var(--bbc-forest) !important;
}

/* Welcome banner stays dark forest with white text */
.bbc-dash__welcome,
.bbc-dashboard__header {
    background: var(--bbc-forest) !important;
}
.bbc-dash__welcome h1,
.bbc-dash__welcome p,
.bbc-dashboard__header h1,
.bbc-dashboard__header p {
    color: #ffffff !important;
}

/* Course details pill on dark header dropdown — keep white */
.bbc-courses-btn,
.bbc-courses-dropdown a {
    color: #ffffff !important;
    background: transparent !important;
}

/* Cohort table — readable rows */
.bbc-cohorts-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bbc-surface);
    border-radius: var(--bbc-radius-md);
    overflow: hidden;
    box-shadow: var(--bbc-shadow-sm);
}
.bbc-cohorts-table thead th {
    background: var(--bbc-forest);
    color: #fff;
    text-align: left;
    padding: var(--bbc-space-3) var(--bbc-space-4);
    text-transform: uppercase;
    font-size: var(--bbc-text-sm);
    letter-spacing: 0.05em;
}
.bbc-cohorts-table tbody td {
    padding: var(--bbc-space-3) var(--bbc-space-4);
    border-bottom: 1px solid var(--bbc-border-light);
    color: var(--bbc-text-primary);
}
.bbc-cohorts-table tbody tr:hover td {
    background: var(--bbc-surface-subtle);
}


/* ============================================================
   KILL ZOMBIE BORDERS — Kadence default link styling adds a
   1px border + outline to ALL anchor tags. Strip them on cards.
   ============================================================ */

.bbc-dash__course-card a,
.bbc-dash__course-card h3 a,
.bbc-dash__cohort-card a,
.bbc-dash__cohort-card h3 a,
.bbc-course-card a,
.bbc-course-card h3 a,
.bbc-dash__course-link,
.bbc-dash__cohort-link,
.bbc-cohort-card a,
body.page-template-template-dashboard a,
body.page-template-template-course-overview a,
body.page-template-template-cohort-view a {
    border: none !important;
    outline: none !important;
}

/* Re-apply only the visible focus ring (overrides outline:none for keyboard) */
.bbc-dash__course-card a:focus-visible,
.bbc-dash__course-card h3 a:focus-visible,
.bbc-dash__course-link:focus-visible,
.bbc-course-card a:focus-visible {
    outline: 3px solid var(--bbc-gold) !important;
    outline-offset: 2px;
}

/* Force button CTAs to white text (Kadence color was winning) */
.bbc-dash__course-link,
.bbc-dash__cohort-link,
.bbc-course-card__cta,
.bbc-cohort-card__cta,
button.bbc-btn--primary,
.bbc-register-cohort-btn {
    color: #ffffff !important;
}
.bbc-dash__course-link:hover,
.bbc-dash__cohort-link:hover,
.bbc-register-cohort-btn:hover {
    color: #ffffff !important;
    background: var(--bbc-teal) !important;
}

/* Strip the round border from card title pill */
.bbc-dash__course-card h3 a,
.bbc-course-card h3 a {
    border-radius: 0 !important;
}

/* Lesson topbar links — ensure light text on dark header */
.bbc-lesson-view__topbar a,
.bbc-lesson-view__topbar-back {
    color: rgba(255, 255, 255, 0.85) !important;
    border: none !important;
}
.bbc-lesson-view__topbar a:hover {
    color: #ffffff !important;
}

/* Resources page link list cleanup */
.bbc-resources a,
.entry-content a {
    border: none !important;
}


/* ============================================================
   UNIVERSAL HEADING SWEEP — ANY .bbc-* heading on the front-end
   gets dark forest color (was previously pale lime in many places)
   ============================================================ */

.bbc-resource-section__title,
.bbc-empty-state__title,
.bbc-cohort-section__title,
.bbc-cohorts-section__title,
.bbc-page-section__title,
.bbc-section__title,
[class*="bbc-"][class*="__title"],
main h1[class*="bbc"],
main h2[class*="bbc"],
main h3[class*="bbc"],
.bbc-resource-section h2,
.bbc-empty-state h2 {
    color: var(--bbc-forest) !important;
    font-weight: 700 !important;
}

.bbc-empty-state {
    color: var(--bbc-text-muted) !important;
}
.bbc-empty-state p,
.bbc-empty-state li {
    color: var(--bbc-text-muted) !important;
}

/* Resource list items */
.bbc-resource-section ul li,
.bbc-resource-section a {
    color: var(--bbc-text-primary) !important;
}
.bbc-resource-section a {
    color: var(--bbc-forest) !important;
    text-decoration: underline;
}
.bbc-resource-section a:hover {
    color: var(--bbc-teal) !important;
}

/* Catchall for any text rendered with pale lime via inline class */
.bbc-page-content [style*="color:#6ee7b7"],
.bbc-page-content [style*="color: #6ee7b7"] {
    color: var(--bbc-forest) !important;
}

/* Hard kill the pale lime + light gray pair anywhere on front-end main */
main *, article *, .entry-content * {
    /* leave color alone unless inherited from the broken design */
}


/* ============================================================
   INLINE-STYLE OVERRIDES — replace 8 hardcoded patterns found
   in 16 lessons (240+ instances) with token-based equivalents.
   Attribute selectors target the exact inline strings.
   ============================================================ */

/* Muted secondary text */
.bbc-lesson-view__main [style*="color:#6b7280"],
.bbc-lesson-view__main [style*="color: #6b7280"] {
    color: var(--bbc-text-muted) !important;
    font-size: var(--bbc-text-sm) !important;
}

/* Universal pill base — applies whenever any of the 4 hardcoded badge bgs are seen */
.bbc-lesson-view__main [style*="background:#dc2626"],
.bbc-lesson-view__main [style*="background: #dc2626"],
.bbc-lesson-view__main [style*="background:#d97706"],
.bbc-lesson-view__main [style*="background: #d97706"],
.bbc-lesson-view__main [style*="background:#6b7280"],
.bbc-lesson-view__main [style*="background: #6b7280"],
.bbc-lesson-view__main [style*="background:#16a34a"],
.bbc-lesson-view__main [style*="background: #16a34a"] {
    color: #ffffff !important;
    padding: var(--bbc-space-1) var(--bbc-space-2) !important;
    border-radius: var(--bbc-radius-sm) !important;
    font-size: var(--bbc-text-xs) !important;
    font-weight: 700 !important;
    display: inline-block !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Override each hardcoded bg with its semantic token */
.bbc-lesson-view__main [style*="background:#dc2626"],
.bbc-lesson-view__main [style*="background: #dc2626"] {
    background: var(--bbc-danger) !important;
}
.bbc-lesson-view__main [style*="background:#d97706"],
.bbc-lesson-view__main [style*="background: #d97706"] {
    background: var(--bbc-warn) !important;
}
.bbc-lesson-view__main [style*="background:#6b7280"],
.bbc-lesson-view__main [style*="background: #6b7280"] {
    background: var(--bbc-text-faint) !important;
}
.bbc-lesson-view__main [style*="background:#16a34a"],
.bbc-lesson-view__main [style*="background: #16a34a"] {
    background: var(--bbc-success) !important;
}

/* Video embed wrapper used in lesson content */
.bbc-lesson-view__main [style*="aspect-ratio:16/9"],
.bbc-lesson-view__main [style*="aspect-ratio: 16/9"] {
    border-radius: var(--bbc-radius-md) !important;
    box-shadow: var(--bbc-shadow-md) !important;
    margin: var(--bbc-space-4) 0 !important;
}

/* ============================================================
   FUTURE-PROOF: Class-based equivalents for new lesson content
   Use these in Notion exports / new lesson HTML instead of inline.
   ============================================================ */
.bbc-pill,
.bbc-pill--danger,
.bbc-pill--warn,
.bbc-pill--success,
.bbc-pill--muted {
    display: inline-block;
    padding: var(--bbc-space-1) var(--bbc-space-2);
    border-radius: var(--bbc-radius-sm);
    font-size: var(--bbc-text-xs);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
}
.bbc-pill--danger { background: var(--bbc-danger); }
.bbc-pill--warn { background: var(--bbc-warn); }
.bbc-pill--success { background: var(--bbc-success); }
.bbc-pill--muted { background: var(--bbc-text-faint); }

/* Video embed responsive container — use this class instead of inline aspect-ratio */
.bbc-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: var(--bbc-space-4) 0;
    border-radius: var(--bbc-radius-md);
    overflow: hidden;
    box-shadow: var(--bbc-shadow-md);
}
.bbc-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Caption / secondary inline note */
.bbc-caption,
.bbc-note-muted {
    font-size: var(--bbc-text-sm);
    color: var(--bbc-text-muted);
}


/* Strip Kadence dark navy bg from lesson content h3/h4/h5 (LESSON H4 BG STRIP) */
.bbc-lesson-view__main h3,
.bbc-lesson-view__main h4,
.bbc-lesson-view__main h5,
.bbc-lesson-view__main h6 {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    color: var(--bbc-forest) !important;
    font-weight: 700 !important;
    margin-top: var(--bbc-space-6) !important;
    margin-bottom: var(--bbc-space-3) !important;
}
.bbc-lesson-view__main h4 {
    font-size: var(--bbc-text-md) !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-left: 3px solid var(--bbc-teal) !important;
    padding-left: var(--bbc-space-3) !important;
}


/* ============================================================
   LESSON CONTENT v2 — BLOCK CARDS + CONSISTENT HIERARCHY
   Targets the universal markup pattern shared by all 38
   Build to Bond lessons (Course 157 + 203).
   ============================================================ */

/* Lesson body container — generous reading space */
.bbc-lesson-view__main .entry-content,
.bbc-lesson-view__main {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 var(--bbc-space-4);
}
@media (min-width: 1400px) {
    .bbc-lesson-view__main .entry-content,
    .bbc-lesson-view__main {
        max-width: 1100px;
    }
}

/* ---------- TOP-LEVEL HEADINGS ---------- */
.bbc-lesson-view__main h1 {
    font-size: var(--bbc-text-2xl) !important;
    color: var(--bbc-forest) !important;
    font-weight: 800 !important;
    margin: var(--bbc-space-8) 0 var(--bbc-space-4);
    padding-bottom: var(--bbc-space-3);
    border-bottom: 4px solid var(--bbc-teal);
    line-height: 1.15;
}
/* Second h1 in lesson body acts as Section 2 divider */
.bbc-lesson-view__main h1 ~ h1 {
    margin-top: var(--bbc-space-12) !important;
    padding-top: var(--bbc-space-8);
    border-top: 2px dashed var(--bbc-border-strong);
    border-bottom: 4px solid var(--bbc-teal);
}

/* ---------- H2 SECTION HEADERS ---------- */
.bbc-lesson-view__main h2 {
    font-size: var(--bbc-text-xl) !important;
    color: var(--bbc-forest) !important;
    font-weight: 800 !important;
    margin: var(--bbc-space-8) 0 var(--bbc-space-4) !important;
    padding: var(--bbc-space-2) var(--bbc-space-4) !important;
    border-left: 6px solid var(--bbc-teal) !important;
    background: linear-gradient(90deg, rgba(63,139,102,0.08) 0%, transparent 60%);
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
}
/* Uppercase h2 (eg "SESSION OVERVIEW", "TEACHING SEQUENCE") get extra emphasis */
.bbc-lesson-view__main h2:where([id*="overview"], [id*="teaching"], [id*="session"]),
.bbc-lesson-view__main h2 {
    /* default applied above */
}

/* ---------- H3 BLOCK HEADERS (Block 1 | ...) ---------- */
.bbc-lesson-view__main h3 {
    font-size: var(--bbc-text-lg) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    background: var(--bbc-forest) !important;
    padding: var(--bbc-space-3) var(--bbc-space-4) !important;
    border-radius: var(--bbc-radius-md) var(--bbc-radius-md) 0 0 !important;
    margin: var(--bbc-space-8) 0 0 !important;
    border: none !important;
    line-height: 1.3;
    box-shadow: var(--bbc-shadow-sm);
}

/* Body content following an h3 gets connected card styling */
.bbc-lesson-view__main h3 + *,
.bbc-lesson-view__main h3 ~ *:not(h2):not(h3) {
    /* Subtle indication these belong to the block */
}

/* ---------- H4 SUB-SECTION LABELS (What You'll Need / What To Do / etc.) ---------- */
.bbc-lesson-view__main h4 {
    font-size: var(--bbc-text-sm) !important;
    color: var(--bbc-text-secondary) !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: var(--bbc-space-6) 0 var(--bbc-space-2) !important;
    padding: 0 0 var(--bbc-space-1) 0 !important;
    border: none !important;
    border-bottom: 2px solid var(--bbc-teal) !important;
    display: inline-block;
    background: transparent !important;
}

/* h4 that's the FIRST CHILD of h3 (right after a block) gets connected card top */
.bbc-lesson-view__main h3 + h4 {
    margin-top: var(--bbc-space-4) !important;
    padding: var(--bbc-space-3) var(--bbc-space-4) 0 !important;
}

/* ---------- BULLET LISTS ---------- */
.bbc-lesson-view__main ul {
    list-style: none;
    padding-left: 0;
    margin: var(--bbc-space-3) 0 var(--bbc-space-6);
}
.bbc-lesson-view__main ul li {
    position: relative;
    padding-left: var(--bbc-space-6);
    margin-bottom: var(--bbc-space-2);
    line-height: 1.55;
    color: var(--bbc-text-primary) !important;
}
.bbc-lesson-view__main ul li::before {
    content: "";
    position: absolute;
    left: 0.4rem;
    top: 0.65em;
    width: 8px;
    height: 8px;
    background: var(--bbc-teal);
    border-radius: 50%;
}
.bbc-lesson-view__main ol {
    padding-left: var(--bbc-space-6);
    margin: var(--bbc-space-3) 0 var(--bbc-space-6);
}
.bbc-lesson-view__main ol li {
    margin-bottom: var(--bbc-space-2);
    line-height: 1.55;
}

/* Nested lists */
.bbc-lesson-view__main ul ul,
.bbc-lesson-view__main ul ol,
.bbc-lesson-view__main ol ul {
    margin-top: var(--bbc-space-2);
    margin-bottom: var(--bbc-space-2);
}
.bbc-lesson-view__main ul ul li::before {
    background: transparent;
    border: 2px solid var(--bbc-teal);
    width: 6px;
    height: 6px;
    top: 0.7em;
}

/* ---------- TABLES (uniform style for ALL lesson tables) ---------- */
.bbc-lesson-view__main table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: var(--bbc-space-4) 0 var(--bbc-space-8);
    border-radius: var(--bbc-radius-md);
    overflow: hidden;
    box-shadow: var(--bbc-shadow-sm);
    background: var(--bbc-surface) !important;
}
.bbc-lesson-view__main table thead th {
    background: var(--bbc-forest) !important;
    color: #ffffff !important;
    text-align: left;
    padding: var(--bbc-space-3) var(--bbc-space-4) !important;
    text-transform: uppercase;
    font-size: var(--bbc-text-sm);
    letter-spacing: 0.05em;
    font-weight: 700;
}
.bbc-lesson-view__main table tbody td {
    padding: var(--bbc-space-3) var(--bbc-space-4) !important;
    border-bottom: 1px solid var(--bbc-border-light) !important;
    color: var(--bbc-text-primary) !important;
    line-height: 1.5;
    vertical-align: top;
}
.bbc-lesson-view__main table tbody tr:nth-child(odd) td {
    background: var(--bbc-surface) !important;
}
.bbc-lesson-view__main table tbody tr:nth-child(even) td {
    background: var(--bbc-surface-subtle) !important;
}
.bbc-lesson-view__main table tbody tr:last-child td {
    border-bottom: none !important;
}
.bbc-lesson-view__main table tbody tr:hover td {
    background: rgba(63, 139, 102, 0.08) !important;
}
/* First column emphasis (typical for "key terms" / "AC" / "TIME" reference tables) */
.bbc-lesson-view__main table tbody td:first-child {
    font-weight: 600;
    color: var(--bbc-text-secondary) !important;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .bbc-lesson-view__main table tbody td:first-child {
        white-space: normal;
    }
}

/* ---------- BLOCKQUOTE (single visual style) ---------- */
.bbc-lesson-view__main blockquote {
    background: var(--bbc-surface) !important;
    color: var(--bbc-text-primary) !important;
    border: none !important;
    border-left: 6px solid var(--bbc-gold) !important;
    padding: var(--bbc-space-6) var(--bbc-space-8) !important;
    margin: var(--bbc-space-6) 0 !important;
    border-radius: 0 var(--bbc-radius-md) var(--bbc-radius-md) 0 !important;
    box-shadow: var(--bbc-shadow-sm) !important;
    position: relative;
    font-style: normal !important;
}
.bbc-lesson-view__main blockquote p {
    margin: 0 !important;
    color: var(--bbc-text-primary) !important;
}
.bbc-lesson-view__main blockquote p + p {
    margin-top: var(--bbc-space-3) !important;
}

/* ---------- PARAGRAPHS ---------- */
.bbc-lesson-view__main p {
    line-height: 1.65 !important;
    margin: 0 0 var(--bbc-space-4) !important;
    color: var(--bbc-text-primary) !important;
}
.bbc-lesson-view__main p strong {
    color: var(--bbc-forest) !important;
}

/* ---------- TABLE OF CONTENTS (injected by JS) ---------- */
.bbc-lesson-toc {
    background: var(--bbc-surface);
    border: 1px solid var(--bbc-border-light);
    border-left: 4px solid var(--bbc-forest);
    border-radius: var(--bbc-radius-md);
    padding: var(--bbc-space-4) var(--bbc-space-6);
    margin: var(--bbc-space-4) 0 var(--bbc-space-8);
    box-shadow: var(--bbc-shadow-sm);
}
.bbc-lesson-toc__title {
    font-size: var(--bbc-text-sm);
    font-weight: 700;
    color: var(--bbc-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 var(--bbc-space-2);
}
.bbc-lesson-toc__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--bbc-space-2);
}
.bbc-lesson-toc__list li::before { display: none !important; }
.bbc-lesson-toc__list li {
    padding-left: 0 !important;
    margin: 0 !important;
}
.bbc-lesson-toc__list a {
    display: inline-block;
    padding: var(--bbc-space-1) var(--bbc-space-3);
    background: var(--bbc-surface-subtle);
    color: var(--bbc-forest) !important;
    border-radius: var(--bbc-radius-pill);
    font-size: var(--bbc-text-sm);
    text-decoration: none !important;
    border: 1px solid var(--bbc-border-light);
    transition: background 0.15s ease, transform 0.15s ease;
}
.bbc-lesson-toc__list a:hover {
    background: var(--bbc-forest);
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Smooth scroll & extra margin so anchored heading is visible below the sticky topbar */
html { scroll-behavior: smooth; }
.bbc-lesson-view__main h2[id],
.bbc-lesson-view__main h1[id] {
    scroll-margin-top: 110px;
}

/* ---------- SECTION DIVIDER between concatenated lesson structures ---------- */
.bbc-lesson-section-divider {
    margin: var(--bbc-space-12) 0 var(--bbc-space-8);
    text-align: center;
    color: var(--bbc-text-muted);
    font-size: var(--bbc-text-sm);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
}
.bbc-lesson-section-divider::before,
.bbc-lesson-section-divider::after {
    content: "";
    display: inline-block;
    width: 30%;
    height: 1px;
    background: var(--bbc-border-strong);
    vertical-align: middle;
    margin: 0 var(--bbc-space-3);
}


/* ============================================================
   INTERACTIVE TASK CHECKBOXES — converts plain-text [ ] markers
   in lesson list items into clickable checkboxes with persistence.
   ============================================================ */

.bbc-lesson-view__main li.bbc-task-item {
    list-style: none;
    padding-left: 0;
    margin-bottom: var(--bbc-space-3);
    display: flex;
    align-items: flex-start;
    gap: var(--bbc-space-3);
    line-height: 1.55;
}
.bbc-lesson-view__main li.bbc-task-item::before {
    display: none !important;
    content: none !important;
}

.bbc-task-checkbox {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin: 0.15em 0 0;
    padding: 0;
    border: 2px solid var(--bbc-forest);
    border-radius: var(--bbc-radius-sm);
    background: var(--bbc-surface);
    cursor: pointer;
    position: relative;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    /* 44px touch target via outer hit-area */
    box-shadow: 0 0 0 11px transparent;
}
.bbc-task-checkbox:hover {
    background: rgba(63, 139, 102, 0.12);
    transform: scale(1.05);
}
.bbc-task-checkbox:focus-visible {
    outline: 3px solid var(--bbc-gold) !important;
    outline-offset: 2px;
}
.bbc-task-checkbox:checked {
    background: var(--bbc-success);
    border-color: var(--bbc-success);
}
.bbc-task-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 7px;
    height: 13px;
    border-right: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transform: rotate(45deg);
}

.bbc-task-label {
    flex: 1 1 auto;
    cursor: pointer;
    color: var(--bbc-text-primary);
    user-select: none;
    transition: color 0.15s ease;
}
.bbc-lesson-view__main li.bbc-task-item.is-done .bbc-task-label {
    text-decoration: line-through;
    color: var(--bbc-text-muted);
}

/* Progress badge next to a section heading */
.bbc-task-progress {
    display: inline-flex;
    align-items: center;
    gap: var(--bbc-space-3);
    margin-left: var(--bbc-space-4);
    padding: var(--bbc-space-1) var(--bbc-space-3);
    background: var(--bbc-surface);
    border: 1px solid var(--bbc-border-light);
    border-radius: var(--bbc-radius-pill);
    font-size: var(--bbc-text-sm);
    font-weight: 600;
    color: var(--bbc-text-secondary);
    text-transform: none;
    letter-spacing: 0;
    vertical-align: middle;
}
.bbc-task-progress[data-complete="true"] {
    background: var(--bbc-success-bg);
    border-color: var(--bbc-success);
    color: var(--bbc-success);
}
.bbc-task-progress__count {
    white-space: nowrap;
}
.bbc-task-reset {
    appearance: none;
    background: transparent;
    border: none;
    color: var(--bbc-forest);
    font-size: var(--bbc-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    padding: var(--bbc-space-1) var(--bbc-space-2);
    border-radius: var(--bbc-radius-sm);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.bbc-task-reset:hover {
    background: var(--bbc-surface-subtle);
}
.bbc-task-reset:focus-visible {
    outline: 2px solid var(--bbc-gold);
    outline-offset: 1px;
}

/* In print: render as filled/empty squares only (already handled by @media print hiding controls; we override here so checkboxes still print as visual squares) */
@media print {
    .bbc-task-checkbox {
        appearance: none;
        -webkit-appearance: none;
        display: inline-block;
        width: 14px;
        height: 14px;
        border: 1.5px solid #000 !important;
        background: #fff !important;
        margin-right: 6px;
    }
    .bbc-task-checkbox:checked {
        background: #000 !important;
    }
    .bbc-task-checkbox:checked::after {
        border-color: #fff !important;
    }
    .bbc-task-progress, .bbc-task-reset {
        display: none !important;
    }
}


/* ============================================================
   SEMANTIC CALLOUT BOXES — 8 visual aid types for instructors.
   Patterns inspired by: Notion callouts, GOV.UK Notification
   Banner, MDN admonitions, USWDS alerts, GitHub alert blocks,
   Sphinx/Wagtail admonitions, Norton Design System, OSHA
   safety hierarchy. WCAG AA contrast on all variants.
   ============================================================ */

.bbc-callout {
    --callout-color: var(--bbc-forest);
    --callout-bg: var(--bbc-surface-subtle);
    --callout-border: var(--bbc-border-light);
    --callout-icon-bg: var(--bbc-forest);
    --callout-icon-fg: #ffffff;
    background: var(--callout-bg);
    border: 1px solid var(--callout-border);
    border-left: 6px solid var(--callout-color);
    border-radius: var(--bbc-radius-md);
    padding: var(--bbc-space-4) var(--bbc-space-6);
    margin: var(--bbc-space-6) 0;
    box-shadow: var(--bbc-shadow-sm);
    position: relative;
}
.bbc-callout > h4:first-child,
.bbc-callout > h3:first-child,
.bbc-callout > h5:first-child {
    margin-top: 0 !important;
    margin-bottom: var(--bbc-space-3) !important;
    padding-left: 36px !important;
    border: none !important;
    color: var(--callout-color) !important;
    background: transparent !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: var(--bbc-text-sm) !important;
    position: relative;
    display: block !important;
}
.bbc-callout > h4:first-child::before,
.bbc-callout > h3:first-child::before,
.bbc-callout > h5:first-child::before {
    content: var(--callout-icon, "\2022");
    position: absolute;
    left: 0; top: -2px;
    width: 26px; height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--callout-icon-bg);
    color: var(--callout-icon-fg);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}
.bbc-callout > *:last-child { margin-bottom: 0 !important; }
.bbc-callout ul { margin-bottom: 0 !important; }
.bbc-callout p { color: var(--bbc-text-primary) !important; }

/* === 1. SAFETY (red) — Safety Reminders, Hazards, Warnings === */
.bbc-callout--safety {
    --callout-color: var(--bbc-danger);
    --callout-bg: #fff5f5;
    --callout-border: #f5c2c7;
    --callout-icon-bg: var(--bbc-danger);
    --callout-icon: "!";
}

/* === 2. TIP (teal) — Teaching Tips, Pro Tip, Best Practice === */
.bbc-callout--tip {
    --callout-color: var(--bbc-teal);
    --callout-bg: #f0f9f4;
    --callout-border: #c8e6d2;
    --callout-icon-bg: var(--bbc-teal);
    --callout-icon: "\1F4A1";
}

/* === 3. ACTION (forest) — What To Do, Method === */
.bbc-callout--action {
    --callout-color: var(--bbc-forest);
    --callout-bg: #f1f7f3;
    --callout-border: #c5d6cb;
    --callout-icon-bg: var(--bbc-forest);
    --callout-icon: "\2192";
}

/* === 4. SAY (gold) — What To Say, Example Script === */
.bbc-callout--say {
    --callout-color: #b27200;
    --callout-bg: #fff8e6;
    --callout-border: #ffd980;
    --callout-icon-bg: var(--bbc-gold);
    --callout-icon-fg: #4a3000;
    --callout-icon: "\201C";
}

/* === 5. OBSERVE (sky blue) — What To Look For, Monitor === */
.bbc-callout--observe {
    --callout-color: #1f6f9c;
    --callout-bg: #eef7fc;
    --callout-border: #b9dcef;
    --callout-icon-bg: #1f6f9c;
    --callout-icon: "\1F441";
    --callout-icon-fg: #ffffff;
}

/* === 6. ADAPT (purple) — Differentiation, SEND, FOR X === */
.bbc-callout--adapt {
    --callout-color: #6b3ba0;
    --callout-bg: #f6f0fb;
    --callout-border: #d8c4ec;
    --callout-icon-bg: #6b3ba0;
    --callout-icon: "\271A";
}

/* === 7. NOTE (steel gray) — Instructor Notes, Side Note === */
.bbc-callout--note {
    --callout-color: #44546a;
    --callout-bg: #f4f6f8;
    --callout-border: var(--bbc-border-strong);
    --callout-icon-bg: var(--bbc-steel);
    --callout-icon-fg: #1a2030;
    --callout-icon: "\2139";
}

/* === 8. SCENARIO (numbered, navy) — Scenario A/B/C === */
.bbc-callout--scenario {
    --callout-color: #2a4a6b;
    --callout-bg: #eef2f7;
    --callout-border: #c5d4e3;
    --callout-icon-bg: #2a4a6b;
    --callout-icon: "?";
}

/* PRIORITY callouts (already partially handled, formalised here) */
.bbc-callout--priority-must {
    --callout-color: var(--bbc-danger);
    --callout-bg: #fff5f5;
    --callout-border: #f5c2c7;
    --callout-icon-bg: var(--bbc-danger);
    --callout-icon: "1";
}
.bbc-callout--priority-should {
    --callout-color: #b27200;
    --callout-bg: #fff8e6;
    --callout-border: #ffd980;
    --callout-icon-bg: var(--bbc-gold);
    --callout-icon-fg: #4a3000;
    --callout-icon: "2";
}
.bbc-callout--priority-nice {
    --callout-color: var(--bbc-teal);
    --callout-bg: #f0f9f4;
    --callout-border: #c8e6d2;
    --callout-icon-bg: var(--bbc-teal);
    --callout-icon: "3";
}

/* Reduced motion — keep transitions instant */
@media (prefers-reduced-motion: reduce) {
    .bbc-callout { transition: none !important; }
}

/* Print: keep callouts but use simple borders only (no fills) */
@media print {
    .bbc-callout {
        background: #fff !important;
        box-shadow: none !important;
        border: 1.5px solid #000 !important;
        border-left: 4px solid #000 !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }
    .bbc-callout > h4:first-child::before,
    .bbc-callout > h3:first-child::before {
        background: #000 !important;
        color: #fff !important;
    }
}

/* When callout contains a checklist, suppress its outer margin so checkboxes align */
.bbc-callout .bbc-task-item { padding-left: 0; }
.bbc-callout > ul { margin-top: var(--bbc-space-2) !important; }

/* Mobile — slight padding reduction */
@media (max-width: 640px) {
    .bbc-callout {
        padding: var(--bbc-space-3) var(--bbc-space-4);
        margin: var(--bbc-space-4) 0;
    }
}


/* === ADDITIONAL CALLOUT VARIANTS (CALLOUT-NEEDS) === */

/* NEEDS (warm bamboo-brown) — What You'll Need / Preparation / Materials needed */
.bbc-callout--needs {
    --callout-color: #8b4513;
    --callout-bg: #fbf3e8;
    --callout-border: #e0c9a3;
    --callout-icon-bg: #8b4513;
    --callout-icon-fg: #ffffff;
    --callout-icon: "\1F4E6"; /* 📦 */
}

/* PRINCIPLE (deep teal) — Approach / Key Principles / Engagement Strategy / Behaviour Management */
.bbc-callout--principle {
    --callout-color: #0e6b5e;
    --callout-bg: #e8f5f2;
    --callout-border: #a3d9cd;
    --callout-icon-bg: #0e6b5e;
    --callout-icon-fg: #ffffff;
    --callout-icon: "\26EF"; /* ⛯ */
}

/* QUESTIONS (gold variant) — Oral QA / Questions to Ask */
.bbc-callout--question {
    --callout-color: #b27200;
    --callout-bg: #fff8e6;
    --callout-border: #ffd980;
    --callout-icon-bg: var(--bbc-gold);
    --callout-icon-fg: #4a3000;
    --callout-icon: "?";
}

/* INFO (steel) — fallback for any unclassified pseudo-heading sub-section */
.bbc-callout--info {
    --callout-color: #44546a;
    --callout-bg: #f4f6f8;
    --callout-border: #c5cdd6;
    --callout-icon-bg: #44546a;
    --callout-icon-fg: #ffffff;
    --callout-icon: "\2022";
}

/* ASSESS (deep forest) — Evidence / Assessment Checkpoint / OCN */
.bbc-callout--assess {
    --callout-color: var(--bbc-forest);
    --callout-bg: #f1f7f3;
    --callout-border: #c5d6cb;
    --callout-icon-bg: var(--bbc-forest);
    --callout-icon-fg: #ffffff;
    --callout-icon: "\2713"; /* ✓ */
}


/* ============================================================
   MATERIAL SYMBOLS — replace all emoji / unicode-escape icons
   with Google Material Symbols (Outlined). Loaded via @import
   at top of stylesheet. Each callout sets --callout-icon-name
   to a ligature name; the ::before consumes that name with
   the Material Symbols font-family.
   ============================================================ */

.bbc-callout > h4:first-child::before,
.bbc-callout > h3:first-child::before,
.bbc-callout > h5:first-child::before {
    font-family: 'Material Symbols Outlined' !important;
    font-weight: 400 !important;
    font-feature-settings: 'liga' !important;
    font-style: normal !important;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1 !important;
    font-size: 16px !important;
    content: var(--callout-icon-name, 'circle') !important;
}

/* Map each callout type to its Material Symbol ligature */
.bbc-callout--safety        { --callout-icon-name: 'priority_high'; }
.bbc-callout--tip           { --callout-icon-name: 'tips_and_updates'; }
.bbc-callout--action        { --callout-icon-name: 'arrow_forward'; }
.bbc-callout--say           { --callout-icon-name: 'format_quote'; }
.bbc-callout--observe       { --callout-icon-name: 'visibility'; }
.bbc-callout--needs         { --callout-icon-name: 'inventory_2'; }
.bbc-callout--adapt         { --callout-icon-name: 'accessibility_new'; }
.bbc-callout--note          { --callout-icon-name: 'info'; }
.bbc-callout--scenario      { --callout-icon-name: 'quiz'; }
.bbc-callout--question      { --callout-icon-name: 'help'; }
.bbc-callout--assess        { --callout-icon-name: 'task_alt'; }
.bbc-callout--priority-must   { --callout-icon-name: 'looks_one'; }
.bbc-callout--priority-should { --callout-icon-name: 'looks_two'; }
.bbc-callout--priority-nice   { --callout-icon-name: 'looks_3'; }
.bbc-callout--info          { --callout-icon-name: 'chevron_right'; }
.bbc-callout--principle     { --callout-icon-name: 'rule'; }

/* Generic Material Symbol class for use anywhere */
.bbc-mi {
    font-family: 'Material Symbols Outlined';
    font-weight: 400;
    font-feature-settings: 'liga';
    font-style: normal;
    font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

/* Hide WP-emoji <img> conversions globally */
img.emoji,
img.wp-smiley {
    display: none !important;
}

/* Lesson topbar duration: replace inline emoji image with Material Symbol */
.bbc-lesson-view__topbar-duration {
    display: inline-flex;
    align-items: center;
    gap: var(--bbc-space-2);
}
.bbc-lesson-view__topbar-duration::before {
    content: 'schedule';
    font-family: 'Material Symbols Outlined';
    font-feature-settings: 'liga';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
    color: currentColor;
    margin-right: 4px;
}


/* ============================================================
   BBC Instructor — Lesson Typography System
   Universal typography for all lessons using template-lesson-view.
   Added: 2026-05-18
   ============================================================ */
.page-template-template-lesson-view #main,
.page-template-template-lesson-view #main p,
.page-template-template-lesson-view #main li,
.page-template-template-lesson-view #main div:not([class]),
.page-template-template-lesson-view .entry-content,
.page-template-template-lesson-view .entry-content p,
.page-template-template-lesson-view .entry-content li {
    font-size: 17px !important;
    line-height: 1.6 !important;
}

/* Neutralise inline font-size overrides pasted from Word/Google Docs */
.page-template-template-lesson-view #main [style*="font-size"],
.page-template-template-lesson-view .entry-content [style*="font-size"] {
    font-size: inherit !important;
}

/* Headings — clear, accessible hierarchy */
.page-template-template-lesson-view #main h1,
.page-template-template-lesson-view .entry-content h1 {
    font-size: 32px !important; line-height: 1.2 !important; font-weight: 700 !important; margin: 1.2em 0 0.5em !important;
}
.page-template-template-lesson-view #main h2,
.page-template-template-lesson-view .entry-content h2 {
    font-size: 26px !important; line-height: 1.25 !important; font-weight: 700 !important; margin: 1.2em 0 0.5em !important;
}
.page-template-template-lesson-view #main h3,
.page-template-template-lesson-view .entry-content h3 {
    font-size: 21px !important; line-height: 1.3 !important; font-weight: 600 !important; margin: 1.1em 0 0.4em !important;
}
.page-template-template-lesson-view #main h4,
.page-template-template-lesson-view .entry-content h4 {
    font-size: 18px !important; line-height: 1.4 !important; font-weight: 600 !important; margin: 1em 0 0.4em !important;
}
.page-template-template-lesson-view #main h5,
.page-template-template-lesson-view .entry-content h5 {
    font-size: 17px !important; line-height: 1.4 !important; font-weight: 600 !important;
}
.page-template-template-lesson-view #main h6,
.page-template-template-lesson-view .entry-content h6 {
    font-size: 15px !important; line-height: 1.4 !important; font-weight: 600 !important; text-transform: uppercase; letter-spacing: 0.05em;
}

/* Lists inherit body size */
.page-template-template-lesson-view #main ul,
.page-template-template-lesson-view #main ol,
.page-template-template-lesson-view .entry-content ul,
.page-template-template-lesson-view .entry-content ol {
    font-size: 17px !important; line-height: 1.6 !important;
}
.page-template-template-lesson-view #main li,
.page-template-template-lesson-view .entry-content li { font-size: inherit !important; margin-bottom: 0.35em; }

/* Tables — readable */
.page-template-template-lesson-view #main table,
.page-template-template-lesson-view .entry-content table { font-size: 16px !important; line-height: 1.5 !important; }
.page-template-template-lesson-view #main th,
.page-template-template-lesson-view .entry-content th { font-size: 16px !important; font-weight: 600 !important; }
.page-template-template-lesson-view #main td,
.page-template-template-lesson-view .entry-content td { font-size: 16px !important; }

/* Inline emphasis inherits parent size */
.page-template-template-lesson-view #main strong,
.page-template-template-lesson-view #main em,
.page-template-template-lesson-view #main a,
.page-template-template-lesson-view #main span,
.page-template-template-lesson-view .entry-content strong,
.page-template-template-lesson-view .entry-content em,
.page-template-template-lesson-view .entry-content a,
.page-template-template-lesson-view .entry-content span { font-size: inherit !important; }

/* Blockquotes */
.page-template-template-lesson-view #main blockquote,
.page-template-template-lesson-view .entry-content blockquote { font-size: 17px !important; line-height: 1.6 !important; font-style: italic; }

/* Print stylesheet */
@media print {
    .page-template-template-lesson-view #main,
    .page-template-template-lesson-view .entry-content { font-size: 12pt !important; line-height: 1.5 !important; }
    .page-template-template-lesson-view #main h1 { font-size: 20pt !important; }
    .page-template-template-lesson-view #main h2 { font-size: 16pt !important; }
    .page-template-template-lesson-view #main h3 { font-size: 14pt !important; }
    .page-template-template-lesson-view #main h4 { font-size: 12pt !important; }
}
/* === End BBC Instructor — Lesson Typography System === */


/* ============================================================
   BBC Instructor — App-Wide Design System v2
   Extends typography to course-overview, cohort-view, dashboard.
   Normalises spacing/rhythm, text colour, and font weights
   across all four lesson/course/cohort/dashboard templates.
   Added: 2026-05-18
   ============================================================ */

/* --- Shared scoping selector group --- */
.page-template-template-lesson-view,
.page-template-template-course-overview,
.page-template-template-cohort-view,
.page-template-template-dashboard {
    --bbc-text:        #0e1a17;
    --bbc-text-muted:  #4a5b56;
    --bbc-accent:      #3f8b66;
    --bbc-accent-dark: #073e27;
    --bbc-bold-weight: 600;
}

/* ---------- TYPOGRAPHY for the other 3 templates ----------
   (Lesson view already has rules from v1 — keep those intact)
*/
.page-template-template-course-overview #inner-wrap,
.page-template-template-cohort-view #inner-wrap,
.page-template-template-dashboard #inner-wrap,
.page-template-template-course-overview .entry-content,
.page-template-template-cohort-view .entry-content,
.page-template-template-dashboard .entry-content {
    font-size: 17px !important;
    line-height: 1.6 !important;
}
.page-template-template-course-overview #inner-wrap p,
.page-template-template-cohort-view #inner-wrap p,
.page-template-template-dashboard #inner-wrap p,
.page-template-template-course-overview #inner-wrap li,
.page-template-template-cohort-view #inner-wrap li,
.page-template-template-dashboard #inner-wrap li { font-size: 17px !important; line-height: 1.6 !important; }

.page-template-template-course-overview #inner-wrap h1,
.page-template-template-cohort-view #inner-wrap h1,
.page-template-template-dashboard #inner-wrap h1 { font-size: 32px !important; line-height: 1.2 !important; font-weight: 700 !important; }
.page-template-template-course-overview #inner-wrap h2,
.page-template-template-cohort-view #inner-wrap h2,
.page-template-template-dashboard #inner-wrap h2 { font-size: 26px !important; line-height: 1.25 !important; font-weight: 700 !important; }
.page-template-template-course-overview #inner-wrap h3,
.page-template-template-cohort-view #inner-wrap h3,
.page-template-template-dashboard #inner-wrap h3 { font-size: 21px !important; line-height: 1.3 !important; font-weight: 600 !important; }
.page-template-template-course-overview #inner-wrap h4,
.page-template-template-cohort-view #inner-wrap h4,
.page-template-template-dashboard #inner-wrap h4 { font-size: 18px !important; line-height: 1.4 !important; font-weight: 600 !important; }
.page-template-template-course-overview #inner-wrap h5,
.page-template-template-cohort-view #inner-wrap h5,
.page-template-template-dashboard #inner-wrap h5 { font-size: 17px !important; line-height: 1.4 !important; font-weight: 600 !important; }
.page-template-template-course-overview #inner-wrap table,
.page-template-template-cohort-view #inner-wrap table,
.page-template-template-dashboard #inner-wrap table { font-size: 16px !important; line-height: 1.5 !important; }
.page-template-template-course-overview #inner-wrap td,
.page-template-template-cohort-view #inner-wrap td,
.page-template-template-dashboard #inner-wrap td,
.page-template-template-course-overview #inner-wrap th,
.page-template-template-cohort-view #inner-wrap th,
.page-template-template-dashboard #inner-wrap th { font-size: 16px !important; }

/* Strip inline font-size overrides on the other templates too */
.page-template-template-course-overview #inner-wrap [style*="font-size"],
.page-template-template-cohort-view #inner-wrap [style*="font-size"],
.page-template-template-dashboard #inner-wrap [style*="font-size"] { font-size: inherit !important; }

/* ---------- SPACING / RHYTHM (all 4 templates) ---------- */
.page-template-template-lesson-view #main p,
.page-template-template-course-overview #inner-wrap p,
.page-template-template-cohort-view #inner-wrap p,
.page-template-template-dashboard #inner-wrap p {
    margin: 0 0 1em !important;
}
.page-template-template-lesson-view #main ul,
.page-template-template-lesson-view #main ol,
.page-template-template-course-overview #inner-wrap ul,
.page-template-template-course-overview #inner-wrap ol,
.page-template-template-cohort-view #inner-wrap ul,
.page-template-template-cohort-view #inner-wrap ol,
.page-template-template-dashboard #inner-wrap ul,
.page-template-template-dashboard #inner-wrap ol {
    margin: 0 0 1em !important;
    padding-left: 1.5em !important;
}
.page-template-template-lesson-view #main li,
.page-template-template-course-overview #inner-wrap li,
.page-template-template-cohort-view #inner-wrap li,
.page-template-template-dashboard #inner-wrap li {
    margin: 0 0 0.4em !important;
}
.page-template-template-lesson-view #main h1,
.page-template-template-course-overview #inner-wrap h1,
.page-template-template-cohort-view #inner-wrap h1,
.page-template-template-dashboard #inner-wrap h1 { margin: 1.2em 0 0.5em !important; }
.page-template-template-lesson-view #main h2,
.page-template-template-course-overview #inner-wrap h2,
.page-template-template-cohort-view #inner-wrap h2,
.page-template-template-dashboard #inner-wrap h2 { margin: 1.2em 0 0.5em !important; }
.page-template-template-lesson-view #main h3,
.page-template-template-course-overview #inner-wrap h3,
.page-template-template-cohort-view #inner-wrap h3,
.page-template-template-dashboard #inner-wrap h3 { margin: 1.1em 0 0.4em !important; }
.page-template-template-lesson-view #main h4,
.page-template-template-course-overview #inner-wrap h4,
.page-template-template-cohort-view #inner-wrap h4,
.page-template-template-dashboard #inner-wrap h4 { margin: 1em 0 0.4em !important; }
.page-template-template-lesson-view #main td,
.page-template-template-lesson-view #main th,
.page-template-template-course-overview #inner-wrap td,
.page-template-template-course-overview #inner-wrap th,
.page-template-template-cohort-view #inner-wrap td,
.page-template-template-cohort-view #inner-wrap th,
.page-template-template-dashboard #inner-wrap td,
.page-template-template-dashboard #inner-wrap th {
    padding: 0.6em 0.8em !important;
    vertical-align: top !important;
}
.page-template-template-lesson-view #main blockquote,
.page-template-template-course-overview #inner-wrap blockquote,
.page-template-template-cohort-view #inner-wrap blockquote,
.page-template-template-dashboard #inner-wrap blockquote {
    margin: 1em 0 !important;
    padding: 0.5em 1em !important;
}

/* ---------- COLOUR & WEIGHT NORMALISATION ---------- */
.page-template-template-lesson-view #main,
.page-template-template-lesson-view #main p,
.page-template-template-lesson-view #main li,
.page-template-template-lesson-view #main td,
.page-template-template-lesson-view #main blockquote,
.page-template-template-course-overview #inner-wrap p,
.page-template-template-course-overview #inner-wrap li,
.page-template-template-course-overview #inner-wrap td,
.page-template-template-cohort-view #inner-wrap p,
.page-template-template-cohort-view #inner-wrap li,
.page-template-template-cohort-view #inner-wrap td,
.page-template-template-dashboard #inner-wrap p,
.page-template-template-dashboard #inner-wrap li,
.page-template-template-dashboard #inner-wrap td {
    color: #0e1a17 !important;
}

/* Headings inherit the body colour by default for consistency */
.page-template-template-lesson-view #main h1,
.page-template-template-lesson-view #main h2,
.page-template-template-lesson-view #main h3,
.page-template-template-lesson-view #main h4,
.page-template-template-lesson-view #main h5,
.page-template-template-lesson-view #main h6,
.page-template-template-course-overview #inner-wrap h1,
.page-template-template-course-overview #inner-wrap h2,
.page-template-template-course-overview #inner-wrap h3,
.page-template-template-course-overview #inner-wrap h4,
.page-template-template-course-overview #inner-wrap h5,
.page-template-template-course-overview #inner-wrap h6,
.page-template-template-cohort-view #inner-wrap h1,
.page-template-template-cohort-view #inner-wrap h2,
.page-template-template-cohort-view #inner-wrap h3,
.page-template-template-cohort-view #inner-wrap h4,
.page-template-template-cohort-view #inner-wrap h5,
.page-template-template-cohort-view #inner-wrap h6,
.page-template-template-dashboard #inner-wrap h1,
.page-template-template-dashboard #inner-wrap h2,
.page-template-template-dashboard #inner-wrap h3,
.page-template-template-dashboard #inner-wrap h4,
.page-template-template-dashboard #inner-wrap h5,
.page-template-template-dashboard #inner-wrap h6 {
    color: #073e27 !important;
}

/* Bold normalisation: <strong> and <b> always 600 (matches headings) */
.page-template-template-lesson-view #main strong,
.page-template-template-lesson-view #main b,
.page-template-template-course-overview #inner-wrap strong,
.page-template-template-course-overview #inner-wrap b,
.page-template-template-cohort-view #inner-wrap strong,
.page-template-template-cohort-view #inner-wrap b,
.page-template-template-dashboard #inner-wrap strong,
.page-template-template-dashboard #inner-wrap b {
    font-weight: 600 !important;
}

/* Headings: H1/H2 700, H3-H6 600 (uniform across all templates) */
.page-template-template-lesson-view #main h1,
.page-template-template-course-overview #inner-wrap h1,
.page-template-template-cohort-view #inner-wrap h1,
.page-template-template-dashboard #inner-wrap h1 { font-weight: 700 !important; }
.page-template-template-lesson-view #main h2,
.page-template-template-course-overview #inner-wrap h2,
.page-template-template-cohort-view #inner-wrap h2,
.page-template-template-dashboard #inner-wrap h2 { font-weight: 700 !important; }

/* Strip inline colour overrides that don't match the system (allow brand greens through) */
.page-template-template-lesson-view #main [style*="color: #999"],
.page-template-template-lesson-view #main [style*="color: #888"],
.page-template-template-lesson-view #main [style*="color: #666"],
.page-template-template-lesson-view #main [style*="color: gray"],
.page-template-template-lesson-view #main [style*="color: grey"] {
    color: inherit !important;
}

/* === End BBC Instructor — App-Wide Design System v2 === */


/* ============================================================
   BBC Instructor — v4-Aligned Design System v3
   Aligns lessons, dashboard, course-overview, and cohort-view
   to the BBC Instructor App v4 design spec. Adds tokens, type
   scale, app chrome (topbar/sidebar/lesson-nav), and components.
   Added: 2026-05-18 — supersedes typography from v1/v2.
   ============================================================ */

/* ----------- DESIGN TOKENS ----------- */
:root {
    /* Brand block colours */
    --bbc-forest:      #003C32;
    --bbc-teal:        #3F8B66;
    --bbc-steel:       #8DA4C1;
    --bbc-gold:        #FFA900;
    --bbc-lime:        #D4FD62;
    /* Neutrals */
    --bbc-bone:        #E6DCC8;
    --bbc-paper:       #F1E9D8;
    --bbc-ink:         #0E1A17;
    --bbc-charcoal:    #2A332F;
    --bbc-mist:        #CFC5B0;
    --bbc-white:       #FFFFFF;
    /* Semantic */
    --bbc-fg:          var(--bbc-ink);
    --bbc-fg-muted:    var(--bbc-charcoal);
    --bbc-fg-subtle:   #5A6863;
    --bbc-fg-on-dark:  var(--bbc-bone);
    --bbc-bg:          var(--bbc-bone);
    --bbc-bg-elevated: var(--bbc-paper);
    --bbc-bg-dark:     var(--bbc-forest);
    --bbc-border:      var(--bbc-mist);
    --bbc-border-strong: #B8AE9C;
    --bbc-accent:      var(--bbc-lime);
    --bbc-emphasis:    var(--bbc-gold);
    --bbc-link:        var(--bbc-forest);
    --bbc-link-hover:  var(--bbc-teal);
    /* Type */
    --bbc-font-sans: "Atkinson Hyperlegible", "Atkinson Hyperlegible Next", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --bbc-type-caption: 12px;
    --bbc-type-small:   14px;
    --bbc-type-body:    16px;
    --bbc-type-h4:      18px;
    --bbc-type-h3:      24px;
    --bbc-type-h2:      32px;
    --bbc-type-h1:      48px;
    --bbc-lh-tight:    1.04;
    --bbc-lh-snug:     1.2;
    --bbc-lh-body:     1.55;
    --bbc-lh-loose:    1.7;
    /* Space (4px scale) */
    --bbc-space-1:  4px;
    --bbc-space-2:  8px;
    --bbc-space-3:  12px;
    --bbc-space-4:  16px;
    --bbc-space-6:  24px;
    --bbc-space-8:  32px;
    --bbc-space-12: 48px;
    /* Radii */
    --bbc-radius-sm:  4px;
    --bbc-radius-md:  8px;
    --bbc-radius-lg:  14px;
    --bbc-radius-xl:  24px;
    --bbc-radius-pill: 999px;
    /* Borders */
    --bbc-border-w:   1.5px;
    /* Shadows (ink-tinted) */
    --bbc-shadow-1: 0 1px 2px rgba(14,26,23,.08);
    --bbc-shadow-2: 0 4px 12px rgba(14,26,23,.10);
    --bbc-shadow-3: 0 12px 28px rgba(14,26,23,.14);
    /* Layout */
    --bbc-content-max: 1000px;
    --bbc-sidebar-w:   240px;
}

/* ----------- BASE TYPOGRAPHY (v4 spec) ----------- */
.page-template-template-lesson-view,
.page-template-template-course-overview,
.page-template-template-cohort-view,
.page-template-template-dashboard {
    background: var(--bbc-bg) !important;
}
.page-template-template-lesson-view body,
.page-template-template-course-overview body,
.page-template-template-cohort-view body,
.page-template-template-dashboard body {
    font-family: var(--bbc-font-sans) !important;
    font-size: 17px !important;
    line-height: var(--bbc-lh-body) !important;
    color: var(--bbc-fg) !important;
    background: var(--bbc-bg) !important;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* Heading scale to v4 spec — override v1/v2 */
.page-template-template-lesson-view #main h1,
.page-template-template-course-overview #inner-wrap h1,
.page-template-template-cohort-view #inner-wrap h1,
.page-template-template-dashboard #inner-wrap h1 {
    font-size: var(--bbc-type-h1) !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
    letter-spacing: -0.02em !important;
    text-wrap: balance;
    color: var(--bbc-forest) !important;
    margin: 0 0 var(--bbc-space-4) !important;
}
.page-template-template-lesson-view #main h2,
.page-template-template-course-overview #inner-wrap h2,
.page-template-template-cohort-view #inner-wrap h2,
.page-template-template-dashboard #inner-wrap h2 {
    font-size: var(--bbc-type-h2) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.01em !important;
    text-wrap: balance;
    color: var(--bbc-forest) !important;
    margin: var(--bbc-space-8) 0 var(--bbc-space-3) !important;
}
.page-template-template-lesson-view #main h3,
.page-template-template-course-overview #inner-wrap h3,
.page-template-template-cohort-view #inner-wrap h3,
.page-template-template-dashboard #inner-wrap h3 {
    font-size: var(--bbc-type-h3) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    color: var(--bbc-forest) !important;
    margin: var(--bbc-space-6) 0 var(--bbc-space-2) !important;
}
.page-template-template-lesson-view #main h4,
.page-template-template-course-overview #inner-wrap h4,
.page-template-template-cohort-view #inner-wrap h4,
.page-template-template-dashboard #inner-wrap h4 {
    font-size: var(--bbc-type-h4) !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    color: var(--bbc-forest) !important;
    margin: var(--bbc-space-6) 0 var(--bbc-space-2) !important;
}
.page-template-template-lesson-view #main h5,
.page-template-template-course-overview #inner-wrap h5,
.page-template-template-cohort-view #inner-wrap h5,
.page-template-template-dashboard #inner-wrap h5 {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    color: var(--bbc-forest) !important;
    margin: var(--bbc-space-4) 0 var(--bbc-space-1) !important;
}
.page-template-template-lesson-view #main h6,
.page-template-template-course-overview #inner-wrap h6,
.page-template-template-cohort-view #inner-wrap h6,
.page-template-template-dashboard #inner-wrap h6 {
    font-size: var(--bbc-type-caption) !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
    color: var(--bbc-fg-muted) !important;
}

/* Paragraphs to v4 spec — 16px body, text-wrap pretty */
.page-template-template-lesson-view #main p,
.page-template-template-course-overview #inner-wrap p,
.page-template-template-cohort-view #inner-wrap p,
.page-template-template-dashboard #inner-wrap p {
    font-size: var(--bbc-type-body) !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    text-wrap: pretty;
    color: var(--bbc-fg) !important;
    margin: 0 0 var(--bbc-space-3) !important;
}

/* Lists to v4 body */
.page-template-template-lesson-view #main ul,
.page-template-template-lesson-view #main ol,
.page-template-template-course-overview #inner-wrap ul,
.page-template-template-course-overview #inner-wrap ol,
.page-template-template-cohort-view #inner-wrap ul,
.page-template-template-cohort-view #inner-wrap ol,
.page-template-template-dashboard #inner-wrap ul,
.page-template-template-dashboard #inner-wrap ol {
    font-size: var(--bbc-type-body) !important;
    line-height: 1.5 !important;
}
.page-template-template-lesson-view #main li,
.page-template-template-course-overview #inner-wrap li,
.page-template-template-cohort-view #inner-wrap li,
.page-template-template-dashboard #inner-wrap li {
    font-size: var(--bbc-type-body) !important;
    line-height: 1.5 !important;
    margin: 0 0 var(--bbc-space-1) !important;
}

/* Tables to v4 small */
.page-template-template-lesson-view #main table,
.page-template-template-course-overview #inner-wrap table,
.page-template-template-cohort-view #inner-wrap table,
.page-template-template-dashboard #inner-wrap table {
    font-size: var(--bbc-type-small) !important;
    line-height: 1.5 !important;
}
.page-template-template-lesson-view #main td,
.page-template-template-lesson-view #main th,
.page-template-template-course-overview #inner-wrap td,
.page-template-template-course-overview #inner-wrap th,
.page-template-template-cohort-view #inner-wrap td,
.page-template-template-cohort-view #inner-wrap th,
.page-template-template-dashboard #inner-wrap td,
.page-template-template-dashboard #inner-wrap th {
    font-size: var(--bbc-type-small) !important;
    padding: var(--bbc-space-2) var(--bbc-space-3) !important;
    border-color: var(--bbc-border) !important;
}
.page-template-template-lesson-view #main th,
.page-template-template-course-overview #inner-wrap th,
.page-template-template-cohort-view #inner-wrap th,
.page-template-template-dashboard #inner-wrap th {
    background: var(--bbc-paper) !important;
    color: var(--bbc-forest) !important;
    font-weight: 700 !important;
    text-align: left !important;
}

/* Strong / inline emphasis */
.page-template-template-lesson-view #main strong,
.page-template-template-lesson-view #main b,
.page-template-template-course-overview #inner-wrap strong,
.page-template-template-cohort-view #inner-wrap strong,
.page-template-template-dashboard #inner-wrap strong {
    font-weight: 700 !important;
    color: inherit !important;
}

/* Links — forest, with teal hover */
.page-template-template-lesson-view #main a,
.page-template-template-course-overview #inner-wrap a,
.page-template-template-cohort-view #inner-wrap a,
.page-template-template-dashboard #inner-wrap a {
    color: var(--bbc-link);
}
.page-template-template-lesson-view #main a:hover,
.page-template-template-course-overview #inner-wrap a:hover,
.page-template-template-cohort-view #inner-wrap a:hover,
.page-template-template-dashboard #inner-wrap a:hover {
    color: var(--bbc-link-hover);
}

/* ----------- APP CHROME — TOPBAR ----------- */
.page-template-template-lesson-view .topbar {
    background: var(--bbc-forest) !important;
    color: var(--bbc-fg-on-dark) !important;
    padding: var(--bbc-space-2) var(--bbc-space-4) !important;
    border-bottom: 3px solid var(--bbc-lime) !important;
}
.page-template-template-lesson-view .topbar-inner {
    max-width: var(--bbc-content-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--bbc-space-3);
}
.page-template-template-lesson-view .topbar-info h2,
.page-template-template-lesson-view .topbar h2 {
    color: var(--bbc-fg-on-dark) !important;
    font-size: 22px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    font-weight: 700 !important;
    letter-spacing: -0.01em !important;
}
.page-template-template-lesson-view .topbar-meta {
    display: flex;
    gap: var(--bbc-space-3);
    margin-top: 2px;
}
.page-template-template-lesson-view .topbar-meta span {
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em;
    color: var(--bbc-bone) !important;
    opacity: 0.75;
}
.page-template-template-lesson-view .topbar-actions {
    display: flex;
    gap: var(--bbc-space-2);
}

/* ----------- BUTTONS ----------- */
.page-template-template-lesson-view .btn {
    display: inline-flex;
    align-items: center;
    padding: var(--bbc-space-2) var(--bbc-space-4) !important;
    border-radius: var(--bbc-radius-md) !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    border: var(--bbc-border-w) solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}
.page-template-template-lesson-view .btn-pri {
    background: var(--bbc-lime) !important;
    border-color: var(--bbc-lime) !important;
    color: var(--bbc-forest) !important;
}
.page-template-template-lesson-view .btn-pri:hover {
    background: #c4ed52 !important;
    border-color: #c4ed52 !important;
}
.page-template-template-lesson-view .btn-sec {
    background: transparent !important;
    border-color: rgba(244,239,230,0.5) !important;
    color: var(--bbc-bone) !important;
}
.page-template-template-lesson-view .btn-sec:hover {
    background: rgba(244,239,230,0.1) !important;
}
.page-template-template-lesson-view .btn-ghost {
    background: transparent !important;
    border-color: var(--bbc-border) !important;
    color: var(--bbc-ink) !important;
}
.page-template-template-lesson-view .btn-ghost:hover {
    background: var(--bbc-paper) !important;
}

/* ----------- LESSON NAVIGATION (Previous / Position / Next) ----------- */
.page-template-template-lesson-view .lesson-nav {
    background: var(--bbc-white) !important;
    border-bottom: var(--bbc-border-w) solid var(--bbc-border) !important;
    padding: var(--bbc-space-3) var(--bbc-space-4) !important;
}
.page-template-template-lesson-view .lnav-inner {
    max-width: var(--bbc-content-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.page-template-template-lesson-view .lnav-pos {
    font-size: 14px !important;
    color: var(--bbc-fg-muted) !important;
    font-weight: 500;
}

/* ----------- SIDEBAR ----------- */
.page-template-template-lesson-view .app {
    display: flex;
}
.page-template-template-lesson-view .sidebar {
    width: var(--bbc-sidebar-w);
    background: var(--bbc-forest) !important;
    color: var(--bbc-fg-on-dark) !important;
    min-height: 100vh;
}
.page-template-template-lesson-view .sb-head {
    padding: var(--bbc-space-3) var(--bbc-space-3) !important;
    border-bottom: 1px solid rgba(244,239,230,0.12) !important;
}
.page-template-template-lesson-view .sb-logo {
    display: flex;
    align-items: center;
    gap: var(--bbc-space-2);
}
.page-template-template-lesson-view .sb-logo svg {
    width: 36px; height: 36px;
}
.page-template-template-lesson-view .sb-logo-text h1 {
    font-size: 16px !important;
    color: var(--bbc-bone) !important;
    margin: 0 !important;
    letter-spacing: 0 !important;
    text-wrap: normal;
}
.page-template-template-lesson-view .sb-logo-text p {
    font-size: 11px !important;
    color: var(--bbc-bone) !important;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 !important;
}
.page-template-template-lesson-view .sb-nav {
    padding: var(--bbc-space-3) 0;
}
.page-template-template-lesson-view .sb-group {
    margin-bottom: var(--bbc-space-3);
}
.page-template-template-lesson-view .sb-group-label {
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bbc-bone) !important;
    opacity: 0.55;
    padding: 0 var(--bbc-space-3);
    margin-bottom: var(--bbc-space-1);
    font-weight: 600;
}
.page-template-template-lesson-view .sb-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.page-template-template-lesson-view .sb-list li {
    margin: 0 !important;
}
.page-template-template-lesson-view .sb-list a,
.page-template-template-lesson-view .sb-list li a {
    display: flex;
    align-items: center;
    gap: var(--bbc-space-2);
    padding: var(--bbc-space-2) var(--bbc-space-3) !important;
    color: var(--bbc-bone) !important;
    text-decoration: none !important;
    font-size: 14px !important;
    border-left: 3px solid transparent;
    transition: background 0.12s ease, border-color 0.12s ease;
}
.page-template-template-lesson-view .sb-list a:hover,
.page-template-template-lesson-view .sb-list li a:hover {
    background: rgba(244,239,230,0.06) !important;
}
.page-template-template-lesson-view .sb-list .active,
.page-template-template-lesson-view .sb-list li.active a,
.page-template-template-lesson-view .sb-list a.active {
    background: rgba(212,253,98,0.08) !important;
    border-left-color: var(--bbc-lime) !important;
    color: var(--bbc-lime) !important;
    font-weight: 600;
}

/* ----------- SECTIONS / CARDS (v4 ".section" — white card with teal left accent) ----------- */
.page-template-template-lesson-view #main .section,
.page-template-template-lesson-view #main .sb,
.page-template-template-lesson-view #main .sb--blue {
    background: var(--bbc-white) !important;
    border: var(--bbc-border-w) solid var(--bbc-border) !important;
    border-left: 3px solid var(--bbc-teal) !important;
    border-radius: var(--bbc-radius-md) !important;
    margin: 0 0 var(--bbc-space-6) !important;
    overflow: hidden;
    padding: 0 !important;
}
.page-template-template-lesson-view #main .section-hd {
    padding: var(--bbc-space-2) var(--bbc-space-3) !important;
    border-bottom: var(--bbc-border-w) solid var(--bbc-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--bbc-space-2);
}
.page-template-template-lesson-view #main .section-bd {
    padding: var(--bbc-space-3) !important;
}
.page-template-template-lesson-view #main .accent-forest { border-left-color: var(--bbc-forest) !important; }
.page-template-template-lesson-view #main .accent-gold   { border-left-color: var(--bbc-gold) !important; background: #fffbf2 !important; }
.page-template-template-lesson-view #main .accent-steel  { border-left-color: var(--bbc-steel) !important; }

/* ----------- PILLS / TAGS ----------- */
.page-template-template-lesson-view #main .pill,
.page-template-template-course-overview #inner-wrap .pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--bbc-radius-pill);
    font-size: 11px !important;
    font-weight: 700;
    border: var(--bbc-border-w) solid var(--bbc-border);
    color: var(--bbc-fg-muted) !important;
    background: var(--bbc-white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.page-template-template-lesson-view #main .pill-teal,
.page-template-template-course-overview #inner-wrap .pill-teal {
    border-color: var(--bbc-teal) !important;
    color: var(--bbc-forest) !important;
}

/* ----------- BLOCKQUOTES ----------- */
.page-template-template-lesson-view #main blockquote,
.page-template-template-course-overview #inner-wrap blockquote,
.page-template-template-cohort-view #inner-wrap blockquote,
.page-template-template-dashboard #inner-wrap blockquote {
    background: var(--bbc-paper) !important;
    border-left: 3px solid var(--bbc-teal) !important;
    margin: var(--bbc-space-4) 0 !important;
    padding: var(--bbc-space-3) var(--bbc-space-4) !important;
    border-radius: var(--bbc-radius-md);
    font-size: var(--bbc-type-body) !important;
    line-height: 1.5 !important;
    font-style: italic;
    color: var(--bbc-fg) !important;
}

/* ----------- HORIZONTAL RULE ----------- */
.page-template-template-lesson-view #main hr {
    border: none !important;
    border-top: var(--bbc-border-w) solid var(--bbc-border) !important;
    margin: var(--bbc-space-6) 0 !important;
}

/* === End BBC Instructor — v4-Aligned Design System v3 === */


/* ============================================================
   BBC Instructor — v3.1 Patch (Dashboard/Course-Overview + Accordion H2)
   ============================================================ */

/* --- Extend v4 chrome to renamed BBC templates -------------- */
.page-template-template-bbc-dashboard,
.page-template-template-bbc-course-overview {
  background: var(--bbc-bg, #F7F7F4);
  color: var(--bbc-ink, #1B2B26);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page-template-template-bbc-dashboard #main,
.page-template-template-bbc-course-overview #main {
  background: var(--bbc-bg, #F7F7F4);
}

.page-template-template-bbc-dashboard h1,
.page-template-template-bbc-course-overview h1 {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bbc-forest, #1B2B26);
}

.page-template-template-bbc-dashboard h2,
.page-template-template-bbc-course-overview h2 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--bbc-forest, #1B2B26);
}

.page-template-template-bbc-dashboard h3,
.page-template-template-bbc-course-overview h3 {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--bbc-forest, #1B2B26);
}

.page-template-template-bbc-dashboard h4,
.page-template-template-bbc-course-overview h4 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bbc-teal, #2E5E5E);
}

.page-template-template-bbc-dashboard p,
.page-template-template-bbc-dashboard li,
.page-template-template-bbc-course-overview p,
.page-template-template-bbc-course-overview li {
  font-size: 16px;
  line-height: 1.6;
  color: var(--bbc-ink, #1B2B26);
}

/* --- Kadence Accordion H2 fix (v4 H2 spec) ------------------ */
.page-template-template-lesson-view #main .ld-accordion h2,
.page-template-template-lesson-view #main .kt-accordion h2,
.page-template-template-lesson-view #main .wp-block-kadence-accordion h2,
.page-template-template-lesson-view #main details > summary h2,
.page-template-template-lesson-view #main .kt-accordion-header h2,
.page-template-template-lesson-view #main .ld-accordion-header h2 {
  font-size: 32px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  color: var(--bbc-forest, #1B2B26) !important;
  text-transform: none !important;
  margin: 0 !important;
}

/* Belt-and-braces: also normalize generic accordion title h2s inside lessons */
.single-lesson .ld-accordion h2,
.single-lesson .kt-accordion h2,
.single-lesson .wp-block-kadence-accordion h2 {
  font-size: 32px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  color: var(--bbc-forest, #1B2B26) !important;
  text-transform: none !important;
}


/* ============================================================
   BBC Instructor — v3.3 Patch (Dashboard v4 alignment)
   Targets template-dashboard.php output: .bbc-dash__* classes
   ============================================================ */

/* Re-route v3.1 chrome to the REAL templates (the bbc-* ones were dead) */
.page-template-template-dashboard,
.page-template-template-course-overview,
.page-template-template-cohort-view {
  background: var(--bbc-bg, #F7F7F4);
  color: var(--bbc-ink, #1B2B26);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page-template-template-dashboard #main,
.page-template-template-dashboard .site-content,
.page-template-template-dashboard .content-container {
  background: var(--bbc-bg, #F7F7F4);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Welcome hero (forest banner) --------------------------- */
.bbc-dash__welcome {
  background: var(--bbc-forest, #1B2B26);
  color: var(--bbc-white, #FFFFFF);
  padding: 40px 48px;
  border-radius: 12px;
  margin: 32px 0 40px 0;
  position: relative;
  overflow: hidden;
}
.bbc-dash__welcome::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--bbc-lime, #C8E76C);
}
.bbc-dash__welcome h1,
.bbc-dash__welcome h2,
.bbc-dash__welcome .bbc-dash__welcome-title {
  color: var(--bbc-white, #FFFFFF) !important;
  font-size: 36px !important;
  line-height: 1.15 !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  margin: 0 0 8px 0 !important;
  text-transform: none !important;
}
.bbc-dash__welcome p,
.bbc-dash__welcome .bbc-dash__welcome-sub {
  color: rgba(255,255,255,0.85) !important;
  font-size: 17px !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* --- Section heading (Your Courses, Your Cohorts) ----------- */
.bbc-dash__section h2,
.bbc-dash__section > h2:first-child {
  font-size: 28px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  color: var(--bbc-forest, #1B2B26) !important;
  margin: 0 0 20px 0 !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid var(--bbc-mist, #DDE3DF) !important;
  text-transform: none !important;
}

.bbc-dash__section {
  margin: 0 0 48px 0;
}

/* --- Course grid (3 col responsive) ------------------------- */
.bbc-dash__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

/* --- Course card -------------------------------------------- */
.bbc-dash__course-card {
  background: var(--bbc-white, #FFFFFF);
  border: 1px solid var(--bbc-mist, #DDE3DF);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
}
.bbc-dash__course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,60,50,0.08);
  border-color: var(--bbc-teal, #2E5E5E);
}
.bbc-dash__course-card__image {
  width: 100%;
  height: 160px;
  background: var(--bbc-bg, #F7F7F4);
  object-fit: cover;
  display: block;
}
.bbc-dash__course-card__body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.bbc-dash__course-card h3,
.bbc-dash__course-card__body h3,
.bbc-dash__course-card__body > a:first-child,
.bbc-dash__course-card__title {
  font-size: 18px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  color: var(--bbc-forest, #1B2B26) !important;
  text-decoration: none !important;
  margin: 0 0 8px 0 !important;
  letter-spacing: -0.005em !important;
}
.bbc-dash__course-card__desc {
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: #4A5A55 !important;
  margin: 8px 0 16px 0 !important;
  flex: 1;
}
.bbc-dash__course-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--bbc-mist, #DDE3DF);
  align-items: center;
}
.bbc-dash__pill {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bbc-bg, #F7F7F4);
  border: 1px solid var(--bbc-mist, #DDE3DF);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--bbc-forest, #1B2B26);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bbc-dash__course-link {
  margin-left: auto;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--bbc-forest, #1B2B26) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.15s ease;
}
.bbc-dash__course-link:hover {
  color: var(--bbc-teal, #2E5E5E) !important;
}

/* --- "Start from Day 1" prominent link inside card title ---- */
.bbc-dash__course-card a[href*="lesson_id"],
.bbc-dash__course-card__body > a + a {
  display: inline-block;
  margin-top: 4px;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--bbc-teal, #2E5E5E) !important;
  text-decoration: none !important;
}
.bbc-dash__course-card a[href*="lesson_id"]:hover {
  color: var(--bbc-forest, #1B2B26) !important;
}

/* --- Empty state -------------------------------------------- */
.bbc-dash__empty {
  padding: 32px;
  background: var(--bbc-white, #FFFFFF);
  border: 1px dashed var(--bbc-mist, #DDE3DF);
  border-radius: 12px;
  text-align: center;
  color: #6A7A75;
  font-size: 15px;
}

/* --- Cohort card -------------------------------------------- */
.bbc-dash__cohort-card {
  background: var(--bbc-white, #FFFFFF);
  border: 1px solid var(--bbc-mist, #DDE3DF);
  border-left: 4px solid var(--bbc-teal, #2E5E5E);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 16px;
  transition: box-shadow 0.15s ease;
}
.bbc-dash__cohort-card:hover {
  box-shadow: 0 4px 12px rgba(0,60,50,0.06);
}
.bbc-dash__cohort-course {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--bbc-forest, #1B2B26) !important;
  margin: 0 0 12px 0 !important;
  letter-spacing: -0.005em !important;
}
.bbc-dash__cohort-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.bbc-dash__cohort-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.bbc-dash__label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--bbc-teal, #2E5E5E) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}
.bbc-dash__cohort-detail > *:not(.bbc-dash__label) {
  font-size: 15px;
  font-weight: 600;
  color: var(--bbc-forest, #1B2B26);
}

/* --- Editor content section (page-level content area) ------ */
.bbc-dash__editor-content {
  background: var(--bbc-white, #FFFFFF);
  border: 1px solid var(--bbc-mist, #DDE3DF);
  border-radius: 12px;
  padding: 32px;
  margin-top: 24px;
}
.bbc-dash__editor-content > *:first-child { margin-top: 0; }
.bbc-dash__editor-content > *:last-child { margin-bottom: 0; }

/* Responsive */
@media (max-width: 720px) {
  .bbc-dash__welcome { padding: 28px 24px; }
  .bbc-dash__welcome h1, .bbc-dash__welcome h2 { font-size: 28px !important; }
  .bbc-dash__grid { grid-template-columns: 1fr; }
  .page-template-template-dashboard #main { padding: 0 16px; }
}

/* ============================================================
   LESSON VIEW - WORKBOOK REFERENCES
   Page range is the hero element. Instructor reads from printed booklet.
   ============================================================ */

.bbc-lesson-view__workbooks { margin: 2rem 0; }
.bbc-lesson-view__workbooks-hint { color: #666; font-size: 0.9rem; margin: 0 0 1rem; }
.bbc-lesson-view__workbook-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }

.bbc-lesson-workbook { background: var(--bbc-white, #ffffff); border-radius: 10px; padding: 1.25rem 1.5rem; border-left: 6px solid var(--bbc-forest); box-shadow: 0 1px 8px rgba(7, 62, 39, 0.08); display: flex; flex-direction: column; gap: 0.5rem; }
.bbc-lesson-workbook--instructor { border-left-color: var(--bbc-teal); }

.bbc-lesson-workbook__role-pill { display: inline-block; width: fit-content; padding: 0.2rem 0.65rem; border-radius: 999px; background: rgba(7, 62, 39, 0.08); color: var(--bbc-forest); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.bbc-lesson-workbook--instructor .bbc-lesson-workbook__role-pill { background: rgba(63, 139, 102, 0.14); color: var(--bbc-teal); }

.bbc-lesson-workbook__pages { font-size: 2rem; font-weight: 800; color: var(--bbc-forest); line-height: 1.1; margin: 0.25rem 0; }
.bbc-lesson-workbook--instructor .bbc-lesson-workbook__pages { color: var(--bbc-teal); }

.bbc-lesson-workbook__title { font-size: 1rem; font-weight: 600; margin: 0; color: var(--bbc-charcoal); line-height: 1.3; }
.bbc-lesson-workbook__note { font-size: 0.85rem; color: #666; margin: 0; line-height: 1.4; }
.bbc-lesson-workbook__download { margin-top: auto; padding-top: 0.5rem; font-size: 0.8rem; color: var(--bbc-teal); text-decoration: underline; align-self: flex-start; }
.bbc-lesson-workbook__download:hover { color: var(--bbc-forest); }

@media print {
    .bbc-lesson-workbook { box-shadow: none; border: 1px solid #cccccc; page-break-inside: avoid; }
    .bbc-lesson-workbook__pages { color: #000000; font-size: 1.5rem; }
    .bbc-lesson-workbook__download { display: none; }
}

@media (max-width: 700px) {
    .bbc-lesson-view__workbook-grid { grid-template-columns: 1fr; }
    .bbc-lesson-workbook__pages { font-size: 1.5rem; }
}