/*
 * BiblioShift Lesson Design System — v0.6
 * Signal Blue: #0057FF
 * Porcelain:   #F8F7F4
 *
 * Échelle compacte :
 * - texte courant 16.5 px
 * - H2 29 px
 * - H3 23 px
 * - H4 20 px
 */

.bs-lesson-content {
    max-width: 940px;
    margin: 0 auto;
    color: #4A5872;
    font-size: 16.5px;
    line-height: 1.68;
    font-family: inherit;
}

.bs-lesson-content .bs-h2,
.bs-lesson-content h2.bs-h2 {
    margin: 0 0 30px !important;
    color: #0057FF !important;
    font-size: 29px !important;
    line-height: 1.22 !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em;
}

.bs-lesson-content .bs-h3,
.bs-lesson-content h3.bs-h3 {
    margin: 32px 0 18px !important;
    color: #263247 !important;
    font-size: 23px !important;
    line-height: 1.30 !important;
    font-weight: 700 !important;
}

.bs-lesson-content .bs-h4,
.bs-lesson-content h4.bs-h4 {
    margin: 26px 0 14px !important;
    color: #263247 !important;
    font-size: 20px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

.bs-lesson-content p,
.bs-lesson-content .bs-text {
    margin: 0 0 19px;
    color: #4A5872 !important;
    font-size: 16.5px !important;
    line-height: 1.68 !important;
    font-weight: 400;
}

.bs-lesson-content strong {
    font-weight: 700;
}

.bs-lesson-content .bs-keyword {
    color: #0057FF !important;
    font-weight: 700 !important;
}

.bs-lesson-content .bs-list {
    margin: 2px 0 23px 1.15em;
    padding-left: 1em;
    color: #4A5872;
    font-size: 16.5px;
    line-height: 1.62;
}

.bs-lesson-content .bs-list li {
    margin: 4px 0;
    padding-left: 2px;
}

.bs-definition,
.bs-retain,
.bs-example {
    margin: 23px 0;
    padding: 18px 21px;
    border: 1px solid #E3E7EF;
    border-left: 4px solid #0057FF;
    border-radius: 11px;
    background: #F8F7F4;
}

.bs-example {
    background: #F7F9FF;
}

.bs-retain {
    background: #F5F8FF;
}

.bs-definition .bs-box-label,
.bs-retain .bs-box-label,
.bs-example .bs-box-label {
    display: block;
    margin-bottom: 8px;
    color: #0057FF;
    font-size: 11.5px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.bs-definition p:last-child,
.bs-retain p:last-child,
.bs-example p:last-child {
    margin-bottom: 0;
}

.bs-table-scroll {
    width: 100%;
    margin: 23px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.bs-table {
    width: 100%;
    min-width: 620px;
    border: 1px solid #E1E6EF;
    border-spacing: 0;
    border-collapse: separate;
    border-radius: 11px;
    overflow: hidden;
    background: #FFFFFF;
    color: #4A5872;
    font-size: 15.5px;
    line-height: 1.5;
}

.bs-table th,
.bs-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}

.bs-table thead th {
    background: #F2F6FF;
    color: #0057FF;
    font-weight: 700;
    border-bottom: 1px solid #DCE4F2;
}

.bs-table tbody td {
    border-bottom: 1px solid #EDF0F5;
}

.bs-table tbody tr:last-child td {
    border-bottom: 0;
}

.bs-table tbody tr:nth-child(even) td {
    background: #FCFCFD;
}

@media (max-width: 768px) {
    .bs-lesson-content {
        max-width: none;
        font-size: 15.5px;
        line-height: 1.65;
    }

    .bs-lesson-content .bs-h2,
    .bs-lesson-content h2.bs-h2 {
        font-size: 25px !important;
        margin: 0 0 24px !important;
    }

    .bs-lesson-content .bs-h3,
    .bs-lesson-content h3.bs-h3 {
        font-size: 21px !important;
        margin: 28px 0 16px !important;
    }

    .bs-lesson-content .bs-h4,
    .bs-lesson-content h4.bs-h4 {
        font-size: 18px !important;
        margin: 24px 0 12px !important;
    }

    .bs-lesson-content p,
    .bs-lesson-content .bs-text,
    .bs-lesson-content .bs-list {
        font-size: 15.5px !important;
        line-height: 1.65 !important;
    }

    .bs-definition,
    .bs-retain,
    .bs-example {
        padding: 16px 17px;
        border-radius: 10px;
    }

    .bs-table {
        font-size: 14.5px;
    }

    .bs-table th,
    .bs-table td {
        padding: 11px 12px;
    }
}


/* Tutor LMS front-end may reset heading margins.
   These selectors deliberately increase specificity on lesson pages. */
.tutor-course-single-content-wrapper .bs-lesson-content h2.bs-h2,
.tutor-course-single-content-wrapper .bs-lesson-content .bs-h2 {
    margin-bottom: 30px !important;
}

.tutor-course-single-content-wrapper .bs-lesson-content h3.bs-h3,
.tutor-course-single-content-wrapper .bs-lesson-content .bs-h3 {
    margin-bottom: 18px !important;
}

.tutor-course-single-content-wrapper .bs-lesson-content h4.bs-h4,
.tutor-course-single-content-wrapper .bs-lesson-content .bs-h4 {
    margin-bottom: 14px !important;
}

@media (max-width: 768px) {
    .tutor-course-single-content-wrapper .bs-lesson-content h2.bs-h2,
    .tutor-course-single-content-wrapper .bs-lesson-content .bs-h2 {
        margin-bottom: 24px !important;
    }

    .tutor-course-single-content-wrapper .bs-lesson-content h3.bs-h3,
    .tutor-course-single-content-wrapper .bs-lesson-content .bs-h3 {
        margin-bottom: 16px !important;
    }

    .tutor-course-single-content-wrapper .bs-lesson-content h4.bs-h4,
    .tutor-course-single-content-wrapper .bs-lesson-content .bs-h4 {
        margin-bottom: 12px !important;
    }
}
