/* Recent Topics
--------------------------------------------- */

#phpbbsection {
	overflow: hidden;
}

/* Desktop view (min-width: 1024px) */
@media screen and (min-width: 1024px) {
	.index-left {
		width: auto;
		overflow: hidden;
	}

	.index-right {
		float: right;
		margin-left: 10px;
		width: 360px; /* Increased width */
		max-height: 90vh;
		overflow-y: auto;
		background-color: #1e1e2f; /* Optional: matches Milk theme */
		padding: 10px;
		border-radius: 6px;
		box-sizing: border-box;
	}
}

/* Mobile view (max-width: 1024px) */
@media only screen and (max-width: 1024px) {
	.index-left,
	.index-right {
		display: block;
		width: 100%;
		margin-left: 0;
	}
}

#recenttopics ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

#recenttopics li.row {
	border-top: none;
	border-bottom: 1px solid #222;
	transition: background 0.15s ease-in-out 0s;
	margin-bottom: 5px;
}

#recenttopics li dl.icon {
	padding-bottom: 0;
}

#recenttopics li.row dl {
	display: flex;
	flex-direction: column;
	padding: 9px 5px 5px 0;
	position: relative;
	box-sizing: border-box;
}

#recenttopics li.row dl:after {
	clear: both;
	content: "";
	display: block;
}

#recenttopics a.topictitle {
	display: block;
	margin-bottom: 1px;
	white-space: normal;        /* allow line wrap */
	word-wrap: break-word;      /* break long words */
	overflow: visible;
	text-overflow: unset;
	color: #ffcc00;             /* Optional: match Milk highlight */
	font-weight: bold;
}

#recenttopics a.forum-link {
	color: #877b69;
	font-size: 10px;
}

#recenttopics dd.lastpost {
	bottom: 3px;
	right: 0;
	line-height: normal;
	display: block;
	min-height: inherit;
	width: auto;
	text-align: right;
	font-size: 11px;
	color: #ccc;
}

#recenttopics dl {
	position: relative;
}

#recenttopics dd.status-icons {
	position: relative; /* was absolute */
	top: auto;
	right: auto;
	margin-top: 5px;
	text-align: right;
}

#recenttopics dd.status-icons > a,
#recenttopics dd.status-icons > span {
	float: right;
	margin-left: 5px;
}

#recenttopics-stop .action-bar {
	margin-bottom: 0.5em;
}

#recenttopics-side .forabg + .action-bar,
#recenttopics-bottom .forabg + .action-bar,
#recenttopics-separate .forabg + .action-bar {
	margin-top: 4px;
}