/* Final homepage safeguards before merge.
 * Keep the compact mobile header as progressive enhancement and use one
 * coherent vertical process timeline throughout the tablet range. */

@media (min-width: 701px) and (max-width: 1020px) {
  .home-process-grid {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 2px solid rgba(47, 111, 219, 0.18);
  }

  .home-process-grid article,
  .home-process-grid article:nth-child(3) {
    grid-column: auto;
    padding: 6px 24px 30px 34px;
  }

  .home-process-grid article::before {
    top: 8px;
    left: -7px;
  }
}

@media (max-width: 700px) {
  /* The compact menu is created by home-information-architecture.js. When that
   * enhancement is unavailable, restore the original responsive navigation so
   * users are never left with hidden links and no menu control. */
  body[data-page="home"] .topbar:not(.home-compact-header) {
    position: static;
  }

  body[data-page="home"] .topbar:not(.home-compact-header) .nav {
    position: static;
    min-height: 72px;
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  body[data-page="home"] .topbar:not(.home-compact-header) .brand {
    max-width: none;
  }

  body[data-page="home"] .topbar:not(.home-compact-header) .nav-links {
    position: static;
    display: flex;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 14px 20px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
}
