/* FAQ page — native <details> accordion, no JS. */

.faq-section { padding-top: 0; }

.faq-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 78ch;
  border-top: 1px solid var(--rule);
}

.faq-item { border-bottom: 1px solid var(--rule); }

.faq-details { position: relative; }

.faq-question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.2s ease;
}

/* Hide the native disclosure triangle in both engines. */
.faq-question::-webkit-details-marker { display: none; }
.faq-question::marker { content: ""; }

.faq-question:hover { color: var(--accent); }
.faq-question:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.faq-question__text { flex: 1; }

/* Plus sign that rotates into a minus when the item opens. */
.faq-question__icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 6px;
}
.faq-question__icon::before,
.faq-question__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.faq-question__icon::before { width: 100%; height: 1.5px; }
.faq-question__icon::after { width: 1.5px; height: 100%; }
.faq-details[open] .faq-question__icon::after { transform: rotate(90deg); opacity: 0; }

.faq-answer {
  padding: 0 42px 28px 0;
  max-width: 68ch;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
}
.faq-answer p { margin: 0; }

.faq-details[open] .faq-answer { animation: faq-reveal 0.28s ease both; }

@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .faq-details[open] .faq-answer { animation: none; }
  .faq-question__icon::before,
  .faq-question__icon::after { transition: none; }
}

@media (max-width: 640px) {
  .faq-question { padding: 20px 0; gap: 16px; }
  .faq-answer { padding: 0 0 22px; }
}
