/* ============================================================
   FAQ accordion block
   ============================================================ */
.faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-faq-gap);
}

.faq__item {
  background: var(--color-bg-dark);
  border-radius: var(--radius-card);
  overflow: hidden;
}
/* The question is wrapped in an <h3> for semantics only (it's really a
   toggle button). Without this reset, the page-wide ".content-section h3"
   heading spacing (a large top margin meant for prose subheadings) leaks
   in here and pushes a big empty gap above every question. */
.faq__item h3 {
  margin: 0;
}

.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem var(--space-card-padding);
  text-align: left;
  font-weight: var(--font-weight-semibold);
  font-size: 1rem;
  color: var(--color-white);
}

.faq__icon {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--color-accent-light);
  transition: transform var(--transition-base);
}
.faq__icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  transform: translateY(-50%);
}
.faq__icon::after {
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
}
.faq__question[aria-expanded="true"] .faq__icon::after { transform: translateX(-50%) scaleY(0); }

.faq__answer {
  /* margin-top: 0 overrides the same leaking ".content-section h3 + *"
     rule (it targets the element right after the <h3>, which is this
     answer panel) so opening an item doesn't add an extra unwanted gap
     on top of the panel's own padding. */
  margin-top: 0;
  padding: 0 var(--space-card-padding) 1.1rem;
  color: var(--color-text-main);
  font-size: var(--font-size-base);
}
.faq__answer[hidden] { display: none; }
.faq__answer p { margin-bottom: 0.75rem; }
.faq__answer p:last-child { margin-bottom: 0; }
