:root {
	--tmex-primary: #2563eb;
	--tmex-primary-hover: #1d4ed8;
	--tmex-accent: #6366f1;
	--tmex-white: #ffffff;
	--tmex-ink: #0a0a0a;
	--tmex-text: #4b5563;
	--tmex-muted: #6b7280;
	--tmex-border: #e5e7eb;
	--tmex-border-strong: #d1d5db;
	--tmex-bg-soft: #f8fafc;
	--tmex-bg-blue: #eff6ff;
	--tmex-bg-indigo: #eef2ff;
	--tmex-font-title: "Inter Tight", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--tmex-font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--tmex-radius-sm: 16px;
	--tmex-radius-lg: 24px;
	--tmex-radius-xl: 32px;
	--tmex-shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.08);
	--tmex-shadow-card: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.tmex-single-post-main {
	overflow: visible;
	background: var(--tmex-white);
	font-family: var(--tmex-font-body);
	color: var(--tmex-text);
}

.tmex-single-post-main,
.tmex-single-post-main * {
	box-sizing: border-box;
}

.tmex-single-post {
	margin: 0;
	color: var(--tmex-text);
}

.tmex-single-post-shell,
.tmex-post-hero-inner {
	width: min(100% - 40px, 1160px);
	margin-right: auto;
	margin-left: auto;
}

.tmex-post-hero {
	position: relative;
	overflow: hidden;
	margin: 0 0 44px;
	padding: 36px 0 30px;
	background:
		linear-gradient(180deg, #ffffff 0%, #f8fafc 100%),
		var(--tmex-white);
	border-bottom: 1px solid var(--tmex-border);
	color: var(--tmex-ink);
}

.tmex-post-hero::before {
	position: absolute;
	inset: auto 0 0;
	height: 1px;
	content: "";
	background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.45), rgba(99, 102, 241, 0.36), transparent);
	pointer-events: none;
}

.tmex-post-hero-inner {
	position: relative;
	display: grid;
	gap: 18px;
}

.tmex-post-hero-copy {
	min-width: 0;
}

.tmex-post-hero-top {
	display: grid;
	gap: 12px;
	align-items: start;
}

.tmex-post-hero-main {
	display: grid;
	gap: 38px;
	align-items: start;
}

.tmex-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 0;
	color: var(--tmex-muted);
	font-family: var(--tmex-font-body);
	font-size: 14px;
	line-height: 1.4;
}

.tmex-breadcrumbs a {
	color: var(--tmex-muted);
	text-decoration: none;
}

.tmex-breadcrumbs a:hover,
.tmex-breadcrumbs a:focus {
	color: var(--tmex-primary);
	text-decoration: none;
}

.tmex-post-category {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	margin-bottom: 0;
	padding: 7px 13px;
	border: 1px solid rgba(37, 99, 235, 0.16);
	border-radius: 999px;
	background: var(--tmex-bg-blue);
	color: var(--tmex-primary);
	font-family: var(--tmex-font-title);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
}

.tmex-post-category:hover,
.tmex-post-category:focus {
	background: var(--tmex-primary);
	color: var(--tmex-white);
	text-decoration: none;
}

.tmex-single-post-main .tmex-post-title {
	max-width: 720px;
	margin: 0;
	color: var(--tmex-ink) !important;
	font-family: var(--tmex-font-title);
	font-size: clamp(2.5rem, 3.2vw, 3.25rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: 0;
}

.tmex-post-excerpt {
	max-width: 980px;
	margin: 8px 0 0;
	padding: 20px 0 0 24px;
	border-left: 4px solid var(--tmex-primary);
	color: var(--tmex-text);
	font-family: var(--tmex-font-body);
	font-size: clamp(1.2rem, 1.35vw, 1.3125rem);
	font-weight: 400;
	line-height: 1.64;
}

.tmex-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 0;
	color: var(--tmex-muted);
	font-size: 14px;
	font-weight: 600;
}

.tmex-post-meta-item {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	min-height: 40px;
	padding: 9px 13px;
	border: 1px solid var(--tmex-border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.78);
	color: var(--tmex-text);
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.tmex-post-author:hover,
.tmex-post-author:focus {
	border-color: rgba(37, 99, 235, 0.35);
	color: var(--tmex-primary);
	text-decoration: none;
}

.tmex-post-meta-icon {
	width: 16px;
	height: 16px;
	color: var(--tmex-primary);
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: 0 0 auto;
}

.tmex-post-featured-image {
	margin: 0;
	overflow: hidden;
	aspect-ratio: 1200 / 674;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 28px;
	background: var(--tmex-bg-soft);
	box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
	align-self: start;
}

.tmex-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.tmex-post-layout {
	display: grid;
	gap: 42px;
	align-items: start;
	padding-bottom: 84px;
}

.tmex-post-primary {
	min-width: 0;
}

.tmex-post-sidebar {
	display: none;
}

.tmex-post-inline-cta,
.tmex-post-final-cta,
.tmex-sidebar-card {
	border-radius: var(--tmex-radius-lg);
}

.tmex-post-inline-cta {
	display: grid;
	gap: 16px;
	margin: 0 0 38px;
	padding: 24px;
	border: 1px solid rgba(37, 99, 235, 0.14);
	background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	box-shadow: var(--tmex-shadow-card);
}

.tmex-post-inline-cta p {
	margin: 0;
	color: var(--tmex-ink);
	font-family: var(--tmex-font-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.7;
}

.tmex-cta-actions,
.tmex-sidebar-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tmex-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 50px;
	padding: 14px 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--tmex-font-title);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.tmex-btn:hover,
.tmex-btn:focus {
	transform: translateY(-1px);
	text-decoration: none;
}

.tmex-single-post-main .tmex-btn-primary {
	background: var(--tmex-primary);
	border-color: var(--tmex-primary);
	color: var(--tmex-white) !important;
	box-shadow: 0 14px 28px rgba(37, 99, 235, 0.23);
}

.tmex-single-post-main .tmex-btn-primary:hover,
.tmex-single-post-main .tmex-btn-primary:focus {
	background: var(--tmex-primary-hover);
	border-color: var(--tmex-primary-hover);
	color: var(--tmex-white) !important;
	box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
}

.tmex-post-content {
	color: var(--tmex-text);
	font-family: var(--tmex-font-body);
	font-size: 18px;
	line-height: 1.82;
}

.tmex-post-content > * {
	margin-top: 0;
	margin-bottom: 1.35em;
}

.tmex-post-content > :first-child {
	margin-top: 0;
}

.tmex-post-content h2,
.tmex-post-content h3,
.tmex-post-content h4 {
	color: var(--tmex-ink);
	font-family: var(--tmex-font-title);
	letter-spacing: 0;
	scroll-margin-top: 110px;
}

.tmex-post-content h2 {
	position: relative;
	margin-top: 2.35em;
	margin-bottom: 0.75em;
	padding-top: 0.1em;
	font-size: clamp(1.75rem, 2.6vw, 2.35rem);
	font-weight: 800;
	line-height: 1.13;
}

.tmex-post-content h2::before {
	display: block;
	width: 64px;
	height: 5px;
	margin-bottom: 16px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--tmex-primary), var(--tmex-accent));
	content: "";
}

.tmex-post-content h3 {
	margin-top: 1.75em;
	margin-bottom: 0.65em;
	font-size: clamp(1.35rem, 1.8vw, 1.58rem);
	font-weight: 800;
	line-height: 1.25;
}

.tmex-post-content h4 {
	font-size: 1.18rem;
	font-weight: 800;
	line-height: 1.3;
}

.tmex-post-content p,
.tmex-post-content li {
	color: var(--tmex-text);
}

.tmex-post-content strong {
	color: var(--tmex-ink);
	font-weight: 800;
}

.tmex-post-content ul,
.tmex-post-content ol {
	padding-left: 1.25em;
}

.tmex-post-content li {
	margin-bottom: 0.58em;
	padding-left: 0.2em;
}

.tmex-post-content li::marker {
	color: var(--tmex-primary);
	font-weight: 800;
}

.tmex-post-content a {
	color: var(--tmex-primary);
	font-weight: 700;
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.tmex-post-content a:hover,
.tmex-post-content a:focus {
	color: var(--tmex-primary-hover);
}

.tmex-post-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--tmex-radius-lg);
	box-shadow: var(--tmex-shadow-card);
}

.tmex-post-content figure {
	margin-right: 0;
	margin-left: 0;
}

.tmex-post-content figcaption {
	margin-top: 12px;
	color: var(--tmex-muted);
	font-size: 14px;
	line-height: 1.55;
	text-align: center;
}

.tmex-post-content blockquote {
	margin: 1.85em 0;
	padding: 26px 28px;
	border: 1px solid rgba(99, 102, 241, 0.18);
	border-left: 5px solid var(--tmex-accent);
	border-radius: var(--tmex-radius-lg);
	background: var(--tmex-bg-indigo);
	color: var(--tmex-ink);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.72;
}

.tmex-post-content table {
	width: 100%;
	margin: 2em 0;
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
	border: 1px solid var(--tmex-border);
	border-radius: var(--tmex-radius-lg);
	box-shadow: var(--tmex-shadow-card);
}

.tmex-post-content th,
.tmex-post-content td {
	padding: 14px 16px;
	border-bottom: 1px solid var(--tmex-border);
	text-align: left;
	vertical-align: top;
}

.tmex-post-content th {
	background: var(--tmex-bg-soft);
	color: var(--tmex-ink);
	font-family: var(--tmex-font-title);
	font-size: 15px;
	font-weight: 800;
}

.tmex-post-content tr:last-child td {
	border-bottom: 0;
}

.tmex-post-content pre,
.tmex-post-content code {
	border-radius: var(--tmex-radius-sm);
	background: #f3f4f6;
	color: var(--tmex-ink);
	font-size: 0.92em;
}

.tmex-post-content code {
	padding: 0.15em 0.35em;
}

.tmex-post-content pre {
	overflow: auto;
	padding: 18px;
}

.tmex-page-links {
	margin-top: 30px;
	font-weight: 800;
}

.tmex-post-footer {
	margin-top: 52px;
}

.tmex-post-final-cta {
	position: relative;
	display: grid;
	gap: 22px;
	overflow: hidden;
	padding: 38px;
	border: 1px solid rgba(37, 99, 235, 0.18);
	background: var(--tmex-ink);
	color: var(--tmex-white);
	box-shadow: var(--tmex-shadow-soft);
}

.tmex-post-final-cta::before {
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	content: "";
	background: linear-gradient(90deg, var(--tmex-primary), var(--tmex-accent));
}

.tmex-single-post-main .tmex-post-final-cta h2 {
	max-width: 760px;
	margin: 0;
	color: var(--tmex-white) !important;
	font-family: var(--tmex-font-title);
	font-size: clamp(1.55rem, 2.2vw, 2rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: 0;
}

.tmex-post-final-cta p {
	max-width: 760px;
	margin: 12px 0 0;
	color: rgba(255, 255, 255, 0.78) !important;
	font-size: 16px;
	line-height: 1.72;
}

.tmex-post-final-cta .tmex-btn {
	min-width: min(100%, 360px);
}

.tmex-related-posts {
	margin-top: 42px;
	padding-top: 34px;
	border-top: 1px solid var(--tmex-border);
}

.tmex-related-posts h2 {
	margin: 0 0 18px;
	color: var(--tmex-ink);
	font-family: var(--tmex-font-title);
	font-size: 1.45rem;
	font-weight: 800;
	letter-spacing: 0;
}

.tmex-related-posts ul {
	display: grid;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmex-related-posts a {
	display: block;
	min-height: 100%;
	padding: 18px 20px;
	border: 1px solid var(--tmex-border);
	border-radius: var(--tmex-radius-lg);
	background: var(--tmex-white);
	color: var(--tmex-ink);
	font-family: var(--tmex-font-title);
	font-weight: 800;
	line-height: 1.35;
	text-decoration: none;
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.tmex-related-posts a:hover,
.tmex-related-posts a:focus {
	border-color: rgba(37, 99, 235, 0.35);
	color: var(--tmex-primary);
	transform: translateY(-2px);
	box-shadow: var(--tmex-shadow-card);
}

@media (min-width: 1024px) {
	.tmex-post-hero-main {
		grid-template-columns: minmax(0, calc(56% - 19px)) minmax(360px, calc(44% - 19px));
	}

	.tmex-post-layout {
		grid-template-columns: minmax(0, 740px) 320px;
		justify-content: space-between;
	}

	.tmex-post-sidebar {
		position: sticky;
		top: 112px;
		display: grid;
		gap: 16px;
	}

	.tmex-sidebar-card {
		padding: 24px;
		border: 1px solid var(--tmex-border);
		background: var(--tmex-white);
		box-shadow: var(--tmex-shadow-card);
	}

	.tmex-sidebar-cta {
		border-color: rgba(37, 99, 235, 0.16);
		background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
	}

	.tmex-sidebar-kicker {
		margin: 0 0 8px;
		color: var(--tmex-ink);
		font-family: var(--tmex-font-title);
		font-size: 1.08rem;
		font-weight: 800;
		line-height: 1.25;
	}

	.tmex-sidebar-cta p:not(.tmex-sidebar-kicker) {
		margin: 0 0 18px;
		color: var(--tmex-text);
		font-size: 15px;
		line-height: 1.62;
	}

	.tmex-sidebar-actions {
		display: grid;
	}

	.tmex-sidebar-actions .tmex-btn {
		width: 100%;
		min-height: 48px;
		padding: 12px 18px;
		font-size: 15px;
	}

	.tmex-sidebar-trust ul {
		display: grid;
		gap: 10px;
		margin: 14px 0 0;
		padding: 0;
		list-style: none;
	}

	.tmex-sidebar-trust li {
		position: relative;
		margin: 0;
		padding-left: 24px;
		color: var(--tmex-text);
		font-size: 14px;
		line-height: 1.5;
	}

	.tmex-sidebar-trust li::before {
		position: absolute;
		top: 0.55em;
		left: 0;
		width: 10px;
		height: 10px;
		border-radius: 999px;
		background: var(--tmex-primary);
		content: "";
		box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
	}

	.tmex-post-index-title {
		margin: 0 0 14px;
		color: var(--tmex-ink);
		font-family: var(--tmex-font-title);
		font-size: 1rem;
		font-weight: 800;
		line-height: 1.25;
		letter-spacing: 0;
	}

	.tmex-post-index ol {
		display: grid;
		gap: 6px;
		margin: 0;
		padding: 0;
		list-style: none;
	}

	.tmex-post-index a {
		display: block;
		padding: 10px 12px;
		border-left: 3px solid transparent;
		border-radius: 12px;
		color: var(--tmex-muted);
		font-size: 14px;
		font-weight: 600;
		line-height: 1.35;
		text-decoration: none;
	}

	.tmex-post-index a:hover,
	.tmex-post-index a:focus {
		border-left-color: var(--tmex-primary);
		background: var(--tmex-bg-blue);
		color: var(--tmex-primary);
	}

	.tmex-post-inline-cta {
		display: none;
	}

	.tmex-post-final-cta {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}

	.tmex-post-final-cta .tmex-cta-actions {
		justify-content: flex-start;
	}

	.tmex-related-posts ul {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1023px) {
	.tmex-single-post-shell,
	.tmex-post-hero-inner {
		width: min(100% - 32px, 760px);
	}

	.tmex-post-hero {
		margin-bottom: 38px;
		padding: 30px 0 26px;
	}

	.tmex-post-hero-inner {
		gap: 16px;
	}

	.tmex-post-hero-main {
		gap: 24px;
	}

	.tmex-single-post-main .tmex-post-title {
		max-width: 100%;
		font-size: clamp(2.125rem, 5vw, 2.5rem);
		line-height: 1.08;
	}

	.tmex-post-excerpt {
		max-width: 680px;
		margin-top: 4px;
		padding-top: 18px;
		font-size: 18px;
		line-height: 1.65;
	}

	.tmex-post-meta {
		margin-top: 2px;
	}

	.tmex-post-featured-image img {
		max-height: none;
	}

	.tmex-post-sidebar {
		display: none !important;
	}

	.tmex-post-inline-cta {
		display: grid;
	}

	.tmex-single-post-main .tmex-post-content p,
	.tmex-single-post-main .tmex-post-content li {
		font-size: 18px;
	}
}

@media (max-width: 767px) {
	.tmex-single-post-shell,
	.tmex-post-hero-inner {
		width: min(100% - 28px, 100%);
	}

	.tmex-post-hero {
		margin-bottom: 34px;
		padding: 24px 0 22px;
	}

	.tmex-post-hero-inner {
		gap: 14px;
	}

	.tmex-breadcrumbs {
		font-size: 13px;
	}

	.tmex-single-post-main .tmex-post-title {
		font-size: 32px;
		line-height: 1.08;
	}

	.tmex-post-excerpt {
		margin-top: 2px;
		padding: 16px 0 0 18px;
		font-size: 18px;
		line-height: 1.68;
	}

	.tmex-post-meta {
		gap: 8px;
		margin-top: 14px;
	}

	.tmex-post-meta-item {
		min-height: 38px;
		padding: 8px 11px;
		font-size: 13px;
	}

	.tmex-post-featured-image {
		border-radius: var(--tmex-radius-lg);
	}

	.tmex-post-layout {
		padding-bottom: 60px;
	}

	.tmex-post-inline-cta,
	.tmex-post-final-cta {
		padding: 22px;
	}

	.tmex-post-content {
		font-size: 18px;
		line-height: 1.76;
	}

	.tmex-single-post-main .tmex-post-content p,
	.tmex-single-post-main .tmex-post-content li {
		font-size: 18px;
	}

	.tmex-post-content h2 {
		font-size: 29px;
		line-height: 1.18;
	}

	.tmex-post-content h3 {
		font-size: 22px;
	}

	.tmex-post-content table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	.tmex-cta-actions,
	.tmex-btn {
		width: 100%;
	}
}
