:root {
  --menv-accent: #00b894;
  --menv-bg: #ffffff;
  --menv-surface: #f7f9fa;
  --menv-text: #1a202c;
  --menv-text-muted: #8895a7;
  --menv-border: #e5e9ee;
}

:root[data-menv-theme="dark"] {
  --menv-bg: #1a1f2b;
  --menv-surface: #232a38;
  --menv-text: #f1f5f9;
  --menv-text-muted: #9ca3af;
  --menv-border: #333c4d;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: transparent;
}

.menv-faq {
  max-width: 640px;
  margin: 0 auto;
  padding: 8px;
  color: var(--menv-text);
}

.menv-faq-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--menv-text);
  margin-bottom: 14px;
}

.menv-faq-loading,
.menv-faq-empty {
  text-align: center;
  padding: 24px 12px;
  color: var(--menv-text-muted);
  font-size: 0.9rem;
}

.menv-faq-error {
  text-align: center;
  padding: 24px 12px;
  color: #dc2626;
  font-size: 0.9rem;
}

.menv-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menv-faq-item {
  background: var(--menv-bg);
  border: 1px solid var(--menv-border);
  border-radius: 12px;
  overflow: hidden;
}

.menv-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  text-align: left;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--menv-text);
  cursor: pointer;
  font-family: inherit;
}
.menv-faq-question:hover { background: var(--menv-surface); }

.menv-faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--menv-accent);
  transition: transform 0.25s ease;
  font-size: 1.1rem;
  line-height: 1;
}
.menv-faq-item.is-open .menv-faq-icon { transform: rotate(45deg); }

.menv-faq-answer-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.menv-faq-answer {
  padding: 0 16px 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--menv-text-muted);
  white-space: pre-wrap;
}

/* A long word with no spaces breaks instead of spilling out of its box */
.menv-faq-title,
.menv-faq-question span,
.menv-faq-answer { overflow-wrap: anywhere; }
