/*
 * responsive-standard.css
 * Shared lightweight responsive helpers used across portal pages.
 * Complements design-system.css without redefining components.
 */

img,
svg,
canvas,
video,
iframe {
  max-width: 100%;
}

table {
  width: 100%;
}

.table-wrap,
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1024px) {
  .hide-tablet {
    display: none !important;
  }
}

@media (max-width: 860px) {
  html {
    font-size: 15px;
  }

  body {
    overflow-x: hidden;
  }

  .hide-mobile {
    display: none !important;
  }

  .stack-mobile,
  .mobile-stack {
    display: flex !important;
    flex-direction: column !important;
  }

  .table-responsive table,
  .table-wrap table {
    min-width: 640px;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 14px;
  }

  .full-mobile {
    width: 100% !important;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
