/* site\assets\css\pages\faq.css: the questions page (plan.md, FAQ). Tokens from design\system.css only; the questions
   are the site's .faq component (design\components.css). */

/* ---------- 1. the header: the photo grows out of the navy at its left edge, the words and the search over the navy ---------- */
.faq-hero { padding: 0 12px; }
.faq-hero__frame { position: relative; display: flex; align-items: center; min-height: clamp(460px, 52vh, 600px); border-radius: var(--radius-l); overflow: hidden; isolation: isolate; background: var(--c-navy); }
.faq-hero__img { position: absolute; z-index: -2; top: -1px; right: -1px; left: 28%; width: calc(72% + 1px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 28%; }
.faq-hero__shade { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, var(--c-navy) 28%, color-mix(in srgb, var(--c-navy) 82%, transparent) 38%, color-mix(in srgb, var(--c-navy) 34%, transparent) 54%, transparent 66%); }
.faq-hero__copy { position: relative; width: min(520px, 46%); margin-left: max(var(--gutter), calc((100% - var(--max-w)) / 2)); padding: 56px 0; color: var(--c-on-brand); }
.faq-hero__copy h1 { font-size: var(--fs-h1); color: var(--c-on-brand); }
.faq-hero__line { margin: 14px 0 26px; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.5; color: rgb(var(--c-paper-rgb) / .92); }
.faq-search { position: relative; max-width: 480px; margin: 0; }
.faq-search__icon { position: absolute; left: 20px; top: 50%; display: grid; color: var(--c-ink-soft); transform: translateY(-50%); pointer-events: none; }
.faq-search__input { width: 100%; height: 58px; padding: 0 22px 0 52px; border: 0; border-radius: 999px; background: var(--c-paper); color: var(--c-ink); font: 500 17px/1.2 var(--font-ui); box-shadow: var(--shadow-l); box-sizing: border-box; -webkit-appearance: none; appearance: none; }
.faq-search__input::placeholder { color: var(--c-ink-soft); opacity: 1; }
.faq-search__input:focus-visible { outline: 3px solid var(--c-sky); outline-offset: 3px; }
.faq-search__status { min-height: 1.45em; margin: 10px 0 0 22px; font-size: 14px; line-height: 1.45; color: var(--c-on-dark-soft); }
.faq-topics { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.faq-topic { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid rgb(var(--c-paper-rgb) / .4); border-radius: 999px; color: var(--c-on-brand); font: 600 14px/1.2 var(--font-ui); text-decoration: none; box-sizing: border-box; }
.faq-topic:hover { border-color: var(--c-paper); background: var(--c-paper); color: var(--c-navy); }
.faq-topic:focus-visible { outline: 3px solid var(--c-sky); outline-offset: 3px; }
/* the phone: the photo a band at the frame's top, her face in it; the words under it on the navy */
@media (max-width: 759px) {
  .faq-hero__frame { display: block; min-height: 0; padding-top: 250px; }
  .faq-hero__img { left: -1px; width: calc(100% + 2px); height: 300px; object-position: 58% 22%; }
  .faq-hero__shade { background: linear-gradient(180deg, transparent 0, transparent 150px, color-mix(in srgb, var(--c-navy) 86%, transparent) 230px, var(--c-navy) 290px); }
  .faq-hero__copy { width: auto; margin: 0; padding: 0 20px 26px; }
  .faq-search__status { margin-left: 18px; }
}

/* ---------- 2. the questions, by topic ---------- */
.faq-all { padding: clamp(56px, 7vw, 104px) 0 var(--section-y); }
.faq-group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px clamp(32px, 5vw, 80px); scroll-margin-top: 100px; }
.faq-group + .faq-group { margin-top: clamp(48px, 6vw, 88px); }
.faq-group[hidden], .faq[hidden], .faq-none[hidden] { display: none; }
.faq-group__title { position: sticky; top: 108px; align-self: start; padding-top: 18px; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); line-height: 1.2; }
.faq-none { max-width: 720px; margin: 0 auto; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-m); background: var(--c-brand-light); }
.faq-none__line { margin-bottom: 20px; font-size: 1.0625rem; line-height: 1.55; }
.faq-none__cta { margin-top: 0; }
.faq__a a { color: var(--c-brand-text); font-weight: 600; }
@media (max-width: 899px) {
  .faq-group { grid-template-columns: minmax(0, 1fr); }
  .faq-group__title { position: static; padding-top: 0; }
}

/* ---------- 3. the close: the woodworker's message beside the words, on the cool grey ---------- */
.faq-close { padding: var(--section-y) 0; background: var(--c-paper-alt); }
.faq-close__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.faq-close__frame { aspect-ratio: 1.12; }
.media-frame > .faq-close__clip { object-position: 45% 30%; }
.faq-close__copy h2 { font-size: var(--fs-h2); }
.faq-close__copy > p { max-width: 460px; margin: 16px 0 28px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.2rem); line-height: 1.55; color: var(--c-ink-soft); }
.faq-close__cta { margin-top: 0; }
.faq-close__alt { margin-top: 20px; }
.faq-close__alt a { color: var(--c-brand-text); }
@media (max-width: 899px) {
  .faq-close__in { grid-template-columns: minmax(0, 1fr); }
  .faq-close__frame { aspect-ratio: 4 / 3; }
}
