/* utilities.css — small, single-purpose helper classes, deliberately outside the mt-{block}
   naming pattern since they're cross-cutting, not block-scoped (02 §5.2). */

.mt-hidden { display: none !important; }

.mt-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mt-flex { display: flex; }
.mt-flex-col { display: flex; flex-direction: column; }
.mt-gap-2 { gap: var(--mt-space-2); }
.mt-gap-4 { gap: var(--mt-space-4); }
.mt-mt-2 { margin-top: var(--mt-space-2); }
.mt-mt-4 { margin-top: var(--mt-space-4); }

/* Skip-to-content link (02 §6.1): first focusable element on every page, hidden until focused. */
.mt-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--mt-color-primary);
  color: var(--mt-color-primary-contrast);
  padding: var(--mt-space-2) var(--mt-space-4);
  z-index: 1000;
  border-radius: 0 0 var(--mt-radius-sm) 0;
}
.mt-skip-link:focus {
  left: 0;
}

/* prefers-reduced-motion respected once, platform-wide (02 §6.1) — individual blocks never
   reimplement this. */
@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;
  }
}
