/* ===== เลย์เอาต์สารบัญ + แผงเนื้อหา ===== */
.rpt-layout {
	--rpt-olive: #B2BB1E;
	--rpt-olive-dark: #5E6608;
	--rpt-tint: #F5F7DC;
	--rpt-ink: #26301A;
	--rpt-muted: #5B6350;
	--rpt-line: #DDE0CC;
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: 32px;
	align-items: start;
	padding: 40px 0 56px;
	
}

/* ---------- แถบสารบัญ ---------- */
.rpt-toc {
	position: sticky;
	top: 16px;               /* ถ้าเมนูด้านบนของเว็บ fixed ให้เพิ่มค่านี้ตามความสูงเมนู */
	padding: 20px;
	background: #fff;
	border: 1px solid var(--rpt-line);
	border-radius: 14px;
	box-shadow: 0 1px 2px rgba(38, 48, 26, .06);
}
.rpt-toc__eyebrow {
	margin: 0 0 8px;
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .12em;
	color: var(--rpt-olive-dark);
}
.rpt-toc__group {
	margin: 16px 0 8px;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--rpt-ink);
}
.rpt-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.rpt-toc__list a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--rpt-ink);
	text-decoration: none;
	border-radius: 10px;
	transition: background-color .15s ease, color .15s ease;
}
.rpt-toc__num {
	flex: none;
	min-width: 38px;
	padding: 1px 8px;
	font-size: .85rem;
	text-align: center;
	color: var(--rpt-olive-dark);
	background: var(--rpt-tint);
	border-radius: 999px;
}
.rpt-toc__list a:hover {
	color: var(--rpt-olive-dark);
	text-decoration: none;
	background: var(--rpt-tint);
}
.rpt-toc__list a.is-active {
	color: #fff;
	background: var(--rpt-olive-dark);
}
.rpt-toc__list a.is-active .rpt-toc__num {
	color: #fff;
	background: rgba(255, 255, 255, .2);
}
.rpt-toc__list a:focus-visible {
	outline: 3px solid var(--rpt-olive-dark);
	outline-offset: 2px;
}

/* ---------- แผงเนื้อหา ---------- */
.rpt-layout--tabs .rpt-panel { display: none; }
.rpt-layout--tabs .rpt-panel.is-active { display: block; }

.rpt-panel + .rpt-panel { margin-top: 48px; }          /* ตอนไม่มี JS แผงจะเรียงต่อกัน */
.rpt-layout--tabs .rpt-panel + .rpt-panel { margin-top: 0; }

/* ส่วน SAR/SSR เดิมที่ย้ายเข้ามา: ตัด container ซ้อนและระยะบนที่ไม่จำเป็น */
.rpt-panel .container { max-width: none; padding-left: 0; padding-right: 0; }
.rpt-panel .rpt-section { padding-top: 24px; padding-bottom: 24px; }

.rpt-empty {
	padding: 40px 24px;
	text-align: center;
	color: var(--rpt-muted);
	background: var(--rpt-tint);
	border-radius: 14px;
}

/* จอกลาง (992-1199px) พื้นที่แผงแคบ: การ์ดเหลือ 2 คอลัมน์ */
@media (min-width: 992px) and (max-width: 1199.98px) {
	.rpt-panel .rpt-card { flex-basis: calc((100% - var(--rpt-gap)) / 2); }
}

/* มือถือ/แท็บเล็ต: สารบัญขึ้นไปอยู่บน เนื้อหาอยู่ล่าง */
@media (max-width: 991.98px) {
	.rpt-layout { grid-template-columns: 1fr; gap: 24px; padding: 24px 0 40px; }
	.rpt-toc { position: static; }
}