/* Shared responsive layout for public pages and portal workspaces. */
/* Course media must fill CMS-designed cards, including at browser zoom levels. */
.format-image{position:relative;overflow:hidden}
.format-image img{position:absolute!important;inset:0!important;display:block!important;width:100%!important;min-width:100%!important;max-width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;margin:0!important}
:is(.course-card,.portal-course)>img,:is(.course-card,.portal-course)>a>img{display:block!important;width:100%!important;min-width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:16/9;object-fit:cover!important;margin-inline:0!important}
.blog-course-offer>a{display:block;width:100%}
.blog-course-offer>a>img{display:block!important;width:100%!important;min-width:100%!important;object-fit:cover!important}
html{scroll-padding-top:112px}
body:has(.topbar){--ft-content-width:1440px;--ft-page-gutter:clamp(20px,4vw,64px)}
body:has(.topbar) :is(.grid,.format-choice-grid,.premium-course-grid,.contact-layout,.checkout-shell,.receipt-grid,.blog-reading-layout)>*{min-width:0}
body:has(.topbar) :is(p,li,label,h1,h2,h3){overflow-wrap:break-word}
body:has(.topbar) :is(input,select,textarea){max-width:100%;box-sizing:border-box}
body:has(.topbar) :is(video,iframe){max-width:100%}
body:has(.topbar) .format-image{overflow:hidden;min-height:0;height:clamp(220px,20vw,320px)}
body:has(.topbar) .format-image>img{display:block;width:100%!important;max-width:none!important;height:100%!important;object-fit:cover;object-position:center}
body:has(.topbar) .learning-format-card{display:flex;flex-direction:column;height:100%}
body:has(.topbar) .format-body{display:flex;flex-direction:column;flex:1;min-width:0;padding:clamp(22px,2.2vw,34px)}
body:has(.topbar) .format-foot{margin-top:auto;padding-top:22px;gap:16px;flex-wrap:wrap}
body:has(.topbar) .format-section-head{max-width:760px}
body:has(.topbar) .format-section-head h2{font-size:clamp(32px,3.5vw,54px);line-height:1.12}
body:has(.topbar) .format-section-head p{font-size:clamp(16px,1.2vw,19px);line-height:1.65}
body:has(.topbar) :is(.premium-course-grid,.format-choice-grid){gap:clamp(20px,2vw,32px)}
body:has(.topbar) .blog-article-body{max-width:100%;line-height:1.8}
body:has(.topbar) .blog-article-body :is(img,video){height:auto;max-width:100%}
body:has(.topbar) .blog-article-body table{display:block;max-width:100%;overflow:auto}
body:has(.topbar) .st-grid>section{padding:0}
body:has(.topbar) .st-form{scroll-margin-top:130px}
@media(min-width:1440px){
 body:has(.topbar) :is(.topbar,.footer,section:not(section section)){padding-left:max(48px,calc((100% - var(--ft-content-width))/2))!important;padding-right:max(48px,calc((100% - var(--ft-content-width))/2))!important}
 body:has(.topbar) .st-grid>section{padding:0!important}
 body:has(.topbar) .topbar{gap:32px}
 body:has(.topbar) :is(.hero,.page-hero,.single-course-hero,.course-reference-hero){padding-top:clamp(64px,5vw,100px);padding-bottom:clamp(64px,5vw,100px)}
 body:has(.topbar) :is(.hero h1,.page-hero h1,.single-course-copy h1){font-size:clamp(52px,4vw,76px)}
 body:has(.topbar) :is(.footer-main,.footer-cta){max-width:1440px;margin-inline:auto}
}
@media(max-width:1100px) and (min-width:701px){
 body:has(.topbar) .grid.three{grid-template-columns:repeat(2,minmax(0,1fr))}
 body:has(.topbar) .footer-main{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
}
@media(max-width:960px){
 body:has(.topbar) .topbar{flex-wrap:wrap;gap:10px 14px;padding:12px 20px}
 body:has(.topbar) .topbar>.brand{flex-shrink:0}
 body:has(.topbar) .topbar>.actions{margin-left:auto;gap:8px}
 body:has(.topbar) .topbar>.nav{display:flex!important;order:3;flex:1 0 100%;align-items:center;justify-content:center;gap:12px 24px;flex-wrap:wrap;margin:0;font-size:13px}
 body:has(.topbar) .topbar>.nav>a,body:has(.topbar) .course-nav-link{min-height:36px;display:inline-flex;align-items:center}
 body:has(.topbar) .course-nav-toggle{height:36px}
 body:has(.topbar) .course-nav-submenu{max-height:55dvh;overflow:auto}
 body:has(.topbar) .blog-course-sidebar{position:static}
}
@media(max-width:700px){
 html{scroll-padding-top:136px}
 body:has(.topbar) section:not(section section){padding-left:20px!important;padding-right:20px!important}
 body:has(.topbar) :is(.grid.two,.grid.three,.format-choice-grid,.premium-course-grid,.footer-main){grid-template-columns:minmax(0,1fr)!important}
 body:has(.topbar) :is(.section-title,.footer-cta,.footer-bottom){gap:18px;flex-wrap:wrap}
 body:has(.topbar) .format-image{height:230px}
 body:has(.topbar) :is(.hero h1,.page-hero h1,.single-course-copy h1){font-size:clamp(34px,8vw,48px);line-height:1.12}
 body:has(.topbar) :is(.hero p,.page-hero p){font-size:17px;line-height:1.65}
 body:has(.topbar) :is(input,select,textarea){font-size:16px}
 body:has(.topbar) .st-grid>section{padding:0!important}
 body:has(.topbar) .blog-reading-layout{gap:24px}
 body:has(.topbar) .course-format-prices>span{flex-wrap:wrap}
 body:has(.topbar) :is(.footer-cta,.footer-main){gap:28px}
 body:has(.topbar) :is(.form,.market-card.form){min-width:0;max-width:100%}
 body:has(.topbar) .topbar .btn{min-height:40px;padding:9px 12px;font-size:12px}
}
@media(max-width:420px){
 body:has(.topbar) .topbar{padding:10px 14px;gap:8px}
 body:has(.topbar) .topbar .brand img{width:108px!important;height:auto!important}
 body:has(.topbar) .topbar>.nav{gap:8px 14px;font-size:12px}
 body:has(.topbar) .topbar .actions{gap:6px}
 body:has(.topbar) .topbar .btn{font-size:11px;padding:9px}
 body:has(.topbar) .format-foot .btn{width:100%;justify-content:center}
}
/* Keep wide data inside scrollable tables, rather than widening the page. */
.admin-shell .main{min-width:0}
.admin-shell :is(.card,.lm-card,.panel-head,.learning-module,.portal-workspace){min-width:0;max-width:100%;box-sizing:border-box}
.admin-shell :is(.table-wrap,.lm-table-wrap){width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.admin-shell :is(.datatable-toolbar,.datatable-controls,.datatable-footer,.panel-head,.lm-actions,.cms-actions){flex-wrap:wrap;gap:12px}
.admin-shell :is(input,select,textarea){max-width:100%;box-sizing:border-box}
.admin-shell :is(.form-grid,.overview-metrics,.portal-course-grid)>*{min-width:0}
.admin-shell .table td{overflow-wrap:anywhere}
@media(min-width:1920px){
 .admin-shell .main{padding-left:max(36px,calc((100vw - 292px - 1560px)/2));padding-right:max(36px,calc((100vw - 292px - 1560px)/2))}
}
@media(max-width:1100px){
 .admin-shell .overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .admin-shell .datatable-controls{width:100%;justify-content:flex-start}
}
@media(max-width:700px){
 .admin-shell .main{padding-left:16px;padding-right:16px}
 .admin-shell :is(.form-grid,.overview-grid,.portal-course-grid){grid-template-columns:minmax(0,1fr)!important}
 .admin-shell :is(.datatable-toolbar,.panel-head){align-items:flex-start}
 .admin-shell .datatable-controls>*{min-width:0;max-width:100%}
 .admin-shell .datatable-controls :is(input,select){width:100%;min-width:0}
 .admin-shell :is(.card,.lm-card){padding:20px}
 .admin-shell .table :is(th,td){padding:12px;font-size:13px}
 .admin-shell .table{min-width:680px}
 .admin-shell .note-editor{max-width:100%}
 .admin-shell .note-toolbar{white-space:normal}
}
@media(max-width:420px){.admin-shell .overview-metrics{grid-template-columns:minmax(0,1fr)}}
