/* Share card (/dogs/{id}/share): a phone-sized poster made to be
   screenshotted and re-posted. Sized so the whole poster fits one phone
   screen without scrolling; the tools below it stay out of the shot. */
.share-page { background: #efeae1; padding: 0.75rem 0.75rem 2rem; }

.share-poster {
  max-width: 420px;
  margin: 0 auto;
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
}

.sp-strip {
  margin: 0;
  padding: 0.5rem 1rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-align: center;
  color: #fff;
}
.sp-wait   { background: var(--warn); }
.sp-soon   { background: #1d4ed8; }
.sp-avail  { background: var(--good); }
/* Urgency designations — same three colors as the listing badges. */
.sp-urgency-deadline      { background: var(--bad); }
.sp-urgency-past_deadline { background: #111827; }
.sp-urgency-plea          { background: #c2410c; }

/* Capped by viewport height so photo + facts + contact fit one screen. */
.sp-photo { background: #1a1a1a; }
.sp-photo img {
  display: block;
  width: 100%;
  height: min(42vh, 420px);
  object-fit: cover;
  object-position: center 30%;
}

.sp-body { padding: 0.8rem 1rem 0.9rem; }
.sp-name { margin: 0; font-size: 1.9rem; line-height: 1.1; overflow-wrap: anywhere; }
.sp-id { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.95rem; overflow-wrap: anywhere; }
.sp-id strong { color: var(--fg); }

.sp-facts {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.sp-facts li {
  background: var(--accent-soft);
  color: #7c2d12;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.sp-where {
  margin-top: 0.7rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.sp-where p { margin: 0.1rem 0; }
.sp-shelter { font-weight: 700; }

.sp-site {
  margin: 0.6rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.sp-site strong { color: var(--accent); }

.share-tools { max-width: 420px; margin: 1rem auto 0; text-align: center; }
.share-tools p { margin: 0.4rem 0; font-size: 0.9rem; }
.share-tools-row { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }

/* Short phones (iPhone SE class): drop the street address and shrink the
   photo so the poster still fits one screen. */
@media (max-height: 620px) {
  .sp-photo img { height: 34vh; }
  .sp-address { display: none; }
  .sp-name { font-size: 1.6rem; }
}

/* Back bar: desktop only. On a wide screen the link under the poster is
   easy to miss, so pin an obvious one top-left. */
.share-topbar { display: none; }
@media (min-width: 700px) {
  .share-topbar { display: block; max-width: 900px; margin: 0.25rem auto 0.9rem; }
}
