/* Neto UI — Blog carousel / 4-col editorial grid */

.neto-blog {
	position: relative;
	z-index: 1;
	isolation: isolate;
	padding-block: var(--neto-section-y, clamp(3.5rem, 8vh, 6rem));
	margin: 0;
	background: transparent;
	color: var(--neto-ink);
	font-family: var(--neto-font);
}

.neto-blog__wrap {
	position: relative;
	z-index: 1;
	min-width: 0;
	width: min(100% - 1.75rem, var(--neto-content-max, 1300px));
	max-width: none;
	margin-inline: auto;
	padding-inline: 0;
}

@media (max-width: 640px) {
	.neto-blog__wrap {
		width: min(100% - 1.25rem, var(--neto-content-max, 1300px));
	}
}

.neto-blog__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin: 0 0 clamp(1.75rem, 4vh, 2.75rem);
}

.neto-blog__head-main {
	max-width: 42rem;
	text-align: right;
	min-width: 0;
}

.neto-blog__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	margin: 0 0 1rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--neto-muted);
}

.neto-blog__eyebrow-line {
	display: inline-block;
	width: 2.25rem;
	height: 2px;
	border-radius: 999px;
	background: var(--neto-eyebrow-line, var(--neto-accent));
	transform-origin: right center;
}

html[data-neto-ui-theme="dark"] .neto-blog__eyebrow-line {
	background: #00d7ff;
}

.neto-blog__title {
	margin: 0;
	font-size: clamp(1.2rem, 1.85vw, 1.5rem);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.55;
	color: var(--neto-ink);
	text-wrap: balance;
}

.neto-blog__lead {
	margin: 0.75rem 0 0;
	font-size: 0.95rem;
	line-height: 1.8;
	color: var(--neto-muted);
}

.neto-blog__lead p {
	margin: 0;
}

.neto-blog__lead a {
	color: inherit !important;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.neto-blog__date {
	display: block;
	margin: 0 0 0.4rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--neto-muted);
}

.neto-blog__page-lead {
	margin: 0 0 1.35rem;
	max-width: 42rem;
	font-size: 0.95rem;
	line-height: 1.85;
	color: var(--neto-muted);
}

.neto-blog__page-lead p {
	margin: 0;
}

.neto-blog__empty {
	margin: 0;
	padding: 2rem 0;
	text-align: center;
	color: var(--neto-muted);
}

/* Full blog page — static grid, no carousel peek */
.neto-blog--page {
	padding-block: clamp(0.75rem, 2.5vh, 1.5rem) clamp(2.25rem, 5.5vh, 3.5rem);
}

.neto-blog--page .neto-blog__wrap {
	width: min(100% - 1.75rem, var(--neto-content-max, 1300px));
	max-width: none;
	margin-inline: auto;
	padding-inline: 0;
}

@media (max-width: 640px) {
	.neto-blog--page .neto-blog__wrap {
		width: min(100% - 1.25rem, var(--neto-content-max, 1300px));
	}
}

.neto-blog--page .neto-blog__viewport {
	overflow: visible;
	cursor: default;
	scroll-snap-type: none;
	touch-action: auto;
	user-select: auto;
}

.neto-blog--page .neto-blog__track {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	padding: 0;
}

.neto-blog--page .neto-blog__slide {
	flex: none;
	width: auto;
	min-width: 0;
	scroll-snap-align: unset;
}

@media (max-width: 1100px) {
	.neto-blog--page .neto-blog__track {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.neto-blog--page .neto-blog__track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.neto-blog--page .neto-blog__track {
		grid-template-columns: 1fr;
	}
}

.neto-blog__pager {
	margin-top: 1.75rem;
	display: flex;
	justify-content: center;
}

.neto-blog__pager .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
	justify-content: center;
}

.neto-blog__pager .page-numbers li {
	margin: 0;
}

.neto-blog__pager a.page-numbers,
.neto-blog__pager span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.35rem;
	height: 2.35rem;
	padding: 0 0.65rem;
	border-radius: 0.7rem;
	border: 1px solid var(--neto-line);
	background: #fff;
	color: var(--neto-ink) !important;
	text-decoration: none !important;
	font-size: 0.85rem;
	font-weight: 650;
}

html[data-neto-ui-theme="dark"] .neto-blog__pager a.page-numbers,
html[data-neto-ui-theme="dark"] .neto-blog__pager span.page-numbers {
	border-color: #27272a;
	background: #191919;
	color: #fafafa !important;
}

.neto-blog__pager a.page-numbers:hover,
.neto-blog__pager a.page-numbers:focus {
	border-color: color-mix(in srgb, var(--neto-brand) 40%, var(--neto-line));
	color: var(--neto-brand) !important;
}

html[data-neto-ui-theme="dark"] .neto-blog__pager a.page-numbers:hover,
html[data-neto-ui-theme="dark"] .neto-blog__pager a.page-numbers:focus {
	border-color: rgba(0, 215, 255, 0.35);
	color: #00d7ff !important;
}

.neto-blog__pager span.page-numbers.current {
	background: var(--neto-brand);
	border-color: transparent;
	color: #fff !important;
}

html[data-neto-ui-theme="dark"] .neto-blog__pager span.page-numbers.current {
	background: #004d77;
	color: #00d7ff !important;
}

.neto-blog__viewport {
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	cursor: grab;
	/* موبایل: سوایپ افقی native + اسکرول عمودی صفحه */
	touch-action: pan-x pan-y;
	user-select: none;
}

.neto-blog__viewport:active,
.neto-blog__viewport.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
}

.neto-blog__viewport.is-dragging .neto-blog__link {
	pointer-events: none;
}

.neto-blog__viewport::-webkit-scrollbar {
	display: none;
}

.neto-blog__track {
	display: flex;
	gap: 0.9rem;
	margin: 0;
	padding: 0.35rem 0 0.55rem;
	list-style: none;
}

/* 3 full + half of 4th = carousel peek */
.neto-blog__slide {
	/* ۴ کارت کامل + نیمه‌ی کارت پنجم */
	flex: 0 0 calc((100% - 3.6rem) / 4.5);
	scroll-snap-align: start;
	min-width: 0;
}

.neto-blog__card {
	position: relative;
	height: 100%;
	margin: 0;
	border-radius: 1.25rem;
	border: 1px solid var(--neto-line);
	background: var(--neto-card, #fff);
	overflow: hidden;
	transition:
		border-color 0.3s ease,
		transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.35s ease;
}

html[data-neto-ui-theme="dark"] .neto-blog__card {
	background: #191919;
	border-color: #27272a;
}

.neto-blog__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit !important;
	text-decoration: none !important;
}

.neto-blog__link:focus-visible {
	outline: 2px solid var(--neto-brand);
	outline-offset: 2px;
}

.neto-blog__media {
	position: relative;
	margin: 0;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: color-mix(in srgb, var(--neto-brand) 8%, transparent);
}

html[data-neto-ui-theme="dark"] .neto-blog__media {
	background: #111113;
}

.neto-blog__index {
	position: absolute;
	z-index: 2;
	inset-block-end: 0.35rem;
	inset-inline-start: 0.55rem;
	font-size: clamp(2.4rem, 4vw, 3.1rem);
	font-weight: 700;
	letter-spacing: -0.06em;
	line-height: 1;
	color: rgba(255, 255, 255, 0.22);
	pointer-events: none;
	user-select: none;
	transition: color 0.3s ease, transform 0.35s ease;
}

html[data-neto-ui-theme="dark"] .neto-blog__index {
	color: rgba(0, 215, 255, 0.18);
}

.neto-blog__chip {
	position: absolute;
	z-index: 3;
	top: 0.7rem;
	inset-inline-start: 0.7rem;
	max-width: calc(100% - 1.4rem);
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: rgba(5, 43, 66, 0.55);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

html[data-neto-ui-theme="dark"] .neto-blog__chip {
	background: rgba(9, 9, 11, 0.65);
	border-color: rgba(0, 215, 255, 0.28);
	color: #fafafa;
}

.neto-blog__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	object-position: center;
	transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.neto-blog__ph {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--neto-accent) 22%, transparent), transparent 55%),
		linear-gradient(135deg, color-mix(in srgb, var(--neto-brand) 18%, transparent), transparent);
}

html[data-neto-ui-theme="dark"] .neto-blog__ph {
	background:
		radial-gradient(circle at 30% 30%, rgba(0, 215, 255, 0.12), transparent 55%),
		#151517;
}

.neto-blog__wash {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(180deg, transparent 45%, rgba(5, 43, 66, 0.55) 100%),
		radial-gradient(80% 70% at 100% 0%, rgba(15, 114, 210, 0.22), transparent 55%);
	opacity: 0.85;
	transition: opacity 0.35s ease;
}

html[data-neto-ui-theme="dark"] .neto-blog__wash {
	background:
		linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.72) 100%),
		radial-gradient(80% 70% at 0% 0%, rgba(0, 215, 255, 0.14), transparent 55%);
}

.neto-blog__body {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	padding: 0.95rem 1rem 1.1rem;
	flex: 1 1 auto;
}

.neto-blog__card-title {
	margin: 0;
	font-size: clamp(0.95rem, 1.05vw, 1.08rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.5;
	color: var(--neto-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: color 0.2s ease;
}

/* کاروسل خانه: عنوان سبک‌تر و کوچک‌تر */
.neto-blog:not(.neto-blog--page):not(.neto-blog--single) .neto-blog__card-title {
	font-size: clamp(0.82rem, 0.92vw, 0.9rem);
	font-weight: 550;
	letter-spacing: -0.01em;
}

.neto-blog__excerpt {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.7;
	color: var(--neto-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.neto-blog__more {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	margin-top: auto;
	padding-top: 0.4rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--neto-brand);
	opacity: 0.8;
	transition: opacity 0.25s ease, gap 0.25s ease;
}

html[data-neto-ui-theme="dark"] .neto-blog__more {
	color: #00d7ff;
}

.neto-blog__more svg {
	transform: scaleX(-1);
	transition: transform 0.25s ease;
}

.neto-blog__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.65rem 1.1rem;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--neto-brand) 35%, var(--neto-line));
	background: transparent;
	color: var(--neto-brand) !important;
	text-decoration: none !important;
	font-size: 0.86rem;
	font-weight: 700;
	white-space: nowrap;
	flex-shrink: 0;
	transition:
		background 0.2s ease,
		border-color 0.2s ease,
		color 0.2s ease,
		transform 0.2s ease;
}

.neto-blog__cta svg {
	transform: scaleX(-1);
}

html[data-neto-ui-theme="dark"] .neto-blog__cta {
	border-color: #27272a;
	color: #fafafa !important;
	background: #191919;
}

.neto-blog__cta:hover,
.neto-blog__cta:focus-visible {
	background: var(--neto-brand);
	border-color: var(--neto-brand);
	color: #fff !important;
	outline: none;
	transform: translateY(-1px);
}

html[data-neto-ui-theme="dark"] .neto-blog__cta:hover,
html[data-neto-ui-theme="dark"] .neto-blog__cta:focus-visible {
	border-color: #00d7ff;
	background: #1f1f1f;
	color: #fafafa !important;
}

.neto-blog__slide:hover .neto-blog__card,
.neto-blog__slide:focus-within .neto-blog__card {
	border-color: color-mix(in srgb, var(--neto-brand) 40%, var(--neto-line));
	box-shadow: 0 18px 40px rgba(0, 77, 119, 0.12);
	transform: translateY(-4px);
}

html[data-neto-ui-theme="dark"] .neto-blog__slide:hover .neto-blog__card,
html[data-neto-ui-theme="dark"] .neto-blog__slide:focus-within .neto-blog__card {
	border-color: #27272a;
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
}

.neto-blog__slide:hover .neto-blog__img,
.neto-blog__slide:focus-within .neto-blog__img {
	transform: scale(1.06);
}

.neto-blog__slide:hover .neto-blog__index,
.neto-blog__slide:focus-within .neto-blog__index {
	color: rgba(255, 255, 255, 0.4);
	transform: translateY(-2px);
}

html[data-neto-ui-theme="dark"] .neto-blog__slide:hover .neto-blog__index,
html[data-neto-ui-theme="dark"] .neto-blog__slide:focus-within .neto-blog__index {
	color: rgba(0, 215, 255, 0.35);
}

.neto-blog__slide:hover .neto-blog__card-title,
.neto-blog__slide:focus-within .neto-blog__card-title {
	color: var(--neto-brand);
}

html[data-neto-ui-theme="dark"] .neto-blog__slide:hover .neto-blog__card-title,
html[data-neto-ui-theme="dark"] .neto-blog__slide:focus-within .neto-blog__card-title {
	color: #00d7ff;
}

.neto-blog__slide:hover .neto-blog__more,
.neto-blog__slide:focus-within .neto-blog__more {
	opacity: 1;
	gap: 0.5rem;
}

.neto-blog__slide:hover .neto-blog__more svg,
.neto-blog__slide:focus-within .neto-blog__more svg {
	transform: scaleX(-1) translateX(3px);
}

.neto-blog__slide:nth-child(even) .neto-blog__card {
	transform: translateY(0.35rem);
}

.neto-blog__slide:nth-child(even):hover .neto-blog__card,
.neto-blog__slide:nth-child(even):focus-within .neto-blog__card {
	transform: translateY(-0.15rem);
}

@media (max-width: 1200px) {
	.neto-blog__slide {
		flex-basis: calc((100% - 1.8rem) / 2.5);
	}
}

@media (max-width: 900px) {
	.neto-blog__slide {
		flex-basis: calc((100% - 0.9rem) / 1.5);
	}

	.neto-blog__slide:nth-child(even) .neto-blog__card {
		transform: none;
	}

	.neto-blog__slide:nth-child(even):hover .neto-blog__card,
	.neto-blog__slide:nth-child(even):focus-within .neto-blog__card {
		transform: translateY(-4px);
	}
}

@media (max-width: 720px) {
	.neto-blog__slide {
		flex-basis: min(78%, 17.5rem);
	}

	.neto-blog__head {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.neto-blog__head-main {
		text-align: center;
		margin-inline: auto;
	}

	.neto-blog__eyebrow {
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.neto-blog__viewport {
		scroll-behavior: auto;
	}

	.neto-blog__img,
	.neto-blog__card,
	.neto-blog__index,
	.neto-blog__more,
	.neto-blog__more svg,
	.neto-blog__cta {
		transition: none;
	}

	.neto-blog__slide:hover .neto-blog__card,
	.neto-blog__slide:focus-within .neto-blog__card,
	.neto-blog__slide:nth-child(even) .neto-blog__card,
	.neto-blog__slide:nth-child(even):hover .neto-blog__card,
	.neto-blog__slide:nth-child(even):focus-within .neto-blog__card {
		transform: none;
	}

	.neto-blog__slide:hover .neto-blog__img,
	.neto-blog__slide:focus-within .neto-blog__img {
		transform: none;
	}
}

/* ——— Single post ——— */
.neto-blog--single {
	padding-block: clamp(0.75rem, 2.5vh, 1.5rem) clamp(2.5rem, 6vh, 4rem);
}

.neto-blog-single__wrap {
	width: min(100% - 1.75rem, var(--neto-content-max, 1300px));
	max-width: none;
	margin-inline: auto;
	padding-inline: 0;
}

@media (max-width: 640px) {
	.neto-blog-single__wrap {
		width: min(100% - 1.25rem, var(--neto-content-max, 1300px));
	}
}

.neto-blog-single {
	min-width: 0;
	max-width: none;
	margin: 0;
}

.neto-blog-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(14rem, 17.5rem);
	gap: clamp(1.5rem, 3vw, 2.75rem);
	align-items: start;
	width: 100%;
}

.neto-blog-single__layout--solo {
	grid-template-columns: minmax(0, 1fr);
}

.neto-blog-single__toc {
	position: sticky;
	top: 5.75rem;
	padding: 1rem 1.05rem 1.1rem;
	border-radius: 0.95rem;
	border: 1px solid var(--neto-line);
	background: #fff;
	max-height: calc(100vh - 7rem);
	overflow: auto;
	scrollbar-width: thin;
}

html[data-neto-ui-theme="dark"] .neto-blog-single__toc {
	border-color: #27272a;
	background: #191919;
}

.neto-blog-single__toc-title {
	margin: 0 0 0.85rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--neto-muted);
	list-style: none;
	cursor: pointer;
}

.neto-blog-single__toc-title::-webkit-details-marker {
	display: none;
}

.neto-blog-single__toc-title::after {
	content: "";
	display: inline-block;
	width: 0.45rem;
	height: 0.45rem;
	margin-inline-start: 0.45rem;
	border-inline-end: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-0.1rem);
	vertical-align: middle;
	opacity: 0.7;
	transition: transform 0.15s ease;
}

.neto-blog-single__toc[open] > .neto-blog-single__toc-title::after {
	transform: rotate(-135deg) translateY(-0.05rem);
}

.neto-blog-single__toc-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.neto-blog-single__toc-link {
	display: block;
	padding: 0.4rem 0.55rem;
	border-radius: 0.55rem;
	border-inline-start: 2px solid transparent;
	font-size: 0.84rem;
	font-weight: 600;
	line-height: 1.55;
	color: var(--neto-ink) !important;
	text-decoration: none !important;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.neto-blog-single__toc-item--h3 .neto-blog-single__toc-link {
	padding-inline-start: 1.15rem;
	font-size: 0.8rem;
	font-weight: 550;
	color: var(--neto-muted) !important;
}

.neto-blog-single__toc-link:hover,
.neto-blog-single__toc-link:focus {
	background: color-mix(in srgb, var(--neto-brand) 8%, transparent);
	color: var(--neto-brand) !important;
}

html[data-neto-ui-theme="dark"] .neto-blog-single__toc-link:hover,
html[data-neto-ui-theme="dark"] .neto-blog-single__toc-link:focus {
	background: rgba(0, 215, 255, 0.08);
	color: #00d7ff !important;
}

.neto-blog-single__toc-link.is-active {
	border-inline-start-color: var(--neto-brand);
	background: color-mix(in srgb, var(--neto-brand) 10%, transparent);
	color: var(--neto-brand) !important;
}

html[data-neto-ui-theme="dark"] .neto-blog-single__toc-link.is-active {
	border-inline-start-color: #00d7ff;
	background: rgba(0, 215, 255, 0.1);
	color: #00d7ff !important;
}

.neto-blog-single__body h2,
.neto-blog-single__body h3 {
	scroll-margin-top: 6rem;
}

@media (min-width: 981px) {
	/* Desktop: TOC always expanded via [open] + no accordion chrome. */
	.neto-blog-single__toc > .neto-blog-single__toc-list {
		display: flex !important;
	}

	.neto-blog-single__toc-title {
		cursor: default;
		display: flex;
		align-items: center;
		justify-content: space-between;
		pointer-events: none;
		margin-bottom: 0.85rem;
		list-style: none;
	}

	.neto-blog-single__toc-title::-webkit-details-marker {
		display: none;
	}

	.neto-blog-single__toc-title::after {
		display: none !important;
	}
}

@media (max-width: 980px) {
	.neto-blog-single__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.neto-blog-single__toc {
		position: relative;
		top: auto;
		max-height: none;
		overflow: visible;
		order: -1;
		padding: 0.85rem 1rem;
	}

	.neto-blog-single__toc-title {
		display: flex;
		align-items: center;
		justify-content: space-between;
		margin: 0;
		padding: 0.15rem 0;
		font-size: 0.88rem;
		user-select: none;
	}

	.neto-blog-single__toc[open] > .neto-blog-single__toc-title {
		margin-bottom: 0.75rem;
	}

	.neto-blog-single__toc-title::after {
		margin-inline-start: auto;
		transform: rotate(45deg);
	}

	.neto-blog-single__toc[open] > .neto-blog-single__toc-title::after {
		transform: rotate(-135deg);
	}

	.neto-blog-single__toc-list {
		gap: 0.45rem;
	}

	.neto-blog-single__toc-link {
		padding-block: 0.55rem;
	}
}

.neto-blog-single__head {
	margin: 0 0 1.35rem;
}

.neto-blog-single__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 1rem;
}

.neto-blog-single__chip {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.7rem;
	border-radius: 0.55rem;
	border: 1px solid var(--neto-line);
	background: #fff;
	color: var(--neto-ink) !important;
	font-size: 0.75rem;
	font-weight: 650;
	text-decoration: none !important;
}

html[data-neto-ui-theme="dark"] .neto-blog-single__chip {
	border-color: #27272a;
	background: #191919;
	color: #fafafa !important;
}

.neto-blog-single__chip:hover,
.neto-blog-single__chip:focus {
	border-color: color-mix(in srgb, var(--neto-brand) 40%, var(--neto-line));
	color: var(--neto-brand) !important;
}

html[data-neto-ui-theme="dark"] .neto-blog-single__chip:hover,
html[data-neto-ui-theme="dark"] .neto-blog-single__chip:focus {
	border-color: rgba(0, 215, 255, 0.35);
	color: #00d7ff !important;
}

.neto-blog-single__date {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--neto-muted);
}

.neto-blog-single__hero {
	display: block;
	margin: 0;
	border-radius: 1rem;
	overflow: hidden;
	border: 1px solid var(--neto-line);
	background: #f4f4f5;
}

html[data-neto-ui-theme="dark"] .neto-blog-single__hero {
	border-color: #27272a;
	background: #191919;
}

.neto-blog-single__img,
.neto-blog-single .wp-post-image,
.post .neto-blog-single .wp-post-image {
	display: block;
	width: 100%;
	max-height: 500px;
	height: auto;
	margin-bottom: 20px;
	-o-object-fit: cover;
	object-fit: cover;
}

.neto-blog-single__body {
	font-size: 1.02rem;
	line-height: 1.9;
	color: var(--neto-ink);
	text-align: justify;
	text-justify: inter-word;
}

.neto-blog-single__body > *:first-child {
	margin-top: 0;
}

.neto-blog-single__body > *:last-child {
	margin-bottom: 0;
}

.neto-blog-single__body p {
	margin: 0 0 1.15rem;
}

.neto-blog-single__body h2,
.neto-blog-single__body h3,
.neto-blog-single__body h4 {
	margin: 1.75rem 0 0.75rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.45;
	color: var(--neto-ink);
	text-align: right;
	text-wrap: balance;
}

.neto-blog-single__body h2 {
	font-size: clamp(1.25rem, 2vw, 1.45rem);
}

.neto-blog-single__body h3 {
	font-size: clamp(1.1rem, 1.6vw, 1.25rem);
}

.neto-blog-single__body a {
	color: var(--neto-brand) !important;
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

html[data-neto-ui-theme="dark"] .neto-blog-single__body a {
	color: #00d7ff !important;
}

.neto-blog-single__body ul,
.neto-blog-single__body ol {
	margin: 0 0 1.15rem;
	padding-inline-start: 1.35rem;
}

.neto-blog-single__body li {
	margin: 0.35rem 0;
}

.neto-blog-single__body blockquote {
	margin: 1.35rem 0;
	padding: 1rem 1.15rem;
	border-inline-start: 3px solid var(--neto-brand);
	border-radius: 0 0.85rem 0.85rem 0;
	background: color-mix(in srgb, var(--neto-brand) 6%, transparent);
	color: var(--neto-ink);
}

html[data-neto-ui-theme="dark"] .neto-blog-single__body blockquote {
	border-inline-start-color: #00d7ff;
	background: rgba(0, 215, 255, 0.06);
}

.neto-blog-single__body img {
	max-width: 100%;
	height: auto;
	border-radius: 0.85rem;
}

.neto-blog-single__body figure {
	margin: 1.35rem 0;
}

.neto-blog-single__body pre,
.neto-blog-single__body code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 0.9em;
}

.neto-blog-single__body pre {
	overflow-x: auto;
	padding: 1rem 1.1rem;
	border-radius: 0.85rem;
	border: 1px solid var(--neto-line);
	background: #f4f4f5;
}

html[data-neto-ui-theme="dark"] .neto-blog-single__body pre {
	border-color: #27272a;
	background: #191919;
}

.neto-blog-single__foot {
	margin-top: 2.25rem;
	padding-top: 1.35rem;
	border-top: 1px solid var(--neto-line);
}

html[data-neto-ui-theme="dark"] .neto-blog-single__foot {
	border-top-color: #27272a;
}

.neto-blog-single__back {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.9rem;
	font-weight: 650;
	color: var(--neto-ink) !important;
	text-decoration: none !important;
}

.neto-blog-single__back:hover,
.neto-blog-single__back:focus {
	color: var(--neto-brand) !important;
}

html[data-neto-ui-theme="dark"] .neto-blog-single__back:hover,
html[data-neto-ui-theme="dark"] .neto-blog-single__back:focus {
	color: #00d7ff !important;
}

.neto-blog-single__related {
	margin-top: clamp(2.5rem, 6vh, 3.75rem);
	padding-top: clamp(1.75rem, 4vh, 2.5rem);
	border-top: 1px solid var(--neto-line);
}

html[data-neto-ui-theme="dark"] .neto-blog-single__related {
	border-top-color: #27272a;
}

.neto-blog-single__related-head {
	margin: 0 0 1.25rem;
}

.neto-blog-single__related-title {
	margin: 0;
	font-size: clamp(1.15rem, 1.8vw, 1.35rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--neto-ink);
}

.neto-blog-single__related-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (max-width: 1100px) {
	.neto-blog-single__related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.neto-blog-single__related-grid {
		grid-template-columns: 1fr;
	}
}

.neto-blog-single__related-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: 0.95rem;
	border: 1px solid var(--neto-line);
	background: #fff;
	overflow: hidden;
	text-decoration: none !important;
	color: inherit !important;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

html[data-neto-ui-theme="dark"] .neto-blog-single__related-card {
	border-color: #27272a;
	background: #191919;
}

.neto-blog-single__related-card:hover,
.neto-blog-single__related-card:focus {
	border-color: color-mix(in srgb, var(--neto-brand) 35%, var(--neto-line));
	transform: translateY(-2px);
}

html[data-neto-ui-theme="dark"] .neto-blog-single__related-card:hover,
html[data-neto-ui-theme="dark"] .neto-blog-single__related-card:focus {
	border-color: rgba(0, 215, 255, 0.3);
}

.neto-blog-single__related-media {
	margin: 0;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f4f4f5;
}

html[data-neto-ui-theme="dark"] .neto-blog-single__related-media {
	background: #09090b;
}

.neto-blog-single__related-img,
.neto-blog-single__related-media .neto-blog__ph {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.neto-blog-single__related-body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 0.9rem 1rem 1.05rem;
	min-width: 0;
}

.neto-blog-single__related-chip {
	font-size: 0.7rem;
	font-weight: 650;
	color: var(--neto-muted);
}

.neto-blog-single__related-card-title {
	font-size: 0.92rem;
	font-weight: 700;
	line-height: 1.55;
	color: var(--neto-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.neto-blog-single__related-date {
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--neto-muted);
}

@media (prefers-reduced-motion: reduce) {
	.neto-blog-single__related-card {
		transition: none;
	}

	.neto-blog-single__related-card:hover,
	.neto-blog-single__related-card:focus {
		transform: none;
	}
}
