/* Tajweed inks, the app's own (lib/design/tokens.dart, Palette.tajweedLight
   and tajweedDark, 6.2.0). Each light ink measures at least 4.5:1 on the
   app's parchment, each dark ink at least 4.5:1 on its night ground; the
   app's tools/check_contrast.py gates them, so they are copied, not tuned.
   Classes: .tj-<rule>, the rule ids of tajweed.js (the app's enum names). */
:root{
  --tj-qalqalah:#B3261E; --tj-maddLong:#8E1348; --tj-madd:#1D4ED8; --tj-ghunnah:#0A6B3B;
  --tj-idghaamNoGhunnah:#A6246D; --tj-iqlab:#056A66; --tj-ikhfa:#6B21A8; --tj-tafkheem:#9A4A06;
}
html[data-theme=dark]{
  --tj-qalqalah:#FF8A80; --tj-maddLong:#FF87B2; --tj-madd:#8AB4FF; --tj-ghunnah:#5FD79B;
  --tj-idghaamNoGhunnah:#FF92D0; --tj-iqlab:#4FD6CE; --tj-ikhfa:#CBA6FF; --tj-tafkheem:#FFB067;
}
.tj-qalqalah{color:var(--tj-qalqalah)}
.tj-maddLong{color:var(--tj-maddLong)}
.tj-madd{color:var(--tj-madd)}
.tj-ghunnah{color:var(--tj-ghunnah)}
.tj-idghaamNoGhunnah{color:var(--tj-idghaamNoGhunnah)}
.tj-iqlab{color:var(--tj-iqlab)}
.tj-ikhfa{color:var(--tj-ikhfa)}
.tj-tafkheem{color:var(--tj-tafkheem)}
/* A word being said or tapped (.ar w.on) keeps its tajweed ink inside the
   wash, as the app keeps it inside its band. */
@media (forced-colors:active){.tj{color:inherit}}

/* The key, as the app's settings screen draws it: a swatch, the rule's name
   in its ink, the one-line explanation under it. QTajweed.legendHTML(). */
.tj-legend{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:10px}
.tj-legend li{display:flex;gap:10px;align-items:flex-start;line-height:1.35}
.tj-legend .tj-dot{flex:none;width:12px;height:12px;border-radius:50%;margin-top:4px;background:currentColor}
.tj-legend b{display:block;font-weight:600;font-size:.92rem}
.tj-legend small{display:block;color:var(--muted);font-size:.8rem;margin-top:1px}
