/* ═══════════════════════════════════════════════════════════════════════
   Artists Camp — FAQ page (patterns: faq-*).
   Exact values ported from artists-camp-3.0 src/pages/Faq.tsx inline
   styles. The 3.0 accordion (button + acc-wrap + JS) is rendered as
   styled <details>/<summary> here so visitors can expand without JS;
   the disclosure chip and timings mirror .chev / .acc-wrap in main.css.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Hero ────────────────────────────────────────────────────────────── */

.faq-hero {
  padding: clamp(56px, 9vw, 96px) clamp(16px, 4vw, 32px) clamp(36px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-hero__lead {
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 1.5;
  color: #516078;
  margin: 0;
}

/* ── The accordion ───────────────────────────────────────────────────── */

.faq-list {
  padding: 0 clamp(16px, 4vw, 32px) clamp(56px, 8vw, 88px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Item card shell — pair with hv-card for the hover lift. */
details.faq-item {
  background: #ffffff;
  border: 1px solid #e8ecf2;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  margin: 0;
}

/* Question row (the 3.0 trigger button). */
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: clamp(16px, 2.4vw, 19px);
  font-weight: 600;
  line-height: 1.3;
  color: #111827;
}

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

/* Row wash on hover (hv-row values — the class can't sit on a summary). */
.faq-item > summary:hover {
  background: #f5f7fa;
}

/* The +/× disclosure chip (span.chev in 3.0; drawn here so the summary
   stays plain editable text). Motion values mirror .chev in main.css. */
.faq-item > summary::after {
  content: "+";
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid #cdd4df;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #516078;
  font-weight: 600;
  font-family: "Inter", Arial, sans-serif;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item[open] > summary::after {
  transform: rotate(45deg);
}

/* Answer copy. */
.faq-item .faq-item__answer {
  padding: 0 22px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #516078;
  text-wrap: pretty;
  margin: 0;
}

/* No-JS open/close ease (acc-wrap timing) where the browser supports it. */
@supports (interpolate-size: allow-keywords) {
  .faq-item {
    interpolate-size: allow-keywords;
  }

  .faq-item::details-content {
    block-size: 0;
    overflow-y: clip;
    transition:
      block-size 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      content-visibility 0.35s allow-discrete;
  }

  .faq-item[open]::details-content {
    block-size: auto;
  }
}

/* "Something else?" footer line. */
.faq-list__more {
  font-size: 14px;
  color: #8b97aa;
  padding-top: 16px;
  margin: 0;
}

.faq-list__more .icon-pop {
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item > summary::after {
    transition: none;
  }

  .faq-item::details-content {
    transition: none;
  }
}
