/* Shared accessibility and narrow-screen defaults. Load after page styles. */
:root {
  --mp-space-1: 4px;
  --mp-space-2: 8px;
  --mp-space-3: 12px;
  --mp-space-4: 16px;
  --mp-radius: 10px;
  --mp-focus: #1f7a4d;
  --mp-touch: 44px;
}
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--mp-focus);
  outline-offset: 3px;
}
.sidebar :where(a, button):focus-visible, .site-header :where(a, button):focus-visible {
  outline-color: #d9a441;
}
:where(.main, .page-body, .content, .card, .chart-container, .table-wrap) { min-width: 0; }
:where(.table-wrap, .table-responsive) { max-width: 100%; overflow-x: auto; }
@media (max-width: 768px) {
  :where(.page-head, .filter-bar, .bulk-heading) { flex-wrap: wrap; }
  :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
    font-size: 16px;
  }
  :where(.btn, .mobile-toggle, .nav, .hamb, .sidebar nav a) { min-height: var(--mp-touch); }
  :where(.modal, .modal-dialog, .modal-content) { max-width: 100%; }
  :where(.modal-content) { max-height: 90dvh; overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
