.puppies-header {
  margin: 2.25rem 0 1.75rem;
}

.puppies-header h1 {
  margin: 0;
  color: #253b2e;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.01em;
}

.puppies-header p {
  max-width: 46rem;
  margin: .5rem 0 0;
  color: #5d685f;
  font-size: 1.05rem;
  line-height: 1.6;
}

.puppy-editor {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid #e6e0d2;
  border-radius: 16px;
  background: #fffaf2;
  box-shadow: 0 2px 6px rgba(29, 37, 32, .05), 0 10px 28px rgba(29, 37, 32, .06);
}

.puppies-list {
  margin-bottom: 2rem;
}

.puppies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  align-items: start;
}

.puppy-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e6e0d2;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(29, 37, 32, .05), 0 10px 28px rgba(29, 37, 32, .06);
}

/* The whole card is the admin's own content (text, headings, photos), styled by page-blocks.css. */
.puppy-card-content {
  padding: 1.1rem 1.25rem 1.25rem;
  color: #2b3a31;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.puppy-card-content > :first-child {
  margin-top: 0;
}

.puppy-card-content > :last-child {
  margin-bottom: 0;
}

/* Photos span the card edge to edge when they are the first thing in it. */
.puppy-card-content > figure.rf-figure:first-child {
  width: auto;
  margin: -1.1rem -1.25rem 1rem;
  float: none;
}

.puppy-card-content > figure.rf-figure:first-child img {
  border-radius: 0;
}

.puppy-card-actions {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
  padding: .85rem 1.25rem 1.1rem;
  border-top: 1px solid #efeadf;
}
