/* Panduan EduPro. Warna produk: navy dan merah; huruf dimuat dari situs sendiri. */
@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url(fonts/plus-jakarta-sans.woff2) format("woff2");
}

:root {
	--navy: #14284b;
	--navy-2: #21406f;
	--red: #c8102e;
	--ink: #1d2433;
	--muted: #5f6b7f;
	--line: #e3e7ef;
	--soft: #f5f7fb;
	--ok: #1f7a4d;
	--ok-bg: #e6f4ec;
	--warn: #8a5a00;
	--warn-bg: #fdf4e1;
	--info-bg: #eef3fb;
	color-scheme: light;
}

* {
	box-sizing: border-box;
}

html {
	scroll-padding-top: 76px;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font: 16px/1.65 "Plus Jakarta Sans", -apple-system, blinkmacsystemfont, "Segoe UI", roboto, sans-serif;
	color: var(--ink);
	background: #fff;
}

a {
	color: var(--navy-2);
}

a:hover {
	color: var(--red);
}

:focus-visible {
	outline: 3px solid var(--red);
	outline-offset: 2px;
}

.sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}

.skip {
	position: absolute;
	top: -60px;
	left: 12px;
	z-index: 30;
	padding: 8px 14px;
	color: #fff;
	background: var(--red);
	border-radius: 6px;
}

.skip:focus {
	top: 10px;
	color: #fff;
}

/* Kepala */
.top {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	gap: 16px;
	align-items: center;
	min-height: 60px;
	padding: 10px 24px;
	background: var(--navy);
	border-bottom: 3px solid var(--red);
}

.brand {
	display: flex;
	flex: none;
	gap: 10px;
	align-items: center;
	font-weight: 800;
	color: #fff;
	text-decoration: none;
}

.brand:hover {
	color: #fff;
}

.brand img {
	padding: 2px;
	background: #fff;
	border-radius: 6px;
}

.search {
	position: relative;
	flex: 1 1 auto;
	max-width: 460px;
	margin-left: auto;
}

.search input {
	width: 100%;
	height: 38px;
	padding: 0 14px;
	font: inherit;
	font-size: 14.5px;
	color: var(--ink);
	background: #fff;
	border: 0;
	border-radius: 8px;
}

#hasil {
	position: absolute;
	top: 44px;
	right: 0;
	left: 0;
	max-height: 70vh;
	margin: 0;
	padding: 6px;
	overflow: auto;
	list-style: none;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(20, 40, 75, 0.2);
}

#hasil a {
	display: block;
	padding: 8px 10px;
	color: var(--ink);
	text-decoration: none;
	border-radius: 6px;
}

#hasil a:hover,
#hasil a:focus {
	background: var(--soft);
}

#hasil strong,
#hasil small {
	display: block;
}

#hasil small {
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--muted);
}

#hasil .none {
	padding: 10px;
	color: var(--muted);
}

.menu-btn {
	display: none;
	flex: none;
	height: 38px;
	padding: 0 14px;
	font: inherit;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 8px;
}

/* Tata letak */
.layout {
	display: grid;
	grid-template-columns: 270px minmax(0, 1fr);
	max-width: 1240px;
	margin: 0 auto;
}

.side {
	position: sticky;
	top: 63px;
	align-self: start;
	max-height: calc(100vh - 63px);
	padding: 20px 14px 40px 24px;
	overflow-y: auto;
	font-size: 14.5px;
	border-right: 1px solid var(--line);
}

.side ul {
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.nav-group {
	margin: 12px 0 4px;
	padding: 0 10px;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.06em;
	color: var(--muted);
	text-transform: uppercase;
}

.side a {
	display: block;
	padding: 6px 10px;
	color: var(--ink);
	text-decoration: none;
	border-radius: 7px;
}

.side a:hover {
	background: var(--soft);
}

.side a[aria-current] {
	font-weight: 700;
	color: var(--navy);
	background: var(--info-bg);
	box-shadow: inset 3px 0 0 var(--red);
}

main {
	min-width: 0;
	max-width: 860px;
	padding: 28px 40px 56px;
}

h1 {
	margin: 0 0 16px;
	font-size: 34px;
	font-weight: 800;
	line-height: 1.2;
	color: var(--navy);
}

h2 {
	margin: 38px 0 12px;
	padding-top: 6px;
	font-size: 23px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--navy);
}

h3 {
	margin: 26px 0 6px;
	font-size: 17px;
	font-weight: 700;
	color: var(--navy);
}

p {
	margin: 0 0 14px;
}

.lead {
	font-size: 18px;
	color: #3a4559;
}

ul,
ol {
	margin: 0 0 16px;
	padding-left: 22px;
}

li {
	margin-bottom: 6px;
}

em {
	font-style: normal;
	font-weight: 600;
	color: var(--navy-2);
}

code {
	padding: 1px 6px;
	font-family: Consolas, Monaco, monospace;
	font-size: 0.9em;
	background: var(--soft);
	border-radius: 4px;
}

pre {
	margin: 0 0 16px;
	padding: 14px 16px;
	overflow-x: auto;
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 8px;
}

pre code {
	padding: 0;
	background: none;
}

/* Langkah bernomor */
ol.steps {
	padding: 0;
	list-style: none;
	counter-reset: step;
}

ol.steps > li {
	position: relative;
	min-height: 28px;
	margin-bottom: 10px;
	padding-left: 40px;
	counter-increment: step;
}

ol.steps > li::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 28px;
	height: 28px;
	font-size: 13.5px;
	font-weight: 800;
	line-height: 28px;
	color: #fff;
	text-align: center;
	background: var(--navy);
	border-radius: 50%;
	content: counter(step);
}

/* Alur */
ol.flow {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	list-style: none;
}

ol.flow li {
	margin: 0;
	padding: 6px 12px;
	font-size: 14px;
	font-weight: 600;
	background: var(--info-bg);
	border-radius: 7px;
}

ol.flow a {
	text-decoration: none;
}

/* Tabel */
table {
	display: block;
	width: 100%;
	margin: 0 0 20px;
	overflow-x: auto;
	font-size: 14.5px;
	border-collapse: collapse;
}

th,
td {
	padding: 9px 12px;
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--line);
}

th {
	font-size: 13px;
	color: var(--muted);
	white-space: nowrap;
	background: var(--soft);
}

/* Kotak catatan */
.note,
.tip {
	margin: 0 0 18px;
	padding: 12px 16px;
	font-size: 15px;
	border-left: 4px solid;
	border-radius: 0 8px 8px 0;
}

.note {
	background: var(--warn-bg);
	border-color: #d9a441;
}

.tip {
	background: var(--ok-bg);
	border-color: var(--ok);
}

/* Gambar */
figure {
	margin: 0 0 22px;
}

figure img {
	display: block;
	width: 100%;
	height: auto;
	border: 1px solid var(--line);
	border-radius: 10px;
}

figcaption {
	margin-top: 6px;
	font-size: 13px;
	color: var(--muted);
}

.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.chips span {
	padding: 3px 11px;
	font-size: 13.5px;
	background: var(--soft);
	border: 1px solid var(--line);
	border-radius: 99px;
}

/* Daftar isi */
.toc {
	margin: 0 0 22px;
	padding: 12px 16px;
	font-size: 14.5px;
	background: var(--soft);
	border-radius: 10px;
}

.toc ul {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 18px;
	margin: 4px 0 0;
	padding: 0;
	list-style: none;
}

.toc li {
	margin: 0;
}

/* Unduhan demo */
.dl {
	display: inline-block;
	padding: 5px 12px;
	font-weight: 700;
	color: #fff;
	white-space: nowrap;
	text-decoration: none;
	background: var(--navy);
	border-radius: 7px;
}

.dl:hover {
	color: #fff;
	background: var(--navy-2);
}

.hash {
	font-size: 12px;
}

/* Halaman lain */
.pager {
	display: flex;
	gap: 12px;
	justify-content: space-between;
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
}

.pager a {
	flex: 0 1 48%;
	padding: 10px 14px;
	font-weight: 700;
	text-decoration: none;
	border: 1px solid var(--line);
	border-radius: 8px;
}

.pager small {
	display: block;
	font-weight: 500;
	color: var(--muted);
}

.pager .next {
	margin-left: auto;
	text-align: right;
}

.foot {
	padding: 18px 24px;
	font-size: 13px;
	color: var(--muted);
	text-align: center;
	border-top: 1px solid var(--line);
}

@media (max-width: 900px) {

	.layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.top {
		flex-wrap: wrap;
		padding: 10px 16px;
	}

	.search {
		order: 3;
		flex-basis: 100%;
		max-width: none;
		margin: 0;
	}

	.brand {
		margin-right: auto;
	}

	.menu-btn {
		display: block;
	}

	.side {
		position: static;
		max-height: none;
		padding: 12px 16px;
		border-right: 0;
		border-bottom: 1px solid var(--line);
	}

	.js .side {
		display: none;
	}

	.js .side.is-open {
		display: block;
	}

	main {
		padding: 22px 16px 40px;
	}

	h1 {
		font-size: 28px;
	}

	html {
		scroll-padding-top: 118px;
	}
}

@media (prefers-reduced-motion: reduce) {

	html {
		scroll-behavior: auto;
	}
}
