/* FirmaJet — single blog editorial layout */

@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700&display=swap");

.fj-blog-single {
	--fj-blog-ink: #0d1b2a;
	--fj-blog-paper: #f7f4ef;
	--fj-blog-card: #ffffff;
	--fj-blog-line: rgba(15, 76, 129, 0.12);
	--fj-blog-accent: var(--fj-color-accent, #e85d04);
	--fj-blog-primary: var(--fj-color-primary, #0f4c81);
	background:
		radial-gradient(1200px 480px at 10% -10%, rgba(15, 76, 129, 0.08), transparent 60%),
		radial-gradient(900px 420px at 100% 0%, rgba(232, 93, 4, 0.07), transparent 55%),
		linear-gradient(180deg, #fbfaf7 0%, #ffffff 42%, #f4f6f8 100%);
	padding-bottom: 4rem;
}

.fj-blog-hero {
	position: relative;
	isolation: isolate;
	color: #fff;
	padding: 2.25rem 0 3rem;
	margin-bottom: 2.5rem;
	overflow: hidden;
	background: linear-gradient(135deg, #0a3559 0%, #0f4c81 48%, #16324f 100%);
}

.fj-blog-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.fj-blog-hero__bg-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(0.85) contrast(1.05);
	transform: scale(1.04);
}

.fj-blog-hero__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(8, 24, 40, 0.55) 0%, rgba(8, 24, 40, 0.78) 100%),
		linear-gradient(90deg, rgba(10, 53, 89, 0.55), transparent 55%);
}

.fj-blog-hero__grain {
	position: absolute;
	inset: 0;
	opacity: 0.18;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	mix-blend-mode: overlay;
	pointer-events: none;
}

.fj-blog-hero__inner {
	position: relative;
	max-width: 760px;
}

.fj-blog-hero .fj-breadcrumbs,
.fj-blog-hero .fj-breadcrumbs a {
	color: rgba(255, 255, 255, 0.72);
}

.fj-blog-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.55rem;
	margin: 1.25rem 0 1rem;
	font-family: Manrope, var(--fj-font-sans);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.78);
}

.fj-blog-hero__cat {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.65rem;
	border-radius: 6px;
	background: var(--fj-blog-accent);
	color: #fff !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.7rem;
}

.fj-blog-hero__dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.45);
}

.fj-blog-hero__title {
	font-family: Fraunces, Georgia, serif;
	font-size: clamp(1.85rem, 4.5vw, 3.15rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.02em;
	margin: 0 0 1rem;
	max-width: 18ch;
	text-wrap: balance;
	animation: fjBlogIn 0.7s ease both;
}

.fj-blog-hero__deck {
	margin: 0 0 1.5rem;
	max-width: 42rem;
	font-family: Manrope, var(--fj-font-sans);
	font-size: 1.05rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.86);
	animation: fjBlogIn 0.7s ease 0.08s both;
}

.fj-blog-hero__byline {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	animation: fjBlogIn 0.7s ease 0.14s both;
}

.fj-blog-hero__avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.28);
	font-family: Fraunces, Georgia, serif;
	font-weight: 700;
}

.fj-blog-hero__byline strong {
	display: block;
	font-family: Manrope, var(--fj-font-sans);
	font-size: 0.92rem;
}

.fj-blog-hero__byline span {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.7);
}

.fj-blog-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 2.5rem;
	align-items: start;
}

.fj-blog-layout__main {
	min-width: 0;
}

.fj-blog-content {
	font-family: Manrope, var(--fj-font-sans);
	font-size: 1.05rem;
	line-height: 1.8;
	color: #243041;
	background: var(--fj-blog-card);
	border: 1px solid var(--fj-blog-line);
	border-radius: 8px;
	padding: clamp(1.25rem, 3vw, 2.25rem);
	box-shadow: 0 18px 40px rgba(13, 27, 42, 0.05);
}

.fj-blog-content > *:first-child {
	margin-top: 0;
}

.fj-blog-content h2,
.fj-blog-content h3 {
	font-family: Fraunces, Georgia, serif;
	color: var(--fj-blog-ink);
	letter-spacing: -0.015em;
	margin: 2rem 0 0.75rem;
	line-height: 1.25;
}

.fj-blog-content h2 {
	font-size: 1.55rem;
	padding-top: 0.35rem;
	border-top: 1px solid var(--fj-blog-line);
}

.fj-blog-content h2:first-child {
	border-top: 0;
	padding-top: 0;
}

.fj-blog-content h3 {
	font-size: 1.2rem;
}

.fj-blog-content p {
	margin: 0 0 1.15rem;
}

.fj-blog-content ul,
.fj-blog-content ol {
	margin: 0 0 1.25rem;
	padding-left: 1.2rem;
	list-style: disc;
}

.fj-blog-content ol {
	list-style: decimal;
}

.fj-blog-content li {
	margin: 0.35rem 0;
	padding-left: 0.2rem;
}

.fj-blog-content a {
	color: var(--fj-blog-primary);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.fj-blog-content blockquote,
.fj-blog-content .fj-callout {
	margin: 1.75rem 0;
	padding: 1.15rem 1.25rem;
	border-left: 3px solid var(--fj-blog-accent);
	background: linear-gradient(90deg, rgba(232, 93, 4, 0.08), rgba(15, 76, 129, 0.04));
	border-radius: 0 8px 8px 0;
	font-family: Fraunces, Georgia, serif;
	font-size: 1.15rem;
	line-height: 1.45;
	color: var(--fj-blog-ink);
}

.fj-blog-content .fj-tip {
	margin: 1.5rem 0;
	padding: 1rem 1.15rem;
	border: 1px solid rgba(15, 76, 129, 0.16);
	border-radius: 8px;
	background: #eef5fb;
	font-size: 0.95rem;
}

.fj-blog-content .fj-tip strong {
	display: inline-block;
	margin-bottom: 0.2rem;
	color: var(--fj-blog-primary);
	font-family: Manrope, var(--fj-font-sans);
	font-size: 0.78rem;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.fj-blog-content figure {
	margin: 1.75rem 0;
}

.fj-blog-content figcaption {
	margin-top: 0.45rem;
	font-size: 0.82rem;
	color: var(--fj-color-text-muted, #5c6370);
}

.fj-blog-foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.25rem;
	padding: 1rem 0;
}

.fj-blog-tags,
.fj-blog-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	font-family: Manrope, var(--fj-font-sans);
	font-size: 0.82rem;
}

.fj-blog-tags > span,
.fj-blog-share > span {
	color: var(--fj-color-text-muted, #5c6370);
	margin-right: 0.25rem;
}

.fj-blog-tags a,
.fj-blog-share a {
	padding: 0.35rem 0.65rem;
	border-radius: 6px;
	border: 1px solid var(--fj-blog-line);
	background: #fff;
	color: var(--fj-blog-ink);
	font-weight: 600;
}

.fj-blog-tags a:hover,
.fj-blog-share a:hover {
	border-color: var(--fj-blog-primary);
	color: var(--fj-blog-primary);
}

.fj-blog-adjacent {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem;
	margin: 1.5rem 0 2rem;
}

.fj-blog-adjacent__link {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1rem 1.1rem;
	border-radius: 8px;
	border: 1px solid var(--fj-blog-line);
	background: #fff;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fj-blog-adjacent__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(13, 27, 42, 0.08);
	color: inherit;
}

.fj-blog-adjacent__link span {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--fj-color-text-muted, #5c6370);
}

.fj-blog-adjacent__link strong {
	font-family: Fraunces, Georgia, serif;
	font-size: 1rem;
	line-height: 1.3;
}

.fj-blog-adjacent__link--next {
	text-align: right;
}

.fj-blog-layout__aside {
	position: sticky;
	top: calc(var(--fj-header-h, 56px) + 1rem);
	display: grid;
	gap: 1rem;
}

.fj-blog-aside-card {
	background: #fff;
	border: 1px solid var(--fj-blog-line);
	border-radius: 8px;
	padding: 1.15rem;
	box-shadow: 0 10px 28px rgba(13, 27, 42, 0.04);
}

.fj-blog-aside-card--cta {
	background:
		linear-gradient(160deg, #0f4c81 0%, #0a3559 100%);
	color: #fff;
	border: 0;
}

.fj-blog-aside-card__eyebrow {
	display: inline-block;
	margin-bottom: 0.55rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.8;
}

.fj-blog-aside-card--cta h2 {
	font-family: Fraunces, Georgia, serif;
	font-size: 1.35rem;
	line-height: 1.25;
	margin: 0 0 0.55rem;
}

.fj-blog-aside-card--cta p {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	line-height: 1.55;
	opacity: 0.9;
}

.fj-blog-aside-card--cta .fj-btn {
	background: var(--fj-blog-accent);
	border-color: var(--fj-blog-accent);
	color: #fff;
	width: 100%;
	justify-content: center;
}

.fj-blog-aside-card__title {
	font-family: Fraunces, Georgia, serif;
	font-size: 1.1rem;
	margin: 0 0 0.85rem;
	color: var(--fj-blog-ink);
}

.fj-blog-related,
.fj-blog-firms {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fj-blog-related a,
.fj-blog-firms a {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 0.7rem;
	align-items: center;
	color: inherit;
}

.fj-blog-firms a {
	grid-template-columns: 1fr;
	padding: 0.65rem 0.7rem;
	border-radius: 6px;
	background: #f7f9fb;
	border: 1px solid transparent;
}

.fj-blog-firms a:hover {
	border-color: rgba(15, 76, 129, 0.2);
	background: #eef5fb;
}

.fj-blog-related__thumb {
	width: 56px;
	height: 56px;
	border-radius: 6px;
	overflow: hidden;
	background: #eef1f4;
}

.fj-blog-related__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fj-blog-related strong,
.fj-blog-firms strong {
	display: block;
	font-size: 0.88rem;
	line-height: 1.35;
	color: var(--fj-blog-ink);
}

.fj-blog-related time,
.fj-blog-firms span {
	font-size: 0.75rem;
	color: var(--fj-color-text-muted, #5c6370);
}

.fj-blog-comments {
	margin-top: 1.5rem;
	padding: 1.25rem;
	border-radius: 8px;
	border: 1px solid var(--fj-blog-line);
	background: #fff;
}

@keyframes fjBlogIn {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 960px) {
	.fj-blog-layout {
		grid-template-columns: 1fr;
	}

	.fj-blog-layout__aside {
		position: static;
	}

	.fj-blog-hero__title {
		max-width: none;
	}
}

@media (max-width: 640px) {
	.fj-blog-hero {
		padding: 1.5rem 0 2.25rem;
		margin-bottom: 1.5rem;
	}

	.fj-blog-adjacent {
		grid-template-columns: 1fr;
	}

	.fj-blog-adjacent__link--next {
		text-align: left;
	}

	.fj-blog-content {
		padding: 1.15rem;
		font-size: 1rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fj-blog-hero__title,
	.fj-blog-hero__deck,
	.fj-blog-hero__byline,
	.fj-blog-adjacent__link {
		animation: none;
		transition: none;
	}
}
