/* Ported from MOCKUP lines 383-430 plus the .xb-fq / .xb-chev rules (lines 41-53) */

.xcw-faq {
  background: var(--xcw-bg);
  border-top: 1px solid var(--xcw-line-soft);
}

.xcw-faq .xcw__inner {
  padding: clamp(56px, 7vw, 92px) var(--xcw-pad-x);
}

.xcw-faq__intro-block {
  max-width: 820px;
  margin: 0 auto clamp(32px, 4vw, 46px);
  text-align: center;
}

.xcw-faq__eyebrow {
  display: block;
  font-family: var(--xcw-heading-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--xcw-blue);
  margin-bottom: 14px;
}

.xcw-faq__heading {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
}

/* ── Accordion shell ─────────────────────────────────────────────────────── */

.xcw-faq__list {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 36px -22px rgba(11, 58, 73, .28), 0 1px 3px rgba(20, 41, 47, .05);
}

.xcw-faq__item { border-top: 1px solid var(--xcw-line-soft); }

.xcw-faq__item:first-of-type { border-top: none; }

.xcw-faq__item > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px clamp(20px, 3vw, 28px);
  font-family: var(--xcw-heading-font);
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--xcw-text);
  transition: background .18s;
}

.xcw-faq__item > summary::-webkit-details-marker { display: none; }

.xcw-faq__item > summary:hover { background: #F5F9FB; }

.xcw-faq__item > summary:focus-visible {
  outline: 2px solid var(--xcw-sky);
  outline-offset: -3px;
}

.xcw-faq__chev {
  flex: none;
  margin-top: 2px;
  transition: transform .28s cubic-bezier(.2, .7, .3, 1);
}

.xcw-faq__item[open] > summary .xcw-faq__chev { transform: rotate(180deg); }

.xcw-faq__item p {
  font-size: 15px;
  line-height: 1.68;
  color: var(--xcw-muted);
  margin: 0;
  padding: 0 clamp(20px, 3vw, 28px) 24px;
  max-width: 62ch;
}

.xcw-faq__item p a {
  color: var(--xcw-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.xcw-faq__item p a:hover { color: var(--xcw-accent); }

/* Animated open/close, matching the mockup's @supports block. */
/* interpolate-size is inherited, so scoping it to the widget root is enough to
   animate block-size:auto here without mutating the whole document. */
@supports (interpolate-size: allow-keywords) {
  .xcw-faq { interpolate-size: allow-keywords; }
  .xcw-faq__item::details-content {
    block-size: 0;
    overflow: hidden;
    content-visibility: hidden;
    transition: block-size .3s cubic-bezier(.2, .7, .3, 1), content-visibility .3s allow-discrete;
  }
  .xcw-faq__item[open]::details-content {
    block-size: auto;
    content-visibility: visible;
  }
}
