/*
 * Ostoja — FAQ widget ("Najczęstsze pytania").
 * Centered head + a max-w-3xl column of white accordion cards. The accordion
 * behaviour (max-height + .is-open) is driven by the shared widgets.js.
 */

/* Section tint — matches the source #faq (bg-sage/30). */
.ost-faq-wrap {
  background: color-mix(in oklab, var(--ost-sage) 30%, transparent);
}

/* Narrower column than the default container. */
.ost-faq {
  max-width: 48rem;
}

.ost-faq__head {
  max-width: none;
  text-align: center;
  margin: 0 auto 3.5rem;
}

/* List of cards. */
.ost-faq__list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* Each item is a white rounded card with a soft ring shadow. */
.ost-faq__item {
  background: var(--ost-card);
  border-radius: 1rem;
  padding-inline: 1.5rem;
  box-shadow: var(--ost-shadow-soft);
}

/* The question button fills the card width. */
.ost-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding-block: 1.25rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ost-foreground);
}

.ost-faq__chevron {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: var(--ost-muted-foreground);
  transition: transform .2s var(--ost-ease);
}

.ost-faq__item.is-open .ost-faq__chevron {
  transform: rotate(180deg);
}

/* Collapsible answer — JS sets inline max-height when open. */
.ost-faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s var(--ost-ease);
}

.ost-faq__a-inner {
  padding-bottom: 1.25rem;
}

.ost-faq__a-inner p {
  margin: 0;
  font-size: .875rem;
  line-height: 1.7;
  color: var(--ost-muted-foreground);
}
