.bwe-papers,
.bwe-single-paper {
	--bwe-border: #d9e2ec;
	--bwe-text: #17212b;
	--bwe-muted: #5d6b7a;
	--bwe-surface: #ffffff;
	--bwe-soft: #f4f7fa;
	--bwe-primary: #146c94;
	--bwe-primary-dark: #0d4f6d;
	color: var(--bwe-text);
	font-family: inherit;
	margin: 0 auto;
	max-width: 1180px;
	padding: 24px 16px;
}

.bwe-breadcrumb {
	align-items: center;
	color: var(--bwe-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 14px;
	gap: 8px;
	margin-bottom: 18px;
}

.bwe-breadcrumb a {
	color: var(--bwe-primary);
	text-decoration: none;
}

.bwe-layout {
	align-items: flex-start;
	display: grid;
	gap: 24px;
	grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}

.bwe-sidebar {
	background: var(--bwe-soft);
	border: 1px solid var(--bwe-border);
	border-radius: 8px;
	padding: 16px;
	position: sticky;
	top: 24px;
}

.bwe-sidebar h2 {
	font-size: 10px;
	line-height: 1.25;
	margin: 0 0 12px;
}

.bwe-category-tree,
.bwe-category-tree ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bwe-category-tree ul {
	border-left: 1px solid var(--bwe-border);
	margin-left: 10px;
	padding-left: 10px;
}

.bwe-category-tree button {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 6px;
	color: var(--bwe-text);
	cursor: pointer;
	display: flex;
	font: inherit;
	gap: 8px;
	justify-content: space-between;
	line-height: 1.3;
	margin: 2px 0;
	padding: 8px;
	text-align: left;
	width: 100%;
}

.bwe-category-tree button:hover,
.bwe-category-tree button.is-active {
	background: #dfeff6;
	color: var(--bwe-primary-dark);
}

.bwe-category-tree span {
	color: var(--bwe-muted);
	font-size: 12px;
}

.bwe-content {
	min-width: 0;
}

.bwe-header {
	margin-bottom: 18px;
}

.bwe-header h1,
.bwe-single-paper h1 {
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.12;
	margin: 0 0 8px;
}

.bwe-header p {
	color: var(--bwe-muted);
	margin: 0 0 16px;
	max-width: 760px;
}

.bwe-search {
	
	gap: 10px;
	max-width: 640px;
}

.bwe-search input {
	border: 1px solid var(--bwe-border);
	border-radius: 6px;
	flex: 1;
	font: inherit;
	min-height: 42px;
	padding: 8px 12px;
}

.bwe-search button,
.bwe-paper-button,
.bwe-pagination button {
	background: #ebe9ea;
	border: 1px solid var(--bwe-primary);
	border-radius: 6px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 14px;
	justify-content: center;
	line-height: 1.2;
	padding: 9px 13px;
	text-decoration: none;
	white-space: nowrap;
}

.bwe-search button:hover,
.bwe-paper-button:hover,
.bwe-pagination button:hover,
.bwe-pagination button.is-active {
	background: var(--bwe-primary-dark);
	border-color: var(--bwe-primary-dark);
	color: #fff;
}

.bwe-table-wrap {
	background: var(--bwe-surface);
	border: 1px solid var(--bwe-border);
	border-radius: 8px;
	overflow-x: auto;
}

.bwe-paper-table {
	border-collapse: collapse;
	margin: 0;
	min-width: 760px;
	width: 100%;
}

.bwe-paper-table th,
.bwe-paper-table td {
	border-bottom: 1px solid var(--bwe-border);
	padding: 13px 14px;
	text-align: left;
	vertical-align: middle;
}

.bwe-paper-table th {
	background: var(--bwe-soft);
	color: #243545;
	font-size: 13px;
	font-weight: 700;
}

.bwe-paper-table tr:last-child td {
	border-bottom: 0;
}

.bwe-paper-title {
	color: var(--bwe-text);
	font-weight: 700;
	text-decoration: none;
}

.bwe-badge {
	background: #f4c542;
	border-radius: 999px;
	color: #3b2c00;
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	margin-left: 8px;
	padding: 3px 8px;
}

.bwe-empty,
.bwe-no-results {
	color: var(--bwe-muted);
}

.bwe-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 16px;
}

.bwe-pagination button {
	min-width: 40px;
	padding-inline: 10px;
}

.bwe-results.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

.bwe-single-paper {
	max-width: 920px;
}

.bwe-single-content {
	color: var(--bwe-muted);
	margin-bottom: 20px;
}

.bwe-file-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	margin: 20px 0;
}

.bwe-file-card {
	border: 1px solid var(--bwe-border);
	border-radius: 8px;
	padding: 16px;
}

.bwe-file-card strong {
	display: block;
	margin-bottom: 10px;
}

.bwe-related {
	border-top: 1px solid var(--bwe-border);
	margin-top: 26px;
	padding-top: 20px;
}

@media (max-width: 760px) {
	.bwe-layout {
		grid-template-columns: 1fr;
	}

	.bwe-sidebar {
		position: static;
	}

	.bwe-search {
		flex-direction: column;
	}

	.bwe-table-wrap {
		border: 0;
		overflow: visible;
	}

	.bwe-paper-table {
		min-width: 0;
	}

	.bwe-paper-table thead {
		display: none;
	}

	.bwe-paper-table,
	.bwe-paper-table tbody,
	.bwe-paper-table tr,
	.bwe-paper-table td {
		display: block;
		width: 100%;
	}

	.bwe-paper-table tr {
		border: 1px solid var(--bwe-border);
		border-radius: 8px;
		margin-bottom: 12px;
		overflow: hidden;
	}

	.bwe-paper-table td {
		align-items: center;
		display: flex;
		justify-content: space-between;
		gap: 12px;
	}

	.bwe-paper-table td::before {
		color: var(--bwe-muted);
		content: attr(data-label);
		font-size: 13px;
		font-weight: 700;
	}
}
