/* ============================================================================
   The FAQ page (html/faq/index.html): grouped questions, each a <details>
   accordion that opens its answer underneath.
   ============================================================================ */

/* One readable column, centred — the same width as the Terms and Privacy pages. */
.faq-page {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}
.faq-title {
  margin: 0 0 14px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-title-yellow);
  text-shadow: 3px 3px 0 rgba(0, 0, 0, .5);
}
.faq-lead {
  margin: 0 0 8px;
  text-align: center;
  font-size: 20px;
  color: var(--color-text-dim);
}
.faq-lead a,
.faq-a a { color: var(--color-cyan); }

/* A group heading — GETTING STARTED, MAKING GAMES… */
.faq-group {
  margin: 30px 0 12px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--color-pink-light);
}

/* ---- one question ---- */
.faq-item {
  margin: 0 0 10px;
  background: var(--color-panel);
  border: 3px solid var(--color-line);
  transition: border-color .12s;
}
.faq-item:hover,
.faq-item[open] { border-color: var(--color-line-2); }

/* The question row: the whole bar is the tap target (≥ 44px), with a + that turns into a − when open. */
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 10px 18px;
  font-size: 22px;
  color: var(--color-text);
  list-style: none;
  cursor: pointer;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--color-cyan);
}
.faq-item[open] > .faq-q::after { content: "−"; color: var(--color-pink-light); }
.faq-q:focus-visible { outline: 3px solid var(--color-cyan); outline-offset: -3px; }

/* The answer, under a thin rule. */
.faq-a {
  padding: 4px 18px 14px;
  border-top: 1px solid var(--color-line);
  font-size: 19px;
  line-height: 1.4;
  color: var(--color-text-dim);
}
.faq-a p { margin: 10px 0 0; }

@media (max-width: 560px) {
  .faq-title { font-size: 15px; }
  .faq-q { padding: 10px 14px; font-size: 20px; }
  .faq-a { padding: 2px 14px 12px; font-size: 18px; }
}
