/* FAQ page — the <details> accordion.
 *
 * Native <details>/<summary> rather than JavaScript: it is keyboard accessible, it is searchable
 * with the browser find bar, and it works before any script loads. */

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0 22px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

/* The row answers the pointer before it is clicked: the card lifts a shade and the border firms
   up, the same vocabulary the buttons use for "this does something". */
details:hover {
  border-color: var(--border-strong);
  background: var(--surface-raised);
}

summary {
  cursor: pointer;
  padding: 19px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}
summary::-webkit-details-marker { display: none; }

/* A disclosure needs an affordance. The design relied on the browser's default triangle and then
   removed it, leaving nothing to say the row opens. */
summary::after {
  content: "+";
  float: right;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-dim);
  transition: color 0.15s ease;
}
summary:hover::after { color: var(--brand-light); }
/* Escaped rather than a literal minus: the literal was once mangled in transit into an invisible
   U+0091 plus a bare "2", and every open row was marked "2". An ASCII escape cannot be. */
details[open] summary::after { content: "\2212"; }

details > p {
  margin: 0;
  padding: 0 0 20px;
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--text-muted);
}
