/* Shared FAQ: one structure, page-aware color themes. */

.c-faq {
  --faq-primary: var(--corp-navy, var(--navy, #2b4075));
  --faq-deep: var(--corp-navy-deep, var(--navy-deep, #1d2d56));
  --faq-heading: var(--corp-ink, var(--heading, #17315f));
  --faq-ink: var(--corp-ink-body, var(--ink, #253347));
  --faq-muted: var(--corp-muted, var(--muted, #617080));
  --faq-gold: var(--corp-gold, var(--gold, #b9872f));
  --faq-paper: var(--corp-paper, #fff9f1);
  --faq-surface: var(--corp-paper-plain, #fffdf9);
  --faq-line: rgba(29, 45, 86, 0.16);
  --faq-line-strong: rgba(43, 64, 117, 0.34);
  --faq-stripe: rgba(43, 64, 117, 0.13);
  --faq-open: rgba(231, 239, 244, 0.72);
  --faq-halo: rgba(218, 231, 238, 0.66);
  --faq-rule: rgba(185, 135, 47, 0.56);
  --faq-answer-line: rgba(185, 135, 47, 0.64);
  box-sizing: border-box;
  position: relative;
  overflow: clip;
  padding-block: clamp(72px, 7vw, 104px);
  color: var(--faq-ink);
  background:
    radial-gradient(circle at 79% 15%, var(--faq-halo), transparent 23%),
    linear-gradient(180deg, var(--faq-surface) 0%, var(--faq-paper) 100%);
}

.c-faq--personal {
  --faq-primary: var(--dp-rose, var(--ibis, #df5f58));
  --faq-deep: var(--dp-rose-deep, var(--ibis-deep, #a84845));
  --faq-heading: var(--dp-navy, var(--heading, #17315f));
  --faq-ink: var(--dp-ink, var(--ink, #253347));
  --faq-muted: var(--dp-muted, var(--muted, #617080));
  --faq-gold: var(--dp-gold, var(--gold, #b9872f));
  --faq-line: rgba(168, 72, 69, 0.18);
  --faq-line-strong: rgba(168, 72, 69, 0.36);
  --faq-stripe: rgba(223, 95, 88, 0.14);
  --faq-open: rgba(255, 238, 232, 0.76);
  --faq-halo: rgba(244, 219, 211, 0.58);
}

.c-faq *,
.c-faq *::before,
.c-faq *::after {
  box-sizing: inherit;
}

.c-faq__inner {
  width: min(1040px, calc(100% - 48px));
  margin-inline: auto;
}

.c-faq__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: clamp(28px, 5vw, 68px);
  align-items: end;
  max-width: 920px;
  min-height: 178px;
  margin: 0 auto 34px;
  padding-inline: 4px 22px;
}

.c-faq__head-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 10px;
}

.c-faq__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--faq-gold);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.14em;
}

.c-faq__eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--faq-rule);
}

.c-faq__head h2 {
  margin: 0;
  color: var(--faq-heading);
  font-family: var(--font-serif, serif);
  font-size: clamp(2rem, 3.2vw, 2.62rem);
  font-weight: 700;
  line-height: 1.35;
}

.c-faq__lead {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--faq-muted);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.85;
}

.c-faq__guide {
  position: relative;
  width: 190px;
  height: 178px;
  margin: 0;
  justify-self: end;
}

.c-faq__guide-halo {
  position: absolute;
  right: -18px;
  bottom: 2px;
  width: 164px;
  height: 124px;
  background:
    radial-gradient(circle at 48% 44%, rgba(255, 255, 255, 0.9), transparent 60%),
    var(--faq-halo);
  border-radius: 58% 42% 51% 49% / 61% 48% 52% 39%;
  transform: rotate(-5deg);
}

.c-faq__guide::after {
  content: "";
  position: absolute;
  right: -12px;
  bottom: 8px;
  width: 150px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--faq-rule), transparent);
}

.c-faq__guide img {
  position: absolute;
  z-index: 1;
  inset: auto 0 -4px auto;
  display: block;
  width: 178px;
  height: 178px;
  object-fit: contain;
}

.c-faq__list {
  display: grid;
  gap: 12px;
  max-width: 920px;
  margin-inline: auto;
}

.c-faq__item {
  position: relative;
  overflow: hidden;
  color: var(--faq-deep);
  background:
    linear-gradient(90deg, var(--faq-stripe) 0 4px, transparent 4px),
    linear-gradient(135deg, #fff 0%, rgba(255, 253, 249, 0.94) 100%);
  border: 1px solid var(--faq-line);
  border-radius: 6px;
  box-shadow: 0 12px 28px rgba(29, 45, 86, 0.07);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.c-faq__item[open] {
  border-color: var(--faq-line-strong);
  box-shadow: 0 16px 34px rgba(29, 45, 86, 0.11);
}

.c-faq__question {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 40px;
  gap: 16px;
  align-items: center;
  min-height: 82px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.2s ease;
}

.c-faq__question::-webkit-details-marker {
  display: none;
}

.c-faq__question:focus-visible {
  outline: 3px solid var(--faq-deep);
  outline-offset: -5px;
  border-radius: 5px;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.88);
}

.c-faq__item[open] .c-faq__question {
  background: var(--faq-open);
}

.c-faq__mark,
.c-faq__answer-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  font-family: var(--font-serif, serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  background: var(--faq-primary);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.c-faq__question-text {
  min-width: 0;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.55;
}

.c-faq__toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  justify-self: end;
  background: #fff;
  border: 1px solid var(--faq-line-strong);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(29, 45, 86, 0.07);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.c-faq__toggle::before,
.c-faq__toggle::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 2px;
  background: var(--faq-deep);
  border-radius: 999px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.c-faq__toggle::after {
  transform: rotate(90deg);
}

.c-faq__item[open] .c-faq__toggle {
  background: var(--faq-primary);
  border-color: var(--faq-primary);
}

.c-faq__item[open] .c-faq__toggle::before,
.c-faq__item[open] .c-faq__toggle::after {
  background: #fff;
}

.c-faq__item[open] .c-faq__toggle::after {
  transform: rotate(0deg);
}

.c-faq__answer {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 18px;
  margin: 0 24px 24px 84px;
  padding: 20px 24px;
  color: var(--faq-ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)),
    repeating-linear-gradient(180deg, transparent 0, transparent 31px, var(--faq-stripe) 32px);
  border: 1px solid var(--faq-line);
  border-left: 3px solid var(--faq-answer-line);
  border-radius: 6px;
}

.c-faq__answer-mark {
  width: 34px;
  height: 34px;
  background: var(--faq-gold);
}

.c-faq__answer-copy p {
  margin: 0;
  line-height: 1.82;
}

.c-faq__answer-copy p + p {
  margin-top: 8px;
}

@media (hover: hover) {
  .c-faq__item:hover {
    border-color: var(--faq-line-strong);
    box-shadow: 0 16px 34px rgba(29, 45, 86, 0.1);
  }

  .c-faq__item:hover .c-faq__toggle {
    border-color: var(--faq-deep);
    transform: scale(1.04);
  }
}

@media (max-width: 760px) {
  .c-faq {
    padding-block: 58px 64px;
  }

  .c-faq__inner {
    width: min(100% - 32px, 1040px);
  }

  .c-faq__head {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 8px;
    min-height: 134px;
    margin-bottom: 24px;
    padding: 0;
  }

  .c-faq__head-copy {
    padding-bottom: 0;
  }

  .c-faq__eyebrow {
    margin-bottom: 9px;
    font-size: 0.76rem;
  }

  .c-faq__head h2 {
    font-size: clamp(1.72rem, 8vw, 2rem);
    line-height: 1.42;
  }

  .c-faq__lead {
    margin-top: 8px;
    font-size: 0.9rem;
    line-height: 1.72;
  }

  .c-faq__guide {
    width: 112px;
    height: 124px;
  }

  .c-faq__guide-halo {
    right: -14px;
    bottom: 4px;
    width: 104px;
    height: 82px;
  }

  .c-faq__guide::after {
    right: -8px;
    bottom: 7px;
    width: 104px;
  }

  .c-faq__guide img {
    right: -4px;
    bottom: 0;
    width: 116px;
    height: 116px;
  }

  .c-faq__question {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 12px;
    min-height: 72px;
    padding: 16px;
  }

  .c-faq__mark {
    width: 32px;
    height: 32px;
    font-size: 0.94rem;
  }

  .c-faq__question-text {
    font-size: 1rem;
    line-height: 1.5;
  }

  .c-faq__toggle {
    width: 32px;
    height: 32px;
  }

  .c-faq__answer {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    margin: 0 16px 16px;
    padding: 18px 16px;
  }

  .c-faq__answer-mark {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
}

@media (max-width: 430px) {
  .c-faq__head {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .c-faq__guide {
    width: 92px;
    height: 112px;
  }

  .c-faq__guide img {
    width: 102px;
    height: 102px;
  }

  .c-faq__lead {
    max-width: 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .c-faq__item,
  .c-faq__question,
  .c-faq__toggle,
  .c-faq__toggle::before,
  .c-faq__toggle::after {
    transition: none;
  }
}
