/*
 * Home page — section 12 (FAQ / DUK).
 *
 * The markup mirrors the live design's utility classes. Two of those
 * utilities are reference-only values that are not part of this project's
 * Tailwind theme, so they are restored here: the translucent eyebrow border
 * and the `ink-soft` label colour. The remaining rules provide the
 * grid-row animation and the plus/minus icon swap used by
 * `js/pages/home/faq.js`.
 */
#duk [class*="border-[rgba(18,18,18,0.32)]"] {
  border-color: rgb(18 18 18 / 0.32);
}

#duk .text-ink-soft {
  color: var(--color-ink-soft);
}

#duk .faq-item {
  /* The shared component defaults to `--color-line`; the design keeps every
   * card on the invisible cream border, open or closed. */
  border-color: var(--color-bg);
  background-color: transparent;
}

#duk .faq-item button {
  color: var(--color-black);
}

#duk .faq-item.is-open {
  background-color: var(--color-bg);
}

#duk .faq-item button:focus-visible {
  border-radius: 8px;
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

#duk .faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms ease;
}

#duk .faq-panel > div {
  min-height: 0;
  overflow: hidden;
}

#duk .faq-item.is-open .faq-panel {
  grid-template-rows: 1fr;
}

#duk .faq-icon--plus {
  display: block;
}

#duk .faq-icon--minus {
  display: none;
}

#duk .faq-item.is-open .faq-icon--plus {
  display: none;
}

#duk .faq-item.is-open .faq-icon--minus {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  #duk .faq-panel {
    transition-duration: 0.01ms;
  }
}
