:root {
	--rensei-electric: #23c6f3;
	--rensei-violet: #6c4cff;
	--rensei-yellow: #ffd84d;
	--rensei-coral: #ff5b57;
	--rensei-lab-dark: #071a38;
	--rensei-lab-panel: #0e3266;
}

/* Lightweight robot boot screen. It self-dismisses even if JavaScript fails. */
.rensei-tech-loader {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	color: #fff;
	background:
		radial-gradient(circle at 50% 44%, rgba(35, 198, 243, 0.18), transparent 32%),
		linear-gradient(145deg, #041128, #092f59 58%, #071a38);
	overflow: hidden;
	transition: opacity 0.42s ease, visibility 0.42s ease;
	animation: rensei-loader-safety 0.45s ease 2.8s forwards;
}

.rensei-tech-loader.is-complete {
	opacity: 0;
	visibility: hidden;
}

.rensei-loader-grid {
	position: absolute;
	inset: -40%;
	background-image:
		linear-gradient(rgba(35, 198, 243, 0.09) 1px, transparent 1px),
		linear-gradient(90deg, rgba(35, 198, 243, 0.09) 1px, transparent 1px);
	background-size: 46px 46px;
	transform: perspective(520px) rotateX(58deg) translateY(19%);
	-webkit-mask-image: radial-gradient(circle, #000 10%, transparent 62%);
	mask-image: radial-gradient(circle, #000 10%, transparent 62%);
	animation: rensei-loader-grid 2.1s linear infinite;
}

.rensei-loader-console {
	position: relative;
	display: flex;
	align-items: center;
	flex-direction: column;
	width: min(82vw, 360px);
	letter-spacing: 0.08em;
}

.rensei-loader-orbit {
	position: relative;
	display: grid;
	place-items: center;
	width: 132px;
	height: 132px;
	margin-bottom: 26px;
	border: 1px solid rgba(35, 198, 243, 0.3);
	border-radius: 50%;
	box-shadow: 0 0 42px rgba(35, 198, 243, 0.16);
}

.rensei-loader-orbit::before,
.rensei-loader-orbit::after {
	position: absolute;
	inset: -8px;
	content: "";
	border: 3px solid transparent;
	border-top-color: var(--rensei-electric);
	border-right-color: rgba(255, 216, 77, 0.55);
	border-radius: 50%;
	animation: rensei-loader-spin 1.4s linear infinite;
}

.rensei-loader-orbit::after {
	inset: 11px;
	border-top-color: transparent;
	border-right-color: var(--rensei-coral);
	animation-direction: reverse;
	animation-duration: 1.8s;
}

.rensei-loader-robot {
	position: relative;
	width: 72px;
	height: 58px;
	background: linear-gradient(145deg, #fff, #c8eff8);
	border: 3px solid #25bad9;
	border-radius: 20px 20px 17px 17px;
	box-shadow: inset 0 -9px 0 rgba(35, 198, 243, 0.1), 0 12px 28px rgba(0, 0, 0, 0.28);
}

.rensei-loader-antenna {
	position: absolute;
	top: -23px;
	left: 50%;
	width: 3px;
	height: 21px;
	background: #25bad9;
	transform: translateX(-50%);
}

.rensei-loader-antenna::before {
	position: absolute;
	top: -5px;
	left: 50%;
	width: 10px;
	height: 10px;
	content: "";
	background: var(--rensei-yellow);
	border-radius: 50%;
	box-shadow: 0 0 14px var(--rensei-yellow);
	transform: translateX(-50%);
}

.rensei-loader-eye {
	position: absolute;
	top: 18px;
	width: 11px;
	height: 11px;
	background: var(--rensei-violet);
	border-radius: 50%;
	box-shadow: 0 0 10px rgba(108, 76, 255, 0.8);
	animation: rensei-robot-blink 1.9s infinite;
}

.rensei-loader-eye--left { left: 16px; }
.rensei-loader-eye--right { right: 16px; }

.rensei-loader-mouth {
	position: absolute;
	bottom: 11px;
	left: 50%;
	width: 25px;
	height: 6px;
	border: 2px solid #25bad9;
	border-top: 0;
	border-radius: 0 0 12px 12px;
	transform: translateX(-50%);
}

.rensei-loader-console > strong {
	font-size: 21px;
	font-weight: 900;
	letter-spacing: 0.22em;
}

.rensei-loader-console > span {
	margin-top: 7px;
	color: rgba(255, 255, 255, 0.62);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 0.18em;
}

.rensei-loader-bar {
	width: 100%;
	height: 4px;
	margin-top: 22px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	overflow: hidden;
}

.rensei-loader-bar i {
	display: block;
	width: 42%;
	height: 100%;
	background: linear-gradient(90deg, transparent, var(--rensei-electric), var(--rensei-yellow), transparent);
	box-shadow: 0 0 12px var(--rensei-electric);
	animation: rensei-loader-scan 1.05s ease-in-out infinite;
}

@keyframes rensei-loader-spin {
	to { transform: rotate(360deg); }
}

@keyframes rensei-loader-grid {
	to { transform: perspective(520px) rotateX(58deg) translateY(calc(19% + 46px)); }
}

@keyframes rensei-loader-scan {
	from { transform: translateX(-120%); }
	to { transform: translateX(340%); }
}

@keyframes rensei-robot-blink {
	0%, 44%, 52%, 100% { transform: scaleY(1); }
	48% { transform: scaleY(0.12); }
}

@keyframes rensei-loader-safety {
	to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* Shared playful lab accents */
.rensei-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--rensei-blue);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.13em;
	text-transform: uppercase;
}

.rensei-topic-pill {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 5px 11px;
	color: var(--rensei-navy) !important;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	background: #e9f8ff;
	border: 1px solid rgba(35, 198, 243, 0.38);
	border-radius: 999px;
}

.rensei-topic-pill:hover {
	color: #fff !important;
	text-decoration: none;
	background: var(--rensei-blue);
}

/* Home learning journey: one continuous robotics circuit driven by scroll. */
.home .site-main,
.home #main {
	position: relative;
	isolation: isolate;
}

.home .site-main > :not(.rensei-journey-rail),
.home #main > :not(.rensei-journey-rail) {
	position: relative;
	z-index: 1;
}

.rensei-journey-rail {
	position: absolute;
	z-index: 2;
	top: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	pointer-events: none;
	overflow: hidden;
	opacity: 0.9;
}

.rensei-journey-rail svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.rensei-journey-track,
.rensei-journey-progress {
	fill: none;
	vector-effect: non-scaling-stroke;
}

.rensei-journey-track {
	stroke: rgba(15, 170, 188, 0.15);
	stroke-width: 3;
	stroke-dasharray: 3 12;
}

.rensei-journey-progress {
	stroke: #ff7a32;
	stroke-width: 4;
	stroke-linecap: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	filter: drop-shadow(0 0 6px rgba(255, 122, 50, 0.65));
}

.rensei-journey-nodes circle {
	fill: #fff;
	stroke: #12a8ba;
	stroke-width: 3;
	vector-effect: non-scaling-stroke;
	filter: drop-shadow(0 3px 5px rgba(8, 85, 105, 0.2));
}

.rensei-journey-spark {
	fill: #ffd84d;
	stroke: #fff;
	stroke-width: 3;
	vector-effect: non-scaling-stroke;
	filter: drop-shadow(0 0 9px #ff8b3d);
}

.rensei-home-search-intro {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 34px;
	max-width: 1140px;
	margin: 0 auto 36px;
	padding: 30px 38px;
	color: #fff;
	background:
		radial-gradient(circle at 6% 20%, rgba(255, 216, 77, 0.18), transparent 24%),
		linear-gradient(115deg, #071a38, #0e4a7d 64%, #6c4cff);
	border: 1px solid rgba(35, 198, 243, 0.32);
	border-radius: 26px;
	box-shadow: 0 22px 55px rgba(7, 26, 56, 0.2);
	overflow: hidden;
}

.rensei-home-search-intro::after {
	position: absolute;
	top: -85px;
	right: 16%;
	width: 210px;
	height: 210px;
	content: "";
	border: 1px dashed rgba(255, 255, 255, 0.2);
	border-radius: 50%;
}

.rensei-home-search-intro > div {
	position: relative;
	z-index: 1;
}

.rensei-home-search-intro .rensei-eyebrow {
	color: var(--rensei-yellow);
}

.rensei-home-search-intro h1 {
	max-width: 770px;
	margin: 6px 0 8px;
	color: #fff;
	font-size: clamp(27px, 3.1vw, 43px);
	font-weight: 900;
	line-height: 1.08;
	letter-spacing: -0.025em;
}

.rensei-home-search-intro p {
	max-width: 790px;
	margin: 0;
	color: rgba(255, 255, 255, 0.72);
	font-size: 14px;
	line-height: 1.65;
}

.rensei-home-search-actions {
	display: flex;
	min-width: 185px;
	flex-direction: column;
	gap: 10px;
}

.rensei-home-search-actions a,
.rensei-home-search-actions button {
	display: inline-flex;
	min-height: 46px;
	align-items: center;
	justify-content: center;
	padding: 0 18px;
	color: var(--rensei-lab-dark);
	font-size: 13px;
	font-weight: 900;
	background: var(--rensei-yellow);
	border: 1px solid var(--rensei-yellow);
	border-radius: 999px;
}

.rensei-home-search-actions button {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.3);
}

.rensei-home-search-actions a:hover,
.rensei-home-search-actions button:hover {
	color: var(--rensei-lab-dark);
	text-decoration: none;
	background: #fff;
	border-color: #fff;
	transform: translateY(-2px);
}

/* Compact internal-page mission hero */
.single-post .page-header,
.archive .page-header,
.category .page-header {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 270px;
	isolation: isolate;
	overflow: hidden;
}

.single-post .page-header::before,
.archive .page-header::before,
.category .page-header::before {
	position: absolute;
	inset: 0;
	content: "";
	background:
		linear-gradient(90deg, rgba(7, 26, 56, 0.92), rgba(14, 50, 102, 0.68)),
		radial-gradient(circle at 76% 26%, rgba(35, 198, 243, 0.38) 0 4px, transparent 5px),
		radial-gradient(circle at 86% 68%, rgba(255, 216, 77, 0.44) 0 5px, transparent 6px);
	z-index: 0;
}

.single-post .page-header::after,
.archive .page-header::after,
.category .page-header::after {
	position: absolute;
	top: -100px;
	right: 4%;
	width: 360px;
	height: 360px;
	content: "";
	background:
		linear-gradient(34deg, transparent 49%, rgba(35, 198, 243, 0.28) 50% 51%, transparent 52%),
		linear-gradient(144deg, transparent 49%, rgba(255, 216, 77, 0.22) 50% 51%, transparent 52%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 50%;
	z-index: 0;
}

.single-post .page-header .bg-linear,
.archive .page-header .bg-linear,
.category .page-header .bg-linear {
	position: relative;
	z-index: 1;
	width: 100%;
	background-color: transparent !important;
}

.single-post .page-header .flex-bg,
.archive .page-header .flex-bg,
.category .page-header .flex-bg {
	min-height: 270px;
	height: auto !important;
}

.single-post .page-header .title,
.archive .page-header .title,
.category .page-header .title {
	max-width: 980px;
	margin: 0;
	color: #fff;
	font-size: clamp(34px, 4vw, 58px);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.025em;
	text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Story archive */
.rensei-archive-wrapper {
	padding: 68px 0 90px;
	background:
		radial-gradient(circle at 8% 4%, rgba(35, 198, 243, 0.1), transparent 24%),
		linear-gradient(#f9fcff, #f4f8fd);
}

.rensei-archive-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 32px;
	align-items: end;
	margin-bottom: 42px;
	padding: 30px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--rensei-border);
	border-radius: 24px;
	box-shadow: 0 18px 60px rgba(18, 59, 120, 0.09);
}

.rensei-archive-copy h2 {
	margin: 8px 0 10px;
	color: var(--rensei-navy-dark);
	font-size: clamp(28px, 3vw, 44px);
	font-weight: 800;
	line-height: 1.08;
}

.rensei-archive-copy p {
	max-width: 720px;
	margin: 0;
	color: var(--rensei-muted);
	font-size: 17px;
	line-height: 1.7;
}

.rensei-topic-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	max-width: 430px;
}

.rensei-topic-chips a {
	padding: 9px 14px;
	color: var(--rensei-navy);
	font-size: 13px;
	font-weight: 700;
	background: #fff;
	border: 1px solid var(--rensei-border);
	border-radius: 999px;
}

.rensei-topic-chips a:hover {
	color: #fff;
	text-decoration: none;
	background: linear-gradient(90deg, var(--rensei-navy), var(--rensei-blue));
	border-color: transparent;
	transform: translateY(-2px);
}

.rensei-story-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.rensei-story-card {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 100%;
	flex-direction: column;
	margin: 0;
	background: #fff;
	border: 1px solid var(--rensei-border);
	border-radius: 22px;
	box-shadow: 0 12px 36px rgba(18, 59, 120, 0.09);
	overflow: hidden;
	transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.rensei-story-card::after {
	position: absolute;
	top: 0;
	right: 0;
	width: 86px;
	height: 86px;
	content: "";
	pointer-events: none;
	background:
		radial-gradient(circle at 24% 24%, var(--rensei-electric) 0 4px, transparent 5px),
		radial-gradient(circle at 72% 70%, var(--rensei-yellow) 0 4px, transparent 5px),
		linear-gradient(45deg, transparent 48%, rgba(255, 255, 255, 0.68) 49% 51%, transparent 52%);
	opacity: 0;
	transform: translate(15px, -15px);
	transition: opacity 220ms ease, transform 280ms ease;
	z-index: 3;
}

.rensei-story-card:hover {
	border-color: rgba(35, 198, 243, 0.52);
	box-shadow: 0 22px 55px rgba(18, 59, 120, 0.16);
	transform: translateY(-7px) rotate(-0.35deg);
}

.rensei-story-card:hover::after {
	opacity: 1;
	transform: translate(0, 0);
}

.rensei-story-card--featured {
	display: grid;
	grid-column: span 2;
	grid-template-columns: 1.16fr 0.84fr;
	min-height: 390px;
}

.rensei-story-media {
	position: relative;
	display: block;
	min-height: 220px;
	background: linear-gradient(145deg, var(--rensei-navy-dark), var(--rensei-blue));
	overflow: hidden;
}

.rensei-story-card:not(.rensei-story-card--featured) .rensei-story-media {
	aspect-ratio: 16 / 10;
}

.rensei-story-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.rensei-story-card:hover .rensei-story-media img {
	transform: scale(1.055);
}

.rensei-story-placeholder {
	display: flex;
	height: 100%;
	min-height: 220px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 12px;
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.12em;
	background:
		radial-gradient(circle at 22% 24%, rgba(255, 216, 77, 0.28), transparent 18%),
		radial-gradient(circle at 78% 72%, rgba(35, 198, 243, 0.3), transparent 22%),
		linear-gradient(145deg, var(--rensei-navy-dark), var(--rensei-navy));
	text-transform: uppercase;
}

.rensei-robot-face {
	font-size: 58px;
	filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.2));
}

.rensei-story-scan {
	position: absolute;
	top: -12%;
	bottom: -12%;
	left: -40%;
	width: 20%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
	transform: skewX(-18deg);
	transition: left 600ms ease;
}

.rensei-story-card:hover .rensei-story-scan {
	left: 125%;
}

.rensei-story-body {
	display: flex;
	min-width: 0;
	flex: 1;
	flex-direction: column;
	padding: 24px;
}

.rensei-story-card--featured .rensei-story-body {
	justify-content: center;
	padding: 36px;
}

.rensei-story-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin-bottom: 14px;
	color: var(--rensei-muted);
	font-size: 12px;
}

.rensei-story-meta i {
	color: var(--rensei-blue);
}

.rensei-story-title {
	display: -webkit-box;
	margin: 0 0 12px;
	color: var(--rensei-navy-dark);
	font-size: 21px;
	font-weight: 800;
	line-height: 1.35;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.rensei-story-card--featured .rensei-story-title {
	font-size: clamp(27px, 2.3vw, 36px);
	line-height: 1.2;
}

.rensei-story-title a {
	color: inherit;
}

.rensei-story-title a:hover {
	color: var(--rensei-blue);
	text-decoration: none;
}

.rensei-story-excerpt {
	display: -webkit-box;
	margin: 0 0 18px;
	color: var(--rensei-muted);
	font-size: 14px;
	line-height: 1.65;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

.rensei-story-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	color: var(--rensei-blue);
	font-size: 14px;
	font-weight: 800;
}

.rensei-story-link span {
	transition: transform 180ms ease;
}

.rensei-story-link:hover {
	color: var(--rensei-navy);
	text-decoration: none;
}

.rensei-story-link:hover span {
	transform: translateX(5px);
}

.rensei-pagination {
	margin-top: 44px;
}

/* Single article learning lab */
.rensei-single-wrapper {
	padding: 56px 0 90px;
	background:
		radial-gradient(circle at 4% 10%, rgba(35, 198, 243, 0.1), transparent 20%),
		linear-gradient(#f7fbff, #fff 34%);
}

.rensei-lab-article {
	max-width: 1120px;
	margin: 0 auto;
}

.rensei-article-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	margin-bottom: 26px;
	padding: 15px 18px;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid var(--rensei-border);
	border-radius: 18px;
	box-shadow: 0 12px 38px rgba(18, 59, 120, 0.08);
}

.rensei-article-meta,
.rensei-share-tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px 14px;
}

.rensei-article-meta {
	color: var(--rensei-muted);
	font-size: 13px;
}

.rensei-article-meta i {
	color: var(--rensei-blue);
}

.rensei-share-tools > span {
	color: var(--rensei-muted);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
}

.rensei-share-tools a,
.rensei-share-tools button {
	display: inline-flex;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	padding: 0;
	color: var(--rensei-navy);
	background: var(--rensei-soft);
	border: 1px solid var(--rensei-border);
	border-radius: 50%;
	cursor: pointer;
}

.rensei-share-tools a:hover,
.rensei-share-tools button:hover,
.rensei-share-tools button.is-copied {
	color: #fff;
	text-decoration: none;
	background: var(--rensei-blue);
	border-color: var(--rensei-blue);
	transform: translateY(-2px);
}

.single-post .heateor_sss_sharing_container,
.single-post .heateorSssClear {
	display: none !important;
}

.rensei-article-cover {
	margin: 0 0 34px;
	border: 8px solid #fff;
	border-radius: 28px;
	box-shadow: 0 24px 70px rgba(18, 59, 120, 0.14);
	overflow: hidden;
}

.rensei-article-cover img {
	display: block;
	width: 100%;
	max-height: 560px;
	object-fit: cover;
}

.rensei-reading-layout {
	display: grid;
	grid-template-columns: 88px minmax(0, 790px);
	gap: 28px;
	justify-content: center;
}

.rensei-reading-rail {
	position: sticky;
	top: 110px;
	display: flex;
	height: 220px;
	align-items: center;
	flex-direction: column;
	padding-top: 10px;
	color: var(--rensei-blue);
	font-size: 11px;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.rensei-rail-dot {
	width: 14px;
	height: 14px;
	background: #fff;
	border: 3px solid var(--rensei-cyan);
	border-radius: 50%;
	box-shadow: 0 0 0 6px rgba(59, 184, 212, 0.12);
}

.rensei-rail-dot.is-active {
	background: var(--rensei-blue);
}

.rensei-rail-line {
	width: 2px;
	height: 92px;
	background: linear-gradient(var(--rensei-blue), var(--rensei-cyan));
}

.rensei-reading-rail strong {
	margin-top: 16px;
	writing-mode: vertical-rl;
}

.rensei-article-copy {
	min-width: 0;
	padding: 46px clamp(24px, 5vw, 66px);
	color: #24334a;
	font-size: 18px;
	line-height: 1.85;
	background: #fff;
	border: 1px solid var(--rensei-border);
	border-radius: 28px;
	box-shadow: 0 20px 65px rgba(18, 59, 120, 0.1);
}

.rensei-article-copy > :first-child {
	margin-top: 0;
}

.rensei-article-copy p {
	margin-bottom: 1.45em;
}

.rensei-article-copy h2,
.rensei-article-copy h3 {
	position: relative;
	margin: 1.8em 0 0.75em;
	color: var(--rensei-navy-dark);
	font-weight: 800;
	line-height: 1.3;
}

.rensei-article-copy h2 {
	padding-left: 26px;
	font-size: 30px;
}

.rensei-article-copy h2::before {
	position: absolute;
	top: 0.42em;
	left: 0;
	width: 12px;
	height: 12px;
	content: "";
	background: var(--rensei-yellow);
	border: 3px solid var(--rensei-blue);
	border-radius: 4px;
	transform: rotate(45deg);
}

.rensei-article-copy h3 {
	font-size: 23px;
}

.rensei-article-copy img {
	height: auto;
	border-radius: 16px;
	box-shadow: 0 14px 38px rgba(18, 59, 120, 0.13);
}

.rensei-article-copy blockquote {
	position: relative;
	margin: 30px 0;
	padding: 24px 28px 24px 58px;
	color: var(--rensei-navy);
	font-size: 19px;
	font-weight: 600;
	background: linear-gradient(110deg, #edfaff, #f5f1ff);
	border: 1px solid rgba(35, 198, 243, 0.35);
	border-radius: 18px;
}

.rensei-article-copy blockquote::before {
	position: absolute;
	top: 18px;
	left: 20px;
	content: "💡";
	font-size: 25px;
}

.rensei-article-copy a {
	color: var(--rensei-blue);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(11, 142, 216, 0.32);
	text-underline-offset: 3px;
}

.rensei-reading-progress {
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	height: 4px;
	pointer-events: none;
	background: rgba(255, 255, 255, 0.4);
	z-index: 10000;
}

.rensei-reading-progress span {
	display: block;
	width: 0;
	height: 100%;
	background: linear-gradient(90deg, var(--rensei-yellow), var(--rensei-electric), var(--rensei-violet));
	box-shadow: 0 0 14px rgba(35, 198, 243, 0.75);
}

.rensei-article-cta {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 22px;
	align-items: center;
	max-width: 970px;
	margin: 44px auto 0;
	padding: 28px 30px;
	color: #fff;
	background:
		radial-gradient(circle at 8% 10%, rgba(255, 216, 77, 0.24), transparent 28%),
		linear-gradient(115deg, var(--rensei-navy-dark), var(--rensei-violet));
	border-radius: 26px;
	box-shadow: 0 24px 55px rgba(10, 40, 85, 0.24);
	overflow: hidden;
}

.rensei-article-cta::after {
	position: absolute;
	right: -30px;
	bottom: -55px;
	width: 190px;
	height: 190px;
	content: "";
	border: 1px solid rgba(255, 255, 255, 0.17);
	border-radius: 50%;
}

.rensei-cta-robot {
	font-size: 56px;
	filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.22));
}

.rensei-article-cta .rensei-eyebrow {
	color: var(--rensei-yellow);
}

.rensei-article-cta h2 {
	margin: 4px 0 5px;
	color: #fff;
	font-size: 26px;
	font-weight: 800;
}

.rensei-article-cta p {
	margin: 0;
	color: rgba(255, 255, 255, 0.78);
}

.rensei-cta-button,
.rensei-footer-cta {
	position: relative;
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 0 22px;
	color: var(--rensei-lab-dark);
	font-weight: 800;
	background: var(--rensei-yellow);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
	z-index: 1;
}

.rensei-cta-button:hover,
.rensei-footer-cta:hover {
	background: #fff;
	transform: translateY(-2px);
}

.rensei-related-stories {
	margin-top: 68px;
}

.rensei-section-heading {
	margin-bottom: 26px;
	text-align: center;
}

.rensei-section-heading h2 {
	margin: 6px 0 0;
	color: var(--rensei-navy-dark);
	font-size: 34px;
	font-weight: 800;
}

.rensei-article-footer {
	max-width: 790px;
	margin: 32px auto 0;
	color: var(--rensei-muted);
	font-size: 14px;
}

.rensei-comments-shell {
	max-width: 880px;
	margin: 50px auto 0;
	padding: 30px;
	background: #fff;
	border: 1px solid var(--rensei-border);
	border-radius: 22px;
}

/* Playful Robotics mega footer */
.rensei-mega-footer {
	position: relative;
	margin-top: 70px;
	padding: 0 0 22px;
	color: #fff;
	background:
		radial-gradient(circle at 8% 16%, rgba(35, 198, 243, 0.18), transparent 23%),
		radial-gradient(circle at 92% 72%, rgba(108, 76, 255, 0.2), transparent 27%),
		linear-gradient(145deg, #06152e, #0b2d5e 58%, #102b55);
	overflow: hidden;
}

.rensei-footer-circuit {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 40px 40px;
	mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.rensei-footer-launchpad {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 26px;
	padding: 32px 38px;
	background:
		radial-gradient(circle at 10% 50%, rgba(255, 216, 77, 0.2), transparent 28%),
		linear-gradient(110deg, var(--rensei-violet), var(--rensei-blue));
	border-radius: 0 0 30px 30px;
	box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22);
	overflow: hidden;
	z-index: 1;
}

.rensei-footer-launchpad::after {
	position: absolute;
	top: -110px;
	right: 20%;
	width: 260px;
	height: 260px;
	content: "";
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 50%;
}

.rensei-footer-launchpad .rensei-eyebrow {
	color: var(--rensei-yellow);
}

.rensei-footer-launchpad h2 {
	margin: 5px 0 4px;
	color: #fff;
	font-size: clamp(27px, 3vw, 42px);
	font-weight: 800;
	line-height: 1.05;
}

.rensei-footer-launchpad p {
	margin: 0;
	color: rgba(255, 255, 255, 0.8);
}

.rensei-footer-stats {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 30px;
	z-index: 1;
}

.rensei-footer-stat {
	display: grid;
	grid-template-columns: auto auto 1fr;
	gap: 10px;
	align-items: center;
	padding: 16px 20px;
	background: rgba(255, 255, 255, 0.075);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 16px;
	backdrop-filter: blur(8px);
}

.rensei-stat-icon {
	display: inline-flex;
	width: 32px;
	height: 32px;
	align-items: center;
	justify-content: center;
	color: var(--rensei-yellow);
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
}

.rensei-footer-stat strong {
	color: #fff;
	font-size: 24px;
	font-weight: 800;
}

.rensei-footer-stat small {
	color: rgba(255, 255, 255, 0.68);
	font-size: 12px;
}

.rensei-footer-grid {
	position: relative;
	display: grid;
	grid-template-columns: 0.95fr 0.9fr 1.35fr 1.15fr;
	gap: 30px;
	padding: 25px 0 34px;
	z-index: 1;
}

.rensei-footer-grid h3 {
	margin: 0 0 18px;
	color: #fff;
	font-size: 18px;
	font-weight: 800;
}

.rensei-footer-logo {
	display: inline-flex;
	margin-bottom: 18px;
	padding: 12px 16px;
	background: #fff;
	border-radius: 17px;
}

.rensei-footer-logo img {
	width: auto;
	max-width: 190px;
	height: 70px;
	object-fit: contain;
}

.rensei-footer-brand > p {
	max-width: 290px;
	color: rgba(255, 255, 255, 0.67);
	font-size: 14px;
	line-height: 1.7;
}

.rensei-footer-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.rensei-footer-socials a {
	display: inline-flex;
	width: auto;
	min-width: 40px;
	height: 40px;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 0 12px;
	color: #fff;
	font-size: 16px;
	font-weight: 800;
	background: rgba(255, 255, 255, 0.09);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
}

.rensei-footer-socials a:hover {
	color: var(--rensei-lab-dark);
	text-decoration: none;
	background: var(--rensei-yellow);
	transform: translateY(-3px) rotate(-3deg);
}

.rensei-footer-socials a span {
	font-size: 11px;
	letter-spacing: 0.02em;
}

/* Trial lesson mission-control panel */
body.rensei-consultation-open {
	overflow: hidden;
}

body.rensei-consultation-open .panel-overlay {
	display: block;
	z-index: 10000;
	background: rgba(3, 14, 35, 0.66);
	backdrop-filter: blur(5px);
}

.dang-ky-hoc-thu .form-dang-ky.rensei-mission-form,
body .dang-ky-hoc-thu .form-dang-ky.rensei-mission-form {
	right: 18px;
	bottom: 0;
	width: 430px;
	max-width: calc(100vw - 36px);
	max-height: calc(100vh - 24px);
	padding: 0 24px 24px;
	color: #fff;
	background:
		radial-gradient(circle at 100% 0, rgba(35, 198, 243, 0.25), transparent 35%),
		linear-gradient(155deg, #071a38, #0e3266) !important;
	border: 1px solid rgba(35, 198, 243, 0.34);
	border-radius: 22px 22px 0 0;
	box-shadow: 0 28px 80px rgba(3, 15, 38, 0.48);
	overflow-y: auto;
	z-index: 10001;
}

.dang-ky-hoc-thu .rensei-mission-form:not(.apperance-form) .rensei-consultation-head,
.dang-ky-hoc-thu .rensei-mission-form:not(.apperance-form) .wpcf7 {
	visibility: hidden;
	pointer-events: none;
}

.dang-ky-hoc-thu .rensei-mission-form .dang-ky {
	position: sticky;
	top: 0;
	width: calc(100% + 48px);
	min-height: 60px;
	margin: 0 -24px;
	padding: 0 52px 0 22px;
	font-size: 17px;
	letter-spacing: -0.01em;
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.09), transparent 38%),
		linear-gradient(105deg, var(--rensei-violet), var(--rensei-blue)) !important;
	border-radius: 21px 21px 0 0;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
	z-index: 3;
}

.dang-ky-hoc-thu .rensei-mission-form .dang-ky::before {
	position: absolute;
	right: 22px;
	width: 9px;
	height: 9px;
	content: "";
	background: var(--rensei-yellow);
	border-radius: 50%;
	box-shadow: 0 0 0 6px rgba(255, 216, 77, 0.14), 0 0 16px rgba(255, 216, 77, 0.75);
}

.dang-ky-hoc-thu .rensei-mission-form .dang-ky::after {
	display: none;
}

.rensei-consultation-head {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 18px;
	padding: 25px 0 12px;
}

.rensei-consultation-head .rensei-eyebrow {
	color: var(--rensei-yellow);
}

.rensei-consultation-head h2 {
	margin: 5px 0 7px;
	color: #fff;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.15;
}

.rensei-consultation-head p {
	margin: 0;
	color: rgba(255, 255, 255, 0.68);
	font-size: 13px;
	line-height: 1.55;
}

.rensei-consultation-close {
	display: inline-flex;
	width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 11px;
}

.rensei-consultation-close:hover,
.rensei-consultation-close:focus {
	color: var(--rensei-lab-dark);
	background: var(--rensei-yellow);
	border-color: var(--rensei-yellow);
	outline: none;
}

.rensei-mission-form div.wpcf7 {
	padding: 4px 0 0;
}

.rensei-mission-form .wpcf7 .row {
	margin-right: -6px;
	margin-left: -6px;
}

.rensei-mission-form .wpcf7 .row > [class*="col-"] {
	padding-right: 6px;
	padding-left: 6px;
}

.rensei-mission-form .wpcf7 label {
	margin-bottom: 7px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 12px;
	font-weight: 700;
}

.dang-ky-hoc-thu .rensei-mission-form .wpcf7 input:not([type="hidden"]):not([type="submit"]),
.dang-ky-hoc-thu .rensei-mission-form .wpcf7 textarea,
.dang-ky-hoc-thu .rensei-mission-form .wpcf7 select {
	width: 100%;
	min-height: 46px;
	padding: 10px 13px;
	color: #fff;
	background: rgba(255, 255, 255, 0.075);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 12px !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dang-ky-hoc-thu .rensei-mission-form .wpcf7 textarea {
	min-height: 88px;
	resize: vertical;
}

.dang-ky-hoc-thu .rensei-mission-form .wpcf7 input:focus,
.dang-ky-hoc-thu .rensei-mission-form .wpcf7 textarea:focus,
.dang-ky-hoc-thu .rensei-mission-form .wpcf7 select:focus {
	background: rgba(255, 255, 255, 0.12);
	border-color: var(--rensei-electric);
	box-shadow: 0 0 0 4px rgba(35, 198, 243, 0.13), 0 0 22px rgba(35, 198, 243, 0.12);
	outline: none;
}

.dang-ky-hoc-thu .rensei-mission-form .wpcf7 input[type="submit"] {
	width: 100%;
	min-height: 48px;
	margin-top: 25px;
	color: var(--rensei-lab-dark) !important;
	font-size: 15px;
	font-weight: 900;
	background: linear-gradient(90deg, var(--rensei-yellow), #ffb83f) !important;
	border: 0;
	border-radius: 12px !important;
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.dang-ky-hoc-thu .rensei-mission-form .wpcf7 input[type="submit"]:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26);
}

.rensei-mission-form .wpcf7-not-valid-tip {
	margin-top: -8px;
	margin-bottom: 8px;
	color: #ffb7b4;
	font-size: 11px;
}

.rensei-mission-form .wpcf7-response-output {
	margin: 12px 0 0 !important;
	padding: 10px 12px !important;
	color: #fff;
	font-size: 12px;
	border-color: rgba(35, 198, 243, 0.45) !important;
	border-radius: 10px;
}

.rensei-footer-links ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rensei-footer-links li + li {
	margin-top: 8px;
}

.rensei-footer-links a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 7px 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
}

.rensei-footer-links a:hover {
	color: var(--rensei-electric);
	text-decoration: none;
	transform: translateX(4px);
}

.rensei-footer-links a.is-highlight {
	padding: 11px 13px;
	color: #fff;
	font-weight: 800;
	background: rgba(35, 198, 243, 0.12);
	border: 1px solid rgba(35, 198, 243, 0.28);
	border-radius: 12px;
}

.rensei-footer-links a.is-highlight:hover {
	color: var(--rensei-lab-dark);
	background: var(--rensei-yellow);
	border-color: var(--rensei-yellow);
}

.rensei-centre-card {
	position: relative;
	padding: 16px 16px 14px;
	background: rgba(255, 255, 255, 0.075);
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: 16px;
	overflow: hidden;
}

.rensei-centre-card + .rensei-centre-card {
	margin-top: 12px;
}

.rensei-centre-card::before {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 4px;
	content: "";
	background: var(--rensei-electric);
}

.rensei-centre-card--stem::before {
	background: var(--rensei-yellow);
}

.rensei-centre-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 4px 7px;
	color: var(--rensei-lab-dark);
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.08em;
	background: var(--rensei-electric);
	border-radius: 999px;
}

.rensei-centre-card--stem .rensei-centre-badge {
	background: var(--rensei-yellow);
}

.rensei-centre-card h4 {
	margin: 0 74px 7px 0;
	color: #fff;
	font-size: 16px;
	font-weight: 800;
}

.rensei-centre-card p {
	margin: 0 0 10px;
	color: rgba(255, 255, 255, 0.66);
	font-size: 12px;
	line-height: 1.55;
}

.rensei-centre-card div {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

.rensei-centre-card a {
	padding: 5px 8px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	background: rgba(255, 255, 255, 0.09);
	border-radius: 7px;
}

.rensei-centre-card a:hover {
	color: var(--rensei-lab-dark);
	text-decoration: none;
	background: var(--rensei-yellow);
}

.rensei-footer-heading-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.rensei-live-dot {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #ffb7b4;
	font-size: 9px;
	font-weight: 900;
	letter-spacing: 0.1em;
}

.rensei-live-dot::before {
	width: 7px;
	height: 7px;
	content: "";
	background: var(--rensei-coral);
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba(255, 91, 87, 0.14);
}

.rensei-facebook-embed {
	min-height: 214px;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 16px;
	overflow: hidden;
}

.rensei-facebook-embed iframe {
	display: block;
	width: 100%;
	height: 214px;
	background: #fff;
	border: 0;
}

.rensei-facebook-embed.is-loaded .rensei-facebook-placeholder {
	display: none;
}

.rensei-facebook-placeholder {
	display: flex;
	min-height: 214px;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 10px;
	color: rgba(255, 255, 255, 0.72);
	font-size: 12px;
}

.rensei-facebook-placeholder span {
	display: inline-flex;
	width: 54px;
	height: 54px;
	align-items: center;
	justify-content: center;
	color: #fff;
	font: 800 34px/1 Arial, sans-serif;
	background: #1877f2;
	border-radius: 16px;
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.2);
}

.rensei-facebook-link {
	display: inline-flex;
	gap: 6px;
	margin-top: 10px;
	color: var(--rensei-electric);
	font-size: 12px;
	font-weight: 700;
}

.rensei-facebook-link:hover {
	color: #fff;
	text-decoration: none;
}

.rensei-footer-bottom {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 20px;
	color: rgba(255, 255, 255, 0.45);
	font-size: 12px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	z-index: 1;
}

.rensei-footer-bottom p {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin: 0;
}

.rensei-footer-bottom a {
	color: rgba(255, 255, 255, 0.66);
}

.rensei-footer-bottom a:hover {
	color: var(--rensei-electric);
}

@media (max-width: 1199.98px) {
	.rensei-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 991.98px) {
	.rensei-home-search-intro {
		align-items: flex-start;
		flex-direction: column;
		margin-right: 18px;
		margin-left: 18px;
	}

	.rensei-home-search-actions {
		min-width: 0;
		flex-direction: row;
	}

	.single-post .page-header,
	.archive .page-header,
	.category .page-header {
		min-height: 210px;
	}

	.rensei-archive-intro {
		grid-template-columns: 1fr;
	}

	.rensei-topic-chips {
		justify-content: flex-start;
		max-width: none;
	}

	.rensei-story-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rensei-story-card--featured {
		grid-column: span 2;
	}

	.rensei-reading-layout {
		grid-template-columns: 1fr;
	}

	.rensei-reading-rail {
		display: none;
	}

	.rensei-article-cta {
		grid-template-columns: auto 1fr;
	}

	.rensei-article-cta .rensei-cta-button {
		grid-column: 1 / -1;
		justify-self: start;
	}

	.rensei-footer-launchpad {
		margin-right: 0;
		margin-left: 0;
	}
}

@media (max-width: 767.98px) {
	.rensei-home-search-intro {
		gap: 22px;
		margin-right: 12px;
		margin-bottom: 28px;
		margin-left: 12px;
		padding: 24px 20px;
		border-radius: 20px;
	}

	.rensei-home-search-intro h1 {
		font-size: 29px;
	}

	.rensei-home-search-actions {
		width: 100%;
		flex-direction: column;
	}

	.rensei-home-search-actions a,
	.rensei-home-search-actions button {
		width: 100%;
	}

	.dang-ky-hoc-thu .form-dang-ky.rensei-mission-form,
	body .dang-ky-hoc-thu .form-dang-ky.rensei-mission-form {
		right: 0;
		width: 100%;
		max-width: 100%;
		max-height: calc(100vh - 8px);
		padding: 0 18px 18px;
		border-right: 0;
		border-left: 0;
		border-radius: 20px 20px 0 0;
	}

	.dang-ky-hoc-thu .rensei-mission-form .dang-ky {
		width: calc(100% + 36px);
		margin: 0 -18px;
		padding-left: 18px;
		font-size: 15px;
	}

	.rensei-consultation-head h2 {
		font-size: 21px;
	}

	.dang-ky-hoc-thu .rensei-mission-form .wpcf7 input[type="submit"] {
		margin-top: 2px;
	}

	.single-post .page-header,
	.archive .page-header,
	.category .page-header {
		min-height: 170px;
	}

	.single-post .page-header .title,
	.archive .page-header .title,
	.category .page-header .title {
		font-size: clamp(27px, 8vw, 38px);
		line-height: 1.12;
	}

	.rensei-archive-wrapper,
	.rensei-single-wrapper {
		padding: 36px 0 64px;
	}

	.rensei-archive-intro {
		padding: 22px;
	}

	.rensei-story-grid {
		grid-template-columns: 1fr;
	}

	.rensei-story-card--featured {
		display: flex;
		grid-column: auto;
		min-height: 0;
	}

	.rensei-story-card--featured .rensei-story-body {
		padding: 24px;
	}

	.rensei-article-toolbar {
		align-items: flex-start;
		flex-direction: column;
	}

	.rensei-article-copy {
		padding: 28px 20px;
		font-size: 16px;
		line-height: 1.78;
		border-radius: 20px;
	}

	.rensei-article-copy h2 {
		font-size: 25px;
	}

	.rensei-article-cta {
		grid-template-columns: 1fr;
		padding: 24px;
	}

	.rensei-cta-robot {
		font-size: 46px;
	}

	.rensei-footer-launchpad {
		align-items: flex-start;
		flex-direction: column;
		padding: 26px 22px;
	}

	.rensei-footer-stats,
	.rensei-footer-grid {
		grid-template-columns: 1fr;
	}

	.rensei-footer-stat {
		grid-template-columns: auto 72px 1fr;
	}

	.rensei-footer-grid {
		gap: 36px;
	}

	.rensei-footer-bottom {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rensei-tech-loader {
		transition: none;
		animation-delay: 0.1s;
		animation-duration: 0.01ms;
	}

	.rensei-loader-grid,
	.rensei-loader-orbit::before,
	.rensei-loader-orbit::after,
	.rensei-loader-eye,
	.rensei-loader-bar i {
		animation: none;
	}

	.rensei-story-card,
	.rensei-story-card::after,
	.rensei-story-media img,
	.rensei-story-scan {
		transition: none;
	}

	.rensei-story-card:hover {
		transform: none;
	}
}
