/* Mad Hat LMS 1.5: frontend only. Existing bridge, access and admin builder unchanged. */
body.mhl-standalone-view {background:#f8f9fc!important}
/* Hide site navigation and theme-generated title on LMS singular pages only. */
body.mhl-standalone-view :is(header.site-header,#masthead,.site-header,.main-header-bar,.ast-primary-header-bar,.elementor-location-header,.thrv_header,.tve-header,.site-navigation,.main-navigation,.primary-menu,.navbar,.entry-header,.page-header){display:none!important}
body.mhl-standalone-view :is(.site-content,.content-area,.site-main,.entry-content,.post-content,.inside-article,.entry-content-wrap){max-width:none!important;width:100%!important;margin:0!important;padding:0!important;background:transparent!important}
body.mhl-standalone-view :is(.sidebar-main,#secondary,.widget-area){display:none!important}
body.mhl-standalone-view .mhl-experience{display:block;max-width:none;font-family:inherit;color:#182238;line-height:1.6}
.mhl-experience *{box-sizing:border-box}.mhl-experience a{text-decoration:none}.mhl-course-topbar{display:flex;align-items:center;gap:28px;min-height:76px;padding:16px max(28px,calc((100vw - 1280px)/2));background:#fff;border-bottom:1px solid #e6e9f1;box-shadow:0 2px 10px #19223a08}
.mhl-brand{font-weight:900!important;letter-spacing:.03em;font-size:17px;color:#151b30!important;white-space:nowrap}.mhl-brand span{color:#6340d5}.mhl-back-link{font-size:14px;font-weight:650;color:#5a35c5!important}.mhl-top-course{margin-left:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#69758c;font-size:13px;max-width:32%}
.mhl-page{max-width:1280px;margin:0 auto;padding:44px 28px 90px}.mhl-eyebrow{font-size:12px;font-weight:800;letter-spacing:.13em;color:#6841d4;margin-bottom:8px}.mhl-page-title{font-size:clamp(28px,3vw,38px)!important;line-height:1.25!important;font-weight:750!important;color:#182238!important;margin:0 0 26px!important}.mhl-course-hero{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(280px,1fr);gap:28px;align-items:start}.mhl-hero-media{border-radius:14px;overflow:hidden;min-height:280px;background:#111729;box-shadow:0 12px 32px #20294716}.mhl-video{width:100%;aspect-ratio:16/9;background:#0b0b0f;overflow:hidden}.mhl-video iframe,.mhl-video video,.mhl-video .wp-video,.mhl-video .wp-video-shortcode{display:block;width:100%!important;height:100%!important;max-width:100%;aspect-ratio:16/9}.mhl-hero-cover img{width:100%;height:auto;display:block}.mhl-video-placeholder{aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:white;background:linear-gradient(135deg,#2b185e,#7040d9)}.mhl-video-placeholder>span{display:grid;place-items:center;width:70px;height:70px;border-radius:50%;background:#ffffff27;font-size:26px}.mhl-video-placeholder strong{font-size:22px}.mhl-video-placeholder small{color:#ddd4f5}
.mhl-overview-card,.mhl-lesson-aside{background:#fff;border:1px solid #e2e6ef;border-radius:14px;box-shadow:0 8px 26px #22294b0a;padding:27px}.mhl-overview-heading,.mhl-aside-title{font-size:20px;font-weight:750;color:#1a2438;margin-bottom:20px}.mhl-progress-numbers{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px;margin-bottom:12px}.mhl-progress-numbers span{color:#63718a}.mhl-progress-track{height:8px;border-radius:20px;background:#e8eaf1;overflow:hidden}.mhl-progress-track span{display:block;height:100%;background:linear-gradient(90deg,#6738d4,#8055ed);border-radius:20px}.mhl-button,.mhl-experience button.mhl-button{display:inline-block;border:0!important;border-radius:8px;background:#6435d3!important;color:white!important;font-size:14px!important;font-weight:700!important;line-height:1.4;padding:13px 20px;cursor:pointer;text-align:center;box-shadow:0 5px 12px #6435d326}.mhl-button-wide{display:block;margin:24px 0 18px;width:100%}.mhl-overview-details{border-top:1px solid #ebedf3;padding-top:12px;margin-top:16px}.mhl-overview-details>div{display:flex;justify-content:space-between;padding:9px 0;font-size:14px}.mhl-overview-details span{color:#718096}.mhl-overview-details strong{font-weight:700;color:#273047}.mhl-content-section{margin-top:40px;max-width:100%}.mhl-content-section h2{font-size:24px!important;font-weight:750!important;margin:0 0 18px!important;color:#19243b}.mhl-description{font-size:15px;color:#4c5970;max-width:900px}.mhl-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.mhl-section-heading span{font-size:14px;color:#6a7890}
.mhl-curriculum{display:flex;flex-direction:column;gap:12px}.mhl-module{border:1px solid #e0e4ee;border-radius:10px;background:#fff;overflow:hidden}.mhl-module summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 22px;background:#f4f5fa;cursor:pointer;list-style:none}.mhl-module summary::-webkit-details-marker{display:none}.mhl-module-name{font-size:16px;font-weight:700;color:#262e43}.mhl-module-meta{display:flex;align-items:center;gap:14px;color:#718097;font-size:13px;white-space:nowrap}.mhl-chevron{font-size:22px;color:#6336ce;line-height:1;transition:transform .2s}.mhl-module[open] .mhl-chevron{transform:rotate(180deg)}.mhl-module-items{border-top:1px solid #e8eaf0}.mhl-module-item{display:flex;align-items:center;gap:13px;padding:15px 21px;border-bottom:1px solid #eef0f4;font-size:14px}.mhl-module-item:last-child{border-bottom:0}.mhl-module-item.is-current{background:#f3efff}.mhl-item-icon{color:#7040d6;font-size:13px;min-width:20px}.mhl-item-title{flex:1;color:#3e4b63}.mhl-item-title a{color:#3b4056!important;font-weight:550}.mhl-item-title a:hover{color:#6235d4!important}.mhl-preview-tag,.mhl-done-tag{font-size:11px;border-radius:20px;padding:3px 9px;color:#16764d;background:#e7f8ef}.mhl-done-tag{color:#5b3aba;background:#f0eaff}.mhl-access-note{font-size:14px;color:#69758a;margin-top:20px}
.mhl-lesson-layout{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(285px,.85fr);gap:28px;align-items:start}.mhl-lesson-main{min-width:0;background:#fff;border:1px solid #e5e7ef;border-radius:13px;overflow:hidden;box-shadow:0 8px 24px #1c29420b}.mhl-lesson-body{padding:28px;font-size:15px;color:#3d4960}.mhl-lesson-body form{margin:22px 0}.mhl-lesson-aside{padding:20px;position:sticky;top:22px}.mhl-lesson-aside .mhl-aside-title{font-size:18px}.mhl-lesson-aside .mhl-module summary{padding:14px 13px}.mhl-lesson-aside .mhl-module-name{font-size:14px}.mhl-lesson-aside .mhl-module-meta{font-size:11px}.mhl-lesson-aside .mhl-module-item{padding:12px}.mhl-aside-progress{margin-top:24px;font-size:13px}.mhl-aside-progress .mhl-progress-track{margin-top:10px}.mhl-navigation{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;border-top:1px solid #e7e9f1;padding-top:20px;margin-top:28px}.mhl-navigation a,.mhl-download{color:#6435d3!important;font-weight:700}.mhl-completed{color:#16764d;font-weight:700}.mhl-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:18px}.mhl-card{background:#fff;border:1px solid #e4e6ef;border-radius:12px;padding:18px}.mhl-card img{max-width:100%;height:auto}
@media(max-width:900px){.mhl-course-hero,.mhl-lesson-layout{grid-template-columns:1fr}.mhl-lesson-aside{position:static}.mhl-page{padding:28px 20px 60px}.mhl-course-topbar{padding:15px 20px}.mhl-top-course{display:none}}@media(max-width:520px){.mhl-course-topbar{gap:12px;justify-content:space-between}.mhl-brand{font-size:13px}.mhl-back-link{font-size:12px}.mhl-page{padding:22px 14px 45px}.mhl-hero-media{min-height:180px}.mhl-overview-card{padding:20px}.mhl-module summary{padding:16px 12px}.mhl-module-meta{font-size:11px;gap:6px}.mhl-module-item{padding:13px 12px}.mhl-lesson-body{padding:18px}}

/* v1.6: course sections and tighter Tutor-style learning layout */
html{scroll-behavior:smooth}
.mhl-course-page .mhl-content-section{scroll-margin-top:28px}
.mhl-course-tabs{display:flex;align-items:center;gap:0;border-bottom:1px solid #dfe3ed;margin:30px 0 0;overflow-x:auto}
.mhl-course-tabs a{display:inline-flex;align-items:center;gap:9px;padding:14px 20px;border-bottom:3px solid transparent;color:#59647a!important;font-size:15px;font-weight:650;white-space:nowrap}
.mhl-course-tabs a:first-child{border-bottom-color:#6435d3;color:#6435d3!important}
.mhl-course-tabs a:hover,.mhl-course-tabs a:focus-visible{color:#6435d3!important;border-bottom-color:#6435d3}
.mhl-course-tabs a span{display:inline-flex;align-items:center;justify-content:center;border-radius:12px;padding:1px 7px;background:#f0ecfd;color:#6435d3;font-size:12px}
.mhl-course-page .mhl-about-section{margin-top:26px}.mhl-course-page .mhl-description{max-width:850px;line-height:1.8}
.mhl-course-page .mhl-content-section+.mhl-content-section{margin-top:42px}
.mhl-lesson-page{padding-top:28px}.mhl-lesson-heading{margin-bottom:17px}.mhl-lesson-heading .mhl-page-title{margin-bottom:0!important;font-size:30px!important}
.mhl-lesson-aside .mhl-aside-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.mhl-aside-count{font-size:12px;color:#768198;font-weight:500;white-space:nowrap}
.mhl-lesson-aside .mhl-curriculum{gap:9px}.mhl-lesson-aside .mhl-module{border-radius:9px}
.mhl-lesson-aside .mhl-module summary{background:#f4f2fa}.mhl-lesson-aside .mhl-module-item.is-current{border-left:3px solid #6435d3}
.mhl-lesson-body{line-height:1.75}.mhl-navigation a{display:inline-flex;align-items:center;padding:10px 14px;border-radius:7px;background:#f2edff}
.mhl-course-page .mhl-section-heading{margin-bottom:14px}.mhl-course-page .mhl-section-heading h2{margin-bottom:0!important}
.mhl-course-page .mhl-module summary:hover,.mhl-lesson-aside .mhl-module summary:hover{background:#eeebfa}
.mhl-experience :is(a,button,summary):focus-visible{outline:3px solid #977cf0;outline-offset:3px}
@media(max-width:900px){.mhl-lesson-page{padding-top:22px}.mhl-course-tabs{margin-top:22px}}
@media(max-width:520px){.mhl-course-tabs a{padding:12px 14px;font-size:13px}.mhl-lesson-heading .mhl-page-title{font-size:26px!important}.mhl-aside-count{font-size:11px}}

/* 1.6.1: completion-on-next, matching existing navigation styling. */
.mhl-navigation .mhl-nav-action{margin:0!important;display:inline-flex}
.mhl-navigation .mhl-nav-action button{display:inline-flex;align-items:center;padding:10px 14px;border:0;border-radius:7px;background:#f2edff;color:#6435d3;font:inherit;font-weight:700;cursor:pointer;text-decoration:underline}
.mhl-navigation .mhl-nav-action button:hover{background:#e9e0ff}
