Stop a long URL from breaking out of its card, by measuring widths
One long URL and the card breaks out of its box, and the phone gets a sideways scroll. Measuring the overflow as you go, you fix wrapping, min-width: 0 in flex, minmax(0, 1fr) in grid, images and the "…" truncation, and keep a check that lists the elements that stick out.