	.knowledge-detail { min-height: 100vh; padding: 118px 16px 40px; }
	.knowledge-detail-wrap { max-width: 800px; margin: 0 auto; }

	.kd-back {
		display: inline-flex; align-items: center; gap: 7px; color: #065f46;
		text-decoration: none; font-size: .86rem; margin-bottom: 18px; transition: color .2s;
	}
	.kd-back:hover { color: #10b981; }

	.kd-paper {
		background: linear-gradient(180deg, #ffffff 0%, #fffdf6 55%, #fdf3d6 100%);
		border: 1px solid rgba(16,185,129,.18); border-radius: 24px;
		box-shadow: 0 8px 32px rgba(0,0,0,.10); padding: 34px 34px 40px;
	}

	.kd-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
	.kd-chip {
		display: inline-flex; align-items: center; gap: 6px;
		font-size: .76rem; font-weight: 600; padding: 6px 14px; border-radius: 999px;
		background: rgba(16,185,129,.10); border: 1px solid rgba(16,185,129,.35); color: #065f46;
	}
	.kd-chip.kd-cat {
		background: rgba(16,185,129,.18); border-color: rgba(16,185,129,.35); color: #059669;
		text-transform: uppercase; letter-spacing: .4px;
	}

	.kd-title {
		font-size: 2rem; line-height: 1.3; margin-bottom: 10px;
		color: #064e3b; font-weight: 800;
	}

	.kd-title.title-gradient {
		background: linear-gradient(135deg, #10b981 0%, #374151 50%, #1f2937 100%);
		-webkit-background-clip: text; background-clip: text;
		-webkit-text-fill-color: transparent;
	}

	.kd-divider { height: 1px; background: rgba(16,185,129,.25); margin: 22px 0 24px; }

	.kd-content { color: #1f2937; font-size: 1.02rem; line-height: 1.9; font-weight: 500; }
	.kd-content h1, .kd-content h2, .kd-content h3, .kd-content h4, .kd-content h5, .kd-content h6 {
		font-family: 'Amiri', serif; color: #b45309; font-weight: 700;
		margin: 34px 0 12px; line-height: 1.4;
	}
	.kd-content h2 { font-size: 1.6rem; margin: 38px 0 14px; }
	.kd-content h3 { font-size: 1.4rem; margin: 34px 0 12px; }
	.kd-content h4 { font-size: 1.3rem; margin: 30px 0 12px; }
	.kd-content h5 { font-size: 1.15rem; margin: 28px 0 10px; }
	.kd-content h6 { font-size: 1rem; margin: 26px 0 10px; }
	.kd-content h1:first-child, .kd-content h2:first-child, .kd-content h3:first-child,
	.kd-content h4:first-child, .kd-content h5:first-child, .kd-content h6:first-child { margin-top: 0; }
	.kd-content p { margin-bottom: 16px; font-weight: 500; }
	.kd-content ul, .kd-content ol { padding-left: 22px; margin-bottom: 14px; }
	.kd-content li { margin-bottom: 8px; font-weight: 500; }
	.kd-content strong { color: #065f46; font-weight: 700; }
	.kd-content em { color: #059669; font-weight: 600; margin: 0 2px; }
	.kd-content table {
		width: 100%; margin-bottom: 18px; color: #374151; font-weight: 500;
		border-collapse: collapse; border: 1px solid rgba(16,185,129,.28);
		font-size: .92rem;
	}
	.kd-content table th, .kd-content table td {
		border: 1px solid rgba(16,185,129,.28);
		padding: 8px 10px; text-align: left; vertical-align: top;
	}
	.kd-content table th {
		background: rgba(16,185,129,.08); color: #065f46; font-weight: 700;
	}
	.kd-content table tbody tr + tr > * {
		border-top: 1px solid rgba(16,185,129,.42);
	}
	.kd-content blockquote {
		border-left: 3px solid #10b981; background: rgba(16,185,129,.08);
		padding: 12px 16px; border-radius: 0 12px 12px 0; margin-bottom: 16px;
		color: #064e3b; font-weight: 600;
	}

	.kd-actions { display: flex; gap: 10px; justify-content: center; margin-top: 26px; margin-bottom: 34px; }
	.kd-btn {
		display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
		font-size: .88rem; font-weight: 700; padding: 11px 20px; border-radius: 999px;
		background: var(--surface-muted); border: 1px solid rgba(16,185,129,.40); color: #065f46;
		transition: background .2s, border-color .2s;
	}
	.kd-btn:hover { background: rgba(5,150,105,.10); border-color: rgba(16,185,129,.60); color: #065f46; }
	.kd-btn.kd-btn-primary {
		background: linear-gradient(135deg, #10b981, #059669); border-color: transparent;
		box-shadow: 0 8px 22px rgba(16,185,129,.3); color: #ffffff;
	}
	.kd-btn.kd-btn-primary:hover { background: linear-gradient(135deg, #34d399, #10b981); color: #ffffff; }

	@media (max-width: 575.98px) {
		.kd-paper { padding: 22px 18px 28px; }
		.kd-title { font-size: 1.55rem; font-weight: 700; }
		.kd-content { font-size: 0.98rem; font-weight: 500; }
		.kd-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
	}

/* Excerpt + featured image artikel berita (dipakai /news/{slug}) */
.kd-lead {
	font-size: 1.04rem; line-height: 1.75; color: #374151; font-weight: 500;
	margin: 0 0 18px; padding-left: 14px; border-left: 3px solid #10b981;
}
.kd-featured {
	margin: 0 0 22px; border-radius: 18px; overflow: hidden;
	background: #f0fdf4; border: 1px solid rgba(16,185,129,.25);
}
.kd-featured img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: cover; }

/* =====================================================================
   Tema gelap — artikel (knowledge & news) ditulis untuk kertas terang;
   blok ini memakai token `html.theme-dark` dari assets/css/welcome.php.
   ===================================================================== */
html.theme-dark .kd-back { color: #6ee7b7; }
html.theme-dark .kd-back:hover { color: #34d399; }

html.theme-dark .kd-paper {
	background: linear-gradient(180deg, #08120d 0%, #0a1510 55%, #12190f 100%);
	border-color: rgba(16,185,129,.22);
	box-shadow: 0 8px 32px rgba(0,0,0,.5);
}

html.theme-dark .kd-chip {
	background: rgba(16,185,129,.14);
	border-color: rgba(16,185,129,.35);
	color: #6ee7b7;
}
html.theme-dark .kd-chip.kd-cat {
	background: rgba(16,185,129,.20);
	border-color: rgba(16,185,129,.40);
	color: #34d399;
}

html.theme-dark .kd-title { color: var(--text); }
html.theme-dark .kd-title.title-gradient {
	background: linear-gradient(135deg, #6ee7b7 0%, #fbbf24 55%, #fde68a 100%);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent;
}
html.theme-dark .kd-divider { background: rgba(16,185,129,.30); }

html.theme-dark .kd-content { color: rgba(255,255,255,.86); }
html.theme-dark .kd-content h1,
html.theme-dark .kd-content h2,
html.theme-dark .kd-content h3,
html.theme-dark .kd-content h4,
html.theme-dark .kd-content h5,
html.theme-dark .kd-content h6 { color: #fbbf24; }
html.theme-dark .kd-content strong { color: #6ee7b7; }
html.theme-dark .kd-content em { color: #34d399; }
html.theme-dark .kd-content table { color: rgba(255,255,255,.82); }
html.theme-dark .kd-content table th {
	background: rgba(16,185,129,.14);
	color: #6ee7b7;
}
html.theme-dark .kd-content blockquote {
	background: rgba(16,185,129,.10);
	color: #a7f3d0;
}

html.theme-dark .kd-btn {
	background: rgba(255,255,255,.06);
	border-color: rgba(16,185,129,.40);
	color: #6ee7b7;
}
html.theme-dark .kd-btn:hover {
	background: rgba(16,185,129,.14);
	border-color: rgba(16,185,129,.60);
	color: #a7f3d0;
}

html.theme-dark .kd-lead {
	color: rgba(255,255,255,.80);
	border-left-color: #10b981;
}
html.theme-dark .kd-featured {
	background: rgba(16,185,129,.08);
	border-color: rgba(16,185,129,.25);
}
