/* Minnesinger Learn — Solfège and ear training (learn-course-solfege.js). All rules start with .sf- or sit inside it. */
.sf-keybar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 4px 0 10px; }
.sf-key { font-size: 1.02rem; margin-right: 4px; }
.sf-chk { display: inline-flex; gap: 6px; align-items: center; font-size: .92rem; }
.sf-notes { margin: 6px 0 10px; overflow-x: auto; }
.sf-tip { color: var(--muted, #545a7d); font-size: .92rem; margin: 4px 0 8px; }
.sf-result { margin-top: 12px; padding: 12px; border: 1px solid var(--line, #ddd2bd); border-radius: 12px; background: var(--card, #fffdf8); }
.sf-result h4 { margin: 0 0 6px; }
.sf-do { margin: 0 0 6px; font-size: .92rem; }
.sf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sf-chip { display: inline-flex; flex-direction: column; align-items: center; min-width: 58px; padding: 6px 8px; border-radius: 10px; border: 2px solid #1d6b3a; background: #e7f2e9; color: #14451f; }
.sf-chip.bad { border-color: #c8391f; background: #fbe9e5; color: #7c2312; }
.sf-chip b { font-size: 1.05rem; }
.sf-chip small { font-size: .74rem; }

.sf-rows { display: grid; gap: 10px; margin: 8px 0 12px; }
.sf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.sf-rowlab { min-width: 92px; font-weight: 700; font-size: .9rem; }
.sf-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.sf-slot { min-width: 52px; height: 46px; padding: 0 6px; border: 2px dashed var(--line, #c9bf9f); border-radius: 10px; background: var(--card, #fffdf8); font: inherit; font-weight: 800; font-size: 1.05rem; color: inherit; cursor: pointer; }
.sf-slot.cur { border-style: solid; border-color: #2f5bd3; box-shadow: 0 0 0 3px #2f5bd333; }
.sf-slot.full { border-style: solid; border-color: var(--line, #b9b08d); }
.sf-slot.ok { background: #e7f2e9; border-color: #1d6b3a; color: #14451f; }
.sf-slot.bad { background: #fbe9e5; border-color: #c8391f; color: #7c2312; }
.sf-slot.shown { background: #fff4d6; border-color: #b07a00; }
.sf-palette { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; }
.sf-pal { display: inline-flex; flex-direction: column; align-items: center; min-width: 58px; min-height: 48px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line, #c9bf9f); background: var(--card, #fff); font: inherit; color: inherit; cursor: pointer; }
.sf-pal b { font-size: 1.05rem; }
.sf-pal small { font-size: .72rem; color: var(--muted, #545a7d); }
.sf-pal:hover { border-color: #2f5bd3; }
.sf-pal:active { transform: translateY(1px); }
.sf-palette.rn .sf-pal { min-width: 50px; padding: 5px 8px; }

.sf-set { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.sf-set fieldset { border: 1px solid var(--line, #ddd2bd); border-radius: 12px; padding: 8px 12px 10px; margin: 0; display: grid; gap: 6px; background: var(--card, #fffdf8); }
.sf-set legend { font-weight: 800; padding: 0 6px; }
.sf-set label { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .94rem; }
.sf-set input[type=range] { max-width: 150px; }
.sf-prev { grid-column: 1 / -1; margin: 0; }
.sf-chart-top { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 8px; }
.sf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.sf-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 62px; border: 1px solid var(--line, #c9bf9f); border-radius: 10px; background: var(--card, #fff); font: inherit; color: inherit; cursor: pointer; padding: 4px; }
.sf-cell.dia { border-width: 2px; border-color: #2f5bd3; background: #eef2fd; }
.sf-cell.chr { background: #faf6ea; }
.sf-cell b { font-size: 1rem; }
.sf-cell small { font-size: .75rem; color: var(--muted, #545a7d); }
.sf-sign { font-size: 1.15rem; line-height: 1; }
.sf-src { overflow-x: auto; }
.sf-srctab { border-collapse: collapse; width: 100%; font-size: .88rem; }
.sf-srctab th, .sf-srctab td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line, #e3dac2); vertical-align: top; }
.sf-srctab small { display: block; color: var(--muted, #545a7d); }

.sf-trainer { display: grid; gap: 12px; }
.sf-controls { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: end; }
.sf-controls label { display: flex; flex-direction: column; gap: 3px; font-size: .88rem; font-weight: 700; }
.sf-controls label.sf-chk { flex-direction: row; font-weight: 600; }
.sf-controls select { max-width: 100%; }
.sf-keys summary { cursor: pointer; font-weight: 700; font-size: .9rem; }
.sf-keychips { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 6px 0; }
.sf-keychips label { flex-direction: row; font-weight: 500; }
.sf-stage { border: 1px solid var(--line, #ddd2bd); border-radius: 14px; padding: 14px; background: var(--card, #fffdf8); }
.sf-qtype { margin: 0 0 4px; font-size: .82rem; color: var(--muted, #545a7d); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.sf-streak { text-transform: none; letter-spacing: 0; }
.sf-q h3 { margin: 0 0 10px; }
.sf-histtab { border-collapse: collapse; width: 100%; font-size: .86rem; }
.sf-histtab th, .sf-histtab td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--line, #e3dac2); }

/* the paper forms */
.sf-pline { display: flex; align-items: flex-end; gap: 10px; margin: 8px 0; font-size: 10pt; }
.sf-pline > span { min-width: 88px; }
.sf-blanks { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.sf-blanks i { display: inline-block; border-bottom: 1px solid #111; height: 1.5em; }
.sf-pnote { margin: 4px 0; font-size: 9.5pt; color: #333; }

@media (max-width: 560px) {
  .sf-slot { min-width: 44px; height: 44px; }
  .sf-pal { min-width: 48px; }
  .sf-rowlab { min-width: 100%; }
  .sf-grid { grid-template-columns: repeat(4, 1fr); }
  .sf-srctab { font-size: .78rem; }
  .sf-histtab { font-size: .76rem; }
  .sf-histtab th, .sf-histtab td { padding: 3px 4px; }
}
@media print {
  .sf-pline { break-inside: avoid; }
}
