/**
 * Mithila Museum Initiative — Creedy tokens, Mithila borders, timeline + image layout.
 */

.mithila-museum {
	color: var(--wdtBodyTxtColor, #444);
	font-family: var(--wdtFontTypo_Base, inherit);
	line-height: var(--wdtLineHeight_Base, 1.65);
	max-width: 1080px;
	margin-left: auto;
	margin-right: auto;
}

/* ─── Breadcrumb ─────────────────────────────────────── */
.mithila-museum__crumb {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	font-weight: var(--wdtFontWeight_Base, 500);
	color: rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.75);
}

.mithila-museum__crumb a {
	color: var(--wdtPrimaryColor, #c0503c);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.mithila-museum__crumb a:hover {
	border-bottom-color: rgba(var(--wdtPrimaryColorRgb, 200, 80, 60), 0.45);
}

/* ─── Hero ───────────────────────────────────────────── */
.mithila-museum__hero {
	position: relative;
	border-radius: var(--wdtRadius_2X, 12px);
	overflow: hidden;
	margin-bottom: 2rem;
	padding: 1.75rem 1.5rem 2rem;
	background: linear-gradient(
		135deg,
		rgba(var(--wdtPrimaryColorRgb, 200, 80, 60), 0.12) 0%,
		rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.06) 50%,
		rgba(var(--wdtPrimaryColorRgb, 200, 80, 60), 0.1) 100%
	);
	border: 1px solid rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.12);
	box-shadow: 0 8px 28px rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.07);
}

.mithila-museum__hero-pattern {
	position: absolute;
	inset: 0;
	opacity: 0.2;
	pointer-events: none;
	background-image: repeating-linear-gradient(
			90deg,
			var(--wdtPrimaryColor, #c0503c) 0 2px,
			transparent 2px 18px
		),
		repeating-linear-gradient(
			0deg,
			var(--wdtHeadAltColor, #3a4343) 0 2px,
			transparent 2px 18px
		);
	mix-blend-mode: multiply;
}

.mithila-museum__hero-grid {
	position: relative;
	z-index: 1;
	display: grid;
	gap: 1.5rem;
	align-items: center;
}

.mithila-museum__hero-inner {
	min-width: 0;
}

.mithila-museum__kicker {
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--wdtPrimaryColor, #c0503c);
}

.mithila-museum__title {
	margin: 0 0 0.35rem;
	font-family: var(--wdtFontTypo_Alt, inherit);
	font-size: clamp(1.85rem, 4.2vw, 2.5rem);
	font-weight: var(--wdtFontWeight_Alt, 600);
	color: var(--wdtHeadAltColor, #222);
	line-height: 1.15;
}

.mithila-museum__meta {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.85);
}

.mithila-museum__lede {
	margin: 0 0 1rem;
	max-width: 36rem;
	font-size: 1.05rem;
	color: rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.88);
}

.mithila-museum__hero-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.mithila-museum__status-badge {
	display: inline-block;
	padding: 0.3rem 0.85rem;
	border-radius: 999px;
	background: var(--wdtPrimaryColor, #c0503c);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}

.mithila-museum__location-badge {
	display: inline-block;
	padding: 0.3rem 0.85rem;
	border-radius: 999px;
	border: 1px solid rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.3);
	background: rgba(var(--wdtBodyBGColor, 255, 255, 255), 0.85);
	color: var(--wdtHeadAltColor, #333);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.03em;
}

.mithila-museum__hero-figure {
	margin: 0;
	border-radius: var(--wdtRadius_2X, 12px);
	overflow: hidden;
	border: 1px solid rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.15);
	box-shadow: 0 10px 36px rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.12);
	background: var(--wdtBodyBGColor, #fff);
}

.mithila-museum__hero-figure img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

@media (min-width: 900px) {
	.mithila-museum__hero {
		padding: 2rem 2rem 2.25rem;
	}

	.mithila-museum__hero-grid {
		grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
		gap: 2rem;
	}
}

/* ─── TOC ────────────────────────────────────────────── */
.mithila-museum__toc {
	margin-bottom: 2.25rem;
}

.mithila-museum__toc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.mithila-museum__toc-list a {
	display: inline-block;
	padding: 0.5rem 1rem;
	border-radius: var(--wdtRadius_1X, 6px);
	border: 1px solid rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.25);
	background: var(--wdtBodyBGColor, #fff);
	color: var(--wdtHeadAltColor, #333);
	font-size: 0.9rem;
	font-weight: var(--wdtFontWeight_Base, 600);
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.mithila-museum__toc-list a:hover,
.mithila-museum__toc-list a:focus-visible {
	background: var(--wdtPrimaryColor, #c0503c);
	color: var(--wdtAccentTxtColor, #fff);
	border-color: var(--wdtPrimaryColor, #c0503c);
	outline: none;
}

/* ─── Sections ───────────────────────────────────────── */
.mithila-museum__section {
	scroll-margin-top: 6rem;
	margin-bottom: 2rem;
}

.mithila-museum__section-inner {
	position: relative;
	padding: 1.75rem 1.5rem 1.85rem;
	border-radius: var(--wdtRadius_2X, 12px);
	border: 1px solid rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.12);
	background: var(--wdtBodyBGColor, #fff);
	box-shadow: 0 6px 24px rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.06);
}

.mithila-museum__section--accent .mithila-museum__section-inner {
	background: linear-gradient(
		180deg,
		rgba(var(--wdtPrimaryColorRgb, 200, 80, 60), 0.05) 0%,
		var(--wdtBodyBGColor, #fff) 38%
	);
}

.mithila-museum__section-inner::before {
	content: "";
	display: block;
	height: 6px;
	margin: -1.75rem -1.5rem 1.25rem;
	border-radius: var(--wdtRadius_2X, 12px) var(--wdtRadius_2X, 12px) 0 0;
	background: repeating-linear-gradient(
		90deg,
		var(--wdtPrimaryColor, #c0503c) 0,
		var(--wdtPrimaryColor, #c0503c) 14px,
		var(--wdtHeadAltColor, #3a4343) 14px,
		var(--wdtHeadAltColor, #3a4343) 28px
	);
	opacity: 0.85;
}

.mithila-museum__h2 {
	margin: 0 0 0.5rem;
	font-family: var(--wdtFontTypo_Alt, inherit);
	font-size: clamp(1.35rem, 2.8vw, 1.65rem);
	font-weight: var(--wdtFontWeight_Alt, 600);
	color: var(--wdtHeadAltColor, #222);
}

.mithila-museum__divider {
	height: 3px;
	width: 4.5rem;
	margin-bottom: 1.25rem;
	border-radius: 2px;
	background: linear-gradient(
		90deg,
		var(--wdtPrimaryColor, #c0503c),
		rgba(var(--wdtPrimaryColorRgb, 200, 80, 60), 0.25)
	);
}

.mithila-museum__intro {
	margin: 0 0 1.5rem;
	max-width: 52rem;
	font-size: 1.02rem;
	color: rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.9);
}

.mithila-museum__h3 {
	margin: 0 0 0.4rem;
	font-size: 1.02rem;
	font-weight: 600;
	color: var(--wdtHeadAltColor, #333);
}

.mithila-museum__h3--cat {
	margin-bottom: 0.5rem;
	font-size: 0.88rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wdtPrimaryColor, #c0503c);
}

.mithila-museum__prose p {
	margin: 0 0 1rem;
}

.mithila-museum__prose p:last-child {
	margin-bottom: 0;
}

/* ─── Split layout ───────────────────────────────────── */
.mithila-museum__split {
	display: grid;
	gap: 1.5rem;
	align-items: start;
}

@media (min-width: 880px) {
	.mithila-museum__split {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
		gap: 2rem;
		align-items: start;
	}

	.mithila-museum__split--reverse .mithila-museum__collage,
	.mithila-museum__split--reverse .mithila-museum__figure {
		order: -1;
	}
}

/* ─── Figure ─────────────────────────────────────────── */
.mithila-museum__figure {
	margin: 0;
	border-radius: var(--wdtRadius_2X, 12px);
	overflow: hidden;
	border: 1px solid rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.12);
	box-shadow: 0 8px 28px rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.08);
	background: var(--wdtBodyBGColor, #fff);
}

.mithila-museum__figure img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.mithila-museum__figure figcaption {
	padding: 0.5rem 0.75rem 0.65rem;
	font-size: 0.78rem;
	line-height: 1.4;
	color: rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.65);
	background: rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.04);
}

/* ─── Overview highlight list ────────────────────────── */
.mithila-museum__highlight-list {
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.mithila-museum__highlight-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	padding: 0.7rem 0.9rem;
	border-radius: var(--wdtRadius_1X, 8px);
	border: 1px solid rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.1);
	background: rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.025);
	font-size: 0.93rem;
	color: var(--wdtHeadAltColor, #333);
	line-height: 1.5;
}

.mithila-museum__highlight-icon {
	flex-shrink: 0;
	font-size: 1.1rem;
	line-height: 1.5;
}

/* ─── Development stages timeline ───────────────────── */
.mithila-museum__timeline {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
	position: relative;
}

/* vertical track */
.mithila-museum__timeline::before {
	content: "";
	position: absolute;
	left: 1.35rem;
	top: 2rem;
	bottom: 2rem;
	width: 2px;
	background: linear-gradient(
		180deg,
		var(--wdtPrimaryColor, #c0503c),
		rgba(var(--wdtPrimaryColorRgb, 200, 80, 60), 0.15)
	);
}

@media (min-width: 600px) {
	.mithila-museum__timeline::before {
		left: 1.65rem;
	}
}

.mithila-museum__timeline-item {
	display: flex;
	gap: 1.25rem;
	padding-bottom: 1.75rem;
	position: relative;
}

.mithila-museum__timeline-item:last-child {
	padding-bottom: 0;
}

/* circle marker */
.mithila-museum__timeline-marker {
	flex-shrink: 0;
	width: 2.7rem;
	height: 2.7rem;
	border-radius: 50%;
	background: var(--wdtPrimaryColor, #c0503c);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	z-index: 1;
	box-shadow: 0 2px 10px rgba(var(--wdtPrimaryColorRgb, 200, 80, 60), 0.35);
}

.mithila-museum__timeline-num {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1;
}

.mithila-museum__timeline-body {
	min-width: 0;
	flex: 1;
	padding-top: 0.35rem;
}

.mithila-museum__timeline-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.6rem;
}

.mithila-museum__timeline-header .mithila-museum__h3 {
	margin: 0;
	font-size: 1.05rem;
}

.mithila-museum__stage-badge {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	border-radius: 999px;
	background: rgba(var(--wdtPrimaryColorRgb, 200, 80, 60), 0.1);
	border: 1px solid rgba(var(--wdtPrimaryColorRgb, 200, 80, 60), 0.3);
	color: var(--wdtPrimaryColor, #c0503c);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.mithila-museum__timeline-content {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.mithila-museum__stage-text {
	margin: 0;
	font-size: 0.96rem;
	color: rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.9);
	line-height: 1.7;
}

.mithila-museum__timeline-figure {
	margin: 0;
	border-radius: var(--wdtRadius_2X, 10px);
	overflow: hidden;
	border: 1px solid rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.12);
	box-shadow: 0 4px 16px rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.07);
	max-width: 520px;
}

.mithila-museum__timeline-figure img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

/* ─── Partners collage ───────────────────────────────── */
.mithila-museum__collage {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
	margin: 0;
	min-width: 0;
}

.mithila-museum__collage-item {
	margin: 0;
	border-radius: var(--wdtRadius_2X, 10px);
	overflow: hidden;
	border: 1px solid rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.12);
	box-shadow: 0 6px 20px rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.07);
	background: var(--wdtBodyBGColor, #fff);
}

.mithila-museum__collage-item:first-child {
	grid-column: 1 / -1;
}

.mithila-museum__collage-item img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.mithila-museum__collage-item:first-child img {
	aspect-ratio: 16 / 9;
}

/* ─── Partner categories ─────────────────────────────── */
.mithila-museum__partner-categories {
	margin-top: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.mithila-museum__partner-category {
	padding: 0.85rem 1rem;
	border-radius: var(--wdtRadius_1X, 8px);
	border: 1px solid rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.1);
	background: rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.025);
}

.mithila-museum__partner-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.mithila-museum__partner-cat-list li {
	position: relative;
	padding-left: 1.1rem;
	font-size: 0.9rem;
	color: var(--wdtHeadAltColor, #333);
	line-height: 1.5;
}

.mithila-museum__partner-cat-list li::before {
	content: "›";
	position: absolute;
	left: 0;
	color: var(--wdtPrimaryColor, #c0503c);
	font-weight: 700;
}

/* Development phase note */
.mithila-museum__dev-note {
	margin-top: 1.25rem;
	padding: 0.9rem 1rem;
	border-radius: var(--wdtRadius_1X, 8px);
	border-left: 3px solid rgba(var(--wdtPrimaryColorRgb, 200, 80, 60), 0.5);
	background: rgba(var(--wdtPrimaryColorRgb, 200, 80, 60), 0.04);
}

.mithila-museum__dev-note p {
	margin: 0;
	font-size: 0.88rem;
	color: rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.75);
	line-height: 1.6;
	font-style: italic;
}

/* ─── Appended content ───────────────────────────────── */
.mithila-museum__append {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px dashed rgba(var(--wdtHeadAltColorRgb, 58, 67, 67), 0.2);
}

/* ─── Desktop padding bump ───────────────────────────── */
@media (min-width: 768px) {
	.mithila-museum__section-inner {
		padding: 1.85rem 2rem 2rem;
	}

	.mithila-museum__section-inner::before {
		margin: -1.85rem -2rem 1.35rem;
	}

	.mithila-museum__timeline::before {
		left: 1.35rem;
	}
}
