/* DO THE PROJECT — shared design system (Tailwind CDN utility-first + small helpers) */
/* Thai headings need natural tracking and room for stacked vowel marks. */
#main :is(h1, h2, h3, h4) { font-weight: 600; line-height: 1.4; letter-spacing: normal; }
#main .faq-item p { font-size: 1rem; line-height: 1.9; }
#main p.text-sm.leading-relaxed { font-size: 1rem; line-height: 1.85; }
body {
  font-family: 'IBM Plex Sans Thai', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.skip {
  position: absolute;
  top: -100px;
  left: 12px;
  padding: 12px 18px;
  background: white;
  border-radius: 9999px;
  z-index: 100;
  font-weight: 600;
}
.skip:focus { top: 12px; }
.glass-nav {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
@media (prefers-color-scheme: dark) {
  .glass-nav {
    background: rgba(2, 6, 23, 0.75);
  }
}
.grid-pattern {
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 24px 24px;
}
.text-gradient {
  background: linear-gradient(135deg, #0f172a 30%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.accent-gradient {
  background: linear-gradient(135deg, #2563eb 0%, #0d9488 100%);
}
/* Smooth custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
