/* The FAQ page's own CSS: the calm header (the barber's still photo, the search and the topics on its shaded left), the
   questions by topic with a topic list beside them, the close. Tokens of design\system.css only. */

/* the header: one still photo across the band, the search box like the picker's white box */
.hero--search { min-height: min(640px, calc(100svh - 88px)); }
.hero--search .hero__bg > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; }
.faqsearch { position: relative; max-width: 540px; margin-top: 26px; }
.faqsearch__icon { position: absolute; left: 18px; top: 50%; translate: 0 -50%; display: grid; color: var(--c-brand-text); pointer-events: none; }
.faqsearch__input { width: 100%; height: 62px; padding: 0 20px 0 54px; box-sizing: border-box; border: 2px solid transparent; border-radius: var(--radius-m); background: var(--c-paper); box-shadow: var(--shadow-l);
  font: var(--fw-semi) 1.0625rem/1 var(--font-ui); color: var(--c-ink); }
.faqsearch__input::placeholder { color: var(--c-muted); }
.faqsearch__input:focus { outline: none; border-color: var(--c-brand); box-shadow: var(--shadow-l), 0 0 0 4px color-mix(in srgb, var(--c-brand) 25%, transparent); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; max-width: 560px; margin-top: 18px; }
.topics__chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid color-mix(in srgb, var(--c-brand-on-ink) 45%, transparent); border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--c-ink) 55%, transparent); font: var(--fw-bold) 15px/1 var(--font-ui); color: var(--c-on-ink); text-decoration: none; }
.topics__chip:hover, .topics__chip:focus-visible { background: var(--c-brand); border-color: var(--c-brand); }
@media (max-width: 899px) {
  .hero--search .hero__bg > img { object-position: 74% 35%; }
  .faqsearch { margin-top: 20px; }
}

/* the questions: the topic list on the left (it stays in view), the groups on the right */
.faqs__grid { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faqs__aside { position: sticky; top: 112px; display: grid; gap: 14px; justify-items: start; }
.faqs__nav { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.faqs__nav a { display: block; padding: 8px 0; font: var(--fw-bold) 1rem/1.3 var(--font-ui); color: var(--c-ink); text-decoration: none; }
.faqs__nav a:hover, .faqs__nav a:focus-visible { color: var(--c-brand-text); text-decoration: underline; }
.faqs__aside .btn { margin-top: 8px; }
.faqs__main { display: grid; gap: clamp(36px, 4vw, 52px); }
.faqs__group { scroll-margin-top: 110px; }
.faqs__group[hidden] { display: none; }
.faqs__topic { margin-bottom: 16px; font: var(--fw-black) clamp(1.5rem, 1.1rem + 1vw, 1.9rem)/1.15 var(--font-display); color: var(--c-ink); }
.faq__item[hidden] { display: none; }
.faqs__none { display: grid; gap: 10px; justify-items: start; padding: 26px; border: 1px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper-teal); }
.faqs__none[hidden] { display: none; }
.faqs__none-title { font: var(--fw-black) 1.25rem/1.25 var(--font-display); color: var(--c-ink); }
.faqs__count { min-height: 1px; font: var(--fw-medium) 14px/1.3 var(--font-ui); color: var(--c-ink-soft); }
@media (max-width: 899px) {
  .faqs__grid { grid-template-columns: minmax(0, 1fr); }
  .faqs__aside { display: none; }
}

/* the close: the owner on her phone at the photo's left, the words, the two buttons and Contact on its calm right */
.page-faq .close { --pos: 30%; --pos-m: 24%; --chip-x: 4%; --chip-y: 10%; }
.close__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.close__link { display: inline-flex; margin-top: 18px; color: var(--c-brand-on-ink); }
@media (max-width: 899px) {
  .close__actions .btn { flex: 1 1 100%; justify-content: center; }
}
