/**
 * Homepage styles for Soledad Child.
 */

.ls-home {
	padding: 38px 0 12px;
	color: var(--pctext-cl, #313131);
}

.ls-home *,
.ls-home *::before,
.ls-home *::after {
	box-sizing: border-box;
}

.ls-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ls-home a {
	transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ls-section {
	margin: 0 0 54px;
}

.ls-section__head {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin: 0 0 24px;
	padding: 0 0 13px;
	border-bottom: 1px solid var(--pcborder-cl, #dedede);
}

.ls-section__head::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 58px;
	height: 3px;
	background: var(--pcaccent-cl, #6eb48c);
}

.ls-section__heading {
	min-width: 0;
}

.ls-section__title {
	margin: 0;
	color: var(--pcheading-cl, #313131);
	font-family: var(--pchead-font, inherit);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: .02em;
	text-transform: uppercase;
}

.ls-section__subtitle {
	display: block;
	margin-top: 5px;
	color: var(--pcmeta-cl, #888);
	font-family: var(--pcbody-font, inherit);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
}

.ls-section__more {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	flex: 0 0 auto;
	color: var(--pcmeta-cl, #888);
	font-family: var(--pchead-font, inherit);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.3;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.ls-section__more:hover {
	color: var(--pcaccent-cl, #6eb48c);
}

/* Popular and featured category layouts */
.ls-popular,
.ls-cat--featured {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
	gap: 30px;
	align-items: start;
}

.ls-popular.is-single,
.ls-cat--featured.is-single {
	grid-template-columns: minmax(0, 780px);
}

.ls-popular__list,
.ls-cat__list {
	display: grid;
	gap: 6px;
	min-width: 0;
}

/* Card */
.ls-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ls-card__thumb,
.ls-row__thumb {
	position: relative;
	display: block;
	overflow: hidden;
	border-radius: 10px;
	background: var(--pcborder-cl, #dedede);
}

.ls-card__thumb::before {
	content: "";
	display: block;
	padding-top: 62%;
}

.ls-card--big .ls-card__thumb::before {
	padding-top: 66%;
}

.ls-card__img,
.ls-row__img {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	transition: transform .4s ease;
}

.ls-card:hover .ls-card__img,
.ls-row:hover .ls-row__img {
	transform: scale(1.04);
}

.ls-card__rank {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--pcaccent-cl, #6eb48c);
	box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
	color: #fff;
	font-family: var(--pchead-font, inherit);
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}

.ls-card__body {
	padding: 14px 0 0;
}

.ls-card__cat {
	display: inline-block;
	margin: 0 0 8px;
	color: var(--pcaccent-cl, #6eb48c);
	font-family: var(--pchead-font, inherit);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .07em;
	line-height: 1.3;
	text-decoration: none;
	text-transform: uppercase;
}

.ls-card__cat:hover {
	color: var(--pcheading-cl, #313131);
}

.ls-card__title {
	display: -webkit-box;
	overflow: hidden;
	margin: 0;
	color: var(--pcheading-cl, #313131);
	font-family: var(--pchead-font, inherit);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.35;
	overflow-wrap: break-word;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.ls-card--big .ls-card__title {
	font-size: 24px;
	line-height: 1.3;
	-webkit-line-clamp: 3;
}

.ls-card__title a,
.ls-row__title a {
	color: inherit;
	text-decoration: none;
}

.ls-card__title a:hover,
.ls-row__title a:hover {
	color: var(--pcaccent-cl, #6eb48c);
}

.ls-card__excerpt {
	display: -webkit-box;
	overflow: hidden;
	margin: 10px 0 0;
	color: var(--pctext-cl, #313131);
	font-family: var(--pcbody-font, inherit);
	font-size: 14px;
	line-height: 1.6;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.ls-card__meta,
.ls-row__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin: 10px 0 0;
	color: var(--pcmeta-cl, #888);
	font-family: var(--pcbody-font, inherit);
	font-size: 12px;
	line-height: 1.4;
}

.ls-meta__views {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.ls-meta__icon {
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.ls-meta__views .penci-post-countview-number {
	font-style: normal;
}

/* Dates are shown only in the latest posts section. */
.ls-home .ls-card__meta .ls-meta__date,
.ls-home .ls-row__meta .ls-meta__date {
	display: none;
}

.ls-home .ls-section--latest .ls-card__meta .ls-meta__date {
	display: inline;
}

/* Compact row */
.ls-row {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 14px;
	align-items: center;
	min-width: 0;
	padding: 11px 0;
	border-bottom: 1px solid var(--pcborder-cl, #dedede);
}

.ls-row:last-child {
	border-bottom: 0;
}

.ls-row--ranked {
	grid-template-columns: 34px 92px minmax(0, 1fr);
}

.ls-row--compact {
	grid-template-columns: 82px minmax(0, 1fr);
	gap: 12px;
	padding: 9px 0;
}

.ls-row__rank {
	color: var(--pcaccent-cl, #6eb48c);
	font-family: var(--pchead-font, inherit);
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

.ls-row__thumb {
	width: 100%;
}

.ls-row__thumb::before {
	content: "";
	display: block;
	padding-top: 66%;
}

.ls-row__body {
	min-width: 0;
}

.ls-row__title {
	display: -webkit-box;
	overflow: hidden;
	margin: 0 0 6px;
	color: var(--pcheading-cl, #313131);
	font-family: var(--pchead-font, inherit);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	overflow-wrap: break-word;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ls-row__meta {
	margin: 0;
	font-size: 12px;
}

/* Secondary two-column band */
.ls-secondary {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 44px;
	margin: 0 0 54px;
}

.ls-secondary .ls-section {
	margin-bottom: 0;
}

.ls-secondary > .ls-section:only-child {
	grid-column: 1 / -1;
}

.ls-cat__list--compact {
	gap: 0;
}

/* Category links */
.ls-cats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.ls-cat-link {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	padding: 16px 18px;
	border: 1px solid var(--pcborder-cl, #dedede);
	border-radius: 10px;
	background: var(--pcbg-cl, #fff);
	color: var(--pctext-cl, #313131);
	text-decoration: none;
}

.ls-cat-link:not(.is-empty):hover {
	border-color: var(--pcaccent-cl, #6eb48c);
	box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
	color: var(--pctext-cl, #313131);
	transform: translateY(-2px);
}

.ls-cat-link.is-empty {
	opacity: .58;
}

.ls-cat-link__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 42px;
	width: 42px;
	height: 42px;
	border: 1px solid currentColor;
	border-radius: 50%;
	color: var(--pcaccent-cl, #6eb48c);
	font-size: 16px;
	line-height: 1;
}

.ls-cat-link__text {
	min-width: 0;
}

.ls-cat-link__name {
	display: block;
	overflow: hidden;
	color: var(--pcheading-cl, #313131);
	font-family: var(--pchead-font, inherit);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ls-cat-link__count {
	display: block;
	margin-top: 3px;
	color: var(--pcmeta-cl, #888);
	font-family: var(--pcbody-font, inherit);
	font-size: 12px;
	line-height: 1.3;
}

.ls-cat-link__arrow {
	margin-left: auto;
	color: var(--pcaccent-cl, #6eb48c);
	font-size: 16px;
	line-height: 1;
}

/* Latest posts grid */
.ls-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px 24px;
}

.ls-grid .ls-card__thumb::before {
	padding-top: 62%;
}

/* Responsive */
@media only screen and (max-width: 960px) {
	.ls-popular,
	.ls-cat--featured {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	.ls-popular__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 22px;
	}

	.ls-popular__list .ls-row:nth-last-child(-n + 2) {
		border-bottom: 0;
	}

	.ls-secondary {
		grid-template-columns: minmax(0, 1fr);
		gap: 38px;
	}

	.ls-cats,
	.ls-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media only screen and (max-width: 767px) {
	.ls-home {
		padding-top: 26px;
	}

	.ls-section,
	.ls-secondary {
		margin-bottom: 38px;
	}

	.ls-section__head {
		align-items: center;
		gap: 12px;
		margin-bottom: 18px;
	}

	.ls-section__title {
		font-size: 17px;
	}

	.ls-section__subtitle {
		font-size: 12px;
	}

	.ls-section__more {
		font-size: 11px;
	}

	.ls-popular__list {
		grid-template-columns: minmax(0, 1fr);
	}

	.ls-popular__list .ls-row {
		border-bottom: 1px solid var(--pcborder-cl, #dedede);
	}

	.ls-popular__list .ls-row:last-child {
		border-bottom: 0;
	}

	.ls-card--big .ls-card__title {
		font-size: 20px;
	}

	.ls-grid,
	.ls-cats {
		grid-template-columns: minmax(0, 1fr);
	}

	.ls-grid {
		gap: 26px;
	}

	.ls-card__title {
		font-size: 16px;
	}

	.ls-row--ranked {
		grid-template-columns: 30px 82px minmax(0, 1fr);
		gap: 10px;
	}

	.ls-row {
		grid-template-columns: 88px minmax(0, 1fr);
	}

	.ls-row--compact {
		grid-template-columns: 78px minmax(0, 1fr);
	}

	.ls-row__title {
		font-size: 14px;
	}

	.ls-cat-link {
		padding: 14px;
	}
}

@media only screen and (max-width: 479px) {
	.ls-home {
		padding-top: 20px;
	}

	.ls-section__title {
		font-size: 15px;
	}

	.ls-section__more span {
		display: none;
	}

	.ls-row--ranked {
		grid-template-columns: 26px 74px minmax(0, 1fr);
		gap: 8px;
	}

	.ls-row {
		grid-template-columns: 76px minmax(0, 1fr);
		gap: 10px;
	}

	.ls-row--compact {
		grid-template-columns: 72px minmax(0, 1fr);
	}

	.ls-row__rank {
		font-size: 18px;
	}

	.ls-card__rank {
		top: 9px;
		left: 9px;
		width: 30px;
		height: 30px;
		font-size: 13px;
	}

	.ls-card__body {
		padding-top: 11px;
	}

	.ls-cat-link__name {
		white-space: normal;
	}
}
