/* ============================================================
   Live availability badges (sold out / open)
   Source of truth: window.TOW_AVAILABILITY_API in availability.js
   To disable entirely: set ENABLE_LIVE_AVAILABILITY = false at the
   top of assets/js/availability.js — no HTML changes needed.
   ============================================================ */

[data-availability-wrap] {
  position: relative;
}

.availability-tint-sold-out {
  position: absolute;
  inset: 0;
  background: rgba(108, 93, 179, 0.32); /* faint purple wash */
  pointer-events: none;
  z-index: 5;
}

.availability-badge {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  z-index: 6;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 10px;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.35);
  line-height: 1.35;
  pointer-events: none;
  white-space: normal;
  max-width: min(150px, calc(100% - 1rem));
}

@media (min-width: 640px) {
  .availability-badge {
    font-size: 10.5px;
    padding: 5px 10px;
    max-width: 170px;
  }
}

.availability-badge-sold {
  background-color: #dc2626; /* red */
}

.availability-badge-open {
  background-color: #16a34a; /* green */
}

/* ============================================================
   Rich text (bio_html / practitioner_bio_html /
   experience_description_html from /api/public/availability).
   These fields only ever contain <p>, <br/>, <strong>, <em>, <a>
   — plain default styling plus paragraph spacing and link color.
   ============================================================ */

.rich-text p {
  margin: 0;
}

.rich-text p + p {
  margin-top: 0.85em;
}

.rich-text a {
  color: #ec8a5b; /* coral */
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rich-text strong {
  font-weight: 700;
}
