@charset "utf-8";

/* =========================
   FAQ
========================= */

.section--faq{
  background: #fff;
}

.faq{
  display: grid;
  gap: 12px;
}

.faqItem{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.faqQ{
  list-style: none;
  cursor: pointer;
  padding: 16px 16px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;

  font-weight: 700;
}

.faqQ::-webkit-details-marker{ display: none; }

.faqQ__label{
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  background: rgba(76, 140, 122, .12);
  color: var(--color-primary);
  font-weight: 800;
}

.faqQ__icon{
  width: 12px;
  height: 12px;
  border-right: 2px solid rgba(0,0,0,.45);
  border-bottom: 2px solid rgba(0,0,0,.45);
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.faqItem[open] .faqQ__icon{
  transform: rotate(-135deg);
}

.faqA{
  padding: 0 16px 16px;
  color: var(--color-subtext);
}

.faqA p{
  margin: 0;
  line-height: 1.8;
}

.faqA__label{
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  margin-right: 8px;

  background: rgba(0,0,0,.06);
  color: rgba(0,0,0,.75);
  font-weight: 800;
}

.faqA a{
  text-decoration: underline;
  text-underline-offset: .18em;
}

.faqItem:focus-within{
  outline: 3px solid rgba(76, 140, 122, .22);
  outline-offset: 2px;
}
