/* Mahapuranas Series — default styling.
   Uses the theme's --tok-primary / --tok-accent CSS variables when present
   (Temples of Keralam theme), falls back to the same maroon/gold pair
   otherwise so the series looks right even on a different theme. */

.mps-container {
	max-width: 1080px;
	margin: 0 auto;
	padding: 0 24px;
}

.mps-eyebrow {
	font-style: italic;
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--tok-accent, #c99b3f);
	margin-bottom: 8px;
}
.mps-eyebrow a { color: inherit; text-decoration: none; }
.mps-eyebrow a:hover { text-decoration: underline; }

.mps-archive-header {
	background: var(--tok-primary-deep, #4a1212);
	color: #fff;
	padding: 56px 0;
	text-align: center;
}
.mps-archive-header h1 {
	color: #fff;
	margin: 4px 0 8px;
	font-size: clamp(1.6rem, 4vw, 2.4rem);
}
.mps-archive-subtitle {
	color: rgba(255,255,255,0.85);
	max-width: 560px;
	margin: 0 auto;
}

.mps-episode-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
	margin: 40px auto;
}

.mps-episode-card {
	display: block;
	background: #fff;
	border: 1px solid #e2ddd3;
	border-radius: 10px;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.mps-episode-card:hover {
	box-shadow: 0 6px 20px rgba(0,0,0,0.1);
	transform: translateY(-3px);
}
.mps-episode-card__image {
	height: 150px;
	background-size: cover;
	background-position: center;
	background-color: #f3ede0;
}
.mps-episode-card__body { padding: 18px; }
.mps-episode-badge {
	display: inline-block;
	background: var(--tok-accent, #c99b3f);
	color: #2a1c14;
	font-size: 0.75rem;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 999px;
	margin-bottom: 8px;
}
.mps-episode-card__title {
	font-size: 1.15rem;
	margin: 0 0 8px;
	color: var(--tok-primary-deep, #4a1212);
	line-height: 1.4;
}
.mps-episode-card__excerpt {
	font-size: 0.9rem;
	color: #6b5c48;
	margin: 0;
	line-height: 1.6;
}

.mps-empty-note { color: #777; padding: 40px 0; }

/* Single episode */
.mps-single-inner {
	max-width: 760px;
	padding-top: 48px;
	padding-bottom: 64px;
}
.mps-single-inner h1 {
	color: var(--tok-primary-deep, #4a1212);
	margin-top: 4px;
}
.mps-single-image {
	margin: 20px 0;
	border-radius: 10px;
	overflow: hidden;
}
.mps-single-image img { width: 100%; height: auto; display: block; }
.mps-single-content {
	font-size: 1.05rem;
	line-height: 1.8;
	color: #2a1c14;
}
.mps-single-content p { margin-bottom: 1.3em; }

.mps-episode-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid #e2ddd3;
}
.mps-episode-nav__link {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border: 1px solid #e2ddd3;
	border-radius: 8px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease;
}
.mps-episode-nav__link:hover { border-color: var(--tok-accent, #c99b3f); }
.mps-episode-nav__next { text-align: right; }
.mps-episode-nav__label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--tok-accent, #c99b3f);
	font-weight: 700;
}
.mps-episode-nav__title {
	font-size: 0.95rem;
	color: var(--tok-primary-deep, #4a1212);
	font-weight: 600;
}

@media (max-width: 560px) {
	.mps-episode-nav { grid-template-columns: 1fr; }
	.mps-episode-nav__next { text-align: left; }
}
