/* Collection navigation cleanup.
   The teacher sidebar already provides Home on Library pages. Keep only
   contextual back navigation inside collection creation/editing workflows. */

/* Ready-Made Collections + Created by Me share the design-library page. */
.design-library-page > .teacher-back-link[href="#/teacher/home"] {
  display: none;
}

/* Contextual Back to Library remains useful in the collection builder/editor. */
.list-builder-page > .teacher-back-link[href="#/teacher/collections"],
.teacher-main:not(.design-library-page) > .teacher-back-link[href="#/teacher/collections"] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 11px 8px 8px;
  border: 1px solid #d8e0ea;
  border-radius: 9px;
  background: rgba(255,255,255,.72);
  color: #4050c8;
  font-family: var(--font-ui, "Nunito Sans", sans-serif);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
}

.list-builder-page > .teacher-back-link[href="#/teacher/collections"]:hover,
.teacher-main:not(.design-library-page) > .teacher-back-link[href="#/teacher/collections"]:hover {
  background: #fff;
  border-color: #b9c4d4;
  color: #3343b7;
  text-decoration: none;
}

.list-builder-page > .teacher-back-link[href="#/teacher/collections"]:focus-visible,
.teacher-main:not(.design-library-page) > .teacher-back-link[href="#/teacher/collections"]:focus-visible {
  outline: 3px solid rgba(64,80,200,.22);
  outline-offset: 2px;
}

.list-builder-page > .teacher-back-link[href="#/teacher/collections"] .ui-icon,
.teacher-main:not(.design-library-page) > .teacher-back-link[href="#/teacher/collections"] .ui-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}
