/* Student portal icons. The school theme still supplies the navigation and hero backgrounds. */
@media screen {
  :root{--stu-icon-blue:#2563b0;--stu-icon-purple:#8554b7;--stu-icon-teal:#138477;--stu-icon-orange:#be651a;--stu-icon-red:#ba4555;--stu-icon-gold:#805b0c}
  html.stu-dark{--stu-icon-blue:#8dbbff;--stu-icon-purple:#c2a4f2;--stu-icon-teal:#6ad9c1;--stu-icon-orange:#ffbd83;--stu-icon-red:#ff9dac;--stu-icon-gold:#f1ca70}
  html body .stu-main-with-sidebar .action-card .icon{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#e9f1fc;color:var(--stu-icon-blue)}
  html body .stu-main-with-sidebar .action-card[href*="timetable"] .icon{background:#f0eafa;color:var(--stu-icon-purple)}
  html body .stu-main-with-sidebar .action-card[href*="homework"] .icon{background:#e1f4f0;color:var(--stu-icon-teal)}
  html body .stu-main-with-sidebar .action-card[href*="fees"] .icon{background:#fff7df;color:var(--stu-icon-gold)}
  html body .stu-main-with-sidebar .action-card[href*="password"] .icon{background:#fff0e3;color:var(--stu-icon-orange)}
  .action-card[href*="timetable"]{--tile-icon:var(--stu-icon-purple)}
  .action-card[href*="homework"]{--tile-icon:var(--stu-icon-teal)}
  .action-card[href*="fees"]{--tile-icon:var(--stu-icon-gold)}
  .action-card[href*="password"]{--tile-icon:var(--stu-icon-orange)}
  html body :is(.stu-sidebar,.stu-bnav,.stu-more-links) a[href*="dashboard"] svg{color:var(--stu-icon-blue)}
  html body :is(.stu-sidebar,.stu-bnav,.stu-more-links) a[href*="results"] svg{color:var(--stu-icon-gold)}
  html body :is(.stu-sidebar,.stu-bnav,.stu-more-links) a[href*="timetable"] svg{color:var(--stu-icon-purple)}
  html body :is(.stu-sidebar,.stu-bnav,.stu-more-links) a:is([href*="homework"],[href*="learning-access"],[href*="library"],[href*="study-materials"],[href*="cbt"]) svg{color:var(--stu-icon-teal)}
  html body :is(.stu-sidebar,.stu-bnav,.stu-more-links) a:is([href*="fees"],[href*="subscription"],[href*="documents"]) svg{color:var(--stu-icon-gold)}
  html body :is(.stu-sidebar,.stu-bnav,.stu-more-links,.stu-topbar) a[href*="notifications"] svg{color:var(--stu-icon-orange)}
  html body :is(.stu-sidebar,.stu-more-links) a[href*="password"] svg{color:var(--stu-icon-purple)}
  html body .stu-more-links button .stu-more-icon{color:var(--stu-icon-blue)}
  html body .stu-more-links a[href*="logout"] svg{color:var(--stu-icon-red)}
  html.stu-dark body.student-dashboard .stu-main-with-sidebar .action-card .icon{background:#ffffff0c;color:var(--tile-icon,var(--stu-icon-blue))}
  :root{--overview-average:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M8%2021v-5m4%205V9m4%2012V3%22%2F%3E%3C%2Fsvg%3E")}
  :root{--overview-attendance:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M8%202v4m8-4v4M3%2010h18m-13%206%202%202%204-4%22%2F%3E%3C%2Fsvg%3E")}
  :root{--overview-homework:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M2%203h6a4%204%200%200%201%204%204v14a3%203%200%200%200-3-3H2zm20%200h-6a4%204%200%200%200-4%204v14a3%203%200%200%201%203-3h7z%22%2F%3E%3C%2Fsvg%3E")}
  :root{--overview-notification:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M18%208a6%206%200%200%200-12%200c0%207-3%209-3%209h18s-3-2-3-9m-8%2012a2%202%200%200%200%204%200%22%2F%3E%3C%2Fsvg%3E")}
  html body.student-dashboard .dash-stat{position:relative}
  html body.student-dashboard .dash-stat:not(.dash-fee-stat)::before{content:"";position:absolute;right:12px;top:13px;width:18px;height:18px;background:var(--overview-color,var(--stu-icon-blue));mask:var(--overview-icon,var(--overview-average)) center/contain no-repeat;-webkit-mask:var(--overview-icon,var(--overview-average)) center/contain no-repeat;pointer-events:none}
  html body.student-dashboard .dash-stat>span:first-child{padding-right:20px}
  html body.student-dashboard .dash-stat:nth-child(2){--overview-icon:var(--overview-attendance);--overview-color:var(--stu-icon-teal)}
  html body.student-dashboard .dash-stat[href*="homework"]{--overview-icon:var(--overview-homework);--overview-color:var(--stu-icon-purple)}
  html body :is(.stu-sidebar,.stu-bnav) a[href*="notifications"] svg{color:var(--stu-icon-orange)}
  html body .stu-sidebar a[href*="password"] svg{color:var(--stu-icon-purple)}
  html body .stu-bnav button .bn-icon{color:var(--stu-icon-purple)}
  html body.student-dashboard .dash-stat[href*="notifications"]{--overview-icon:var(--overview-notification);--overview-color:var(--stu-icon-orange)}
  html body .stu-topbar .stu-tb-logout svg{color:var(--stu-icon-red)}
  /* Use the solid icon colours and a stronger outline on the mobile bar. */
  @media (max-width:768px) {
    html body .stu-bnav .bn-icon,
    html body .stu-bnav .bn-icon svg { opacity:1 }
    html body .stu-bnav .bn-icon svg { stroke-width:2.3; stroke-opacity:1 }
  }
}
