/* ==========================================
   FAQs — dark card style
   ========================================== */

/* ---- Index (design system "FAQPage"; FaqList lives in design_system.css) ---- */
.faq.ev-page {
  gap: var(--space-6);
}

.faq-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: 1.5rem;
}

.faq.ev-page .faq-header { margin-bottom: 0; }

.faq-header h1 {
  margin: 0;
  font: 700 30px/1.2 var(--font-sans);
  color: var(--ink);
}

.faq-header p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-muted);
}

.faq-empty {
  margin: 0;
  padding: 2rem;
  text-align: center;
  color: var(--ink-muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
}

.faq-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  padding: var(--space-4) var(--space-6);
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
}

.faq-help div { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink); }
.faq-help span { color: var(--ink-muted); }
.faq-help a { color: var(--ki); }
.faq-help .ev-handle { color: var(--ink); }

.faq-admin-link {
  align-self: flex-start;
  font-size: 13px;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.faq-admin-link:hover { color: var(--ki); }

/* ---- New / Edit form ---- */
.faq-form {
  max-width: 580px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.faq-form .card {
  background: rgba(255, 255, 255, 0.04);
  border: 0.5px solid #3a3a3c;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 12px;
}

.faq-form .field {
  margin-bottom: 14px;
}

.faq-form .field:last-child {
  margin-bottom: 0;
}

.faq-form .field label {
  display: block;
  font-size: 13px;
  color: #888;
  margin-bottom: 5px;
}

.faq-form .field input[type="text"],
.faq-form .field textarea {
  width: 100%;
  padding: 9px 12px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid #545153;
  border-radius: 8px;
  color: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
  box-sizing: border-box;
}

.faq-form .field textarea {
  min-height: 100px;
  resize: vertical;
}

.faq-form .field input:focus,
.faq-form .field textarea:focus {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.faq-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #0d1321;
  background: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: inherit;
}

.faq-form input[type="submit"]:hover {
  opacity: 0.85;
}

.faq-form .submit-row {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 480px) {
  .faq-form {
    padding: 1rem 0.5rem;
  }

  .faq-header h1 {
    font-size: 24px;
  }
}
