/**
 * Blog / Artículos layout and typography.
 */

body.autonomo-blog-view #primary {
	background-color: #f8fafc;
}

/* Archive */
.autonomo-blog-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.autonomo-article-card__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	background-color: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 1rem;
	box-shadow: 0 1px 2px 0 rgb(15 23 42 / 0.04);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.autonomo-article-card--has-image .autonomo-article-card__inner {
	padding: 0;
}

.autonomo-article-card:not(.autonomo-article-card--has-image) .autonomo-article-card__inner {
	padding: 1.5rem;
}

.autonomo-article-card__media {
	display: block;
	overflow: hidden;
	border-bottom: 1px solid #e2e8f0;
}

.autonomo-article-card__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.autonomo-article-card:hover .autonomo-article-card__image {
	transform: scale(1.03);
}

.autonomo-article-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1.5rem;
}

.autonomo-article-card:hover .autonomo-article-card__inner {
	border-color: #99f6e4;
	box-shadow: 0 4px 12px -4px rgb(13 148 136 / 0.15);
}

.autonomo-article-card__date {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	color: #94a3b8;
}

.autonomo-article-card__title {
	margin: 0 0 0.75rem;
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.015em;
}

.autonomo-article-card__title-link {
	color: #0f172a;
	text-decoration: none;
	transition: color 0.15s ease;
}

.autonomo-article-card__title-link:hover {
	color: #0d9488;
}

.autonomo-article-card__excerpt {
	margin: 0 0 1.25rem;
	font-size: 0.9375rem;
	line-height: 1.65;
	color: #64748b;
	flex: 1;
}

.autonomo-article-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #0d9488;
	text-decoration: none;
	transition: color 0.15s ease;
}

.autonomo-article-card__more:hover {
	color: #0f766e;
}

.autonomo-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.5rem;
	margin: 0.125rem;
	font-size: 0.875rem;
	color: #64748b;
	text-decoration: none;
	border: 1px solid #e2e8f0;
	border-radius: 0.5rem;
	background: #fff;
}

.autonomo-blog-pagination .page-numbers.current {
	color: #fff;
	background: #0d9488;
	border-color: #0d9488;
}

.autonomo-blog-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
}

/* Breadcrumbs */
.autonomo-blog-breadcrumbs__link {
	color: #64748b;
	text-decoration: none;
	transition: color 0.15s ease;
}

.autonomo-blog-breadcrumbs__link:hover {
	color: #0d9488;
}

/* Single post hero */
.autonomo-blog-single__hero-wrap .autonomo-blog-breadcrumbs {
	margin-bottom: 1rem;
}

.autonomo-article-hero {
	position: relative;
	overflow: hidden;
	border-radius: 1.25rem;
	border: 1px solid rgb(15 23 42 / 0.08);
	box-shadow:
		0 1px 2px 0 rgb(15 23 42 / 0.04),
		0 12px 32px -12px rgb(15 23 42 / 0.18);
}

.autonomo-article-hero__media {
	position: relative;
	aspect-ratio: 21 / 9;
	min-height: 14rem;
	max-height: 26rem;
	background-color: #0f172a;
}

.autonomo-article-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.autonomo-article-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgb(15 23 42 / 0.88) 0%,
		rgb(15 23 42 / 0.45) 42%,
		rgb(15 23 42 / 0.08) 100%
	);
	pointer-events: none;
}

.autonomo-article-hero__content {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 1.5rem;
}

.autonomo-article-hero__title {
	margin: 0;
	font-size: clamp(1.5rem, 4vw, 2.25rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #fff;
	text-wrap: balance;
}

.autonomo-article-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	color: rgb(226 232 240 / 0.92);
}

.autonomo-article-hero__meta-sep {
	color: rgb(148 163 184 / 0.8);
}

.autonomo-article-hero__author {
	font-weight: 600;
	color: #fff;
}

@media (min-width: 640px) {
	.autonomo-article-hero__content {
		padding: 2rem 2.25rem;
	}

	.autonomo-article-hero__media {
		min-height: 16rem;
	}
}

/* Single article content */
.autonomo-article-content {
	color: #334155;
	font-size: 1.0625rem;
	line-height: 1.8;
}

.autonomo-article-content > :first-child {
	margin-top: 0;
}

.autonomo-article-content p {
	margin: 0 0 1.25rem;
}

.autonomo-article-content h2 {
	margin: 2rem 0 0.75rem;
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.35;
	color: #0f172a;
}

.autonomo-article-content h3 {
	margin: 1.5rem 0 0.5rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: #1e293b;
}

.autonomo-article-content ul,
.autonomo-article-content ol {
	margin: 0 0 1.25rem;
}

.autonomo-article-content ul {
	list-style: none;
	padding-left: 0;
}

.autonomo-article-content ol {
	list-style: none;
	padding-left: 0;
	counter-reset: autonomo-ol;
}

.autonomo-article-content ul > li {
	position: relative;
	padding-left: 1.75rem;
	margin-bottom: 0.625rem;
}

.autonomo-article-content ul > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.72em;
	width: 0.4375rem;
	height: 0.4375rem;
	border-radius: 50%;
	background: linear-gradient(145deg, #2dd4bf 0%, #0d9488 100%);
	box-shadow: 0 0 0 3px rgb(45 212 191 / 0.22);
	transform: translateY(-50%);
}

.autonomo-article-content ul ul > li::before {
	width: 0.375rem;
	height: 0.375rem;
	background: transparent;
	border: 2px solid #0d9488;
	box-shadow: none;
}

.autonomo-article-content ul ul ul > li::before {
	width: 0.3125rem;
	height: 0.3125rem;
	border: none;
	border-radius: 1px;
	background: #5eead4;
	box-shadow: none;
	transform: translateY(-50%) rotate(45deg);
}

.autonomo-article-content li {
	margin-bottom: 0.5rem;
}

.autonomo-article-content ol > li {
	position: relative;
	padding-left: 2.5rem;
	counter-increment: autonomo-ol;
}

.autonomo-article-content ol > li::before {
	content: counter(autonomo-ol);
	position: absolute;
	left: 0;
	top: 0.2em;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 1.625rem;
	height: 1.625rem;
	padding: 0 0.3125rem;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	color: #fff;
	background: linear-gradient(145deg, #2dd4bf 0%, #0d9488 100%);
	border-radius: 9999px;
	box-shadow: 0 0 0 3px rgb(45 212 191 / 0.22);
}

.autonomo-article-content ol ol {
	counter-reset: autonomo-ol-sub;
	margin-top: 0.625rem;
	margin-bottom: 0;
}

.autonomo-article-content ol ol > li {
	padding-left: 2.25rem;
	counter-increment: autonomo-ol-sub;
}

.autonomo-article-content ol ol > li::before {
	content: counter(autonomo-ol-sub, lower-alpha);
	min-width: 1.375rem;
	height: 1.375rem;
	font-size: 0.6875rem;
	font-weight: 700;
	color: #0f766e;
	background: #f0fdfa;
	border: 2px solid #99f6e4;
	box-shadow: none;
}

.autonomo-article-content ol ol ol {
	counter-reset: autonomo-ol-sub2;
}

.autonomo-article-content ol ol ol > li {
	padding-left: 2rem;
	counter-increment: autonomo-ol-sub2;
}

.autonomo-article-content ol ol ol > li::before {
	content: counter(autonomo-ol-sub2, lower-roman);
	min-width: 1.25rem;
	height: 1.25rem;
	font-size: 0.625rem;
	color: #0d9488;
	background: transparent;
	border: 2px solid #5eead4;
	box-shadow: none;
}

.autonomo-article-content ul ul,
.autonomo-article-content ol ul,
.autonomo-article-content ul ol,
.autonomo-article-content ol ol {
	margin-top: 0.625rem;
	margin-bottom: 0;
}

.autonomo-article-content a {
	color: #0d9488;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.autonomo-article-content a:hover {
	color: #0f766e;
}

.autonomo-blog-grid--related {
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.autonomo-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.autonomo-blog-grid--related {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.autonomo-blog-archive {
		max-width: 56rem;
	}
}
