/* SEEU168 — cream + navy + yellow | prefix su- | Kanit (headings) + IBM Plex Sans Thai (body) */
:root {
  --su-bg: #fbf7ee;
  --su-paper: #ffffff;
  --su-sand: #f4ecd9;
  --su-line: #e6dcc4;
  --su-ink: #1b2a4a;       /* ~13:1 on cream */
  --su-muted: #545f78;     /* ~6:1 */
  --su-blue: #2a5bd7;      /* links ~5.8:1 on white */
  --su-navy: #14213d;
  --su-yellow: #ffc933;
  --su-yellow-soft: #fff3c4;
  --su-red: #b42318;
  --su-max: 1140px;
  --su-read: 720px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: 'IBM Plex Sans Thai', Tahoma, sans-serif; font-size: 17px; line-height: 1.8; color: var(--su-ink); background: var(--su-bg); }
h1, h2, h3, h4, .su-logo, .su-btn, .su-tag, .su-path b, .su-qa-q { font-family: 'Kanit', 'IBM Plex Sans Thai', sans-serif; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--su-blue); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: rgba(42,91,215,.35); }
a:hover { color: var(--su-navy); text-decoration-color: var(--su-yellow); }
:focus-visible { outline: 3px solid var(--su-blue); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 700; color: var(--su-navy); background: linear-gradient(transparent 62%, var(--su-yellow-soft) 62%); }
.su-skip { position: absolute; left: -999px; top: 0; background: var(--su-navy); color: #fff; padding: 8px 14px; z-index: 100; }
.su-skip:focus { left: 8px; top: 8px; }
.su-box { width: 100%; max-width: var(--su-max); margin: 0 auto; padding: 0 20px; }
.su-nb { white-space: nowrap; }

/* ---------- header ---------- */
.su-head { background: var(--su-navy); color: #fff; position: sticky; top: 0; z-index: 50; }
.su-head .su-box { display: flex; align-items: center; gap: 12px; min-height: 62px; }
.su-logo { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; text-decoration: none; color: #fff; font-size: 24px; font-weight: 600; letter-spacing: .5px; }
.su-logo i { font-style: normal; color: var(--su-yellow); }
.su-logo svg { width: 34px; height: 34px; }
.su-logo:hover { color: #fff; }
.su-nav { display: none; }
.su-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.su-nav a { display: block; padding: 19px 12px; color: #dfe6f5; text-decoration: none; font-family: 'Kanit', sans-serif; font-size: 16px; border-bottom: 3px solid transparent; }
.su-nav a:hover, .su-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--su-yellow); }
.su-drawer summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); }
.su-drawer summary::-webkit-details-marker { display: none; }
.su-drawer { position: relative; }
.su-drawer-in { position: absolute; right: 0; top: 54px; width: 260px; padding: 10px; background: var(--su-paper); border-radius: 14px; box-shadow: 0 20px 44px rgba(20,33,61,.25); }
.su-drawer-in a { display: block; padding: 11px 12px; border-radius: 10px; color: var(--su-ink); text-decoration: none; font-family: 'Kanit', sans-serif; }
.su-drawer-in a:hover, .su-drawer-in a[aria-current="page"] { background: var(--su-yellow-soft); }
.su-btn.su-head-cta { display: none; }

/* ---------- buttons / tags ---------- */
.su-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 24px; border-radius: 10px; font-size: 17px; font-weight: 500; text-decoration: none; cursor: pointer; }
.su-btn-yellow { background: var(--su-yellow); color: var(--su-navy); box-shadow: 0 4px 0 #d9a514; }
.su-btn-yellow:hover { background: #ffd457; color: var(--su-navy); }
.su-btn-outline { background: transparent; color: var(--su-navy); border: 2px solid var(--su-navy); }
.su-btn-outline:hover { background: var(--su-navy); color: #fff; }
.su-tag { display: inline-block; padding: 3px 12px; border-radius: 6px; background: var(--su-navy); color: var(--su-yellow); font-size: 14px; font-weight: 500; margin: 0 0 12px; letter-spacing: .3px; }

/* ---------- hero: text left, learning path right ---------- */
.su-hero { padding: 30px 0 26px; border-bottom: 1px solid var(--su-line); background: linear-gradient(180deg, #fff9e8, var(--su-bg)); }
.su-hero .su-box { display: grid; gap: 26px; }
.su-hero .su-box > * { min-width: 0; }
.su-trail { font-size: 14px; color: var(--su-muted); margin: 0 0 10px; }
.su-trail a { color: var(--su-muted); }
.su-hero h1 { font-size: clamp(30px, 5.4vw, 46px); line-height: 1.28; font-weight: 600; margin: 0 0 14px; color: var(--su-navy); }
.su-hero h1 mark { background: var(--su-yellow); color: var(--su-navy); padding: 0 8px; border-radius: 6px; }
.su-intro { font-size: 18px; margin: 0 0 16px; }
.su-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; }
.su-affil { font-size: 14px; color: var(--su-muted); margin: 0 0 6px; padding-left: 12px; border-left: 3px solid var(--su-yellow); }
.su-by { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--su-muted); margin: 0; }
.su-path { list-style: none; margin: 0; padding: 18px; counter-reset: sup; background: var(--su-paper); border: 2px solid var(--su-navy); border-radius: 16px; box-shadow: 6px 6px 0 var(--su-yellow); }
.su-path-t { font-family: 'Kanit', sans-serif; font-weight: 500; color: var(--su-navy); margin: 0 0 10px; }
.su-path li { counter-increment: sup; position: relative; padding: 0 0 14px 46px; }
.su-path li:last-child { padding-bottom: 0; }
.su-path li::before { content: counter(sup); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--su-yellow); color: var(--su-navy); font-family: 'Kanit', sans-serif; font-weight: 600; }
.su-path li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--su-line); }
.su-path a { color: var(--su-navy); text-decoration: none; }
.su-path a:hover b { color: var(--su-blue); }
.su-path b { display: block; font-weight: 500; line-height: 1.4; }
.su-path small { display: block; font-size: 14px; color: var(--su-muted); line-height: 1.5; }
.su-figure { margin: 0; border-radius: 16px; overflow: hidden; border: 2px solid var(--su-navy); }

/* ---------- body ---------- */
.su-main { padding: 26px 0 50px; }
.su-terms { max-width: var(--su-read); margin: 0 auto 6px; padding: 16px 18px; background: var(--su-yellow-soft); border-radius: 14px; border: 1px dashed #d9a514; }
.su-terms p { margin: 0 0 8px; font-family: 'Kanit', sans-serif; font-weight: 500; color: var(--su-navy); }
.su-terms dl { margin: 0; display: grid; gap: 6px; }
.su-terms dt { font-weight: 700; color: var(--su-navy); display: inline; }
.su-terms dd { margin: 0; display: inline; }
.su-terms div { font-size: 15px; line-height: 1.6; }
.su-text { max-width: var(--su-read); margin: 0 auto; }
.su-text section { padding-top: 28px; }
.su-text h2 { font-size: clamp(23px, 3.5vw, 29px); line-height: 1.4; font-weight: 600; color: var(--su-navy); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 3px solid var(--su-yellow); }
.su-text h3 { font-size: 21px; font-weight: 500; line-height: 1.45; color: var(--su-blue); margin: 22px 0 8px; }
.su-text p { margin: 0 0 14px; }
.su-key { font-size: 18px; padding: 14px 16px; background: var(--su-paper); border-radius: 12px; border: 1px solid var(--su-line); }
.su-text ul, .su-text ol { margin: 0 0 16px; padding-left: 1.3em; }
.su-text li { margin: 0 0 8px; }
.su-text li::marker { color: var(--su-blue); font-weight: 700; }
.su-hint { padding: 12px 16px 12px 48px; margin: 0 0 16px; border-radius: 12px; background: #eaf0ff; position: relative; }
.su-hint::before { content: "💡"; position: absolute; left: 14px; top: 12px; }
.su-hint p:last-child { margin: 0; }
.su-warn { padding: 12px 16px 12px 48px; margin: 0 0 16px; border-radius: 12px; background: #fdecea; position: relative; }
.su-warn::before { content: "⚠️"; position: absolute; left: 14px; top: 12px; }
.su-warn p:last-child { margin: 0; }
.su-calc { padding: 12px 16px; margin: 0 0 16px; border-radius: 10px; background: var(--su-navy); color: #fff; font-family: 'Kanit', sans-serif; }
.su-howto { list-style: none; padding: 0 !important; counter-reset: suh; }
.su-howto li { counter-increment: suh; padding: 12px 14px 12px 60px; margin-bottom: 10px; border-radius: 12px; background: var(--su-paper); border: 1px solid var(--su-line); position: relative; }
.su-howto li::before { content: "ขั้น " counter(suh); position: absolute; left: 10px; top: 13px; font-family: 'Kanit', sans-serif; font-size: 12px; font-weight: 600; color: var(--su-navy); background: var(--su-yellow); padding: 1px 6px; border-radius: 6px; }
.su-cards { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.su-cards li { margin: 0 !important; padding: 14px 16px; border-radius: 12px; background: var(--su-paper); border-left: 5px solid var(--su-blue); }
.su-cards b { font-family: 'Kanit', sans-serif; font-weight: 500; color: var(--su-navy); }
.su-vs { display: grid; gap: 12px; margin: 0 0 16px; }
.su-vs > div { padding: 14px 16px; border-radius: 12px; background: var(--su-paper); border: 1px solid var(--su-line); }
.su-vs h4 { margin: 0 0 6px; font-weight: 500; }
.su-vs .su-plus h4 { color: #1d6b3a; }
.su-vs .su-minus h4 { color: var(--su-red); }
.su-vs ul { margin: 0; }

/* FAQ cards (no headings inside) */
.su-faq { display: grid; gap: 10px; margin: 0 0 14px; }
.su-faq > div { padding: 14px 16px; border-radius: 12px; background: var(--su-paper); border: 1px solid var(--su-line); }
.su-qa-q { margin: 0 0 4px !important; font-weight: 500; color: var(--su-navy); font-size: 18px; }
.su-qa-q::before { content: "Q · "; color: var(--su-blue); }
.su-faq > div p:last-child { margin: 0; }

/* writer, safe, call to action */
.su-writer { display: flex; gap: 12px; align-items: center; margin-top: 28px; padding: 14px 16px; border-radius: 12px; background: var(--su-sand); }
.su-writer svg { flex: 0 0 48px; width: 48px; height: 48px; }
.su-writer p { margin: 0; font-size: 15px; color: var(--su-muted); }
.su-writer b { color: var(--su-navy); }
.su-safe { margin-top: 14px; padding: 14px 16px; border-radius: 12px; border: 2px solid var(--su-navy); font-size: 15px; background: var(--su-paper); }
.su-banner { margin-top: 26px; padding: 24px 20px; border-radius: 16px; background: var(--su-navy); color: #fff; display: grid; gap: 12px; justify-items: start; }
.su-banner p { margin: 0; font-family: 'Kanit', sans-serif; font-size: 20px; }

/* next lessons */
.su-next { max-width: var(--su-read); margin: 34px auto 0; }
.su-next-t { font-family: 'Kanit', sans-serif; font-weight: 500; font-size: 20px; color: var(--su-navy); margin: 0 0 10px; }
.su-next ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: sun; }
.su-next li { counter-increment: sun; }
.su-next a { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--su-paper); border: 1px solid var(--su-line); text-decoration: none; color: var(--su-ink); }
.su-next a::before { content: counter(sun); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--su-navy); color: var(--su-yellow); font-family: 'Kanit', sans-serif; }
.su-next a:hover { border-color: var(--su-blue); color: var(--su-ink); }
.su-next b { display: block; font-family: 'Kanit', sans-serif; font-weight: 500; color: var(--su-navy); }
.su-next small { display: block; font-size: 14px; color: var(--su-muted); }

/* ---------- footer ---------- */
.su-foot { margin-top: 10px; background: var(--su-sand); border-top: 4px solid var(--su-navy); padding: 30px 0 100px; font-size: 15px; color: var(--su-muted); }
.su-foot-top { display: grid; gap: 18px; }
.su-foot h2 { font-family: 'Kanit', sans-serif; font-size: 16px; font-weight: 500; color: var(--su-navy); margin: 0 0 6px; }
.su-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.su-foot a { color: var(--su-ink); }
.su-foot-legal { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--su-line); font-size: 14px; }
.su-foot-legal p { margin: 0 0 6px; }
.su-20 { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 6px; background: var(--su-navy); color: var(--su-yellow); font-weight: 700; }

/* mobile bottom CTA */
.su-mobile-cta { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 14px; background: var(--su-navy); color: #fff; box-shadow: 0 10px 28px rgba(20,33,61,.35); }
.su-mobile-cta span { font-family: 'Kanit', sans-serif; font-size: 15px; }
.su-mobile-cta .su-btn { min-height: 42px; padding: 8px 16px; font-size: 15px; box-shadow: none; }

@media (min-width: 720px) {
  .su-vs { grid-template-columns: 1fr 1fr; }
  .su-cards { grid-template-columns: 1fr 1fr; }
  .su-foot-top { grid-template-columns: repeat(3, 1fr); }
  .su-foot ul { display: block; }
  .su-foot li { margin-bottom: 4px; }
}
@media (min-width: 980px) {
  .su-hero .su-box { grid-template-columns: 1.25fr .9fr; align-items: start; }
  .su-hero.su-wide .su-box { grid-template-columns: 1fr; max-width: 860px; }
  .su-nav { display: block; }
  .su-drawer { display: none; }
  .su-btn.su-head-cta { display: inline-flex; min-height: 42px; padding: 8px 18px; font-size: 16px; box-shadow: none; }
  .su-mobile-cta { display: none; }
  .su-foot { padding-bottom: 30px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.su-path + .su-figure { margin-top: 18px; }

/* ---------- learn: lesson progress + lesson cards ---------- */
.su-step { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 14px; font-weight: 600; color: var(--su-navy); }
.su-bar { flex: 0 1 180px; height: 8px; border-radius: 8px; background: var(--su-line); overflow: hidden; }
.su-bar i { display: block; height: 100%; background: var(--su-yellow); border-right: 2px solid var(--su-navy); }
.su-lessons { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 14px; counter-reset: les; }
.su-lessons li { counter-increment: les; }
.su-lessons a { display: grid; grid-template-columns: 46px 1fr; gap: 4px 14px; padding: 16px 18px; background: var(--su-paper); border: 2px solid var(--su-line); border-radius: 14px; color: var(--su-ink); text-decoration: none; }
.su-lessons a::before { content: counter(les); grid-row: span 2; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--su-navy); color: var(--su-yellow); font-family: 'Kanit', sans-serif; font-size: 20px; font-weight: 600; }
.su-lessons a:hover { border-color: var(--su-navy); box-shadow: 4px 4px 0 var(--su-yellow); }
.su-lessons b { font-family: 'Kanit', sans-serif; font-weight: 500; color: var(--su-navy); line-height: 1.4; }
.su-lessons small { font-size: 15px; color: var(--su-muted); line-height: 1.6; }
.su-day { display: grid; gap: 10px; margin: 16px 0; padding: 0; list-style: none; }
.su-day li { padding: 12px 16px; background: var(--su-paper); border-left: 5px solid var(--su-yellow); border-radius: 0 12px 12px 0; }
.su-day b { font-family: 'Kanit', sans-serif; font-weight: 500; color: var(--su-navy); }
.su-gl { margin: 16px 0; display: grid; gap: 10px; }
.su-gl div { padding: 12px 16px; background: var(--su-paper); border: 1px solid var(--su-line); border-radius: 12px; }
.su-gl dt { font-family: 'Kanit', sans-serif; font-weight: 500; color: var(--su-navy); }
.su-gl dt small { font-family: 'IBM Plex Sans Thai', sans-serif; font-weight: 400; color: var(--su-muted); margin-left: 6px; }
.su-gl dd { margin: 2px 0 0; }
