/* extra.css — หน้าการเผยแพร่ย่อย / วิเทศน์สัมพันธ์ / ฐานข้อมูลงานวิจัย */

/* ---------- แถบแท็บย่อย (ใช้ซ้ำ) ---------- */
.subnav { position: sticky; top: var(--nav-h); z-index: 30; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid rgba(0, 0, 0, .07); }
.subnav__in { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 8px 16px; border-radius: 980px; font-size: 14.5px; font-weight: 600; color: var(--gray-600); white-space: nowrap; transition: .2s; }
.subnav a:hover { text-decoration: none; color: var(--ink); background: var(--gray-100); }
.subnav a.is-on { background: var(--ink); color: #fff; }
@media (min-width: 900px) { .subnav__in { justify-content: center; } }

/* ---------- สถานะข้อมูลสด ---------- */
.live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 980px; background: rgba(0, 0, 0, .05); font-size: 13px; font-weight: 600; color: var(--gray-600); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 0 rgba(48, 209, 88, .6); animation: lvp 1.8s infinite; }
.live.off i { background: #ff9f0a; animation: none; }
.live.dk { background: rgba(255, 255, 255, .1); color: #d2d2d7; }
@keyframes lvp { 70% { box-shadow: 0 0 0 9px rgba(48, 209, 88, 0); } 100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); } }

/* ---------- แถบสถิติ ---------- */
.kp { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 40px; }
.kp__i { padding: 20px 22px; border-radius: 20px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 12px 32px -22px rgba(0, 0, 0, .3); }
.kp__n { font-size: clamp(34px, 5vw, 46px); font-weight: 700; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.kp__l { margin-top: 8px; font-size: 14px; color: var(--gray-600); }

/* ---------- 5 อันดับล่าสุด ---------- */
.lt-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.lt-head h2 { font-size: var(--fs-h2); }
.lt { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.lt__side { display: grid; gap: 14px; }
.pc { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 24px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 14px 36px -24px rgba(0, 0, 0, .35); transition: transform .35s var(--ease-apple), box-shadow .35s; overflow: hidden; }
.pc:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .4); }
.pc__rk { position: absolute; right: 18px; top: 8px; font-size: 64px; font-weight: 800; line-height: 1; color: rgba(0, 0, 0, .05); letter-spacing: -.04em; pointer-events: none; }
.pc__top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-block; padding: 4px 11px; border-radius: 980px; font-size: 12px; font-weight: 700; background: rgba(0, 113, 227, .1); color: var(--blue); letter-spacing: .01em; }
.chip--q { background: rgba(255, 159, 10, .15); color: #b36200; }
.chip--new { background: #ff375f; color: #fff; }
.chip--g { background: rgba(0, 0, 0, .06); color: var(--gray-600); }
.pc h3 { font-size: 17px; line-height: 1.5; font-weight: 600; padding-right: 36px; }
.pc__en { font-size: 13.5px; line-height: 1.5; color: var(--gray-500); }
.pc__au { font-size: 14px; color: var(--gray-600); }
.pc__jr { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.pc__jr small { font-weight: 400; color: var(--gray-600); }
.pc__act { margin-top: auto; padding-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; }
.pc__act a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 980px; font-size: 13px; font-weight: 600; background: var(--gray-100); color: var(--ink); }
.pc__act a:hover { text-decoration: none; background: var(--blue); color: #fff; }
.pc--feat { padding: 32px; background: linear-gradient(150deg, #0b1220 0%, #0d2a55 55%, #0a5bd6 130%); color: #fff; box-shadow: 0 30px 70px -32px rgba(0, 60, 160, .6); }
.pc--feat::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(41, 151, 255, .45), transparent); animation: ptf 12s ease-in-out infinite alternate; }
@keyframes ptf { to { transform: translate(-40px, 40px) scale(1.15); } }
.pc--feat > * { position: relative; }
.pc--feat h3 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.45; color: #fff; padding-right: 0; }
.pc--feat .pc__en, .pc--feat .pc__au { color: #b8c4dc; }
.pc--feat .pc__jr, .pc--feat .pc__jr small { color: #fff; }
.pc--feat .pc__jr small { opacity: .75; }
.pc--feat .chip { background: rgba(255, 255, 255, .16); color: #fff; }
.pc--feat .chip--q { background: rgba(255, 214, 10, .22); color: #ffd60a; }
.pc--feat .chip--new { background: #ff375f; }
.pc--feat .pc__rk { color: rgba(255, 255, 255, .08); font-size: 120px; top: 0; }
.pc--feat .pc__act a { background: rgba(255, 255, 255, .14); color: #fff; }
.pc--feat .pc__act a:hover { background: #fff; color: #0b1220; }
.pc--sm { padding: 18px 20px; gap: 7px; }
.pc--sm h3 { font-size: 15.5px; }
@media (max-width: 900px) { .lt { grid-template-columns: 1fr; } }

/* ---------- เปิดดูทั้งหมด ---------- */
.more-bar { display: flex; justify-content: center; margin: 30px 0 4px; }
.btn-more { appearance: none; border: 0; cursor: pointer; font: inherit; font-size: 16px; font-weight: 600; padding: 14px 28px; border-radius: 980px; background: var(--ink); color: #fff; display: inline-flex; gap: 10px; align-items: center; transition: .25s; }
.btn-more:hover { background: var(--blue); transform: translateY(-2px); }
.btn-more svg { width: 18px; height: 18px; transition: transform .3s; }
.btn-more[aria-expanded="true"] svg { transform: rotate(180deg); }
.arch { margin-top: 28px; padding: 26px; border-radius: 28px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 24px 60px -36px rgba(0, 0, 0, .35); }
.arch[hidden] { display: none; }
.arch__tools { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.arch__tools input[type=search], .arch__tools select { font: inherit; font-size: 15px; padding: 11px 16px; border-radius: 12px; border: 1px solid var(--gray-300); background: var(--gray-50); color: var(--ink); min-width: 0; }
.arch__tools input[type=search] { flex: 1 1 240px; }
.arch__tools input:focus, .arch__tools select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
.arch__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.fc { appearance: none; border: 1px solid var(--gray-300); background: #fff; font: inherit; font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: 980px; cursor: pointer; color: var(--ink); }
.fc.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.fc span { opacity: .55; margin-left: 4px; font-size: 12px; }
.arch__count { font-size: 14px; color: var(--gray-600); margin: 12px 0; }
.row { display: grid; grid-template-columns: 74px 1fr auto; gap: 16px; padding: 16px 4px; border-top: 1px solid var(--gray-200, #e8e8ed); align-items: start; }
.row__y { font-size: 20px; font-weight: 700; color: var(--blue); font-variant-numeric: tabular-nums; }
.row h3 { font-size: 15.5px; line-height: 1.55; font-weight: 600; }
.row p { font-size: 13.5px; color: var(--gray-600); margin-top: 2px; }
.row__go a { display: inline-block; padding: 6px 13px; border-radius: 980px; background: var(--gray-100); font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.row__go a:hover { text-decoration: none; background: var(--blue); color: #fff; }
.loadmore { display: block; margin: 20px auto 0; appearance: none; border: 1px solid var(--gray-300); background: #fff; font: inherit; font-weight: 600; padding: 11px 26px; border-radius: 980px; cursor: pointer; }
.loadmore:hover { border-color: var(--blue); color: var(--blue); }
.loadmore[hidden] { display: none; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; gap: 6px; } .row__y { font-size: 14px; } .arch { padding: 18px; border-radius: 22px; } }

/* ---------- ข้อความสถานะ / ว่าง ---------- */
.state { padding: 44px 24px; text-align: center; border-radius: 28px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 18px 44px -30px rgba(0, 0, 0, .3); }
.state svg { width: 52px; height: 52px; margin: 0 auto 14px; color: var(--blue); }
.state h3 { font-size: 20px; margin-bottom: 6px; }
.state p { color: var(--gray-600); max-width: 520px; margin: 0 auto 18px; }
.skel { height: 120px; border-radius: 24px; background: linear-gradient(90deg, #ececf0 25%, #f6f6f8 50%, #ececf0 75%); background-size: 200% 100%; animation: skel 1.3s infinite; margin-bottom: 14px; }
@keyframes skel { to { background-position: -200% 0; } }

/* ---------- ทรัพย์สินทางปัญญา (wow) ---------- */
.ipx { position: relative; overflow: hidden; background: #05060c; color: #f5f5f7; padding: clamp(56px, 8vw, 96px) 0; isolation: isolate; }
.ipx::before { content: ""; position: absolute; inset: -30% -10% auto; height: 120%; z-index: -1; background: radial-gradient(40% 40% at 20% 30%, rgba(255, 214, 10, .22), transparent 70%), radial-gradient(40% 45% at 80% 20%, rgba(168, 85, 247, .26), transparent 70%), radial-gradient(45% 45% at 55% 90%, rgba(41, 151, 255, .22), transparent 70%); animation: drift 16s ease-in-out infinite alternate; }
.ipx::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); }
.ipx h2 { color: #fff; }
.ipx__head { text-align: center; max-width: 760px; margin: 0 auto 36px; }
.ipx__big { display: flex; justify-content: center; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 6px 0 4px; }
.ipx__n { font-size: clamp(84px, 16vw, 160px); font-weight: 800; line-height: .95; letter-spacing: -.05em; background: linear-gradient(120deg, #ffd60a, #ff9f0a 40%, #ff375f 75%, #bf5af2); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.ipx__u { font-size: clamp(20px, 3vw, 30px); font-weight: 600; color: #d2d2d7; }
.ipx__sub { color: #a1a1a6; font-size: 17px; }
.ipx__types { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.ipx__types span { padding: 7px 16px; border-radius: 980px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 14px; font-weight: 600; }
.ipx__types b { color: #ffd60a; margin-right: 6px; }
.ipg { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; perspective: 1200px; margin-top: 40px; }
.ipc { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; position: relative; border-radius: 26px; padding: 2px; background: conic-gradient(from var(--ang, 0deg), #ffd60a, #ff375f, #bf5af2, #2997ff, #30d158, #ffd60a); animation: ipspin 6s linear infinite; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s ease-out; transform-style: preserve-3d; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ipspin { to { --ang: 360deg; } }
.ipc__in { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; padding: 26px 24px 24px; border-radius: 24px; background: linear-gradient(160deg, #11131f, #0a0b14); overflow: hidden; }
.ipc__in::after { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 255, 255, .13), transparent 60%); pointer-events: none; }
.ipc__seal { display: flex; justify-content: space-between; align-items: center; }
.ipc__badge { padding: 5px 13px; border-radius: 980px; font-size: 12.5px; font-weight: 700; color: #1d1100; background: linear-gradient(120deg, #ffd60a, #ff9f0a); }
.ipc__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 214, 10, .14); color: #ffd60a; }
.ipc__ico svg { width: 24px; height: 24px; }
.ipc__no { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: clamp(22px, 3.2vw, 28px); font-weight: 700; letter-spacing: .06em; color: #fff; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ipc__no small { display: block; width: 100%; font-family: inherit; font-size: 11.5px; font-weight: 600; letter-spacing: .14em; color: #8e8e93; text-transform: uppercase; }
.ipc__cp { appearance: none; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #d2d2d7; font: inherit; font-size: 12px; padding: 4px 10px; border-radius: 980px; cursor: pointer; }
.ipc__cp:hover { background: #fff; color: #000; }
.ipc h3 { font-size: 17.5px; line-height: 1.6; font-weight: 600; color: #f5f5f7; }
.ipc__meta { margin-top: auto; display: grid; gap: 8px; padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, .16); font-size: 13.5px; color: #a1a1a6; }
.ipc__meta b { color: #e5e5ea; font-weight: 600; }
.ipc__inv { display: flex; flex-wrap: wrap; gap: 6px; }
.ipc__inv span { padding: 3px 10px; border-radius: 980px; background: rgba(255, 255, 255, .08); font-size: 12.5px; color: #e5e5ea; }
.iptl { position: relative; margin: 54px auto 0; max-width: 820px; padding: 8px 0 0; }
.iptl__line { position: absolute; left: 0; right: 0; top: 22px; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent); }
.iptl__pts { position: relative; display: flex; justify-content: space-around; gap: 12px; }
.iptl__p { text-align: center; }
.iptl__p i { display: block; width: 14px; height: 14px; margin: 16px auto 10px; border-radius: 50%; background: #ffd60a; box-shadow: 0 0 0 6px rgba(255, 214, 10, .18), 0 0 24px rgba(255, 214, 10, .6); }
.iptl__p b { display: block; font-size: 22px; color: #fff; }
.iptl__p span { font-size: 13.5px; color: #a1a1a6; }
.ipcta { margin-top: 52px; text-align: center; }
.ipcta p { color: #a1a1a6; max-width: 560px; margin: 0 auto 18px; }
.ipcta .btn { margin: 4px; }
@media (prefers-reduced-motion: reduce) { .ipx::before, .ipc, .pc--feat::before, .live i { animation: none; } .ipc { transition: none; } }

/* ---------- วิเทศน์สัมพันธ์ ---------- */
.pil { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pil__c { padding: 26px 24px; border-radius: 24px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 14px 36px -24px rgba(0, 0, 0, .3); transition: transform .35s var(--ease-apple); }
.pil__c:hover { transform: translateY(-5px); }
.pil__ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px; color: var(--c, var(--blue)); background: color-mix(in srgb, var(--c, var(--blue)) 14%, transparent); }
.pil__ico svg { width: 26px; height: 26px; }
.pil__c h3 { font-size: 18px; margin-bottom: 4px; }
.pil__c small { display: block; font-size: 12.5px; color: var(--gray-500); margin-bottom: 10px; }
.pil__c p { font-size: 15px; color: var(--gray-600); line-height: 1.65; }
@media (max-width: 1068px) { .pil { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pil { grid-template-columns: 1fr; } }
.path { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: st; position: relative; }
.path__s { position: relative; padding: 0 14px; text-align: center; }
.path__s::before { counter-increment: st; content: counter(st); display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: #fff; color: var(--blue); font-weight: 800; font-size: 20px; box-shadow: 0 0 0 2px var(--blue), 0 10px 24px -10px rgba(0, 113, 227, .6); position: relative; z-index: 1; }
.path__s::after { content: ""; position: absolute; top: 26px; left: calc(50% + 34px); right: calc(-50% + 34px); height: 2px; background: repeating-linear-gradient(90deg, var(--blue) 0 6px, transparent 6px 12px); opacity: .5; }
.path__s:last-child::after { display: none; }
.path__s b { display: block; font-size: 16px; margin-bottom: 4px; }
.path__s p { font-size: 13.5px; color: var(--gray-600); line-height: 1.55; }
@media (max-width: 800px) { .path { grid-template-columns: 1fr; gap: 20px; } .path__s { display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; text-align: left; padding: 0; } .path__s::before { grid-row: 1 / 3; margin: 0; } .path__s::after { display: none; } }
.glob { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(32px, 6vw, 64px); color: #fff; background: radial-gradient(70% 90% at 85% 10%, rgba(41, 151, 255, .45), transparent 60%), radial-gradient(60% 80% at 10% 100%, rgba(168, 85, 247, .4), transparent 60%), #05070f; }
.glob__g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; }
.glob__g b { display: block; font-size: clamp(38px, 6vw, 60px); line-height: 1; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.glob__g span { font-size: 14.5px; color: #b8c4dc; }
.glob h2 { color: #fff; }
.glob p { color: #b8c4dc; max-width: 640px; }
.glob .live { margin-bottom: 16px; }
@media (max-width: 640px) { .glob__g { grid-template-columns: 1fr 1fr; } }
.gal { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.gal a { display: block; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 14px 36px -24px rgba(0, 0, 0, .4); transition: transform .35s; }
.gal a:hover { text-decoration: none; transform: translateY(-5px); }
.gal img { width: 100%; height: auto; }
.gal span { display: block; padding: 12px 14px; font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.soon { padding: 26px; border: 2px dashed var(--gray-300); border-radius: 24px; text-align: center; color: var(--gray-600); }
.soon b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }

/* ---------- ฐานข้อมูลงานวิจัย ---------- */
.qs { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; border-radius: 22px; background: #fff; box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .45); max-width: 820px; margin: -34px auto 0; position: relative; z-index: 3; }
.qs input { flex: 1 1 260px; font: inherit; font-size: 16px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--gray-300); background: var(--gray-50); min-width: 0; }
.qs select { flex: 0 1 190px; font: inherit; font-size: 15px; padding: 14px 14px; border-radius: 14px; border: 1px solid var(--gray-300); background: var(--gray-50); }
.qs button { flex: 0 0 auto; appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 16px; padding: 14px 28px; border-radius: 14px; background: var(--blue); color: #fff; }
.qs button:hover { background: var(--blue-hover); }
.qs input:focus, .qs select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
.dbt { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 44px 0 10px; }
.dbf { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: center; margin-bottom: 26px; }
.dbf input { font: inherit; font-size: 15px; padding: 10px 16px; border-radius: 980px; border: 1px solid var(--gray-300); background: #fff; min-width: 220px; }
.dbf input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
.dbg { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.db { --c: #0071e3; position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 24px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 14px 36px -24px rgba(0, 0, 0, .32); transition: transform .35s var(--ease-apple), box-shadow .35s; color: inherit; }
.db:hover { text-decoration: none; transform: translateY(-5px); box-shadow: 0 26px 50px -26px color-mix(in srgb, var(--c) 55%, #000); }
.db::before { content: ""; position: absolute; left: 22px; top: 0; width: 44px; height: 3px; border-radius: 0 0 4px 4px; background: var(--c); }
.db[hidden] { display: none; }
.db__top { display: flex; align-items: center; gap: 12px; }
.db__mk { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: #fff; background: linear-gradient(140deg, var(--c), color-mix(in srgb, var(--c) 55%, #000)); }
.db__top b { display: block; font-size: 17px; line-height: 1.3; color: var(--ink); }
.db__top small { font-size: 12.5px; color: var(--gray-500); }
.db p { font-size: 14.5px; line-height: 1.65; color: var(--gray-600); }
.db__ft { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 6px; }
.db__ac { padding: 3px 10px; border-radius: 980px; font-size: 12px; font-weight: 700; }
.db__ac--free { background: rgba(48, 209, 88, .15); color: #1a7f37; }
.db__ac--reg { background: rgba(255, 159, 10, .16); color: #a35a00; }
.db__ac--inst { background: rgba(191, 90, 242, .14); color: #8944ab; }
.db__go { font-size: 13.5px; font-weight: 600; color: var(--blue); display: inline-flex; gap: 4px; align-items: center; }
.db:hover .db__go { gap: 8px; }
.dbn { text-align: center; color: var(--gray-500); font-size: 13.5px; margin-top: 26px; }
.dbe { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--gray-600); }

/* ---------- JMAS ---------- */
.jm { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.jm__cover { aspect-ratio: 3 / 4; max-width: 340px; margin: 0 auto; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background: radial-gradient(90% 70% at 90% 0, rgba(251, 146, 60, .6), transparent 60%), linear-gradient(160deg, #3f1d0b, #9a3412 60%, #c2410c); box-shadow: 0 40px 70px -34px rgba(154, 52, 18, .8); transform: rotate(-3deg); transition: transform .5s var(--ease-apple); }
.jm__cover:hover { transform: rotate(0) scale(1.03); }
.jm__cover em { font-style: normal; font-size: 12px; letter-spacing: .2em; opacity: .75; }
.jm__cover strong { font-size: 54px; line-height: 1; letter-spacing: -.03em; }
.jm__cover span { font-size: 13px; line-height: 1.55; opacity: .85; }
.jm__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 22px; }
.jm__links a { display: block; padding: 16px 18px; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px -22px rgba(0, 0, 0, .35); font-weight: 600; color: var(--ink); transition: .3s; }
.jm__links a small { display: block; font-weight: 400; font-size: 13px; color: var(--gray-600); margin-top: 2px; }
.jm__links a:hover { text-decoration: none; transform: translateY(-3px); background: #fff7ed; }
@media (max-width: 860px) { .jm { grid-template-columns: 1fr; } }

/* ---------- การ์ดหมวดผลงาน (หน้า hub) ---------- */
.cat { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cat a { --c: var(--blue); position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 22px; background: #fff; color: var(--ink); box-shadow: 0 14px 34px -24px rgba(0, 0, 0, .35); transition: .35s var(--ease-apple); overflow: hidden; }
.cat a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--c); }
.cat a:hover { text-decoration: none; transform: translateY(-5px); box-shadow: 0 26px 46px -26px var(--c); }
.cat b { font-size: 17.5px; }
.cat span { font-size: 13.5px; color: var(--gray-600); line-height: 1.55; }
.cat em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--c); margin-top: auto; padding-top: 8px; }

/* ---------- เมนูหลัก: กระชับเมื่อมี 9 รายการ ---------- */
.cat em span, .cat em i { color: inherit; font-size: inherit; font-style: normal; }
@media (min-width: 1069px) and (max-width: 1320px) {
  .nav__link { padding: 0 7px; font-size: 13px; }
  .nav__inner { gap: 10px; }
  .nav__actions .nav__cta { display: none; }
}
@media (min-width: 1321px) { .nav__link { padding: 0 9px; } }
.note { margin-top: 18px; font-size: 13.5px; color: var(--gray-500); line-height: 1.7; }
.lt > div:first-child > .pc { height: 100%; justify-content: center; }
.ipx__head .live { display: flex; width: max-content; margin: 0 auto; }
.ipg[data-n="2"], .ipg[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 920px; margin-inline: auto; }
@media (max-width: 700px) { .ipg[data-n="2"], .ipg[data-n="4"] { grid-template-columns: 1fr; } }
.jm > * { min-width: 0; }
.section:has(.jm) { overflow-x: clip; }
.grid > *, .docs, .doc { min-width: 0; }
.doc > span:last-child { min-width: 0; overflow-wrap: anywhere; }
#support, #browse { overflow-x: clip; }
