@font-face {
    font-family: "Header Museo Sans Rounded";
    src: url("../Login/fonts/MuseoSansRounded700.woff2") format("woff2"),
         url("../Login/fonts/MuseoSansRounded700.woff") format("woff");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

/* Compact version of the login brand, using the shared animated SVG. */
.site-header-refresh .navbar-brand.header-brand {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: 184px;
    height: auto;
    text-decoration: none;
}
.header-brand .brand-lockup__icon { flex: 0 0 25%; width: 25%; height: auto; overflow: visible; }
.header-brand__name { font-family: "Header Museo Sans Rounded", "Arial Rounded MT Bold", Cabin, sans-serif; font-size: 16px; font-weight: 700; line-height: 1; letter-spacing: -.48px; white-space: nowrap; }
.header-brand__name > span { color: #3787ec; }
.header-brand__name > strong { color: #073b55; font-weight: inherit; }
.header-brand .brand-bounce__line { fill: #d1d1d4; }
.header-brand .brand-bounce__reveal { animation: header-logo-line-reveal 1360ms ease-out 120ms both; }
.header-brand .brand-bounce__ball { animation: header-logo-ball-bounce 760ms cubic-bezier(.2,.75,.35,1) both; transform-box: fill-box; transform-origin: center; }
.header-brand .ball-pink { animation-delay: 120ms; }
.header-brand .ball-red { animation-delay: 240ms; }
.header-brand .ball-orange { animation-delay: 360ms; }
.header-brand .ball-yellow { animation-delay: 480ms; }
.header-brand .ball-green { animation-delay: 600ms; }
.header-brand .ball-blue { animation-delay: 720ms; }
@keyframes header-logo-line-reveal { from { transform: translateX(-72px); } to { transform: translateX(0); } }
@keyframes header-logo-ball-bounce { 0%,100% { transform: translateY(0); } 38% { transform: translateY(-7px); } 62% { transform: translateY(0); } 78% { transform: translateY(-2px); } }
@media (max-width: 1450px) {
    .site-header-refresh .navbar-brand.header-brand { width: 166px; }
    .header-brand__name { font-size: 14px; }
}
@media (max-width: 991px) {
    .site-header-refresh .navbar-brand.header-brand { width: 158px; }
    .header-brand__name { font-size: 13px; }
}
@media (max-width: 620px) {
    .site-header-refresh .navbar-brand.header-brand { width: 145px; }
    .header-brand__name { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .header-brand .brand-bounce__reveal, .header-brand .brand-bounce__ball { animation: none; transform: none; }
}

.staff-admin-background {
    background:
        radial-gradient(circle at 7% 27%,rgba(255,255,255,.95) 0 7px,transparent 9px),
        radial-gradient(circle at 91% 43%,rgba(255,255,255,.65) 0 9px,transparent 11px),
        radial-gradient(circle at 30% 62%,rgba(255,255,255,.7) 0 8px,transparent 10px),
        linear-gradient(115deg,#fbfdff 0%,#eff5ff 44%,#dceaff 100%);
    background-attachment: fixed;
}

.staff-admin-background .mainwrapper {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    background: transparent!important;
}

.staff-admin-background .mainwrapper::before,
.staff-admin-background .mainwrapper::after {
    position: fixed;
    z-index: -1;
    border: 34px solid rgba(86,145,239,.15);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.staff-admin-background .mainwrapper::before {
    top: -390px;
    right: -350px;
    width: 760px;
    height: 760px;
    box-shadow: 0 0 0 45px rgba(86,145,239,.09),0 0 0 95px rgba(86,145,239,.055);
}

.staff-admin-background .mainwrapper::after {
    bottom: -430px;
    left: -390px;
    width: 620px;
    height: 620px;
    box-shadow: 0 0 0 50px rgba(86,145,239,.085);
}

.staff-admin-background .mainwrapper > *:not(.reveal-modal) {
    position: relative;
    /* Let nested dialogs participate in the wrapper's stacking context. */
    z-index: auto;
}

/* Keep navigation above content but below Bootstrap backdrops (1040) and dialogs (1050). */
.staff-admin-background .mainwrapper > header:not(.reveal-modal) {
    z-index: 1030;
}

.staff-admin-background .mainwrapper > main {
    background: transparent!important;
}

.site-header-refresh:not(.student-site-header) {
    min-height: 74px;
    margin: 0;
    padding: 0 20px;
    border: 0;
    border-bottom: 1px solid #dce6f4;
    border-radius: 0;
    background: rgba(255,255,255,.98);
    box-shadow: 0 4px 18px rgba(19,51,96,.055);
}

.site-header-refresh:not(.student-site-header)>.container { width:min(1840px,100%); max-width:none; padding:0; }
.site-header-refresh:not(.student-site-header) .row_cut { min-height:74px; align-items:center; }
.site-header-refresh:not(.student-site-header) .brand_logo { flex:0 0 220px; }
.site-header-refresh:not(.student-site-header) .navbar-brand { display:flex; height:auto!important; align-items:center; margin:0; padding:0; }
.site-header-refresh:not(.student-site-header) .brand_logo .navbar-brand img { width:184px; max-height:48px; }
.site-header-refresh:not(.student-site-header) .bounce_menu { min-width:0; flex:1; }
.site-header-refresh:not(.student-site-header) .navbar-collapse { width:100%; align-items:stretch; justify-content:flex-end; }
.site-header-refresh:not(.student-site-header) .navbar-nav { display:flex; align-items:stretch; gap:4px; margin:0 0 0 auto!important; padding:0; }
.site-header-refresh:not(.student-site-header) .site-home-link,
.site-header-refresh:not(.student-site-header) .site-alerts-link,
.site-header-refresh:not(.student-site-header) .site-enrolment-link,
.site-header-refresh:not(.student-site-header) .site-surveys-link,
.site-header-refresh:not(.student-site-header) .site-results-link { display:none!important; }
.site-header-refresh:not(.student-site-header) .navbar-nav>li { position:relative; display:flex; align-items:stretch; }
.site-header-refresh:not(.student-site-header) .navbar-nav>li>a.nav-link { display:flex; min-height:74px; align-items:center; gap:8px; margin:0; padding:0 14px!important; color:#1a2a4b; font-family:"Cabin",Arial,sans-serif; font-size:14px; font-weight:600; white-space:nowrap; transition:color .18s ease,background-color .18s ease; }
.site-header-refresh:not(.student-site-header) .navbar-nav>li>a.nav-link:hover,.site-header-refresh:not(.student-site-header) .navbar-nav>li>a.nav-link:focus { color:#0968eb; background:#f7faff; }
.site-header-refresh:not(.student-site-header) .navbar-nav>li.active::after { position:absolute; right:12px; bottom:0; left:12px; height:3px; border-radius:3px 3px 0 0; background:#126cf1; content:""; }
.site-header-refresh:not(.student-site-header) .navbar-nav>li.active>a.nav-link { color:#0968eb; }
.site-header-refresh:not(.student-site-header) .site-nav-icon { color:#425a83; font-size:20px; font-weight:400; }
.site-header-refresh:not(.student-site-header) li.active .site-nav-icon,.site-header-refresh:not(.student-site-header) a:hover .site-nav-icon { color:#126cf1; }
.site-header-refresh:not(.student-site-header) .dropdown-toggle::after { margin-left:1px; border-top-width:4px; border-right-width:4px; border-left-width:4px; }
.site-header-refresh:not(.student-site-header) .dropdown-menu { min-width:205px; margin-top:0; padding:7px!important; border:1px solid #dce5f2!important; border-radius:10px; background:#fff!important; box-shadow:0 12px 28px rgba(19,51,96,.14); }
.site-header-refresh:not(.student-site-header) .dropdown-menu>li>a { padding:9px 11px; border-radius:7px; color:#273858; font-size:13px; }
.site-header-refresh:not(.student-site-header) .dropdown-menu>li>a:hover { color:#0968eb; background:#edf5ff; }
.site-header-refresh:not(.student-site-header) .site-surveys-link { order:3; }
.site-header-refresh:not(.student-site-header) .site-results-link { order:4; }
.site-header-refresh:not(.student-site-header) .site-toolkit-link { order:5; }
.site-header-refresh:not(.student-site-header) .site-help-link { order:6; }
.site-header-refresh:not(.student-site-header) .site-toolkit-link,
.site-header-refresh:not(.student-site-header) .site-help-link { align-items:center; }
.site-header-refresh:not(.student-site-header) .site-toolkit-link>a.nav-link,
.site-header-refresh:not(.student-site-header) .site-help-link>a.nav-link { min-height:40px; margin:auto 0; padding:0 12px!important; border:0; border-radius:8px; background:transparent; }
.site-header-refresh:not(.student-site-header) .site-toolkit-link>a.nav-link:hover,
.site-header-refresh:not(.student-site-header) .site-help-link>a.nav-link:hover { background:#edf5ff; }

.site-organisation { display:flex; min-width:0; flex:1 1 auto; align-items:center; justify-content:flex-start; gap:10px; margin:0 24px; color:#152443; }
.site-organisation__icon { display:grid; flex:0 0 38px; width:38px; height:38px; place-items:center; border-radius:10px; background:#edf5ff; color:#126cf1; font-size:21px; }
.site-organisation__copy { min-width:0; max-width:520px; }
.site-organisation__copy small,.site-organisation__copy strong { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.site-organisation__copy small { margin-bottom:2px; color:#71809a; font-size:10px; font-weight:600; letter-spacing:.04em; line-height:1.1; text-transform:uppercase; }
.site-organisation__copy strong { color:#152443; font-size:14px; line-height:1.25; }
.site-organisation--switcher { position:relative; }
.site-organisation__toggle { display:flex; min-width:0; max-width:100%; align-items:center; gap:10px; padding:4px 8px 4px 4px; border:1px solid transparent; border-radius:10px; background:transparent; color:#152443; text-align:left; }
.site-organisation__toggle:hover,.site-organisation__toggle:focus,.site-organisation__toggle[aria-expanded="true"] { border-color:#d7e4f5; outline:0; background:#f5f8fd; }
.site-organisation__toggle .site-organisation__copy { flex:0 1 auto; }
.site-organisation__chevron { flex:0 0 auto; color:#60718e; font-size:19px; transition:transform .18s ease; }
.site-organisation__toggle[aria-expanded="true"] .site-organisation__chevron { transform:rotate(180deg); }
.site-header-refresh .site-organisation__menu { min-width:320px; max-width:min(420px,calc(100vw - 32px)); padding:7px!important; }
.site-organisation__menu .site-organisation__option { display:flex; width:100%; min-height:40px; align-items:center; justify-content:space-between; gap:12px; padding:9px 11px; border:0; border-radius:7px; background:#fff; color:#273858; font-size:13px; text-align:left; white-space:normal; }
.site-organisation__menu .site-organisation__option:hover,.site-organisation__menu .site-organisation__option:focus { outline:0; background:#edf5ff; color:#0968eb; }
.site-organisation__menu .site-organisation__option.is-active { color:#0968eb; font-weight:700; }
.site-organisation__option>.material-icon---default { flex:0 0 auto; font-size:18px; }

.site-header-actions { display:flex; align-items:center; gap:12px; margin-left:10px; padding-left:10px; border-left:1px solid #e4eaf3; }
.site-header-notifications { position:relative; display:grid; width:40px; height:40px; place-items:center; border-radius:50%; color:#344a70; background:#f5f8fd; }
.site-header-notifications>.material-icon---default { font-size:22px; }
.site-header-notifications>b { position:absolute; top:-2px; right:-5px; min-width:18px; height:18px; padding:0 4px; border:2px solid #fff; border-radius:999px; background:#ed3e51; color:#fff; font-size:8px; line-height:14px; text-align:center; }
.site-account-toggle { display:flex; min-height:48px; align-items:center; gap:10px; padding:5px 8px; border-radius:10px; color:#152443!important; text-decoration:none!important; }
.site-account-toggle:hover { background:#f5f8fd; }
.site-account-avatar { display:grid; flex:0 0 38px; width:38px; height:38px; place-items:center; border-radius:50%; background:linear-gradient(145deg,#e8f1ff,#d6e5ff); color:#1769df; font-size:12px; font-weight:700; }
.site-account-copy { min-width:112px; }
.site-account-copy strong,.site-account-copy small { display:block; max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.site-account-copy strong { font-size:12px; }
.site-account-copy small { margin-top:2px; color:#71809a; font-size:10px; }

@media(max-width:1450px) {
    .site-header-refresh:not(.student-site-header) .brand_logo { flex-basis:190px; }
    .site-header-refresh:not(.student-site-header) .brand_logo .navbar-brand img { width:166px; }
    .site-header-refresh:not(.student-site-header) .navbar-nav>li>a.nav-link { gap:6px; padding:0 9px!important; font-size:13px; }
    .site-header-actions { gap:9px; padding-left:9px; }
    .site-account-copy { min-width:90px; }
    .site-organisation { margin-right:14px; margin-left:14px; }
    .site-organisation__copy { max-width:360px; }
}

@media(max-width:1120px) {
    .site-account-copy { display:none; }
    .site-header-refresh:not(.student-site-header) .site-nav-icon { font-size:18px; }
    .site-organisation__copy { max-width:260px; }
}

@media(min-width:992px) {
    .site-header-refresh:not(.student-site-header) .navbar-collapse.collapse { display:flex!important; }
}

@media(min-width:768px) {
    .student-site-header .navbar-collapse.collapse { display:flex!important; width:100%; align-items:center; flex-wrap:nowrap; }
    .student-site-header .site-organisation { min-width:0; flex:1 1 auto; justify-content:flex-start; margin:0 20px; }
    .student-site-header .site-organisation__copy { max-width:360px; }
    .student-site-header .student-header-nav { flex:0 0 auto; }
}

/* Match the workspace container and sidebar so the brand sits above the menu. */
@media(min-width:1051px) {
    .site-header-refresh:not(.student-site-header)>.container { width:min(1760px,100%); }
    .site-header-refresh:not(.student-site-header) .brand_logo { display:flex; flex:0 0 260px; justify-content:center; }
    .site-header-refresh:not(.student-site-header) .navbar-brand.header-brand { justify-content:center; }
}

@media(min-width:1051px) and (max-width:1380px) {
    .site-header-refresh:not(.student-site-header) .brand_logo { flex-basis:230px; }
}

@media(max-width:991px) {
    .site-header-refresh:not(.student-site-header) { min-height:64px; padding:0 18px; }
    .site-header-refresh:not(.student-site-header)>.container { width:100%; }
    .site-header-refresh:not(.student-site-header) .row_cut { display:block; min-height:64px; }
    .site-header-refresh:not(.student-site-header) .brand_logo { display:flex; width:100%; min-height:64px; align-items:center; justify-content:space-between; }
    .site-header-refresh:not(.student-site-header) .brand_logo .navbar-brand img { width:158px; }
    .site-header-refresh:not(.student-site-header) .menuBtn { display:grid!important; width:44px; height:44px; margin-left:auto; padding:0; place-items:center; border:1px solid transparent; border-radius:10px; background:transparent; }
    .site-header-refresh:not(.student-site-header) .menuBtn:hover,.site-header-refresh:not(.student-site-header) .menuBtn:focus { border-color:#d7e4f5; outline:0; background:#f2f7ff; }
    .site-header-refresh:not(.student-site-header) .menuBtn img { width:25px; height:25px; object-fit:contain; }
    .site-header-refresh:not(.student-site-header) .bounce_menu { display:block; width:100%; }
    .site-header-refresh:not(.student-site-header) .navbar-collapse { display:none!important; padding:8px 0 14px; border-top:1px solid #e3eaf4; }
    .site-header-refresh:not(.student-site-header) .navbar-collapse.site-navigation-open { display:flex!important; flex-direction:column; }
    .site-header-refresh:not(.student-site-header) .navbar-nav { display:grid; width:100%; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; }
    .site-header-refresh:not(.student-site-header) .navbar-nav>li { display:block; }
    .site-header-refresh:not(.student-site-header) .navbar-nav>li>a.nav-link { min-height:46px; padding:0 12px!important; border-radius:8px; }
    .site-header-refresh:not(.student-site-header) .navbar-nav>li.active::after { display:none; }
    .site-header-refresh:not(.student-site-header) .dropdown-menu { position:static; width:100%; float:none; box-shadow:none; }
    .site-header-refresh:not(.student-site-header) .site-organisation { order:-2; width:100%; max-width:none; flex:none; justify-content:flex-start; margin:0; padding:10px 8px; border-bottom:1px solid #e4eaf3; }
    .site-header-refresh:not(.student-site-header) .site-organisation__copy { max-width:calc(100% - 48px); }
    .site-header-actions { order:-1; justify-content:flex-end; margin:0 0 8px; padding:10px 6px; border-top:0; border-bottom:1px solid #e4eaf3; }
    .site-account-copy { display:block; }
}

@media(max-width:767px) {
    .student-site-header .menuBtn { display:grid!important; width:44px; height:44px; margin-left:auto; padding:0; place-items:center; border:1px solid #d7e4f5; border-radius:10px; background:#f6f9fe; box-shadow:0 2px 7px rgba(30,66,121,.06); }
    .student-site-header .menuBtn:hover,.student-site-header .menuBtn:focus { border-color:#b9d0ee; outline:0; background:#edf5ff; }
    .student-site-header .menuBtn[aria-expanded="true"] { border-color:#9fc2ee; background:#e5f1ff; }
    .student-site-header .menuBtn img { width:25px; height:25px; object-fit:contain; }
    .student-site-header .navbar-collapse.site-navigation-open { display:block!important; }
    .student-site-header .site-organisation { width:100%; max-width:none; flex:none; justify-content:flex-start; margin:0; padding:10px 8px; border-bottom:1px solid #e4eaf3; }
    .student-site-header .site-organisation__copy { max-width:calc(100% - 48px); }
}

@media(max-width:991px) {
    .site-header-refresh:not(.student-site-header) .site-organisation__toggle { width:100%; }
    .site-header-refresh:not(.student-site-header) .site-organisation__menu { position:static; width:100%; max-width:none; margin-top:7px; float:none; box-shadow:none; }
}

@media(max-width:620px) {
    .site-header-refresh:not(.student-site-header) { padding:0 12px; }
    .site-header-refresh:not(.student-site-header) .brand_logo .navbar-brand img { width:145px; }
    .site-header-refresh:not(.student-site-header) .navbar-nav { grid-template-columns:1fr; }
    .site-header-refresh:not(.student-site-header) .navbar-nav>li>a.nav-link { min-height:44px; }
    .site-header-actions { align-items:center; flex-direction:row; gap:7px; }
    .site-header-notifications { position:static; order:2; flex:0 0 40px; }
    .site-account-menu { order:1; min-width:0; flex:1; }
    .site-account-menu,.site-account-toggle { width:100%; }
    .site-account-toggle { justify-content:flex-start; }
    .site-account-copy { flex:1; }
}
