.tm-single-wrapper {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 0 60px;
}

/* Header banner */
.tm-single-header {
	position: relative;
	min-height: 280px;
	background-size: cover;
	background-position: center;
	background-color: #2b3a4a;
	border-radius: 0 0 8px 8px;
	overflow: hidden;
}

.tm-single-header.no-image {
	background: linear-gradient(135deg, #2b3a4a 0%, #445a70 100%);
}

.tm-single-header-overlay {
	background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
	min-height: 280px;
	display: flex;
	align-items: flex-end;
	padding: 32px;
}

.tm-single-header-inner {
	display: flex;
	align-items: flex-end;
	gap: 20px;
	width: 100%;
}

.tm-org-logo {
	width: 84px;
	height: 84px;
	object-fit: contain;
	background: #fff;
	border-radius: 8px;
	padding: 8px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.25);
	flex-shrink: 0;
}

.tm-single-header-text {
	color: #fff;
}

.tm-ref-badge {
	display: inline-block;
	background: rgba(255,255,255,0.2);
	color: #fff;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.03em;
	margin-bottom: 8px;
}

.tm-single-title {
	margin: 0 0 4px;
	font-size: 28px;
	line-height: 1.25;
	color: #fff;
}

.tm-single-org {
	margin: 0;
	font-size: 15px;
	opacity: 0.9;
}

/* Body */
.tm-single-body {
	margin-top: 28px;
}

.tm-single-meta-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 20px;
	padding: 20px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	margin-bottom: 24px;
}

.tm-meta-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tm-meta-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #50575e;
	font-weight: 600;
}

.tm-download-btn {
	display: inline-block;
	background: #2271b1;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	padding: 12px 22px;
	border-radius: 6px;
	margin-bottom: 28px;
}

.tm-download-btn:hover {
	background: #135e96;
	color: #fff;
}

.tm-single-description {
	line-height: 1.7;
	font-size: 16px;
}

/* Related tenders */
.tm-related-tenders {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 1px solid #e5e5e5;
}

.tm-related-title {
	font-size: 20px;
	margin-bottom: 18px;
}

.tm-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 18px;
}

.tm-related-card {
	display: block;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	background: #fff;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.tm-related-card:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,0.08);
	transform: translateY(-2px);
}

.tm-related-card-image {
	height: 120px;
	background-size: cover;
	background-position: center;
	background-color: #e9edf1;
}

.tm-related-card-image-placeholder {
	background: linear-gradient(135deg, #e9edf1 0%, #d7dee5 100%);
}

.tm-related-card-body {
	padding: 14px;
}

.tm-related-card-body h3 {
	font-size: 15px;
	margin: 4px 0 10px;
	line-height: 1.4;
	color: #1d2327;
}

.tm-ref-badge-small {
	background: #eef1f4;
	color: #444;
	font-size: 11px;
}

.tm-related-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.tm-related-date {
	font-size: 12px;
	color: #667085;
}

@media (max-width: 600px) {
	.tm-single-header-inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.tm-single-title {
		font-size: 22px;
	}
}
