/* model-explorer.css: styles for assets/js/model-explorer.js (scoped to .mx),
   plus one rule for KaTeX equations on model pages. */
.katex-display { overflow-x: auto; overflow-y: hidden; padding: 2px 0; }
.mx { font-size: 0.95rem; color: #333; margin: 1.2em 0 0.5em; }
.mx-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px 22px;
  align-items: end;
  padding: 14px 16px;
  border: 1px solid #e6e8eb;
  border-radius: 8px;
  background: #fafbfc;
}
.mx-control-wide { grid-column: 1 / -1; }
.mx-label { display: block; font-size: 0.82rem; color: #595959; margin-bottom: 4px; }
.mx-label output { font-weight: 600; color: #043361; font-variant-numeric: tabular-nums; }
.mx-control input[type="range"] { width: 100%; margin: 0; accent-color: #1f6fb2; }
.mx-seg { display: inline-flex; border: 1px solid #cfd4da; border-radius: 6px; overflow: hidden; flex-wrap: wrap; }
.mx-seg button, .mx-reset {
  font: inherit; font-size: 0.85rem; padding: 6px 12px; cursor: pointer;
  background: #fff; color: #043361; border: 0;
}
.mx-seg button + button { border-left: 1px solid #cfd4da; }
.mx-seg button[aria-pressed="true"] { background: #043361; color: #fff; }
.mx-reset { border: 1px solid #cfd4da; border-radius: 6px; justify-self: start; }
.mx-seg button:focus-visible, .mx-reset:focus-visible, .mx-panel:focus-visible {
  outline: 2px solid #1f6fb2; outline-offset: 2px;
}
.mx-banner {
  display: none; margin: 10px 0 0; padding: 8px 12px; font-size: 0.88rem;
  border-left: 3px solid #b26b00; background: #fff7e8; color: #4a3200;
}
.mx-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 6px; font-size: 0.82rem; color: #595959; }
.mx-key { display: inline-block; width: 18px; border-top: 2px solid; vertical-align: middle; margin-right: 6px; }
.mx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 18px; }
.mx-panel { position: relative; outline: none; }
.mx-title { font-size: 0.9rem; font-weight: 600; color: #043361; }
.mx-units { font-size: 0.75rem; color: #6b6b6b; margin-bottom: 2px; }
.mx-panel svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.mx-tick { font-size: 10px; fill: #6b6b6b; font-variant-numeric: tabular-nums; }
.mx-tip {
  display: none; position: absolute; top: 34px; z-index: 2; pointer-events: none; white-space: nowrap;
  padding: 5px 9px; font-size: 0.78rem; background: #fff; color: #222;
  border: 1px solid #dfe2e6; border-radius: 6px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.mx-tip-head { color: #6b6b6b; margin-bottom: 2px; }
.mx-tip-row strong { font-variant-numeric: tabular-nums; }
.mx-tip-name { color: #6b6b6b; }
.mx-table { margin-top: 14px; font-size: 0.85rem; }
.mx-table summary { cursor: pointer; color: #1f6fb2; }
.mx-table-wrap { overflow-x: auto; }
.mx-table table { border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.mx-table th, .mx-table td { padding: 3px 8px; text-align: right; border-bottom: 1px solid #eceef1; }
.mx-table th:first-child, .mx-table td:first-child, .mx-table td.mx-muted { text-align: left; }
.mx-muted { color: #6b6b6b; }
.mx-verified { font-size: 0.8rem; color: #595959; margin-top: 10px; }
.mx-verified.mx-failed { color: #8a3b00; }
