/* THO /taomegamenu v1.1.1 – dropdown stays UNDER ITS PARENT (never viewport-wide). */
:root{--tho-mm-ink:#283b55;--tho-mm-blue:#246fca;--tho-mm-line:#e4eaf3}
.tho-header{overflow:visible!important;isolation:isolate}
.tho-header-inner{max-width:1250px;overflow:visible!important}
.tho-nav{position:static!important;min-width:0;overflow:visible}
.tho-mm-menu{display:flex;align-items:center;gap:3px;list-style:none;padding:0;margin:0;width:100%;height:74px;min-width:0}
.tho-mm-item{height:74px;position:relative;list-style:none;display:flex;align-items:center;flex:0 0 auto}
.tho-mm-top-row{display:flex;align-items:center;min-width:0;height:100%}
.tho-mm-top-link{display:inline-flex;align-items:center;gap:7px;padding:0 11px;height:100%;font-size:12.5px;font-weight:600;color:var(--tho-mm-ink);text-decoration:none;white-space:nowrap}
.tho-mm-top-link:hover,.tho-mm-item.is-active>.tho-mm-top-row>.tho-mm-top-link,.tho-mm-item.is-open>.tho-mm-top-row>.tho-mm-top-link{color:var(--tho-mm-blue)}
.tho-mm-top-link>.tho-ui-icon{width:16px;height:16px;color:#3b77b8;flex-shrink:0}
.tho-mm-toggle{width:23px;height:34px;margin:0 0 0 -9px;border:0;background:transparent;display:flex;align-items:center;justify-content:center;border-radius:5px;color:#73869d;cursor:pointer;flex:0 0 23px}
.tho-mm-toggle>.tho-ui-icon{width:12px;height:12px;transition:transform .15s}
.tho-mm-item.is-open .tho-mm-toggle>.tho-ui-icon{transform:rotate(180deg)}
.tho-mm-toggle:focus-visible,.tho-mm-topic-toggle:focus-visible,.tho-mm-child-toggle:focus-visible{outline:2px solid #246fca;outline-offset:2px}
/* The element itself is the positioning ancestor: no fixed centered 1120px overlay. */
.tho-mm-panel{position:absolute;z-index:230;top:100%;left:var(--tho-mm-shift,0px);width:min(600px,calc(100vw - 28px));max-height:min(440px,calc(100dvh - 94px));overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid #e1e7f1;border-top:2px solid #397ed1;border-radius:0 0 11px 11px;box-shadow:0 16px 34px #2439551e;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(5px);transition:opacity .15s,transform .15s;scrollbar-width:thin}
.tho-mm-panel-small{width:min(275px,calc(100vw - 24px));max-height:65vh}
.tho-mm-item.is-open>.tho-mm-panel{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
@media(hover:hover) and (min-width:981px){.tho-mm-item.has-children:hover>.tho-mm-panel,.tho-mm-item.has-children:focus-within>.tho-mm-panel{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}}
.tho-mm-panel-top{display:flex;align-items:center;gap:8px;justify-content:space-between;padding:12px 16px;border-bottom:1px solid #edf0f5}
.tho-mm-panel-top>strong{font-size:13px;font-weight:600;color:#203858}
.tho-mm-panel-top>a{color:#246fca;font-size:11px;text-decoration:none;display:flex;gap:5px;align-items:center;white-space:nowrap}
.tho-mm-panel-top>a>.tho-ui-icon{width:13px;height:13px}
.tho-mm-desktop{display:grid;grid-template-columns:27% 73%;min-height:176px}
.tho-mm-left{background:#f8fbff;border-right:1px solid #e7edf5;padding:7px 6px;max-height:378px;overflow-y:auto;scrollbar-width:thin}
.tho-mm-topic{display:flex;align-items:center;gap:1px;border-radius:6px;min-height:39px}
.tho-mm-topic:hover,.tho-mm-topic.is-current{background:#eaf3ff}
.tho-mm-topic>a{display:flex;align-items:center;gap:7px;flex:1;min-width:0;font-size:11.5px;line-height:1.35;color:#435875;padding:9px 3px 9px 8px;text-decoration:none}
.tho-mm-topic:hover>a,.tho-mm-topic.is-current>a{color:#185eac;font-weight:600}
.tho-mm-topic>a>.tho-ui-icon{width:15px;height:15px;flex:0 0 15px;color:#4a84be}
.tho-mm-topic>a>span{min-width:0;overflow-wrap:anywhere}
.tho-mm-topic-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 25px;height:36px;background:none;border:0;border-radius:4px;cursor:pointer;color:#8aa0ba}
.tho-mm-topic-toggle>.tho-ui-icon{height:13px;width:13px}
.tho-mm-right{min-width:0;padding:13px 16px;max-height:378px;overflow-y:auto;scrollbar-width:thin}
.tho-mm-topic-content{display:none}.tho-mm-topic-content.is-current{display:block}
.tho-mm-topic-header{display:inline-flex;align-items:center;gap:7px;color:#1c467a;font-size:13px;font-weight:600;text-decoration:none;padding-bottom:10px}
.tho-mm-topic-header>.tho-ui-icon{width:14px;height:14px}
.tho-mm-child-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 12px}
.tho-mm-child{display:flex;align-items:center;justify-content:space-between;min-width:0;gap:7px;color:#5b6e87;text-decoration:none;font-size:11.5px;line-height:1.45;padding:9px 5px;border-bottom:1px solid #eef1f5}
.tho-mm-child:hover{color:#176dc9;background:#f8fbff}.tho-mm-child>span{min-width:0;overflow-wrap:anywhere}.tho-mm-child>.tho-ui-icon{height:13px;width:13px;flex:0 0 13px;color:#9aafc5}
.tho-mm-mobile-tree{display:none}
/* Optional manually curated conventional dropdowns. The flyout is positioned next to the row. */
.tho-mm-simple{padding:8px}.tho-mm-simple-group{position:relative;border-radius:5px}
.tho-mm-simple-group>a{display:block;padding:9px 10px;color:#485b74;text-decoration:none;font-size:12px}
.tho-mm-simple-group:hover>a,.tho-mm-simple-group>a:hover{background:#eef5ff;color:#1f6bbf}
.tho-mm-simple-sub{display:none;position:absolute;left:100%;top:0;min-width:215px;max-width:235px;background:#fff;border:1px solid var(--tho-mm-line);padding:6px;box-shadow:0 12px 25px #142e4f1d;border-radius:7px}
.tho-mm-simple-group:hover>.tho-mm-simple-sub,.tho-mm-simple-group:focus-within>.tho-mm-simple-sub{display:block}
/* Keep a comfortable one-line header without shrinking links until the mobile breakpoint. */
@media(min-width:981px) and (max-width:1220px){.tho-header-inner{gap:10px}.tho-brand{max-width:175px;flex-basis:175px}.tho-mm-top-link{font-size:11.5px;padding:0 8px}.tho-mm-menu{gap:0}.tho-btn-login,.tho-btn-signup{padding-left:10px;padding-right:10px}}
@media(max-width:980px){
 .tho-header{overflow:visible!important;z-index:120}
 .tho-nav{position:absolute!important;overflow-y:auto!important;overflow-x:hidden!important;max-height:calc(100dvh - 64px);height:auto!important;padding:6px 12px 20px!important;display:none!important;background:#fff!important}
 .tho-nav.open{display:block!important}
 .tho-mm-menu{display:flex!important;flex-direction:column;align-items:stretch;gap:0;margin:0;padding:0;width:100%;min-width:0;height:auto}
 .tho-mm-item{display:block;height:auto;min-width:0;flex:auto;border-bottom:1px solid #edf1f6}
 .tho-mm-top-row{width:100%;display:flex;justify-content:space-between;height:auto;min-width:0}
 .tho-mm-top-link{height:auto;min-height:45px;flex:1;white-space:normal;font-size:13px;padding:11px 9px;overflow-wrap:anywhere}
 .tho-mm-top-link>.tho-ui-icon{width:17px;height:17px}
 .tho-mm-toggle{flex:0 0 43px;height:43px;margin:0!important;color:#4479a7}
 .tho-mm-toggle>.tho-ui-icon{width:17px;height:17px}
 .tho-mm-panel,.tho-mm-panel-small{position:static!important;display:none!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;width:100%!important;max-width:100%!important;max-height:none!important;overflow:visible!important;transform:none!important;box-shadow:none!important;border:0!important;border-radius:0!important;background:#f8fbff!important;margin:0!important;padding:0!important}
 .tho-mm-item.is-open>.tho-mm-panel{display:block!important}
 .tho-mm-panel-top{padding:10px 11px;gap:8px}.tho-mm-panel-top>strong{font-size:11.5px}.tho-mm-panel-top>a{font-size:11px}
 .tho-mm-desktop,.tho-mm-simple{display:none!important}
 .tho-mm-mobile-tree{display:block;padding:2px 10px 10px}
 .tho-mm-mobile-group{border-bottom:1px solid #e7edf5}.tho-mm-mobile-group:last-child{border-bottom:0}
 .tho-mm-mobile-group-head{display:flex;align-items:center;width:100%;min-width:0}
 .tho-mm-mobile-group-head>a{display:flex;align-items:center;gap:8px;flex:1;min-width:0;padding:10px 4px;font-size:12px;text-decoration:none;color:#345475;overflow-wrap:anywhere}
 .tho-mm-mobile-group-head>a>.tho-ui-icon{height:16px;width:16px;flex:0 0 16px;color:#3678c7}
 .tho-mm-child-toggle{border:0;background:none;color:#4479a7;display:flex;align-items:center;justify-content:center;height:38px;width:40px;flex:0 0 40px;cursor:pointer}
 .tho-mm-child-toggle>.tho-ui-icon{width:16px;height:16px}
 .tho-mm-child-toggle[aria-expanded=true]>.tho-ui-icon{transform:rotate(180deg)}
 .tho-mm-mobile-children{padding:0 4px 8px 26px}
 .tho-mm-mobile-children[hidden]{display:none!important}
 .tho-mm-mobile-children>.tho-mm-child{padding:9px 4px;font-size:11.5px}
 .tho-mm-mobile-children>.tho-mm-child:last-child{border-bottom:0}
 .tho-mobile-auth{margin-top:14px}
}
@media(max-width:420px){.tho-mm-mobile-tree{padding:2px 6px 10px}.tho-mm-top-link{font-size:12.5px}.tho-mm-panel-top{padding:9px}}
@media(prefers-reduced-motion:reduce){.tho-mm-panel,.tho-mm-toggle>.tho-ui-icon{transition:none}}
