/* ข้อกำหนดและเงื่อนไข / นโยบายความเป็นส่วนตัว (th/inc/legal.php) ; prefix lblg- ; hero + body ใช้ธีมเว็บหลัก (.lbd-hero .lbd-body .lbd-wrap) */
.lblg-hero h1 { margin-bottom: 8px; }
.lblg-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0 0; color: #55677a; font-size: 14px; }
.lblg-meta .fa { color: #4f46e5; }
.lblg-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 22px; padding: 4px; border-radius: 14px; background: #fff; border: 1px solid #e3e9ee; box-shadow: 0 8px 20px -14px rgba(23, 50, 65, .35); }
.lblg-tabs a { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; color: #334155 !important; font-size: 15px; font-weight: 600; text-decoration: none !important; }
.lblg-tabs a:hover { background: #f4f5ff; }
.lblg-tabs a.is-on { background: #4f46e5; color: #fff !important; }
.lblg-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
/* สารบัญ */
.lblg-toc { position: sticky; top: 96px; display: grid; gap: 12px; max-height: calc(100vh - 116px); }
.lblg-toc-box { overflow: hidden; border: 1px solid #e3e9ee; border-radius: 18px; background: #fff; }
.lblg-toc-box summary { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid #eef1f4; color: #14252b; font-weight: 700; cursor: pointer; list-style: none; }
.lblg-toc-box summary::-webkit-details-marker { display: none; }
.lblg-toc-box summary .fa { color: #4f46e5; }
.lblg-toc ol { max-height: calc(100vh - 230px); margin: 0; padding: 8px; overflow-y: auto; list-style: none; scrollbar-width: thin; }
.lblg-toc li a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; color: #475569 !important; font-size: 14px; line-height: 1.45; text-decoration: none !important; }
.lblg-toc li a span { flex: none; min-width: 22px; color: #94a3b8; font-variant-numeric: tabular-nums; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.lblg-toc li a:hover { background: #f4f5ff; color: #14252b !important; }
.lblg-toc li a.is-on { background: #eef0ff; color: #3f3ab8 !important; font-weight: 600; }
.lblg-toc li a.is-on span { color: #4f46e5; }
.lblg-print { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border: 1px solid #e3e9ee; border-radius: 12px; background: #fff; color: #334155; font-size: 14px; font-weight: 600; cursor: pointer; }
.lblg-print:hover { border-color: #4f46e5; color: #4f46e5; }
/* เอกสาร */
.lblg-doc { min-width: 0; padding: 30px 40px 34px; border: 1px solid #e3e9ee; border-radius: 22px; background: #fff; box-shadow: 0 20px 44px -32px rgba(23, 50, 65, .4); }
.lblg-sum { margin-bottom: 10px; padding: 20px 22px; border-radius: 16px; background: linear-gradient(145deg, #f3f2ff, #f6fbf9); border: 1px solid #e2e4ff; }
.lblg-sum h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px !important; color: #14252b; font-size: 18px; }
.lblg-sum h2 .fa { color: #c48a00; }
.lblg-sum ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lblg-sum li { display: flex; gap: 10px; color: #263440; font-size: 15px; line-height: 1.65; }
.lblg-sum li .fa { flex: none; margin-top: 4px; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: #0f8a5f; color: #fff; font-size: 10px; }
.lblg-sum p { margin: 12px 0 0 !important; color: #64748b; font-size: 13px; }
.lblg-sec { padding: 24px 0 6px; border-top: 1px solid #eef1f4; scroll-margin-top: 96px; }
.lblg-sum + .lblg-sec { border-top: 0; }
.lblg-sec h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px !important; color: #14252b; font-size: 20px; line-height: 1.4; }
.lblg-n { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 9px; background: #eef0ff; color: #4f46e5; font-size: 14px; font-weight: 700; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; transform: translateY(-2px); }
.lblg-sec p { margin: 0 0 12px !important; color: #3e4f5c; font-size: 16px; line-height: 1.85; }
.lblg-ul { margin: 0 0 14px; padding: 0 0 0 4px; list-style: none; }
.lblg-ul li { position: relative; margin: 0 0 8px; padding-left: 22px; color: #3e4f5c; font-size: 16px; line-height: 1.8; }
.lblg-ul li::before { content: ""; position: absolute; left: 4px; top: .78em; width: 7px; height: 7px; border-radius: 50%; background: #4f46e5; }
.lblg-note { display: flex; gap: 10px; padding: 12px 16px; border-radius: 12px; background: #fff8e6; border: 1px solid #f6e3b0; color: #5b4a12 !important; font-size: 15px !important; line-height: 1.7 !important; }
.lblg-note .fa { flex: none; margin-top: 4px; color: #c48a00; }
.lblg-tw { margin: 4px 0 16px; overflow-x: auto; border: 1px solid #e3e9ee; border-radius: 14px; }
.lblg-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.65; }
.lblg-table thead th { padding: 11px 14px; background: #f6f7fb; color: #334155; font-weight: 700; text-align: left; white-space: nowrap; border-bottom: 1px solid #e3e9ee; }
.lblg-table tbody th, .lblg-table tbody td { padding: 11px 14px; vertical-align: top; text-align: left; border-top: 1px solid #eef1f4; }
.lblg-table tbody tr:first-child th, .lblg-table tbody tr:first-child td { border-top: 0; }
.lblg-table tbody th { width: 32%; color: #14252b; font-weight: 600; }
.lblg-table tbody td { color: #3e4f5c; }
.lblg-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 20px; border-top: 1px solid #eef1f4; }
.lblg-end p { margin: 0 !important; color: #334155; }
.lblg-end a { color: #4f46e5 !important; font-weight: 600; }
.lblg-top { font-size: 14px; text-decoration: none !important; }
@media (max-width: 900px) {
	.lblg-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.lblg-toc { position: static; max-height: none; }
	.lblg-toc ol { max-height: 50vh; }
	.lblg-print { display: none; }
	.lblg-doc { padding: 20px 18px 24px; border-radius: 18px; }
	.lblg-sec h2 { font-size: 18px; }
	.lblg-sec p, .lblg-ul li { font-size: 15px; }
	.lblg-tabs { display: flex; }
	.lblg-tabs a { flex: 1 1 auto; justify-content: center; padding: 0 12px; font-size: 14px; }
	/* ตารางบนจอเล็ก : เป็นการ์ดทีละแถว */
	.lblg-table thead { display: none; }
	.lblg-table, .lblg-table tbody, .lblg-table tr, .lblg-table th, .lblg-table td { display: block; width: auto !important; }
	.lblg-table tbody tr { padding: 10px 14px; border-top: 1px solid #eef1f4; }
	.lblg-table tbody tr:first-child { border-top: 0; }
	.lblg-table tbody th, .lblg-table tbody td { padding: 2px 0; border: 0; }
	.lblg-table tbody td::before { content: attr(data-label) " : "; color: #94a3b8; font-weight: 600; }
}
/* พิมพ์ : เฉพาะเอกสาร */
@media print {
	#lbnav, .lblg-toc, .lblg-tabs, .lbd-crumb, footer, .lblg-top { display: none !important; }
	.lblg-layout { display: block; }
	.lblg-doc { border: 0; box-shadow: none; padding: 0; }
	.lblg-sec { break-inside: avoid-page; }
}

/* ---------- รูปแบบทางการ (2026-11-27) : ตัดไอคอน / สีตกแต่ง , หมายเลขข้อแบบตัวเลขธรรมดา , โทนเทา-ขาว , สีเน้นเฉพาะลิงก์ ---------- */
.lblg-hero .lbd-eyebrow { display: none; }
.lblg-meta { gap: 6px 0; color: #5b6b78; font-size: 14px; }
.lblg-meta span + span::before { content: "·"; margin: 0 10px; color: #a3afba; }
.lblg-tabs { gap: 0; padding: 0; border-radius: 0; background: none; border: 0; border-bottom: 1px solid #d8dfe6; box-shadow: none; }
.lblg-tabs a { height: 44px; padding: 0 2px; margin-right: 28px; border-radius: 0; border-bottom: 2px solid transparent; color: #5b6b78 !important; font-weight: 600; }
.lblg-tabs a:hover { background: none; color: #14252b !important; }
.lblg-tabs a.is-on { background: none; color: #14252b !important; border-bottom-color: #14252b; }
.lblg-toc-box { border-radius: 10px; border-color: #dfe5eb; }
.lblg-toc-box summary { padding: 12px 16px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #5b6b78; }
.lblg-toc li a { border-radius: 6px; padding: 6px 10px; font-size: 14px; }
.lblg-toc li a span { min-width: 24px; }
.lblg-toc li a.is-on { background: #f1f4f7; color: #14252b !important; }
.lblg-toc li a.is-on span { color: #14252b; }
.lblg-doc { padding: 36px 48px 40px; border-radius: 10px; border-color: #dfe5eb; box-shadow: none; }
.lblg-sum { padding: 18px 22px; border-radius: 6px; background: #f7f9fb; border: 1px solid #e1e7ed; border-left: 3px solid #14252b; }
.lblg-sum h2 { margin-bottom: 10px !important; font-size: 16px; letter-spacing: .01em; }
.lblg-sum ul { gap: 6px; padding-left: 20px; list-style: disc; }
.lblg-sum li { display: list-item; color: #263440; font-size: 15px; line-height: 1.7; }
.lblg-sec { padding: 26px 0 6px; border-top-color: #e6ebf0; }
.lblg-sec h2 { gap: 8px; font-size: 19px; font-weight: 700; }
.lblg-n { min-width: 0; height: auto; padding: 0; border-radius: 0; background: none; color: #14252b; font-family: inherit; font-size: inherit; transform: none; }
.lblg-sec p, .lblg-ul li { color: #33424e; }
.lblg-ul { padding-left: 22px; list-style: disc; }
.lblg-ul li { padding-left: 4px; }
.lblg-ul li::before { content: none; }
.lblg-ul li::marker { color: #5b6b78; }
.lblg-note { display: block; padding: 12px 16px; border-radius: 4px; background: #f7f9fb; border: 1px solid #e1e7ed; border-left: 3px solid #8795a1; color: #33424e !important; }
.lblg-tw { border-radius: 6px; border-color: #dfe5eb; }
.lblg-table thead th { background: #f4f6f8; color: #14252b; font-size: 13.5px; letter-spacing: .01em; }
.lblg-end a { color: #3730a3 !important; }
@media (max-width: 900px) { .lblg-doc { padding: 22px 18px 26px; } .lblg-tabs a { flex: 0 0 auto; margin-right: 20px; } }
/* สรุปสาระสำคัญ : เส้นด้านบนสีหลักของธีม (indigo เดียวกับ accent ทั้งเว็บ) แทนเส้นซ้าย */
.lblg-sum { position: relative; border-left: 1px solid #e1e7ed; border-top: 1px solid #e1e7ed; padding-top: 22px; }
.lblg-sum::before { content: ""; position: absolute; top: -1px; left: 28px; right: 28px; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, transparent, #6161ff 25%, #a5a8ff 50%, #6161ff 75%, transparent); pointer-events: none; }
/* 3 แท็บ (ข้อกำหนด / นโยบาย / การลบข้อมูล) : จอเล็กเรียงแถวเดียว เลื่อนซ้ายขวาได้ ไม่ตัดขึ้นบรรทัดใหม่ */
@media (max-width: 900px) {
	.lblg-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.lblg-tabs::-webkit-scrollbar { display: none; }
	.lblg-tabs a { white-space: nowrap; }
	.lblg-tabs a:last-child { margin-right: 0; }
}
