/* Triad inversions. The card, settings, and pills come from key-signature-flashcards.css, loaded first.
   Sizes are set so the question and every answer fit on a 768px-tall laptop and on a phone. */
.settings-panel { gap: 10px 18px; padding: 12px 16px; }
.settings-panel .setting-label { font-size: 12px; }
.settings-panel .setting-group { gap: 8px; }
.settings-panel .setting-btn { padding: 8px 11px; }
.flashcard-container { min-height: 222px; }
.flashcard { height: 222px; }
.notation-container { min-height: 0; margin: -22px 0 0; }
.notation-container svg { width: 100% !important; height: auto !important; max-width: 238px; }
.answer-reveal { font-size: clamp(28px, 7.5vw, 44px); margin-bottom: 4px; }
.answer-detail { margin: 0; font-size: 17px; font-weight: 600; color: var(--text); text-align: center; }
.answer-row[data-type="inversions"] .pills { width: 100%; gap: 10px; flex-wrap: nowrap; }
.answer-row[data-type="inversions"] .pill { flex: 1 1 0; min-width: 0; max-width: 250px; min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 12px;
    font-size: 16px; line-height: 1.2; border-color: var(--border); border-radius: 14px; color: var(--text); }
.answer-row[data-type="inversions"] .pill:hover:not(:disabled) { border-color: var(--primary); }
.pill .fig { display: inline-flex; flex-direction: column; justify-content: center; font-size: 13px; line-height: 1.1; color: var(--text-light); }
.pill .fig sup, .pill .fig sub { position: static; font-size: inherit; line-height: 1.1; vertical-align: baseline; }
.pill.correct .fig, .pill.incorrect .fig { color: inherit; }
.answer-row[data-type="natural"] .pill, .answer-row[data-type="sharps"] .pill, .answer-row[data-type="flats"] .pill { min-width: 60px; }
@media (max-width: 768px) {
    .settings-panel { gap: 8px; padding: 10px 12px; }
    .settings-panel .setting-group { flex-direction: row; align-items: center; }
    .settings-panel .setting-label { flex: 0 0 78px; font-size: 11.5px; }
    .settings-panel .setting-toggle { flex: 1; flex-wrap: nowrap; }
    .settings-panel .setting-btn { min-width: 0; padding: 8px 4px; }
}
@media (max-width: 560px) {
    .answer-row[data-type="inversions"] .pills { gap: 6px; }
    .answer-row[data-type="inversions"] .pill { padding: 8px 6px; gap: 6px; font-size: 14px; }
    .answer-row[data-type="natural"] .pills { gap: 4px; }
    .answer-row[data-type="natural"] .pill { min-width: 0; flex: 1 1 0; padding: 12px 0; font-size: 15px; }
    .answer-row[data-type="natural"], .answer-row[data-type="natural"] .pills { width: 100%; flex-wrap: nowrap; }
    .answer-row[data-type="sharps"] .pill, .answer-row[data-type="flats"] .pill { min-width: 54px; font-size: 15px; }
}
@media (max-width: 360px) { .answer-row[data-type="inversions"] .pill { font-size: 13px; } }
