/* Mobile layout safety: keep content inside the viewport and let copy set height. */
@media (max-width: 900px) {
  .workflow-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .workflow h3 {
    max-width: 16ch;
    margin: 34px 0 0;
  }

  .workflow p {
    position: static;
    max-width: 32ch;
    margin: 32px 0 0;
  }
}

@media (max-width: 760px) {
  .site-header > *,
  .site-footer > *,
  .footer-links > *,
  .workflow-grid > *,
  .control-grid > *,
  .contact-wrap > * {
    min-width: 0;
  }

  .menu-button {
    display: grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    line-height: 1;
  }

  /* Mobile cards stack, so no text column can be clipped at narrow widths. */
  .control-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .control-grid article {
    min-width: 0;
  }

  .process-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .process-step .status {
    grid-column: auto;
  }

  .process-step h3,
  .process-step p {
    min-width: 0;
  }

  /* minmax(0, 1fr) removes the grid item's automatic min-content width. */
  .contact-wrap {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .contact-wrap > * {
    width: 100%;
    max-width: 100%;
  }

  .contact-aside h2 {
    max-width: 100%;
    font-size: clamp(36px, 10vw, 45px);
  }

  .contact-form,
  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    min-width: 0;
    max-width: 100%;
  }

  .contact-turnstile {
    max-width: 100%;
    overflow: hidden;
  }

  .interface {
    overflow: hidden;
  }

  .approval {
    right: 12px;
    bottom: 24px;
  }

  .faq-item button {
    min-height: 44px;
    gap: 16px;
    align-items: flex-start;
  }

  .faq-item button span {
    flex: 0 0 auto;
  }
}
