/* Brand teal for the accordion. Duration tokens match the motion reference.
   No height animation. */
:root {
  --accent: #005453;
  --faq-dur-icon: 200ms;
  --faq-dur-fade: 150ms;
  --faq-ease: ease-out;
}

.answer-block {
  margin: 24px 0 40px;
  max-width: 60ch;
  font: inherit;
  line-height: 1.6;
}

@media (min-width: 1440px) {
  .answer-block {
    margin: 40px 0 64px;
    max-width: 640px;
  }
}

.faq {
  width: 100%;
  font: inherit;
  line-height: 1.5;
}

.faq__item {
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}

.faq__q {
  margin: 0;
  font: inherit;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  line-height: 1.3;
}

.faq__btn {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 44px;
  padding: 12px 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}

.faq__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.faq__icon {
  flex: none;
  width: 20px;
  height: 20px;
  position: relative;
  color: var(--accent);
  transform: rotate(0deg);
  transition: transform var(--faq-dur-icon) var(--faq-ease);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  inset: 9px 2px;
  background: currentColor;
  border-radius: 1px;
}

.faq__icon::after {
  transform: rotate(90deg);
}

.faq__btn[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
}

/* The theme sets [hidden] { display: none }, which blocks find-in-page.
   Keep until-found searchable: no display:none, no height transition. */
.faq__a {
  padding: 0;
  opacity: 1;
}

.faq__a[hidden="until-found"] {
  display: block;
  content-visibility: hidden;
}

.faq__a:not([hidden]) {
  padding: 0 0 16px;
}

.faq__a p {
  margin: 0;
  max-width: 68ch;
  font: inherit;
  font-size: 17px;
  line-height: 1.6;
}

.faq__a[data-entering] {
  opacity: 0;
}

.faq__a.is-fading {
  transition: opacity var(--faq-dur-fade) var(--faq-ease);
}

@media (prefers-reduced-motion: reduce) {
  .faq__icon,
  .faq__a,
  .faq__a.is-fading {
    transition: none !important;
  }

  .faq__a[data-entering] {
    opacity: 1;
  }
}
