/* =========================================================
   Articles index + single post
   ========================================================= */

.tf-page--articles,
.tf-page--article {
	overflow-x: clip;
}

/* Hero (brand atmosphere, full-bleed) */
.tf-page-hero--articles {
	position: relative;
	overflow: hidden;
	color: #fff;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: stretch;
	min-height: min(48vh, 22rem);
	padding: clamp(3.5rem, 8vw, 5rem) 0 clamp(2.5rem, 5vw, 3.25rem);
}

.tf-page-hero--articles .tf-page-hero__mesh {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 85% 65% at 12% 15%, rgba(6, 0, 0, 0.26), transparent 58%),
		radial-gradient(ellipse 75% 70% at 100% 0%, rgba(27, 58, 42, 0.35), transparent 70%),
		linear-gradient(
			145deg,
			#8f1528 0%,
			#820016 36%,
			#b62c2c 62%,
			#68281f 80%,
			#472315 92%,
			#235430 100%
		);
}

.tf-page-hero--articles .tf-page-hero__inner {
	position: relative;
	z-index: 1;
	width: min(100% - 1.75rem, var(--wrap));
	margin-inline: auto;
	text-align: left;
}

.tf-page-hero--articles .tf-page-hero__inner > * {
	max-width: 40rem;
	margin-left: 0;
	margin-right: auto;
	text-align: left;
}

.tf-page-hero--articles h1 {
	color: #fff;
	font-size: clamp(2.15rem, 4.8vw, 3.1rem);
	margin: 0 0 0.75rem;
	letter-spacing: -0.03em;
}

.tf-page-hero--articles .tf-chip {
	margin-bottom: 0.85rem;
}

.tf-page-hero--articles .tf-lede {
	margin: 0 0 1.25rem;
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.08rem;
	line-height: 1.55;
}

.tf-page-hero--article-single {
	min-height: min(40vh, 18rem);
}

.tf-page-hero--article-single h1 {
	font-size: clamp(1.85rem, 4.2vw, 2.65rem);
	margin-bottom: 0.65rem;
}

/* Featured image as full-bleed hero plane */
.tf-page-hero--article-photo {
	justify-content: flex-end;
	min-height: min(72vh, 34rem);
	padding-top: clamp(5rem, 12vw, 7rem);
}

.tf-page-hero--article-photo .tf-page-hero__bg {
	position: absolute;
	inset: 0;
	margin: 0;
}

.tf-page-hero--article-photo .tf-page-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.tf-page-hero--article-photo .tf-page-hero__mesh {
	background:
		linear-gradient(
			180deg,
			rgba(17, 8, 10, 0.28) 0%,
			rgba(17, 8, 10, 0.5) 40%,
			rgba(17, 8, 10, 0.88) 100%
		),
		linear-gradient(
			115deg,
			rgba(143, 21, 40, 0.4) 0%,
			rgba(36, 84, 48, 0.18) 100%
		);
}

.tf-article-aside .tf-article-back {
	margin: 1.1rem 0 0;
	flex-shrink: 0;
}

.tf-article-aside .tf-article-back a {
	color: var(--brand);
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
}

.tf-article-aside .tf-article-back a:hover {
	color: var(--brand-deep);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.tf-article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.55rem;
	margin: 0 0 0.85rem;
	font-size: 0.9rem;
	font-weight: 550;
	color: rgba(255, 255, 255, 0.82);
}

.tf-article-meta a {
	color: rgba(255, 255, 255, 0.95);
	text-decoration: none;
	font-weight: 650;
}

.tf-article-meta a:hover {
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* Index list */
.tf-articles-list-section {
	padding-top: clamp(2rem, 4vw, 2.75rem);
}

.tf-articles-list-head {
	margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.tf-articles-list-head h2 {
	margin: 0.35rem 0 0;
	font-size: clamp(1.45rem, 2.8vw, 1.85rem);
	letter-spacing: -0.02em;
}

.tf-articles-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
	gap: 1.15rem;
}

.tf-articles-grid--related {
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
}

.tf-article-card {
	margin: 0;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 1rem;
	box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
	overflow: hidden;
	transition: transform 0.2s var(--ease, ease), box-shadow 0.2s ease;
}

.tf-article-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(17, 24, 39, 0.07);
}

.tf-article-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

.tf-article-card__media {
	margin: 0;
	aspect-ratio: 16 / 10;
	background: #1a0a0c;
	overflow: hidden;
}

.tf-article-card__media--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(ellipse 70% 80% at 20% 20%, rgba(196, 30, 58, 0.35), transparent 55%),
		#1a0a0c;
}

.tf-article-card__badge {
	font-size: 2.5rem;
	font-weight: 750;
	color: rgba(255, 255, 255, 0.55);
	letter-spacing: -0.04em;
}

.tf-article-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tf-article-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 1.05rem 1.15rem 1.2rem;
	flex: 1;
}

.tf-article-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.45rem;
	font-size: 0.78rem;
	font-weight: 650;
	color: var(--muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.tf-article-card__title {
	font-size: 1.12rem;
	font-weight: 750;
	letter-spacing: -0.02em;
	line-height: 1.35;
	color: var(--ink);
}

.tf-article-card__excerpt {
	font-size: 0.94rem;
	line-height: 1.5;
	color: var(--muted);
}

.tf-article-card__cta {
	margin-top: auto;
	padding-top: 0.55rem;
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--brand);
}

/* Pagination */
.tf-page--articles .navigation.pagination,
.tf-page--articles .tf-articles-pagination {
	margin-top: 2rem;
}

.tf-page--articles .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
	justify-content: center;
}

.tf-page--articles .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.45rem;
	min-width: 2.45rem;
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--line);
	border-radius: 0.55rem;
	background: #fff;
	color: var(--ink);
	font-size: 0.9rem;
	font-weight: 650;
	text-decoration: none;
}

.tf-page--articles .page-numbers.current,
.tf-page--articles a.page-numbers:hover {
	border-color: var(--brand);
	background: var(--brand-soft);
	color: var(--brand);
}

.tf-articles-empty {
	padding: 2rem 0;
	color: var(--muted);
}

/* Article + related side by side */
.tf-article-body-section {
	padding-top: clamp(1.25rem, 3vw, 2rem);
	padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.tf-article-layout {
	display: block;
}

.tf-article-layout--split {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(2rem, 4vw, 2.75rem);
	align-items: start;
}

@media (min-width: 960px) {
	.tf-article-layout--split {
		grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
		gap: clamp(2rem, 4vw, 3.25rem);
	}

	.tf-article-aside {
		position: sticky;
		/* Clear sticky .tf-chrome (topbar + nav ≈ 8.4rem) */
		top: 9.5rem;
		max-height: calc(100vh - 10.5rem);
	}

	.tf-article-aside__panel {
		display: flex;
		flex-direction: column;
		max-height: inherit;
		min-height: 0;
	}

	.tf-article-aside__cards {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
		scrollbar-width: none;
	}

	.tf-article-aside__cards::-webkit-scrollbar {
		display: none;
	}
}

.tf-article-aside .tf-articles-list-head {
	margin-bottom: 1rem;
	flex-shrink: 0;
}

.tf-article-aside .tf-articles-list-head h2 {
	font-size: 1.25rem;
}

.tf-articles-grid--aside {
	grid-template-columns: 1fr;
	gap: 1rem;
}

.tf-articles-grid--aside .tf-article-card__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.tf-article-prose {
	max-width: 42rem;
	margin: 0;
	color: var(--ink);
	font-size: 1.05rem;
	line-height: 1.75;
}

.tf-gt {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
	margin: 0 0 1.5rem;
	padding: 0.85rem 0 1rem;
	border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
}

.tf-gt__btn {
	appearance: none;
	border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
	background: var(--paper, #fff);
	color: var(--ink);
	font: inherit;
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	padding: 0.45rem 0.9rem;
	cursor: pointer;
	border-radius: 2px;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.tf-gt__btn:hover,
.tf-gt__btn:focus-visible {
	border-color: color-mix(in srgb, var(--ink) 45%, transparent);
	background: color-mix(in srgb, var(--ink) 4%, transparent);
	outline: none;
}

.tf-gt__btn:disabled {
	opacity: 0.65;
	cursor: wait;
}

.tf-gt__note {
	font-size: 0.86rem;
	line-height: 1.4;
	color: color-mix(in srgb, var(--ink) 62%, transparent);
}

.tf-article-prose.is-gt-working,
.tf-product-content.is-gt-working {
	opacity: 0.72;
	transition: opacity 0.2s ease;
}


.tf-article-prose > *:first-child {
	margin-top: 0;
}

.tf-article-prose > *:last-child {
	margin-bottom: 0;
}

.tf-article-prose h2,
.tf-article-prose h3,
.tf-article-prose h4 {
	margin: 1.75rem 0 0.65rem;
	letter-spacing: -0.02em;
	line-height: 1.3;
	color: var(--ink);
}

.tf-article-prose h2 {
	font-size: 1.45rem;
}

.tf-article-prose h3 {
	font-size: 1.2rem;
}

.tf-article-prose p {
	margin: 0 0 1.1rem;
	color: var(--muted);
}

/* Drop cap – classic/block editor + SiteOrigin TinyMCE widgets */
.tf-article-prose > p:first-of-type::first-letter,
.tf-article-prose .textwidget > p:first-of-type::first-letter,
.tf-article-prose .siteorigin-widget-tinymce > p:first-of-type::first-letter {
	float: left;
	font-size: 3.85em;
	font-weight: 800;
	line-height: 0.8;
	padding: 0.05em 0.14em 0 0;
	margin: 0.04em 0.08em 0 0;
	text-transform: uppercase;
}

.tf-article-prose a {
	color: var(--brand);
	font-weight: 650;
}

.tf-article-prose ul,
.tf-article-prose ol {
	margin: 0 0 1.15rem;
	padding-left: 1.25rem;
	color: var(--muted);
}

.tf-article-prose li {
	margin: 0.35rem 0;
}

.tf-article-prose blockquote {
	margin: 0 0 1.25rem;
	padding: 0.85rem 1.1rem;
	border-left: 3px solid var(--brand);
	background: var(--brand-soft);
	border-radius: 0 0.65rem 0.65rem 0;
	color: var(--ink);
}

.tf-article-prose img {
	max-width: 100%;
	height: auto;
	border-radius: 0.75rem;
}

.tf-article-prose figure {
	margin: 0 0 1.25rem;
}

.tf-article-foot {
	padding-top: 0;
	border-top: 1px solid var(--line);
}

.tf-article-foot__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 1rem;
	width: min(100% - 1.75rem, var(--wrap));
	margin-inline: auto;
	padding-top: 1.5rem;
}

@media (max-width: 640px) {
	.tf-article-foot__inner {
		flex-direction: column;
		align-items: flex-start;
	}
}
