/* esensor additions on top of the prototype styles: articles, article index, fixes */
.prose{max-width:820px;padding-block:40px 64px}
.prose h1{font-size:clamp(30px,3vw,42px);margin:10px 0 24px}
.prose h2{font-size:clamp(23px,2vw,30px);margin:44px 0 14px}
.prose h3{font-size:20px;margin:30px 0 10px}
.prose p,.prose li{max-width:none}
.prose ul,.prose ol{padding-left:22px;margin:0 0 18px}
.prose li{margin:6px 0}
.prose a{color:var(--teal);text-decoration:underline;text-underline-offset:4px}
.prose a[data-chat]{display:inline-flex;align-items:center;min-height:44px;padding:9px 18px;border-radius:7px;background:var(--accent);color:#10272b;text-decoration:none;font-family:var(--heading);font-weight:600}
.prose strong{font-weight:600}
.prose blockquote{margin:18px 0;padding:12px 18px;border-left:3px solid var(--teal);background:var(--wash)}
.prose .crumb a{text-decoration:none}
.prosefig{margin:22px 0}
.prosefig img{width:auto;max-width:100%;height:auto;display:block;border-radius:4px;margin:0 auto}
.tablewrap{overflow-x:auto;margin:18px 0 22px;border:1px solid var(--line);border-radius:5px}
.prose table{table-layout:auto;min-width:560px;font-size:15px}
.prose td,.prose th{padding:10px 12px}
.prose thead th{border-top:0}
@media(max-width:760px){
  .prose{padding-block:24px 48px}
  .prose table,.prose tbody,.prose tr{display:table-row-group}
  .prose table{display:table}.prose tr{display:table-row}
  .prose td,.prose th{display:table-cell}
  .prose thead{position:static;width:auto;height:auto;clip-path:none;overflow:visible;display:table-header-group}
  .prose tbody tr{border:0;margin:0}
}
.artgrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:26px}
.artcard{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:#fff}
.artcard:hover{border-color:var(--teal)}
.artcard img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block}
.artbody{display:grid;gap:8px;padding:16px 18px 20px}
.artbody b{font:600 19px/1.4 var(--heading)}
.artbody small{font-size:14px;color:var(--secondary);line-height:1.6}
@media(max-width:1020px){.artgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.artgrid{grid-template-columns:1fr}}
/* keep the floating chat button from covering the last row of content */
footer{padding-bottom:40px}
/* M-Sense wordmark (temporary until the new logo) + real NANOTEC/NSTDA logo */
.brand .bm{color:var(--accent)}
.brand{letter-spacing:-1px}
.orglogo{height:34px;width:auto;mix-blend-mode:multiply}
.footgrid .orglogo{height:40px;margin-top:12px;display:block}
.sidebar .orglogo{display:none}
@media(max-width:760px){.head .orglogo{height:24px}}
@media(max-width:370px){.head .orglogo{display:none}}
.realphoto{position:relative;margin:0;border-radius:6px;overflow:hidden;background:#eaf1f1}
.realphoto img{display:block;width:100%;height:100%;object-fit:cover;min-height:180px}
.realphoto figcaption{position:absolute;right:7px;bottom:7px;color:#fff;background:#0e2a33df;padding:2px 7px;font-size:11px;line-height:1.6;border-radius:3px}
.hero .realphoto{grid-column:9/-1;align-self:end;border:1px solid #ffffff80;max-height:240px}
@media(max-width:760px){.hero .realphoto{margin-top:22px;max-height:200px}}
@media(max-width:1020px){.hero .realphoto{max-width:460px}}
.brand{white-space:nowrap}
@media(max-width:760px){.headin .brand{font-size:25px}}
@media(max-width:400px){.headin .brand{font-size:22px}.head .orglogo{height:20px}}
.realphoto img[src*="strip-reader"]{object-position:35% 75%}
.formpanel [data-topic] .chip[aria-checked="true"],.chatlog .chip[aria-checked="true"]{background:var(--teal);color:#fff;border-color:var(--teal)}
.bubble.staff{background:#d6e8ef;border-color:#9cc3cf}
.bubble.staff:before{content:"ทีมนาโนเทค";display:block;font-size:11px;font-weight:600;color:#175962;margin-bottom:2px}
.typing{color:var(--secondary);font-style:italic}
/* design set 2 */
.msenselogo{height:30px;width:auto;display:block}
.footgrid .msenselogo{height:34px}
@media(max-width:760px){.headin .msenselogo{height:24px}}
@media(max-width:400px){.headin .msenselogo{height:20px}}
.chatmark img{width:26px;height:26px}
.hero{overflow:hidden}
.herovideo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
@media(prefers-reduced-motion:reduce){.herovideo{display:none}}
.facts .ico{width:30px;height:30px}
@media(max-width:760px){.facts .ico{display:none}}
.ico{display:block}
.steps-ico li>div{display:grid;grid-template-columns:52px minmax(0,1fr);gap:4px 14px;align-items:center}
.steps-ico .ico{width:48px;height:48px;grid-row:span 2}
.icolist li{display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:center;padding-left:0}
.icolist li:before{display:none}
.icolist .ico{width:40px;height:40px}
.illus{margin:26px 0 0;max-width:980px}
.illus img{width:100%;height:auto;display:block;border-radius:8px;border:1px solid var(--line)}
.illus figcaption{font-size:13px;color:var(--secondary);margin-top:8px}
.artbanner{height:220px;background:#0e2a33 var(--b) center/cover no-repeat}
@media(max-width:760px){.artbanner{height:130px}}

.illus{margin-bottom:32px}
.hero .realphoto.heroillus{background:#fff}
.hero .realphoto.heroillus img{object-fit:contain;object-position:center;min-height:0}
/* real NANOTEC photos are low resolution: never stretch beyond their own size */
.realphoto img[src*="/brand/"]{max-width:none}
