/* Single post V3 — esperienza editoriale automotive */
.tm-layout--single {
	padding-top: clamp(22px, 3vw, 42px);
	padding-bottom: 64px;
}

.tm-single {
	min-width: 0;
}

.tm-reading-progress {
	position: fixed;
	z-index: 1200;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	pointer-events: none;
}

.tm-reading-progress__bar {
	display: block;
	width: 100%;
	height: 100%;
	background: #ef242c;
	box-shadow: 0 0 12px rgba(239, 36, 44, 0.45);
	transform: scaleX(0);
	transform-origin: left center;
	will-change: transform;
}

.tm-single .tm-breadcrumb {
	margin-bottom: 20px;
	color: #70757d;
	font-size: 0.78rem;
}

.tm-single .tm-breadcrumb a {
	color: #4f555d;
}

.tm-single__header {
	max-width: 820px;
	margin-bottom: 18px;
}

.tm-single .tm-single__kicker {
	display: inline-flex;
	margin: 0 0 12px;
}

.tm-single .tm-single__kicker a {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 5px 10px;
	border-radius: 999px;
	background: #c9141b;
	color: #fff;
	font-size: 0.68rem;
	font-weight: 850;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.tm-single .tm-single__title {
	max-width: 18ch;
	margin: 0 0 14px;
	color: #11151b;
	font-size: clamp(2.35rem, 5.2vw, 4.4rem);
	font-weight: 880;
	line-height: 0.99;
	letter-spacing: -0.036em;
	text-wrap: balance;
}

.tm-single .tm-single__subtitle {
	max-width: 710px;
	margin: 0 0 18px;
	color: #555c66;
	font-size: clamp(1.08rem, 2vw, 1.35rem);
	line-height: 1.45;
}

.tm-single .tm-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	align-items: center;
	margin: 0;
	padding-top: 14px;
	border-top: 1px solid #dde1e5;
	color: #5f6670;
	font-size: 0.82rem;
}

.tm-single .tm-meta__author {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	color: #30363e;
	font-weight: 650;
}

.tm-single .tm-meta__avatar {
	width: 32px;
	height: 32px;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px #d7dbe0;
}

.tm-single .tm-meta a {
	color: #b51017;
	font-weight: 780;
}

.tm-single__featured {
	position: relative;
	overflow: hidden;
	margin: 0 0 34px;
	border-radius: 16px;
	background: #eceeed;
	box-shadow: 0 16px 42px rgba(15, 20, 28, 0.13);
}

.tm-single__featured-img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.tm-single__featured-caption {
	margin: 0;
	padding: 9px 13px;
	background: #f3f4f3;
	color: #5f6670;
	font-size: 0.72rem;
	line-height: 1.35;
}

.tm-single .tm-toc {
	max-width: 730px;
	margin: 0 0 30px;
	padding: 15px 18px;
	border: 1px solid #d9dde2;
	border-left: 4px solid #c9141b;
	border-radius: 0 10px 10px 0;
	background: #f7f8f8;
}

.tm-single .tm-toc__summary {
	color: #21262d;
	font-size: 0.8rem;
}

.tm-single .entry-content {
	max-width: 740px;
	color: #252a31;
	font-size: clamp(1.08rem, 1.35vw, 1.2rem);
	line-height: 1.75;
	overflow-wrap: break-word;
}

.tm-single .entry-content > p:first-child {
	color: #1d2229;
	font-size: 1.12em;
	line-height: 1.68;
}

.tm-single .entry-content p {
	margin-block: 0 1.45em;
}

.tm-single .entry-content h2 {
	margin: 2.1em 0 0.65em;
	color: #11151b;
	font-size: clamp(1.65rem, 3vw, 2.35rem);
	font-weight: 850;
	line-height: 1.08;
	letter-spacing: -0.045em;
	text-wrap: balance;
}

.tm-single .entry-content h3 {
	margin: 1.8em 0 0.6em;
	color: #171c23;
	font-size: clamp(1.3rem, 2.2vw, 1.7rem);
	font-weight: 820;
	line-height: 1.16;
	letter-spacing: -0.03em;
}

.tm-single .entry-content a {
	color: #a90e15;
	font-weight: 650;
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.16em;
}

.tm-single .entry-content ul,
.tm-single .entry-content ol {
	margin: 0 0 1.5em;
	padding-left: 1.3em;
}

.tm-single .entry-content li {
	margin-bottom: 0.48em;
}

.tm-single .entry-content li::marker {
	color: #c9141b;
	font-weight: 850;
}

.tm-single .entry-content blockquote {
	position: relative;
	margin: 2em 0;
	padding: 26px 28px 24px;
	border: 0;
	border-radius: 14px;
	background: #111722;
	color: #f4f6f8;
	font-size: 1.15em;
	font-weight: 640;
	line-height: 1.55;
}

.tm-single .entry-content blockquote::before {
	display: block;
	margin-bottom: 8px;
	color: #ff5d57;
	content: "“";
	font-size: 3rem;
	font-weight: 900;
	line-height: 0.65;
}

.tm-single .entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.tm-single .entry-content figure,
.tm-single .entry-content .wp-block-image {
	float: none;
	width: 100%;
	max-width: 100%;
	margin-block: 2em;
	margin-inline: 0;
}

.tm-single .entry-content img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

.tm-single .entry-content figure > img,
.tm-single .entry-content .wp-block-image > img,
.tm-single .entry-content .wp-caption > img {
	width: 100%;
	margin-inline: auto;
}

.tm-single .entry-content .alignleft,
.tm-single .entry-content .alignright,
.tm-single .entry-content .aligncenter,
.tm-single .entry-content .alignwide,
.tm-single .entry-content .alignfull,
.tm-single .entry-content .wp-caption {
	float: none;
	clear: both;
	width: 100% !important;
	max-width: 100%;
	margin-right: 0;
	margin-left: 0;
}

.tm-single .entry-content figcaption {
	margin-top: 8px;
	color: #666d76;
	font-size: 0.75rem;
	line-height: 1.4;
}

.tm-single .entry-content table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid #d8dce1;
	border-radius: 10px;
	font-size: 0.9rem;
}

.tm-single .entry-content th {
	background: #111722;
	color: #fff;
}

.tm-single .entry-content th,
.tm-single .entry-content td {
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid #e1e4e8;
}

.tm-single__report {
	margin: 18px 0 28px;
	font-size: 0.8rem;
}

.tm-single__report a {
	color: #555c65;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.tm-single__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	align-items: center;
	margin: 22px 0;
}

.tm-single__tags-label {
	font-size: 0.72rem;
	font-weight: 850;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tm-single__tags-list {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tm-single__tags-list a {
	display: inline-flex;
	padding: 6px 10px;
	border: 1px solid #d8dce1;
	border-radius: 999px;
	background: #f7f8f8;
	color: #343a43;
	font-size: 0.72rem;
	font-weight: 700;
}

.tm-single .tm-author-box {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 17px;
	align-items: start;
	margin: 32px 0 42px;
	padding: 24px;
	border: 0;
	border-radius: 16px;
	background:
		radial-gradient(circle at 95% 10%, rgba(239, 36, 44, 0.2), transparent 34%),
		#111722;
	color: #e6eaf0;
}

.tm-single .tm-author-box__avatar {
	width: 72px;
	height: 72px;
	border: 3px solid #fff;
	border-radius: 50%;
}

.tm-single .tm-author-box__name {
	margin: 0 0 7px;
	font-size: 1.35rem;
	line-height: 1.1;
}

.tm-single .tm-author-box__name a {
	color: #fff;
}

.tm-single .tm-author-box__bio p {
	margin: 0 0 10px;
	color: #c8d0dc;
	font-size: 0.88rem;
}

.tm-single .tm-author-box__link {
	color: #ff7772;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.tm-single .tm-author-box,
.tm-single .tm-author-box h2,
.tm-single .tm-author-box p,
.tm-single .tm-author-box a {
	color: #fff;
}

.tm-single .tm-author-box__bio p {
	color: #e0e5ec;
}

.tm-single .entry-content blockquote,
.tm-single .entry-content blockquote p,
.tm-single .entry-content blockquote cite,
.tm-single .entry-content blockquote a {
	color: #fff;
}

.tm-single .tm-related {
	margin-top: 42px;
	padding-top: 24px;
	border-top: 3px solid #151a21;
}

.tm-single .tm-related__title {
	margin: 0 0 18px;
	color: #151a21;
	font-size: clamp(1.65rem, 3vw, 2.25rem);
	line-height: 1;
	letter-spacing: -0.045em;
}

.tm-single .tm-related .tm-card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: stretch;
}

.tm-single .tm-related .tm-card {
	overflow: hidden;
	height: 100%;
	border: 1px solid #dde1e5;
	border-radius: 12px;
	background: #fff;
}

.tm-single .tm-related .tm-card__media {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	margin: 0;
}

.tm-single .tm-related .tm-card__media img,
.tm-single .tm-related .tm-placeholder-img,
.tm-single .tm-related .tm-placeholder-img svg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.tm-single .tm-related .tm-card__body {
	padding: 13px 14px 15px;
}

.tm-single .tm-related .tm-card__title {
	font-size: 1rem;
	line-height: 1.22;
}

@media (max-width: 699px) {
	.tm-layout--single {
		width: min(100% - 24px, var(--tm-container));
		padding-top: 20px;
	}

	.tm-single .tm-single__title {
		font-size: clamp(2.1rem, 10.5vw, 3.15rem);
		line-height: 1.01;
	}

	.tm-single__featured {
		margin-inline: 0;
		border-radius: 10px;
	}

	.tm-single .entry-content {
		font-size: 1.08rem;
		line-height: 1.72;
	}

	.tm-single .tm-author-box {
		grid-template-columns: 1fr;
	}

	.tm-single .tm-related .tm-card-grid {
		grid-template-columns: 1fr;
	}

}

@media (prefers-reduced-motion: reduce) {
	.tm-reading-progress__bar {
		will-change: auto;
	}
}
