/* Hanuman Connect share buttons (printed inline, only where they can show).
   --hnmc-sh-s = button height, --hnmc-sh-c = app colour (brand tone), --hnmc-sh-mono = single colour. */
.hnmc-sh,.hnmc-shd{--hnmc-sh-s:40px;--hnmc-sh-mono:#012D53}
.hnmc-sh{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 1.2em;padding:0;font:500 14px/1.2 system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans Thai",Tahoma,sans-serif}
.hnmc-sh--end{margin:1.6em 0 0}
.hnmc-sh *,.hnmc-shd *{box-sizing:border-box}
.hnmc-sh__lbl{font-weight:600;color:#012D53;margin-right:4px}
.hnmc-sh__sep{width:1px;height:calc(var(--hnmc-sh-s) * .7);background:#CBD5E1;margin:0 2px}
.hnmc-sh__b{--hnmc-sh-c:var(--hnmc-sh-mono);display:inline-flex;align-items:center;justify-content:center;gap:7px;height:var(--hnmc-sh-s);min-width:var(--hnmc-sh-s);margin:0;padding:0 14px 0 calc(var(--hnmc-sh-s) * .2);border:0;border-radius:calc(var(--hnmc-sh-s) / 2);background:var(--hnmc-sh-c);color:#fff!important;text-decoration:none!important;font:inherit;line-height:1;cursor:pointer;box-shadow:none;transition:filter .15s ease,transform .15s ease}
[data-tone=mono] .hnmc-sh__b{--hnmc-sh-c:var(--hnmc-sh-mono)!important}
.hnmc-sh__b:hover{filter:brightness(1.12);transform:translateY(-1px)}
.hnmc-sh__b:focus-visible{outline:3px solid #FFC83D;outline-offset:2px}
.hnmc-sh__i{display:inline-flex;align-items:center;justify-content:center;width:calc(var(--hnmc-sh-s) * .7);height:calc(var(--hnmc-sh-s) * .7);border-radius:50%;background:rgba(255,255,255,.18)}
.hnmc-sh__i svg{width:calc(var(--hnmc-sh-s) * .42);height:calc(var(--hnmc-sh-s) * .42)}
.hnmc-sh__t{white-space:nowrap}
/* Copy, PDF, "more": outlined */
.hnmc-sh .hnmc-sh__b--copy,.hnmc-sh .hnmc-sh__b--pdf,.hnmc-sh .hnmc-sh__b--more{background:#fff;color:#1E293B!important;box-shadow:inset 0 0 0 1px #B9C3CF}
.hnmc-sh .hnmc-sh__b--copy .hnmc-sh__i,.hnmc-sh .hnmc-sh__b--more .hnmc-sh__i{color:#012D53;background:transparent}
.hnmc-sh .hnmc-sh__b--pdf .hnmc-sh__i{color:#B42318;background:transparent}
/* Icon-only shapes */
[data-shape=circle] .hnmc-sh__b,[data-shape=round] .hnmc-sh__b{width:var(--hnmc-sh-s);padding:0}
[data-shape=round] .hnmc-sh__b{border-radius:calc(var(--hnmc-sh-s) * .22)}
[data-shape=circle] .hnmc-sh__i,[data-shape=round] .hnmc-sh__i{background:transparent}
.hnmc-sh[data-shape=circle] .hnmc-sh__t,.hnmc-sh[data-shape=round] .hnmc-sh__t{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* Phone-only apps (no web address on computers) */
@media (hover:hover) and (pointer:fine){.hnmc-sh--touch{display:none!important}}
[hidden].hnmc-sh__b{display:none!important}
.hnmc-sh-sr{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* Share window */
.hnmc-shd{box-sizing:border-box;width:min(640px,calc(100vw - 32px));max-height:calc(100vh - 48px);overflow:auto;margin:auto;padding:22px 24px;border:0;border-radius:16px;background:#fff;color:#1E293B;box-shadow:0 24px 60px rgba(1,20,40,.35);font:400 15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans Thai",Tahoma,sans-serif}
.hnmc-shd::backdrop{background:rgba(1,20,40,.55)}
.hnmc-shd[open]{animation:hnmc-shd-in .18s ease-out}
.hnmc-shd__head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hnmc-shd__h{margin:0;font-size:20px;line-height:1.3;color:#012D53}
.hnmc-shd__x{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:0;border-radius:50%;background:#F1F5F9;color:#1E293B;cursor:pointer}
.hnmc-shd__x:focus-visible,.hnmc-shd__cbtn:focus-visible,.hnmc-shd__pbtn:focus-visible{outline:3px solid #FFC83D;outline-offset:2px}
.hnmc-shd__title{margin:6px 0 16px;color:#475569;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hnmc-shd__grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 8px;margin:0 0 16px}
.hnmc-shd .hnmc-sh__b{flex-direction:column;height:auto;min-width:0;width:100%;padding:0;gap:6px;border-radius:12px;background:transparent;color:#1E293B!important;font-size:13px}
.hnmc-shd .hnmc-sh__b:hover{transform:none;filter:none}
.hnmc-shd .hnmc-sh__i{width:52px;height:52px;background:var(--hnmc-sh-c);color:#fff}
.hnmc-shd[data-shape=round] .hnmc-sh__i{border-radius:14px}
.hnmc-shd .hnmc-sh__i svg{width:24px;height:24px}
.hnmc-shd .hnmc-sh__t{white-space:normal;text-align:center}
.hnmc-shd__copy{display:flex;gap:8px;margin:0 0 12px}
.hnmc-shd__copy input{flex:1 1 auto;min-width:0;height:46px;padding:0 12px;border:1px solid #CBD5E1;border-radius:10px;background:#F8FAFC;color:#334155;font:inherit;font-size:14px}
.hnmc-shd__cbtn,.hnmc-shd__pbtn{flex:0 0 auto;height:46px;padding:0 18px;border:0;border-radius:10px;background:#012D53;color:#fff;font:600 14px/1 inherit;font-family:inherit;cursor:pointer}
.hnmc-shd__pdf{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;background:#FDF3F2}
.hnmc-shd__pdf-i{color:#B42318;display:inline-flex}
.hnmc-shd__pdf-i svg{width:32px;height:32px}
.hnmc-shd__pdf-t{flex:1 1 auto;display:flex;flex-direction:column;gap:2px;min-width:0}
.hnmc-shd__pdf-t small{color:#64748B;font-size:12.5px}
.hnmc-shd__pbtn{background:#B42318}
@keyframes hnmc-shd-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes hnmc-shd-up{from{transform:translateY(100%)}to{transform:none}}
/* Phones: bottom sheet */
@media (max-width:600px){
.hnmc-shd{width:100vw;max-width:100vw;max-height:88vh;margin:auto 0 0;padding:12px 16px calc(18px + env(safe-area-inset-bottom,0px));border-radius:20px 20px 0 0}
.hnmc-shd[open]{animation:hnmc-shd-up .22s ease-out}
.hnmc-shd__head:before{content:"";position:absolute;left:50%;top:6px;width:44px;height:5px;margin-left:-22px;border-radius:3px;background:#CBD5E1}
.hnmc-shd__head{padding-top:8px}
.hnmc-shd__pdf{flex-wrap:wrap}
.hnmc-shd__pbtn{width:100%}
.hnmc-sh .hnmc-sh__b{--hnmc-sh-s:44px}
}
/* "แชร์หน้านี้" inside the floating contact button */
.hnmc-cb .hnmc-cb__share{margin:0;padding:0;border:0;background:none;font:inherit;color:#fff;cursor:pointer;text-align:left}
.hnmc-cb .hnmc-cb__share:focus-visible{outline:3px solid #FFC83D;outline-offset:3px;border-radius:30px}
.hnmc-cb__share-li{padding-top:10px!important;border-top:1px dashed rgba(1,45,83,.35)}
/* Toast */
.hnmc-sh-toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:100000;transform:translateX(-50%);max-width:calc(100vw - 32px);padding:10px 18px;border-radius:10px;background:#012D53;color:#fff;font:500 14px/1.4 system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans Thai",Tahoma,sans-serif;box-shadow:0 8px 24px rgba(1,20,40,.3)}
.hnmc-sh-toast[hidden]{display:none}
/* Print-only header */
.hnmc-sh-print{display:none}
@media (prefers-reduced-motion:reduce){.hnmc-sh__b,.hnmc-shd{animation:none!important;transition:none!important}}
@media print{
@page{size:A4;margin:14mm 14mm 16mm}
.hnmc-sh,.hnmc-shd,.hnmc-sh-toast,.hnmc-cb,#wpadminbar{display:none!important}
.hnmc-sh-print{display:flex!important;align-items:center;gap:12px;margin:0 0 8mm;padding:0 0 4mm;border-bottom:1px solid #999;font:400 10pt/1.4 system-ui,"Noto Sans Thai",Tahoma,sans-serif;color:#000}
.hnmc-sh-print__logo{max-height:14mm;width:auto}
.hnmc-sh-print__txt{display:flex;flex-direction:column}
.hnmc-sh-print__txt strong{font-size:12pt}
html,body{background:#fff!important}
img,figure,table,pre,blockquote{break-inside:avoid}
h1,h2,h3{break-after:avoid}
a[href^="http"]{color:inherit}
body.hnmc-print-clean .site-header,body.hnmc-print-clean #masthead,body.hnmc-print-clean>header,body.hnmc-print-clean header.wp-block-template-part,body.hnmc-print-clean .site-footer,body.hnmc-print-clean #colophon,body.hnmc-print-clean footer.wp-block-template-part,body.hnmc-print-clean nav,body.hnmc-print-clean aside,body.hnmc-print-clean #secondary,body.hnmc-print-clean .widget-area,body.hnmc-print-clean .sidebar,body.hnmc-print-clean #comments,body.hnmc-print-clean .comments-area,body.hnmc-print-clean .wp-block-comments,body.hnmc-print-clean .post-navigation,body.hnmc-print-clean .navigation{display:none!important}
}
/* 1.26.0: PDF window (save / share / open / print) */
.hnmc-pdf-open{overflow:hidden}
.hnmc-pdf{position:fixed;inset:0;z-index:100000;background:rgba(15,23,42,.62);display:flex;align-items:center;justify-content:center;padding:16px;font-family:system-ui,"Noto Sans Thai",Tahoma,sans-serif}
.hnmc-pdf[hidden]{display:none}
.hnmc-pdf__card{width:100%;max-width:440px;background:#fff;color:#0f172a;border-radius:18px;box-shadow:0 24px 60px rgba(0,0,0,.3);overflow:hidden}
.hnmc-pdf__head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:#B42318;color:#fff}
.hnmc-pdf__head strong{font-size:17px}
.hnmc-pdf__x{width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font-size:24px;line-height:1;cursor:pointer}
.hnmc-pdf__body{display:flex;gap:14px;padding:16px;align-items:center}
.hnmc-pdf__thumb{flex:none;width:92px;aspect-ratio:210/297;border:1px solid #e2e8f0;border-radius:6px;background:#f8fafc;overflow:hidden;display:flex;align-items:flex-start;justify-content:center}
.hnmc-pdf__thumb img{width:84%;margin-top:6%;height:auto;display:block}
.hnmc-pdf__info{flex:1;min-width:0}
.hnmc-pdf__name{margin:0 0 4px;font-weight:700;font-size:15px;word-break:break-word}
.hnmc-pdf__msg{margin:0 0 10px;font-size:14px;color:#475569}
.hnmc-pdf__bar{height:6px;border-radius:99px;background:#e2e8f0;overflow:hidden}
.hnmc-pdf__bar span{display:block;height:100%;width:0;background:#B42318;transition:width .3s}
.hnmc-pdf[data-state=ready] .hnmc-pdf__bar,.hnmc-pdf[data-state=fail] .hnmc-pdf__bar{display:none}
.hnmc-pdf[data-state=fail] .hnmc-pdf__msg{color:#B42318}
.hnmc-pdf__acts{display:flex;flex-wrap:wrap;gap:8px;padding:0 16px 12px}
.hnmc-pdf__btn{flex:1 1 40%;min-height:46px;display:inline-flex;align-items:center;justify-content:center;padding:0 14px;border:1.5px solid #cbd5e1;border-radius:12px;background:#fff;color:#0f172a;font:600 15px/1.2 inherit;text-decoration:none;cursor:pointer}
.hnmc-pdf__btn[hidden]{display:none}
.hnmc-pdf__btn--main{flex-basis:100%;border-color:#B42318;background:#B42318;color:#fff}
.hnmc-pdf__btn--main:hover,.hnmc-pdf__btn--main:focus{color:#fff;background:#912018}
.hnmc-pdf__hint{margin:0;padding:0 16px 16px;font-size:12.5px;color:#64748b}
.hnmc-pdf__hint:empty{display:none}
.hnmc-pdf-stage{position:absolute!important;left:-12000px!important;top:0!important;width:720px!important;max-width:none!important;background:#fff!important;color:#111;padding:0!important;margin:0!important;box-sizing:border-box;font-size:15px;line-height:1.7}
.hnmc-pdf-stage *{max-width:100%!important;box-sizing:border-box}
.hnmc-pdf-stage img{height:auto!important;object-fit:fill!important}
.hnmc-pdf-stage img.hnmc-pdf-img{display:block;max-width:100%!important;max-height:none!important;margin:8px auto!important;position:static!important;transform:none!important}
.hnmc-pdf-stage .alignwide,.hnmc-pdf-stage .alignfull{margin-left:0!important;margin-right:0!important;width:100%!important}
.hnmc-pdf-stage__head{display:flex!important;align-items:center;gap:12px;margin:0 0 18px;padding:0 0 12px;border-bottom:1px solid #999;font:400 13px/1.4 system-ui,"Noto Sans Thai",Tahoma,sans-serif;color:#000}
.hnmc-pdf-stage__head img{max-height:52px;width:auto}
.hnmc-pdf-stage__head .hnmc-sh-print__txt{display:flex;flex-direction:column}
.hnmc-pdf-stage__img{display:block;width:100%;margin:0 0 16px;border-radius:6px}
.hnmc-pdf-stage__title{font-size:26px;line-height:1.35;margin:0 0 14px}
.hnmc-pdf-stage__link,.hnmc-pdf-stage__url{font-size:12px;color:#555;word-break:break-all}
.hnmc-pdf-stage__url{margin-top:18px;padding-top:8px;border-top:1px solid #ddd}
@media print{.hnmc-pdf,.hnmc-pdf-stage{display:none!important}}
