/*
 * Herd Application Styles — functional CSS only.
 * Design system removed (herding-k5w). Pico.css (pico.min.css) supplies
 * all visual styling; this file keeps only behavior-coupled rules.
 */

/* Prevent double-tap zoom in PWA standalone mode */
@media (display-mode: standalone) {
  html {
    touch-action: manipulation;
  }

  /* Prevent iOS auto-zoom on input focus (triggers below 16px) */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="search"],
  input[type="number"],
  input[type="password"],
  input[type="date"],
  input[type="datetime-local"],
  textarea,
  select {
    font-size: 1rem;
  }
}

/* Elements toggled via the `hidden` attribute (Stimulus controllers rely on
   this rather than a class) */
[hidden] {
  display: none !important;
}

/* Many Stimulus controllers toggle a `hidden` class via classList */
.hidden {
  display: none !important;
}

/* Screen-reader-only text (accessibility, not design) */
.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;
}

/* Disabled text-link styling (used across forms; no Pico equivalent) */
.text-link:disabled,
.text-link[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}
