/* The FAQ page's own layout: it places and sizes its parts with the tokens of system.css. A calm header on a still
   porch photo with the search and the topics, every question by topic on the paper, the close. */

/* ---------- hero: the owner on her porch at the right, the words, the search and the topics on the left ---------- */
.faq-hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(620px, 80svh, 780px); overflow: hidden; background: var(--c-ink); color: var(--c-on-ink); }
.faq-hero__photo { object-position: 72% 38%; }
.faq-hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 60%, transparent) 0%, transparent 24%),
              linear-gradient(90deg, color-mix(in srgb, var(--c-ink) 92%, transparent) 0%, color-mix(in srgb, var(--c-ink) 74%, transparent) 36%, color-mix(in srgb, var(--c-ink) 18%, transparent) 64%, transparent 100%); }
.faq-hero__in { position: relative; display: grid; gap: 20px; padding-top: 150px; padding-bottom: clamp(64px, 7vw, 96px); }
.faq-hero__in > * { max-width: 600px; }
.faq-hero__title { font-size: clamp(2.6rem, 1.2rem + 3.6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.03em; }
.faq-hero__line { font-size: 1.1875rem; line-height: 1.55; color: color-mix(in srgb, var(--c-on-ink) 90%, transparent); }
.faq-search { position: relative; margin-top: 8px; }
.faq-search__icon { position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; transform: translateY(-50%); color: var(--c-ink-soft); pointer-events: none; }
.faq-search__input { box-sizing: border-box; width: 100%; height: 62px; padding: 0 22px 0 54px; border: 0; border-radius: var(--radius-pill); background: var(--c-paper); color: var(--c-ink); font: 500 1.0625rem/1 var(--font-ui); box-shadow: 0 22px 50px -24px rgb(2 20 16 / .65), inset 0 0 0 1px var(--c-line); }
.faq-search__input::placeholder { color: var(--c-ink-soft); opacity: 1; }
.faq-search__input:focus-visible { outline: 3px solid var(--c-brand); outline-offset: 3px; }
.faq-topics { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 0; padding: 0; list-style: none; }
.faq-topics__link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px 0 16px; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--c-ink) 50%, transparent); box-shadow: inset 0 0 0 1px var(--glass-line); color: var(--c-on-ink); font-weight: 600; text-decoration: none; transition: background-color var(--dur-fast), box-shadow var(--dur-fast); }
.faq-topics__link span { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; background: var(--c-brand); color: var(--c-on-brand); font-size: .8125rem; font-weight: 700; }
.faq-topics__link:hover { background: color-mix(in srgb, var(--c-ink-2) 80%, transparent); box-shadow: inset 0 0 0 1.5px var(--c-brand); }
@media (max-width: 760px) {
  /* on the phone her porch at the top, the words on the deep emerald under it */
  .faq-hero { min-height: 0; }
  .faq-hero__photo { height: 420px; bottom: auto; object-position: 84% 30%; }
  /* the photo's top is her white porch: the shade darkens it under the bar, so the logo's ivory "MEDIA" and the menu
     button read */
  .faq-hero__shade { background: linear-gradient(180deg, color-mix(in srgb, var(--c-ink) 76%, transparent) 0%, color-mix(in srgb, var(--c-ink) 44%, transparent) 9%, transparent 19%, transparent 30%, color-mix(in srgb, var(--c-ink) 88%, transparent) 46%, var(--c-ink) 56%); }
  .faq-hero__in { padding-top: 330px; gap: 16px; }
  .faq-hero__title { font-size: clamp(2.3rem, 1.4rem + 4vw, 2.9rem); }
  .faq-hero__line { font-size: 1.0625rem; }
  .faq-search__input { height: 56px; }
}

/* ---------- every question, by topic ---------- */
.faq-all { padding-block: var(--section-y); background: var(--c-paper); }
.faq-all__grid { display: grid; gap: clamp(48px, 5vw, 72px); }
.faq-group { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; scroll-margin-top: 110px; }
.faq-group[hidden], .faq-group .faq__item[hidden] { display: none; }
.faq-group__title { font-size: clamp(1.5rem, 1.1rem + 1vw, 1.95rem); }
.faq-none { font-size: 1.125rem; color: var(--c-ink-soft); }
.faq-none[hidden] { display: none; }
.faq-none a { color: var(--c-brand-text); font-weight: 600; }
@media (max-width: 900px) {
  .faq-group { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* ---------- close: the owner turning the sign to open; the chat, or a line to the team ---------- */
.faq-close .band__film { object-position: 64% 40%; }
.faq-close__alt a { color: var(--c-on-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .faq-close .band__film { height: 440px; bottom: auto; object-position: 66% 30%; } }
