/* Minor Scales (/reference/minor-scales). Builds on major-scales.css (root buttons, info panel, steps, play buttons,
   note boxes, formula card) and piano-kit.css (the keyboard). Raised notes are rose; half steps stay amber as on Major Scales. */
.ms-page { --ms-raised: #be185d; }
body.dark-mode .ms-page { --ms-raised: #f472b6; }

/* Steps: color by kind, not by position (major-scales.css colors the 3rd and 7th boxes) */
.ms-page .pattern-steps .step, .ms-page .pattern-steps .step:nth-child(n) { background: var(--primary); color: var(--on-primary, #fff); }
.ms-page .pattern-steps .step.h { background: #b45309; color: #fff; }
.ms-page .pattern-steps .step.aug { background: var(--ms-raised); color: #fff; width: 40px; }

.ms-raised-line { color: var(--ms-raised); font-weight: 600; }

/* Staff */
.ms-staff-wrap { padding: 18px 20px 0; text-align: center; }
.ms-staff svg { width: 100% !important; height: auto !important; max-width: 760px; display: block; margin: 0 auto; }
body.dark-mode .ms-staff svg { filter: invert(1) hue-rotate(180deg); }
.ms-staff-cap { margin: 2px 0 0; font-size: 13px; color: var(--text-light); }

/* Keyboard */
.ms-kb { max-width: 560px; margin: 0 auto; }
.ms-kb .pk .pk-on.ms-raised .pk-face { fill: var(--ms-raised); }
.ms-kb .pk .pk-lab { font-size: 9.5px; }
.ms-kb .pk .pk-b .pk-lab { font-size: 6.5px; }
.ms-legend { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--text-light); }
.ms-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--pk-on, #0b7c72); vertical-align: -1px; margin: 0 4px 0 10px; }
.ms-sw:first-child { margin-left: 0; background: #0b7c72; }
body.dark-mode .ms-sw:first-child { background: #2dd4bf; }
.ms-sw.raised { background: var(--ms-raised); }

/* Note boxes */
.ms-page .scale-note-item.raised { border: 2px solid var(--ms-raised); }
.ms-page .scale-note-item.raised .note-name { color: var(--ms-raised); }
.ms-page .scale-note-item .note-degree i { display: block; font-style: normal; font-weight: 700; color: var(--ms-raised); font-size: 11px; }
.ms-row-title { margin: 6px 0 8px; text-align: center; font-size: 13px; font-weight: 700; color: var(--text-light); }
.ms-row-title + .scale-notes-row { margin-bottom: 10px; }

/* The three forms */
.ms-forms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.ms-form { border: 1px solid var(--border); border-radius: 12px; padding: 16px; text-align: center; }
.ms-form h3 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.ms-form-notes { margin: 0 0 10px; font-size: 17px; letter-spacing: .02em; color: var(--text); }
.ms-form-notes b { color: var(--ms-raised); }
.ms-form .pattern-steps { justify-content: center; }
.ms-form .pattern-steps .step { width: 28px; height: 28px; font-size: 13px; }
.ms-form .pattern-steps .step.aug { width: 34px; }
.ms-form p:last-child { margin: 10px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-light); }

/* All 15 */
.ms-table-section { padding: 0 20px 24px; }
.ms-table-intro { text-align: center; margin: -6px 0 14px; color: var(--text-light); font-size: 14px; }
.ms-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ms-table { min-width: 760px; }
.ms-table tbody th[scope="row"] { white-space: nowrap; text-align: left; text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 700; color: var(--text); background: none; }
.ms-table .ms-sig { display: block; font-size: 12.5px; color: var(--text-light); }
.ms-table .ms-notes-cell { white-space: nowrap; letter-spacing: .01em; }
.ms-table .ms-notes-cell b { color: var(--ms-raised); }

@media (max-width: 560px) {
    #ms-labels { display: grid; grid-template-columns: 1fr 1fr; }
    #ms-labels .toggle-btn { white-space: nowrap; }
}
@media (max-width: 760px) {
    .ms-forms { grid-template-columns: 1fr; }
    .ms-staff-wrap { padding: 14px 8px 0; }
    .ms-page .pattern-display { flex-wrap: wrap; }
}
