/* =========================================================
   THREAD / MESSAGE PRESENTATION — migrated from vorro-posthead-fix.css
   ========================================================= */
/*
 * Vorro Light V1.3.0 — post date/header alignment
 * Removes legacy float drift and phantom icon spacing.
 */

.vorro-post-head {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px;
	min-height: 38px;
	margin: 0 !important;
	padding: 9px 14px !important;
}

.vorro-post-head-left {
	display: flex;
	align-items: center;
	min-width: 0;
	gap: 6px;
}

.vorro-post-head-right {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	margin-left: auto;
}

/* MyBB posturl template contains .float_right — neutralize it here. */
.vorro-post-head-right .float_right {
	float: none !important;
	margin: 0 !important;
	display: inline-flex;
	align-items: center;
}

.vorro-post-head .post_date {
	display: inline-flex;
	align-items: center;
	margin: 0 !important;
	padding: 0 !important;
	line-height: 1.3;
	white-space: nowrap;
}

/* The icon wrapper must take zero space when MyBB outputs no icon. */
.vorro-post-icon:empty {
	display: none !important;
}

.vorro-post-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	margin: 0 !important;
	padding: 0 !important;
}

.vorro-post-icon img {
	display: block;
	margin: 0 !important;
	vertical-align: middle !important;
}

/* subject_extra follows the date without pushing the entire line */
.vorro-post-head-left > * {
	flex-shrink: 0;
}

.vorro-post-head-left .post_edit {
	white-space: normal;
}

/* Mobile: allow left content to wrap while post number stays right */
@media (max-width: 620px) {
	.vorro-post-head {
		align-items: flex-start !important;
	}

	.vorro-post-head-left {
		flex-wrap: wrap;
	}

	.vorro-post-head .post_date {
		white-space: normal;
	}
}

/* =========================================================
   THREAD / MESSAGE PRESENTATION — migrated from vorro-timestamp-align.css
   ========================================================= */
/*
 * Vorro Light V1.3.2
 * Timestamp alignment correction.
 *
 * The apparent "ghost icon" was actually left padding on .post_head.
 * Align timestamp to the same left edge as post body content.
 */

.vorro-post-head {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.vorro-post-head-left {
	margin-left: 0 !important;
	padding-left: 0 !important;
}

.vorro-post-head .post_date {
	margin-left: 0 !important;
	padding-left: 0 !important;
}

/* If no real post icon exists, absolutely no reserved gap. */
.vorro-post-icon:empty {
	display: none !important;
	width: 0 !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

/* If there IS an icon, only then add a small real gap. */
.vorro-post-icon:not(:empty) {
	margin-right: 2px !important;
}

/* Keep post permalink aligned right without affecting date position. */
.vorro-post-head-right {
	margin-left: auto !important;
	padding-right: 0 !important;
}
