/* ==========================================================
   MNR Knowledge Center - "Helix" home sections, body.mn-helix (loaded after mn-spark.css).
   (user, 2026-11-05: modern, energetic UI for education, healthcare and tech; warm, light gradients matching mnruniversity.edu.in)
   MNR's two schools as the two strands of a helix: an orange "care" strand that ends in cells and a blue "code"
   strand that ends in circuit pads. Hero on a peach-to-sky gradient, "Two streams, one library" side by side with
   the helix seam between them, the lab protocol on a trace, a wall of open-courseware campuses and a visit block
   with the 2007 inauguration plaque.
   Orange text on white uses --hx-ember (4.8:1); the care teal is kept for small marks and the healthcare stream.
   ========================================================== */

.mn-helix {
	--hx-ember: #b5500a;
	--hx-care: #f38020;
	--hx-care-soft: #fff1e4;
	--hx-code: #035ba6;
	--hx-code-soft: #e8f2fc;
	--hx-teal: #12a08a;
	--hx-sky: linear-gradient(135deg, #fff3e6 0%, #fffaf4 38%, #eef5fd 72%, #e3effc 100%);
	--sp-ember: #b5500a;
}

.mn-helix .mn-h2 {
	font-weight: 800;
}

.mn-helix .mn-h2 em,
.mn-helix .hm-section-title em {
	font-weight: 700;
	background: linear-gradient(90deg, #e85d04, #f38020 45%, #035ba6);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ---------- Hero ---------- */

.hx-hero {
	position: relative;
	overflow: hidden;
	padding: 52px 0 0;
	background: var(--hx-sky);
	border-bottom: 1px solid rgba(3, 91, 166, 0.08);
}

.hx-blob {
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
	filter: blur(6px);
}

.hx-blob-1 {
	width: 520px;
	height: 520px;
	right: -140px;
	top: -200px;
	background: radial-gradient(circle, rgba(249, 160, 63, 0.42) 0%, rgba(249, 160, 63, 0) 68%);
}

.hx-blob-2 {
	width: 460px;
	height: 460px;
	left: -180px;
	bottom: -160px;
	background: radial-gradient(circle, rgba(3, 91, 166, 0.16) 0%, rgba(3, 91, 166, 0) 70%);
}

.hx-blob-3 {
	width: 300px;
	height: 300px;
	left: 42%;
	top: 30%;
	background: radial-gradient(circle, rgba(18, 160, 138, 0.1) 0%, rgba(18, 160, 138, 0) 70%);
}

.hx-hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	gap: 40px;
	align-items: center;
}

.hx-eyebrow {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--mn-muted);
}

.hx-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(3, 91, 166, 0.14), 0 6px 16px -10px rgba(3, 91, 166, 0.5);
	color: var(--mn-blue);
	font-weight: 700;
}

.hx-title {
	margin: 0 0 18px;
	font-family: var(--mn-sans);
	font-size: clamp(42px, 5.6vw, 76px);
	font-weight: 900;
	line-height: 0.98;
	letter-spacing: -0.035em;
	color: var(--mn-blue-deep);
}

.hx-care,
.hx-code {
	position: relative;
	white-space: nowrap;
}

.hx-care {
	background: linear-gradient(100deg, #f9a03f, #e85d04);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hx-care::after {
	content: "";
	position: absolute;
	left: 2%;
	right: 2%;
	bottom: 0.02em;
	height: 0.1em;
	border-radius: 99px;
	background: linear-gradient(90deg, #f9a03f, #e85d04);
	opacity: 0.35;
}

.hx-code {
	color: var(--mn-blue);
	font-family: var(--mn-mono);
	font-weight: 700;
	letter-spacing: -0.06em;
}

.hx-caret {
	display: inline-block;
	width: 0.08em;
	height: 0.8em;
	margin-left: 0.04em;
	vertical-align: -0.04em;
	background: var(--mn-blue);
	animation: hx-blink 1.1s steps(1) infinite;
}

@keyframes hx-blink {
	50% {
		opacity: 0;
	}
}

.hx-lede {
	max-width: 590px;
	margin: 0 0 26px;
	font-size: 17.5px;
	line-height: 1.65;
	color: #3c4c62;
}

.hx-console .sp-mode.active {
	background: var(--mn-blue) !important;
	border-color: var(--mn-blue) !important;
	color: #fff !important;
}

.hx-console .sp-go {
	background: linear-gradient(100deg, #f38020, #e85d04) !important;
	border-color: transparent !important;
	color: #fff !important;
}

.hx-console .sp-go:hover {
	filter: brightness(1.05);
	box-shadow: 0 10px 22px -12px rgba(232, 93, 4, 0.9);
}

.mn-helix .sp-chip.hx-chip-care:hover {
	border-color: var(--hx-care);
	color: var(--hx-ember) !important;
}

.mn-helix .sp-chip.hx-chip-code:hover {
	border-color: var(--hx-code);
	color: var(--hx-code) !important;
}

/* the helix stage */
.hx-stage {
	position: relative;
	min-height: 540px;
}

.hx-orbit {
	position: absolute;
	inset: 6% 8% 12%;
	border-radius: 50%;
	border: 1.5px dashed rgba(3, 91, 166, 0.18);
	animation: hx-spin 60s linear infinite;
}

.hx-orbit::before,
.hx-orbit::after {
	content: "";
	position: absolute;
	width: 14px;
	height: 14px;
	border-radius: 50%;
}

.hx-orbit::before {
	top: -7px;
	left: 50%;
	background: var(--hx-care);
	box-shadow: 0 0 0 6px rgba(243, 128, 32, 0.18);
}

.hx-orbit::after {
	bottom: -7px;
	left: 30%;
	background: var(--hx-code);
	box-shadow: 0 0 0 6px rgba(3, 91, 166, 0.16);
}

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

.hx-figure {
	position: relative;
	margin: 0 auto;
	width: min(100%, 470px);
}

.hx-helix {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.hx-strand {
	fill: none;
	stroke-width: 9;
	stroke-linecap: round;
}

.hx-strand-care {
	stroke: url(#hxCare);
}

.hx-strand-code {
	stroke: url(#hxCode);
	opacity: 0.92;
}

.hx-rung {
	stroke: rgba(6, 43, 82, 0.16);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 3 7;
	animation: hx-flow 2.4s linear infinite;
	animation-delay: calc(var(--k) * -0.18s);
}

@keyframes hx-flow {
	to {
		stroke-dashoffset: -20;
	}
}

.hx-cell circle {
	fill: #fff;
	stroke: #f38020;
	stroke-width: 3;
}

.hx-cell path {
	stroke: #e85d04;
	stroke-width: 2;
	stroke-linecap: round;
}

.hx-pad rect {
	fill: #fff;
	stroke: #035ba6;
	stroke-width: 3;
}

.hx-pad path {
	fill: none;
	stroke: #035ba6;
	stroke-width: 2;
	stroke-linejoin: round;
	opacity: 0.55;
}

.hx-pad circle {
	fill: #035ba6;
	opacity: 0.7;
}

.hx-cell,
.hx-pad {
	animation: hx-pulse 3.2s ease-in-out infinite;
	animation-delay: calc(var(--k) * 0.22s);
	transform-box: fill-box;
	transform-origin: center;
}

@keyframes hx-pulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.55;
	}
}

.hx-float {
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
}

.hx-float small {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mn-muted);
}

.hx-float b {
	font-size: 15px;
	color: var(--mn-blue-deep);
}

.hx-float-live {
	flex-direction: row;
	align-items: center;
	gap: 10px;
	left: 0;
	top: 54px;
}

.hx-float-ai {
	right: -4px;
	top: 150px;
	border-left: 4px solid var(--hx-care) !important;
	animation-delay: -2s;
}

.hx-float-res {
	left: -8px;
	top: 300px;
	border-left: 4px solid var(--hx-code) !important;
	animation-delay: -4s;
}

a.hx-float:hover b {
	color: var(--hx-ember);
}

.hx-meter {
	bottom: 18px;
	background: linear-gradient(120deg, var(--mn-blue-deep), var(--mn-blue));
}

.hx-meter b {
	font-family: var(--mn-display);
	font-size: 30px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #ffc27d;
}

/* the legacy line under the hero */
.hx-legacy {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 22px;
	padding-top: 18px;
	padding-bottom: 22px;
	border-top: 1px solid rgba(3, 91, 166, 0.1);
}

.hx-legacy p {
	margin: 0;
	font-size: 14.5px;
	color: #3c4c62;
}

.hx-legacy p b {
	color: var(--mn-blue-deep);
}

.hx-legacy p span {
	font-style: italic;
	color: var(--hx-ember);
	font-weight: 600;
}

.hx-legacy-mark {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: linear-gradient(135deg, #f9a03f, #e85d04);
	color: #fff;
	font-size: 14px;
	box-shadow: 0 6px 14px -8px rgba(232, 93, 4, 0.9);
}

.hx-ticker {
	background: linear-gradient(90deg, var(--mn-blue-deep), var(--mn-blue));
	color: #eaf3ff;
}

.hx-ticker .sp-ticker-label {
	background: linear-gradient(100deg, #f9a03f, #f38020);
	color: #2b1300;
}

/* ---------- Two streams, one library ---------- */

.hx-streams-sec {
	background: linear-gradient(180deg, #fffcf8 0%, #fff6ec 100%);
}

.hx-switch {
	display: none;
	gap: 8px;
	margin-bottom: 18px;
	padding: 6px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--mn-line);
}

.hx-switch-btn {
	flex: 1 1 0;
	min-height: 44px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	font-weight: 700;
	color: var(--mn-muted);
	cursor: pointer;
}

.hx-switch-care[aria-selected="true"] {
	background: linear-gradient(100deg, #f9a03f, #e85d04);
	color: #fff;
}

.hx-switch-code[aria-selected="true"] {
	background: var(--mn-blue);
	color: #fff;
}

.hx-streams {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
	align-items: stretch;
}

.hx-stream {
	position: relative;
	padding: 28px 28px 26px;
	border-radius: 28px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--mn-line), var(--sp-shadow);
	overflow: hidden;
}

.hx-stream::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 150px;
	pointer-events: none;
}

.hx-stream-care::before {
	background: linear-gradient(180deg, rgba(249, 160, 63, 0.2), rgba(249, 160, 63, 0));
}

.hx-stream-code::before {
	background: linear-gradient(180deg, rgba(3, 91, 166, 0.13), rgba(3, 91, 166, 0));
}

.hx-stream > * {
	position: relative;
}

.hx-stream header {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 14px;
}

.hx-stream-mark {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 18px;
	color: #fff;
	font-size: 24px;
}

.hx-stream-care .hx-stream-mark {
	background: linear-gradient(135deg, #f9a03f, #e85d04);
	box-shadow: 0 12px 22px -12px rgba(232, 93, 4, 0.9);
}

.hx-stream-code .hx-stream-mark {
	background: linear-gradient(135deg, #2f86d6, #035ba6);
	box-shadow: 0 12px 22px -12px rgba(3, 91, 166, 0.9);
}

.hx-stream-school {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--mn-muted);
}

.hx-stream h3 {
	margin: 2px 0 0;
	font-size: 30px;
	font-weight: 900;
	letter-spacing: -0.02em;
	color: var(--mn-blue-deep);
}

.hx-stream-care h3 {
	color: var(--hx-ember);
}

.hx-stream-also {
	margin: 2px 0 0;
	font-size: 13.5px;
	color: var(--mn-muted);
}

.hx-stream-note {
	margin: 0 0 12px;
	color: #3c4c62;
}

.hx-progs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.hx-progs li {
	padding: 4px 11px;
	border-radius: 999px;
	font-size: 12.5px;
	font-weight: 600;
}

.hx-stream-care .hx-progs li {
	background: var(--hx-care-soft);
	color: var(--hx-ember);
}

.hx-stream-code .hx-progs li {
	background: var(--hx-code-soft);
	color: var(--hx-code);
}

.hx-stream h4 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 18px 0 10px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--mn-blue-deep);
}

.hx-stream h4 span {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--mn-blue-deep);
	color: #fff;
	font-size: 12px;
	letter-spacing: 0;
}

.hx-stream-care h4 span {
	background: var(--hx-care);
}

.hx-ai {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.hx-ai-tool {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 10px 12px;
	border-radius: 16px;
	background: var(--mn-paper);
	box-shadow: 0 0 0 1px var(--mn-line);
	color: var(--mn-ink) !important;
	text-decoration: none !important;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hx-ai-tool:hover {
	transform: translateY(-2px);
}

.hx-stream-care .hx-ai-tool:hover {
	box-shadow: 0 0 0 2px var(--hx-care), var(--sp-shadow-sm);
}

.hx-stream-code .hx-ai-tool:hover {
	box-shadow: 0 0 0 2px var(--hx-code), var(--sp-shadow-sm);
}

.hx-ai-logo {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 5px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--mn-line);
	overflow: hidden;
}

.hx-ai-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.hx-ai-logo b {
	font-size: 18px;
	color: var(--mn-blue);
}

.hx-ai-tool > span:last-child {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.hx-ai-tool b {
	font-size: 14.5px;
	line-height: 1.25;
}

.hx-ai-tool small {
	font-size: 12.5px;
	line-height: 1.35;
	color: var(--mn-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hx-stream-foot {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0 18px;
	margin-top: 6px;
	padding-top: 6px;
	border-top: 1px dashed var(--mn-line);
}

.hx-free {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.hx-free a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px 5px 5px;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 0 0 1px var(--mn-line);
	font-size: 13px;
	font-weight: 600;
	color: var(--mn-ink) !important;
	text-decoration: none !important;
}

.hx-free a b {
	display: grid;
	place-items: center;
	min-width: 26px;
	height: 22px;
	padding: 0 5px;
	border-radius: 999px;
	font-size: 10.5px;
	color: #fff;
}

.hx-stream-care .hx-free a b {
	background: var(--hx-teal);
}

.hx-stream-code .hx-free a b {
	background: var(--mn-blue);
}

.hx-free a:hover {
	box-shadow: 0 0 0 1.5px currentColor;
}

/* the seam: rungs that join the two streams */
.hx-seam {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	padding: 40px 0;
}

.hx-seam span {
	position: relative;
	display: block;
	height: 4px;
	margin: 0 -6px;
	border-radius: 4px;
	background: linear-gradient(90deg, #f38020 0 50%, #035ba6 50% 100%);
	opacity: 0.55;
}

.hx-seam span::before,
.hx-seam span::after {
	content: "";
	position: absolute;
	top: 50%;
	width: 12px;
	height: 12px;
	margin-top: -6px;
	background: #fff;
}

.hx-seam span::before {
	left: -2px;
	border-radius: 50%;
	border: 3px solid #f38020;
}

.hx-seam span::after {
	right: -2px;
	border-radius: 3px;
	border: 3px solid #035ba6;
}

/* ---------- The lab protocol ---------- */

.hx-protocol {
	background: #fff;
}

/* ---------- Open courseware ---------- */

.hx-ocw {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #062b52 0%, #035ba6 70%, #0a6fc2 100%);
	color: #fff;
}

.hx-ocw::before {
	content: "";
	position: absolute;
	right: -120px;
	top: -120px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(249, 160, 63, 0.4), rgba(249, 160, 63, 0) 70%);
}

.hx-ocw-grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
	gap: 44px;
	align-items: center;
}

.hx-ocw .mn-kicker,
.hx-ocw .mn-section-note {
	color: rgba(255, 255, 255, 0.82) !important;
}

.hx-ocw .mn-h2 {
	color: #fff;
}

.mn-helix .hx-ocw .mn-h2 em {
	background: linear-gradient(90deg, #ffc27d, #f9a03f);
	-webkit-background-clip: text;
	background-clip: text;
}

.hx-ocw .mn-section-note {
	margin: 14px 0 22px;
}

.hx-ocw .mn-btn-blue {
	background: #fff;
	border-color: #fff;
	color: var(--mn-blue-deep) !important;
}

.hx-ocw .mn-btn-blue:hover {
	background: #ffc27d;
	border-color: #ffc27d;
}

.hx-campus {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hx-campus a {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 100%;
	min-width: 0;
	padding: 10px 12px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
	color: #fff !important;
	text-decoration: none !important;
	transition: background-color 0.2s ease, transform 0.2s ease;
}

.hx-campus a:hover {
	background: rgba(255, 255, 255, 0.16);
	transform: translateY(-2px);
}

.hx-campus span {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 10px;
	font-family: var(--mn-display);
	font-size: 15px;
	font-weight: 700;
	color: #2b1300;
	background: hsl(calc(26 + var(--i) * 6), 92%, calc(62% + var(--i) * 2%));
}

.hx-campus b {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* ---------- Research: our own shelf ---------- */

.hx-own .sp-journal-facts a {
	color: #fff !important;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: rgba(255, 194, 125, 0.7);
	text-underline-offset: 3px;
}

/* ---------- Visit ---------- */

.hx-visit {
	background: var(--hx-sky);
}

.hx-plaque {
	margin: 0 0 16px;
	border-radius: 22px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 0 0 1px var(--mn-line), var(--sp-shadow-sm);
}

.hx-plaque img {
	display: block;
	width: 100%;
	height: 190px;
	object-fit: cover;
	object-position: center 30%;
}

.hx-plaque figcaption {
	padding: 12px 16px;
	font-size: 13.5px;
	color: var(--mn-muted);
}

.hx-plaque figcaption b {
	display: block;
	font-family: var(--mn-display);
	font-size: 20px;
	letter-spacing: 0.02em;
	color: var(--hx-ember);
}

/* ---------- Tablets ---------- */

@media (max-width: 1199.98px) {
	.hx-campus {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 991.98px) {
	.hx-hero-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.hx-stage {
		min-height: 0;
		max-width: 520px;
		width: 100%;
		margin: 0 auto;
		padding-bottom: 70px;
	}

	.hx-switch {
		display: flex;
	}

	.hx-streams {
		grid-template-columns: minmax(0, 1fr);
	}

	.hx-seam {
		display: none;
	}

	.hx-ocw-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 26px;
	}
}

/* wide screens: both streams stay open whatever the switch says */
@media (min-width: 992px) {
	.hx-stream[hidden] {
		display: block !important;
	}
}

/* ---------- Phones ---------- */

@media (max-width: 575.98px) {
	.hx-hero {
		padding-top: 30px;
	}

	.hx-lede {
		font-size: 16px;
	}

	.hx-float-ai,
	.hx-float-res {
		display: none;
	}

	.hx-float-live {
		top: 10px;
	}

	.hx-figure {
		width: min(100%, 330px);
	}

	.hx-stage {
		padding-bottom: 84px;
	}

	.hx-stream {
		padding: 22px 18px;
	}

	.hx-ai,
	.hx-stream-foot {
		grid-template-columns: minmax(0, 1fr);
	}

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

	.hx-legacy {
		align-items: flex-start;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hx-orbit,
	.hx-rung,
	.hx-cell,
	.hx-pad,
	.hx-caret,
	.hx-float {
		animation: none !important;
	}
}
