/* JM10.1: compact saved-choice cards without hiding actions or deleting animal facts. */
.my-home-page .my-home-section .rescue-pet-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(min(100%,190px),1fr));
  gap: .85rem;
  padding: 0;
  list-style: none;
  align-items: start;
}
.my-home-page .my-home-section .rescue-pet-card {
  min-width: 0;
  max-width: 330px;
  width: 100%;
}
.my-home-page .my-home-section .rescue-pet-card__frame {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: .5rem;
  overflow: hidden;
  border-radius: 15px;
}
.my-home-page .my-home-section .rescue-pet-card__photo-shell {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 10px;
  background: #e9eff6;
}
.my-home-page .my-home-section .rescue-pet-card__photo,
.my-home-page .my-home-section .rescue-pet-card__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.my-home-page .my-home-section .rescue-pet-card__body {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  min-width: 0;
}
.my-home-page .my-home-section .rescue-pet-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .4rem;
  margin-top: -.3rem;
}
.my-home-page .my-home-section .rescue-pet-card__rank {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .23rem .45rem;
  color: #fff;
  background: #173c6c;
  border-radius: .5rem;
}
.my-home-page .my-home-section .rescue-pet-card__rank strong { color: inherit; }
.my-home-page .my-home-section .rescue-pet-card__status { font-size: .7rem; }
.my-home-page .my-home-section .rescue-pet-card__identity h3 {
  margin: .15rem 0;
  font-size: 1.12rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.my-home-page .my-home-section .rescue-pet-card__select {
  display: flex;
  align-items: flex-start;
  gap: .35rem;
  padding: .4rem .2rem;
  font-size: .85rem;
}
.my-home-page .my-home-section .rescue-pet-card__select input { margin-top: .2rem; }
.my-home-page .my-home-section .rescue-pet-card__more {
  min-width: 0;
  border-top: 1px solid #d2c29e;
  border-bottom: 1px solid #d2c29e;
}
.my-home-page .my-home-section .rescue-pet-card__more > summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  font-weight: 650;
  color: #173c6c;
  padding: .4rem .2rem;
}
.my-home-page .my-home-section .rescue-pet-card__more > summary:focus-visible {
  outline: 2px solid #173c6c;
  outline-offset: -2px;
}
.my-home-page .my-home-section .rescue-pet-card__more[open] {
  padding-bottom: .45rem;
}
.my-home-page .my-home-section .rescue-pet-card__more .rescue-pet-card__facts {
  display: grid;
  gap: .25rem;
  min-width: 0;
  margin: .3rem 0;
}
.my-home-page .my-home-section .rescue-pet-card__more .rescue-pet-card__facts div {
  display: flex;
  justify-content: space-between;
  gap: .35rem;
}
.my-home-page .my-home-section .rescue-pet-card__more .rescue-pet-card__facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.my-home-page .my-home-section .rescue-pet-card__more .rescue-pet-card__compatibility {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}
.my-home-page .my-home-section .rescue-pet-card__more p { font-size: .87rem; overflow-wrap:anywhere; }
.my-home-page .my-home-section .rescue-pet-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  align-items: stretch;
  margin-top: .3rem;
  min-width: 0;
}
.my-home-page .my-home-section .rescue-pet-card__actions form { min-width:0; flex: 1 1 44%; }
.my-home-page .my-home-section .rescue-pet-card__actions button,
.my-home-page .my-home-section .rescue-pet-card__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  padding: .35rem .4rem;
  font-size: .81rem;
  text-align: center;
}
.my-home-page .my-home-section .rescue-pet-card__actions > button,
.my-home-page .my-home-section .rescue-pet-card__actions > a {
  flex: 1 1 44%;
}
@media(max-width:600px) {
  .my-home-page .my-home-section .rescue-pet-card-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: .55rem;
  }
  .my-home-page .my-home-section .rescue-pet-card__frame { padding: .35rem; }
  .my-home-page .my-home-section .rescue-pet-card__status { display: none; }
  .my-home-page .my-home-section .rescue-pet-card__actions form,
  .my-home-page .my-home-section .rescue-pet-card__actions > a,
  .my-home-page .my-home-section .rescue-pet-card__actions > button { flex-basis: 100%; }
}
@media(max-width:290px) {
  .my-home-page .my-home-section .rescue-pet-card-grid { grid-template-columns: minmax(0,1fr); }
}
@media(prefers-reduced-motion: reduce) {
  .my-home-page .my-home-section .rescue-pet-card { scroll-behavior: auto; }
}
