/* Global Library item card (EVO-4686 Surface 2) — shared by /library's map
   panel and profile.html's Artist tab (EVO-4695). Mirrors the .event-card
   shell (radius/shadow/hover-lift) so a library card and an event card read
   as siblings, per the design spec's "continuity of space". */
/* Non-interactive shell — the title button and events chip below are the
   real controls, kept as siblings rather than nested inside a card-level
   role="button" (see .lib-card__title for why). */
.lib-card {
  background: var(--br-white);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
  min-height: 44px;
}
.lib-card:has(.lib-card__title:hover),
.lib-card:has(.lib-card__title:focus-visible) {
  box-shadow: var(--shadow-md);
}
/* Button reset — visually identical to the old title <div>, but a real
   <button> as a sibling of the events chip, not its ancestor, so both are
   independently reachable/activatable by screen readers (EVO-4695 visual-
   truth gate, Wright). */
.lib-card__title {
  display: block;
  width: 100%;
  border: none;
  background: none;
  padding: 0;
  margin: 0 0 var(--space-1);
  font: inherit;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  color: var(--br-gray-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 44px;
}
.lib-card__title:hover { text-decoration: underline; }
.lib-card__title:focus-visible {
  outline: 2px solid var(--br-orange);
  outline-offset: 2px;
}
.lib-card__creator {
  font-size: var(--text-sm, 0.875rem);
  color: var(--br-gray-500);
  margin-bottom: var(--space-1);
}
.lib-card__creator-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lib-card__location {
  font-size: var(--text-sm, 0.875rem);
  color: var(--br-gray-500);
  margin-bottom: var(--space-2);
}
.lib-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}
.lib-card__caches {
  font-size: var(--text-sm, 0.875rem);
  color: var(--br-gray-500);
}
.lib-card__badge {
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.lib-card__badge--new {
  background: var(--br-teal);
  color: white;
}
.lib-card__events {
  border: none;
  background: none;
  padding: 0.375rem 0.5rem;
  margin: -0.375rem -0.5rem;
  font-size: var(--text-sm, 0.875rem);
  font-family: inherit;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
}
.lib-card__events--active {
  color: var(--br-purple);
  cursor: pointer;
  font-weight: 500;
}
.lib-card__events--active:hover {
  text-decoration: underline;
}
.lib-card__events--muted {
  color: var(--br-gray-400);
  cursor: default;
}
