.course-hero {
  grid-template-columns: 220px minmax(520px, 760px);
  justify-content: center;
  background: radial-gradient(circle at 62% 45%, #fffaf2 0, rgba(247, 239, 227, .85) 48%, #ead8bd);
}

.course-hero-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.course-hero-action .start-course {
  white-space: nowrap;
}

.course-section-kicker {
  margin: 0;
  padding: 30px 11% 0;
  background: #fffaf2;
}

.course-about {
  padding-top: 44px;
}

.teacher-profile {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.teacher-profile figure {
  position: relative;
  margin: 4px;
  padding: 7px;
  overflow: visible;
  border: 1px solid #6f4725;
  outline: 1px solid rgba(163, 115, 55, .55);
  outline-offset: 3px;
  background: #dfc79f;
  box-shadow: 10px 12px 26px rgba(91, 61, 30, .13);
}

.teacher-profile figure::before,
.teacher-profile figure::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 17px;
  height: 17px;
  pointer-events: none;
}

.teacher-profile figure::before {
  top: -4px;
  left: -4px;
  border-top: 3px double #8e5e29;
  border-left: 3px double #8e5e29;
}

.teacher-profile figure::after {
  right: -4px;
  bottom: -4px;
  border-right: 3px double #8e5e29;
  border-bottom: 3px double #8e5e29;
}

.teacher-profile img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid rgba(98, 58, 23, .32);
  object-fit: cover;
  object-position: center top;
}

.teacher-profile figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 6px 10px;
  color: #fffaf2;
  background: rgba(98, 58, 23, .84);
  font-size: 10px;
  letter-spacing: .16em;
}

.teacher-copy p {
  margin-bottom: 0;
  color: #6a5948;
  text-indent: 2em;
  font-size: 15px;
  line-height: 2;
}

.feature-list {
  counter-reset: course-feature;
  gap: 18px;
}

.feature-list article {
  position: relative;
  min-height: 178px;
  padding: 34px 25px 25px;
  overflow: hidden;
  background: linear-gradient(145deg, #f8eddb, #ecdbc1);
  border: 1px solid rgba(150, 102, 51, .2);
  border-top: 0;
  box-shadow: 0 12px 30px rgba(91, 61, 30, .08);
  counter-increment: course-feature;
}

.feature-list article::before {
  content: "0" counter(course-feature);
  position: absolute;
  top: 15px;
  right: 18px;
  color: rgba(142, 94, 41, .28);
  font-size: 28px;
  line-height: 1;
}

.feature-list article::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 58px;
  height: 3px;
  background: #8e5e29;
}

.feature-list b {
  display: block;
  padding-bottom: 14px;
  color: #4b2f19;
  border-bottom: 1px solid rgba(142, 94, 41, .18);
  font-size: 18px;
  letter-spacing: .12em;
}

.feature-list p {
  margin-top: 15px;
  color: #75604b;
  font-size: 13px;
  line-height: 1.9;
}

.course-catalog {
  background: #f7efe3;
  border-top: 1px solid rgba(163, 115, 55, .12);
}

.chapter-tabs button {
  background: rgba(255, 250, 242, .82);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  margin-top: 28px;
}

.catalog-content {
  min-width: 0;
  box-shadow: 0 10px 34px rgba(91, 61, 30, .055);
}

.chapter-tabs {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  padding: 8px;
  overflow: visible;
  background: rgba(234, 216, 189, .58);
}

.chapter-tabs button {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border-left: 3px solid transparent;
  text-align: left;
  line-height: 1.5;
  cursor: pointer;
  transition: color .2s, background .2s;
}

.chapter-tabs button:hover {
  color: #623a17;
  background: #fffaf2;
}

.chapter-tabs button.active:hover {
  color: #fff;
  background: #7c4f20;
}

.chapter-tabs button.active {
  border-left-color: #d8b47d;
}

.unit-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 112px;
  padding: 22px 28px;
  color: #5f4934;
  background: #ead8bd;
}

.unit-summary span {
  color: #9a692f;
  font-size: 11px;
  letter-spacing: .16em;
}

.unit-summary h3 {
  margin: 8px 0 0;
  font-size: 22px;
  letter-spacing: .06em;
}

.unit-summary > p {
  margin: 0;
  text-align: right;
  font-size: 13px;
}

.unit-summary small {
  display: block;
  margin-top: 8px;
  color: #937554;
}

.lesson-title small {
  display: block;
}

.lesson-order {
  color: #8b7661;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .catalog-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .course-catalog {
    padding-right: 7%;
    padding-left: 7%;
  }
}

.lesson-list {
  box-shadow: 0 10px 34px rgba(91, 61, 30, .055);
}

/* Draw the play mark instead of using the ▶ character, which iOS renders as emoji. */
.play-mark {
  position: relative;
  font-size: 0;
}

.play-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #fff;
  transform: translate(-40%, -50%);
}
