/* Volunteer opportunity filter + uneven-card layout corrections. */

.volunteer-shift-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.volunteer-shift-filter[hidden] {
  display: none;
}

.volunteer-shift-filter-button[aria-pressed="true"] {
  font-weight: 700;
}

.volunteer-shift-filter-help {
  font-size: 0.9rem;
  opacity: 0.75;
}

/* Do not force the card beside a long shift list to become equally tall. */
.volunteer-cabinet-cards {
  align-items: start;
}

.volunteer-opportunity-card,
.way-to-serve-card {
  height: auto;
  min-height: 0;
  align-self: start;
}

/* Keep eligibility text/shifts directly below the opportunity description. */
.volunteer-shift-list {
  margin-top: 0;
}

@media (max-width: 800px) {
  .volunteer-shift-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .volunteer-shift-filter-button {
    width: 100%;
  }
}


/* Make the shift filter unmistakably interactive and show its current state. */
.volunteer-shift-filter-button {
  border: 2px solid #7f2935;
  background: #7f2935;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.volunteer-shift-filter-button:hover,
.volunteer-shift-filter-button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.20);
}

.volunteer-shift-filter-button[aria-pressed="true"] {
  background: #7f2935;
  border-color: #7f2935;
  color: #fff;
}

.volunteer-shift-filter-button[aria-pressed="false"] {
  background: #fff;
  border-color: #66785d;
  color: #42503d;
}

.volunteer-shift-filter-help {
  font-weight: 600;
  opacity: 1;
}
.volunteer-interest-status {
  display: grid;
  justify-items: start;
  gap: .55rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-cream-soft);
}

.volunteer-interest-status.is-pending {
  border-color: var(--color-green);
  background: rgba(164, 183, 146, .16);
}

.volunteer-interest-status p {
  margin: 0;
}
