/* Theme. To restyle, set any --fx-* variable on :root (every feature on the site)
   or on .fx-faq (this feature only). The values here are the defaults. */
.fx-faq {
  --_accent: var(--fx-accent, #d4af37);
  --_accent-text: var(--fx-accent-text, #000);
  --_text: var(--fx-text, #f5f5f5);
  --_muted: var(--fx-muted, #b8b8b8);
  --_field: var(--fx-field, #080808);
  --_line: var(--fx-line, rgba(255,255,255,.15));
  --_border: var(--fx-border, rgba(255,255,255,.35));
  --_mark: var(--fx-mark, rgba(212,175,55,.35));
  --_demo: var(--fx-demo, #9ad1ff);
  --_font-display: var(--fx-font-display, inherit);
  --_font-body: var(--fx-font-body, inherit);
  --_space: var(--fx-space, 16px);
  --_space-sm: calc(var(--_space) * .5);
  --_space-lg: calc(var(--_space) * 1.5);
  --_radius: var(--fx-radius, 6px);
  --_radius-sm: calc(var(--_radius) * .6);
  font-family: var(--_font-body);
}
/* FAQ search */
.fx-faq { color: var(--_text); }
.fx-faq-title { margin: 0 0 .35em; font-family: var(--_font-display); font-size: clamp(2.3rem, 9vw, 3.9rem); font-weight: var(--fx-heading-weight, 800); line-height: .92; text-transform: var(--fx-heading-case, uppercase); }
.fx-faq-label { display: block; margin: 0 0 4px; font-size: .86rem; font-weight: 600; }
.fx-faq-box { position: relative; }
.fx-faq-box input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 10px 84px 10px 42px;
  background: var(--_field) no-repeat 14px 50% / 18px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b8b8b8' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E");
  color: var(--_text);
  border: 1px solid var(--_border);
  border-radius: var(--_radius-sm);
  font: inherit;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}
.fx-faq-box input::-webkit-search-cancel-button { display: none; }
.fx-faq-clear {
  position: absolute;
  top: 3px;
  right: 40px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  color: var(--_text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.fx-faq-key {
  position: absolute;
  top: 50%;
  right: 12px;
  min-width: 22px;
  padding: 1px 6px;
  border: 1px solid var(--_border);
  border-radius: var(--_radius-sm);
  color: var(--_muted);
  font: .8rem/1.4 ui-monospace, monospace;
  text-align: center;
  transform: translateY(-50%);
  pointer-events: none;
}
@media (pointer: coarse) { .fx-faq-key { display: none; } .fx-faq-clear { right: 4px; } .fx-faq-box input { padding-right: 52px; } }
.fx-faq-chips { display: flex; flex-wrap: wrap; gap: var(--_space-sm); margin-top: 12px; }
.fx-faq-chip {
  min-height: 40px;
  padding: 0 14px;
  background: none;
  color: var(--_text);
  border: 1px solid var(--_border);
  border-radius: 999px;
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
}
.fx-faq-chip:hover { border-color: var(--_accent); }
.fx-faq-chip[aria-pressed="true"] { background: var(--_accent); border-color: var(--_accent); color: var(--_accent-text); font-weight: 600; }
.fx-faq-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.fx-faq-count { margin: 0; color: var(--_muted); font-size: .86rem; }
.fx-faq-toggle, .fx-faq-copy {
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--_accent);
  font: inherit;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.fx-faq-toggle[hidden] { display: none; }
.fx-faq-item { border-bottom: 1px solid var(--_line); scroll-margin-top: var(--fx-header-offset, 90px); }
.fx-faq-item[hidden] { display: none; }
.fx-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 10px 0;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.fx-faq-item summary::-webkit-details-marker { display: none; }
.fx-faq-item summary::after { content: "+"; flex: none; color: var(--_accent); font-size: 1.5rem; line-height: 1; }
.fx-faq-item[open] summary::after { content: "\2212"; }
.fx-faq-item summary:hover .fx-faq-q { color: var(--_accent); }
.fx-faq-a { padding-bottom: var(--_space-sm); }
.fx-faq-a p { margin: 0; color: var(--_muted); }
.fx-faq-copy { min-height: 40px; font-size: .8rem; }
.fx-faq mark { padding: 0 1px; background: var(--_mark); color: inherit; border-radius: 2px; }
.fx-faq-empty { margin-top: var(--_space-sm); padding: var(--_space); border: 1px dashed var(--_border); border-radius: var(--_radius); }
.fx-faq-empty[hidden] { display: none; }
.fx-faq-empty p { margin: 0 0 6px; }
.fx-faq-empty-link { color: var(--_accent); font-weight: 700; }
.fx-faq .fx-ph { padding: .1em .35em; background: #ff2d95; color: #000; border-radius: var(--_radius-sm); font-size: .82rem; font-weight: 600; }
.fx-faq :focus-visible { outline: 3px solid var(--_accent); outline-offset: 2px; }
.fx-faq .fx-demo {
  display: inline-block;
  margin: 0 0 12px;
  padding: 4px 10px;
  border: 1px dashed var(--_demo);
  border-radius: var(--_radius-sm);
  color: var(--_demo);
  font-family: var(--_font-body);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
}
