/* W-025.1 · Stop 4 only (#stop-4, #parada-4). R-1061 Cockpit lead and Health support.
   Reuses .iphone-frame and .iphone-screen from site.css. Screens keep their native 1206 × 2622 proportions. */

#stop-4, #parada-4 { container-type: inline-size; }

:is(#stop-4, #parada-4) .s4-shot { margin: 1.2rem 0 0; display: grid; gap: .9rem; justify-items: center; }
:is(#stop-4, #parada-4) .s4-shot .iphone-frame { width: min(100%, 400px); }
:is(#stop-4, #parada-4) .s4-shot img { display: block; width: 100%; height: auto; }
:is(#stop-4, #parada-4) .s4-shot figcaption { justify-self: stretch; max-width: 46ch; color: var(--ink-2); }
:is(#stop-4, #parada-4) .s4-text { font-size: clamp(1.08rem, 1.7vw, 1.22rem); color: var(--ink); }
:is(#stop-4, #parada-4) .s4-label {
  display: block; margin-bottom: .4rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green);
}
:is(#stop-4, #parada-4) .s4-full { display: inline-flex; align-items: center; min-height: 44px; margin-top: .3rem; font-weight: 700; }

/* Wide cards: text beside a large phone. */
@container (min-width: 680px) {
  :is(#stop-4, #parada-4) .s4-shot { grid-template-columns: minmax(0, 1fr) 400px; gap: 0 clamp(24px, 5cqi, 44px); align-items: center; justify-items: stretch; }
  :is(#stop-4, #parada-4) .s4-shot .iphone-frame { grid-column: 2; grid-row: 1; width: 100%; }
  :is(#stop-4, #parada-4) .s4-shot figcaption { grid-column: 1; grid-row: 1; }
}

/* Health support: native disclosure, keyboard and no-script friendly. */
:is(#stop-4, #parada-4) .s4-more { margin-top: 1.2rem; border-top: 1px solid var(--line); }
:is(#stop-4, #parada-4) .s4-more summary {
  display: flex; align-items: center; gap: .65em; min-height: 48px; padding-block: .3rem;
  font-weight: 700; color: var(--green); cursor: pointer; list-style: none;
}
:is(#stop-4, #parada-4) .s4-more summary::-webkit-details-marker { display: none; }
:is(#stop-4, #parada-4) .s4-more summary::before {
  content: ""; flex: none; width: .5em; height: .5em; margin-inline: .2em .1em;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg);
}
:is(#stop-4, #parada-4) .s4-more[open] summary::before { transform: rotate(45deg); }
:is(#stop-4, #parada-4) .s4-more summary:hover { text-decoration: underline; }
:is(#stop-4, #parada-4) .s4-more[open] { padding-bottom: 1rem; }

/* Phone widths: give the screen nearly the full card width. The frame extends into the card's side padding
   and its bezel padding shrinks, so the screen gains about 28 px without cropping or scaling distortion. */
@media (max-width: 560px) {
  :is(#stop-4, #parada-4) .s4-shot .iphone-frame {
    width: calc(100% + 2 * clamp(14px, 4vw, 18px));
    margin-inline: calc(-1 * clamp(14px, 4vw, 18px));
    padding: 4px;
  }
}
