/* FAQ styles, shared by the homepage (Faq.vue) and the landing pages (copied to dist/landing/faq.css
   by scripts/generate-pages.mjs). Plain CSS so both can use it. */

.faq {
  max-width: 1000px;
  margin: 0 auto 4rem;
}

.faq__title {
  text-align: center;
  font-family: var(--secondary-font-liquid);
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  margin: 0 0 2rem;
}

.faq__item {
  margin-bottom: 0.5rem;
}

.faq__question {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.75rem;
  font-family: var(--secondary-font-liquid);
  font-size: 1.5rem;
  color: var(--secondary);
  cursor: pointer;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: '';
  order: 1;
  flex: 1;
  min-width: 1rem;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.faq__question svg {
  order: 2;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  transition: rotate 0.2s;
}

.faq__item[open] .faq__question svg {
  rotate: 180deg;
}

.faq__question:hover {
  color: #fff;
}

.faq__answer {
  margin: 0.25rem 0 1.25rem;
  padding-inline: 0.25rem;
  font-family: var(--primary-font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1225px) {
  .faq__title {
    font-size: 2.25rem;
  }

  .faq__question {
    font-size: 1.2rem;
  }

  .faq__answer {
    font-size: 1rem;
  }
}
