/* FAQ (plan.md, "FAQ"): Zeus's colors (body.page-zeus). Grounds: hero photo (dark), faq white, close footage. Tokens only. */

/* ---------- hero: the owner at her desk, the search, the strike that answers ---------- */
.faqh { position: relative; isolation: isolate; min-height: min(84vh, 720px); display: grid; align-items: stretch; overflow: hidden; padding-block: clamp(56px, 7vw, 96px) clamp(40px, 4vw, 56px); background: var(--c-night); color: var(--c-on-night); }
.faqh__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.faqh__lean { position: absolute; inset: -14px; }
.faqh__img { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 30%; }
.faqh__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 12 16 / 0.94) 0%, rgb(10 12 16 / 0.82) 36%, rgb(10 12 16 / 0.18) 62%, rgb(10 12 16 / 0.05) 100%), linear-gradient(0deg, rgb(10 12 16 / 0.55), transparent 35%); }
.faqh__in { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.faqh__title { margin: 0; font-size: var(--fs-h1); line-height: var(--lh-tight); max-width: 13ch; }
.faqh__lede { margin: var(--space-4) 0 0; font-size: var(--fs-lede); color: var(--c-on-night); }
.faqh__search { position: relative; display: flex; align-items: center; margin-top: var(--space-5); max-width: 480px; }
.faqh__search svg { position: absolute; z-index: 1; left: 16px; color: var(--c-on-night-soft); pointer-events: none; }
.faqh__search input { width: 100%; height: 56px; padding: 0 18px 0 48px; border-radius: var(--radius-m); border: 1px solid var(--glass-edge); background: var(--glass-strong); color: var(--c-on-night); font: 500 var(--fs-body)/1 var(--font-ui);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out); }
.faqh__search input::placeholder { color: var(--c-on-night-soft); }
.faqh__search input:focus { outline: none; border-color: var(--c-cyan); box-shadow: 0 0 0 3px rgb(34 195 238 / 0.35); }
.faqh__count { min-height: 1.4em; margin: 10px 0 0; font-size: var(--fs-small); color: var(--c-cyan); }
.faqh__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: var(--space-3) 0 0; padding: 0; max-width: 520px; }
.faqh__chip { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--glass-edge); background: rgb(255 255 255 / 0.06); color: var(--c-on-night); font: 600 var(--fs-small)/1 var(--font-ui); text-decoration: none; transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.faqh__chip:hover, .faqh__chip:focus-visible { background: rgb(34 195 238 / 0.16); border-color: var(--c-cyan); }
.faqh__stage { position: relative; justify-self: end; align-self: end; width: min(100%, 460px); } /* low on the right, under her face */
.scene.faqh__scene { width: 100%; height: 260px; }
.faqh__stop { top: -48px; right: 0; }
/* phone and tablet: her photo as a band on top, the answer card standing on its lower part under her chin (36% of the
   band; her chin is at about 59% of it), then the words and the search */
@media (max-width: 900px) {
  .faqh { --band: clamp(340px, 56vw, 460px); min-height: 0; padding-top: 0; align-items: start; }
  .faqh__media { position: relative; z-index: 0; height: var(--band); }
  .faqh__shade { background: linear-gradient(0deg, rgb(10 12 16 / 0.7) 0%, rgb(10 12 16 / 0.15) 40%, transparent 60%); }
  .faqh__img { object-position: 62% 0%; }
  .faqh__in { position: relative; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .faqh__stage { order: -1; justify-self: start; width: 100%; max-width: 460px; margin-top: calc(-0.36 * var(--band)); }
  .scene.faqh__scene { height: 210px; }
  .faqh__stop { top: auto; bottom: -44px; right: 0; }
}
/* member fix (25 Nov, third): Paula: "For the FAQ, lets go with photo 15." The header shows faq-opt-15 (.faqh--pick on
   #hero, src\pages\faq.mjs), framed exactly as photo 15 was on the photo options page (50% 20%; 760 px and under 100% 20%,
   object-position in the photo's own frame) and, on a computer, lighter on the left as she asked (25 Nov, second): a
   lighter shade from the left (the standard one is 0.94 at the edge and 0.82 at 36%), the photo at brightness 1 (its
   --lift there) with a touch of contrast and color, and the words with a soft shade of their own, as in the home header
   (components.css, .hero__words). The phone header keeps the standard shade: there the words sit under the photo. These
   rules came from photo-options.css (.phopts--lift), taken out with that page the same day. */
.faqh--pick .faqh__img { object-position: 50% 20%; }
@media (max-width: 760px) { .faqh--pick .faqh__img { object-position: 100% 20%; } }
@media (min-width: 901px) {
  .faqh--pick .faqh__shade { background: linear-gradient(90deg, rgb(10 12 16 / 0.34) 0%, rgb(10 12 16 / 0.24) 36%, rgb(10 12 16 / 0.05) 62%, rgb(10 12 16 / 0) 100%), linear-gradient(0deg, rgb(10 12 16 / 0.4), transparent 30%); }
  .faqh--pick .faqh__img { filter: brightness(1) contrast(1.04) saturate(1.05); }
  .faqh--pick .faqh__copy { position: relative; isolation: isolate; }
  .faqh--pick .faqh__copy::before { content: ''; position: absolute; z-index: -1; inset: -40px -64px -36px -72px; background: var(--shade-words); border-radius: 56px; filter: blur(44px); pointer-events: none; }
  .faqh--pick .faqh__title, .faqh--pick .faqh__lede { text-shadow: 0 2px 22px rgb(10 12 16 / 0.6); }
  .faqh--pick .faqh__title em { text-shadow: none; } /* a shadow under a word painted by background-clip would darken its gradient */
}

/* ---------- faq: the topics on the left, the questions on the right ---------- */
.faqp__in { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faqp__nav { position: sticky; top: calc(var(--header-h) + 24px); }
.faqp__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; border-left: 2px solid var(--c-day-line); }
.faqp__nav a { display: block; margin-left: -2px; padding: 8px 0 8px 16px; border-left: 2px solid transparent; color: var(--c-on-day-soft); font: 600 var(--fs-ui)/1.3 var(--font-ui); text-decoration: none; }
.faqp__nav a:hover { color: var(--c-on-day); }
.faqp__nav a[aria-current] { color: var(--c-on-day); border-left-color: var(--c-blue); }
.faqp__group + .faqp__group { margin-top: clamp(40px, 5vw, 64px); }
.faqp__topic { margin: 0 0 var(--space-3); background: none; color: var(--c-on-day); -webkit-text-fill-color: currentColor; font-size: var(--fs-h3); line-height: var(--lh-head); scroll-margin-top: calc(var(--header-h) + 24px); }
.faqp__group .faq__item { border-top: 1px solid var(--c-day-line); }
.faqp__group .faq__item:last-child { border-bottom: 1px solid var(--c-day-line); }
.faqp__group .faq__q { font-size: 1.15rem; }
.faqp__empty { margin: 0; padding: 24px; border-radius: var(--radius-m); background: var(--c-paper-alt); color: var(--c-on-day); }
.faqp__empty a { color: var(--c-day-link); }
@media (max-width: 900px) { .faqp__in { grid-template-columns: minmax(0, 1fr); } .faqp__nav { display: none; } }

/* ---------- close: an owner smiling at an answer on his phone ---------- */
.faq-close { min-height: min(80vh, 680px); display: grid; align-items: center; padding-block: calc(var(--edge-h) + 88px) clamp(72px, 8vw, 120px); background-color: var(--c-night); }
.faq-close__media { inset: var(--edge-h) 0 0; overflow: hidden; }
.faq-close__drift { position: absolute; inset: -48px 0; }
.faq-close .band__video { object-position: 40% 40%; }
.faq-close__shade { position: absolute; inset: 0; background: linear-gradient(270deg, rgb(10 12 16 / 0.92) 0%, rgb(10 12 16 / 0.7) 40%, rgb(10 12 16 / 0.15) 66%); }
.faq-close__in { position: relative; display: grid; justify-items: end; }
.faq-close__copy { width: min(100%, 520px); }
.faq-close .band__lede { max-width: 40ch; }
.faq-close__box { margin-top: var(--space-5); width: max-content; max-width: 100%; }
.faq-close .bolt { left: 30%; z-index: -1; }
.faq-close__card { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 20px; border-radius: var(--radius-l); background: var(--glass-strong); border: 1px solid var(--glass-edge); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.faq-close__link { color: var(--c-on-night); font: 600 var(--fs-ui)/1.2 var(--font-ui); text-underline-offset: 4px; }
.faq-close__link:hover { color: var(--c-cyan); }
@media (max-width: 760px) {
  .faq-close { min-height: 720px; align-items: end; }
  .faq-close .band__video { object-position: 40% 30%; }
  .faq-close__shade { background: linear-gradient(0deg, rgb(10 12 16 / 0.94) 0%, rgb(10 12 16 / 0.7) 46%, rgb(10 12 16 / 0.1) 72%); }
  .faq-close__in { justify-items: start; }
}
/* member fix (23 Nov, her reply of 23 Nov, 23:33): "For the picture at the bottom of the FAQ page lets use number 7." The close
   now plays photo 7 (faq-close-7, the tradesman answering his phone), mirrored and framed exactly as it was on the photo
   options page (its face sits right of center, under the words otherwise; object-position works in the clip's own,
   unmirrored frame). The options page and the clips she didn't pick were taken out on 23 Nov (_released-2026-11-23\) */
.faq-close--pick .band__video { transform: scaleX(-1); object-position: 65% 30%; }
@media (max-width: 760px) { .faq-close--pick .band__video { object-position: 68% 25%; } }
