/* ============================================================
   FAQ accordion — VERSION 1 (4 Nov 2026)
   Class prefix: goji-faq
   Module sets no background: set the section background in the editor.
   ============================================================ */

.goji-faq {
  --gfaq-text: #0a0a23;
  --gfaq-muted: #6b6b76;
  --gfaq-accent: #d02030;
  --gfaq-line: #e3e6eb;
  --gfaq-card: #ffffff;
  --gfaq-radius: 16px;
  width: 100%;
  box-sizing: border-box;
}

.goji-faq *,
.goji-faq *::before,
.goji-faq *::after { box-sizing: border-box; }

/* ---- Width ---- */
.goji-faq__inner { margin: 0 auto; padding: 0 24px; }
.goji-faq--contained .goji-faq__inner { max-width: 1248px; } /* 1200 + gutters */
.goji-faq--wide .goji-faq__inner { max-width: 1488px; }      /* 1440 + gutters */
.goji-faq--full .goji-faq__inner { max-width: none; }

/* ---- Spacing ---- */
.goji-faq--pt-none   { padding-top: 0; }
.goji-faq--pt-small  { padding-top: 40px; }
.goji-faq--pt-medium { padding-top: 64px; }
.goji-faq--pt-large  { padding-top: 96px; }
.goji-faq--pb-none   { padding-bottom: 0; }
.goji-faq--pb-small  { padding-bottom: 40px; }
.goji-faq--pb-medium { padding-bottom: 64px; }
.goji-faq--pb-large  { padding-bottom: 96px; }

/* ---- Optional header ---- */
.goji-faq__header { margin-bottom: 32px; }
.goji-faq__eyebrow {
  margin: 0 0 12px !important;
  color: var(--gfaq-accent) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.goji-faq__heading {
  margin: 0 !important;
  color: var(--gfaq-text) !important;
  font-family: "GTSuper", Georgia, serif !important;
  font-weight: 400 !important;
  font-size: 44px !important;
  line-height: 1.15 !important;
}

/* ---- List + cards ---- */
.goji-faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.goji-faq__item {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--gfaq-card) !important;
  border: 1px solid var(--gfaq-line) !important;
  border-radius: var(--gfaq-radius) !important;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.goji-faq__item:hover { border-color: #d3d7de !important; }
.goji-faq__item[open] { box-shadow: 0 6px 24px rgba(10, 10, 35, 0.05); }

/* ---- Question row ---- */
.goji-faq__question {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 !important;
  padding: 26px 36px !important;
  list-style: none !important;
  cursor: pointer;
  color: var(--gfaq-text) !important;
  background: transparent !important;
  border: 0 !important;
  outline: none;
}
.goji-faq__question::-webkit-details-marker { display: none; }
.goji-faq__question::marker { content: ""; }
.goji-faq__question::before,
.goji-faq__question::after { content: none !important; }

.goji-faq__question:focus-visible {
  box-shadow: inset 0 0 0 2px var(--gfaq-accent);
  border-radius: var(--gfaq-radius);
}

.goji-faq__question-text {
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: var(--gfaq-text) !important;
}

.goji-faq__chevron {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--gfaq-accent);
  transition: transform 0.25s ease;
}
.goji-faq__item[open] .goji-faq__chevron { transform: rotate(180deg); }

/* ---- Answer ---- */
.goji-faq__answer {
  padding: 0 36px 30px !important;
  max-width: 1000px;
  color: var(--gfaq-muted) !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
}
.goji-faq__answer p,
.goji-faq__answer li {
  color: var(--gfaq-muted) !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
}
.goji-faq__answer > *:first-child { margin-top: 0 !important; }
.goji-faq__answer > *:last-child { margin-bottom: 0 !important; }
.goji-faq__answer p { margin: 0 0 14px !important; }
.goji-faq__answer a {
  color: var(--gfaq-accent) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.goji-faq__answer a:hover { color: #ff5456 !important; }

/* ---- Smooth open/close (newer Chrome/Edge only; others open instantly) ---- */
@supports (interpolate-size: allow-keywords) {
  .goji-faq { interpolate-size: allow-keywords; }
  .goji-faq__item::details-content {
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease, content-visibility 0.3s allow-discrete;
  }
  .goji-faq__item[open]::details-content { height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .goji-faq__chevron,
  .goji-faq__item,
  .goji-faq__item::details-content { transition: none !important; }
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .goji-faq__heading { font-size: 36px !important; }
  .goji-faq--pt-medium { padding-top: 48px; }
  .goji-faq--pt-large  { padding-top: 72px; }
  .goji-faq--pb-medium { padding-bottom: 48px; }
  .goji-faq--pb-large  { padding-bottom: 72px; }
}

@media (max-width: 575px) {
  .goji-faq__inner { padding: 0 16px; }
  .goji-faq__heading { font-size: 30px !important; }
  .goji-faq__question { padding: 20px 20px !important; gap: 16px; }
  .goji-faq__question-text { font-size: 17px !important; }
  .goji-faq__answer { padding: 0 20px 22px !important; }
  .goji-faq__answer,
  .goji-faq__answer p,
  .goji-faq__answer li { font-size: 16px !important; }
  .goji-faq--pt-small  { padding-top: 32px; }
  .goji-faq--pt-medium { padding-top: 40px; }
  .goji-faq--pt-large  { padding-top: 56px; }
  .goji-faq--pb-small  { padding-bottom: 32px; }
  .goji-faq--pb-medium { padding-bottom: 40px; }
  .goji-faq--pb-large  { padding-bottom: 56px; }
}