/* Section 06 reading treatment. Preserve the site's Manrope/Space Grotesk fonts. */
#faq.dg-learn-preview {
  --faq-paper: #f4f0e8;
  --faq-copy: #e8ddc8;
  --faq-label: #cbbd9f;
  position: relative;
  z-index: 41; /* Readable surface above the existing matrix canvas (40), below navigation (50). */
  background: var(--ink);
}
#faq.dg-learn-preview .faq-intro .section-heading p {
  color: var(--faq-copy);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.8;
}
#faq.dg-learn-preview .faq-categories button {
  color: var(--faq-copy) !important;
  font-weight: 600;
}
#faq.dg-learn-preview .faq-categories button.is-active {
  color: var(--green) !important;
}
#faq.dg-learn-preview .faq-list { border-top: 0; min-width: 0; }
#faq.dg-learn-preview .faq-item {
  margin-bottom: 14px;
  padding: 0 24px;
  border: 1px solid #354638 !important;
  border-radius: 16px;
  background: #0b1612;
}
#faq.dg-learn-preview .faq-item:has(button[aria-expanded="true"]) {
  border-color: #82765c !important;
  background: #111d17;
}
#faq.dg-learn-preview .faq-item button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 100px;
  padding: 24px 0;
  color: var(--faq-paper);
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}
#faq.dg-learn-preview .faq-item button:hover { color: var(--green); }
#faq.dg-learn-preview .faq-item button > span { min-width: 0; gap: 10px; }
#faq.dg-learn-preview .faq-item small {
  color: var(--faq-label);
  font-family: var(--body);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .12em;
}
#faq.dg-learn-preview .faq-item button > svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--faq-label);
  transition: transform .2s;
}
#faq.dg-learn-preview .faq-item button[data-state="open"] > svg { transform: rotate(180deg); }
#faq.dg-learn-preview .faq-item button:focus-visible,
#faq.dg-learn-preview .faq-categories button:focus-visible,
#faq.dg-learn-preview .faq-search:focus-within { outline: 2px solid var(--green); outline-offset: 4px; }
#faq.dg-learn-preview .faq-item [data-slot="accordion-content"][hidden] { display: none; }
#faq.dg-learn-preview .faq-item [data-slot="accordion-content"] {
  padding: 0 24px 28px 0;
  color: var(--faq-copy);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
#faq.dg-learn-preview .faq-item [data-slot="accordion-content"] > div { max-width: 62ch; }
#faq.dg-learn-preview .faq-empty { color: var(--faq-copy); font-size: 17px; line-height: 1.8; }
@media (max-width: 600px) {
  #faq.dg-learn-preview .faq-item { padding: 0 18px; border-radius: 12px; }
  #faq.dg-learn-preview .faq-item button { min-height: 92px; font-size: 19px; gap: 14px; padding: 22px 0; }
  #faq.dg-learn-preview .faq-item [data-slot="accordion-content"] { font-size: 16px; padding: 0 0 24px; line-height: 1.8; }
}
@media (prefers-reduced-motion: reduce) {
  #faq.dg-learn-preview .faq-item button > svg { transition: none; }
}
