/*



 */

/* About page article image — always crop to landscape */
.about-article-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 10px;
}
.about-article-img picture {
  display: block;
  height: 100%;
}
.about-article-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Override Tailwind v4 preflight's appearance: button which causes native Android
   button styling (green) to bleed through when CSS custom properties haven't resolved
   for Turbo Stream-injected DOM elements on Android Chrome. */
button, [type=button], [type=reset], [type=submit] {
  appearance: none;
  -webkit-appearance: none;
}

/* Form Validation Styles */
.field-with-error input,
.field-with-error select,
.field-with-error .checkbox-group,
.field-with-error .radio-group,
.field-with-error {
  @apply border-2 border-red-500 rounded p-2 bg-red-50;
}

.error-message {
  @apply text-red-600 text-sm mt-1 block font-bold;
}
.simple-calendar {
  width: 100%;
  margin-bottom: 2rem;
}

.simple-calendar table {
  width: 100%;
  border-collapse: collapse;
}

.simple-calendar th,
.simple-calendar td {
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  text-align: left;
}

.simple-calendar th {
  background-color: #f3f4f6;
  font-weight: 600;
}

.simple-calendar .day {
  height: 100px;
  vertical-align: top;
}

.simple-calendar .wday-0,
.simple-calendar .wday-6 {
  background-color: #f9fafb;
}

.simple-calendar .today {
  background-color: #e5edff;
}

.simple-calendar .prev-month,
.simple-calendar .next-month {
  background-color: #f9fafb;
  color: #9ca3af;
}

.simple-calendar .calendar-heading {
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.simple-calendar .calendar-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.simple-calendar .calendar-heading a {
  color: #4b5563;
  text-decoration: none;
  padding: 0.5rem;
}

.simple-calendar .calendar-heading a:hover {
  color: #1f2937;
}
/* Animation for highlighting updated content */
@keyframes highlight {
  0% {
    background-color: rgba(96, 165, 250, 0.3); /* blue-300 with opacity */
  }
  70% {
    background-color: rgba(96, 165, 250, 0.3); /* blue-300 with opacity */
  }
  100% {
    background-color: transparent;
  }
}

.group-question-text {
  transition: background-color 0.5s ease;
  padding: 8px;
  border-radius: 6px;
}

/* Class for animation trigger */
.question-updated {
  animation: highlight 2s ease-in-out;
}

/* Heartbeat throb for stay button in final minute */
@keyframes throb {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 20px 5px rgba(220, 243, 255, 0.9);
  }
}
.throb {
  animation: throb 1s ease-in-out infinite;
}

/* Stay-with-partner button selected state */
.stay-selected {
  background-color: oklch(0.769 0.188 70.08) !important; /* amber-500 */
}
.stay-selected:hover {
  background-color: oklch(0.666 0.179 58.318) !important; /* amber-600 */
}

/* Thumbs pulse for feedback buttons — stroke-width + colour */
@keyframes thumbs-pulse-up {
  0%, 100% {
    stroke-width: 1.5;
    stroke: #d1d5db; /* gray-300 */
  }
  50% {
    stroke-width: 3;
    stroke: #22c55e; /* green-500 */
  }
}
@keyframes thumbs-pulse-down {
  0%, 100% {
    stroke-width: 1.5;
    stroke: #d1d5db; /* gray-300 */
  }
  50% {
    stroke-width: 3;
    stroke: #ef4444; /* red-500 */
  }
}
.thumbs-pulse-up svg {
  animation: thumbs-pulse-up 1.5s ease-in-out infinite;
}
.thumbs-pulse-down svg {
  animation: thumbs-pulse-down 1.7s ease-in-out infinite;
}
