/* Campus9X AB8.3 — shared website and Admin responsive QA fixes. */
:root { -webkit-text-size-adjust: 100%; }
.site-shell,.admin-shell,.admin-login-shell{min-width:280px}
.site-shell img,.admin-shell img,.admin-login-shell img{max-width:100%}
.site-shell .cx-public-brand,.site-shell .cx-public-footer-logo{min-width:0}
.site-shell .cx-public-brand img{object-fit:contain;object-position:left center}
.site-shell .cx-public-footer-logo{object-fit:contain;object-position:left center}
.site-shell .cx-public-nav-inner,.site-shell .cx-public-footer-inner{max-width:100%}
.site-shell .cx-public-links a{overflow-wrap:anywhere}
.site-shell :is(.cx-info-shell,.cx-help-shell,.cx-cms-shell,.cx-invite,.cx-home,.cx-app-page){min-width:0;max-width:100%}
.site-shell :is(.cx-info-shell,.cx-help-shell,.cx-cms-shell) :is(img,video,svg){max-width:100%}
.site-shell :is(.cx-info-shell,.cx-help-shell,.cx-cms-shell) :is(pre,table){max-width:100%;overflow-x:auto}
.site-shell :is(.cx-info-shell,.cx-help-shell,.cx-cms-shell) :is(h1,h2,h3,p,li,a){overflow-wrap:break-word}
.admin-shell .admin-main,.admin-shell .admin-content,.admin-shell .panel,.admin-shell .panel-body,.admin-shell .form-card{min-width:0}
.admin-shell :is(.table-wrap,.data-table-wrap){max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.admin-shell :is(.admin-search,.admin-search input,.form-grid,.form-card input,.form-card select,.form-card textarea){max-width:100%}
.admin-shell .head-actions,.admin-shell .page-head,.admin-shell .form-actions{flex-wrap:wrap}
.admin-shell .brand-mark-lockup,.admin-shell .brand-mark,.admin-shell .sidebar-brand{min-width:0}
.admin-shell .brand-mark-logo{display:block;width:min(190px,100%);height:auto;max-height:none;object-fit:contain;object-position:left center}
.admin-login-shell .auth-brand-full{display:flex;align-items:center;justify-content:center;min-height:72px;overflow:visible}
.admin-login-shell .auth-logo-full{display:block;width:min(280px,100%);max-width:100%;max-height:none;height:auto;object-fit:contain;object-position:center}
.admin-login-shell .auth-card-branded{overflow:visible}
.admin-login-shell .auth-card-branded:before{border-radius:24px 24px 0 0}
@media(max-width:900px){.admin-shell .admin-topbar{gap:8px}.admin-shell .admin-content{padding-inline:clamp(12px,3vw,24px)}}
@media(max-width:640px){
 .site-shell .cx-public-nav-inner{width:calc(100% - 24px);gap:10px}
 .site-shell .cx-public-brand{width:138px;max-width:calc(100% - 66px)}
 .site-shell .cx-public-footer-inner{width:calc(100% - 28px)}
 .site-shell .cx-public-footer-top,.site-shell .cx-public-footer-bottom{gap:14px}
 .admin-shell .admin-content{padding-inline:12px}
 .admin-shell :is(.panel-head,.panel-body,.form-card){padding-inline:clamp(12px,3.8vw,20px)}
 .admin-shell .head-actions{width:100%}
 .admin-shell .head-actions :is(a,button){min-height:42px}
 .admin-login-shell .auth-card-branded{padding:25px 20px;border-radius:20px}
}
@media(max-width:360px){.site-shell .cx-public-brand{width:118px}.site-shell .cx-public-menu{width:44px;height:44px}}
@media(prefers-reduced-motion:reduce){.site-shell *, .admin-login-shell *{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Avoid a floating open overlay during first paint / when JS is blocked. */
@media(max-width:980px){
 html:not(.has-public-nav-js) .cx-public-nav-inner{flex-wrap:wrap}
 html:not(.has-public-nav-js) .cx-public-links{position:static;order:3;width:100%;max-height:none;margin:0 0 10px;box-shadow:none}
}
