html {
	scroll-behavior: smooth;
}

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

.cj-hero__title--article {
	font-size: clamp(26px, 3.4vw, 40px);
}

.cj-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px 18px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
	color: rgba(255, 255, 255, .85);
	font-size: 15px;
}

.cj-meta li + li::before {
	content: "•";
	margin-inline-end: 18px;
	color: var(--cj-gold);
}

.cj-meta a {
	color: var(--cj-gold);
	text-decoration: none;
}

/* Layout */
.cj-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	align-items: start;
	padding-top: 56px;
	padding-bottom: 72px;
}

.cj-article {
	min-width: 0;
	max-width: 780px;
}

.cj-article__image {
	margin: 0 0 32px;
	overflow: hidden;
	border-radius: 10px;
	aspect-ratio: 3 / 2;
	background: var(--cj-navy);
}

.cj-article__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Reading typography */
.cj-article__content {
	color: #26323d;
	font-size: 18px;
	line-height: 1.95;
}

.cj-article__content > * {
	margin-top: 0;
	margin-bottom: 1.2em;
}

.cj-article__content h2,
.cj-article__content h3 {
	color: var(--cj-navy);
	scroll-margin-top: 24px;
}

.cj-article__content h2 {
	position: relative;
	margin-top: 1.8em;
	padding-inline-start: 16px;
	font-size: 26px;
	line-height: 1.5;
}

.cj-article__content h2::before {
	content: "";
	position: absolute;
	inset-block: 8px;
	inset-inline-start: 0;
	width: 4px;
	border-radius: 2px;
	background: var(--cj-gold);
}

.cj-article__content h3 {
	margin-top: 1.5em;
	font-size: 21px;
	line-height: 1.5;
}

.cj-article__content a {
	color: var(--cj-gold-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cj-article__content ul,
.cj-article__content ol {
	padding-inline-start: 1.4em;
	margin-inline-start: 0;
}

.cj-article__content li {
	margin-bottom: .4em;
}

.cj-article__content li::marker {
	color: var(--cj-gold);
}

.cj-article__content blockquote {
	margin-inline: 0;
	padding: 18px 22px;
	border: 0;
	border-inline-start: 4px solid var(--cj-gold);
	border-radius: 8px;
	border-start-start-radius: 0;
	border-end-start-radius: 0;
	background: #fff;
	color: var(--cj-navy);
	font-style: normal;
}

.cj-article__content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 16px;
}

.cj-article__content th,
.cj-article__content td {
	padding: 10px 12px;
	border: 1px solid rgb(var(--cj-navy-rgb) / .12);
	text-align: start;
}

.cj-article__content th {
	background: var(--cj-navy);
	color: #fff;
}

.cj-article__notice {
	margin: 40px 0 0;
	padding: 16px 20px;
	border: 1px dashed rgb(var(--cj-gold-rgb) / .6);
	border-radius: 8px;
	background: #fff;
	color: #5b6672;
	font-size: 15px;
	line-height: 1.8;
}

.cj-article__notice a {
	color: var(--cj-navy);
	font-weight: 600;
}

.cj-article-layout--single {
	grid-template-columns: minmax(0, 820px);
	justify-content: center;
}

.cj-page__updated {
	margin: 40px 0 0;
	padding-top: 18px;
	border-top: 1px solid rgb(var(--cj-navy-rgb) / .1);
	color: #6b7682;
	font-size: 14px;
}

/* Sidebar */
.cj-article-side__sticky {
	position: sticky;
	top: 24px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.cj-toc--side {
	padding: 22px 24px;
	border-top: 3px solid var(--cj-gold);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 8px 28px rgb(var(--cj-navy-rgb) / .06);
}

.cj-toc__title,
.cj-toc--mobile summary {
	margin: 0 0 12px;
	color: var(--cj-navy);
	font-size: 17px;
	font-weight: 700;
}

.cj-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: toc;
}

.cj-toc__item a {
	display: block;
	padding: 6px 0;
	border-bottom: 1px solid rgb(var(--cj-navy-rgb) / .06);
	color: #3c4955;
	font-size: 15px;
	line-height: 1.6;
	text-decoration: none;
}

.cj-toc__item--h2 {
	counter-increment: toc;
}

.cj-toc__item--h2 > a::before {
	content: counter(toc) ".";
	margin-inline-end: 8px;
	color: var(--cj-gold);
	font-weight: 700;
}

.cj-toc__item--h3 a {
	padding-inline-start: 22px;
	font-size: 14px;
}

.cj-toc__item a:hover {
	color: var(--cj-gold);
}

.cj-toc--mobile {
	display: none;
}

/* Referral */
.cj-referral {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	margin: 40px 0 0;
	padding: 30px 32px;
	border-radius: 14px;
	background:
		radial-gradient(circle at 90% 0%, rgb(var(--cj-gold-rgb) / .28), transparent 55%),
		var(--cj-navy);
	color: rgba(255, 255, 255, .82);
	box-shadow: 0 18px 40px rgb(var(--cj-navy-rgb) / .18);
}

.cj-referral__icon {
	display: grid;
	flex-shrink: 0;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--cj-gold);
}

.cj-referral__icon .cj-icon {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: #fff;
	stroke-width: 1.6;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cj-referral__title {
	margin: 0 0 6px;
	color: #fff;
	font-size: 21px;
	font-weight: 700;
	line-height: 1.5;
}

.cj-referral__text {
	margin: 0 0 18px;
	font-size: 16px;
	line-height: 1.8;
}

.cj-referral__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 28px;
	border-radius: 999px;
	background: var(--cj-gold);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
	box-shadow: 0 8px 20px rgb(var(--cj-gold-rgb) / .35);
	transition: background .2s ease, transform .2s ease;
}

.cj-referral__btn:hover,
.cj-referral__btn:focus-visible {
	background: var(--cj-gold-dark);
	color: #fff;
	transform: translateY(-1px);
}

.cj-referral__wa {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	color: rgba(255, 255, 255, .78);
	font-size: 14px;
	text-decoration: none;
}

.cj-referral__wa .cj-icon {
	width: 18px;
	height: 18px;
	fill: #25D366;
}

.cj-referral__wa:hover {
	color: #fff;
}

.cj-referral--side {
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 26px 22px;
	text-align: center;
}

.cj-referral--side .cj-referral__title {
	font-size: 18px;
}

.cj-referral--side .cj-referral__text {
	font-size: 15px;
}

.cj-referral--side .cj-referral__btn {
	display: flex;
	width: 100%;
	padding: 12px 16px;
	font-size: 15px;
}

.cj-referral--side .cj-referral__wa {
	justify-content: center;
}

/* Related */
.cj-related {
	padding: 64px 0 80px;
	border-top: 1px solid rgb(var(--cj-navy-rgb) / .08);
	background: #fff;
}

.cj-related__title {
	position: relative;
	margin: 0 0 36px;
	padding-bottom: 14px;
	color: var(--cj-navy);
	font-size: 26px;
	text-align: center;
}

.cj-related__title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 56px;
	height: 3px;
	border-radius: 2px;
	background: var(--cj-gold);
	transform: translateX(-50%);
}

@media (max-width: 991.98px) {
	.cj-article-layout {
		grid-template-columns: 1fr;
		gap: 0;
		padding-top: 32px;
		padding-bottom: 48px;
	}

	.cj-article {
		max-width: none;
	}

	.cj-article-side {
		display: none;
	}

	.cj-toc--mobile {
		display: block;
		margin-bottom: 28px;
		padding: 16px 20px;
		border-top: 3px solid var(--cj-gold);
		border-radius: 8px;
		background: #fff;
	}

	.cj-toc--mobile summary {
		margin: 0;
		cursor: pointer;
	}

	.cj-toc--mobile[open] summary {
		margin-bottom: 10px;
	}
}

@media (max-width: 640px) {
	.cj-referral {
		flex-direction: column;
		gap: 14px;
		padding: 24px 20px;
		text-align: center;
		align-items: center;
	}

	.cj-referral__btn {
		display: flex;
		width: 100%;
		font-size: 16px;
	}

	.cj-referral__wa {
		justify-content: center;
	}

	.cj-article__content {
		font-size: 17px;
		line-height: 1.9;
	}

	.cj-article__content h2 {
		font-size: 22px;
	}

	.cj-article__content h3 {
		font-size: 19px;
	}

	.cj-related {
		padding: 48px 0 56px;
	}

	.cj-related__title {
		font-size: 22px;
	}
}


.cj-referral__body {
	min-width: 0;
}

.cj-referral__btn {
	box-sizing: border-box;
	max-width: 100%;
	white-space: normal;
	text-align: center;
}

.cj-referral--side .cj-referral__body {
	width: 100%;
}

.cj-referral--side .cj-referral__wa,
.cj-referral--side .cj-referral__wa:hover {
	display: block;
	line-height: 1.7;
	text-align: center;
}

.cj-referral--side .cj-referral__wa .cj-icon {
	display: inline-block;
	margin-inline-end: 6px;
	vertical-align: -4px;
}

@media (max-width: 640px) {
	.cj-referral__body {
		width: 100%;
	}

	.cj-referral--box .cj-referral__wa {
		display: block;
		line-height: 1.7;
		text-align: center;
	}

	.cj-referral--box .cj-referral__wa .cj-icon {
		display: inline-block;
		margin-inline-end: 6px;
		vertical-align: -4px;
	}
}
