/* BCO Modern — independent theme stylesheet, 2026-07-28 */
:root {
	--bco-red: #c41230;
	--bco-red-dark: #941025;
	--bco-red-soft: #fff1f3;
	--bco-navy: #18212b;
	--bco-ink: #252b33;
	--bco-muted: #66717d;
	--bco-line: #dce2e8;
	--bco-surface: #ffffff;
	--bco-background: #f2f5f7;
	--bco-focus: #155eef;
	--bco-radius: 10px;
	--bco-shadow: 0 10px 28px rgba(28, 39, 49, .08);
}

* {
	box-sizing: border-box;
}

html {
	min-width: 0;
	background: var(--bco-background);
}

body {
	min-width: 0;
	margin: 0;
	background:
		linear-gradient(180deg, #e9edf1 0, var(--bco-background) 360px),
		var(--bco-background);
	color: var(--bco-ink);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	text-align: left;
}

a:link,
a:visited {
	color: #9d1027;
	text-decoration: none;
}

a:hover,
a:active {
	color: var(--bco-red);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid rgba(21, 94, 239, .32);
	outline-offset: 2px;
}

img,
video {
	max-width: 100%;
	height: auto;
}

.bco-shell {
	width: min(100% - 32px, 1220px);
	margin-inline: auto;
}

.bco-site-header {
	border-top: 5px solid var(--bco-red);
	background:
		radial-gradient(circle at 82% 20%, rgba(196, 18, 48, .34), transparent 28%),
		linear-gradient(135deg, #111820, var(--bco-navy));
	color: #fff;
	box-shadow: 0 5px 22px rgba(17, 24, 32, .22);
}

.bco-header-inner {
	min-height: 132px;
	padding: 24px 0 20px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 36px;
	flex-wrap: wrap;
}

.bco-brand {
	display: flex;
	flex-direction: column;
	color: #fff !important;
	text-decoration: none !important;
}

.bco-brand-title {
	font-size: clamp(28px, 4vw, 46px);
	font-weight: 800;
	letter-spacing: -.04em;
	line-height: 1;
}

.bco-brand-subtitle {
	margin-top: 9px;
	color: rgba(255, 255, 255, .74);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
}

.bco-primary-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
	flex-wrap: wrap;
}

.bco-primary-nav a {
	padding: 8px 11px;
	border-radius: 6px;
	color: rgba(255, 255, 255, .88);
	font-size: 14px;
	font-weight: 650;
	text-decoration: none;
}

.bco-primary-nav a:hover,
.bco-primary-nav a:active {
	background: rgba(255, 255, 255, .1);
	color: #fff;
	text-decoration: none;
}

.bco-userbar {
	border-bottom: 1px solid #d6dce2;
	background: #fff;
	box-shadow: 0 2px 8px rgba(28, 39, 49, .05);
}

#panel {
	width: min(100% - 32px, 1220px);
	height: auto;
	min-height: 54px;
	margin-inline: auto;
	padding: 9px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px 22px;
	flex-wrap: wrap;
	color: var(--bco-ink);
	background: transparent;
	font-size: inherit;
}

#panel .welcome {
	flex: 1 1 260px;
}

#panel ul.menu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 5px 15px;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
	list-style: none;
}

#panel ul.menu li {
	display: inline-flex;
	margin: 0;
}

#panel a {
	font-weight: 650;
}

#panel .login,
#panel .register,
#panel .logout {
	display: inline-flex;
	align-items: center;
	min-height: 34px;
	margin-left: 8px;
	padding: 5px 10px;
	border-radius: 6px;
}

#panel .login,
#panel .register {
	background: var(--bco-red-soft);
}

#container.bco-page {
	min-width: 0;
	width: auto;
	margin: 0;
	padding: 24px 0 42px;
	color: var(--bco-ink);
	font-family: inherit;
	font-size: inherit;
}

.bco-content {
	padding: 24px;
	border: 1px solid var(--bco-line);
	border-top: 4px solid var(--bco-red);
	border-radius: 12px;
	background: var(--bco-surface);
	box-shadow: var(--bco-shadow);
}

.navigation {
	margin: 0 0 20px;
	padding: 10px 13px;
	border: 1px solid var(--bco-line);
	border-left: 4px solid var(--bco-red);
	border-radius: 7px;
	background: #f7f9fa;
	box-shadow: none;
	color: var(--bco-ink);
	font-weight: 700;
}

.navigation .active {
	color: var(--bco-ink);
	font-size: 13px;
}

.navigation a {
	color: #8d1023;
}

table {
	color: var(--bco-ink);
	font-family: inherit;
	font-size: 14px;
}

.tborder {
	width: 100%;
	margin: 0 auto 22px;
	padding: 0;
	border: 1px solid var(--bco-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: var(--bco-radius);
	overflow: hidden;
	background: #fff;
	box-shadow: 0 4px 14px rgba(28, 39, 49, .05);
}

.thead {
	padding: 12px 14px;
	border: 0;
	border-radius: 0;
	background: linear-gradient(135deg, var(--bco-red), var(--bco-red-dark));
	box-shadow: none;
	color: #fff;
	font-size: 15px;
	letter-spacing: .01em;
}

.thead a:link,
.thead a:visited,
.thead a:hover,
.thead a:active {
	color: #fff;
}

.tcat,
.tfoot {
	padding: 9px 11px;
	border: 0;
	border-radius: 0;
	background: #27313b;
	box-shadow: none;
	color: #fff;
	font-size: 12px;
}

.tcat a:link,
.tcat a:visited,
.tfoot a:link,
.tfoot a:visited {
	color: #fff;
}

.trow1,
.trow2 {
	padding: 11px;
	border: 0;
	border-bottom: 1px solid var(--bco-line);
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	vertical-align: middle;
}

tr:nth-child(even) > .trow1,
tr:nth-child(even) > .trow2 {
	background: #fafbfc;
}

tr:hover > .trow1,
tr:hover > .trow2 {
	background: #fff8f9;
}

.trow_sep {
	padding: 8px 11px;
	border-color: var(--bco-line);
	background: #edf1f4;
	color: var(--bco-ink);
}

.smalltext {
	color: var(--bco-muted);
	font-size: 12px;
	line-height: 1.45;
}

.largetext {
	font-size: 17px;
}

.forum_status {
	display: inline-block;
	float: none;
	vertical-align: middle;
}

.forum_legend {
	display: grid;
	grid-template-columns: repeat(4, max-content);
	justify-content: center;
	gap: 8px 12px;
	margin: 18px 0 24px;
	padding: 0;
}

.forum_legend dt,
.forum_legend dd {
	float: none;
	margin: 0;
}

input.textbox,
textarea,
select {
	box-sizing: border-box;
	max-width: 100%;
	min-height: 40px;
	padding: 8px 10px;
	border: 1px solid #b8c1ca;
	border-radius: 7px;
	background: #fff;
	color: var(--bco-ink);
	font-family: inherit;
	font-size: 14px;
}

textarea {
	line-height: 1.55;
}

input.textbox:focus,
textarea:focus,
select:focus {
	border-color: var(--bco-focus);
	box-shadow: 0 0 0 3px rgba(21, 94, 239, .12);
	outline: 0;
}

button,
input.button,
a.button {
	box-sizing: border-box;
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid var(--bco-red-dark);
	border-radius: 7px;
	background: linear-gradient(180deg, var(--bco-red), var(--bco-red-dark));
	color: #fff !important;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

button:hover,
input.button:hover,
a.button:hover {
	border-color: #70091a;
	background: #850d21;
	text-decoration: none;
}

fieldset {
	padding: 14px;
	border: 1px solid var(--bco-line);
	border-radius: 8px;
}

.pagination a,
.pagination .pagination_current {
	padding: 5px 9px;
	border-color: var(--bco-line);
	border-radius: 5px;
}

.pagination .pagination_current {
	border-color: var(--bco-red-dark);
	background: var(--bco-red);
	color: #fff;
}

.popup_menu {
	border: 1px solid var(--bco-line);
	border-radius: 7px;
	background: #fff;
	box-shadow: var(--bco-shadow);
}

.popup_menu .popup_item:hover {
	background: var(--bco-red-soft);
	color: var(--bco-red-dark);
}

.modal {
	max-width: min(92vw, 680px);
	border-radius: 10px;
}

.post {
	overflow: hidden;
}

.post.classic {
	padding-top: 10px;
}

.post .post_author,
.post.classic .post_content,
.post .post_author div.author_avatar img,
.post .post_author div.author_statistics {
	border-color: var(--bco-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: none;
}

.post.classic .post_author {
	box-sizing: border-box;
	width: 20%;
	margin: 0 1.5% 12px 0;
	padding: 12px;
	border-left: 1px solid var(--bco-line);
}

.post.classic .post_content {
	box-sizing: border-box;
	width: 78.5%;
	margin-bottom: 12px;
	padding: 14px 17px;
}

.post .post_head {
	padding-bottom: 8px;
	border-bottom: 1px solid var(--bco-line);
}

.post_body {
	min-height: 90px;
	padding: 16px 0;
	font-size: 15px;
	line-height: 1.7;
}

.post_controls {
	border-top-color: var(--bco-line);
}

blockquote,
.codeblock {
	border: 1px solid var(--bco-line);
	border-left: 4px solid var(--bco-red);
	border-radius: 6px;
	background: #f7f9fa;
}

.pm_alert,
.red_alert,
.error_message,
.success_message {
	border-radius: 7px;
}

#footer {
	border-top: 1px solid #d5dce2;
	background: #fff;
	color: var(--bco-muted);
}

#footer .upper,
#footer .lower {
	width: min(100% - 32px, 1220px);
	margin-inline: auto;
}

#footer .upper {
	padding: 17px 0 12px;
}

#footer .upper > div,
#footer .lower > div {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px 22px;
	flex-wrap: wrap;
}

#footer ul.bottom_links {
	display: flex;
	gap: 8px 18px;
	flex-wrap: wrap;
	float: none;
	margin: 0;
	padding: 0;
	list-style: none;
}

#footer ul.bottom_links li {
	display: inline-flex;
	margin: 0;
}

#footer .lower {
	padding: 8px 0 24px;
	font-size: 11px;
}

#footer .lower #current_time {
	order: 2;
	float: none;
}

#footer a {
	color: #4f5964;
}

@media (max-width: 900px) {
	.bco-header-inner {
		align-items: flex-start;
	}

	.bco-primary-nav {
		justify-content: flex-start;
	}

	.forum_legend {
		grid-template-columns: repeat(2, max-content);
	}
}

@media (max-width: 700px) {
	.bco-shell,
	#panel,
	#footer .upper,
	#footer .lower {
		width: min(100% - 20px, 1220px);
	}

	.bco-header-inner {
		min-height: 0;
		padding: 20px 0 17px;
	}

	.bco-brand {
		width: 100%;
		text-align: center;
	}

	.bco-primary-nav {
		width: 100%;
		justify-content: center;
		gap: 2px;
	}

	.bco-primary-nav a {
		padding: 8px;
	}

	#panel {
		justify-content: center;
		padding: 10px 0;
		text-align: center;
	}

	#panel .welcome,
	#panel > span {
		flex-basis: 100%;
		width: 100%;
	}

	#panel ul.menu {
		width: 100%;
		justify-content: center;
	}

	#container.bco-page {
		padding: 12px 0 28px;
	}

	.bco-content {
		padding: 14px 10px;
		border-radius: 9px;
	}

	table.tborder {
		display: block;
		width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	table.tborder > tbody,
	table.tborder > thead,
	table.tborder > tfoot {
		display: table;
		width: 100%;
		min-width: 620px;
	}

	td[style*="white-space: nowrap"] {
		white-space: normal !important;
	}

	.thead,
	.tcat,
	.trow1,
	.trow2,
	.tfoot {
		padding: 8px;
	}

	input.textbox,
	textarea,
	select {
		width: 100%;
	}

	.post.classic .post_author,
	.post.classic .post_content {
		float: none;
		width: 100%;
		margin: 0 0 10px;
	}

	.post.classic .post_author {
		text-align: left;
	}

	.post.classic .post_author div.author_avatar {
		float: left;
		margin: 0 12px 8px 0;
	}

	#footer .upper > div,
	#footer .lower > div {
		display: block;
		text-align: center;
	}

	#footer ul.bottom_links {
		justify-content: center;
	}

	#footer #current_time,
	#footer #copyright {
		display: block;
		margin: 7px 0;
	}
}

@media (max-width: 430px) {
	.bco-primary-nav {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
	}

	.bco-primary-nav a {
		text-align: center;
	}

	.forum_legend {
		grid-template-columns: max-content 1fr;
		justify-content: start;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}
