/* iLearn Maths student mode — 2026-08-23
   Keeps logged-in student navigation focused on learning only. */

body.student-mode {
  --student-ink: #18243a;
  --student-muted: #607089;
  --student-line: #dce5ef;
  --student-blue: #3978a8;
  --student-blue-soft: #eef6fb;
  --student-green: #3f775e;
}

body.student-mode .site-header {
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom: 1px solid var(--student-line) !important;
  box-shadow: 0 5px 18px rgba(31, 47, 73, 0.055) !important;
}

body.student-mode .site-header .header-inner {
  min-height: 70px;
}

body.student-mode .site-header .site-nav,
body.student-mode .site-header .header-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: .45rem !important;
  flex-wrap: wrap !important;
}

body.student-mode .student-nav-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .38rem !important;
  min-height: 42px !important;
  padding: .62rem .92rem !important;
  border: 1px solid transparent !important;
  border-radius: 13px !important;
  color: #31435c !important;
  background: transparent !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  line-height: 1 !important;
}

body.student-mode .student-nav-link:hover,
body.student-mode .student-nav-link:focus-visible {
  border-color: #cad9e7 !important;
  background: #f4f8fb !important;
  color: #1f4f72 !important;
  outline: none !important;
}

body.student-mode .student-nav-link.student-nav-active {
  border-color: #b8d5e9 !important;
  background: #edf7fd !important;
  color: #205e88 !important;
}

body.student-mode .student-nav-link.student-nav-logout {
  border-color: #d8e2ec !important;
  background: #fff !important;
}

body.student-mode .site-footer {
  display: none !important;
}

body.student-mode .breadcrumbs {
  color: #718198 !important;
}

body.student-mode .breadcrumbs a {
  color: #41627f !important;
  font-weight: 750 !important;
}

body.student-mode .year-hero,
body.student-mode .overview-header {
  box-shadow: 0 10px 28px rgba(36, 54, 83, .065) !important;
}

body.student-mode .overview-card p,
body.student-mode .year-hero-copy p:not(.year-eyebrow),
body.student-mode .overview-header > p {
  max-width: 760px;
}

body.student-mode .secondary-button[href*="student-dashboard"],
body.student-mode a[href*="student-dashboard"][class*="secondary"] {
  background: #fff !important;
  border-color: #cbdbe8 !important;
  color: #315b79 !important;
}

body.student-mode .bottom-navigation a,
body.student-mode .year-navigation a {
  background: #fff !important;
}

@media (max-width: 760px) {
  body.student-mode .site-header .header-inner {
    align-items: center !important;
  }
  body.student-mode .site-header .site-nav,
  body.student-mode .site-header .header-nav {
    width: 100% !important;
    justify-content: stretch !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
  }
  body.student-mode .student-nav-link {
    width: 100% !important;
    padding-inline: .5rem !important;
    font-size: .82rem !important;
  }
}
