/*
 * Every FAQ on the site, from this one file (owner, 13 Oct 2026: "choose the
 * best-looking FAQ design on the site and use it for every FAQ, including its
 * heading font and colours, from one central place"). The design is the
 * Social Media Publisher's: a gold pill tag, the section heading in white
 * with a gold accent, full-width question cards with a gold plus, the open
 * question tinted purple. Pages use one markup:
 *   <section class="mx-faq" id="faq"><div class="mx-faq-w">
 *     <div class="mx-faq-head"><span class="mx-faq-tag"><span class="mx-faq-dot"></span>Questions</span>
 *       <h2 class="mx-faq-h">Good to <em>know.</em></h2><p class="mx-faq-sub">...</p></div>
 *     <div class="mx-faq-list"><details class="mx-faq-item"><summary>Question<span class="mx-faq-ic"></span></summary>
 *       <div class="mx-faq-a"><p>Answer</p></div></details>...</div>
 *     <div class="mx-faq-more">closing links</div>
 *   </div></section>
 * In an article it is a panel (div.mx-faq.mx-faq-panel) in the text.
 */
.mx-faq {
  --mx-faq-gold: #f59e0b;
  --mx-faq-gold2: #fbbf24;
  position: relative;
  z-index: 2;
  padding: clamp(4.5rem, 9vw, 8rem) clamp(1.1rem, 4vw, 2.5rem);
  color: #dcd8ec;
  font-family: 'Inter', system-ui, sans-serif;
  /* Its own background, the chosen page's, so it looks the same on light
     pages too (the CRM page is light; its old FAQ carried its own). */
  background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(124, 58, 237, .16), transparent 70%), #0d0a1c;
}
.mx-faq.mx-faq-panel {
  margin: 2.5rem 0;
  padding: clamp(2rem, 5vw, 3.2rem) clamp(1rem, 4vw, 2.4rem);
  border-radius: 22px;
  background: linear-gradient(155deg, #0d0820, #1e0e4a 60%, #2d1270);
}
.mx-faq-w { max-width: 840px; margin: 0 auto; }
.mx-faq-head { text-align: center; position: relative; }
/* A page's large outlined section number (Affiliates' 11) stays behind the heading. */
.mx-faq-head > :not(.snum-ghost) { position: relative; z-index: 1; }
.mx-faq-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.4;
  color: var(--mx-faq-gold2); background: rgba(245, 184, 32, .10); border: 1px solid rgba(245, 184, 32, .25);
  padding: .34rem .9rem; border-radius: 100px; margin-bottom: 1.9rem;
}
.mx-faq-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mx-faq-gold); animation: mxFaqPulse 2s ease-in-out infinite; }
.mx-faq .mx-faq-h {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: clamp(2.2rem, 5.4vw, 4rem) !important;
  font-weight: 900 !important;
  line-height: .98 !important;
  letter-spacing: .01em;
  color: #fff !important;
  margin: 0 0 1.1rem;
  text-align: center;
  -webkit-text-fill-color: #fff;
  background: none;
}
.mx-faq .mx-faq-h em {
  font-style: normal;
  background: linear-gradient(135deg, var(--mx-faq-gold), var(--mx-faq-gold2), #fb923c, var(--mx-faq-gold)) !important;
  background-size: 300% !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent;
  animation: mxFaqGold 4s linear infinite;
}
.mx-faq-sub { max-width: 560px; margin: 0 auto; color: rgba(255, 255, 255, .62); font-size: 1rem; line-height: 1.6; }
.mx-faq-list { margin-top: 2.6rem; display: flex; flex-direction: column; gap: .7rem; text-align: left; }
.mx-faq-item {
  border: 1px solid rgba(255, 255, 255, .10); border-radius: 14px; background: rgba(255, 255, 255, .04);
  transition: border-color .2s, background .2s; margin: 0;
}
.mx-faq-item[open] { border-color: rgba(167, 139, 250, .42); background: rgba(124, 58, 237, .10); }
.mx-faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.35rem; font-size: 1.02rem; font-weight: 700; line-height: 1.4; color: #fff; margin: 0;
}
.mx-faq-item summary::-webkit-details-marker { display: none; }
.mx-faq-item summary::marker { content: ''; }
.mx-faq-item summary:hover { color: var(--mx-faq-gold2); }
.mx-faq-item summary:focus-visible { outline: 2px solid var(--mx-faq-gold2); outline-offset: 3px; border-radius: 12px; }
.mx-faq-ic { position: relative; width: 20px; height: 20px; flex-shrink: 0; }
.mx-faq-ic::before, .mx-faq-ic::after { content: ''; position: absolute; background: var(--mx-faq-gold); border-radius: 2px; transition: transform .25s cubic-bezier(.22, 1, .36, 1); }
.mx-faq-ic::before { top: 9px; left: 1px; right: 1px; height: 2px; }
.mx-faq-ic::after { left: 9px; top: 1px; bottom: 1px; width: 2px; }
.mx-faq-item[open] .mx-faq-ic::after { transform: scaleY(0); }
.mx-faq-a { padding: 0 1.35rem 1.25rem; color: rgba(255, 255, 255, .62); font-size: .95rem; line-height: 1.62; }
.mx-faq-a p, .mx-faq-a ul, .mx-faq-a ol { margin: 0 0 .7rem; color: inherit; font-size: inherit; line-height: inherit; }
.mx-faq-a > :last-child { margin-bottom: 0; }
.mx-faq-a ul, .mx-faq-a ol { padding-left: 1.2rem; }
.mx-faq-a a { color: var(--mx-faq-gold2); text-decoration: underline; text-underline-offset: 2px; }
.mx-faq-a strong, .mx-faq-a b { color: #fff; }
.mx-faq-item[open] .mx-faq-a { animation: mxFaqOpen .28s cubic-bezier(.22, 1, .36, 1); }
.mx-faq-more { margin-top: 2rem; text-align: center; color: rgba(255, 255, 255, .62); font-size: .95rem; line-height: 1.6; }
.mx-faq-more p { margin: 0 0 .6rem; }
.mx-faq-more a { color: var(--mx-faq-gold2); }
.mx-faq-more .mx-faq-link {
  display: inline-flex; align-items: center; gap: .4rem; margin: .4rem .3rem 0; padding: .75rem 1.4rem; border-radius: 12px;
  font-weight: 700; text-decoration: none; color: #1a0a2e; background: linear-gradient(135deg, var(--mx-faq-gold), var(--mx-faq-gold2));
}
@media (max-width: 640px) {
  .mx-faq-item summary { font-size: .95rem; padding: 1rem 1.05rem; }
  .mx-faq-a { padding: 0 1.05rem 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mx-faq-dot, .mx-faq .mx-faq-h em, .mx-faq-item[open] .mx-faq-a { animation: none; }
}
@keyframes mxFaqOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes mxFaqGold { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
@keyframes mxFaqPulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
