/* FAQ: plan.md, "FAQ". The header: a wide still photo in the inset rounded frame, a paper card over its lower left with
   the headline, the search and the topics (on a phone and a tablet the card under the photo, overlapping its foot).
   Then every question by topic; then the close. Only the site's tokens. */

/* ---------- #hero ---------- */
.faq-hero { position: relative; }
.faq-hero__frame { height: max(300px, calc(100vw / 1.9)); max-height: 460px; background: var(--c-paper-alt); }
.faq-hero__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 54% 28%; }
.faq-hero__card { position: relative; z-index: 2; display: grid; gap: 16px; margin: -56px calc(var(--frame) + 10px) 0; padding: 24px 20px 22px; border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-l); }
.faq-hero__card h1 { font-size: clamp(36px, calc(2.2vw + 22px), 54px); letter-spacing: var(--track-display); line-height: 1.04; }
.faq-search { position: relative; }
.faq-search__icon { position: absolute; left: 18px; top: 50%; translate: 0 -50%; color: var(--c-ink-soft); pointer-events: none; }
.faq-search__input { width: 100%; height: 56px; padding: 0 18px 0 50px; border-radius: var(--radius-pill); border: 1.5px solid var(--c-line); background: var(--c-white); font: 400 16px/1.2 var(--font-ui); color: var(--c-ink); -webkit-appearance: none; appearance: none; }
.faq-search__input::placeholder { color: var(--c-ink-soft); opacity: 1; }
.faq-search__input:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.faq-search__status { margin: -6px 0 0; font-size: var(--fs-small); color: var(--c-ink-soft); }
.faq-search__status:empty { display: none; }
.faq-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-topics__chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--c-line); background: var(--c-white); color: var(--c-ink); font-size: 14px; font-weight: 500; text-decoration: none; }
/* each topic's chip leads with the site's mark: one small rounded square */
.faq-topics__chip::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 3px; background: var(--grad-sunrise); }
.faq-topics__chip:hover { border-color: color-mix(in srgb, var(--c-ink) 40%, transparent); }
.faq-topics__chip:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
@media (min-width: 1200px) {
  .faq-hero__frame { height: clamp(540px, 66svh, 660px); max-height: none; }
  .faq-hero__img { object-position: 56% 30%; }
  .faq-hero__card { position: absolute; left: calc(var(--frame) + 24px); bottom: 24px; width: min(520px, 40%); margin: 0; padding: 30px 30px 26px; }
}

/* ---------- #faq: every question by topic; on a computer each topic's title stays beside its questions ---------- */
.faq-group { scroll-margin-top: 96px; }
.faq-group + .faq-group { margin-top: var(--space-6); }
.faq-group__title { margin-bottom: var(--space-3); font-size: var(--fs-h3); }
.faq-group[hidden], .faq__item[hidden] { display: none; }
.faq-none { margin: var(--space-5) 0 0; font-size: var(--fs-lead); }
@media (min-width: 960px) {
  .faq-group { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: var(--space-6); align-items: start; }
  .faq-group__title { position: sticky; top: 112px; margin: 0; padding-top: 22px; }
}

/* ---------- #close: shorter than the other closes; a quiet second way, to Contact ---------- */
.faq-close .close-frame__media > video { object-position: 56% 30%; }
.faq-close__line { margin: calc(-1 * var(--space-4)) 0 0; max-width: 34rem; font-size: var(--fs-lead); color: var(--c-ink-soft); }
.faq-close__line a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.faq-close__write { margin-top: calc(-1 * var(--space-3)); }
/* a computer: the headline under her face (upper middle), the picker over the frame's foot */
@media (min-width: 960px) {
  .faq-close { --close-lift: 320px; }
  .faq-close .close-frame__media { height: clamp(600px, 72svh, 720px); }
  .faq-close__line { color: color-mix(in srgb, var(--c-white) 90%, transparent); }
}
