/* FAQ accordion, shared by the landing page and the support page. */

/* ---------- FAQ: an accordion of filled tiles, one open at a time ---------- */

.faq-grid {
  display: grid;
  gap: 32px;
}

.ask {
  margin-top: 28px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--raised);
}

.ask b {
  display: block;
  font-weight: 900;
}

.ask p {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--t-small);
}

.ask a {
  color: var(--blue);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 8px;
}

.faq-list details {
  border-radius: var(--radius);
  background: var(--raised);
  transition: background-color 200ms, color 200ms;
}

.faq-list details:hover {
  background: #e8ecf0;
}

.faq-list details[open] {
  background: var(--blue);
  color: #ffffff;
  --focus: var(--blue-ink);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 18px 24px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.plus {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
}

.plus::before,
.plus::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6.5px;
  width: 16px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 260ms var(--ease-out);
}

.plus::after {
  transform: rotate(90deg);
}

details[open] .plus::after {
  transform: rotate(0deg);
}

.faq-list details p {
  max-width: 52ch;
  padding: 0 24px 24px;
  font-size: var(--t-body);
}

.faq-list details a {
  color: inherit;
  font-weight: 900;
}

@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: var(--gap);
    align-items: start;
  }

  .faq-side {
    grid-column: 1 / span 4;
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }

  .faq-list {
    grid-column: 5 / span 8;
  }
}

@media (max-width: 899px) {
  .faq-list summary {
    min-height: 64px;
    font-size: 18px;
  }

  .faq-list details p {
    padding: 0 20px 20px;
    font-size: 16px;
  }
}
