/* /faq (Views/Home/Faq.cshtml). The page is English only, so there is no .rtl.css copy. */
.faq-lead {
  margin: 12px auto 0;
  max-width: 620px;
  color: #64748b;
  font-size: 16px;
  line-height: 1.7;
}
.dark .faq-lead { color: #a3b1c6; }

.faq-page {
  --faq-text: #0f172a;
  --faq-muted: #64748b;
  --faq-accent: #4f46e5;
  --faq-border: #e2e8f0;
  --faq-surface: #fff;
  --faq-highlight: #eef2ff;
  padding-block: 40px 88px;
  color: var(--faq-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.dark .faq-page {
  --faq-text: #f1f5f9;
  --faq-muted: #a3b1c6;
  --faq-accent: #a5b4fc;
  --faq-border: #334155;
  --faq-surface: #162238;
  --faq-highlight: #263252;
}
.faq-container {
  width: min(100%, 860px);
  margin-inline: auto;
  padding-inline: 24px;
}

.faq-topics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.faq-topics a {
  padding: 8px 14px;
  border: 1px solid var(--faq-border);
  border-radius: 999px;
  background: var(--faq-surface);
  color: var(--faq-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.faq-topics a:hover { border-color: var(--faq-accent); color: var(--faq-accent); }

.faq-group {
  margin-top: 40px;
  scroll-margin-top: 96px;
}
.faq-group > h2, .faq-support h2 {
  margin: 0 0 16px;
  color: var(--faq-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.015em;
}
.faq-list { display: grid; gap: 12px; }
.faq-item {
  min-width: 0;
  border: 1px solid var(--faq-border);
  border-radius: 12px;
  background: var(--faq-surface);
}
.faq-item[open] { border-color: var(--faq-accent); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-radius: 11px;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 {
  margin: 0;
  color: var(--faq-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.faq-item summary:hover h3 { color: var(--faq-accent); }
.faq-toggle {
  position: relative;
  flex: 0 0 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--faq-highlight);
  color: var(--faq-accent);
}
.faq-toggle::before, .faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-toggle::after { display: none; }
.faq-answer { padding: 0 22px 22px; }
.faq-answer p {
  margin: 0;
  color: var(--faq-muted);
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.faq-answer a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--faq-accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.faq-answer a:hover { text-decoration: underline; }

.faq-support {
  margin-top: 48px;
  padding: 28px;
  border: 1px solid var(--faq-border);
  border-radius: 12px;
  background: var(--faq-highlight);
}
.faq-support h2 { margin-bottom: 8px; }
.faq-support p {
  margin: 0 0 18px;
  color: var(--faq-muted);
  font-size: 15px;
  line-height: 1.7;
}
.faq-support div { display: flex; flex-wrap: wrap; gap: 10px; }
.faq-support a {
  padding: 10px 18px;
  border: 1px solid var(--faq-accent);
  border-radius: 8px;
  color: var(--faq-accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.faq-support a.faq-support-primary { background: #4f46e5; border-color: #4f46e5; color: #fff; }

.faq-page a:focus-visible, .faq-item summary:focus-visible {
  outline: 3px solid var(--faq-accent);
  outline-offset: 3px;
}

@media (max-width: 680px) {
  .faq-page { padding-block: 24px 56px; }
  /* The right gutter clears the fixed theme switcher, as in .home-faq-container. */
  .faq-container { padding-left: 22px; padding-right: 44px; }
  html[dir="rtl"] .faq-container { padding-left: 44px; padding-right: 22px; }
  .faq-item summary { gap: 14px; padding: 16px 18px; }
  .faq-item h3 { font-size: 15px; }
  .faq-answer { padding: 0 18px 20px; }
}
