.page-available-puppies .ap-title { text-align: center; margin-bottom: .3rem; }
.ap-intro { text-align: center; max-width: 36rem; margin: 0 auto 1.1rem; }
.ap-status, .ap-empty { text-align: center; margin: 1.5rem auto; max-width: 34rem; }
.ap-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; margin: 0 auto 1.4rem; }
.ap-filter button { appearance: none; border: 1px solid #d9cbb8; background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: .95rem; padding: .5rem 1rem; min-height: 44px; border-radius: 999px; cursor: pointer; }
.ap-filter button[aria-pressed="true"] { background: #4a2e15; border-color: #4a2e15; color: #fff; }
.ap-filter button:focus-visible { outline: 2px solid #9a6b3f; outline-offset: 2px; }
.ap-group { margin: 0 0 2.2rem; }
.ap-group[hidden] { display: none; }
.ap-group-h { font-size: 1.5rem; line-height: 1.25; margin: 0 0 .9rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.ap-group-h .ap-breed { color: #4a2e15; }
.ap-group-h a { color: inherit; }
.ap-group-h .ap-born { font-size: .8em; color: #6b5a4a; white-space: nowrap; }
.ap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; ; align-items: stretch; }
@media (min-width: 640px) { .ap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) { .ap-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ap-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.ap-card:hover, .ap-card:focus-visible { border-color: #9a6b3f; }
.ap-photo { display: block; aspect-ratio: 3 / 4; background: #f4efe8; }
.ap-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-photo.ap-nophoto::after { content: "Photo coming soon"; display: flex; height: 100%; align-items: center; justify-content: center; color: #6b5a4a; font-size: .9rem; }
.ap-cap { display: flex; align-items: center; gap: .4rem; padding: .55rem .65rem; font-weight: 600; font-size: .95rem; }
.ap-swatch { flex: 0 0 auto; width: .85rem; height: .85rem; border-radius: 50%; background: var(--swatch); border: 1px solid rgba(0,0,0,.2); }
.ap-more { margin: .7rem 0 0; text-align: right; }
.ap-nojs { max-width: 36rem; margin: 0 auto 1.5rem; line-height: 1.9; }
.ap-cta { justify-content: center; }

/* ——— Breed/dam group banner: higher-level than the brown Males/Females bands (2026-10-12) ——— */
.ap-group { margin: 0 0 4.5rem; }
.ap-banner {
  background: #f6ead8;
  border-top: 5px solid #4a2e15;
  border-bottom: 5px solid #4a2e15;
  border-radius: 6px;
  padding: 0.9rem 1rem 0.8rem;
  margin: 0 0 1.25rem;
  text-align: center;
}
.ap-banner .ap-group-h {
  border-bottom: 0; margin: 0; padding: 0;
  font-size: clamp(1.7rem, 5.5vw, 2.4rem); font-weight: 700; line-height: 1.15;
  color: #3a230f;
}
.ap-banner .ap-group-h a { color: #3a230f; text-decoration: none; }
.ap-banner .ap-group-h .ap-born { display: block; font-size: 0.5em; color: #5a4632; margin-top: 0.2rem; }
.ap-banner .ap-more { margin: 0.45rem 0 0; text-align: center; font-weight: 700; }
.ap-banner .ap-more a { color: #4a2e15; text-decoration: underline; }

.ap-photos-updated{margin:.2rem 0 0;font-size:.88rem;color:#6b5e52;font-style:italic}

.ap-grid { align-items: stretch; }
.page-available-puppies .ap-card .ap-card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 0.5rem 0.25rem;
  box-sizing: border-box;
  gap: 0;
}
.page-available-puppies .ap-card a.ap-apply,
.page-available-puppies .ap-card a.ap-apply.p5-apply-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  align-self: center !important;
  width: auto !important;
  max-width: calc(100% - 1.3rem);
  margin: 0.25rem auto 0;
  box-sizing: border-box;
}
.ap-card .ap-photo-btn { display: block; width: 100%; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }

.ap-pup-photos-updated {
  margin: 0.55rem 0 0; /* ~9px under Reserve pill */
  padding: 0;
  font-size: 0.8rem;
  font-weight: 400;
  font-style: italic;
  color: #6b5e52;
  text-align: center;
  line-height: 1.3;
}

/* Replaced by .dd-still-available callout */
.ap-total { display: none; }

/* Still-available callout sits under the cream banner for contrast */
.ap-group > .dd-still-available {
  margin: 0 0 1.1rem;
  max-width: none;
}
