.nx-news-template {
	background: #f5f7fb;
}

.nx-news-detail {
	--nx-news-sticky-top: 50px;
	padding-bottom: 56px;
}

body.admin-bar .nx-news-detail {
	--nx-news-sticky-top: 82px;
}

.nx-news-detail .page-breadcrumbs {
	padding-top: 10px;
	padding-left: 10px;
	padding-right: 10px;
}

.nx-news-detail .nx-news-layout.row {
	margin-left: auto;
	margin-right: auto;
}

.nx-news-detail .nx-news-layout.row > .col {
	padding-left: 10px;
	padding-right: 10px;
}

.nx-news-detail .nx-news-breadcrumbs {
	margin-bottom: 18px;
	font-size: 13px;
	line-height: 1.6;
	color: #7d8ba8;
}

.nx-news-detail .nx-news-breadcrumbs a {
	color: #3a5aa9;
}

.nx-news-detail .nx-news-breadcrumbs span.separator,
.nx-news-detail .nx-news-breadcrumbs__fallback span {
	margin: 0 6px;
	color: #a1adc4;
}

.nx-news-detail .nx-news-main {
	min-width: 0;
}

.nx-news-detail .nx-news-article {
	color: #1d2a44;
}

.nx-news-detail .nx-news-hero {
	position: relative;
	margin-bottom: 10px;
}

.nx-news-detail .nx-news-hero__panel {
	position: relative;
	z-index: 2;
	width: calc(100% - 20px);
	max-width: calc(100% - 20px);
	margin: -100px 10px 0;
	padding: 10px;
	background: #fff;
	border: 1px solid #e4ebf6;
	border-radius: 10px;
	box-shadow: 0 22px 60px rgba(24, 48, 92, 0.08);
}

.nx-news-detail .nx-news-hero--no-image .nx-news-hero__panel {
	width: 100%;
	max-width: 100%;
	margin: 0;
}

.nx-news-detail .nx-news-hero__text {
	min-width: 0;
}

.nx-news-detail .nx-news-featured {
	margin: 0;
}

.nx-news-detail .nx-news-featured__media {
	aspect-ratio: 16 / 8.8;
	overflow: hidden;
	border-radius: 15px;
	background: #edf2f9;
	box-shadow: 0 20px 54px rgba(24, 48, 92, 0.07);
}

.nx-news-detail .nx-news-featured img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 15px;
}

.nx-news-detail .nx-news-featured figcaption {
	margin-top: 12px;
	font-size: 13px;
	line-height: 1.5;
	color: #7d8ba8;
	text-align: center;
}

.nx-news-detail .nx-news-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: #fef0f2;
	color: #d11e3f;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.nx-news-detail .nx-news-title {
	margin: 16px 0 14px;
	font-size: 42px;
	line-height: 1.12;
	font-weight: 800;
	color: #10203f;
}

.nx-news-detail .nx-news-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 18px;
	margin-bottom: 18px;
	font-size: 14px;
	color: #667792;
}

.nx-news-detail .nx-news-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.nx-news-detail .nx-news-meta__item--author strong {
	color: #10203f;
}

.nx-news-detail .nx-news-author-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, #1f53c5 0%, #4f7df0 100%);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
}

.nx-news-detail .nx-news-summary {
	font-size: 18px;
	line-height: 1.8;
	color: #41506b;
}

.nx-news-detail .nx-news-summary p:last-child {
	margin-bottom: 0;
}

.nx-news-detail .nx-news-top-toc {
	position: sticky;
	top: var(--nx-news-sticky-top);
	background: linear-gradient(180deg, #dfeaff 0%, #f7faff 100%);
	border: 1px solid #bfd2fb;
	border-radius: 10px;
	box-shadow: 0 14px 34px rgba(24, 48, 92, 0.12);
	margin: 0 0 10px;
	overflow: hidden;
	z-index: 40;
}

.nx-news-detail .nx-news-top-toc__bar {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	padding: 10px;
}

.nx-news-detail .nx-news-top-toc__current {
	display: block;
	min-width: 0;
	flex: 1 1 auto;
	font-size: 13px;
	line-height: 1.45;
	font-weight: 700;
	color: #1f53c5;
	white-space: normal;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.nx-news-detail .nx-news-top-toc__toggle {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	flex: 0 0 auto;
	gap: 5px;
	padding: 5px 10px;
	border: 0;
	border-radius: 10px;
	background: #dfeaff;
	color: #1f53c5;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: 0.2s ease;
}

.nx-news-detail .nx-news-top-toc__toggle:hover {
	background: #d4e2ff;
}

.nx-news-detail .nx-news-top-toc__toggle::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
	transition: 0.2s ease;
}

.nx-news-detail .nx-news-top-toc.is-expanded .nx-news-top-toc__toggle::after {
	transform: rotate(-135deg) translateY(-1px);
}

.nx-news-detail .nx-news-top-toc__panel {
	overflow: auto;
	overflow-x: hidden;
	max-height: min(420px, calc(100vh - var(--nx-news-sticky-top) - 24px));
	padding: 0 10px 10px;
	border-top: 1px solid #edf1f7;
	background: rgba(236, 243, 255, 0.9);
	transition: max-height 0.25s ease, padding 0.25s ease, border-color 0.25s ease;
	scrollbar-width: thin;
	scrollbar-color: #cfdbf0 transparent;
}

.nx-news-detail .nx-news-top-toc.is-collapsed .nx-news-top-toc__panel {
	max-height: 0;
	padding-top: 0;
	padding-bottom: 0;
	border-top-color: transparent;
}

.nx-news-detail .nx-news-top-toc__panel::-webkit-scrollbar {
	width: 6px;
}

.nx-news-detail .nx-news-top-toc__panel::-webkit-scrollbar-thumb {
	background: #cfdbf0;
	border-radius: 999px;
}

.nx-news-detail .nx-news-toc {
	max-height: none;
	overflow: visible;
	padding-right: 0;
	scrollbar-width: auto;
}

.nx-news-detail .nx-news-toc::-webkit-scrollbar {
	width: 0;
}

.nx-news-detail .nx-news-toc::-webkit-scrollbar-thumb {
	background: transparent;
}

.nx-news-detail .nx-news-toc-list {
	list-style: none;
	margin: 0;
	padding: 10px 0 0;
}

.nx-news-detail .nx-news-toc-item + .nx-news-toc-item {
	margin-top: 5px;
}

.nx-news-detail .nx-news-toc-item.is-h3 a {
	padding-left: 15px;
	font-size: 13px;
}

.nx-news-detail .nx-news-toc a {
	display: block;
	padding: 5px 10px;
	border-radius: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: #41506b;
	background: transparent;
	transition: 0.2s ease;
}

.nx-news-detail .nx-news-toc a:hover,
.nx-news-detail .nx-news-toc a.is-active {
	background: #edf3ff;
	color: #1f53c5;
}

.nx-news-detail .nx-news-toc-empty {
	margin: 0;
	padding: 10px 0 0;
	font-size: 13px;
	line-height: 1.6;
	color: #7d8ba8;
}

.nx-news-detail .nx-news-entry,
.nx-news-detail .nx-news-tags,
.nx-news-detail .nx-news-nav,
.nx-news-detail .nx-news-related,
.nx-news-detail .nx-news-comments {
	background: #fff;
	border: 1px solid #e4ebf6;
	border-radius: 10px;
	box-shadow: 0 18px 48px rgba(24, 48, 92, 0.05);
}

.nx-news-detail .nx-news-entry {
	padding: 10px;
	font-size: 17px;
	line-height: 1.9;
	color: #283854;
}

.nx-news-detail .nx-news-entry .ez-toc-container,
.nx-news-detail .nx-news-entry #ez-toc-container,
.nx-news-detail .nx-news-entry .ez-toc-widget-container,
.nx-news-detail .nx-news-entry .lwptoc,
.nx-news-detail .nx-news-entry #toc_container,
.nx-news-detail .nx-news-entry .toc_container {
	display: none !important;
}

.nx-news-detail .nx-news-entry > *:first-child {
	margin-top: 0;
}

.nx-news-detail .nx-news-entry > *:last-child {
	margin-bottom: 0;
}

.nx-news-detail .nx-news-entry h2,
.nx-news-detail .nx-news-entry h3,
.nx-news-detail .nx-news-entry h4 {
	scroll-margin-top: calc(var(--nx-news-sticky-top) + 34px);
	color: #10203f;
}

.nx-news-detail .nx-news-entry h2 {
	margin: 34px 0 16px;
	font-size: 32px;
	line-height: 1.25;
	font-weight: 800;
}

.nx-news-detail .nx-news-entry h3 {
	margin: 28px 0 14px;
	font-size: 24px;
	line-height: 1.35;
	font-weight: 700;
}

.nx-news-detail .nx-news-entry h4 {
	margin: 24px 0 12px;
	font-size: 20px;
	line-height: 1.4;
	font-weight: 700;
}

.nx-news-detail .nx-news-entry p,
.nx-news-detail .nx-news-entry ul,
.nx-news-detail .nx-news-entry ol,
.nx-news-detail .nx-news-entry blockquote {
	margin-bottom: 20px;
}

.nx-news-detail .nx-news-entry ul,
.nx-news-detail .nx-news-entry ol {
	padding-left: 24px;
}

.nx-news-detail .nx-news-entry li + li {
	margin-top: 8px;
}

.nx-news-detail .nx-news-entry img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 10px;
	margin: 24px auto;
}

.nx-news-detail .nx-news-entry table {
	width: 100%;
	border-collapse: collapse;
	overflow: hidden;
	border-radius: 10px;
	border: 1px solid #e3eaf5;
	font-size: 15px;
}

.nx-news-detail .nx-news-entry th,
.nx-news-detail .nx-news-entry td {
	padding: 10px;
	border: 1px solid #e3eaf5;
	vertical-align: top;
}

.nx-news-detail .nx-news-entry th {
	background: #f6f9ff;
	color: #10203f;
	font-weight: 700;
}

.nx-news-detail .nx-news-entry a {
	color: #1f53c5;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.nx-news-detail .nx-news-entry blockquote {
	padding: 10px;
	border-left: 4px solid #1f53c5;
	border-radius: 10px;
	background: #f5f8ff;
	color: #25375b;
}

.nx-news-detail .nx-news-tags,
.nx-news-detail .nx-news-nav,
.nx-news-detail .nx-news-related,
.nx-news-detail .nx-news-comments {
	margin-top: 10px;
}

.nx-news-detail .nx-news-tags,
.nx-news-detail .nx-news-related,
.nx-news-detail .nx-news-comments {
	padding: 10px;
}

.nx-news-detail .nx-news-section-title {
	margin: 0 0 10px;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 800;
	color: #10203f;
}

.nx-news-detail .nx-news-tags__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.nx-news-detail .nx-news-tag {
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	border-radius: 999px;
	background: #f3f6fb;
	font-size: 14px;
	font-weight: 600;
	color: #41506b;
}

.nx-news-detail .nx-news-tag:hover {
	background: #edf3ff;
	color: #1f53c5;
}

.nx-news-detail .nx-news-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	padding: 10px;
}

.nx-news-detail .nx-news-nav__item {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 10px;
	border-radius: 10px;
	background: #f7f9fd;
	min-height: 0;
	color: #10203f;
}

.nx-news-detail .nx-news-nav__label {
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: #7d8ba8;
}

.nx-news-detail .nx-news-nav__item strong {
	display: block;
	font-size: 13px;
	line-height: 1.6;
	font-weight: 400;
	color: #10203f;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nx-news-detail .nx-news-nav__item:hover {
	background: #edf3ff;
	color: #1f53c5;
}

.nx-news-detail .nx-news-related__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	align-items: stretch;
}

.nx-news-detail .nx-news-related__col {
	min-width: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 10px;
	border: 1px solid #e7edf7;
	border-radius: 10px;
	background: #fbfcff;
}

.nx-news-detail .nx-news-related__col-title {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #10203f;
}

.nx-news-detail .nx-news-related-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	flex: 1 1 auto;
}

.nx-news-detail .nx-news-related-item {
	display: grid;
	grid-template-columns: 30px minmax(0, 1fr);
	gap: 8px;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid #e7edf7;
	background: transparent;
	border-radius: 0;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nx-news-detail .nx-news-related-item:first-child {
	padding-top: 0;
}

.nx-news-detail .nx-news-related-item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.nx-news-detail .nx-news-related-item:hover {
	background: #f5f8ff;
	transform: translateX(2px);
}

.nx-news-detail .nx-news-related-item__index {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 26px;
	min-width: 30px;
	border-radius: 10px;
	background: #edf3ff;
	color: #1f53c5;
	font-size: 11px;
	font-weight: 600;
}

.nx-news-detail .nx-news-related-item__body {
	min-width: 0;
}

.nx-news-detail .nx-news-related-item__title {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 400;
}

.nx-news-detail .nx-news-related-item__title a {
	display: block;
	color: #10203f;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.2s ease;
}

.nx-news-detail .nx-news-related-item__title a:hover {
	color: #1f53c5;
}

.nx-news-detail .nx-news-related-item__meta {
	font-size: 13px;
	color: #7d8ba8;
}

.nx-news-detail .comments-area,
.nx-news-detail .comment-respond {
	margin: 0;
}

.nx-news-detail .comments-title,
.nx-news-detail .comment-reply-title {
	color: #10203f;
}

@media (max-width: 1100px) {
	.nx-news-detail .nx-news-title {
		font-size: 36px;
	}

	.nx-news-detail .nx-news-top-toc {
		position: static;
	}

	.nx-news-detail .nx-news-top-toc.is-collapsed .nx-news-top-toc__panel,
	.nx-news-detail .nx-news-top-toc__panel {
		max-height: none;
		padding-bottom: 10px;
		border-top-color: #edf1f7;
	}

	.nx-news-detail .nx-news-top-toc__toggle {
		display: none;
	}

	.nx-news-detail .nx-news-toc {
		max-height: none;
		overflow: visible;
	}

	.nx-news-detail .nx-news-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.nx-news-detail {
		padding-bottom: 34px;
	}

	.nx-news-detail .page-breadcrumbs {
		padding-top: 10px;
		padding-left: 10px;
		padding-right: 10px;
	}

	.nx-news-detail .nx-news-hero {
		margin-bottom: 10px;
	}

	.nx-news-detail .nx-news-hero__panel {
		width: calc(100% - 20px);
		max-width: calc(100% - 20px);
		margin: -36px auto 0;
		padding: 10px;
		border-radius: 10px;
	}

	.nx-news-detail .nx-news-top-toc__bar {
		padding: 10px;
	}

	.nx-news-detail .nx-news-top-toc__current {
		font-size: 13px;
	}

	.nx-news-detail .nx-news-title {
		margin: 14px 0 12px;
		font-size: 30px;
	}

	.nx-news-detail .nx-news-summary {
		font-size: 16px;
		line-height: 1.75;
	}

	.nx-news-detail .nx-news-featured__media,
	.nx-news-detail .nx-news-featured img {
		border-radius: 15px;
	}

	.nx-news-detail .nx-news-featured__media {
		aspect-ratio: 4 / 3;
	}

	.nx-news-detail .nx-news-entry,
	.nx-news-detail .nx-news-tags,
	.nx-news-detail .nx-news-related,
	.nx-news-detail .nx-news-comments {
		padding: 10px;
		border-radius: 10px;
	}

	.nx-news-detail .nx-news-nav {
		grid-template-columns: 1fr;
		padding: 10px;
	}

	.nx-news-detail .nx-news-nav__item {
		min-height: 0;
	}

	.nx-news-detail .nx-news-entry {
		font-size: 16px;
		line-height: 1.8;
	}

	.nx-news-detail .nx-news-entry h2 {
		font-size: 26px;
	}

	.nx-news-detail .nx-news-entry h3 {
		font-size: 21px;
	}

	.nx-news-detail .nx-news-entry table {
		display: block;
		overflow-x: auto;
		white-space: nowrap;
	}

	.nx-news-detail .nx-news-related__grid {
		grid-template-columns: 1fr;
	}

	.nx-news-detail .nx-news-related__col:last-child {
		display: none;
	}
}
