@font-face{font-family:MMCompoundInter;src:url(../../assets/fonts/Inter-Regular.ttf) format('truetype');font-weight:400;font-display:swap}
@font-face{font-family:MMCompoundInter;src:url(../../assets/fonts/Inter-Medium.ttf) format('truetype');font-weight:500;font-display:swap}
@font-face{font-family:MMCompoundInter;src:url(../../assets/fonts/Inter-SemiBold.ttf) format('truetype');font-weight:600;font-display:swap}
.mm-compound{--calc-page:#fff;--calc-text:#181d27;--calc-muted:#535862;--calc-border:#d5d7da;--calc-soft:#fafafa;--calc-button:#242424;--calc-ink:#fff;margin-block:40px;padding:24px;border:1px solid var(--calc-border);border-radius:12px;background:var(--calc-page);color:var(--calc-text);font:400 16px/24px MMCompoundInter,Inter,sans-serif;min-width:0}
html.mm-dark .mm-compound{--calc-page:#13161b;--calc-text:#f5f5f6;--calc-muted:#94979c;--calc-border:#373a41;--calc-soft:#0c0e12;--calc-button:#fff;--calc-ink:#000}
.mm-compound *{box-sizing:border-box}
.mm-compound [hidden]{display:none!important}
.mm-compound h2{font:600 24px/32px MMCompoundInter,Inter,sans-serif;margin:0 0 12px;color:var(--calc-text)}
.mm-compound p{margin:12px 0;color:inherit}
.mm-compound-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-block:24px}
.mm-compound label{display:flex;flex-direction:column;gap:8px;font:500 14px/20px MMCompoundInter,Inter,sans-serif;color:var(--calc-text);min-width:0}
.mm-compound input{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--calc-border);border-radius:8px;background:var(--calc-page);color:var(--calc-text);font:400 16px/24px MMCompoundInter,Inter,sans-serif}
.mm-compound button{min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:8px;background:var(--calc-button);color:var(--calc-ink);font:600 16px/24px MMCompoundInter,Inter,sans-serif;cursor:pointer}
.mm-compound :is(input,button,summary,.mm-compound-table-wrap):focus-visible{outline:2px solid #17b26a;outline-offset:3px}
.mm-compound .mm-compound-assumptions{font:400 14px/22px MMCompoundInter,Inter,sans-serif;color:var(--calc-muted);overflow-wrap:anywhere}
.mm-compound .mm-compound-error{color:#b42318}
html.mm-dark .mm-compound .mm-compound-error{color:#fda29b}
.mm-compound-summary{font-weight:600;overflow-wrap:anywhere}
.mm-compound-table-wrap{max-width:100%;overflow:auto;margin-block:20px;max-height:420px}
.mm-compound table{width:100%;border-collapse:collapse;font:400 14px/20px MMCompoundInter,Inter,sans-serif}
.mm-compound caption{text-align:left;padding-bottom:12px;color:var(--calc-muted)}
.mm-compound th,.mm-compound td{text-align:right;padding:10px 12px;border-bottom:1px solid var(--calc-border);white-space:nowrap}
.mm-compound th:first-child{text-align:left}
.mm-compound thead{background:var(--calc-soft)}
@media(max-width:600px){.mm-compound{padding:16px}.mm-compound-fields{grid-template-columns:minmax(0,1fr)}}

/* Preserve component colour semantics against the shared editorial theme. */
html.mm-theme-enabled #content .mm-compound :is(h2,p){color:var(--calc-text)!important;-webkit-text-fill-color:currentColor!important}
html.mm-theme-enabled #content .mm-compound .mm-compound-assumptions{color:var(--calc-muted)!important}
html.mm-theme-enabled #content .mm-compound .mm-compound-error{color:#b42318!important}
html.mm-theme-enabled.mm-dark #content .mm-compound .mm-compound-error{color:#fda29b!important}

html.mm-theme-enabled #content .mm-compound p{font-size:16px!important;line-height:24px!important;font-weight:400!important}
html.mm-theme-enabled #content .mm-compound .mm-compound-assumptions{font-size:14px!important;line-height:22px!important}
html.mm-theme-enabled #content .mm-compound .mm-compound-summary{font-weight:600!important}

.mm-compound-breakdown{border-top:1px solid var(--calc-border)}
.mm-compound-breakdown summary{padding-block:12px;min-height:44px;color:var(--calc-text);font-weight:500;cursor:pointer}

.mm-compound-results{padding-block-start:16px}
.mm-compound-formula{font-variant-numeric:tabular-nums}
.mm-compound-formula strong{display:inline-block;white-space:nowrap}
.mm-compound-example table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.mm-compound-example :is(th,td){padding:8px 12px;text-align:right;border-bottom:1px solid #d5d7da}
.mm-compound-example :is(th,td):first-child{text-align:left}
.mm-compound-example tbody :is(th,td){white-space:nowrap}
html.mm-dark .mm-compound-example :is(th,td){border-color:#373a41}
@media(max-width:480px){.mm-compound-example :is(th,td){padding:8px}}
