/* /courses/:slug */
.course-hero { padding: calc(var(--nav-h) + 40px) 0 88px; }
.course-hero .hero-bg img { object-position: center 30%; }
.course-hero__inner { position: relative; z-index: 1; max-width: calc(var(--container) + 2 * var(--gutter)); }
.course-hero__inner > * { max-width: 640px; }
.course-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.course-hero h1 { margin-bottom: 20px; max-width: 760px; }
.course-hero .lead { font-size: 16.5px; }

.course-tabs { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.course-tabs__nav { display: flex; gap: 6px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; max-width: calc(100% - 440px); }
.course-tabs__nav::-webkit-scrollbar { display: none; }
.course-tabs__nav a { padding: 9px 16px; border-radius: var(--pill); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--ink); }
.course-tabs__nav a:hover { background: var(--bg); }
.course-tabs__nav a.is-active { background: var(--gold-tint); }

.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: start; padding-bottom: 40px; }
.course-aside { position: relative; z-index: 11; margin-top: -170px; height: 100%; }
.price-card { position: sticky; top: 24px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.price-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.logo-mark--boxed { border-radius: 12px; box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.price-card__price { margin: 0; font-family: var(--serif); font-size: 38px; line-height: 1; font-weight: 600; }
.price-card__note { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.price-card__ticks { padding: 16px 18px; margin-bottom: 18px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; }
.price-card .btn + .btn { margin-top: 12px; }
.price-card__ask { margin: 16px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.price-card__ask a { color: var(--ink); font-weight: 700; }

.course-section { padding-top: 64px; scroll-margin-top: 70px; }
.course-section h2 { margin-bottom: 14px; }
.course-lead { max-width: none; font-size: 15.5px; margin-bottom: 26px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 28px; }
.fact { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.fact dt { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fact dd { margin: 0; font-size: 16.5px; font-weight: 700; }
.course-photos { display: grid; grid-template-columns: 1.85fr 1fr; gap: 14px; }
.course-photo { aspect-ratio: auto; height: 280px; border-radius: var(--r-card); }
.course-photo .photo__caption { font-size: 19px; }
.course-photo--wide .photo__caption { right: 90px; }
.course-photo__chip { position: absolute; right: 18px; bottom: 20px; z-index: 1; }

.units { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow-sm); font-size: 14.5px; }
.units td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.units tr:last-child td { border-bottom: 0; }
.units td:first-child { width: 96px; }
.units__code { width: 130px; font-size: 12.5px; color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.unit-type { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.unit-type--core { background: var(--ink); color: #fff; }
.unit-type--elective { background: var(--gold-tint); color: var(--ink); }

.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.outcome { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); font-weight: 700; font-size: 14.5px; line-height: 1.3; }
.outcome .logo-mark { border-radius: 9px; flex: none; }

.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.way .eyebrow { margin-bottom: 6px; color: var(--muted); }
.way.on-dark .eyebrow { color: var(--gold-light); }
.way__price { margin: 0 0 10px; font-family: var(--serif); font-size: 36px; font-weight: 500; line-height: 1.1; }
.way p.muted, .way__text { font-size: 14.5px; margin-bottom: 20px; }
.way__text { color: var(--on-dark); }
.card--dark.way { box-shadow: var(--shadow-lg); }

.next-step { padding: 72px 0 96px; background: #fff; margin-top: 64px; }
.next-step__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.next-step__head h2 { font-size: clamp(26px, 2.6vw, 32px); }
.next-strip { display: grid; grid-template-columns: 104px 1fr auto; align-items: center; gap: 22px; padding: 18px 28px 18px 18px; border-radius: var(--r-lg); text-decoration: none; color: var(--ink); background: linear-gradient(120deg, #D9BC72 0%, var(--gold) 50%, #BD9339 100%); box-shadow: 0 24px 50px -26px rgba(169, 133, 47, .8); transition: transform .2s ease; }
.next-strip:hover { transform: translateY(-2px); }
.next-strip__img { position: relative; width: 104px; height: 104px; border-radius: 16px; overflow: hidden; border: 3px solid rgba(255, 255, 255, .6); background: var(--ink); }
.next-strip__img img { width: 100%; height: 100%; object-fit: cover; }
.next-strip__img .logo-mark { position: absolute; right: 6px; bottom: 6px; border-radius: 7px; }
.next-strip__body { display: flex; flex-direction: column; gap: 2px; }
.next-strip__eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.next-strip__title { font-family: var(--serif); font-size: 26px; line-height: 1.15; }
.next-strip__blurb { font-size: 14px; opacity: .8; }
.next-strip__price { font-size: 22px; font-weight: 800; }

@media (max-width: 1100px) {
  .course-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; }
  .course-tabs__nav { max-width: calc(100% - 380px); }
  .outcomes { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .course-layout { grid-template-columns: 1fr; gap: 0; }
  .course-aside { order: -1; margin-top: 32px; height: auto; }
  .price-card { position: static; }
  .course-tabs__nav { max-width: none; }
  .course-hero { padding-bottom: 56px; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .course-photos, .ways, .outcomes { grid-template-columns: 1fr; }
  .course-photo { height: 240px; }
  .units td { padding: 12px; }
  .units td:first-child { width: auto; }
  .units__code { width: auto; }
  .units tr { display: grid; grid-template-columns: auto 1fr; }
  .units td:nth-child(3) { grid-column: 1 / -1; padding-top: 0; }
  .units td:nth-child(-n+2) { border-bottom: 0; }
  .next-strip { grid-template-columns: 72px 1fr; padding: 14px; gap: 14px; }
  .next-strip__img { width: 72px; height: 72px; }
  .next-strip__title { font-size: 21px; }
  .next-strip__price { grid-column: 2; font-size: 18px; }
  .next-step { padding: 56px 0 64px; margin-top: 48px; }
}
.course-hero h1 { font-size: clamp(36px, 4.2vw, 56px); max-width: 860px; }
.course-hero .breadcrumb { margin-bottom: 22px; }
.unit-type { white-space: nowrap; }
.unit-type--group { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.units-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
