/* Centre branding within the existing navigation row without increasing its height. */
html body .cwLessonHeaderBrand{position:absolute!important;left:50%!important;width:112px!important;height:38px!important;max-width:none!important;object-fit:contain!important;transform:translate(-50%,-50%)!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;pointer-events:none!important;user-select:none!important}
html body .cwBrandNeedsPosition{position:relative!important}

/* On narrow screens, keep the brand in its own row above the lesson controls. */
@media(max-width:760px){
 html body .cwUnifiedLessonBar>.cwLessonHeaderBrand{top:27px!important;width:112px!important;height:38px!important}
}
@media(max-width:640px){
 html body .lesson-nav.cwHasLessonHeaderBrand{box-sizing:border-box!important;height:auto!important;min-height:104px!important;padding-top:50px!important;padding-bottom:10px!important}
 html body .lesson-nav>.cwLessonHeaderBrand{top:25px!important;width:112px!important;height:38px!important}
}

/* When no horizontal space is free beside the controls, the brand takes its own row. */
html body .cwBrandStackRow{box-sizing:border-box!important;height:auto!important;padding-top:50px!important}
html body .cwBrandStackRow>.cwLessonHeaderBrand{top:25px!important;left:50%!important}
