/* soviet-awards.com site pages, styled like the forum's "Soviet Awards" theme.
   Shared by the home page, the Titles/Orders/Medals pages and the Digest. */
* {
	box-sizing: border-box;
}
body {
	background: #5A0F10;
	color: #000;
	margin: 0;
	font-family: Tahoma, Verdana, Arial, sans-serif;
	font-size: 13px;
	line-height: 1.45;
}
a:link,
a:visited {
	color: #663300;
	text-decoration: none;
}
a:hover,
a:active {
	color: #663300;
	text-decoration: underline;
}
.wrapper {
	width: 85%;
	max-width: 1500px;
	margin: 0 auto;
}

/* Header and menu */
.site_header {
	padding: 6px 0 10px 0;
}
.site_header .wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
}
.site_header .logo img {
	display: block;
	max-width: 100%;
	height: auto;
}
.site_header .header_ad {
	flex: 1 1 300px;
	max-width: 728px;
	height: 90px;
	overflow: hidden;
}
.site_menu {
	background: #582E2E;
	border-top: 1px solid #7F6A3C;
	border-bottom: 1px solid #3a1e1e;
	padding: 7px 0;
}
.site_menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.site_menu li {
	display: inline-block;
	margin: 0 14px 0 0;
}
.site_menu a:link,
.site_menu a:visited {
	color: #fff;
	font-weight: bold;
}
.site_menu a:hover,
.site_menu li.current a {
	color: #FFFF00;
	text-decoration: none;
}

/* Content area and columns */
.site_content {
	background: #fff;
	padding: 20px 10px;
}
.columns {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr) 320px;
	gap: 15px;
	align-items: start;
}
.columns_2 {
	grid-template-columns: minmax(0, 1fr) 320px;
}

/* Boxes, as the forum's tables */
.tborder {
	background: #fff;
	border: 1px solid #7F6A3C;
	padding: 1px;
	margin-bottom: 15px;
}
.thead {
	background: #CFC89C;
	color: #582E2E;
	border-bottom: 1px solid #7F6A3C;
	padding: 8px;
	font-weight: bold;
}
.thead h1,
.thead h2 {
	margin: 0;
	font-size: 16px;
}
.thead a:link,
.thead a:visited {
	color: #660000;
}
.tcat {
	background: #582E2E;
	color: #fff;
	padding: 6px 8px;
	font-size: 12px;
	font-weight: bold;
}
.tcat a:link,
.tcat a:visited {
	color: #fff;
}
.tcat a:hover {
	color: #FFFF00;
}
.trow1 {
	background: #F9F9F9;
	padding: 10px;
}
.trow2 {
	background: #DFDFDF;
	padding: 8px 10px;
}
.box_list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.box_list li {
	padding: 4px 8px;
	border-bottom: 1px solid #DFDFDF;
}
.box_list li:nth-child(even) {
	background: #F9F9F9;
}
.box_list li:last-child {
	border-bottom: 0;
}
.box_list .smalltext {
	display: block;
	color: #666;
	font-size: 11px;
}
.jump_links a {
	display: inline-block;
	margin: 0 12px 2px 0;
}
.navigation {
	margin-bottom: 8px;
	font-size: 12px;
}
.ad_slot {
	text-align: center;
	margin: 10px 0 15px 0;
	overflow: hidden;
}
.ebay_logo {
	height: 22px;
	width: auto;
	vertical-align: middle;
}

/* eBay listings box (filled by /site/widgets.js) */
.ebay_grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 8px;
}
.ebay_item {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #DFDFDF;
	padding: 6px;
}
.ebay_item:hover {
	border-color: #7F6A3C;
	text-decoration: none;
}
.ebay_item_image {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 110px;
	margin-bottom: 5px;
}
.ebay_item_image img {
	max-width: 100%;
	max-height: 110px;
}
.ebay_item_title {
	font-size: 11px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex-grow: 1;
}
.ebay_item:hover .ebay_item_title {
	text-decoration: underline;
}
.ebay_item_price {
	margin-top: 4px;
	font-weight: bold;
	color: #582E2E;
}

/* Popular threads widget */
.popular_threads li > a {
	font-weight: bold;
}

/* Rarity key */
.rarity_key dl {
	display: grid;
	grid-template-columns: 3em minmax(0, 1fr);
	gap: 3px 8px;
	margin: 0;
	font-size: 12px;
}
.rarity_key dt {
	font-weight: bold;
	color: #582E2E;
}
.rarity_key dd {
	margin: 0;
}

/* Footer */
.site_footer {
	color: #CFC89C;
	font-size: 11px;
	padding: 8px 0 14px 0;
}
.site_footer a:link,
.site_footer a:visited {
	color: #fff;
	font-weight: bold;
}

/* Original page content (old table layouts) recoloured to the forum palette */
.legacy {
	overflow-x: auto;
}
.legacy table {
	max-width: 100%;
	border-collapse: collapse;
}
.legacy table[width="380"],
.legacy table[width="368"],
.legacy table[width="300"] {
	width: 100%;
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}
.legacy table[border="1"] td {
	border: 1px solid #CFC89C;
}
.legacy img {
	max-width: 100%;
	height: auto;
}
.legacy font[face] {
	font-family: inherit;
}
.legacy font[size="-2"],
.legacy font[size="1"] {
	font-size: 12px;
}
.legacy font[size="-1"],
.legacy font[size="2"] {
	font-size: 13px;
}
/* Dark blue banner rows -> forum maroon */
.legacy [bgcolor="#0066CC" i],
.legacy [bgcolor="#0064C8" i],
.legacy [bgcolor="#003399" i],
.legacy [bgcolor="#003098" i],
.legacy [bgcolor="#993300" i] {
	background-color: #582E2E;
	border-color: #582E2E;
}
/* Light blue rows -> forum tan with maroon text */
.legacy [bgcolor="#009CD0" i],
.legacy [bgcolor="#0099CC" i],
.legacy [bgcolor="#00CCFF" i] {
	background-color: #CFC89C;
	border-color: #CFC89C;
}
.legacy [bgcolor="#009CD0" i] font,
.legacy [bgcolor="#0099CC" i] font,
.legacy [bgcolor="#00CCFF" i] font {
	color: #582E2E;
}
.legacy [bgcolor="#ECECEC" i] {
	background-color: #F9F9F9;
}
.legacy [bgcolor="#C1C1C1" i] {
	background-color: #DFDFDF;
}
.legacy font[color="#9900FF" i],
.legacy font[color="#3399FF" i] {
	color: #663300;
}
.legacy h1,
.legacy h2,
.legacy h3 {
	color: #582E2E;
}
/* Light-blue links in banner rows stay readable */
.legacy [bgcolor="#0066CC" i] a,
.legacy [bgcolor="#0064C8" i] a,
.legacy [bgcolor="#003399" i] a,
.legacy [bgcolor="#003098" i] a {
	color: #fff;
}

@media (max-width: 1100px) {
	.columns {
		grid-template-columns: 200px minmax(0, 1fr);
	}
	.columns > .col_right {
		grid-column: 2;
	}
	.site_header .header_ad {
		display: none;
	}
}
@media (max-width: 760px) {
	.wrapper {
		width: auto;
		margin: 0 10px;
	}
	.columns,
	.columns_2 {
		grid-template-columns: minmax(0, 1fr);
	}
	.columns > .col_right {
		grid-column: auto;
	}
	.columns > .col_left {
		order: 3;
	}
}

/* Home page */
.home_tagline {
	font-style: italic;
	color: #582E2E;
	font-size: 14px;
}
.home_links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 10px;
	margin-top: 12px;
}
.home_links a {
	display: block;
	background: #fff;
	border: 1px solid #7F6A3C;
	padding: 10px;
}
.home_links a:hover {
	background: #CFC89C;
	text-decoration: none;
}
.home_links strong {
	display: block;
	color: #582E2E;
	font-size: 14px;
	margin-bottom: 3px;
}
.home_links span {
	color: #333;
	font-size: 12px;
}
.home_awards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0 1px;
	background: #DFDFDF;
}
.home_awards > div {
	background: #fff;
}

/* Contact page: Mike's Contact Script form (mcontact/) and the FAQ */
.contact_form #main_in {
	width: 100%;
	max-width: 640px;
	border-collapse: collapse;
}
.contact_form .descript {
	font-weight: bold;
	color: #582E2E;
	margin-bottom: 3px;
}
.contact_form .descript font {
	font-size: 13px;
}
.contact_form .required {
	color: #a01010;
}
.contact_form input[type="text"],
.contact_form textarea,
.contact_form select {
	width: 100%;
	max-width: 640px;
	padding: 6px 8px;
	border: 1px solid #7F6A3C;
	font: inherit;
	background: #fff;
}
.contact_form textarea {
	min-height: 180px;
}
.contact_form input[type="submit"],
.contact_form button {
	background: #582E2E;
	color: #fff;
	border: 0;
	padding: 7px 18px;
	font-weight: bold;
	cursor: pointer;
}
.contact_form input[type="submit"]:hover {
	background: #5A0F10;
}
.contact_form #gotcha-captcha {
	border: 1px solid #DFDFDF;
	margin: 0 0 6px 10px;
	float: right;
}
.contact_form .error_out {
	border: 1px solid #a01010;
	background: #fff3f3;
	padding: 6px 10px;
	margin: 0 0 10px 0;
}
.contact_form .error_in {
	color: #a01010;
	font-weight: bold;
}
.contact_faq dl {
	margin: 0;
	font-size: 12px;
}
.contact_faq dt {
	font-weight: bold;
	color: #582E2E;
	margin-top: 8px;
}
.contact_faq dt:first-child {
	margin-top: 0;
}
.contact_faq dd {
	margin: 2px 0 0 0;
}
