/**
 * Single post styles.
 *
 * @package Harmony
 */

.site-main{
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 46px 46px 0;
}

.single__inner {
	display: flex;
	flex-direction: column;
	gap: 60px;
}

.single__layout {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-start;
	gap: 84px;
}

.single__sidebar {
	display: flex;
	flex-direction: column;
	width: 590px;
	flex-shrink: 0;
	position: sticky;
	top: 24px;
	align-self: flex-start;
}

.single__cat {
	font-family: var(--font-family);
	font-weight: 600;
	font-size: 14px;
	text-transform: lowercase;
}

.single__title {
	margin: 12px 0 0;
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 32px;
	line-height: 119%;
	text-transform: uppercase;
	color: var(--black-292929);
}

.single__date {
	margin: 32px 0 0;
	font-family: var(--font-family);
	font-weight: 400;
	font-size: 14px;
	text-transform: lowercase;
	color: var(--grey-808080);
}

.single__social {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 4px;
	margin-top: 32px;
}

.single__social-link {
	display: flex;
	width: 28px;
	height: 28px;
	align-items: center;
	justify-content: center;
}

.single__social-link img {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.single__back {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 13px;
	text-transform: uppercase;
	color: var(--black-292929);
	text-decoration: none;
	margin-top: 60px;
	transition: opacity 0.2s;
}

.single__back:hover {
	opacity: 0.8;
}

.single__back svg {
	flex-shrink: 0;
	width: 19px;
	height: 11px;
}

.single__content {
	display: flex;
	flex-direction: column;
	gap: 32px;
	width: 100%;
	max-width: 664px;
	min-width: 0;
}

.single__featured {
	width: 100%;
	aspect-ratio: 664 / 374;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #e8e8e8;
}

.single__body {
	color: #292929;
	font-size: 16px;
	font-family: var(--font-family);
	line-height: 1.5;
}

.single__body p {
	margin: 0 0 1em;
}

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

.single__body h2,
.single__body h3 {
	font-family: var(--font-family);
	font-weight: 600;
	font-size: 18px;
	text-transform: uppercase;
	color: var(--black-292929);
}

.single__body h2{
	font-size: 22px;
}

.single__body img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 1em 0;
}

/* Related section */
.single-related {
	margin-top: 20px;
}

.single-related__header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 32px;
}

.single-related__title {
	margin: 0;
	font-family: var(--font-family);
	font-weight: 500;
	font-size: 46px;
	line-height: 110%;
	letter-spacing: -0.05em;
	text-transform: uppercase;
	color: var(--black-292929);
}

.single-related__nav {
	display: flex;
	gap: 8px;
}

.single-related__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid #dadada;
	background: #fff;
	color: #292929;
	cursor: pointer;
	transition: background-color 0.2s, border-color 0.2s;
}

.single-related__arrow:hover {
	background-color: #f5f5f5;
}

.single-related__arrow:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.single-related__arrow:disabled:hover {
	background-color: #fff;
}

.single-related__arrow svg {
	width: 9px;
	height: 18px;
}

.single-related__slider {
	overflow: hidden;
}

.single-related__track {
	display: flex;
	gap: 20px;
	transition: transform 0.3s ease;
}

.single-related__item {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 0 0 322px;
	min-width: 322px;
}

.single-related__link {
	position: relative;
	display: block;
	text-decoration: none;
}

.single-related__image {
	width: 100%;
	aspect-ratio: 322 / 212;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-color: #e8e8e8;
}

.single-related__cat {
	position: absolute;
	left: 12px;
	top: 12px;
	padding: 5px 12px 6px;
	font-family: var(--font-family);
	font-weight: 600;
	font-size: 13px;
	text-transform: lowercase;
	background-color: #fff;
}

.single-related__item-title {
	margin: 0;
	font-family: var(--font-family);
	font-weight: 600;
	font-size: 20px;
	text-transform: uppercase;
	color: var(--black-292929);
}

.single-related__item-title a {
	color: #292929;
	text-decoration: none;
	transition: opacity 0.2s;
}

.single-related__item-title a:hover {
	opacity: 0.8;
}

.single-related__item-date {
	margin: 0;
	font-family: var(--font-family);
	font-weight: 400;
	font-size: 14px;
	text-transform: lowercase;
	color: var(--grey-808080);
}

.single__content li{
	margin-bottom: 1em;
}

@media (max-width: 1024px) {
	.single {
		padding: 0;
	}

	.single__layout {
		flex-direction: column;
		gap: 40px;
	}

	.single__sidebar {
		width: 100%;
		position: relative;
	}

	.single__content {
		width: 100%;
		max-width: 100%;
	}

	.single-related__title {
		font-size: 32px;
	}

	.single-related__item {
		flex: 0 0 280px;
		min-width: 280px;
	}
}

@media (max-width: 600px) {
	.single {
		padding: 40px 16px 40px;
	}

	.site-main {
		padding: 0;
	}

	.single__back {
		margin-top: 40px;
	}

	.single__title {
		font-size: 24px;
	}

	.single-related__header {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.single-related__title {
		font-size: 26px;
	}

	.single-related__item {
		flex: 0 0 260px;
		min-width: 260px;
	}
}
