/* SCANIX — components used with Tailwind CDN
   Brand: Signal Yellow #EBCB3D · Warm Gold #ECCB48 · Mid Gray #9F9F9F · Charcoal #141414 */

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: "IBM Plex Sans Thai", "Kanit", system-ui, sans-serif; background: #141414; color: #e9e9e9; line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: "Kanit", "IBM Plex Sans Thai", sans-serif; color: #fff; line-height: 1.3; font-weight: 600; }
a { color: #EBCB3D; }
:focus-visible { outline: 3px solid #EBCB3D; outline-offset: 2px; }
.skip-link { position: absolute; left: -999px; top: 0; background: #EBCB3D; color: #000; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: "Kanit", sans-serif; font-weight: 500; font-size: 1rem; padding: .75rem 1.4rem; border-radius: .5rem; border: 2px solid transparent; transition: transform .15s, background .15s; text-decoration: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: #EBCB3D; color: #111; }
.btn-primary:hover { background: #ECCB48; }
.btn-ghost { border-color: #EBCB3D; color: #fff; }
.btn-ghost:hover { background: rgba(235, 203, 61, .12); }
.btn-dark { background: #111; color: #EBCB3D; }
.btn-sm { padding: .5rem 1rem; font-size: .95rem; }
.arrow::after { content: "→"; }

/* Nav */
.nav-link { color: #e9e9e9; font-family: "Kanit", sans-serif; font-size: .95rem; text-decoration: none; }
.nav-link:hover, .nav-link[aria-current="page"] { color: #EBCB3D; }

/* Section title with yellow bar */
.sec-title { position: relative; padding-left: 18px; }
.sec-title::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 6px; background: #EBCB3D; border-radius: 2px; }
.eyebrow { font-family: "Montserrat", sans-serif; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: #EBCB3D; }

/* Cards */
.card { background: #1d1f22; border: 1px solid #33373c; border-radius: 12px; padding: 1.6rem; }
.card p { color: #b4b4b4; }
.icon-box { width: 48px; height: 48px; border-radius: 10px; background: rgba(235, 203, 61, .12); display: grid; place-items: center; }
.icon-box svg { width: 26px; height: 26px; }
.limit { font-size: .9rem; color: #9F9F9F; border-top: 1px dashed #33373c; padding-top: .75rem; margin-top: .75rem; }
.limit strong { color: #ECCB48; font-weight: 500; }

/* Labels for simulated images (Do_and_Dont ข้อ 10) */
.fig-label { display: inline-block; font-size: 12.5px; font-family: "Kanit", sans-serif; background: rgba(0, 0, 0, .65); color: #ECCB48; border: 1px solid rgba(235, 203, 61, .5); padding: 2px 10px; border-radius: 99px; }
.tag { display: inline-block; font-size: 12.5px; font-family: "Kanit", sans-serif; font-weight: 500; padding: 3px 10px; border-radius: 99px; }
.tag-now { background: #EBCB3D; color: #111; }
.tag-future { background: #3a3d42; color: #fff; }
.tag-plan { background: #c8452f; color: #fff; }
.tag-sim { background: #2b2d31; color: #ECCB48; border: 1px solid rgba(235, 203, 61, .4); }

/* Placeholder for info still to be filled */
.ph { color: #ECCB48; border-bottom: 1px dashed #ECCB48; }

/* Check list */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 28px; margin-bottom: .6rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin-top: .2em; border-radius: 50%; background: #EBCB3D; color: #111; font-size: 12px; font-weight: 700; display: grid; place-items: center; line-height: 1; }

/* Tables */
.tbl-wrap { overflow-x: auto; border: 1px solid #33373c; border-radius: 12px; }
.tbl { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .95rem; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: .9rem 1rem; border-bottom: 1px solid #33373c; }
.tbl thead th { background: #24272b; color: #fff; font-family: "Kanit", sans-serif; font-weight: 500; }
.tbl tbody th { color: #fff; font-family: "Kanit", sans-serif; font-weight: 500; }
.tbl td { color: #b4b4b4; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }

/* FAQ */
.faq details { background: #1d1f22; border: 1px solid #33373c; border-radius: 12px; margin-bottom: .75rem; padding: 0 1.25rem; }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; font-family: "Kanit", sans-serif; font-size: 1.05rem; color: #fff; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: .7rem; font-size: 1.6rem; color: #EBCB3D; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #b4b4b4; }

/* Workflow steps */
.step-num { width: 46px; height: 46px; border-radius: 50%; background: #EBCB3D; color: #111; display: grid; place-items: center; font-family: "Kanit", sans-serif; font-weight: 600; font-size: 1.15rem; flex: none; }

/* Article body */
.prose-sx { font-size: 1.08rem; }
.prose-sx p { margin: 0 0 1.1em; }
.prose-sx h2 { font-size: 1.6rem; margin: 1.8em 0 .6em; padding-left: 14px; border-left: 5px solid #EBCB3D; }
.prose-sx h3 { font-size: 1.25rem; margin: 1.4em 0 .5em; color: #ECCB48; }
.prose-sx ul, .prose-sx ol { padding-left: 1.4rem; margin: 0 0 1.1em; }
.prose-sx ul { list-style: disc; }
.prose-sx ol { list-style: decimal; }
.prose-sx li { margin-bottom: .45em; }
.prose-sx strong { color: #fff; }
.callout { background: #24272b; border-left: 4px solid #EBCB3D; padding: 1rem 1.25rem; border-radius: 0 8px 8px 0; margin: 1.4em 0; }

/* Form */
.field label { display: block; font-size: .9rem; color: #b4b4b4; margin-bottom: .35rem; font-family: "Kanit", sans-serif; }
.field input, .field select, .field textarea { width: 100%; padding: .7rem .85rem; border-radius: .5rem; border: 1px solid #33373c; background: #141517; color: #fff; font-family: inherit; font-size: 1rem; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #EBCB3D; outline: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
