/* -------------------------------------------------------------------------- */
/* FAQ accordion: compact rows                                                 */
/* Loaded after site-design-system.css. The Webflow base gave every            */
/* .collection-item-2 a 40px bottom margin plus 16px item padding and a 20px   */
/* question, so a collapsed row took ~100px. The row now gets its height only  */
/* from the trigger button's padding, which also makes the full row clickable. */
/* -------------------------------------------------------------------------- */

.faq .collection-item-2 {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.faq .collection-item-2:last-child {
  border-bottom: none;
}

.faq .collection-item-2 .heading-7 {
  margin: 0 !important;
  padding: 0;
  font-size: 17px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
  letter-spacing: 0;
}

/* Before FaqAccordionInit runs the heading has no button yet; give it the same
   vertical rhythm so hydration does not shift the rows. */
.faq .collection-item-2:not(.mpw-faq-item) .heading-7 {
  padding: 17px 0;
}

.faq .mpw-faq-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 17px 0;
  border-radius: 4px;
  transition: color 160ms ease;
}

.faq .mpw-faq-item__trigger:hover {
  color: rgba(0, 0, 0, 0.72);
}

.faq .mpw-faq-item__trigger:focus {
  outline: none;
}

.faq .mpw-faq-item__trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 0;
}

/* Chevron: fixed size, vertically centred, never shrinks on narrow screens. */
.faq .mpw-faq-item__trigger::after {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin: 0 4px 0 0;
  border-right-width: 1.5px;
  border-bottom-width: 1.5px;
  opacity: 0.6;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease, opacity 160ms ease;
}

@media (hover: hover) {
  .faq .mpw-faq-item__trigger:hover {
    color: rgba(0, 0, 0, 0.72);
  }

  .faq .mpw-faq-item__trigger:hover::after {
    opacity: 0.9;
  }
}

.faq .mpw-faq-item.is-open .mpw-faq-item__trigger::after {
  margin-top: 0;
  transform: translateY(2px) rotate(225deg);
}

.faq .mpw-faq-item .heading-7,
.faq .mpw-faq-item.is-open .heading-7 {
  margin-bottom: 0 !important;
}

/* Answer */
.faq .collection-item-2 .paragraph-7 {
  margin: 0 !important;
  padding: 0 2rem 18px 0 !important;
  font-size: 16px;
  line-height: 1.65 !important;
}

.faq .mpw-faq-item.is-open .mpw-faq-item__trigger {
  padding-bottom: 12px;
}

.faq .mpw-faq-item.is-open .mpw-faq-item__answer {
  animation: mpw-faq-reveal 160ms ease-out;
}

@keyframes mpw-faq-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media screen and (max-width: 767px) {
  .faq .collection-item-2 .heading-7 {
    font-size: 16px !important;
  }

  .faq .collection-item-2:not(.mpw-faq-item) .heading-7,
  .faq .mpw-faq-item__trigger {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .faq .mpw-faq-item__trigger {
    gap: 0.75rem;
  }

  .faq .mpw-faq-item.is-open .mpw-faq-item__trigger {
    padding-bottom: 10px;
  }

  .faq .collection-item-2 .paragraph-7 {
    padding-right: 0 !important;
    padding-bottom: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq .mpw-faq-item.is-open .mpw-faq-item__answer {
    animation: none;
  }

  .faq .mpw-faq-item__trigger,
  .faq .mpw-faq-item__trigger::after {
    transition: none;
  }
}
