/* Responsive Utilities for Accessio Docs */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    padding-top: 56px !important;
    gap: 48px !important;
  }
  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hero-content h1 {
    font-size: 48px !important;
    max-width: 100% !important;
  }
  .hero-content p {
    max-width: 100% !important;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 12px 20px !important;
  }
  .nav-links {
    display: none !important; /* already removed in previous step, but good for future */
  }
  .feature-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .responsive-grid {
    grid-template-columns: 1fr !important;
    direction: ltr !important;
    gap: 32px !important;
    min-width: 0;
  }
  .responsive-grid > * {
    direction: ltr !important;
    min-width: 0;
    overflow: hidden;
  }
  .t-h2 {
    word-break: break-word;
  }
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 24px !important;
  }
  .footer-container > div {
    margin: 0 auto !important;
  }
}

@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr !important;
  }
  .hero-content h1 {
    font-size: 32px !important;
  }
  .t-h2 {
    font-size: 24px !important;
  }
}

/* Global fixes for grid item overflow */
.hero-grid > *,
.feature-grid > *,
.responsive-grid > * {
  min-width: 0;
}

pre {
  max-width: 100%;
  overflow-x: auto;
}
