/* ============================================================
   CORE — Reset / Normalize
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  width: 100%;
  /* [2026-07-31] hidden → clip: กัน scroll แนวนอนเหมือนเดิม แต่ไม่สร้าง scroll container
     บน html/body → position:sticky (header + .sidebar) ทำงานถูกต้อง (ดู sticky-overflow-gotcha) */
  overflow-x: clip;
}

img, svg, video, iframe {
  max-width: 100%; display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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