/* References retain their established position below the educational answer. */
.learning-activity-body .tutor-reference .question-reference {
  color: #00816a;
}
.learning-activity-body .question-source-issue {
  margin: 15px 0;
  padding: 14px 16px;
  border: 1px solid #d9c493;
  border-radius: 12px;
  background: #fffaef;
  color: #624c23;
  font-size: .84rem;
  line-height: 1.9;
}
.learning-activity-body .question-source-issue p { margin: 6px 0; }
.learning-activity-body .question-source-issue small { display: block; font-size: .75rem; }
.learning-activity-body .question-original-options {
  display: grid;
  gap: 7px;
  margin: 12px 0;
  padding-inline-start: 24px;
  color: #203149;
  font-size: .92rem;
  line-height: 1.9;
}
.learning-activity-body .tutor-reference .question-answer-origin {
  margin: 7px 0 10px;
  padding: 7px 9px;
  border-radius: 7px;
  background: #eff5fb;
  color: #415975;
  font-size: .76rem;
}
/* Chapter 1 keeps the existing connected path, with clear topic/challenge phases. */
.chapter1-source-path .chapter-source-overview {
  margin: 9px 0 4px;
  color: #536779;
  font-size: .86rem;
  line-height: 1.9;
}
.chapter1-source-path .chapter-source-phase {
  position: relative;
  z-index: 2;
  padding: 13px 15px;
  margin: 23px 0 0;
  border-inline-start: 3px solid #00816a;
  border-radius: 11px;
  background: #effaf6;
  text-align: start;
  overflow-wrap: anywhere;
}
.chapter1-source-path .chapter-source-phase h3 {
  margin: 0;
  color: #152542;
  font-size: .94rem;
  line-height: 1.8;
}
.chapter1-source-path .chapter-source-phase p {
  margin: 3px 0 0;
  color: #536779;
  font-size: .8rem;
  line-height: 1.9;
}
.chapter1-source-path .chapter-source-phase-advanced {
  align-self: stretch;
  margin-top: 8px;
  border-color: #152542;
  background: #f0f5f7;
}
.chapter1-source-path .stage-node-challenge .stage-label { border-style: dashed; border-color: #94b5ab; }
.chapter1-source-path .chapter-source-challenge-badge {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 7px;
  background: #e8f7f0;
  color: #006e5a;
  font-size: .69rem;
  font-weight: 750;
  line-height: 1.6;
}
@media (max-width: 760px) {
  .chapter1-source-path .chapter-source-phase { padding: 11px 12px; }
  .chapter1-source-path .chapter-source-phase h3 { font-size: .87rem; }
  .chapter1-source-path .chapter-source-phase p { font-size: .76rem; }
}
