/* mh7 — ธีมใหม่ทุกหน้า (header / เมนู / แถบหัวเรื่อง / การ์ด / footer) ชุดเดียวกับหน้าแรก 27060
   โหลดเฉพาะเมื่อสวิตช์ mh7_chrome เปิด (body.mh7-on) · ส่วน header/footer ครอบด้วย .mh7c */

/* ---------- พื้นฐาน ---------- */
body.mh7-on{background:#FFFFFF;color:#17211C;font-family:'Sarabun',system-ui,sans-serif;margin:0}
body.mh7-on[class*="elementor-kit-"]{--e-global-typography-primary-font-family:"Prompt";--e-global-typography-secondary-font-family:"Prompt";--e-global-typography-accent-font-family:"Prompt";--e-global-typography-text-font-family:"Sarabun"}
body.mh7-on [id]{scroll-margin-top:70px}
body.mh7-on #page,body.mh7-on #sb-site,body.mh7-on .site-canvas{min-height:0!important}
.mh7c,.mh7c *,.mh7c *::before,.mh7c *::after,.mh7-band,.mh7-band *,.mh7-bg,.mh7-bg *{box-sizing:border-box}
.mh7c{font-family:'Sarabun',system-ui,sans-serif;font-size:16px;line-height:1.6;color:#17211C;text-align:left}
/* :where() = น้ำหนักเท่า .mh7c a (0,1,1) — ห้ามใช้ .mh7c a:visited ตรง ๆ (0,2,1) เพราะชนะกฎสีของเมนู/footer จนลิงก์ที่เคยเปิดกลายเป็นสีเข้มบนพื้นเข้ม */
.mh7c a,.mh7c a:where(:hover,:visited,:focus){text-decoration:none;color:inherit;box-shadow:none}
.mh7c ul,.mh7c ol{list-style:none;margin:0;padding:0}
.mh7c li{margin:0;padding:0;list-style:none;background:none;border:0}
.mh7c li::before{content:none}
.mh7c h2{margin:0;padding:0;border:0;background:none;text-transform:none;letter-spacing:0}
.mh7c h2::before,.mh7c h2::after{content:none}
.mh7c button{font:inherit;color:inherit;background:none;border:0;margin:0;padding:0;width:auto;min-width:0;cursor:pointer;text-transform:none;letter-spacing:0;line-height:inherit;box-shadow:none;border-radius:0}
.mh7c nav,.mh7c label,.mh7-crumb,.mh7-pages{font-family:'Sarabun',system-ui,sans-serif}
.mh7c img{max-width:100%;height:auto;border:0}
.mh7-w{max-width:1200px;margin-left:auto;margin-right:auto;padding-left:20px;padding-right:20px}
.mh7-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;margin:-1px;padding:0;border:0}
.mh7-nw{white-space:nowrap}

/* วงโฟกัส — ชนะ *:focus{outline:0!important} ของธีม Plant */
body.mh7-on a:focus-visible,body.mh7-on button:focus-visible,body.mh7-on [tabindex]:focus-visible,body.mh7-on input[type=button]:focus-visible,body.mh7-on input[type=submit]:focus-visible,body.mh7-on input[type=radio]:focus-visible,body.mh7-on input[type=checkbox]:focus-visible{outline:3px solid #F5B921!important;outline-offset:2px!important;box-shadow:0 0 0 5px #17211C!important}
body.mh7-on input[type=text]:focus-visible,body.mh7-on input[type=search]:focus-visible,body.mh7-on input[type=email]:focus-visible,body.mh7-on input[type=tel]:focus-visible,body.mh7-on textarea:focus-visible,body.mh7-on select:focus-visible{outline:3px solid #0A7A4B!important;outline-offset:1px!important}

/* ขนาดตัวอักษร (ปุ่ม ก ก ก) */
html[data-mhz="0.92"] .mh7-z{zoom:.92}
html[data-mhz="1.1"] .mh7-z{zoom:1.1}

/* ---------- header ---------- */
.mh7-stripe{display:flex;height:6px}
.mh7-stripe span{flex:1}
.mh7-gov{background:#064E31;color:#E3F1E9;font-size:14px}
.mh7-gov .mh7-w{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 16px;padding-top:4px;padding-bottom:4px}
.mh7-tools{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-left:auto}
.mh7-tools-l{margin-right:4px}
.mh7c .mh7-tool{min-width:44px;min-height:44px;padding:0 8px;border:1px solid rgba(255,255,255,.3);border-radius:4px;background:transparent;color:#FFFFFF;font-weight:600;line-height:1}
.mh7c .mh7-tool[aria-pressed="true"]{background:#FFFFFF;color:#064E31}
.mh7c .mh7-staff-l{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;color:#E3F1E9;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.mh7-mast{background:#FFFFFF}
.mh7-mast .mh7-w{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px;padding-top:16px;padding-bottom:16px}
.mh7-logo{display:flex;align-items:center}
.mh7-logo img{height:60px;width:auto;display:block}
.mh7-search{flex:1 1 320px;min-width:0;display:flex;align-items:center;gap:8px;padding:4px 4px 4px 18px;border-radius:6px;border:2px solid #0A7A4B;background:#FFFFFF;margin:0}
.mh7-search:focus-within{border-color:#064E31;box-shadow:0 0 0 2px #064E31}
.mh7-search input[type=search]{flex:1;min-width:0;width:auto;border:0;outline:none;background:transparent;min-height:44px;height:44px;margin:0;padding:0;font:inherit;font-size:17px;color:#17211C;box-shadow:none;border-radius:0}
body.mh7-on .mh7-search input[type=search]:focus-visible{outline:0!important}
.mh7c .mh7-btn,.mh7-btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 20px;border-radius:5px;border:0;background:#0A7A4B;color:#FFFFFF;font-family:'Prompt','Sarabun',sans-serif;font-weight:600;font-size:16px;line-height:1.2;cursor:pointer;box-shadow:none;text-transform:none;letter-spacing:0;width:auto}
.mh7-btn:hover{background:#064E31;color:#FFFFFF}
.mh7c .mh7-hot{display:flex;align-items:center;gap:12px;padding:8px 18px 8px 8px;border-radius:6px;background:#F5B921;color:#17211C}
.mh7-hot-ic{flex:none;width:46px;height:46px;border-radius:50%;background:#17211C;color:#F5B921;display:flex;align-items:center;justify-content:center}
.mh7-hot-tx{display:flex;flex-direction:column;line-height:1.15}
.mh7-hot-tx small{font-size:13px;font-weight:600}
.mh7-hot-tx b{font-family:'Prompt','Sarabun',sans-serif;font-weight:700;font-size:28px;line-height:1.1}
.mh7c .mh7-menu-btn{display:none;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 14px;border:1px solid #0A7A4B;border-radius:4px;color:#0A7A4B;font-family:'Prompt','Sarabun',sans-serif;font-weight:600}
.mh7c .mh7-menu-btn::before{content:"";width:18px;height:2px;border-radius:1px;background:currentColor;box-shadow:0 -6px 0 currentColor,0 6px 0 currentColor}

/* ---------- เมนู 9 หมวดสี ---------- */
#mh7-nav{position:sticky;top:0;z-index:50;background:#17211C}
body.admin-bar #mh7-nav{top:var(--wp-admin--admin-bar--height,32px)}
.mh7-navl{display:flex;flex-wrap:wrap}
.mh7-navl>li{position:relative;display:flex;align-items:stretch;transition:background .2s}
.mh7-navl>li::after{content:"";position:absolute;left:0;right:0;bottom:0;height:5px;background:var(--c);pointer-events:none}
.mh7-navl>li>a{display:inline-flex;align-items:center;min-height:52px;padding:0 16px;font-family:'Prompt','Sarabun',sans-serif;font-weight:600;font-size:16px;line-height:1.3;color:#FFFFFF}
.mh7-navl>li.has-sub>a{padding-right:4px}
.mh7c .mh7-sub-t{display:inline-flex;align-items:center;justify-content:center;width:28px;min-height:52px;padding:0 10px 0 2px;color:#FFFFFF}
.mh7c .mh7-sub-t::before{content:"";width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .2s}
.mh7-navl>li.open>.mh7-sub-t::before{transform:translateY(2px) rotate(-135deg)}
.mh7-navl>li:hover,.mh7-navl>li.cur,.mh7-navl>li.open{background:var(--c)}
.mh7-navl>li:hover>a,.mh7-navl>li.cur>a,.mh7-navl>li.open>a,.mh7-navl>li:hover>.mh7-sub-t,.mh7-navl>li.cur>.mh7-sub-t,.mh7-navl>li.open>.mh7-sub-t{color:var(--t,#FFFFFF)}
.mh7-navl .mh-c1{--c:#0A7A4B;--t:#FFFFFF}
.mh7-navl .mh-c2{--c:#2FA36B;--t:#FFFFFF}
.mh7-navl .mh-c3{--c:#F5B921;--t:#17211C}
.mh7-navl .mh-c4{--c:#3B82F6;--t:#FFFFFF}
.mh7-navl .mh-c5{--c:#F97316;--t:#17211C}
.mh7-navl .mh-c6{--c:#A78BFA;--t:#17211C}
.mh7-navl .mh-c7{--c:#F472B6;--t:#17211C}
.mh7-navl .mh-c8{--c:#2DD4BF;--t:#17211C}
.mh7-navl .mh-c9{--c:#E5E7EB;--t:#17211C}
.mh7-navl>li:not([class*="mh-c"]){--c:#4C5A52;--t:#FFFFFF}
/* เมนูย่อย */
.mh7-navl .sub-menu{display:none;position:absolute;top:100%;left:0;z-index:60;min-width:290px;max-width:380px;padding:8px 0 10px;background:#FFFFFF;border-top:4px solid var(--c);border-radius:0 0 8px 8px;box-shadow:0 14px 30px rgba(23,33,28,.2)}
.mh7-navl>li:nth-last-child(-n+3)>.sub-menu{left:auto;right:0}
.mh7-navl>li.open>.sub-menu{display:block}
@media (hover:hover) and (min-width:901px){
  .mh7-navl>li:hover>.sub-menu{display:block}
}
.mh7-navl .sub-menu li{display:block}
.mh7-navl .sub-menu a,.mh7-navl .mh7-grp{display:block;padding:9px 20px;font-family:'Sarabun',system-ui,sans-serif;font-size:15.5px;font-weight:500;line-height:1.45;color:#17211C}
.mh7-navl .sub-menu a:hover{background:#EEF5F0;color:#0A6B42;text-decoration:underline;text-underline-offset:3px}
.mh7-navl .sub-menu a[aria-current]{color:#0A6B42;font-weight:600;box-shadow:inset 4px 0 0 var(--c)}
.mh7-navl .mh7-grp{padding:12px 20px 4px;font-family:'Prompt','Sarabun',sans-serif;font-size:14px;font-weight:600;color:#4C5A52}
.mh7-navl .mh7-grp-l a{padding-left:34px;position:relative}
.mh7-navl .mh7-grp-l a::before{content:"";position:absolute;left:21px;top:19px;width:5px;height:5px;border-radius:50%;background:var(--c)}
@media (min-width:901px){
  .mh7-navl{flex-wrap:nowrap}
  .mh7-navl>li{flex:1 1 auto;justify-content:center}
  .mh7-navl>li>a{padding:0 10px;font-size:15.5px;white-space:nowrap}
  .mh7-navl>li.has-sub>a{padding-right:2px}
  .mh7c .mh7-sub-t{width:24px;padding:0 8px 0 0}
}
@media (min-width:901px) and (max-width:1140px){
  .mh7-navl>li>a{padding:0 6px;font-size:14.5px}
  .mh7c .mh7-sub-t{width:20px;padding:0 6px 0 0}
}
@media (min-width:901px) and (max-width:1010px){
  .mh7-navl>li>a{padding:0 4px;font-size:13.5px}
  .mh7c .mh7-sub-t{width:18px;padding:0 4px 0 0}
}

/* ---------- header / เมนู: มือถือ แท็บเล็ต ---------- */
@media (max-width:900px){
  .mh7-govnote{display:none}
  .mh7c .mh7-hot{order:1;margin-left:auto}
  .mh7-search{order:2;flex:1 1 60%}
  .mh7c .mh7-menu-btn{display:inline-flex;order:3}
  #mh7-nav .mh7-w{padding-left:0;padding-right:0}
  .mh7-navl{display:none;flex-direction:column}
  .mh7-navl.open{display:flex}
  .mh7-navl>li{flex-wrap:wrap;border-bottom:1px solid rgba(255,255,255,.08)}
  .mh7-navl>li::after{top:0;bottom:0;right:auto;width:5px;height:auto}
  .mh7-navl>li>a{flex:1;min-height:50px;padding:0 20px}
  .mh7c .mh7-sub-t{width:56px;min-height:50px;padding:0;border-left:1px solid rgba(255,255,255,.12)}
  .mh7-navl .sub-menu{position:static;flex-basis:100%;min-width:0;max-width:none;border-top:0;border-left:5px solid var(--c);border-radius:0;box-shadow:none;padding:4px 0 8px}
}
@media (max-width:540px){
  .mh7-mast .mh7-w{column-gap:12px}
  .mh7-search{flex:1 1 100%}
  .mh7c .mh7-hot{order:3;flex:1 1 0;min-width:0;margin-left:0}
  .mh7c .mh7-menu-btn{order:4;align-self:stretch;padding:0 12px}
}
@media (max-width:640px){
  .mh7-tools-l{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .mh7-logo img{height:52px}
}

/* ---------- แถบหัวเรื่อง ---------- */
.mh7-band{background:#FFFFFF;border-bottom:4px solid var(--c,#0A7A4B)}
.mh7-band .mh7-w{padding-top:16px;padding-bottom:22px}
.mh7-crumb ol{display:flex;flex-wrap:wrap;align-items:center;list-style:none;margin:0 0 8px;padding:0;font-size:14.5px;color:#4C5A52}
.mh7-crumb li{display:inline-flex;align-items:center;min-width:0;margin:0;padding:0;list-style:none;background:none}
.mh7-crumb li::before{content:none}
.mh7-crumb li+li::before{content:"›";margin:0 8px;color:#8A988F}
.mh7-crumb a{display:inline-flex;align-items:center;min-height:32px;color:#0A6B42;text-decoration:none}
.mh7-crumb a:hover{text-decoration:underline;text-underline-offset:3px}
.mh7-crumb li[aria-current] span{display:inline-block;max-width:44ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
.mh7-chip{display:inline-flex;align-items:center;min-height:30px;margin:2px 0 10px;padding:2px 12px;border-radius:4px;background:var(--c,#0A7A4B);color:var(--t,#FFFFFF)!important;font-family:'Prompt','Sarabun',sans-serif;font-weight:600;font-size:14px;line-height:1.3;text-decoration:none!important}
.mh7-band .mh7-title{margin:0;padding:0 0 0 14px;border-left:6px solid var(--c,#0A7A4B);font-family:'Prompt','Sarabun',sans-serif;font-weight:600;font-size:30px;line-height:1.4;color:#17211C;text-transform:none;letter-spacing:0;background:none}
.mh7-band .mh7-title::before,.mh7-band .mh7-title::after{content:none}
.mh7-meta{display:flex;flex-wrap:wrap;gap:6px 16px;margin-top:10px;padding-left:20px;font-size:15px;color:#4C5A52}
.mh7-date{display:inline-flex;align-items:center;gap:6px}
.mh7-date svg{width:16px;height:16px;color:#0A7A4B}
.mh7-desc{margin-top:8px;padding-left:20px;color:#4C5A52}
@media (max-width:640px){
  .mh7-band .mh7-title{font-size:23px}
  .mh7-crumb li[aria-current] span{max-width:24ch}
}

/* ---------- พื้นที่เนื้อหา ---------- */
.mh7-bg{background:#EEF1EE}
.mh7-main{padding-top:28px;padding-bottom:48px}
.mh7-main.is-el{padding-top:16px;padding-bottom:32px}
.mh7-article{max-width:880px;margin:0 auto;padding:32px 40px 28px;background:#FFFFFF;border:1px solid #DDE3DE;border-radius:8px}
.mh7-article.is-el{max-width:none;padding:24px}
.mh7-hero{margin:0 0 24px}
.mh7-hero img{display:block;width:100%;height:auto;border-radius:6px}
body.mh7-on .mh7-article:not(.is-el) .entry-content{font-family:'Sarabun',system-ui,sans-serif;font-size:18px;line-height:1.8;color:#17211C;overflow-wrap:break-word}
body.mh7-on .mh7-article:not(.is-el) .entry-content>*:first-child{margin-top:0}
body.mh7-on .mh7-article:not(.is-el) .entry-content p{margin:0 0 1em}
body.mh7-on .mh7-article:not(.is-el) .entry-content h1,body.mh7-on .mh7-article:not(.is-el) .entry-content h2,body.mh7-on .mh7-article:not(.is-el) .entry-content h3,body.mh7-on .mh7-article:not(.is-el) .entry-content h4{font-family:'Prompt','Sarabun',sans-serif;font-weight:600;line-height:1.45;color:#17211C;margin:1.4em 0 .5em;text-transform:none;letter-spacing:0}
body.mh7-on .mh7-article:not(.is-el) .entry-content h2{font-size:24px}
body.mh7-on .mh7-article:not(.is-el) .entry-content h3{font-size:21px}
body.mh7-on .mh7-article:not(.is-el) .entry-content h4{font-size:19px}
body.mh7-on .mh7-article .entry-content a{color:#0A6B42;text-decoration:underline;text-underline-offset:3px}
body.mh7-on .mh7-article .entry-content a:hover{color:#064E31}
body.mh7-on .mh7-article .entry-content img{max-width:100%;height:auto}
body.mh7-on .mh7-article:not(.is-el) .entry-content img{border-radius:4px}
body.mh7-on .mh7-article .entry-content iframe,body.mh7-on .mh7-article .entry-content video,body.mh7-on .mh7-article .entry-content embed{max-width:100%}
body.mh7-on .mh7-article:not(.is-el) .entry-content ul,body.mh7-on .mh7-article:not(.is-el) .entry-content ol{margin:0 0 1em;padding-left:1.4em}
body.mh7-on .mh7-article:not(.is-el) .entry-content li{margin:0 0 .35em}
body.mh7-on .mh7-article:not(.is-el) .entry-content blockquote{margin:1.2em 0;padding:12px 18px;border-left:5px solid #2FA36B;background:#F3F9F5;font-style:normal}
body.mh7-on .mh7-article:not(.is-el) .entry-content table{width:100%;border-collapse:collapse;margin:0 0 1em;font-size:16px}
body.mh7-on .mh7-article:not(.is-el) .entry-content th,body.mh7-on .mh7-article:not(.is-el) .entry-content td{padding:8px 10px;border:1px solid #DDE3DE;vertical-align:top}
body.mh7-on .mh7-article:not(.is-el) .entry-content th{background:#EEF5F0;font-weight:600}
body.mh7-on .mh7-article .entry-content figure{max-width:100%}
body.mh7-on .mh7-article .entry-content figcaption,body.mh7-on .mh7-article .entry-content .wp-caption-text{font-size:14.5px;color:#4C5A52}
.mh7-art-foot{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid #DDE3DE}
a.mh7-back{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border-radius:5px;background:var(--c,#0A7A4B);color:var(--t,#FFFFFF)!important;font-family:'Prompt','Sarabun',sans-serif;font-weight:600;font-size:15.5px;text-decoration:none!important}
a.mh7-back:hover{filter:brightness(.95)}
@media (max-width:640px){
  .mh7-main{padding-top:16px;padding-bottom:32px}
  .mh7-article{padding:20px 16px;border-radius:6px}
  body.mh7-on .mh7-article:not(.is-el) .entry-content{font-size:17px}
}

/* หัวข้อส่วน (แบบหน้าแรก) */
.mh7-sh{display:flex;align-items:flex-end;margin:40px 0 16px;padding:0;border-bottom:3px solid var(--c,#0A7A4B);font-family:'Prompt','Sarabun',sans-serif;font-weight:600;font-size:19px;line-height:1.3;text-transform:none;letter-spacing:0;background:none}
.mh7-sh::before,.mh7-sh::after{content:none}
.mh7-sh span{display:inline-block;padding:9px 18px;border-radius:6px 6px 0 0;background:var(--c,#0A7A4B);color:var(--t,#FFFFFF)}

/* ---------- การ์ดข่าว ---------- */
.mh7-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
.mh7-card{min-width:0;margin:0;padding:0;background:#FFFFFF;border:1px solid #DDE3DE;border-radius:8px;overflow:hidden;transition:border-color .2s,box-shadow .2s,transform .2s}
.mh7-card:hover{border-color:var(--c);box-shadow:0 8px 20px rgba(23,33,28,.1);transform:translateY(-2px)}
a.mh7-card-a{display:flex;flex-direction:column;height:100%;color:#17211C!important;text-decoration:none!important}
.mh7-card-im{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:#E3EEE7}
.mh7-card-im img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s}
.mh7-card:hover .mh7-card-im img{transform:scale(1.04)}
.mh7-card-im.is-ph{background:#E3EEE7 url("https://mhc7.dmh.go.th/wp-content/uploads/2016/09/cropped-07-1-192x192.png") center/72px no-repeat}
.mh7-card-tx{display:flex;flex-direction:column;gap:6px;flex:1;padding:12px 14px 16px}
.mh7-card-cat{align-self:flex-start;padding:1px 10px;border-radius:4px;background:var(--c);color:var(--t);font-family:'Prompt','Sarabun',sans-serif;font-weight:600;font-size:12.5px;line-height:1.6}
.mh7-card-cat.is-page{background:#4C5A52;color:#FFFFFF}
.mh7-card-t{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-family:'Prompt','Sarabun',sans-serif;font-weight:600;font-size:16px;line-height:1.5}
.mh7-card:hover .mh7-card-t{color:#0A6B42}
.mh7-card-d{margin-top:auto;padding-top:4px;font-size:14px;color:#4C5A52}
@media (max-width:1100px){.mh7-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:900px){.mh7-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media (max-width:560px){.mh7-grid{grid-template-columns:minmax(0,1fr)}}

/* เปลี่ยนหน้า */
.mh7-pages{margin-top:32px}
.mh7-pages h2{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.mh7-pages .nav-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.mh7-pages .page-numbers{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:0 14px;border:1px solid #CFE0D6;border-radius:6px;background:#FFFFFF;color:#17211C;font-family:'Prompt','Sarabun',sans-serif;font-weight:600;font-size:15.5px;text-decoration:none}
.mh7-pages a.page-numbers:hover{border-color:#0A7A4B;color:#0A6B42}
.mh7-pages .page-numbers.current{background:#0A7A4B;border-color:#0A7A4B;color:#FFFFFF}
.mh7-pages .page-numbers.dots{border:0;background:none;min-width:24px;padding:0}

/* ค้นหา / ว่าง / 404 */
.mh7-sbox{max-width:880px;margin:0 auto 24px}
.mh7-search-lg{width:100%}
.mh7-empty{max-width:880px;margin:0 auto;padding:28px;background:#FFFFFF;border:1px solid #DDE3DE;border-radius:8px;text-align:center;font-size:17px;color:#4C5A52}
.mh7-empty p{margin:0}
.mh7-404-lead{margin:0 0 18px;font-size:18px}
.mh7-qlinks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:24px 0 0;padding:0;list-style:none}
.mh7-qlinks li{margin:0;padding:0;list-style:none}
.mh7-qlinks li::before{content:none}
.mh7-qlinks a{display:flex;align-items:center;justify-content:center;min-height:56px;padding:8px 10px;border-radius:6px;background:var(--c);color:var(--t)!important;font-family:'Prompt','Sarabun',sans-serif;font-weight:600;font-size:15.5px;text-align:center;text-decoration:none!important}
.mh7-qlinks a:hover{filter:brightness(.95)}
.mh7-404-help{margin:22px 0 0;color:#4C5A52}
.mh7-404-help a{color:#0A6B42!important;text-decoration:underline;text-underline-offset:3px}
@media (max-width:640px){.mh7-qlinks{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---------- footer ---------- */
#mh7-foot{background:#17211C;color:#CBD5CF;font-size:15px}
#mh7-foot a:hover{color:#F5B921;text-decoration:underline;text-underline-offset:3px}
.mh7-mz{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
#mh7-foot .mh7-mz a{display:flex;align-items:center;justify-content:center;gap:6px;min-height:56px;padding:8px 10px;background:var(--c);color:var(--t,#0B1220);font-family:'Prompt','Sarabun',sans-serif;font-weight:600;font-size:16px;line-height:1.3;text-align:center;text-decoration:none;transition:box-shadow .2s}
#mh7-foot .mh7-mz a::after{content:"›";font-size:20px;line-height:1;transition:transform .2s}
#mh7-foot .mh7-mz a:hover{color:var(--t,#0B1220);text-decoration:none;box-shadow:inset 0 -5px 0 rgba(11,18,32,.28)}
#mh7-foot .mh7-mz a:hover::after{transform:translateX(3px)}
body.mh7-on #mh7-foot .mh7-mz a:focus-visible{position:relative;z-index:1;outline-offset:-8px!important;box-shadow:inset 0 0 0 5px #17211C!important}
.mh7-fbk{position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px 32px;padding-top:28px;padding-bottom:26px}
.mh7-fbk::after{content:"";position:absolute;left:20px;right:20px;bottom:0;border-bottom:1px solid rgba(255,255,255,.1)}
.mh7-fid{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1 1 560px}
#mh7-foot .mh7-fida{display:flex;align-items:center;gap:14px;align-self:flex-start;color:#FFFFFF;text-decoration:none}
.mh7-seal{flex:none;width:68px;height:68px;border-radius:50%;background:#FFFFFF;display:flex;align-items:center;justify-content:center}
.mh7-seal img{width:60px;height:60px;display:block;object-fit:contain}
.mh7-fnm b{display:block;font-family:'Prompt','Sarabun',sans-serif;font-weight:600;font-size:23px;line-height:1.25;color:#FFFFFF}
.mh7-fnm small{display:block;font-size:15px;color:#CBD5CF}
.mh7-fcts{display:flex;flex-wrap:wrap;column-gap:22px;padding-left:82px}
.mh7-fct{display:inline-flex;align-items:center;gap:8px;min-height:44px;line-height:1.45;color:#CBD5CF}
.mh7-fct svg{flex:none;width:17px;height:17px;color:#F5B921}
#mh7-foot .mh7-fhot{flex:none;box-shadow:0 4px 0 #B88700;transition:transform .15s,box-shadow .15s}
#mh7-foot .mh7-fhot:hover{color:#17211C;text-decoration:none;transform:translateY(-2px);box-shadow:0 6px 0 #B88700}
#mh7-foot .mh7-fhot .mh7-hot-tx b{font-size:34px}
.mh7-fmap{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:28px 36px;padding-top:28px;padding-bottom:28px}
.mh7-fcols{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 28px}
.mh7-fcol{min-width:0}
.mh7c .mh7-fh{display:inline-block;margin:0 0 6px;padding:0 0 6px;font-family:'Prompt','Sarabun',sans-serif;font-weight:600;font-size:16px;line-height:1.4;color:#FFFFFF;box-shadow:inset 0 -3px 0 var(--c,#F5B921)}
.mh7-fl a{display:block;min-height:44px;padding:11px 0;line-height:1.5;color:#CBD5CF}
.mh7-soc{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin-top:8px}
#mh7-foot .mh7-soc a{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 10px;border-radius:5px;background:#24302A;color:#FFFFFF;font-weight:600;font-size:14.5px;text-decoration:none;transition:background .2s}
#mh7-foot .mh7-soc a:hover{background:#33443B;color:#FFFFFF}
.mh7-soc svg{flex:none;width:20px;height:20px}
/* แบบสำรวจความพึงพอใจ */
.mh7-poll{align-self:start;padding:16px 16px 14px;border-radius:8px;background:#FFFFFF;color:#17211C}
.mh7c .mh7-poll-h{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-family:'Prompt','Sarabun',sans-serif;font-weight:600;font-size:17px;line-height:1.4;color:#0A6B42}
.mh7c .mh7-poll-h::before{content:"";width:6px;height:20px;border-radius:2px;background:#0A7A4B}
#mh7-foot .mh7-poll a:hover{color:#064E31}
.mh7-poll .wp-polls{--wp-polls-bar-height:10px;--wp-polls-bar-background:#2FA36B;--wp-polls-bar-border:#CFE0D6;--wp-polls-bar-image:none;--wp-polls-bar-radius:5px;--wp-polls-border:#CFE0D6;margin:0}
.mh7-poll .wp-polls p{text-align:left!important;margin:0 0 6px;font-size:15px}
.mh7-poll .wp-polls strong{font-family:'Prompt','Sarabun',sans-serif;font-size:15.5px;font-weight:600}
.mh7-poll .wp-polls-ul{list-style:none;margin:6px 0 10px;padding:0}
.mh7-poll .wp-polls-ul li{display:flex;align-items:center;gap:10px;min-height:40px;margin:0;padding:0;list-style:none;background:none;font-size:15px}
.mh7-poll .wp-polls-ul li::before{content:none}
.mh7-poll .wp-polls-ul li label{font:inherit;margin:0}
.mh7-poll .wp-polls-ul li i{font-style:normal}
.mh7-poll input[type=radio]{width:20px;height:20px;margin:0;accent-color:#0A7A4B}
.mh7-poll .wp-polls-ul:has(input[type=radio]){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 10px}
.mh7-poll .wp-polls-ul li:has(input[type=radio]){position:relative;flex-direction:column;justify-content:flex-start;gap:4px;min-height:64px;padding:10px 2px 8px;text-align:center;border:1.5px solid #CFE0D6;border-radius:5px;background:#FFFFFF}
.mh7-poll .wp-polls-ul li:has(input[type=radio]):hover{border-color:#0A7A4B}
.mh7-poll .wp-polls-ul li:has(input:checked){border-color:#0A7A4B;background:#EAF4EE}
.mh7-poll .wp-polls-ul li:has(input[type=radio]) label{cursor:pointer}
.mh7-poll .wp-polls-ul li:has(input[type=radio]) label::after{content:"";position:absolute;inset:0}
.mh7-poll .wp-polls-ul li:not(:has(input)){display:block;min-height:0;padding:5px 0;font-weight:600}
.mh7-poll .wp-polls-ul li small{font-weight:400;color:#4C5A52}
.mh7-poll input[type=button]{width:100%;min-height:44px;padding:0 20px;border:0;border-radius:5px;background:#0A7A4B;color:#FFFFFF;font-family:'Prompt','Sarabun',sans-serif;font-weight:600;font-size:15.5px;cursor:pointer;appearance:none;-webkit-appearance:none;box-shadow:0 4px 0 #064E31}
.mh7-poll input[type=button]:hover{background:#0A6B42}
.mh7-poll .wp-polls a{display:inline-flex;align-items:center;min-height:40px;color:#0A7A4B;font-weight:600;text-decoration:underline;text-underline-offset:3px}
.mh7-poll .wp-polls-ans p{text-align:center!important;margin:0}
.mh7-poll .wp-polls-loading{margin:0 0 10px}
#mh7-foot a.mh7-itt{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;margin-top:10px;padding:8px 12px;border:1.5px solid #CFE3D8;border-radius:6px;color:#0A6B42;font-weight:600;font-size:14.5px;line-height:1.4;text-decoration:none}
#mh7-foot a.mh7-itt:hover{border-color:#0A7A4B;background:#F3F9F5;color:#064E31}
/* สำหรับเจ้าหน้าที่ / ล่างสุด */
.mh7-staff{background:#101713;border-top:1px solid rgba(255,255,255,.08)}
.mh7-staff .mh7-w{display:flex;flex-wrap:wrap;align-items:center;gap:0 4px;padding-top:6px;padding-bottom:6px}
.mh7c .mh7-slab{display:inline-flex;align-items:center;gap:6px;margin-right:10px;padding:3px 10px;border-radius:4px;background:#F5B921;color:#17211C;font-family:'Prompt','Sarabun',sans-serif;font-weight:600;font-size:14px}
.mh7-slab svg{width:15px;height:15px}
.mh7-staff a{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;color:#CBD5CF}
.mh7-fbot{background:#101713;border-top:1px solid rgba(255,255,255,.08)}
.mh7-fbot .mh7-w{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 24px;padding-top:4px;padding-bottom:14px;font-size:13.5px;color:#A9B7AF}
.mh7-copy,.mh7-upd{display:block;padding:12px 0}
.mh7-pol{display:flex;flex-wrap:wrap;gap:0 18px}
#mh7-foot .mh7-pol a{display:inline-flex;align-items:center;min-height:44px;color:#CBD5CF;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(203,213,207,.4)}
@media (max-width:1180px){
  #mh7-foot .mh7-mz a{font-size:15px;padding:8px 6px}
  #mh7-foot .mh7-mz a::after{content:none}
  .mh7-fcts .mh7-fct:first-child{flex-basis:100%}
  .mh7-fmap{grid-template-columns:minmax(0,1fr)}
  .mh7-poll{max-width:560px}
}
@media (max-width:900px){
  .mh7-mz{grid-template-columns:repeat(4,minmax(0,1fr))}
  #mh7-foot .mh7-mz a:last-child{grid-column:span 2}
  .mh7-fcols{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mh7-soc{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .mh7-mz{grid-template-columns:repeat(2,minmax(0,1fr))}
  #mh7-foot .mh7-mz a{min-height:48px}
  .mh7-fcts{padding-left:0}
  .mh7-seal{width:56px;height:56px}
  .mh7-seal img{width:50px;height:50px}
  .mh7-fnm b{font-size:20px}
  #mh7-foot .mh7-fhot{width:100%;justify-content:center}
  .mh7-fcols{gap:18px 16px}
  .mh7-fl a{font-size:14.5px}
  .mh7-soc{grid-template-columns:1fr}
  .mh7-fbot .mh7-w{flex-direction:column;align-items:flex-start}
}
@media (min-width:641px){.mh7-upd{margin-left:auto}}

/* ---------- ลดการเคลื่อนไหว / พิมพ์ ---------- */
@media (prefers-reduced-motion:reduce){
  .mh7-card,.mh7-card-im img,.mh7-navl>li,#mh7-foot .mh7-fhot,#mh7-foot .mh7-mz a,#mh7-foot .mh7-mz a::after,.mh7c .mh7-sub-t::before{transition:none}
  .mh7-card:hover,.mh7-card:hover .mh7-card-im img,#mh7-foot .mh7-fhot:hover,#mh7-foot .mh7-mz a:hover::after{transform:none}
}
@media print{
  .mh7-gov,#mh7-nav,.mh7-search,.mh7c .mh7-menu-btn,.mh7-mz,.mh7-fmap,.mh7-staff,.mh7-rel,.mh7-art-foot{display:none!important}
  .mh7-bg{background:#FFFFFF}
  .mh7-article{border:0;padding:0}
}
