/* ==========================================================================
   Utilities — MBA ACT
   Screen-reader only, containers, flex/grid helpers, display toggles.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Screen Reader / Visually Hidden
   -------------------------------------------------------------------------- */
.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Becomes visible on focus (skip links) */
.sr-only--focusable:focus,
.visually-hidden--focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);  /* 24px */
  padding-right: var(--space-6);
}

.container--narrow {
  max-width: 960px;
}

.container--wide {
  max-width: 1600px;
}

@media (min-width: 768px) {
  .container {
    padding-left: var(--space-16); /* 64px */
    padding-right: var(--space-16);
  }
}

/* --------------------------------------------------------------------------
   Flex Helpers
   -------------------------------------------------------------------------- */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }
.gap-2  { gap: var(--space-2); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* --------------------------------------------------------------------------
   Grid Helpers
   -------------------------------------------------------------------------- */
.grid { display: grid; }

.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Display Toggles per Breakpoint
   -------------------------------------------------------------------------- */
.hide         { display: none; }
.block        { display: block; }
.inline-block { display: inline-block; }

/* Desktop only (hidden below 768) */
.desktop-only {
  display: none;
}

@media (min-width: 769px) {
  .desktop-only { display: block; }
  .mobile-only  { display: none; }
}

/* Mobile only (hidden above 768) */
.mobile-only {
  display: block;
}

/* --------------------------------------------------------------------------
   Text Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-left   { text-align: left; }
.uppercase   { text-transform: uppercase; }
.no-wrap     { white-space: nowrap; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Spacing Utilities
   -------------------------------------------------------------------------- */
.mt-0  { margin-top: 0; }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }
.mb-0  { margin-bottom: 0; }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }
