/* FAQ Accordion
   Native <details>/<summary> accordion — no JavaScript required.
   ========================================================================== */
.faq {
  margin:50px auto;
}

.faq__heading {
  margin: 0 0 1.5rem;
}

/* Item */

.faq__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.faq__item:first-of-type {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

/* Question (summary) */

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none; /* remove default disclosure triangle (Firefox) */
}

.faq__question::-webkit-details-marker {
  display: none; /* remove default disclosure triangle (Safari/Chrome) */
}

.faq__question:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.faq__question-text {
  flex: 1 1 auto;
}

/* Chevron icon */

.faq__icon {
  flex: 0 0 auto;
  width: 0.6em;
  height: 0.6em;
  margin-top: -0.2em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}

.faq__item[open] .faq__icon {
  margin-top: 0.2em;
  transform: rotate(225deg);
}

/* Answer */

.faq__answer {
  padding-bottom: 1.25rem;
}

.faq__answer > :first-child {
  margin-top: 0;
}

.faq__answer > :last-child {
  margin-bottom: 0;
}

/* Progressive enhancement: smoothly animate open/close in browsers that
   support animating to intrinsic sizes. Everywhere else it simply toggles
   instantly, exactly like a native <details>. */

@supports (interpolate-size: allow-keywords) {
  .faq {
    interpolate-size: allow-keywords;
  }

  .faq__item::details-content {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease, content-visibility 0.3s ease;
    transition-behavior: allow-discrete;
  }

  .faq__item[open]::details-content {
    height: auto;
  }
}
