:root {
	--tmex-primary: #00afe9;
	--tmex-primary-hover: #0098cc;
	--tmex-white: #ffffff;
	--tmex-dark: #1f2933;
	--tmex-dark-hero: #0b2538;
	--tmex-dark-hero-alt: #071c2d;
	--tmex-dark-hero-gradient: linear-gradient(135deg, #071c2d 0%, #0b2538 55%, #12384d 100%);
	--tmex-text: #333333;
	--tmex-muted: #667085;
	--tmex-border: #d9eaf2;
	--tmex-bg-soft: #f2fafd;
	--tmex-bg-light: #f7fbfd;
	--tmex-font-title: "Montserrat", sans-serif;
	--tmex-font-body: "Roboto", sans-serif;
	--tmex-radius-md: 8px;
	--tmex-radius-lg: 12px;
}

.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, 1140px);
	margin-right: auto;
	margin-left: auto;
}

.tmex-post-hero {
	position: relative;
	overflow: hidden;
	margin: 18px 12px 40px;
	padding: 54px 0;
	border-radius: 28px;
	background: var(--tmex-dark-hero-gradient);
	color: var(--tmex-white);
}

.tmex-post-hero::before {
	position: absolute;
	inset: 0;
	content: "";
	background:
		radial-gradient(circle at 80% 18%, rgba(0, 175, 233, 0.22), transparent 28%),
		linear-gradient(90deg, rgba(7, 28, 45, 0.96), rgba(11, 37, 56, 0.84));
	pointer-events: none;
}

.tmex-post-hero-inner {
	position: relative;
	display: grid;
	gap: 34px;
	align-items: center;
}

.tmex-post-hero-copy {
	max-width: 700px;
}

.tmex-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-bottom: 18px;
	color: rgba(255, 255, 255, 0.72);
	font-family: var(--tmex-font-body);
	font-size: 14px;
	line-height: 1.4;
}

.tmex-breadcrumbs a {
	color: rgba(255, 255, 255, 0.78);
	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: 14px;
	padding: 7px 12px;
	border: 1px solid rgba(0, 175, 233, 0.35);
	border-radius: var(--tmex-radius-md);
	background: rgba(0, 175, 233, 0.12);
	color: var(--tmex-primary);
	font-family: var(--tmex-font-title);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	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);
}

.tmex-single-post-main .tmex-post-title {
	max-width: 760px;
	margin: 0;
	color: var(--tmex-white) !important;
	font-family: var(--tmex-font-title);
	font-size: clamp(2.1rem, 4vw, 3rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: 0;
}

.tmex-post-excerpt {
	max-width: 640px;
	margin: 18px 0 0;
	color: rgba(255, 255, 255, 0.9);
	font-family: var(--tmex-font-body);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.7;
}

.tmex-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: 18px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 14px;
	font-weight: 400;
}

.tmex-post-meta-item {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	min-height: 36px;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--tmex-radius-md);
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.86);
	line-height: 1.2;
	text-decoration: none;
}

.tmex-post-author:hover,
.tmex-post-author:focus {
	border-color: rgba(0, 175, 233, 0.65);
	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;
	border-radius: var(--tmex-radius-lg);
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 24px 58px rgba(0, 0, 0, 0.26);
}

.tmex-post-featured-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.tmex-post-layout {
	display: grid;
	gap: 36px;
	align-items: start;
	padding-bottom: 72px;
}

.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: 14px;
	margin: 0 0 34px;
	padding: 20px;
	border: 1px solid var(--tmex-border);
	background: var(--tmex-bg-soft);
	box-shadow: 0 8px 24px rgba(31, 41, 51, 0.06);
}

.tmex-post-inline-cta p {
	margin: 0;
	color: var(--tmex-dark);
	font-family: var(--tmex-font-body);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.65;
}

.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: 48px;
	padding: 13px 24px;
	border: 2px solid transparent;
	border-radius: var(--tmex-radius-md);
	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 10px 24px rgba(0, 175, 233, 0.22);
}

.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;
}

.tmex-post-content {
	color: var(--tmex-text);
	font-family: var(--tmex-font-body);
	font-size: 18px;
	line-height: 1.78;
}

.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-dark);
	font-family: var(--tmex-font-title);
	letter-spacing: 0;
	scroll-margin-top: 110px;
}

.tmex-post-content h2 {
	position: relative;
	margin-top: 2.1em;
	margin-bottom: 0.7em;
	padding-top: 0.25em;
	font-size: clamp(1.75rem, 2.6vw, 2.25rem);
	font-weight: 700;
	line-height: 1.2;
}

.tmex-post-content h2::before {
	display: block;
	width: 54px;
	height: 4px;
	margin-bottom: 14px;
	border-radius: 999px;
	background: var(--tmex-primary);
	content: "";
}

.tmex-post-content h3 {
	margin-top: 1.7em;
	margin-bottom: 0.65em;
	font-size: clamp(1.35rem, 1.8vw, 1.5rem);
	font-weight: 700;
	line-height: 1.3;
}

.tmex-post-content h4 {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.3;
}

.tmex-post-content p,
.tmex-post-content li {
	color: var(--tmex-text);
}

.tmex-post-content ul,
.tmex-post-content ol {
	padding-left: 1.25em;
}

.tmex-post-content li {
	margin-bottom: 0.55em;
	padding-left: 0.15em;
}

.tmex-post-content li::marker {
	color: var(--tmex-primary);
	font-weight: 700;
}

.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: 0 12px 30px rgba(31, 41, 51, 0.08);
}

.tmex-post-content figure {
	margin-right: 0;
	margin-left: 0;
}

.tmex-post-content figcaption {
	margin-top: 10px;
	color: var(--tmex-muted);
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

.tmex-post-content blockquote {
	margin: 1.7em 0;
	padding: 22px 24px;
	border-left: 5px solid var(--tmex-primary);
	border-radius: 0 var(--tmex-radius-lg) var(--tmex-radius-lg) 0;
	background: var(--tmex-bg-soft);
	color: var(--tmex-dark);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.7;
}

.tmex-page-links {
	margin-top: 28px;
	font-weight: 700;
}

.tmex-post-footer {
	margin-top: 44px;
}

.tmex-post-final-cta {
	display: grid;
	gap: 18px;
	padding: 28px;
	background: var(--tmex-dark-hero-gradient);
	color: var(--tmex-white);
	box-shadow: 0 18px 44px rgba(7, 28, 45, 0.18);
}

.tmex-single-post-main .tmex-post-final-cta h2 {
	max-width: 620px;
	margin: 0;
	color: var(--tmex-white) !important;
	font-family: var(--tmex-font-title);
	font-size: clamp(1.45rem, 2vw, 1.85rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0;
}

.tmex-post-final-cta p {
	max-width: 680px;
	margin: 10px 0 0;
	color: rgba(255, 255, 255, 0.9) !important;
	font-size: 16px;
	line-height: 1.65;
}

.tmex-related-posts {
	margin-top: 38px;
	padding-top: 30px;
	border-top: 1px solid var(--tmex-border);
}

.tmex-related-posts h2 {
	margin: 0 0 16px;
	color: var(--tmex-dark);
	font-family: var(--tmex-font-title);
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0;
}

.tmex-related-posts ul {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tmex-related-posts a {
	display: block;
	padding: 16px 18px;
	border: 1px solid var(--tmex-border);
	border-radius: var(--tmex-radius-lg);
	background: var(--tmex-white);
	color: var(--tmex-dark);
	font-family: var(--tmex-font-title);
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(31, 41, 51, 0.05);
}

.tmex-related-posts a:hover,
.tmex-related-posts a:focus {
	border-color: rgba(0, 175, 233, 0.55);
	color: var(--tmex-primary);
	transform: translateY(-1px);
}

@media (min-width: 1024px) {
	.tmex-post-hero-inner {
		grid-template-columns: minmax(0, 0.95fr) minmax(330px, 0.72fr);
	}

	.tmex-post-layout {
		grid-template-columns: minmax(0, 730px) 300px;
		justify-content: space-between;
	}

	.tmex-post-sidebar {
		position: sticky;
		top: 110px;
		display: grid;
		gap: 16px;
	}

	.tmex-sidebar-card {
		padding: 22px;
		border: 1px solid var(--tmex-border);
		background: var(--tmex-white);
		box-shadow: 0 8px 24px rgba(31, 41, 51, 0.06);
	}

	.tmex-sidebar-kicker {
		margin: 0 0 6px;
		color: var(--tmex-dark);
		font-family: var(--tmex-font-title);
		font-size: 1.05rem;
		font-weight: 700;
		line-height: 1.25;
	}

	.tmex-sidebar-cta p:not(.tmex-sidebar-kicker) {
		margin: 0 0 16px;
		color: var(--tmex-muted);
		font-size: 15px;
		line-height: 1.55;
	}

	.tmex-sidebar-actions {
		display: grid;
	}

	.tmex-sidebar-actions .tmex-btn {
		width: 100%;
		min-height: 46px;
		padding: 11px 16px;
	}

	.tmex-post-index-title {
		margin: 0 0 14px;
		color: var(--tmex-dark);
		font-family: var(--tmex-font-title);
		font-size: 1rem;
		font-weight: 700;
		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: 6px;
		color: var(--tmex-muted);
		font-size: 14px;
		font-weight: 400;
		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-soft);
		color: var(--tmex-primary);
	}

	.tmex-post-inline-cta {
		display: none;
	}

	.tmex-post-final-cta {
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
	}

	.tmex-post-final-cta .tmex-cta-actions {
		justify-content: flex-end;
	}

	.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: 100%;
	}

	.tmex-post-hero {
		margin: 12px 0 34px;
		padding: 36px 22px;
		border-radius: 22px;
	}

	.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: 100%;
	}

	.tmex-post-hero {
		margin-top: 10px;
		margin-right: 0;
		margin-left: 0;
		padding: 32px 20px;
	}

	.tmex-post-hero-inner {
		gap: 24px;
	}

	.tmex-breadcrumbs {
		margin-bottom: 14px;
		font-size: 13px;
	}

	.tmex-post-title {
		font-size: 34px;
		line-height: 1.15;
	}

	.tmex-post-excerpt {
		font-size: 16px;
	}

	.tmex-post-featured-image img {
		aspect-ratio: 4 / 3;
	}

	.tmex-post-layout {
		padding-bottom: 56px;
	}

	.tmex-post-inline-cta,
	.tmex-post-final-cta {
		padding: 20px;
	}

	.tmex-post-content {
		font-size: 19px;
		line-height: 1.74;
	}

	.tmex-single-post-main .tmex-post-content p,
	.tmex-single-post-main .tmex-post-content li {
		font-size: 19px;
	}

	.tmex-post-content h2 {
		font-size: 28px;
		line-height: 1.2;
	}

	.tmex-post-content h3 {
		font-size: 22px;
	}

	.tmex-cta-actions,
	.tmex-btn {
		width: 100%;
	}
}
