/* Topic Insights 1.0.0 build 10005 */
.topicInsights {
	--ti-border: rgba(127, 127, 127, 0.26);
	--ti-muted: rgba(92, 101, 112, 0.9);
	--ti-hover: rgba(127, 127, 127, 0.1);
	--ti-soft: rgba(127, 127, 127, 0.07);
	--ti-shadow: 0 7px 22px rgba(0, 0, 0, 0.055);
	--ti-radius: 12px;
	position: relative;
	display: block;
	clear: both;
	width: auto;
	min-width: 0;
	margin: 1rem 0 1.3rem;
	padding: 0;
	border: 1px solid var(--ti-border);
	border-radius: var(--ti-radius);
	color: inherit;
	box-shadow: var(--ti-shadow);
	overflow: hidden;
	isolation: isolate;
	container-type: inline-size;
}

/* Curve and some third-party themes give all #forumposts .windowbg elements
   post-card layout rules. Topic Insights is a full-width component instead. */
#forumposts .topicInsights,
#topic_container #forumposts .topicInsights {
	display: block;
	overflow: hidden;
}

.topicInsights-js .topicInsights:not(.is-mounted) {
	display: none;
}

@supports (color: color-mix(in srgb, currentColor 50%, transparent)) {
	.topicInsights {
		--ti-border: color-mix(in srgb, currentColor 22%, transparent);
		--ti-muted: color-mix(in srgb, currentColor 62%, transparent);
		--ti-hover: color-mix(in srgb, currentColor 9%, transparent);
		--ti-soft: color-mix(in srgb, currentColor 6%, transparent);
	}
}

.topicInsights strong,
.topicInsights h2,
.topicInsights h3,
.topicInsights h4 {
	color: inherit;
}

.topicInsights h3 {
	font-weight: 700;
}

.topicInsights a {
	text-underline-offset: 0.16em;
}

.topicInsights[hidden],
.topicInsights_details[hidden] {
	display: none !important;
}

.topicInsights_visuallyHidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Collapsed summary: statistics, contributors and popular days in one line. */
.topicInsights_compact {
	display: grid;
	min-height: 104px;
	align-items: stretch;
}

.topicInsights_compact--withToggle.topicInsights_compact--count-3 {
	grid-template-columns: minmax(350px, 1.25fr) minmax(220px, 0.9fr) minmax(220px, 0.9fr) 48px;
}

.topicInsights_compact--withoutToggle.topicInsights_compact--count-3 {
	grid-template-columns: minmax(350px, 1.25fr) repeat(2, minmax(220px, 0.9fr));
}

.topicInsights_compact--withToggle.topicInsights_compact--count-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr)) 48px;
}

.topicInsights_compact--withoutToggle.topicInsights_compact--count-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.topicInsights_compact--withToggle.topicInsights_compact--count-1 {
	grid-template-columns: minmax(0, 1fr) 48px;
}

.topicInsights_compact--withoutToggle.topicInsights_compact--count-1 {
	grid-template-columns: minmax(0, 1fr);
}

.topicInsights_compact > :not(.topicInsights_toggle) {
	min-width: 0;
	border-inline-end: 1px solid var(--ti-border);
}

.topicInsights_compact--withoutToggle > :last-child {
	border-inline-end: 0;
}

.topicInsights_stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(74px, 1fr));
	align-items: stretch;
}

.topicInsights_stat {
	display: flex;
	min-width: 0;
	padding: 0.9rem 0.52rem;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	text-align: center;
}

.topicInsights_stat span,
.topicInsights_posterText span,
.topicInsights_dayChip span,
.topicInsights_dayList span,
.topicInsights_postCard header span:not(.topicInsights_likeCount) {
	display: block;
	color: var(--ti-muted);
	font-size: 0.88em;
	line-height: 1.35;
}

.topicInsights_stat strong {
	display: block;
	max-width: 100%;
	margin-top: 0.3rem;
	font-size: 1.3em;
	line-height: 1.15;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.topicInsights_compactSection {
	display: flex;
	min-width: 0;
	padding: 0.92rem 1.08rem;
	justify-content: center;
	flex-direction: column;
}

.topicInsights_compactSection h3,
.topicInsights_detailSection h3,
.topicInsights_popularPosts h3 {
	margin: 0 0 0.66rem;
	font-size: 1em;
	line-height: 1.25;
}

.topicInsights_avatarRow,
.topicInsights_dayStrip {
	display: flex;
	min-width: 0;
	min-height: 40px;
	align-items: center;
	overflow: hidden;
}

.topicInsights_avatarRow {
	gap: 0.58rem;
}

.topicInsights_avatarWrap {
	display: inline-flex;
	flex: 0 0 auto;
}

.topicInsights_avatar,
.topicInsights_popularChipAvatar {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--ti-border);
	border-radius: 50%;
	background: var(--ti-soft);
	color: inherit;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	overflow: hidden;
}

.topicInsights_avatar {
	width: 46px;
	height: 46px;
	flex: 0 0 46px;
	transition: transform 160ms ease, box-shadow 160ms ease;
}

.topicInsights_avatar--compact {
	width: 40px;
	height: 40px;
	flex-basis: 40px;
}

.topicInsights_avatarFallback {
	display: inline-flex;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
	font-size: 0.86em;
	text-transform: uppercase;
}

.topicInsights_avatar img,
.topicInsights_popularChipAvatar img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: inherit;
}

.topicInsights_avatar.has-avatar-error img,
.topicInsights_popularChipAvatar.has-avatar-error img {
	display: none;
}

.topicInsights_avatar:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.13);
}

.topicInsights_moreCount {
	display: inline-flex;
	width: 34px;
	height: 34px;
	flex: 0 0 34px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--ti-border);
	border-radius: 999px;
	background: var(--ti-soft);
	color: var(--ti-muted);
	font-size: 0.84em;
	font-weight: 700;
}

.topicInsights_dayStrip {
	gap: clamp(0.72rem, 2vw, 1.35rem);
}

.topicInsights_dayChip,
.topicInsights_dayList a {
	display: block;
	min-width: 0;
	color: inherit;
	text-decoration: none;
}

.topicInsights_dayChip {
	flex: 0 1 auto;
}

.topicInsights_dayChip strong,
.topicInsights_dayList strong {
	display: block;
	white-space: nowrap;
}

.topicInsights_moreCount--days {
	width: auto;
	min-width: 34px;
	padding-inline: 0.56rem;
}

.topicInsights_popularStrip {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 0.62rem;
	overflow: hidden;
}

.topicInsights_popularChip {
	display: grid;
	min-width: 0;
	max-width: 220px;
	padding: 0.38rem 0.5rem;
	grid-template-columns: 30px minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.46rem;
	border: 1px solid var(--ti-border);
	border-radius: 999px;
	background: var(--ti-soft);
	color: inherit;
	text-decoration: none;
}

.topicInsights_popularChip:hover {
	background: var(--ti-hover);
}

.topicInsights_popularChipAvatar {
	width: 30px;
	height: 30px;
	font-size: 0.8em;
}

.topicInsights_popularChipName {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.topicInsights_popularChipLikes {
	color: var(--ti-muted);
	font-size: 0.84em;
	white-space: nowrap;
}

.topicInsights_compactNotice p {
	margin: 0;
	color: var(--ti-muted);
	line-height: 1.45;
}

/* Expand/collapse controls. */
.topicInsights_toggle,
.topicInsights_collapse {
	appearance: none;
	display: flex;
	height: auto;
	min-height: 44px;
	padding: 0;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	line-height: normal;
	cursor: pointer;
}

.topicInsights_toggle {
	min-width: 48px;
	align-self: stretch;
	border-inline-start: 1px solid var(--ti-border);
	background: var(--ti-soft);
}

.topicInsights_toggle:hover,
.topicInsights_toggle:focus,
.topicInsights_collapse:hover,
.topicInsights_collapse:focus {
	background: var(--ti-hover);
}

.topicInsights_toggle:focus-visible,
.topicInsights_collapse:focus-visible,
.topicInsights a:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: -3px;
}

.topicInsights_toggleIcon {
	display: block;
	width: 10px;
	height: 10px;
	border-inline-end: 3px solid currentColor;
	border-block-end: 3px solid currentColor;
	transform: rotate(45deg) translate(-2px, -2px);
	transition: transform 160ms ease;
	opacity: 0.7;
}

.topicInsights.is-expanded .topicInsights_toggleIcon,
.topicInsights_collapse .topicInsights_toggleIcon {
	transform: rotate(225deg) translate(-2px, -2px);
}

/* Expanded mode keeps the useful statistics bar, then shows full detail once. */
.topicInsights.is-expanded .topicInsights_compact {
	display: block;
	min-height: 0;
}

.topicInsights.is-expanded .topicInsights_compactSection,
.topicInsights.is-expanded .topicInsights_toggle {
	display: none;
}

.topicInsights.is-expanded .topicInsights_stats {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-inline-end: 0;
}

.topicInsights.is-expanded.topicInsights--withoutStats .topicInsights_compact {
	display: none;
}

/* Expanded details. */
.topicInsights_details {
	border-block-start: 1px solid var(--ti-border);
}

.topicInsights--withoutStats .topicInsights_details {
	border-block-start: 0;
}

.topicInsights_detailsTop {
	display: grid;
}

.topicInsights_detailsTop--count-2 {
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
}

.topicInsights_detailsTop--count-1 {
	grid-template-columns: minmax(0, 1fr);
}

.topicInsights_detailSection {
	min-width: 0;
	padding: 1.28rem 1.4rem;
}

.topicInsights_detailSection + .topicInsights_detailSection {
	border-inline-start: 1px solid var(--ti-border);
}

.topicInsights_posterGrid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.1rem clamp(1.2rem, 4vw, 2.7rem);
}

.topicInsights_poster {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 0.8rem;
}

.topicInsights_posterText,
.topicInsights_postIdentity {
	min-width: 0;
}

.topicInsights_posterText strong,
.topicInsights_postIdentity strong {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.topicInsights_posterText a,
.topicInsights_postIdentity a,
.topicInsights_postCard a {
	color: inherit;
	text-decoration: none;
}

.topicInsights_posterText a:hover,
.topicInsights_posterText a:focus-visible,
.topicInsights_postIdentity a:hover,
.topicInsights_postIdentity a:focus-visible,
.topicInsights_postCard a:hover,
.topicInsights_postCard a:focus-visible {
	text-decoration: underline;
}

.topicInsights_dayList {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.7rem;
}

.topicInsights_dayList a {
	padding: 0.58rem 0.62rem;
	border-radius: 8px;
	transition: background-color 160ms ease;
}

.topicInsights_dayList a:hover {
	background: var(--ti-hover);
}

.topicInsights_popularPosts {
	padding: 1.28rem 1.4rem;
	border-block-start: 1px solid var(--ti-border);
}

.topicInsights_postGrid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
}

.topicInsights_postGrid--count-1 {
	grid-template-columns: minmax(0, 1fr);
}

.topicInsights_postGrid--count-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.topicInsights_postCard {
	position: relative;
	display: flex;
	min-width: 0;
	padding: 0.58rem clamp(0.9rem, 2.2vw, 1.35rem);
	flex-direction: column;
	border-radius: 8px;
	transition: background-color 160ms ease;
}

.topicInsights_postCard:first-child {
	padding-inline-start: 0;
}

.topicInsights_postCard:last-child {
	padding-inline-end: 0;
}

.topicInsights_postCard + .topicInsights_postCard {
	border-inline-start: 1px solid var(--ti-border);
}

.topicInsights_postGrid--count-3 .topicInsights_postCard:nth-child(3n + 1) {
	padding-inline-start: 0;
	border-inline-start: 0;
}

.topicInsights_postGrid--count-3 .topicInsights_postCard:nth-child(3n) {
	padding-inline-end: 0;
}

.topicInsights_postGrid--count-3 .topicInsights_postCard:nth-child(n + 4) {
	margin-block-start: 0.9rem;
	padding-block-start: 0.9rem;
	border-block-start: 1px solid var(--ti-border);
}

.topicInsights_postCard:hover {
	background: var(--ti-hover);
}

.topicInsights_postCard header {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.7rem;
}

.topicInsights_postCard p {
	margin: 0.86rem 0 0.68rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.topicInsights_likeCount {
	display: inline-flex;
	min-height: 27px;
	padding-inline: 0.52rem;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--ti-soft);
	white-space: nowrap;
	font-size: 0.84em;
}

.topicInsights_postLink {
	margin-top: auto;
	font-weight: 700;
	text-decoration: none;
}

[dir="rtl"] .topicInsights_postLinkIcon {
	display: inline-block;
	transform: scaleX(-1);
}

.topicInsights_collapse {
	width: 100%;
	height: 44px;
	border-block-start: 1px solid var(--ti-border);
	background: var(--ti-soft);
}

.topicInsights_notice {
	margin: 0;
	padding: 1.4rem;
	text-align: center;
	color: var(--ti-muted);
}

/* Sidebar themes can still retain the compact one-row design until it would
   become genuinely cramped. */
@container (max-width: 900px) {
	.topicInsights_compact--withToggle.topicInsights_compact--count-3 {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 48px;
	}

	.topicInsights_compact--withoutToggle.topicInsights_compact--count-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.topicInsights_compact--count-3 .topicInsights_stats {
		grid-column: 1 / -1;
		border-inline-end: 0;
		border-block-end: 1px solid var(--ti-border);
	}

	.topicInsights_compact--count-3 .topicInsights_toggle {
		grid-column: 3;
		grid-row: 2;
	}

	.topicInsights.is-expanded .topicInsights_stats {
		border-block-end: 0;
	}

	.topicInsights_postGrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.86rem;
	}

	.topicInsights_postGrid .topicInsights_postCard {
		padding: 0.9rem;
		border: 1px solid var(--ti-border);
	}
}

/* Narrow/mobile: one column, with a full-width expansion control. */
@container (max-width: 620px) {
	.topicInsights_compact,
	.topicInsights_compact--withToggle.topicInsights_compact--count-3,
	.topicInsights_compact--withoutToggle.topicInsights_compact--count-3,
	.topicInsights_compact--withToggle.topicInsights_compact--count-2,
	.topicInsights_compact--withoutToggle.topicInsights_compact--count-2,
	.topicInsights_compact--withToggle.topicInsights_compact--count-1,
	.topicInsights_compact--withoutToggle.topicInsights_compact--count-1 {
		grid-template-columns: minmax(0, 1fr);
	}

	.topicInsights_compact > :not(.topicInsights_toggle) {
		grid-column: 1;
		border-inline-end: 0;
		border-block-end: 1px solid var(--ti-border);
	}

	.topicInsights_compact > :last-child:not(.topicInsights_toggle),
	.topicInsights_compact--withToggle > :nth-last-child(2) {
		border-block-end: 0;
	}

	.topicInsights_compact .topicInsights_toggle {
		grid-column: 1;
		grid-row: auto;
		width: 100%;
		height: 42px;
		border-inline-start: 0;
		border-block-start: 1px solid var(--ti-border);
	}

	.topicInsights_stats,
	.topicInsights_compact--count-3 .topicInsights_stats,
	.topicInsights.is-expanded .topicInsights_stats {
		grid-column: 1;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.topicInsights.is-expanded .topicInsights_stats {
		border-block-end: 0;
	}

	.topicInsights_detailSection + .topicInsights_detailSection {
		border-inline-start: 0;
		border-block-start: 1px solid var(--ti-border);
	}

	.topicInsights_detailsTop,
	.topicInsights_detailsTop--count-2,
	.topicInsights_detailsTop--count-1,
	.topicInsights_postGrid,
	.topicInsights_postGrid--count-1,
	.topicInsights_postGrid--count-2 {
		grid-template-columns: minmax(0, 1fr);
	}

	.topicInsights_posterGrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.topicInsights_postGrid {
		gap: 0.78rem;
	}

	.topicInsights_postGrid .topicInsights_postCard,
	.topicInsights_postCard:first-child,
	.topicInsights_postCard:last-child {
		padding: 0.88rem;
		border: 1px solid var(--ti-border);
	}
}

@container (max-width: 430px) {
	.topicInsights_stat {
		padding: 0.76rem 0.4rem;
	}

	.topicInsights_stat strong {
		font-size: 1.16em;
	}

	.topicInsights_compactSection,
	.topicInsights_detailSection,
	.topicInsights_popularPosts {
		padding: 0.98rem;
	}

	.topicInsights_avatarRow {
		gap: 0.45rem;
	}

	.topicInsights_avatar--compact {
		width: 37px;
		height: 37px;
		flex-basis: 37px;
	}

	.topicInsights_posterGrid,
	.topicInsights_dayList {
		grid-template-columns: minmax(0, 1fr);
	}

	.topicInsights_dayStrip,
	.topicInsights_popularStrip {
		align-items: flex-start;
		flex-wrap: wrap;
		gap: 0.62rem 0.9rem;
	}

	.topicInsights_popularChip {
		max-width: 100%;
		flex: 1 1 210px;
	}

	.topicInsights_postCard header {
		grid-template-columns: 42px minmax(0, 1fr) auto;
	}

	.topicInsights_postCard .topicInsights_avatar {
		width: 42px;
		height: 42px;
		flex-basis: 42px;
	}
}

/* Viewport fallback for browsers without container queries. */
@media (max-width: 620px) {
	@supports not (container-type: inline-size) {
		.topicInsights_compact,
		.topicInsights_detailsTop,
		.topicInsights_postGrid {
			grid-template-columns: minmax(0, 1fr);
		}

		.topicInsights_stats {
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}
	}
}

@media (prefers-reduced-motion: reduce) {
	.topicInsights *,
	.topicInsights *::before,
	.topicInsights *::after {
		scroll-behavior: auto !important;
		transition: none !important;
		animation: none !important;
	}
}

@media (forced-colors: active) {
	.topicInsights,
	.topicInsights_avatar,
	.topicInsights_moreCount,
	.topicInsights_postCard,
	.topicInsights_likeCount {
		border-color: CanvasText;
	}

	.topicInsights_toggle:focus-visible,
	.topicInsights_collapse:focus-visible,
	.topicInsights a:focus-visible {
		outline-color: Highlight;
	}
}

@media print {
	.topicInsights {
		break-inside: avoid;
		box-shadow: none;
	}

	.topicInsights_details[hidden] {
		display: block !important;
	}

	.topicInsights_compactSection,
	.topicInsights_toggle,
	.topicInsights_collapse,
	.topicInsights_postLink {
		display: none !important;
	}

	.topicInsights_postCard {
		background: transparent !important;
	}
}

/* Avatars Display Integration bridge for Top Posters. */
.topicInsights_avatar--adi > .adi_item_costum {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	margin: 0 !important;
	padding: 0;
}

.topicInsights_avatar--adi > .adi_item_costum > a[data-adi="href"],
.topicInsights_avatar--adi > .adi_item_costum > .avatar,
.topicInsights_avatar--adi > .adi_item_costum > a[data-adi="href"] > .avatar {
	width: 100%;
	height: 100%;
	margin: 0 !important;
	border: 0;
	border-radius: inherit;
}

.topicInsights_avatar--adi .avatar {
	max-width: none !important;
	max-height: none !important;
	object-fit: cover;
}

.topicInsights_avatar--adi [data-adi~="icon"] {
	z-index: 2;
}



/* Topic Insights follow-up refinement hotfix */
.topicInsights_compact {
	min-height: 96px;
}

.topicInsights_stats {
	grid-template-columns: repeat(4, minmax(78px, 1fr));
}

.topicInsights_stat {
	padding: 0.95rem 0.62rem;
}

.topicInsights_compactSection {
	padding: 0.96rem 1.16rem;
}

.topicInsights_compactSection h3 {
	margin-bottom: 0.58rem;
}

.topicInsights_avatarRow {
	gap: 0.5rem;
}

.topicInsights_dayStrip {
	align-items: flex-start;
	gap: 0.95rem;
}

.topicInsights_dayChip {
	display: grid;
	gap: 0.08rem;
}

.topicInsights_toggle {
	min-width: 46px;
}

@media (max-width: 900px) {
	.topicInsights_compact--withToggle.topicInsights_compact--count-3,
	.topicInsights_compact--withoutToggle.topicInsights_compact--count-3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.topicInsights_compact > :not(.topicInsights_toggle) {
		border-inline-end: 0;
		border-bottom: 1px solid var(--ti-border);
	}

	.topicInsights_toggle {
		width: 100%;
		min-height: 46px;
		border-inline-start: 0;
		border-top: 1px solid var(--ti-border);
	}
}
