/* faq.css: places and sizes the FAQ page's parts, with the tokens of system.css only. */

/* ================= hero: a still photo band, the ivory card over its lower edge ================= */
.fqh { position: relative; padding-top: 76px; background: var(--c-paper); }
.fqh__band { position: relative; height: clamp(300px, 48vh, 480px); overflow: hidden; background: var(--c-ink); }
.fqh__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 58%; }
.fqh__band::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(var(--c-shade), .18) 0%, rgba(var(--c-shade), 0) 40%); }
.fqh__card {
  position: relative; z-index: 1; max-width: 780px; margin: calc(-1 * clamp(7rem, 4.5rem + 6vw, 10.5rem)) auto 0;
  padding: clamp(1.75rem, 1rem + 2.5vw, 3rem); border: 1px solid var(--c-line); border-radius: calc(var(--radius-l) * 1.4); background: var(--c-card); box-shadow: var(--shadow-l); text-align: center;
}
.fqh__title { margin: 0; font-size: var(--fs-h1); font-weight: 700; }
.fqh__line { margin: .6rem 0 0; color: var(--c-ink-soft); font-size: 1.125rem; }
.fqh__search { position: relative; max-width: 540px; margin: 1.5rem auto 0; }
.fqh__search input {
  width: 100%; height: 56px; padding: 0 1.25rem 0 3.1rem; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-paper);
  color: var(--c-ink); font: 500 1.0625rem/1 var(--font-ui); -webkit-appearance: none; appearance: none;
}
.fqh__search input::placeholder { color: var(--c-ink-soft); }
.fqh__search input:focus-visible { outline: 3px solid var(--c-brand-text); outline-offset: 2px; }
.fqh__glass { position: absolute; left: 1.15rem; top: 50%; translate: 0 -50%; color: var(--c-ink-soft); pointer-events: none; }
.fqh__topics { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.fqh__chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.05rem; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-paper); color: var(--c-ink); font: 600 .9375rem/1 var(--font-ui); text-decoration: none; transition: border-color var(--dur-fast), background-color var(--dur-fast); }
.fqh__chip:hover { border-color: var(--c-ink); background: var(--c-brand-light); }
@media (max-width: 599px) {
  .fqh__band { height: 260px; }
  .fqh__card { margin-top: -5rem; padding: 1.5rem 1.1rem; }
  .fqh__chip { min-height: 40px; padding: 0 .85rem; font-size: .875rem; }
}

/* ================= faq: every question by topic ================= */
.faqs { padding-top: clamp(3rem, 2rem + 3vw, 5rem); }
.faqs__in { max-width: calc(880px + 2 * var(--gutter)); }
.faqs__topic { margin-bottom: clamp(2.5rem, 2rem + 2vw, 3.75rem); scroll-margin-top: 100px; }
.faqs__topic:last-of-type { margin-bottom: 0; }
.faqs__name { margin: 0 0 .9rem; color: var(--c-ink); font-size: var(--fs-h3); font-weight: 700; }
.faqs__none { margin: 0; padding: 1.25rem 0; color: var(--c-body); font-size: 1.0625rem; }
.faqs__none a { color: var(--c-brand-text); font-weight: 600; }

/* ================= close: the shade kept on the words' side, so the woman at its middle stays in the light ================= */
.page-faq .close__shade { background: linear-gradient(90deg, rgba(var(--c-shade), .95) 0%, rgba(var(--c-shade), .86) 30%, rgba(var(--c-shade), .2) 50%, rgba(var(--c-shade), .06) 100%); }
.page-faq .close__title { max-width: 9em; }
.faq-close__media { object-position: 60% 40%; }
@media (max-width: 759px) {
  .page-faq .close__shade { background: linear-gradient(180deg, rgba(var(--c-shade), .92) 0%, rgba(var(--c-shade), .88) 58%, rgba(var(--c-shade), .2) 82%, rgba(var(--c-shade), .3) 100%); }
}
