/* ============================================
   Sticky Related Post Widget
   ============================================ */

.fca-sticky-related {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	width: 300px;
	background: var(--wp--preset--color--base);
	border-radius: var(--fca-radius-lg);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
	padding: 1rem;
	z-index: 1000;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.fca-sticky-related.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.fca-sticky-related.is-dismissed {
	display: none;
}

[data-theme="dark"] .fca-sticky-related {
	background: #1a1a1a;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.fca-sticky-related-close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 28px;
	height: 28px;
	border: none;
	background: var(--wp--preset--color--base-2);
	border-radius: var(--fca-radius-circle);
	font-size: 1.25rem;
	line-height: 1;
	color: var(--wp--preset--color--contrast-2);
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fca-sticky-related-close:hover {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}

.fca-sticky-related-label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--contrast-2);
	margin-bottom: 0.75rem;
}

.fca-sticky-related-link {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	text-decoration: none;
	color: inherit;
}

.fca-sticky-related-thumb {
	flex-shrink: 0;
	width: 70px;
	height: 70px;
	border-radius: var(--fca-radius-md);
	overflow: hidden;
}

.fca-sticky-related-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fca-sticky-related-title {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--wp--preset--color--contrast);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s ease;
}

.fca-sticky-related-link:hover .fca-sticky-related-title {
	color: var(--wp--preset--color--accent-2);
}

/* Hide on mobile */
@media (max-width: 768px) {
	.fca-sticky-related {
		display: none;
	}
}

/* ============================================
   Breadcrumbs Navigation
   ============================================ */

.fca-breadcrumbs {
	margin-bottom: var(--wp--preset--spacing--30);
}

.fca-breadcrumb-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--wp--preset--font-size--small);
}

.fca-breadcrumb-item {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.fca-breadcrumb-item a {
	color: var(--wp--preset--color--contrast-2);
	text-decoration: none;
	transition: color 0.2s ease;
}

.fca-breadcrumb-item a:hover {
	color: var(--wp--preset--color--contrast);
	text-decoration: underline;
}

.fca-breadcrumb-separator {
	color: var(--wp--preset--color--contrast-3);
	margin: 0 0.25rem;
}

.fca-breadcrumb-current {
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 300px;
}

@media (max-width: 640px) {
	.fca-breadcrumb-current {
		max-width: 180px;
	}
}

/* ============================================
   Single Post - Sidebar Layout
   ============================================ */

/* Two-column layout for single posts */
.fca-single-layout {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: var(--wp--preset--spacing--50);
	align-items: start;
}

@media (max-width: 1024px) {
	.fca-single-layout {
		grid-template-columns: 1fr;
	}
}

/* Main content area */
.fca-single-content {
	min-width: 0;
}

/* Sticky sidebar - adjusted for sticky header */
.fca-sidebar-sticky {
	position: sticky;
	top: calc(var(--fca-header-height) + var(--wp--preset--spacing--40));
}

/* Tablet: narrower sidebar with TOC visible */
@media (min-width: 768px) and (max-width: 1024px) {
	.fca-single-sidebar {
		flex-basis: 25% !important;
	}
}

/* Mobile: hide sidebar completely */
@media (max-width: 767px) {
	.fca-single-sidebar {
		display: none;
	}
}

/* Category pill container in sidebar - no background on container */
.fca-category-pill {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: var(--wp--preset--spacing--30);
}

/* Jump to / Table of Contents */
.fca-jump-to {
	margin-top: var(--wp--preset--spacing--30);
}

.fca-jump-to-title {
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	color: var(--wp--preset--color--contrast-2);
	margin-bottom: var(--wp--preset--spacing--20);
}

.fca-toc-list {
	list-style: none;
	padding: 0;
	margin: 0;
	border-left: 2px solid var(--wp--preset--color--contrast-3);
}

.fca-toc-list li {
	padding: 0.5rem 0 0.5rem 1rem;
	margin: 0;
}

.fca-toc-list a {
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	display: block;
	transition: color 0.2s ease;
}

.fca-toc-list a:hover {
	color: var(--wp--preset--color--contrast-2);
}

.fca-toc-list li.active {
	border-left: 2px solid var(--wp--preset--color--contrast);
	margin-left: -2px;
}

.fca-toc-list li.active a {
	font-weight: 500;
}

/* TOC Collapsible hierarchy */
.fca-toc-list > .fca-toc-h2 {
	position: relative;
}

.fca-toc-has-children {
	padding-left: 1.25rem;
}

.fca-toc-has-children > a {
	display: inline;
}

.fca-toc-toggle {
	position: absolute;
	left: 0;
	top: 1rem;
	width: 1rem;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.5;
	color: var(--wp--preset--color--contrast-2);
	text-align: center;
}

.fca-toc-sublist {
	list-style: none;
	padding: 0;
	margin: 0.25rem 0 0 0;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.fca-toc-expanded > .fca-toc-sublist {
	max-height: 1000px;
}

.fca-toc-sublist .fca-toc-h3 {
	padding: 0.25rem 0 0.25rem 0.75rem;
	border-left: 1px solid var(--wp--preset--color--contrast-3);
	margin-left: 0.25rem;
}

.fca-toc-sublist .fca-toc-h3 a {
	color: var(--wp--preset--color--contrast-2);
}

.fca-toc-sublist .fca-toc-h3.active a {
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
}

/* ============================================
   Back to Blog Link
   ============================================ */

.fca-back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	margin-bottom: var(--wp--preset--spacing--40);
	transition: color 0.2s ease;
}

.fca-back-link:hover {
	color: var(--wp--preset--color--contrast-2);
}

.fca-back-link::before {
	content: "←";
	font-size: 1rem;
}

/* ============================================
   Code Blocks - Dark Syntax Highlighting
   ============================================ */

/* Pre and code blocks */
.wp-block-code,
pre.wp-block-code,
pre[class*="language-"],
.wp-block-preformatted {
	background: #1e1e2e;
	color: #cdd6f4;
	border-radius: var(--fca-radius-lg);
	padding: 1.5rem;
	overflow-x: auto;
	font-family: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;
	font-size: 0.875rem;
	line-height: 1.7;
	border: 1px solid #313244;
}

.wp-block-code code {
	background: transparent;
	color: inherit;
	padding: 0;
	font-size: inherit;
	font-family: inherit;
}

/* Inline code (exclude code inside pre blocks) */
:not(pre) > code,
p code:not([class*="language-"]),
li code:not([class*="language-"]),
td code:not([class*="language-"]) {
	background: var(--wp--preset--color--base-2);
	color: var(--wp--preset--color--contrast);
	padding: 0.2em 0.4em;
	border-radius: var(--fca-radius-sm);
	font-family: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, monospace;
	font-size: 0.875em;
	border: 1px solid var(--wp--preset--color--contrast-3);
}

/* Reset code styles inside pre blocks */
pre code,
pre[class*="language-"] code {
	background: transparent;
	color: inherit;
	padding: 0;
	border-radius: 0;
	font-size: inherit;
	border: none;
}

/* Syntax highlighting colors (Catppuccin Mocha inspired) */
.wp-block-code .token.comment,
.wp-block-code .token.prolog,
.wp-block-code .token.doctype,
.wp-block-code .token.cdata,
pre[class*="language-"] .token.comment,
pre[class*="language-"] .token.prolog,
pre[class*="language-"] .token.doctype,
pre[class*="language-"] .token.cdata {
	color: #6c7086;
}

.wp-block-code .token.punctuation,
pre[class*="language-"] .token.punctuation {
	color: #9399b2;
}

.wp-block-code .token.property,
.wp-block-code .token.tag,
.wp-block-code .token.boolean,
.wp-block-code .token.number,
.wp-block-code .token.constant,
.wp-block-code .token.symbol,
pre[class*="language-"] .token.property,
pre[class*="language-"] .token.tag,
pre[class*="language-"] .token.boolean,
pre[class*="language-"] .token.number,
pre[class*="language-"] .token.constant,
pre[class*="language-"] .token.symbol {
	color: #fab387;
}

.wp-block-code .token.selector,
.wp-block-code .token.attr-name,
.wp-block-code .token.string,
.wp-block-code .token.char,
.wp-block-code .token.builtin,
pre[class*="language-"] .token.selector,
pre[class*="language-"] .token.attr-name,
pre[class*="language-"] .token.string,
pre[class*="language-"] .token.char,
pre[class*="language-"] .token.builtin {
	color: #a6e3a1;
}

.wp-block-code .token.operator,
.wp-block-code .token.entity,
.wp-block-code .token.url,
.wp-block-code .token.variable,
pre[class*="language-"] .token.operator,
pre[class*="language-"] .token.entity,
pre[class*="language-"] .token.url,
pre[class*="language-"] .token.variable {
	color: #94e2d5;
}

.wp-block-code .token.atrule,
.wp-block-code .token.attr-value,
.wp-block-code .token.function,
.wp-block-code .token.class-name,
pre[class*="language-"] .token.atrule,
pre[class*="language-"] .token.attr-value,
pre[class*="language-"] .token.function,
pre[class*="language-"] .token.class-name {
	color: #89b4fa;
}

.wp-block-code .token.keyword,
pre[class*="language-"] .token.keyword {
	color: #cba6f7;
}

.wp-block-code .token.regex,
.wp-block-code .token.important,
pre[class*="language-"] .token.regex,
pre[class*="language-"] .token.important {
	color: #f9e2af;
}

/* Code block with filename header */
.fca-code-block {
	margin: var(--wp--preset--spacing--30) 0;
}

.fca-code-header {
	background: #181825;
	border: 1px solid #313244;
	border-bottom: none;
	border-radius: var(--fca-radius-lg) var(--fca-radius-lg) 0 0;
	padding: 0.75rem 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.fca-code-filename {
	color: #a6adc8;
	font-size: 0.8125rem;
	font-family: "JetBrains Mono", "Fira Code", monospace;
}

.fca-code-header + .wp-block-code,
.fca-code-header + pre {
	border-radius: 0 0 var(--fca-radius-lg) var(--fca-radius-lg);
	margin-top: 0;
}

/* Copy button for code blocks */
.fca-copy-button {
	background: transparent;
	border: none;
	color: #6c7086;
	cursor: pointer;
	padding: 0.25rem;
	font-size: 0.75rem;
	transition: color 0.2s ease;
}

.fca-copy-button:hover {
	color: #cdd6f4;
}

/* ============================================
   Author Section
   ============================================ */

.fca-author-section {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--wp--preset--spacing--40) 0;
	border-top: 1px solid var(--wp--preset--color--contrast-3);
	margin-top: var(--wp--preset--spacing--50);
}

.fca-author-info {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
}

.fca-author-avatar {
	width: 40px;
	height: 40px;
	border-radius: var(--fca-radius-circle);
	object-fit: cover;
}

.fca-author-avatar img {
	width: 100%;
	height: 100%;
	border-radius: var(--fca-radius-circle);
	object-fit: cover;
}

.fca-author-name {
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
	margin: 0;
}

/* Copy link button */
.fca-copy-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background: transparent;
	border: none;
	color: var(--wp--preset--color--contrast);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	cursor: pointer;
	padding: 0.5rem 1rem;
	border-radius: var(--fca-radius-md);
	transition: all 0.2s ease;
}

.fca-copy-link:hover {
	background: var(--wp--preset--color--base-2);
}

.fca-copy-link svg {
	width: 16px;
	height: 16px;
}

/* Copy link compact version (for post header) */
.fca-copy-link--compact {
	padding: 0.25rem;
	border-radius: var(--fca-radius-xs);
	color: var(--wp--preset--color--contrast-2);
}

.fca-copy-link--compact:hover {
	color: var(--wp--preset--color--contrast);
	background: var(--wp--preset--color--base-2);
}

.fca-copy-link--compact svg {
	width: 14px;
	height: 14px;
}

/* ============================================
   Post Content Typography
   ============================================ */

/* Headings in post content with anchor links */
.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4 {
	scroll-margin-top: calc(var(--fca-header-height, 85px) + 1rem);
}

.wp-block-post-content h2 {
	font-size: clamp(1.5rem, 5vw, 2.5rem);
	font-weight: 700;
	margin-top: var(--wp--preset--spacing--70);
	margin-bottom: var(--wp--preset--spacing--30);
}

.wp-block-post-content h3 {
	font-size: clamp(1.25rem, 4vw, 1.9rem);
	font-weight: 600;
	margin-top: var(--wp--preset--spacing--60);
	margin-bottom: var(--wp--preset--spacing--20);
}

/* Paragraphs */
.wp-block-post-content p {
	margin-bottom: var(--wp--preset--spacing--30);
}

/* Lists */
.wp-block-post-content ul,
.wp-block-post-content ol {
	margin-bottom: var(--wp--preset--spacing--30);
	padding-left: 1.5rem;
}

.wp-block-post-content li {
	margin-bottom: 0.5rem;
}

/* Blockquotes */
.wp-block-post-content blockquote,
.wp-block-quote {
	border-left: 3px solid var(--wp--preset--color--contrast);
	padding-left: var(--wp--preset--spacing--30);
	margin: var(--wp--preset--spacing--40) 0;
	font-style: italic;
	color: var(--wp--preset--color--contrast-2);
}

/* Images in content */
.wp-block-post-content img {
	max-width: 100%;
	height: auto;
}

.wp-block-post-content .wp-block-image {
	margin: var(--wp--preset--spacing--40) 0;
	max-width: 100%;
	overflow: hidden;
}

.wp-block-post-content .wp-block-image img {
	border-radius: var(--fca-radius-lg);
}

.wp-block-post-content .wp-block-image figcaption {
	text-align: center;
	margin-top: var(--wp--preset--spacing--20);
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
}

/* ============================================
   Single Post Hero (Stacked Layout)
   ============================================ */

.fca-post-hero {
	background-color: var(--wp--preset--color--base);
}

[data-theme="dark"] .fca-post-hero {
	background-color: #0a0a0a;
}

/* Stacked hero text section */
.fca-post-hero-stacked .fca-post-hero-text {
	max-width: 900px;
}

.fca-post-hero-stacked .fca-category-pill {
	margin-bottom: 0;
}

.fca-post-hero-stacked .fca-post-title {
	margin-bottom: var(--wp--preset--spacing--20);
}

.fca-post-hero-stacked .fca-post-excerpt {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--contrast-2);
	line-height: 1.6;
	margin-bottom: 0;
	max-width: 800px;
}

/* Featured image in stacked layout */
.fca-post-hero-featured {
	margin: 0;
	width: 100%;
}

.fca-post-hero-featured img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* Back link styling */
.fca-post-hero .fca-back-link {
	margin-bottom: 0;
	font-size: var(--wp--preset--font-size--small);
}

.fca-post-hero .fca-back-link a {
	color: var(--wp--preset--color--contrast-2);
	text-decoration: none;
	transition: color 0.2s ease;
}

.fca-post-hero .fca-back-link a:hover {
	color: var(--wp--preset--color--contrast);
}

.fca-post-hero-meta {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: var(--wp--preset--spacing--20);
}

.fca-post-hero-meta .wp-block-avatar {
	flex-shrink: 0;
}

.fca-post-hero-meta .wp-block-avatar img {
	border-radius: var(--fca-radius-circle);
}

/* Hero Meta Wrapper - author + divider + date */
.fca-hero-meta-wrapper {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--30);
	flex-shrink: 0;
}

/* Author block - name on top, bio below */
.fca-hero-meta-author-block {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	width: 300px;
}

.fca-hero-meta-author {
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
	line-height: 1.3;
}

.fca-hero-meta-bio,
.fca-author-bio {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
	line-height: 1.4;
	margin: 0;
	word-wrap: break-word;
	overflow-wrap: break-word;
}

/* Vertical divider */
.fca-hero-meta-divider {
	display: block;
	width: 1px;
	height: 2.5rem;
	background-color: var(--wp--preset--color--contrast-3);
	flex-shrink: 0;
}

/* Date and reading time block */
.fca-hero-meta-date-block {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.125rem;
	text-align: left;
}

.fca-hero-meta-date {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
}

.fca-hero-meta-date .fca-icon-calendar {
	color: var(--wp--preset--color--contrast-2);
	flex-shrink: 0;
}

.fca-hero-meta-reading {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
}

.fca-hero-meta-reading .fca-icon-clock {
	color: var(--wp--preset--color--contrast-2);
	flex-shrink: 0;
}

/* Reading time standalone */
.fca-reading-time {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
}

/* No featured image - hide featured image block */
.fca-post-hero-no-image .fca-post-hero-featured {
	display: none;
}

@media (max-width: 781px) {
	.fca-post-hero-stacked .fca-post-hero-meta {
		flex-wrap: wrap;
		gap: var(--wp--preset--spacing--30);
	}

	.fca-post-hero-stacked .fca-back-link {
		width: 100%;
		order: -1;
	}

	.fca-hero-meta-author-block {
		width: 200px;
	}
}

@media (max-width: 480px) {
	.fca-hero-meta-wrapper {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--wp--preset--spacing--20);
		flex-shrink: 1;
		min-width: 0;
	}

	.fca-hero-meta-divider {
		display: none;
	}

	.fca-hero-meta-author-block,
	.fca-hero-meta-date-block {
		width: 100%;
		min-width: 0;
	}
}

/* ============================================
   Single Post Header
   ============================================ */

.fca-post-header {
	margin-bottom: var(--wp--preset--spacing--50);
}

.fca-post-meta {
	display: flex;
	align-items: center;
	gap: var(--wp--preset--spacing--20);
	margin-bottom: var(--wp--preset--spacing--20);
}

.fca-post-date {
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
}

.fca-post-title {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	margin-bottom: var(--wp--preset--spacing--30);
}

.fca-post-excerpt {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--contrast-2);
	line-height: 1.6;
	max-width: 720px;
}

.fca-post-featured-image {
	margin-top: var(--wp--preset--spacing--40);
	border-radius: var(--fca-radius-lg);
	overflow: hidden;
}

.fca-post-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

/* ============================================
   Sidebar Category Pill Override (Dark Style)
   ============================================ */

.fca-single-sidebar .wp-block-post-terms,
.fca-single-sidebar .fca-category-pill {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.fca-single-sidebar .wp-block-post-terms a,
.wp-block-post-terms.fca-category-pill a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 1rem;
	background: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--base) !important;
	border-radius: var(--fca-radius-pill);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
	text-decoration: none;
	transition: all 0.2s ease;
}

.fca-single-sidebar .wp-block-post-terms a:hover,
.wp-block-post-terms.fca-category-pill a:hover {
	background: var(--wp--preset--color--contrast-2) !important;
	color: var(--wp--preset--color--base) !important;
}

/* ============================================
   Responsive Single Post Layout
   ============================================ */

/* Tablet TOC: smaller text for narrower sidebar */
@media (min-width: 768px) and (max-width: 1024px) {
	.fca-jump-to-title {
		font-size: 0.75rem;
	}

	.fca-toc-list a {
		font-size: 0.8125rem;
		padding: 0.375rem 0;
	}

	.fca-toc-h3 {
		padding-left: 0.75rem;
	}

	.fca-toc-sublist {
		padding-left: 0.5rem;
	}
}

/* Mobile: hide sidebar and TOC */
@media (max-width: 767px) {
	.fca-sidebar-sticky {
		display: none;
	}

	.fca-jump-to {
		display: none;
	}
}

@media (max-width: 768px) {
	.fca-post-title {
		font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
	}

	.fca-post-excerpt {
		font-size: var(--wp--preset--font-size--medium) !important;
	}

	.fca-author-section {
		flex-direction: column;
		align-items: flex-start;
		gap: var(--wp--preset--spacing--20);
	}

	.wp-block-query .wp-block-post-template {
		grid-template-columns: 1fr !important;
	}
}

/* ============================================
   Code Block Enhancements
   ============================================ */

/* Scrollbar styling for code blocks */
.wp-block-code::-webkit-scrollbar {
	height: 8px;
}

.wp-block-code::-webkit-scrollbar-track {
	background: #181825;
	border-radius: var(--fca-radius-xs);
}

.wp-block-code::-webkit-scrollbar-thumb {
	background: #313244;
	border-radius: var(--fca-radius-xs);
}

.wp-block-code::-webkit-scrollbar-thumb:hover {
	background: #45475a;
}

/* Line numbers simulation for code */
.wp-block-code.has-line-numbers {
	counter-reset: line;
}

.wp-block-code.has-line-numbers code {
	display: block;
}

.wp-block-code.has-line-numbers code::before {
	counter-increment: line;
	content: counter(line);
	display: inline-block;
	width: 2em;
	margin-right: 1em;
	text-align: right;
	color: #6c7086;
	user-select: none;
}


