/* FAQ accordion — inherits reading width from .tbr-lesson__content / .entry-content in the shell */

.tbr-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tbr-faq-list__item {
  border: 1px solid var(--tbr-shell-border, rgba(0, 0, 0, 0.12));
  border-radius: 0.375rem;
  background: var(--tbr-shell-surface, #fff);
}

.tbr-faq-list__question {
  cursor: pointer;
  padding: 0.875rem 1rem;
  font-weight: 600;
  list-style: none;
}

.tbr-faq-list__question::-webkit-details-marker {
  display: none;
}

.tbr-faq-list__question-text {
  display: block;
  padding-inline-end: 1.5rem;
}

.tbr-faq-list__item[open] .tbr-faq-list__question {
  border-bottom: 1px solid var(--tbr-shell-border, rgba(0, 0, 0, 0.08));
}

.tbr-faq-list__answer {
  padding: 0 1rem 1rem;
  font-size: inherit;
  line-height: 1.55;
}

.tbr-faq-list__answer > :first-child {
  margin-top: 0.75rem;
}

.tbr-faq-list__answer > :last-child {
  margin-bottom: 0;
}

/* Shortcode on non-shell pages: same reading column as lessons when theme has no shell */
.tbr-program-faq-shortcode.tbr-lesson__content {
  box-sizing: border-box;
  width: var(--tbr-content-width, 80%);
  max-width: var(--tbr-content-max-width, 67.5rem);
  margin-left: auto;
  margin-right: auto;
}
