/* YUN Journal Layout
   Font mengikuti theme situs (tidak ada font yang dimuat plugin).
   Ubah warna/jarak lewat variabel di bawah atau di Additional CSS. */
:root {
	--yjl-top: 5.25rem;            /* jarak dari atas halaman agar tidak tertimpa header */
	--yjl-bg-top: #090f13;         /* latar area hero (gambar + judul) */
	--yjl-bg-main: #0e1a20;        /* latar area isi artikel */
	--yjl-bg-end: #0a1318;
	--yjl-bg-hover: #111d23;
	--yjl-text: #98a4a9;
	--yjl-lead: #dde3e5;
	--yjl-strong: #ffffff;
	--yjl-label: #6a8c95;
	--yjl-line: #263238;
	--yjl-gutter: clamp(1.25rem, 2.8vw, 4rem);
	--yjl-noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .045 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

body.yjl-active {
	background: var(--yjl-bg-top);
	overflow-x: clip;
}

/* ---------- Dasar ---------- */
main.yjl {
	position: relative;
	box-sizing: border-box;
	width: 100vw;
	max-width: none;
	margin: 0 0 0 calc(50% - 50vw);
	padding: 0;
	background: var(--yjl-bg-top);
	color: var(--yjl-text);
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
}
.yjl *,
.yjl *::before,
.yjl *::after {
	box-sizing: border-box;
}
.yjl a {
	color: inherit;
	text-decoration: none;
}
.yjl .yjl-wrap {
	padding: 0 var(--yjl-gutter);
}
.yjl .yjl-label {
	font-size: 0.6875rem;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--yjl-label);
}

/* ---------- Area atas: breadcrumb + hero ---------- */
.yjl-top {
	padding: var(--yjl-top) 0 clamp(3rem, 6vw, 5.5rem);
	background: var(--yjl-bg-top) var(--yjl-noise);
}

.yjl-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem;
	margin: 0 0 clamp(1.5rem, 2.8vw, 2.5rem);
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--yjl-text);
}
.yjl-crumbs a:hover {
	color: var(--yjl-strong);
}
.yjl-crumbs span[aria-hidden] {
	opacity: 0.45;
}
.yjl-crumbs [aria-current] {
	color: var(--yjl-strong);
}

.yjl-hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: clamp(1.5rem, 3.4vw, 3.5rem);
	align-items: stretch;
}
.yjl-hero--text {
	grid-template-columns: minmax(0, 1fr);
}
.yjl-hero__media {
	width: 100%;
	min-width: 0;
	margin: 0;
	align-self: start;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0f1b20;
}
.yjl-hero__img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	object-fit: cover;
}
.yjl-hero__info {
	display: flex;
	flex-direction: column;
	min-width: 0;
}
.yjl-hero__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.1rem;
}

/* Tombol Back: kecil, outline tipis */
.yjl a.yjl-back {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	height: 1.75rem;
	padding: 0 0.8rem 0 0.65rem;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--yjl-strong);
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.yjl-back svg {
	width: 0.85rem;
	height: 0.85rem;
	flex: none;
}
.yjl a.yjl-back:hover {
	background: var(--yjl-strong);
	border-color: var(--yjl-strong);
	color: #0a1216;
}

.yjl-share {
	display: flex;
	align-items: center;
	gap: 0.8rem;
}
.yjl-share .yjl-label {
	margin-right: 0.1rem;
	color: var(--yjl-text);
}
.yjl .yjl-share__btn {
	display: inline-flex;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--yjl-strong);
	cursor: pointer;
	transition: opacity 0.2s;
}
.yjl-share__btn svg {
	width: 0.9rem;
	height: 0.9rem;
}
.yjl .yjl-share__btn:hover {
	background: none;
	color: var(--yjl-strong);
	opacity: 0.55;
}
.yjl-share__status {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.yjl .yjl-cat {
	align-self: flex-start;
	font-size: 0.75rem;
}
.yjl .yjl-cat:hover {
	color: var(--yjl-strong);
}
.yjl .yjl-title {
	margin: 0.6rem 0 1.5rem;
	padding: 0;
	font-size: clamp(2rem, 3.95vw, 3.4rem);
	font-weight: 400;
	line-height: 0.96;
	letter-spacing: -0.02em;
	text-transform: none;
	color: var(--yjl-strong);
	text-wrap: balance;
}

.yjl-meta {
	display: grid;
	gap: 0.7rem;
	margin-top: auto;
	padding-top: 1.25rem;
}
.yjl-meta__row,
.yjl-meta__item {
	display: flex;
	align-items: baseline;
	gap: 0.5rem;
}
.yjl-meta__row--split {
	justify-content: space-between;
}
.yjl-meta__val {
	font-size: 0.75rem;
	font-weight: 400;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--yjl-strong);
}

/* ---------- Area isi: warna berbeda dengan transisi halus ---------- */
.yjl-main {
	position: relative;
	padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 7rem);
	background:
		linear-gradient(180deg, var(--yjl-bg-top) 0, rgba(9, 15, 19, 0) 7rem),
		linear-gradient(180deg, var(--yjl-bg-main) 0, var(--yjl-bg-end) 100%);
	background-color: var(--yjl-bg-main);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.yjl-main::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--yjl-noise);
	pointer-events: none;
}
.yjl-main > * {
	position: relative;
}

.yjl-body {
	max-width: 40rem;
	margin: 0 auto;
	font-size: 1rem;
	line-height: 1.75;
}
.yjl-body > * {
	margin-top: 0;
	margin-bottom: 1.25rem;
}
.yjl-body > p:first-of-type {
	font-size: clamp(1.15rem, 1.6vw, 1.3rem);
	font-weight: 300;
	line-height: 1.6;
	color: var(--yjl-lead);
	margin-bottom: 1.5rem;
}
.yjl-body p {
	text-wrap: pretty;
}
.yjl-body strong,
.yjl-body b {
	font-weight: 500;
	color: #c9d1d4;
}
.yjl-body a {
	color: var(--yjl-strong);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}
.yjl-body a:hover {
	text-decoration-color: var(--yjl-label);
}

.yjl-body h1,
.yjl-body h2,
.yjl-body h3,
.yjl-body h4 {
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1.08;
	text-transform: none;
	color: var(--yjl-strong);
	text-wrap: balance;
}
.yjl-body h2 {
	margin-top: 2.5rem;
	margin-bottom: 0.9rem;
	font-size: clamp(1.6rem, 2.2vw, 1.9rem);
}
.yjl-body h3 {
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	font-size: clamp(1.3rem, 1.7vw, 1.45rem);
}
.yjl-body h4 {
	margin-top: 1.75rem;
	margin-bottom: 0.6rem;
	font-size: 1.15rem;
}

.yjl-body ul,
.yjl-body ol {
	padding-left: 1.4rem;
}
.yjl-body li {
	margin-bottom: 0.4rem;
	padding-left: 0.5rem;
	line-height: 1.8;
}
.yjl-body li::marker {
	color: var(--yjl-text);
}
.yjl-body ul ul,
.yjl-body ol ol {
	margin: 0.4rem 0 0;
}

.yjl-body blockquote {
	margin: 2rem 0;
	padding: 0 0 0 1.25rem;
	border-left: 1px solid var(--yjl-label);
	font-size: 1.35rem;
	line-height: 1.4;
	color: var(--yjl-strong);
}
.yjl-body blockquote p {
	margin: 0;
}
.yjl-body hr {
	height: 0;
	margin: 2.5rem 0;
	border: 0;
	border-top: 1px solid var(--yjl-line);
}
.yjl-body img,
.yjl-body video,
.yjl-body iframe {
	max-width: 100%;
	height: auto;
}
.yjl-body figure {
	margin-left: 0;
	margin-right: 0;
}
.yjl-body figcaption {
	margin-top: 0.5rem;
	font-size: 0.8125rem;
	color: var(--yjl-label);
}
.yjl-body .alignwide,
.yjl-body .alignfull {
	max-width: 100%;
}
.yjl-body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}
.yjl-body th,
.yjl-body td {
	padding: 0.6rem 0.7rem;
	border-bottom: 1px solid var(--yjl-line);
	text-align: left;
}
.yjl-body th {
	font-weight: 500;
	color: var(--yjl-strong);
}
.yjl-body pre,
.yjl-body code {
	font-size: 0.85rem;
}
.yjl-body pre {
	overflow-x: auto;
	padding: 1rem 1.15rem;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--yjl-line);
}
.yjl-pages {
	margin-top: 2rem;
}

/* ---------- Previous / Next ---------- */
.yjl-pager {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-top: 1px solid var(--yjl-line);
	border-bottom: 1px solid var(--yjl-line);
	background: var(--yjl-bg-end);
}
.yjl-pager__cell {
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	padding: clamp(1.5rem, 2.6vw, 2.25rem) var(--yjl-gutter);
	transition: background-color 0.25s;
}
.yjl a.yjl-pager__cell:hover {
	background: var(--yjl-bg-hover);
}
.yjl-pager__cell--next {
	align-items: flex-end;
	text-align: right;
	border-left: 1px solid var(--yjl-line);
}
.yjl-pager__cell--empty:last-child {
	border-left: 1px solid var(--yjl-line);
}
.yjl .yjl-pager__title {
	max-width: 30ch;
	font-size: clamp(1.25rem, 2.1vw, 1.75rem);
	font-weight: 400;
	line-height: 1.2;
	color: var(--yjl-strong);
	text-wrap: balance;
}

/* ---------- Responsif ---------- */
@media (max-width: 900px) {
	:root {
		--yjl-top: 4.75rem;
	}
	.yjl-hero {
		grid-template-columns: minmax(0, 1fr);
	}
	.yjl-hero__info {
		display: contents;
	}
	.yjl-hero__bar {
		order: -1;
		margin-bottom: 0;
	}
	.yjl-hero__media {
		order: 0;
	}
	.yjl-cat,
	.yjl-title,
	.yjl-meta {
		order: 1;
	}
	.yjl .yjl-title {
		margin: 0;
	}
	.yjl-meta {
		margin-top: 0;
		padding-top: 0.5rem;
	}
	.yjl-pager {
		grid-template-columns: 1fr;
	}
	.yjl-pager__cell--next {
		align-items: flex-start;
		text-align: left;
		border-left: 0;
		border-top: 1px solid var(--yjl-line);
	}
	.yjl-pager__cell--empty {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.yjl * {
		transition: none !important;
	}
}

.yjl a:focus-visible,
.yjl button:focus-visible {
	outline: 2px solid var(--yjl-strong);
	outline-offset: 3px;
}
