:root{
    --tenant-main-color: #214591;
    --bs-primary-rgb: 33, 69, 145;
    --color-primary-darker: color-mix(in srgb,var(--tenant-main-color),#000 15%);
    --bs-nav-link-color: var(--tenant-accent-color) !important;
    --tenant-accent-color: #289f67;
    --tenant-accent-darker: color-mix(in srgb,var(--tenant-accent-color),#000 15%);
    --side-lesson-content-width: 475px;
    --text-on-bg-main-color: #cfe2ff; /* text color when the background is main tenant color */
    --text-on-bg-accent-color: #ebffe6; /* text color when the background is accent tenant color */

    --bs-primary: var(--tenant-main-color) !important;
    --bs-primary-text: var(--tenant-main-color) !important;
    --bs-primary-bg-subtle: color-mix(in srgb,var(--tenant-main-color),#fff 80%);
    --bs-primary-border-subtle: color-mix(in srgb,var(--tenant-main-color),#fff 70%);
}

/* ------------------------------- Colors ------------------------------- */

.text-accent{
    color: var(--tenant-accent-color);
}
.text-primary{
    color: var(--tenant-main-color);
}
.bg-primary{
    background: var(--tenant-main-color) !important;
    color: var(--text-on-bg-main-color);
}
.bg-accent{
    background: var(--tenant-accent-color);
    color: var(--text-on-bg-accent-color);
}

/* ------------------------------- END Colors ------------------------------- */

/* ------------------------------- Text Formating ------------------------------- */

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    color: var(--tenant-main-color);
}
.fs-7 {
    font-size: 0.85rem !important;
}
.fs-8 {
    font-size: 0.75rem !important;
}
.fs-4-5{
    font-size: 1.4rem !important;
}
.fw-500{
    font-weight: 500;
}
.fw-600{
    font-weight: 600;
}
.fw-800{
    font-weight: 800;
}
.fw-900{
    font-weight: 900;
}

/* ------------------------------- END Text Formating ------------------------------- */

/* ------------------------------- Links ------------------------------- */

a {
    text-decoration:none;
    background-image: linear-gradient(#212529, #212529);
    padding-bottom: 3px;
    background-size: 0 1px;
    background-position-y: 100%;
    background-position-x: 50%;
    background-repeat: no-repeat;
    transition: background-size 0.5s ease-in-out;
}
a:hover, a:focus, a:active {
    background-size: 100% 1px;
}
.link-primary {
    color: var(--tenant-main-color) !important;
    background-image: linear-gradient(var(--tenant-main-color), var(--tenant-main-color)) !important;
}
.link-primary:focus, .link-primary:hover {
    color: var(--color-primary-darker) !important;
}
.link-accent{
    color: var(--tenant-accent-color) !important;
    background-image: linear-gradient(var(--tenant-accent-color), var(--tenant-accent-color)) !important;
}
.link-accent:focus, .link-accent:hover {
    color: var(--tenant-accent-darker) !important;
}

a.text-decoration-none{
    background-image: none !important;
}
a.btn:active, a.btn:hover, a.btn:focus{
    background-image: none !important;
}

/* ------------------------------- END Links ------------------------------- */

/* ------------------------------- Buttons ------------------------------- */

.btn-primary {
    --bs-btn-bg: var(--tenant-main-color) !important;
    --bs-btn-border-color: var(--tenant-main-color) !important;
    --bs-btn-hover-bg: var(--color-primary-darker) !important;
    --bs-btn-hover-border-color: var(--color-primary-darker) !important;
    --bs-btn-active-bg: var(--color-primary-darker) !important;
    --bs-btn-active-border-color: var(--color-primary-darker) !important;
    --bs-btn-disabled-bg: var(--tenant-main-color) !important;
    --bs-btn-disabled-border-color: var(--tenant-main-color)!important;
}
.btn-outline-primary {
    --bs-btn-color: var(--tenant-main-color) !important;
    --bs-btn-border-color: var(--tenant-main-color) !important;
    --bs-btn-hover-bg: var(--tenant-main-color) !important;
    --bs-btn-hover-border-color: var(--tenant-main-color) !important;
    --bs-btn-active-bg: var(--tenant-main-color) !important;
    --bs-btn-active-border-color: var(--tenant-main-color) !important;
    --bs-btn-disabled-color: var(--tenant-main-color) !important;
    --bs-btn-disabled-border-color: var(--tenant-main-color) !important;
}
.btn-accent {
    --bs-btn-bg: var(--tenant-accent-color) !important;
    --bs-btn-color: var(--text-on-bg-accent-color) !important;
    --bs-btn-border-color: var(--tenant-accent-color) !important;
    --bs-btn-hover-bg: var(--text-on-bg-accent-color) !important;
    --bs-btn-hover-color: var(--tenant-accent-color) !important;
    --bs-btn-hover-border-color: var(--tenant-accent-darker) !important;
    --bs-btn-active-bg: var(--text-on-bg-accent-color) !important;
    --bs-btn-active-color: var(--tenant-accent-color) !important;
    --bs-btn-active-border-color: var(--tenant-accent-darker) !important;
    --bs-btn-disabled-bg: var(--tenant-accent-color) !important;
    --bs-btn-disabled-border-color: var(--tenant-accent-color)!important;
}
.btn-outline-accent {
    --bs-btn-color: var(--tenant-accent-color) !important;
    --bs-btn-border-color: var(--tenant-accent-color) !important;
    --bs-btn-hover-color: var(--text-on-bg-accent-color) !important;
    --bs-btn-hover-bg: var(--tenant-accent-color) !important;
    --bs-btn-hover-border-color: var(--tenant-accent-color) !important;
    --bs-btn-active-color: var(--text-on-bg-accent-color) !important;
    --bs-btn-active-bg: var(--tenant-accent-color) !important;
    --bs-btn-active-border-color: var(--tenant-accent-color) !important;
    --bs-btn-disabled-color: var(--tenant-accent-color) !important;
    --bs-btn-disabled-border-color: var(--tenant-accent-color) !important;
}

/* ------------------------------- END Buttons ------------------------------- */

/* ------------------------------- Spacing (margin, padding) ------------------------------- */

.mt-n1 {
    margin-top: -0.25rem !important;
}
.mt-n2 {
    margin-top: -0.5rem !important;
}
.mt-n3 {
    margin-top: -0.75rem !important;
}
.mt-n4 {
    margin-top: -1rem !important;
}
.mt-n5 {
    margin-top: -1.5rem !important;
}

/* ------------------------------- END Spacing ------------------------------- */

/* ------------------------------- Inputs (check box, select, input) ------------------------------- */

.form-check-input:checked {
    background-color: color-mix(in srgb,var(--tenant-accent-color),#fff 10%);
    border-color: var(--tenant-accent-color);
}
.form-check-input:focus {
    border-color: color-mix(in srgb,var(--tenant-accent-color),#fff 10%);
    outline: 0;
    box-shadow: 0 0 0 .25rem color-mix(in srgb,var(--tenant-accent-color),#fff 60%);
}

/* ------------------------------- END Inputs ------------------------------- */

/* ------------------------------- Images ratio ------------------------------- */

.aspect-ratio-box-16x9, .aspect-ratio-box-4x3, .aspect-ratio-box-3x1, .aspect-ratio-box-1x1, .aspect-ratio-box-4x1 {
    height: 0;
    overflow: hidden;
    position: relative;
}
.aspect-ratio-inside {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.aspect-ratio-box-16x9 {
    padding-top: 56.25% ;
}
.aspect-ratio-box-3x1 {
    padding-top: 33.33%;
}
.aspect-ratio-box-4x3 {
    padding-top: 75%;
}
.aspect-ratio-box-1x1 {
    padding-top: 100%;
}
.aspect-ratio-box-4x1{
    padding-top: 25%
}

/* ------------------------------- END mages ratio ------------------------------- */

/* ------------------------------- Header ------------------------------- */

header {
    padding-top: 3.75rem;
}
header .navbar {
    z-index: 1001;
    padding: 0;
}
header .navbar-brand img{
    height: 44px;
}

/* ------------------------------- END Header ------------------------------- */

/* ------------------------------- Homepage Slider ------------------------------- */

.slide-image {
    position: relative;
    overflow: hidden;
}
.slide-overlay {
    position: absolute;
    top: 0;
    z-index: 10;
    width: 60%;
    height: 100%;
    padding: 2rem;
}
.slide-info {
    position: relative;
    transform: translate(0%, -50%);
    top: 50%;
}
.slide-info .slide-button{
    margin-top: 1rem;
}
.slide-overlay.left {
    left: 0;
}
.slide-overlay.right {
    right: 0;
}
.slide-overlay.right .slide-info {
        text-align: right;
    }
.slide-overlay-gradient {
}
.slide-overlay.left .slide-overlay-gradient {
}
.slide-overlay.right .slide-overlay-gradient {
}

/* the hero, words over the picture: a shade on one side, the words on it with room to breathe */
.slide-image .hero-picture { min-height: 340px; max-height: 620px; object-fit: cover; }
.hero-shade { position: absolute; top: 0; bottom: 0; width: 62%; z-index: 9; }
.hero-shade-left { left: 0; }
.hero-shade-right { right: 0; }
.hero-words { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; padding: clamp(1.5rem, 4.5vw, 4rem); }
.hero-words-right { justify-content: flex-end; text-align: right; }
.hero-words-inner { max-width: min(560px, 52%); }
.hero-title { font-size: clamp(1.75rem, 3.4vw, 3.25rem); line-height: 1.15; margin: 0 0 .75rem; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.hero-text { font-size: clamp(1rem, 1.25vw, 1.2rem); line-height: 1.55; text-shadow: 0 1px 8px rgba(0, 0, 0, .2); }
.hero-text p:last-child { margin-bottom: 0; }
.hero-button { margin-top: 1.5rem; padding: .7rem 1.6rem; border-radius: 999px; font-weight: 600; }
/* a slide with no picture: its words on a band of colour (slider/plain) */
.hero-plain { display: flex; align-items: center; min-height: 300px; padding: clamp(2rem, 5vw, 4.5rem); }
.hero-plain-inner { max-width: 760px; }
.hero-plain .hero-title, .hero-plain .hero-text { text-shadow: none; }

@media (max-width: 767.98px) {
    /* on a phone the shade covers it all, fading in from the middle - the picture shows above the words */
    .hero-shade { width: 100%; -webkit-mask-image: linear-gradient(to bottom, transparent 15%, #000 55%); mask-image: linear-gradient(to bottom, transparent 15%, #000 55%); }
    .hero-words { align-items: flex-end; }
    .hero-words-inner { max-width: 100%; }
    .hero-words-right { text-align: left; justify-content: flex-start; }
    .slide-image .hero-picture { min-height: 420px; }
    .slide-image .hero-picture-left { object-position: 15% center; }
    .slide-image .hero-picture-right { object-position: 85% center; }
}

/* ------------------------------- END Homepage Slider ------------------------------- */

/* ------------------------------- Lesson Series List Page ------------------------------- */

.series-item {
    margin-bottom: 0.25rem;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 0 solid var(--tenant-main-color);
    background-color: color-mix(in srgb, var(--tenant-main-color), #fff 90%);
}
.series-item a{
    display: block;
    color: var(--tenant-main-color);
    transition: color .15s
    ease-in-out, background-color .15s
    ease-in-out, border-color .15s
    ease-in-out;
}
.series-item a:hover, .series-item a:focus, .series-item a:active, .series-item a.active {
    background-size: 100% 100%;
    background-color: color-mix(in srgb, var(--tenant-main-color), #fff 80%);
    background-image: none !important;
}
.series-item a:hover > h2, .series-item a:focus > h2, .series-item a:active > h2, .series-item a.active > h2 {
    background: rgba(var(--bs-primary-rgb));
    color: var(--text-on-bg-main-color);
}
.series-item h2 {
    padding: 1rem;
    border-bottom: 1px solid;
    border-color: color-mix(in srgb, var(--tenant-main-color), #fff 70%);
    transition: color .15s
    ease-in-out, background-color .15s
    ease-in-out, border-color .15s
    ease-in-out;
}
.series-item .aspect-ratio-box-1x1 {
    border: 1px solid var(--tenant-main-color);
}
.series-item .label{
    background-color: var(--tenant-accent-color);
    border-radius: 30px;
    padding: 0 0.75rem 0.1rem;
    font-size: 0.9rem;
    color: var(--text-on-bg-accent-color);
    vertical-align: super;
}
.series-item .progress {
    height: 0.5rem;
    background-color: #fff;
}
.series-item .progress-bar {
    color: var(--bs-progress-bar-color);
    background-color: var(--tenant-accent-color) !important;
}
/* ------------------------------- END Lesson Series List Page ------------------------------- */

/* ------------------------------- Lesson View Page ------------------------------- */

#menu-toggle{
    position: fixed;
    top: 4rem;
    right: 1rem;
    z-index: 99999;
}
#lesson-wrapper {
    padding-left: 0;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}
#lesson-wrapper    #lesson-content-nav li:first-child{
    margin-right: auto;
}
#lesson-content-nav li:last-child{
    margin-left: auto;
}
#lesson-content-nav li {
    padding: 0.5rem;
}
#lesson-wrapper.content-menu-toggled {
    padding-right: var(--side-lesson-content-width);
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}
#lesson-wrapper.content-menu-toggled #side-lesson-content-wrapper {
    width: var(--side-lesson-content-width);
}
#lesson-wrapper.content-menu-toggled #page-content-wrapper {
    position: absolute;
    margin-right: var(--side-lesson-content-width);
}
#side-lesson-content-wrapper {
    z-index: 1000;
    position: fixed;
    top: 0;
    right: var(--side-lesson-content-width);
    width: 0;
    height: 100dvh;
    margin-right: calc(var(--side-lesson-content-width) * -1);
    padding-top: 6rem;
    overflow-y: auto;
    overflow-x: hidden;
    background: #eaeaea;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}
#page-content-wrapper {
    width: 100%;
    position: absolute;
}
#page-content-wrapper .segment-content-container{
    min-height: calc(100vh - 13rem);
    margin-bottom: 0.5rem;
    border-radius: 0.5rem !important;
    overflow: hidden;
}
#page-content-wrapper iframe{
    height: calc(100dvh - 13rem);
    border-radius: 0.5rem !important;
    overflow: hidden;
}
#page-content-wrapper embed{
    border-radius: 0.5rem !important;
    overflow: hidden;
}

@media(min-width:768px) {
    #lesson-wrapper {
        padding-right: var(--side-lesson-content-width);
    }
    #lesson-wrapper.content-menu-toggled {
        padding-right: 0;
    }
    #side-lesson-content-wrapper {
        width: var(--side-lesson-content-width);
    }
    #lesson-wrapper.content-menu-toggled #side-lesson-content-wrapper {
        width: 0;
        padding-right: 0 !important;
        padding-left: 0 !important;
    }
    #page-content-wrapper {
        position: relative;
    }
    #lesson-wrapper.content-menu-toggled #page-content-wrapper {
        position: relative;
        margin-right: 0;
    }
    #lesson-wrapper ~ footer {
        padding-right: var(--side-lesson-content-width);
    }
    #lesson-wrapper.content-menu-toggled ~ footer {
        padding-right: 0;
    }
}
.target-level {
    display: inline-block;
    font-size: initial;
    font-weight: 700;
}
.target-level svg{
    position: absolute;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
}
#description>a.collapsed::after {
    content: 'Show Description';
}
#description>a:not(.collapsed)::after {
    content: 'Hide Description';
}
.side-content-menu .content-menu-item{
    background-color: color-mix(in srgb,var(--tenant-accent-color),#fff 85%);
    border-left: 2px solid var(--tenant-accent-color);
    border-radius: 3px;
    margin-bottom: 0.25rem;
}
.side-content-menu .btn:hover {
    background-color: color-mix(in srgb,var(--tenant-accent-color),#fff 85%);
}
.side-content-menu .btn.active, .side-content-menu .btn.show, .side-content-menu .btn:first-child:active {
    background-color: var(--bs-btn-active-bg);
    border-color: color-mix(in srgb,var(--tenant-accent-color),#fff 85%); !important;
}
.side-content-menu h2{
    font-size: 1em;
    font-weight: 600;
    text-align: left;
    margin-bottom: 0.25rem;
}
.side-content-menu .meta-progress-wrapper{
    display: grid;
    grid-auto-flow: column;
}
.side-content-menu .meta-progress{
    font-size: 0.8em;
    color: rgba(0, 0, 0, 0.6);
    text-align: left;
}
.side-content-menu .progress{
    height: 0.5rem;
    align-self: center;
    background-color: #fff;
    border-left: 1px solid var(--tenant-accent-color);
}
.side-content-menu .progress-bar {
    color: var(--bs-progress-bar-color);
    background-color: var(--tenant-accent-color) !important;
}
.side-content-menu .segment-item-wrapper{
    position: relative;
}
.side-content-menu .segment-item-wrapper a {
    background-image: none !important;
}
.side-content-menu .segment-item-wrapper a:hover,
.side-content-menu .segment-item-wrapper a:focus,
.side-content-menu .segment-item-wrapper a:active,
.side-content-menu .segment-item-wrapper a.active {
    background-size: 100% 100%;
    background-color: color-mix(in srgb,var(--tenant-accent-color),#fff 75%);
    background-image: none !important;
}
.side-content-menu .segment-item-wrapper .form-check{
    position: absolute;
    left: 0.75rem;
    top: 1px;
}
.side-content-menu .segment-item-wrapper .segment-content-link{
    padding: 0 0.75rem 0.25rem 2.25rem;
}
.side-content-menu .segment-item-wrapper .segment-item-meta {
    margin-top: -5px;
}
.side-content-menu .segment-item-wrapper .segment-item-meta svg{
    width: 14px;
    fill: var(--tenant-accent-color);
    stroke: var(--tenant-accent-color);
    display: none;
}
.side-content-menu .segment-item-wrapper .segment-item-meta div{
    display: inline-block;
    font-size: 0.8em;
    color: rgba(0, 0, 0, 0.6);
}
/* each content's own icon: the one of its kind (the "&" here before was Sass, not CSS - it hid them all) */
.side-content-menu .segment-item-wrapper .segment-item-meta.segment-item-video svg.video,
.side-content-menu .segment-item-wrapper .segment-item-meta.segment-item-text svg.text,
.side-content-menu .segment-item-wrapper .segment-item-meta.segment-item-pdf svg.pdf,
.side-content-menu .segment-item-wrapper .segment-item-meta.segment-item-quiz svg.quiz,
.side-content-menu .segment-item-wrapper .segment-item-meta.segment-item-practice_deal svg.practice_deal,
.side-content-menu .segment-item-wrapper .segment-item-meta.segment-item-deal_player svg.deal_player {
    display: inline-block;
}
.side-content-menu .btn.collapsed:has(~ .collapse:not(show) a.active) {
    background-color: color-mix(in srgb,var(--tenant-accent-color),#fff 75%);
}
#lesson-wrapper #lesson-content-nav li:first-child{
    margin-right: auto;
}
#lesson-wrapper #lesson-content-nav li:last-child{
    margin-left: auto;
}
#lesson-wrapper #lesson-content-nav li {
    padding: 0.5rem;
}

/* ------------------------------- END Lesson View Page ------------------------------- */


/* ------------------------------- Lesson QUIZ View Page ------------------------------- */

.quiz-holder .quiz-options{
    display: grid;
    grid-template-columns: 50% 50%;
}
.quiz-holder .answer {
    position: relative;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    padding: 1rem 1.5rem;
    border: 2px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background-image: none !important;
    background: var(--bs-light);
    align-content: center;
    margin: 0.5rem;
    cursor: pointer;
}
/* the letter in its circle, the answer beside it - the same whether chosen or not, so nothing jumps */
.quiz-holder .answer label {
    display: grid;
    grid-template-columns: 40px auto;
    gap: 1rem;
    align-items: center;
    cursor: pointer;
}
.quiz-holder .answer label p { margin: 0; display: inline; }
.quiz-holder .answer label .answer-cha {
    width: 40px;
    height: 40px;
    border: 1px solid var(--bs-border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: #fff;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
}
.quiz-holder .question-holder:not(.answered) .answer:hover,
.quiz-holder .question-holder:not(.answered) .answer:focus-visible {
    border-color: color-mix(in srgb, var(--tenant-main-color), #fff 45%);
}
.quiz-holder .question-holder:not(.answered) .answer:hover label .answer-cha {
    border-color: var(--tenant-main-color);
    color: var(--tenant-main-color);
}
/* chosen: unmistakable - the site's colour around it and in its circle, a tick in the corner */
.quiz-holder .answer.selected {
    border-color: var(--tenant-main-color);
    background-color: color-mix(in srgb, var(--tenant-main-color), #fff 88%);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tenant-main-color), transparent 80%);
}
.quiz-holder .answer.selected label { font-weight: 600; }
.quiz-holder .answer.selected label .answer-cha {
    background: var(--tenant-main-color);
    border-color: var(--tenant-main-color);
    color: var(--text-on-bg-main-color, #fff);
}
.quiz-holder .answer.selected::after,
.quiz-holder .answer.correct:not(.show)::after,
.quiz-holder .answer.incorrect::after {
    position: absolute;
    top: .4rem;
    right: .6rem;
    font-family: 'bootstrap-icons';
    font-size: 1.25rem;
    line-height: 1;
}
.quiz-holder .answer.selected::after { content: '\f26a'; color: var(--tenant-main-color); }
/* graded: the one picked and right in green; picked and wrong in red; a right one not picked, outlined in green */
.quiz-holder .answer.correct:not(.show) {
    border-color: var(--bs-success);
    background-color: var(--bs-success-bg-subtle);
}
.quiz-holder .answer.correct:not(.show) label .answer-cha { background: var(--bs-success); border-color: var(--bs-success); color: #fff; }
.quiz-holder .answer.correct:not(.show)::after { content: '\f26a'; color: var(--bs-success); }
.quiz-holder .answer.correct.show { border-color: var(--bs-success); border-style: dashed; }
.quiz-holder .answer.correct.show label .answer-cha { border-color: var(--bs-success); color: var(--bs-success); }
.quiz-holder .answer.incorrect {
    border-color: var(--bs-danger);
    background-color: var(--bs-danger-bg-subtle);
}
.quiz-holder .answer.incorrect label .answer-cha { background: var(--bs-danger); border-color: var(--bs-danger); color: #fff; }
.quiz-holder .answer.incorrect::after { content: '\f622'; color: var(--bs-danger); }
/* graded: the others step back */
.quiz-holder .answered .answer.show:not(.correct) { opacity: .6; }
.quiz-holder .answered .answer { cursor: default; }
.quiz-holder .answered .answer label { cursor: default; }
@media (max-width: 575.98px) {
    .quiz-holder .quiz-options { grid-template-columns: 100%; }
}
.quiz-holder .quiz-steps-nav{
    width: fit-content;
}
.quiz-holder .step-container {
    position: relative;
    text-align: center;
}
.quiz-holder .step-container .step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #e9ecef;
    line-height: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
}
.quiz-holder .step-container .step-circle:last-child {
    margin-right: 0;
}
.quiz-holder .step-container .step-circle.correct {
    background-color: #146c43;
    border: 1px solid #fff;
    color: #fff;
}
.quiz-holder .step-container .step-circle.incorrect {
    background-color: #b02a37;
    border: 1px solid #fff;
    color: #fff;
}
/* a test's answer in, neither right nor wrong said until the end (BILMS-534) */
.quiz-holder .step-container .step-circle.answered {
    background-color: #6c757d;
    border: 1px solid #fff;
    color: #fff;
}
.quiz-holder .step-container .step-circle.active {
    border: 2px solid var(--tenant-main-color);
    color: var(--tenant-main-color);
}

/* ------------------------------- END Lesson QUIZ View Page ------------------------------- */

/* ------------------------------- Shopping Cart Box ------------------------------- */
.cart-box {
    position: fixed;
    top: 3.75rem;
    right: 0;
    width: 300px;
    height: calc(100vh - 3.75rem);
    background-color: #fff;
    border-left: 1px solid #e9ecef;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 1rem;
    overflow: hidden;
}
.cart-box .cart-box-inner {
    height: 100%;
    overflow-y: auto;
}
.cart-box .card-body {
    position: relative;
    padding-right: 2rem;
}
.cart-box .cart-item-close {
    position: absolute;
    top: 8px;
    right: 10px;
    cursor: pointer;
    color: #b02a37;
    line-height: 1;
    transition: transform 0.15s ease, color 0.15s ease;
}
.cart-box .cart-item-close:hover {
    color: #dc3545;
    transform: scale(1.2);
}
/* the cart's parts: a head with the count and "Remove all", a row a lesson, the total and payment at the foot */
.cart-box .cart-box-inner {
    display: flex;
    flex-direction: column;
}
.cart-box .cart-box-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid #e9ecef;
}
.cart-box .cart-box-head .cart-clear {
    padding: 0;
    color: #b02a37;
    text-decoration: none;
    font-size: 0.85rem;
}
.cart-box .cart-box-head .cart-clear:hover {
    text-decoration: underline;
}
.cart-box .cart-box-items {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    overflow-y: auto;
}
.cart-box .cart-box-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid #f1f3f5;
    font-size: 0.9rem;
}
.cart-box .cart-box-name {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.3;
}
.cart-box .cart-box-price {
    white-space: nowrap;
    font-weight: 600;
}
.cart-box .cart-box-item .cart-item-close {
    position: static;
    padding: 0 0 0 4px;
    font-size: 0.8rem;
}
.cart-box .cart-box-foot {
    padding: 12px 14px 16px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}
.cart-box .cart-box-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1rem;
}
/* Push page content aside so the cart column doesn't cover it */
body.cart-box-open {
    padding-right: 300px;
}
@media (max-width: 991.98px) {
    .cart-box {
        width: 260px;
    }
    body.cart-box-open {
        padding-right: 260px;
    }
}
/* ------------------------------- END Shopping Cart Box ------------------------------- */

/* ------------------------------- Custom Buttons ------------------------------- */
.btn.custom-btn {
    border-radius: 50rem;
    font-weight: 700;
    padding: 0.5rem 1.4rem;
    border: 2px solid transparent;
    line-height: 1.2;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.btn.custom-btn.btn-sm {
    padding: 0.3rem 1rem;
    font-weight: 600;
}
/* Light variant: light fill + main color text, inverts on hover */
.btn.custom-btn.primary-light {
    background-color: var(--text-on-bg-main-color);
    color: var(--tenant-main-color);
    border-color: var(--tenant-main-color);
}
.btn.custom-btn.primary-light:hover,
.btn.custom-btn.primary-light:focus,
.btn.custom-btn.primary-light:active {
    background-color: var(--tenant-main-color);
    color: var(--text-on-bg-main-color);
    border-color: var(--tenant-main-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
/* ------------------------------- END Custom Buttons ------------------------------- */

/* ------------------------------- Related Lessons ------------------------------- */

/* series switcher (names separated by "|") */
.series-selector {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .15rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--bs-primary-border-subtle);
}
.series-selector .series-tab {
    padding: .1rem .35rem;
    border-radius: .35rem;
    transition: color .2s ease, background-color .2s ease;
}
.series-selector .series-tab.active {
    color: var(--tenant-main-color) !important;
    background: var(--bs-primary-bg-subtle);
    background-image: none !important; /* cancel the animated link underline on the active pill */
}

/* "You own X / Y" heading row */
.related-series-progress {
    padding: .5rem .85rem;
    border-radius: .6rem;
    background: var(--bs-primary-bg-subtle);
    border: 1px solid var(--bs-primary-border-subtle);
}
.related-series-progress-bar {
    height: .5rem;
    background-color: #fff;
    border-radius: 1rem;
    overflow: hidden;
}
.related-series-progress-bar .progress-bar {
    background-color: var(--tenant-accent-color);
    border-radius: 1rem;
    transition: width .6s ease;
}
.related-series-badge {
    background: var(--tenant-main-color);
    color: var(--text-on-bg-main-color);
    font-weight: 600;
    border-radius: 1rem;
    padding: .3rem .6rem;
}

/* the list of related lessons */
.related-lessons-list .related-lesson-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .85rem;
    margin-bottom: .5rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-left: 3px solid transparent;
    border-radius: .6rem !important;
    background-image: none !important; /* cancel global anchor underline animation */
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.related-lessons-list .related-lesson-item:hover {
    transform: translateX(3px);
    box-shadow: 0 .25rem .75rem rgba(var(--bs-primary-rgb), .15);
    border-left-color: var(--tenant-main-color);
    z-index: 1;
}
.related-lesson-index {
    flex: 0 0 auto;
    width: 1.75rem;
    height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    color: var(--tenant-main-color);
    background: var(--bs-primary-bg-subtle);
    border-radius: 50%;
}
.related-lesson-title {
    color: #212529;
    font-weight: 500;
    line-height: 1.25;
}
.related-lesson-badge.owned {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .72rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--tenant-accent-color);
    background: color-mix(in srgb, var(--tenant-accent-color), #fff 85%);
    border: 1px solid color-mix(in srgb, var(--tenant-accent-color), #fff 55%);
    padding: .15rem .55rem;
    border-radius: 1rem;
}

/* the current lesson, when present in the list */
.related-lessons-list .related-lesson-item.highlighted {
    border-left-color: var(--tenant-accent-color);
    background: color-mix(in srgb, var(--tenant-accent-color), #fff 90%);
}
.related-lessons-list .related-lesson-item.highlighted .related-lesson-index {
    color: #fff;
    background: var(--tenant-accent-color);
}

.related-lessons-empty {
    border: 1px dashed var(--bs-border-color, #dee2e6);
    border-radius: .6rem;
}

/* ------------------------------- END Related Lessons ------------------------------- */


/* ================================ Series header ================================ */
.series-header {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--bs-primary-border-subtle);
    border-radius: 1rem;
    background: linear-gradient(180deg, var(--bs-primary-bg-subtle), #fff 65%);
}
.series-header-top {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.series-header-img {
    flex: 0 0 auto;
    width: 140px;
    height: 140px;
    border-radius: .85rem;
    overflow: hidden;
    box-shadow: 0 .35rem 1rem rgba(var(--bs-primary-rgb), .18);
}
.series-header-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.series-header-img { position: relative; background: #f5f7f9; }
.series-header-icon {
    font-size: 4rem;
    color: var(--tenant-main-color);
}
/* no picture, no icon: the first lessons' tiles, side by side */
.series-mosaic {
    display: grid;
    gap: 2px;
    background: #fff;
}
.series-mosaic-1 { grid-template-columns: 1fr; }
.series-mosaic-2 { grid-template-columns: 1fr 1fr; }
.series-mosaic-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.series-mosaic-3 .series-mosaic-cell:first-child { grid-row: span 2; }
.series-mosaic-4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.series-mosaic-cell {
    position: relative;
    overflow: hidden;
    min-height: 0;
}
.series-mosaic-cell .lesson-tile-face { border-radius: 0; border: 0; }
.series-mosaic-cell .lesson-tile-hand { font-size: .56rem; padding-left: .25rem; }
.series-mosaic-cell .lesson-tile-kind { font-size: 1.4rem; }
.series-mosaic-1 .lesson-tile-hand { font-size: .95rem; padding-left: .8rem; }
/* the levels the series spans, as a band */
.series-level-band {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .15rem .3rem;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-align: center;
    color: #1d2733;
    text-shadow: 0 0 3px rgba(255, 255, 255, .9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.series-header-info {
    flex: 1 1 auto;
    min-width: 0;
}
.series-header-title {
    font-weight: 900;
    color: var(--tenant-main-color);
    margin-bottom: .5rem;
}
.series-header-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    margin-bottom: .5rem;
}
.series-header-teacher {
    color: var(--tenant-main-color);
    font-weight: 600;
    margin-right: .5rem;
}
.series-header-desc {
    color: #495057;
}

/* stat tiles */
.series-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .85rem;
    margin-top: 1.25rem;
}
/* vertical stats column, docked to the right of the top panel (shrinks header height) */
.series-stats-side {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    gap: .55rem;
    margin-top: 0;
    flex: 0 0 auto;
    width: 210px;
    padding-left: 1.25rem;
    border-left: 1px solid var(--bs-primary-border-subtle);
}
.series-stats-side .series-stat {
    padding: .55rem .75rem;
}
/* avg price sits with the purchase action instead of a tile */
.series-avg-price {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: right;
}
.series-avg-price-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6c757d;
}
.series-avg-price-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--tenant-main-color);
}
.series-stat {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .85rem 1rem;
    background: #fff;
    border: 1px solid var(--bs-primary-border-subtle);
    border-radius: .75rem;
    transition: box-shadow .15s ease, transform .15s ease;
}
.series-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 .35rem .9rem rgba(var(--bs-primary-rgb), .12);
}
.series-stat-icon {
    flex: 0 0 auto;
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--tenant-main-color);
    background: var(--bs-primary-bg-subtle);
    border-radius: .65rem;
}
.series-stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.1;
    color: #212529;
}
.series-stat-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #6c757d;
}

/* ownership + purchase actions */
.series-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--bs-primary-border-subtle);
}
/* reuses the .related-series-* look from lessons/show; this only sizes it for the actions row */
.series-own-progress {
    flex: 1 1 260px;
    min-width: 220px;
}

/* ================================ Lesson list ================================ */
.lesson-list {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}
.lesson-list-item {
    position: relative;
    display: flex;
    align-items: stretch;
    gap: 1.15rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-left: 4px solid transparent;
    border-radius: .75rem;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.lesson-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 .4rem 1rem rgba(var(--bs-primary-rgb), .14);
    border-left-color: var(--tenant-main-color);
}

/* left image */
.lesson-list-item-img {
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
    border-radius: .6rem;
    overflow: hidden;
    background: var(--bs-primary-bg-subtle);
}
.lesson-list-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* muted default icon (no real image) — centered, not stretched */
.lesson-list-item-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary-bg-subtle);
}
.lesson-list-item-img--placeholder img {
    width: 52%;
    height: 52%;
    object-fit: contain;
    opacity: .7;
}

/* no picture: the tile shows what is inside - a hand of its first deal, its video's
   picture, or the icon of its main kind - quiet, on a neutral tile; the level as a stripe */
.lesson-list-item-img { position: relative; }
.lesson-tile-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
/* how far the viewer is in the lesson (BILMS-542) */
.lesson-tile-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255, 255, 255, .75); z-index: 2; }
.lesson-tile-progress > span { display: block; height: 100%; background: #0866c6; }
.lesson-tile-progress.is-done > span { background: #1f9d55; }
/* a picture framed, so a light one - a white title card - still stands out from the page */
.lesson-tile-face:not(.is-plain) {
    border: 1px solid #dfe4ea;
    border-radius: inherit;
    background: #f5f7f9;
}
.lesson-tile-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.lesson-tile-face.is-plain {
    background: #f5f7f9;
    border: 1px solid #e6eaee;
    border-radius: inherit;
}
.lesson-tile-kind {
    font-size: 2.2rem;
    color: #a3adb8;
}
.lesson-tile-hand {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.32;
    color: #2b3540;
    padding-left: .35rem;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}
.tile-hand-row span { display: inline-block; width: 1em; margin-right: .1rem; }
.tile-suit-s, .tile-suit-c { color: #1d2733; }
.tile-suit-h, .tile-suit-d { color: #c62828; }
.lesson-tile-level {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
}
.lesson-tile-live {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .1rem 0;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    background: #d63a3a;
}

/* what is inside, under the title: "2 videos · 1 quiz · 12 deals" */
.lesson-contents-summary {
    font-size: .82rem;
    color: #6c757d;
    margin: -.15rem 0 .3rem;
}

/* a live session in the lesson: the next one, or the last (muted) */
.lesson-live-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    font-weight: 700;
    color: #b42323;
    background: #fdecec;
    border: 1px solid #f5c2c2;
    border-radius: 1rem;
    padding: .1rem .6rem;
    margin-right: .5rem;
}
.lesson-live-badge.is-past {
    color: #6c757d;
    background: #f1f3f5;
    border-color: #dee2e6;
    font-weight: 600;
}
.live-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: #d63a3a;
    animation: live-pulse 1.6s ease-in-out infinite;
}
@keyframes live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(214, 58, 58, .55); }
    50% { box-shadow: 0 0 0 .3rem rgba(214, 58, 58, 0); }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* the lesson's teachers, beside its categories */
.meta-teachers {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem;
}
.meta-teacher {
    position: relative;
    z-index: 2;
    font-weight: 600;
    color: #343a40;
    background-image: none !important;
}
.meta-teacher:hover {
    color: var(--tenant-main-color);
    text-decoration: underline;
}

/* the levels' legend on a level badge: this lesson's level marked */
.level-popover .popover-header {
    font-weight: 700;
    font-size: .9rem;
}
.level-popover .table { margin-bottom: 0; }
.level-popover tr.is-this-level td {
    font-weight: 700;
    background: color-mix(in srgb, var(--tenant-main-color), #fff 88%);
}

.lesson-list-item-body {
    flex: 1 1 auto;
    min-width: 0;
}
.lesson-list-item-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--tenant-main-color);
    margin-bottom: .35rem;
    line-height: 1.2;
}
.lesson-list-item-link {
    color: inherit;
    background-image: none !important; /* cancel global anchor underline animation */
}
.lesson-list-item-link:hover {
    color: var(--color-primary-darker);
}
/* level badge next to the title — raised above the stretched-link overlay so its
   hover popover (the difficulty-range legend) still triggers */
.lesson-list-item .target-level {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    height: 1.6rem;
    padding: 0 .35rem;
    margin-left: .4rem;
    font-size: .9rem;
    font-weight: 800;
    border: 2px solid;
    border-radius: .4rem;
    vertical-align: middle;
    cursor: help;
}

/* description excerpt */
.lesson-list-item-excerpt {
    margin: .4rem 0 .5rem;
    color: #6c757d;
    font-size: .92rem;
    line-height: 1.4;
}

/* metadata rows */
.meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    font-size: .9rem;
    color: #495057;
    margin-bottom: .2rem;
}
.meta-ico {
    color: var(--tenant-main-color);
    flex: 0 0 auto;
}
.meta-type {
    font-weight: 600;
    color: var(--tenant-main-color);
    margin-right: .5rem;
}
.meta-term {
    color: #343a40;
}
/* clickable series links — raised above the card's stretched-link so they're clickable */
.meta-series-link {
    position: relative;
    z-index: 2;
    color: var(--tenant-main-color);
    background-image: none !important; /* cancel global anchor underline animation */
    transition: color .15s ease;
}
.meta-series-link:hover {
    color: var(--color-primary-darker);
    text-decoration: underline;
}
.meta-sep {
    color: var(--bs-primary-border-subtle);
    margin: 0 .1rem;
}
.meta-line-tags {
    gap: .3rem;
}

/* clickable filter chips (categories / topics) — above the stretched link so they click */
.lesson-list-item-filters {
    position: relative;
    z-index: 2;
}
.meta-chip {
    display: inline-flex;
    align-items: center;
    font-size: .8rem;
    font-weight: 600;
    color: var(--tenant-main-color);
    background: var(--bs-primary-bg-subtle);
    border: 1px solid var(--bs-primary-border-subtle);
    padding: .1rem .55rem;
    border-radius: 1rem;
    background-image: none !important; /* cancel global anchor underline animation */
    transition: background-color .15s ease, color .15s ease;
}
.meta-chip:hover {
    color: var(--text-on-bg-main-color);
    background: var(--tenant-main-color);
}
.lesson-tag {
    display: inline-flex;
    align-items: center;
    font-size: .75rem;
    font-weight: 600;
    color: var(--tenant-accent-color);
    background: color-mix(in srgb, var(--tenant-accent-color), #fff 85%);
    border: 1px solid color-mix(in srgb, var(--tenant-accent-color), #fff 55%);
    padding: .1rem .5rem;
    border-radius: 1rem;
    background-image: none !important; /* cancel global anchor underline animation */
    transition: background-color .15s ease, color .15s ease;
}
.lesson-tag:hover {
    color: #fff;
    background: var(--tenant-accent-color);
}

/* right column: last-update date + price/buy/owned. Above the stretched link. */
.lesson-list-item-aside {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 1.1rem;
}
.lesson-updated {
    text-align: right;
    white-space: nowrap;
}
.lesson-updated-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #adb5bd;
    line-height: 1;
}
.lesson-updated-date {
    font-size: .85rem;
    font-weight: 600;
    color: #6c757d;
}
.lesson-purchase {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .4rem;
    text-align: right;
    min-width: 6.5rem;
}
.lesson-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--tenant-main-color);
}
.lesson-buy-btn {
    white-space: nowrap;
}
.lesson-owned-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-weight: 600;
    white-space: nowrap;
    color: var(--tenant-accent-color);
    background: color-mix(in srgb, var(--tenant-accent-color), #fff 85%);
    border: 1px solid color-mix(in srgb, var(--tenant-accent-color), #fff 55%);
    padding: .3rem .7rem;
    border-radius: 1rem;
}

@media (max-width: 767.98px) {
    .series-header-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    /* on narrow screens lay the side stats out horizontally to save vertical space */
    .series-stats-side {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        padding-left: 0;
        padding-top: 1rem;
        margin-top: .25rem;
        border-left: none;
        border-top: 1px solid var(--bs-primary-border-subtle);
    }
    .series-stats-side .series-stat {
        flex: 1 1 140px;
        text-align: left;
    }
    .lesson-list-item {
        flex-wrap: wrap;
    }
    .lesson-list-item-aside {
        align-self: stretch;
        width: 100%;
        justify-content: space-between;
        padding-top: .5rem;
        margin-top: .25rem;
        border-top: 1px dashed var(--bs-border-color, #dee2e6);
    }
}
/* ================================ Lesson filter panel ================================ */
.lesson-filter {
    border: 1px solid var(--bs-primary-border-subtle);
    border-radius: 1rem;
    background: linear-gradient(180deg, var(--bs-primary-bg-subtle), #fff 40%);
}
.lesson-filter-title {
    font-weight: 800;
    color: var(--tenant-main-color);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--bs-primary-border-subtle);
}
/* keep the filter alongside the list while scrolling on wide screens */
@media (min-width: 992px) {
    .lesson-filter {
        position: sticky;
        top: 1rem;
    }
}
.lesson-filter .form-label {
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--tenant-main-color);
    margin-bottom: .25rem;
}
/* align select2 widgets with bootstrap form controls */
.lesson-filter .select2-container .select2-selection--multiple {
    min-height: calc(2.375rem + 2px);
    border-color: var(--bs-border-color, #ced4da);
    border-radius: .375rem;
}
.lesson-filter .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: var(--bs-primary-bg-subtle);
    border-color: var(--bs-primary-border-subtle);
    color: var(--tenant-main-color);
    border-radius: 1rem;
    padding: 0 .3rem 0 .5rem;
}
/* ------------------------------- END Series header & Lesson list ------------------------------- */

/* the header's link to the page you are on: readable on the dark bar, underlined in the site's accent
   (style.css used --ag-light-gray and --ag-red-color, which no site defines - the link went dark on dark) */
header .navbar-nav .nav-link.active,
header .navbar-nav .show > .nav-link {
    color: #fff;
}
header .nav-link::before {
    background-color: var(--tenant-accent-color, #dc3545);
}

/* the articles page's band: the heading readable on the site's colour (the theme's headings are in that very colour) */
.articles-hero .articles-hero-title {
    color: var(--text-on-bg-main-color, #fff);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -.01em;
}

/* =============================== The site's look ===============================
   One look for every teacher's site, from their few colours: a light header (or one in the main colour),
   one page heading for every page, quiet cards. Tints are mixed from the main colour, so any palette works. */
:root {
    --site-ink: #1f2933;
    --site-muted: #5f6b76;
    --site-tint: color-mix(in srgb, var(--tenant-main-color), #fff 94%);
    --site-tint-strong: color-mix(in srgb, var(--tenant-main-color), #fff 86%);
    --site-line: color-mix(in srgb, var(--tenant-main-color), #fff 84%);
    --site-radius: 14px;
}

/* ---- header ---- */
.site-header .navbar { height: 3.75rem; padding: 0; z-index: 1001; }
.site-header--light .navbar { background: #fff; border-bottom: 1px solid var(--site-line); box-shadow: 0 1px 10px rgba(16, 24, 40, .05); }
.site-header--brand .navbar { background: var(--tenant-main-color); }
.site-header .navbar-brand { display: flex; align-items: center; padding: 0; margin-right: 1.5rem; }
.site-header .navbar-brand img { max-height: 42px; max-width: 200px; width: auto; }
.site-header-name { font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; color: var(--tenant-main-color); }
.site-header--brand .site-header-name { color: var(--text-on-bg-main-color); }

.site-header.site-header .navbar-expand-lg .navbar-nav .nav-link {
    display: flex; align-items: center; height: 3.75rem; padding: 0 .95rem; position: relative;
    font-size: .95rem; font-weight: 600; letter-spacing: .01em; text-transform: none; text-align: left;
    color: var(--site-muted); background-image: none !important; transition: color .15s ease;
}
.site-header--light .navbar-nav .nav-link:hover,
.site-header--light .navbar-nav .nav-link.active { color: var(--tenant-main-color) !important; }
.site-header--brand.site-header .navbar-expand-lg .navbar-nav .nav-link { color: color-mix(in srgb, var(--text-on-bg-main-color), transparent 22%); }
.site-header--brand .navbar-nav .nav-link:hover,
.site-header--brand .navbar-nav .nav-link.active { color: var(--text-on-bg-main-color) !important; }
.site-header .nav-link::before {
    left: .95rem; width: calc(100% - 1.9rem); bottom: 0; height: 0; border-radius: 3px 3px 0 0;
    background-color: var(--tenant-accent-color, #dc3545);
}
.site-header .nav-link:hover::before { height: 2px; }
.site-header .nav-link.active::before { height: 3px; }

.site-header-account { display: flex; align-items: center; }
.site-header-user {
    display: inline-flex; align-items: center; gap: .5rem; padding: .22rem .75rem .22rem .25rem;
    border: 1px solid var(--site-line); border-radius: 999px; color: var(--site-ink); text-decoration: none; font-weight: 600; font-size: .92rem;
    background-image: none !important;
}
.site-header-user:hover { border-color: var(--tenant-main-color); color: var(--tenant-main-color); }
.site-header-avatar {
    width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--tenant-main-color); color: var(--text-on-bg-main-color); font-weight: 800; font-size: .85rem;
}
.site-header--brand .site-header-user { border-color: color-mix(in srgb, var(--text-on-bg-main-color), transparent 65%); color: var(--text-on-bg-main-color); }
.site-header--brand .site-header-avatar { background: var(--tenant-accent-color); color: var(--text-on-bg-accent-color); }
.site-header-login {
    display: inline-flex; align-items: center; gap: .4rem; padding: .4rem 1rem; border-radius: 999px; font-weight: 700; font-size: .92rem;
    border: 1.5px solid var(--tenant-main-color); color: var(--tenant-main-color); text-decoration: none; background-image: none !important;
}
.site-header-login:hover { background: var(--tenant-main-color); color: var(--text-on-bg-main-color); }
.site-header--brand .site-header-login { border-color: var(--text-on-bg-main-color); color: var(--text-on-bg-main-color); }
.site-header--brand .site-header-login:hover { background: var(--text-on-bg-main-color); color: var(--tenant-main-color); }
.site-header .navbar-toggler { border: 0; font-size: 1.7rem; padding: .2rem .4rem; color: var(--tenant-main-color); box-shadow: none; background: transparent; }
.site-header--brand .navbar-toggler { color: var(--text-on-bg-main-color); }
@media (max-width: 991.98px) {
    .site-header .navbar-collapse { position: absolute; top: 3.75rem; left: 0; right: 0; padding: .5rem 1rem 1rem; box-shadow: 0 10px 20px rgba(16, 24, 40, .08); }
    .site-header--light .navbar-collapse { background: #fff; border-bottom: 1px solid var(--site-line); }
    .site-header--brand .navbar-collapse { background: var(--tenant-main-color); }
    .site-header.site-header .navbar-expand-lg .navbar-nav .nav-link { height: auto; padding: .7rem .25rem; }
    .site-header .nav-link::before { display: none; }
    .site-header-account { margin-top: .5rem; }
}

/* ---- the page heading, the same on every page ---- */
.site-page-head { background: var(--site-tint); border-bottom: 1px solid var(--site-line); padding: 1.6rem 0 1.5rem; margin-bottom: 2rem; }
.site-page-head .breadcrumb { margin-bottom: .45rem; font-size: .85rem; }
.site-page-head .breadcrumb a { color: var(--site-muted); text-decoration: none; background-image: none !important; }
.site-page-head .breadcrumb a:hover { color: var(--tenant-main-color); }
.site-page-head .breadcrumb-item.active { color: var(--site-muted); }
.site-page-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.site-page-head h1 {
    margin: 0; color: var(--tenant-main-color); font-weight: 800; letter-spacing: -.015em;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; text-wrap: balance;
}
.site-page-head .site-page-lead { margin: .4rem 0 0; color: var(--site-muted); font-size: 1.05rem; max-width: 62ch; }
.site-page-head-actions { margin-left: auto; display: flex; gap: .5rem; align-items: center; }
.site-page-head--slim { padding: .8rem 0 .2rem; }
.site-page-head--slim .breadcrumb { margin-bottom: .4rem; }

/* ---- featured (articles): a picture above, the words below, the site's tint ---- */
.site-feature { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--site-line); border-radius: var(--site-radius); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.site-feature:hover { box-shadow: 0 10px 28px rgba(16, 24, 40, .08); transform: translateY(-2px); }
.site-feature-picture { display: block; position: relative; aspect-ratio: 16 / 7; overflow: hidden; background: var(--site-tint); background-image: none !important; }
.site-feature-picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.site-feature-body { padding: 1.1rem 1.3rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.site-feature-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; font-size: .82rem; color: var(--site-muted); margin-bottom: .45rem; }
.site-feature-meta a { color: var(--site-muted); text-decoration: none; background-image: none !important; }
.site-feature-meta a:hover { color: var(--tenant-main-color); }
.site-feature-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .55rem; border-radius: 999px; font-weight: 700;
    background: color-mix(in srgb, var(--tenant-accent-color), #fff 82%); color: color-mix(in srgb, var(--tenant-accent-color), #000 35%); }
.site-feature h2 { font-size: 1.35rem; font-weight: 800; line-height: 1.25; margin: 0 0 .4rem; }
.site-feature h2 a { color: var(--tenant-main-color); text-decoration: none; background-image: none !important; }
.site-feature p { color: var(--site-muted); margin: 0 0 .8rem; }
.site-feature-more { margin-top: auto; font-weight: 700; color: var(--tenant-main-color); text-decoration: none; background-image: none !important; align-self: flex-start; }
.site-feature-more:hover { text-decoration: underline; }

/* ---- the lesson page's panel: the lesson in a few words, then its segments as cards ---- */
#side-lesson-content-wrapper { background: var(--site-tint); border-left: 1px solid var(--site-line); padding-top: 5.25rem; padding-left: 1.1rem; padding-right: 1.1rem; }
.lesson-panel-head { background: #fff; border: 1px solid var(--site-line); border-radius: var(--site-radius); padding: 1rem 1.1rem 1.1rem; margin-bottom: 1rem; }
.lesson-panel-title { font-size: 1.45rem; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--tenant-main-color); margin: 0 0 .6rem; text-wrap: balance; }
.lesson-panel-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .7rem; }
.lesson-chip {
    display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .6rem; border-radius: 999px;
    background: var(--site-tint); border: 1px solid var(--site-line); color: var(--site-ink); font-size: .8rem; font-weight: 600;
}
.lesson-chip i { color: var(--tenant-main-color); }
.lesson-chip-dot { width: .6rem; height: .6rem; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.lesson-chip--owned { background: var(--bs-success-bg-subtle); border-color: var(--bs-success-border-subtle); color: var(--bs-success-text-emphasis); }
.lesson-chip--owned i { color: var(--bs-success); }
#description > a.lesson-panel-about::after { content: none; }
.lesson-panel-about { display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; font-weight: 700; color: var(--tenant-main-color); text-decoration: none; background-image: none !important; margin-bottom: .6rem; }
.lesson-panel-about-chevron { transition: transform .2s ease; font-size: .75rem; }
.lesson-panel-about:not(.collapsed) .lesson-panel-about-chevron { transform: rotate(180deg); }
.lesson-panel-description { font-size: .9rem; color: var(--site-muted); padding: .1rem 0 .7rem; }
.lesson-panel-description p:last-child { margin-bottom: 0; }
.lesson-panel-buy .btn { border-radius: 10px; font-weight: 700; }

.side-content-menu { display: flex; flex-direction: column; gap: .6rem; padding-bottom: 2rem; }
.lesson-progress-total { padding: .2rem .25rem .4rem; }
.lesson-progress-total .progress { height: 6px; }
.lesson-video-resume { color: #5b6b85; }
.side-content-menu .content-menu-item { background: #fff; border: 1px solid var(--site-line); border-left: 1px solid var(--site-line); border-radius: 12px; margin: 0; overflow: hidden; }
.side-content-menu .content-menu-item > .btn { padding: .75rem 1rem .7rem; border: 0; border-radius: 0; text-align: left; }
.side-content-menu .content-menu-item > .btn:hover,
.side-content-menu .content-menu-item > .btn:not(.collapsed) { background: var(--site-tint); }
.side-content-menu h2 { font-size: .98rem; font-weight: 800; color: var(--tenant-main-color); margin-bottom: .35rem; }
.side-content-menu .meta-progress-wrapper { display: flex; align-items: center; gap: .75rem; }
.side-content-menu .meta-progress { font-size: .75rem; color: var(--site-muted); white-space: nowrap; }
.side-content-menu .progress { flex: 1; height: 4px; border: 0; border-radius: 4px; background: var(--site-line); }
.side-content-menu .progress-bar { background-color: var(--tenant-accent-color) !important; border-radius: 4px; }
.side-content-menu .segment-item-wrapper { border-top: 1px solid var(--site-line); }
.side-content-menu .segment-item-wrapper .segment-content-link { display: block; padding: .55rem 1rem .55rem 2.6rem; color: var(--site-ink); transition: background-color .15s ease; }
.side-content-menu .segment-item-wrapper a:hover,
.side-content-menu .segment-item-wrapper a:focus { background-color: var(--site-tint); }
.side-content-menu .segment-item-wrapper a.active {
    background-color: color-mix(in srgb, var(--tenant-main-color), #fff 90%);
    box-shadow: inset 3px 0 0 var(--tenant-main-color);
}
.side-content-menu .segment-item-wrapper a.active .fw-600 { color: var(--tenant-main-color); }
.side-content-menu .segment-item-wrapper .fw-600 { font-size: .9rem; font-weight: 700; line-height: 1.3; }
.side-content-menu .segment-item-wrapper .form-check { left: 1rem; top: .62rem; }
.side-content-menu .segment-item-wrapper .segment-item-meta { margin-top: .1rem; display: flex; align-items: center; gap: .35rem; }
.side-content-menu .segment-item-wrapper .segment-item-meta svg { width: 13px; fill: var(--site-muted); stroke: var(--site-muted); }
.side-content-menu .segment-item-wrapper .segment-item-meta div { font-size: .74rem; color: var(--site-muted); text-transform: capitalize; }
.side-content-menu .btn.collapsed:has(~ .collapse:not(.show) a.active) { background-color: color-mix(in srgb, var(--tenant-main-color), #fff 92%); }
#menu-toggle.lesson-panel-toggle {
    top: 4.5rem; right: 1.2rem; display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px;
    background: #fff; border: 1px solid var(--site-line); color: var(--tenant-main-color); font-size: .8rem; font-weight: 700;
    text-decoration: none; background-image: none !important; box-shadow: 0 2px 8px rgba(16, 24, 40, .06);
}
#menu-toggle.lesson-panel-toggle:hover { border-color: var(--tenant-main-color); }
#side-lesson-content-wrapper { padding-top: 6.6rem; }
#lesson-content-nav { background: #fff; border: 1px solid var(--site-line); border-radius: 12px; }
#page-content-wrapper .breadcrumb { font-size: .85rem; margin: .9rem 0 .7rem; }
#page-content-wrapper .breadcrumb a { color: var(--site-muted); text-decoration: none; background-image: none !important; }
#page-content-wrapper .breadcrumb a:hover { color: var(--tenant-main-color); }

/* ---- footer: the main colour, calm ---- */
.site-footer { background: var(--tenant-main-color); color: color-mix(in srgb, var(--text-on-bg-main-color), transparent 15%); margin-top: 3rem; }
.site-footer a { color: var(--text-on-bg-main-color); text-decoration: none; background-image: none !important; }
.site-footer a:hover { text-decoration: underline; }
.site-footer-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem 3rem; padding: 2.6rem 0 2rem; }
@media (max-width: 767.98px) { .site-footer-top { grid-template-columns: 1fr; } }
.site-footer-brand img { max-height: 48px; max-width: 220px; margin-bottom: 1rem; }
.site-footer-name { display: block; font-size: 1.35rem; font-weight: 800; color: var(--text-on-bg-main-color); margin-bottom: 1rem; }
.site-footer-pages { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-bottom: 1.1rem; font-weight: 600; }
.site-footer-social { display: flex; gap: .6rem; }
.site-footer-social a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--text-on-bg-main-color), transparent 88%); font-size: 1.1rem; }
.site-footer-social a:hover { background: color-mix(in srgb, var(--text-on-bg-main-color), transparent 75%); text-decoration: none; }
.site-footer-social img { width: 20px; height: 20px; object-fit: contain; }
.site-footer-label { display: block; font-weight: 800; font-size: 1.05rem; color: var(--text-on-bg-main-color); margin-bottom: .2rem; }
.site-footer-hint { font-size: .88rem; margin-bottom: .7rem; }
.site-footer-newsletter .form-control { border: 0; border-radius: 10px; }
.site-footer-newsletter .btn { border-radius: 10px; font-weight: 700; }
.site-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; padding: 1rem 0 1.2rem; font-size: .82rem;
    border-top: 1px solid color-mix(in srgb, var(--text-on-bg-main-color), transparent 80%); }

/* ---- a series on the list of series ---- */
.series-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--site-line); border-radius: var(--site-radius); overflow: hidden;
    color: var(--site-ink); text-decoration: none; background-image: none !important; transition: box-shadow .2s ease, transform .2s ease; }
.series-card:hover { box-shadow: 0 10px 28px rgba(16, 24, 40, .08); transform: translateY(-2px); color: var(--site-ink); }
.series-card-picture { position: relative; aspect-ratio: 16 / 8; background: var(--site-tint); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.series-card-picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.series-card-picture i { font-size: 2.6rem; color: color-mix(in srgb, var(--tenant-main-color), #fff 45%); }
.series-card-band { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; }
.series-card-body { padding: 1rem 1.15rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.series-card h2 { font-size: 1.25rem; font-weight: 800; color: var(--tenant-main-color); margin: 0 0 .3rem; }
.series-card-words { color: var(--site-muted); font-size: .92rem; margin: 0 0 .6rem; }
.series-card-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .82rem; color: var(--site-muted); margin-bottom: .9rem; }
.series-card-meta i { color: var(--tenant-main-color); margin-right: .15rem; }
.series-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.series-card-price { font-weight: 800; font-size: 1.15rem; color: var(--site-ink); }
.series-card-price small { font-weight: 500; font-size: .75rem; color: var(--site-muted); }
.series-card-go { font-weight: 700; color: var(--tenant-main-color); font-size: .9rem; white-space: nowrap; }
.series-card-owned { margin-top: .8rem; display: flex; align-items: center; gap: .6rem; font-size: .78rem; color: var(--site-muted); }
.series-card-owned-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--site-line); overflow: hidden; }
.series-card-owned-bar span { display: block; height: 100%; background: var(--tenant-accent-color); }

/* ---- a segment's summary: what it holds, in words; a tick once it is done ---- */
.side-content-menu .segment-summary { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--site-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.side-content-menu .segment-summary i { color: var(--tenant-main-color); }
.side-content-menu .meta-progress-wrapper .progress[hidden] { display: none; }
.side-content-menu .segment-done-tick { display: none; margin-left: .4rem; color: var(--bs-success); font-size: .9rem; vertical-align: .05em; }
.side-content-menu .content-menu-item.is-done .segment-done-tick { display: inline; }
.side-content-menu .content-menu-item.is-single .segment-item-meta { display: none; }

/* =============================== Below the lesson: related lessons, comments =============================== */
.lesson-tab-count:not(:empty) { display: inline-block; min-width: 1.4em; margin-left: .2rem; padding: 0 .4em; border-radius: 1em; font-size: .75em; font-weight: 700; line-height: 1.5; background: var(--site-tint-strong); color: var(--tenant-main-color); }
.lesson-tab.active .lesson-tab-count:not(:empty) { background: rgba(255, 255, 255, .25); color: inherit; }

/* related lessons: each group the whole width, its lessons in two columns (read down, then across) */
.related-lessons-group:empty { display: none; }
.related-lessons-group + .related-lessons-group:not(:empty) { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--site-line); }
.related-lessons .related-series { margin-top: .25rem !important; }
@media (min-width: 768px) {
    .related-lessons .related-lessons-list { display: block; columns: 2; column-gap: 1rem; padding: 0 .25rem; }
    .related-lessons .related-lessons-list .related-lesson-item { break-inside: avoid; display: flex; }
}

/* comments */
.lesson-comments { --lc-avatar: 40px; max-width: 920px; }
.lc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.lc-title { margin: 0; font-size: 1.5rem; }
.lc-count:not(:empty) { margin-left: .25rem; font-size: .65em; font-weight: 700; vertical-align: middle; padding: .1em .55em; border-radius: 1em; background: var(--site-tint-strong); color: var(--tenant-main-color); }
.lc-follow { margin: 0; font-size: .9rem; color: var(--site-muted); }
.lc-follow .form-check-input { cursor: pointer; }
.lc-follow .form-check-input:checked { background-color: var(--tenant-main-color); border-color: var(--tenant-main-color); }

.lc-avatar {
    flex: 0 0 var(--lc-avatar); width: var(--lc-avatar); height: var(--lc-avatar); border-radius: 50%; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; letter-spacing: .02em;
    background: var(--site-tint-strong); color: var(--tenant-main-color);
}
.lc-avatar { position: relative; }
.lc-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.lc-avatar--team { background: var(--tenant-main-color); color: var(--text-on-bg-main-color, #fff); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--tenant-accent-color, var(--tenant-main-color)); }

.lc-composer { display: flex; gap: .85rem; align-items: flex-start; background: #fff; border: 1px solid var(--site-line); border-radius: var(--site-radius); padding: 1rem; margin-bottom: 1.5rem; }
.lc-composer-main { flex: 1; min-width: 0; }
.lc-textarea { resize: none; border-radius: 10px; border-color: var(--site-line); min-height: 2.75rem; line-height: 1.5; }
.lc-textarea:focus { border-color: color-mix(in srgb, var(--tenant-main-color), #fff 40%); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--tenant-main-color), transparent 85%); }
.lc-composer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin-top: .5rem; }
.lc-composer-foot .btn-primary { margin-left: auto; padding-left: 1rem; padding-right: 1rem; }
.lc-about { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; margin: 0; padding: .2rem .6rem .2rem .45rem; border-radius: 1rem; background: var(--site-tint); color: var(--site-ink); font-size: .82rem; cursor: pointer; }
.lc-about .form-check-input { margin: 0; flex: 0 0 auto; }
.lc-about .form-check-input:checked { background-color: var(--tenant-main-color); border-color: var(--tenant-main-color); }
.lc-about span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-about i { color: var(--tenant-main-color); }
.lc-hint { font-size: .78rem; color: var(--site-muted); }
.lc-error { margin-top: .5rem; font-size: .88rem; color: #b42318; }
.suit-red { color: #d0021b; }

.lc-gate { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; background: var(--site-tint); border: 1px solid var(--site-line); border-radius: var(--site-radius); padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.lc-gate > i { font-size: 1.6rem; color: var(--tenant-main-color); }
.lc-gate > div { flex: 1; min-width: 220px; }
.lc-gate p { margin: .15rem 0 0; color: var(--site-muted); font-size: .92rem; }

.lc-loading, .lc-empty { padding: 2rem 1rem; text-align: center; color: var(--site-muted); }
.lc-empty i { display: block; font-size: 1.8rem; color: var(--site-line); margin-bottom: .35rem; color: color-mix(in srgb, var(--tenant-main-color), #fff 55%); }

.lc-thread { padding: 1rem 0; border-bottom: 1px solid var(--site-line); }
.lc-thread:last-child { border-bottom: 0; }
.lc-item { display: flex; gap: .85rem; align-items: flex-start; position: relative; border-radius: 12px; transition: background-color .6s ease, box-shadow .6s ease; }
.lc-item.is-flash { background: color-mix(in srgb, var(--tenant-accent-color, var(--tenant-main-color)), #fff 88%); box-shadow: 0 0 0 .5rem color-mix(in srgb, var(--tenant-accent-color, var(--tenant-main-color)), #fff 88%); }
.lc-main { flex: 1; min-width: 0; }
.lc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .4rem; font-size: .85rem; color: var(--site-muted); line-height: 1.4; }
.lc-name { font-weight: 700; color: var(--site-ink); font-size: .95rem; }
.lc-badge { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .12rem .5rem; border-radius: 1rem; background: var(--tenant-main-color); color: var(--text-on-bg-main-color, #fff); }
.lc-badge--team { background: var(--site-tint-strong); color: var(--tenant-main-color); }
.lc-dot { opacity: .6; }
.lc-edited { font-style: italic; }
.lc-about-chip { border: 0; background: var(--site-tint); color: var(--tenant-main-color); border-radius: 1rem; padding: .05rem .55rem; font-size: .78rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-about-chip:hover { background: var(--site-tint-strong); }
.lc-body { margin-top: .3rem; color: var(--site-ink); line-height: 1.6; overflow-wrap: anywhere; }
.lc-body a { color: var(--tenant-main-color); text-decoration: underline; background-image: none !important; }
.lc-mention { font-weight: 600; color: var(--tenant-main-color); margin-right: .15rem; }

.lc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; margin: .35rem 0 0 -.45rem; }
.lc-act { display: inline-flex; align-items: center; gap: .3rem; border: 0; background: none; padding: .25rem .5rem; border-radius: 8px; font-size: .83rem; font-weight: 600; color: var(--site-muted); }
button.lc-act:hover { background: var(--site-tint); color: var(--tenant-main-color); }
.lc-like.is-on, .lc-like.is-on:hover { color: #e0245e; }
.lc-likes { cursor: default; }
.lc-likes i { color: #e0245e; }
.lc-like:active i { transform: scale(1.25); }
.lc-like i { transition: transform .15s ease; }
.lc-confirm { display: inline-flex; align-items: center; gap: .1rem; margin-left: .35rem; font-size: .83rem; color: var(--site-ink); }
.lc-more-actions .dropdown-item { font-size: .9rem; }

.lc-flag { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 600; margin-bottom: .2rem; }
.lc-flag--pin { color: var(--tenant-main-color); }
.lc-flag--hidden { color: #9a6700; }
.lc-item.is-pinned { background: var(--site-tint); padding: .75rem; margin: 0 -.75rem; }
.lc-item.is-hidden > .lc-avatar, .lc-item.is-hidden .lc-body { opacity: .55; }
.lc-item.is-hidden .lc-body { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.lc-deleted { padding: .4rem 0; font-size: .9rem; font-style: italic; color: var(--site-muted); }

.lc-replies { margin: .75rem 0 0 calc(var(--lc-avatar) / 2 - 1px); padding-left: calc(var(--lc-avatar) / 2 + .85rem - 1px); border-left: 2px solid var(--site-line); display: flex; flex-direction: column; gap: .9rem; }
.lc-replies.is-empty { display: none; }
.lc-item--reply { --lc-avatar: 32px; }
.lc-item--reply .lc-avatar { font-size: .75rem; }
.lc-reply-form, .lc-edit-form { margin-top: .25rem; }
.lc-edit-form { margin-top: .4rem; }
.lc-replying { font-size: .8rem; color: var(--site-muted); margin-bottom: .3rem; }
.lc-reply-form .lc-composer-foot .btn-link, .lc-edit-form .lc-composer-foot .btn-link { margin-left: auto; color: var(--site-muted); text-decoration: none; }
.lc-reply-form .lc-composer-foot .btn-primary, .lc-edit-form .lc-composer-foot .btn-primary { margin-left: 0; }
.lc-edit-form .lc-composer-foot .btn-link { margin-left: auto; }
.lc-more { margin-top: .75rem; border-radius: 2rem; padding-left: 1.2rem; padding-right: 1.2rem; }

@media (max-width: 575.98px) {
    .lesson-comments { --lc-avatar: 34px; }
    .lc-composer { padding: .75rem; gap: .6rem; }
    .lc-composer > .lc-avatar { display: none; }
    .lc-hint { display: none; }
}

/* a student's dashboard on the site (BILMS-543) */
.student-dashboard .sd-date { width: 3rem; padding: .3rem 0; border-radius: .6rem; background: rgba(8, 102, 198, .08); line-height: 1.1; }
.student-dashboard .sd-date strong { font-size: 1.25rem; }
.student-dashboard .sd-date small { text-transform: uppercase; font-size: .7rem; letter-spacing: .04em; }
.student-dashboard .sd-row:hover .fw-semibold { text-decoration: underline; }

/* a lesson video's marks (BILMS-544): ticks on a thin bar, the list under it, a named deal's hands on hover */
.video-marks { margin-top: 10px; }
.video-marks .vm-bar { position: relative; height: 6px; margin: 4px 0 12px; border-radius: 3px; background: #e3e9f0; }
.video-marks .vm-played { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; background: color-mix(in srgb, var(--tenant-accent-color, #0861a9), #fff 60%); }
.video-marks .vm-tick { position: absolute; top: -4px; width: 4px; height: 14px; margin-left: -2px; padding: 0; border: 0; border-radius: 2px; background: #8a9bb0; cursor: pointer; }
.video-marks .vm-tick.has-deal { background: var(--tenant-accent-color, #0861a9); }
.video-marks .vm-tick.is-current { background: #e8590c; }
.video-marks .vm-list { display: flex; flex-direction: column; gap: 2px; }
.video-marks .vm-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 3px 6px; border-radius: 6px; }
.video-marks .vm-row.is-current { background: color-mix(in srgb, var(--tenant-accent-color, #0861a9), #fff 90%); }
.video-marks .vm-mark { display: inline-flex; gap: 10px; align-items: baseline; padding: 2px 0; border: 0; background: none; color: inherit; text-align: left; }
.video-marks .vm-mark:hover .vm-label { text-decoration: underline; }
.video-marks .vm-clock { min-width: 3.2em; color: var(--tenant-accent-color, #0861a9); font-variant-numeric: tabular-nums; font-weight: 600; }
.video-marks .vm-row.is-current .vm-label { font-weight: 600; }
.video-marks .vm-deal { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border: 1px solid #d5dde6; border-radius: 999px; background: #fff; font-size: .82em; cursor: default; }
.video-marks .vm-row.is-current .vm-deal { border-color: #e8590c; color: #b8460a; box-shadow: 0 0 0 3px rgba(232, 89, 12, .15); }
.video-marks .vm-deal-preview { position: absolute; z-index: 30; color: #1d2b3a; font-weight: 400; left: 0; top: calc(100% + 6px); display: none; width: 340px; max-width: 86vw; padding: 8px; border-radius: 12px; background: #fff; box-shadow: 0 8px 28px rgba(16, 37, 66, .18); }
.video-marks .vm-deal-preview .quiz-diagram { margin-bottom: 6px; font-size: .9rem; }
.video-marks .vm-deal:hover .vm-deal-preview, .video-marks .vm-deal:focus-within .vm-deal-preview, .video-marks .vm-deal.is-open .vm-deal-preview { display: block; }
.video-marks .vm-play { display: block; text-align: center; }
/* a student's own notes in the video, only theirs (BILMS-550): amber beside the teacher's marks */
.video-marks .vm-tick.is-mine { top: -6px; height: 18px; background: #d99a0b; }
.video-marks .vm-row.is-mine .vm-clock { color: #a86f00; }
.video-marks .vm-row.is-mine { background: #fff8e5; }
.video-marks .vm-row.is-mine.is-current { background: #ffeebf; }
.video-marks .vm-mine-icon { margin-right: 6px; color: #d99a0b; font-size: .85em; }
.video-marks .vm-mine-tools { display: inline-flex; gap: 2px; margin-left: auto; opacity: .55; }
.video-marks .vm-row.is-mine:hover .vm-mine-tools, .video-marks .vm-mine-tools:focus-within { opacity: 1; }
.video-marks .vm-mine-tool { padding: 2px 6px; border: 0; border-radius: 4px; background: none; color: #6b5a33; line-height: 1; }
.video-marks .vm-mine-tool:hover { background: #ffe6a3; }
.video-marks .vm-mine-add { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.video-marks .vm-mine-form { display: flex; flex: 1 1 100%; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: #fff8e5; }
.video-marks .vm-mine-form[hidden] { display: none; }
.video-marks .vm-mine-form .form-control { flex: 1 1 auto; min-width: 0; }
.video-marks .vm-mine-form .vm-clock { color: #a86f00; }
/* the student's notes in the lesson's side panel and on their dashboard */
.my-video-notes .mvn-row { display: flex; gap: 10px; align-items: baseline; padding: 6px 0; color: inherit; text-decoration: none; }
.my-video-notes .mvn-row + .mvn-row { border-top: 1px solid #eef1f5; }
.my-video-notes .mvn-row:hover .mvn-note { text-decoration: underline; }
.my-video-notes .mvn-clock { flex-shrink: 0; min-width: 3.2em; color: #a86f00; font-variant-numeric: tabular-nums; font-weight: 600; }
.my-video-notes .mvn-text { min-width: 0; }
/* the other way: a deal played in a lesson, to where a video talks of it */
.deal-player-videos { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: 10px 0 0; font-size: .85em; }
.deal-player-videos a { white-space: nowrap; }
