/* FAQ typography and responsive reading measure. */
.faq-page > .container {
  width: min(calc(100% - 40px), 820px);
  box-sizing: border-box;
  margin-inline: auto;
}

.faq-heading {
  margin: 0 auto clamp(32px, 4vw, 48px);
  text-align: center;
}

.faq-heading h1 {
  margin: 0;
  color: var(--teal-ink);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

html[lang^="zh"] .faq-heading h1 {
  font-family: "Noto Serif SC", serif;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  letter-spacing: .08em;
  line-height: 1.2;
}

.faq-list {
  width: 100%;
  margin: 0 auto;
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  margin: 0 0 5px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  transition: background .32s ease, border-color .32s ease;
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-bottom-color: rgb(19 78 74 / 16%);
  background:
    radial-gradient(ellipse at 5% 0%, rgb(220 231 220 / 46%), transparent 58%),
    linear-gradient(115deg, rgb(247 244 236 / 88%), rgb(238 244 241 / 78%));
}

.faq-question {
  display: grid;
  width: 100%;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  align-items: start;
  gap: 0;
  padding: 21px 0;
  border: 0;
  color: var(--teal-deep);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.faq-question:hover { color: var(--teal); }
.faq-question:focus-visible { outline: 2px solid var(--ginkgo-muted); outline-offset: -2px; }
.faq-question > span:nth-child(2) { min-width: 0; text-align: left; }

.faq-question .faq-copy-en {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
}

.faq-question .faq-copy-zh {
  display: none;
  font-family: "Noto Serif SC", serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}

html[lang^="zh"] .faq-question .faq-copy-en { display: none; }
html[lang^="zh"] .faq-question .faq-copy-zh { display: block; }

.faq-question .faq-amp {
  color: inherit;
  font-family: "Noto Serif SC", serif;
  font-size: .95em;
  font-weight: 600;
  letter-spacing: .02em;
}

.faq-number {
  color: var(--teal);
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  transition: color .28s ease;
}

.faq-question[aria-expanded="true"] .faq-number { color: #b0842a; }

.faq-toggle-mark {
  display: inline-block;
  color: var(--teal);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  transform-origin: 50% 50%;
  transition: color .28s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}

.faq-question[aria-expanded="true"] .faq-toggle-mark {
  color: #b0842a;
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 24px 44px;
  color: color-mix(in srgb, var(--teal-ink) 82%, var(--paper));
  text-align: left;
}

.faq-answer[hidden] { display: none; }
.faq-answer p { margin: 0; }

.faq-copy-en.faq-answer,
.faq-answer .faq-copy-en {
  font-family: "Plus Jakarta Sans", "Noto Serif SC", sans-serif;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.75;
}

.faq-answer .faq-copy-zh {
  display: none;
  font-family: "LXGW WenKai TC", "Noto Serif SC", serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
}

html[lang^="zh"] .faq-answer .faq-copy-en { display: none; }
html[lang^="zh"] .faq-answer .faq-copy-zh { display: block; }
.faq-answer .faq-copy-en strong { font-weight: 600; }
.faq-answer .faq-copy-zh strong {
  font-family: "Noto Serif SC", serif;
  font-weight: 600;
}
.faq-answer .faq-amp {
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
}

.faq-contact-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 34px;
  padding: 22px 24px;
  border: 1px solid rgb(19 78 74 / 16%);
  border-radius: 16px;
  background: linear-gradient(115deg, rgb(238 244 241 / 80%), rgb(247 244 236 / 94%));
}

.faq-contact-cta h2 {
  margin: 0;
  color: var(--teal-ink);
  font-family: "Cormorant Garamond", serif;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
}

.faq-contact-cta p {
  margin: 5px 0 0;
  color: color-mix(in srgb, var(--teal-ink) 76%, var(--paper));
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

html[lang^="zh"] .faq-contact-cta h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 19px;
  letter-spacing: .04em;
}

html[lang^="zh"] .faq-contact-cta p {
  font-family: "LXGW WenKai TC", serif;
  font-size: 15px;
}

.faq-contact-cta [lang="en"] { display: inline; }
.faq-contact-cta [lang="zh-Hans"] { display: none; }
html[lang^="zh"] .faq-contact-cta [lang="en"] { display: none; }
html[lang^="zh"] .faq-contact-cta [lang="zh-Hans"] { display: inline; }

.faq-contact-button {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--teal-deep);
  border-radius: 999px;
  color: var(--paper);
  background: var(--teal-deep);
  font-family: "Plus Jakarta Sans", "Noto Serif SC", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  transition: color .25s ease, background .25s ease, transform .25s ease;
}

.faq-contact-button:hover,
.faq-contact-button:focus-visible {
  color: var(--teal-deep);
  background: transparent;
  transform: translateY(-1px);
}

.faq-contact-button:focus-visible { outline: 2px solid var(--ginkgo-muted); outline-offset: 3px; }
html[lang^="zh"] .faq-contact-button { font-family: "Noto Sans SC", "PingFang SC", sans-serif; }

@media (max-width: 767px) {
  .faq-page > .container { width: min(calc(100% - 32px), 820px); }
  .faq-question { grid-template-columns: 30px minmax(0, 1fr) 22px; padding: 18px 0; }
  .faq-question .faq-copy-en { font-size: 18.5px; }
  .faq-question .faq-copy-zh { font-size: 16.5px; }
  .faq-answer { padding: 0 0 21px; }
  .faq-answer .faq-copy-en { font-size: 14.5px; }
  .faq-answer .faq-copy-zh { font-size: 15px; }
  .faq-contact-cta { align-items: flex-start; flex-direction: column; gap: 17px; margin-top: 27px; padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-number,
  .faq-toggle-mark,
  .faq-contact-button { transition-duration: .01ms; }
}
