/**
 * Single blog post styles ("Blog Inner")
 *
 * 1. Layout
 * 2. Entry — hero, content-style classes, tags/share, author, nav
 * 3. FAQ
 * 4. Comments
 * 5. Sidebar
 * 6. Related
 * 7. Responsive
 */

/* ============================ LAYOUT ============================ */
.post-detail {
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

/* ============================ FAQ ============================ */
.post-faq-row {
	margin-top: clamp(2.5rem, 5vw, 4.5rem);
}
.post-faq__accordion {
	margin-top: 1.5rem;
}

/* ============================ ENTRY — HERO ============================ */
.entry__hero {
	position: relative;
	margin-bottom: 1.5rem;
}
.entry__hero-img {
	width: 100%;
	height: clamp(260px, 34vw, 480px);
	object-fit: cover;
}
.entry__hero-tag {
	position: absolute;
	top: 0;
	left: 0;
	background: var(--color-accent-red);
	color: #fff;
	font-weight: 700;
	font-size: 0.6875rem;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	padding: 0.6rem 1.1rem;
}

/* ============================ ENTRY — CONTENT ============================ */
/* Base typography for whatever the block editor outputs. */
.entry-content {
	font-size: 1rem;
	color: #374151;
	line-height: 1.8;
}
.entry-content > * + * {
	margin-top: 1.25rem;
}
.entry-content h2 {
	font-weight: 800;
	font-size: clamp(1.375rem, 2.4vw, 1.625rem);
	letter-spacing: -0.3px;
	color: var(--heading-color);
	margin-top: 2rem;
}
.entry-content h3 {
	font-weight: 800;
	font-size: 1.1875rem;
	letter-spacing: -0.3px;
	color: var(--heading-color);
}
.entry-content h4 {
	font-weight: 800;
	font-size: 1rem;
	letter-spacing: -0.3px;
	color: var(--heading-color);
}

/* --- .intro — lead paragraph: <p class="intro"> from the Classic Editor's Text tab --- */
.entry-content .intro {
	border-left: 4px solid var(--color-accent-red);
	padding: 0.75rem 0 0.75rem 1.375rem;
	font-weight: 600;
	font-size: 1.0625rem;
	line-height: 1.7;
}

/* --- ul — checklist, styled by default --- */
.entry-content ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.entry-content ul li {
	position: relative;
	padding: 0.5rem 0 0.5rem 2rem;
	font-size: 0.9375rem;
	color: var(--text-color-muted);
}
.entry-content ul li + li {
	margin-top: 0.25rem;
}
.entry-content ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.6rem;
	width: 18px;
	height: 18px;
	background-color: var(--color-accent-red);
	-webkit-mask: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 0a9 9 0 1 0 9 9A9 9 0 0 0 9 0Zm-1.2 13.2-4-4 1.4-1.4 2.6 2.6 6-6 1.4 1.4Z'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 0a9 9 0 1 0 9 9A9 9 0 0 0 9 0Zm-1.2 13.2-4-4 1.4-1.4 2.6 2.6 6-6 1.4 1.4Z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.entry-content ul li b,
.entry-content ul li strong {
	color: var(--heading-color);
}

/* --- .quote — pull-quote: <blockquote class="quote"> --- */
.entry-content .quote {
	position: relative;
	background: #0d0d0d;
	color: #fff;
	padding: 2.25rem 2.5rem;
	border: 0;
	border-left: 5px solid var(--color-accent-red);
}
.entry-content .quote p {
	font-weight: 700;
	font-style: italic;
	font-size: 1.1875rem;
	line-height: 1.6;
	margin: 0;
}
.entry-content .quote cite,
.entry-content .quote footer {
	display: block;
	font-style: normal;
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.4px;
	color: var(--color-accent-red);
	margin-top: 1rem;
}

/* --- .figs — two-up captioned gallery: <div class="figs"><figure>...</figure>...</div> --- */
.entry-content .figs {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}
.entry-content .figs figure {
	margin: 0;
}
.entry-content .figs img {
	width: 100%;
	height: 250px;
	object-fit: cover;
	display: block;
}
.entry-content .figs figcaption {
	border-left: 2px solid var(--color-accent-red);
	padding-left: 0.75rem;
	margin-top: 0.6rem;
	font-weight: 600;
	font-size: 0.75rem;
	color: var(--text-color-muted);
}

/* --- table — data table, styled by default: <table> --- */
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.875rem;
}
.entry-content table th {
	background: var(--color-nav-bg);
	color: #fff;
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.6px;
	text-align: left;
	padding: 0.875rem 1.125rem;
}
.entry-content table td {
	border: 1px solid var(--border-color);
	padding: 0.75rem 1.125rem;
}
.entry-content table tbody tr:nth-child(even) td {
	background: var(--color-light-bg);
}

/* --- .callout — highlighted note: <div class="callout"> --- */
.entry-content .callout {
	background: var(--color-light-bg);
	border-left: 4px solid var(--color-accent-red);
	padding: 1.5rem 1.875rem;
}
.entry-content .callout h4 {
	font-size: 0.9375rem;
	margin: 0 0 0.4rem;
}
.entry-content .callout p {
	font-size: 0.9375rem;
	color: var(--text-color-muted);
	margin: 0;
}

/* ============================ ENTRY — TAGS + SHARE ============================ */
.entry__tags-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.375rem 0;
	margin: 2rem 0;
	border-top: 1px solid var(--border-color);
	border-bottom: 1px solid var(--border-color);
}
.entry__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5625rem;
}
.entry__tags-label,
.entry__share-label {
	font-weight: 700;
	font-size: 0.75rem;
	color: var(--heading-color);
}
.entry__tag {
	border: 1px solid var(--border-color);
	color: var(--text-color-muted);
	font-weight: 700;
	font-size: 0.75rem;
	padding: 0.5rem 0.9375rem;
	text-decoration: none;
}
.entry__tag:hover {
	border-color: var(--color-accent-red);
	color: var(--color-accent-red);
}
.entry__share {
	display: flex;
	align-items: center;
	gap: 0.625rem;
}
.entry__share-link {
	width: 36px;
	height: 36px;
	background: #0d0d0d;
	color: #fff;
	border: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.entry__share-link svg {
	width: 14px;
	height: 14px;
}
.entry__share-link:hover {
	background: var(--color-accent-red);
	color: #fff;
}
.entry__share-link.is-copied {
	background: var(--color-accent-red);
}

/* ============================ ENTRY — AUTHOR ============================ */
.entry__author {
	display: flex;
	gap: 1.5rem;
	background: var(--color-light-bg);
	padding: 1.875rem;
	margin: 2rem 0;
}
.entry__author-avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.entry__author-name {
	font-weight: 800;
	font-size: 1.0625rem;
	letter-spacing: -0.3px;
	margin-bottom: 0.25rem;
}
.entry__author-role {
	color: var(--color-accent-red);
	font-weight: 700;
	font-style: italic;
	font-size: 0.75rem;
	margin-bottom: 0.5rem;
}
.entry__author-bio {
	color: var(--text-color-muted);
	font-size: 0.875rem;
	line-height: 1.75;
	margin: 0;
}

/* ============================ ENTRY — MORE ARTICLES ============================ */
.entry__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 2rem 0;
}
.entry__nav-prev,
.entry__nav-next {
	flex: 1 1 0;
	min-width: 240px;
}
.entry__nav-next {
	text-align: right;
}
.entry__nav a {
	display: block;
	border: 1px solid var(--border-color);
	padding: 1.1rem 1.5rem;
	text-decoration: none;
	color: inherit;
}
.entry__nav a:hover {
	border-color: var(--color-accent-red);
}
.entry__nav small {
	display: block;
	color: var(--color-accent-red);
	font-weight: 700;
	font-size: 0.75rem;
	margin-bottom: 0.4rem;
}
.entry__nav strong {
	display: block;
	font-weight: 800;
	font-size: 1rem;
	color: var(--heading-color);
}

/* ============================ COMMENTS ============================ */
.comments-area {
	margin-top: 2.5rem;
}
.comments-title {
	font-weight: 800;
	font-size: 1.375rem;
	letter-spacing: -0.3px;
	margin-bottom: 1.5rem;
}
.comment-list {
	list-style: none;
	margin: 0 0 2rem;
	padding: 0;
}
.comment-list .comment {
	display: flex;
	gap: 1.25rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--border-color);
}
.comment-list .children {
	list-style: none;
	margin: 0;
	padding-left: 4.5rem;
}
.comment-list .avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	flex-shrink: 0;
}
.comment-author .fn {
	font-weight: 800;
	font-style: normal;
	font-size: 0.9375rem;
}
.comment-metadata {
	display: inline-block;
	color: var(--text-color-muted);
	font-size: 0.8125rem;
	margin-left: 0.75rem;
}
.comment-metadata a {
	color: inherit;
	text-decoration: none;
}
.comment-content p {
	color: var(--text-color-muted);
	font-size: 0.9375rem;
	line-height: 1.75;
	margin: 0.5rem 0 0;
}
.comment-list .reply a {
	color: var(--heading-color);
	font-weight: 700;
	font-size: 0.75rem;
	text-decoration: none;
}
.comment-list .reply a:hover {
	color: var(--color-accent-red);
}

.comment-respond {
	background: var(--color-light-bg);
	padding: 1.875rem;
}
.comment-reply-title {
	font-weight: 800;
	font-size: 1.375rem;
	letter-spacing: -0.3px;
	margin: 0 0 0.5rem;
}
.comment-notes {
	color: var(--text-color-muted);
	font-size: 0.875rem;
	margin: 0 0 1.25rem;
}
#commentform {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}
#commentform > p {
	flex: 1 1 100%;
	margin: 0;
}
#commentform > p.comment-form-author,
#commentform > p.comment-form-email {
	flex: 1 1 260px;
}
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
	width: 100%;
	border: 1px solid var(--border-color);
	padding: 0.85rem 1.0625rem;
	font-size: 0.875rem;
}
#commentform textarea {
	min-height: 150px;
	resize: vertical;
}
#commentform .form-submit {
	margin: 0;
}
#commentform #submit {
	background: var(--color-accent-red);
	color: #fff;
	font-weight: 700;
	font-size: 0.8125rem;
	border: 0;
	padding: 0.9rem 1.75rem;
}
#commentform #submit:hover {
	background: var(--color-nav-bg);
}

/* ============================ SIDEBAR ============================ */
.sidebar__widget {
	border: 1px solid var(--border-color);
	padding: 1.6rem;
	margin-bottom: 1.5rem;
	position: relative;
}
.sidebar__title {
	font-weight: 800;
	font-size: 1rem;
	letter-spacing: -0.3px;
	padding-bottom: 0.9rem;
	margin-bottom: 1.25rem;
	border-bottom: 1px solid var(--border-color);
	position: relative;
}
.sidebar__title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 52px;
	height: 2px;
	background: var(--color-accent-red);
}

.sidebar__search {
	display: flex;
	border: 1px solid var(--border-color);
	border-radius: var(--radius-btn);
	overflow: hidden;
}
.sidebar__search-input {
	border: 0;
	flex: 1 0 0;
	padding: 0.75rem 1rem;
	font-size: 0.8125rem;
	min-width: 0;
}
.sidebar__search-submit {
	background: var(--color-nav-bg);
	border: 0;
	color: #fff;
	width: 46px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.sidebar__search-submit:hover {
	background: var(--color-accent-red);
}
.sidebar__search-submit svg {
	width: 15px;
	height: 15px;
}

.sidebar__cats {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.sidebar__cats-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	background: var(--color-light-bg);
	color: var(--heading-color);
	font-weight: 600;
	font-size: 0.875rem;
	padding: 0.75rem 0.875rem;
	text-decoration: none;
}
.sidebar__cats-link:hover {
	color: var(--color-accent-red);
}
.sidebar__cats-count {
	font-size: 0.6875rem;
	opacity: 0.8;
}
.sidebar__cats-link--active,
.sidebar__cats-link--active:hover {
	background: var(--color-accent-red);
	color: #fff;
}

.sidebar__recent {
	display: flex;
	flex-direction: column;
}
.sidebar__recent-item {
	display: flex;
	gap: 0.875rem;
	padding: 0.875rem 0;
	border-bottom: 1px solid var(--border-color);
}
.sidebar__recent-item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}
.sidebar__recent-media {
	flex-shrink: 0;
	display: block;
	width: 78px;
	height: 66px;
}
.sidebar__recent-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.sidebar__recent-body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}
.sidebar__recent-date {
	color: var(--color-accent-red);
	font-weight: 700;
	font-style: italic;
	font-size: 0.6875rem;
}
.sidebar__recent-title {
	color: var(--heading-color);
	font-weight: 700;
	font-size: 0.875rem;
	line-height: 1.35;
	text-decoration: none;
}
.sidebar__recent-title:hover {
	color: var(--color-accent-red);
}

.sidebar__promo {
	position: relative;
	overflow: hidden;
	padding: 2.25rem 1.75rem;
	text-align: center;
	background: var(--color-nav-bg);
}
.sidebar__promo-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.sidebar__promo-overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 10, 10, 0.84);
}
.sidebar__promo-content {
	position: relative;
}
.sidebar__promo-heading {
	color: #fff;
	font-weight: 800;
	font-size: 1.1875rem;
	letter-spacing: -0.3px;
	margin-bottom: 0.5rem;
}
.sidebar__promo-text {
	color: var(--color-muted);
	font-size: 0.8125rem;
	margin-bottom: 0.5rem;
}
.sidebar__promo-phone {
	display: block;
	color: var(--color-accent-red);
	font-weight: 800;
	font-style: italic;
	font-size: 1.375rem;
	margin-bottom: 0.75rem;
	text-decoration: none;
}
.sidebar__promo-cta {
	display: block;
	background: var(--color-accent-red);
	color: #fff;
	font-weight: 700;
	font-size: 0.8125rem;
	padding: 0.8rem 1.5rem;
}
.sidebar__promo-cta:hover {
	background: var(--color-nav-bg);
	color: #fff;
}

.sidebar__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.sidebar__tag {
	border: 1px solid var(--border-color);
	color: var(--text-color-muted);
	font-weight: 700;
	font-size: 0.75rem;
	padding: 0.5rem 0.8125rem;
	text-decoration: none;
}
.sidebar__tag:hover {
	border-color: var(--color-accent-red);
	color: var(--color-accent-red);
}

/* ============================ RELATED ============================ */
.related-posts {
	background: var(--color-light-bg);
	padding-block: clamp(3rem, 6vw, 5rem);
}
.related-posts__grid {
	margin-top: 1.5rem;
}

/* ============================ RESPONSIVE ============================ */

/* --- md: 768–991 --- */
@media (max-width: 991.98px) {
	.sidebar {
		margin-bottom: 2.5rem;
	}
}

/* --- sm: 576–767 --- */
@media (max-width: 767.98px) {
	.entry-content .figs {
		grid-template-columns: 1fr;
	}
	.entry__tags-share {
		flex-direction: column;
		align-items: flex-start;
	}
	.entry__author {
		flex-direction: column;
	}
	.entry__nav-next {
		text-align: left;
	}
	.entry-content table {
		display: block;
		overflow-x: auto;
	}
}

/* --- xs: 0–575 --- */
@media (max-width: 575.98px) {
	.entry-content .quote,
	.entry-content .callout {
		padding: 1.5rem 1.25rem;
	}
	.entry__author {
		padding: 1.25rem;
	}
	.sidebar__widget {
		padding: 1.25rem;
	}
	.sidebar__promo {
		padding: 1.75rem 1.25rem;
	}
	.comment-respond {
		padding: 1.25rem;
	}
	.comment-list .children {
		padding-left: 1.75rem;
	}
}
