/* หน้าเนื้อหา (mock-up รอพัฒนา) : บทความ /th/articles/ (lbar-) , ลงโฆษณากับเรา /th/advertise/ (lbad-) ; ใช้ร่วมกับ theme-light.css */

:where(.lbar, .lbad) ul, :where(.lbar, .lbad) ol { margin: 0; padding: 0; }
.lbar :focus-visible, .lbad :focus-visible { outline: 3px solid #2385e9; outline-offset: 3px; }
.lbar-mock { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: #fff4d6; color: #7a4d00; font-size: 12.5px; font-weight: 600; vertical-align: 2px; }
.lbar-cat { display: inline-block; padding: 3px 11px; border-radius: 999px; background: #eef0ff; color: #4338ca; font-size: 13px; font-weight: 600; }

/* หมวด */
.lbar-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.lbar-cats a { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid #d5dfe4; color: #14252b !important; font-size: 15px; }
.lbar-cats a:hover { border-color: #6161ff; }
.lbar-cats a[aria-current="page"] { background: #14252b; border-color: #14252b; color: #fff !important; }

/* บทความเด่น */
.lbar-feature { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin-bottom: 30px; overflow: hidden; border-radius: 26px; background: #fff; color: #14252b !important; box-shadow: 0 18px 40px rgba(23, 50, 65, .08); transition: transform .2s, box-shadow .2s; }
.lbar-feature:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -16px rgba(23, 50, 65, .25); }
.lbar-fimg { display: block; min-height: 340px; overflow: hidden; }
.lbar-fimg img, .lbar-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.lbar-feature:hover .lbar-fimg img, .lbar-card:hover .lbar-img img { transform: scale(1.05); }
.lbar-fbody { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 34px 36px; }
.lbar-fbody b { font-family: "Prompt", "IBM Plex Sans Thai Looped", sans-serif !important; font-size: clamp(24px, 2.4vw, 32px); font-weight: 500; line-height: 1.35; }
.lbar-fbody small { color: #455c66; font-size: 16px; line-height: 1.7; }
.lbar-author { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px !important; color: #455c66; font-size: 14px; }
.lbar-ava { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #6161ff, #9a9aff); color: #fff; font-family: "Prompt", sans-serif !important; font-size: 15px; flex: none; }
.lbar-read { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding: 10px 22px; border-radius: 999px; background: #000; color: #fff; font-family: "Prompt", sans-serif !important; font-size: 15px; }
.lbar-read svg, .lbad svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* การ์ดบทความ */
.lbar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lbar-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: #fff; color: #14252b !important; box-shadow: 0 2px 4px rgba(23, 50, 65, .05), 0 12px 26px -12px rgba(23, 50, 65, .18); transition: transform .2s, box-shadow .2s; }
.lbar-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -16px rgba(23, 50, 65, .28); }
.lbar-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #e8eef2; }
.lbar-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; flex: 1; padding: 18px 20px 20px; }
.lbar-body b { font-family: "Prompt", "IBM Plex Sans Thai Looped", sans-serif !important; font-size: 19px; font-weight: 500; line-height: 1.4; }
.lbar-body small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #455c66; font-size: 14.5px; line-height: 1.6; }
.lbar-meta { margin-top: auto; padding-top: 6px; color: #6b7f89; font-size: 13.5px; }
.lbar-empty { text-align: center; color: #455c66; }

/* รับข่าว / ติดต่อ */
.lbar-news { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding: 26px 30px; border-radius: 24px; background: linear-gradient(120deg, #eef0ff, #f6fbfe); }
.lbar-news b { font-size: 19px; color: #14252b; }
.lbar-news p { margin: 4px 0 0 !important; color: #455c66; }
.lbar-news form { display: flex; gap: 10px; }
.lbar .lbar-news input { height: 48px; min-width: 260px; margin: 0; padding: 0 16px; border-radius: 999px; border: 1px solid #d5dfe4; background: #fff; }
.lbar-news .lbd-btn[disabled] { opacity: .6; }

/* อ่านบทความ */
.lbar-narrow { max-width: 860px; }
.lbar-dhero h1 { margin-top: 12px !important; font-size: clamp(28px, 3.2vw, 42px) !important; line-height: 1.35; }
.lbar-author-lg b { display: block; color: #14252b; font-size: 15px; }
.lbar-author-lg small { display: block; color: #6b7f89; font-size: 13.5px; }
.lbar-author-lg .lbar-ava { width: 44px; height: 44px; font-size: 18px; }
.lbar-cover { margin: -10px auto 28px; max-width: 1120px; }
.lbar-cover img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 26px; box-shadow: 0 24px 50px -20px rgba(23, 50, 65, .35); }
.lbar-cover figcaption { margin-top: 8px; color: #6b7f89; font-size: 13px; text-align: center; }
.lbar-layout { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 40px; justify-content: center; align-items: start; }
.lbar-toc { position: sticky; top: calc(var(--lbnav-h, 72px) + 20px); padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 8px 22px rgba(23, 50, 65, .06); }
.lbar-toc b { display: block; margin-bottom: 8px; color: #14252b; }
.lbar-toc ol { padding-left: 18px !important; }
.lbar-toc li { margin: 6px 0; font-size: 14.5px; }
.lbar-toc a { color: #304955 !important; }
.lbar-toc a:hover { color: #4f46e5 !important; }
.lbar-share { display: flex; align-items: center; gap: 8px; margin: 16px 0 0 !important; padding-top: 14px; border-top: 1px solid #e6edf0; color: #6b7f89; font-size: 13.5px; }
.lbar-share button { width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid #d5dfe4; background: #fff; color: #4f46e5; cursor: not-allowed; }
.lbar-content { color: #304955; font-size: 17px; line-height: 1.9; }
.lbar-content .lbar-lead { margin: 0 0 18px !important; color: #14252b; font-size: 19px; line-height: 1.8; }
html body .lbar-content h2 { margin: 30px 0 10px !important; color: #14252b; font-family: "Prompt", "IBM Plex Sans Thai Looped", sans-serif !important; font-size: 24px; font-weight: 500; scroll-margin-top: calc(var(--lbnav-h, 72px) + 20px); }
.lbar-content p { margin: 0 0 14px !important; }
.lbar-content ul, .lbar-content ol { margin: 0 0 16px !important; padding-left: 24px !important; }
.lbar-content li { margin: 6px 0; }
/* เคล็ดลับ : แถบไล่สีส้มด้านบน (มาตรฐานธีม) ไม่ใช้เส้นขอบซ้าย */
.lbar-tip { position: relative; display: flex; gap: 14px; margin: 20px 0; padding: 20px 20px 18px; border-radius: 16px; background: #fff8e6; }
.lbar-tip::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, transparent, #ff8a00 25%, #ffb347 50%, #ff8a00 75%, transparent); pointer-events: none; }
.lbar-tip .fa { color: #e08a00; font-size: 22px; margin-top: 4px; }
.lbar-tip p { margin: 0 !important; }
.lbar-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; padding: 22px 24px; border-radius: 20px; background: linear-gradient(120deg, #eef0ff, #f6fbfe); }
.lbar-cta b { flex: 1 1 100%; color: #14252b; font-size: 18px; }
html body .lbar-rel-h { margin: 56px 0 20px !important; text-align: center; color: #14252b; font-family: "Prompt", "IBM Plex Sans Thai Looped", sans-serif !important; font-size: clamp(26px, 3vw, 40px); font-weight: 300; }

/* ลงโฆษณา */
.lbad-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.lbad-kpi { display: grid; gap: 12px; list-style: none; }
.lbad-kpi li { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 18px; background: #fff; box-shadow: 0 10px 26px rgba(23, 50, 65, .07); }
.lbad-kpi b { min-width: 70px; color: #4f46e5; font-family: "Prompt", sans-serif !important; font-size: 30px; font-weight: 500; }
.lbad-kpi span { color: #304955; }
html body .lbad-h { margin: 0 0 22px !important; color: #14252b; font-family: "Prompt", "IBM Plex Sans Thai Looped", sans-serif !important; font-size: 28px; font-weight: 400; }
.lbad-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lbad-card { overflow: hidden; border-radius: 24px; background: #fff; box-shadow: 0 2px 4px rgba(23, 50, 65, .05), 0 14px 30px -12px rgba(23, 50, 65, .2); }
.lbad-img { display: block; height: 180px; overflow: hidden; }
.lbad-img img { width: 100%; height: 100%; object-fit: cover; }
.lbad-body { padding: 20px 22px 24px; }
html body .lbad-body h3 { margin: 0 0 6px !important; color: #14252b; font-family: "Prompt", sans-serif !important; font-size: 21px; font-weight: 500; }
.lbad-body p { margin: 0 0 12px !important; color: #455c66; font-size: 15px; line-height: 1.65; }
.lbad-body ul { list-style: none; display: grid; gap: 6px; margin-bottom: 16px !important; }
.lbad-body li { color: #304955; font-size: 14.5px; }
.lbad-body li .fa { color: #6161ff; margin-right: 6px; }
.lbad-soon { display: inline-block; padding: 4px 14px; border-radius: 999px; background: #fff4d6; color: #7a4d00; font-size: 13.5px; font-weight: 600; }

@media (max-width: 1000px) {
	.lbar-grid, .lbad-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lbar-feature { grid-template-columns: 1fr; }
	.lbar-fimg { min-height: 240px; }
	.lbar-layout { grid-template-columns: 1fr; }
	.lbar-toc { position: static; }
	.lbad-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.lbar-grid, .lbad-grid { grid-template-columns: 1fr; }
	.lbar-fbody { padding: 22px; }
	.lbar-news { flex-direction: column; align-items: stretch; }
	.lbar-news form { flex-direction: column; }
	.lbar .lbar-news input { min-width: 0; }
}

/* ===== ให้ AI ลงประกาศแทนคุณ /th/mcp/ (th/inc/mcp-guide.php) v2 2026-11-29 : อ่านง่ายสำหรับคนทั่วไป ; prefix lbmg- ===== */
.lbmg-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.lbmg-hero h1 { font-size: clamp(32px, 3.6vw, 48px); }
.lbmg-badge { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 10px !important; padding: 5px 12px; border-radius: 999px; background: #efeffe; color: #4b4bd6; font-size: 13.5px; font-weight: 700; }
.lbmg-ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0 !important; padding: 0 !important; list-style: none; }
.lbmg-ticks li { display: flex; align-items: center; gap: 7px; margin: 0; color: #455c66; font-size: 15px; font-weight: 500; }
.lbmg-ticks .fa { color: #0f8a5f; }
.lbmg-chat { display: grid; gap: 10px; padding: 20px; border: 1px solid #e3e6f0; border-radius: 22px; background: rgba(255, 255, 255, .85); box-shadow: 0 24px 48px -28px rgba(30, 32, 80, .35); }
.lbmg-chat p { margin: 0 !important; padding: 12px 15px; border-radius: 16px; font-size: 15px; line-height: 1.6; }
.lbmg-chat .is-user { justify-self: end; max-width: 86%; background: #6161ff; color: #fff; border-bottom-right-radius: 5px; }
.lbmg-chat .is-ai { justify-self: start; max-width: 86%; background: #f3f4fb; color: #14252b; border-bottom-left-radius: 5px; }
.lbmg-chat .is-ai .fa { color: #0f8a5f; margin-right: 6px; }
.lbmg-head { max-width: 720px; margin: 0 auto 26px; text-align: center; }
.lbmg-head h2 { margin: 0 0 6px !important; font-size: clamp(24px, 2.4vw, 30px) !important; color: #14252b; }
.lbmg-head p { margin: 0 !important; color: #6b7a86; font-size: 16px; }
.lbmg-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0 !important; padding: 0 !important; list-style: none; }
.lbmg-step { display: flex; flex-direction: column; margin: 0; border: 1px solid #e3e6f0; border-radius: 22px; background: #fff; overflow: hidden; }
.lbmg-step figure { margin: 0; aspect-ratio: 4 / 3; background: #f3f3ff; border-bottom: 1px solid #eceef5; }
.lbmg-step figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lbmg-step-txt { display: flex; gap: 14px; padding: 20px 22px 22px; }
.lbmg-step-n { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #6161ff; color: #fff; font-weight: 700; font-size: 16px; }
.lbmg-step h3 { margin: 4px 0 6px !important; font-size: 19px !important; color: #14252b; }
.lbmg-step p { margin: 0 !important; color: #455c66; font-size: 15px; line-height: 1.7; }
.lbmg-center { margin-top: 26px; text-align: center; }
.lbmg-trust-sec, .lbmg-faq-sec { padding-top: 8px; }
.lbmg-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lbmg-trust > div { padding: 22px; border: 1px solid #e3e6f0; border-radius: 20px; background: #fff; text-align: center; }
.lbmg-trust b { display: block; margin: 12px 0 6px; color: #14252b; font-size: 17px; }
.lbmg-trust p { margin: 0 !important; color: #455c66; font-size: 15px; line-height: 1.65; }
.lbmg-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; font-size: 22px; }
.lbmg-ico.is-a { background: #eef0ff; color: #4f46e5; } .lbmg-ico.is-b { background: #e6f8f3; color: #0f8a5f; } .lbmg-ico.is-c { background: #fff4e5; color: #c2410c; }
.lbmg-narrow { max-width: 820px; }
.lbmg-faq { display: grid; gap: 10px; }
.lbmg-faq details { border: 1px solid #e3e6f0; border-radius: 16px; background: #fff; }
.lbmg-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; color: #14252b; font-size: 16.5px; font-weight: 600; }
.lbmg-faq summary::-webkit-details-marker { display: none; }
.lbmg-faq summary::after { content: "\f107"; font-family: FontAwesome; color: #6b7a86; transition: transform .15s; }
.lbmg-faq details[open] summary::after { transform: rotate(180deg); }
.lbmg-faq details p { margin: 0 !important; padding: 0 20px 18px; color: #455c66; font-size: 15.5px; line-height: 1.75; }
.lbmg-tech { margin-top: 18px; border: 1px dashed #d0d5dd; border-radius: 16px; background: #fafbfc; }
.lbmg-tech > summary { padding: 14px 20px; cursor: pointer; list-style: none; color: #455c66; font-size: 15px; font-weight: 600; }
.lbmg-tech > summary::-webkit-details-marker { display: none; }
.lbmg-tech > summary .fa { color: #6161ff; margin-right: 6px; }
.lbmg-tech > p { margin: 0 20px 12px !important; color: #455c66; font-size: 14.5px; line-height: 1.7; }
.lbmg-tech code { padding: 1px 6px; border-radius: 6px; background: #f3f4fb; color: #3f3fb8; font-size: 13px; word-break: break-all; }
.lbmg-tech .lbmcp-tabs { padding: 0 20px 18px; }
.lbmg-end { padding-top: 8px; }
.lbmg-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 28px 32px; border-radius: 24px; background: linear-gradient(120deg, #eef0ff, #f5fbff); }
.lbmg-cta b { display: block; color: #14252b; font-size: 21px; }
.lbmg-cta p { margin: 4px 0 0 !important; color: #455c66; font-size: 15.5px; }
.lbmg-cta .lbd-btn { flex: none; margin: 0 !important; }
@media (max-width: 1000px) { .lbmg-steps { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto !important; } }
@media (max-width: 900px) { .lbmg-hero { grid-template-columns: 1fr; gap: 26px; } .lbmg-trust { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .lbmg-cta { flex-direction: column; align-items: stretch; text-align: center; padding: 24px 20px; } .lbmg-cta .lbd-btn { justify-content: center; } .lbmg-step-txt { padding: 18px; } }
