/* หน้าโครงสร้างบุคลากรและหน้ารายบุคคล (จากต้นแบบ structure-b v3 + person-c) — flat, ไม่มีเส้นขอบ/เงาเรือง/ไล่สี */
.pv{--b:#9e5da5;--bd:#7d4485;--ink:#1d1a1f;--mute:#5d5662;--card:#fff;--soft:#f6eff7;
--t-lead:#ecdcf0;--t-academic:#eadcf0;--t-it:#e1def4;--t-coordination:#f5e2ea;--t-rspg:#e7eadb;
--c-lead:#7d4485;--c-academic:#9e5da5;--c-it:#6c62b3;--c-coordination:#c0587f;--c-rspg:#7c8a48}
.pv{line-height:1.6}
.sheet:has(>.pv)>h1{line-height:1.45;font-size:34px;margin-bottom:8px}
.pv h2,.pv h3,.pv b{line-height:1.5}
.pv a{text-decoration:none;color:inherit}
.pv-flag{display:inline-block;margin:0 0 10px;padding:2px 12px;border-radius:999px;background:#fff3c4;color:#6b5400;font-size:13px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.lede{color:var(--mute);margin:4px 0 20px;font-size:16px}
.dot{display:inline-block;width:10px;height:10px;border-radius:50%;flex:none;vertical-align:middle}
.dot.big{width:14px;height:14px}
.u-lead .dot,.dot.u-lead{background:var(--c-lead)}
.dot.u-academic{background:var(--c-academic)}.dot.u-it{background:var(--c-it)}.dot.u-coordination{background:var(--c-coordination)}.dot.u-rspg{background:var(--c-rspg)}
.av{display:inline-block;width:64px;height:64px;border-radius:50%;overflow:hidden;background:var(--t-lead);flex:none}
.av img{width:100%;height:118%;object-fit:cover;object-position:50% 0;display:block}
.av.sm{width:40px;height:40px}.av.md{width:52px;height:52px}
/* toolbar */
.tools{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:0 0 22px;padding:10px 0}
.tools.is-sticky{position:sticky;top:0;z-index:3;background:#f1f0f1f0;padding:12px 0}
.find{position:relative;display:block}
.find input{width:320px;max-width:100%;min-height:46px;padding:8px 42px 8px 18px;border:0;border-radius:999px;background:#fff;font:inherit;font-size:15px;line-height:1.6;color:var(--ink);outline:none}
.find input:focus-visible{box-shadow:0 0 0 3px #9e5da555}
/* กากบาทของเบราว์เซอร์ไม่กึ่งกลางในช่องแคปซูล จึงใช้ปุ่มของหน้าแทน */
.find input::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;display:none}
.find-x{position:absolute;top:50%;right:7px;transform:translateY(-50%);display:grid;place-items:center;width:32px;height:32px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:var(--mute);cursor:pointer}
.find-x svg{width:16px;height:16px}
.find-x:hover,.find-x:focus-visible{background:var(--soft);color:var(--ink)}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:6px 16px;border:0;border-radius:999px;background:#fff;color:var(--ink);font:inherit;font-size:14px;line-height:1.6;cursor:pointer}
.chip.is-on{background:var(--bd);color:#fff}
.chip.is-on .dot{background:#fff}
.empty{color:var(--mute)}
/* lead card */
.lead{display:flex;align-items:flex-end;gap:14px;background:var(--card);border-radius:20px;padding:14px 20px 0 14px;min-width:0;transition:transform .2s}
.lead:hover{transform:translateY(-3px)}
.lead-ph{width:84px;height:96px;flex:none;border-radius:16px 16px 0 0;background:var(--t-lead);display:flex;align-items:flex-end;justify-content:center;overflow:hidden}
.lead-ph img{height:100%;width:auto;object-fit:contain}
.lead-tx{display:flex;flex-direction:column;padding-bottom:14px;min-width:0}
.lead-tx b{font-size:17px;color:var(--ink)}
.lead-tx span{font-size:14px;color:var(--mute)}
.lead-tx small{font-size:13px;color:var(--bd);margin-top:2px}
.lead.is-big{padding:18px 28px 0 18px}
.lead.is-big .lead-ph{width:120px;height:140px;background:var(--b)}
.lead.is-big .lead-tx b{font-size:22px}
.lead.is-big .lead-tx span{font-size:16px}
.tier-lbl{margin:0 0 8px;text-align:center;font-size:13px;color:var(--mute);letter-spacing:.02em}
.is-dim{opacity:.25}
/* ===== A: tree ===== */
.tree{display:flex;flex-direction:column;align-items:center}
.tier{display:flex;justify-content:center;gap:24px;flex-wrap:wrap}
.tier .lead{width:330px}.t1 .lead{width:auto}
.vline{display:block;width:2px;height:26px;background:#d9c6de}
.hline{display:block;height:2px;width:75%;background:#d9c6de}
.units{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;width:100%;margin-top:0}
.unit{border-radius:22px;padding:18px 14px 14px;position:relative}
.unit::before{content:"";position:absolute;top:-16px;left:50%;width:2px;height:16px;background:#d9c6de}
.unit.u-academic{background:var(--t-academic)}.unit.u-it{background:var(--t-it)}.unit.u-coordination{background:var(--t-coordination)}.unit.u-rspg{background:var(--t-rspg)}
.unit header{display:flex;flex-direction:column;gap:2px;margin:0 4px 12px}
.unit h2{margin:0;font-size:16px;color:var(--ink)}
.cnt{font-size:13px;color:var(--mute)}
.mlist{display:flex;flex-direction:column;gap:8px}
.mc{display:flex;gap:12px;align-items:center;background:#fff;border-radius:16px;padding:8px 12px 8px 8px;transition:transform .2s}
.mc:hover{transform:translateX(3px)}
.mc .av{width:52px;height:52px}
.unit.u-academic .av{background:var(--t-academic)}.unit.u-it .av{background:var(--t-it)}.unit.u-coordination .av{background:var(--t-coordination)}.unit.u-rspg .av{background:var(--t-rspg)}
.mc-tx{display:flex;flex-direction:column;min-width:0}
.mc-tx b{font-size:14px}
.mc-tx>span{font-size:13px;color:var(--mute)}
.mc-tx .also{display:flex;align-items:center;gap:4px;font-size:11.5px;color:var(--mute);margin-top:2px}
.mc-tx .also .dot{width:8px;height:8px}
/* ===== B: overview + sections ===== */
.ov{display:flex;flex-direction:column;align-items:center;gap:18px;background:#fffffff2;border-radius:28px;padding:28px;margin:14px 0 18px}
.ov-row.two{display:grid;grid-template-columns:1fr 1fr;gap:20px;width:100%}
.ov-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.ov-pair .lead{background:var(--soft);padding:10px 12px 0 10px;gap:10px}
.ov-pair .lead-ph{width:58px;height:70px}
.ov-pair .lead-tx b{font-size:14.5px}.ov-pair .lead-tx span{font-size:12.5px}
.ov .lead.is-big{background:var(--soft)}
.ov-units{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;width:100%}
.ut{display:flex;flex-direction:column;gap:10px;border-radius:20px;padding:16px;transition:transform .2s}
.ut:hover{transform:translateY(-3px)}
.ut.u-academic{background:var(--t-academic)}.ut.u-it{background:var(--t-it)}.ut.u-coordination{background:var(--t-coordination)}.ut.u-rspg{background:var(--t-rspg)}
.ut b{font-size:15px;min-height:48px}
.stack{display:flex;align-items:center}.stack .av{margin-right:-10px;background:#fff}
.stack em{font-style:normal;font-size:13px;margin-left:16px;color:var(--mute)}
.go{font-size:13px;color:var(--bd)}
.sec{margin:8px 0 40px;scroll-margin-top:80px}
.sec header{display:flex;align-items:center;gap:12px;margin-bottom:4px}
.sec h2{margin:0;font-size:24px}
.headnote{margin:0 0 14px;font-size:13px;color:#8a7a8e}
.pgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.pc{display:flex;flex-direction:column;background:#fff;border-radius:20px;overflow:hidden;padding-bottom:16px;transition:transform .2s}
.pc:hover{transform:translateY(-4px)}
.pc-ph{height:190px;display:flex;align-items:flex-end;justify-content:center;margin-bottom:12px}
.pc-ph img{height:92%;width:auto;object-fit:contain}
.pc-ph.u-academic{background:var(--t-academic)}.pc-ph.u-it{background:var(--t-it)}.pc-ph.u-coordination{background:var(--t-coordination)}.pc-ph.u-rspg{background:var(--t-rspg)}
.pc b{padding:0 16px;font-size:16px}
.pc .role{padding:0 16px;font-size:14px;color:var(--mute)}
.pc .meta{display:flex;flex-direction:column;padding:8px 16px 0;font-size:13px;color:var(--ink);word-break:break-all}
.pc .na{color:#9a8f9d}
.pc .more{padding:10px 16px 0;font-size:13px;color:var(--bd);font-weight:700}
/* ===== C: wall ===== */
.s3-top{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap}
.stats{display:flex;gap:10px}
.stats div{background:#fff;border-radius:18px;padding:10px 20px;text-align:center;display:flex;flex-direction:column}
.stats b{font-size:28px;color:var(--bd);line-height:1.3}.stats span{font-size:13px;color:var(--mute)}
.levels{display:flex;align-items:center;gap:10px;background:#fff;border-radius:24px;padding:16px 18px;margin:18px 0 6px;flex-wrap:wrap}
.lv{display:flex;flex-direction:column;gap:6px}
.lv-n{font-size:13px;color:var(--mute)}
.lv-av{display:flex;gap:6px}
.arrow{color:#bfa6c5;font-size:20px}
.units4{flex:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;min-width:280px}
.lvu{display:flex;justify-content:space-between;align-items:center;gap:8px;border:0;border-radius:14px;padding:8px 14px;font:inherit;line-height:1.5;cursor:pointer;text-align:left;color:var(--ink)}
.lvu b{font-size:14px}.lvu small{font-size:12px;color:var(--mute)}
.lvu.u-academic{background:var(--t-academic)}.lvu.u-it{background:var(--t-it)}.lvu.u-coordination{background:var(--t-coordination)}.lvu.u-rspg{background:var(--t-rspg)}
.wall{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px}
.ft{display:flex;flex-direction:column;border-radius:20px;overflow:hidden;background:#fff;padding-bottom:12px;transition:transform .2s,opacity .25s}
.ft:hover{transform:translateY(-4px)}
.ft-ph{height:150px;display:flex;align-items:flex-end;justify-content:center;margin-bottom:10px}
.ft-ph img{height:94%;width:auto}
.ft.u-lead .ft-ph{background:var(--t-lead)}.ft.u-academic .ft-ph{background:var(--t-academic)}.ft.u-it .ft-ph{background:var(--t-it)}.ft.u-coordination .ft-ph{background:var(--t-coordination)}.ft.u-rspg .ft-ph{background:var(--t-rspg)}
.ft b{padding:0 12px;font-size:14px}
.ft .role{padding:0 12px;font-size:12.5px;color:var(--mute)}
.ft .dots{display:flex;gap:4px;padding:6px 12px 0}
.ft .dot{width:9px;height:9px}
/* ===== person pages ===== */
.back{font-size:14px;color:var(--mute);margin:-4px 0 18px}.back a{color:var(--bd)}
.opt-pa h1,.opt-pb h1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.hero{display:grid;grid-template-columns:300px 1fr;gap:0;border-radius:28px;overflow:hidden;background:#fff;margin-bottom:20px}
.hero-ph{display:flex;align-items:flex-end;justify-content:center;height:340px}
.hero.u-academic .hero-ph{background:var(--t-academic)}.hero.u-it .hero-ph{background:var(--t-it)}.hero.u-coordination .hero-ph{background:var(--t-coordination)}.hero.u-rspg .hero-ph{background:var(--t-rspg)}.hero.u-lead .hero-ph{background:var(--t-lead)}
.hero-ph img{height:94%;width:auto}
.hero-tx{padding:34px 36px;display:flex;flex-direction:column;justify-content:center;gap:6px}
.pos{margin:0;color:var(--bd);font-size:16px;font-weight:700}
.nm{margin:0;font-size:38px;line-height:1.45;color:var(--ink)}
.uchips{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 6px}
.uchip{display:inline-flex;align-items:center;gap:8px;padding:4px 14px;border-radius:999px;font-size:13.5px;background:var(--soft)}
.uchip.u-academic{background:var(--t-academic)}.uchip.u-it{background:var(--t-it)}.uchip.u-coordination{background:var(--t-coordination)}.uchip.u-rspg{background:var(--t-rspg)}.uchip.u-lead{background:var(--t-lead)}
.acts{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.act{display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:8px 18px;border-radius:999px;background:var(--bd);color:#fff!important;font-size:15px}
.act+.act{background:#f1e6f3;color:var(--bd)!important}
/* จำกัดใน .pv เพราะ footer ใช้ class ic กับไอคอนตั๋ว ถ้าไม่จำกัด พื้นสีจะทับเส้นไอคอน */
.pv .ic{width:16px;height:16px;background:currentColor;-webkit-mask:var(--m) center/contain no-repeat;mask:var(--m) center/contain no-repeat}
.ic-phone{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h3l1.5 4-2 1.2a12 12 0 0 0 6.3 6.3L17 12.5 21 14v3a2 2 0 0 1-2.2 2A17 17 0 0 1 5 5.2 2 2 0 0 1 7 3z'/%3E%3C/svg%3E")}
.ic-mail{--m:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm9 7L4 7v.2l8 5 8-5V7l-8 5z'/%3E%3C/svg%3E")}
.na{color:#8f8493;font-size:14px;margin:0}
.cols2{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.blk{background:#fff;border-radius:24px;padding:22px 26px;margin-bottom:20px}
.blk h3{margin:0 0 12px;font-size:19px}.blk h3 small{font-weight:400;font-size:13px;color:var(--mute);margin-left:6px}
.roles{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.roles li{display:flex;gap:12px;align-items:flex-start}.roles .dot{margin-top:8px}
.roles div{display:flex;flex-direction:column}.roles b{font-size:15.5px}.roles span{font-size:13.5px;color:var(--mute)}
.ph-box{background:#f7f3f8;border-radius:16px;padding:14px 18px;color:#857a89;font-size:14px}
.ph-box p{margin:4px 0 0}
.ph-tag{display:inline-block;background:#fff3c4;color:#6b5400;border-radius:999px;padding:0 10px;font-size:12px}
.colrow{display:flex;gap:18px;flex-wrap:wrap}
.col{display:flex;flex-direction:column;align-items:center;gap:6px;width:96px;text-align:center}
.col .av{background:var(--t-academic)}.col b{font-size:12.5px;font-weight:400;line-height:1.5}
/* B person */
.card{display:grid;grid-template-columns:260px 1fr;background:#fff;border-radius:28px;overflow:hidden;margin-bottom:20px}
.card-top{background:var(--b);display:flex;align-items:flex-end;justify-content:center;padding-top:24px}
.big-av{width:200px;height:240px;display:flex;align-items:flex-end;justify-content:center}
.big-av img{height:100%;width:auto}
.card-tx{padding:34px 36px;display:flex;flex-direction:column;justify-content:center;gap:4px}
.path{display:flex;flex-direction:column;align-items:flex-start}
.node{display:flex;align-items:center;gap:10px;background:var(--soft);border-radius:999px;padding:6px 18px 6px 6px}
.node span{display:flex;flex-direction:column}.node b{font-size:14.5px}.node small{font-size:12.5px;color:var(--mute)}
.down{width:2px;height:20px;background:#d9c6de;margin-left:26px}
.brs{display:grid;grid-template-columns:1fr 1fr;gap:14px;width:100%}
.br{border-radius:20px;padding:14px 16px}
.br.u-it{background:var(--t-it)}.br.u-rspg{background:var(--t-rspg)}.br.u-academic{background:var(--t-academic)}.br.u-coordination{background:var(--t-coordination)}.br.u-lead{background:var(--t-lead)}
.br-u{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-weight:700;font-size:14.5px}
.br-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.br-row .av{background:#fff}
.mini{opacity:.7}
.me{display:inline-flex;align-items:center;gap:8px;background:var(--bd);color:#fff;border-radius:999px;padding:3px 14px 3px 3px;font-size:13px}
.me .av{background:#fff}.me b{font-weight:700}
.br-r{margin:10px 0 0;font-size:13.5px;color:var(--mute)}.br-r b{color:var(--ink)}
/* responsive */
@media (max-width:1200px){.units{grid-template-columns:repeat(2,minmax(0,1fr))}.unit::before{display:none}.hline{width:50%}.pgrid{grid-template-columns:repeat(3,minmax(0,1fr))}.wall{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:900px){
.sheet:has(>.pv)>h1{font-size:28px}
.tier .lead{width:100%}.t1 .lead{width:100%}.tier{width:100%;gap:10px}
.units{grid-template-columns:1fr}.hline{display:none}
.ov{padding:16px;border-radius:22px}.ov-row{width:100%}.ov-row.two{grid-template-columns:1fr}.ov-units{grid-template-columns:1fr 1fr}
.ov-pair{grid-template-columns:1fr}
.pgrid{grid-template-columns:1fr 1fr;gap:10px}.pc-ph{height:150px}.pc b{font-size:14.5px}.pc .meta{font-size:12px}
.wall{grid-template-columns:repeat(2,minmax(0,1fr))}.levels{gap:8px}.arrow{transform:rotate(90deg)}.levels{flex-direction:column;align-items:flex-start}.units4{width:100%;min-width:0}
.find,.find input{width:100%}.chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}.chip{white-space:nowrap}
.hero,.card{grid-template-columns:1fr}.hero-ph{height:280px}.hero-tx,.card-tx{padding:22px}.nm{font-size:28px}
.cols2,.brs{grid-template-columns:1fr;gap:0}.blk{padding:18px}
.card-top{padding-top:16px}.big-av{height:200px}
.act{font-size:14px}
.s3-top .stats{width:100%}.stats div{flex:1}
}
/* fixes v2 */
.sheet .pv .nm{font-size:40px;line-height:1.45}
.sheet .pv .lead-tx b{line-height:1.5}
.units{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.unit::before{display:none}
.hline{width:50%}
.mlist{display:grid;grid-template-columns:1fr 1fr;gap:8px}
@media (max-width:1100px){.mlist{grid-template-columns:1fr}}
@media (max-width:900px){.sheet .pv .nm{font-size:28px}.units{grid-template-columns:1fr}}
.ut{min-width:0}.stack{min-width:0;overflow:hidden}
@media (max-width:900px){.ov-units{gap:8px}.ut{padding:12px}.ut b{font-size:13.5px;min-height:0}}
/* ================= v3: เพิ่มเฉพาะ จำนวน + การ์ดผู้บริหารสมดุล + รูปตัดยืนขอบล่าง (พื้นชั้นเดียว) + ไทล์ฝ่าย ================= */
.nw{white-space:nowrap}
.st-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0 0}
.st{background:#fff;border-radius:20px;padding:14px 20px;display:flex;flex-direction:column}
.st b{font-size:34px;line-height:1.3;color:var(--bd)}
.st span{font-size:14px;color:var(--mute);line-height:1.6}
.ov.v3{gap:0;align-items:stretch}
.grp-lbl{margin:0 0 10px;text-align:center;font-size:14px;color:var(--mute);font-weight:700;line-height:1.6}
.grp-lbl em{font-style:normal;font-weight:400;margin-left:6px;padding:1px 10px;border-radius:999px;background:var(--soft);color:var(--bd);font-size:13px}
.dir-row{display:flex;justify-content:center;margin-bottom:24px}
.pairs{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px}
.pair-g{display:grid;grid-template-columns:1fr 1fr;gap:16px}
/* leader card: one soft layer, cut-out stands on bottom edge, no inner photo box */
.lc{display:grid;grid-template-columns:92px 1fr;align-items:end;gap:12px;height:164px;background:var(--soft);border-radius:20px;padding:0 16px 0 10px;overflow:hidden;transition:transform .2s}
.lc:hover{transform:translateY(-3px)}
.lc-ph{display:flex;align-items:flex-end;justify-content:center;height:146px;overflow:hidden}
.lc-ph img,.sx img{display:block;height:100%;width:auto;max-width:none;object-fit:contain;object-position:bottom center}
.lc-tx{align-self:center;display:flex;flex-direction:column;min-width:0}
.sheet .pv .lc-nm{font-size:16px;line-height:1.5;color:var(--ink);font-weight:700}
.lc .lc-nm .nw{display:block}
.lc-role{font-size:13px;line-height:1.6;color:var(--mute);margin-top:2px}
.lc-tx small{font-size:13px;color:var(--bd);margin-top:4px}
.lc.is-dir{width:calc(50% - 8px);height:190px;grid-template-columns:150px 1fr;gap:20px;padding:0 26px 0 18px}
.lc.is-dir .lc-ph{height:180px}
.lc.is-dir .lc-nm .nw{display:inline}
.sheet .pv .lc.is-dir .lc-nm{font-size:24px}
.lc.is-dir .lc-role{font-size:16px}.lc.is-dir small{font-size:15px}
/* unit tiles (as approved) */
.ov-units2{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.ut2{position:relative;display:flex;flex-direction:column;border-radius:22px;padding:16px 16px 0;overflow:hidden;min-height:210px;transition:transform .2s;min-width:0}
.ut2:hover{transform:translateY(-3px)}
.ut2.u-academic{background:var(--t-academic)}.ut2.u-it{background:var(--t-it)}.ut2.u-coordination{background:var(--t-coordination)}.ut2.u-rspg{background:var(--t-rspg)}
.ut2-n{font-size:34px;font-weight:700;line-height:1.3;color:var(--bd)}.ut2-n small{font-size:14px;font-weight:400;margin-left:4px;color:var(--mute)}
.ut2 b{font-size:15px;line-height:1.5;min-height:45px}
.ut2 .go{font-size:13px;color:var(--bd);margin:4px 0 6px}
.stack2{display:flex;align-items:flex-end;margin-top:auto;height:74px;min-width:0}
.sx{display:flex;align-items:flex-end;height:74px;width:44px;margin-right:-6px;overflow:visible;flex:none}
.stack2 em{font-style:normal;font-size:13px;color:var(--mute);margin:0 0 10px 16px}
@media (max-width:1200px){.ov-units2{grid-template-columns:1fr 1fr}}
@media (max-width:900px){
.st-row{grid-template-columns:1fr 1fr;gap:8px}.st{padding:10px 14px}.st b{font-size:26px}
.pairs{grid-template-columns:1fr;gap:18px}.pair-g{gap:10px}
.lc{grid-template-columns:1fr;grid-template-rows:118px auto;height:auto;padding:0 12px 14px;align-items:start;text-align:center}
.lc-ph{height:112px}.lc-tx{align-self:start}
.sheet .pv .lc-nm{font-size:14.5px}.lc-role{font-size:12.5px}
.lc.is-dir{width:100%;height:150px;grid-template-columns:110px 1fr;grid-template-rows:none;align-items:end;padding:0 16px 0 10px;text-align:left}
.lc.is-dir .lc-ph{height:142px}.lc.is-dir .lc-tx{align-self:center}.sheet .pv .lc.is-dir .lc-nm{font-size:19px}.lc.is-dir .lc-role{font-size:14px}
.ov-units2{gap:10px}.ut2{min-height:190px;padding:12px 12px 0}.ut2 b{font-size:13.5px;min-height:0}.sx{width:36px;height:62px}.stack2{height:62px}.sx:nth-child(n+4){display:none}.stack2 em{display:none}
}
.ov.v3 .sx{width:38px;margin-right:-8px}.ov.v3 .stack2 em{margin-left:14px;flex:none}
.ov.v3 .stack2 em{margin-left:24px}

/* ================= หน้ารายบุคคล: บัตรคล้องคอ (person-c) ================= */
.col2{display:flex;flex-direction:column;align-items:center;gap:4px;width:104px;text-align:center}
.cx{display:flex;align-items:flex-end;justify-content:center;height:84px;width:84px;overflow:hidden}
.col2 b{font-size:12.5px;font-weight:400;line-height:1.5}
/* person C badge */
.badge-lay{display:grid;grid-template-columns:380px 1fr;gap:32px;align-items:start}
.badge-col{display:flex;flex-direction:column;align-items:center;position:sticky;top:16px}
.lanyard{position:relative;width:60px;height:110px;display:flex;flex-direction:column;align-items:center}
.strap{width:30px;height:92px;background:#7d4485;border-radius:0 0 4px 4px}
.clip{width:26px;height:22px;margin-top:-4px;border-radius:6px;background:#bdb3c1}
.badge{position:relative;width:340px;margin-top:-6px;background:#fff;border-radius:26px;overflow:hidden;transform-origin:50% -110px;animation:swing 3.6s ease-in-out 1 forwards}
.slot{position:absolute;top:12px;left:50%;width:60px;height:10px;margin-left:-30px;border-radius:999px;background:#ece8ee}
@keyframes swing{0%{transform:rotate(2.4deg)}22%{transform:rotate(-1.5deg)}44%{transform:rotate(.85deg)}66%{transform:rotate(-.4deg)}84%{transform:rotate(.12deg)}100%{transform:rotate(0)}}
@media (prefers-reduced-motion:reduce){.badge{animation:none}}
.bd-top{display:flex;align-items:center;gap:10px;padding:34px 24px 0}
.bd-top img{width:40px;height:40px;object-fit:contain}
.bd-top span{display:flex;flex-direction:column;line-height:1.4}.bd-top b{font-size:15px;color:var(--bd);letter-spacing:.06em}.bd-top small{font-size:11.5px;color:var(--mute)}
.badge .bd-ph{height:250px;margin:14px 24px 0;border-radius:20px 20px 0 0}
.badge.u-academic .bd-ph{background:var(--t-academic)}.badge.u-it .bd-ph{background:var(--t-it)}.badge.u-coordination .bd-ph{background:var(--t-coordination)}.badge.u-rspg .bd-ph{background:var(--t-rspg)}.badge.u-lead .bd-ph{background:var(--t-lead)}
.bd-tx{background:var(--bd);color:#fff;margin:0 24px;padding:16px 18px 18px;border-radius:0 0 20px 20px}
.sheet .pv .bd-nm{margin:0;font-size:22px;line-height:1.5;color:#fff}
.bd-pos{margin:4px 0 0;font-size:13.5px;line-height:1.6;color:#f1e4f4}
.bd-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.bd-chips .uchip{background:#ffffff26;color:#fff;font-size:12px;padding:2px 10px}
.bd-chips .dot{width:8px;height:8px}
.bd-foot{display:flex;justify-content:space-between;align-items:flex-end;padding:16px 24px 22px}
.bd-foot>div:first-child{display:flex;flex-direction:column;line-height:1.5}
.bd-foot small{font-size:11px;color:var(--mute);letter-spacing:.12em}.bd-foot b{font-size:15px;letter-spacing:.04em}
.qr-w{display:flex;flex-direction:column;align-items:center;gap:4px}.qr{width:64px;height:64px}
/* ช่องติดต่อข้าง QR (แบบ A): ใช้ที่ว่างเดิมใต้ STAFF บัตรจึงไม่ยาวขึ้น อีเมลยาวตัดบรรทัดได้ไม่ดัน QR */
.bd-foot{gap:12px}.bd-ct{gap:4px;min-width:0}
.bd-ct a{display:flex;align-items:center;gap:8px;min-height:28px;font-size:13px;color:var(--ink);overflow-wrap:anywhere}
.bd-ct a:hover{color:var(--bd);text-decoration:underline}
.bd-ct svg{width:16px;height:16px;flex:none;color:var(--bd)}
.info-col .blk h3{font-size:18px}
.info-col .acts{margin-top:0}
@media (max-width:1200px){.badge-lay{grid-template-columns:1fr}.badge-col{position:static}}
.cx img,.bd-ph img{display:block;height:100%;width:auto;max-width:none;object-fit:contain;object-position:bottom center}
@media (max-width:900px){.badge{width:100%;max-width:340px}}
.badge .bd-ph{display:flex;align-items:flex-end;justify-content:center;overflow:hidden}
.badge .bd-ph,.badge.u-academic .bd-ph,.badge.u-it .bd-ph,.badge.u-coordination .bd-ph,.badge.u-rspg .bd-ph,.badge.u-lead .bd-ph{background:none;border-radius:0;margin-top:18px}
.bd-tx{border-radius:20px}
.sheet:has(>.opt-pc)>h1{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
/* หน้าจริง: ของที่ใส่ hidden ต้องซ่อนเสมอ และข้อความ/รายการในบล็อก */
.pv [hidden]{display:none!important}
.blk p{margin:0}
.blk ul{margin:0;padding-left:20px}
.blk li+li{margin-top:6px}
.qr svg{display:block;width:100%;height:100%}
/* ===== C (2026-11-02): ค้นหา+ปุ่มกรองบนสุด บรรทัดเดียว ไม่มีพื้นแถบ (มีพื้นสีหน้าเฉพาะตอนค้าง) + ป้ายสรุปจำนวน ===== */
.c1 .tools,.c1 .tools.is-sticky{flex-wrap:nowrap;gap:12px;margin:0 0 4px;background:transparent;transition:background-color .2s}
.c1 .tools.is-stuck{background:var(--bg,#ececec)}
.c1 .find{flex:0 0 230px}.c1 .find input{width:100%}
.c1 .chips{flex:1 1 auto;min-width:0;flex-wrap:nowrap;overflow-x:auto;gap:4px;scrollbar-width:none}
.c1 .chips::-webkit-scrollbar{display:none}
.c1 .chip{white-space:nowrap;flex:none;padding:6px 11px;gap:6px;font-size:13.5px}
.sv{display:inline-flex;width:18px;height:18px;flex:none}
.stp{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0 4px}
.stp-i{display:inline-flex;align-items:center;gap:10px;padding:6px 18px 6px 6px;border-radius:999px;background:#ecdcf0;color:var(--ink)}
.stp-ic{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:var(--b);color:#fff;flex:none}
.sheet .pv .stp-i b{font-size:22px;line-height:1.4;color:var(--bd)}
.stp-i>span:last-child{font-size:14px;line-height:1.6;color:#4c3d52}
.stp-i.is-main{background:var(--bd)}.stp-i.is-main .stp-ic{background:#fff;color:var(--bd)}
.sheet .pv .stp-i.is-main b{color:#fff}.stp-i.is-main>span:last-child{color:#fff}
@media (max-width:900px){
.c1 .tools,.c1 .tools.is-sticky{flex-wrap:wrap;gap:10px}
.c1 .find,.c1 .chips{flex:1 1 100%}
.c1 .chip{padding:6px 14px;font-size:14px}
/* มือถือ: เว้นซ้ายให้กล่องโลโก้+ติ่งเมนู (16+52+10 ติ่ง) ไม่ทับช่องค้นหา/ปุ่มกรอง ทั้งปกติและตอนค้าง */
.c1 .tools,.c1 .tools.is-sticky{padding-left:72px}
/* หน้า staff: แถบค้นหาเว้นซ้ายอยู่แล้ว ต่อใต้หัวข้อได้เลย ไม่ต้องดันหัวข้อลงถึงแนวเมนู */
.sheet:has(>.c1)>h1{min-height:0}
.stp{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.stp-i{padding:5px 12px 5px 5px;gap:8px}.stp-ic{width:32px;height:32px}
.sheet .pv .stp-i b{font-size:19px}.stp-i>span:last-child{font-size:12.5px;line-height:1.5}
}
/* ===== มือถือ: ชิปกรองฝ่ายแถวเดียว เฟดขอบขวา + เป้าแตะ 44px (จุดตำแหน่งมาจาก mobile-nav.js) ===== */
@media (max-width:768px){
.c1 .chips{gap:8px;padding-right:28px;scroll-snap-type:x proximity;
-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 36px),transparent);
mask-image:linear-gradient(to right,#000 calc(100% - 36px),transparent)}
.c1 .chip{min-height:44px;scroll-snap-align:start}
.c1 .tools .scroll-dots{flex:1 1 100%;margin-top:0}
.ph-tag{font-size:14px}
}
/* ===== หน้ารายบุคคล: คอลัมน์รายละเอียดแบบ CV (แบบ C 2026-11-06) — แผ่นเดียว หัวข้ออยู่ร่องซ้าย
   นักวิจัยมีผลงานหลายสิบรายการ แผ่นเดียวอ่านไหลกว่าการ์ดซ้ำๆ และเมนูหัวข้อช่วยกระโดดไปส่วนที่ต้องการ ===== */
html:has(.cv){scroll-behavior:smooth;scroll-padding-top:84px}
@media (prefers-reduced-motion:reduce){html:has(.cv){scroll-behavior:auto}}
/* min-width:0 กันเมนูหัวข้อที่เลื่อนแนวนอนได้ดันคอลัมน์ให้กว้างเกินจอ */
.info-col,.cv-row>div{min-width:0}
.cv{background:#fff;border-radius:24px;padding:0 32px 10px;margin-bottom:20px}
.cv-toc{position:sticky;top:0;z-index:5;display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;margin:0 -32px;padding:12px 32px;background:#fffffff2;border-bottom:1px solid #ece6ee;border-radius:24px 24px 0 0}
.cv-toc::-webkit-scrollbar{display:none}
.cv-toc a{flex:none;display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border-radius:999px;font-size:14px;color:var(--mute);white-space:nowrap}
.cv-toc a:hover{background:var(--soft);color:var(--bd)}
.cv-top{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 24px;padding:26px 0 20px;border-bottom:2px solid var(--ink)}
.sheet .pv .cv-nm{margin:0;font-size:28px;line-height:1.3;font-weight:700;color:var(--ink)}
.cv-pos{margin:4px 0 0;color:var(--mute)}
.cv-id{margin:6px 0 0;font-size:15px}
.cv-id a{color:var(--bd)}
.cv-id a:hover{text-decoration:underline}
.cv-acts{display:flex;flex-direction:column;align-items:flex-end;gap:2px;font-size:15px}
.cv-acts a{color:var(--bd);padding:3px 0}.cv-acts a:hover{text-decoration:underline}
/* ตัวเลขในเมนูหัวข้อเป็นวงกลมสีทึบ ให้ปริมาณผลงานเด่นตั้งแต่บนสุด */
.cv-toc a{gap:8px}
.sheet .pv .cv-n{display:inline-grid;place-items:center;min-width:26px;height:26px;padding:0 7px;border-radius:999px;background:var(--bd);color:#fff;font-size:13px;line-height:1;font-variant-numeric:tabular-nums}
.cv-toc a:hover .cv-n{background:var(--b)}
.cv-row{display:grid;grid-template-columns:180px 1fr;gap:20px;padding:22px 0;border-bottom:1px solid #ece6ee}
.cv-row:last-child{border-bottom:0}
.sheet .pv .cv-row h3{margin:0;font-size:15px;line-height:1.6;color:var(--bd);white-space:nowrap}
.cv-row h3 small{display:block;font-size:12.5px;font-weight:400;color:var(--mute)}
.cv-quote{margin:0;font-size:18px;line-height:1.65}
.cv-roles,.cv-plain{list-style:none;margin:0;padding:0}
.cv-roles li{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px}.cv-roles li+li{margin-top:8px}
.cv-roles .dot{align-self:center}.cv-roles span{font-size:13.5px;color:var(--mute)}
.cv-plain li{position:relative;padding-left:16px}.cv-plain li+li{margin-top:6px}
.cv-plain li::before{content:"–";position:absolute;left:0;color:var(--b)}
.cv-dl{margin:0;display:grid;grid-template-columns:minmax(56px,max-content) 1fr;gap:10px 20px}
.cv-dl dt{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.cv-dl dd{margin:0}
.cv-dl dd span{display:block;font-size:13.5px;color:var(--mute)}
.cv-num{margin:0;padding-left:28px;font-size:14.5px}.cv-num li+li{margin-top:10px}
.cv-num li::marker{color:var(--b);font-weight:700}
.cv-num[data-cap]:not(.is-open)>li.is-over{display:none}
.cv-find{width:100%;font:inherit;font-size:15px;min-height:44px;padding:0 16px;border:1px solid #e3dbe6;border-radius:12px;margin-bottom:12px;background:#fff}
.cv-find:focus{outline:2px solid var(--b);outline-offset:1px}
.cv-more{font:inherit;font-size:14px;color:var(--bd);background:none;border:1px solid #e3dbe6;border-radius:999px;min-height:40px;padding:0 16px;margin-top:12px;cursor:pointer}
.cv-more:hover{background:var(--soft)}
.cv-none{margin:8px 0 0;color:var(--mute);font-size:14px}
@media (max-width:760px){
.cv{padding:0 20px 6px}.cv-toc{margin:0 -20px;padding:10px 20px}
.cv-row{grid-template-columns:1fr;gap:8px}
.cv-acts{align-items:flex-start}
}
