/* FAQ page — separate file so updates are not blocked by cached styles.css */

.faq-section {
  padding-top: 48px;
  padding-bottom: 80px;
}

.faq-toolbar {
  max-width: 420px;
  margin: 0 auto 36px;
}

.faq-search__input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 18px 0 44px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2386868b'%3E%3Cpath fill-rule='evenodd' d='M9 3.5a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11ZM2 9a7 7 0 1 1 12.452 4.391l3.328 3.329a.75.75 0 1 1-1.06 1.06l-3.329-3.328A7 7 0 0 1 2 9Z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
  background-size: 18px 18px;
  box-shadow: var(--shadow-sm);
  font: inherit;
  font-size: 15px;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

[data-theme="dark"] .faq-search__input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236e6e73'%3E%3Cpath fill-rule='evenodd' d='M9 3.5a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11ZM2 9a7 7 0 1 1 12.452 4.391l3.328 3.329a.75.75 0 1 1-1.06 1.06l-3.329-3.328A7 7 0 0 1 2 9Z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

.faq-search__input::placeholder {
  color: var(--color-text-tertiary);
}

.faq-search__input:focus {
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

[data-theme="dark"] .faq-search__input:focus {
  border-color: rgba(41, 151, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(41, 151, 255, 0.16);
}

.faq-search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border-radius: var(--radius-xl);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item[hidden] {
  display: none;
}

.faq-item > summary {
  display: block;
  list-style: none;
  cursor: pointer;
  padding: 22px 56px 22px 24px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
  position: relative;
  user-select: none;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::marker {
  content: "";
}

.faq-item > summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1;
}

.faq-item[open] > summary::after {
  content: "×";
  font-size: 24px;
  color: var(--color-text);
}

.faq-item__answer {
  padding: 18px 24px 22px;
  color: var(--color-text-secondary);
  font-size: 15px;
  line-height: 1.6;
  border-top: 1px solid var(--color-border);
}

.faq-item__answer p {
  margin: 0 0 12px;
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}

.faq-empty {
  text-align: center;
  margin-top: 24px;
  color: var(--color-text-secondary);
  font-size: 16px;
}

.faq-ask-panel {
  max-width: 720px;
  margin: 0 auto;
}
