/* ---------------------------------------------------------------------------
   /faq. A `.doc` page, so the type and the measure are the privacy policy's;
   what this adds is the shape of a list of questions: each one a row that opens
   on its answer, ruled like the app's FAQ rows, with the number a Discord reply
   points at ("see Squad duels 7") in front of it.
   --------------------------------------------------------------------------- */
.faq { --rule: rgba(42, 38, 34, 0.18); }

/* Same box as the bestiary's search: white, a 4px square rule, no rounding. */
.faq .search {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0 24px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 4px solid var(--line);
  padding: 8px 12px 6px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.faq .search::placeholder { color: var(--muted); }
.faq .search[hidden], .faq [hidden] { display: none; }

.faq .contents { list-style: none; padding: 0; margin: 0 0 8px; }
.faq .contents li { margin-bottom: 12px; }
.faq .contents li > a:first-child { font-weight: 700; }

/* A part of the game in the page title's face, a topic in the body's bold: the
   two levels the app draws as the topics list and a topic's page. */
.faq h2 {
  font: 400 40px/1.1 "Jersey 20", "Pixel Operator", Georgia, serif;
  margin: 56px 0 0;
  padding-top: 24px;
  border-top: 4px solid var(--line);
}
.faq h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 32px 0 4px;
}

.faq details { border-bottom: 4px solid var(--rule); }
.faq details:first-of-type { border-top: 4px solid var(--rule); }
.faq summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 10px 32px 10px 0;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
/* The disclosure, drawn as the app's chevron would be: a + that becomes a -. */
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 10px;
}
.faq details[open] summary::after { content: "-"; }
/* The number is the question's link, for pasting into a reply. */
.faq summary .n { color: var(--muted); text-decoration: none; }
.faq summary .n:hover { text-decoration: underline; }
.faq .a { padding: 0 0 8px; }
.faq .a p, .faq .a ul { margin-bottom: 12px; }
.faq .a li { margin-bottom: 4px; }
