/* css styles */

/* ------------------------------------------------------------------ */
/* Prominent category filter bar (Publications page)                   */
/* The category block is moved out of the right margin into this bar    */
/* (see the relocation script at the bottom of publications.qmd) and    */
/* its categories are rendered as large, clickable pill buttons.        */
/* ------------------------------------------------------------------ */

.category-filter-bar {
  margin: 1rem 0 1.75rem;
  padding: 1rem 1.25rem 1.1rem;
  background: #f5f7f9;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.6rem;
}

.category-filter-bar .quarto-listing-category-title {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2c3e50;
}

.category-filter-bar .quarto-listing-category {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.category-filter-bar .quarto-listing-category .category {
  display: inline-block;
  padding: 0.38rem 0.85rem;
  border: 1px solid #2c3e50;
  border-radius: 999px;
  background: #fff;
  color: #2c3e50;
  font-size: 0.92rem;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.category-filter-bar .quarto-listing-category .category:hover {
  background: #2c3e50;
  color: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.category-filter-bar .quarto-listing-category .category.active {
  background: #18bc9c; /* flatly accent */
  border-color: #18bc9c;
  color: #fff;
  font-weight: 600;
}

.category-filter-bar .quarto-category-count {
  opacity: 0.65;
  font-size: 0.8em;
}

/* Dark mode (darkly theme) */
.quarto-dark .category-filter-bar {
  background: #2b2b2b;
  border-color: #444;
}
.quarto-dark .category-filter-bar .quarto-listing-category-title {
  color: #e8e8e8;
}
.quarto-dark .category-filter-bar .quarto-listing-category .category {
  background: #303030;
  color: #e0e0e0;
  border-color: #6c757d;
}
.quarto-dark .category-filter-bar .quarto-listing-category .category:hover {
  background: #e0e0e0;
  color: #222;
}
.quarto-dark .category-filter-bar .quarto-listing-category .category.active {
  background: #18bc9c;
  border-color: #18bc9c;
  color: #fff;
}
