/*
 * Small hand-written styles that complement Tailwind utilities.
 * Tailwind itself is loaded by templates/partials/_assets.html
 * (browser build in Phase 1; see static/css/src/tailwind.css for the future CLI build).
 */

[x-cloak] {
  display: none !important;
}

/* Thin progress bar shown while hx-boost navigation is in flight. */
.htmx-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  background: #4f46e5;
  opacity: 0;
  transition: opacity 150ms ease-in-out;
  z-index: 50;
}

.htmx-request .htmx-progress,
.htmx-request.htmx-progress {
  opacity: 1;
}

/* Checkbox / radio lists rendered by Django forms (Gravity forms). */
.choice-list label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.125rem 0;
}

.choice-list input[type="checkbox"],
.choice-list input[type="radio"] {
  margin-top: 0.2rem;
}
