/**
 * MrLMS — scope reset for plugin custom pages.
 *
 * Neutralises host theme styles for any element tree rooted at `.mrlms-page`
 * (used together with a per-page root id, e.g. #mrlms-course). Loaded before
 * the page stylesheet so component rules re-apply on top.
 */

.mrlms-page.mrlms-page {
	--mrlms-brand: #7c3aed;
	--mrlms-brand-dark: #5b21b6;
	--mrlms-brand-soft: #ede9fe;
	--mrlms-surface: #ffffff;
	--mrlms-bg: #f6f4fb;
	--mrlms-border: #e7e2f5;
	--mrlms-text: #1e1b2e;
	--mrlms-muted: #6f6a85;
	--mrlms-danger: #b42318;
	--mrlms-success: #047857;
	--mrlms-radius: 16px;

	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	direction: rtl;
	text-align: start;
	font-family: "Vazirmatn", Vazir, IRANSans, "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: 15px;
	font-weight: 400;
	font-style: normal;
	line-height: 1.75;
	letter-spacing: normal;
	text-transform: none;
	color: var(--mrlms-text);
	background: var(--mrlms-bg);
	-webkit-text-size-adjust: 100%;
}

.mrlms-page.mrlms-page *,
.mrlms-page.mrlms-page *::before,
.mrlms-page.mrlms-page *::after {
	box-sizing: border-box;
}

.mrlms-page.mrlms-page :where(
	h1, h2, h3, h4, h5, h6,
	p, ul, ol, li, dl, dt, dd,
	figure, figcaption, blockquote, pre, code,
	table, thead, tbody, tr, th, td,
	img, svg, a, button, input, textarea, select,
	label, span, small, strong, b, em, hr, details, summary
) {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	font: inherit;
	color: inherit;
	letter-spacing: inherit;
	text-align: inherit;
	text-transform: inherit;
	text-decoration: none;
	text-wrap: auto;
	max-width: none;
	min-width: 0;
	list-style: none;
	text-shadow: none;
	font-variant: normal;
	font-feature-settings: normal;
	word-spacing: normal;
	text-indent: 0;
}

.mrlms-page.mrlms-page :where(strong, b) {
	font-weight: 700;
}

.mrlms-page.mrlms-page :where(button, input, textarea, select) {
	-webkit-appearance: none;
	appearance: none;
}

.mrlms-page.mrlms-page :where(hr) {
	height: 0;
	border-top: 1px solid var(--mrlms-border);
}

/* Strip decorative theme pseudo-elements from theme-authored, unclassed nodes. */
.mrlms-page.mrlms-page :where(h1, h2, h3, h4, h5, h6, p, a, li, span, button, blockquote):not([class])::before,
.mrlms-page.mrlms-page :where(h1, h2, h3, h4, h5, h6, p, a, li, span, button, blockquote):not([class])::after {
	content: none;
}

/* Remove focus outlines across every plugin custom page (product requirement). */
.mrlms-page.mrlms-page *,
.mrlms-page.mrlms-page *::before,
.mrlms-page.mrlms-page *::after {
	outline: none !important;
}
