/**
 * Frontend tweaks for the parent Creator LMS plugin.
 * Added in the companion plugin so the parent stays at pristine.
 */

/*
 * Course card title fixes — two issues stacked.
 *
 * 1. Parent's `style.css:2869` sets `word-break: break-word`, a
 *    deprecated non-standard value that behaves like `break-all` in
 *    Chrome/Edge — chops titles mid-character. Reset to `normal` and
 *    keep `overflow-wrap` for unusually long single tokens.
 *
 * 2. The active theme's heading typography (e.g. narihealth's
 *    `narihealth_h2_typo`) sets `letter-spacing: -3px` on every H2.
 *    That's calibrated for display-size headings; on a 16px course-
 *    title H2 the negative spacing is a third of a character width per
 *    gap — letters overlap, narrow letters (i, l) become invisible,
 *    and word-spaces collapse to zero. ("MANDT TRAINING" rendered as
 *    "MANDTTRANING" with one I missing.) Reset letter-spacing to
 *    `normal` so the font's natural metrics apply.
 *
 * The selector matches the parent's specificity so we win at equal
 * specificity by load order (companion enqueue runs after parent).
 */
.creator-lms-page .creator-lms-course-cards .course-card .course-info .creator-lms-loop-course-title {
	word-break: normal;
	overflow-wrap: break-word;
	-ms-word-break: normal;
	letter-spacing: normal;
	word-spacing: normal;
}
