/*
--------------------------------------------------------------
Colours and backgrounds for common.css
Note that this file should contain only redefinitions of classes
that also appear in the prosilver colours.css file
--------------------------------------------------------------
*/

html,
body {
	background: #172d45;
	color: #979797;
}

h3 {
	color: #979797;
}

/*
--------------------------------------------------------------
Colours and backgrounds for links.css
--------------------------------------------------------------
*/

a {
	color: #8d8d8d;
}

a:hover,
a:focus {
	color: #bc2a4d;
}

.notification_list {
	margin-left: -116px;
}

.forabg,
.forumbg,
.cp-main table.table1 {
	background: #172d45;
}

ul.forums,
ul.topics,
table.table1 tbody {
	background: #fafcfe;
}

/* Row (single forum) */
ul.topiclist li {
	color: #525252;
}

/* Different background for even rows */
li.row:nth-child(even),
table.table1 tbody tr:nth-child(even) {
	background: #f2f2f2;
}

/* Different background in odd columns */
ul.topiclist li.row dt:nth-child(even),
ul.topiclist li.row dd:nth-child(even),
.forabg ul.topiclist li.row dt:nth-child(odd),
.forabg ul.topiclist li.row dd:nth-child(odd),
.forumbg ul.topiclist li.row dt:nth-child(odd),
.forumbg ul.topiclist li.row dd:nth-child(odd),
table.table1 tbody td:nth-child(even) {
	background-color: #f1f1f1;
}

.forabg ul.topiclist li.row dt:nth-child(even),
.forabg ul.topiclist li.row dd:nth-child(even),
.forumbg ul.topiclist li.row dt:nth-child(even),
.forumbg ul.topiclist li.row dd:nth-child(even) {
	background-color: #fafcfe;
}

ul.topiclist li.row:nth-child(even) dt:nth-child(even),
ul.topiclist li.row:nth-child(even) dd:nth-child(even),
.forabg ul.topiclist li.row:nth-child(even) dt:nth-child(odd),
.forabg ul.topiclist li.row:nth-child(even) dd:nth-child(odd),
.forumbg ul.topiclist li.row:nth-child(even) dt:nth-child(odd),
.forumbg ul.topiclist li.row:nth-child(even) dd:nth-child(odd),
table.table1 tbody tr:nth-child(even) td:nth-child(even) {
	background-color: #e9e9e9;
}

.forabg ul.topiclist li.row:nth-child(even) dt:nth-child(even),
.forabg ul.topiclist li.row:nth-child(even) dd:nth-child(even),
.forumbg ul.topiclist li.row:nth-child(even) dt:nth-child(even),
.forumbg ul.topiclist li.row:nth-child(even) dd:nth-child(even) {
	background-color: #f2f2f2;
}

.forumbg ul.topiclist li.reported dt:nth-child(odd),
.forumbg ul.topiclist li.reported dd:nth-child(odd),
ul.topiclist li.reported dt:nth-child(even),
ul.topiclist li.reported dd:nth-child(even) {
	background-color: #f4e1e6 !important;
}

ul.topiclist li.row a.subforum:before {
	color: #6b6b6b;
}

ul.topiclist li.row a.subforum.unread:before {
	color: #bc2a4d;
}

/* Last post author and date icons */
dd.lastpost .fa {
	color: #6b6b6b;
}

table.table1 td {
	color: #525252;
}

.cp-main table.table1 thead th {
	color: #ffffff;
}

/**
 * Panels
 */
.panel {
	background-color: #f1f1f1;
	color: #525252;
}

.bg1,
.bg3 {
	background-color: #172d45;
}

.bg2 {
	background-color: rgb(40, 55, 24);
}

/* give new notifications a distinctive background colour */
.notification_list .bg2 {
	background-color: #f8e4e4;
}

dl.faq dt {
	color: #3f3f3f;
}

.online {
	background-image: none;
}

.post.bg1 {
	background: #f8f8f8;
}

.post.bg2 {
	background: #f1f1f1;
}

.post.bg1 .postprofile {
	background-color: #f2f2f2;
}

.post.bg2 .postprofile {
	background-color: #ececec;
}

.post.reported .postprofile {
	background-color: #f4e1e6;
}

/* User profile */
.postprofile,
.pm .postprofile,
.search .postprofile {
	color: #525252;
}

.postprofile strong {
	color: #414141;
}

.post.bg1 .postbody:before {
	border-color: transparent #f8f8f8 transparent transparent;
}

.post.bg2 .postbody:before {
	border-color: transparent #f2f2f2 transparent transparent;
}

.post.reported .postbody:before {
	border-color: transparent #f7ecef transparent transparent;
}

p.author {
	color: #525252;
}

.postbody .content,
.post:target .content {
	color: #414141;
}

.post .signature {
	color: #525252;
}

/* Poll preview background */
.section-posting .preview .content {
	background-color: #f1f1f1;
}

/* Post related links */
.postprofile a:link,
.postprofile a:visited,
.search .postprofile a {
	color: #3f3f3f;
}

.postprofile a:focus,
.postprofile a:hover,
.postprofile a:active,
.search .postprofile a:focus,
.search .postprofile a:hover,
.search .postprofile a:active {
	color: #bc2a4d;
	text-decoration: underline;
}

fieldset.polls dl {
	border-color: #dadada;
	color: #525252;
}

.attachbox dd {
	border-color: #cccccc;
}

dl.file dd {
	color: #525252;
}

dl.codebox {
	border-color: #cccccc;
}

blockquote {
	border-color: #dddddd;
	background: #fbfbfb;
}

blockquote blockquote {
	background: #f1f1f1;
}

blockquote blockquote blockquote {
	border-color: #d5d5d5;
	background: #e9e9e9;
}

a.postlink {
	border-bottom: 1px dotted #6b6b6b;
	color: #6b6b6b;
}

a.postlink:visited {
	color: #959595;
}

a.postlink:active,
a.postlink:focus,
a.postlink:hover {
	border-color: #bc2a4d;
	background: none;
	color: #bc2a4d;
}

.signature a:active,
.signature a:focus,
.signature a:hover {
	border-bottom: 1px dotted #bc2a4d;
}

.postprofile ul.profile-icons li a,
.postbody ul.profile-icons li a {
	background: #dfdfdf;
	color: #6b6b6b;
}

/* More dark profile icons */
.postprofile ul.profile-icons li a {
	border-color: #c5c5c5;
	background: #dfdfdf;
}

.postprofile ul.profile-icons li a:focus,
.postprofile ul.profile-icons li a:hover,
.postprofile ul.profile-icons li a:active,
.postbody ul.profile-icons li a:focus,
.postbody ul.profile-icons li a:hover,
.postbody ul.profile-icons li a:active {
	border-color: #91203c;
	background: #bc2a4d;
	color: #ffffff;
	text-decoration: none;
}

.section-search .postprofile {
	color: #414141;
}

.section-search .postprofile strong {
	color: #525252;
}

.viewprofile .signature {
	color: #414141;
}

.button {
	background-image: none;
	background-color: #172d45;
	border: 0px;
	border-radius: 2px;
	box-shadow: none;
	color: #ffffff;
	font-family: "Open Sans", "Segoe UI", Tahoma, sans-serif;
	font-weight: 100;
}

.search-box .inputbox,
.search-box .inputbox:hover,
.search-box .inputbox:focus {
	border-color: #7e7e7e;
	color: #979797;
}

::placeholder {
	color: #ffffff;
	opacity: 1;
	/* Firefox */
}

.buttons div a {
	background: #e9e9e9;
	color: #6b6b6b;
}

.buttons div a:focus,
.buttons div a:hover,
.buttons div a:active {
	border-color: #91203c;
	background: #bc2a4d;
	color: #ffffff;
	text-decoration: none;
}

/* Forums layout related links */
.search-box a:hover,
.search-box a:active,
.navbg a:hover,
.navbg a:active,
.forumbg .header a:hover,
.forumbg .header a:active,
.forabg .header a:hover,
.forabg .header a:active,
th a:link,
th a:visited,
th a:hover,
th a:active {
	color: #ffffff;
}

a.forumtitle:hover,
a.forumtitle:active,
a.topictitle:hover,
a.topictitle:active {
	color: #bc2a4d;
}

a.topictitle:visited {
	color: #6b6b6b;
}

a.top {
	color: #b5b5b5;
}

a.top:focus,
a.top:hover,
a.top:active {
	color: #959595;
}

a.top2 {
	display: none;
	background-image: none;
}

a.left:hover,
a.right:hover {
	color: #bc2a4d;
}

a.left:before,
a.right:after {
	color: #959595;
}

/* jQuery popups
---------------------------------------- */


.dropdown-extended ul li:hover {
	background-color: #E1E1E1;
	color: #000000;
}

.dropdown-extended .header {
	background-color: #F1F1F1;
	/* Old browsers */
	/* FF3.6+ */
	background-image: -webkit-linear-gradient(top, #F1F1F1 0%, #CACACA 100%);
	background-image: linear-gradient(to bottom, #F1F1F1 0%, #CACACA 100%);
	/* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#F1F1F1', endColorstr='#CACACA', GradientType=0);
	/* IE6-9 */
}

.dropdown-extended .pointer-inner {
	border-color: #F1F1F1 transparent;
}


/**
 * Forum icons & Topic icons
 */
.global_read {
	background-image: url("./images/announce_read.gif");
}

.global_read_mine {
	background-image: url("./images/announce_read_mine.gif");
}

.global_read_locked {
	background-image: url("./images/announce_read_locked.gif");
}

.global_read_locked_mine {
	background-image: url("./images/announce_read_locked_mine.gif");
}

.global_unread {
	background-image: url("./images/announce_unread.gif");
}

.global_unread_mine {
	background-image: url("./images/announce_unread_mine.gif");
}

.global_unread_locked {
	background-image: url("./images/announce_unread_locked.gif");
}

.global_unread_locked_mine {
	background-image: url("./images/announce_unread_locked_mine.gif");
}

.announce_read {
	background-image: url("./images/announce_read.gif");
}

.announce_read_mine {
	background-image: url("./images/announce_read_mine.gif");
}

.announce_read_locked {
	background-image: url("./images/announce_read_locked.gif");
}

.announce_read_locked_mine {
	background-image: url("./images/announce_read_locked_mine.gif");
}

.announce_unread {
	background-image: url("./images/announce_unread.gif");
}

.announce_unread_mine {
	background-image: url("./images/announce_unread_mine.gif");
}

.announce_unread_locked {
	background-image: url("./images/announce_unread_locked.gif");
}

.announce_unread_locked_mine {
	background-image: url("./images/announce_unread_locked_mine.gif");
}

.forum_link {
	background-image: url("./images/forum_link.gif");
}

.forum_read {
	background-image: url("./images/forum_read.gif");
}

.forum_read_locked {
	background-image: url("./images/forum_read_locked.gif");
}

.forum_read_subforum {
	background-image: url("./images/forum_read_subforum.gif");
}

.forum_unread {
	background-image: url("./images/forum_unread.gif");
}

.forum_unread_locked {
	background-image: url("./images/forum_unread_locked.gif");
}

.forum_unread_subforum {
	background-image: url("./images/forum_unread_subforum.gif");
}

.sticky_read {
	background-image: url("./images/sticky_read.gif");
}

.sticky_read_mine {
	background-image: url("./images/sticky_read_mine.gif");
}

.sticky_read_locked {
	background-image: url("./images/sticky_read_locked.gif");
}

.sticky_read_locked_mine {
	background-image: url("./images/sticky_read_locked_mine.gif");
}

.sticky_unread {
	background-image: url("./images/sticky_unread.gif");
}

.sticky_unread_mine {
	background-image: url("./images/sticky_unread_mine.gif");
}

.sticky_unread_locked {
	background-image: url("./images/sticky_unread_locked.gif");
}

.sticky_unread_locked_mine {
	background-image: url("./images/sticky_unread_locked_mine.gif");
}

.topic_moved {
	background-image: url("./images/topic_moved.gif");
}

.pm_read,
.topic_read {
	background-image: url("./images/topic_read.gif");
}

.topic_read_mine {
	background-image: url("./images/topic_read_mine.gif");
}

.topic_read_hot {
	background-image: url("./images/topic_read_hot.gif");
}

.topic_read_hot_mine {
	background-image: url("./images/topic_read_hot_mine.gif");
}

.topic_read_locked {
	background-image: url("./images/topic_read_locked.gif");
}

.topic_read_locked_mine {
	background-image: url("./images/topic_read_locked_mine.gif");
}

.pm_unread,
.topic_unread {
	background-image: url("./images/topic_unread.gif");
}

.topic_unread_mine {
	background-image: url("./images/topic_unread_mine.gif");
}

.topic_unread_hot {
	background-image: url("./images/topic_unread_hot.gif");
}

.topic_unread_hot_mine {
	background-image: url("./images/topic_unread_hot_mine.gif");
}

.topic_unread_locked {
	background-image: url("./images/topic_unread_locked.gif");
}

.topic_unread_locked_mine {
	background-image: url("./images/topic_unread_locked_mine.gif");
}

/* Contrast fixes: ensure readable text on dark (#172d45) and white (#fff) backgrounds */
:root {
	--contrast-dark-text: #333333;
	--contrast-light-text: #ffffff;
}

/* Elements intended to sit on dark backgrounds */
.inventea-userbar,
.navbar,
.memberlist-title,
.inventea-sitename,
.navbg,
.forabg,
.forumbg,
.bg1,
.button {
	color: var(--contrast-light-text) !important;
}

.navbar a,
.inventea-headerbar a,
.inventea-user-menu a,
.forabg .header a,
.forumbg .header a {
	color: var(--contrast-light-text) !important;
}

/* Ensure content on white backgrounds is dark */
.inventea-wrapper,
.inventea-content,
.content,
.panel,
.post,
.post .postbody,
.postbody .content,
.inventea-footer,
body,
p {
	color: var(--contrast-dark-text) !important;
}

/* Placeholder on dark backgrounds */
::placeholder {
	color: rgba(255, 255, 255, 0.95) !important;
}