/* Pasajeen KR-PINYIN — route previous/next before and after each of the 12 existing lessons (0.1.2: top and bottom). */
.pz-krp-route-nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 10px;
	margin: 28px 0 8px;
}

.pz-krp-route-nav--top {
	margin: 0 0 24px;
}

/* 0.1.3: older navigation written into these lessons follows another order (or points to the Spoken Life Hub) and
   would contradict the route nav: the .pz-lesson-sequence-nav blocks that Posts 109 and 18568 still show, and the
   "ลำดับบทเรียน" lists of Posts 1162 and 18568. Hidden only where the route nav is shown; the content is not edited. */
.entry-content:has(.pz-krp-route-nav) .pz-lesson-sequence-nav:not(.pz-krp-route-nav),
.entry-content:has(.pz-krp-route-nav) nav[aria-label="ลำดับบทเรียน"] {
	display: none !important;
}

.pz-krp-route-nav a {
	display: block;
	padding: 14px 16px;
	border: 1px solid #d8e5e0;
	border-radius: 14px;
	background: #f6faf8;
	color: #1f5d50 !important;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.5;
	text-decoration: none;
}

.pz-krp-route-nav a.pz-lesson-next {
	text-align: right;
}

.pz-krp-route-nav a:hover,
.pz-krp-route-nav a:focus-visible {
	border-color: #9cc7bb;
	background: #ecf5f1;
}

.pz-krp-route-nav a:focus-visible {
	outline: 3px solid #efb46f;
	outline-offset: 2px;
}

@media (max-width: 560px) {
	.pz-krp-route-nav a.pz-lesson-next {
		text-align: left;
	}
}
