/* FAQ (plan.md, "FAQ (Part 2)"). The header: the words, the search and the four topics at the left on the paper, a
   still photo in a tall frame at the right. The questions by topic, each topic's name at the left, held in view while
   its questions scroll. The close is the shared split band. Tokens only. */

/* ---------- the header ---------- */
.fqh { padding-block: clamp(1.5rem, 1rem + 2vh, 2.5rem) clamp(2.5rem, 1.5rem + 4vh, 4.5rem); }
.fqh__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: clamp(2rem, 1rem + 4vw, 5rem); }
.fqh__words .ph__title { font-size: clamp(2.3rem, 1.5rem + 2.8vw, 3.9rem); }
.fqh__frame { position: relative; height: 560px; overflow: hidden; border-radius: var(--radius-l); box-shadow: var(--shadow-l); background: var(--c-paper-alt); }
.fqh__frame img { --pos: 74% 30%; }

/* the search */
.fqh__search { position: relative; margin-top: 1.6rem; max-width: 34rem; }
.fqh__search svg { position: absolute; left: 1.1rem; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); fill: none; stroke: var(--c-brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.fqh__search input { width: 100%; min-height: 58px; padding: .9rem 1.2rem .9rem 3.2rem; border: 1.5px solid var(--c-line); border-radius: 999px; background: var(--c-card); color: var(--c-ink); font: 500 1.06rem/1.3 var(--font-text); box-shadow: var(--shadow-s); }
.fqh__search input::placeholder { color: var(--c-ink-soft); opacity: 1; }
.fqh__search input:focus-visible { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-brand) 22%, transparent), var(--shadow-s); }
.fqh__found { min-height: 1.5em; margin-top: .55rem; padding-left: 1.2rem; font-size: .95rem; color: var(--c-ink-soft); }
.fqh__found a { font-weight: 600; color: var(--c-brand); text-decoration-color: var(--c-accent); }

/* the four topics */
.fqh__topics { list-style: none; margin: .6rem 0 0; padding: 0; max-width: 34rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.fqh__topics a { display: flex; align-items: center; gap: .8rem; min-height: 64px; padding: .7rem .9rem; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-card); color: var(--c-ink); text-decoration: none; box-shadow: var(--shadow-s); transition: border-color .2s, transform .2s; }
.fqh__topics a:hover { border-color: var(--c-brand); transform: translateY(-1px); }
.fqh__topics svg { flex: none; width: 36px; height: 36px; padding: 7px; border-radius: 50%; background: color-mix(in srgb, var(--c-brand) 8%, var(--c-card)); fill: none; stroke: var(--c-brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fqh__topics b { display: block; font-weight: 600; color: var(--c-brand); line-height: 1.25; }
.fqh__topics small { display: block; font-size: .86rem; color: var(--c-ink-soft); }
.fqh__more { margin-top: 1.1rem; font-size: .98rem; color: var(--c-ink-soft); }
.fqh__more a { font-weight: 600; color: var(--c-brand); text-decoration-color: var(--c-accent); }

/* ---------- every question, by topic ---------- */
.fql { padding-top: clamp(2rem, 1rem + 3vw, 3.5rem); }
.fql__topic { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 1rem + 3vw, 4.5rem); align-items: start; padding-block: clamp(2rem, 1.4rem + 2vw, 3rem); border-top: 1px solid var(--c-line); scroll-margin-top: calc(var(--header-h) + 16px); }
.fql__topic:first-child { border-top: 0; padding-top: 0; }
.fql__head { position: sticky; top: calc(var(--header-h) + 28px); }
.fql__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c-brand); }
.fql__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--c-on-brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fql__title { margin-top: 1rem; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }
.fql__line { margin-top: .5rem; color: var(--c-ink-soft); max-width: 22rem; }
.fql .qa__list a { font-weight: 600; color: var(--c-brand); text-decoration-color: var(--c-accent); }
.fql [hidden] { display: none !important; }
.fql__none { padding: 1.6rem 1.8rem; border: 1px dashed var(--c-line); border-radius: var(--radius-m); background: var(--c-card); max-width: 46rem; margin-inline: auto; color: var(--c-ink-soft); }
.fql__none b { color: var(--c-brand); }
.fql__none a { font-weight: 600; color: var(--c-brand); text-decoration-color: var(--c-accent); }

/* ---------- the close: the card at the foot of the desk, under his face ---------- */
.fqc .closer__card { --card-l: 6%; --card-b: 6%; }

/* ---------- the phone ---------- */
@media (max-width: 899.98px) {
  .fqh__grid { grid-template-columns: minmax(0, 1fr); }
  .fqh__frame { order: -1; height: 320px; }
  .fqh__frame img { --pos: 76% 30%; }
  .fql__topic { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
  .fql__head { position: static; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: .9rem; align-items: center; }
  .fql__icon { width: 44px; height: 44px; grid-row: span 2; }
  .fql__icon svg { width: 22px; height: 22px; }
  .fql__title { margin-top: 0; }
  .fql__line { margin-top: .2rem; }
}
@media (max-width: 559.98px) {
  .fqh__frame { height: 260px; }
  .fqh__topics { grid-template-columns: minmax(0, 1fr); }
}
