/* FAQ page (/faq.html). Uses the main site's colors so dark mode just works. Class names all start with faq-. */

/* Page column */
.faqwrap {
  padding-top: 18px;
  padding-bottom: 60px;
}

/* Heading and intro line */
.faq-head h1 {
  margin: 4px 0 6px;
}
.faq-head p {
  margin: 0 0 12px;
  color: var(--muted);
}
.faq-head p b {
  color: var(--ink);
}

/* Sticky search box (.faq-sr = its label, for screen readers only) */
.faq-search {
  display: block;
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--bg);
  padding: 6px 0;
}
.faq-search input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 1.1rem;
  padding: 13px 14px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}
.faq-search input:focus {
  outline: 3px solid #F59E0B;
  outline-offset: 1px;
  border-color: transparent;
}
.faq-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Answer count and the section links */
.faq-count {
  font-size: .9rem;
  margin: 6px 0 10px!important;
}
.faq-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.faq-toc a {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: .03em;
  font-size: .95rem;
  text-decoration: none;
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--panel);
}
.faq-toc a:hover {
  border-color: #F59E0B;
}

/* Sections and question boxes (open / close with + and –) */
.faq-sec {
  margin-top: 22px;
  scroll-margin-top: 70px;
}
.faq-sec h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--muted);
}
.faq-q {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 6px;
  scroll-margin-top: 70px;
}
.faq-q summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 40px 12px 14px;
  font-weight: 700;
  font-size: 1.02rem;
  position: relative;
}
.faq-q summary::-webkit-details-marker {
  display: none;
}
.faq-q summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 9px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--muted);
}
.faq-q[open] summary::after {
  content: "–";
}
.faq-q summary:focus-visible {
  outline: 3px solid #F59E0B;
  outline-offset: -3px;
  border-radius: 8px;
}

/* Answers */
.faq-a {
  padding: 0 14px 12px;
  line-height: 1.5;
}
.faq-a p {
  margin: 0 0 8px;
}
.faq-a ul,.faq-a ol {
  margin: 0 0 8px;
  padding-left: 22px;
}
.faq-a li {
  margin-bottom: 4px;
}
.faq-a a {
  color: inherit;
}

/* Highlighted search words, the no-match box, and the section tag in Best matches */
.faq-page mark {
  background: #FDE68A;
  color: #111;
  border-radius: 2px;
  padding: 0 1px;
}
.faq-empty {
  padding: 30px 14px;
  text-align: center;
  color: var(--muted);
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.faq-in {
  display: block;
  font-weight: 600;
  font-size: .78rem;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: .02em;
}
