#site-header[data-editor-menu]{z-index:10000}
#site-header[data-editor-menu] nav.tg-editor-nav .site-nav-item{position:relative}
#site-header[data-editor-menu] nav.tg-editor-nav .site-nav-dropdown{position:absolute;top:100%;left:0;visibility:hidden;opacity:0;pointer-events:none;padding-top:4px}
#site-header[data-editor-menu] nav.tg-editor-nav .site-nav-item:is(:hover,:focus-within)>.site-nav-dropdown{visibility:visible;opacity:1;pointer-events:auto;transform:none}
#site-header[data-editor-menu] nav.tg-editor-nav .site-nav-dropdown ul{background:white;color:#222;border-radius:12px;list-style:none;min-width:180px;max-height:75vh;overflow:auto}
#site-header[data-editor-menu] nav.tg-editor-nav .site-nav-dropdown a{display:block;padding:6px 14px;text-decoration:none}
#site-header[data-editor-menu] [hidden]{display:none!important}
@media(min-width:1280px){#site-header[data-editor-menu] nav.tg-editor-nav{display:flex;flex:1;align-items:center;justify-content:center}#site-header[data-editor-menu] #mobile-menu-btn{display:none}}
@media(max-width:1279px){#site-header[data-editor-menu] nav.tg-editor-nav{display:none}#site-header[data-editor-menu] #mobile-menu-btn{display:flex}}
body[data-mn-specialty]{padding-top:76px}
body[data-mn-specialty] #site-header{position:fixed;inset:0 0 auto;background:white;color:#202820}
body[data-mn-specialty] .tg-pc-quick,body[data-mn-specialty] .tg-mobile-bar{display:none!important}
body[data-mn-specialty] #site-header>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:0 20px;margin:auto;max-width:1440px}
body[data-mn-specialty] #site-header .site-nav-link{color:#283326}
#mn-original .fixed.top-6.right-6{top:84px}
@media(max-width:1023px){body[data-mn-specialty]{padding-top:64px}}
@media(max-width:1279px){#site-header[data-preview-menu-open] nav.tg-editor-nav{display:block;position:absolute;top:100%;left:0;right:0;background:white;padding:12px 20px;max-height:75vh;overflow:auto}#site-header[data-preview-menu-open] nav.tg-editor-nav .site-nav-item:is(:hover,:focus-within)>.site-nav-dropdown{position:static;display:block}#site-header[data-preview-menu-open] nav.tg-editor-nav .site-nav-item:not(:hover):not(:focus-within)>.site-nav-dropdown{display:none}}

/* Keep foreign-language header actions out of the layout before JS executes. */
html[lang="mn"] #site-header :is([data-member-auth],a[href*="/member/login"],a[href*="/member/signup"],a[href*="/member/mypage"]),
html[lang="ru"] #site-header :is([data-member-auth],a[href*="/member/login"],a[href*="/member/signup"],a[href*="/member/mypage"]),
html[lang="mn"] :is(#mobile-menu,#mobile-nav-panel,#tg-drawer) :is([data-member-auth],a[href*="/member/login"],a[href*="/member/signup"],a[href*="/member/mypage"]),
html[lang="ru"] :is(#mobile-menu,#mobile-nav-panel,#tg-drawer) :is([data-member-auth],a[href*="/member/login"],a[href*="/member/signup"],a[href*="/member/mypage"]){display:none!important}
@media(min-width:1280px){
 #site-header[data-editor-menu] nav.tg-editor-nav{min-width:0;gap:clamp(0px,.35vw,6px)}
 #site-header[data-editor-menu] nav.tg-editor-nav .site-nav-link{white-space:nowrap;font-size:clamp(12px,.92vw,15px);padding-inline:clamp(4px,.55vw,10px)}
 #site-header[data-editor-menu] nav.tg-editor-nav .site-nav-dropdown{min-width:max-content}
 #site-header[data-editor-menu] nav.tg-editor-nav .site-nav-dropdown ul{min-width:190px;max-width:min(380px,90vw)}
 #site-header[data-editor-menu] nav.tg-editor-nav .site-nav-item:last-child .site-nav-dropdown{left:auto;right:0}
}

/* Required translated disease entries must survive older locale hiding rules.
   Dropdown visibility is still controlled exclusively by hover/focus. */
#site-header[data-editor-menu] nav.tg-editor-nav [data-tg-disease-menu]{display:block!important}
#site-header[data-editor-menu] nav.tg-editor-nav [data-tg-required-disease]{display:list-item!important;visibility:inherit!important;opacity:1!important}
#site-header[data-editor-menu] nav.tg-editor-nav [data-tg-required-disease]>a{display:block!important;visibility:inherit!important;opacity:1!important;color:#3A4035}
#site-header[data-editor-menu] nav.tg-editor-nav [data-tg-required-disease]>a:hover{color:#3E522D;background:#F1F4ED}
body[data-mn-specialty] #site-header .site-header-logo img{filter:none;opacity:1}
