/* Course map and annotated lessons */
.hero h1 {
  font-size: clamp(2.45rem, 4.6vw, 4.2rem);
}
.study-path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--edge);
  background: white;
  border-radius: 10px;
  margin: 14px 0 0;
  overflow: hidden;
}
.study-path a {
  padding: 11px 14px;
  text-align: center;
  font-size: 0.94rem;
  font-weight: 650;
}
.study-path a + a {
  border-left: 1px solid var(--edge);
}
.study-path span,
.lesson-no,
.neighbors a > span {
  font: 600 0.77rem var(--mono);
  color: #596782;
  margin-right: 10px;
}
.study-path a:hover,
.neighbors a:hover {
  background: #f1f3fc;
}
.track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.track {
  min-width: 0;
  background: white;
  border: 1px solid var(--edge);
  border-radius: 13px;
  overflow: hidden;
}
.iris {
  --c: #394eaf;
  --wash: #e9eefc;
}
.leaf {
  --c: #24664c;
  --wash: #e6f2e9;
}
.plum {
  --c: #694297;
  --wash: #f0eafa;
}
.rust {
  --c: #924f22;
  --wash: #f9ecdf;
}
.track header {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--wash);
  padding: 19px 21px;
  border-bottom: 1px solid var(--edge);
}
.track h3 {
  margin: 0;
  font-size: 1.22rem;
  letter-spacing: -0.05em;
}
.track p {
  margin: 3px 0 0;
  color: #485363;
  font-size: 0.94rem;
  line-height: 1.55;
}
.course-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #ffffffa8;
  color: var(--c);
}
.course-icon .icon {
  width: 24px;
  height: 24px;
}
.track ol {
  padding: 0 18px;
  margin: 0;
  list-style: none;
}
.track ol li {
  display: flex;
  gap: 5px;
  align-items: center;
}
.track ol li + li {
  border-top: 1px solid #e9ebf0;
}
.track ol li > a:first-child {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 9px;
  min-width: 0;
  padding: 15px 0;
  font-weight: 650;
  line-height: 1.45;
}
.track ol li > a:hover {
  color: var(--blue);
}
.lesson-no {
  color: var(--c);
  margin: 0;
}
.track .try {
  flex: none;
  font-size: 0.85rem;
  border: 1px solid var(--edge);
  padding: 4px 10px;
  border-radius: 5px;
  color: #445270;
  min-height: 32px;
  display: grid;
  place-items: center;
}
.track .done {
  font-size: 0.72rem;
  white-space: nowrap;
}
.diagnostic {
  padding: 14px 20px;
  background: white;
  border: 1px solid var(--edge);
  border-radius: 10px;
  margin-top: 22px;
}
.diagnostic summary {
  font-size: 1rem;
}
.reader {
  background: #fff;
  padding: clamp(18px, 3.4vw, 39px);
  border: 1px solid var(--edge);
  border-radius: 14px;
  min-width: 0;
}
.case {
  border-left: 3px solid #5169cc;
  padding: 0 0 0 15px;
  margin: 2px 0 25px;
}
.case > span {
  font-size: 0.83rem;
  font-weight: 700;
  color: #354ead;
}
.case p {
  margin: 6px 0 0;
  font-size: 1.04rem;
  line-height: 1.85;
  color: #394456;
}
.reader .reading {
  margin-top: 27px;
}
.reader h2 {
  font-size: 1.21rem;
  letter-spacing: -0.045em;
  line-height: 1.45;
  margin: 0 0 6px;
}
.reader .reading p {
  margin: 0;
  line-height: 1.86;
  color: #404b5e;
}
.demonstration,
.field-guide,
.source-row {
  border-top: 1px solid var(--edge);
  margin-top: 28px;
  padding-top: 23px;
}
.video-entry {
  background: #f3f5fb;
  border-radius: 8px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0;
}
.video-entry p {
  margin: 4px 0 0;
  color: #556075;
  font-size: 0.95rem;
}
.video-entry .button {
  flex: none;
}
.field-guide ol {
  padding-left: 1.4em;
}
.field-guide li {
  padding: 4px 0;
}
.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  align-items: baseline;
}
.source-row strong {
  font-size: 0.9rem;
}
.neighbors {
  display: grid;
  gap: 4px;
}
.neighbors a {
  padding: 6px;
  border-radius: 5px;
  font-size: 0.91rem;
}
.neighbors a[aria-current] {
  background: #edf0fb;
  color: var(--blue);
  font-weight: 650;
}
.guide .eyebrow {
  display: block;
  margin-bottom: 9px;
}
.progress-section {
  margin: 22px 0;
}
.progress-section h2 {
  font-size: 1.18rem;
}
.term-search {
  max-width: 540px;
}
.lab-panel .field {
  margin: 12px 0;
}
.lab-panel p,
.lab-panel td {
  overflow-wrap: anywhere;
}
.lab-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 0;
  cursor: pointer;
}
.lab-check input {
  flex: none;
}
.lab-table,
.table-scroll {
  overflow-x: auto;
}
.report-text {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.reader,
.guide,
.workbench,
.workbody {
  min-width: 0;
}
@media (max-width: 900px) {
  .video-entry {
    display: block;
  }
  .video-entry .button {
    margin-top: 12px;
  }
}
@media (max-width: 760px) {
  .track-grid {
    grid-template-columns: 1fr;
  }
  .hero .hero-art {
    opacity: 0.84;
  }
  .study-path a {
    padding: 10px 4px;
    font-size: 0.84rem;
  }
  .study-path span {
    display: block;
    margin: 0;
  }
  .lesson-layout {
    display: flex;
    flex-direction: column;
  }
  .lesson-layout > * {
    width: 100%;
  }
  .lesson-layout .guide {
    position: static;
  }
}
@media (max-width: 560px) {
  .hero h1 {
    font-size: 2.22rem;
    max-width: 95%;
  }
  .hero-art {
    width: 26%;
    opacity: 0.6 !important;
    right: -1%;
    top: 4px;
  }
  .hero-text {
    position: relative;
    z-index: 1;
  }
  .hero p br {
    display: none;
  }
  .hero .hero-text h1 {
    font-size: clamp(1.8rem, 8.8vw, 2.55rem);
  }
  .track header {
    padding: 15px;
  }
  .track ol {
    padding: 0 12px;
  }
  .track ol li > a:first-child {
    font-size: 0.93rem;
  }
  .reader .reading p,
  .case p {
    line-height: 1.8;
  }
  .study-path {
    margin-top: 9px;
  }
  .lab-table table {
    font-size: 0.82rem;
  }
  .workbody .panelblock {
    padding: 11px;
  }
  .reader {
    padding: 16px;
  }
  .lesson-grid {
    gap: 12px;
  }
}
