/* =============================================================
   cv-filter.css — styles for the sticky tag filter widget.
   Drop into assets/css/ and link from _layouts/default.html.
   ============================================================= */

#cv-filter-widget {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #f9f9f0;
  border-bottom: 1px solid #ccc;
  padding: 6px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: CMR, Georgia, serif;
  font-size: 15px;
}

.cv-filter-label {
  font-weight: bold;
  margin-right: 4px;
}

.cv-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #eee;
  border: 1px solid #bbb;
  border-radius: 3px;
  padding: 2px 7px;
  cursor: pointer;
  user-select: none;
}

.cv-filter-tag:hover {
  background: #ddd;
}

.cv-filter-tag input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.cv-filter-reset {
  font-family: CMR, Georgia, serif;
  font-size: 13px;
  padding: 2px 10px;
  border: 1px solid #aaa;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
}

.cv-filter-reset:hover {
  background: #f0e0e0;
  border-color: #999;
}

/* ── Hide widget entirely when printing ──────────────────────── */
@media print {
  #cv-filter-widget {
    display: none !important;
  }
}
