/* Happy — ໜ້າເນື້ອຫາສາທາລະນະ (/care · /agency · /help · /changelog · ໜ້າກົດໝາຍ · 404/429) — brand0 2/10/2026
   ໃຊ້ຄູ່ກັບ tools/shell.py · ໂຫຼດຫຼັງ assets/brand.css (ປຸ່ມ · ຫົວຂໍ້ · ຫົວ/ຕີນເວັບ)
   ໂລກ «ປ້າຍລະຫັດໄລຟ໌»: ຮາວໃຕ້ຫົວເວັບ · ປ້າຍນ້ອຍຫ້ອຍເໜືອ h1 · ໃບຂາວຂອບປຸ · ຮອຍປຸເປັນເສັ້ນຂັ້ນ · ແຖບສີເຕັມພາກ · ມຸມສາກ
   ໜ້າອ່ານຍາວ (ກົດໝາຍ · changelog · help) = ໂຄງດຽວກັນ ແຕ່ບໍ່ມີປ້າຍອຽງ/ແຖບສີ — ອ່ານສະບາຍມາກ່ອນ */

body.page { background: var(--ground); }
main { display: block; overflow-x: clip; }
html { scroll-padding-top: 84px; }

/* ---------- ຖັນເນື້ອຫາ ---------- */
.doc { max-width: calc(860px + 2 * var(--gut)); margin: 0 auto; padding-inline: var(--gut); }
.doc-wide { max-width: calc(var(--wrap) + 2 * var(--gut)); }   /* ຂອບເນື້ອຫາ = ຂອບຫົວເວັບ (--pad-x) */
.doc > :first-child { margin-top: 0; }
/* ຂອບຊ້າຍດຽວກັນທັງໜ້າ: ຖັນກວ້າງ · ສ່ວນອ່ານ (ລາຍການ · ຄຳຖາມ · ຟອມ · ຂໍ້ຄວາມ) ແຄບ ຊິດຊ້າຍ */
.doc-wide > ol.steps, .doc-wide > ul.rules, .doc-wide > .faq-list, .doc-wide > .paper, .doc-wide > p, .doc-wide > .prose { max-width: 860px; }
.doc-wide > p.note { max-width: none; }
.sec { padding-block: clamp(36px, 6vw, 72px); }
.sec + .sec { padding-top: 0; }
.sec-first { padding-top: 0; }
.sec-plain { padding-top: clamp(28px, 4.4vw, 52px); }   /* ໜ້າທີ່ບໍ່ມີປ້າຍຫ້ອຍ (ກົດໝາຍ) */

/* ---------- ປ້າຍນ້ອຍຫ້ອຍຈາກຮາວ ເໜືອ h1 (ບອກຜະລິດຕະພັນ/ໜ້າ) ---------- */
.hang { position: relative; width: fit-content; margin: 0 0 clamp(22px, 3.4vw, 36px); padding-top: 30px; filter: var(--sh-paper); }
.hang::before { content: ""; position: absolute; left: 50%; top: 0; width: 2px; height: 38px; margin-left: -1px; background: var(--string); }
.hang span { position: relative; display: block; padding: 20px 16px 9px; background: var(--paper-w); color: var(--ink); font-family: var(--font-display); font-weight: 900; font-size: 14.5px; line-height: 1.3; transform: rotate(-2deg); transform-origin: 50% 0; }
.hang span::before { content: ""; position: absolute; left: 50%; top: 7px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--ground); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .45); }
.hang-g span { background: var(--paper-g); }
.hang-y span { background: var(--paper-y); }
.hang-r span { background: var(--paper-r); }
.hang-b span { background: var(--paper-b); }

/* ---------- ຕົວອັກສອນ ---------- */
.page h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.3; letter-spacing: 0; margin: 0 0 14px; max-width: 20em; }
.page h2 { font-size: clamp(23px, 2.7vw, 32px); line-height: 1.35; margin: 0 0 12px; }
.page h3 { font-size: 18px; line-height: 1.4; margin: 0 0 6px; }
html[lang="en"] .page h1 { line-height: 1.16; letter-spacing: -.012em; }
html[lang="en"] .page h2 { line-height: 1.22; }
.doc p { color: var(--text-dim); margin: 6px 0 12px; }
.doc .lead { font-size: clamp(16.5px, 1.5vw, 19px); color: var(--text); max-width: 38em; }
.doc a:not(.btn) { color: var(--text); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }
.ic { width: 28px; height: 28px; flex: none; color: var(--text); }

/* ---------- ໃບຂາວ (ເຈ້ຍໃບ · ຂອບເທິງປຸ) — ແທນ .card/.tile ---------- */
.ticket {
  position: relative; background: var(--paper-w); color: var(--ink); padding: 26px 22px 22px;
  --text: #141414; --text-dim: rgba(20, 20, 20, .78); --text-faint: rgba(20, 20, 20, .7); --line: rgba(20, 20, 20, .34); --line-soft: rgba(20, 20, 20, .18); --panel: #ffffff; --panel-2: #f3f4f8; --panel-3: #e4e7f0; --paid: #0b6e47; --live-text: #b3122d; --kip: #8a5f00;
  -webkit-mask: radial-gradient(circle at 6px 0, transparent 4px, #000 4.5px) -6px 0 / 12px 100% repeat-x; mask: radial-gradient(circle at 6px 0, transparent 4px, #000 4.5px) -6px 0 / 12px 100% repeat-x;
}
.paper { filter: var(--sh-paper); }               /* ຫໍ່ .ticket (mask ຕັດເງົາຂອງຕົວເອງ ⇒ ເງົາຢູ່ຕົວຫໍ່) */
.ticket > :last-child { margin-bottom: 0; }

/* ຮາວ + ໃບຫ້ອຍ n ໃບ (ຄືພາກ «ສ້າງມາເພື່ອລາວ» ຂອງໜ້າຫຼັກ) */
.rack { --n: 4; --g: clamp(14px, 2.4vw, 28px); --p: calc((100% + var(--g)) / var(--n)); --a: calc((var(--p) - var(--g)) / 2);
  position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--g); list-style: none; margin: 18px 0 0; padding: 34px 0 0; border-top: 8px solid var(--rail); filter: var(--sh-paper); }
.rack::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40px; pointer-events: none; background: repeating-linear-gradient(90deg, transparent 0 calc(var(--a) - 1px), var(--string) calc(var(--a) - 1px) calc(var(--a) + 1px), transparent calc(var(--a) + 1px) var(--p)); }
.rack-2 { --n: 2; } .rack-3 { --n: 3; }
.rack > .ticket { display: flex; flex-direction: column; gap: 6px; }
.rack > li:not(.ticket) { display: flex; }
.rack a.ticket { flex: 1; display: flex; flex-direction: column; gap: 6px; text-decoration: none; transition: transform .2s var(--ease-out); }
.rack a.ticket:hover { transform: rotate(-.6deg); text-decoration: none; }
.rack a.ticket:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; border-radius: 0; }
.rack h3, .rack b { display: block; font-family: var(--font-head); font-weight: 900; font-size: 17.5px; line-height: 1.4; color: var(--ink); }
.rack p, .rack small { color: var(--text-dim); font-size: 14.5px; line-height: 1.7; margin: 0; }

/* ---------- ຂັ້ນຕອນ (ເລກ = ປ້າຍໝຶກ) ---------- */
ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
ol.steps li { position: relative; counter-increment: s; padding: 14px 0 14px 52px; border-top: 3px dashed var(--line); color: var(--text-dim); }
ol.steps li:first-child { border-top: 0; padding-top: 2px; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 14px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper-y); font-family: var(--font-display); font-weight: 900; font-size: 16px; }
ol.steps li:first-child::before { top: 2px; }
ol.steps b { display: block; color: var(--text); font-size: 16.5px; }
:root[data-theme="dark"] ol.steps li::before, :root[data-theme="dark"] .prose h2 .n { background: var(--paper-y); color: var(--ink); }   /* ໝຶກເທິງພື້ນມືດ = ເບິ່ງບໍ່ເຫັນ */
.band ol.steps li::before, .ticket ol.steps li::before { background: var(--ink); color: var(--paper-y); }

/* ---------- ປ້າຍລາຄາ ຫ້ອຍຮາວ (ແພັກ) ---------- */
.price-rail { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); margin: 18px 0 0; padding-top: 44px; filter: var(--sh-paper); }
.price-rail::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--rail); }
.price-rail { gap: clamp(14px, 2.4vw, 28px); }
/* ເຊືອກຢູ່ກັບປ້າຍແຕ່ລະໃບ (ຈຳນວນປ້າຍຈາກ API ບໍ່ຄົງທີ່ — ເຊືອກເທິງຮາວຈະຫ້ອຍເປົ່າ) */
.ptag-wrap { position: relative; display: flex; }
.ptag-wrap::before { content: ""; position: absolute; z-index: 2; left: 50%; top: -36px; width: 2px; height: 62px; margin-left: -1px; background: var(--string); }
.ptag-wrap > .ptag { flex: 1; }
.ptag { position: relative; display: flex; flex-direction: column; padding: 54px 24px 24px; background: var(--paper-w); color: var(--ink); clip-path: var(--tag-shape);
  --text: #141414; --text-dim: rgba(20, 20, 20, .8); --text-faint: rgba(20, 20, 20, .7); --line: rgba(20, 20, 20, .34); --line-soft: rgba(20, 20, 20, .2); }
.ptag::before { content: ""; position: absolute; left: 50%; top: 18px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--ground); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .45); }
.ptag-y { background: var(--paper-y); } .ptag-g { background: var(--paper-g); }
.ptag h3 { font-size: 20px; }
.ptag .price { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 3.4vw, 40px); line-height: 1.2; color: var(--ink); margin: 6px 0 0; white-space: nowrap; }
.ptag .per { font-family: var(--font-body); font-weight: 400; font-size: 13.5px; color: var(--text-dim); white-space: nowrap; }
.ptag .plus { font-size: 14px; color: var(--ink); font-weight: 600; margin: 4px 0 10px; min-height: 1.7em; }
.ptag ul { list-style: none; margin: 0 0 14px; padding: 0; font-size: 14.5px; }
.ptag li { position: relative; padding: 8px 0 8px 24px; border-top: 1px solid var(--line-soft); color: var(--text-dim); }
.ptag li::before, ul.rules li::before { content: ""; position: absolute; left: 0; top: 14px; width: 14px; height: 14px; background: var(--text); -webkit-mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"%3E%3Cpath d="M2.5 8.5l3.5 3.5 7.5-8" fill="none" stroke="%23000" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E') center / contain no-repeat; mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"%3E%3Cpath d="M2.5 8.5l3.5 3.5 7.5-8" fill="none" stroke="%23000" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E') center / contain no-repeat; }
.ptag .fit { font-size: 13.5px; color: var(--text-faint); margin: 0 0 14px; }
.ptag .btn { margin-top: auto; background: var(--ink); color: #fff; }
.ptag .btn::before { background: var(--paper-w); box-shadow: none; }
.ptag-y .btn::before { background: var(--paper-y); } .ptag-g .btn::before { background: var(--paper-g); }
.ptag .btn:focus-visible { box-shadow: inset 0 0 0 3px #fff; }

/* ---------- ໝາຍເຫດ ---------- */
.note { margin: 14px 0 0; padding: 10px 14px; border: 1px dashed var(--line); color: var(--text-dim); font-size: 14.5px; }
.price-rail + .note, #topups + .note { margin-top: 34px; }   /* ເງົາຂອງປ້າຍ ບໍ່ຕົກໃສ່ແຖບລຸ່ມ */
/* ເງື່ອນໄຂຄ່າໃຊ້ຈ່າຍ (ຕ້ອງໃຊ້ Happy ERP …) ຕ້ອງອ່ານເຫັນຊັດ: ແຖບຂາວ ຂອບໝຶກ ຕົວເທົ່າເນື້ອຫາ */
.doc p.note-ink { border: 2px solid var(--text); background: var(--panel); color: var(--text); font-size: 15.5px; }
.note-y { border: 0; background: var(--paper-y); color: var(--ink); font-weight: 600; }
.doc p.note { margin-top: 14px; } .doc p.note-y { color: var(--ink); }

/* ---------- ລາຍການກົດ (ຮອຍປຸ + ໝາຍຖືກ) ---------- */
ul.rules { list-style: none; margin: 0; padding: 0; }
ul.rules li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--line-soft); color: var(--text-dim); }
ul.rules li:first-child { border-top: 0; }
ul.rules li::before { top: 18px; width: 16px; height: 16px; }

ul.rules.no li::before { -webkit-mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"%3E%3Cpath d="M3.5 3.5l9 9M12.5 3.5l-9 9" fill="none" stroke="%23000" stroke-width="2.2" stroke-linecap="round"/%3E%3C/svg%3E'); mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"%3E%3Cpath d="M3.5 3.5l9 9M12.5 3.5l-9 9" fill="none" stroke="%23000" stroke-width="2.2" stroke-linecap="round"/%3E%3C/svg%3E'); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px clamp(20px, 4vw, 56px); max-width: 980px; margin-bottom: 18px; }
.two-col h3 { margin-top: 6px; }
/* ປ້າຍ «ຕ້ອງການຫຍັງ» ເທິງໃບເຄື່ອງມື — ເຈ້ຍສີ = ຄວາມໝາຍ (ແດງ = ສີຂອງ Happy ERP: ຮ້ານຕ້ອງໃຊ້ ERP · ເຫຼືອງ: ບາງສ່ວນ · ຂຽວ: ທຸກຮ້ານ · ຂອບປຸ: ແຍກ) */
.rack .need { width: fit-content; margin-top: 8px; padding: 1px 8px; font-size: 12.5px; font-weight: 700; color: var(--ink); background: var(--paper-r); }
.rack .need-part { background: var(--paper-y); } .rack .need-all { background: var(--paper-g); } .rack .need-sep { background: none; border: 1px dashed var(--line); }
.more { margin-top: 18px; font-size: 15px; }
.go-note { font-weight: 700; color: var(--text); }
/* ລາຍການ 2 ຖັນ (ຕຳແໜ່ງທີມ AI): ຊື່ = Serif · ຂັ້ນດ້ວຍເສັ້ນບາງ — ບໍ່ແມ່ນໃບ (ໃບຊ້ອນສອງຊັ້ນຕິດກັນ = ໜັກເກີນ) */
.defs { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 4vw, 56px); max-width: 1040px; }
.defs li { padding: 14px 0; border-top: 1px solid var(--line-soft); }
.defs b { display: block; font-family: var(--font-head); font-weight: 900; font-size: 17.5px; line-height: 1.4; color: var(--text); }
.defs small { display: block; color: var(--text-dim); font-size: 14.5px; line-height: 1.7; }
.band .more a { color: var(--text); }
#topups > h3 { margin: 36px 0 0; }
#plansFallback { grid-column: 1 / -1; margin: 0; }
/* ຍັງບໍ່ມີປ້າຍລາຄາ (ບໍ່ມີ JS / API ລົ້ມ) = ບໍ່ແຕ້ມຮາວ */
.price-rail:has(> .note) { padding-top: 0; filter: none; }
.price-rail:has(> .note)::before { display: none; }

/* ---------- ຄຳຖາມ (details) ---------- */
.faq-list details { border-top: 3px dashed var(--line); }
.faq-list details:first-of-type { border-top: 0; }
.faq-list summary { cursor: pointer; list-style: none; position: relative; padding: 16px 44px 16px 0; min-height: 44px; font-family: var(--font-display); font-weight: 700; font-size: 16.5px; color: var(--text); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--text), var(--text)) center / 100% 2.5px no-repeat, linear-gradient(var(--text), var(--text)) center / 2.5px 100% no-repeat; }
.faq-list details[open] summary::after { background: linear-gradient(var(--text), var(--text)) center / 100% 2.5px no-repeat; }
.faq-list details p { margin: 0 0 16px; max-width: 46em; }

/* ---------- ບັນທຶກການປ່ຽນແປງ: ສະບັບ = ເລກລະຫັດ · ຂັ້ນດ້ວຍຮອຍປຸ ---------- */
.log { max-width: 860px; }
.rel { border-top: 3px dashed var(--line); padding: 22px 0 20px; scroll-margin-top: 90px; }
.rel:first-child { border-top: 0; padding-top: 0; }
.page .rel h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 8px; font-family: var(--font-display); font-size: 24px; line-height: 1.3; }
.rel .vnum { background: var(--paper-y); color: var(--ink); padding: 0 8px; font-weight: 900; white-space: pre; }
.rel .meta { font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--text-faint); }
.rel ul { margin: 0; padding-left: 20px; color: var(--text-dim); }
.rel li { margin: 6px 0; }
.rel li::marker { color: var(--text-faint); }

/* ---------- ຟອມ (ຊ່ອງມຸມສາກ ຂອບໝຶກ) ---------- */
.form label { display: block; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text); margin: 16px 0 6px; }
.form label:first-child { margin-top: 0; }
.form .req { color: var(--live-text); }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; font: inherit; padding: 10px 12px; border: 2px solid var(--text); border-radius: 0; background: var(--panel); color: var(--text); }
.form textarea { min-height: 96px; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--text); outline-offset: 2px; border-radius: 0; }
.form small { display: block; color: var(--text-dim); font-size: 13.5px; margin-top: 4px; }
.form [aria-invalid="true"] { border-color: var(--live-text); }
.form .btn { margin-top: 18px; }
.form .btn:disabled, .form .btn[aria-busy="true"] { opacity: .55; cursor: progress; transform: none; }
.form .with-btn { display: flex; gap: 8px; align-items: stretch; } .form .with-btn input { flex: 1 1 auto; min-width: 0; }   /* mail1: ອີເມວ + ປຸ່ມ ສົ່ງລະຫັດ */
.form .with-btn .btn { flex: none; margin-top: 0; white-space: nowrap; }
.msg { margin: 12px 0 0; font-weight: 700; } .msg:empty { display: none; }
.msg.err { color: var(--live-text); } .msg.ok { color: var(--paid); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- ແຖບສີເຕັມພາກ (ໝຶກດຳເທິງເຈ້ຍ ທັງສອງໂໝດ) ---------- */
.band {
  --text: #141414; --text-dim: rgba(20, 20, 20, .8); --text-faint: rgba(20, 20, 20, .7); --line: rgba(20, 20, 20, .34); --line-soft: rgba(20, 20, 20, .2);
  --sh-paper: drop-shadow(0 1px 0 rgba(0, 0, 0, .14)) drop-shadow(0 16px 14px rgba(20, 20, 30, .22));
  color: var(--text); padding: clamp(44px, 6vw, 84px) 0;
}
.band-g { background: var(--paper-g); } .band-y { background: var(--paper-y); }
.band-r { background: var(--paper-r); --text-dim: rgba(20, 20, 20, .9); --text-faint: rgba(20, 20, 20, .86); }
.band .doc p { color: var(--text-dim); }
.band .btn-live, .band .btn.btn-paid, .band .btn-kip { background: var(--ink); color: #fff; }
.band .btn-live::before, .band .btn.btn-paid::before, .band .btn-kip::before { background: var(--paper-w); box-shadow: none; }
.band .btn-live:focus-visible, .band .btn.btn-paid:focus-visible, .band .btn-kip:focus-visible { box-shadow: inset 0 0 0 3px #fff; }

/* ---------- ພາສາ (ລິ້ງ ລາວ | EN) — ຮູບດຽວກັບ .lang-switch ຂອງໜ້າຫຼັກ ---------- */
.lang-pair { display: flex; border: 1px solid var(--line); background: var(--panel); }
.lang-pair a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; font-size: 12.5px; font-weight: 700; color: var(--text-dim); text-decoration: none; }
.lang-pair a:hover { color: var(--text); text-decoration: none; }
.lang-pair a.on { background: var(--panel-3); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -3px 0 var(--text); }

/* ---------- ຕາຕະລາງ (ໜ້າກົດໝາຍ) ---------- */
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; outline: 2px solid var(--text); outline-offset: -2px; background: var(--panel); font-size: 14.5px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px; border-top: 1px solid var(--line-soft); }
.doc thead th { font-family: var(--font-display); font-weight: 800; border-top: 0; border-bottom: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }

/* ---------- ເນື້ອຫາອ່ານຍາວ (ໜ້າກົດໝາຍ: ເນື້ອຫາຂຽນດ້ວຍມື ຫໍ່ດ້ວຍ tools/legal.py) ---------- */
.prose { max-width: 860px; }
.prose h2 { position: relative; margin: 40px 0 10px; padding-left: 42px; font-size: clamp(20px, 2.2vw, 25px); }
.prose h2 .n { position: absolute; left: 0; top: .12em; min-width: 30px; height: 30px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper-y); font-family: var(--font-display); font-weight: 900; font-size: 14.5px; line-height: 1; }
.prose h2:not(:has(.n)) { padding-left: 0; }
.prose h3 { margin: 22px 0 4px; font-size: 17px; }
.prose p, .prose li { color: var(--text-dim); }
.prose li { margin: 5px 0; }
.prose b, .prose strong { color: var(--text); }
.prose .meta { color: var(--text-faint); font-size: 14px; margin: 0 0 14px; }
.prose .card { margin: 16px 0; padding: 16px 18px; border: 1px dashed var(--line); }
.prose .card.warn { border: 0; background: var(--paper-y); color: var(--ink); --text: #141414; --text-dim: rgba(20, 20, 20, .8); }
.prose code { font-family: ui-monospace, monospace; font-size: .92em; background: var(--panel); border: 1px solid var(--line-soft); padding: 1px 6px; max-width: 100%; overflow-wrap: anywhere; }
.prose code a { display: inline-flex; align-items: center; min-height: 44px; }
.prose .tbl { overflow-x: auto; margin: 12px 0; }
.prose table { min-width: 460px; margin: 0; }
.prose td:first-child { color: var(--text); font-weight: 600; }
.prose td a { text-decoration: underline; text-underline-offset: 3px; }
.prose .related { margin-top: 6px; }
.prose .related a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- ໜ້າຜິດພາດ 404 / 429 (ບໍ່ມີຫົວເວັບ: ຕ້ອງຂຶ້ນໄດ້ເຖິງອັນອື່ນລົ້ມ) ---------- */
.err { font-family: var(--font-body); font-size: var(--fs-m); line-height: 1.75; }
.err main { max-width: 600px; margin: 0 auto; padding: 0 16px 48px; }
.err .hang span { font-size: 44px; line-height: 1.05; padding: 26px 20px 10px; }
.err h1 { font-size: clamp(26px, 6.4vw, 36px); }
.err main > p { margin: 0 0 12px; color: var(--text-dim); }
.err .acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.err .acts .btn-live { flex: 1 1 100%; }
.err .en { margin-top: 32px; padding-top: 18px; border-top: 3px dashed var(--line); }
.err .en h2 { margin: 0 0 6px; font-size: var(--fs-l); line-height: 1.4; }
.err .en p { color: var(--text-dim); margin: 0; }

/* ---------- ຈໍແຄບ ---------- */
@media (max-width: 980px) {
  .rack, .rack-3 { --n: 2; }
  .rack::after { display: none; }
  .rack { padding-top: 26px; }
  .price-rail { grid-template-columns: 1fr; filter: none; gap: 18px; }   /* ຮາວຍັງຢູ່ · ເຊືອກສະເພາະປ້າຍທຳອິດ (ປ້າຍຊ້ອນລົງ) */
  .ptag-wrap:not(:first-child)::before { display: none; }
  .ptag-wrap { filter: var(--sh-paper); }
}
@media (max-width: 640px) {
  .rack, .rack-2, .rack-3 { --n: 1; }
  .rack.rack-links { --n: 2; --g: 10px; }
  .rack-links .ticket { padding: 22px 12px 14px; }
  .rack-links b { font-size: 15px; }
  .defs { grid-template-columns: 1fr; }
  .form .btn { width: 100%; }
  .form .with-btn .btn { width: auto; }
  .prose .tbl::before { content: "→ ເລື່ອນຂວາເບິ່ງຕື່ມ"; display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 700; color: var(--text-faint); }
  html[lang="en"] .prose .tbl::before { content: "→ scroll right for more"; }
  .two-col { grid-template-columns: 1fr; }
  .cta .btn { flex: 1 1 auto; }
  .hang { margin-bottom: 18px; padding-top: 24px; }
  .hang::before { height: 32px; }
  .page h1 { font-size: clamp(28px, 8.4vw, 36px); }
}
@media print {
  .site-head, .rail, .m-drawer, .m-scrim, .site-foot, .skip-link, .cta { display: none !important; }
  body.page { background: #fff; }
}
