:root {
  --faq-bg: #ffffff;
  --faq-card: #f8fafc;
  --faq-border: #e5e7eb;
  --faq-text: #0f172a;
  --faq-muted: #475569;
  --faq-accent: #fcb040; /* Star Action brand */
}

.faq-widget {
  max-width: 900px;
  margin: 48px auto;
  padding: 0 16px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
  color: var(--faq-text);
}

.faq-heading {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.2;
  margin: 0 0 16px;
}

.faq-sub {
  color: var(--faq-muted);
  margin: 0 0 20px;
  font-size: clamp(.95rem, 1.6vw, 1rem);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--faq-card);
  border: 1px solid var(--faq-border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  font-weight: 600;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .q {
  flex: 1;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--faq-border);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  line-height: 1;
  background: #fff;
  color: #0b1220;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}

.faq-item[open] summary {
  background: #fff;
  border-bottom: 1px solid var(--faq-border);
}

.faq-item[open] summary::after {
  content: "–";
  background: var(--faq-accent);
  color: #fff;
  transform: rotate(180deg);
}

.faq-content {
  padding: 16px 20px 20px;
  color: var(--faq-muted);
  line-height: 1.65;
  overflow: hidden;
  max-height: 0; /* JS will override when open */
  transition: max-height 0.3s ease;
}

.faq-content b,
.faq-content strong {
  color: var(--faq-text);
}

.faq-note {
  margin-top: 8px;
  font-size: .92rem;
  color: var(--faq-muted);
}

.faq-item summary:focus {
  outline: 3px solid rgba(252, 176, 64, .35);
  outline-offset: 2px;
  border-radius: 12px;
}
