:root {
	color-scheme: light dark;
}

body {
	margin: 8px;
	font-family: sans-serif;
}
.mainHeader {
	margin: -8px -8px 0 -8px;
	padding: 8px;
	border-bottom: 1px solid rgba(0,0,0,.24);
	box-shadow: 0 1px 3px rgba(0,0,0,.24);
	background-color: #81D4FA;
}
.mainHeader:after {
	content: "";
	clear: both;
	display: block;
}
.mainHeader > .left {
	float: inline-start;
}
.mainHeader > .right {
	float: inline-end;
}
.mainHeader a {
	text-decoration: none;
	color: black;
}
.mainHeader a:hover {
	text-decoration: underline;
}
.mainHeader .actionList.left > * {
	margin-inline-end: 1em;
}

.actionList > * {
	margin-inline-end: .5em;
}
.actionList.small {
	font-size: .8em;
}
.actionList.small > a {
	color: #444;
}

.siteName {
	font-weight: bold;
	font-size: 1.2em;
	margin-inline-end: 1em;
	margin-inline-start: 1.4em;
}

.leftLinksMobile {
	position: absolute;
	display: inline-block;
	margin-inline-end: 1em;
	line-height: 1.5em;
	left: 0;
}

.leftLinksMobile > summary {
	margin-inline-start: 8px;
	list-style: none;
}

.leftLinksMobile > div {
	background-color: #81D4FA;
	padding: .5em;
}

.leftLinksMobile > div > * {
	display: block;
}

.errorBox, .infoBox {
	padding: .5em;
	display: inline-block;
	margin-top: .5em;
	margin-bottom: .5em;
}

.errorBox {
	background-color: #FF6D00;
}

.infoBox {
	background-color: #80D8FF;
}

.communitySidebar {
	float: inline-end;
	width: 300px;
}

.communityBaseInfo > h2 {
	margin-bottom: 0;
}

.notification-item .body {
	margin-inline-start: 1em;
}

.notification-item.unread {
	border-inline-start: 5px solid #FDD835;
	padding-inline-start: 5px;
}

.sortOptions, .timeframeOptions {
	margin-top: 1em;
}

.sortOptions > *, .timeframeOptions > * {
	margin-inline-end: .5em;
}

.preview {
	margin-top: 1em;
	border: 1px dashed black;
}

.icon {
	height: 1.2em;
	display: inline;
	vertical-align: text-bottom;
}

.iconbutton {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

.postContent {
	border: 1px solid #0d47a1;
	border-radius: .5em;
	padding: .5em;
	margin-bottom: .5em;
}

.votebox {
	float: left;
	margin-inline-end: .5em;
}

.comment > .content {
	overflow-x: auto;
	margin-bottom: 1em;
}
.commentContent {
	margin-top: .5em;
	margin-bottom: .5em;
}

.commentList {
	margin-top: .5em;
	list-style-type: none;
}

.commentList.topLevel {
	padding-margin-start: 0;
}

.sticky > .titleLine > a {
	color: #558B2F;
	font-weight: bold;
}

.titleLine {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	padding-inline-end: .5em;
	overflow-y: hidden;
}
.titleLine > a {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-inline-end: .5em;
}
.titleLine > * {
	unicode-bidi: isolate;
}

form.inline {
	display: inline-block;
}

textarea {
	width: 30em;
	height: 7em;
}

p {
	margin-top: 0;
	margin-bottom: 16px;
}

.contentView {
	font-family: serif;
}

.communitySidebar, .leftLinks {
	display: none;
}

.flaggedContent {
	margin-inline-start: 2em;
}

.pollResults {
	min-width: 300px;
}

.pollResults tr {
	position: relative;
}

.pollResults tr > td {
	padding-left: .5em;
	padding-right: .5em;
}

.pollResults tr > .count {
	width: 3em;
	text-align: inline-end;
	font-weight: bold;
}

.pollResults tr .background {
	background-color: #9E9E9E;
	border-radius: .5em;

	position: absolute;
	height: 100%;
	z-index: -1;
	left: 0;
}

.pollResults tr.selected .background {
	background-color: #00BCD4;
}

#pollEnableCheckbox:not(:checked) ~ .pollArea {
	display: none;
}

.pollArea {
	margin-inline-start: 1em;
}

.bigPostTitle > .icon {
	margin-inline-end: .5em;
}

.tabs {
	margin-top: 1em;
	float: inline-start;
	display: block;
	margin-inline-end: 2em;
	border: 1px solid gray;
}

.tabs > a {
	display: block;
	padding: .2em .5em;
}

.tabs > .selected {
	background-color: #81D4FA;
}

@media (min-width: 768px) {
	.communityDetailsMobile, .leftLinksMobile {
		display: none !important;
	}
	.communitySidebar, .leftLinks {
		display: inline-block;
	}
	.siteName {
		margin-inline-start: 0;
	}
}


@media (prefers-color-scheme: dark) {
	html {
		background-color: #121212;
		color: white;
	}

	a {
		color: #9E9EFF;
	}

	a:visited {
		color: #D0ADF0;
	}

	.mainHeader, .leftLinksMobile > div, .tabs > .selected {
		background-color: #00567D;
	}

	.mainHeader a {
		color: white;
	}

	.actionList.small > a {
		color: #999;
	}

	.darkInvert {
		filter: invert();
	}
}
