.spudo-faq {
  margin: 32px 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0F172A;
  box-sizing: border-box;
}
.spudo-faq-heading {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  margin: 0 0 20px;
  letter-spacing: -0.015em;
  color: #0F172A;
  text-wrap: balance;
}
.spudo-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.spudo-faq-item {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.spudo-faq-item:hover,
.spudo-faq-item[open] {
  border-color: #16A34A;
}
.spudo-faq-item[open] {
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.08);
}
.spudo-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 600;
  color: #0F172A;
  line-height: 1.4;
  user-select: none;
}
.spudo-faq-question::-webkit-details-marker {
  display: none;
}
.spudo-faq-question::after {
  content: "";
  width: 12px;
  height: 12px;
  border-right: 2px solid #6B7280;
  border-bottom: 2px solid #6B7280;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-right: 4px;
}
.spudo-faq-item[open] .spudo-faq-question::after {
  transform: rotate(-135deg);
}
.spudo-faq-answer {
  padding: 0 20px 20px;
  color: #334155;
  font-size: 15px;
  line-height: 1.6;
}
.spudo-faq-answer p {
  margin: 0 0 12px;
}
.spudo-faq-answer p:last-child {
  margin-bottom: 0;
}
.spudo-faq-answer a {
  color: #15803D;
}
.spudo-faq-answer a:hover {
  color: #14532D;
}

/* --- Editor-only styles --- */
.spudo-faq-editor {
  padding: 12px;
  background: #FAFAF7;
  border: 1px dashed #D1D5DB;
  border-radius: 12px;
}
.spudo-faq-editor .spudo-faq-heading {
  outline: none;
  padding: 4px 8px;
  border-radius: 6px;
}
.spudo-faq-editor .spudo-faq-heading:focus {
  background: #FFFFFF;
}
.spudo-faq-editor-item {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.spudo-faq-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.spudo-faq-editor-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #6B7280;
  font-weight: 600;
}
.spudo-faq-editor-controls {
  display: inline-flex;
  gap: 4px;
}
.spudo-faq-editor-question {
  padding: 8px 10px;
  border-radius: 6px;
  background: #F3F4EE;
  font-weight: 600;
  color: #0F172A;
  min-height: 28px;
  outline: none;
  margin-bottom: 6px;
}
.spudo-faq-editor-answer {
  padding: 8px 10px;
  border-radius: 6px;
  background: #FFFFFF;
  color: #334155;
  min-height: 40px;
  outline: none;
  border: 1px dashed #E5E7EB;
}
.spudo-faq-editor-add {
  margin-top: 8px;
}
