/* FAQ (plan.md): the header (an owner reading at her kitchen counter, the paper panel with the search and the topics on
   her clear side), the questions by topic, and the close on a shop owner at work. Only places and sizes. */

/* ---- hero: the photo full bleed, the panel on its right ---- */
.phead--faq { display: grid; min-height: clamp(560px, 72vh, 700px); }
.phead--faq .phead__media img { object-position: 30% 40%; }
.faqhead { position: relative; z-index: 1; display: grid; justify-items: end; align-items: center; padding-block: clamp(48px, 6vw, 88px); }
.faqhead__panel { position: relative; display: grid; gap: var(--space-3); width: min(560px, 52%); padding: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 40px) clamp(40px, 4vw, 52px); border-radius: var(--radius-l); background: var(--c-paper); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-l); }
.phead--faq h1 { color: var(--c-ink); font-size: clamp(2.1rem, 1.5rem + 2vw, 3.2rem); }
.faqhead__lead { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem); color: var(--c-ink-soft); }
.phead--faq :focus-visible { outline-color: var(--c-brand-text); }
.faqsearch { display: grid; gap: 8px; margin-top: var(--space-2); }
.faqsearch label { font: 600 0.9375rem/1.3 var(--font-ui); color: var(--c-ink); }
.faqsearch__box { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 16px; border-radius: var(--radius-m); background: var(--c-paper); box-shadow: inset 0 0 0 1.5px var(--c-dash); color: var(--c-ink-soft); }
.faqsearch__box:focus-within { box-shadow: inset 0 0 0 2px var(--c-ink); }
.faqsearch__box svg { flex: none; width: 20px; height: 20px; }
.faqsearch__box input { flex: 1; min-width: 0; min-height: 50px; border: 0; background: none; font: 400 1.0625rem/1.3 var(--font-text); color: var(--c-ink); }
.faqsearch__box input:focus { outline: none; }
.faqsearch__box input::placeholder { color: var(--c-ink-soft); }
.faqchips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.faqchips a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: 999px; background: var(--c-paper-alt); font: 600 0.875rem/1.2 var(--font-ui); color: var(--c-ink); text-decoration: none; }
.faqchips a:hover { box-shadow: inset 0 0 0 1.5px var(--c-ink); }
.riser--panel { position: absolute; left: clamp(24px, 3vw, 40px); right: clamp(24px, 3vw, 40px); bottom: 16px; width: auto; height: 18px; }
.riser--panel path { stroke: var(--c-accent); stroke-width: var(--riser-w); }
.riser--panel .riser__dash { stroke: var(--c-dash); stroke-width: 2; }

/* ---- the questions, topic by topic ---- */
.faqall { display: grid; gap: clamp(56px, 6vw, 96px); }
.ftopic { scroll-margin-top: 100px; }
.faqall__none { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; font-size: 1.125rem; color: var(--c-ink); }
.faqall__none[hidden], .ftopic[hidden], .qa[hidden] { display: none; }

/* ---- close: a shop owner at work, the words on the left, a booking beside her ---- */
.faqclose__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.faqclose__link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--c-on-ink); text-decoration: underline; text-underline-offset: 3px; }
.faqclose__card { position: absolute; z-index: 1; right: max(var(--gutter), calc((100% - var(--max-w)) / 2)); bottom: clamp(96px, 11vw, 150px); }
.lcard { display: flex; align-items: center; gap: 12px; padding: 13px 18px 14px 13px; border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); box-shadow: inset 0 0 0 1px var(--c-line), var(--shadow-l); }
.lcard__tick { flex: none; width: 28px; height: 28px; }
.lcard__tick circle { fill: var(--c-accent); }
.lcard__tick path { stroke: var(--c-on-brand); }
.lcard__words { display: grid; gap: 2px; }
.lcard__words b { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.lcard__words span { font-size: 0.875rem; line-height: 1.35; color: var(--c-ink-soft); }

/* ---- the tablet and the phone ---- */
@media (max-width: 900px) {
  .faqclose__card { display: none; }
  .faqhead__panel { width: min(560px, 64%); }
}
@media (max-width: 760px) {
  .phead--faq { min-height: 0; background: var(--c-paper); }
  .phead--faq .phead__media { position: relative; inset: auto; aspect-ratio: 16 / 10; z-index: 0; }
  .phead--faq .phead__media img { object-position: 24% 40%; }
  .faqhead { padding-block: 0 8px; justify-items: stretch; }
  .faqhead__panel { width: auto; margin-top: -28px; padding: 24px 20px 44px; }
}
