/* ---------- page ---------- */
.fq-page {
  scrollbar-gutter: stable;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 32px 20px 64px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}
.fq-hero, .fq-list, .fq-contact, .fq-noresults { width: 100%; box-sizing: border-box; }
.fq-item, .fq-answer { min-width: 0; overflow-wrap: anywhere; }

/* ---------- hero ---------- */
.fq-hero { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.fq-eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-5);
}
.fq-eyebrow span { color: var(--accent); }
.fq-title {
  margin: 0;
  font-size: 38px; font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
.fq-lede {
  margin: 0; max-width: 560px;
  font-size: 13.5px; line-height: 1.7;
  color: var(--text-4);
}
.fq-lede a, .fq-answer a { color: var(--accent); }
.fq-lede a:hover, .fq-answer a:hover { text-decoration: underline; }

/* ---------- search ---------- */
.fq-searchwrap {
  position: relative;
  width: 100%; max-width: 480px;
  margin-top: 6px;
}
.fq-searchwrap > i {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-5); font-size: 13px;
  pointer-events: none;
}
.fq-search {
  width: 100%; box-sizing: border-box;
  background: var(--bg-sunken);
  border: 1px solid var(--line-input);
  border-radius: 999px;
  padding: 11px 38px 11px 38px;
  font-size: 13px; font-family: inherit;
  color: var(--text);
}
.fq-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-22); }
.fq-search::-webkit-search-cancel-button { display: none; }
.fq-search-clear {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%);
  appearance: none; background: none; border: none;
  color: var(--text-5); cursor: pointer;
  padding: 4px 6px; font-size: 13px;
}
.fq-search-clear:hover { color: var(--text); }

/* ---------- category chips ---------- */
.fq-filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
.fq-chip {
  appearance: none;
  background: var(--bg-sunken);
  border: 1px solid var(--line-input);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px; font-weight: 600;
  font-family: inherit;
  color: var(--text-4);
  cursor: pointer;
}
.fq-chip:hover { color: var(--text-2); border-color: var(--line); }
.fq-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- list ---------- */
.fq-list { display: flex; flex-direction: column; gap: 10px; }
.fq-section {
  margin: 22px 0 2px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-5);
}
.fq-section:first-child { margin-top: 0; }

.fq-item {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.fq-item[open] { border-color: var(--line-input); }
.fq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  font-size: 13.5px; font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.fq-item summary::-webkit-details-marker { display: none; }
.fq-item summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 11px;
  color: var(--text-5);
  flex-shrink: 0;
  transition: transform 0.18s ease, color 0.18s ease;
}
.fq-item[open] summary { color: var(--text); }
.fq-item[open] summary::after { transform: rotate(180deg); color: var(--accent); }
.fq-item summary { border-radius: 10px; }
.fq-item[open] summary { border-radius: 10px 10px 0 0; }
.fq-item summary:hover { background: var(--bg-sunken); color: var(--text); }

.fq-sleeve {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.fq-item[open] .fq-sleeve { max-height: 680px; }
.fq-item.is-closing .fq-sleeve { max-height: 0; }

.fq-answer {
  padding: 0 18px 17px;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.22s ease 0.05s, transform 0.22s ease 0.05s;
}
.fq-item[open] .fq-answer { opacity: 1; transform: translateY(0); }
.fq-item.is-closing .fq-answer { opacity: 0; transform: translateY(-3px); transition-delay: 0s; }
.fq-answer p {
  margin: 0 0 11px;
  font-size: 13px; line-height: 1.75;
  color: var(--text-3);
}
.fq-answer p:last-child { margin-bottom: 0; }
.fq-answer strong { color: var(--text-2); font-weight: 600; }
.fq-answer ul, .fq-answer ol {
  margin: 0 0 11px;
  padding-left: 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.fq-answer li { font-size: 13px; line-height: 1.6; color: var(--text-3); }
.fq-answer li::marker { color: var(--accent); }
.fq-answer code {
  background: var(--bg-sunken) !important;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 1px 6px !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px !important;
  color: var(--text-2) !important;
}

.fq-answer kbd {
  display: inline-block;
  padding: 0 5px;
  border: 1px solid var(--line-input);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--bg-sunken);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-2);
}

.fq-hit { background: var(--accent-22); color: var(--text); border-radius: 3px; padding: 0 2px; }

.fq-noresults {
  text-align: center;
  font-size: 13px;
  color: var(--text-4);
  padding: 26px 0;
  margin: 0;
}
.fq-noresults a { color: var(--accent); }

/* ---------- contact ---------- */
.fq-contact {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 8px;
}
.fq-contact strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 4px; }
.fq-contact p { margin: 0; font-size: 12.5px; color: var(--text-4); line-height: 1.6; }
.fq-contact-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.fq-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-sunken);
  border: 1px solid var(--line-input);
  border-radius: 8px;
  padding: 10px 17px;
  font-size: 12.5px; font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
}
.fq-btn:hover { border-color: var(--accent); color: var(--text); }
.fq-btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.fq-btn-primary:hover { filter: brightness(1.08); color: #fff; }

@media (max-width: 700px) {
  .fq-title { font-size: 27px; }
  .fq-contact { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .fq-sleeve, .fq-answer, .fq-item summary::after { transition: none; }
  .fq-answer { opacity: 1; transform: none; }
}

.fq-item.is-closing summary::after { transform: rotate(0deg); color: var(--text-5); }
