.ar-page {
	min-width: 0;
}

.ar-hero {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	padding: 0.85rem 1rem;
	border-radius: 1rem;
	background:
		radial-gradient(circle at 12% 20%, rgba(120, 146, 255, 0.22), transparent 52%),
		radial-gradient(circle at 88% 82%, rgba(78, 236, 216, 0.16), transparent 44%),
		linear-gradient(130deg, #1a2544 0%, #1f2f57 42%, #25396c 100%);
	border: 1px solid rgba(145, 172, 255, 0.32);
	box-shadow: 0 12px 28px rgba(33, 45, 88, 0.22);
}

.ar-hero-main {
	min-width: 0;
	flex: 1 1 16rem;
}

.ar-hero-title {
	margin: 0;
	color: #e8efff;
	font-size: clamp(1.05rem, 2vw, 1.28rem);
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
}

.ar-hero-subtitle {
	margin: 0.32rem 0 0;
	font-size: 0.8rem;
	line-height: 1.5;
	color: rgba(216, 228, 255, 0.86);
	max-width: 36rem;
}

.ar-hero-strip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.55rem 0.75rem;
	padding: 0.55rem 0.85rem;
	border-radius: 0.75rem;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: rgba(226, 235, 255, 0.92);
	font-size: 0.78rem;
	white-space: nowrap;
}

.ar-strip-item strong {
	color: #fff;
	font-weight: 700;
	margin-right: 0.12rem;
}

.ar-strip-sep {
	width: 1px;
	height: 0.95rem;
	background: rgba(255, 255, 255, 0.18);
}

.ar-filter-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	padding: 0.55rem 0.15rem 0;
}

.ar-filter-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
}

.ar-filter-label {
	font-size: 0.74rem;
	font-weight: 700;
	color: #6b7ea8;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.ar-filter-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	font-size: 0.76rem;
	color: #4a63a8;
	background: #eef3ff;
	border: 1px solid #d7e3ff;
}

.ar-filter-clear {
	font-size: 0.76rem;
	font-weight: 600;
	color: #5b75b5;
	text-decoration: none;
}

.ar-filter-clear:hover {
	color: #3f5fd0;
}

.ar-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 17.5rem;
	gap: 1.25rem;
	align-items: start;
}

.ar-feed {
	display: flex;
	flex-direction: column;
	gap: 0;
	min-width: 0;
	border-top: 1px solid #e4ecff;
}

.ar-item {
	padding: 1.05rem 0;
	border-bottom: 1px solid #e8eeff;
	transition: background-color 0.16s ease;
}

.ar-item:not(.ar-item--no-cover) {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: start;
	column-gap: 1rem;
}

.ar-item:hover {
	background: linear-gradient(90deg, rgba(238, 245, 255, 0.55), transparent 72%);
}

.ar-item--no-cover {
	display: block;
}

.ar-item-cover {
	--ar-cover-h: 8.75rem;
	--ar-cover-w: calc(var(--ar-cover-h) * 4 / 3);
	display: block;
	align-self: start;
	flex-shrink: 0;
	width: var(--ar-cover-w);
	height: var(--ar-cover-h);
	max-width: var(--ar-cover-w);
	max-height: var(--ar-cover-h);
	min-width: calc(6.25rem * 4 / 3);
	min-height: 6.25rem;
	aspect-ratio: 4 / 3;
	border-radius: 0.72rem;
	overflow: hidden;
	background: linear-gradient(145deg, #eef3ff, #e4ecff);
	border: 1px solid #dce6fb;
	box-shadow: 0 4px 14px rgba(82, 102, 156, 0.08);
	transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.ar-item:hover .ar-item-cover {
	border-color: #c8d7f8;
	box-shadow: 0 8px 20px rgba(76, 98, 160, 0.14);
}

.ar-item-cover img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.22s ease;
}

.ar-item:hover .ar-item-cover img {
	transform: scale(1.03);
}

.ar-item-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0;
	padding: 0.05rem 0;
}

.ar-item-title {
	margin: 0 0 0.35rem;
	font-size: 1.02rem;
	font-weight: 700;
	line-height: 1.35;
}

.ar-item-title a {
	color: #233865;
	text-decoration: none;
}

.ar-item-title a:hover {
	color: #1f59ce;
}

.ar-item-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.65rem;
	margin-bottom: 0.45rem;
	font-size: 0.74rem;
	color: #7a8eb8;
}

.ar-item-meta i {
	margin-right: 0.15rem;
}

.ar-meta-link {
	color: #5b75b5;
	text-decoration: none;
	font-weight: 600;
}

.ar-meta-link:hover {
	color: #3f5fd0;
}

.ar-item-summary {
	margin: 0 0 0.55rem;
	font-size: 0.86rem;
	line-height: 1.65;
	color: #5a6f98;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ar-item-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: 0.5rem;
}

.ar-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.ar-tag {
	font-size: 0.72rem;
	color: #5b6fa3;
	text-decoration: none;
	padding: 0.14rem 0.45rem;
	border-radius: 999px;
	background: #f3f7ff;
	border: 1px solid #e0ebff;
}

.ar-tag:hover {
	background: #e8f0ff;
	color: #3f5fd0;
}

.ar-read-link {
	display: inline-flex;
	align-items: center;
	gap: 0.1rem;
	font-size: 0.76rem;
	font-weight: 700;
	color: #4a66e0;
	text-decoration: none;
	white-space: nowrap;
}

.ar-read-link:hover {
	color: #2f4fd0;
}

.ar-muted {
	font-size: 0.74rem;
	color: #8a9bc4;
}

.ar-empty {
	padding: 2rem 0;
	text-align: center;
	color: #7a8eb8;
	font-size: 0.9rem;
}

.ar-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	padding-top: 0.85rem;
}

.ar-page-btn {
	text-decoration: none;
	border-radius: 0.55rem;
	border: 1px solid #d5e1fb;
	background: #fff;
	color: #4f67a5;
	font-size: 0.76rem;
	padding: 0.28rem 0.58rem;
}

.ar-page-btn.is-active {
	background: linear-gradient(135deg, #5873ec, #4764db);
	border-color: #4764db;
	color: #fff;
}

.ar-page-btn.is-disabled {
	pointer-events: none;
	opacity: 0.45;
}

.ar-aside {
	position: sticky;
	top: 4.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding-top: 0.15rem;
}

.ar-aside-block {
	min-width: 0;
}

.ar-aside-title {
	margin: 0 0 0.55rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #7a8eb8;
}

.ar-pill-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.ar-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
	padding: 0.22rem 0.52rem;
	border-radius: 999px;
	font-size: 0.74rem;
	text-decoration: none;
	color: #516ca8;
	background: #f2f6ff;
	border: 1px solid #dbe7ff;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.ar-pill span {
	color: #8a9bc4;
	font-size: 0.68rem;
}

.ar-pill:hover,
.ar-pill.is-active {
	background: #e8f0ff;
	border-color: #c5d8ff;
	color: #3f5fd0;
}

.ar-pill.is-active {
	font-weight: 700;
	box-shadow: inset 0 0 0 1px rgba(74, 102, 224, 0.18);
}

[data-bs-theme="dark"] .ar-hero {
	background:
		radial-gradient(circle at 12% 20%, rgba(120, 146, 255, 0.18), transparent 52%),
		radial-gradient(circle at 88% 82%, rgba(78, 236, 216, 0.12), transparent 44%),
		linear-gradient(130deg, #151f36 0%, #1b2b4a 42%, #21365c 100%);
	border-color: rgba(118, 147, 232, 0.38);
	box-shadow: 0 14px 30px rgba(4, 9, 18, 0.32);
}

[data-bs-theme="dark"] .ar-filter-label,
[data-bs-theme="dark"] .ar-aside-title,
[data-bs-theme="dark"] .ar-item-meta,
[data-bs-theme="dark"] .ar-muted {
	color: #9bb2de;
}

[data-bs-theme="dark"] .ar-filter-chip,
[data-bs-theme="dark"] .ar-tag,
[data-bs-theme="dark"] .ar-pill {
	background: #243451;
	border-color: #37517f;
	color: #a9c0ef;
}

[data-bs-theme="dark"] .ar-filter-chip span,
[data-bs-theme="dark"] .ar-pill span {
	color: #8ea6d8;
}

[data-bs-theme="dark"] .ar-filter-clear,
[data-bs-theme="dark"] .ar-meta-link,
[data-bs-theme="dark"] .ar-read-link {
	color: #9eb6ef;
}

[data-bs-theme="dark"] .ar-feed {
	border-top-color: #334666;
}

[data-bs-theme="dark"] .ar-item {
	border-bottom-color: #2f4264;
}

[data-bs-theme="dark"] .ar-item:hover {
	background: linear-gradient(90deg, rgba(36, 52, 81, 0.55), transparent 72%);
}

[data-bs-theme="dark"] .ar-item-title a {
	color: #e3ecff;
}

[data-bs-theme="dark"] .ar-item-title a:hover {
	color: #b8cbff;
}

[data-bs-theme="dark"] .ar-item-summary {
	color: #b0c4ea;
}

[data-bs-theme="dark"] .ar-item-cover {
	background: linear-gradient(145deg, #243451, #1f2d48);
	border-color: #37517f;
	box-shadow: 0 6px 18px rgba(4, 9, 18, 0.28);
}

[data-bs-theme="dark"] .ar-item:hover .ar-item-cover {
	border-color: #4a6bb0;
	box-shadow: 0 10px 24px rgba(4, 9, 18, 0.38);
}

[data-bs-theme="dark"] .ar-page-btn {
	background: #1f2d48;
	border-color: #35507e;
	color: #b5caef;
}

[data-bs-theme="dark"] .ar-pill.is-active {
	background: #2a4068;
	border-color: #4a6bb0;
	color: #dbe8ff;
}

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

	.ar-aside {
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 1.25rem;
		padding-top: 0;
		border-top: 1px solid #e4ecff;
		padding-top: 0.85rem;
	}

	.ar-aside-block {
		flex: 1 1 14rem;
	}

	[data-bs-theme="dark"] .ar-aside {
		border-top-color: #334666;
	}
}

@media (max-width: 768px) {
	.ar-hero {
		padding: 0.75rem 0.85rem;
	}

	.ar-hero-strip {
		width: 100%;
		justify-content: flex-start;
		white-space: normal;
	}

	.ar-layout {
		gap: 1rem;
	}

	.ar-item {
		padding: 0.9rem 0;
	}

	.ar-item:not(.ar-item--no-cover) {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 0.7rem;
	}

	.ar-item-cover {
		--ar-cover-h: auto;
		--ar-cover-w: 100%;
		width: 100%;
		max-width: none;
		height: auto;
		max-height: none;
		min-width: 0;
		min-height: 0;
		aspect-ratio: 4 / 3;
		margin-inline: 0;
	}

	.ar-item-body {
		padding-top: 0;
	}

	.ar-item-title {
		font-size: 1rem;
	}

	.ar-item-summary {
		-webkit-line-clamp: 3;
	}
}
