/* faq.css: the FAQ page. The question cards are the site's FAQ (home's) in components. */

/* ---------- the header: a still photo, its search and topics in a white card beside the owner ---------- */
.faq-hero { padding-block: 16px 0; }
.faq-hero__frame { position: relative; display: flex; justify-content: flex-end; align-items: center; box-sizing: border-box; min-height: 580px; padding: 36px; border-radius: var(--radius-xl); overflow: hidden; background: var(--c-paper-alt); }
.faq-hero__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 30% 0; }
.faq-hero__card { position: relative; z-index: 2; display: grid; gap: 18px; box-sizing: border-box; width: min(560px, 50%); padding: 36px 34px 32px; border-radius: var(--radius-l); background: var(--c-paper); box-shadow: var(--shadow-l); }
.faq-hero__card h1 { font-size: clamp(2.5rem, 1.5rem + 2.6vw, 3.75rem); line-height: 1.02; }
.faq-hero__search { position: relative; display: block; }
.faq-hero__search svg { position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; color: var(--c-ink-soft); transform: translateY(-50%); pointer-events: none; }
.faq-hero__search input { box-sizing: border-box; width: 100%; min-height: 58px; padding: 0 18px 0 50px; border: 1.5px solid var(--c-line); border-radius: 999px; background: var(--c-paper); color: var(--c-ink); font: 600 1.0625rem/1.2 var(--font-ui); }
.faq-hero__search input::placeholder { color: var(--c-ink-soft); opacity: 1; }
.faq-hero__search input:focus-visible { outline: 3px solid var(--c-brand-text); outline-offset: 2px; border-color: var(--c-brand); }
.faq-hero__topics { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-topic { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--c-line); border-radius: 999px; background: var(--c-paper); color: var(--c-ink); font: 700 var(--fs-small)/1 var(--font-ui); cursor: pointer; }
.faq-topic:hover { border-color: var(--c-brand); }
.faq-topic[aria-pressed="true"] { border-color: var(--c-ink); background: var(--c-ink); color: var(--c-paper); }
.faq-topic:focus-visible { outline: 3px solid var(--c-brand-text); outline-offset: 2px; }
@media (max-width: 860px) {
  .faq-hero__frame { display: block; min-height: 0; padding: 0; border-radius: 0; overflow: visible; background: none; }
  .faq-hero__photo { position: relative; inset: auto; width: 100%; height: 300px; border-radius: var(--radius-l); object-position: 34% 18%; }
  .faq-hero__card { width: auto; margin-top: 4px; padding: 18px 0 8px; border-radius: 0; background: none; box-shadow: none; }
  .faq-hero__card h1 { font-size: clamp(2.5rem, 11vw, 3.25rem); }
}

/* ---------- the questions ---------- */
.faq-list { padding-block: var(--section-y); }
.faq-list__wrap { display: grid; gap: var(--space-6); max-width: calc(860px + 2 * var(--gutter)); }
.faq-group { display: grid; gap: 16px; }
.faq-group h2 { font-size: clamp(1.75rem, 1.3rem + 1.3vw, 2.25rem); }
.faq-group[hidden], .faq-list details[hidden] { display: none; }
.faq-list__none { font-size: 1.125rem; color: var(--c-ink-soft); }

/* ---------- the close: the owner's bright shop, the chat over it, the words beside it ---------- */
.faq-close { padding-block: 0 var(--section-y); }
.faq-close__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: var(--space-5); align-items: center; }
.faq-close__stage { position: relative; height: 560px; border-radius: var(--radius-l); overflow: hidden; background: var(--c-line); }
.faq-close__stage > img { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 60% 40%; }
.faq-close__slot { left: 14px; bottom: 14px; width: 340px; height: 330px; display: flex; align-items: flex-end; }
.faq-close__slot > [data-scene] { width: 100%; height: auto; }
.faq-close__card { display: grid; justify-items: start; gap: 14px; }
.faq-close__card h2 { font-size: clamp(1.9rem, 1.3rem + 1.7vw, 2.75rem); }
.faq-close__card > p { color: var(--c-ink-soft); font-size: 1.0625rem; line-height: 1.5; }
.faq-close__link { font-weight: 700; color: var(--c-brand-text); }
@media (max-width: 960px) {
  .faq-close__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .faq-close__stage { height: 600px; }
  .faq-close__stage > img { object-position: 68% 0; }
  .faq-close__slot { left: 8px; right: 8px; bottom: 8px; width: auto; height: 300px; }
}
