/* Improper Fractions and Mixed Numbers (pages/improper-fractions-mixed-numbers.html).
   Builds on css/simplify-fractions.css (shared fraction-tutor look); only the extras live here. */
.mn-modes { flex-wrap: wrap; border-radius: 18px; }
.mn-modes .sf-mode { font-size: .9rem; padding: 9px 13px; }
.mn-mode-num { display: inline-grid; place-items: center; width: 1.35em; height: 1.35em; margin-right: 4px; border-radius: 50%; background: #d7e2f3; color: #2d5fae; font-size: .78em; }
.mn-modes .sf-mode[aria-selected="true"] .mn-mode-num { background: #2d5fae; color: #fff; }
.sf-tool .mn-setup-title { margin: 0 0 12px; font-weight: 800; font-size: 1.1rem; color: #1f3f78; text-align: center; }

.mn-own-kind { margin: 0 auto 14px; }
.mn-own-input { display: flex; align-items: center; gap: 8px; }
.mn-own-whole { width: 70px; height: 48px; padding: 4px 6px; border: 2px solid #d5deea; border-radius: 10px; background: #fbfdff; font: 750 1.3rem/1 system-ui, sans-serif; text-align: center; }
.mn-own-whole:focus { border-color: #6f97dc; outline: none; box-shadow: 0 0 0 3px rgba(63, 115, 201, .18); }
.mn-own-whole[hidden] { display: none; }

.mn-problem { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 92px; }
.mn-big-mixed { display: inline-flex; align-items: center; gap: 4px; }
.mn-big-whole { font: 800 2.4rem/1 system-ui, sans-serif; color: #1f3f78; }
.mn-eq, .mn-q { font: 800 2rem/1 system-ui, sans-serif; color: #5b6b80; }
.mn-q { color: #9aa8b8; }

.mn-done-steps { list-style: none; margin: 4px auto 8px; padding: 0; max-width: 640px; }
.mn-done-steps li { padding: 4px 10px; color: #2f5b44; font-weight: 650; line-height: 1.9; text-align: center; }
.mn-done-steps li i { color: #2f7a55; margin-right: 4px; }

.sf-tool .mn-step-prompt { line-height: 2.6; }
.mn-in { width: 62px; height: 40px; vertical-align: middle; }
.mn-in-sm { width: 54px; }
.mn-step-prompt .sf-step-frac { display: inline-grid; vertical-align: middle; margin: 0 2px; }
.mn-mixed-input { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.mn-in-whole { width: 58px; height: 52px; font-size: 1.35rem; }
.mn-den-fixed { grid-template-rows: 44px 3px 40px; }
.mn-fixed-den { display: grid; place-items: center; font: 800 1.25rem/1 system-ui, sans-serif; color: #33415c; }
.mn-mixed { display: inline-flex; align-items: center; gap: 1px; font-weight: 800; }
.sf-tool .mn-done-eq { font-size: 1.25rem; }

.mn-model { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #dbe3ee; }
.mn-model-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.mn-model-title { font-weight: 800; color: #33415c; }
.mn-shapes { display: inline-flex; padding: 3px; background: #e6edf7; border-radius: 999px; }
.mn-shape { border: 0; background: transparent; color: #44546b; font: 700 .85rem/1 inherit; padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.mn-shape[aria-checked="true"] { background: #fff; color: #2d5fae; box-shadow: 0 2px 6px rgba(40, 60, 90, .12); }
.mn-shape:disabled { opacity: .45; cursor: default; }
.mn-shape:focus-visible { outline: 3px solid #4a6fd6; outline-offset: 2px; }
.mn-model-svg { min-width: 0; }
.mn-model-svg svg { display: block; width: 100%; height: auto; }
.sf-tool .mn-legend { text-align: center; }

@media (max-width: 640px) {
  .mn-modes .sf-mode { font-size: .82rem; padding: 8px 9px; flex: 1 1 45%; }
  .mn-big-whole { font-size: 2rem; }
  .sf-tool .mn-step-prompt { line-height: 2.4; font-size: 1rem; }
  .mn-in { width: 52px; }
}
.mn-ans .sf-frac, .mn-ans .sf-frac .sf-den, .mn-big-whole.mn-ans, .mn-ans .mn-big-whole { color: #2f7a55; border-color: #2f7a55; }
