/* faq.css: the FAQ's header on its still photo, the questions by topic, and the close. */

/* ---------- hero ---------- */
.faq-hero { position: relative; overflow: hidden; background: var(--c-ink); }
.faq-hero__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 42%; }
.faq-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(16 19 23 / 0.96) 0%, rgb(16 19 23 / 0.9) 34%, rgb(16 19 23 / 0.34) 54%, rgb(16 19 23 / 0.06) 72%); }
.faq-hero__in { position: relative; padding-block: clamp(48px, 7vw, 88px); }
.faq-hero h1 { max-width: 11.5em; font-size: var(--fs-display); }
.faq-search { position: relative; width: min(500px, 100%); margin-top: 24px; }
.faq-search__icon { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--c-ink-soft); pointer-events: none; }
.faq-search__input { box-sizing: border-box; width: 100%; height: 56px; padding: 0 16px 0 46px; border: 0; border-radius: var(--radius-m); background: var(--c-paper); color: var(--c-ink); font: inherit; font-size: 1.0625rem; }
.faq-search__input::placeholder { color: var(--c-ink-soft); opacity: 1; }
.faq-search__input:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; max-width: 540px; margin-top: 14px; }
.topic { min-height: 44px; padding: 9px 14px; border: 1px solid var(--c-line-on-ink); border-radius: var(--radius-s); background: var(--c-ink-raised); color: var(--c-on-ink); font: inherit; font-size: var(--fs-ui); font-weight: 600; cursor: pointer; }
.topic:hover { border-color: var(--c-on-ink); }
.topic[aria-pressed="true"] { background: var(--c-paper); border-color: var(--c-paper); color: var(--c-ink); }
.topic:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
@media (max-width: 760px) {
  .faq-hero__photo { inset: 0 auto auto 0; width: 100%; height: 230px; object-position: 62% 42%; }
  .faq-hero__shade { background: linear-gradient(180deg, rgb(16 19 23 / 0) 130px, var(--c-ink) 230px); }
  .faq-hero__in { padding-block: 200px 36px; }
}

/* ---------- the questions ---------- */
.faq-list__in { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.faq-list__side { position: sticky; top: calc(var(--header-h) + 28px); display: grid; justify-items: start; gap: 12px; }
.faq-list__say { font-family: var(--font-display); font-stretch: var(--stretch-display); font-weight: 800; font-size: 1.5rem; line-height: 1.12; letter-spacing: -0.02em; max-width: 11em; }
.faq-group + .faq-group { margin-top: clamp(40px, 5vw, 64px); }
.faq-group__title { margin-bottom: 14px; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); scroll-margin-top: calc(var(--header-h) + 20px); }
.faq-count:empty { display: none; }
.faq-count { margin-bottom: 18px; color: var(--c-ink-soft); }
.faq-empty { font-size: 1.125rem; }
.qa__a a, .faq-empty a { color: var(--c-brand); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 899px) {
  .faq-list__in { grid-template-columns: minmax(0, 1fr); }
  .faq-list__side { position: static; order: 1; padding-top: 8px; }
}

/* ---------- close ---------- */
.faq-close__frame { position: relative; overflow: hidden; height: 560px; border-radius: var(--radius-l); background: var(--c-ink-raised); }
/* her hands at the laptop: at every width the crop stays under her face, so no stock face stands beside words about the team */
.faq-close__clip { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 100%; transform: scale(1.3); transform-origin: 100% 88%; }
.faq-close__card { position: absolute; right: 28px; top: 50%; translate: 0 -50%; box-sizing: border-box; width: min(470px, 46%); padding: 28px; display: grid; justify-items: start; gap: 12px; border-radius: var(--radius-l); background: var(--c-paper); color: var(--c-ink); box-shadow: var(--shadow-l); }
.faq-close__card h2 { font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.125rem); }
.faq-close__action { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.faq-close__link { color: var(--c-brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.faq-close__stop { left: 20px; top: 20px; }
/* narrower: the clip stands taller than the frame, on the frame's foot, so the crop still stops under her face; the card
   lies over her shirt and her hands stay clear below it */
@media (max-width: 1099px) {
  .faq-close__frame { height: 660px; }
  .faq-close__clip { inset: auto -1px -1px; height: 154%; object-position: 52% 50%; transform: none; }
  .faq-close__card { right: 20px; top: 20px; translate: none; width: min(470px, 62%); }
  .faq-close__stop { left: auto; right: 20px; top: auto; bottom: 20px; }
}
/* a phone: the card fills the width and the stop icon stands right under it, in view when the picture first shows */
@media (max-width: 599px) {
  .faq-close__frame { display: flex; flex-direction: column; }
  .faq-close__card { position: relative; right: auto; top: auto; margin: 12px 12px 0; width: auto; padding: 20px; }
  .faq-close__stop { position: relative; right: auto; bottom: auto; margin: 10px 12px 0 auto; }
}
