.content-math{--math-type-label-padding:0.25rem 0.75rem;--math-type-label-border-radius:0.25rem;--math-type-label-font-size:0.875rem;--math-type-label-font-weight:700}.content-math .math-card{border:1px solid var(--border);padding:1.5rem;margin:1.5rem 0;background:var(--background)}.content-math .math-card-header{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem;padding-bottom:.75rem;border-bottom:1px solid var(--border)}.math-callout{margin-block:clamp(1.5rem,1.25rem + .8vw,2.25rem)}.math-callout-header{display:flex;align-items:center;gap:.75rem;padding-bottom:.75rem;border-bottom:1px solid var(--border)}.math-callout-header>*{margin:0}.math-callout-content{font-size:inherit;line-height:inherit}.math-callout-content :where(p,ul,ol,blockquote,pre,h1,h2,h3,h4,h5,h6){margin-block:.75rem}.math-callout-content>:where(p,ul,ol,blockquote,pre,h1,h2,h3,h4,h5,h6):first-child{-webkit-margin-before:0;margin-block-start:0}.math-callout-content>:where(p,ul,ol,blockquote,pre,h1,h2,h3,h4,h5,h6):last-child{-webkit-margin-after:0;margin-block-end:0}.math-callout-label{display:inline-flex;align-items:center;justify-content:center;font-size:.875rem;font-weight:700;padding:.25rem .75rem;border-radius:.375rem;color:#fff;letter-spacing:.02em}.math-callout-title{font-size:1.125rem;font-weight:600;color:var(--foreground)}.content-math .math-callout-header .math-callout-title,.content-math .math-callout-header h3{font-size:.975rem;font-weight:600;color:var(--foreground);margin:0;padding:0}.content-math .math-callout-title:before{content:none!important}.content-math .math-callout-content{font-size:var(--fs-base);line-height:var(--lh-normal)}.content-math .math-callout-content strong{font-weight:700}.content-math .math-callout-content em{font-style:italic}.math-variant-definition{--math-variant-color:var(--math-definition-color)}.math-variant-lemma{--math-variant-color:var(--math-lemma-color)}.math-variant-theorem{--math-variant-color:var(--math-theorem-color)}.math-variant-corollary{--math-variant-color:var(--math-corollary-color)}.math-variant-axiom{--math-variant-color:var(--math-axiom-color)}.math-variant-generic{--math-variant-color:var(--math-generic-color)}.math-variant-badge{display:inline-flex;align-items:center;justify-content:center;padding:var(--math-type-label-padding,.25rem .75rem);border-radius:var(--math-type-label-border-radius,.25rem);font-size:var(--math-type-label-font-size,.875rem);font-weight:var(--math-type-label-font-weight,700);color:#fff}.math-callout[class*=math-variant-] .math-callout-label,.math-variant-badge{background-color:var(--math-variant-color,var(--math-generic-color))}.content-math .math-ref{display:inline-flex;align-items:center;gap:.25rem;padding:.25rem .5rem;font-size:.875rem;border-radius:.25rem;background:var(--muted);color:var(--foreground);text-decoration:none;transition:all .2s ease;border:1px solid var(--border)}@media (hover:hover) and (pointer:fine){.content-math .math-ref:hover{background:var(--hover-background);box-shadow:0 1px 2px 0 rgb(0 0 0/.05)}}.math-ref-preview-portal{position:absolute;transform:translate(-50%,-100%);z-index:50;transition:opacity .2s ease;pointer-events:none}.math-ref-preview-inner{width:20rem;max-width:calc(100vw - 2rem);background:var(--background);border:1px solid var(--border);border-radius:.5rem;box-shadow:0 10px 25px rgba(0,0,0,.1);padding:1rem;pointer-events:auto}.math-ref-preview-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.5rem;padding-bottom:.5rem;border-bottom:1px solid var(--border)}.math-ref-preview-content{display:block}.math-ref-preview-content>:where(p,ul,ol,blockquote,pre,h1,h2,h3,h4,h5,h6):last-child{margin-bottom:0}.math-ref-preview-label{font-size:.75rem;font-weight:500;padding:.25rem .5rem;border-radius:.25rem;color:white}.math-ref-preview-title{font-size:.875rem;font-weight:600;color:var(--foreground)}.math-ref-preview-content{font-size:.875rem}.math-rotate-90{transform:rotate(90deg)}.math-rotate-180,.math-rotate-90{display:inline-block;vertical-align:middle}.math-rotate-180{transform:rotate(180deg)}.math-rotate-270{transform:rotate(270deg)}.math-rotate-270,.math-rotate-45{display:inline-block;vertical-align:middle}.math-rotate-45{transform:rotate(45deg)}.math-rotate-minus-90{transform:rotate(-90deg)}.math-rotate,.math-rotate-minus-90{display:inline-block;vertical-align:middle}.math-ref-error{color:#b91c1c;font-size:var(--fs-sm);font-weight:500}