/* One catalogue combines CEFR totals, course contents and import details. */
.library-catalogue caption {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
}
.library-catalogue .library-level {
  width: 21%;
}
.library-level > span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}
.library-catalogue .library-course-cell {
  width: 43%;
}
.library-catalogue tbody:last-of-type tr:last-child > * {
  border-bottom: 0;
}
.library-catalogue tbody:not(:last-of-type) tr:last-child > * {
  border-bottom: 1px solid var(--line);
}
.library-catalogue tr[id] {
  scroll-margin-top: 100px;
}
.library-catalogue tr:target {
  background: rgba(36, 87, 214, 0.06);
}
.library-course summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.library-course summary:focus-visible {
  outline: 3px solid #2457d6;
  outline-offset: 4px;
  border-radius: 3px;
}
.library-course-count {
  display: block;
  margin: 6px 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 400;
}
.library-lesson-list {
  margin-top: 18px;
}
.library-lesson-list li {
  overflow-wrap: anywhere;
}
.library-code code,
.library-pin code {
  font-size: 0.95rem;
  white-space: nowrap;
  user-select: all;
}
.library-mobile-label {
  display: none;
}
@media (max-width: 700px) {
  .library-catalogue-wrapper {
    overflow: visible;
  }
  .library-catalogue,
  .library-catalogue tbody {
    display: block;
  }
  .library-catalogue caption {
    display: block;
  }
  .library-catalogue thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .library-catalogue tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .library-catalogue .library-level,
  .library-catalogue .library-course-cell {
    grid-column: 1 / -1;
    width: auto;
  }
  .library-catalogue .library-level {
    background: var(--sky);
  }
  .library-catalogue .library-course-cell {
    border-bottom: 0;
  }
  .library-code code {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .library-mobile-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
  }
}
