/* ECU_BY_BANK — design tokens + shell (Phase W · 2026-10-29)
   แหล่งเดียวของสี/ฟอนต์/มุมโค้ง ใช้ร่วมกันทุกหน้า — โหลดก่อน CSS อื่น
   สีแดงมี 2 ค่าเท่านั้น: --red (ปุ่ม/พื้นหลัง) กับ --red-hi (ตัวอักษร/ไฟ/เส้น) */
:root {
  --bg: #0b0b0d;
  --surface: #15161a;
  --line: #26272d;
  --text: #f2f2f2;
  --muted: #9a9ca3;
  --red: #e62129;
  --red-hi: #ff2b43;
  --radius: 12px;
  --font-display: 'Exo 2', 'Noto Sans Thai', system-ui, sans-serif;
  --font-th: 'Kanit', 'Noto Sans Thai', system-ui, sans-serif;
  --font-body: 'Noto Sans Thai', 'Kanit', system-ui, sans-serif;
  --shell-h: 56px;
}

/* ── Shell: header / footer ที่ site-shell.js ฉีดให้ ── */
.ebb-shell-h { position: relative; z-index: 60; background: rgba(11,11,13,.92); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-family: var(--font-body); }
.ebb-shell-h .in { max-width: 1200px; margin: 0 auto; padding: 0 16px; min-height: var(--shell-h); display: flex; align-items: center; gap: 12px; }
.ebb-shell-h .logo { display: inline-flex; align-items: center; flex: 0 0 auto; }
.ebb-shell-h .logo img { height: 30px; width: auto; display: block; }
.ebb-shell-h nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.ebb-shell-h nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.ebb-shell-h nav a:hover { color: var(--text); background: var(--surface); }
.ebb-shell-h nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--red-hi); border-radius: 8px 8px 0 0; }
.ebb-shell-h .burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); border-radius: 10px; font-size: 20px; cursor: pointer; }
.ebb-shell-h.navonly .logo { display: none; }
.ebb-shell-h.navonly nav { margin-left: 0; }
@media (max-width: 640px) {
  .ebb-shell-h .burger { display: inline-flex; align-items: center; justify-content: center; }
  .ebb-shell-h nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 12px; margin: 0; }
  .ebb-shell-h nav.open { display: flex; }
  .ebb-shell-h nav a { padding: 12px; font-size: 16px; }
}
.ebb-shell-f { border-top: 1px solid var(--line); background: var(--bg); color: var(--muted); font: 13px/1.6 var(--font-body); padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
.ebb-shell-f .in { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; }
.ebb-shell-f a { color: var(--muted); text-decoration: none; }
.ebb-shell-f a:hover { color: var(--text); text-decoration: underline; }
.ebb-shell-f .links { display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* ── หน้าเอกสาร (privacy / terms / 404) ── */
.doc-page { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.75 var(--font-body); -webkit-font-smoothing: antialiased; }
.doc-wrap { max-width: 760px; margin: 0 auto; padding: 32px 16px 56px; }
.doc-wrap h1 { font: italic 800 clamp(28px, 6vw, 40px)/1.2 var(--font-display); margin: 0 0 8px; }
.doc-wrap h2 { font: 600 20px/1.4 var(--font-th); margin: 32px 0 8px; color: var(--text); }
.doc-wrap p, .doc-wrap li { color: #d6d7db; }
.doc-wrap a { color: var(--red-hi); }
.doc-wrap .meta { color: var(--muted); font-size: 14px; }
.doc-wrap .note { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 12px 16px; margin: 16px 0; }
.btn-red { display: inline-block; background: var(--red); color: #fff; text-decoration: none; padding: 12px 20px; border-radius: var(--radius); font: 600 16px var(--font-th); border: 0; cursor: pointer; }
.btn-red:hover { background: var(--red-hi); }
.btn-ghost { display: inline-block; color: var(--text); text-decoration: none; padding: 12px 20px; border-radius: var(--radius); border: 1px solid var(--line); font: 500 16px var(--font-th); }
.notfound { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 16px; gap: 12px; }
.notfound b { font: italic 900 clamp(72px, 22vw, 140px)/1 var(--font-display); color: var(--red-hi); }

[hidden] { display: none !important; }

