/* Long-page top catalogue link. Visual/behavior source: preface .preface-home. */
.preface-home {
  position: fixed;
  z-index: 40;
  top: max(12px, env(safe-area-inset-top));
  left: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid #dfe6f5;
  color: #315acd;
  font: 700 14px/1 -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(49,90,205,.12);
}

/* The course banner owns the sticky top edge. Move only this control when the
   banner is actually pinned; the banner's DOM, timing and sticky rules stay intact. */
.preface-home.is-below-course-banner {
  top: var(--top-catalogue-nav-adaptive-top);
}
