/* G6M_BUNDLE_08 — 3 feuilles, ordre du document preserve */
/* ==== g6m-sidebar-latest-replies-premium-v246.css ==== */
/* G6M_SIDEBAR_LATEST_REPLIES_PREMIUM_V320
   Premium card skin for widget key g6m_sidebar_latest_replies (Derniers sujets).
   CSS-only layout/visuals — XenForo widget logic unchanged.
   --g6m-lr: V320
*/

html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"],
html body [data-widget-key="g6m_sidebar_latest_replies"] {
	--g6m-lr-bg: #0f0b18;
	--g6m-lr-card: rgba(255, 255, 255, 0.03);
	--g6m-lr-card-hover: rgba(139, 61, 255, 0.08);
	--g6m-lr-violet: #8b3dff;
	--g6m-lr-violet-bright: #b47aff;
	--g6m-lr-violet-soft: rgba(139, 61, 255, 0.35);
	--g6m-lr-violet-ghost: rgba(139, 61, 255, 0.14);
	--g6m-lr-ink: #ffffff;
	--g6m-lr-muted: #c8c4d8;
	--g6m-lr-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--g6m-lr-t: 250ms;
}

/* —— Shell —— */
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .block-container,
html body [data-widget-key="g6m_sidebar_latest_replies"] .block-container {
	background: var(--g6m-lr-bg) !important;
	border: 1px solid var(--g6m-lr-violet-soft) !important;
	border-radius: 16px !important;
	box-shadow:
		0 10px 28px rgba(0, 0, 0, 0.35),
		0 0 0 1px rgba(139, 61, 255, 0.06) inset !important;
	overflow: hidden !important;
	padding: 0 !important;
}

/* —— Header —— */
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader,
html body [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader {
	display: flex !important;
	align-items: center !important;
	gap: 0.65rem !important;
	margin: 0 !important;
	padding: 1rem 1.1rem 0.95rem !important;
	border-bottom: 1px solid var(--g6m-lr-violet-soft) !important;
	background: transparent !important;
	font-family: Rajdhani, "Segoe UI", system-ui, sans-serif !important;
	font-size: 0.95rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	color: var(--g6m-lr-ink) !important;
	line-height: 1.2 !important;
}

html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader a,
html body [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader a {
	color: inherit !important;
	text-decoration: none !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 0.65rem !important;
	outline: none !important;
}

html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader a:hover,
html body [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader a:hover {
	color: var(--g6m-lr-violet-bright) !important;
	text-decoration: none !important;
}

html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader a:focus-visible,
html body [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader a:focus-visible {
	box-shadow: 0 0 0 2px var(--g6m-lr-violet-bright) !important;
	border-radius: 6px !important;
}

/* Heroicons-style chat bubble (violet) */
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader a::before,
html body [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader a::before {
	content: "" !important;
	display: inline-block !important;
	width: 18px !important;
	height: 18px !important;
	flex: 0 0 18px !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 18px 18px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.8' stroke='%23b47aff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M20.25 8.511c.884.284 1.5 1.128 1.5 2.097v4.286c0 1.136-.847 2.1-1.98 2.193-.34.027-.68.052-1.02.072v3.091l-3-3c-1.354 0-2.694-.055-4.02-.163a2.115 2.115 0 01-.825-.242m9.345-8.334a2.126 2.126 0 00-.476-.095 48.64 48.64 0 00-8.048 0c-1.131.094-1.976 1.057-1.976 2.192v4.286c0 .837.46 1.58 1.155 1.951m9.345-8.334V6.637c0-1.621-1.152-3.026-2.76-3.235A48.455 48.455 0 0011.25 3c-2.115 0-4.198.137-6.24.402-1.608.209-2.76 1.614-2.76 3.235v6.226c0 1.621 1.152 3.026 2.76 3.235.577.075 1.157.14 1.74.194V21l4.155-4.155'/%3E%3C/svg%3E") !important;
	filter: drop-shadow(0 0 6px rgba(139, 61, 255, 0.45));
}

/* Kill UIX / FA duplicate header icons */
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader::before,
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader::after,
html body [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader::before,
html body [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader::after,
html body .p-body-sidebar .block[data-widget-definition="new_posts"][data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader::before,
html body .p-body-sidebar .block[data-widget-definition="new_threads"][data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader::before {
	content: none !important;
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	overflow: hidden !important;
	visibility: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
	background: none !important;
	background-image: none !important;
	-webkit-mask: none !important;
	mask: none !important;
	-webkit-mask-image: none !important;
	mask-image: none !important;
	font-size: 0 !important;
	color: transparent !important;
}

html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader > .fa,
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader .fa,
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader .fa--xf,
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader [class*="fa-"],
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader svg,
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader .g6m-lr__head-ico,
html body [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader > .fa,
html body [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader .fa,
html body [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader .fa--xf,
html body [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader [class*="fa-"],
html body [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader svg,
html body [data-widget-key="g6m_sidebar_latest_replies"] .block-minorHeader .g6m-lr__head-ico {
	display: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	visibility: hidden !important;
}

/* —— List body: air between cards —— */
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .block-body,
html body [data-widget-key="g6m_sidebar_latest_replies"] ul.block-body {
	list-style: none !important;
	margin: 0 !important;
	padding: 14px 14px 16px !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 18px !important;
}

html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .block-row,
html body [data-widget-key="g6m_sidebar_latest_replies"] li.block-row {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

/* —— True topic cards —— */
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow {
	display: flex !important;
	align-items: flex-start !important;
	gap: 14px !important;
	margin: 0 !important;
	padding: 16px !important;
	border: 1px solid rgba(139, 61, 255, 0.22) !important;
	border-radius: 12px !important;
	background: var(--g6m-lr-card) !important;
	box-shadow: none !important;
	transform: translateY(0) !important;
	transition:
		background var(--g6m-lr-t) var(--g6m-lr-ease),
		border-color var(--g6m-lr-t) ease,
		box-shadow var(--g6m-lr-t) ease,
		transform var(--g6m-lr-t) var(--g6m-lr-ease) !important;
}

html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow:hover,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow:hover,
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow:focus-within,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow:focus-within {
	background: var(--g6m-lr-card-hover) !important;
	border-color: var(--g6m-lr-violet-bright) !important;
	transform: translateY(-2px) !important;
	box-shadow:
		0 8px 22px rgba(0, 0, 0, 0.28),
		0 0 18px rgba(139, 61, 255, 0.22) !important;
}

/* —— Avatar 42px —— */
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-figure,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-figure {
	flex: 0 0 42px !important;
	width: 42px !important;
	margin: 0 !important;
	padding: 0 !important;
	align-self: flex-start !important;
}

html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-figure .avatar,
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-figure .avatar img,
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-figure .avatar.avatar--xxs,
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-figure .avatar.avatar--xs,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-figure .avatar,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-figure .avatar img {
	width: 42px !important;
	height: 42px !important;
	min-width: 42px !important;
	min-height: 42px !important;
	max-width: 42px !important;
	max-height: 42px !important;
	border-radius: 50% !important;
	border: 1.5px solid rgba(139, 61, 255, 0.65) !important;
	box-shadow:
		0 0 0 2px rgba(139, 61, 255, 0.12),
		0 0 12px rgba(139, 61, 255, 0.28) !important;
	object-fit: cover !important;
	transition: box-shadow var(--g6m-lr-t) ease !important;
}

html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow:hover .contentRow-figure .avatar,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow:hover .contentRow-figure .avatar {
	box-shadow:
		0 0 0 2px rgba(180, 122, 255, 0.2),
		0 0 16px rgba(139, 61, 255, 0.4) !important;
}

html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-figure .avatar:focus-visible,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-figure .avatar:focus-visible {
	outline: 2px solid var(--g6m-lr-violet-bright) !important;
	outline-offset: 2px !important;
}

/* —— Main column —— */
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main,
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main.contentRow-main--close,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main.contentRow-main--close {
	min-width: 0 !important;
	flex: 1 1 auto !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start !important;
	gap: 8px !important;
}

/* Title */
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main > a,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main > a {
	display: -webkit-box !important;
	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: 2 !important;
	line-clamp: 2 !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--g6m-lr-ink) !important;
	font-family: Rajdhani, "Segoe UI", system-ui, sans-serif !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	letter-spacing: 0.01em !important;
	line-height: 1.35 !important;
	text-decoration: none !important;
	word-break: break-word !important;
	overflow-wrap: anywhere !important;
	transition: color var(--g6m-lr-t) ease !important;
	outline: none !important;
}

html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main > a:hover,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main > a:hover,
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow:hover .contentRow-main > a,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow:hover .contentRow-main > a {
	color: var(--g6m-lr-violet-bright) !important;
	text-decoration: none !important;
}

html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main > a:focus-visible,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main > a:focus-visible {
	color: var(--g6m-lr-violet-bright) !important;
	box-shadow: 0 0 0 2px rgba(180, 122, 255, 0.55) !important;
	border-radius: 4px !important;
}

/* Meta (author • date) */
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-minor,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-minor {
	margin: 0 !important;
	padding: 0 !important;
	font-size: 12.5px !important;
	font-weight: 400 !important;
	line-height: 1.4 !important;
	color: var(--g6m-lr-muted) !important;
	max-width: 100% !important;
}

html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-minor .listInline,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-minor .listInline {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	max-width: 100% !important;
	line-height: 1.4 !important;
	font-size: 12.5px !important;
	color: var(--g6m-lr-muted) !important;
}

html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-minor .listInline--bullet > li::before,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-minor .listInline--bullet > li::before {
	content: none !important;
	display: none !important;
}

html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-minor .listInline > li,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-minor .listInline > li {
	display: inline !important;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--g6m-lr-muted) !important;
	font-weight: 400 !important;
	white-space: normal !important;
}

/* Prefer collapsing author label first if space is tight */
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-minor .listInline > li:first-child,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-minor .listInline > li:first-child {
	overflow: visible !important;
	flex: none !important;
}

html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-minor .listInline > li + li::before,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-minor .listInline > li + li::before {
	content: " • " !important;
	display: inline !important;
	margin: 0 !important;
	opacity: 0.7 !important;
	color: var(--g6m-lr-muted) !important;
}

html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .g6m-lr__ico,
html body [data-widget-key="g6m_sidebar_latest_replies"] .g6m-lr__ico {
	display: none !important;
}

/* Category badge */
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-minor:not(:has(.listInline)) > a,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-minor:not(:has(.listInline)) > a,
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main > .contentRow-minor + .contentRow-minor a,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main > .contentRow-minor + .contentRow-minor a,
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .g6m-lr__badge,
html body [data-widget-key="g6m_sidebar_latest_replies"] .g6m-lr__badge {
	display: inline-flex !important;
	align-items: center !important;
	gap: 0.35rem !important;
	max-width: 100% !important;
	margin-top: 2px !important;
	padding: 0.28rem 0.7rem !important;
	border-radius: 8px !important;
	border: 1px solid rgba(139, 61, 255, 0.38) !important;
	background: var(--g6m-lr-violet-ghost) !important;
	color: var(--g6m-lr-violet-bright) !important;
	font-family: Rajdhani, "Segoe UI", system-ui, sans-serif !important;
	font-size: 0.75rem !important;
	font-weight: 600 !important;
	letter-spacing: 0.03em !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	outline: none !important;
	transition:
		background var(--g6m-lr-t) ease,
		border-color var(--g6m-lr-t) ease,
		color var(--g6m-lr-t) ease,
		box-shadow var(--g6m-lr-t) ease !important;
}

html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .g6m-lr__badge::before,
html body [data-widget-key="g6m_sidebar_latest_replies"] .g6m-lr__badge::before,
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main > .contentRow-minor + .contentRow-minor a::before,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main > .contentRow-minor + .contentRow-minor a::before {
	content: "" !important;
	display: inline-block !important;
	width: 11px !important;
	height: 11px !important;
	flex: 0 0 11px !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 11px 11px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='%23b47aff'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M9.568 3H5.25A2.25 2.25 0 003 5.25v4.318c0 .597.237 1.17.659 1.591l9.581 9.581c.699.699 1.78.872 2.607.33a18.095 18.095 0 005.223-5.223c.542-.827.369-1.908-.33-2.607L11.16 3.66A2.25 2.25 0 009.568 3z'/%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 6h.008v.008H6V6z'/%3E%3C/svg%3E") !important;
}

html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-minor:not(:has(.listInline)) > a:hover,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-minor:not(:has(.listInline)) > a:hover,
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main > .contentRow-minor + .contentRow-minor a:hover,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main > .contentRow-minor + .contentRow-minor a:hover,
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .g6m-lr__badge:hover,
html body [data-widget-key="g6m_sidebar_latest_replies"] .g6m-lr__badge:hover {
	background: rgba(139, 61, 255, 0.24) !important;
	border-color: var(--g6m-lr-violet-bright) !important;
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: 0 0 12px rgba(139, 61, 255, 0.25) !important;
}

html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .g6m-lr__badge:focus-visible,
html body [data-widget-key="g6m_sidebar_latest_replies"] .g6m-lr__badge:focus-visible,
html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main > .contentRow-minor + .contentRow-minor a:focus-visible,
html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main > .contentRow-minor + .contentRow-minor a:focus-visible {
	box-shadow: 0 0 0 2px var(--g6m-lr-violet-bright) !important;
}

/* —— Mobile —— */
@media (max-width: 560px) {
	html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .block-body,
	html body [data-widget-key="g6m_sidebar_latest_replies"] ul.block-body {
		padding: 12px !important;
		gap: 16px !important;
	}

	html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow,
	html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow {
		padding: 14px !important;
		gap: 12px !important;
	}

	html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main > a,
	html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main > a {
		font-size: 15px !important;
	}

	html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-minor .listInline,
	html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-minor .listInline {
		display: block !important;
	}

	html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .g6m-lr__badge,
	html body [data-widget-key="g6m_sidebar_latest_replies"] .g6m-lr__badge,
	html body .p-body-sidebar [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main > .contentRow-minor + .contentRow-minor a,
	html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main > .contentRow-minor + .contentRow-minor a {
		white-space: normal !important;
		max-width: 100% !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow,
	html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-figure .avatar,
	html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow-main > a,
	html body [data-widget-key="g6m_sidebar_latest_replies"] .g6m-lr__badge {
		transition: none !important;
	}

	html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow:hover,
	html body [data-widget-key="g6m_sidebar_latest_replies"] .contentRow:focus-within {
		transform: none !important;
	}
}

/* END G6M_SIDEBAR_LATEST_REPLIES_PREMIUM_V320 */

/* ==== g6m-latest-sujets-home-only-v343.css ==== */
/* G6M_LATEST_SUJETS_HOME_ONLY_V353
   Hide latest-replies sidebar widget outside forum homepage.
   XF 2.3: data-template / template-* live on <html>, not <body>.
*/
html:not([data-template="forum_list"]):not(.template-forum_list) [data-widget-key="g6m_sidebar_latest_replies"],
html:not([data-template="forum_list"]):not(.template-forum_list) .block[data-widget-key="g6m_sidebar_latest_replies"],
html.template-thread_view [data-widget-key="g6m_sidebar_latest_replies"],
html.template-forum_view [data-widget-key="g6m_sidebar_latest_replies"],
html.template-category_view [data-widget-key="g6m_sidebar_latest_replies"],
html.template-whats_new_posts [data-widget-key="g6m_sidebar_latest_replies"],
html[data-template="thread_view"] [data-widget-key="g6m_sidebar_latest_replies"],
html[data-template="forum_view"] [data-widget-key="g6m_sidebar_latest_replies"],
html[data-template="category_view"] [data-widget-key="g6m_sidebar_latest_replies"],
html[data-template="whats_new_posts"] [data-widget-key="g6m_sidebar_latest_replies"] {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	max-height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

/* ==== g6m-thread-fullwidth-v344.css ==== */
/* G6M_THREAD_FULLWIDTH_V344
   When sidebar has no widgets, content expands to fill the row
   (fixes empty black gap on thread_view after home-only sidebar widgets).
*/

@media (min-width: 901px) {
	/* Empty sidebar → single column full width */
	html body .p-body-main.p-body-main--withSidebar:not(:has(.p-body-sidebar .block)),
	html body .p-body-main.p-body-main--withSidebar:not(:has(.p-body-sidebar [data-widget-key])),
	html body .p-body-main.p-body-main--withSidebar:not(:has(.p-body-sidebar .block-container)) {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		column-gap: 0 !important;
	}

	html body .p-body-main.p-body-main--withSidebar:not(:has(.p-body-sidebar .block)) > .p-body-sidebar,
	html body .p-body-main.p-body-main--withSidebar:not(:has(.p-body-sidebar [data-widget-key])) > .p-body-sidebar,
	html body .p-body-main.p-body-main--withSidebar:not(:has(.p-body-sidebar .block-container)) > .p-body-sidebar {
		display: none !important;
		width: 0 !important;
		min-width: 0 !important;
		max-width: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
	}

	html body .p-body-main.p-body-main--withSidebar:not(:has(.p-body-sidebar .block)) > .p-body-content,
	html body .p-body-main.p-body-main--withSidebar:not(:has(.p-body-sidebar [data-widget-key])) > .p-body-content,
	html body .p-body-main.p-body-main--withSidebar:not(:has(.p-body-sidebar .block-container)) > .p-body-content {
		grid-column: 1 / -1 !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
	}

	/* Thread / forum / category: always fill content track */
	html body[data-template="thread_view"] .p-body-content,
	html body[data-template="thread_view"] .p-body-pageContent,
	html body[data-template="thread_view"] .p-body-pageContent > .block,
	html body[data-template="thread_view"] .p-body-pageContent > .block > .block-container,
	html body.template-thread_view .p-body-content,
	html body.template-thread_view .p-body-pageContent,
	html body.template-thread_view .p-body-pageContent > .block,
	html body.template-thread_view .p-body-pageContent > .block > .block-container {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	html body[data-template="thread_view"] .message,
	html body[data-template="thread_view"] .message-inner,
	html body[data-template="thread_view"] .message-main,
	html body[data-template="thread_view"] .message-content,
	html body.template-thread_view .message,
	html body.template-thread_view .message-inner,
	html body.template-thread_view .message-main,
	html body.template-thread_view .message-content {
		max-width: 100% !important;
	}
}

/* Explicit thread_view: no reserved sidebar column */
@media (min-width: 901px) {
	html body[data-template="thread_view"] .p-body-main.p-body-main--withSidebar:not(:has(.p-body-sidebar .block)),
	html body.template-thread_view .p-body-main.p-body-main--withSidebar:not(:has(.p-body-sidebar .block)) {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* END G6M_THREAD_FULLWIDTH_V344 */
