/* =========================================================
   Star Stacked FAQ — matches Split FAQ styling
   - Avenir uppercase questions
   - Divider lines
   - Hover/active background
   - Plus -> close icon
   ========================================================= */

.star-stacked-faq{
  --sf-q-col: rgba(0,0,0,.82);
  --sf-a-col: rgba(0,0,0,.55);
  --sf-line: rgba(0,0,0,.15);
  --sf-hover-bg: rgba(0,0,0,.04);
  --sf-active-bg: rgba(0,0,0,.06);

  --sf-duration: 320ms;
  --sf-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --sf-title-ff: Calibri, sans-serif;
  --sf-title-ls: 0em;
  font-family: Calibri, sans-serif;

  /* spacing */
  --sf-pad-x: 14px;
  --sf-pad-y: 22px;
}

/* List wrapper */
.star-stacked-faq .star-stacked-faq__list{
  border-top: 1px solid var(--sf-line);
}

/* Item */
.star-stacked-faq .star-stacked-faq__item{
  border-bottom: 1px solid var(--sf-line);
}

/* Question button */
.star-stacked-faq .star-stacked-faq__q{
  all: unset;
  box-sizing: border-box;
  width: 100%;
  cursor: pointer;

  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 18px;

  padding: var(--sf-pad-y) var(--sf-pad-x);

  background: transparent;
  color: var(--sf-q-col);

  transition:
    background var(--sf-duration) var(--sf-ease),
    color var(--sf-duration) var(--sf-ease);
}

.star-stacked-faq .star-stacked-faq__q:hover{
  background: var(--sf-hover-bg);
}

.star-stacked-faq .star-stacked-faq__item.is-open > .star-stacked-faq__q{
  background: var(--sf-active-bg);
}

/* Question text */
.star-stacked-faq .star-stacked-faq__q-text{
  font-family: var(--sf-title-ff);
  text-transform: uppercase;
  letter-spacing: var(--sf-title-ls);
  font-weight: 400;
  line-height: 1.2;
  font-size: 14px;
}

.star-stacked-faq .star-stacked-faq__item.is-open .star-stacked-faq__q-text{
  font-weight: 600;
}

/* Plus / close icon */
.star-stacked-faq .star-stacked-faq__q::after{
  content: "";
  width: 14px;
  height: 14px;

  background:
    linear-gradient(currentColor, currentColor) center/100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) center/1px 100% no-repeat;

  opacity: .75;
  transition: opacity var(--sf-duration) linear, transform var(--sf-duration) var(--sf-ease);
}

.star-stacked-faq .star-stacked-faq__item.is-open > .star-stacked-faq__q::after{
  opacity: 1;
  transform: rotate(45deg);
}

/* Answer wrapper (JS toggles height for smooth open/close) */
.star-stacked-faq .star-stacked-faq__a{
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--sf-duration) var(--sf-ease);
}

/* Inner content */
.star-stacked-faq .star-stacked-faq__a-inner{
  padding: 0 var(--sf-pad-x) 18px var(--sf-pad-x);
  color: var(--sf-a-col);
  font-family: var(--star-font-body);
}

/* Accessibility */
.star-stacked-faq .star-stacked-faq__q:focus-visible{
  outline: 2px solid rgba(0,0,0,.35);
  outline-offset: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .star-stacked-faq .star-stacked-faq__a{
    transition: none !important;
  }
  .star-stacked-faq .star-stacked-faq__q{
    transition: none !important;
  }
}
