*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 var(--fs-body) / 1.55 var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, #e6f5e9 0, var(--brand-50) 420px, #f8fcf8 100%);
  min-height: 100vh;
}
body[data-page="home"] { background: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

/* ภาษา (TH/EN) — เนื้อหาคงที่ในหน้า HTML ใช้คู่ data-th/data-en (สลับด้วย <html data-lang="en">) ข้อความที่ JS สร้างขึ้นใช้ PAF.t() แทน (ดู assets/data/i18n.js) */
/* ซ่อนภาษาที่ไม่ได้เลือกแบบ !important — กฎ display ของคอมโพเนนต์ (เช่น .page-title small{display:block}) เคยชนะจนคำอังกฤษโผล่ในหน้าไทย */
html:not([data-lang="en"]) [data-en], html[data-lang="en"] [data-th] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }
.brand-icon { width: 1.6em; height: 1.6em; flex: none; }

:focus-visible { outline: 3px solid var(--action); outline-offset: 2px; }

@media (max-width: 820px) {
  body { padding-bottom: 76px; } /* เผื่อที่ให้ bottom nav บนมือถือ */
}
