/* Shared framed FAQ: preserve the reveal interaction across all page templates. */
body[class*="-framed"] .row-about-faq,
body[class*="-framed"] .jvds-growth-faq {
  overflow: visible;
}
body[class*="-framed"] .about-faq-list {
  --faq-gap: 24px;
  --faq-line: #d9d7cf;
  --faq-ink: #282821;
  --faq-brand: #e0f94c;
  position: relative;
  overflow: visible;
}
body[class*="-framed"] .about-faq-list:not(.is-faq-ready) {
  gap: var(--faq-gap);
}
body[class*="-framed"] .about-faq-list .about-faq-row {
  gap: var(--faq-gap);
  margin-bottom: var(--faq-gap);
  overflow: visible;
}
body[class*="-framed"] .about-faq-list .about-faq-row:last-child {
  margin-bottom: 0;
}
body[class*="-framed"] .about-faq-list .about-faq-item {
  box-sizing: border-box;
  position: relative;
  margin: 0;
  padding: 0;
  border: 1px solid var(--faq-line);
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
body[class*="-framed"] .about-faq-list .about-faq-item.is-open {
  /* Two normal columns plus one gap, with two siblings still in the row. */
  flex: 0 0 calc(66.666667% - 8px);
}
body[class*="-framed"] .about-faq-list .about-faq-surface,
body[class*="-framed"] .about-faq-list .about-faq-question {
  border-radius: 0;
  background: transparent;
}
body[class*="-framed"] .about-faq-list .about-faq-item.is-open .about-faq-surface {
  background: var(--faq-brand);
}
body[class*="-framed"] .about-faq-list .about-faq-action {
  border-radius: 0;
  background: #000;
}
/* One set belongs to the complete FAQ grid; expanding a card never adds nodes. */
body[class*="-framed"] .about-faq-list .about-faq-item::after {
  content: none;
  display: none;
}
body[class*="-framed"] .about-faq-list::after {
  content: "";
  display: block;
  position: absolute;
  /* The list has no border; the first/last cards own its perimeter line. */
  inset: -2.5px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  z-index: 10;
  border-radius: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--faq-ink), var(--faq-ink)) left top / 6px 6px no-repeat,
    linear-gradient(var(--faq-ink), var(--faq-ink)) right top / 6px 6px no-repeat,
    linear-gradient(var(--faq-ink), var(--faq-ink)) left bottom / 6px 6px no-repeat,
    linear-gradient(var(--faq-ink), var(--faq-ink)) right bottom / 6px 6px no-repeat;
}
@media (hover: hover) and (pointer: fine) {
  body[class*="-framed"] .about-faq-list .about-faq-item:hover .about-faq-surface {
    background: var(--faq-brand);
  }
}
@media (max-width: 809px) {
  body[class*="-framed"] .about-faq-list .about-faq-item,
  body[class*="-framed"] .about-faq-list .about-faq-item.is-open {
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
  }
  body[class*="-framed"] .about-faq-list:not(.is-faq-ready) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  /* Mobile answers grow the card instead of scrolling inside a fixed tile. */
  body[class*="-framed"] .about-faq-list .about-faq-surface {
    height: auto;
  }
  body[class*="-framed"] .about-faq-list .about-faq-question {
    position: relative;
    inset: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    height: auto;
    padding: 16px;
  }
  body[class*="-framed"] .about-faq-list .about-faq-question-text {
    position: static !important;
    min-width: 0;
    flex: 1 1 auto;
  }
  body[class*="-framed"] .about-faq-list .about-faq-action {
    position: relative !important;
    inset: auto;
    flex: 0 0 33px;
  }
  body[class*="-framed"] .about-faq-list .about-faq-answer {
    position: static;
    display: grid;
    grid-template-rows: 0fr;
    padding: 0 16px;
    overflow: hidden;
    transform: none;
    transition: grid-template-rows .35s ease, opacity .35s ease, visibility 0s linear .35s;
  }
  body[class*="-framed"] .about-faq-list .about-faq-item.is-open .about-faq-answer {
    grid-template-rows: 1fr;
    transition-delay: 0s;
  }
  body[class*="-framed"] .about-faq-list .about-faq-answer-inner {
    min-height: 0;
    overflow: hidden;
  }
  body[class*="-framed"] .about-faq-list .about-faq-answer-inner > :last-child {
    padding-bottom: 16px;
  }
}
