/* Shared visual language for all five portals. */
.sidebar-toggle{flex-shrink:0;width:42px;height:42px;display:grid;place-items:center;border:1px solid #dfe7f0;border-radius:10px;background:#fff;color:#142f50;cursor:pointer;margin-right:12px}
.sidebar-toggle>span{display:grid;gap:5px}.sidebar-toggle i{display:block;width:19px;height:2px;background:currentColor;border-radius:2px}
.sidebar-toggle:hover{background:#edf4ff;border-color:#b7cff1}
.sidebar-enhanced .dashboard-nav-inner{justify-content:flex-start}.sidebar-enhanced .dashboard-nav-right{margin-left:auto}
.sidebar-enhanced .dashboard-sidebar[hidden],.sidebar-backdrop[hidden]{display:none!important}
.sidebar-enhanced .dashboard-main{flex:1;min-width:0}
.sidebar-drawer-close,.sidebar-backdrop{display:none}
@media(max-width:991px){
    .dashboard-page.sidebar-enhanced .dashboard-shell{display:block;padding:20px 16px}
    .dashboard-page.sidebar-enhanced .dashboard-sidebar{position:fixed;inset:0 auto 0 0;width:min(290px,85vw);height:100dvh;min-height:0;margin:0;padding:62px 14px 24px;border-radius:0 18px 18px 0;display:block;overflow-y:auto;z-index:1060;box-shadow:12px 0 40px #10243d40;animation:sidebar-arrive .22s ease}
    .dashboard-page.sidebar-enhanced .dashboard-sidebar::before{display:none}
    .dashboard-page.sidebar-enhanced .dashboard-sidebar .sidebar-label{display:block;margin-bottom:8px}
    .dashboard-page.sidebar-enhanced .dashboard-sidebar .sidebar-footer{display:flex;margin-top:26px}
    .dashboard-page.sidebar-enhanced .dashboard-sidebar .sidebar-link{display:flex;align-items:center;gap:12px;margin:4px 0;padding:12px;white-space:normal}
    .dashboard-page.sidebar-enhanced .dashboard-sidebar .sidebar-icon{display:inline-grid;place-items:center;flex-shrink:0}
    .sidebar-drawer-close{position:absolute;top:14px;right:14px;display:grid;place-items:center;width:38px;height:38px;border:1px solid #ffffff30;border-radius:9px;background:#ffffff12;color:white;font-size:26px;cursor:pointer}
    .sidebar-backdrop{position:fixed;inset:0;display:block;border:0;background:#0b1b35a6;z-index:1059;cursor:pointer}
    .sidebar-menu-open{overflow:hidden}
    .sidebar-enhanced .dashboard-nav-inner{padding:0 12px;gap:8px}
    .sidebar-toggle{margin-right:0}
    .sidebar-enhanced .dashboard-brand{min-width:0;flex:1;gap:8px}
    .sidebar-enhanced .brand-copy{min-width:0}.sidebar-enhanced .brand-copy strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
    .sidebar-enhanced .brand-copy small,.sidebar-enhanced .nav-system-status,.sidebar-enhanced .account-info,.sidebar-enhanced .account-chevron{display:none}
    .sidebar-enhanced .dashboard-nav-right{flex-shrink:0;margin-left:0}
}
@keyframes sidebar-arrive{from{transform:translateX(-100%)}to{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){.dashboard-page.sidebar-enhanced .dashboard-sidebar{animation:none}}
@media print{.sidebar-toggle,.sidebar-backdrop,.sidebar-drawer-close{display:none!important}}
.home-page,.login-page{font-family:Inter,"Segoe UI",sans-serif;background:#f3f6fb}
.home-page .site-header{box-shadow:none;border-bottom:1px solid #e2e8f0}
.home-page .hero{border-radius:0 0 32px 32px}
.home-page .hero h1{letter-spacing:-1.5px;line-height:1.15}
.home-page .feature-card,.home-page .portal-card{border:1px solid #e5ebf3;border-radius:18px;box-shadow:0 4px 16px #20334b06;transition:transform .18s ease,box-shadow .18s ease}
.home-page .portal-card:hover,.home-page .feature-card:hover{transform:translateY(-4px);box-shadow:0 12px 28px #20334b12}
.home-page .section-head h2{color:#142f50;letter-spacing:-.7px}
.home-page .btn,.login-page .btn{border-radius:10px}
.login-page .login-shell{border-radius:24px;overflow:hidden;box-shadow:0 24px 70px #142f5018}
/* Preserve the original login photograph and its readable blue overlay. */
.login-page .form-control{border-radius:10px;border-color:#dfe7f0;min-height:46px}
.home-page :is(a,button):focus-visible,.login-page :is(a,button,input):focus-visible{outline:3px solid #60a5fa;outline-offset:3px}
@media(prefers-reduced-motion:reduce){.home-page .portal-card,.home-page .feature-card{transition:none}.home-page .portal-card:hover,.home-page .feature-card:hover{transform:none}}
.dashboard-page{background:#f3f6fb;color:#20334b;font-family:Inter,"Segoe UI",sans-serif;--portal-ink:#142f50;--portal-accent:#2563eb}
.dashboard-page .dashboard-nav{box-shadow:none;border-bottom:1px solid #e2e8f0}
.dashboard-page .dashboard-shell{max-width:1600px;gap:26px}
.dashboard-page .dashboard-main{min-width:0}
.dashboard-page .dashboard-sidebar{background:linear-gradient(160deg,#152f50,#0e223d);border:0;border-radius:18px;box-shadow:0 12px 35px #132e5014}
.dashboard-page .dashboard-sidebar::before{background:#60a5fa}
.dashboard-page .dashboard-sidebar .sidebar-label{color:#91aac9}
.dashboard-page .dashboard-sidebar .sidebar-link{color:#cfdded;border-radius:10px;font-size:13px;font-weight:500;min-height:46px}
.dashboard-page .dashboard-sidebar .sidebar-link:hover{background:#ffffff0d;color:#fff}
.dashboard-page .dashboard-sidebar .sidebar-link.active{background:#2b66cf;color:#fff;box-shadow:0 5px 15px #00000012}
.dashboard-page .dashboard-sidebar .sidebar-icon{color:inherit;background:transparent;filter:grayscale(1);font-size:17px}
.dashboard-page .sidebar-footer{color:#bed0e6;border-top-color:#ffffff20}
.dashboard-page .sidebar-footer b,.dashboard-page .sidebar-footer small{color:#bed0e6}
.dashboard-page .dashboard-heading{gap:20px;margin-bottom:26px;align-items:center}
.dashboard-page .dashboard-heading h1{color:#142f50;font-size:clamp(25px,2.4vw,34px);letter-spacing:-1px;font-weight:750}
.dashboard-page .dashboard-heading p{color:#718096;line-height:1.7;max-width:680px}
.dashboard-page .eyebrow{color:#6681a2;font-size:10px;letter-spacing:1.7px;font-weight:750}
.dashboard-page .metric-card{background:#fff;border:1px solid #e5ebf3;border-radius:15px;box-shadow:0 3px 12px #20334b04;padding:22px;position:relative;overflow:hidden}
.dashboard-page .metric-card::after{width:32px;height:4px;border-radius:4px;background:#3b82f6;top:0;left:22px;right:auto;bottom:auto}
.dashboard-page .row>div:nth-child(2) .metric-card::after{background:#14b8a6}
.dashboard-page .row>div:nth-child(3) .metric-card::after{background:#8b5cf6}
.dashboard-page .row>div:nth-child(4) .metric-card::after{background:#f59e0b}
.dashboard-page .metric-card strong{color:#142f50;letter-spacing:-1px;font-size:32px;font-variant-numeric:tabular-nums}
.dashboard-page .metric-card span{color:#64748b;font-weight:600;font-size:12px}
.dashboard-page .metric-card small{color:#8390a4;font-size:11px}
.dashboard-page .panel{border:1px solid #e5ebf3;border-radius:15px;box-shadow:0 3px 12px #20334b04;overflow:hidden}
.dashboard-page .panel-header{padding:22px 24px;border-bottom:1px solid #edf1f6;background:#fff}
.dashboard-page .panel-header::before{display:none}
.dashboard-page .panel h2{color:#20334b;font-size:17px;font-weight:700;letter-spacing:-.3px}
.dashboard-page .table{font-size:13px;color:#334155;--bs-table-bg:transparent}
.dashboard-page .table thead th{background:#f8fafc;color:#718096;font-size:10px;text-transform:uppercase;letter-spacing:.8px;padding:14px 18px;border-bottom:1px solid #e7edf4;white-space:nowrap}
.dashboard-page .table tbody td{padding:15px 18px;border-color:#eff3f8}
.dashboard-page .table tbody tr:hover{background:#f7faff}
.dashboard-page .btn{border-radius:9px;font-size:12px;padding:10px 16px;font-weight:600}
.dashboard-page .btn-primary{background:#2563eb;border-color:#2563eb;box-shadow:0 4px 10px #2563eb18}
.dashboard-page .form-control,.dashboard-page .form-select{border-radius:9px;border-color:#dfe7f0;min-height:40px}
.dashboard-page :is(a,button,input,select):focus-visible{outline:3px solid #60a5fa;outline-offset:3px}
.insights-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:20px;margin-bottom:26px}
.insight-card{background:#fff;border:1px solid #e5ebf3;border-radius:15px;padding:24px;min-width:0}
.insight-heading h2{font-size:17px;font-weight:700;color:#20334b;margin:8px 0}
.insight-heading p,.insight-footnote{color:#8390a4;font-size:11px;line-height:1.6}
.insight-bars{display:grid;gap:17px;margin-top:24px;max-height:280px;overflow:auto;padding-right:4px}
.insight-bar-label{display:flex;justify-content:space-between;gap:16px;font-size:12px;margin-bottom:8px;color:#64748b}
.insight-bar-label strong{color:#20334b;font-variant-numeric:tabular-nums}
.insight-track{height:9px;border-radius:6px;background:#f0f4fa;position:relative}
.insight-fill{height:100%;border-radius:6px;background:linear-gradient(90deg,#659af4,#2563eb)}
.insight-bar-row:nth-child(2n) .insight-fill{background:linear-gradient(90deg,#55cfbd,#14b8a6)}
.insight-bar-row .insight-fill.needs-review{background:#f59e0b}
.insight-pass-mark{position:absolute;left:75%;top:-3px;width:1px;height:15px;background:#8390a4}
.insight-footnote{margin:20px 0 0}
.insight-ring-layout{display:flex;align-items:center;justify-content:center;gap:26px;padding:26px 0 14px;flex-wrap:wrap}
.insight-ring{width:156px;height:156px;flex-shrink:0;border-radius:50%;background:conic-gradient(#2563eb var(--portion),#e8eef7 0);display:grid;place-items:center}
.insight-ring>div{width:126px;height:126px;background:#fff;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center}
.insight-ring strong{font-size:32px;letter-spacing:-1px;color:#142f50}
.insight-ring small{font-size:10px;color:#8390a4;max-width:100px;text-align:center}
.insight-legend{flex:1;min-width:145px;max-width:240px}
.insight-legend p{display:flex;align-items:center;gap:8px;font-size:12px;color:#64748b}
.insight-legend strong{margin-left:auto;color:#20334b}
.insight-legend small{font-size:10px;color:#8390a4}
.legend-dot{width:8px;height:8px;border-radius:50%;background:#2563eb;flex-shrink:0}
.legend-dot.secondary{background:#b8c9e1}
.insight-empty{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#8390a4;text-align:center}
.insight-empty>span{font-size:32px;color:#b8c9e1;margin-bottom:10px}
.insight-empty strong{font-size:13px;color:#64748b}.insight-empty p{font-size:11px;margin-top:8px}
@media(max-width:1100px){.insights-grid{grid-template-columns:1fr}.insight-bars{max-height:none}}
@media(max-width:767px){.dashboard-page .dashboard-shell{padding:18px 14px;gap:16px}.dashboard-page .dashboard-heading{align-items:flex-start;flex-direction:column}.insight-card{padding:20px}.dashboard-page .dashboard-sidebar{border-radius:12px}.dashboard-page .metric-card{padding:18px}.insight-ring-layout{gap:20px}.dashboard-page .dashboard-heading .d-flex{flex-wrap:wrap}}
@media print{.dashboard-page .dashboard-sidebar,.dashboard-page .dashboard-nav{display:none}.insights-grid{grid-template-columns:1fr 1fr}.insight-card,.metric-card{break-inside:avoid}.insight-bars{max-height:none;overflow:visible}}

/* A gentle lift on desktop; keep touch interactions stable. */
@media (hover:hover) and (pointer:fine){
    .home-page :is(.feature-card,.portal-card,.staff-card),
    .dashboard-page :is(.metric-card,.insight-card,.snapshot-card){
        transition:transform .25s cubic-bezier(.2,.7,.3,1),box-shadow .25s ease,border-color .25s ease;
    }
    .home-page :is(.feature-card,.portal-card,.staff-card):hover,
    .dashboard-page :is(.metric-card,.insight-card,.snapshot-card):hover{
        transform:translateY(-6px);
        box-shadow:0 16px 30px rgba(20,47,80,.12);
        border-color:#b7cff1;
    }
    :is(.home-page,.login-page,.dashboard-page) .btn:not(:disabled):not(.disabled){
        transition:transform .2s ease,box-shadow .2s ease,background-color .2s ease,border-color .2s ease;
    }
    :is(.home-page,.login-page,.dashboard-page) .btn:not(:disabled):not(.disabled):not(.btn-link):hover{
        transform:translateY(-3px);
        box-shadow:0 8px 18px rgba(20,47,80,.16);
    }
    :is(.home-page,.login-page,.dashboard-page) .btn:not(:disabled):not(.disabled):not(.btn-link):active{
        transform:translateY(0);
        box-shadow:0 2px 5px rgba(20,47,80,.10);
        transition-duration:.1s;
    }
    .dashboard-page .dashboard-sidebar .sidebar-link,
    .login-page .portal-link-item{
        transition:transform .2s ease,background-color .2s ease,color .2s ease;
    }
    .dashboard-page .dashboard-sidebar .sidebar-link:hover{transform:translateX(4px)}
    .login-page .portal-link-item:hover{transform:translateY(-2px)}
    .home-page :is(.feature-icon,.portal-icon){transition:transform .25s ease}
    .home-page :is(.feature-card,.portal-card):hover :is(.feature-icon,.portal-icon){transform:translateY(-3px) rotate(-5deg)}
    .dashboard-page .metric-card::after{transition:width .25s ease}
    .dashboard-page .metric-card:hover::after{width:58px}
    .insight-fill{transition:filter .2s ease}
    .insight-bar-row:hover .insight-fill{filter:brightness(1.1)}
    .dashboard-page .table tbody tr{transition:background-color .2s ease}
}
@media (prefers-reduced-motion:reduce){
    :is(.home-page,.login-page,.dashboard-page) :is(.feature-card,.portal-card,.staff-card,.metric-card,.insight-card,.snapshot-card,.btn,.sidebar-link,.portal-link-item,.feature-icon,.portal-icon,.insight-fill),
    .dashboard-page .metric-card::after{transition:none!important;animation:none!important}
    :is(.home-page,.login-page,.dashboard-page) :is(.feature-card,.portal-card,.staff-card,.metric-card,.insight-card,.snapshot-card,.sidebar-link,.portal-link-item,.feature-icon,.portal-icon):hover,
    :is(.home-page,.login-page,.dashboard-page) .btn:not(.btn-link):is(:hover,:active){transform:none!important}
}

/* Consistent school palette: navy, blue, white and restrained gold. */
.dashboard-page{--portal-navy:#142f50;--portal-blue:#2563eb;--portal-gold:#f4b740;--portal-surface:#ffffff;--portal-background:#f3f6fb;--portal-muted:#64748b;background:var(--portal-background);color:#20334b;accent-color:var(--portal-blue)}
.dashboard-page .dashboard-nav{position:sticky;top:0;z-index:1030;background:var(--portal-surface);border-bottom-color:#dfe7f0}
.dashboard-page .dashboard-brand,.dashboard-page .dashboard-brand:hover,.dashboard-page .brand-copy strong{color:var(--portal-navy)}
.dashboard-page .dashboard-sidebar{background:linear-gradient(160deg,#142f50,#10243d)}
.dashboard-page .dashboard-sidebar::before{background:var(--portal-gold)}
.dashboard-page .dashboard-sidebar .sidebar-link.active{background:#245ac0;color:#fff;border-left:3px solid var(--portal-gold)}
.dashboard-page .dashboard-sidebar .sidebar-link:not(.active){border-left:3px solid transparent}
.dashboard-page .dashboard-heading h1,.dashboard-page .panel h2,.dashboard-page .metric-card strong{color:var(--portal-navy)}
.dashboard-page .dashboard-heading p,.dashboard-page .metric-card small,.dashboard-page .eyebrow,.insight-heading p,.insight-footnote,.insight-legend small{color:var(--portal-muted)}
.dashboard-page .row>div:nth-child(4n+1) .metric-card::after{background:var(--portal-blue)}
.dashboard-page .row>div:nth-child(4n+2) .metric-card::after{background:var(--portal-navy)}
.dashboard-page .row>div:nth-child(4n+3) .metric-card::after{background:var(--portal-gold)}
.dashboard-page .row>div:nth-child(4n+4) .metric-card::after{background:var(--portal-blue)}
.dashboard-page .btn-primary{background:var(--portal-blue);border-color:var(--portal-blue);color:#fff}
.dashboard-page .btn-primary:hover{background:#1d4ed8;border-color:#1d4ed8;color:#fff}
.dashboard-page .btn-outline-primary{background:#fff;color:#245ac0;border-color:#bccfea}
.dashboard-page .btn-outline-primary:hover{background:#edf4ff;color:#174292;border-color:#7ba4e0}
.dashboard-page .role-badge,.dashboard-page .panel-count{background:#edf4ff;color:#245ac0;border-color:#d9e6f7}
.dashboard-page .table thead th{background:#f8fafc;color:#53657c}
.dashboard-page .filter-bar{background:#f8fafc;border-color:#e5ebf3}
.dashboard-page .snapshot-blue{background:#edf4ff;color:#142f50}
.dashboard-page .snapshot-gold{background:#fff7e4;color:#5f430c}
.dashboard-page .snapshot-green{background:#f0f4fa;color:#142f50}
.dashboard-page .account-avatar{background:#edf4ff;color:#174292}
.insight-bar-row:nth-child(2n) .insight-fill{background:linear-gradient(90deg,#6284ac,#244c7a)}
.insight-bar-row .insight-fill.needs-review{background:#d99415}

@media(min-width:992px){
  .dashboard-page.sidebar-enhanced.sidebar-visible .dashboard-shell{max-width:none;padding-left:278px}
  .dashboard-page.sidebar-enhanced .dashboard-sidebar{position:fixed;top:76px;left:0;bottom:0;width:250px;height:auto;min-height:0;margin:0;padding:0 0 18px;display:flex;flex-direction:column;overflow-y:auto;z-index:1020;border:0;border-radius:0;background:linear-gradient(160deg,#142f50,#10243d);box-shadow:4px 0 16px rgba(15,23,42,.16);scrollbar-width:thin}
  .dashboard-page.sidebar-enhanced .dashboard-sidebar::before{display:none}
  .dashboard-page.sidebar-enhanced .dashboard-sidebar .sidebar-label{margin:0;padding:15px 20px 11px;color:#91aac9;font-size:10px;letter-spacing:.12em;border-bottom:1px solid rgba(255,255,255,.1)}
  .dashboard-page.sidebar-enhanced .dashboard-sidebar .sidebar-label::after{display:none}
  .dashboard-page.sidebar-enhanced .dashboard-sidebar .sidebar-link{min-height:0;margin:0;padding:14px 20px;border-bottom:1px solid rgba(255,255,255,.08);border-left:4px solid transparent;border-radius:0;color:#f4f7f8;font-size:13px;font-weight:650}
  .dashboard-page.sidebar-enhanced .dashboard-sidebar .sidebar-link:hover{background:#1c3b62;color:#fff;transform:none}
  .dashboard-page.sidebar-enhanced .dashboard-sidebar .sidebar-link.active{background:#245ac0;border-left-color:#f4b740;color:#fff;box-shadow:none}
  .dashboard-page.sidebar-enhanced .dashboard-sidebar .sidebar-icon{width:18px;font-size:16px;filter:none}
  .dashboard-page.sidebar-enhanced .dashboard-sidebar .sidebar-footer{margin:auto 18px 0;padding:16px 2px 0;border-top-color:rgba(255,255,255,.13);color:#d7e1e3}
  .dashboard-page.sidebar-enhanced .dashboard-sidebar .sidebar-footer b,.dashboard-page.sidebar-enhanced .dashboard-sidebar .sidebar-footer small{color:#d7e1e3}
}
@media print{.dashboard-page .dashboard-nav{position:static}}
