/**
 * POST CONTENT
 *
 * Define los estilos específicos del contenido de las entradas y páginas legales de Carnimad, incluyendo la tipografía responsive, encabezados, párrafos, listas, enlaces, tablas y elementos auxiliares del sidebar como el listado dinámico de categorías.
 *
 * @package Carnimad
 */

/* ------------------------------- SINGLE POST */
/* --------------- CONTENT */
.single-post .post-content figure {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 0 40px;
}

.elementor-1018
	.elementor-element.elementor-element-8c42ffe
	.elementor-icon-list-text
	a {
	transition: var(--a-anim);
}

.elementor-1018
	.elementor-element.elementor-element-8c42ffe
	.elementor-icon-list-text
	a:hover {
	opacity: 0.5;
}

/* ------------------------------- POST CONTENT */
/* --------------- HEADINGS */
.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4,
.single-post .post-content h5,
.single-post .post-content h6 {
	display: flex;
	margin-top: 1.4em;
	margin-bottom: 0.5em;
	font-family: 'Poppins', sans-serif;
	font-weight: 600;
	line-height: 1.2;
	color: var(--ca-secondary) !important;
	word-break: keep-all;
}

.single-post .post-content h2 {
	font-size: clamp(28px, 2.2vw, 40px);
}

.single-post .post-content h3 {
	font-size: clamp(24px, 1.8vw, 34px);
}

.single-post .post-content h4 {
	font-size: clamp(20px, 1.5vw, 28px);
}

.single-post .post-content h5 {
	font-size: clamp(18px, 1.25vw, 24px);
}

.single-post .post-content h6 {
	font-size: clamp(16px, 1.1vw, 22px);
}

/* --------------- PARAGRAPHS */
.single-post .post-content p {
	font-family: 'Inter', sans-serif;
	font-size: clamp(14px, 1vw + 10px, 18px);
	line-height: 1.5;
	color: var(--ca-secondary) !important;
}

/* --------------- LISTS */
.single-post .post-content ul,
.single-post .post-content ol {
	margin-bottom: 1.5em;
}

/* --------------- FIRST ELEMENT */
.single-post .post-content > :first-child {
	margin-top: 0;
}

/* --------------- TABLES */
.single-post .post-content table h2,
.single-post .post-content table h3,
.single-post .post-content table h4,
.single-post .post-content table h5,
.single-post .post-content table h6 {
	margin-top: 0;
	margin-bottom: 0;
	font-size: inherit;
	line-height: inherit;
	text-wrap: initial;
}

/* ------------------------------- POST CATEGORIES */
.post-categories {
	width: 100%;
}

.post-categories__list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid #8a8a8a;
}

.post-categories__item {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid #8a8a8a;
}

.post-categories__link {
	display: block;
	padding: 10px 0;
	color: var(--c-black);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.3;
	text-decoration: none;
	transition: color 0.2s ease;
}

.post-categories__link:hover,
.post-categories__link:focus {
	color: var(--ca-primary);
}

/* ------------------------------- LEGAL CONTENT */
/* --------------- HEADINGS */
.legal-content h1,
.legal-content h2,
.legal-content h3,
.legal-content h4,
.legal-content h5,
.legal-content h6 {
	font-family: 'Poppins', sans-serif !important;
	font-weight: 600;
	line-height: 1.25;
	color: var(--ca-secondary);
	margin-top: 1.4em;
	margin-bottom: 0.5em;
}

.legal-content h1 {
	font-size: clamp(30px, 3vw, 44px);
}

.legal-content h2 {
	font-size: clamp(26px, 2.4vw, 36px);
}

.legal-content h3 {
	font-size: clamp(22px, 2vw, 30px);
}

.legal-content h4 {
	font-size: clamp(20px, 1.6vw, 26px);
}

.legal-content h5 {
	font-size: clamp(18px, 1.3vw, 22px);
}

.legal-content h6 {
	font-size: clamp(16px, 1.1vw, 20px);
}

/* --------------- FIRST ELEMENT */
.legal-content > :first-child {
	margin-top: 0;
}

/* --------------- TABLE LAYOUT */
.legal-content table {
	width: 100%;
	table-layout: auto;
}

.legal-content table th,
.legal-content table td {
	overflow-wrap: break-word;
	word-break: normal;
	hyphens: auto;
}

/* --------------- COOKIES TABLES */
.legal-content table:has(th:nth-child(4)) th:nth-child(1),
.legal-content table:has(th:nth-child(4)) td:nth-child(1) {
	width: 18%;
}

.legal-content table:has(th:nth-child(4)) th:nth-child(2),
.legal-content table:has(th:nth-child(4)) td:nth-child(2) {
	width: 22%;
	overflow-wrap: anywhere;
}

.legal-content table:has(th:nth-child(4)) th:nth-child(3),
.legal-content table:has(th:nth-child(4)) td:nth-child(3) {
	width: 45%;
}

.legal-content table:has(th:nth-child(4)) th:nth-child(4),
.legal-content table:has(th:nth-child(4)) td:nth-child(4) {
	width: 15%;
	min-width: 100px;
	white-space: nowrap;
}

/* ------------------------------- RESPONSIVE */
@media (max-width: 767px) {
	.legal-content table:has(th:nth-child(4)) {
		min-width: 650px;
	}

	.legal-content table:has(th:nth-child(4)) th,
	.legal-content table:has(th:nth-child(4)) td {
		white-space: normal;
	}

	.legal-content table:has(th:nth-child(4)) th:nth-child(4),
	.legal-content table:has(th:nth-child(4)) td:nth-child(4) {
		white-space: nowrap;
	}
}

/* --------------- POST CONTENT BUTTONS */
.single-post .post-content .wp-block-buttons .wp-block-button {
	margin-top: 10px;
	margin-bottom: 20px;
}
.single-post .post-content .wp-block-buttons .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 14px 28px;
	background-color: var(--ca-primary);
	border: 1px solid var(--ca-primary);
	border-radius: 0;
	color: var(--c-white);
	font-family: 'Poppins', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: var(--a-anim);
	border-radius: 100px;
}

.single-post .post-content .wp-block-buttons .wp-block-button__link:hover,
.single-post
	.post-content
	.wp-block-buttons
	.wp-block-button__link:focus-visible {
	background-color: var(--c-red-dark);
	border-color: var(--c-red-dark);
	color: var(--c-white);
}

/* --------------- POST CONTENT BUTTONS MOBILE */
@media screen and (max-width: 767px) {
	.single-post .post-content .wp-block-buttons .wp-block-button {
		width: 100%;
	}

	.single-post .post-content .wp-block-buttons .wp-block-button__link {
		width: 100%;
		padding: 14px 20px;
		font-size: 14px;
	}
}

