/* faq.css: FAQ (src\pages\faq.mjs). The search and the topics: site\assets\js\pages\faq.js. */

/* 1. Header: the owner reading her phone behind her long counter, still (the FAQ's header may be); the words, the search
   and the topics at the left over her plain orange wall, shaded into the ink up to her (she stands 46 to 61% across).
   Under 1024 px the photo is a band above them. */
.fq-top { min-height: clamp(600px, calc(100svh - 76px), 740px); }
.fq-top__img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 42%; }
.fq-top .hero__stage::after {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 92%, transparent) 0%, color-mix(in srgb, var(--c-ink) 82%, transparent) 26%, color-mix(in srgb, var(--c-ink) 42%, transparent) 38%, transparent 46%),
    linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 40%, transparent), transparent 30%);
}
.fq-top__words { max-width: calc(var(--max-w) + 2 * var(--gutter)); }
.fq-top__words > * { max-width: min(520px, 38vw); }
.hero__words .fq-top__words h1, .fq-top__words h1 { max-width: min(560px, 40vw); font-size: clamp(2rem, .9rem + 2vw, 2.7rem); margin-bottom: var(--space-4); }
.fq-search__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fq-search__box { position: relative; display: flex; align-items: center; }
.fq-search__box .icon { position: absolute; left: 20px; width: 22px; height: 22px; color: var(--c-ink-soft); pointer-events: none; }
.fq-search input { width: 100%; height: 58px; padding: 0 20px 0 54px; border: 1px solid transparent; border-radius: 999px; background: var(--c-paper); color: var(--c-ink); font: 500 1.0625rem/1 var(--font-ui); box-shadow: var(--shadow-m); }
.fq-search input::placeholder { color: var(--c-ink-soft); opacity: 1; }
.fq-search input:focus-visible { outline: 3px solid var(--c-accent-on-ink); outline-offset: 2px; }
.fq-topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-3); }
.fq-chip { min-height: 44px; padding: 0 16px; border: 1px solid color-mix(in srgb, var(--c-on-ink) 26%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--c-on-ink) 9%, transparent); color: var(--c-on-ink); font: 600 .9375rem/1.2 var(--font-ui); cursor: pointer; }
.fq-chip:hover { background: color-mix(in srgb, var(--c-on-ink) 16%, transparent); }
.fq-chip[aria-pressed="true"] { border-color: var(--c-brand); background: var(--c-brand); color: var(--c-ink); }
.fq-chip:focus-visible { outline: 3px solid var(--c-accent-on-ink); outline-offset: 2px; }
@media (max-width: 1023px) {
  .fq-top { display: block; min-height: 0; }
  .fq-top .hero__stage { position: relative; inset: auto; height: clamp(260px, 56vw, 440px); }
  .fq-top .hero__stage::after { background: linear-gradient(0deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 30%, transparent) 24%, transparent 46%); }
  .fq-top__img { object-position: 54% 40%; }
  .fq-top__words { padding-block: var(--space-3) var(--space-5); margin-top: -8px; }
  .fq-top__words > *, .hero__words .fq-top__words h1, .fq-top__words h1 { max-width: 36rem; }
  .hero__words .fq-top__words h1, .fq-top__words h1 { font-size: clamp(1.8rem, 7.2vw, 2.5rem); }
}
/* on a phone the band is short: the photo drawn larger around her, so she reads at its middle */
@media (max-width: 767px) { .fq-top .hero__stage { overflow: hidden; } .fq-top__img { transform: scale(1.55); transform-origin: 54% 58%; } }

/* 2. The questions: each topic as the site's FAQ, its name at the left, its questions at the right. */
.fq-q { padding-block: clamp(3.5rem, 6vw, 5rem); scroll-margin-top: 40px; }
.fq-group { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--space-5); align-items: start; scroll-margin-top: 96px; }
.fq-group + .fq-group { margin-top: clamp(2.5rem, 5vw, 4rem); }
.fq-group[hidden] { display: none; }
.fq-group__h { margin: 0; font-size: clamp(1.4rem, 1rem + 1vw, 1.9rem); }
.fq-q .faq__list details[hidden] { display: none; }
.fq-q .faq__list details p a { color: var(--c-accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fq-none { max-width: 40em; margin: 0; font: 600 var(--fs-h3)/1.4 var(--font-ui); }
.fq-none a { color: var(--c-accent-text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 899px) { .fq-group { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); } }

/* 3. Close: the café owner laughing with her customer (her face 60 to 78% across): the clip in the right 62%, its left
   edge into the ink, the words, the button and the consultation at the left; under 1200 px the clip is a band above. */
.fq-close .close__in { z-index: 5; }
.fq-close .close__media { inset: 0 0 0 auto; width: 62%; }
.fq-close .close__video { object-position: 80% 40%; }
.fq-close .close__media::after { background: linear-gradient(90deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 50%, transparent) 15%, transparent 34%), linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 35%, transparent), transparent 30%); }
.fq-close .close__in h2 { max-width: 12em; }
.fq-close .close__in .lede { max-width: 30rem; }
.fq-close .close__go { margin-top: var(--space-4); }
.fq-close .close__go .btn { margin-bottom: 0; }
.fq-close .close__go .cta-note { margin: 10px 0 0; }
@media (max-width: 1199px) {
  .fq-close { padding-block: 0 clamp(4.5rem, 8vw, 6.5rem); }
  .fq-close .close__media { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 9; max-height: 520px; }
  .fq-close .close__media::after { background: linear-gradient(0deg, var(--c-ink) 0%, color-mix(in srgb, var(--c-ink) 35%, transparent) 24%, transparent 48%); }
  .fq-close .close__in { margin-top: calc(-1 * var(--space-4)); }
  .fq-close .close__stop { top: 16px; }
}
@media (max-width: 599px) { .fq-close .close__media { aspect-ratio: 4 / 5; } .fq-close .close__video { object-position: 66% 40%; } }
