/* SimHub — ระบบดีไซน์กลาง "Airy Light" (ใช้กับหน้าใหม่: index, view และหน้าทั่วไป)
   ฟอนต์ไม่มีหัวเท่านั้น: IBM Plex Sans Thai → Noto Sans Thai → Anuphan → system-ui
   หน้าแอดมินและหน้าเดิมอื่น ๆ ไม่ได้ใช้ไฟล์นี้ */
:root{
  --bg:#fbfaf7;--card:#fff;--ink:#14161c;--ink2:#555b68;--ink3:#6f7582;--line:#ebe8e1;--soft:#f3f1ec;
  --blue:#2563eb;--blue-d:#1d4ed8;--blue-s:#eaf0ff;
  --ok:#16794a;--ok-s:#e8f6ee;--warn:#9a5b06;--warn-s:#fff5d9;--bad:#b42318;--bad-s:#fdecea;
  /* เงาชั้นเดียว รัศมีเล็ก: การ์ดจำนวนมากจึงไม่หน่วงตอนเลื่อนหน้า */
  --sh1:0 2px 8px rgba(20,22,28,.06);
  --sh2:0 10px 28px rgba(20,22,28,.10);
  --font:'IBM Plex Sans Thai','Noto Sans Thai','Anuphan',system-ui,sans-serif;
}
*{box-sizing:border-box;margin:0}
html{-webkit-text-size-adjust:100%}
body{font-family:var(--font);background:var(--bg);color:var(--ink);line-height:1.6;overflow-x:hidden;-webkit-font-smoothing:antialiased;font-size:16px}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font-family:inherit;font-size:inherit;color:inherit}
button{cursor:pointer}
img{max-width:100%}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px;border-radius:6px}
.wrap{max-width:1120px;margin:0 auto;padding:0 20px}
.wrap.narrow{max-width:1040px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
svg.i{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
img.i3{display:block;flex:none;object-fit:contain}

/* ── แถบนำทางบน ── */
/* พื้นทึบ (ไม่ใช้ backdrop-filter: blur ที่ต้องวาดใหม่ทุกเฟรมตอนเลื่อน) */
.nav{position:sticky;top:0;z-index:30;background:#fbfaf7;border-bottom:1px solid var(--line)}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;height:60px;gap:12px}
.logo{font-weight:700;font-size:19px;letter-spacing:-.02em;display:flex;align-items:center;gap:9px;min-height:44px;white-space:nowrap}
.logo i{width:24px;height:24px;border-radius:8px;background:var(--blue);display:grid;place-items:center;box-shadow:0 4px 10px rgba(37,99,235,.3)}
.logo i::after{content:"";width:8px;height:8px;border-radius:50%;background:#fff}
.links{display:none;gap:2px;font-size:15px;color:var(--ink2)}
.links a{white-space:nowrap;padding:0 14px;height:44px;display:inline-flex;align-items:center;border-radius:999px;font-weight:500}
.links a:hover{color:var(--ink)}
.links a.on{color:var(--ink);background:var(--soft)}
.who{display:flex;align-items:center;gap:8px;min-height:44px;font-weight:500;font-size:15px;flex:none}
.who .out{border:0;background:none;color:var(--ink3);font-size:14px;min-height:44px;min-width:44px;padding:0 6px;display:inline-flex;align-items:center;justify-content:center}
.who .out:hover{color:var(--ink)}

@media(min-width:820px){.links{display:flex}}

/* ── ตัวอักษร ── */
h1{font-size:clamp(28px,7vw,40px);line-height:1.25;font-weight:700;letter-spacing:-.02em}
h2{font-size:clamp(21px,5vw,26px);font-weight:700;letter-spacing:-.015em;line-height:1.3}
h3{font-size:16px;font-weight:600;line-height:1.4}
.sub{color:var(--ink3);font-size:15px}
.muted{color:var(--ink3)}
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:500;color:var(--blue-d);background:var(--blue-s);padding:5px 13px;border-radius:999px}
section{padding:28px 0}
@media(min-width:820px){section{padding:36px 0}}
.more{color:var(--blue-d);font-weight:600;font-size:15px;min-height:44px;display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.more svg{width:16px;height:16px}

/* ── ปุ่มและตัวควบคุม ── */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;border-radius:999px;font-weight:600;font-size:16px;border:0;transition:.2s;white-space:nowrap}
.btn.p{background:var(--blue);color:#fff;box-shadow:0 8px 20px rgba(37,99,235,.22)}
.btn.p:hover{background:var(--blue-d)}
.btn.s{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.btn.s:hover{box-shadow:inset 0 0 0 1px #cfcbc0}
.btn.t{background:transparent;color:var(--blue-d);padding:0 12px}
.btn.sm{min-height:44px;padding:0 16px;font-size:14.5px}
.btn.w{width:100%}
.btn[disabled]{opacity:.5;cursor:default}
.seg{display:inline-flex;background:#f0eee8;border-radius:999px;padding:4px;gap:2px;max-width:100%;overflow-x:auto;scrollbar-width:none}
.seg::-webkit-scrollbar{display:none}
.seg button{border:0;background:transparent;font-weight:500;font-size:14.5px;padding:0 16px;min-height:44px;min-width:44px;border-radius:999px;color:var(--ink2);white-space:nowrap}
.seg button[aria-pressed=true]{background:#fff;color:var(--ink);box-shadow:var(--sh1)}
.seg button sup{font-size:11px;color:var(--ink3);margin-left:4px;font-weight:500}
.pill{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;font-weight:600;padding:3px 11px;border-radius:999px;background:var(--soft);color:var(--ink2);white-space:nowrap}
.pill.ok{background:var(--ok-s);color:var(--ok)}
.pill.blue{background:var(--blue-s);color:var(--blue-d)}
.pill.warn{background:var(--warn-s);color:var(--warn)}
.pill.soon{background:#f3ecfb;color:#6a3da8}
.pill.bad{background:var(--bad-s);color:var(--bad)}
.pill svg{width:13px;height:13px;stroke-width:2.4}
.card{background:var(--card);border-radius:24px;box-shadow:var(--sh1);padding:20px}
a.card,button.card{transition:.2s}
a.card:hover,button.card:hover{box-shadow:var(--sh2);transform:translateY(-2px)}
.inp{width:100%;min-height:48px;border-radius:14px;border:1px solid var(--line);background:#fff;padding:10px 14px;outline:0}
.inp:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(37,99,235,.14)}
.fld{font-size:14px;font-weight:600;color:var(--ink2);display:block;margin-bottom:6px}
.x{width:44px;height:44px;border-radius:50%;border:0;background:var(--soft);display:grid;place-items:center;flex:none}
.ib{min-width:44px;height:44px;border-radius:12px;border:0;background:transparent;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 10px;font-weight:500;font-size:14.5px;color:var(--ink2);flex:none}
.ib:hover{background:var(--soft);color:var(--ink)}

/* โทนพาสเทลของการ์ดบท 6 สี */
.t0{--t0:#eaf0ff;--t1:#2f5fd0}.t1{--t0:#fdeee4;--t1:#b3531f}.t2{--t0:#e7f6ee;--t1:#24774d}.t3{--t0:#f3ecfb;--t1:#7243b0}.t4{--t0:#fff5d9;--t1:#8a6a08}.t5{--t0:#e6f5f8;--t1:#1d6f80}

/* ── สถานะว่าง ── */
.empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:36px 20px;color:var(--ink2)}
.empty b{font-size:17px;color:var(--ink);font-weight:600}
.empty p{max-width:30em;font-size:15px}

/* ── ข้อความแจ้ง ── */
.toast{position:fixed;left:50%;bottom:84px;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:10050;background:var(--ink);color:#fff;border-radius:16px;padding:12px 18px;font-size:14.5px;display:flex;gap:10px;align-items:center;max-width:calc(100vw - 32px);transition:.3s;box-shadow:0 12px 32px rgba(20,22,28,.25)}
.toast.show{opacity:1;transform:translate(-50%,0);pointer-events:auto}
.toast button{background:none;border:0;color:#9db9ff;font-weight:600;min-height:44px;padding:0 6px;margin:-8px 0}

/* ── โลโก้ Create Physics × Grow Up Study ──
   ภาพต้นฉบับออกแบบมาสำหรับพื้นเข้ม (ลายเส้นเทาอ่อน/ขาว) → วางบนแถบเข้มเสมอ ไม่แก้สีภาพ */
.brand{display:inline-flex;align-items:center;background:#14161c;border-radius:16px;padding:6px 12px;box-shadow:0 6px 18px rgba(20,22,28,.16);line-height:0;flex:none}
.brand img{display:block;height:44px;width:auto}
.brand.lg{border-radius:20px;padding:8px 16px}
.brand.lg img{height:56px}
@media(min-width:960px){.brand.lg img{height:76px}}
.brand.sm{border-radius:12px;padding:4px 10px}
.brand.sm img{height:40px}
a.brand{min-height:44px;transition:.2s}
a.brand:hover{box-shadow:0 8px 22px rgba(20,22,28,.24)}

/* ── ท้ายหน้า ── */
.foot{padding:28px 0 36px;color:var(--ink3);font-size:13.5px;border-top:1px solid var(--line);margin-top:28px}
.foot .wrap{display:flex;flex-wrap:wrap;gap:12px 16px;justify-content:space-between;align-items:center}
.foot .own{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.foot nav{display:flex;flex-wrap:wrap;gap:0 16px}
.foot a{color:var(--ink2);font-weight:500;min-height:44px;min-width:44px;display:inline-flex;align-items:center}
.foot a:hover{color:var(--blue-d)}

.spin{width:40px;height:40px;border:4px solid var(--blue-s);border-top-color:var(--blue);border-radius:50%;animation:sh-spin 1s linear infinite}
@keyframes sh-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
