/**
 * FAQ accordion: crosstab pages, and pages/posts that have a faq meta field.
 */

.faq {
  margin: 1rem 0;
}

.faq-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq summary {
  font-size: 1rem;
  color: var(--charcoal) !important;
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  padding: 0.75rem 1rem;
  background-color: #ffffff;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-size: 1.25rem;
  line-height: 1;
  margin-left: 1rem;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0.75rem 1rem;
  color: var(--soft-black);
  font-weight: 300;
  background-color: #ffffff;
  border-top: 1px solid #eee;
  font-size: 0.75rem;
  line-height: 1.5;
}
