/* ============================================================================
   HINT IT — v2 design system : FAQ accordion
   ----------------------------------------------------------------------------
   Page-specific styling for the native HTML <details>/<summary> accordion on
   /v2/faq. No JS — open/close is the browser's built-in disclosure behavior;
   the chevron rotation keys off the [open] attribute. Scoped under `.hint-v2`,
   token-driven (no raw hex/px). Linked per-page from the page's <HeadContent>.
   ============================================================================ */

.hint-v2 .faq-intro {
  color: var(--text-on-brand-muted);
  line-height: var(--leading-relaxed);
  margin-top: var(--space-3);
}

/* Each question is a card-like disclosure row. */
.hint-v2 .faq-q {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
}

/* The summary is the clickable header. Remove the native marker; we draw our
   own chevron affordance via V2Icon. */
.hint-v2 .faq-q summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  list-style: none;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  transition: background var(--dur-hover) var(--ease-out);
}

.hint-v2 .faq-q summary::-webkit-details-marker {
  display: none;
}

.hint-v2 .faq-q summary:hover {
  background: var(--bg-page);
}

.hint-v2 .faq-q summary .v2-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--dur-quick) var(--ease-out);
}

/* Chevron points up when the row is open. */
.hint-v2 .faq-q[open] summary .v2-icon {
  transform: rotate(180deg);
}

/* The answer body. */
.hint-v2 .faq-q .faq-a {
  padding: 0 var(--space-5) var(--space-5);
}

.hint-v2 .faq-q .faq-a p {
  margin: 0;
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

.hint-v2 .faq-q .faq-a a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Closing band. */
.hint-v2 .faq-closing {
  text-align: center;
}

.hint-v2 .faq-closing .faq-closing-sub {
  color: var(--text-secondary);
  margin-block: var(--space-3) var(--space-5);
}
