/* COMPACT PUBLIC HEADER FIX
   Focus only on public/auth headers so they match the reference screenshot.
   Avoid enlarging dashboard/student topbars. */

/* Login header */
.login831-header{
  height:76px!important;
  min-height:76px!important;
  padding:0 max(24px,calc((100vw - 1440px)/2))!important;
  background:#fff!important;
  border-bottom:1px solid #e6edf4!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:18px!important;
  box-shadow:none!important;
}
.login831-brand{gap:14px!important;color:#1a3552!important;text-decoration:none!important}
.login831-logo{
  width:46px!important;height:46px!important;padding:6px!important;
  border:1px solid #dce5ef!important;border-radius:14px!important;
  background:#fff!important;display:grid!important;place-items:center!important;
  flex:0 0 46px!important;box-shadow:none!important;
}
.login831-logo img{width:100%!important;height:100%!important;object-fit:contain!important;display:block!important}
.login831-brand b{display:block!important;font-size:20px!important;line-height:1.15!important;font-weight:850!important;color:#183650!important}
.login831-brand small{display:block!important;font-size:11px!important;line-height:1.35!important;color:#667c93!important;margin-top:4px!important}
.login831-back{font-size:13px!important;font-weight:700!important;color:#536d88!important;text-decoration:none!important;white-space:nowrap!important}
.login831-back:hover{color:#214f82!important;text-decoration:none!important}

/* Registration header */
.minimal-public-header{
  height:76px!important;min-height:76px!important;
  padding-left:max(24px,calc((100vw - 1240px)/2))!important;
  padding-right:max(24px,calc((100vw - 1240px)/2))!important;
  background:#fff!important;border-bottom:1px solid #e6edf4!important;
  box-shadow:none!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
}
.minimal-brand{gap:14px!important;text-decoration:none!important}
.minimal-logo{
  width:46px!important;height:46px!important;padding:6px!important;border-radius:14px!important;
  border:1px solid #dce5ef!important;background:#fff!important;box-shadow:none!important;
}
.minimal-logo img{width:100%!important;height:100%!important;object-fit:contain!important;display:block!important}
.minimal-brand b{font-size:20px!important;line-height:1.15!important;color:#183650!important;font-weight:850!important}
.minimal-brand small{font-size:11px!important;line-height:1.35!important;color:#667c93!important;margin-top:4px!important}
.minimal-header-actions{gap:14px!important;font-size:13px!important;color:#75869b!important}
.minimal-header-actions>a{
  min-height:38px!important;padding:8px 14px!important;border-radius:12px!important;
  border:1px solid #d6e3f0!important;background:#fff!important;color:#16395f!important;
  font-size:13px!important;font-weight:800!important;box-shadow:none!important;
}
.minimal-header-actions>a:hover{background:#f4f8fd!important;border-color:#c5d7ea!important;color:#174e88!important}

/* Public topbar (landing / guest only) - keep compact, never oversized */
.topbar.no-print:not(.student-topbar-v64){
  min-height:76px!important;height:76px!important;
  padding:0 max(20px,calc((100vw - 1440px)/2))!important;
  background:#fff!important;border-bottom:1px solid #e6edf4!important;
  box-shadow:none!important;backdrop-filter:none!important;
}
.topbar.no-print:not(.student-topbar-v64) .brand{font-size:20px!important;gap:12px!important}
.topbar.no-print:not(.student-topbar-v64) .brand-icon{
  width:44px!important;height:44px!important;border-radius:13px!important;padding:6px!important;
  background:#fff!important;border:1px solid #dce5ef!important;box-shadow:none!important;
}
.topbar.no-print:not(.student-topbar-v64) .brand small{font-size:11px!important;letter-spacing:.12em!important;margin-top:4px!important}
.topbar.no-print:not(.student-topbar-v64) .school{font-size:12px!important;color:#667c93!important;font-weight:700!important}
.topbar.no-print:not(.student-topbar-v64) .top-actions{gap:8px!important}
.topbar.no-print:not(.student-topbar-v64) .top-actions .btn{
  font-size:13px!important;font-weight:800!important;padding:8px 14px!important;border-radius:12px!important;
}

/* Keep login hero image tidy only, no header enlargement */
.student-login-v831 .login831-illustration img{height:320px!important;width:100%!important;object-fit:contain!important}

@media(max-width:760px){
  .login831-header,.minimal-public-header{height:64px!important;min-height:64px!important;padding-left:14px!important;padding-right:14px!important}
  .login831-brand b,.minimal-brand b{font-size:17px!important}
  .login831-brand small,.minimal-brand small{font-size:10px!important;max-width:180px!important}
  .login831-logo,.minimal-logo{width:40px!important;height:40px!important;border-radius:12px!important;padding:5px!important}
  .login831-back{font-size:12px!important}

  .topbar.no-print:not(.student-topbar-v64){height:68px!important;min-height:68px!important;padding:0 14px!important}
  .topbar.no-print:not(.student-topbar-v64) .brand{font-size:18px!important}
  .topbar.no-print:not(.student-topbar-v64) .brand-icon{width:38px!important;height:38px!important;border-radius:11px!important;padding:5px!important}
  .topbar.no-print:not(.student-topbar-v64) .brand small{font-size:9px!important}
  .topbar.no-print:not(.student-topbar-v64) .school{display:none!important}
  .topbar.no-print:not(.student-topbar-v64) .top-actions .btn{font-size:11px!important;padding:7px 10px!important}

  .student-login-v831 .login831-illustration img{height:280px!important}
}

/* Shared PUBLIC header only: home, registration, student/admin login.
   IDs intentionally outrank legacy page-specific header rules, including inline
   style blocks. No selectors below reach forms, heroes, sidebars or 3D assets. */
:is(#spmb-header-main,#spmb-header-login,#spmb-header-register){
 box-sizing:border-box!important;width:100%!important;max-width:none!important;
 height:auto!important;min-height:76px!important;margin:0!important;
 padding:12px max(24px,calc((100vw - 1440px)/2))!important;
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:20px!important;background:#fff!important;border:0!important;border-bottom:1px solid #e6edf4!important;
 border-radius:0!important;box-shadow:none!important;
}
:is(#spmb-header-main,#spmb-header-login,#spmb-header-register),
:is(#spmb-header-main,#spmb-header-login,#spmb-header-register) *{
 font-family:"Segoe UI",Arial,sans-serif!important;letter-spacing:normal!important;text-transform:none!important;
}
:is(#spmb-header-main,#spmb-header-login,#spmb-header-register) .spmb-header-brand{
 display:flex!important;align-items:center!important;gap:12px!important;min-width:0!important;
 margin:0!important;padding:0!important;color:#183650!important;text-decoration:none!important;
}
:is(#spmb-header-main,#spmb-header-login,#spmb-header-register) .spmb-header-logo{
 box-sizing:border-box!important;display:grid!important;place-items:center!important;
 flex:0 0 44px!important;width:44px!important;min-width:44px!important;height:44px!important;
 margin:0!important;padding:5px!important;background:#fff!important;
 border:1px solid #dce5ef!important;border-radius:12px!important;box-shadow:none!important;
}
:is(#spmb-header-main,#spmb-header-login,#spmb-header-register) .spmb-header-logo img{
 display:block!important;width:100%!important;height:100%!important;object-fit:contain!important;
}
:is(#spmb-header-main,#spmb-header-login,#spmb-header-register) .spmb-header-copy{display:block;min-width:0}
:is(#spmb-header-main,#spmb-header-login,#spmb-header-register) .spmb-header-title{
 display:block!important;font-size:20px!important;font-weight:700!important;line-height:1.2!important;
 color:#183650!important;margin:0!important;white-space:normal!important;
}
:is(#spmb-header-main,#spmb-header-login,#spmb-header-register) .spmb-header-school{
 display:block!important;font-size:13px!important;font-weight:400!important;line-height:1.45!important;
 color:#60758b!important;margin:3px 0 0!important;max-width:none!important;white-space:normal!important;
}
:is(#spmb-header-main,#spmb-header-login,#spmb-header-register) :is(.top-actions,.minimal-header-actions){
 display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:10px!important;margin:0!important;
}
:is(#spmb-header-main,#spmb-header-login,#spmb-header-register) :is(.top-actions .btn,.minimal-header-actions>a,.login831-back){
 display:inline-flex;align-items:center;justify-content:center;min-height:40px!important;
 font-size:14px!important;font-weight:600!important;line-height:1.4!important;
 padding:8px 14px!important;margin:0!important;border-radius:10px!important;
 white-space:normal!important;max-width:none!important;text-decoration:none!important;
}
@media(max-width:600px){
 :is(#spmb-header-main,#spmb-header-login,#spmb-header-register){padding:12px 16px!important;gap:10px!important;flex-wrap:wrap!important}
 :is(#spmb-header-main,#spmb-header-login,#spmb-header-register) .spmb-header-brand{flex-basis:100%;gap:10px!important}
 :is(#spmb-header-main,#spmb-header-login,#spmb-header-register) .spmb-header-logo{flex-basis:40px!important;width:40px!important;min-width:40px!important;height:40px!important}
 :is(#spmb-header-main,#spmb-header-login,#spmb-header-register) .spmb-header-title{font-size:18px!important}
 :is(#spmb-header-main,#spmb-header-login,#spmb-header-register) .spmb-header-school{font-size:12px!important}
 :is(#spmb-header-main,#spmb-header-login,#spmb-header-register) :is(.top-actions,.minimal-header-actions,.login831-back){margin-left:auto!important}
}
