.course-picker {
  padding-block: 2rem 4rem;
}
.course-picker__tabs {
  position: relative;
  display: flex;
  gap: clamp(.5rem, 1.1vw, 1rem);
  overflow-x: auto;
  scrollbar-width: thin;
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: 2rem;
  padding-top: 4px;
}
.course-picker__tab {
  flex: 1 0 auto;
  min-height: 56px;
  padding: .85rem .5rem;
  border-bottom: 2px solid transparent;
  color: var(--color-text-muted);
  font-size: .9375rem;
  font-weight: 300;
  white-space: nowrap;
}
.course-picker__tab:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}
.course-picker__tab:focus-visible {
  /* Keep keyboard focus inside the scrolling tab strip, without the global white halo. */
  outline: 2px solid var(--color-text);
  outline-offset: -4px;
  box-shadow: none;
}
.course-picker__tab[aria-selected='true'] {
  border-bottom-color: var(--color-text);
  color: var(--color-text);
  font-weight: 500;
}
.course-picker__tabs.has-sliding-indicator .course-picker__tab[aria-selected='true'] {
  border-bottom-color: transparent;
}
.course-picker__indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--color-text);
  pointer-events: none;
  transition: transform .38s cubic-bezier(.22, .61, .36, 1), width .38s cubic-bezier(.22, .61, .36, 1);
}
html[data-motion='reduce'] .course-picker__indicator { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .course-picker__indicator { transition: none; }
}
.course-picker__viewport {
  position: relative;
  overflow: clip;
  isolation: isolate;
  aspect-ratio: 3 / 2;
  max-height: 500px;
  border-radius: var(--radius-md);
}
.course-picker__viewport .detail-cover {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  margin-bottom: 0;
  user-select: none;
  -webkit-user-drag: none;
}
.course-picker__viewport > .course-picker__panel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
}
.course-picker__arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 56px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 4px;
  opacity: .85;
}
.course-picker__arrow--previous { left: 12px; }
.course-picker__arrow--next { right: 12px; }
.course-picker__arrow svg {
  width: 36px;
  height: 44px;
  filter: drop-shadow(0 1px 4px rgb(0 0 0 / .4));
  pointer-events: none;
}
.course-picker__arrow:hover,
.course-picker__arrow:focus-visible { opacity: 1; }
.course-picker__arrow:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
  box-shadow: 0 0 0 2px rgb(0 0 0 / .4);
}
@media (max-width: 760px) {
  .course-picker__arrow--previous { left: 4px; }
  .course-picker__arrow--next { right: 4px; }
}
.course-picker__layout {
  margin-bottom: 0;
}
.course-picker__layout > .detail-aside {
  /* Keep the card aligned with the photo; standalone course pages used a sticky aside. */
  position: static;
  top: auto;
}
.course-picker__layout > .detail-aside .facts {
  margin: .75rem 0 0;
}
.course-picker__intro {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.8;
}
@media (min-width: 901px) {
  .course-picker__layout {
    align-items: stretch;
  }
  .course-picker__layout > .course-picker__viewport {
    width: 100%;
  }
  .course-picker__layout > .detail-aside {
    display: flex;
    flex-direction: column;
  }
}
