/* NEXA Blog Detail — dark B2B article template.
   Deep navy-black ground, cool grey body text, blue accent, sparse borders.
   Scoped to .nbd so the light blog list (.nexa-blog) is untouched. */

.nbd {
	--nbd-bg: #060b11;
	--nbd-bg2: #0a1118;
	--nbd-card: #0d141c;
	--nbd-card2: #101a24;
	--nbd-text: #ffffff;
	--nbd-muted: #a7b0bd;
	--nbd-body: #dfe5ec;
	--nbd-accent: #168bff;
	--nbd-accent-hi: #4da6ff;
	--nbd-line: rgba(255, 255, 255, 0.08);
	--nbd-line-strong: rgba(255, 255, 255, 0.16);
	box-sizing: border-box;
	width: 100%;
	background: var(--nbd-bg);
	color: var(--nbd-body);
	font-family: Sora, system-ui, -apple-system, sans-serif;
}
.nbd,
.nbd * {
	box-sizing: border-box;
}
.nbd a {
	color: inherit;
}
.nbd :where(h1, h2, h3, h4) {
	color: var(--nbd-text);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.15;
}
.nbd__wrap {
	max-width: 1280px;
	margin-inline: auto;
	padding-inline: clamp(18px, 4vw, 48px);
}

/* ============================================================
   Section 1 — Article hero
   ============================================================ */
.nbd-hero {
	position: relative;
	min-height: 560px;
	overflow: hidden;
	background: var(--nbd-bg2);
}
.nbd-hero__media {
	position: absolute;
	inset: 0;
}
.nbd-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.nbd-hero__placeholder {
	width: 100%;
	height: 100%;
	background: radial-gradient(circle at 80% 20%, #14233a, var(--nbd-bg2) 70%);
}
.nbd-hero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		rgba(6, 11, 17, 0.96) 0%,
		rgba(6, 11, 17, 0.78) 44%,
		rgba(6, 11, 17, 0.42) 78%,
		rgba(6, 11, 17, 0.62) 100%
	);
}
.nbd-hero__inner {
	position: relative;
	z-index: 2;
	max-width: 1280px;
	margin-inline: auto;
	padding: clamp(72px, 11vw, 128px) clamp(18px, 4vw, 48px) clamp(56px, 8vw, 96px);
}

.nbd-crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 26px;
	font-size: 12px;
}
.nbd-crumb__link {
	color: var(--nbd-muted);
	text-decoration: none;
	transition: color 160ms ease;
}
.nbd-crumb__link:hover {
	color: var(--nbd-accent-hi);
}
.nbd-crumb__sep {
	color: rgba(167, 176, 189, 0.45);
}
.nbd-crumb__current {
	color: rgba(255, 255, 255, 0.82);
}

.nbd-hero__cat {
	display: inline-block;
	margin: 0 0 18px;
	padding: 5px 14px;
	border: 1px solid rgba(22, 139, 255, 0.5);
	border-radius: 999px;
	background: rgba(22, 139, 255, 0.1);
	color: var(--nbd-accent-hi);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}
.nbd-hero__title {
	max-width: 760px;
	margin: 0;
	font-size: clamp(34px, 5vw, 58px);
	line-height: 1.08;
}
.nbd-hero__subtitle {
	max-width: 620px;
	margin: 20px 0 0;
	color: var(--nbd-muted);
	font-size: clamp(16px, 2vw, 19px);
	font-weight: 300;
	line-height: 1.6;
}
.nbd-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 30px;
}
.nbd-hero__meta-item {
	color: var(--nbd-muted);
	font-size: 13px;
}
.nbd-hero__by-label {
	color: rgba(167, 176, 189, 0.7);
}
.nbd-hero__meta-dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--nbd-accent);
}

/* ============================================================
   Section 2 — article + sidebar layout
   ============================================================ */
.nbd__body {
	align-items: flex-start;
	gap: clamp(28px, 4vw, 48px);
	padding-block: clamp(48px, 7vw, 80px) 0;
}
.nbd__article {
	flex: 1 1 0;
	min-width: 0;
	max-width: 800px;
	width: 100%;
}
.nbd__article.wp-block-post-content {
	max-width: 800px;
}

/* ---- Article typography ---- */
.nbd__article p {
	margin: 0 0 1.5em;
	color: var(--nbd-body);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.78;
}
.nbd__article h2 {
	margin: 2.1em 0 0.7em;
	font-size: clamp(24px, 3vw, 30px);
}
.nbd__article h3 {
	margin: 1.9em 0 0.7em;
	font-size: 22px;
}
.nbd__article h4 {
	margin: 1.8em 0 0.6em;
	font-size: 18px;
}
.nbd__article ul,
.nbd__article ol {
	margin: 0 0 1.5em;
	padding-left: 1.2em;
	color: var(--nbd-body);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.75;
}
.nbd__article li {
	margin: 0 0 0.45em;
}
.nbd__article ul {
	padding-left: 0;
	list-style: none;
}
.nbd__article ul > li {
	position: relative;
	padding-left: 1.25em;
}
.nbd__article ul > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.72em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--nbd-accent);
}
.nbd__article ol {
	list-style: decimal;
}
.nbd__article a {
	color: var(--nbd-accent);
	text-decoration: none;
	text-underline-offset: 3px;
	transition: color 160ms ease;
}
.nbd__article a:hover {
	color: var(--nbd-accent-hi);
	text-decoration: underline;
}
.nbd__article blockquote {
	margin: 0 0 1.5em;
	padding: 20px 26px;
	border-left: 3px solid var(--nbd-accent);
	border-radius: 0 10px 10px 0;
	background: var(--nbd-card);
	color: var(--nbd-text);
}
.nbd__article blockquote p {
	color: var(--nbd-text);
	font-size: 18px;
	font-style: normal;
}
.nbd__article figure {
	margin: 0 0 1.5em;
}
.nbd__article img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}
.nbd__article figcaption {
	margin-top: 10px;
	color: var(--nbd-muted);
	font-size: 13px;
	font-weight: 300;
	text-align: center;
}
.nbd__article table {
	width: 100%;
	margin: 0 0 1.5em;
	border-collapse: collapse;
	background: var(--nbd-card);
	font-size: 15px;
	font-weight: 300;
}
.nbd__article th,
.nbd__article td {
	padding: 12px 15px;
	border: 1px solid var(--nbd-line);
	text-align: left;
}
.nbd__article th {
	background: var(--nbd-card2);
	color: var(--nbd-text);
	font-weight: 600;
}
.nbd__article hr {
	margin: 2.5em 0;
	border: 0;
	border-top: 1px solid var(--nbd-line-strong);
}
.nbd__article code {
	padding: 2px 6px;
	border-radius: 4px;
	background: var(--nbd-card2);
	color: var(--nbd-text);
	font-size: 0.9em;
}

/* ============================================================
   Sidebar
   ============================================================ */
.nbd-side {
	flex: 0 0 320px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.nbd-card {
	padding: 24px;
	border: 1px solid var(--nbd-line);
	border-radius: 14px;
	background: var(--nbd-card);
}
.nbd-card__title {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.nbd-cats {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}
.nbd-cats__item {
	margin: 0;
	border-bottom: 1px solid var(--nbd-line);
}
.nbd-cats__item:last-child {
	border-bottom: 0;
}
.nbd-cats__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0 12px 12px;
	border-left: 2px solid transparent;
	color: var(--nbd-muted);
	font-size: 14px;
	font-weight: 300;
	text-decoration: none;
	transition: color 160ms ease, border-color 160ms ease;
}
.nbd-cats__link:hover {
	color: var(--nbd-text);
}
.nbd-cats__item.is-active .nbd-cats__link {
	border-left-color: var(--nbd-accent);
	color: var(--nbd-accent-hi);
}
.nbd-cats__count {
	color: rgba(167, 176, 189, 0.6);
	font-size: 13px;
}

.nbd-recent {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}
.nbd-recent__item {
	margin: 0 0 16px;
}
.nbd-recent__item:last-child {
	margin-bottom: 0;
}
.nbd-recent__link {
	display: flex;
	gap: 14px;
	text-decoration: none;
}
.nbd-recent__thumb {
	flex: 0 0 76px;
	width: 76px;
	aspect-ratio: 4 / 3;
	border-radius: 8px;
	overflow: hidden;
	background: var(--nbd-card2);
}
.nbd-recent__thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.nbd-recent__thumb--empty {
	background: var(--nbd-card2);
}
.nbd-recent__body {
	min-width: 0;
}
.nbd-recent__title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 5px;
	color: var(--nbd-text);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.45;
	transition: color 160ms ease;
}
.nbd-recent__link:hover .nbd-recent__title {
	color: var(--nbd-accent-hi);
}
.nbd-recent__date {
	color: var(--nbd-muted);
	font-size: 12px;
}

.nbd-side__cta {
	background: var(--nbd-card2);
	border-color: rgba(22, 139, 255, 0.22);
}
.nbd-side__cta-text {
	margin: 8px 0 18px;
	color: var(--nbd-muted);
	font-size: 14px;
	font-weight: 300;
	line-height: 1.6;
}
.nbd-btn {
	display: inline-block;
	padding: 12px 20px;
	border-radius: 8px;
	background: var(--nbd-accent);
	color: #ffffff;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-decoration: none;
	transition: background-color 160ms ease;
}
.nbd-btn:hover {
	background: var(--nbd-accent-hi);
}
.nbd a:focus-visible,
.nbd .nbd-btn:focus-visible {
	outline: 2px solid var(--nbd-accent);
	outline-offset: 2px;
}

/* ============================================================
   Article footer — tags + prev/next
   ============================================================ */
.nbd-foot {
	margin-top: clamp(48px, 6vw, 80px);
	padding-top: 32px;
	border-top: 1px solid var(--nbd-line-strong);
}
.nbd-tags {
	margin-bottom: 36px;
}
.nbd-tags__label {
	margin: 0 0 14px;
	color: var(--nbd-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.nbd-tags__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.nbd-tags__tag {
	padding: 7px 15px;
	border: 1px solid var(--nbd-line);
	border-radius: 999px;
	color: var(--nbd-muted);
	font-size: 13px;
	font-weight: 300;
	text-decoration: none;
	transition: color 160ms ease, border-color 160ms ease;
}
.nbd-tags__tag:hover {
	border-color: var(--nbd-accent);
	color: var(--nbd-accent-hi);
}

.nbd-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
.nbd-nav__link {
	display: block;
	padding: 20px 22px;
	border: 1px solid var(--nbd-line);
	border-radius: 12px;
	background: var(--nbd-card);
	text-decoration: none;
	transition: border-color 160ms ease, background-color 160ms ease;
}
.nbd-nav__link:hover {
	border-color: var(--nbd-line-strong);
	background: var(--nbd-card2);
}
.nbd-nav__link--next {
	text-align: right;
}
.nbd-nav__link.is-empty {
	opacity: 0.35;
}
.nbd-nav__dir {
	display: block;
	margin-bottom: 6px;
	color: var(--nbd-muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.nbd-nav__title {
	color: var(--nbd-text);
	font-size: 15px;
	font-weight: 300;
	line-height: 1.4;
}

/* ============================================================
   Related articles
   ============================================================ */
.nbd-related {
	margin-top: clamp(56px, 7vw, 88px);
	padding-bottom: clamp(72px, 10vw, 120px);
}
.nbd-related__title {
	margin: 0 0 clamp(20px, 3vw, 30px);
	font-size: clamp(22px, 3vw, 28px);
}
.nbd-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(16px, 2.5vw, 24px);
}
.nbd-related__card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--nbd-line);
	border-radius: 12px;
	background: var(--nbd-card);
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	transition: border-color 180ms ease, transform 180ms ease;
}
.nbd-related__card:hover {
	border-color: var(--nbd-line-strong);
	transform: translateY(-3px);
}
.nbd-related__media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--nbd-card2);
}
.nbd-related__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.nbd-related__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 8px;
	padding: 20px 20px 22px;
}
.nbd-related__cat {
	color: var(--nbd-accent-hi);
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.nbd-related__card-title {
	color: var(--nbd-text);
	font-size: 17px;
	font-weight: 300;
	line-height: 1.4;
	transition: color 160ms ease;
}
.nbd-related__card:hover .nbd-related__card-title {
	color: var(--nbd-accent-hi);
}
.nbd-related__date {
	margin-top: auto;
	color: var(--nbd-muted);
	font-size: 12px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
	.nbd-related__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 920px) {
	.nbd__body {
		flex-direction: column;
	}
	.nbd-side {
		flex: 1 1 auto;
		width: 100%;
		max-width: 720px;
	}
}
@media (max-width: 820px) {
	.nbd-hero {
		min-height: 0;
	}
	.nbd-hero__scrim {
		background: linear-gradient(
			to bottom,
			rgba(6, 11, 17, 0.6) 0%,
			rgba(6, 11, 17, 0.94) 100%
		);
	}
	.nbd-hero__inner {
		padding-block: clamp(44px, 12vw, 88px) clamp(40px, 10vw, 72px);
	}
	.nbd-hero__title {
		font-size: clamp(32px, 9vw, 42px);
	}
	.nbd-crumb {
		margin-bottom: 20px;
	}
	.nbd-nav {
		grid-template-columns: 1fr;
	}
	.nbd-nav__link--next {
		text-align: left;
	}
	.nbd-related__grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nbd a,
	.nbd-cat__link,
	.nbd-cats__link,
	.nbd-recent__title,
	.nbd-tags__tag,
	.nbd-related__card,
	.nbd-nav__link,
	.nbd-btn {
		transition: none;
	}
	.nbd-related__card:hover {
		transform: none;
	}
}
