/* v460: paw + Favorites chip. Outline matches the category stroke.
   Saved fill is the library champagne gold, not a neon yellow. */

.lib-card:has(.fav-paw) {
  grid-template-columns: minmax(0, 1fr) auto 44px;
  align-items: center;
}

.fav-paw {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  margin: 0 0 0 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #e8c878;
  display: grid;
  place-items: center;
  justify-self: end;
  cursor: pointer;
}

.fav-paw:focus-visible {
  outline: 2px solid #e8c878;
  outline-offset: 2px;
}

.fav-paw-glyph {
  width: 22px;
  height: 22px;
  display: block;
  overflow: visible;
}

.fav-paw-glyph ellipse,
.fav-paw-glyph path {
  fill: none;
  stroke: #e8c878;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fav-paw[aria-pressed="true"] .fav-paw-glyph ellipse,
.fav-paw[aria-pressed="true"] .fav-paw-glyph path {
  fill: #e8c878;
  stroke: #e8c878;
  stroke-width: 0.4;
}

.fav-paw.is-press .fav-paw-glyph {
  animation: fav-press 280ms ease;
}

@keyframes fav-press {
  0% { transform: scale(1); }
  42% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

.fav-chip[hidden],
.fav-chip.is-off {
  display: none !important;
}

.fav-chip .lib-chip-icon,
.fav-chip .lib-chip-icon ellipse,
.fav-chip .lib-chip-icon path {
  fill: none;
  stroke: #e8c878;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lib-chip.fav-chip[aria-pressed="true"] .lib-chip-icon,
.lib-chip.fav-chip[aria-pressed="true"] .lib-chip-icon ellipse,
.lib-chip.fav-chip[aria-pressed="true"] .lib-chip-icon path {
  stroke: #120d02;
}

.fav-note,
.fav-toast {
  margin: 0.4rem 0 0;
  font-family: var(--body);
  line-height: 1.35;
}

.fav-note {
  color: rgba(244, 236, 216, 0.48);
  font-size: 0.8rem;
}

.fav-toast {
  color: rgba(244, 236, 216, 0.86);
  font-size: 0.92rem;
}

.fav-toast.is-on {
  animation: fav-toast-in 280ms ease;
}

@keyframes fav-toast-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fav-note[hidden],
.fav-toast[hidden] {
  display: none !important;
}

.lib-group-head[hidden],
.lib-range-head[hidden] {
  display: none !important;
}

/* A real sit hides the paw. The House of Kindness film also uses .is-playing,
   and on a desktop visit that film starts and keeps the class, which used to
   hide every paw while Together and Play stayed. */
html:has(.sit-now.is-live) .fav-paw,
html:has([data-sit].is-playing) .fav-paw,
html:has([data-lib-sit].is-playing) .fav-paw {
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .fav-paw.is-press .fav-paw-glyph,
  .fav-toast.is-on {
    animation: none;
  }
}
