@font-face { font-family: Inter; src: url("/site/assets/fonts/Inter-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url("/site/assets/fonts/Inter-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: NotoThai; src: url("/site/assets/fonts/NotoSansThai_400Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: NotoThai; src: url("/site/assets/fonts/NotoSansThai_500Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: NotoThai; src: url("/site/assets/fonts/NotoSansThai_600SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: NotoThai; src: url("/site/assets/fonts/NotoSansThai_700Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
:root {
  --bg: #fcfbf8;
  --surface: #ffffff;
  --text: #24211f;
  --muted: #6b645f;
  --accent: #b81c2d;
  --border: #e7e3de;
  --notice: #fff3e0;
  --notice-text: #8a4b08;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1214;
    --surface: #241a1c;
    --text: #f5eced;
    --muted: #bfaeb1;
    --accent: #ff6b74;
    --border: #3a2c2f;
    --notice: #3a2a14;
    --notice-text: #f3c98b;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, NotoThai, sans-serif;
  line-height: 1.7;
  font-size: 16px;
}
main { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); margin: 0 0 8px; }
.brand img { display: block; width: 124px; height: auto; }
h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.3; margin: 8px 0 4px; }
h2 { font-size: 21px; margin: 28px 0 8px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.draft { background: var(--notice); color: var(--notice-text); padding: 10px 14px; border-radius: 10px; font-size: 14px; }
a { color: var(--accent); }
ul { padding-left: 22px; }
li { margin: 4px 0; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { background: var(--bg); }
td:first-child { white-space: nowrap; font-weight: 600; }
@media (max-width: 480px) { td:first-child { white-space: normal; } }
/* ข้อมูลที่ยังต้องเติม (เช่น ชื่อบริษัทระหว่างจดทะเบียน) — ให้เห็นชัดว่ายังไม่ใช่ข้อมูลจริง */
.ph { background: var(--notice); color: var(--notice-text); padding: 0 6px; border-radius: 6px; font-weight: 600; }
/* แถบ "‹ กลับไปที่ YipHai" ติดด้านบน (legal.js) — ซ่อนเมื่อเปิดอยู่ในแอป (หน้าเอกสารในแอปมีปุ่ม "กลับ" เองแล้ว) */
.backbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
.backbar a {
  display: flex; align-items: center; gap: 6px; max-width: 760px; margin: 0 auto;
  min-height: 48px; padding: 0 16px; color: var(--accent); font-weight: 600; text-decoration: none;
}
.backbar .chev { font-size: 24px; line-height: 1; margin-top: -2px; }
.inapp .backbar { display: none; }
