 /* Localized submenu typography: readable labels and restrained hierarchy. */
html[lang] .nav-links .dedicated-menu,
html[lang] .nav-links .mega-menu,
html[lang] .mobile-menu .mobile-dropdown-menu {
 font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
 -webkit-font-smoothing:antialiased; text-shadow:none;
}
html:lang(zh-TW) .nav-links .dedicated-menu,html:lang(zh-TW) .nav-links .mega-menu,html:lang(zh-TW) .mobile-dropdown-menu {
 font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang TC","Microsoft JhengHei",sans-serif;
}
html[lang] .nav-links .dedicated-category { font-family:inherit; font-size:15px; font-weight:600; line-height:1.5; letter-spacing:.02em; color:#34445b; padding:14px 12px; }
html[lang] .nav-links .dedicated-category[aria-expanded=true] { color:#195fb9; }
html[lang] .nav-links .dedicated-panel a { font-size:14px; font-weight:500; line-height:1.65; letter-spacing:.01em; color:#42536a; padding:13px 10px; gap:9px; }
html[lang] .nav-links .dedicated-panel .dedicated-all { color:#2367bc; font-size:13px; font-weight:600; padding-bottom:15px; }
html[lang] .nav-links .mega-menu-section a { font-size:14px; font-weight:500; line-height:1.65; letter-spacing:.01em; padding:13px 14px; }
html[lang] .nav-links .dedicated-panel a:hover { color:#195fb9; }
html[lang] .nav-links .dedicated-panel a::after { display:none; }
html:lang(en) .nav-links .dedicated-menu { width:760px; grid-template-columns:205px minmax(0,1fr); }
html:lang(en) .nav-links .dedicated-category,
html:lang(en) .nav-links .dedicated-panel a,
html:lang(en) .nav-links .mega-menu-section a { letter-spacing:0; text-transform:none; overflow-wrap:normal; word-break:normal; }
html[lang] .mobile-menu .dedicated-mobile summary { font-family:inherit; font-size:15px; font-weight:600; line-height:1.55; letter-spacing:.02em; }
html[lang] .mobile-menu .dedicated-mobile details > a,
html[lang] .mobile-menu .mobile-dropdown-menu > a { font-family:inherit; font-size:14px; font-weight:500; line-height:1.7; letter-spacing:.01em; white-space:normal; overflow-wrap:break-word; }
html[lang] .mobile-menu .dedicated-mobile details > a:first-of-type { font-size:13px; font-weight:600; }
html:lang(en) .mobile-menu .dedicated-mobile summary,
html:lang(en) .mobile-menu .mobile-dropdown-menu a { letter-spacing:0; }
/* Desktop actions share geometry across all localized headers. */
@media (min-width:769px) {
 html[lang] header .nav-actions { align-items:center; gap:8px; flex-shrink:0; }
 html[lang] header .nav-actions .lang-btn,
 html[lang] header .nav-actions .btn { box-sizing:border-box; height:40px; min-height:40px; padding:0 15px; font-family:inherit; font-size:14px; font-weight:500; line-height:20px; letter-spacing:0; justify-content:center; border-radius:11px; white-space:nowrap; text-decoration:none; transition:background .18s ease,border-color .18s ease,box-shadow .18s ease; transform:none; }
 html header .nav-actions .lang-btn { gap:7px; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.06); color:#e9edf5; box-shadow:inset 0 1px 0 rgba(255,255,255,.04); }
 html header .lang-btn .lang-code { font:inherit; }
 html header .lang-btn .language-icon { width:17px; height:17px; flex:none; }
 html header .lang-btn .language-chevron { width:12px; height:12px; color:#a6b1c2; flex:none; }
 html header .nav-actions .btn-outline { background:transparent; border:1px solid rgba(255,255,255,.24); color:#f5f5f7; box-shadow:none; }
 html header .nav-actions .btn-primary { border:1px solid #428cf5; background:linear-gradient(180deg,#3184f5,#1766da); color:#fff; box-shadow:inset 0 1px 0 #ffffff24,0 3px 9px #0057c522; }
 html header .nav-actions .lang-btn:hover,
 html header .nav-actions .btn-outline:hover { background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.36); color:#fff; transform:none; }
 html header .nav-actions .btn-primary:hover { background:linear-gradient(180deg,#4894fa,#2374e8); box-shadow:inset 0 1px 0 #ffffff30,0 4px 12px #0057c533; transform:none; }
 html header .nav-actions .lang-btn:focus-visible,
 html header .nav-actions .btn:focus-visible,
 html header .lang-dropdown a:focus-visible { outline:2px solid #8fbdff; outline-offset:3px; }
 html header .lang-dropdown { left:50%; right:auto; margin-left:0; transform:translate(-50%,-4px); box-sizing:border-box; width:max-content; min-width:100%; padding:6px; border-radius:14px; background:#fff; border:1px solid #e3e8ef; box-shadow:0 16px 40px #0b172f33; }
 html header .lang-dropdown a { padding:10px 12px; border-radius:8px; color:#42516a; font-size:13px; line-height:20px; }
 html header .lang-dropdown a:hover,
 html header .lang-dropdown a:focus-visible { background:#f0f5fc; color:#1766da; }
 html header .lang-dropdown a.active { background:#edf4ff; color:#1766da; font-weight:600; }
 html header .lang-switcher:hover .lang-dropdown,
 html header .lang-switcher:focus-within .lang-dropdown { display:block; opacity:1; transform:translate(-50%,0); }
}
.nav-links .dedicated-trigger { font-family:inherit; font-size:14px; font-weight:500; letter-spacing:.01em; color:#f5f5f7; background:none; border:0; cursor:pointer; padding:0 16px; line-height:56px; display:block; position:relative; opacity:.85; transition:all .3s var(--transition); }
.nav-links .dedicated-trigger:hover { opacity:1; color:#fff; }
.nav-links .dedicated-trigger::after { content:''; position:absolute; bottom:8px; left:50%; transform:translateX(-50%) scaleX(0); width:20px; height:2px; background:linear-gradient(90deg,#60a5fa,#a78bfa); border-radius:1px; transition:transform .3s var(--transition); }
.nav-links .dedicated-nav:hover > .dedicated-trigger::after { transform:translateX(-50%) scaleX(1); }
.dedicated-nav .dedicated-menu { display:none; position:absolute; top:100%; left:50%; transform:translateX(-40%); width:620px; max-width:80vw; padding:12px; border:1px solid #dae3ef; border-radius:16px; background:#fff; color:#293f59; box-shadow:0 20px 55px #10263b30; z-index:100; grid-template-columns:190px minmax(0,1fr); gap:12px; }
.dedicated-nav[data-open=true] .dedicated-menu { display:grid; }
.dedicated-categories { border-right:1px solid #e3e9f1; padding-right:12px; }
.dedicated-category { display:flex; width:100%; justify-content:space-between; align-items:center; gap:12px; min-height:48px; padding:12px; margin-bottom:4px; border:0; border-radius:9px; background:none; color:#4b6179; text-align:left; font:inherit; font-size:13px; cursor:pointer; }
.dedicated-category[aria-expanded=true] { background:#eaf2fc; color:#1768db; }
.dedicated-panel { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-content:start; gap:4px; }
.dedicated-panel[hidden] { display:none; }
.nav-links .dedicated-panel a { padding:12px 10px; border-radius:8px; color:#405873; font-size:12px; line-height:1.6; white-space:normal; display:flex; align-items:center; gap:6px; }
.nav-links .dedicated-panel a:hover { background:#f0f5fc; color:#1768db; }
.nav-links .dedicated-panel .dedicated-all { grid-column:1/-1; color:#1768db; border-bottom:1px solid #e8edf4; border-radius:0; margin-bottom:5px; }
.dedicated-panel .flag { flex-shrink:0; }
.dedicated-panel img.emoji { width:18px; height:18px; }
.dedicated-nav button:focus-visible,.dedicated-panel a:focus-visible { outline:2px solid #1768db; outline-offset:2px; }
.mobile-menu .mobile-dropdown.active > .dedicated-mobile { max-height:none; overflow:visible; padding:4px 0 14px; }
.mobile-menu .dedicated-mobile details { margin:8px 0; border:1px solid #3c4656; border-radius:12px; background:#252d39; box-shadow:none; padding:0; overflow:hidden; }
.mobile-menu .dedicated-mobile summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:15px 16px; cursor:pointer; color:#f5f8ff; font-size:15px; font-weight:600; line-height:1.6; min-height:52px; list-style:none; }
.mobile-menu .dedicated-mobile summary::after { content:'+'; display:grid; place-items:center; width:25px; height:25px; flex-shrink:0; border:1px solid #536078; border-radius:7px; background:#323e50; color:#d5e6ff; font-size:18px; font-weight:400; }
.mobile-menu .dedicated-mobile details[open] { border-color:#55759a; background:#202a38; }
.mobile-menu .dedicated-mobile details[open] > summary { color:#fff; background:#30445f; border-bottom:1px solid #415873; }
.mobile-menu .dedicated-mobile details[open] > summary::after { content:'−'; }
.mobile-menu .dedicated-mobile summary::-webkit-details-marker { display:none; }
.mobile-menu .dedicated-mobile details > a { display:block; margin:0 14px; padding:13px 8px; border-bottom:1px solid #ffffff10; color:#d5e0ef; font-size:14px; min-height:48px; line-height:1.7; }
.mobile-menu .dedicated-mobile details > a:first-of-type { color:#a8d1ff; font-weight:600; }
.mobile-menu .dedicated-mobile details > a:last-child { border-bottom:0; margin-bottom:6px; }
.mobile-menu .dedicated-mobile details > a:hover,.mobile-menu .dedicated-mobile details > a:active { color:#fff; background:#33465f; border-radius:6px; }
.mobile-menu .dedicated-mobile summary:focus-visible,.mobile-menu .dedicated-mobile a:focus-visible { outline:2px solid #91c5ff; outline-offset:-3px; }

/* Mobile navigation: a unified light navigation sheet. */
@media(max-width:768px) {
 .mobile-menu { background:#f4f6f9; color:#24354b; backdrop-filter:blur(24px); overscroll-behavior:contain; }
 .mobile-menu .mobile-menu-content { max-width:580px; margin:0 auto; padding:18px 20px calc(28px + env(safe-area-inset-bottom)); }
 .mobile-menu .mobile-menu-content > a,
 .mobile-menu .mobile-dropdown-toggle { color:#22344d; padding:16px 14px; min-height:54px; font-size:16px; font-weight:600; line-height:1.4; letter-spacing:0; border:0; border-radius:12px; }
 .mobile-menu .mobile-menu-content > a { margin:2px 0; }
 .mobile-menu .mobile-menu-content > a:hover { opacity:1; background:#e7eef8; color:#1768db; }
 .mobile-menu .mobile-dropdown { border:1px solid #e0e6ee; border-radius:16px; background:#fff; margin:8px 0; box-shadow:0 4px 14px #20395404; overflow:hidden; }
 .mobile-menu .mobile-dropdown-toggle { border-radius:0; }
 .mobile-menu .mobile-dropdown-toggle::after { width:26px; height:26px; display:grid; place-items:center; background:#edf2f8; color:#5d789b; border:1px solid #e0e8f2; border-radius:50%; font-size:18px; }
 .mobile-menu .mobile-dropdown.active > .mobile-dropdown-toggle { color:#175baf; border-bottom:1px solid #e4ebf3; background:#f8faff; }
 .mobile-menu .mobile-dropdown.active > .mobile-dropdown-menu { max-height:none; padding:8px 12px 12px; }
 .mobile-menu .mobile-dropdown-menu > a { color:#506881; min-height:46px; padding:12px 14px; font-size:14px; border-radius:8px; }
 .mobile-menu .mobile-dropdown-menu > a:hover { background:#edf3fc; color:#175baf; }
 .mobile-menu .dedicated-mobile details { margin:6px 0; border:1px solid #e0e7f1; border-radius:10px; background:#f7f9fc; box-shadow:none; }
 .mobile-menu .dedicated-mobile summary { padding:13px 14px; min-height:50px; color:#354e6c; font-size:14px; font-weight:600; }
 .mobile-menu .dedicated-mobile summary::after { color:#6584aa; background:#fff; border-color:#dce5f0; width:24px; height:24px; border-radius:7px; }
 .mobile-menu .dedicated-mobile details[open] { background:#fff; border-color:#c6d8ef; }
 .mobile-menu .dedicated-mobile details[open] > summary { color:#195cae; background:#eaf2fd; border-color:#d7e4f6; }
 .mobile-menu .dedicated-mobile details > a { color:#526b87; padding:12px 8px; margin:0 12px; border-color:#edf1f6; min-height:46px; font-size:13px; }
 .mobile-menu .dedicated-mobile details > a:first-of-type { color:#1768db; font-weight:600; }
 .mobile-menu .dedicated-mobile details > a:hover,
 .mobile-menu .dedicated-mobile details > a:active { color:#175baf; background:#edf4fe; }
 .mobile-menu .mobile-lang-switcher { display:flex; flex-wrap:wrap; gap:4px; padding:5px; margin:20px 0 0; border:1px solid #dfe6ef; border-radius:12px; background:#e9eef5; }
 .mobile-menu .mobile-lang-switcher a { flex:1; text-align:center; padding:12px 6px; min-height:44px; color:#536d8b; font-size:12px; border:0; border-radius:8px; text-decoration:none; }
 .mobile-menu .mobile-lang-switcher a.active,
 .mobile-menu .mobile-lang-switcher a[aria-current] { color:#175ba8; background:#fff; box-shadow:0 2px 6px #203d6110; }
 .mobile-menu .mobile-menu-actions { margin-top:16px; padding-top:0; border:0; gap:10px; }
 .mobile-menu .mobile-menu-actions .btn { min-height:48px; padding:13px 16px; font-size:14px; border-radius:12px; }
 .mobile-menu .mobile-menu-actions .btn-outline { color:#365779; border:1px solid #ccd9ea; background:#fff; }
 .mobile-menu .mobile-menu-actions .btn-primary { color:#fff; background:#1768db; border:1px solid #1768db; box-shadow:0 5px 12px #1768db16; }
 .mobile-menu a:focus-visible,.mobile-menu summary:focus-visible { outline:2px solid #1768db; outline-offset:-3px; }
 header .mobile-menu-toggle { width:44px; height:44px; padding:10px; justify-content:space-around; border-radius:10px; }
 header .mobile-menu-toggle.active { background:#ffffff12; }
}
