.rich-copy .math-figure { min-width: 0; margin: 1.5rem 0 2rem; padding: 1rem; border: 1px solid var(--line); background: var(--paper); }
.math-figure img { display: block; width: 100%; max-width: 360px; height: auto; margin: auto; }
.rich-copy .math-figure figcaption { margin-top: 1rem; font-size: 1rem; line-height: 1.65; }
.rich-copy .math-example { margin: 1.5rem 0 2rem; padding: 1.15rem; border: 1px solid var(--line); background: var(--paper); }
.rich-copy .math-equation { padding: 1rem; font-size: 1.15rem; font-weight: 800; color: var(--ink); background: #e3efea; line-height: 1.8; overflow-wrap: anywhere; }
.math-guide-table { width: 100%; margin: 1rem 0; border-collapse: collapse; font-size: 1rem; line-height: 1.5; }
.math-guide-table caption { text-align: left; font-size: 1rem; font-weight: 800; margin-bottom: .8rem; }
.math-guide-table th, .math-guide-table td { padding: .75rem; border: 1px solid var(--line); text-align: left; }
.math-guide-table thead { background: #e3efea; color: var(--ink); }
.math-guide-table tbody th { font-weight: 700; }
.rich-copy .math-check { margin: 1.5rem 0 2rem; padding: 1rem; border-left: 4px solid var(--night); background: var(--yellow-soft); }
.rich-copy .math-check p { margin: 0 0 .75rem; }
.rich-copy .math-check details { margin: 0; }
.math-check summary { min-height: 44px; padding: .5rem 0; cursor: pointer; font-weight: 800; }
.math-check summary:focus-visible { outline: 3px solid var(--night); outline-offset: 3px; }
.rich-copy .math-credit { font-size: .9rem; margin-top: 2rem; }
@media (max-width: 650px) {
  .rich-copy .math-figure { padding: .5rem; }
  .rich-copy .math-example { padding: 1rem; }
  .math-guide-table th, .math-guide-table td { padding: .6rem .4rem; }
}
