/* Patch with Jo: FAQ section (sits below the carousel; everything is namespaced .faq*) */
.faq {
  /* UI chrome uses FAQ band colour (Ignite), not the live carousel accent */
  --faq-accent: color-mix(in srgb, var(--sec-tint, #e9a10a) 45%, var(--ink));
  --faq-chip-bg: color-mix(in srgb, var(--sec-tint, #e9a10a) 12%, rgba(255, 255, 255, .82));
  --faq-chip-border: color-mix(in srgb, var(--sec-tint, #e9a10a) 26%, rgba(29, 27, 34, .1));
  --faq-chip-hover: color-mix(in srgb, var(--sec-tint, #e9a10a) 20%, #fff);
  --faq-line: rgba(29, 27, 34, .09);
  --faq-card: rgba(255, 255, 255, .72);
  --faq-ease: cubic-bezier(.22, .8, .24, 1);
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px) clamp(16px, 4vw, 24px) 72px;
  font-family: var(--font);
  color: var(--ink);
}
.faq__head { text-align: center; margin-bottom: 22px; }
.faq__title {
  margin: 0; font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -.01em;
}
.faq__lede { margin: 8px 0 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }

/* ---------- Search ---------- */
.faq__search { position: relative; }
.faq__search-icon {
  position: absolute; left: 18px; top: 50%; width: 19px; height: 19px; margin-top: -9.5px;
  fill: none; stroke: var(--ink-soft); stroke-width: 2.2; stroke-linecap: round; pointer-events: none;
}
.faq__input {
  width: 100%; height: 54px; padding: 0 50px 0 48px;
  border: 1px solid var(--faq-line); border-radius: 99px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 6px 20px rgba(30, 20, 40, .06), 0 1px 2px rgba(30, 20, 40, .05);
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
  -webkit-appearance: none; appearance: none;
}
.faq__input::placeholder { color: #8a8793; }
.faq__input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.faq__input:hover { background: #fff; }
.faq__input:focus {
  outline: none; background: #fff;
  border-color: color-mix(in srgb, var(--faq-accent) 55%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--faq-accent) 14%, transparent), 0 6px 20px rgba(30, 20, 40, .06);
}
.faq__clear {
  position: absolute; right: 9px; top: 50%; width: 36px; height: 36px; margin-top: -18px;
  display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 50%; background: rgba(29, 27, 34, .06); color: var(--ink-soft);
  cursor: pointer; transition: background .2s;
}
.faq__clear:hover { background: rgba(29, 27, 34, .12); color: var(--ink); }
.faq__clear:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.faq__clear[hidden] { display: none; }
.faq__clear svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* ---------- Chips ---------- */
.faq__chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin: 16px 0 0; padding: 0; list-style: none;
}
.faq__chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 6px 15px; white-space: nowrap;
  border: 1px solid var(--faq-chip-border); border-radius: 99px;
  background: var(--faq-chip-bg);
  font: inherit; font-size: .9rem; font-weight: 500; color: var(--ink);
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, opacity .2s;
}
.faq__chip:hover { background: var(--faq-chip-hover); border-color: color-mix(in srgb, var(--sec-tint, #e9a10a) 38%, rgba(29, 27, 34, .16)); }
.faq__chip:focus-visible { outline: 2px solid var(--faq-accent); outline-offset: 2px; }
.faq__chip[aria-pressed="true"] {
  background: var(--faq-accent);
  border-color: var(--faq-accent);
  color: #fff;
}
.faq__chip:disabled { opacity: .4; cursor: default; background: transparent; }
.faq__chip-n {
  font-size: .76rem; font-variant-numeric: tabular-nums; color: var(--ink-soft);
}
.faq__chip[aria-pressed="true"] .faq__chip-n { color: rgba(255, 255, 255, .7); }

.faq__status {
  margin: 18px 4px 10px; min-height: 1.3em;
  font-size: .82rem; letter-spacing: .04em; color: var(--ink-soft); text-align: center;
}

/* ---------- List ---------- */
.faq__group + .faq__group { margin-top: 26px; }
.faq__group-title {
  margin: 0 0 10px 6px;
  font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft);
}
.faq__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }

.faq__item {
  border: 1px solid var(--faq-line); border-radius: 18px;
  background: var(--faq-card);
  box-shadow: 0 1px 2px rgba(30, 20, 40, .04);
  transition: background-color .3s, box-shadow .3s, border-color .3s;
}
.faq__item:hover { background: rgba(255, 255, 255, .88); }
.faq__item.is-open {
  background: #fff;
  border-color: rgba(29, 27, 34, .06);
  box-shadow: 0 10px 30px rgba(30, 20, 40, .08), 0 1px 2px rgba(30, 20, 40, .05);
}
.faq__q { margin: 0; font-size: inherit; font-weight: inherit; }
.faq__btn {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 17px 18px 17px 22px; border: 0; background: none; border-radius: 18px;
  font: inherit; font-size: 1.04rem; font-weight: 500; line-height: 1.4; color: var(--ink);
  text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.faq__btn-text { flex: 1; min-width: 0; }
.faq__snippet {
  display: block; margin-top: 4px;
  font-size: .88rem; font-weight: 400; line-height: 1.5; color: var(--ink-soft);
}
.faq__icon {
  position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(29, 27, 34, .05);
  transition: background-color .3s, transform .4s var(--faq-ease);
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px;
  background: var(--ink); transition: transform .4s var(--faq-ease), background-color .3s;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon {
  background: var(--faq-accent);
  transform: rotate(180deg);
  transition: background-color .9s var(--ease), transform .4s var(--faq-ease);
}
.faq__item.is-open .faq__icon::before, .faq__item.is-open .faq__icon::after { background: #fff; }
.faq__item.is-open .faq__icon::after { transform: rotate(0deg); }

/* smooth height: animate the grid row from 0fr to 1fr */
.faq__panel {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--faq-ease), visibility 0s linear .4s;
  visibility: hidden;
}
.faq__item.is-open .faq__panel {
  grid-template-rows: 1fr; visibility: visible;
  transition: grid-template-rows .4s var(--faq-ease), visibility 0s;
}
.faq__panel-inner { overflow: hidden; min-height: 0; }
.faq__answer {
  padding: 0 64px 20px 22px;
  font-size: 1rem; line-height: 1.7; color: var(--ink-soft);
}
.faq__answer p { margin: 0; }
.faq__answer p + p { margin-top: .8em; }
.faq__answer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.faq__answer li {
  position: relative; padding-left: 16px;
}
.faq__answer li::before {
  content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 6px; border-radius: 50%;
  background: color-mix(in srgb, var(--faq-accent) 60%, transparent);
}
.faq__answer strong { font-weight: 600; color: var(--ink); }
.faq__answer a {
  color: var(--ink); font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--faq-accent) 50%, transparent);
}
.faq__answer a:hover { text-decoration-color: currentColor; }
.faq__answer a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 3px; }

.faq mark {
  background: color-mix(in srgb, var(--sec-tint, #e9a10a) 28%, #fff6c4);
  color: var(--ink); border-radius: 4px; padding: 0 2px; margin: 0 -2px;
}

/* ---------- Empty state / more / source ---------- */
.faq__empty {
  padding: 34px 24px; border: 1px dashed rgba(29, 27, 34, .16); border-radius: 18px;
  background: rgba(255, 255, 255, .45); text-align: center; color: var(--ink-soft); line-height: 1.6;
}
.faq__empty strong { display: block; margin-bottom: 4px; font-size: 1.06rem; font-weight: 600; color: var(--ink); }
.faq__empty p { margin: 0; }
.faq__empty[hidden], .faq__more[hidden] { display: none; }

.faq__more {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 20px auto 0; padding: 11px 22px; border-radius: 99px;
  border: 1px solid rgba(29, 27, 34, .16); background: rgba(255, 255, 255, .6);
  font: inherit; font-size: .95rem; font-weight: 500; color: var(--ink);
  cursor: pointer; transition: background .25s, border-color .25s;
}
.faq__more:hover { background: #fff; border-color: rgba(29, 27, 34, .3); }
.faq__more:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.faq__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.faq__source { margin: 34px 0 0; text-align: center; font-size: .8rem; color: var(--ink-soft); }
.faq__source a { color: inherit; text-underline-offset: 3px; text-decoration-color: rgba(29, 27, 34, .3); }
.faq__source a:hover { color: var(--ink); text-decoration-color: currentColor; }
.faq__source a:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 3px; }

.faq__sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Small screens ---------- */
@media (max-width: 700px) {
  .faq__input { height: 50px; }
  .faq__chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto;
    margin-left: -16px; margin-right: -16px; padding: 2px 16px 4px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 24px), transparent 100%); }
  .faq__chips::-webkit-scrollbar { display: none; }
  .faq__chip { flex: none; }
  .faq__btn { padding: 15px 14px 15px 18px; font-size: 1rem; }
  .faq__answer { padding: 0 18px 18px; font-size: .97rem; }
}

@media (prefers-reduced-motion: reduce) {
  .faq__panel, .faq__item.is-open .faq__panel, .faq__icon, .faq__icon::before, .faq__icon::after,
  .faq__item, .faq__input, .faq__chip { transition: none !important; }
}

/* ---------- Section band: fixed Ignite tint (see --sec-tint on .faq in sections.css) ---------- */
/* Full-width band without widening the page: a huge box-shadow, clipped to the section's own height. */
.faq {
  --sec-tint: #e9a10a; /* Ignite — kept here too so faq.css stands alone */
  --sec-tint-muted: color-mix(in srgb, var(--sec-tint) 55%, #8a8a8a);
  --faq-band: color-mix(in srgb, var(--sec-tint-muted) 16%, #f3f2ef);
  margin-top: 0;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: 88px;
  background-color: var(--faq-band);
  box-shadow: 0 0 0 100vmax var(--faq-band);
  clip-path: inset(0 -100vmax);
  /* band + FAQ chrome are fixed to --sec-tint; carousel live accents stay elsewhere */
}
