/* ==========================================================================
   Utilities — single-purpose, composable helpers.
   Keep these minimal; prefer component classes over utility soup.
   ========================================================================== */


/* --------------------------------------------------------------------------
   Screen-reader only — visually hidden but announced by assistive technology.
   Use for labels, hints, or text that shouldn't appear on screen.
-------------------------------------------------------------------------- */

.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;
}


/* --------------------------------------------------------------------------
   Button — base component used wherever an interactive control is needed.
   Extend with a modifier (.btn--primary, .btn--ghost, etc.).
-------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 42px;
  padding-inline: var(--space-5);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: var(--transition-colors), var(--transition-shadow);
  user-select: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-focus-ring);
  outline-offset: 2px;
}

/* Primary — filled blue, used for the main CTA */
.btn--primary {
  background-color: var(--color-primary-600);
  border-color: var(--color-primary-600);
  color: #ffffff;
}

.btn--primary:hover {
  background-color: var(--color-primary-700);
  border-color: var(--color-primary-700);
  box-shadow: var(--shadow-md);
  color: #ffffff;
}

.btn--primary:active {
  background-color: var(--color-primary-800);
  border-color: var(--color-primary-800);
  box-shadow: none;
}

/* Ghost — transparent with border, used for secondary actions */
.btn--ghost {
  background-color: transparent;
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.btn--ghost:hover {
  background-color: var(--color-bg-subtle);
  border-color: var(--color-border-strong);
  color: var(--color-text);
}
