/* /for-venues/faq/ - page-specific styles. Owner: DEV-4.
   House rules: brand tokens only (var(--green/--cream/--paper/--ink/
   --highlight/--dark), see base.css); prefix every new class in this file
   with `faq-`; shared components (.sect, .cards, .pill, .vchapter,
   .icard, .ph ...) live in base.css/page.css and are reused, never edited.
   Any animation must be wrapped so prefers-reduced-motion gets a static
   end state. */

/* ===== the ledger =========================================================

   Nine questions, four groups, every answer open from first paint. The whole
   page is one component: a group kicker in its own column, then a hairline
   per question with the question at statement weight and the answer quiet
   underneath. Nothing collapses, so nothing here is a control - which is
   also why there is no :focus-within branch below (unlike .card, these rows
   contain no links to focus). The hover treatment is gated to pointer
   devices for the reason page.css documents: iOS parks :hover on the
   last-tapped element and leaves it there.
   ========================================================================= */

.faq-group {
  padding-top: 7.5svh;
  padding-bottom: 7.5svh;
}

.faq-group__grid {
  display: grid;
  gap: clamp(20px, 2.6vw, 34px);
}

@media (min-width: 901px) {
  .faq-group__grid {
    /* the kicker column is sized off "the practical ones" - the longest of
       the four at 0.12em tracking - so no group label ever wraps */
    grid-template-columns: minmax(210px, 0.26fr) minmax(0, 1fr);
    column-gap: clamp(30px, 5vw, 90px);
  }

  /* the kicker rides its own group down the scroll, so a reader deep in a
     long answer can still see which part of the conversation they are in.
     Cleared past the fixed nav (28px padding + a 54px pill).

     `align-self: start` is load-bearing, not tidying: a grid item stretches
     to its whole area by default, and a sticky box that already fills its
     containing block has nowhere to travel - it just scrolls away with the
     group. Measured stuck at -132px before this line. */
  .faq-kicker {
    position: sticky;
    top: 122px;
    align-self: start;
  }
}

/* the group name, set as a real heading (the eyebrow-label idiom - small
   tracked caps behind a short rule - was cut across the venues section on
   2026-08-20; these four survive because they carry the ledger's h2 job,
   so they dress like headings now instead of labels) */
.faq-kicker {
  font-size: clamp(19px, 1.6vw, 27px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.faq-list { list-style: none; }

.faq-qa {
  position: relative;
  display: grid;
  grid-template-columns: clamp(26px, 2.6vw, 40px) minmax(0, 1fr);
  column-gap: clamp(12px, 1.3vw, 20px);
  padding: clamp(20px, 2.4vw, 34px) 0;
}

/* explicit placement, no auto-flow: the index spans both rows so it stays
   pinned to the question it belongs to however the answer wraps */
.faq-qa__n { grid-column: 1; grid-row: 1 / span 2; }
.faq-q     { grid-column: 2; grid-row: 1; }
.faq-a     { grid-column: 2; grid-row: 2; }

/* ::before is the ledger rule; ::after is the marker sweeping ALONG it. Same
   --highlight, same easing and same left origin as the walkthrough's row
   marker in page.css - on the rule rather than behind the label, so the
   question you are reading gets underscored by its group instead of boxed. */
.faq-qa::before,
.faq-qa::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}

.faq-qa::before {
  height: 1.5px;
  background: rgba(38, 37, 31, 0.18);
}

.faq-qa::after {
  height: 3px;
  background: var(--highlight);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.77, 0, 0.18, 1);
}

.faq-qa__n {
  /* optically aligned to the question's cap height, not its line box */
  padding-top: 0.45em;
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 700;
  letter-spacing: 0.02em;
  /* 4.8:1 on paper - decorative, but it is still visible text */
  color: rgba(38, 37, 31, 0.68);
  transition: color 0.3s ease;
}

.faq-q {
  font-weight: 700;
  font-size: clamp(19px, 1.85vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: 20em;
}

.faq-a {
  margin-top: clamp(10px, 1.1vw, 16px);
  max-width: 42em;
  /* tracks .sect__copy's floor rather than sitting under it - at 1280 a
     15px answer read as small print beside a 24px question */
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.6;
  color: rgba(38, 37, 31, 0.8); /* 6.9:1 on paper */
}

@media (hover: hover) {
  .faq-qa:hover::after { transform: scaleX(1); }
  .faq-qa:hover .faq-qa__n { color: var(--ink); }
}

/* ---------- the security group on the dark stage ----------

   One question, one surface change. The component is identical; only the ink
   flips, the same way the for-venues chapters recolour .card rather than
   forking it. */

.vchapter--dark .faq-kicker { color: var(--cream); }
.vchapter--dark .faq-qa::before { background: rgba(243, 236, 218, 0.26); }
.vchapter--dark .faq-qa__n { color: rgba(243, 236, 218, 0.62); } /* 4.9:1 */
.vchapter--dark .faq-q { color: var(--cream); } /* 9.9:1 */
.vchapter--dark .faq-a { color: rgba(243, 236, 218, 0.82); } /* 7.3:1 */

@media (hover: hover) {
  .vchapter--dark .faq-qa:hover .faq-qa__n { color: var(--cream); }
}

/* ---------- close ---------- */

.faq-close { padding-bottom: 14svh; }

.faq-close__cta { margin-top: clamp(28px, 5svh, 54px); }

/* ---------- reduced motion ----------
   The sweep and the index tint are the states themselves, so switching the
   motion off leaves them landing instantly rather than removing them. */

@media (prefers-reduced-motion: reduce) {
  .faq-qa::after,
  .faq-qa__n { transition: none; }
}

/* ---------- mobile ---------- */

@media (max-width: 900px) {
  /* the kicker stops being a column and becomes the group's header row */
  .faq-group { padding-top: 5svh; padding-bottom: 5svh; }
  .faq-group__grid { gap: clamp(14px, 2.4vw, 22px); }
}

@media (max-width: 640px) {
  /* the index keeps its own column down to 320px - 24px + a 10px gutter is
     34px of the 275px a 320 screen leaves inside .sect, and stacking it
     above each question would cost nine extra lines instead */
  .faq-qa {
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 10px;
    padding: 20px 0;
  }

  .faq-qa__n { font-size: 12px; padding-top: 0.3em; }

  /* the desktop clamp bottoms out at 19px here, which is under weight for
     the page's only real headings on a phone */
  .faq-q { font-size: clamp(19px, 5.6vw, 25px); max-width: none; }

  .faq-a { line-height: 1.55; }
}
