/* ==========================================================================
   Olympique.ru — Forum Styles (OM Sky Blue Palette)
   Primary: #009ddc | Hover: #0082b8 / #0077aa | Active: #006896
   Navy: #002d62 | Tints: #f0f9ff / #e0f2fe | Borders: #bae6fd / #7dd3fc
   ========================================================================== */

.om-forum-wrap {
	color: #334155;
	line-height: 1.55;
	padding: 2px 0 12px 0;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* Breadcrumbs */
.om-forum-breadcrumbs {
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 8px;
	padding: 9px 14px;
	margin: 0 0 14px 0;
	font-size: 13px;
}
.om-bc-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 6px;
}
.om-bc-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.om-bc-item a {
	color: #0077aa;
	font-weight: 600;
	text-decoration: none;
}
.om-bc-item a:hover {
	color: #002d62;
	text-decoration: underline;
}
.om-bc-item .sep {
	color: #64748b;
}
.om-bc-item .current {
	color: #002d62;
	font-weight: 600;
}

/* Hero Banner */
.om-forum-hero {
	background: linear-gradient(135deg, #002d62 0%, #009ddc 100%);
	color: #ffffff;
	border-radius: 10px;
	padding: 20px 22px;
	margin: 0 0 18px 0;
	box-shadow: 0 6px 18px rgba(0, 157, 220, 0.22);
}
.om-forum-hero h1 {
	margin: 0 0 8px 0;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.25;
	color: #ffffff;
}
.om-forum-hero-desc {
	margin: 0 0 12px 0;
	font-size: 14px;
	color: #e0f2fe;
	max-width: 78ch;
}
.om-forum-hero-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.om-forum-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 11px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: #ffffff;
	font-size: 12px;
	font-weight: 600;
}

/* Section Headers */
.om-forum-cat-section {
	margin: 0 0 18px 0;
}
.om-forum-sec-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 0 0 8px 0;
	padding: 9px 14px;
	background: linear-gradient(135deg, #002d62 0%, #0082b8 100%);
	color: #ffffff;
	border-radius: 8px 8px 0 0;
	font-size: 15px;
	font-weight: 700;
}
.om-forum-sec-heading + .om-forum-table-wrap {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-top: 0;
}
.om-forum-sub-heading {
	font-size: 16px;
	font-weight: 700;
	color: #002d62;
	margin: 18px 0 10px 0;
	padding-bottom: 6px;
	border-bottom: 2px solid #bae6fd;
}

/* Responsive Data Table */
.om-forum-table-wrap {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	container-type: inline-size;
	border: 1px solid #bae6fd;
	border-radius: 8px;
	background: #ffffff;
}
.om-forum-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	background: #ffffff;
}
.om-forum-table thead th {
	background: #f0f9ff;
	color: #002d62;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 9px 12px;
	border-bottom: 1px solid #bae6fd;
	text-align: left;
	white-space: nowrap;
}
.om-forum-table thead th.col-num,
.om-forum-table tbody td.col-num {
	text-align: center;
	width: 1%;
	white-space: nowrap;
}
.om-forum-table thead th.col-ico,
.om-forum-table tbody td.col-ico {
	text-align: center;
	width: 36px;
	padding-inline: 8px;
}
.om-forum-table tbody td {
	padding: 11px 12px;
	border-bottom: 1px solid #e2e8f0;
	vertical-align: middle;
}
.om-forum-table tbody tr:last-child td {
	border-bottom: 0;
}
.om-forum-table tbody tr:hover td {
	background: #f0f9ff;
}
.om-forum-title-link {
	font-size: 15px;
	font-weight: 700;
	color: #002d62;
	text-decoration: none;
}
.om-forum-title-link:hover {
	color: #009ddc;
	text-decoration: underline;
}
.om-forum-row-desc {
	margin: 3px 0 0 0;
	font-size: 13px;
	color: #475569;
}
.om-forum-row-mod {
	margin: 3px 0 0 0;
	font-size: 12px;
	color: #64748b;
}
.om-forum-count-badge {
	display: inline-block;
	min-width: 34px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	color: #002d62;
	font-size: 12px;
	font-weight: 700;
}
.om-forum-lastpost {
	font-size: 12px;
	color: #475569;
	white-space: nowrap;
}
.om-forum-lastpost time {
	display: block;
	font-weight: 600;
	color: #0f172a;
}
.om-thread-mini-pages {
	margin-top: 4px;
	font-size: 12px;
	color: #64748b;
}
.om-thread-mini-pages a {
	display: inline-block;
	padding: 0 5px;
	margin: 0 1px;
	border-radius: 4px;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	color: #0077aa;
	text-decoration: none;
	font-weight: 600;
}
.om-thread-mini-pages a:hover {
	background: #009ddc;
	border-color: #009ddc;
	color: #ffffff;
}
.om-badge-sticky {
	display: inline-block;
	padding: 1px 6px;
	margin-right: 6px;
	border-radius: 4px;
	background: #009ddc;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	vertical-align: middle;
}
.om-badge-locked {
	display: inline-block;
	padding: 1px 6px;
	margin-right: 6px;
	border-radius: 4px;
	background: #e2e8f0;
	color: #475569;
	font-size: 11px;
	font-weight: 700;
	vertical-align: middle;
}

/* Popular & Related Threads Cards */
.om-forum-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 10px;
	margin: 0 0 16px 0;
}
.om-forum-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 12px 14px;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 8px;
	text-decoration: none;
	color: #002d62;
	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.om-forum-card:hover {
	background: #e0f2fe;
	border-color: #009ddc;
	box-shadow: 0 4px 12px rgba(0, 157, 220, 0.15);
	text-decoration: none;
}
.om-forum-card-title {
	font-size: 14px;
	font-weight: 700;
	color: #002d62;
	line-height: 1.35;
}
.om-forum-card:hover .om-forum-card-title {
	color: #0077aa;
}
.om-forum-card-meta {
	font-size: 12px;
	color: #475569;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Thread Posts (Semantic Articles) */
.om-post-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 12px 0;
}
.om-post {
	background: #ffffff;
	border: 1px solid #bae6fd;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0, 157, 220, 0.08);
}
.om-post:nth-child(n+4) {
	content-visibility: auto;
	contain-intrinsic-size: auto 220px;
}
.om-post-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	padding: 8px 14px;
	background: #f0f9ff;
	border-bottom: 1px solid #bae6fd;
	font-size: 12px;
	color: #475569;
}
.om-post-head-left {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.om-post-head-right {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.om-post-num {
	font-weight: 700;
	color: #0077aa;
	text-decoration: none;
}
.om-post-num:hover {
	color: #002d62;
	text-decoration: underline;
}
.om-post-grid {
	display: grid;
	grid-template-columns: 160px minmax(0, 1fr);
}
.om-post-author {
	padding: 14px 12px;
	background: #f8fafc;
	border-right: 1px solid #e2e8f0;
	text-align: center;
	font-size: 12px;
	color: #475569;
}
.om-post-author-name {
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 8px;
	word-break: break-word;
}
.om-post-author-name a {
	color: #002d62;
}
.om-post-avatar {
	display: block;
	margin: 0 auto 8px auto;
	border-radius: 8px;
	border: 1px solid #bae6fd;
	object-fit: cover;
	background: #ffffff;
}
.om-post-rank {
	font-size: 11px;
	color: #0077aa;
	margin-bottom: 6px;
}
.om-post-author-stats {
	font-size: 11px;
	color: #64748b;
	line-height: 1.45;
}
.om-post-body {
	padding: 14px 16px;
	min-width: 0;
	overflow-wrap: anywhere;
	font-size: 14px;
	line-height: 1.65;
	color: #1e293b;
}
.om-post-body blockquote.quote {
	margin: 8px 0 12px 0;
	padding: 10px 14px;
	background: #f0f9ff;
	border-left: 3px solid #009ddc;
	border-radius: 0 6px 6px 0;
	color: #334155;
	font-size: 13px;
}
.om-post-body .quote-author {
	font-weight: 700;
	color: #002d62;
	margin-bottom: 4px;
}
.om-post-edited {
	margin-top: 12px;
	padding-top: 8px;
	border-top: 1px dashed #cbd5e1;
	font-size: 12px;
	color: #64748b;
}
.om-post-sig {
	margin-top: 12px;
	padding-top: 8px;
	border-top: 1px solid #e2e8f0;
	font-size: 12px;
	color: #64748b;
}
.om-post-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	padding: 7px 14px;
	background: #f8fafc;
	border-top: 1px solid #e2e8f0;
	font-size: 12px;
}

/* Search & Utility Controls */
.om-forum-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 14px 0;
	padding: 12px 14px;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 8px;
}
.om-forum-search-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}
.om-forum-search-form input[type="search"],
.om-forum-search-form select,
.om-forum-jump select {
	padding: 7px 10px;
	border: 1px solid #7dd3fc;
	border-radius: 6px;
	background: #ffffff;
	color: #0f172a;
	font-size: 13px;
}
.om-forum-btn-primary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border: 0;
	border-radius: 6px;
	background: #009ddc;
	color: #ffffff !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color 0.15s ease;
}
.om-forum-btn-primary:hover {
	background: #0082b8;
	color: #ffffff !important;
}
.om-forum-btn-primary:active {
	background: #006896;
}
.om-forum-btn-secondary {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 14px;
	border: 1px solid #bae6fd;
	border-radius: 6px;
	background: #f0f9ff;
	color: #0077aa !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
.om-forum-btn-secondary:hover {
	background: #e0f2fe;
	border-color: #009ddc;
	color: #002d62 !important;
}

/* Live Portal Cross-Links */
.om-forum-portal-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 16px 0 8px 0;
	padding: 12px 14px;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 8px;
	font-size: 13px;
}
.om-forum-portal-links-title {
	font-weight: 700;
	color: #002d62;
	margin-right: 4px;
}

/* Legend */
.om-forum-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	font-size: 12px;
	color: #475569;
	margin-top: 12px;
	padding-top: 10px;
	border-top: 1px solid #e2e8f0;
}
.om-forum-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* 404 / 403 Status Card */
.om-forum-status-card {
	text-align: center;
	padding: 28px 20px;
	background: #f0f9ff;
	border: 1px solid #bae6fd;
	border-radius: 10px;
}
.om-forum-status-code {
	font-size: 48px;
	font-weight: 800;
	color: #009ddc;
	line-height: 1;
	margin-bottom: 8px;
}
.om-forum-status-title {
	font-size: 20px;
	font-weight: 700;
	color: #002d62;
	margin: 0 0 8px 0;
}
.om-forum-status-desc {
	font-size: 14px;
	color: #475569;
	margin: 0 auto 18px auto;
	max-width: 560px;
}
.om-forum-status-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

/* Responsive Container Query + Media Fallback */
@container (width < 600px) {
	.om-forum-table,
	.om-forum-table thead,
	.om-forum-table tbody,
	.om-forum-table tr,
	.om-forum-table td {
		display: block;
		width: 100%;
	}
	.om-forum-table thead {
		display: none;
	}
	.om-forum-table tbody tr {
		padding: 10px 12px;
		border-bottom: 1px solid #bae6fd;
	}
	.om-forum-table tbody td {
		padding: 3px 0;
		border: 0;
		text-align: left !important;
		white-space: normal !important;
	}
	.om-forum-table tbody td.col-ico {
		display: none;
	}
	.om-forum-table tbody td[data-label]::before {
		content: attr(data-label) ": ";
		font-weight: 700;
		color: #002d62;
		font-size: 12px;
	}
}

@media (max-width: 680px) {
	.om-forum-hero {
		padding: 15px 16px;
	}
	.om-forum-hero h1 {
		font-size: 19px;
	}
	.om-post-grid {
		grid-template-columns: 1fr;
	}
	.om-post-author {
		border-right: 0;
		border-bottom: 1px solid #e2e8f0;
		display: flex;
		align-items: center;
		gap: 12px;
		text-align: left;
		padding: 10px 14px;
	}
	.om-post-avatar {
		margin: 0;
		width: 48px !important;
		height: 48px !important;
	}
	.om-post-body {
		padding: 12px 14px;
	}
}
