/* Glossary chips only. FAQ using the same dt/dd classes stays stacked. */
.calc-glossary > .calc-math-section-title,
.calc-glossary > h2 {
  margin-bottom: 0.4rem;
}
.calc-glossary > p {
  margin: 0.4rem 0 0;
  max-width: 68ch;
  line-height: 1.6;
  color: var(--text-muted);
}
.calc-faq .calc-math-faq-dl,
.calc-math-faq .calc-math-faq-dl,
.annual-faq-section .calc-math-faq-dl,
.calc-math-section:not(.calc-glossary) .calc-math-faq-dl {
  display: block !important;
  padding: 0 !important;
  background: transparent;
  border: none;
  box-shadow: none;
}
.calc-faq .calc-math-faq-dl::before,
.calc-math-faq .calc-math-faq-dl::before,
.annual-faq-section .calc-math-faq-dl::before,
.calc-math-section:not(.calc-glossary) .calc-math-faq-dl::before {
  content: none !important;
}
.calc-faq .calc-math-faq-dt,
.calc-math-faq .calc-math-faq-dt,
.annual-faq-section .calc-math-faq-dt,
.calc-math-section:not(.calc-glossary) .calc-math-faq-dt {
  display: block !important;
  min-width: 0;
  margin: 1.15rem 0 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0;
  background: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  white-space: normal;
  text-align: left;
}
.calc-faq .calc-math-faq-dd,
.calc-math-faq .calc-math-faq-dd,
.annual-faq-section .calc-math-faq-dd,
.calc-math-section:not(.calc-glossary) .calc-math-faq-dd {
  display: block !important;
  margin: 0.4rem 0 0 !important;
  margin-inline-start: 0 !important;
  padding: 0 !important;
}
.calc-glossary .calc-math-faq-dl {
  display: grid !important;
  grid-template-columns: max-content minmax(0, 1fr) !important;
  column-gap: 0.85rem;
  position: relative;
  margin: 1.15rem 0 0;
  padding: 0.35rem 1.1rem 0.35rem 1.2rem !important;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.calc-glossary .calc-math-faq-dl::before {
  content: "" !important;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-line);
  border-radius: var(--radius) 0 0 var(--radius);
  pointer-events: none;
}
.calc-glossary .calc-gloss-row {
  display: grid !important;
  grid-template-columns: subgrid !important;
  grid-column: 1 / -1;
  column-gap: inherit;
  align-items: start;
  justify-items: start;
  margin: 0;
  padding: 0.8rem 0 !important;
  border-bottom: 1px solid var(--border);
}
.calc-glossary .calc-gloss-row:last-child {
  border-bottom: none;
}
@supports not (grid-template-columns: subgrid) {
  .calc-glossary .calc-math-faq-dl {
    display: flex !important;
    flex-direction: column !important;
  }
  .calc-glossary .calc-gloss-row {
    display: grid !important;
    grid-template-columns: max-content minmax(0, 1fr) !important;
    column-gap: 0.85rem;
  }
}
.calc-glossary .calc-math-faq-dt {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 2rem;
  margin: 0 !important;
  padding: 0.18rem 0.5rem !important;
  border: none !important;
  border-radius: 0.4rem;
  background: color-mix(in srgb, var(--accent-warm) 12%, transparent);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--accent-warm);
  line-height: 1.4;
  white-space: nowrap;
}
.calc-glossary .calc-math-faq-dd {
  margin: 0 !important;
  margin-inline-start: 0 !important;
  padding: 0.2rem 0 0 !important;
  border: none !important;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-muted);
}
