/* หน้าบทความ — ใช้โทเคนสีจาก site.css (รองรับโหมดมืดอัตโนมัติ) */
.ar-main { padding-top: 44px; min-height: 70vh; }
.ar-hero { text-align: center; padding: clamp(40px, 7vw, 80px) 0 clamp(24px, 4vw, 40px); }
.ar-hero h1 { font-size: clamp(34px, 6vw, 60px); }
.ar-search { margin-bottom: 22px; }
#arcats { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }

.ar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; padding-bottom: clamp(56px, 9vw, 100px); }
.ar-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 22px; background: var(--bg-alt); color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease); animation: ar-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.ar-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, .09); }
.ar-card h2, .ar-card h3 { font-size: 21px; line-height: 1.35; letter-spacing: -.01em; }
.ar-card p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.ar-cat { align-self: flex-start; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--blue); padding: 2px 11px; border-radius: 99px; } /* หมวดหมู่ = น้ำเงินทึบ ตัวอักษรขาว */
.ar-refs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ar-refs i { font-style: normal; font-size: 12.5px; color: var(--ink-2); padding: 1px 9px; border-radius: 99px; box-shadow: 0 0 0 1px var(--line) inset; }
.ar-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0 0 28px; }
.ar-facts div { padding: 18px 20px; border-radius: 20px; background: var(--bg-alt); }
.ar-facts b { display: block; font-size: 17px; line-height: 1.4; margin-bottom: 4px; }
.ar-facts span { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.ar-meta { margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--ink-3); }
@keyframes ar-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.ar-skel { display: grid; gap: 14px; padding: 80px 0; }
.ar-skel i { display: block; height: 86px; border-radius: 18px; background: linear-gradient(100deg, var(--bg-alt) 30%, color-mix(in srgb, var(--bg-alt) 60%, var(--bg)) 50%, var(--bg-alt) 70%); background-size: 200% 100%; animation: ar-shim 1.3s linear infinite; }
@keyframes ar-shim { to { background-position: -200% 0; } }

/* หน้าอ่าน (เสิร์ฟจาก api/post.js ด้วยมาร์กอัปใน shared/post-seo.js — breadcrumb .bc มาจากแม่แบบ) */
.ar-read { max-width: 1080px; }
.ar-main .bc { margin-top: 14px; }
.ar-cover { margin: 0 0 28px; }
.ar-cover img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 22px; background: var(--bg-alt); }
.ar-crumb { margin: 8px 0 0; font-size: 14.5px; }
.ar-crumb a { color: var(--link); }
.ar-head { padding: 22px 0 28px; max-width: 760px; }
.ar-head h1 { font-size: clamp(28px, 4.6vw, 46px); line-height: 1.34; margin: 12px 0 10px; }
.ar-sub { margin: 0; font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); }
.ar-head .ar-meta { margin: 14px 0 0; padding: 0; }
.ar-review { margin: 12px 0 0; }
/* ป้ายสถานะการตรวจ: ร่าง = เหลือง · ตรวจแล้ว = เขียว · ตรวจแล้วโดยนักกฎหมาย = ฟ้า */
.ar-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ar-rv { --rv: #a15c00; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; line-height: 1.5; padding: 2px 10px 2px 8px; border-radius: 99px; color: #3a2400; background: #ffb020; box-shadow: none; } /* ร่าง = เหลืองอำพันสด ตัวอักษรเข้ม */
.ar-rv svg { flex: none; }
.ar-rv.full { font-size: 14px; padding: 4px 14px 4px 11px; gap: 7px; }
.ar-rv.checked { --rv: var(--ok); color: #fff; background: var(--ok); box-shadow: none; } /* ตรวจแล้ว = เขียวทึบ ตัวอักษรขาว */
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .ar-rv.checked { color: #04210f; } }
:root[data-theme=dark] .ar-rv.checked { color: #04210f; }
.ar-rv.lawyer { --rv: var(--link); color: #fff; background: var(--blue); } /* ตรวจแล้วโดยนักกฎหมาย = น้ำเงินทึบ */
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .ar-rv.draft { --rv: #ffb340; } }
:root[data-theme=dark] .ar-rv.draft { --rv: #ffb340; }

.ar-cols { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 44px; align-items: start; }
.ar-toc { position: sticky; top: 64px; font-size: 14px; max-height: calc(100vh - 84px); overflow: auto; }
.ar-toc summary { cursor: pointer; font-weight: 600; margin-bottom: 8px; list-style: none; }
.ar-toc summary::-webkit-details-marker { display: none; }
@media (max-width: 900px) { /* สารบัญพับได้บนมือถือ — ใส่ลูกศรให้รู้ว่ากดเปิดได้ */
  .ar-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .ar-toc summary::after { content: ''; flex: none; width: 9px; height: 9px; border: solid var(--ink-3); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s var(--ease); }
  .ar-toc details[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
}
.ar-toc ol { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.ar-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); line-height: 1.4; transition: color .2s, border-color .2s; }
.ar-toc a:hover { color: var(--ink); }
.ar-toc a[aria-current=true] { color: var(--ink); border-left-color: var(--blue); font-weight: 600; }

.ar-body { max-width: 720px; font-size: 18px; line-height: 1.85; }
.ar-body p { margin: 0 0 1.1em; text-wrap: pretty; }
.ar-summary { font-size: 20px; color: var(--ink-2); }
.ar-key { background: var(--bg-alt); border-radius: 20px; padding: 20px 24px; margin: 0 0 8px; }
.ar-key ul { margin: 8px 0 0; padding-left: 1.2em; }
.ar-key li { margin-bottom: 6px; }
.ar-sec { padding-top: 36px; scroll-margin-top: 70px; }
.ar-sec h2 { font-size: clamp(23px, 3vw, 30px); margin-bottom: 14px; }
.ar-sec ul, .ar-sec ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.ar-sec li { margin-bottom: 6px; }

.ar-table { overflow-x: auto; margin: 0 0 1.2em; border-radius: 14px; box-shadow: 0 0 0 1px var(--line) inset; }
.ar-table table { border-collapse: collapse; width: 100%; font-size: 15.5px; line-height: 1.6; min-width: 480px; }
.ar-table th, .ar-table td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.ar-table th { background: var(--bg-alt); font-weight: 600; white-space: nowrap; }
.ar-table tr:last-child td { border-bottom: 0; }

.ar-callout { border-radius: 16px; padding: 14px 18px; margin: 0 0 1.2em; font-size: 16.5px; line-height: 1.75; border-left: 4px solid var(--blue); background: color-mix(in srgb, var(--blue) 8%, transparent); }
.ar-callout p { margin: 4px 0 0; }
.ar-callout.warn { border-color: #ff9f0a; background: color-mix(in srgb, #ff9f0a 10%, transparent); }
.ar-callout.law { border-color: #f2541d; background: color-mix(in srgb, #f2541d 9%, transparent); }

.ar-steps { list-style: none; padding: 0 !important; counter-reset: st; }
.ar-steps li { position: relative; padding: 0 0 0 52px; margin-bottom: 20px; counter-increment: st; }
.ar-steps li::before { content: counter(st); position: absolute; left: 0; top: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 600; display: grid; place-items: center; font-size: 15px; }
.ar-steps p { margin: 2px 0 0; color: var(--ink-2); }
.ar-check { list-style: none; padding: 0 !important; }
.ar-check label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
.ar-check input { width: 20px; height: 20px; margin-top: 7px; flex: none; accent-color: var(--blue); }
.ar-check input:checked + span { color: var(--ink-3); text-decoration: line-through; }

.ar-rel, .ar-prec { display: grid; gap: 12px; }
.ar-rel-card, .ar-prec article { background: var(--bg-alt); border-radius: 18px; padding: 16px 20px; font-size: 16px; line-height: 1.65; }
.ar-rel-card p, .ar-prec p { margin: 4px 0 0; }
.ar-rel-card p span { color: var(--ink-3); font-size: 14px; margin-right: 6px; }
.ar-rel-name { color: var(--ink-2); }
.ar-rel-card .btn-pill { margin-top: 10px; }
.ar-prec-topic { color: var(--ink-2); }
.ar-src-link { font-size: 14px; color: var(--link); }
.ar-flag { font-size: 14px; color: var(--ink-2); }
.ar-flag.warn { color: #a15c00; }
.ar-flag.inline { display: inline-block; padding: 0 8px; border-radius: 99px; background: color-mix(in srgb, #ff9f0a 16%, transparent); font-size: 12.5px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .ar-flag.warn { color: #ffb340; } }

.ar-faq { border-bottom: 1px solid var(--line); }
.ar-faq summary { cursor: pointer; padding: 14px 28px 14px 0; font-weight: 600; position: relative; list-style: none; line-height: 1.5; }
.ar-faq summary::-webkit-details-marker { display: none; }
.ar-faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font-size: 24px; font-weight: 300; color: var(--ink-3); transition: transform .25s var(--ease); }
.ar-faq[open] summary::after { transform: rotate(45deg); }
.ar-faq p { margin: 0 0 16px; color: var(--ink-2); }
.ar-sources { font-size: 15px; word-break: break-word; }
.ar-sources a { color: var(--link); }

.ar-disclaimer { margin-top: 44px; padding: 18px 22px; border-radius: 18px; box-shadow: 0 0 0 1px var(--line) inset; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.ar-disclaimer p { margin: 4px 0 0; }
.ar-cta { display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 24px; padding: 24px 28px; border-radius: 24px; background: #000; color: #f5f5f7; }
.ar-cta p { margin: 4px 0 0; color: #a1a1a6; font-size: 15px; line-height: 1.6; max-width: 32em; }
.ar-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0 72px; }
.ar-pn a { display: block; padding: 14px 18px; border-radius: 16px; background: var(--bg-alt); font-size: 15px; line-height: 1.5; font-weight: 500; }
.ar-pn a small { display: block; color: var(--ink-3); font-weight: 400; font-size: 12.5px; }
.ar-pn a.r { text-align: right; }
.ar-empty { text-align: center; padding: 120px 0; }
.ar-empty h1 { font-size: 32px; }
.ar-empty p { color: var(--ink-2); }

@media (max-width: 900px) {
  .ar-cols { grid-template-columns: 1fr; gap: 18px; }
  .ar-toc { position: static; max-height: none; background: var(--bg-alt); border-radius: 16px; padding: 14px 18px; }
  .ar-body { font-size: 17px; }
  .ar-pn { grid-template-columns: 1fr; }
}
/* ---------- หน้าแรก: คดีออนไลน์ (ตัวช่วยเลือกสถานการณ์ / เส้นทาง / CTA) ---------- */
#articles .ar-facts { margin-bottom: 40px; }
#articles .ar-grid { padding-bottom: 0; margin-bottom: 36px; }
.pk-h { font-size: clamp(21px, 2.6vw, 26px); font-weight: 700; letter-spacing: -.015em; }
.pk-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 52px 0 18px; }
.pk-row .link-arrow { font-size: 16px; }

.pk { margin: 0 0 56px; }
.pk-head { text-align: center; margin-bottom: 22px; }
.pk-head h3 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 700; }
.pk-head p { margin: 8px auto 0; color: var(--ink-2); font-size: 16px; max-width: 36em; }
.pk-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pk-opt { position: relative; display: grid; gap: 3px; align-content: start; text-align: left; border: 0; cursor: pointer; padding: 16px 18px 16px 62px; border-radius: 20px; background: var(--bg-alt); color: var(--ink); min-height: 92px;
  box-shadow: 0 0 0 1.5px transparent inset; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.pk-opt svg { position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; padding: 6px; border-radius: 10px; color: var(--blue); background: color-mix(in srgb, var(--blue) 11%, transparent); transition: background .25s, color .25s, transform .35s var(--ease); }
.pk-opt b { font-size: 16px; line-height: 1.4; font-weight: 600; }
.pk-opt span { font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.pk-opt:hover { transform: translateY(-2px); }
.pk-opt:hover svg { transform: scale(1.06) rotate(-4deg); }
.pk-opt:active { transform: scale(.985); }
.pk-opt:focus-visible { outline-offset: 3px; border-radius: 20px; }
.pk-opt[aria-pressed=true] { background: var(--card); box-shadow: 0 0 0 2px var(--blue) inset, 0 10px 28px rgba(0, 0, 0, .08); }
.pk-opt[aria-pressed=true] svg { background: var(--blue); color: #fff; }

.pk-out { margin-top: 16px; scroll-margin-top: 70px; }
.pk-card { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 26px; padding: 26px 28px; border-radius: 26px; background: var(--bg-alt); animation: pk-in .45s var(--ease) both; }
.pk-main h4 { margin: 0 0 12px; font-size: 19px; line-height: 1.4; letter-spacing: -.01em; }
.pk-first { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: pk; display: grid; gap: 10px; }
.pk-first li { position: relative; counter-increment: pk; padding-left: 36px; font-size: 15.5px; line-height: 1.65; animation: pk-in .5s var(--ease) both; animation-delay: calc(var(--n, 0) * 70ms + 80ms); }
.pk-first li:nth-child(2) { --n: 1; } .pk-first li:nth-child(3) { --n: 2; }
.pk-first li::before { content: counter(pk); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.pk-paths { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pk-paths span { font-size: 13px; color: var(--ink-3); margin-right: 4px; }
.pk-paths i { font-style: normal; font-size: 13px; padding: 2px 11px; border-radius: 99px; background: var(--card); box-shadow: 0 0 0 1px var(--line) inset; color: var(--ink-2); }
.pk-side { display: flex; flex-direction: column; gap: 10px; align-items: stretch; padding: 18px 20px; border-radius: 18px; background: var(--card); align-self: start; }
.pk-time { margin: 0 0 4px; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.pk-time b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.pk-side .btn-pill { text-align: center; text-decoration: none; }
.pk-note { margin: 12px 4px 0; }
@keyframes pk-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.rm-wrap { margin: 0 0 4px; }
.rm-wrap .pk-h { text-align: center; margin-bottom: 22px; }
.rm { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; counter-reset: rm; }
.rm::before { content: ''; position: absolute; left: 12.5%; right: 12.5%; top: 20px; height: 2px; background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3)); opacity: .35; transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease) .15s; }
.rm-wrap.in .rm::before { transform: scaleX(1); }
.rm li { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 6px; opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i) * 140ms + 200ms); }
.rm-wrap.in .rm li { opacity: 1; transform: none; }
.rm-n { position: relative; z-index: 1; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); box-shadow: 0 0 0 6px var(--bg); margin-bottom: 8px; }
.rm li:nth-child(3) .rm-n { background: linear-gradient(135deg, var(--g2), var(--g3)); }
.rm li:nth-child(4) .rm-n { background: linear-gradient(135deg, var(--g3), #ff6a3d); }
.rm b { font-size: 17px; line-height: 1.4; }
.rm p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); max-width: 24ch; }
.rm a { font-size: 13.5px; margin-top: 2px; } .rm a::after { content: ' ›'; }

.hcta { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-top: 8px; padding: clamp(24px, 4vw, 36px) clamp(22px, 4vw, 40px); border-radius: 28px; color: #f5f5f7;
  background: radial-gradient(120% 140% at 0% 0%, rgba(242, 107, 29, .38), transparent 55%), radial-gradient(110% 130% at 100% 100%, rgba(224, 66, 139, .30), transparent 55%), #111113; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.hcta h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: #fff; }
.hcta p { margin: 8px 0 0; max-width: 38em; color: #b4b4b9; font-size: 15px; line-height: 1.7; }
.hcta .btn-pill { flex: none; text-decoration: none; }

@media (max-width: 860px) {
  .pk-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pk-card { grid-template-columns: 1fr; padding: 22px 20px; }
  .rm { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .rm::before { display: none; }
}
@media (max-width: 520px) {
  .pk-opts { gap: 10px; }
  .pk-opt { padding: 14px 14px 14px 14px; min-height: 0; }
  .pk-opt svg { position: static; margin-bottom: 6px; }
  .rm { grid-template-columns: 1fr; text-align: left; gap: 22px; }
  .rm li { flex-direction: row; flex-wrap: wrap; text-align: left; align-items: flex-start; column-gap: 14px; padding: 0; display: grid; grid-template-columns: 42px 1fr; }
  .rm-n { grid-row: 1 / span 4; margin: 0; }
  .rm p { max-width: none; }
  .hcta .btn-pill { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ar-card, .ar-skel i, .pk-card, .pk-first li { animation: none; } .ar-card { transition: none; }
  .pk-opt, .pk-opt svg { transition: none; } .pk-opt:hover, .pk-opt:hover svg { transform: none; }
  .rm::before { transform: none; transition: none; } .rm li { opacity: 1; transform: none; transition: none; }
}
@media print { .nav, .foot, .ar-toc, .ar-cta, .ar-pn, .ar-crumb { display: none !important; } .ar-cols { display: block; } }

.ar-main > .wrap { animation: ar-swap .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ar-swap { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ar-main > .wrap { animation: none; } }

/* ==========================================================================
   มือถือ (portrait) — บทความ / ตัวช่วยเลือกสถานการณ์ / หน้านโยบาย
   ========================================================================== */
@media (max-width: 900px) {
  /* คอลัมน์เดียวต้องเป็น minmax(0,1fr) ไม่งั้นตาราง (min-width) ดันทั้งหน้าให้กว้างเกินจอ */
  .ar-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (hover: none) {
  .ar-card:hover, .pk-opt:hover, .pk-opt:hover svg { transform: none; box-shadow: none; }
  .pk-opt[aria-pressed=true], .pk-opt[aria-pressed=true]:hover { box-shadow: 0 0 0 2px var(--blue) inset, 0 10px 28px rgba(0, 0, 0, .08); }
}
@media (max-width: 760px) {
  .ar-main { padding-top: 12px; }
  .ar-hero { padding: 28px 0 18px; }
  .ar-hero h1 { font-size: clamp(30px, 8.8vw, 40px); }
  .ar-search { margin-bottom: 16px; }
  #arcats { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin: 0 calc(var(--gut, 18px) * -1) 16px; padding: 2px var(--gut, 18px) 6px; scroll-padding: 0 var(--gut, 18px); }
  #arcats::-webkit-scrollbar { display: none; }
  #arcats > * { flex: none; }
  .ar-grid { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; padding-bottom: 56px; }
  .ar-card { padding: 20px 18px; border-radius: 20px; }
  .ar-card h2, .ar-card h3 { font-size: 20px; }
  .ar-cat { font-size: 13px; }
  .ar-refs i { font-size: 13px; }
  .ar-meta { font-size: 13.5px; }
  .ar-facts { gap: 10px; }
  .ar-facts div { padding: 16px 18px; border-radius: 18px; }

  /* ตัวช่วยเลือกสถานการณ์ / เส้นทาง (หน้าแรก) */
  .pk { margin-bottom: 40px; }
  .pk-head p { font-size: 15.5px; }
  .pk-opt { min-height: 64px; border-radius: 18px; }
  .pk-opt b { font-size: 16px; text-wrap: balance; }
  .pk-opt span { font-size: 13.5px; }
  .pk-card { padding: 20px 16px; border-radius: 22px; gap: 18px; }
  .pk-first li { font-size: 16px; }
  .pk-paths span, .pk-paths i { font-size: 13.5px; }
  .pk-side { padding: 16px; }
  .pk-side .btn-pill { min-height: 48px; }
  .pk-time, .pk-time b { font-size: 14.5px; }
  .pk-row { margin-top: 40px; }
  .rm a { font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }
  .rm p { font-size: 15px; }
  .hcta { padding: 24px 20px; border-radius: 24px; }
  .hcta p { font-size: 15.5px; }
  .hcta .btn-pill { width: 100%; }

  /* หน้าอ่านบทความ */
  .ar-crumb { margin-top: 4px; }
  .ar-crumb a { display: inline-flex; align-items: center; min-height: 44px; }
  .ar-head { padding: 8px 0 20px; }
  .ar-head h1 { font-size: clamp(26px, 7.6vw, 34px); }
  .ar-sub { font-size: 17px; }
  .ar-toc { padding: 4px 16px; }
  .ar-toc summary { display: flex; align-items: center; min-height: 48px; margin: 0; }
  .ar-toc a { padding: 11px 0 11px 14px; font-size: 15px; }
  .ar-body { font-size: 17px; line-height: 1.8; overflow-wrap: break-word; }
  .ar-summary { font-size: 18px; }
  .ar-key { padding: 16px 18px; border-radius: 18px; }
  .ar-sec { padding-top: 28px; scroll-margin-top: 72px; }
  .ar-callout { font-size: 16px; padding: 14px 16px; }
  .ar-steps li { padding-left: 46px; }
  .ar-check label { min-height: 44px; align-items: center; }
  .ar-check input { width: 24px; height: 24px; margin-top: 0; }
  .ar-rel-card, .ar-prec article { padding: 16px; }
  .ar-rel-card .btn-pill { width: 100%; }
  .ar-faq summary { min-height: 52px; display: flex; align-items: center; padding: 10px 36px 10px 0; }
  .ar-faq summary::after { top: 50%; margin-top: -16px; }
  .ar-sources { font-size: 15px; }
  .ar-disclaimer { padding: 16px 18px; font-size: 15px; }
  .ar-cta { padding: 22px 20px; border-radius: 22px; gap: 14px; }
  .ar-cta .btn-pill { width: 100%; }
  .ar-pn { margin: 24px 0 56px; }
  .ar-pn a { padding: 16px 18px; min-height: 64px; }
  .ar-pn a small { font-size: 13px; }

  /* ตารางเลื่อนในกล่องของตัวเอง + เงาบอกว่ายังเลื่อนต่อได้ */
  .ar-table { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
    background: linear-gradient(90deg, var(--bg) 30%, transparent) left center / 28px 100% no-repeat local,
                linear-gradient(270deg, var(--bg) 30%, transparent) right center / 28px 100% no-repeat local,
                radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, .16), transparent) left center / 10px 100% no-repeat scroll,
                radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, .16), transparent) right center / 10px 100% no-repeat scroll; }
  .ar-table table { font-size: 15px; }
  /* ตารางของหน้านโยบาย (2 คอลัมน์) พอดีจอได้ ไม่ต้องเลื่อน */
  .ar-table.pv-table table { min-width: 0; }
  .ar-table.pv-table td:first-child { white-space: normal; min-width: 7em; }
  .ar-table.pv-table th { white-space: normal; }
  .pv-head { padding-top: 12px; }
  .pv-body h2 { margin-top: 32px; }
}
@media (max-width: 400px) { .pk-opts { gap: 8px; } .pk-opt { padding: 12px; } }

/* ตารางในบทความ: ให้แต่ละคอลัมน์กว้างพออ่านได้ แล้วเลื่อนแนวนอนในกล่องของตัวเอง (แทนการบีบเป็นคอลัมน์แคบสูง ๆ) */
@media (max-width: 760px) {
  .ar-table th, .ar-table td { min-width: 8.5em; padding: 10px 12px; }
  .ar-table.pv-table td:first-child { min-width: 7em; }
}
/* มือถือ (≤700px): ตารางในบทความเป็นการ์ดซ้อนแนวตั้ง ไม่ต้องเลื่อนซ้ายขวา (data-label ใส่ใน articles.js) */
@media (max-width: 700px) {
  .ar-table { overflow: visible; box-shadow: none; border-radius: 0; }
  .ar-table table, .ar-table tbody, .ar-table tr, .ar-table td { display: block; min-width: 0 !important; width: 100%; }
  .ar-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ar-table tbody tr { margin: 0 0 12px; padding: 6px 0; border-radius: 14px; background: var(--card, var(--bg-alt)); box-shadow: 0 0 0 1px var(--line) inset; }
  .ar-table td { padding: 8px 16px !important; border-bottom: 0; white-space: normal !important; }
  .ar-table td + td { border-top: 1px dashed color-mix(in srgb, var(--line) 80%, transparent); }
  .ar-table td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12.5px; font-weight: 650; color: var(--ink-3, var(--muted)); }
  .ar-table td:first-child { font-weight: 600; }
  .ar-table td:first-child[data-label]::before { display: none !important; }
}