/* Shared frontend layout safeguards. Keep overflow local to content that needs it. */
body:not(.kp-shell) img{max-width:100%}
body:not(.kp-shell) main :is(section,article,aside,form,fieldset,.panel,.card-content){min-width:0}
body:not(.kp-shell) :is(h1,h2,h3,h4,p,li,label){overflow-wrap:anywhere}
body:not(.kp-shell) :is(.course-grid,.category-grid,.detail-grid,.reader,.stats)>*{min-width:0}
body:not(.kp-shell) [hidden]{display:none!important}
body:not(.kp-shell) :is(input,select,textarea){max-width:100%}
body:not(.kp-shell) :is(button,.button){max-width:100%;white-space:normal;text-align:center}
body:not(.kp-shell) :is(.site-course-header,.mobile-nav) a:focus-visible{outline-offset:-3px}
body .site-course-header .avatar{flex:0 0 38px;overflow:hidden;line-height:1}
body .site-course-header .avatar img{display:block;width:100%;height:100%;max-width:100%;object-fit:cover;border-radius:inherit}
body .site-course-header .site-account-menu>summary{width:44px;height:44px;justify-content:center}
body .site-account-dropdown{max-width:calc(100vw - 24px);max-height:calc(100dvh - 140px);overflow:auto}
body .site-course-header .site-browse-menu{display:none;position:relative;background:transparent;margin:0;padding:0;border:0}
body .site-browse-menu>summary{display:grid;place-items:center;width:44px;height:44px;list-style:none;border:1px solid #d8e1d4;border-radius:9px;color:#244838}
body .site-browse-menu>summary::-webkit-details-marker{display:none}
body .site-browse-menu>nav{position:absolute;right:0;top:calc(100% + 10px);display:flex;flex-direction:column;gap:2px;width:250px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 140px);overflow:auto;background:white;border:1px solid #dce4d5;border-radius:12px;padding:8px;box-shadow:0 12px 36px #193b3020;z-index:60}
body .site-browse-menu>nav>a{display:block;white-space:normal;padding:12px;border-radius:7px;min-height:44px;font-size:14px;line-height:1.4}
body .site-browse-menu>nav>a:hover{background:#edf2e5}
body:not(.kp-shell) .reader :is(.reader-nav,.lesson){min-width:0}
body:not(.kp-shell) .reader-nav{top:calc(var(--site-header-height,110px) + 16px);max-height:calc(100dvh - var(--site-header-height,110px) - 32px);overflow:auto}
body:not(.kp-shell) .lesson :is(iframe,video){max-width:100%}
body:not(.kp-shell) .lesson :is(pre,table){max-width:100%;overflow:auto}
body:not(.kp-shell) :is(.page-heading,.course-heading){scroll-margin-top:calc(var(--site-header-height,110px) + 16px)}
@media(max-width:1250px){body .site-course-header .site-browse-menu{display:block}}
@media(max-width:850px){
 body .site-course-header .brand{flex:1 1 120px;max-width:calc(100% - 112px);font-size:18px;letter-spacing:-.5px}
 body .site-course-header .site-logo{display:block;max-height:36px;max-width:100%;width:auto;object-fit:contain}
 body .site-course-header .account-nav{gap:6px;margin-left:auto;max-width:55%}
 body .site-course-header .live-search-host{flex-basis:100%;width:100%;margin:0}
 body:not(.kp-shell) .reader-nav{position:static;max-height:none}
}
@media(max-width:760px){
 body:not(.kp-shell){padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
 body:not(.kp-shell) .hero h1{font-size:clamp(38px,11vw,57px);letter-spacing:-.055em;line-height:1.1}
 body:not(.kp-shell) .hero-proof{flex-wrap:wrap;gap:8px 16px}
 body:not(.kp-shell) .team-motif{flex-wrap:wrap}
 body:not(.kp-shell) .team-motif span{padding:12px;flex:1 1 65px;text-align:center}
 body:not(.kp-shell) .mobile-nav{padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));gap:4px;min-height:64px}
 body:not(.kp-shell) .mobile-nav a{flex:1 1 0;min-width:0;min-height:48px;padding:5px 3px;border-radius:8px}
 body:not(.kp-shell) .mobile-nav a[aria-current]{background:#eaf0df;color:#193b30;font-weight:700}
 body:not(.kp-shell) .mobile-nav .public-menu-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
 body:not(.kp-shell) .mobile-nav span{font-size:11px}
 body:not(.kp-shell) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px}
 body:not(.kp-shell) :is(.catalogue-filters label,.search label){margin-bottom:6px}
 body:not(.kp-shell) .reader-nav{padding:16px}
 body:not(.kp-shell) .reader-nav a{min-height:44px}
 body:not(.kp-shell) .reader .lesson fieldset{padding:16px 12px}
 body:not(.kp-shell) .pdf{height:60dvh;min-height:280px}
 body:not(.kp-shell) .site-back-top{bottom:calc(88px + env(safe-area-inset-bottom,0px));right:16px}
 body:not(.kp-shell) .whatsapp-help{bottom:calc(82px + env(safe-area-inset-bottom,0px))}
 body.site-course-page .cd-tabs a{min-height:44px}
}
@media(max-width:380px){
 body:not(.kp-shell) main{padding-left:16px;padding-right:16px}
 body:not(.kp-shell) .category-grid{grid-template-columns:1fr}
 body:not(.kp-shell) .category h3{min-height:0}
 body:not(.kp-shell) .auth{padding:22px 18px}
 body:not(.kp-shell) .stats .panel{padding:14px}
 body:not(.kp-shell) .site-learning-footer .lf-logo-wrap img{max-width:100%}
 body:not(.kp-shell) .site-learning-footer .lf-brand{max-width:100%}
}
@media print{body .site-browse-menu{display:none!important}}
@media(max-width:760px){body.site-course-page .cd-breadcrumb{display:none}}
.cd-hero-action{display:none}
.reader-outline-toggle[hidden],.reader-outline[hidden]{display:none!important}
.reader-outline-toggle{width:100%;margin:12px 0;min-height:44px}
.reader .reader-nav,.reader .lesson{min-width:0}
@media(max-width:850px){body.site-course-page .cd-hero-action{display:block;margin-top:22px}body.site-course-page .cd-hero-action .button,body.site-course-page .cd-hero-action button{width:100%;min-height:48px;background:#d4e890;color:#193b30;text-decoration:none;border-color:#d4e890}.reader .reader-nav{position:static;max-height:none}.reader .reader-nav h2{margin:12px 0}.reader .reader-nav progress{margin:8px 0}.reader .lesson{overflow-wrap:anywhere}.reader .lesson fieldset{min-width:0}.reader .lesson legend{white-space:normal}.reader .lesson :is(img,iframe,video){max-width:100%}.reader .lesson .choice{min-height:44px;padding:10px 0;align-items:flex-start;display:flex;gap:10px}}
@media(max-width:850px){body.site-course-page .cd-hero-action .button,body.site-course-page .cd-hero-action button{background:#d4e890!important;border-color:#d4e890!important;color:#193b30!important}}
@media(max-width:850px){.kp-shell .reader,body:not(.kp-shell) .reader{grid-template-columns:minmax(0,1fr)}}

/* Show the actual offer beside the mobile enrolment action. */
.cd-hero-price{font-size:24px;font-weight:700;line-height:1.3;margin:0 0 12px;color:inherit}
