/* Rescue page (PLAN.md 3.3, content from Zakk's knowledge base 2026-11-15). Components live in shared/base.css. */

/* ---- 1 the wall: a real space at OS, five prints tape on ---- */
.wall__stage { background: var(--paper-sunken); overflow: hidden; }
.wall__bg, .wall__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.wall__bg img { object-fit: cover; object-position: 50% 60%; }
.wall__print { --w: min(30vw, 21svh); z-index: 3; }
.wall__note { position: absolute; z-index: 5; left: 5vw; right: 5vw; bottom: max(3svh, env(safe-area-inset-bottom)); padding: 0.95rem 1rem 1rem; }
.wall__note p { font-size: 0.95rem; line-height: 1.5; }
.wall__note > * + * { margin-top: 0.45rem; }
@media (max-height: 700px) { .wall__note p { font-size: 0.88rem; } .wall__print { --w: min(28vw, 19svh); } }

/* ---- 2 how we get animals ---- */
.ways { display: grid; gap: 1.4rem; }
.way h3 { font-weight: 800; font-size: 1.15rem; line-height: 1.3; }
.way p { font-size: 0.97rem; line-height: 1.58; }
.way--no { background: var(--paper-sunken); box-shadow: inset 0 0 0 2px var(--rule-strong); }
.way--no::before { opacity: 0.6; }

/* ---- 3 Petfinder, full size ---- */
.pf--full { margin-top: 0.4rem; }
.pf--full iframe { height: 640px; }

/* ---- 4-6 the three processes ---- */
.process .steps { max-width: 44rem; }
.process__end { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2rem; padding-left: 49px; }
.process__end .tags { margin-top: 0; }
.process__print { --w: min(58vw, 17rem); }
.process__end--words .hand { font-size: 1.7rem; color: var(--ink-muted); }
.foster__more { display: grid; gap: 1.6rem; margin-top: 2.2rem; max-width: 44rem; }
.foster__more .note > * + * { margin-top: 0.5rem; }
.foster__more .process__end { padding-left: 0; margin-top: 0.4rem; }

/* ---- 7 one story ---- */
.story { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 1.2rem; align-items: center; }
.story__quote { font-size: 1.3rem; line-height: 1.2; }
.story__who { font-weight: 800; font-size: 0.88rem; color: var(--ink-muted); }

/* ---- upright tablets: same layout as the phone, filled to the taller screen ---- */
@media (min-width: 600px) and (max-aspect-ratio: 1/1) {
  .wall__stage .wall__print { left: var(--xt); top: var(--yt); --w: min(27vw, 24svh); }
  .wall__note { left: 6vw; right: 6vw; padding: 1.2rem 1.4rem; }
  .wall__note p { font-size: 1.1rem; }
  .ways { grid-template-columns: 1fr 1fr; }
  .story { max-width: 44rem; }
  .story__quote { font-size: 1.6rem; }
}

/* ---- wide screens ---- */
@media (min-width: 861px) and (min-aspect-ratio: 1/1) {
  /* .wall__stage raises specificity above base's .print[data-at] { left: var(--x) } */
  .wall__stage .wall__print { left: var(--xd); top: var(--yd); --w: min(12.5vw, 26svh); }
  .wall__note { left: 7vw; right: auto; width: min(32rem, 31vw); bottom: 9svh; padding: 1.3rem 1.4rem; }
  .wall__note p { font-size: 1.05rem; }
  .ways { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; }
  .process { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0 4rem; align-items: start; }
  .process .sheet__head { grid-column: 1; grid-row: 1 / span 3; position: sticky; top: calc(var(--strip-h) + 2rem); }
  .process > .steps, .process > .process__end, .process > .foster__more { grid-column: 2; }
  .story { grid-template-columns: 18rem minmax(0, 32rem); justify-content: center; gap: 2.4rem; }
  .story__quote { font-size: 1.7rem; }
}
