/* ============================================================================
   av-faq.css — shared FAQ accordion styles (native details/summary, no Bootstrap).
   Extracted from av-exchange.css (2026-07-16, F214 item 4) so templates that
   are NOT on the /exchange/:id/ bundle -- starting with the homepage -- can
   render the same visible FAQ markup (.av-faq-section / .av-faq-item /
   .av-faq-body) without pulling in exchange-page-only CSS (hero, flow
   diagram, feature table). av-exchange.css keeps its own copy of these rules
   for /exchange/:id/; this file is the reusable subset for everyone else.
   Built on the same av-tokens + av-components variables. Monochrome + orange
   accent only. Day/night via data-theme.
   ========================================================================== */

.av-faq-section {
  background: var(--av-surface);
  border-top: 1px solid var(--av-border);
  border-bottom: 1px solid var(--av-border);
}

/* Constrain FAQ to a readable width — .av-container default (1200px) is too wide
   for an accordion; long Q&A lines stretch the full screen and break legibility. */
.av-faq-section .av-container {
  max-width: 800px;
}

.av-faq-group-heading {
  font-family: var(--av-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--av-orange);
  margin: var(--av-space-7) 0 var(--av-space-3);
  padding-bottom: var(--av-space-3);
  border-bottom: 1px solid var(--av-border);
}

.av-faq-group-heading:first-child { margin-top: 0; }

.av-faq-item {
  border-bottom: 1px solid var(--av-border);
}

.av-faq-item:last-child { border-bottom: none; }

.av-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--av-space-5) 0;
  font-family: var(--av-font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--av-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--av-space-4);
  user-select: none;
}

.av-faq-item summary::-webkit-details-marker { display: none; }

.av-faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23BCB9B9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.2s var(--av-ease-out);
}

.av-faq-item[open] summary::after {
  transform: rotate(180deg);
}

.av-faq-item summary:hover { color: var(--av-orange); }

.av-faq-body {
  padding: 0 0 var(--av-space-5);
  color: var(--av-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.av-faq-body code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.875em;
  background: var(--av-surface-raise);
  border: 1px solid var(--av-border);
  border-radius: 4px;
  padding: 0.1em 0.45em;
  color: var(--av-orange);
}
