/* TutorMe Main Languages: six-language menu for the platform header (competitions, competition pages, hub) */
.tmmain-lang-menu{position:relative}
.tmmain-lang-menu>summary{list-style:none;cursor:pointer}
.tmmain-lang-menu>summary::-webkit-details-marker{display:none}
.tmmain-lang-menu>summary::after{display:none!important}
.tmmain-lang-panel{position:absolute;z-index:9999;top:calc(100% + 12px);right:0;width:236px;max-width:calc(100vw - 32px);padding:8px;background:#fffdfa;color:#173640;border:1px solid #e1ddd6;border-radius:16px;box-shadow:0 12px 36px #17364018;display:grid;font:500 15px/1.5 system-ui,sans-serif;text-align:left}
[dir=rtl] .tmmain-lang-panel{right:auto;left:0;text-align:right}
.tmmain-lang-panel a,.tmmain-lang-panel span{display:flex!important;align-items:center;min-height:44px;margin:0!important;padding:10px 12px!important;border-radius:10px;line-height:1.4!important;font-size:15px!important;text-decoration:none!important;color:#173640!important;white-space:nowrap}
.tmmain-lang-panel span{color:#d81665!important;font-weight:700}
.tmmain-lang-panel a:hover,.tmmain-lang-panel a:focus-visible{color:#d81665!important;background:#fff0f5}
/* WhatsApp icon in place of the LINE badge (ko, vi, ar) */
.tmmain-wa-icon{border-radius:50%}
/* CJK / Vietnamese: keep big display words from breaking awkwardly */
html[lang=ja] h1,html[lang=ja] h2,html[lang=ko] h1,html[lang=ko] h2{word-break:keep-all;overflow-wrap:anywhere;line-break:strict}
/* Say "English speech training" up front: the hero label is hidden on the English page, shown on translated pages */
html[data-tmmain] .hero .hero-label{display:block!important;font-weight:700;color:#b91b55;margin-bottom:14px}
/* Japanese has no spaces, so the giant hero words need a smaller size to wrap cleanly */
@media (min-width:800px){html[lang=ja] .hero h1,html[lang=ko] .hero h1{font-size:clamp(2.6rem,5vw,4.6rem);line-height:1.12}}
html[lang=ja] .hero h1,html[lang=ja] h2{line-break:strict}
.tmmain-note{margin:10px 0 0;font-size:15px;line-height:1.5;color:#5b6b70}
@media (max-width:799px){html[data-tmmain] .hero .hero-label{padding-inline:21px}}
