/* NP FAQ accordion page. Rendered by sections/np-faq.liquid; palette
   tokens come from np-site.css. Text page, so it takes the 768
   step, not the 1080 browse frame. */
#np-faq-page {
  max-width: 768px;
  margin: 0 auto;
  padding: 6px .75rem 56px;
  color: var(--np-ink);
}

#np-faq-page h1 {
  margin: 10px 0 14px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--np-ink);
}

#np-faq-page .np-faq-intro p {
  margin: 0 0 14px;
  max-width: 68ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--np-ink-soft);
}

#np-faq-page .np-faq-intro a {
  color: var(--np-red);
  text-decoration: none;
}

#np-faq-page .np-faq-intro a:hover {
  text-decoration: underline;
}

#np-faq-page .np-faq-list {
  margin-top: 18px;
  border-top: 1px solid var(--np-line, #e3e3e3);
}

#np-faq-page .np-faq-item {
  border-bottom: 1px solid var(--np-line, #e3e3e3);
}

#np-faq-page .np-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px;
  list-style: none;
  cursor: pointer;
}

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

#np-faq-page .np-faq-q {
  font-size: 15.5px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--np-ink);
}

@media (hover: hover) and (pointer: fine) {
  #np-faq-page .np-faq-item summary:hover .np-faq-q {
    color: var(--np-red);
  }
}

/* plus that becomes a minus when open */
#np-faq-page .np-faq-mark {
  position: relative;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
}

#np-faq-page .np-faq-mark::before,
#np-faq-page .np-faq-mark::after {
  content: '';
  position: absolute;
  inset: 5px 0;
  background: var(--np-red);
  border-radius: 1px;
}

#np-faq-page .np-faq-mark::after {
  transform: rotate(90deg);
}

#np-faq-page .np-faq-item[open] .np-faq-mark::after {
  display: none;
}

#np-faq-page .np-faq-a {
  padding: 0 2px 18px;
}

#np-faq-page .np-faq-a p {
  margin: 0 0 10px;
  max-width: 68ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--np-ink-soft);
}

#np-faq-page .np-faq-a a {
  color: var(--np-red);
  text-decoration: none;
}

#np-faq-page .np-faq-a a:hover {
  text-decoration: underline;
}

#np-faq-page .np-faq-a ul {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
}

#np-faq-page .np-faq-a ul li {
  position: relative;
  margin: 0 0 9px;
  padding-left: 20px;
  max-width: 68ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--np-ink-soft);
}

/* small red square marker, the ledger pages' accent scale */
#np-faq-page .np-faq-a ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--np-red);
}

#np-faq-page .np-faq-a img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 4px 0 6px;
  border-radius: 4px;
}
