/*
 * CSLIB Faculty Publications Styles
 * @version v2.1.0
 */

/* Make left facet panel independent and sticky (does not stretch with results) */
#cslib-facpubs .facet-panel {
  position: sticky;
  top: var(--facet-sticky-top, 80px);
  align-self: start; /* ensures it sizes to its content only */
}

/* Institute list: allow natural height (no forced scroll here for this module) */
#cslib-facpubs .facet-list {
  max-height: none;
  overflow: visible;
  display: grid;
  gap: 8px;
}

#cslib-facpubs .facet-actions {
  margin-top: 8px;
}

#cslib-facpubs .btn-clear {
  background: #fff;
  border: 1px solid var(--border-2);
  color: var(--muted);
}
#cslib-facpubs .btn-clear:hover {
  background: var(--hover);
  color: var(--cslib-federal);
  border-color: var(--cslib-federal);
}

/* Active filter chips */
#cslib-facpubs .active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 8px 0;
}
#cslib-facpubs .active-filters .chip {
  border: 1px solid var(--border-2);
  background: #fff;
  border-radius: 999px;
  padding: .25rem .6rem;
  font-size: 12px;
  cursor: pointer;
}
#cslib-facpubs .active-filters .chip:hover {
  background: var(--hover);
}

/* keywords wrap */
#cslib-facpubs .kv.keywords .kw-text {
  font-style: italic;
  word-break: break-word;
}

/* tiny search clear button */
#cslib-facpubs .searchwrap {
  position: relative;
}
#cslib-facpubs #fp-q-clear {
  margin-left: 6px;
  padding: .45rem .65rem;
  line-height: 1;
}

/* skeleton */
#cslib-facpubs .card.skeleton {
  position: relative;
}
#cslib-facpubs .card.skeleton .thumb {
  background: #eef1f7;
}
#cslib-facpubs .card.skeleton .s-block {
  flex: 1;
}
#cslib-facpubs .card.skeleton .s-line {
  height: 12px;
  background: #eef1f7;
  border-radius: 6px;
  margin: 8px 0;
}
#cslib-facpubs .card.skeleton .s-line.w-70 { width: 70%; }
#cslib-facpubs .card.skeleton .s-line.w-55 { width: 55%; }
#cslib-facpubs .card.skeleton .s-line.w-40 { width: 40%; }

/* pagination hover var fix (fallback to --hover) */
#cslib-facpubs .pagination .page-btn:hover {
  background: var(--hover);
}

