/* The FAQ page (plan.md, "FAQ"). #hero: a wide rounded frame of the shop owner at her desk, the headline, the search
   box and the topic chips in a paper panel over the rack of clothes at its right (under her on the phone). #faq: the
   questions by topic on type, one calm column; the search hides what does not match (faq.js). #close: the baker,
   mirrored so she stands at the left, the panel at the right (the close turned round), with a way to ask us. Tokens
   only. */

/* ---------- #hero ---------- */
.fqh { padding-top: clamp(1.75rem, 3.5vw, 3rem); }
.fqh__frame { position: relative; isolation: isolate; display: grid; align-items: center; justify-items: end; min-height: 600px; padding: clamp(1.25rem, 3vw, 2.5rem); overflow: hidden; border-radius: var(--radius-l); background: var(--c-ink); box-shadow: var(--shadow-l); }
.fqh__pic { position: absolute; inset: 0; z-index: -1; }
.fqh__pic img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 30% 30%; }
.fqh__panel { width: min(100%, 31rem); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--radius-l); background: color-mix(in srgb, var(--c-paper) 90%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2); box-shadow: var(--shadow-l), inset 0 0 0 1px color-mix(in srgb, var(--c-paper) 60%, transparent); }
.fqh__title { margin: 0 0 .6rem; font-size: clamp(2.2rem, 1.2rem + 2vw, 3.1rem); line-height: 1.06; }
.fqh__line { margin: 0 0 1.25rem; }
/* the label is read by a screen reader; the field shows the same words */
.fqh__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fqh__field { display: flex; align-items: center; gap: .6rem; padding: 0 1.1rem; border-radius: 999px; background: var(--c-paper); box-shadow: inset 0 0 0 1.5px var(--c-line), var(--shadow-s); }
.fqh__field:focus-within { box-shadow: inset 0 0 0 2px var(--c-brand), var(--shadow-s); }
.fqh__field .icon { flex: none; color: var(--c-ink-soft); font-size: 1.25rem; }
/* `width: 100%`: the field's own default width (about 20 letters) no longer sets the panel's narrowest width, so on a
   360 px phone the panel keeps to its frame */
.fqh__field input { flex: 1; min-width: 0; width: 100%; height: 3.25rem; border: 0; background: none; color: var(--c-ink); font: 600 1rem/1 var(--font-ui); outline: none; }
.fqh__field input::placeholder { color: var(--c-ink-soft); opacity: 1; }
.fqh__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.fqh__chip { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .45rem .95rem; border-radius: 999px; background: var(--c-brand-light); color: var(--c-brand-dark); font: 700 .9375rem/1.2 var(--font-ui); text-decoration: none; }
.fqh__chip:hover { background: color-mix(in srgb, var(--c-brand) 22%, var(--c-brand-light)); }
@media (max-width: 759px) {
  .fqh__frame { min-height: 0; justify-items: stretch; padding: 17rem .75rem .75rem; }
  /* the panel's padding counts inside its width: at the frame's full width it would otherwise run 48 px past the
     frame's right edge, its corners and the search field cut */
  .fqh__panel { box-sizing: border-box; }
  .fqh__pic img { object-position: 30% 8%; }
}

/* ---------- #faq: the questions by topic, one calm column ---------- */
.fq__in { max-width: 52rem; }
.fq__group { scroll-margin-top: 6rem; }
.fq__group + .fq__group { margin-top: clamp(2.25rem, 5vw, 3.5rem); }
.fq__topic { margin: 0 0 1rem; font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); }
.fq__count { margin: 0 0 1.25rem; color: var(--c-ink-soft); font: 600 1rem/1.4 var(--font-ui); }
.fq__count:empty { display: none; }
.fq__none { margin: 0; padding: 1.25rem 1.5rem; border-radius: var(--radius-m); background: var(--c-paper); box-shadow: inset 0 0 0 1px var(--c-line); }
.fq__none a { color: var(--c-brand-text); font-weight: 700; }

/* ---------- #close: the baker mirrored to the left, the panel at the right ---------- */
.fqclose { justify-items: end; --close-pos: 50% 30%; --close-pos-m: 64% 20%; }
.fqclose .close__media :is(video, img) { transform: scaleX(-1); }
.fqclose::after { background: linear-gradient(270deg, color-mix(in srgb, var(--c-ink) 40%, transparent), transparent 46%); }
.fqclose .close__stop { right: auto; left: 1rem; }
.fqclose__ask { margin: 1rem 0 0; font: 700 .9375rem/1.4 var(--font-ui); text-align: center; }
.fqclose__ask a { color: var(--c-brand-text); }
@media (max-width: 1199px) {
  .fqclose { min-height: 0; align-items: end; justify-items: center; padding: 22rem 1.5rem 1.5rem; }
  .fqclose::after { background: linear-gradient(0deg, color-mix(in srgb, var(--c-ink) 50%, transparent), transparent 60%); }
  .fqclose .close__media :is(video, img) { object-position: 64% 25%; }
  .fqclose .close__stop { left: auto; right: 1rem; }
}
@media (max-width: 759px) {
  .fqclose { padding: 19rem .75rem .75rem; justify-items: stretch; }
  .fqclose .close__media :is(video, img) { object-position: var(--close-pos-m); }
}
