/* Consistent alignment for Nerdi public subpages. Homepage and apps excluded. */
/* Keep text content untouched; only position the action group. */
body:not(.nm-redesign) #main-content .hero-actions {
  justify-content: center;
}
/* Center incomplete rows without changing the existing three-column card width.
   A six-track grid lets each card occupy two tracks and the final row balance. */
@media (min-width: 961px) {
  body:not(.nm-redesign) #main-content :is(.feature-grid, .service-grid, .related-grid, .service-example-grid) {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  body:not(.nm-redesign) #main-content :is(.feature-grid, .service-grid, .related-grid, .service-example-grid) > * {
    grid-column: span 2;
    min-width: 0;
  }
  /* One remaining card in the last row. */
  body:not(.nm-redesign) #main-content :is(.feature-grid, .service-grid, .related-grid, .service-example-grid) > :last-child:nth-child(3n + 1) {
    grid-column: 3 / span 2;
  }
  /* Two remaining cards in the last row. */
  body:not(.nm-redesign) #main-content :is(.feature-grid, .service-grid, .related-grid, .service-example-grid) > :nth-last-child(2):nth-child(3n + 1) {
    grid-column: 2 / span 2;
  }
}
