/* Course navigation and progressive hints. */
/* Course navigation stays compact when the curriculum grows. */
#missions.course-nav {
  display: block;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid #456a65;
  border-radius: 18px;
  background: linear-gradient(130deg,#1b393a,#142e34);
  box-shadow: inset 0 1px #c9f1d90a;
}
.course-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.course-heading>div {
  min-width: 0;
}
.course-heading .eyebrow {
  margin: 0 0 3px;
  font-size: 11px;
}
.course-heading h2 {
  font-size: 20px;
  margin: 0;
  line-height: 1.4;
}
.course-progress {
  margin-left: auto;
  flex: 0 0 170px;
  text-align: right;
}
.course-progress b {
  font-size: 13px;
  color: #bfd8c9;
}
.course-progress progress {
  display: block;
  appearance: none;
  border: 0;
  width: 100%;
  height: 6px;
  margin-top: 9px;
  background: #102629;
  border-radius: 8px;
  overflow: hidden;
}
.course-progress progress::-webkit-progress-bar {
  background: #102629;
}
.course-progress progress::-webkit-progress-value {
  background: #e7bb75;
  border-radius: 8px;
}
.course-progress progress::-moz-progress-bar {
  background: #e7bb75;
}
.course-fields {
  display: grid;
  grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  gap: 16px;
}
.course-fields label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  color: #aec9bf;
}
.course-fields select {
  width: 100%;
  min-height: var(--field-min);
  background-color: #102b30;
  font-size: 15px;
}
.course-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #b5cdc3;
}
.course-syllabus {
  margin: 16px 0 0;
  border: 0;
  border-top: 1px solid #355a55;
  background: transparent;
  padding: 0;
  border-radius: 0;
}
.course-syllabus>summary {
  padding: 13px 0 0;
  min-height: var(--control-min);
  font-size: 14px;
  color: #e6c58f;
  cursor: pointer;
}
.course-chapters {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  margin-top: 15px;
}
.course-chapters section {
  padding: 16px;
  background: #112b2e;
  border: 1px solid #345753;
  border-radius: var(--radius-control);
  min-width: 0;
}
.course-chapters h3 {
  font-size: 15px;
  color: #d8eadc;
  line-height: 1.5;
  margin: 0 0 12px;
}
.course-chapters ol {
  padding-left: 25px;
  margin: 0;
}
.course-chapters li {
  padding: 5px 0;
  font-size: 14px;
  line-height: 1.5;
  color: #9cb8b0;
}
.course-chapters li span {
  overflow-wrap: anywhere;
}
.course-chapters li small {
  display: block;
  font-size: 12px;
  color: #8fac9f;
  margin-top: 2px;
}
.course-chapters li.passed {
  color: #c0e6c6;
}
.course-chapters li.available {
  color: #f7d6a2;
}
.course-chapters li.passed small {
  color: #9fd2b0;
}
.guide-tabs {
  display: flex;
}
.guide-tabs button {
  flex: 1 1 0;
}
.guide-tabs button[hidden] {
  display: none;
}
.solution-status {
  font-size: 13px;
  line-height: 1.7;
  color: #b0c9ba;
  background: #102e28;
  border-top: 1px solid #355a4c;
  margin: 0;
  padding: 13px 16px;
}
.solution-status:empty {
  display: none;
}
.solution-status.ready {
  color: #efd39d;
}
.solution-offer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.solution-offer p {
  margin: 0;
  flex: 1 1 200px;
}
.solution-offer button {
  background: #24493e;
  border-color: #648768;
  color: #ebd5a5;
}
@media(max-width:820px) {
  .course-chapters {
    grid-template-columns: 1fr;
  }
  .course-heading {
    flex-wrap: wrap;
  }
  .course-progress {
    flex: 1 1 100%;
    text-align: left;
    margin: 0;
  }
  .course-progress progress {
    max-width: none;
  }
  .course-fields {
    grid-template-columns: 1fr;
  }
  .course-heading h2 {
    font-size: 18px;
  }
  #missions.course-nav {
    padding: 16px;
  }
}
