/* Conversation list (post list) related */

ul.postlist {
	padding: 0;
}

li.postlist {
	margin: 0;
	padding: 0;
	text-indent: 0;
	list-style-type: none;
	display: block;
}

li.postlist > a {
	cursor: pointer;
	text-decoration: none;
	display: block;
}

li.postlist > a > div {
	display: flex;
	flex-direction: row;
	width: 100%;
	margin: 8px 0 8px 0;
	padding: 8px 8px 6px 8px;
	border-radius: 8px;
	box-sizing: border-box;
	user-select: none;
}

li.postlist > a > div:hover,
li.postlist > a > div:focus,
li.postlist > a > div:active {
	background: var(--post-background);
}

div.postlist-post {
	flex: 1;
	padding: 0 5px;
	display: flex;
}

div.postlist-post-main {
	flex: 1;
	padding-right: 6px;
}

h2.postlist-post-header {
	flex: 1;
	font-weight: 600; /* 600 is SemiBold */
	font-size: inherit;
	color: var(--main-color-50);
	margin: 0;
	padding: 0;
}

div.postlist-post > div.right {
	min-width: 50px;
	color: var(--main-color-200);
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-align: right;
	font-size: 0.7em;
	overflow: visible;
}

div.postlist-post > div.right > .date {
	display: inline-block;
	white-space: nowrap;
}

div.postlist-post > div.right > .date:first-letter {
	text-transform: capitalize;
}

div.postlist-post-foot {
	font-size: inherit;
	color: var(--main-color-200);
	text-overflow: ellipsis;
	overflow: hidden;
	height: 1.3em;
}

.postlist-post .right {
	padding-top: 4px;
}

.new-post {
	background: var(--main-new-notification);
	padding: 3px 6px;
	border-radius: 7px;
	color: #fff;
	margin-bottom: 3px;
}

/* Posts and replies in single conversations */

.new-dot {
	flex: 1;
	text-align: right;
	color: var(--main-new-notification);
	font-size: 0.7em;
}

article.post strong, article.reply strong {
	color: var(--main-color);
	font-weight: 800;
}

article pre {
	background: var(--article-code-background);
	padding: 6px 10px;
	border-radius: 4px;
}

.post-edited-footer {
	color: var(--main-color-200);
	font-size: 0.9em;
	margin: 20px 0 2px 0;
}

.post_actions_footer {
	display: flex;
	flex-direction: row;
	margin: 20px 0 2px -2px;
}

.post_actions_button,
.session_actions_button {
	font-size: 0.9em;
	font-family: inherit;
	font-weight: bold;
	text-decoration: none;
	color: var(--button-weak-color);
	background: var(--button-weak-background);
	border-radius: 4px;
	height: 26px;
	padding: 2px 8px;
	margin-right: 6px;
	display: flex;
	width: fit-content;
	align-items: center;
	cursor: pointer;
	box-sizing: border-box;
}

.post_actions_button:hover, .session_actions_button:hover,
.post_actions_button:active, .session_actions_button:active,
.post_actions_button:focus, .session_actions_button:focus {
	background: var(--button-weak-background-highlighted);
}

.post_actions_button__danger, .session_actions_button__danger {
	color: var(--main-color-danger-light);
}

.post_actions_button svg {
	width: 15px;
	height: 15px;
	margin-right: 6px;
}

/* Posts in single conversations */

.conversation {
	width: 100%;
	min-width: var(--main-min-width);
	max-width: var(--main-max-width);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 12px;
	margin-bottom: 20px;
	box-sizing: border-box;
}

@media only screen and (max-width: 869px) {
	.conversation {
		padding: 0;
		margin-bottom: 20px;
	}
}

article.post {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 8px 0 8px 0;
	padding: 30px 25px;
	border-radius: 8px;
	box-sizing: border-box;
	background: var(--post-background);
	/* box-shadow: 0px 1px 10px 1px var(--post-shadow); */
}

article.post .content {
	word-break: break-word;
	/* white-space: pre-line; */
}

.mainpost_header {
	display: flex;
	word-break: initial;
	white-space: initial;
	padding: 0 0 10px 0;
}
.mainpost_header > .text {
	display: flex;
	flex-direction: column;
}

.mainpost_header > .text > .date {
	display: inline-block;
	color: var(--main-color-200);
	font-size: 0.8em;
}

.mainpost_header > .text > .date:first-letter  {
	text-transform: capitalize;
}

article.post .name  {
	font-weight: bold;
	/* color: var(--main-color-100); */
}

article.post .date {
	display: inline-block;
	color: var(--main-color-200);
}

article.post .date:first-letter {
	text-transform: capitalize;
}

article.post h1 {
	margin: 0;
	font-size: 1.6em;
	font-weight: normal;
	font-family: inherit;
	padding: 0 0 6px 0;
	color: var(--main-color);
}

@media only screen and (max-width: 869px) {
	article.post {
		display: flex;
		flex-direction: column;
		box-sizing: border-box;
		margin-top: 0;
		padding-top: 20px;
		border-radius: 0;
	}
	.mainpost_header {
		padding: 0 0 20px 0;
		margin-top: -6px;
	}
	article.post .new-dot {
		font-size: 1em;
	}
}

@media (prefers-color-scheme: dark) {
	article.post {
		color: var(--main-color-100);
	}
}

/* Replies in single conversations */

article.reply > .reply > .header {
	display: flex;
	flex-direction: row;
}

article.reply > .reply > .header > .date {
	margin-left: 8px;
	font-size: 0.8em;
	margin-top: 2px;
}

article.reply {
	display: flex;
	flex-direction: row;
	margin: 5px 0;
	padding: 0;
	width: 100%;
}

article.reply .header {
	margin-bottom: -4px;
}

article.reply .name  {
	font-weight: bold;
	/* color: var(--main-color-100); */
}

article.reply .date {
	display: inline-block;
	color: var(--main-color-200);
}

article.reply .date:first-letter {
	text-transform: capitalize;
}

article.reply .reply {
	background: var(--post-background-weak);
	/* box-shadow: 0px 1px 10px 1px var(--post-shadow); */
	border-radius: 8px;
	padding: 20px 25px;
	width: 100%;
	line-height: initial;
}

article.reply .content {
	word-break: break-word;
	line-height: 1.4;
}

.content > p:last-of-type {
	margin-bottom: 6px;
}

.content__removed {
	color: var(--main-color-300);
	font-size: 0.9em;
	padding: 10px;
	text-align: center;
}

@media only screen and (max-width: 869px) {
	article.reply {
		display: flex;
		flex-direction: row;
		padding: 0 10px;
		box-sizing: border-box;
	}
	article.reply .reply {
		padding: 15px;
	}
	article.reply .new-dot {
		font-size: 1em;
	}
}
