/**
 * Regatul Sahului — Global Role Consistency v1.4.13
 *
 * Shared chrome only: header, navigation, language controls, focus states,
 * readable system messages and footer. Page-specific portals/cards remain owned
 * by their validated versioned stylesheets.
 */

body.rs-role-shell-v1413 {
	--rs1413-night: #16082f;
	--rs1413-night-soft: #27104d;
	--rs1413-violet: #6f37dd;
	--rs1413-violet-strong: #5525bf;
	--rs1413-gold: #f2c867;
	--rs1413-gold-light: #fff0b4;
	--rs1413-ink: #25143f;
	--rs1413-muted: #665878;
	--rs1413-border: rgba(111, 55, 221, .17);
	--rs1413-focus: #6f37dd;
	--rs1413-focus-contrast: #fff0a8;
	--rs1413-header-shadow: 0 12px 34px rgba(31, 12, 68, .09);
	--rs1413-footer-shadow: 0 -14px 38px rgba(20, 7, 48, .13);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

body.rs-role-shell--child {
	--rs1413-context-accent: #8142eb;
	--rs1413-context-soft: rgba(129, 66, 235, .11);
}

body.rs-role-shell--parent {
	--rs1413-context-accent: #6544d8;
	--rs1413-context-soft: rgba(101, 68, 216, .1);
}

body.rs-role-shell--academy {
	--rs1413-context-accent: #753adf;
	--rs1413-context-soft: rgba(117, 58, 223, .1);
}

body.rs-role-shell--public {
	--rs1413-context-accent: #6841d8;
	--rs1413-context-soft: rgba(104, 65, 216, .09);
}

/* Shared header and navigation shell. */
body.rs-role-shell-v1413 .site-header {
	position: relative;
	z-index: 110;
	border-bottom: 1px solid var(--rs1413-border);
	background: rgba(255, 255, 255, .985);
	box-shadow: var(--rs1413-header-shadow);
}

body.rs-role-shell-v1413 .inside-header {
	width: min(1180px, calc(100% - 32px));
	margin-inline: auto;
	padding-block: 14px;
	gap: clamp(16px, 2vw, 28px);
}

body.rs-role-shell-v1413 .site-logo img,
body.rs-role-shell-v1413 .site-branding img {
	width: auto;
	max-height: 88px;
	object-fit: contain;
}

body.rs-role-shell-v1413 .site-title,
body.rs-role-shell-v1413 .main-title {
	margin: 0;
	font-weight: 900;
	letter-spacing: -.025em;
}

body.rs-role-shell-v1413 .site-title a,
body.rs-role-shell-v1413 .main-title a {
	color: var(--rs1413-ink);
	text-decoration: none;
}

body.rs-role-shell-v1413 .main-navigation,
body.rs-role-shell-v1413 #site-navigation {
	background: rgba(255, 255, 255, .985);
	color: var(--rs1413-ink);
}

body.rs-role-shell-v1413 .main-navigation .main-nav > ul > li > a,
body.rs-role-shell-v1413 #site-navigation .main-nav > ul > li > a,
body.rs-role-shell-v1413 .main-navigation .menu > li > a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding-inline: 12px;
	border-radius: 999px;
	color: #2f2350;
	font-weight: 850;
	line-height: 1.2;
	text-decoration: none;
	transition: color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.rs-role-shell-v1413 .main-navigation .main-nav > ul > li > a:hover,
body.rs-role-shell-v1413 #site-navigation .main-nav > ul > li > a:hover,
body.rs-role-shell-v1413 .main-navigation .menu > li > a:hover {
	background: var(--rs1413-context-soft);
	color: var(--rs1413-context-accent);
	text-decoration: none;
}

body.rs-role-shell-v1413 .main-navigation .main-nav > ul > li.current-menu-item > a,
body.rs-role-shell-v1413 .main-navigation .main-nav > ul > li.current_page_item > a,
body.rs-role-shell-v1413 .main-navigation .main-nav > ul > li.current-menu-ancestor > a,
body.rs-role-shell-v1413 #site-navigation .main-nav > ul > li.current-menu-item > a,
body.rs-role-shell-v1413 #site-navigation .main-nav > ul > li.current_page_item > a {
	background: linear-gradient(135deg, rgba(111, 55, 221, .13), rgba(242, 200, 103, .13));
	color: var(--rs1413-violet-strong);
	box-shadow: inset 0 0 0 1px rgba(111, 55, 221, .13);
}

body.rs-role-shell-v1413 .main-navigation .sub-menu,
body.rs-role-shell-v1413 #site-navigation .sub-menu,
body.rs-role-shell-v1413 .rs-nav-premium-fallback .sub-menu {
	border: 1px solid rgba(111, 55, 221, .16);
	border-radius: 18px;
	background: rgba(255, 255, 255, .99);
	box-shadow: 0 22px 52px rgba(31, 12, 68, .17);
}

body.rs-role-shell-v1413 .main-navigation .sub-menu a,
body.rs-role-shell-v1413 #site-navigation .sub-menu a {
	min-height: 44px;
	color: #342553;
	font-weight: 750;
	line-height: 1.35;
}

body.rs-role-shell-v1413 .main-navigation .sub-menu a:hover,
body.rs-role-shell-v1413 #site-navigation .sub-menu a:hover {
	background: var(--rs1413-context-soft);
	color: var(--rs1413-context-accent);
}

/* One consistent language control in public, parent, child and academy contexts. */
body.rs-role-shell-v1413 .rs-language-switcher__item {
	min-width: 58px;
	min-height: 44px;
	height: 44px;
	border-color: rgba(111, 55, 221, .2);
	background: rgba(255, 255, 255, .98);
	color: #403360;
	box-shadow: 0 9px 24px rgba(66, 39, 118, .09);
}

body.rs-role-shell-v1413 .rs-language-switcher__item:hover {
	border-color: rgba(111, 55, 221, .42);
	background: #f7f2ff;
	color: var(--rs1413-violet-strong);
}

body.rs-role-shell-v1413 .rs-language-switcher__item.is-active {
	border-color: rgba(255, 232, 155, .62);
	background: linear-gradient(135deg, #8142eb 0%, #5a2ac8 100%);
	color: #fff;
	box-shadow: 0 12px 28px rgba(83, 37, 178, .25), inset 0 1px 0 rgba(255, 255, 255, .24);
}

/* Shared interaction contract without recoloring validated page-specific CTAs. */
body.rs-role-shell-v1413 :where(
	.rs-btn,
	.rs-child-v144__cta,
	.rs143-magic-card__cta,
	.rs-news-v1410__button,
	.rs-news-v1410__card-cta,
	.rs-achievements-v148__btn,
	.rs-parent-step__cta,
	.rs-parent-portal-nav__link,
	.rs1412-academy-btn,
	.rs1412-academy-current__cta,
	.rs-map-toolbar__button,
	.rs-piece-card__cta,
	.rs-demo-btn,
	.rs1321-btn,
	.rs1322-btn,
	.rs-discover-btn,
	.rs-parent-btn
) {
	min-height: 48px;
	white-space: normal;
	text-align: center;
	line-height: 1.25;
	overflow-wrap: anywhere;
}

body.rs-role-shell-v1413 :where(
	a,
	button,
	input,
	select,
	textarea,
	[tabindex]:not([tabindex="-1"])
):focus-visible {
	outline: 3px solid var(--rs1413-focus-contrast);
	outline-offset: 3px;
	box-shadow: 0 0 0 6px rgba(111, 55, 221, .72);
}

body.rs-role-shell-v1413 :where(input, select, textarea) {
	accent-color: var(--rs1413-context-accent);
}

/* Keep all validated feedback/help copy readable without changing its meaning or color scheme. */
body.rs-role-shell-v1413 :where(
	.rs-notice,
	.rs-lesson-message,
	.rs-parent-princess-note,
	.rs1412-academy-status,
	[role="alert"],
	[aria-live]
) {
	line-height: 1.58;
	overflow-wrap: anywhere;
	word-break: normal;
}

body.rs-role-shell-v1413 :where(
	.rs-notice,
	.rs-lesson-message,
	.rs-parent-princess-note,
	.rs1412-academy-status,
	[role="alert"]
) a {
	font-weight: 850;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

body.rs-role-shell-v1413 :where(h1, h2, h3) {
	text-wrap: balance;
}

body.rs-role-shell-v1413 :where(p, li, td, th, label, .description) {
	overflow-wrap: anywhere;
}

body.rs-role-shell-v1413 table {
	font-variant-numeric: tabular-nums;
}

/* Shared footer closure for every role. */
body.rs-role-shell-v1413 .site-info {
	border-top: 1px solid rgba(242, 200, 103, .34);
	background:
		radial-gradient(circle at 50% 0%, rgba(126, 61, 224, .27), transparent 44%),
		linear-gradient(180deg, #1f0b43 0%, #13062d 100%);
	box-shadow: var(--rs1413-footer-shadow);
}

body.rs-role-shell-v1413 .inside-site-info {
	max-width: 1180px;
	margin-inline: auto;
}

body.rs-role-shell-v1413 .rs-footer-note {
	color: #f4eefd !important;
}

body.rs-role-shell-v1413 .rs-footer-note a {
	color: var(--rs1413-gold-light) !important;
	font-weight: 850 !important;
	text-decoration: underline;
	text-decoration-color: rgba(255, 240, 180, .54);
	text-underline-offset: 3px;
}

body.rs-role-shell-v1413 .rs-footer-note a:hover {
	color: #fff8dc !important;
}

body.rs-role-shell-v1413 .rs-footer-note .rs-heart {
	filter: drop-shadow(0 0 8px rgba(232, 93, 117, .5));
}

/* GeneratePress skip link and mobile menu control. */
body.rs-role-shell-v1413 .screen-reader-text:focus,
body.rs-role-shell-v1413 .skip-link:focus {
	z-index: 999999;
	left: 16px;
	top: 16px;
	width: auto;
	height: auto;
	padding: 12px 18px;
	border: 2px solid var(--rs1413-gold);
	border-radius: 12px;
	background: var(--rs1413-night);
	color: #fff;
	font-weight: 850;
	clip: auto !important;
	clip-path: none;
}

body.rs-role-shell-v1413 .menu-toggle,
body.rs-role-shell-v1413 button.menu-toggle {
	min-height: 48px;
	border-radius: 999px;
	background: linear-gradient(135deg, #8142eb, #5a2ac8);
	color: #fff;
	font-weight: 850;
	box-shadow: 0 10px 24px rgba(83, 37, 178, .22);
}

@media (max-width: 1024px) {
	body.rs-role-shell-v1413 .inside-header {
		width: min(100% - 24px, 1180px);
	}

	body.rs-role-shell-v1413 .main-navigation .main-nav > ul > li > a,
	body.rs-role-shell-v1413 #site-navigation .main-nav > ul > li > a {
		padding-inline: 10px;
	}
}

@media (max-width: 768px) {
	body.rs-role-shell-v1413 .site-header {
		box-shadow: 0 8px 24px rgba(31, 12, 68, .1);
	}

	body.rs-role-shell-v1413 .inside-header {
		width: calc(100% - 24px);
		padding-block: 10px;
		gap: 10px;
	}

	body.rs-role-shell-v1413 .site-logo img,
	body.rs-role-shell-v1413 .site-branding img {
		max-height: 68px;
	}

	body.rs-role-shell-v1413 .site-title,
	body.rs-role-shell-v1413 .main-title {
		font-size: clamp(19px, 5.5vw, 25px);
	}

	body.rs-role-shell-v1413 #site-navigation.toggled .main-nav > ul,
	body.rs-role-shell-v1413 .main-navigation.toggled .main-nav > ul,
	body.rs-role-shell-v1413.rs-premium-mobile-menu-open .main-navigation .main-nav > ul {
		padding: 12px 14px 18px !important;
		border-top: 1px solid rgba(111, 55, 221, .11);
		background: rgba(255, 255, 255, .99) !important;
		box-shadow: 0 22px 38px rgba(31, 12, 68, .11);
	}

	body.rs-role-shell-v1413 .main-navigation .main-nav > ul > li > a,
	body.rs-role-shell-v1413 #site-navigation .main-nav > ul > li > a,
	body.rs-role-shell-v1413 .main-navigation .menu > li > a {
		width: 100%;
		justify-content: flex-start;
		min-height: 48px;
		padding: 12px 14px !important;
		border-radius: 14px;
	}

	body.rs-role-shell-v1413 .main-navigation .sub-menu,
	body.rs-role-shell-v1413 #site-navigation .sub-menu,
	body.rs-role-shell-v1413 .rs-nav-premium-fallback .sub-menu {
		border: 0;
		border-left: 2px solid rgba(111, 55, 221, .18);
		border-radius: 0;
		box-shadow: none;
	}

	body.rs-role-shell-v1413 .main-navigation .sub-menu a,
	body.rs-role-shell-v1413 #site-navigation .sub-menu a {
		padding-block: 10px;
	}

	body.rs-role-shell-v1413 .rs-mobile-language-bar {
		border-color: rgba(111, 55, 221, .12);
		background: rgba(250, 247, 255, .99);
	}

	body.rs-role-shell-v1413 .rs-language-switcher--mobile-bar .rs-language-switcher__item {
		min-height: 44px;
		height: 44px;
	}

	body.rs-role-shell-v1413 :where(
		.rs-btn,
		.rs-child-v144__cta,
		.rs143-magic-card__cta,
		.rs-news-v1410__button,
		.rs-achievements-v148__btn,
		.rs-parent-step__cta,
		.rs1412-academy-btn,
		.rs1412-academy-current__cta
	) {
		max-width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.rs-role-shell-v1413,
	body.rs-role-shell-v1413 * {
		scroll-behavior: auto !important;
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .001ms !important;
	}

	body.rs-role-shell-v1413 .rs-heart {
		animation: none !important;
	}
}
