/* Numerology instrument: a typographic calculation ladder. Outfit for the source, JetBrains Mono for operands only. */
.mmn-visual { place-items: stretch; align-content: center; }
.mmn-sheet { width: 100%; max-width: 620px; margin: 0 auto; padding: 8px 8px 4px; box-sizing: border-box; }
.mmn-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 14px; border-bottom: 1px solid var(--mmi-line-3); margin-bottom: 6px; }
.mmn-title { margin: 0; font: 500 1.25rem/1.2 var(--f-display); color: var(--text); }
.mmn-title span { display: block; margin-top: 4px; font: 400 12px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mmi-line-2); }
.mmn-src-note { margin: 0; font: 400 15px/1.3 var(--f-text); color: var(--text-2); max-width: 100%; overflow-wrap: anywhere; }

/* the ladder: a quiet rail on the left joins the rows */
.mmn-rows { position: relative; }
.mmn-rows::before { content: ""; position: absolute; left: 4px; top: 30px; bottom: 30px; border-left: 1.25px solid var(--mmi-line-3); }
.mmn-row { position: relative; display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; align-items: center; padding: 20px 0; border-bottom: 1px dashed #2f3534; }
.mmn-rows .mmn-row::before { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; background: var(--night, #1B1721); border: 1.25px solid var(--mmi-line-2); box-sizing: border-box; }
.mmn-rows .mmn-row:last-child::before { background: var(--mmi-sel); border-color: var(--mmi-sel); }
.mmn-k { padding-left: 22px; font: 400 12px/1.5 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mmi-line-2); }
.mmn-v { min-width: 0; }

/* source: digits and letters in the display face */
.mmn-digits { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.mmn-grp { display: grid; gap: 6px; }
.mmn-gl { display: flex; gap: 2px; }
.mmn-gl span { display: grid; place-items: center; width: 34px; height: 50px; font: 500 34px/1 var(--f-display); color: var(--text); border-bottom: 1.25px solid var(--mmi-line-2); }
.mmn-grp small { font: 400 12px/1 var(--f-text); color: var(--muted); text-align: center; }
.mmn-cells { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.mmn-word { display: flex; gap: 3px; }
.mmn-cell { display: grid; justify-items: center; width: 28px; }
.mmn-ch { font: 500 26px/1.1 var(--f-display); color: var(--text); padding-bottom: 5px; }
.mmn-n { position: relative; width: 100%; text-align: center; padding-top: 7px; border-top: 1.25px solid var(--mmi-line-2); font: 400 14px/1 var(--f-mono); color: var(--text-2); }
.mmn-cell.is-off .mmn-ch { color: var(--mmi-line-3); }
.mmn-cell.is-off .mmn-n { color: var(--mmi-line-3); border-top-color: var(--mmi-line-3); }

/* operations */
.mmn-sum { display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; font: 400 18px/1.4 var(--f-mono); color: var(--text-2); }
.mmn-op { white-space: nowrap; }
.mmn-op i { font-style: normal; color: var(--mmi-line-2); margin: 0 7px; }
.mmn-eq b { font-weight: 500; color: var(--text); }
.mmn-eq b.mmn-final { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 6px; box-sizing: border-box; border: 3px solid var(--mmi-sel); background: var(--mmi-sel-18); border-radius: 8px; color: var(--text); }
.mmn-say { display: block; border-bottom: 0; padding: 20px 0 4px; margin: 0; font: 400 16px/1.5 var(--f-text); color: var(--text-2); }
.mmn-say b { font: 500 16px/1 var(--f-mono); color: var(--text); }

/* before any input */
.mmn-empty p { margin: 18px 0 10px; color: var(--text-2); }
.mmn-ghost { list-style: none; margin: 0; padding: 0; }
.mmn-ghost li { padding: 16px 0 16px 22px; border-bottom: 1px dashed #2f3534; font: 400 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--mmi-line-2); position: relative; }
.mmn-ghost li::before { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin-top: -5px; border-radius: 50%; border: 1.25px solid var(--mmi-line-3); box-sizing: border-box; }

/* controls */
.mmn-fields { display: grid; gap: 4px; }
.mmn-fields .dsc-field { margin: 0 0 10px; }
.mmn-legend { font: 500 14px/1.3 var(--f-text); color: var(--text-2); margin: 0 0 10px; }
.mmn .mmn-val { width: 34px; height: 34px; font-size: 14px; color: var(--text-2); }
.mmn .mmn-go { width: 100%; margin: 0; }
.mmn .dsc-field input[type="date"] { color-scheme: dark; }

@media (max-width: 759px) {
  .mmn-sheet { padding: 4px 2px; }
  .mmn-row { grid-template-columns: 1fr; gap: 10px; padding: 14px 0 16px; }
  .mmn-rows::before { display: none; }
  .mmn-rows .mmn-row::before { top: 21px; margin-top: 0; }
  .mmn-k { padding-left: 18px; }
  .mmn-sum { font-size: 15px; }
  .mmn-op i { margin: 0 5px; }
  .mmn-gl span { width: 24px; height: 38px; font-size: 25px; }
  .mmn-digits { gap: 10px 16px; }
  .mmn-cell { width: 22px; }
  .mmn-cells { gap: 12px 14px; }
  .mmn-ch { font-size: 20px; }
}
/* 17 Oct 2026: the vowel footnote under the soul urge ladder */
.mmn-note { display: block; border-bottom: 0; padding: 8px 0 0; margin: 0; font: 400 14px/1.5 var(--f-text); color: var(--muted); max-width: 62ch; }
