/*
 * The FAQ page (view/storefront/page/faq.html) — /faq, the owner's answer
 * to open question 40 (2026-09-30). The design has no board for it: the
 * page is made of the design's parts — the contact page's hero and its
 * questions (css/page/contact.css → .kt-faq: the same measures here), chips,
 * and a closing card in the design's tint.
 */

.aa > main.fq-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 40px 0 88px;
}

/* ---------- Hero (the contact page's) ---------- */

.aa .fq-hero {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.aa .fq-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
  color: var(--primary);
}

.aa .fq-lead {
  max-width: 760px;
}

/* ---------- Topic chips beside the groups ---------- */

/* Wide screens: the chips in a column (the catalogue's sidebar width) that
   stays in view while the questions scroll by; the groups one under the
   other, at a width a line of text reads well in. */
.aa .fq-layout {
  display: grid;
  grid-template-columns: 296px minmax(0, 880px);
  gap: 32px;
  align-items: start;
}

.aa .fq-topics {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.aa .fq-topics .chip {
  background: var(--aa-raised);
}

/* ---------- The groups, each its card of questions ---------- */

.aa .fq-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* A group jumped to from a chip clears the phone's sticky top bar. */
.aa .fq-group {
  display: flex;
  flex-direction: column;
  padding: 20px 8px 8px;
  border-radius: 28px;
  background: var(--aa-raised);
  box-shadow: var(--elevate1);
  /* A jump to a group stops a little below the screen's edge — on phones
     below the top bar too (storefront.css: the phones' scroll-padding). */
  scroll-margin-top: 24px;
}

.aa .fq-group > h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px 10px;
}

.aa .fq-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-container);
  color: var(--on-primary-container);
}

.aa .fq-group details {
  border-radius: 18px;
}

.aa .fq-group details + details {
  border-top: 1px solid var(--outline-variant);
  border-radius: 0;
}

.aa .fq-group summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 12px 8px 16px;
  font-size: 15px;
  line-height: 21px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.aa .fq-group summary::-webkit-details-marker {
  display: none;
}

.aa .fq-group summary > i {
  margin-left: auto;
  flex: none;
  color: var(--on-surface-variant);
  transition: transform var(--speed2);
}

.aa .fq-group details[open] summary > i {
  transform: rotate(180deg);
}

.aa .fq-group details p {
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 21px;
  color: var(--on-surface-variant);
}

/* ---------- "Belum menemukan jawaban?" ---------- */

.aa .fq-more {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 28px;
  background: var(--aa-tint);
}

.aa .fq-moreic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
}

.aa .fq-moretx {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

/* ---------- Tablet (601–992 px) ---------- */

/* Tablets and phones: the chips in a row above the groups. */
@media (max-width: 992px) {
  .aa .fq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .aa .fq-topics {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .aa .fq-groups {
    gap: 20px;
  }
}

@media (min-width: 601px) and (max-width: 992px) {
  .aa > main.fq-main {
    gap: 28px;
    padding: 24px 0 64px;
  }
}

/* ---------- Phone (≤ 600 px) ---------- */

@media (max-width: 600px) {
  .aa > main.fq-main {
    gap: 20px;
    padding: 4px 0 32px;
  }

  .aa .fq-hero {
    gap: 6px;
  }

  /* The contact page's phone headline (t-hs) and body (t-bm). */
  .aa .fq-h1 {
    font-size: 24px;
    line-height: 32px;
    font-weight: 660;
    letter-spacing: -0.2px;
  }

  .aa .fq-lead {
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.1px;
  }

  /* The chips scroll sideways instead of wrapping, from screen edge to
     screen edge like the other chip rows (the 4 px keep focus rings seen). */
  .aa .fq-topics {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -16px;
    padding: 4px 16px;
    scrollbar-width: none;
  }

  .aa .fq-topics > .chip {
    flex: none;
  }

  .aa .fq-layout,
  .aa .fq-groups {
    gap: 16px;
  }

  .aa .fq-more {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .aa .fq-more > .button {
    align-self: stretch;
  }
}
