.tmg-language-menu{position:relative;z-index:11000;flex:0 0 auto;color:#173b29;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif}
.tmg-language-menu>summary{display:flex;align-items:center;justify-content:center;gap:7px;min-width:88px;max-width:150px;padding:9px 12px;list-style:none;cursor:pointer;background:#f4f8f5;border:1px solid #d6e4da;border-radius:12px;font-size:13px;line-height:1.25;font-weight:750;color:#14452f}
.tmg-language-menu>summary::-webkit-details-marker{display:none}
.tmg-language-menu>summary:focus-visible{outline:3px solid #c62839;outline-offset:2px}
.tmg-language-menu>summary span{font-size:15px;font-weight:750}
.tmg-language-panel{position:absolute;right:0;top:calc(100% + 10px);width:min(290px,90vw);padding:17px;background:#fff;border:1px solid #c9ded1;border-radius:16px;box-shadow:0 18px 46px rgba(17,57,36,.18);color:#173b29}
.tmg-language-panel>label{display:block;color:#214737;font-size:13px;font-weight:700;margin:0 0 9px}
.tmg-language-panel input{width:100%;border-radius:9px;padding:11px;font:inherit;font-size:14px;color:#163829;border:1px solid #b9d4c5;background:#fff}
.tmg-language-list{display:grid;gap:4px;max-height:220px;overflow:auto;margin:11px 0 6px}
.tmg-language-list a{display:block;padding:11px 12px;text-decoration:none;font-weight:650;color:#153b2a!important;border-radius:9px;font-size:15px;line-height:1.25}
.tmg-language-list a:hover,.tmg-language-list a:focus-visible,.tmg-language-list a[aria-current=true]{background:#edf7ef}
.tmg-language-list a:focus-visible{outline:2px solid #bf2434}
.tmg-language-panel small{display:block;font-size:11px;color:#536a5b;line-height:1.5}
.tmg-mobile-drawer .tmg-language-menu{margin:7px 0 14px;max-width:100%}
.tmg-mobile-drawer .tmg-language-menu>summary{max-width:100%;min-width:140px}
.tmg-mobile-drawer .tmg-language-panel{right:auto;left:0;position:relative;top:4px;width:100%;box-shadow:none}
@media(max-width:520px){.tmg-header-actions .tmg-language-menu>summary{max-width:76px;min-width:72px;font-size:11px;padding:8px 5px}.tmg-header-actions .tmg-language-panel{position:fixed;top:68px;right:12px;width:min(290px,calc(100vw - 24px))}}
@media(prefers-reduced-motion:reduce){.tmg-language-menu *{transition:none!important}}

.tmg-language-list a[hidden]{display:none!important}

/* Keep the mobile navigation uncluttered: choose language inside the drawer. */
@media(max-width:950px){.tmg-header-actions>.tmg-language-menu{display:none!important}.tmg-mobile-drawer .tmg-language-menu{display:block!important}}

/* Searchable catalog: available links separate from unpublished language entries. */
.tmg-language-panel{width:min(340px,calc(100vw - 26px));max-height:min(76vh,630px);overflow-y:auto;overscroll-behavior:contain}
.tmg-language-panel .tmg-language-subheading{font-size:12px;font-weight:800;color:#245b41;margin:13px 0 6px}
.tmg-language-panel .tmg-language-all{border-top:1px solid #d9e7df;margin-top:10px;padding-top:8px}
.tmg-language-panel .tmg-language-all>summary{list-style:none;font-size:13px;font-weight:750;color:#135739;padding:9px 5px;cursor:pointer}
.tmg-language-panel .tmg-language-all>summary::-webkit-details-marker{display:none}
.tmg-language-panel .tmg-language-all>summary:focus-visible{outline:2px solid #c62839;outline-offset:2px}
.tmg-language-panel .tmg-language-all>summary span{float:right}
.tmg-language-panel .tmg-language-all[open]>summary span{transform:rotate(45deg)}
.tmg-language-panel .tmg-language-planned{max-height:270px;overscroll-behavior:contain}
.tmg-language-panel .tmg-language-group-title{padding:6px 8px 3px;margin:3px 0 0;font-size:11px;font-weight:850;color:#526c5d;text-transform:uppercase;letter-spacing:.02em}
.tmg-language-panel .tmg-locale-pending{display:flex;gap:5px;align-items:center;flex-wrap:wrap;padding:9px 11px;border-radius:9px;color:#5b6d63;background:#f5f7f5;font-size:13px;line-height:1.25}
.tmg-language-panel .tmg-locale-pending small,.tmg-language-panel .tmg-language-list a small{color:#66796c;font-size:11px;font-weight:450}
.tmg-language-panel .tmg-locale-pending em{margin-left:auto;font-size:10px;font-style:normal;color:#708177}
.tmg-language-panel .tmg-language-note{font-size:11px;color:#536a5b;line-height:1.5;margin:10px 0 0}
.tmg-language-panel [hidden]{display:none!important}
.tmg-language-panel .tmg-language-list a{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
@media(max-width:520px){.tmg-mobile-drawer .tmg-language-panel{max-height:min(66vh,540px)}.tmg-header-actions .tmg-language-panel{max-height:64vh}}

.tmg-language-unity{padding:13px 12px 15px;margin:0 0 13px;border-radius:13px;background:linear-gradient(135deg,#f1f8f2,#f9f2df);border:1px solid #e1eadf;color:#123e2b}.tmg-language-unity strong{font-size:16px;line-height:1.3;display:block;letter-spacing:-.01em}.tmg-language-unity span{font-size:12px;line-height:1.6;display:block;color:#4e6254}.tmg-language-menu>summary{max-width:155px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tmg-language-panel .tmg-language-list a:focus-visible{outline-offset:-2px}
/* Viewport-safe language drawer.  Does not change the site's desktop header dimensions. */
@media(max-width:520px){
 .tmg-language-menu .tmg-language-panel{position:fixed;top:72px;left:12px;right:12px;width:auto;max-height:calc(100dvh - 90px);overflow-x:hidden}
 .tmg-mobile-drawer .tmg-language-menu .tmg-language-panel{position:relative;top:4px;left:0;right:auto;width:100%;max-height:min(66vh,540px)}
}

/* Compact location preferences and editor-safe menu. */
.tmg-language-panel .tmg-language-preferences{margin-top:14px;padding:12px;background:#f5f8f5;border:1px solid #dce9de;border-radius:12px;display:grid;gap:9px}
.tmg-language-panel .tmg-language-preferences p{margin:0;color:#173e2a;font-size:13px;font-weight:750}
.tmg-language-panel .tmg-language-preferences label{display:grid;gap:5px;color:#496250;font-size:12px;font-weight:650}
.tmg-language-panel .tmg-language-preferences select{display:block;width:100%;min-width:0;background:white;color:#214934;border:1px solid #c0d5c6;border-radius:8px;padding:8px;font-size:13px}
.tmg-language-panel .tmg-pref-save{background:#0d563c;color:white;border:0;border-radius:9px;padding:11px 12px;font-size:13px;font-weight:750;cursor:pointer}
.tmg-language-panel .tmg-pref-save:focus-visible{outline:3px solid #c42940;outline-offset:2px}
.tmg-language-panel .tmg-pref-status{display:block;font-size:12px;color:#245340}
.tmg-language-panel .tmg-language-group-title{margin:11px 0 6px!important}
.tmg-language-panel .tmg-language-list{max-height:300px}
.tmg-locale-nudge{position:fixed;bottom:23px;right:20px;z-index:100000;display:flex;align-items:center;gap:10px;max-width:min(440px,calc(100vw - 32px));padding:14px;background:#fff;color:#153927;border:1px solid #cfdfd4;border-radius:15px;box-shadow:0 8px 36px rgba(0,0,0,.17);font:13px/1.4 system-ui,-apple-system,sans-serif}
.tmg-locale-nudge a{color:#0b573d;font-weight:750;text-decoration:underline}
.tmg-locale-nudge button{background:none;border:0;color:#335846;font-size:20px;cursor:pointer}
@media(max-width:520px){.tmg-locale-nudge{left:12px;right:12px;bottom:16px;flex-wrap:wrap}.tmg-language-panel{padding:13px}.tmg-language-menu>summary{font-size:12px;padding:9px 10px}}

.tmg-language-panel .tmg-country-time{border-top:1px solid #d7e6dc;padding:9px 0 2px;color:#214934}
.tmg-language-panel .tmg-country-time>summary{font-size:12px;font-weight:750;cursor:pointer;list-style:disclosure-closed}
.tmg-language-panel .tmg-country-time>summary:focus-visible{outline:2px solid #bf2636;outline-offset:2px}
.tmg-language-panel .tmg-country-time-result{font-size:13px;display:block;padding:8px 0;color:#245644}

.tmg-language-list a small{margin-left:auto;opacity:.85}.tmg-language-list{scrollbar-width:thin}.tmg-language-list a[aria-current=page]{background:#e6f5e9;border:1px solid #b4dbc2}.tmg-language-no-results{margin:10px 0;padding:11px;border-radius:10px;background:#f6f8f6;color:#32533d;font-size:13px}.tmg-language-menu .tmg-language-panel{overflow-x:hidden}.tmg-language-menu .tmg-language-list{max-height:min(34vh,280px);overflow-y:auto;overscroll-behavior:contain}.tmg-language-menu a[data-locale]:focus-visible{outline:3px solid #ae233b;outline-offset:2px}

/* Release: strict page-specific language options and compact mobile preferences. */
.tmg-language-panel .tmg-language-current-note{font-size:13px;line-height:1.55;color:#355e48;margin:2px 0 9px}
.tmg-language-panel details.tmg-language-preferences{display:block;margin-top:12px;padding:0;background:#f5f8f5;border:1px solid #dce9de;border-radius:12px}
.tmg-language-panel .tmg-language-preferences>summary{cursor:pointer;list-style:none;display:flex;align-items:center;justify-content:space-between;padding:13px 12px;color:#154632;font-size:13px;line-height:1.4;font-weight:760}
.tmg-language-panel .tmg-language-preferences>summary::after{content:'+';font-weight:800;font-size:18px;margin-left:8px;color:#0c553b}
.tmg-language-panel .tmg-language-preferences[open]>summary::after{content:'−'}
.tmg-language-panel .tmg-language-preferences>summary::-webkit-details-marker{display:none}
.tmg-language-panel .tmg-language-preferences>summary:focus-visible{outline:2px solid #bb2b44;outline-offset:2px}
.tmg-language-panel .tmg-pref-fields{padding:0 12px 13px;display:grid;gap:10px}
.tmg-language-panel .tmg-language-list{max-height:min(33vh,260px)}
@media(max-width:520px){
 .tmg-mobile-drawer .tmg-language-menu .tmg-language-panel{max-height:min(55dvh,440px);overflow-y:auto}
 .tmg-language-panel .tmg-language-unity{padding:10px 12px;margin-bottom:9px}
 .tmg-language-panel .tmg-language-unity strong{font-size:14px}
 .tmg-language-panel .tmg-language-list{max-height:175px}
}
