#courses > .tools { position: static; box-shadow: none; }
.catalog-strip {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 44px;
  background: var(--paper);
  box-shadow: 0 1px 0 #dce4ef;
}
.catalog-strip .library-count { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; }
.catalog-strip #range { overflow: hidden; text-overflow: ellipsis; }
.strip-search { width: min(405px, 42%); flex: none; }
.strip-search input { width: 100%; height: 36px; border: 1px solid #b2c0d6; border-radius: 12px; background: white; padding: 0 16px; }
#grid { --masonry-columns: 3; align-items: start; }
#grid .card { height: auto; min-width: 0; padding-block: 8px 16px; }
#grid .card > img { display: block; margin-inline: 8px; width: calc(100% - 16px); height: auto; aspect-ratio: auto; object-fit: contain; }
.card-category, .card-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 8px; margin-inline: 28px; }
.card-category { margin-top: 14px; }
.card-category small, .card-meta small, .card-meta span { margin: 0; }
.card-meta :is(time, small) { color: var(--muted); font-size: 13px; font-weight: normal; letter-spacing: normal; }
.card-category .new-badge { font-size: 13px; color: #2444ad; }
#grid a { scroll-margin-block-start: 52px; }
@media (max-width: 959px) {
  #grid { --masonry-columns: 2; }
}
@media (max-width: 700px) {
  #grid { --masonry-columns: 1; }
  .catalog-strip .library-count { align-self: auto; }
  .catalog-strip #range { display: none; }
  .strip-search { width: 55%; }
  .card-category, .card-meta { margin-inline: 16px; }
}
