/* Main-site palette and typography. Native LMS markup and interactions stay intact. */
html.jdms-course{margin-top:0!important;scroll-padding-top:80px}
.jdms-course body{--accent-100:#1e4d3a;--accent-hover:#173f2f;--accent-50:rgba(30,77,58,.5);--accent-30:rgba(30,77,58,.3);--accent-10:#f2ece2;--accent-5:#f7f3ec;--accent-0:rgba(30,77,58,0);background:#fcfbf8!important;color:#1f1a14;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','HarmonyOS Sans SC','MiSans','Microsoft YaHei','Noto Sans SC',sans-serif!important;letter-spacing:.01em;padding-top:64px}
.jdms-course :where(h1,h2,h3,h4,p,button,input,.masterstudy-single-course-tabs,.masterstudy-curriculum-list__title){font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','HarmonyOS Sans SC','MiSans','Microsoft YaHei','Noto Sans SC',sans-serif!important}
.jdms-course #header,.jdms-course #footer,.jdms-course #wpadminbar,.jdms-course .masterstudy-single-course-widgets,.jdms-course .masterstudy-single-course-rating,.jdms-course .masterstudy-single-course__buttons,.jdms-course .masterstudy-single-course__topbar{display:none!important}
.jdms-header{position:fixed;inset:0 0 auto;z-index:1000;height:64px;background:#fcfbf8;border-bottom:1px solid #e8e0d4;color:#1f1a14}
.jdms-header-inner{height:100%;max-width:1280px;padding:0 32px;margin:auto;display:flex;align-items:center;gap:32px}
.jdms-brand{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:16px;color:#1f1a14!important;text-decoration:none!important;line-height:1}
.jdms-brand img{width:36px;height:36px;border-radius:50%;object-fit:cover}.jdms-brand b{font-weight:700}.jdms-brand i{font-style:normal;color:#6f665b;padding:0 5px}
.jdms-nav{display:flex;align-items:center;gap:24px;font-size:14px}.jdms-nav a{color:#6f665b;text-decoration:none}.jdms-nav a:hover{color:#1e4d3a}.jdms-nav a[aria-current="page"]{position:relative;color:#1f1a14;font-weight:600}.jdms-nav a[aria-current="page"]::after{content:"";position:absolute;left:0;right:0;bottom:-8px;height:3px;border-radius:2px;background:#f2a13b}
.jdms-header-actions{margin-left:auto;display:flex;align-items:center;gap:16px}.jdms-account{font-size:14px;color:#1f1a14!important;border:1px solid #e8e0d4;padding:8px 16px;border-radius:999px;text-decoration:none!important;white-space:nowrap}
.jdms-mobile-menu{display:none}.jdms-mobile-menu summary{cursor:pointer;list-style:none;font-size:20px}.jdms-mobile-menu nav{position:absolute;top:63px;right:0;left:0;padding:16px 24px;background:#fcfbf8;border-bottom:1px solid #e8e0d4;display:flex;flex-direction:column;gap:16px}.jdms-mobile-menu a{color:#1f1a14;text-decoration:none;font-size:14px}
.jdms-course #wrapper,.jdms-course #main{background:transparent!important}.jdms-course .stm-lms-wrapper{padding:56px 0 40px!important}.jdms-course .stm-lms-wrapper>.container{width:calc(100% - 64px);max-width:1184px;padding:0;margin:auto}
.jdms-course .masterstudy-single-course{display:grid!important;max-width:none!important;width:100%!important;grid-template-columns:minmax(0,1fr) 288px!important;column-gap:48px!important;row-gap:0!important;grid-template-areas:'heading cta' 'desc cta' 'info details' 'tabs details' 'content details'!important;align-items:start}.jdms-course .masterstudy-single-course__main,.jdms-course .masterstudy-single-course__sidebar{display:contents!important}
.jdms-course .masterstudy-single-course__info-block{border:0!important;padding:0!important}.jdms-course .masterstudy-single-course__info-block:has(.masterstudy-single-course-rating){display:none}
.jdms-course .masterstudy-single-course__heading{grid-area:heading!important;margin:0!important}.jdms-course .masterstudy-single-course-title{font-size:36px!important;line-height:1.3!important;font-weight:700!important;letter-spacing:0;color:#1f1a14!important;margin:0!important}
.jdms-course .masterstudy-single-course__desc{grid-area:desc!important;margin:14px 0 24px!important}.jdms-course .masterstudy-single-course-excerpt{font-size:16px!important;line-height:1.8!important;color:#6f665b!important}
.jdms-course .masterstudy-single-course__info{grid-area:info!important;margin:0 0 32px!important}.jdms-course .masterstudy-single-course-instructor__avatar{display:none}.jdms-course .masterstudy-single-course-instructor__info{padding:0!important}.jdms-course .masterstudy-single-course-instructor__title{color:#6f665b!important}.jdms-course .masterstudy-single-course-instructor__name{color:#1f1a14!important;font-size:14px!important}
.jdms-course .masterstudy-single-course-tabs{grid-area:tabs!important;margin:0 0 28px!important;border-color:#e8e0d4!important}.jdms-course .masterstudy-single-course-tabs__item{font-size:14px!important;color:#6f665b!important}.jdms-course .masterstudy-single-course-tabs__item_active{color:#1f1a14!important;border-color:#f2a13b!important;border-bottom-width:3px!important;font-weight:600!important}.jdms-course .masterstudy-single-course-tabs__item[data-id=reviews]{display:none}
.jdms-course .masterstudy-single-course-tabs__content{grid-area:content!important;min-width:0}.jdms-course .masterstudy-single-course-description{color:#1f1a14;line-height:1.9;font-size:16px}
.jdms-course .masterstudy-single-course__cta{grid-area:cta!important;margin:0!important;padding:24px!important;background:#fff;border:1px solid #e8e0d4;border-bottom:0;border-radius:16px 16px 0 0}
.jdms-course .masterstudy-buy-button__link{background:#1e4d3a!important;border-color:#1e4d3a!important;border-radius:999px!important;min-height:48px!important;color:#fff!important;box-shadow:none!important}.jdms-course .masterstudy-buy-button__title{font-weight:600!important;font-size:16px!important}
.jdms-course .masterstudy-single-course-details{grid-area:details!important;padding:0 24px 24px!important;margin:0!important;border:1px solid #e8e0d4;border-top:0;border-radius:0 0 16px 16px;background:#fff}.jdms-course .masterstudy-single-course-details__title{font-size:16px!important;color:#1f1a14!important}.jdms-course .masterstudy-single-course-details__item{border-color:#e8e0d4!important;color:#6f665b}
.jdms-course .masterstudy-curriculum-list__wrapper{border:1px solid #e8e0d4;border-radius:16px;margin-bottom:20px;background:#fff;overflow:hidden}.jdms-course .masterstudy-curriculum-list__section{padding:18px 20px!important;margin:0!important;background:#f2ece2}.jdms-course .masterstudy-curriculum-list__section-title{font-size:16px!important;font-weight:600!important;color:#1f1a14!important}.jdms-course .masterstudy-curriculum-list__link{padding:18px 20px!important;background:#fff!important;border-color:#e8e0d4!important}.jdms-course .masterstudy-curriculum-list__link:hover{background:#f7f3ec!important}.jdms-course .masterstudy-curriculum-list__title{font-size:16px!important;font-weight:500!important;color:#1f1a14!important}.jdms-course .masterstudy-curriculum-list__meta{color:#6f665b!important;font-size:14px!important}.jdms-course .masterstudy-curriculum-list__materials{margin:0!important}.jdms-course .masterstudy-curriculum-list__order{color:#6f665b!important}
.jdms-footer{display:flex;gap:20px;align-items:center;width:calc(100% - 64px);max-width:1184px;margin:48px auto 0;padding:24px 0;border-top:1px solid #e8e0d4;color:#6f665b;font-size:14px}.jdms-footer nav{display:flex;gap:16px}.jdms-footer a{color:#1f1a14}.jdms-preview{margin-left:auto;white-space:nowrap}
.jdms-course .masterstudy-course-player-header{top:64px!important;background:#fcfbf8!important;border-color:#e8e0d4!important}.jdms-course .masterstudy-course-player-content,.jdms-course .masterstudy-course-player-content__wrapper{background:#fcfbf8!important}.jdms-course .masterstudy-course-player-content h1{font-size:28px;font-weight:700;color:#1f1a14;letter-spacing:0}.jdms-course .masterstudy-course-player-curriculum{background:#f7f3ec!important;border-color:#e8e0d4!important}.jdms-course .masterstudy-course-player-navigation{background:#fcfbf8!important;border-color:#e8e0d4!important}.jdms-course .masterstudy-course-player-navigation__next a{background:#1e4d3a!important;border-radius:999px!important}.jdms-course .masterstudy-course-player-navigation__prev a{color:#1e4d3a!important}.jdms-course:has(.masterstudy-course-player-content) .jdms-footer{display:none}
.jdms-course :focus-visible{outline:2px solid #1e4d3a;outline-offset:4px}.jdms-course a,.jdms-course button{-webkit-tap-highlight-color:transparent}
.jdms-course .masterstudy-course-player-header__dark-mode{display:none}
/* Let each source retain its intrinsic ratio; cap tall videos without cropping. */
.jdms-course .masterstudy-plyr-video-player{aspect-ratio:auto!important;height:auto!important;max-height:70svh;object-fit:contain!important}
.jdms-course .plyr:fullscreen .masterstudy-plyr-video-player,.jdms-course .plyr--fullscreen-active .masterstudy-plyr-video-player{width:100%!important;height:100%!important;max-height:100vh;object-fit:contain!important}
@media(max-width:960px){.jdms-nav{display:none}.jdms-mobile-menu{display:block}.jdms-header-inner{padding:0 24px}.jdms-course .masterstudy-single-course{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:'heading' 'desc' 'info' 'cta' 'details' 'tabs' 'content'!important}.jdms-course .masterstudy-single-course-details{margin-bottom:32px!important}.jdms-course .masterstudy-single-course-title{font-size:28px!important}}
@media(max-width:600px){.jdms-header-inner{padding:0 16px;gap:12px}.jdms-brand{font-size:15px}.jdms-brand img{width:32px;height:32px}.jdms-account{padding:7px 12px;font-size:14px}.jdms-header-actions{gap:12px}.jdms-course .stm-lms-wrapper{padding-top:32px!important}.jdms-course .stm-lms-wrapper>.container{width:calc(100% - 40px)}.jdms-course .masterstudy-single-course-title{font-size:28px!important}.jdms-course .masterstudy-curriculum-list__link{padding:16px!important}.jdms-course .masterstudy-curriculum-list__section{padding:16px!important}.jdms-course .masterstudy-course-player-content h1{font-size:23px}.jdms-footer{width:calc(100% - 40px);gap:12px;flex-wrap:wrap}.jdms-footer nav{gap:12px}}

/* Keep translated lesson navigation labels on one line. */
.jdms-course .masterstudy-course-player-header__navigation .masterstudy-tabs__item{white-space:nowrap;min-width:max-content;flex:0 0 auto}

/* Course covers are 16:9 everywhere (record 82): one upload, copies made by masterstudy-course-cover-sizes.php.
   The old cover keeps its own rule in masterstudy-course-cover.php; drop the :not() when that rule is removed. */
.jdms-course .stm_lms_courses__single--image:not(:has(img[src*="/ai-middleman-course-cover-20260919"])),.jdms-course .stm_lms_courses__single--image__container:not(:has(img[src*="/ai-middleman-course-cover-20260919"])){height:auto!important;min-height:0!important}
.jdms-course .stm_lms_courses__single--image img:not([src*="/ai-middleman-course-cover-20260919"]){display:block!important;width:100%!important;height:auto!important;max-height:none!important;aspect-ratio:16/9;object-fit:cover!important;position:static!important;transform:none!important;border-radius:8px}

/* Native catalogue controls use theme colours outside the LMS accent variables. */
.jdms-course .entry-header{background-color:#1e4d3a!important}
.jdms-course .stm_lms_courses__search{border-radius:999px;overflow:hidden}
.jdms-course .stm_lms_courses__search input{height:48px!important;padding-right:56px!important;font-size:16px!important;border-color:#e8e0d4!important;border-radius:999px!important;color:#1f1a14!important}
.jdms-course .stm_lms_courses__search .lms-search-btn{width:48px!important;height:48px!important;background:#1e4d3a!important;color:#fff!important;border:0!important;border-radius:999px!important}
.jdms-course .stm_lms_courses_grid__sort .sort_label{background:transparent!important;color:#6f665b!important}
.jdms-course .stm_lms_courses__single__inner,.jdms-course .stm_lms_courses__single--inner{border-color:#e8e0d4!important;border-radius:16px!important;overflow:hidden;background:#fff!important}
.jdms-course .masterstudy-single-course-tabs__item_active{border-bottom:3px solid #f2a13b!important;box-shadow:none!important}
.jdms-course .masterstudy-single-course-tabs__item_active::before,.jdms-course .masterstudy-single-course-tabs__item_active::after{border-color:#f2a13b!important;box-shadow:none!important}
