/* ============================================================
 * FAQ accordion styles — kffund .list-problem parity.
 * Q block: white card with circular "Q" badge + right chevron.
 * A block: pale-gray tinted panel, circular "A" badge aligned top.
 * Uses native <details>/<summary>; no JS required.
 * ============================================================ */

.faq-page { padding: 40px 0 60px; }
.faq-page .faq-list {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-1);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.faq-item:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow-1);
}
.faq-item[open] {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-2);
}

/* Remove default disclosure triangle */
.faq-question {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 28px;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  font-size: var(--fs-md);
  color: var(--text-1);
  font-weight: var(--fw-semibold);
  user-select: none;
  background: #fff;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ''; }

.faq-q-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-inverse);
  font-weight: var(--fw-bold);
  font-size: 15px;
  letter-spacing: .02em;
  flex-shrink: 0;
}

.faq-q-text {
  line-height: 1.55;
  color: var(--text-1);
  min-width: 0;
  word-break: break-word;
}

/* Chevron toggle (down when closed, up when open) */
.faq-toggle {
  justify-self: end;
  position: relative;
  width: 16px;
  height: 16px;
}
.faq-toggle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -65%) rotate(45deg);
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transition: transform .25s ease, border-color .25s ease;
}
.faq-item[open] .faq-toggle::before {
  transform: translate(-50%, -30%) rotate(-135deg);
  border-color: var(--primary);
}

.faq-answer {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 22px 20px;
  background: var(--bg-2);
  border-top: 1px solid var(--border-light);
}
.faq-a-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text-inverse);
  font-weight: var(--fw-bold);
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 2px;
}
.faq-a-body {
  color: var(--text-2);
  font-size: var(--fs-md);
  line-height: 1.8;
}
.faq-a-body > *:first-child { margin-top: 0; }
.faq-a-body > *:last-child { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .faq-question {
    padding: 16px 18px;
    grid-template-columns: 28px minmax(0, 1fr) 24px;
    gap: 10px;
  }
  .faq-answer {
    padding: 8px 18px 18px 18px;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
  }
}
