/* Help & FAQ (/help/). Mobile: a section opens as a whole, all answers visible.
   From 768: every question opens on its own; images from 1200 */

.luke-fq {
  padding: 32px 0 var(--section);
}
.luke-fq-head {
  border-bottom: 1px solid var(--c-dark);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 32px;
}
.luke-fq-list {
  margin: 0 auto;
  max-width: 1196px;
}

/* Section */
.luke-fq-cat {
  padding: 20px 0;
}
.luke-fq-cat:first-child {
  padding-top: 32px;
}
.luke-fq-cat + .luke-fq-cat {
  border-top: 1px solid var(--c-divider);
}
.luke-fq-title {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 28px;
}
.luke-fq-cat-btn {
  align-items: center;
  color: var(--c-dark);
  display: flex;
  gap: 16px;
  text-align: left;
  width: 100%;
}
.luke-fq-cat-btn span {
  flex: 1;
}
.luke-fq-side img {
  display: none;
}

/* Round arrow button: beige and down when closed, lime and up when open */
.luke-fq-arrow {
  background: var(--c-beige1);
  border-radius: 50%;
  color: var(--c-dark);
  display: flex;
  flex-shrink: 0;
  padding: 8px;
  transform: rotate(180deg);
  transition: background-color .2s, transform .2s;
}
.luke-fq-arrow svg {
  height: 24px;
  width: 24px;
}
.luke-fq-cat.open .luke-fq-cat-btn .luke-fq-arrow,
.luke-fq-item.active .luke-fq-arrow {
  background: var(--c-accent);
  transform: none;
}

/* Questions */
.luke-fq-items {
  display: none;
  margin-top: 24px;
}
.luke-fq-cat.open .luke-fq-items {
  display: block;
}
.luke-fq-item {
  border-bottom: 1px solid var(--c-divider);
  padding: 20px 0;
}
.luke-fq-item:first-child {
  padding-top: 0;
}
.luke-fq-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.luke-fq-q {
  align-items: center;
  color: var(--c-dark);
  cursor: default;
  display: flex;
  gap: 24px;
  text-align: left;
  width: 100%;
}
.luke-fq-q span {
  flex: 1;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 22px;
}
.luke-fq-q .luke-fq-arrow { /* mobile: all answers are open */
  display: none;
}
.luke-fq-a {
  font-size: 16px;
  line-height: 22px;
  margin-top: 16px;
}

/* From 768: section titles are plain headings, every question has its own toggle */
@media (min-width: 768px) {
  .luke-fq-head {
    padding-bottom: 34px;
  }
  .luke-fq-cat {
    padding: 40px 0;
  }
  .luke-fq-cat:first-child {
    padding-top: 60px;
  }
  .luke-fq-title {
    font-size: 32px;
    line-height: 36px;
  }
  .luke-fq-cat-btn {
    cursor: default;
    pointer-events: none;
  }
  .luke-fq-cat-btn .luke-fq-arrow {
    display: none;
  }
  .luke-fq-items,
  .luke-fq-cat .luke-fq-items {
    display: block;
    margin-top: 24px;
  }
  .luke-fq-q {
    cursor: pointer;
  }
  .luke-fq-q span {
    font-size: 24px;
    line-height: 28px;
    padding: 6px 0;
  }
  .luke-fq-q .luke-fq-arrow {
    display: flex;
  }
  .luke-fq-q:hover .luke-fq-arrow {
    background: var(--c-accent);
  }
  .luke-fq-a {
    display: none;
    font-size: 18px;
    letter-spacing: -.02em;
    line-height: 24px;
    margin-top: 20px;
  }
  .luke-fq-item.active {
    border-bottom: 2px solid var(--c-green);
  }
  .luke-fq-item.active .luke-fq-a {
    display: block;
  }
}

/* Desktop: title and image on the left, questions on the right */
@media (min-width: 1200px) {
  .luke-fq {
    padding-top: 40px;
  }
  .luke-fq-head {
    padding-left: max(0px, (100% - 1196px) / 2);
  }
  .luke-fq-cat {
    column-gap: 40px;
    display: grid;
    grid-template-columns: minmax(0, 342px) minmax(0, 708px);
    justify-content: space-between;
    padding: 60px 0;
  }
  .luke-fq-cat:first-child {
    padding-top: 80px;
  }
  .luke-fq-side {
    display: flex;
    flex-direction: column;
    gap: 60px;
  }
  .luke-fq-title {
    font-size: 40px;
    line-height: 40px;
  }
  .luke-fq-side img {
    aspect-ratio: 1;
    border-radius: 24px;
    display: block;
    object-fit: cover;
    width: 100%;
  }
  .luke-fq-items,
  .luke-fq-cat .luke-fq-items {
    margin-top: 0;
  }
}
