/* Advance: responsive layout patch.
   Load this last, AFTER css/inline-original.css.
   Do NOT set max-width on body, main, section, header or footer:
   coloured backgrounds and the hero must cover the viewport. */

/* Desktop content wrappers already have max-w-[1440px] and mx-auto
   in the original HTML. Keep their original layout and spacing.
   The rule below simply provides the same content limit as a fallback
   at ultra-wide widths without restricting section backgrounds. */
@media (min-width: 1601px) {
  body > header > div,
  main > section > div.mx-auto,
  body > footer > div.mx-auto {
    max-width: 1440px;
    margin-inline: auto;
  }

  /* Center the photograph inside the full-width hero, not the hero itself. */
  [data-section="hero"] .hero-img {
    object-position: 100% 40%;
  }
}

/* Mobile-only lifecycle grid: three steps per row. */
@media (max-width: 639px) {
  #lc-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 0;
    row-gap: 1rem;
  }

  /* The original connector fits one horizontal row only. */
  #lc-wrap > .relative > [aria-hidden="true"] {
    display: none;
  }
}

