/* Shared FAQ: a heading beside native, keyboard-accessible disclosures. */
.faq-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: 44px;
  padding-top: 48px;
  padding-bottom: 88px;
}

.faq-title {
  max-width: 14ch;
  font-size: var(--type-hero);
  line-height: 1.15;
  color: var(--ink);
}

.faq-list {
  border-top: 1px solid var(--rule);
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-size: var(--type-subheading);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
  list-style: none;
  cursor: pointer;
}

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

.faq-item summary:hover {
  color: var(--meta);
}

.faq-item summary:focus-visible {
  outline-offset: 4px;
}

.faq-icon {
  position: relative;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.5px);
  left: 2px;
  width: 16px;
  height: 1px;
  background: currentColor;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  display: none;
}

.faq-answer {
  max-width: 62ch;
  padding: 0 44px 24px 0;
  font-size: var(--type-body);
  line-height: 1.625;
  color: var(--body);
}

.faq-answer > p + p {
  margin-top: 16px;
}

@media (max-width: 767px) {
  .faq-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-top: 32px;
    padding-bottom: 56px;
  }

  .faq-title {
    max-width: none;
  }

  .faq-item summary {
    gap: 16px;
    padding: 20px 0;
  }

  .faq-answer {
    padding-right: 0;
  }
}
