/* Happy — ກົດແບຣນທີ່ໃຊ້ຮ່ວມທຸກໜ້າສາທາລະນະ (brand0 2/10/2026 · ແຍກອອກຈາກ assets/landing.css ຂອງໜ້າຫຼັກທີ່ເຈົ້າຂອງເລືອກ)
   ໂລກ «ປ້າຍລະຫັດໄລຟ໌»: ປຸ່ມ = ປ້າຍລາຄາ · ຫົວຂໍ້ = Noto Serif Lao 900 · ມຸມສາກ · ໝຶກດຳເທິງເຈ້ຍສີ
   ຕົວແປ (--ink · --paper-* · --rail · --string · --sh-paper · --font-head) ຢູ່ assets/tokens.css
   ລຳດັບໂຫຼດ: fonts.css → tokens.css → brand.css → ໄຟລ໌ຂອງໜ້າ (landing.css …) · DESIGN.md ພາກ «ແບຣນ Happy» */

:root {
  --wrap: 1180px;
  --gut: clamp(18px, 4vw, 40px);
  --pad-x: max(var(--gut), calc((100% - var(--wrap)) / 2));
}

/* ---------- ຫົວຂໍ້ ---------- */
h1, h2, h3 { font-family: var(--font-head); font-weight: 900; }

/* ---------- ປຸ່ມ = ປ້າຍລາຄາ (ຫົວແຫຼມຊ້າຍ + ຮູ) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 10px 24px 10px 40px; border-radius: 0;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%);
  position: relative; isolation: isolate; box-shadow: none;
  font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 1.3; text-align: center;
  transition: transform .2s var(--ease-out), background .2s var(--ease-out), border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn::before { content: ""; position: absolute; left: 17px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--ground-deep); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .4); }
.btn:active { transform: none; }
.btn:hover { text-decoration: none; transform: rotate(-1.5deg); }
/* ແດງ = ການກະທຳຫຼັກອັນດຽວຕໍ່ຈໍ · ໝຶກດຳເທິງເຈ້ຍສີ (ບໍ່ມີຕົວຂາວເທິງເຈ້ຍສີ) */
.btn-live, .btn.btn-live { background: var(--paper-r); color: var(--ink); box-shadow: none; }
.btn-live:hover { background: color-mix(in srgb, var(--paper-r) 90%, #000); }
.btn-ghost { background: var(--ink); color: var(--ink); border: 0; }
.btn-ghost::after { content: ""; position: absolute; z-index: -1; inset: 2px; background: var(--paper-w); clip-path: polygon(14.5px 0, 100% 0, 100% 100%, 14.5px 100%, 1.6px 50%); }
.btn-ghost:hover { border-color: transparent; }
.btn-kip { background: var(--paper-y); color: var(--ink); }
.btn-kip:hover { background: color-mix(in srgb, var(--paper-y) 90%, #000); }
.btn.btn-paid { background: var(--paper-g); color: var(--ink); }   /* h2f: ປຸ່ມ /care ແລະ ທາງເຂົ້າບໍລິສັດ = ຂຽວ */
.btn.btn-paid:hover { background: color-mix(in srgb, var(--paper-g) 90%, #000); }
.btn-s { min-height: 44px; padding: 8px 18px 8px 34px; font-size: 14.5px; }
.btn-s::before { left: 14px; }
.btn-xl { min-height: 60px; padding: 14px 34px 14px 52px; font-size: 18px; }
.btn-xl::before { left: 22px; width: 11px; height: 11px; margin-top: -5.5px; }
/* ໂຟກັສຄີບອດ: clip-path ຕັດ outline ຖິ້ມ ⇒ ວົງຢູ່ດ້ານໃນປ້າຍ (ໝຶກເທິງເຈ້ຍສີ · ປ້າຍຂອບ = ຂອບໜາຂຶ້ນ) */
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--ink); }
.btn-ghost:focus-visible::after { box-shadow: inset 0 0 0 3px var(--ink); }

/* ---------- ຫົວເວັບ ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 10px var(--pad-x);
  background: color-mix(in srgb, var(--ground-deep) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); flex: none; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: .01em; }
.brand-name b { font-weight: 900; color: var(--live-text); }
.site-nav { display: flex; gap: 4px; margin-inline: auto; }
.site-nav a { color: var(--text-dim); font-size: 15px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 0; }
.site-nav a:hover { color: var(--text); background: var(--panel-2); text-decoration: none; }
html[lang="en"] .site-nav a { padding: 0 9px; }   /* ປຸ່ມຮູບປ້າຍກວ້າງ ⇒ ຫົວເວັບ EN ບໍ່ລົ້ນຂອບ */
.head-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 0; overflow: hidden; background: var(--panel); }
.lang-switch button { padding: 7px 12px; font-size: 12.5px; font-weight: 700; color: var(--text-dim); }
.lang-switch button:hover { color: var(--text); }
.lang-switch button.on { background: var(--panel-3); color: var(--text); }
.tg-wrap .theme-tg { border-radius: 0; }
.head-signin { color: var(--text); font-size: 15px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }
.head-actions .btn { white-space: nowrap; }
/* ຮາວ: ແຖບ 8px ໃຕ້ຫົວເວັບ (ໜ້າຫຼັກແຕ້ມເອງຢູ່ .hero::after) */
.rail { height: 8px; background: var(--rail); }

/* ---------- ປ້າຍ «ຂໍ້ມູນຕົວຢ່າງ» ---------- */
.scene-tag { font-size: 12px; line-height: 1.5; color: var(--text-faint); border: 1px dashed var(--line); border-radius: 0; padding: 1px 10px; position: static; width: fit-content; margin: 10px 0 0 auto; }

/* ---------- ຕີນເວັບ ---------- */
.site-foot { border-top: 1px solid var(--line-soft); padding: 44px var(--pad-x) calc(88px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: start; background: var(--panel); }
.foot-brand { display: flex; gap: 14px; align-items: flex-start; }
.foot-line { color: var(--text-dim); font-size: 14px; margin-top: 2px; }
.foot-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 20px; }
/* PUB-04: ເປົ້າກົດ ≥44px · PUB-18: ລິ້ງມີຂີດກ້ອງ ບໍ່ແມ່ນແຍກດ້ວຍສີຢ່າງດຽວ */
.site-foot a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.foot-nav a { color: var(--text-dim); font-size: 14.5px; white-space: nowrap; }
.foot-legal { display: flex; gap: 4px 18px; flex-wrap: wrap; grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.foot-legal a { color: var(--text-faint); }
.foot-legal a:hover { color: var(--text); }
.foot-contact { border-top: 0; padding-top: 0; }
[data-co][hidden], [data-co-wrap][hidden] { display: none !important; }   /* admin ລຶບຊ່ອງທາງ = ເຊື່ອງແທ້ (.foot-legal a ຕັ້ງ display ທັບ hidden ຂອງບຣາວເຊີ) */   /* company1: ຊ່ອງທາງຕິດຕໍ່ຈາກ admin (assets/company.js) — ແຖວຂອງມັນເອງ ບໍ່ຕໍ່ກັບ © ດ້ວຍ · */
.foot-note { grid-column: 1 / -1; color: var(--text-faint); font-size: 13px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.foot-note a { color: var(--text-dim); }

/* PUB-18: ລິ້ງກາງປະໂຫຍກ ມີຂີດກ້ອງສະເໝີ (WCAG 1.4.1) */
main p a:not(.btn), main li a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }

/* ລິ້ງຂ້າມ (WCAG 2.4.1) */
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--panel); color: var(--text); border: 2px solid var(--live); border-radius: 0; padding: 10px 16px; font-size: 14px; font-weight: 700; text-decoration: none; transition: top .12s ease; }
.skip-link:focus { top: 8px; outline: none; }

/* ---------- ☰ + drawer (ມືຖື / ຈໍແຄບ) ---------- */
.burger, .m-scrim, .m-drawer { display: none; }
/* ☰ ແທນເມນູຫົວ ເມື່ອ 6 ລິ້ງ + ເຂົ້າລະບົບ + ພາສາ + ເດໂມ ບໍ່ພໍແຖວດຽວ (ວັດ lo/en/th — PUB-03) */
@media (max-width: 1139px) {
  .site-nav { display: none; }
  .head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
  .burger { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--text); border-radius: 0; margin-right: -6px; }
  .burger svg { width: 24px; height: 24px; }
  .m-scrim { display: block; position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .m-scrim.open { opacity: 1; pointer-events: auto; }
  /* ປິດຢູ່ = visibility:hidden ⇒ Tab ບໍ່ຫຼົງເຂົ້າລິ້ງທີ່ຢູ່ນອກຈໍ ແລະ ເຄື່ອງອ່ານໜ້າຈໍບໍ່ອ່ານ */
  .m-drawer { display: flex; flex-direction: column; position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 320px); z-index: 70; background: var(--ground-deep); border-left: 1px solid var(--line-soft); padding: 16px 14px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; transform: translateX(104%); visibility: hidden; transition: transform .28s var(--ease-out), visibility 0s linear .28s; }
  .m-drawer.open { transform: none; visibility: visible; transition: transform .28s var(--ease-out); }
  .m-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 8px 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 8px; }
  .m-drawer .x { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--text-dim); border-radius: 0; }
  .m-drawer .x svg { width: 22px; height: 22px; }
  .m-drawer-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
  .m-drawer-nav a { padding: 11px 12px; border-radius: 0; color: var(--text); font-size: 16px; font-weight: 600; }
  .m-drawer-nav a:hover { background: var(--panel); text-decoration: none; }
  .m-drawer-nav a.btn { margin-top: auto; justify-content: center; padding: 14px; }
}
@media (max-width: 640px) {
  .btn { padding: 10px 14px 10px 32px; }
  .btn::before { left: 14px; }
  .m-drawer-nav a.btn { padding-left: 32px; }   /* ກົດ drawer ທັບ padding ⇒ ຕົວໜັງສືທັບຮູປ້າຍ */
  .site-head { padding: 8px 16px; gap: 12px; }
  .brand-name { font-size: 17px; }
  .lang-switch button { padding: 7px 9px; }
  .head-signin { display: none; }   /* ຢູ່ໃນ ☰ ແລ້ວ */
  .head-actions .btn { display: none; }
  .site-foot { grid-template-columns: 1fr; gap: 12px; padding: 30px 18px calc(40px + 78px + env(safe-area-inset-bottom)); }
  .foot-nav { gap: 4px 18px; justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  /* ກົດ * ຂ້າງເທິງໃຫ້ລູກຂອງ drawer ມີ transition 'all' ⇒ visibility ທີ່ສືບທອດມາ ຍັງ hidden ຕອນເປີດ → focus() ລິ້ງທຳອິດບໍ່ເຂົ້າ */
  .m-drawer * { transition: none !important; }
}
