/* Ki — FAQ */

/* Source `.faq-block` is `<section class="block">` (white). The widget shell
   passes `cream` for aside layout — drop that override so default is white. */
.ki-scope .ki-faq[data-layout="aside"] { background: var(--ki-paper); }

.ki-scope .ki-faq .ki-faq-block {
  /* Source `.faq-block` (Ki Home.html line 512). */
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 80px;
  align-items: start;
}

.ki-scope .ki-faq .ki-faq-aside {
  position: sticky;
  top: 120px;
}
.ki-scope .ki-faq .ki-faq-aside .eyebrow,
.ki-scope .ki-faq .ki-faq-aside .catchline {
  margin-bottom: 18px;
  display: block;
  color: var(--ki-blue-2);
}
.ki-scope .ki-faq h2 {
  /* Source `.faq-aside h2` (Ki Home.html line 515). */
  font-family: var(--ki-serif);
  font-weight: 400;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
  color: #000;
}
.ki-scope .ki-faq h2 em {
  font-family: var(--ki-serif-italic);
  font-style: italic;
  color: var(--ki-blue-deep);
}
.ki-scope .ki-faq .ki-faq-intro {
  /* Source `.faq-aside p` (Ki Home.html line 516). Plain sans, not italic. */
  font-family: var(--ki-sans);
  font-style: normal;
  font-size: 16px;
  color: var(--ki-ink-mute);
  line-height: 1.6;
  margin: 0 0 28px;
}

.ki-scope .ki-faq .ki-faq-stat {
  /* Source `.faq-stats` (Ki Home.html line 517). */
  padding: 18px 0;
  border-top: 1px solid var(--ki-rule);
  border-bottom: 1px solid var(--ki-rule);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ki-scope .ki-faq .ki-faq-stat .k {
  font-family: var(--ki-sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ki-ink-mute);
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}
.ki-scope .ki-faq .ki-faq-stat .v {
  font-family: var(--ki-serif);
  font-size: 22px;
  line-height: 1;
  color: #000;
}

.ki-scope .ki-faq .ki-faq-cta-wrap { margin-top: 28px; }
/* Source aside CTA uses `.btn-deep` with inline overrides (line 1211). */
.ki-scope .ki-faq .btn-deep.ki-faq-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  background: var(--ki-blue-deep);
  color: #fff;
  font-family: var(--ki-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--ki-blue-deep);
  border-radius: 2px;
  transition: background 220ms ease, color 220ms ease, transform 220ms ease;
}
.ki-scope .ki-faq .btn-deep.ki-faq-cta:hover {
  background: transparent;
  color: var(--ki-blue-deep);
  transform: translateY(-1px);
}
.ki-scope .ki-faq .btn-deep.ki-faq-cta::after {
  content: "→";
  font-family: var(--ki-serif);
  font-size: 16px;
}

/* Accordion items — Source `details.faq` (Ki Home.html 521–540). */
.ki-scope .ki-faq details.faq { border-bottom: 1px solid var(--ki-rule); }
.ki-scope .ki-faq details.faq:first-of-type { border-top: 1px solid var(--ki-rule); }
.ki-scope .ki-faq details.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: grid;
  grid-template-columns: 1fr 32px;
  gap: 18px;
  align-items: center;
}
.ki-scope .ki-faq details.faq summary::-webkit-details-marker { display: none; }
.ki-scope .ki-faq details.faq .q-num {
  /* Source design has no numeral in summary — hide. */
  display: none;
}
.ki-scope .ki-faq details.faq .q-text {
  font-family: var(--ki-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #000;
  transition: color 220ms ease;
}
.ki-scope .ki-faq details.faq .q-plus {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--ki-rule);
  display: grid;
  place-items: center;
  justify-self: end;
  position: relative;
  transition: background 220ms ease;
}
.ki-scope .ki-faq details.faq .q-plus::before,
.ki-scope .ki-faq details.faq .q-plus::after {
  content: "";
  position: absolute;
  background: #000;
}
.ki-scope .ki-faq details.faq .q-plus::before { width: 10px; height: 1px; }
.ki-scope .ki-faq details.faq .q-plus::after  { width: 1px; height: 10px; transition: transform 260ms ease; }
.ki-scope .ki-faq details.faq[open] .q-plus { background: #000; }
.ki-scope .ki-faq details.faq[open] .q-plus::before,
.ki-scope .ki-faq details.faq[open] .q-plus::after { background: #fff; }
.ki-scope .ki-faq details.faq[open] .q-plus::after { transform: rotate(90deg); }
.ki-scope .ki-faq details.faq[open] .q-text { color: var(--ki-blue-deep); }
.ki-scope .ki-faq details.faq summary:hover .q-text { color: var(--ki-blue-deep); }
.ki-scope .ki-faq details.faq .a-body {
  padding: 0 60px 28px 0;
  font-family: var(--ki-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ki-ink-mute);
  max-width: 720px;
}
.ki-scope .ki-faq details.faq .a-body p { margin: 0 0 14px; }
.ki-scope .ki-faq details.faq .a-body p:last-child { margin-bottom: 0; }

/* Simple layout */
.ki-scope .ki-faq[data-layout="simple"] .ki-faq-simple {
  max-width: 880px;
  margin: 0 auto;
}
.ki-scope .ki-faq[data-layout="simple"] .ki-faq-simple-head {
  text-align: center;
  margin-bottom: 56px;
}
.ki-scope .ki-faq[data-layout="simple"] .ki-faq-simple-head .eyebrow {
  display: block;
  margin-bottom: 18px;
}
.ki-scope .ki-faq[data-layout="simple"] h2 {
  font-size: clamp(32px, 3.7vw, 48px);
}

@media (max-width: 1100px) {
  .ki-scope .ki-faq .ki-faq-block {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .ki-scope .ki-faq .ki-faq-aside {
    position: static;
  }
  /* The numeral (q-num) is display:none, so only q-text + q-plus are in the
     grid — use 2 tracks, not 3, or the question gets squeezed into a tiny
     column (one word per line on mobile). */
  .ki-scope .ki-faq details.faq summary {
    grid-template-columns: 1fr 36px;
    gap: 16px;
  }
  .ki-scope .ki-faq details.faq .q-text { font-size: 20px; }
  .ki-scope .ki-faq details.faq .a-body { padding-left: 0; }
}
@media (max-width: 700px) {
  .ki-scope .ki-faq details.faq summary {
    grid-template-columns: 1fr 32px;
    gap: 14px;
    padding: 20px 0;
  }
  .ki-scope .ki-faq details.faq .q-text { font-size: 17px; line-height: 1.35; }
  .ki-scope .ki-faq details.faq .a-body { padding-left: 0; padding-right: 0; }
}
