/*
 * La Ruota 2026 design: the FAQ page (include/pages/faq.php). Loaded by header_common.php after
 * lr-pages.css; <body> carries lr-pages and lr-p-faq. The questions are <details> elements, so they
 * open and close without any script; the topic pills jump to their group.
 */

body.lr-p-faq .lr-faq-lead {
  max-width: 640px;
  margin: -8px 0 26px;
  font-size: 17px;
}

/* ---------------------------------------------------------------- topics */

body.lr-p-faq .lr-faq-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
}

body.lr-p-faq .pages .lr-faq-topics a {
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: #F6F3EF;
  color: var(--lr-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
}

body.lr-p-faq .pages .lr-faq-topics a:hover {
  background: var(--lr-ink);
  color: #fff;
}

/* ---------------------------------------------------------------- questions */

body.lr-p-faq .lr-faq-group {
  scroll-margin-top: 96px; /* clear of the sticky header when a topic is chosen */
}

body.lr-p-faq .lr-faq-group h3 {
  margin-bottom: 4px;
}

body.lr-p-faq .lr-qa {
  border-bottom: 1px solid var(--lr-rule-soft);
}

body.lr-p-faq .lr-qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
  color: var(--lr-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

body.lr-p-faq .lr-qa summary::-webkit-details-marker {
  display: none;
}

/* a plus that turns into a cross when the answer is open */
body.lr-p-faq .lr-qa summary::after {
  content: '+';
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #F6F3EF;
  color: var(--lr-ink);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transition: transform .2s, background .2s, color .2s;
}

body.lr-p-faq .lr-qa summary:hover::after {
  background: var(--lr-gold);
  color: #fff;
}

body.lr-p-faq .lr-qa[open] summary::after {
  background: var(--lr-ink);
  color: #fff;
  transform: rotate(45deg);
}

body.lr-p-faq .lr-qa summary:focus-visible {
  outline: 2px solid var(--lr-gold);
  outline-offset: 4px;
  border-radius: 6px;
}

body.lr-p-faq .lr-qa-a {
  max-width: 760px;
  padding: 0 48px 16px 0;
}

body.lr-p-faq .lr-qa-a p {
  margin: 0;
}

@media (max-width: 760px) {
  body.lr-p-faq .lr-faq-lead {
    font-size: 16px;
  }

  body.lr-p-faq .lr-faq-topics {
    gap: 8px;
  }

  body.lr-p-faq .pages .lr-faq-topics a {
    padding: 9px 14px;
    font-size: 11px;
  }

  body.lr-p-faq .lr-faq-group {
    scroll-margin-top: 72px;
  }

  body.lr-p-faq .lr-qa summary {
    padding: 16px 0;
    font-size: 16px;
  }

  body.lr-p-faq .lr-qa-a {
    padding-right: 0;
  }
}
