/* ═══ base — reset เบา ๆ + typography + โครงหน้า ═══ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:var(--vx-font-body);
  color:var(--vx-navy);
  background:var(--vx-white);
  line-height:1.6;
  font-size:1rem;
  -webkit-font-smoothing:antialiased;
}
img,svg,video{max-width:100%;height:auto}
img{display:block}
a{color:var(--vx-blue)}
a:hover{color:var(--vx-blue-hover)}

h1,h2,h3,h4{font-family:var(--vx-font-head);font-weight:600;margin:0;line-height:1.3}
h1{font-size:clamp(2.2rem,4.4vw,3.4rem);line-height:1.2}
h2{font-size:clamp(1.7rem,2.8vw,2.3rem)}
h3{font-size:1.2rem}
p{margin:0}

/* ไทยตัดกลางคำ — บังคับให้ตัดตามช่องว่างเท่านั้น */
h1,h2,h3,.vx-lead{word-break:keep-all;text-wrap:balance}
p,li,dd{word-break:keep-all}
.vx-nb{white-space:nowrap}

.vx-container{max-width:var(--vx-container);margin:0 auto;padding-left:var(--vx-gutter);padding-right:var(--vx-gutter)}
.vx-section{padding-top:var(--vx-section)}
.vx-section--end{padding-bottom:var(--vx-section)}
.vx-lead{font-size:1.1rem;color:var(--vx-muted)}
.vx-muted{color:var(--vx-muted)}

/* JS ซ่อนของด้วย attribute hidden — ต้องชนะคลาสที่ตั้ง display ไว้ ไม่งั้นซ่อนไม่ลง */
[hidden]{display:none!important}

/* ข้ามไปเนื้อหา — a11y */
.vx-skip{position:absolute;left:-9999px;top:0;z-index:100;background:var(--vx-navy);color:#fff;padding:12px 20px;border-radius:0 0 12px 0}
.vx-skip:focus{left:0}
.vx-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

:where(a,button,input,select,textarea):focus-visible{
  outline:3px solid var(--vx-accent);outline-offset:2px;border-radius:4px;
}
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.01ms!important;transition-duration:.01ms!important}
}
