/* =========================================================
   CHEF CHAPÍN — SINGLE DE RECETAS
   ========================================================= */


/* =========================================================
   1. ESTRUCTURA GENERAL
   ========================================================= */

body.single-post {
	overflow-x: clip;
}

body.single-post .site-content {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

body.single-post .site-content > .ast-container {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

body.single-post #primary {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

body.single-post #secondary {
	display: none;
}


/* =========================================================
   2. CONTENEDOR PRINCIPAL
   ========================================================= */

.cc-single-recipe-main {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

.cc-single-recipe {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	background: #FFFFFF;
}

.cc-single-recipe__inner {
	width: min(calc(100% - 56px), 980px);
	max-width: 980px;
	margin-left: auto;
	margin-right: auto;
	padding-top: 48px;
	padding-bottom: 60px;
}


/* =========================================================
   3. TÍTULO DEL POST
   ========================================================= */

.cc-single-recipe__header {
	width: 100%;
	max-width: 1000px;
	margin: 0 0 30px;
}

.cc-single-recipe__title {
	margin: 0;
	color: #20241E;
	font-size: clamp(34px, 4.2vw, 52px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.035em;
}


/* =========================================================
   4. CONTENIDO DEL POST
   ========================================================= */

.cc-single-recipe__content {
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

.cc-single-recipe__content > p {
	max-width: 1180px;
	margin: 0 0 18px;
	color: #4F584B;
	font-size: 17px;
	line-height: 1.75;
}

.cc-single-recipe__content > h2 {
	max-width: 1000px;
	margin: 48px 0 18px;
	color: #20241E;
	font-size: clamp(25px, 3vw, 34px);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.025em;
}

.cc-single-recipe__content > h3 {
	max-width: 1000px;
	margin: 36px 0 14px;
	color: #20241E;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

.cc-single-recipe__content > ul,
.cc-single-recipe__content > ol {
	max-width: 1180px;
	color: #4F584B;
	font-size: 16px;
	line-height: 1.7;
}

.cc-single-recipe__content img {
	max-width: 100%;
	height: auto;
}

.cc-single-recipe__content figure {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}


/* =========================================================
   5. WP RECIPE MAKER — CONTENEDOR PC
   ========================================================= */

.cc-single-recipe__content .wprm-recipe-container {
	width: 100%;
	max-width: 100%;
	margin: 36px 0 0;
	padding: 0;
	min-width: 0;
}

.cc-single-recipe__content .wprm-recipe {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 28px;
	box-sizing: border-box;

	border: 1px solid #E1E5D5;
	border-radius: 14px;
	background: #FFFFFF;

	box-shadow: 0 5px 20px rgba(32, 36, 30, .045);

	color: #20241E;
}


/* =========================================================
   6. WP RECIPE MAKER — IMAGEN PC
   ========================================================= */

.cc-single-recipe__content .wprm-recipe-image-container {
	float: right !important;

	width: 380px !important;
	max-width: 40% !important;

	margin: 0 0 24px 32px !important;
	padding: 0 !important;

	border-radius: 12px;
	overflow: hidden;
}

.cc-single-recipe__content .wprm-recipe-image {
	width: 100%;
	margin: 0;
	padding: 0;
}

.cc-single-recipe__content .wprm-recipe-image img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0;
	padding: 0;
	border-radius: 12px;
}


/* =========================================================
   7. WP RECIPE MAKER — NOMBRE
   ========================================================= */

.cc-single-recipe__content .wprm-recipe-name {
	margin: 0 0 12px !important;

	color: #20241E !important;

	font-size: 32px !important;
	font-weight: 750 !important;
	line-height: 1.12 !important;

	letter-spacing: -.025em;
}


/* =========================================================
   8. WP RECIPE MAKER — DESCRIPCIÓN
   ========================================================= */

.cc-single-recipe__content .wprm-recipe-summary {
	margin: 0 0 18px !important;

	color: #596253 !important;

	font-size: 16px !important;
	line-height: 1.65 !important;
}


/* =========================================================
   9. WP RECIPE MAKER — VALORACIÓN
   ========================================================= */

.cc-single-recipe__content .wprm-recipe-rating {
	margin: 12px 0 20px;
}


/* =========================================================
   10. WP RECIPE MAKER — INFORMACIÓN
   ========================================================= */

.cc-single-recipe__content .wprm-recipe-meta-container {
	margin-top: 22px;
}

.cc-single-recipe__content .wprm-recipe p,
.cc-single-recipe__content .wprm-recipe li {
	color: #424A3F;
}

.cc-single-recipe__content .wprm-recipe a {
	color: #5F7800;
}

.cc-single-recipe__content .wprm-recipe a:hover {
	color: #4E6400;
}


/* =========================================================
   11. NAVEGACIÓN ENTRE RECETAS
   ========================================================= */

.cc-single-recipe__navigation {
	width: 100%;
	max-width: 1180px;
	margin-top: 20px;
	padding-top: 28px;
	border-top: 1px solid #E1E5D5;
}

.cc-single-post-navigation .nav-links {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 30px;
}

.cc-single-post-navigation .nav-previous,
.cc-single-post-navigation .nav-next {
	min-width: 0;
}

.cc-single-post-navigation .nav-next {
	text-align: right;
}

.cc-single-post-navigation a {
	display: block;
	color: #5F7800;
	text-decoration: none;
}

.cc-single-post-navigation a:hover {
	color: #4E6400;
}

.cc-single-recipe__nav-label {
	display: block;
	margin-bottom: 5px;
	color: #7A8274;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.cc-single-recipe__nav-title {
	display: block;
	color: #20241E;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}


/* =========================================================
   12. COMENTARIOS
   ========================================================= */

.cc-single-recipe__comments {
	width: min(calc(100% - 56px), 1180px);
	max-width: 1180px;
	margin: 0 auto;
	padding-bottom: 70px;
}

.cc-single-recipe__comments .comments-area {
	width: 100%;
	max-width: 100%;
}


/* =========================================================
   13. MÓVIL
   ========================================================= */

@media (max-width: 767px) {

	body.single-post {
		overflow-x: hidden;
	}


	/* =====================================================
	   CONTENEDOR PRINCIPAL
	   ===================================================== */

	.cc-single-recipe__inner {
		width: 100% !important;
		max-width: 100% !important;

		margin: 0 !important;

		padding-top: 24px;
		padding-bottom: 36px;
	}


	/* =====================================================
	   H1 DEL POST
	   ===================================================== */

	.cc-single-recipe__header {
		width: 100% !important;
		max-width: 100% !important;

		margin: 0 0 20px !important;
		padding: 0 8px !important;

		box-sizing: border-box;
	}

	.cc-single-recipe__title {
		color: #20241E;

		font-size: clamp(32px, 8vw, 40px);
		line-height: 1.08;
	}


	/* =====================================================
	   CONTENIDO EDITORIAL
	   ===================================================== */

	.cc-single-recipe__content {
		width: 100% !important;
		max-width: 100% !important;

		margin: 0 !important;
		padding: 0 !important;
	}

	.cc-single-recipe__content > p {
		max-width: none;

		margin: 0 8px 18px !important;
		padding: 0 !important;

		font-size: 16px;
		line-height: 1.7;

		box-sizing: border-box;
	}

	.cc-single-recipe__content > h2 {
		max-width: none;

		margin: 38px 8px 18px !important;
		padding: 0 !important;

		font-size: 25px;
		box-sizing: border-box;
	}

	.cc-single-recipe__content > h3 {
		max-width: none;

		margin: 30px 8px 14px !important;
		padding: 0 !important;

		font-size: 21px;
		box-sizing: border-box;
	}


	/* =====================================================
	   WPRM — CONTENEDOR EXTERNO
	   ===================================================== */

	.cc-single-recipe__content .wprm-recipe-container {
		display: block !important;

		width: 100% !important;
		max-width: 100% !important;

		margin: 20px 0 0 !important;
		padding: 0 !important;

		box-sizing: border-box;
	}


	/* =====================================================
	   WPRM — TARJETA
	   ===================================================== */

	.cc-single-recipe__content .wprm-recipe {
		display: block !important;

		width: 100% !important;
		max-width: 100% !important;

		margin: 0 !important;
		padding: 0 !important;

		border: 0 !important;
		border-radius: 0 !important;
		box-shadow: none !important;

		background: #FFFFFF;

		box-sizing: border-box;
	}


	/* =====================================================
	   WPRM — HEADER INTERNO
	   ===================================================== */

	.cc-single-recipe__content .wprm-recipe-header {
		width: 100% !important;
		max-width: 100% !important;

		margin: 0 !important;
		padding: 0 !important;

		box-sizing: border-box;
	}


	/* =====================================================
	   WPRM — IMAGEN A TODO EL ANCHO
	   ===================================================== */

	.cc-single-recipe__content .wprm-recipe-image-container {
		display: block !important;
		float: none !important;

		width: 100vw !important;
		max-width: 100vw !important;

		margin-top: 0 !important;
		margin-right: 0 !important;
		margin-bottom: 20px !important;
		margin-left: calc((100% - 100vw) / 2) !important;

		padding: 0 !important;

		border: 0 !important;
		border-radius: 0 !important;

		position: relative;

		box-sizing: border-box;
	}

	.cc-single-recipe__content .wprm-recipe-image {
		display: block !important;

		width: 100% !important;
		max-width: 100% !important;

		margin: 0 !important;
		padding: 0 !important;

		box-sizing: border-box;
	}

	.cc-single-recipe__content .wprm-recipe-image img {
		display: block !important;

		width: 100% !important;
		max-width: 100% !important;
		height: auto !important;

		margin: 0 !important;
		padding: 0 !important;

		border: 0 !important;
		border-radius: 0 !important;

		box-sizing: border-box;
	}


	/* =====================================================
	   WPRM — CONTENIDO DEBAJO DE LA IMAGEN
	   ===================================================== */

	.cc-single-recipe__content .wprm-recipe-name,
	.cc-single-recipe__content .wprm-recipe-summary,
	.cc-single-recipe__content .wprm-recipe-rating,
	.cc-single-recipe__content .wprm-recipe-meta-container,
	.cc-single-recipe__content .wprm-recipe-video-container,
	.cc-single-recipe__content .wprm-recipe-ingredients-container,
	.cc-single-recipe__content .wprm-recipe-instructions-container,
	.cc-single-recipe__content .wprm-recipe-notes-container,
	.cc-single-recipe__content .wprm-recipe-nutrition-container {

		margin-left: 10px !important;
		margin-right: 10px !important;

		box-sizing: border-box;
	}


	/* =====================================================
	   WPRM — NOMBRE DE LA RECETA
	   ===================================================== */

	.cc-single-recipe__content .wprm-recipe-name {
		width: auto !important;
		max-width: none !important;

		margin-top: 0 !important;
		margin-bottom: 14px !important;

		padding: 0 !important;

		color: #20241E !important;

		font-size: 28px !important;
		font-weight: 750 !important;
		line-height: 1.12 !important;

		box-sizing: border-box;
	}


	/* =====================================================
	   WPRM — DESCRIPCIÓN
	   ===================================================== */

	.cc-single-recipe__content .wprm-recipe-summary-container {
		width: 100% !important;
		max-width: 100% !important;

		margin: 0 !important;
		padding: 0 !important;

		box-sizing: border-box;
	}

	.cc-single-recipe__content .wprm-recipe-summary {
		width: auto !important;
		max-width: none !important;

		margin-top: 0 !important;
		margin-bottom: 20px !important;

		padding: 0 !important;

		color: #596253 !important;

		font-size: 16px !important;
		line-height: 1.65 !important;

		box-sizing: border-box;
	}


	/* =====================================================
	   WPRM — VALORACIÓN
	   ===================================================== */

	.cc-single-recipe__content .wprm-recipe-rating {
		margin-top: 0 !important;
		margin-bottom: 20px !important;

		padding: 0 !important;
	}


	/* Texto "Califica esta Receta" */

	.cc-single-recipe__content .wprm-text.wprm-block-text-bold {
		position: relative !important;
		left: 10px !important;

		font-size: 18px !important;
	}


	/* Estrellas */

	.cc-single-recipe__content .wprm-user-rating .wprm-rating-star {
		font-size: 18px !important;
	}


	/* =====================================================
	   WPRM — INFORMACIÓN / META
	   ===================================================== */

	.cc-single-recipe__content .wprm-recipe-meta-container {
		width: auto !important;
		max-width: none !important;

		margin-top: 0 !important;
		margin-bottom: 20px !important;

		padding: 0 !important;

		box-sizing: border-box;
	}


	/* =====================================================
	   WPRM — INFORMACIÓN NUTRICIONAL
	   ===================================================== */

	.wprm-recipe-template-recetas-chapin-nuevas
	.wprm-recipe-header.wprm-recipe-nutrition-header {
		margin-left: 10px !important;
		margin-right: 10px !important;

		box-sizing: border-box;
	}


	.wprm-recipe-template-recetas-chapin-nuevas
	.wprm-nutrition-label-container.wprm-nutrition-label-container-simple {
		width: calc(100% - 24px) !important;
		max-width: none !important;

		margin-left: 10px !important;
		margin-right: 10px !important;

		box-sizing: border-box;
	}


	/* =====================================================
	   WPRM — ELEMENTOS INTERNOS
	   ===================================================== */

	.cc-single-recipe__content .wprm-recipe .wprm-recipe-header,
	.cc-single-recipe__content .wprm-recipe .wprm-recipe-summary-container,
	.cc-single-recipe__content .wprm-recipe .wprm-recipe-meta-container {
		box-sizing: border-box;
	}


	/* =====================================================
	   WPRM — EVITAR DESBORDAMIENTOS
	   ===================================================== */

	.cc-single-recipe__content .wprm-recipe,
	.cc-single-recipe__content .wprm-recipe * {
		box-sizing: border-box;
	}


	/* =====================================================
	   NAVEGACIÓN
	   ===================================================== */

	.cc-single-recipe__navigation {
		width: 100% !important;
		max-width: 100% !important;

		margin-top: 10px;
		padding: 20px 8px 0;

		box-sizing: border-box;
	}

	.cc-single-post-navigation .nav-links {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.cc-single-post-navigation .nav-next {
		text-align: left;
	}


	/* =====================================================
	   COMENTARIOS
	   ===================================================== */

	.cc-single-recipe__comments {
		width: 100% !important;
		max-width: 100% !important;

		margin: 0 !important;
		padding: 0 8px 36px;

		box-sizing: border-box;
	}

}


/* =========================================================
   14. ASTRA — ELIMINAR ESPACIO EXTERIOR EN SINGLE MÓVIL
   ========================================================= */

@media (max-width: 544px) {

	body.single-post.ast-separate-container .ast-article-single,
	body.single-post.ast-separate-container .ast-article-post {
		width: 100% !important;
		max-width: 100% !important;

		margin: 0 !important;
		padding: 0 !important;

		box-sizing: border-box;
	}

	body.single-post.ast-separate-container .ast-container {
		width: 100% !important;
		max-width: 100% !important;

		margin: 0 !important;
		padding: 0 !important;
	}

	body.single-post.ast-separate-container .site-content {
		width: 100% !important;
		max-width: 100% !important;

		margin: 0 !important;
		padding: 0 !important;
	}

	body.single-post.ast-separate-container #primary {
		width: 100% !important;
		max-width: 100% !important;

		margin: 0 !important;
		padding: 0 !important;
	}

}