.wfaq-wrap {
  --wfaq-accent: #007565;       /* pill active background - set to brand color */
  --wfaq-accent-text: #ffffff;  /* pill active text */
  --wfaq-border: #d9d9d9;
  max-width: fit-content;
  margin: 0 auto;
}

/* ---- Pills ---- */
.wfaq-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin-bottom: 60px;
}
.wfaq-pill {
  border: none;
  background: transparent;
  color: var(--wfaq-accent);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.wfaq-pill:hover { background: rgba(0, 117, 101, 0.08); }
.wfaq-pill[aria-pressed="true"] {
  background: var(--wfaq-accent);
  color: var(--wfaq-accent-text);
}
.wfaq-pill:focus-visible {
  outline: 2px solid var(--wfaq-accent);
  outline-offset: 2px;
}

/* ---- FAQ items ---- */
.wfaq-item {
  border-top: 1px solid var(--wfaq-accent);
}
.wfaq-list {
  border-bottom: 1px solid var(--wfaq-accent);
}
.wfaq-item[hidden] { display: none; }
.wfaq-item summary {
  cursor: pointer;
  padding: 22px 2px;
  font-size: 1.85rem;
  line-height: 1.3;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.wfaq-item summary::-webkit-details-marker { display: none; }
.wfaq-item summary::after {
  content: "+";
  font-size: 1.7rem;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
}
.wfaq-item[open] summary::after { content: "\2212"; }
.wfaq-answer {
  padding: 0 2px 22px;
  line-height: 1.6;
}
.wfaq-answer > :last-child { margin-bottom: 0; }

/* Linked-to via #faq=category&faq_id=... - stays highlighted while open. */
.wfaq-item.wfaq-highlighted {
  background: #e6f4ea;
}

/* Search-results mode (Enter in [faq_search]): "N results for ..." bar. */
.wfaq-results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0, 117, 101, 0.06);
  font-size: 0.95rem;
}
.wfaq-results-text {
  font-weight: 700;
}
.wfaq-results-showall {
  border: 1px solid var(--wfaq-accent);
  background: #fff;
  color: var(--wfaq-accent);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}
.wfaq-results-showall:hover { background: rgba(0, 117, 101, 0.08); }
.wfaq-results-showall:focus-visible {
  outline: 2px solid var(--wfaq-accent);
  outline-offset: 2px;
}
