
/* TradeRocket — header/footer like homepage (v4) */
html body #tr-global-header[data-v2],html body #tr-global-header[data-v2]>.trgx{display:contents!important}
#tr-global-header .trgx-top{background:#FFFFFF;font-family:'IBM Plex Sans Thai Looped','Anuphan',sans-serif}
html.tr-dark #tr-global-header .trgx-top{background:#0B1122}
#tr-global-header .trgx-topin{width:min(100% - 32px,var(--trgx-cw,1150px));margin:0 auto;padding:16px 0;display:flex;align-items:center;gap:24px}
#tr-global-header .trgx-brand{display:flex!important;align-items:center;gap:0;font-family:'Nunito',sans-serif!important;font-weight:900!important;letter-spacing:-.01em;white-space:nowrap;color:#0B1533!important;text-decoration:none!important}
html.tr-dark #tr-global-header .trgx-brand-l{color:#FFFFFF!important}
#tr-global-header .trgx-brand i{font-style:normal;color:#F2513B}
#tr-global-header .trgx-brand-l{font-size:26px}
#tr-global-header .trgx-brand .trgx-mark{margin-right:12px;width:50px;height:50px;border-radius:16px;background:#FFC107;display:grid;place-items:center;transform:rotate(-6deg);box-shadow:3px 3px 0 #0B1533;flex:0 0 auto}
html.tr-dark #tr-global-header .trgx-brand .trgx-mark{box-shadow:3px 3px 0 #F2513B}
#tr-global-header .trgx-brand .trgx-mark svg{stroke:#0B1533}
#tr-global-header .trgx-tb{flex:0 1 780px;margin-left:auto;display:flex;align-items:center;gap:18px;min-height:92px;padding:14px 18px 14px 20px;border-radius:28px;background:#0B1533;color:#FFFFFF!important;text-decoration:none!important;position:relative;overflow:hidden;transition:transform .2s}
#tr-global-header .trgx-tb:hover{transform:translateY(-2px)}
#tr-global-header .trgx-tb::before{content:"";position:absolute;right:140px;top:-70px;width:200px;height:200px;border-radius:50%;background:#FFC107;opacity:.2}
#tr-global-header .trgx-tb::after{content:"";position:absolute;left:-34px;bottom:-56px;width:130px;height:130px;border-radius:38px;background:#F2513B;opacity:.3;transform:rotate(18deg)}
#tr-global-header .trgx-tb>*{position:relative;z-index:1}
#tr-global-header .trgx-tb-ad{position:absolute!important;top:8px;right:20px;font-size:11px;color:#A6B0C8}
#tr-global-header .trgx-tb img{width:52px;height:52px;border-radius:16px;flex:0 0 auto;box-shadow:0 0 0 3px rgba(255,255,255,.15);margin:0}
#tr-global-header .trgx-tb-txt{flex:1;min-width:0;display:block}
#tr-global-header .trgx-tb-txt b{display:block;font-family:'Noto Sans Thai Looped',sans-serif;font-weight:800;font-size:19px;line-height:1.45;color:#FFFFFF}
#tr-global-header .trgx-tb-txt em{font-style:normal;color:#FFC107}
#tr-global-header .trgx-tb-txt small{display:block;color:#C7CFE2;font-size:14px;line-height:1.5}
#tr-global-header .trgx-tb-cta{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;min-height:50px;margin-top:12px;padding:0 24px;border-radius:999px;background:#FFC107;color:#0B1533;font-weight:800;font-size:16px;box-shadow:3px 3px 0 #F2513B}
#tr-global-header .trgx-band{position:sticky;top:var(--wp-admin--admin-bar--height,0px);z-index:1000;background:#0B1533;font-family:'IBM Plex Sans Thai Looped','Anuphan',sans-serif}
html.tr-dark #tr-global-header .trgx-band{background:#060B18;border-bottom:1px solid rgba(255,255,255,.08)}
#tr-global-header .trgx-band .trgx-bar{width:min(100% - 32px,var(--trgx-cw,1150px))!important;margin:0 auto!important;padding:0!important;min-height:58px;display:flex;align-items:center;gap:12px;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;position:relative}
#tr-global-header .trgx-brand-m{display:none!important;font-size:18px;color:#FFFFFF!important;margin-right:auto}
#tr-global-header .trgx-brand-m .trgx-mark{margin-right:9px;width:34px;height:34px;border-radius:11px;box-shadow:2px 2px 0 rgba(255,255,255,.25)}
#tr-global-header .trgx-brand-m .trgx-mark svg{width:17px;height:17px}
#tr-global-header .trgx-menu{display:flex!important;flex:1;min-width:0;gap:0!important;margin:0!important;overflow-x:auto;scrollbar-width:none;background:transparent!important}
#tr-global-header .trgx-menu::-webkit-scrollbar{display:none}
#tr-global-header .trgx-menu a{position:relative;display:inline-flex!important;align-items:center;min-height:58px;padding:0 10px!important;border-radius:0!important;background:transparent!important;color:#DCE2F0!important;font-size:14.5px!important;font-weight:600!important;white-space:nowrap}
html body #tr-global-header .trgx-menu a.on,html body #tr-global-header .trgx-menu a[aria-current]{background:transparent!important;color:#FFC107!important;box-shadow:none!important}
#tr-global-header .trgx-menu a:visited{color:#DCE2F0!important}#tr-global-footer nav a:visited{color:#A6B0C8!important}
#tr-global-header .trgx-menu a:hover{background:rgba(255,255,255,.08)!important;color:#FFFFFF!important}
#tr-global-header .trgx-menu a.on,#tr-global-header .trgx-menu a[aria-current]{color:#FFC107!important}
#tr-global-header .trgx-menu a.on::after,#tr-global-header .trgx-menu a[aria-current]::after{content:"";position:absolute;left:10px;right:10px;bottom:0;height:4px;border-radius:4px 4px 0 0;background:#FFC107}
#tr-global-header .trgx-tools{display:flex;align-items:center;gap:6px;margin-left:auto}
#tr-global-header .trgx-ib{width:40px!important;height:40px!important;border:0!important;border-radius:50%!important;background:rgba(255,255,255,.1)!important;color:#FFFFFF!important;display:grid;place-items:center}
#tr-global-header .trgx-ib:hover{background:rgba(255,255,255,.2)!important}
#tr-global-header .trgx-ib svg{stroke:currentColor}
#tr-global-header .trgx-sheet{background:#FFFFFF;color:#0B1533}
html.tr-dark #tr-global-header .trgx-sheet{background:#131B33;color:#EEF2FB}
#tr-global-header .trgx-mban{display:none;width:min(100% - 32px,var(--trgx-cw,1150px));margin:10px auto 0}
#tr-global-footer .trgx-fw{background:#0B1533!important;color:#DCE2F0;border:0!important;margin-top:72px;font-family:'IBM Plex Sans Thai Looped','Anuphan',sans-serif}
html.tr-dark #tr-global-footer .trgx-fw{background:#060B18!important}
#tr-global-footer .trgx-foot{width:min(100% - 32px,var(--trgx-cw,1150px))!important;margin:0 auto!important;padding:56px 0 36px!important;background:transparent!important;border:0!important;box-shadow:none!important}
#tr-global-footer .trgx-fgrid{display:grid!important;grid-template-columns:minmax(0,1.4fr) repeat(3,minmax(0,1fr))!important;gap:32px!important}
#tr-global-footer .trgx-brand{display:flex!important;align-items:center;gap:0;font-family:'Nunito',sans-serif!important;font-weight:900!important;font-size:22px;color:#FFFFFF!important}
#tr-global-footer .trgx-brand i{font-style:normal;color:#F2513B}
#tr-global-footer .trgx-mark{margin-right:12px;width:44px;height:44px;border-radius:14px;background:#FFC107;display:grid;place-items:center;transform:rotate(-6deg);box-shadow:3px 3px 0 rgba(255,255,255,.25)}
#tr-global-footer .trgx-mark svg{stroke:#0B1533}
#tr-global-footer .trgx-fgrid .trgx-mut{color:#A6B0C8!important;font-size:15px;line-height:1.7}
#tr-global-footer nav{display:flex!important;flex-direction:column;gap:2px}
#tr-global-footer nav strong{display:block;color:#FFFFFF;font-family:'Noto Sans Thai Looped',sans-serif;font-weight:800;font-size:15.5px;margin-bottom:8px!important}
#tr-global-footer nav a{color:#A6B0C8!important;font-size:15px;padding:4px 0!important;background:transparent!important}
#tr-global-footer nav a:hover{color:#FFC107!important}
#tr-global-footer .trgx-risk,#tr-global-footer .trgx-foot>.trgx-mut{color:#A6B0C8!important;font-size:13px;line-height:1.8;margin:0!important}
#tr-global-footer .trgx-risk{border-top:1px solid rgba(255,255,255,.1);padding-top:22px;margin-top:36px!important}

/* site-wide light palette + fonts like homepage */
html.tr-lite{--trx-bg:#FFFFFF;--trx-s1:#FFFFFF;--trx-s2:#EEF1F7;--trx-line:#DDE3EE;--trx-ink:#0B1533;--trx-mut:#4A5570;--trx-gold:#FFC107;--trx-goldInk:#7A5000;--trx-hover:#E3EDFF;--trx-up:#0A7A4F;--trx-down:#C02B1E}
html.tr-dark{--trx-bg:#0B1122;--trx-s1:#131B33;--trx-s2:#1A2442;--trx-gold:#FFC107;--trx-goldInk:#FFD27A}
html body:not(.home) :is(p,li,a,span,td,th,button,input,select,textarea,label,small,strong,b,em,blockquote,figcaption,div,dt,dd,summary):not(.fa):not([class*="fa-"]):not([class*="jegicon"]):not([class*="dashicons"]):not([class*="icon"]):not(#wpadminbar *){font-family:'IBM Plex Sans Thai Looped','Anuphan',sans-serif!important}
html body:not(.home) :is(h1,h2,h3,h4,h5,h6){font-family:'Noto Sans Thai Looped','IBM Plex Sans Thai Looped','Anuphan',sans-serif!important;letter-spacing:0!important}

html body #tr-global-header .trgx .trgx-band .trgx-brand-m,html.tr-lite body #tr-global-header .trgx .trgx-band .trgx-brand-m{color:#FFFFFF!important}
html.tr-lite body #tr-global-header .trgx .trgx-top .trgx-brand-l{color:#0B1533!important}
html body #tr-global-footer .trgx .trgx-brand{color:#FFFFFF!important}
/* color fixes (footer links, risk box, go-top) */
html body #tr-global-footer .trgx nav a,html body #tr-global-footer .trgx nav a:visited{color:#A6B0C8!important;opacity:1!important}
html body #tr-global-footer .trgx nav a:hover{color:#FFC107!important}
html body #tr-global-footer .trgx nav strong{color:#FFFFFF!important}
html body #tr-global-footer .trgx .trgx-fgrid .trgx-mut{color:#C7CFE2!important}
html body #tr-global-footer .trgx .trgx-risk{background:rgba(255,255,255,.06)!important;color:#A6B0C8!important;border:0!important;border-radius:16px!important;padding:14px 18px!important}
html body #tr-global-footer .trgx .trgx-foot>.trgx-mut{color:#8D98B3!important;margin-top:12px!important}
html body .jscroll-to-top>a{width:52px!important;height:52px!important;border-radius:18px!important;background:#FFC107!important;color:#0B1533!important;border:0!important;box-shadow:3px 3px 0 #0B1533,0 10px 24px rgba(11,21,51,.25)!important;display:grid!important;place-items:center!important;opacity:1!important}
html body .jscroll-to-top>a i,html body .jscroll-to-top>a svg{color:#0B1533!important;fill:currentColor}
html.tr-dark body .jscroll-to-top>a{box-shadow:3px 3px 0 #F2513B,0 10px 24px rgba(0,0,0,.4)!important}
html body #tr-global-header .trgx .trgx-pop{background:#FFFFFF!important;border:1px solid #DDE3EE!important;border-radius:24px!important;box-shadow:0 18px 48px rgba(11,21,51,.25)!important}
html body #tr-global-header .trgx .trgx-pop input{border-radius:999px!important;border:2px solid #DDE3EE!important;background:#F3F5FA!important;color:#0B1533!important;font-family:'IBM Plex Sans Thai Looped',sans-serif!important}
html.tr-dark body #tr-global-header .trgx .trgx-pop{background:#131B33!important;border-color:rgba(255,255,255,.1)!important}
html.tr-dark body #tr-global-header .trgx .trgx-pop input{background:#0B1122!important;color:#EEF2FB!important;border-color:rgba(255,255,255,.12)!important}
html body #tr-global-header .trgx .trgx-sheet a{color:inherit!important}
@media (min-width:901px){#tr-global-header .trgx-burger{display:none!important}#tr-global-header .trgx-sheet{display:none!important}}
@media (max-width:900px){
#tr-global-header .trgx-top{display:none}
#tr-global-header .trgx-brand-m{display:flex!important}
#tr-global-header .trgx-menu{display:none!important}
#tr-global-header .trgx-burger{display:grid!important}
#tr-global-header .trgx-band .trgx-bar{min-height:56px}
#tr-global-header .trgx-mban{display:block}
#tr-global-header .trgx-mban .trgx-tb{flex:1 1 100%;margin:0;min-height:0;gap:10px;padding:8px 8px 8px 10px;border-radius:16px}
#tr-global-header .trgx-mban .trgx-tb::before,#tr-global-header .trgx-mban .trgx-tb::after,#tr-global-header .trgx-mban .trgx-tb-ad,#tr-global-header .trgx-mban .trgx-tb-txt small,#tr-global-header .trgx-mban .trgx-tb-cta svg{display:none}
#tr-global-header .trgx-mban .trgx-tb img{width:30px;height:30px;border-radius:9px;box-shadow:none}
#tr-global-header .trgx-mban .trgx-tb-txt b{font-size:13.5px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#tr-global-header .trgx-mban .trgx-tb-cta{min-height:34px;margin:0;padding:0 14px;font-size:13px;box-shadow:none}
#tr-global-footer .trgx-fw{margin-top:56px}
#tr-global-footer .trgx-foot{padding:32px 0 24px!important}
#tr-global-footer .trgx-fgrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 16px!important}
#tr-global-footer .trgx-fgrid>div:first-child{grid-column:1/-1}
#tr-global-footer .trgx-brand{font-size:18px}
#tr-global-footer .trgx-mark{width:34px;height:34px;border-radius:11px}
#tr-global-footer .trgx-fgrid .trgx-mut{font-size:13.5px}
#tr-global-footer nav strong{color:#FFC107;font-size:14px;margin-bottom:4px!important}
#tr-global-footer nav a{font-size:13.5px;padding:3px 0!important}
#tr-global-footer nav[aria-label="เครื่องมือ"]{grid-column:1/-1;flex-direction:row;flex-wrap:wrap;gap:8px}
#tr-global-footer nav[aria-label="เครื่องมือ"] strong{flex-basis:100%;margin-bottom:0!important}
#tr-global-footer nav[aria-label="เครื่องมือ"] a{display:inline-flex;align-items:center;min-height:36px;padding:0 13px!important;border-radius:999px;background:rgba(255,255,255,.08)!important;color:#DCE2F0!important}
#tr-global-footer .trgx-risk{margin-top:22px!important;padding-top:16px;font-size:12px}
}
