/* Pasajeen Mobile Home Polish 0.2.0 (+ 0.4.0 group labels at the end)
 * One learning-route list in the dark navy style of the home hero, identical on phones (inside the shell's
 * #pz-mobile-learning) and desktop (hero, where the static route chooser was). Self-contained: does not rely on
 * the home page's own <style>.
 */
body.pz-mobile-shell-active #pz-mobile-learning .pzmh-dark {
	padding: 14px 10px 10px;
	border-radius: 24px;
	background: linear-gradient(135deg, #152c43 0%, #234b62 72%, #6c5143 140%);
	color: #fff;
}

.pzmh-routes {
	padding: 10px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 25px;
	background: rgba(255, 255, 255, .1);
	box-shadow: 0 25px 60px rgba(5, 22, 35, .25);
	text-align: left;
}

.pzmh-routes .pj3-routes-head {
	padding: 15px 15px 12px;
}

.pzmh-routes .pj3-routes-head small {
	display: block;
	color: #d7e4eb;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .04em;
	line-height: 1.5;
}

.pzmh-routes .pj3-routes-head h2 {
	margin: 5px 0 0;
	color: #fff;
	font-size: 25px;
	line-height: 1.3;
}

.pzmh-routes .pj3-route-list {
	display: grid;
	gap: 8px;
}

.pzmh-routes .pj3-route {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr) 22px;
	align-items: center;
	gap: 12px;
	min-height: 74px;
	margin: 0;
	padding: 12px 15px;
	border-radius: 16px;
	background: #fff;
	color: #18324a !important;
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease;
}

.pzmh-routes a.pj3-route:hover,
.pzmh-routes a.pj3-route:focus-visible {
	transform: translateX(3px);
	box-shadow: 0 9px 22px rgba(8, 27, 42, .18);
}

.pzmh-routes a.pj3-route:active {
	transform: scale(.985);
}

.pzmh-routes .pj3-route-char {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: #f4e9dc;
	color: #b9623e;
	font-family: "Noto Serif SC", "Microsoft YaHei", "Songti SC", serif;
	font-size: 20px;
	font-weight: 800;
	line-height: 1;
}

.pzmh-routes .pj3-route > span:nth-child(2) {
	min-width: 0;
}

.pzmh-routes .pj3-route strong {
	display: block;
	color: #18324a;
	font-size: 17px;
	line-height: 1.35;
}

.pzmh-routes .pj3-route small {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	margin-top: 2px;
	color: #66737e;
	font-size: 12px;
	line-height: 1.4;
}

.pzmh-routes .pj3-arrow {
	color: #b9623e;
	font-size: 21px;
	line-height: 1;
}

.pzmh-routes .pj3-route[aria-disabled="true"] {
	opacity: .72;
}

/* 0.4.1: on phones the shell's "#pz-mobile-app-shell h2" (ID selector) turned the list heading dark green on
   the dark navy panel; keep it white and readable */
body.pz-mobile-shell-active #pz-mobile-learning .pzmh-routes .pj3-routes-head h2 {
	color: #fff;
	font-size: 22px;
	line-height: 1.3;
}

/* 0.4.0: Thai-only group labels between the route rows (like the Page 18550 stage headings) */
.pzmh-routes .pzmh-group + .pzmh-group {
	margin-top: 16px;
}

.pzmh-routes .pzmh-group-label {
	margin: 0 0 8px;
	padding: 0 7px;
	color: #f3d2b8;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .02em;
	line-height: 1.45;
}

@media (max-width: 680px) {
	.pzmh-routes .pj3-routes-head h2 {
		font-size: 22px;
	}

	.pzmh-routes .pj3-route {
		grid-template-columns: 42px minmax(0, 1fr) 18px;
		min-height: 72px;
		padding: 11px 12px;
	}

	.pzmh-routes .pj3-route strong {
		font-size: 16px;
	}

	.pzmh-routes .pj3-route small {
		font-size: 11.5px;
	}
}

/* 0.4.2 (Owner 2026-10-14 "ตัวหนังสือเล็กเกินไป"): Thai text in the route list no smaller than 15px, bigger arrows.
   Placed last so it wins over the 0.2.0 sizes above at every width. */
.pzmh-routes .pj3-routes-head small,
.pzmh-routes .pj3-route small {
	font-size: 15px;
	line-height: 1.5;
}

.pzmh-routes .pj3-routes-head small {
	letter-spacing: .01em;
}

.pzmh-routes .pzmh-group-label {
	font-size: 16px;
}

.pzmh-routes .pj3-route strong {
	font-size: 18px;
}

.pzmh-routes .pj3-route {
	grid-template-columns: 46px minmax(0, 1fr) 30px;
}

.pzmh-routes .pj3-arrow {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #f4e9dc;
	font-size: 26px;
	font-weight: 700;
}

@media (max-width: 680px) {
	.pzmh-routes .pj3-route {
		grid-template-columns: 42px minmax(0, 1fr) 30px;
	}

	.pzmh-routes .pj3-route strong {
		font-size: 17px;
	}
}

/* 0.4.2: shared list fold (assets/fold.js). Items past the fifth wait behind a full-width down-arrow button. */
.pz-fold-extra[hidden] {
	display: none !important;
}

button.pz-fold-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 50px;
	margin: 10px 0 0;
	padding: 10px 16px;
	border: 1.5px solid var(--pz-fold-line, #cfe0da);
	border-radius: 14px;
	background: var(--pz-fold-bg, #f3f8f6);
	box-shadow: none;
	color: var(--pz-fold-fg, #247261);
	font: inherit;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: normal;
	line-height: 1.35;
	text-transform: none;
	cursor: pointer;
}

button.pz-fold-toggle:hover {
	background: var(--pz-fold-bg-hover, #e6f1ed);
}

button.pz-fold-toggle:focus-visible {
	outline: 3px solid #efb46f;
	outline-offset: 2px;
}

.pz-fold-icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--pz-fold-fg, #247261);
	color: var(--pz-fold-icon, #fff);
	transition: transform .2s ease;
}

.pz-fold-icon svg {
	display: block;
}

button.pz-fold-toggle[aria-expanded="true"] .pz-fold-icon {
	transform: rotate(180deg);
}

.pzmh-routes button.pz-fold-toggle {
	--pz-fold-bg: rgba(255, 255, 255, .12);
	--pz-fold-bg-hover: rgba(255, 255, 255, .2);
	--pz-fold-line: rgba(255, 255, 255, .4);
	--pz-fold-fg: #fff;
	--pz-fold-icon: #18324a;
}

@media (prefers-reduced-motion: reduce) {
	.pz-fold-icon {
		transition: none;
	}
}

/* 0.4.2 (Owner 2026-10-14 "ในหน้าแรก หลายส่วน ตัวหนังสือเล็กเกินไป"): readable Thai sizes for the home page's own
   sections (Page 15657 <style>) and the phone shell's cards. Overrides only font sizes; the page content is not edited.
   "body.home main.pj3" outranks the page's own ".pj3-…" rules at every width. */
body.home main.pj3 .pj3-overline,
body.home main.pj3 .pj3-kicker {
	font-size: 15px;
	letter-spacing: .05em;
}

/* Owner 2026-10-14: "บอกเป้าหมาย แล้วเราพาไปเส้นทางที่ใช่" uses the same type as the route list above it
   ("เส้นทางการเรียนที่พร้อมใช้"): Kanit heading 25px (22px on phones), Sarabun 800 label 15px, item titles 18px,
   item notes 15px. The lesson-format heading follows so both page sections match. */
body.home main.pj3 .pj3-section-intro h2,
body.home main.pj3 .pj3-anatomy-copy h2 {
	font-size: 25px;
	line-height: 1.3;
	letter-spacing: -.02em;
}

body.home main.pj3 .pj3-kicker {
	font-weight: 800;
	letter-spacing: .01em;
}

body.home main.pj3 .pj3-goal strong {
	font-size: 18px;
	line-height: 1.35;
}

@media (max-width: 680px) {
	body.home main.pj3 .pj3-section-intro h2,
	body.home main.pj3 .pj3-anatomy-copy h2 {
		font-size: 22px;
	}
}

body.home main.pj3 .pj3-step::before {
	font-size: 14px;
}

body.home main.pj3 .pj3-section-intro p,
body.home main.pj3 .pj3-anatomy-copy p {
	font-size: 18px;
}

body.home main.pj3 .pj3-chips li,
body.home main.pj3 .pj3-tools span {
	font-size: 16px;
}

body.home main.pj3 .pj3-goal-q,
body.home main.pj3 .pj3-goal-go {
	font-size: 15px;
	line-height: 1.5;
}

/* the sample lesson card above "ทุกประโยคอ่านออกเสียงได้" (Owner named it): close to the page's body size */
body.home main.pj3 .pj3-lesson-row b {
	font-size: 17px;
}

body.home main.pj3 .pj3-lesson-row span {
	font-size: 18px;
	line-height: 1.55;
}

@media (max-width: 680px) {
	body.home main.pj3 .pj3-lead {
		font-size: 18px;
	}
}

body.pz-mobile-shell-active #pz-mobile-app-shell .pz-mobile-kicker {
	font-size: 15px;
}

body.pz-mobile-shell-active #pz-mobile-app-shell .pz-mobile-pill {
	font-size: 14px;
}

body.pz-mobile-shell-active #pz-mobile-app-shell .pz-mobile-brand small {
	font-size: 13px;
}

body.pz-mobile-shell-active #pz-mobile-app-shell #pz-mobile-practice h2 {
	font-size: 21px;
}

body.pz-mobile-shell-active #pz-mobile-app-shell .pz-mobile-practice-card h3 {
	font-size: 18px;
	line-height: 1.4;
}

body.pz-mobile-shell-active #pz-mobile-app-shell .pz-mobile-practice-card p {
	font-size: 17px;
	line-height: 1.55;
}

/* 0.5.0 (Skill 5A.6): "เรียนรู้จีนให้ลึกขึ้น" — Topic Hub / Series cards in their own panel below the master Routes.
   Same row size as a route; a green badge tells a topic apart from an ordered route. */
.pzmh-routes + .pzmh-discovery {
	margin-top: 16px;
}

.pzmh-discovery .pzmh-topic .pj3-route-char {
	background: #e3f0ea;
	color: #2f6b55;
}
/* 0.5.1: the wrapper takes the old list's place in the desktop hero grid (right column) */
.pzmh-route-stack {
	min-width: 0;
}

/* 0.5.6 (Owner 2026-10-16 "ปุ่มลัดบนหน้าแรก"): shortcut chips at the top of the route stack — first phone screen,
   top of the desktop hero's right column. Thai text at body size (Owner rule: Thai text is never small). */
.pzmh-shortcuts {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px;
	padding: 4px 6px 0;
}

.pzmh-shortcuts-label {
	color: #d7e4eb;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.4;
}

.pzmh-shortcuts .pzmh-shortcut {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 46px;
	padding: 6px 18px 6px 7px;
	border-radius: 999px;
	background: #fff;
	color: #18324a !important;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
	text-decoration: none;
	box-shadow: 0 10px 24px rgba(5, 22, 35, .22);
	transition: transform .18s ease, box-shadow .18s ease;
}

.pzmh-shortcuts .pzmh-shortcut:hover,
.pzmh-shortcuts .pzmh-shortcut:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(5, 22, 35, .28);
}

.pzmh-shortcuts .pzmh-shortcut-char {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #fbe6dc;
	color: #a8442b;
	font-size: 18px;
	line-height: 1;
}

@media (prefers-reduced-motion: reduce) {
	.pzmh-shortcuts .pzmh-shortcut { transition: none; }
}