/* The FAQ page: its parts' place and size. Only the tokens of system.css. The header a still photo (allowed: not a
   page that sells), the words and the search on the van's plain side; then the questions by topic, the FAQ layout of
   components.css per topic. */

/* ---------- hero: the owner at his van on the right, the words and the search on the left ---------- */
.fq-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(520px, 100svh - var(--header-h) - 120px, 680px); padding-block: var(--space-6); overflow: clip; }
.fq-hero__media { position: absolute; inset: 0; z-index: -2; }
.fq-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 35%; }
.fq-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, color-mix(in srgb, var(--c-night-0) 88%, transparent) 0%, color-mix(in srgb, var(--c-night-0) 62%, transparent) 38%, transparent 58%), linear-gradient(0deg, var(--c-night-1) 0%, transparent 18%); }
.fq-hero__in { display: grid; justify-items: start; gap: var(--space-3); }
.fq-hero__title { max-width: 14ch; font-size: var(--fs-display); }
.fq-hero__line { font-size: var(--fs-lead); color: var(--c-on-ink-soft); }
.fq-search { display: grid; gap: 8px; width: min(100%, 480px); margin-top: var(--space-3); }
.fq-search__label { font: 700 var(--fs-small)/1.2 var(--font-ui); color: var(--c-on-ink); }
.fq-search__box { position: relative; display: block; }
.fq-search__box .ico { position: absolute; z-index: 1; left: 18px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--c-brand-on-ink); pointer-events: none; }
.fq-search input { width: 100%; min-height: 58px; padding: 0 18px 0 50px; font: 500 var(--fs-body)/1 var(--font-ui); color: var(--c-on-ink); border: 1px solid color-mix(in srgb, var(--c-on-ink) 22%, transparent); border-radius: var(--radius-m); background: color-mix(in srgb, var(--c-night-1) 78%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.fq-search input::placeholder { color: var(--c-on-ink-muted); }
.fq-search input:focus-visible { outline: 2px solid var(--c-brand-light); outline-offset: 2px; border-color: transparent; }
.fq-topics { display: flex; flex-wrap: wrap; gap: 8px; max-width: 560px; margin-top: var(--space-2); }
.fq-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font: 600 var(--fs-small)/1 var(--font-ui); color: var(--c-on-ink); text-decoration: none; border: 1px solid color-mix(in srgb, var(--c-brand-light) 34%, transparent); background: color-mix(in srgb, var(--c-night-1) 70%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background var(--dur-med), border-color var(--dur-med); }
.fq-chip:hover { border-color: color-mix(in srgb, var(--c-brand-light) 70%, transparent); background: color-mix(in srgb, var(--c-brand) 22%, var(--c-night-1)); }
/* the phone: the photo first, the owner's face in view, then the words and the search on the dark ground */
@media (max-width: 760px) {
  .fq-hero { display: block; min-height: 0; padding: 0 0 var(--space-5); }
  .fq-hero__media { position: relative; inset: auto; height: 340px; margin-bottom: var(--space-4); }
  .fq-hero__img { object-position: 76% 30%; }
  .fq-hero::before { background: linear-gradient(180deg, transparent 220px, var(--c-night-1) 340px); }
}

/* ---------- the questions, by topic ---------- */
.fq { padding-block: var(--space-6) var(--section-y); }
.fq__topic { padding-block: var(--space-5); border-top: 1px solid var(--c-night-line); scroll-margin-top: calc(var(--header-h) + 16px); }
.fq__topic:first-of-type { border-top: 0; padding-top: 0; }
.fq__title { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 899px) { .fq__title { position: static; } }
.fq__topic[hidden], .fq .faq__item[hidden] { display: none; }
.fq__none { padding: var(--space-4); border: 1px dashed color-mix(in srgb, var(--c-on-ink) 22%, transparent); border-radius: var(--radius-m); color: var(--c-on-ink-soft); }
.fq__none a, .fq__link { color: var(--c-brand-on-ink); font-weight: 700; }
.fq__more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--c-night-line); font: 600 var(--fs-lead)/1.4 var(--font-ui); }
.fq__link { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.fq__link .ico { width: 18px; height: 18px; }
