@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);
}

.preview-course-rail .rail-heading {
  margin: .7rem .4rem .1rem;
  padding-top: .7rem;
  border-top: 1px solid #ffffff40;
  color: #d1e5fa;
  font-size: .76rem;
  font-weight: 700;
}

.preview-course-rail[data-course="jee"] .rail-heading {
  color: #ffce9d;
}

.course-index .hero .instructor-links {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .9rem;
  font-family: var(--student-body);
  font-size: .875rem;
  font-weight: 400;
}

.instructor-links a {
  color: var(--student-navy);
  text-underline-offset: .2em;
  white-space: nowrap;
}

.instructor-links [aria-hidden="true"] {
  display: inline-block;
  margin-inline-end: .15em;
  font-size: .95em;
}

.preview-top-links {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .6rem;
  font-size: .875rem;
}

.preview-top-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding-inline: .6rem;
  border-radius: .25rem;
  color: var(--student-navy);
  text-decoration: none;
  white-space: nowrap;
}

.preview-top-links a:is(:hover, :focus-visible) {
  background: var(--student-green-wash);
  text-decoration: underline;
}

.preview-course-rail .preview-admin-link,
.preview-top-links .preview-admin-link {
  font-size: .76rem;
  text-decoration: underline;
  text-underline-offset: .18em;
}

.preview-course-rail .preview-admin-link {
  color: #d1e5fa;
}

.course-index .masthead .wrap:has(.preview-top-links) {
  width: min(100% - 2rem, 82rem);
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  padding-block: .5rem;
}

@media (max-width: 870px) {
  .preview-top-links {
    flex-basis: 100%;
    margin-inline-start: -.6rem;
  }
}

.preview-course-picker {
  margin-block: 0 1.6rem;
  padding-top: 1.35rem;
}

.course-picker-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem .9rem;
  margin-bottom: .55rem;
}

.preview-course-picker #choose-course {
  margin: 0;
  font-size: 1rem;
}

.course-resources-link {
  font-size: .875rem;
  font-weight: 650;
  text-underline-offset: .2em;
}

.course-index main > .preview-course-picker + .hero {
  padding-top: .35rem;
}

.preview-course-picker .course-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-options [data-course="ab"] { --course-color: #174a83; --course-wash: #edf4fc; }
.course-options [data-course="bc"] { --course-color: #215e4b; --course-wash: #ecf6f0; }
.course-options [data-course="jee"] { --course-color: #89501b; --course-wash: #fbf2e8; }

.course-options li > :is(a, div) {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  box-sizing: border-box;
  min-height: 100%;
  padding: .55rem .65rem;
  border: 1px solid var(--rule);
  border-inline-start: 4px solid var(--course-color);
  border-radius: .25rem;
  background: var(--course-wash);
  color: var(--course-color);
  text-decoration: none;
}

.course-options a[aria-current="page"],
.course-options a:is(:hover, :focus-visible) {
  border-color: var(--course-color);
}

.course-options a:is(:hover, :focus-visible) strong {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.course-options strong { font-size: .94rem; line-height: 1.3; }
.course-options span { font-size: .8rem; }

.resource-index .resource-library h1 {
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 1.05;
}

.resource-index .resource-library .resource-course-picker {
  display: block;
  margin-block: 1rem 1.7rem;
}

.resource-index .resource-library .course-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin: 0;
}

.resource-index .resource-library .course-options > li {
  border: 0;
  padding: 0;
}

.pdf-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
}

.pdf-actions .pdf-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  min-height: 1.8rem;
  border: 1px solid var(--rule);
  border-radius: .25rem;
  text-decoration: none;
}

.resource-index .resource-library .resource-course-picker .course-options a {
  padding: .8rem 1rem;
  gap: .35rem;
}

.jee-lesson #video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-inline: auto;
  border: 0;
  background: #111;
}

.jee-lesson #selected-problem {
  color: #774511;
  font-weight: 650;
}

.jee-problem-label {
  display: block;
  color: #774511;
  font: 650 .9rem/1.4 var(--student-body);
  margin-bottom: .2rem;
}

.jee-lesson-entry {
  margin-top: .8rem;
  padding: .65rem .8rem;
  border: 1px solid var(--rule);
  border-inline-start: 3px solid #89501b;
}

.jee-lesson-entry h3 {
  font-size: 1rem;
}

.jee-links .jee-lesson-entry ul {
  margin-top: .4rem;
}

.jee-links .jee-lesson-entry li {
  padding-block: .35rem;
}

.jee-lesson-entry li a {
  display: flex;
  flex-wrap: wrap;
  column-gap: .6rem;
}

.resource-index .resource-library a {
  text-underline-offset: .2em;
}

.resource-index .resource-collection-heading {
  margin-bottom: .5rem;
}

.preview-top-links a[aria-current="page"] {
  background: var(--student-green-wash);
}

@media (max-width: 750px) {
  .preview-course-picker .course-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.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; }

#instructor h2 { margin-top: 1.4rem; font-size: 1.15rem; }
#instructor p + p { margin-top: .65rem; }
