/* Shared presentation refinements. Page-specific PHP and form behavior stay in place. */
:root {
  --resort-ink: #12352d;
  --resort-accent: #ae782b;
  --resort-paper: #fbf8f1;
  --resort-line: #e6ddcd;
}

html body :is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #d3a54e !important;
  outline-offset: 3px;
}

:where(input, select, textarea) { min-width: 0; max-width: 100%; }
:where(.main-content, .dashboard-content, .page-content, .content-area, .form-grid, .stats-grid) { min-width: 0; }

@media (max-width: 767px) {
  :where(input, select, textarea) { font-size: 16px; }
  :where(.main-content, .dashboard-content, .page-content, .content-area) { max-width: 100%; }
  :where(table:not([role="presentation"])) { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  :where(.modal-content, .modal-card, .dialog-content, .sysmodal-box) { max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; }
}

@media (prefers-reduced-motion: reduce) {
  :where(*, *::before, *::after) {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
