/* Shared foundations, confined to shortcode output. */
.apx-mpc {
    --mpc-brand: #25c385;
    --mpc-ink: #333333;
    --mpc-muted: #777777;
    --mpc-green: #19875c;
    --mpc-line: #e9e9e9;
    --mpc-soft: #f9f9f9;
    --mpc-mint: #edf8f2;
    --mpc-loss: #c0392b;
    color: var(--mpc-ink);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
    text-align: start;
    color-scheme: light;
    container: apexto-mpc / inline-size;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
}
.apx-mpc *, .apx-mpc *::before, .apx-mpc *::after { box-sizing: border-box; }
.apx-mpc [hidden] { display: none !important; }
.apx-mpc :is(h1,h2,h3,p,ul,dl,dd,dt,figure,fieldset,legend) { margin: 0; padding: 0; }
.apx-mpc :is(h1,h2,h3) { color: var(--mpc-ink); font-family: inherit; text-transform: none; }
.apx-mpc a { color: var(--mpc-green); text-decoration: none; box-shadow: none; }
.apx-mpc a:hover { color: #045c3d; }
.apx-mpc :is(button,summary,select) { cursor: pointer; }
.apx-mpc :is(button,input,select,summary) { font: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.apx-mpc :is(button,input,select) { margin: 0; min-width: 0; border: 0; min-height: 0; height: auto; border-radius: 0; padding: 0; box-shadow: none; background: transparent; }
.apx-mpc button { width: auto; }
.apx-mpc input { width: 100%; appearance: auto; }
.apx-mpc input[type=number] { appearance: textfield; -moz-appearance: textfield; }
.apx-mpc input::-webkit-inner-spin-button, .apx-mpc input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.apx-mpc :is(a,button,summary,select,input):focus-visible { outline: 2px solid var(--mpc-green); outline-offset: 3px; }
.apx-mpc :is(h1,h2,h3,p,strong,small,span,dt,dd) { overflow-wrap: anywhere; }
.apx-mpc img { display: block; margin: 0; max-width: 100%; }
.apx-mpc details > summary { list-style: none; }
.apx-mpc details > summary::-webkit-details-marker { display: none; }
.apx-mpc .mpc-primary, .apx-mpc .mpc-secondary {
    display: inline-flex; align-items: center; justify-content: center; gap: .6em;
    min-height: 42px; border-radius: 5px; padding: 8px 16px; font-size: 14px; font-weight: 600; line-height: 1.25;
    text-decoration: none; border: 1px solid var(--mpc-line); white-space: normal;
}
.apx-mpc .mpc-primary { color: #ffffff; background: var(--mpc-brand); border-color: var(--mpc-brand); }
.apx-mpc .mpc-primary:hover { background: #dff5e9; color: var(--mpc-green); border-color: var(--mpc-brand); }
.apx-mpc .mpc-secondary { color: var(--mpc-ink); background: #fff; }
.apx-mpc .mpc-secondary:hover { border-color: var(--mpc-brand); background: #f7fcfa; }
.apx-mpc .mpc-chevron { display: inline-block; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); flex-shrink: 0; }
.apx-mpc details[open] > summary .mpc-chevron, .apx-mpc [aria-expanded=true] .mpc-chevron { transform: translateY(2px) rotate(225deg); }
.apx-mpc .mpc-thumb {
    flex: 0 0 52px; width: 52px; height: 52px; position: relative; display: grid; place-items: center;
    background: #f4f7f5; border: 1px solid #e2e9e5; border-radius: 8px; overflow: hidden;
}
.apx-mpc .mpc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; }
.apx-mpc .mpc-thumb img:not([src]) { display: none; }
.apx-mpc .mpc-machine { position: relative; width: 29px; height: 19px; color: #718a7d; border: 1.5px solid; border-radius: 3px; }
.apx-mpc .mpc-machine::before, .apx-mpc .mpc-machine::after { content: ""; position: absolute; width: 9px; height: 9px; top: 3.5px; border: 1.5px dotted currentColor; border-radius: 50%; }
.apx-mpc .mpc-machine::before { left: 2px; }
.apx-mpc .mpc-machine::after { right: 2px; }
.apx-mpc .mpc-empty { padding: 42px 18px; text-align: center; }
.apx-mpc .mpc-empty strong { display: block; font-size: 18px; }
.apx-mpc .mpc-empty p { margin-top: 5px; color: var(--mpc-muted); }
.apx-mpc [data-sign=negative] { color: var(--mpc-loss); }
.apx-mpc [data-sign=positive] { color: var(--mpc-green); }
.apx-mpc [data-sign=zero] { color: var(--mpc-ink); }
