/* The FAQ's layout, Side by Side: jump links for the four parts, then a ledger with each question in the left lane
   and its answer in the right lane, either side of a center line. The lanes stack on phones. Each question carries
   its part's color: The Basics (set here), Privacy, Security, or Personalization (set in calm.css). Loaded after
   calm.css, by the FAQ and the Legal page. */
.basics {
  --c: var(--muted);
}
.faq {
  padding-bottom: 88px;
}

/* Opening */
.faq-open {
  position: relative;
  display: grid;
  gap: 18px;
  justify-items: start;
  padding-block: 48px 36px;
}
.faq-open::before {
  content: "";
  position: absolute;
  inset: -10% 40% 10% -18%;
  background: radial-gradient(closest-side, var(--glow-blue), transparent);
  filter: blur(44px);
  opacity: 0.6;
  pointer-events: none;
}
.faq-open > * {
  position: relative;
}
.faq-open h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.02;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.faq-open .lede {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 38rem;
}

/* Jump links: one for each part, leading to that part's first question. */
.faq-jump {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 32px;
}
.faq-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}
.faq-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}
.faq-chip:hover {
  border-color: var(--c);
}

/* The ledger. A question stays in view at the top of its row while a long answer scrolls past. The row under the
   pointer, holding the keyboard's place, or just jumped to gets a faint wash in its part's color. */
.faq-ledger {
  position: relative;
  border-top: 1px solid var(--line);
}
.faq-ledger::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.faq-qa {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 56px;
  row-gap: 12px;
  padding: 32px 20px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + var(--header) + 8px);
}
.faq-qa:hover,
.faq-qa:focus-within,
.faq-qa:target {
  background: color-mix(in srgb, var(--c) 8%, transparent);
}
.faq-qa h2 {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + var(--header) + 20px);
  align-self: start;
  min-width: 0;
  padding-left: 26px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.18;
  font-weight: 300;
}
.faq-qa h2::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.48em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c);
}
.faq-a {
  min-width: 0;
  display: grid;
  gap: 12px;
  align-content: start;
  color: var(--muted);
  font-weight: 300;
  font-size: 1.1rem;
}
/* A leading "Yes." or "No.", set larger so the short answer is seen first. */
.faq-yn {
  font-size: 1.7em;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-right: 0.12em;
}
@media (max-width: 760px) {
  .faq {
    padding-bottom: 64px;
  }
  .faq-ledger::before {
    display: none;
  }
  .faq-qa {
    grid-template-columns: minmax(0, 1fr);
    padding: 26px 4px;
  }
  .faq-qa h2 {
    position: relative;
    top: auto;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .faq-chip {
    transition: border-color 0.2s;
  }
  .faq-qa {
    transition: background 0.3s;
  }
}
