/* Base styles that Tailwind utilities cannot express. Colours always come from the brand CSS variables. */
html { -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeLegibility; }

/* HTMX request feedback: add class="htmx-indicator" to a spinner/label inside or beside the trigger */
.htmx-indicator { opacity: 0; transition: opacity 150ms ease-in; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
.htmx-request button[type="submit"] { cursor: progress; }

/* Smooth swaps */
.htmx-swapping { opacity: 0; transition: opacity 120ms ease-out; }
.htmx-added { opacity: 0; }

::selection { background-color: rgb(var(--color-primary-200)); color: rgb(var(--color-secondary-900)); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  [data-site-header], [data-site-footer], #toast-region { display: none !important; }
}
