/* Compact language controls above the right-hand navigation. */
.custom-navbar > .container { position: relative; }
.language-bar { position: absolute; top: -15px; right: 15px; z-index: 2; display: flex; align-items: center; gap: 3px; }
.language-bar button { font-family: Arial, 'Microsoft JhengHei', sans-serif; font-size: 12px; line-height: 24px; min-width: 27px; padding: 0 5px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer; }
.language-bar button + button { margin-left: 2px; }
.language-bar button:hover { color: #66ccff; }
.language-bar button[aria-pressed="true"] { color: #66ccff; border-bottom-color: #66ccff; }
.language-bar button:focus-visible { outline: 2px solid #66ccff; outline-offset: 1px; }
.custom-navbar.top-nav-collapse { padding-top: 26px; }
.custom-navbar.top-nav-collapse .language-bar { top: -25px; }
html[lang="en"] .custom-navbar .nav li a { letter-spacing: 0; }
html[lang="en"] #intro h3 { letter-spacing: .4px; line-height: 1.6; }
html[lang="en"] #register h2 { overflow-wrap: anywhere; }
@media (min-width:768px) and (max-width:991px) { html[lang="en"] .custom-navbar .nav li a { font-size: 10px; padding-left: 8px; padding-right: 8px; } }
@media (max-width:767px) {
 .custom-navbar, .custom-navbar.top-nav-collapse { padding-top: 26px; }
 .language-bar, .custom-navbar.top-nav-collapse .language-bar { top: -25px; right: 15px; }
 html[lang="en"] #intro h3 { font-size: 19px; }
 .custom-navbar .navbar-collapse { max-height: calc(100vh - 95px); overflow-y: auto; }
}
