/* Teephak STEP15: consistent public navigation on every page using includes/header.php.
   Retains the existing data-nav-toggle/data-main-nav hooks in assets/js/app.js. */
.tp-unified-header{position:sticky;top:0;z-index:300;background:#fff!important;border-bottom:1px solid #e4eceb!important;box-shadow:none!important}
.tp-unified-header .tp-header-inner{min-height:72px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;flex-direction:row!important;gap:clamp(12px,1.4vw,22px)!important;padding-top:7px!important;padding-bottom:7px!important}
.tp-unified-header .tp-unified-brand{flex:0 0 auto!important;display:inline-flex!important;align-items:center!important;gap:9px!important;max-width:210px;min-width:0;text-decoration:none!important}
.tp-unified-header .tp-unified-logo{display:block!important;flex:0 0 41px!important;width:41px!important;height:37px!important;max-width:none!important;min-width:41px!important;fill:none;stroke:none;overflow:visible}
.tp-unified-header .tp-unified-brand-copy{display:flex;flex-direction:column;gap:2px;align-items:flex-start;min-width:0;white-space:nowrap;line-height:1.14}
.tp-unified-header .tp-unified-brand-copy strong{font:900 22px/1.1 'Noto Sans Thai',Tahoma,Arial,sans-serif!important;color:#142f3d!important;letter-spacing:-.035em}
.tp-unified-header .tp-unified-brand-copy small{font:750 10px/1.2 'Noto Sans Thai',Tahoma,Arial,sans-serif!important;color:#536873!important;letter-spacing:0}
.tp-unified-header .tp-main-nav{display:flex!important;flex:0 1 auto!important;align-items:center!important;justify-content:flex-end!important;gap:clamp(0px,.15vw,4px)!important;flex-wrap:nowrap!important;margin-left:auto!important;min-width:0}
.tp-unified-header .tp-main-nav > a{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px clamp(7px,.7vw,12px)!important;border:1px solid transparent;border-radius:999px;white-space:nowrap;color:#263c49!important;font-weight:800!important;font-size:clamp(12px,1.05vw,14px)!important;text-decoration:none!important;box-shadow:none!important;transform:none!important}
.tp-unified-header .tp-main-nav > a:hover,.tp-unified-header .tp-main-nav > a.is-active{color:#087467!important;background:#ecf9f5!important;border-color:#c7ece2!important}
.tp-unified-header .tp-main-nav > a.is-active:after{content:'';position:absolute;left:16px;right:16px;bottom:3px;height:3px;background:#f97316!important;border-radius:3px}
.tp-unified-header .tp-main-nav > a.tp-nav-cta{color:#fff!important;background:#087b70!important;border-color:#087b70!important;padding:9px 15px!important;font-weight:800!important}
.tp-unified-header .tp-main-nav > a.tp-nav-cta:hover{background:#05655c!important;color:#fff!important}
.tp-unified-header .tp-main-nav > a.tp-nav-cta:after{display:none!important}
.tp-unified-header .tp-nav-toggle{flex:0 0 auto;box-shadow:none!important}
/* STEP14 CTA currently inherits dark text from .tph14-article-paper p and h3. Explicit contrast wins. */
.article-page .article-card .article-content.tph14-article-paper .cta-wide{background:#08776e!important;border:1px solid #07665e!important;color:#fff!important;box-shadow:none!important}
.article-page .article-card .article-content.tph14-article-paper .cta-wide h3,
.article-page .article-card .article-content.tph14-article-paper .cta-wide p{color:#fff!important;opacity:1!important;text-shadow:none!important}
.article-page .article-card .article-content.tph14-article-paper .cta-wide h3{font-weight:900!important;font-size:clamp(20px,2.1vw,25px)!important;line-height:1.35!important;margin:0 0 8px!important}
.article-page .article-card .article-content.tph14-article-paper .cta-wide p{font-size:clamp(15px,1.4vw,17px)!important;line-height:1.65!important;margin:0!important}
.article-page .article-card .article-content.tph14-article-paper .cta-wide a{background:#fff!important;color:#065a50!important;text-align:center;font-weight:900!important;box-shadow:none!important;white-space:nowrap}
@media(max-width:1180px){
  .tp-unified-header .tp-header-inner{min-height:68px!important}
  .tp-unified-header .tp-nav-toggle{display:inline-flex!important;margin-left:auto!important;align-items:center;justify-content:center;flex-direction:column}
  .tp-unified-header .tp-main-nav{display:grid!important;position:fixed!important;top:77px!important;left:12px!important;right:12px!important;width:auto!important;max-height:calc(100dvh - 92px)!important;overflow-y:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;justify-content:stretch!important;gap:9px!important;margin:0!important;padding:14px!important;background:#fff!important;border:1px solid #dce9e5!important;border-radius:17px!important;box-shadow:none!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(-10px)!important;transition:opacity .17s ease,transform .17s ease,visibility .17s ease}
  .tp-unified-header .tp-main-nav.is-open{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:translateY(0)!important}
  .tp-unified-header .tp-main-nav .tp-mobile-nav-head{display:block;grid-column:1 / -1;padding:2px 6px 7px}
  .tp-unified-header .tp-main-nav > a{background:#f8fbfa!important;border-color:#e7f0ed!important;border-radius:11px!important;font-size:15px!important;white-space:normal!important;text-align:center;min-height:48px}
  .tp-unified-header .tp-main-nav > a.tp-nav-cta{grid-column:1 / -1}
}
@media(max-width:560px){
  .tp-unified-header .tp-header-inner{min-height:64px!important}
  .tp-unified-header .tp-unified-logo{width:36px!important;height:33px!important;min-width:36px!important;flex-basis:36px!important}
  .tp-unified-header .tp-unified-brand-copy strong{font-size:20px!important}
  .tp-unified-header .tp-unified-brand-copy small{font-size:9px!important}
  .tp-unified-header .tp-main-nav{top:73px!important;grid-template-columns:1fr!important}
  .article-page .article-card .article-content.tph14-article-paper .cta-wide a{white-space:normal}
}
