/* ==========================================================================
   Utilities — auxiliaire.co
   Small helper classes for spacing, text, display, and layout.
   ========================================================================== */

/* ---- Text ---- */
.text-sm      { font-size: var(--text-sm); }
.text-xs      { font-size: var(--text-xs); }
.text-base    { font-size: var(--text-base); }
.text-lg      { font-size: var(--text-lg); }
.text-xl      { font-size: var(--text-xl); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-muted   { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-primary { color: var(--color-primary); }
.text-success { color: var(--color-success-text); }
.text-error   { color: var(--color-error-text); }
.text-warning { color: var(--color-warning-text); }
.font-medium  { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold    { font-weight: 700; }
.uppercase    { text-transform: uppercase; letter-spacing: 0.04em; }

/* ---- Spacing ---- */
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: var(--space-1); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-3  { margin-bottom: var(--space-3); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }

/* ---- Display ---- */
.hidden   { display: none; }
.block    { display: block; }
.inline   { display: inline; }
.flex     { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1    { gap: var(--space-1); }
.gap-2    { gap: var(--space-2); }
.gap-3    { gap: var(--space-3); }
.gap-4    { gap: var(--space-4); }
.flex-wrap { flex-wrap: wrap; }

/* ---- Width ---- */
.w-full   { width: 100%; }

/* ---- Visibility (responsive) ---- */
/* Breakpoint: --breakpoint-sm (640px) — see tokens.css */
@media (max-width: 640px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 641px) {
  .hide-desktop { display: none !important; }
}

/* ---- Screen-reader only ---- */
.sr-only {
  position: absolute;
  width: var(--size-sr-only);
  height: var(--size-sr-only);
  padding: 0;
  margin: calc(-1 * var(--size-sr-only));
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
