/* ============================================================
   FAQ ACCORDION — native <details> + <summary>, no JS
   ============================================================ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  transition: background var(--transition-fast);
}

.faq-item__summary::-webkit-details-marker { display: none; }

.faq-item__summary:hover {
  background: var(--bg-subtle);
}

.faq-item__summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.faq-item__chevron {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: transform 200ms ease;
}

.faq-item[open] .faq-item__chevron {
  transform: rotate(180deg);
  color: var(--text-primary);
}

.faq-item__body {
  padding: 0 var(--space-5) var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 70ch;
}

.faq-item__body p {
  margin: 0;
}

.faq-item__body p + p {
  margin-top: var(--space-2);
}

.faq-item__body strong {
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
}

.faq-item__body a {
  color: var(--color-primary);
  text-decoration: none;
}

.faq-item__body a:hover {
  text-decoration: underline;
}

.faq-item__body code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 1px 5px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
}

/* Quick-link cards above the FAQ */
.help-quicklinks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

@media (max-width: 768px) {
  .help-quicklinks {
    grid-template-columns: 1fr;
  }
}

.help-quicklink {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.help-quicklink:hover {
  border-color: var(--border-strong);
  background: var(--bg-subtle);
}

.help-quicklink__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.help-quicklink__icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.help-quicklink__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  display: block;
}

.help-quicklink__desc {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  display: block;
  margin-top: 2px;
}

/* Search bar */
.help-search {
  position: relative;
}

.help-search__input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) calc(var(--space-4) + 24px + var(--space-2));
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-family: inherit;
  color: var(--text-primary);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.help-search__input:hover {
  border-color: var(--border-strong);
}

.help-search__input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--bg-canvas);
}

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

.help-search__icon {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  stroke-width: 2;
  color: var(--text-tertiary);
  pointer-events: none;
}

/* Section headings between blocks */
.help-section-heading {
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  margin: 0 0 var(--space-3);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.help-section-heading__hint {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  font-weight: var(--weight-regular);
}

/* Footer email line */
.help-footer-line {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  padding: var(--space-5) 0 var(--space-3);
}

.help-footer-line a {
  color: var(--color-primary);
  text-decoration: none;
  font-family: var(--font-mono);
}

.help-footer-line a:hover {
  text-decoration: underline;
}

/* Response time badge near page header */
.help-response-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--color-success-subtle);
  color: var(--color-success-text);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
}

.help-response-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--color-success);
}
