/**
 * Blog single post — Figma layout (dark hero + content sidebar).
 */

/* ── Page resets (override global .container text-align) ─────────────── */

.cc-blog-single-page .site-main.cc-blog-main {
	padding: 0;
	margin: 0;
	text-align: left;
}

.cc-blog-single-page .cc-blog-single,
.cc-blog-single-page .cc-blog-single-hero__inner,
.cc-blog-single-page .cc-blog-single-body__inner,
.cc-blog-single-page .cc-blog-single-hero__content,
.cc-blog-single-page .cc-blog-single-body__main,
.cc-blog-single-page .cc-blog-single-sidebar {
	text-align: left;
	margin: 0px auto;;
}

.cc-blog-main {
	padding: 0;
}

.cc-blog-single {
	margin: 0;
}

/* ── Hero ─────────────────────────────────────────────────────────────── */

.cc-blog-single-hero {
	background-color: #0a0a0a;
	background-repeat: repeat;
	background-position: center top;
	background-size: auto;
	padding: 153px 24px 80px;
	color: #fff;
}

.cc-blog-single-hero__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	gap: 56px;
	align-items: stretch;
}

.cc-blog-single-hero__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-height: 100%;
}

.cc-blog-single-hero__title {
	margin: 0 0 16px;
	padding: 0;
	font-family: 'Owners', sans-serif;
	font-weight: 700;
	font-size: 36px;
	line-height: 129%;
	letter-spacing: 0.5px;
	leading-trim: both;
	text-edge: cap;
	text-box-trim: trim-both;
	text-box-edge: cap alphabetic;
	color: #fff;
}

.cc-blog-single-hero__excerpt {
	margin: 0 0 28px;
	padding: 0;
	font-family: 'Inter', sans-serif;
	font-weight: 400;
	font-style: normal;
	font-size: 18px;
	line-height: 26px;
	letter-spacing: 0.005em;
	color: rgba(255, 255, 255, 0.72);
	max-width: 520px;
}

.cc-blog-single-hero__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	max-width: 520px;
	margin-bottom: 0;
	flex-wrap: wrap;
}

.cc-blog-single-hero__meta-end {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-left: auto;
	flex-shrink: 0;
}

.cc-blog-single-hero__category {
	display: inline-block;
	flex-shrink: 0;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	color: #fff;
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.22);
	white-space: nowrap;
}

.cc-blog-single-hero__category:hover,
.cc-blog-single-hero__category:focus,
.cc-blog-single-hero__category:visited {
	color: #fff;
	text-decoration: none;
}

.cc-blog-single-hero__date,
.cc-blog-single-hero__read-time {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.65);
	white-space: nowrap;
}

.cc-blog-single-hero__share {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: 48px;
	width: 100%;
	max-width: 520px;
}

.cc-blog-single-hero__share-label {
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
}

.cc-blog-single-hero__share-links {
	display: flex;
	align-items: center;
	gap: 8px;
}

.cc-blog-single-hero__share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 4px;
	background: #111;
	color: #fff;
	text-decoration: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.cc-blog-single-hero__share-btn:hover,
.cc-blog-single-hero__share-btn:focus,
.cc-blog-single-hero__share-btn:visited {
	color: #fff;
	text-decoration: none;
	opacity: 0.85;
	transform: translateY(-1px);
}

.cc-blog-single-hero__media {
	margin: 0;
	align-self: center;
	border-radius: 16px;
	overflow: hidden;
}

.cc-blog-single-hero__image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* ── Body + sidebar ───────────────────────────────────────────────────── */

.cc-blog-single-body {
	background: #fff;
	padding: 64px 24px 88px;
}

.cc-blog-single-body__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 56px;
	align-items: start;
}

.cc-blog-single-body__main {
	min-width: 0;
}

.cc-blog-prose {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: 0.005em;
	color: #666;
}

.cc-blog-prose > *:first-child {
	margin-top: 0;
}

.cc-blog-prose p {
	margin: 0 0 20px;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	color: inherit;
}

.cc-blog-prose h1,
.cc-blog-prose h2,
.cc-blog-prose h3,
.cc-blog-prose h4 {
	font-family: 'Owners', sans-serif;
	font-weight: 700;
	color: #111;
	margin: 0 0 20px;
	padding: 0;
}

.cc-blog-prose h1 {
	font-size: 32px;
	line-height: 129%;
	letter-spacing: 0.5px;
	margin-bottom: 24px;
}

.cc-blog-prose header h1 {
	margin-top: 0;
}

.cc-blog-prose h2 {
	position: relative;
	font-size: 28px;
	line-height: 129%;
	letter-spacing: 0px;
	padding-left: 20px;
	margin-top: 0;
	margin-bottom: 24px;
	border-left: none;
}

.cc-blog-prose h2::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.15em;
	bottom: 0.15em;
	width: 3px;
	background: #d32323;
}

.cc-blog-prose h3 {
	font-size: 22px;
	line-height: 129%;
	letter-spacing: 0px;
	margin-top: 32px;
}

.cc-blog-prose .faq-blog,
.cc-blog-prose .silicon-accordion {
	display: none !important;
}


.cc-blog-prose img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 32px auto;
	border-radius: 12px;
}

.cc-blog-prose a {
	color: #d32323;
	text-decoration: underline;
}

.cc-blog-prose .cc-blog-single-cta__btn.btn,
.cc-blog-prose .cc-blog-single-cta__btn.btn:visited {
	color: #111;
	text-decoration: none;
}

.cc-blog-prose .cc-blog-single-cta__btn.btn:hover,
.cc-blog-prose .cc-blog-single-cta__btn.btn:focus-visible {
	color: #fff;
	text-decoration: none;
}

.cc-blog-prose .cc-blog-inline-cta {
	margin: 36px 0;
}

.cc-blog-prose ul,
.cc-blog-prose ol {
	margin: 0 0 20px;
	padding-left: 1.5rem;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.cc-blog-prose li {
	margin-bottom: 8px;
}

.cc-blog-prose li:last-child {
	margin-bottom: 0;
}

/* ── Table of Contents ─────────────────────────────────────────────────── */

.cc-blog-toc {
	margin: 0 0 32px;
	padding: 24px 28px;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	background: #fafafa;
	text-align: left;
	width: 100%;
	box-sizing: border-box;
}

.cc-blog-toc__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
}

.cc-blog-toc__title {
	margin: 0;
	padding: 0;
	font-family: 'Owners', sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 129%;
	letter-spacing: 1px;
	color: #111;
	text-transform: none;
}

.cc-blog-toc__toggle {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: none;
	background: transparent;
	padding: 0;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: #d32323;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cc-blog-toc__toggle-label {
	text-decoration: inherit;
}

.cc-blog-toc__toggle-icon {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-right: 2px solid #d32323;
	border-bottom: 2px solid #d32323;
	transform: rotate(45deg);
	margin-top: -3px;
	transition: transform 0.2s ease, margin-top 0.2s ease;
	flex-shrink: 0;
}

.cc-blog-toc__toggle[aria-expanded="false"] .cc-blog-toc__toggle-icon {
	transform: rotate(-135deg);
	margin-top: 3px;
}

.cc-blog-toc__toggle:hover,
.cc-blog-toc__toggle:focus-visible {
	color: #111;
	outline: none;
}

.cc-blog-toc__toggle:hover .cc-blog-toc__toggle-icon,
.cc-blog-toc__toggle:focus-visible .cc-blog-toc__toggle-icon {
	border-color: #111;
}

/* Hide any legacy TOC markup that still slips through in post body */
.cc-blog-prose .wp-block-rank-math-toc-block,
.cc-blog-prose .wp-block-yoast-seo-table-of-contents,
.cc-blog-prose .yoast-table-of-contents,
.cc-blog-prose #ez-toc-container,
.cc-blog-prose .ez-toc-container,
.cc-blog-prose .ez-toc-title-container,
.cc-blog-prose .ez-toc-list,
.cc-blog-prose nav .ez-toc-list,
.cc-blog-prose .ez-toc-section,
.cc-blog-prose .ez-toc-section-end {
	display: none !important;
}

.cc-blog-toc__panel[hidden] {
	display: none;
}

.cc-blog-toc__list,
.cc-blog-toc__sublist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cc-blog-toc__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cc-blog-toc__item--h2 {
	position: relative;
	padding-left: 16px;
}

.cc-blog-toc__item--h2::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.65em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #111;
	transform: translateY(-50%);
}

.cc-blog-toc__sublist {
	margin: 10px 0 0 8px;
	padding-left: 18px;
	list-style: decimal;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cc-blog-toc__sublist li {
	list-style: decimal;
	margin: 0;
	padding: 0;
}

.cc-blog-toc__item--h3 {
	padding-left: 0;
}

.cc-blog-toc__item--h3::marker {
	color: #666;
}

.cc-blog-toc__link {
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	color: #444;
	text-decoration: none;
	transition: color 0.2s ease;
}

.cc-blog-toc__link:hover,
.cc-blog-toc__link:focus-visible {
	color: #d32323;
	text-decoration: none;
}

.cc-blog-toc__link:visited {
	color: #444;
}

.cc-blog-toc__link:visited:hover,
.cc-blog-toc__link:visited:focus-visible {
	color: #d32323;
}

.cc-blog-prose h1,
.cc-blog-prose h2,
.cc-blog-prose h3 {
	scroll-margin-top: 100px;
}

/* ── Sidebar ──────────────────────────────────────────────────────────── */

.cc-blog-single-sidebar {
	position: sticky;
	top: 32px;
}

.cc-blog-single-sidebar__block + .cc-blog-single-sidebar__block {
	margin-top: 32px;
	padding-top: 32px;
	border-top: 1px solid #e8e8e8;
}

.cc-blog-single-sidebar__title {
	margin: 0 0 24px;
	font-family: 'Owners', sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 129%;
	letter-spacing: 1px;
	color: #111;
	text-transform: none;
}

.cc-blog-single-sidebar__categories,
.cc-blog-single-sidebar__tags {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cc-blog-single-sidebar__categories li {
	margin-bottom: 14px;
}

.cc-blog-single-sidebar__categories li:last-child {
	margin-bottom: 0;
}

.cc-blog-single-sidebar__category-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 24px;
	color: #111;
	text-decoration: none;
	transition: color 0.2s ease;
}

.cc-blog-single-sidebar__category-link:hover,
.cc-blog-single-sidebar__category-link:focus,
.cc-blog-single-sidebar__category-link:visited {
	color: #111;
	text-decoration: none;
}

.cc-blog-single-sidebar__category-link:hover .cc-blog-single-sidebar__category-name {
	color: #d32323;
}

.cc-blog-single-sidebar__category-name {
	flex: 1;
	min-width: 0;
}

.cc-blog-single-sidebar__count {
	flex-shrink: 0;
	color: #111;
}

.cc-blog-single-sidebar__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.cc-blog-single-sidebar__tags li {
	margin: 0;
	padding: 0;
}

.cc-blog-single-sidebar__tag {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.4;
	color: #111;
	text-decoration: none;
	padding: 6px 12px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	background: #fff;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cc-blog-single-sidebar__tag:hover,
.cc-blog-single-sidebar__tag:focus-visible {
	text-decoration: none;
	background: #d32323;
	border-color: #d32323;
	color: #fff;
}

.cc-blog-single-sidebar__tag:visited {
	text-decoration: none;
	color: #111;
}

.cc-blog-single-sidebar__tag:visited:hover,
.cc-blog-single-sidebar__tag:visited:focus-visible {
	color: #fff;
}

.cc-blog-single-sidebar__tag.is-active {
	background: #d32323;
	border-color: #d32323;
	color: #fff;
}

.cc-blog-single-sidebar__tag.is-active:hover,
.cc-blog-single-sidebar__tag.is-active:focus-visible,
.cc-blog-single-sidebar__tag.is-active:visited {
	color: #fff;
	background: #d32323;
	border-color: #d32323;
}

/* ── Inline CTA (below article) ───────────────────────────────────────── */

.cc-blog-single-cta {
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid #e8e8e8;
	text-align: left;
}

.cc-blog-single-cta__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.cc-blog-single-cta__text {
	margin: 0;
	flex: 1;
	min-width: 0;
	font-family: 'Inter', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: 0.005em;
	color: #555;
}

.cc-blog-single-cta__btn {
	flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
	.cc-blog-single-hero {
		padding: calc(var(--cc-header-offset, 105px) + 48px) 20px 64px;
	}

	.cc-blog-single-hero__inner {
		gap: 40px;
	}

	.cc-blog-single-hero__title {
		font-size: 32px;
	}

	.cc-blog-single-body {
		padding: 56px 20px 72px;
	}

	.cc-blog-single-body__inner {
		grid-template-columns: minmax(0, 1fr) 260px;
		gap: 40px;
	}
}

@media (max-width: 768px) {
	.cc-blog-single-hero {
		padding: 120px 20px 48px;
	}

	.cc-blog-single-hero__inner {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.cc-blog-single-hero__media {
		order: -1;
	}

	.cc-blog-single-hero__content {
		min-height: 0;
	}

	.cc-blog-single-hero__title {
		font-size: 28px;
		line-height: 129%;
	}

	.cc-blog-single-hero__excerpt {
		font-size: 16px;
		line-height: 24px;
		max-width: none;
		margin-bottom: 24px;
	}

	.cc-blog-single-hero__meta,
	.cc-blog-single-hero__share {
		max-width: none;
	}

	.cc-blog-single-hero__meta {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.cc-blog-single-hero__meta-end {
		margin-left: 0;
		gap: 16px;
	}

	.cc-blog-single-hero__share {
		padding-top: 32px;
	}

	.cc-blog-single-body {
		padding: 40px 20px 56px;
	}

	.cc-blog-single-body__inner {
		grid-template-columns: 1fr;
		gap: 40px;
	}

	.cc-blog-single-sidebar {
		position: static;
	}

	.cc-blog-prose h1 {
		font-size: 26px;
		line-height: 1.3;
	}

	.cc-blog-prose h2 {
		font-size: 24px;
	}

	.cc-blog-single-cta {
		margin-top: 28px;
		padding-top: 24px;
	}

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

	.cc-blog-single-page .cc-blog-single-cta__btn.btn {
		width: auto;
		max-width: none;
	}

	.cc-blog-toc {
		padding: 20px;
		margin-bottom: 28px;
	}

	.cc-blog-toc__title {
		font-size: 20px;
	}
}

/* =============================================================================
   Responsive content tables — wide tables scroll horizontally instead of
   overflowing the layout on small screens.
   ============================================================================= */
.cc-blog-prose .cc-table-responsive {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0 0 24px;
}

.cc-blog-prose .cc-table-responsive > table {
	width: 100%;
	min-width: 560px;
	margin: 0;
}

/* Fallback: any unwrapped table in prose still stays scrollable. */
.cc-blog-prose > table {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
