/*
 * Wartosci przepisane 1:1 z wpisu referencyjnego (Elementor, post-1075.css
 * oraz globalny zestaw post-8.css):
 *   kolor tekstu   #E8EDE9  (--e-global-color-primary)
 *   kolor linii    #4B5B57  (--e-global-color-149fbf4)
 *   nad-tytul      Inter 14px / 500 / 0.5px / wersaliki
 *   tytul          Inter Tight 40px / 500 / 1.1em
 *   naglowek sekcji Inter Tight 30px / 400 / 1.6em
 *   tresc          Inter 16px / 400 / -0.025em / justowanie
 */

.mn-episode {
	--mn-text: #e8ede9;
	--mn-line: #4b5b57;

	color: var(--mn-text);
}

/* Szablon rysuje wlasny tytul - domyslny naglowek motywu chowamy. */
body.mn-has-template .page-header,
body.mn-has-template .entry-title {
	display: none;
}

/* --- Naglowek wpisu --- */

.mn-episode__eyebrow {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	line-height: 1.4;
	margin: 0;
	color: var(--mn-text) !important;
	opacity: 1 !important;
}

.mn-episode__title,
.mn-episode h1.mn-episode__title {
	font-family: 'Inter Tight', sans-serif !important;
	font-size: 40px;
	font-weight: 500;
	line-height: 1.1em;
	letter-spacing: normal;
	margin: 10px 0 0;
	color: var(--mn-text) !important;
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
}

/* --- Wprowadzenie: pelna szerokosc, kursywa --- */

.mn-episode__lead {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 400;
	font-style: italic;
	line-height: 1.7;
	letter-spacing: -0.025em;
	text-align: justify;
	margin-top: 1.5rem;
	color: var(--mn-text) !important;
	opacity: 1 !important;
}

.mn-episode__lead p {
	margin: 0 0 1rem;
}

.mn-episode__lead p:last-child {
	margin-bottom: 0;
}

.mn-episode__lead strong,
.mn-episode__lead b {
	font-weight: 700;
}

.mn-episode__divider {
	height: 1px;
	background: var(--mn-line);
	border: 0;
	margin: 50px 0;
}

/* --- Uklad dwukolumnowy (33% / 66% + 50px odstepu) --- */

.mn-episode__cols {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: 50px;
	align-items: start;
}

.mn-episode__side {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	position: sticky;
	top: 20px;
}

.mn-episode__cover img,
.mn-episode__spotify img {
	width: 100%;
	height: auto;
	display: block;
}

.mn-episode__spotify {
	display: block;
	line-height: 0;
}

.mn-embed {
	position: relative;
	width: 100%;
	padding-top: 56.25%;
	overflow: hidden;
}

.mn-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.mn-episode__main {
	min-width: 0;
}

/* --- Naglowki sekcji --- */

.mn-episode__heading,
.mn-episode .mn-episode__heading,
.mn-episode h2.mn-episode__heading {
	font-family: 'Inter Tight', sans-serif !important;
	font-size: 30px;
	font-weight: 400;
	line-height: 1.6em;
	letter-spacing: normal;
	margin: 0 0 0.5rem;
	color: var(--mn-text) !important;
	opacity: 1 !important;
	transform: none !important;
	animation: none !important;
	text-align: left;
}

.mn-episode__section {
	margin-bottom: 2.5rem;
}

.mn-episode__section:last-child {
	margin-bottom: 0;
}

/* --- Tresc --- */

.mn-episode__text {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.7;
	letter-spacing: -0.025em;
	text-align: justify;
	color: var(--mn-text) !important;
	opacity: 1 !important;
}

.mn-episode__text p {
	margin: 0 0 1.25rem;
}

.mn-episode__text p:last-child {
	margin-bottom: 0;
}

.mn-episode__text a {
	color: inherit;
	text-decoration: underline;
}

.mn-episode__text em,
.mn-episode__text i {
	font-style: italic;
}

.mn-episode__text strong,
.mn-episode__text b {
	font-weight: 700;
}

.mn-episode__text ul,
.mn-episode__text ol {
	margin: 0 0 1.25rem 1.4rem;
	text-align: left;
}

.mn-episode__text li {
	margin-bottom: 0.4rem;
}

/* --- Zdjecia osadzone w tresci (dowolna liczba, dowolny rozmiar) --- */

/* Szerokosc bierzemy z ustawien konkretnego zdjecia zrobionych w edytorze,
   a nie wymuszamy 100% - dzieki temu kazde zdjecie da sie skalowac osobno. */
.mn-episode__text img,
.mn-episode__lead img {
	max-width: 100%;
	height: auto;
}

.mn-episode__text figure,
.mn-episode__lead figure,
.mn-episode__text .mn-inline-figure {
	margin: 1.75rem 0;
	max-width: 100%;
}

.mn-episode__text figure img,
.mn-episode__lead figure img,
.mn-episode__text .wp-caption img,
.mn-episode__lead .wp-caption img {
	display: block;
}

/* Ramka podpisu z shortcode [caption] - szerokosc ustawia WordPress inline,
   wiec nie wolno jej tu nadpisywac. */
.mn-episode__text .wp-caption,
.mn-episode__lead .wp-caption {
	max-width: 100%;
	margin: 1.75rem 0;
}

.mn-episode__text .wp-caption-text,
.mn-episode__lead .wp-caption-text,
.mn-episode__text figcaption,
.mn-episode__lead figcaption {
	margin-top: 0.6rem;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.025em;
	text-align: center;
	color: var(--mn-text) !important;
	opacity: 1 !important;
}

/* Wyrownanie wybrane przy zdjeciu w edytorze */
.mn-episode__text .aligncenter,
.mn-episode__lead .aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.mn-episode__text .alignleft,
.mn-episode__lead .alignleft {
	float: left;
	margin: 0.5rem 1.5rem 1rem 0;
}

.mn-episode__text .alignright,
.mn-episode__lead .alignright {
	float: right;
	margin: 0.5rem 0 1rem 1.5rem;
}

.mn-episode__text .alignnone,
.mn-episode__lead .alignnone {
	display: block;
	margin: 1.75rem 0;
}

/* Sekcja musi objac zdjecia oplywane tekstem */
.mn-episode__section::after {
	content: '';
	display: table;
	clear: both;
}

/* --- Zdjecie z osobnego pola sekcji (opcjonalne) --- */

/* Szerokosc ustawiana przy sekcji (100/75/50/33/25%) trafia jako
   inline max-width na <figure>, wiec tu tylko centrujemy. */
.mn-episode__figure {
	margin: 1.75rem auto 0;
}

.mn-episode__figure img {
	width: 100%;
	height: auto;
	display: block;
}

.mn-episode__figure figcaption {
	margin-top: 0.6rem;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: -0.025em;
	text-align: center;
	color: var(--mn-text) !important;
	opacity: 1 !important;
}

/* --- Responsywnosc --- */

@media (max-width: 1024px) {
	.mn-episode__title,
	.mn-episode h1.mn-episode__title {
		font-size: 36px;
	}

	.mn-episode__heading,
	.mn-episode .mn-episode__heading,
	.mn-episode h2.mn-episode__heading {
		font-size: 28px;
		line-height: 1.25em;
	}

	.mn-episode__cols {
		gap: 20px;
	}
}

@media (max-width: 767px) {
	.mn-episode__cols {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.mn-episode__side {
		position: static;
		max-width: 420px;
		width: 100%;
		margin: 0 auto;
	}

	.mn-episode__divider {
		margin: 30px 0;
	}

	.mn-episode__title,
	.mn-episode h1.mn-episode__title {
		font-size: 30px;
	}

	.mn-episode__heading,
	.mn-episode .mn-episode__heading,
	.mn-episode h2.mn-episode__heading {
		font-size: 26px;
	}

	.mn-episode__lead,
	.mn-episode__text {
		text-align: left;
	}
}
