.kah-article-page {
	--kah-article-ink: #1d2939;
	--kah-article-muted: #667085;
	--kah-article-line: #e8eaf0;
	--kah-article-soft: #f7f8fb;
}

.kah-article-shell {
	--kah-article-ink: #1d2939;
	--kah-article-muted: #667085;
	--kah-article-line: #e8eaf0;
	--kah-article-soft: #f7f8fb;
	min-height: 65vh;
	padding: 30px 20px 88px;
	background:
		radial-gradient(ellipse at 86% 0, rgba(124, 42, 232, 0.055), transparent 34rem),
		#fbfbfd;
	color: var(--kah-article-ink);
	font-family: var(--kah-font-stack, iransans, Tahoma, sans-serif);
}

.kah-article-container {
	width: min(1120px, 100%);
	margin-inline: auto;
}

.kah-article-breadcrumb {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 28px;
	color: #9299a8;
	font-size: 12px;
	line-height: 1.8;
}

.kah-article-breadcrumb a {
	color: #687386;
	text-decoration: none;
	transition: color 0.2s ease;
}

.kah-article-breadcrumb a:hover {
	color: var(--kcp-purple, #7c2ae8);
}

.kah-article-breadcrumb > span:last-child {
	overflow: hidden;
	max-width: min(48vw, 460px);
	color: #475467;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.kah-article-layout,
.kah-article-archive-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 292px;
	align-items: start;
	gap: 28px;
}

.kah-article-content {
	min-width: 0;
	padding: clamp(22px, 4vw, 48px);
	border: 1px solid rgba(232, 234, 240, 0.88);
	border-top: 4px solid var(--kcp-purple, #7c2ae8);
	border-radius: 22px;
	background: linear-gradient(180deg, #ffffff 0%, #fdfcff 100%);
	box-shadow: 0 18px 55px rgba(31, 41, 55, 0.055);
}

.kah-article-header h1 {
	margin: 14px 0 12px;
	color: #182230;
	font-size: clamp(25px, 3.2vw, 38px);
	font-weight: 800;
	line-height: 1.75;
	letter-spacing: -0.035em;
}

.kah-article-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.kah-article-categories a,
.kah-article-card-category {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	background: #f2eafe;
	color: #6825b7;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.6;
	padding: 6px 12px;
	text-decoration: none;
}

.kah-article-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--kah-article-muted);
	font-size: 12px;
}

.kah-article-meta-separator {
	color: #c2c7d0;
	font-size: 20px;
	line-height: 1;
}

.kah-article-featured-image {
	margin: 28px 0 30px;
	overflow: hidden;
	border-radius: 16px;
	background: #f2f3f7;
	aspect-ratio: 16 / 8.5;
}

.kah-article-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kah-article-featured-placeholder {
	display: grid;
	place-items: center;
	background:
		radial-gradient(circle at 78% 28%, rgba(255, 255, 255, 0.8), transparent 18%),
		linear-gradient(135deg, #f3eaff, #e8f2ff);
	color: #7251a1;
	font-size: clamp(18px, 3vw, 26px);
	font-weight: 700;
}

.kah-article-body {
	color: #344054;
	font-size: 15px;
	line-height: 2.25;
	overflow-wrap: anywhere;
}

.kah-article-body > *:first-child {
	margin-top: 0;
}

.kah-article-body h2,
.kah-article-body h3,
.kah-article-body h4 {
	margin: 1.7em 0 0.65em;
	color: #202b3c;
	font-weight: 800;
	line-height: 1.9;
}

.kah-article-body h2 { font-size: 1.45em; }
.kah-article-body h3 { font-size: 1.22em; }
.kah-article-body p { margin: 0 0 1.2em; }

.kah-article-body a {
	color: var(--kcp-purple-dark, #5b21b6);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.kah-article-body img,
.kah-article-body video,
.kah-article-body iframe {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
}

.kah-article-body blockquote {
	margin: 1.5em 0;
	padding: 12px 20px;
	border-right: 3px solid var(--kcp-purple, #7c2ae8);
	border-radius: 0 10px 10px 0;
	background: #faf7ff;
	color: #51416c;
}

.kah-article-body ul,
.kah-article-body ol {
	padding-right: 1.5em;
}

.kah-article-footer {
	display: flex;
	justify-content: flex-start;
	margin-top: 30px;
	padding-top: 22px;
	border-top: 1px solid var(--kah-article-line);
}

.kah-article-footer a {
	color: var(--kcp-purple-dark, #5b21b6);
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.kah-article-sidebar {
	display: grid;
	gap: 16px;
	position: sticky;
	top: 100px;
}

.kah-article-sidebar-card {
	padding: 22px;
	border: 1px solid var(--kah-article-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(31, 41, 55, 0.035);
}

.kah-article-sidebar-card h2 {
	margin: 0 0 16px;
	color: #263247;
	font-size: 15px;
	font-weight: 800;
}

.kah-article-category-list,
.kah-article-recent-list {
	display: grid;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kah-article-category-list a,
.kah-article-recent-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid #f0f1f4;
	color: #566174;
	font-size: 12px;
	line-height: 1.8;
	text-decoration: none;
	transition: color 0.2s ease;
}

.kah-article-category-list li:last-child a,
.kah-article-recent-list li:last-child a {
	border-bottom: 0;
}

.kah-article-category-list a:hover,
.kah-article-category-list a.is-current,
.kah-article-recent-list a:hover {
	color: var(--kcp-purple-dark, #5b21b6);
}

.kah-article-category-count {
	display: inline-grid;
	min-width: 24px;
	height: 24px;
	place-items: center;
	border-radius: 50%;
	background: #f4f5f8;
	color: #7d8798;
	font-size: 10px;
}

.kah-article-recent-list a {
	align-items: flex-start;
	flex-direction: column;
	gap: 4px;
	font-weight: 600;
}

.kah-article-recent-list time {
	color: #9299a8;
	font-size: 10px;
	font-weight: 400;
}

.kah-article-sidebar-empty {
	margin: 0;
	color: #8992a1;
	font-size: 12px;
	line-height: 1.9;
}

.kah-article-archive-heading {
	margin: 0 0 30px;
	padding: clamp(26px, 5vw, 52px);
	border: 1px solid #eee8f8;
	border-radius: 24px;
	background: linear-gradient(120deg, #fff 15%, #f8f3ff 100%);
}

.kah-article-eyebrow {
	color: var(--kcp-purple-dark, #5b21b6);
	font-size: 12px;
	font-weight: 700;
}

.kah-article-archive-heading h1 {
	margin: 8px 0;
	color: #1d2939;
	font-size: clamp(26px, 4vw, 40px);
	font-weight: 800;
	line-height: 1.6;
}

.kah-article-archive-heading p {
	margin: 0;
	color: #667085;
	font-size: 14px;
	line-height: 2;
}

.kah-article-archive-main {
	min-width: 0;
}

.kah-article-card-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.kah-article-card {
	overflow: hidden;
	border: 1px solid var(--kah-article-line);
	border-top: 3px solid rgba(124, 42, 232, 0.9);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 10px 30px rgba(31, 41, 55, 0.035);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kah-article-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 16px 38px rgba(31, 41, 55, 0.09);
}

.kah-article-card-image {
	display: grid;
	overflow: hidden;
	place-items: center;
	background: #f1eafb;
	aspect-ratio: 16 / 9;
}

.kah-article-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.kah-article-card:hover .kah-article-card-image img {
	transform: scale(1.035);
}

.kah-article-card-placeholder {
	color: #8a58cc;
	font-size: 40px;
}

.kah-article-card-content {
	display: flex;
	min-height: 220px;
	flex-direction: column;
	align-items: flex-start;
	padding: 18px;
}

.kah-article-card-category {
	margin-bottom: 8px;
	padding: 4px 10px;
	font-size: 10px;
}

.kah-article-card h2 {
	margin: 0;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.9;
}

.kah-article-card h2 a {
	color: #263247;
	text-decoration: none;
}

.kah-article-card-content > p {
	display: -webkit-box;
	overflow: hidden;
	margin: 8px 0 14px;
	color: #778194;
	font-size: 12px;
	line-height: 1.9;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.kah-article-card-bottom {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #f0f1f4;
}

.kah-article-card-bottom time {
	color: #9299a8;
	font-size: 10px;
}

.kah-article-card-bottom a {
	color: var(--kcp-purple-dark, #5b21b6);
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.kah-article-pagination {
	margin-top: 28px;
}

.kah-article-pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.kah-article-pagination a,
.kah-article-pagination span {
	display: grid;
	min-width: 38px;
	height: 38px;
	place-items: center;
	padding: 0 10px;
	border: 1px solid var(--kah-article-line);
	border-radius: 10px;
	background: #fff;
	color: #596579;
	font-size: 12px;
	text-decoration: none;
}

.kah-article-pagination .current {
	border-color: var(--kcp-purple, #7c2ae8);
	background: var(--kcp-purple, #7c2ae8);
	color: #fff;
}

.kah-article-empty {
	padding: 42px 24px;
	border: 1px dashed #d8dce5;
	border-radius: 18px;
	background: #fff;
	text-align: center;
}

.kah-article-empty h2 {
	margin: 0 0 8px;
	color: #273449;
	font-size: 18px;
}

.kah-article-empty p {
	margin: 0;
	color: #7b8494;
	font-size: 13px;
}

@media (max-width: 900px) {
	.kah-article-layout,
	.kah-article-archive-layout {
		grid-template-columns: minmax(0, 1fr) 250px;
		gap: 18px;
	}

	.kah-article-sidebar-card {
		padding: 18px;
	}
}

@media (max-width: 700px) {
	.kah-article-shell {
		padding: 20px 14px 56px;
	}

	.kah-article-breadcrumb {
		margin-bottom: 20px;
	}

	.kah-article-layout,
	.kah-article-archive-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.kah-article-sidebar {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.kah-article-content {
		padding: 22px 18px;
		border-radius: 17px;
	}

	.kah-article-featured-image {
		margin: 22px 0;
		border-radius: 12px;
		aspect-ratio: 4 / 3;
	}

	.kah-article-body {
		font-size: 14px;
	}
}

@media (max-width: 480px) {
	.kah-article-sidebar,
	.kah-article-card-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.kah-article-archive-heading {
		margin-bottom: 20px;
		padding: 24px 20px;
		border-radius: 18px;
	}

	.kah-article-card-content {
		min-height: 0;
	}

	.kah-article-breadcrumb > span:last-child {
		max-width: 42vw;
	}
}
