/* Thai: tone-coloured romanization under the Thai script (see thaiTones.js).
   Five tones, five colours. They differ in brightness as well as hue (darkest
   low, then falling, mid, rising, brightest high) so colour-blind learners can
   still tell them apart, and the tone key (thaiToneKey.js) names each tone and
   its accent mark, so nothing depends on colour alone. */
.thai-tones { letter-spacing: 0.02em; }
.thai-tones .tone-sep { opacity: 0.35; margin: 0 1px; }
.tone-0 { color: #6b6f78; }   /* mid     */
.tone-1 { color: #172f78; }   /* low     */
.tone-2 { color: #b4141b; }   /* falling */
.tone-3 { color: #cc8100; }   /* high    */
.tone-4 { color: #1a9466; }   /* rising  */
:root[data-theme="dark"] .tone-0 { color: #aeb2ba; }
:root[data-theme="dark"] .tone-1 { color: #5b7fe0; }
:root[data-theme="dark"] .tone-2 { color: #ff6b6b; }
:root[data-theme="dark"] .tone-3 { color: #ffe08a; }
:root[data-theme="dark"] .tone-4 { color: #5fe3a8; }
.drill-card.is-correct .thai-tones .tone { color: var(--good); }
.tone-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 0.85rem; font-weight: 600; margin: 6px 0 2px; }
.tone-key-link { font: inherit; font-weight: 600; background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; }

/* The tone key window. */
.tk-intro { margin: 0 0 12px; color: var(--text-muted); font-size: 0.9rem; line-height: 1.45; text-align: center; }
.tk-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.tk-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 2px solid var(--border); border-radius: 4px; }
.tk-shape { flex: none; width: 40px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; }
.tk-main { flex: 1; min-width: 0; }
.tk-name { font-weight: 700; font-size: 1rem; }
.tk-mark, .tk-how { font-size: 0.8rem; color: var(--text-muted); line-height: 1.3; }
.tk-sample { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.tk-thai { font-weight: 400; font-size: 0.95rem; }
.tk-en { font-weight: 400; font-size: 0.75rem; color: var(--text-muted); }
