/* FAQ (plan.md "FAQ"): a still photo with the search card over its clear half, the questions by topic, the close. */

/* ---------- hero: the owner's smile at the right, the card with the search and the topics over the left ---------- */
.fh { position: relative; display: grid; align-items: center; min-height: clamp(560px, 44vw, 660px); overflow: hidden; background: var(--c-ink); }
.fh__media { position: absolute; inset: 0; }
.fh__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
/* a grid item with auto side margins shrinks to its content: the wrap gets the page's width itself */
.fh__in { position: relative; z-index: 1; width: min(var(--max-w), 100% - 2 * var(--gutter)); padding-block: clamp(2rem, 4vw, 3.5rem); }
.fh__card { width: min(100%, 540px); box-sizing: border-box; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius-l); background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-l); }
.fh__card h1 { margin-bottom: var(--space-2); }
.fh__card .lede { margin-bottom: 0; }
.fh__search { position: relative; margin: var(--space-4) 0 0; }
.fh__search input { box-sizing: border-box; width: 100%; height: 56px; margin: 0; padding: 0 1.1rem 0 3.1rem; border: 1.5px solid color-mix(in srgb, var(--c-brand) 40%, var(--c-line)); border-radius: 999px; background: var(--c-paper); color: var(--c-ink); font: 500 var(--fs-body)/1 var(--font-ui); -webkit-appearance: none; appearance: none; }
.fh__search input::placeholder { color: var(--c-ink-soft); opacity: 1; }
.fh__search input:focus-visible { outline: 3px solid color-mix(in srgb, var(--c-brand) 55%, transparent); outline-offset: 2px; border-color: var(--c-brand); }
.fh__glass { position: absolute; left: 1.15rem; top: 50%; transform: translateY(-50%); display: grid; color: var(--c-brand-text); font-size: 20px; pointer-events: none; }
.fh__count { min-height: 1.35em; margin: 0.55rem 0 0 1.15rem; color: var(--c-ink-soft); font: 500 var(--fs-small)/1.35 var(--font-ui); }
.fh__topics { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--space-2) 0 0; padding: 0; list-style: none; }
.fh__topics a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; box-sizing: border-box; padding: 0 14px 0 11px; border-radius: 999px; background: var(--c-paper-alt); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line); font: 600 var(--fs-small)/1.2 var(--font-ui); text-decoration: none; }
.fh__topics a .icon { color: var(--c-brand-text); font-size: 17px; }
.fh__topics a:hover { background: var(--c-brand-light); }
.fh__topics a:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }

/* ---------- the questions by topic: the topic at the left (it stays in view while its questions pass), its answers at
   the right ---------- */
.fq__group { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); gap: var(--space-5); align-items: start; scroll-margin-top: 110px; }
.fq__group + .fq__group { margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--c-line); }
.fq__group[hidden] { display: none; }
.fq__head { position: sticky; top: 110px; display: flex; align-items: center; gap: 14px; }
.fq__head h3 { margin: 0; font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.85rem); line-height: 1.15; }
.fq__ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--c-brand-light); color: var(--c-brand-text); font-size: 24px; }
.fq .faq__list details[hidden] { display: none; }
.fq .faq__list details p a { color: var(--c-brand-text); font-weight: 600; }
.fq__none { max-width: 40rem; margin: 0 auto var(--space-5); padding: var(--space-4); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-s); text-align: center; }
.fq__none p { margin: 0 0 var(--space-3); color: var(--c-ink-soft); }
.fq__none b { color: var(--c-ink); }
.fq__none .act { justify-content: center; }

/* ---------- close: the words, the main button and Contact beside a framed clip of an owner reading a reply ---------- */
.fc { position: relative; overflow: hidden; }
.fc__ribbon { position: absolute; left: 0; top: -36px; width: 100%; height: clamp(70px, 9vw, 130px); transform: scaleY(-1); pointer-events: none; }
.fc__in { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-5); align-items: center; }
.fc__words .lede { margin-bottom: 0; }
.fc__act { margin-top: var(--space-4); }
.fc__note { margin-top: 0.85rem; }
.fc__stage { position: relative; }
.fc__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-l); background: var(--c-ink); box-shadow: var(--shadow-l); }
.fc__media video { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 60% 30%; }
.fc__stop { top: 14px; left: 14px; right: auto; }

@media (max-width: 860px) {
  .fq__group { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
  .fq__head { position: static; }
  .fc__in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  /* the photo first, the card under it, lifted a little onto its foot */
  .fh { display: block; min-height: 0; background: none; }
  .fh__media { position: relative; inset: auto; aspect-ratio: 4 / 3; }
  .fh__media img { object-position: 74% 40%; }
  .fh__in { padding-block: 0 var(--space-4); }
  .fh__card { margin-top: -48px; }
}
