/* Offer detail pages only. Homepage and course administration are unchanged. */
.course-detail .course-detail-main {
  overflow: visible;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.course-detail .course-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.5rem 0 2.5rem;
  color: #4a584f;
  font-size: .85rem;
  line-height: 1.5;
}

.course-detail .course-breadcrumb a,
.course-detail .course-detail-main a:not(.light-pill-cta):not(.course-slot) {
  color: #435c4d;
  text-underline-offset: .18em;
}

.course-detail .course-detail-main a:focus-visible {
  outline: 3px solid #526b5c;
  outline-offset: 4px;
}

.course-detail .course-intro {
  max-width: 62rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.course-detail h1,
.course-detail .course-detail-main h2 {
  color: var(--light-ink);
  font-family: "Rubik", sans-serif;
  font-weight: 700;
  text-wrap: balance;
}

.course-detail h1 {
  margin: 0 0 1.3rem;
  font-size: clamp(2rem, 4.5vw, 3.9rem);
  letter-spacing: -.045em;
  line-height: 1.1;
}

.course-detail .course-age-range {
  white-space: nowrap;
}

.course-detail .course-detail-main h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  letter-spacing: -.025em;
  line-height: 1.25;
}

.course-detail .course-detail-lead {
  max-width: 53rem;
  margin: 0;
  color: #4a584f;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  line-height: 1.6;
}

.course-detail .course-audience {
  display: inline-block;
  margin: 1.4rem 0 0;
  padding: .55rem .85rem;
  border-radius: 999px;
  background: var(--light-green-soft);
  color: #435c4d;
  font-size: .9rem;
  font-weight: 700;
}

.course-detail .course-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
}

.course-detail .course-text-link {
  padding: .7rem 0;
  font-weight: 700;
}

.course-detail .course-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(18rem, .85fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}

.course-detail .course-detail-copy section + section {
  margin-top: 2.5rem;
}

.course-detail .course-detail-main p,
.course-detail .course-detail-main address,
.course-detail .course-registration-info li {
  line-height: 1.7;
}

.course-detail .course-detail-copy p,
.course-detail .course-selection p,
.course-detail .course-registration-info li,
.course-detail .course-detail-faq p {
  color: #4a584f;
  font-size: 1rem;
}

.course-detail .course-detail-copy p:last-child {
  margin-bottom: 0;
}

.course-detail address {
  font-size: 1rem;
  font-style: normal;
  font-weight: 700;
}

.course-detail .course-selection {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--light-line);
  border-radius: 1rem;
  background: #f7f9f7;
  scroll-margin-top: 1.5rem;
}

.course-detail .course-selection .light-eyebrow {
  font-size: .65rem;
}

.course-detail .course-slot-list {
  display: grid;
  gap: .75rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.course-detail .course-slot {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1rem;
  border: 1px solid #a8b8ac;
  border-radius: .65rem;
  background: #fff;
  color: var(--light-ink);
  font-size: .95rem;
  line-height: 1.55;
  text-decoration: none;
}

.course-detail .course-slot > span {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #4a584f;
  font-size: .85rem;
}

.course-detail .course-slot:hover,
.course-detail .course-slot:focus-visible {
  border-color: #526b5c;
  background: var(--light-green-soft);
}

.course-detail .course-selection .course-price-note,
.course-detail .course-selection .course-empty-state {
  margin-top: 1.5rem;
  font-size: .9rem;
}

.course-detail .course-registration-info {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--light-line);
}

.course-detail .course-registration-info ol {
  max-width: 58rem;
  margin-bottom: 0;
  padding-left: 1.4rem;
}

.course-detail .course-registration-info li + li {
  margin-top: .85rem;
}

.course-detail .course-detail-faq {
  max-width: 58rem;
  margin-top: 3.5rem;
}

.course-detail .course-detail-faq .light-faq-item summary {
  font-size: 1rem;
}

.course-detail .course-related {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--light-line);
}

.course-detail .course-related ul {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.course-detail .course-related a {
  display: inline-block;
  padding: .65rem 0;
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .course-detail .course-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .course-detail .course-selection {
    grid-row: 1;
  }
}

@media (max-width: 480px) {
  .course-detail h1 {
    font-size: clamp(1.8rem, 8.4vw, 2.3rem);
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .course-detail .course-breadcrumb {
    margin-bottom: 2rem;
  }

  .course-detail .course-detail-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: .5rem;
  }

  .course-detail .light-pill-cta {
    max-width: 100%;
    white-space: normal;
  }
}
