/**
 * Single post page styles.
 */

.tbpt-single-post {
	--tbpt-spost-red: #ed1c24;
	--tbpt-spost-red-hover: #d41920;
	--tbpt-spost-text: #1a1a1a;
	--tbpt-spost-muted: #8f8f8f;
	--tbpt-spost-border: #e5e5e5;
	--tbpt-spost-spec-bg: #fffbf2;
}

.tbpt-single-post__breadcrumb-wrap {
	padding: 14px 0 0;
	margin-bottom: 24px;
}

.tbpt-single-post__breadcrumb {
	color: var(--tbpt-spost-muted);
	font-size: 13px;
}

.tbpt-single-post__breadcrumb a {
	color: var(--tbpt-spost-muted);
	text-decoration: none;
}

.tbpt-single-post__breadcrumb a:hover {
	color: var(--tbpt-spost-red);
}

.tbpt-single-post__main {
	padding-bottom: 48px;
}

.tbpt-single-post__row {
	align-items: flex-start;
}

.tbpt-single-post__content-col {
	padding-right: 28px;
}

/* Header */
.tbpt-single-post__category {
	display: inline-flex;
	align-items: center;
	margin: 0 0 14px;
	padding: 4px 12px;
	border: 1px solid var(--tbpt-spost-red);
	border-radius: 4px;
	color: var(--tbpt-spost-red);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

.tbpt-single-post__category:hover {
	background: rgba(237, 28, 36, 0.06);
	color: var(--tbpt-spost-red-hover);
}

.tbpt-single-post__title {
	margin: 0 0 16px;
	color: var(--tbpt-spost-text);
	font-size: 34px;
	font-weight: 700;
	line-height: 1.25;
}

.tbpt-single-post__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	margin-bottom: 28px;
	color: var(--tbpt-spost-muted);
	font-size: 14px;
}

.tbpt-single-post__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.tbpt-single-post__meta-icon {
	flex: 0 0 auto;
	color: var(--tbpt-spost-red);
}

/* Content */
.tbpt-single-post__content {
	margin-bottom: 40px;
	color: var(--tbpt-spost-text);
	font-size: 16px;
	line-height: 1.75;
}

.tbpt-single-post__content > :first-child {
	margin-top: 0;
}

.tbpt-single-post__content h2,
.tbpt-single-post__content h3,
.tbpt-single-post__content h4 {
	color: var(--tbpt-spost-red);
	font-weight: 700;
	line-height: 1.35;
}

.tbpt-single-post__content h2 {
	margin: 1.6em 0 0.8em;
	font-size: 24px;
}

.tbpt-single-post__content h3 {
	margin: 1.4em 0 0.7em;
	font-size: 20px;
}

.tbpt-single-post__content ul:not(.blocks-gallery-grid) {
	margin: 0 0 1.2em;
	padding-left: 0;
	list-style: none;
}

.tbpt-single-post__content ul:not(.blocks-gallery-grid) > li {
	position: relative;
	margin: 0 0 8px;
	padding-left: 18px;
}

.tbpt-single-post__content ul:not(.blocks-gallery-grid) > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.72em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--tbpt-spost-red);
	transform: translateY(-50%);
}

.tbpt-single-post__content ol {
	margin: 0 0 1.2em;
	padding-left: 1.2em;
}

.tbpt-single-post__content p {
	margin: 0 0 1em;
}

.tbpt-single-post__content img {
	border-radius: 8px;
}

/* Sidebar */
.tbpt-single-post__sidebar-col {
	position: sticky;
	top: 110px;
}

.tbpt-single-post__widget {
	margin-bottom: 20px;
	padding: 18px 16px;
	border: 1px solid var(--tbpt-spost-border);
	border-radius: 10px;
	background: #fff;
}

.tbpt-single-post__widget-title {
	margin: 0 0 14px;
	color: var(--tbpt-spost-text);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.tbpt-single-post__toc-list {
	margin: 0;
	padding-left: 1.1em;
}

.tbpt-single-post__toc-item {
	margin: 0 0 8px;
	color: var(--tbpt-spost-text);
	font-size: 14px;
	line-height: 1.45;
}

.tbpt-single-post__toc-item.is-level-3 {
	padding-left: 12px;
}

.tbpt-single-post__toc-item a {
	color: var(--tbpt-spost-text);
	text-decoration: none;
}

.tbpt-single-post__toc-item a:hover {
	color: var(--tbpt-spost-red);
}

.tbpt-single-post__recent-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.tbpt-single-post__recent-item + .tbpt-single-post__recent-item {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--tbpt-spost-border);
}

.tbpt-single-post__recent-link {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	text-decoration: none;
}

.tbpt-single-post__recent-thumb {
	flex: 0 0 64px;
}

.tbpt-single-post__recent-image {
	display: block;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	object-fit: cover;
}

.tbpt-single-post__recent-image--placeholder {
	background: linear-gradient(135deg, #f7f3ea 0%, #efe8da 100%);
}

.tbpt-single-post__recent-body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.tbpt-single-post__recent-title {
	color: var(--tbpt-spost-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.tbpt-single-post__recent-date {
	color: var(--tbpt-spost-muted);
	font-size: 12px;
}

.tbpt-single-post__recent-link:hover .tbpt-single-post__recent-title {
	color: var(--tbpt-spost-red);
}

.tbpt-single-post__recent-view-all {
	display: inline-block;
	margin-top: 14px;
	color: var(--tbpt-spost-red);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.tbpt-single-post__recent-view-all:hover {
	color: var(--tbpt-spost-red-hover);
}

/* Related posts */
.tbpt-single-post__related {
	margin-bottom: 40px;
	padding-top: 8px;
}

.tbpt-single-post__related-title {
	margin: 0 0 18px;
	color: var(--tbpt-spost-text);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

.tbpt-single-post__related-grid {
	margin: 0 -10px;
}

.tbpt-single-post__related-col {
	padding: 0 10px 20px;
}

.tbpt-related-post-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border: 1px solid var(--tbpt-spost-border);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.tbpt-related-post-card__media {
	position: relative;
	display: block;
}

.tbpt-related-post-card__image {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.tbpt-related-post-card__image--placeholder {
	background: linear-gradient(135deg, #f7f3ea 0%, #efe8da 100%);
}

.tbpt-related-post-card__date-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 52px;
	min-height: 58px;
	padding: 6px 8px;
	border-radius: 4px;
	background: var(--tbpt-spost-red);
	color: #fff;
	text-align: center;
	line-height: 1.1;
}

.tbpt-related-post-card__date-day {
	font-size: 22px;
	font-weight: 700;
}

.tbpt-related-post-card__date-month {
	margin-top: 2px;
	font-size: 11px;
	font-weight: 700;
}

.tbpt-related-post-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 14px 14px 16px;
}

.tbpt-related-post-card__title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.tbpt-related-post-card__title a {
	color: var(--tbpt-spost-text);
	text-decoration: none;
}

.tbpt-related-post-card__title a:hover {
	color: var(--tbpt-spost-red);
}

.tbpt-related-post-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}

.tbpt-related-post-card__date {
	color: var(--tbpt-spost-muted);
	font-size: 13px;
}

.tbpt-related-post-card__read-more {
	color: var(--tbpt-spost-red);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.tbpt-related-post-card__read-more:hover {
	color: var(--tbpt-spost-red-hover);
}

/* Comments */
.tbpt-single-post__comments {
	margin-bottom: 0;
	padding-top: 8px;
}

.tbpt-comments-area__title,
.tbpt-single-post__comments .comment-reply-title {
	margin: 0 0 10px;
	color: var(--tbpt-spost-text);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.tbpt-single-post__comment-note {
	margin: 0 0 18px;
	color: var(--tbpt-spost-muted);
	font-size: 14px;
}

.tbpt-single-post__comment-form {
	margin-top: 0;
}

.tbpt-single-post__comment-form .comment-form-author,
.tbpt-single-post__comment-form .comment-form-email {
	float: left;
	width: calc(50% - 8px);
	margin: 0 0 16px;
}

.tbpt-single-post__comment-form .comment-form-author {
	margin-right: 16px;
}

.tbpt-single-post__comment-form .comment-form-comment {
	clear: both;
	margin: 0 0 16px;
}

.tbpt-single-post__comment-form label {
	display: block;
	margin-bottom: 6px;
	color: var(--tbpt-spost-text);
	font-size: 14px;
	font-weight: 600;
}

.tbpt-single-post__comment-form input[type="text"],
.tbpt-single-post__comment-form input[type="email"],
.tbpt-single-post__comment-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--tbpt-spost-border);
	border-radius: 8px;
	background: #fff;
	color: var(--tbpt-spost-text);
	font-size: 14px;
}

.tbpt-single-post__comment-form textarea {
	min-height: 140px;
	resize: vertical;
}

.tbpt-single-post__comment-submit {
	min-width: 180px;
	min-height: 48px;
	padding: 12px 24px;
	border: none;
	border-radius: 8px;
	background: var(--tbpt-spost-red);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.tbpt-single-post__comment-submit:hover {
	background: var(--tbpt-spost-red-hover);
}

.tbpt-comment-list {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.tbpt-single-post__footer-blocks {
	margin-top: 48px;
}

@media (max-width: 849px) {
	.tbpt-single-post__content-col {
		padding-right: 0;
	}

	.tbpt-single-post__sidebar-col {
		position: static;
		margin-top: 8px;
	}

	.tbpt-single-post__title {
		font-size: 28px;
	}

	.tbpt-single-post__comment-form .comment-form-author,
	.tbpt-single-post__comment-form .comment-form-email {
		float: none;
		width: 100%;
		margin-right: 0;
	}
}

@media (max-width: 549px) {
	.tbpt-single-post__title {
		font-size: 24px;
	}

	.tbpt-single-post__meta {
		gap: 10px 16px;
	}
}
