/* ============================================================
   FAQ PAGE — a standalone page, laid out the way tolans.com/faq
   lays its out: an oversized FAQ title, a hairline under it, then
   category headings, and one white rounded card per question with
   the question on the left and the answer on the right.

   The header and footer are the site's own, markup and all — this
   page links header.css / footer.css and nothing else, so anything
   that changes there changes here.

   🔴 It does NOT link intro.css. That file holds the opener, and
   part of the opener is `.site-header { opacity: 0 }` with a 1.6s
   fade — inherited onto a page with no opener, the bar would simply
   be invisible for the first second and a half.
   ============================================================ */

.faqp {
  /* 🔴 --page-bg，不是写死的 --nes-sand。**当前解析结果与写死那版一模一样**
     （--page-bg 就是 --nes-sand），改的是它会不会跟着走。

     2026-09-05 全站底色试改白的那一轮抓到的：写死的那版会让 faq 正文区留在
     sand 上，而它上下的 body 已经变白——接缝一条色带，正是 styles.css 里
     「ONE GROUND」那段存在的理由。底色那次改动已按用户要求退回 sand，这一行
     留着，因为它是那条规矩的正确写法，且退回后零视觉差异。 */
  background: var(--page-bg);
  color: var(--nes-ink);
  /* the bar is fixed, so the title has to start below it */
  padding: clamp(7rem, 15vh, 11rem) 0 clamp(5rem, 12vh, 9rem);
}

.faqp__inner {
  width: 100%;
  max-width: 77.5rem;
  margin-inline: auto;
  /* the header's own gutter, so the title lines up with the logo */
  padding-inline: var(--gutter);
}

.faqp__title {
  font-family: var(--font--primary);
  font-size: clamp(3.5rem, 10vw, 9rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.04em;
  margin: 0;
}

.faqp__rule {
  margin: clamp(2rem, 4vw, 3.5rem) 0 0;
  border-top: 1px solid color-mix(in srgb, var(--nes-ink) 22%, transparent);
}

/* ---------- a category ---------- */
.faqp__group {
  font-family: var(--font--primary);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.25rem, 2vw, 1.75rem);
}

.faqp__cards {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* ---------- one question ---------- */
.faqp__card {
  background: var(--nes-white);
  border-radius: clamp(1.25rem, 2vw, 1.75rem);
  padding: clamp(1.5rem, 3vw, 2.75rem);
  display: grid;
  gap: 1rem;
}

.faqp__q {
  font-family: var(--font--primary);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-wrap: pretty;
  margin: 0;
}

.faqp__a p {
  font-family: var(--font--body);
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.6;
  color: color-mix(in srgb, var(--nes-ink) 68%, transparent);
  margin: 0;
}
.faqp__a p + p { margin-top: 1em; }
.faqp__a a { color: inherit; text-decoration: underline; }

.faqp__note {
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  font-family: var(--font--body);
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  line-height: 1.6;
  color: color-mix(in srgb, var(--nes-ink) 55%, transparent);
}

/* the two-column card only once there is room for two real columns —
   below this the question would set on one word per line */
@media (min-width: 900px) {
  .faqp__card {
    grid-template-columns: minmax(0, .42fr) minmax(0, .58fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }
}

/* 🔴 THE FIRST CROSS-PAGE ANCHOR ON THIS SITE. device.html's privacy panel
   links to /faq#recordings, and .site-header is position:fixed (header.css:7)
   while nothing anywhere sets scroll-margin or scroll-padding — so a bare id
   drops the card under the bar and the visitor lands on a card whose question
   is cut off, which is the one line they followed the link to read.

   The bar is clamp(20px, 2.6vw, 34px) of padding top and bottom around ~40px
   of content, so ~80–108px, less in the compact state. This clears the tall
   end with room to spare rather than sitting flush against it.

   ⚠️ ESTIMATED, not measured. Check it on a real handset and a wide desktop
   before trusting the number — it was derived from the padding clamp, not from
   a measured bar. */
.faqp__card[id] { scroll-margin-top: clamp(6.5rem, 13vh, 9rem); }
