@font-face {
  font-family: "Montserrat";
  src: url("/assets/Montserrat-ExtraBold.otf") format("opentype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --student-body: "Segoe UI", Arial, sans-serif;
  --student-heading: "Montserrat", var(--student-body);
  --student-navy: #17385f;
  --student-line: #c8d3df;
  --student-yellow: #f1ce66;
  --student-pink: #ff64b9;
  --student-green: #6ef596;
  --student-green-wash: #eef8f1;
}

.course-index,
.student-lesson {
  --ink: var(--student-navy);
  --green: var(--student-navy);
  --paper: white;
  --rule: var(--student-line);
  --wash: var(--student-green-wash);
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--student-body);
}

.course-index :is(h1, h2, h3, .brand, .unit-name),
.student-lesson #title,
.student-lesson :is(h1, h2, h3, .brand, .channel > span:nth-child(2)) {
  font-family: var(--student-heading);
  font-weight: 800;
}

.course-index :is(.topic, input),
.student-lesson :is(.toolbar, .channel, .channel a, button, select) {
  font-family: var(--student-body);
  font-weight: 400;
}

.course-index .brand span,
.student-lesson .brand span {
  text-decoration: underline;
  text-decoration-color: var(--student-pink);
  text-underline-offset: .18em;
}

.course-index .course-rail .brand span {
  color: var(--student-pink);
  text-decoration: none;
}

.course-index .course-rail b {
  color: var(--student-yellow);
}

.course-index .unit .eyebrow,
.student-lesson #breadcrumb {
  width: fit-content;
  border-bottom: 2px solid var(--student-yellow);
}

.course-index .course-rail a[aria-current] {
  border-color: var(--student-green);
}

.course-index .topic:is(:hover, :focus-visible),
.student-lesson .toolbar button[aria-expanded="true"],
.student-lesson .recordings [aria-current="page"] {
  background: var(--student-green-wash);
  box-shadow: inset 0 -2px var(--student-green);
}

.student-lesson #breadcrumb {
  margin-inline: auto;
  padding-bottom: .15em;
}

.student-lesson .recordings {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1rem;
}

.student-lesson .recordings a {
  padding: .4rem .7rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  text-decoration: none;
}

.student-lesson .concept,
.student-lesson .problem {
  padding: 1rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.student-lesson .problem {
  margin-top: 1rem;
  background: #fff5fb;
  border-left: 3px solid var(--student-pink);
}

.student-lesson :is(.concept, .problem) h2 {
  margin: 0;
  line-height: 1.25;
}

.student-lesson .problem summary {
  cursor: pointer;
}

.student-lesson :is(.lesson-explanation, .lesson-examples, .lesson-workbook) {
  max-width: 52rem;
  margin: 2.5rem auto;
  line-height: 1.65;
}
.student-lesson .lesson-graph svg { max-width: 100%; height: auto; }
.student-lesson :is(.lesson-table, .problem-prompt, .solution-steps li, .problem-answers li, .lesson-toolbox li, .problem-choices li) { overflow-x: auto; }
.student-lesson .workbook-problem { min-width: 0; border-top: 1px solid var(--rule); padding: .75rem 0; scroll-margin-top: 1rem; }
.student-lesson .concept-scene { padding-top: .75rem; }
.student-lesson details > summary { cursor: pointer; padding-block: .35rem; }
.student-lesson .problem-index { display:flex; flex-wrap:wrap; gap:.4rem; margin-bottom:1rem; }
.student-lesson .problem-index a { padding:.3rem .75rem; border:1px solid var(--rule); border-radius:4px; }
.student-lesson .selected-problem { border-left:3px solid var(--student-pink); padding-left:.7rem; }
.student-lesson .channel { flex-wrap: wrap; }
.student-lesson .channel a[rel="author"] { background:transparent; color:var(--student-navy); padding:0; font:inherit; font-size:.875rem; text-decoration:underline; text-underline-offset:.18em; }
