/* Full Partituras Play in 62 languages (play/scripts/helpers.py). */
/* Language menu: 62 names scroll inside the dropdown; two columns where there is room. */
.fp-lang > div[id] { max-height: min(70vh, 32rem); overflow-y: auto; overscroll-behavior: contain; }
.fp-lang > div[id] > ul > li { break-inside: avoid; }
@media (min-width: 640px) { .fp-lang > div[id] { min-width: 24rem; } .fp-lang > div[id] > ul { columns: 2; column-gap: .25rem; } }
.ssr .fp-lang ul { gap: 4px 12px; font-size: .85rem; }
/* Right-to-left pages (ar, fa, he): the text flows from the right, but instruments keep their real layout:
   the guitar neck, piano keyboards, chord diagrams and timelines live in horizontal scroll containers, which stay
   left to right (strings, frets and keys are not mirrored); tables inside them go back to right to left. */
html[dir="rtl"] .overflow-x-auto, html[dir="rtl"] svg, html[dir="rtl"] canvas, html[dir="rtl"] input[type="range"],
html[dir="rtl"] .ssr-license, html[dir="rtl"] code, html[dir="rtl"] kbd { direction: ltr; }
html[dir="rtl"] .overflow-x-auto table { direction: rtl; }
html[dir="rtl"] .ssr th, html[dir="rtl"] .ssr td { text-align: right; }
