
/* Eduscope Admission Portal — shared responsive design layer */
:root{--portal-ink:#142b45;--portal-muted:#62748a;--portal-blue:#1768d7;--portal-blue-dark:#104da6;--portal-line:#e0e8f1;--portal-bg:#f4f7fb;--portal-card:#fff;--portal-radius:16px}
*,*::before,*::after{box-sizing:border-box}
html{width:100%;max-width:100%;scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;min-width:320px;max-width:100%;overflow-x:hidden;color:var(--portal-ink);background:var(--portal-bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.5}
img,svg,video,canvas,iframe{max-width:100%;height:auto}
button,input,select,textarea{font:inherit;max-width:100%}
button,a,input[type=submit],input[type=button]{touch-action:manipulation}
a{overflow-wrap:anywhere}
main,.container,.content,.page-content,.dashboard-content,.admin-content,.wrapper,.form-container,.application-container{min-width:0;max-width:100%}
.container,.content,.page-content,.dashboard-content,.admin-content,.wrapper{padding-left:clamp(14px,3vw,32px);padding-right:clamp(14px,3vw,32px)}
h1,h2,h3,h4,p{overflow-wrap:anywhere}
h1{font-size:clamp(1.55rem,3vw,2.35rem);line-height:1.2;letter-spacing:-.035em}
h2{font-size:clamp(1.25rem,2.2vw,1.75rem);line-height:1.25}
p{color:inherit}
.card,.panel,.stat-card,.form-card,.login-container,.dashboard-card,.content-card{min-width:0;border-radius:var(--portal-radius)}
input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]),select,textarea{width:100%;min-height:44px;border-radius:10px}
textarea{min-height:110px;resize:vertical}
label{display:block;margin-bottom:6px}
button,.btn,input[type=submit],input[type=button]{min-height:42px;cursor:pointer}
table{width:100%;border-collapse:collapse}
th,td{overflow-wrap:anywhere;word-break:normal}
.table-responsive,.table-wrap,.table-container,.responsive-table{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
table th,table td{padding:10px 12px;vertical-align:top}
form{min-width:0;max-width:100%}
form img{object-fit:contain}
.alert,.message,.notice{overflow-wrap:anywhere}
header,nav,section,footer{min-width:0}
pre,code{white-space:pre-wrap;overflow-wrap:anywhere}
iframe{width:100%}
@media(max-width:900px){
 .sidebar{max-width:100%}
 .admin-layout,.dashboard-layout,.main-layout{grid-template-columns:minmax(0,1fr)!important}
 .stats-grid,.stat-grid,.dashboard-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .admin-head,.page-header{gap:12px;flex-wrap:wrap}
}
@media(max-width:640px){
 body{font-size:14px}
 .container,.content,.page-content,.dashboard-content,.admin-content,.wrapper{padding-left:14px;padding-right:14px}
 .stats-grid,.stat-grid,.dashboard-stats,.grid,.form-grid,.row{grid-template-columns:minmax(0,1fr)!important}
 .row{margin-left:0;margin-right:0}
 .col,.col-md-6,.col-md-4,.col-md-3,.col-lg-6,.col-lg-4,.col-lg-3{width:100%;max-width:100%;flex:0 0 100%}
 .admin-head,.page-header,.hero,.hero-content{padding:18px 14px!important}
 .hero h1{font-size:clamp(1.7rem,8vw,2.4rem)}
 .card,.panel,.stat-card,.form-card,.content-card{padding:16px!important}
 .login-container{width:calc(100% - 28px)!important;max-width:430px!important;padding:22px!important;margin:14px auto!important}
 input,select,textarea{font-size:16px!important}
 button,.btn,input[type=submit],input[type=button]{max-width:100%;white-space:normal}
 table{font-size:13px}
 th,td{padding:8px}
 .modal-dialog{width:auto;max-width:calc(100vw - 20px);margin:10px}
 .modal-content{max-width:100%;overflow-wrap:anywhere}
 .navbar,.topbar{max-width:100%}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
