/*-- -------------------------- -->
<---             FAQ             -->
<--- -------------------------- -*/

/* Full-width question rows with an underline divider, chevron toggle
   on native details/summary. Cream background per spec, distinct from
   the sage-green used elsewhere on the page. */
@media only screen and (min-width: 0rem) {
  #faq {
    --faqPad: clamp(1.5rem, 5vw, 4.5rem);
    position: relative;
    padding: var(--sectionPadding);
    padding-left: var(--faqPad);
    padding-right: var(--faqPad);
    background-color: #f7f3e1;
  }
  #faq .cs-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #faq .cs-faq-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 50rem;
  }
  #faq .cs-faq-image {
    display: none;
  }
  #faq .cs-title {
    color: var(--navy);
    margin: 0 0 1.25rem;
  }
  #faq .cs-text {
    max-width: none;
    margin: 0 0 3rem;
  }
  #faq .cs-text a {
    color: var(--secondaryDark);
    font-style: italic;
    text-decoration: underline;
  }
  #faq .cs-faq-group {
    width: 100%;
    display: flex;
    flex-direction: column;
  }
  #faq .cs-faq-item {
    width: 100%;
    border-bottom: 1px solid var(--secondaryLight);
  }
  #faq .cs-faq-item summary {
    width: 100%;
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--headingFont);
    font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
    font-weight: 400;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
  }
  #faq .cs-faq-item summary::-webkit-details-marker {
    display: none;
  }
  #faq .cs-faq-item summary .cs-chevron {
    width: 1rem;
    height: 1rem;
    flex: none;
    color: var(--navy);
    transition: transform 0.3s;
  }
  #faq .cs-faq-item[open] summary .cs-chevron {
    transform: rotate(180deg);
  }
  #faq .cs-faq-body {
    padding: 0 0 1.5rem;
  }
  #faq .cs-faq-body p {
    font-family: var(--bodyFont);
    font-size: 1rem;
    line-height: 1.65em;
    color: var(--bodyTextColor);
    margin: 0;
  }
}

@media only screen and (min-width: 64rem) {
  #faq .cs-faq-image {
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 0;
    transform: translateY(-50%) scaleX(-1);
    width: clamp(18rem, 28vw, 26rem);
    height: clamp(18rem, 28vw, 26rem);
    object-fit: contain;
    opacity: 1;
    pointer-events: none;
  }
}
