/* ============================================================
   UTILITIES — Accessibility helpers, responsive, text
   ============================================================ */

/* --- Accessibility --- */
.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;
}

.skip-link {
  position: fixed;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 9999;
  padding: var(--space-2) var(--space-3);
  background: var(--color-accent);
  color: var(--color-text-inverse);
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-md);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform var(--duration-fast) var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
  color: var(--color-text-inverse);
}

/* --- Text --- */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-secondary { color: var(--color-text-secondary); }
.text-small { font-size: var(--text-sm); }
.text-balance { text-wrap: balance; }

/* --- Responsive display --- */
.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: initial;
  }

  .hide-tablet {
    display: none;
  }
}

@media (min-width: 1024px) {
  .hide-tablet {
    display: initial;
  }

  .hide-desktop {
    display: none;
  }
}

/* --- Noscript --- */
noscript .noscript-msg {
  display: block;
  padding: var(--space-3) var(--space-4);
  background: var(--color-warning);
  color: #fff;
  text-align: center;
  font-weight: 550;
}
