/* Minnesinger Learn — Songs to play: the songs pages and the song player (learn-course-songplay.js), and the foot-tap on the metronome. */
.sp { max-width: 1200px; }
.sp h1 { margin: 4px 0; }
.sp h2 { font-size: 20px; margin: 18px 0 6px; }
.sp-meta { margin: 2px 0 6px; color: var(--muted, #555a7a); font-size: 14.5px; }
.sp-tabs { display: flex; gap: 8px; margin: 10px 0; flex-wrap: wrap; }
.sp-tabs a { padding: 8px 16px; border-radius: 999px; border: 2px solid #1f2350; color: #1f2350; font-weight: 800; text-decoration: none; background: #fff; }
.sp-tabs a.on { background: #1f2350; color: #fff; }
.sp-foot { background: #fff7e0; border-left: 5px solid #e8b043; padding: 8px 12px; border-radius: 8px; font-size: 15px; margin: 10px 0; max-width: 100ch; }
.sp-level { margin: 22px 0; }
.sp-level h2 { border-bottom: 2px solid #1f2350; padding-bottom: 4px; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.sp-card { background: #fff; border: 1px solid var(--line, #d7d9e6); border-left: 6px solid #b07a00; border-radius: 12px; padding: 12px 14px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sp-card h3 { margin: 0; font-size: 18px; }
.sp-card p { margin: 2px 0; font-size: 14.5px; }
.sp-prev { overflow: hidden; border: 1px solid #e3e5f0; border-radius: 8px; background: #fffefb; padding: 2px 4px; }
.sp-card-btns { margin-top: auto; padding-top: 6px; }
.sp-card-btns .btn, .sp-card-btns button { min-height: 44px; display: inline-flex; align-items: center; }
.sp-other { margin: 24px 0; }
.sp-bar { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; margin: 10px 0; }
.sp-go { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-go button, .sp-tempo button, .sp-key button { min-height: 44px; }
.sp-go button.on { background: #c8391f; border-color: #c8391f; color: #fff; }
.sp-big { display: flex; align-items: baseline; gap: 10px; min-width: 150px; }
.sp-big b { font: 900 56px/1 var(--ui, system-ui); color: #1f2350; min-width: 1.3ch; text-align: center; }
.sp-big span { font-size: 14px; color: var(--muted, #555a7a); font-weight: 700; }
.sp-opts { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 8px 0; }
.sp-loop select { min-height: 36px; }
.sp-tempo, .sp-key { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.sp-tempo input[type=range] { flex: 1 1 160px; min-width: 120px; max-width: 360px; accent-color: #1f2350; height: 32px; }
.sp-bpm { min-width: 7ch; font-size: 20px; }
.sp-key select { min-height: 44px; font-size: 16px; }
.sp-keynote { font-size: 14px; color: var(--muted, #555a7a); flex-basis: 100%; }
.sp-score { background: #fffefb; border: 1px solid #d7d9e6; border-radius: 12px; padding: 8px 6px; margin: 10px 0; outline-offset: 2px; }
.sp-sys { margin: 0 0 4px; text-align: left; }
.sp-loopband[hidden] { display: none; }
.sp-sys svg { display: inline-block; }
.sp-hl { fill: #e8b04300; stroke: none; pointer-events: none; }
.sp-hl.lit { fill: #e8b043aa; stroke: #b07a00; stroke-width: 1.5; }
.sp-hl[data-j="on"] { stroke: #2a8a5c; stroke-width: 2.5; fill: #2a8a5c33; }
.sp-hl[data-j="near-early"], .sp-hl[data-j="early"] { stroke: #2f5bd3; stroke-width: 2.5; fill: #2f5bd333; }
.sp-hl[data-j="near-late"], .sp-hl[data-j="late"] { stroke: #d9731a; stroke-width: 2.5; fill: #d9731a33; }
.sp-hl.lit[data-j] { fill: #e8b043aa; }
.sp-cnt { font: 800 15px var(--ui, system-ui); fill: #7a7f9c; text-anchor: middle; }
.sp-cnt.beat { font-size: 18px; fill: #4a4f72; }
.sp-cnt.on { fill: #c8391f; font-size: 22px; }
.sp-chord { font: 800 15px var(--ui, system-ui); fill: #1f2350; }
.sp-loopband { fill: #e8b04322; stroke: #b07a00; stroke-width: 1.5; stroke-dasharray: 5 4; pointer-events: none; }
.sp-capo { font-size: 15px; margin: 4px 0; }
.sp-kb { max-width: 920px; }
.sp-kb .wk.pos { fill: #fdf1d3; }
.sp-kb .bk.pos { fill: #6a5a28; }
.sp-fing { font: 900 15px var(--ui, system-ui); fill: #2f5bd3; pointer-events: none; }
.sp-kb .bk + .sp-fing, .sp-kb .sp-fing { paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.sp-chart .gs-bar.now { background: #fdf1d3; outline: 3px solid #e8b043; outline-offset: -3px; }
.gs-chord.now { outline: 3px solid #e8b043; border-radius: 8px; }
.sp-tap { margin: 18px 0; }
.sp-tapctl { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin: 8px 0; }
.sp-tapctl select { min-height: 40px; font-size: 15px; }
.sp-pad { display: block; width: 100%; max-width: 640px; min-height: 120px; border-radius: 18px; border: 3px solid #1f2350; background: #eef0fb; color: #1f2350; font: 900 36px/1.1 var(--ui, system-ui); touch-action: manipulation; cursor: pointer; user-select: none; }
.sp-pad small { display: block; font-size: 13px; font-weight: 700; color: #545a7d; }
.sp-pad.flash { animation: sp-flash .22s ease-out; }
@keyframes sp-flash { from { background: #e8b043; transform: scale(.985); } to { background: #eef0fb; transform: none; } }
.sp-fb { margin: 8px 0; font-weight: 800; font-size: 17px; min-height: 26px; }
.sp-fb.on { color: #1d6b3a; } .sp-fb.near-early, .sp-fb.early { color: #2f5bd3; } .sp-fb.near-late, .sp-fb.late { color: #b35a0e; } .sp-fb.miss { color: #c8391f; }
.sp-res p { font-size: 16px; margin: 6px 0; }
.sp-note { font-size: 13.5px; color: var(--muted, #555a7a); max-width: 90ch; }
.sp-more { margin: 16px 0; } .sp-more ol { margin: 6px 0 0 18px; }
.sp-source { font-size: 13.5px; color: var(--muted, #555a7a); }
.sp-metro { margin: 14px 0; }
.sp-songlink { margin: 4px 0 10px; font-size: 15px; }
.cs-song-btns .btn.primary { min-height: 40px; display: inline-flex; align-items: center; }
@media (max-width: 640px) {
  .sp-big b { font-size: 44px; }
  .sp-go button { flex: 1 1 45%; font-size: 15px; }
  .sp-tempo input[type=range] { flex-basis: 100%; max-width: none; order: 5; }
  .sp-pad { min-height: 130px; }
}
@media (prefers-reduced-motion: reduce) { .sp-pad.flash { animation: none; } }
/* the foot on the metronome: the toe taps down on every beat */
.pm-met-foot { display: inline-flex; flex-direction: column; align-items: center; gap: 0; font: 800 11px/1.1 var(--ui, system-ui); color: #545a7d; min-width: 52px; }
.pm-met-foot svg { width: 48px; height: 40px; }
.pm-met-foot .toe { transform-origin: 10px 31px; transform: rotate(-16deg); transition: transform .06s; }
.pm-met-foot.down .toe { transform: rotate(0deg); }
.pm-met-foot.down svg { color: #c8391f; }
.pm-met-foot svg { color: #1f2350; }
