/* หน้าเนื้อหา (แกลเลอรี บทความ) — ฐานร่วม: โทเค็นสี, header/footer, ปุ่ม, breadcrumb, ชิป, แถบ CTA, 404
   สีตาม brand guideline (AGENTS.md): navy #021525, ฟ้า #0093fe, lime #d9ff5c เป็นจุดเน้น, ข้อความฟ้าอ่อน #7cc8ff
   ไฟล์เฉพาะส่วน: gallery.css (ทีม gallery), article.css (ทีม articles) */
:root {
  --sn-navy: #021525; --sn-navy-2: #01101d; --sn-navy-3: #010b14;
  --sn-surface: #07233a; --sn-surface-2: #0c2e49;
  --sn-blue: #0093fe; --sn-blue-deep: #0052b5; --sn-sky: #7cc8ff;
  --acc: #d9ff5c; --acc-rgb: 217,255,92; --acc-ink: #021525;
  --sn-ink: #eaf3fb; --sn-muted: #a8c2d8; --sn-line: rgba(234,243,251,.12);
  --sn-paper: #ffffff; --sn-paper-2: #e8f2fb; --sn-paper-ink: #0f2133; --sn-paper-muted: #50667c; --sn-paper-line: #d8e3ee;
  --sn-radius: 16px; --sn-radius-sm: 10px;
  --sn-wrap: 1200px;
  --sn-ease: cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; font-family: 'IBM Plex Sans Thai', system-ui, sans-serif; background: var(--sn-navy); color: var(--sn-ink); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--sn-sky); }
h1, h2, h3, h4 { line-height: 1.3; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--sn-blue); outline-offset: 2px; border-radius: 4px; }
.sn-wrap { width: 100%; max-width: var(--sn-wrap); margin: 0 auto; padding: 0 24px; }
.sn-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--acc); color: var(--acc-ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.sn-skip:focus { left: 8px; }
.sn-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: .8125rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sn-sky); }
.sn-eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--sn-blue); }

/* header */
.sn-header { position: sticky; top: 0; z-index: 50; background: rgba(2,21,37,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--sn-line); }
.sn-bar { height: 72px; display: flex; align-items: center; gap: 28px; }
.sn-logo img { height: 36px; width: auto; display: block; }
.sn-nav { display: flex; gap: 26px; margin-left: 8px; }
.sn-nav a, .sn-login { color: #c9dbec; text-decoration: none; font-weight: 500; font-size: .9375rem; white-space: nowrap; transition: color .15s; }
.sn-nav a:hover, .sn-login:hover, .sn-nav a[aria-current] { color: #fff; }
.sn-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--acc); padding-bottom: 4px; }
.sn-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.sn-menu { display: none; position: relative; }
.sn-menu summary { list-style: none; cursor: pointer; width: 42px; height: 42px; display: grid; place-content: center; gap: 5px; border-radius: 10px; }
.sn-menu summary::-webkit-details-marker { display: none; }
.sn-menu summary span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.sn-menu[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sn-menu[open] summary span:nth-child(2) { opacity: 0; }
.sn-menu[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.sn-drawer { position: fixed; left: 0; right: 0; top: 72px; background: var(--sn-navy-2); border-bottom: 1px solid var(--sn-line); padding: 12px 24px 24px; display: flex; flex-direction: column; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.sn-drawer a { color: #dbe8f4; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--sn-line); font-weight: 500; }

/* ปุ่ม — ปุ่มหลักเหมือน .btn-primary ของหน้าแรก: ไล่สีฟ้า ตัวอักษรเข้ม */
.sn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--sn-line); color: var(--sn-ink); background: rgba(255,255,255,.04); text-decoration: none; font-weight: 600; font-size: .9375rem; white-space: nowrap; transition: transform .15s var(--sn-ease), background .15s, border-color .15s, box-shadow .15s; cursor: pointer; font-family: inherit; }
.sn-btn:hover { border-color: rgba(124,200,255,.5); background: rgba(124,200,255,.08); transform: translateY(-1px); }
.sn-btn-primary { background: linear-gradient(180deg, #2aa6ff, #0093fe 55%, #0a7fe0); color: #021525; border-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 24px rgba(0,147,254,.35); }
.sn-btn-primary:hover { background: linear-gradient(180deg, #45b2ff, #12a0ff 55%, #0a86ea); color: #021525; }
.sn-btn-accent { background: var(--acc); color: var(--acc-ink); border-color: transparent; }
.sn-btn-accent:hover { background: #e6ff8a; color: var(--acc-ink); }

/* breadcrumb, ชิป, แบ่งหน้า */
.sn-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; font-size: .875rem; color: var(--sn-muted); }
.sn-crumbs li + li::before { content: '›'; margin-right: 6px; opacity: .6; }
.sn-crumbs a { color: var(--sn-muted); text-decoration: none; }
.sn-crumbs a:hover { color: #fff; }
.sn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sn-chip { display: inline-flex; align-items: center; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--sn-line); color: #d3e3f2; text-decoration: none; font-size: .9rem; font-weight: 500; background: rgba(255,255,255,.03); transition: background .15s, border-color .15s, color .15s; }
.sn-chip:hover { border-color: rgba(124,200,255,.5); color: #fff; }
.sn-chip[aria-current] { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); font-weight: 600; }
.sn-pager { display: flex; justify-content: center; gap: 8px; margin: 48px 0 0; flex-wrap: wrap; }
.sn-pager a, .sn-pager span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border-radius: 12px; border: 1px solid var(--sn-line); color: var(--sn-ink); text-decoration: none; }
.sn-pager [aria-current] { background: var(--sn-blue); border-color: var(--sn-blue); color: #021525; font-weight: 700; }

/* แถบ CTA ขอ Demo — ใช้ท้ายหน้าแกลเลอรีและบทความ */
.sn-cta { position: relative; overflow: hidden; margin: 72px 0 0; padding: 48px 40px; border-radius: 24px; background: radial-gradient(600px 300px at 90% 0%, rgba(var(--acc-rgb),.18), transparent 60%), linear-gradient(135deg, #0052b5, #003a82); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sn-cta h2 { margin: 0 0 6px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.sn-cta p { margin: 0; color: #d6e8ff; max-width: 560px; }

/* footer */
.sn-footer { margin-top: 96px; background: var(--sn-navy-2); border-top: 1px solid var(--sn-line); padding: 48px 0 32px; font-size: .9rem; }
.sn-foot-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--sn-line); }
.sn-foot-top img { height: 32px; width: auto; display: block; }
.sn-foot-links, .sn-foot-contact { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.sn-foot-links a, .sn-foot-contact a { color: rgba(255,255,255,.68); text-decoration: none; }
.sn-foot-links a:hover, .sn-foot-contact a:hover { color: #fff; }
.sn-foot-contact { padding: 24px 0; border-bottom: 1px solid var(--sn-line); }
.sn-foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; color: rgba(255,255,255,.5); }
.sn-foot-bottom p { margin: 0; }
.sn-foot-bottom a { color: rgba(255,255,255,.7); }

/* 404 */
.sn-404 { padding: 120px 24px 40px; text-align: center; }
.sn-404 .sn-eyebrow { justify-content: center; }
.sn-404 h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 12px; }
.sn-404 p { color: var(--sn-muted); }
.sn-404-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px !important; }

/* placeholder ของรูประหว่างโหลด (lqip เป็น background-image ของ <img>) */
img[style*="background-image"] { background-size: cover; background-position: center; }

@media (max-width: 1080px) {
  .sn-nav, .sn-login { display: none; }
  .sn-menu { display: block; }
}
@media (max-width: 520px) {
  .sn-wrap { padding: 0 16px; }
  .sn-actions .sn-btn-primary { padding: 9px 14px; font-size: .875rem; }
  .sn-logo img { height: 30px; }
  .sn-cta { padding: 32px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
