/* Sidebar tweaks for the course website (HTML pages only — slides use theme.scss). */

/* Bold the collapsible section headers in the docked sidebar
   ("Course info", "Before you start", "Day 1 — ...", "Day 2 — ...", etc.)
   so they stand out from the leaf-page entries below them. */
.sidebar-item.sidebar-item-section > .sidebar-item-container,
.sidebar-item.sidebar-item-section > .sidebar-item-container > a,
.sidebar-item.sidebar-item-section > .sidebar-item-container > .sidebar-item-toggle,
.sidebar-item.sidebar-item-section > .sidebar-item-container .sidebar-item-text {
  font-weight: 700;
}

/* Colour sidebar leaf links by type so they're identifiable at a glance:
   - Lectures (any file with "lec" in the name) → green
   - Quizzes (any file with "quiz" in the name) → blue
   The exercises and concepts pages keep the default (black/grey) colour. */
.sidebar a.sidebar-item-text[href*="lec"],
.sidebar-item .sidebar-item-text > a[href*="lec"] {
  color: #1a7a3b;       /* lecture green */
}
.sidebar a.sidebar-item-text[href*="lec"]:hover,
.sidebar-item .sidebar-item-text > a[href*="lec"]:hover {
  color: #105025;
}

.sidebar a.sidebar-item-text[href*="quiz"],
.sidebar-item .sidebar-item-text > a[href*="quiz"] {
  color: #2a55c2;       /* quiz blue */
}
.sidebar a.sidebar-item-text[href*="quiz"]:hover,
.sidebar-item .sidebar-item-text > a[href*="quiz"]:hover {
  color: #1a3a8c;
}

/* Exercise / warm-up sidebar entries — italic.
   We italicise every dayN/ leaf link, then explicitly exclude
   lectures (lec*), quizzes (*quiz*), and the concept summary
   (00-concepts) so only the exercises themselves are italic. */
.sidebar a.sidebar-item-text[href*="/day"]:not([href*="lec"]):not([href*="quiz"]):not([href*="00-concepts"]) {
  font-style: italic;
}
