/* faq.css: the FAQ page. A still header (a bakery owner reading her answers, relieved) under the navy shade, the
   search and the topics on a white card across its seam; every question by topic; the close as an end band over a
   plumber at work, the site's diamond card landing over it. Only the tokens. */

/* ---------- hero ---------- */
.faq-hero { position: relative; display: flex; align-items: center; min-height: clamp(460px, 64vh, 620px); padding: 64px 0 120px; background: var(--c-ink); color: var(--c-on-ink); }
.faq-hero__media { position: absolute; inset: 0; overflow: hidden; }
/* the owner sits right of the words on a plain wall; her hands and sheets stay well above the search card's seam */
.faq-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 30%; }
/* the shelves at the left stay under a clean navy; it clears quickly, before her sheets and her face */
.faq-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 97%, transparent) 0%, color-mix(in srgb, var(--c-ink) 95%, transparent) 30%, color-mix(in srgb, var(--c-ink) 60%, transparent) 42%, color-mix(in srgb, var(--c-ink) 22%, transparent) 52%, transparent 64%); }
.faq-hero__in { position: relative; z-index: 1; width: 100%; }
.faq-hero__copy { max-width: 540px; }
.faq-hero__title { margin: 0; font: 700 var(--fs-h1)/var(--lh-tight) var(--font-display); letter-spacing: var(--track-display); text-wrap: balance; color: var(--c-on-ink); }
.faq-hero__lead { margin: 18px 0 0; font-size: var(--fs-lead); line-height: 1.5; color: var(--c-on-ink-soft); }
/* the card across the photo's bottom seam */
.faq-hero__seam { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; transform: translateY(50%); }
.faq-find { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 18px 22px; border: 1px solid var(--c-line); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-l); color: var(--c-ink); }
.faq-find__box { display: flex; align-items: center; gap: 10px; flex: 1 1 320px; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--c-line); border-radius: var(--radius-m); background: var(--c-paper-alt); color: var(--c-ink-soft); cursor: text; }
.faq-find__box:focus-within { border-color: var(--c-brand); outline: 3px solid color-mix(in srgb, var(--c-brand) 22%, transparent); }
.faq-find__box svg { flex: none; }
.faq-find__box input { flex: 1; min-width: 0; height: 48px; padding: 0; border: 0; background: none; color: var(--c-ink); font: 500 var(--fs-ui)/1 var(--font-ui); outline: none; }
.faq-find__box input::placeholder { color: var(--c-ink-soft); opacity: 1; }
.faq-find__topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.faq-chip { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-paper); color: var(--c-ink); font: 600 0.9375rem/1 var(--font-ui); text-decoration: none; transition: border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.faq-chip:hover { border-color: var(--c-brand); color: var(--c-brand-text); }
.faq-chip:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 2px; }

/* ---------- every question, by topic ---------- */
.faq-page { padding-top: clamp(110px, 11vw, 140px); }
.faq-page__in { max-width: 1040px; }
.faq-page__count { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 clamp(28px, 3vw, 40px); color: var(--c-ink-soft); font-size: var(--fs-small); }
.faq-page__none a { font-weight: 600; color: var(--c-brand-text); }
.faq-page__none[hidden] { display: none; }
.faq-topic { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); column-gap: clamp(24px, 4vw, 56px); align-items: start; scroll-margin-top: calc(var(--header-h) + 24px); }
.faq-topic[hidden] { display: none; }
.faq-topic + .faq-topic { margin-top: clamp(40px, 5vw, 56px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--c-line); }
.faq-topic__title { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; font: 600 var(--fs-h3)/1.25 var(--font-display); letter-spacing: -0.01em; color: var(--c-ink); }
.faq-topic__title::before { content: ""; flex: none; width: 9px; height: 9px; background: var(--c-accent); transform: rotate(45deg); }
.faq-page .faq[hidden] { display: none; }

/* ---------- close: an end band over an owner's good day; the site's one move (a filled diamond on a white card)
   lands over the footage, clear of the owner's face and hands ---------- */
.faq-close { --pos: 50% 24%; }
.faq-close__in { position: relative; }
.faq-close .faq-close__ask { color: var(--c-brand-on-ink); }
.faq-close__seq { position: absolute; right: var(--gutter); bottom: 0; display: grid; justify-items: start; gap: 10px; width: min(330px, 40%); }
.faq-close__seq [data-kit-at] { opacity: var(--kit-in, 1); transform: translateY(calc((1 - var(--kit-in, 1)) * 12px)); }
.faq-close__card { display: flex; align-items: center; gap: 14px; margin: 0; padding: 16px 20px; border: 1px solid var(--c-line); border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-l); color: var(--c-ink); }
.faq-close__card svg { flex: none; width: 18px; height: 18px; fill: var(--c-accent); }
.faq-close__card span { display: grid; gap: 3px; }
.faq-close__card b { font: 700 1.0625rem/1.25 var(--font-display); letter-spacing: -0.01em; }
.faq-close__card small { font: 500 0.875rem/1.3 var(--font-ui); color: var(--c-ink-soft); }
.faq-close__yes { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 14px; border-radius: 999px; background: var(--c-ink); color: var(--c-on-ink); font: 700 14px/1.25 var(--font-ui); box-shadow: var(--shadow-m); }
.faq-close__yes svg { flex: none; color: var(--c-accent); }

@media (max-width: 899.98px) {
  /* stacked: the photo fills the top 460 px, its top 80 px of wall cut, so her face and her sheets sit above the words;
     the shade turns navy under the words, set in px from the bottom so a third headline line still sits on navy */
  .faq-hero { align-items: flex-end; min-height: 560px; padding: 0 0 150px; }
  .faq-hero__media { bottom: auto; height: 460px; }
  .faq-hero__media img { top: -80px; height: calc(100% + 80px); object-position: 62% 50%; }
  .faq-hero__shade { background: linear-gradient(0deg, var(--c-ink) 0, var(--c-ink) 270px, color-mix(in srgb, var(--c-ink) 94%, transparent) 320px, color-mix(in srgb, var(--c-ink) 40%, transparent) 360px, transparent 395px); }
  .faq-topic { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .faq-topic__title { margin-top: 0; }
}
/* the end band stacks at 760 px (components.css): the card then lands on the photo's foot at the left, over the
   garage floor, clear of the plumber */
@media (max-width: 760px) {
  .faq-close__seq { top: auto; bottom: calc(100% + 12px); left: var(--gutter); right: var(--gutter); width: auto; }
}
@media (max-width: 699.98px) {
  .faq-find { padding: 14px; }
  .faq-chip { min-height: 38px; padding: 0 13px; font-size: 0.875rem; }
  .faq-page { padding-top: 150px; }
}
