/* Public FAQ page.
   Reuses the leaderboard base and the VIP Club shell (hero, section, FAQ
   accordion, final CTA). Adds only the layout and navigation for /faq. */

.faq-main {
  padding-top: 53px;
  position: relative;
  z-index: 1;
}

.faq-body {
  padding-top: 8px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

/* Category navigation */
.faq-nav {
  position: sticky;
  top: 84px;
  padding: 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.055),
    rgba(255, 255, 255, 0.015)
  );
}

.faq-nav-title {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.faq-nav-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease,
    border-color 0.2s ease;
}

.faq-nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.faq-nav-link:focus-visible {
  outline: 2px solid #00ffcc;
  outline-offset: 2px;
}

.faq-nav-link.is-active {
  color: #00ffcc;
  background: rgba(0, 255, 204, 0.08);
  border-color: rgba(0, 255, 204, 0.22);
}

.faq-nav-count {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.faq-nav-link.is-active .faq-nav-count {
  background: #00ffcc;
  color: #04110f;
}

/* Grouped accordions */
.faq-groups {
  display: flex;
  flex-direction: column;
  gap: 34px;
  min-width: 0;
}

.faq-group {
  scroll-margin-top: 84px;
}

.faq-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-group-title {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.faq-group-count {
  flex: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  white-space: nowrap;
}

.faq-group-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Answer content. The source answers are raw HTML, so reset the shared
   .vip-faq-item p rules and style the inline elements they use. */
.faq-answer {
  padding: 0 22px 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.faq-answer p {
  margin: 0 0 12px;
  padding: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 10px 0 12px;
  padding-left: 20px;
}

.faq-answer li {
  margin: 0 0 8px;
}

.faq-answer li:last-child {
  margin-bottom: 0;
}

.faq-answer strong {
  color: #ffffff;
}

.faq-answer code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 255, 204, 0.1);
  color: #00ffcc;
  font-size: 0.92em;
}

.faq-answer a {
  color: #00ffcc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-answer a:hover {
  color: #4ecdc4;
}

/* Mobile: the sidebar becomes a sticky horizontal category bar.

   The layout switches from a two-column grid to one block column. A grid row
   is only as tall as the bar itself, which left position: sticky no room to
   travel, and the non-wrapping chips were allowed to widen the grid column so
   the whole accordion overflowed the phone. As blocks, the chips scroll inside
   the bar and the bar sticks for the length of the accordion. */
@media (max-width: 1024px) {
  .faq-layout {
    display: block;
  }

  .faq-nav {
    top: 53px;
    z-index: 20;
    min-width: 0;
    margin: 0 0 24px;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(12, 12, 12, 0.92);
    backdrop-filter: blur(12px);
  }

  .faq-nav-title {
    display: none;
  }

  .faq-nav-links {
    flex-direction: row;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .faq-nav-links::-webkit-scrollbar {
    display: none;
  }

  .faq-nav-link {
    flex: none;
    padding: 8px 12px;
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    white-space: nowrap;
  }

  .faq-group {
    scroll-margin-top: 116px;
  }
}

/* The shared VIP hero is built for a marketing page: centred, with large type.
   On a phone the FAQ copy is long, so it is left-aligned and compacted to keep
   the categories and first questions near the top of the screen. */
@media (max-width: 768px) {
  .faq-main .vip-hero {
    padding: 30px 0 8px;
  }

  .faq-main .vip-hero-grid {
    text-align: left;
  }

  .faq-main .vip-hero-copy {
    align-items: flex-start;
  }

  .faq-main .vip-hero-copy .hero-title {
    margin-bottom: 10px;
    font-size: 30px;
    line-height: 1.18;
  }

  .faq-main .vip-hero-copy .hero-description {
    max-width: none;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
  }

  .faq-main .vip-hero-actions {
    width: 100%;
    margin-top: 16px;
    justify-content: flex-start;
  }

  .faq-main .vip-hero-actions .vip-cta {
    padding: 12px 20px;
    font-size: 15px;
  }

  .faq-main .faq-body {
    padding: 6px 0 26px;
  }
}

@media (max-width: 560px) {
  .faq-main .vip-hero {
    padding: 24px 0 4px;
  }

  .faq-main .vip-hero-copy .hero-title {
    font-size: 26px;
  }

  .faq-main .vip-hero-copy .hero-description {
    font-size: 14px;
    line-height: 1.55;
  }

  .faq-main .vip-hero-actions {
    margin-top: 14px;
  }

  .faq-nav {
    margin-bottom: 20px;
    padding: 7px 8px;
  }

  .faq-nav-link {
    padding: 8px 11px;
    font-size: 13px;
  }

  .faq-nav-count {
    min-width: 18px;
    padding: 1px 5px;
    font-size: 10px;
  }

  .faq-group {
    scroll-margin-top: 112px;
  }

  .faq-groups {
    gap: 26px;
  }

  .faq-group-head {
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .faq-group-title {
    font-size: 18px;
  }

  .faq-group-count {
    font-size: 11px;
  }

  .faq-group-list {
    gap: 8px;
  }

  .faq-main .vip-faq-item summary {
    gap: 10px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.45;
  }

  .faq-main .vip-faq-item summary span {
    min-width: 0;
  }

  .faq-main .vip-faq-item summary i {
    font-size: 11px;
  }

  .faq-answer {
    padding: 0 16px 16px;
    font-size: 14px;
    line-height: 1.65;
  }

  .faq-answer ul {
    padding-left: 18px;
  }

  .faq-main .vip-final-cta {
    padding: 16px 0 44px;
  }

  .faq-main .vip-final-cta-content {
    padding: 24px 20px;
  }

  .faq-main .vip-final-cta-content h2 {
    font-size: 23px;
  }

  .faq-main .vip-final-cta-content p {
    font-size: 14px;
    line-height: 1.65;
  }
}
