/* =========================================================
   FMB FAQ COMPONENT
   Shared shell + heading typography come from editorial.css.
   This file owns only the accordion presentation.
========================================================= */

.fmb-faq-section {
  padding: var(--fmb-editorial-section-space) 0;
}

.fmb-faq-section__header {
  max-width: var(--fmb-editorial-heading-max);
}

.fmb-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Optional two-column layout. The shortcode adds this class only when
   columns="2" is requested, so technical/long-form FAQs can stay single-column. */
.fmb-faq-list--columns-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 14px 18px;
}

.fmb-faq-list--columns-2 .fmb-faq-item {
  align-self: start;
}

.fmb-faq-item {
  overflow: hidden;
  border: 1px solid var(--fmb-border);
  border-radius: var(--fmb-radius-md);
  background: #fff;
  transition: border-color var(--fmb-transition), box-shadow var(--fmb-transition);
}

.fmb-faq-item[open] {
  border-color: rgba(168, 130, 58, 0.6);
  box-shadow: var(--fmb-shadow-sm);
}

.fmb-faq-item summary {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 18px;
  min-height: 86px;
  padding: 15px 24px;
  color: var(--fmb-navy);
  cursor: pointer;
  list-style: none;
}

.fmb-faq-item summary::-webkit-details-marker {
  display: none;
}

.fmb-faq-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(168, 130, 58, 0.35);
  border-radius: 50%;
  background: #fff;
  color: var(--fmb-gold-dark);
}

.fmb-faq-item__icon svg {
  display: block !important;
  width: 21px !important;
  height: 21px !important;
  max-width: none !important;
}

.fmb-faq-item__question {
  font-family: var(--fmb-font-body);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.45;
}

.fmb-faq-item__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fmb-gold-dark);
  font-family: var(--fmb-font-body);
  font-size: 23px;
  font-weight: 400;
  transition: transform var(--fmb-transition);
}

.fmb-faq-item[open] .fmb-faq-item__toggle {
  transform: rotate(45deg);
}

.fmb-faq-item__answer {
  padding-left: 92px;
  border-top: 1px solid var(--fmb-border);
  background: var(--fmb-cream);
}

.fmb-faq-item__answer > div {
  padding: 20px 28px 20px 0;
  color: var(--fmb-body);
  font-family: var(--fmb-font-body);
  font-size: 15px;
  line-height: 1.7;
}

.fmb-faq-item__answer p {
  margin-top: 0;
  margin-bottom: 10px;
}

.fmb-faq-item__answer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .fmb-faq-list--columns-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .fmb-faq-item summary {
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    gap: 12px;
    min-height: 76px;
    padding: 12px 16px;
  }

  .fmb-faq-item__icon {
    width: 40px;
    height: 40px;
  }

  .fmb-faq-item__icon svg {
    width: 19px !important;
    height: 19px !important;
  }

  .fmb-faq-item__question {
    font-size: 15px;
  }

  .fmb-faq-item__answer {
    padding-left: 68px;
  }

  .fmb-faq-item__answer > div {
    padding: 18px 18px 18px 0;
  }
}
