/* ==========================================================================
   FAQ page styles
   ========================================================================== */

.faq-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: flex-start;
}

.faq-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line);
}

.faq-nav ul {
  margin: 16px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-nav a {
  font-size: 13.5px;
  color: var(--color-text-soft);
  font-weight: 700;
}

.faq-nav a:hover {
  color: var(--color-accent-deep);
}

.faq-group {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.faq-group + .faq-group {
  margin-top: 60px;
}

.faq-group-title {
  font-size: 19px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-accent);
  margin-bottom: 6px;
}

@media (max-width: 900px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .faq-nav {
    position: static;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
  }
  .faq-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0;
  }
  .faq-nav .btn {
    width: auto;
  }
}

@media (max-width: 560px) {
  .faq-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .faq-nav .btn {
    width: 100%;
  }
}
