.language-switch{display:inline-flex;align-items:center;flex-shrink:0}.language-switch[hidden],.language-switch select{display:none}.language-trigger{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box;min-width:88px;height:44px;margin:0;padding:0 16px;border:1px solid var(--control-border);border-radius:10px;background:var(--control-surface);color:var(--control-foreground);font-family:inherit;font-size:1rem;font-weight:600;line-height:1.6;letter-spacing:normal;cursor:pointer}:root[data-theme=dark] .language-trigger{border:0;padding-inline:17px}.language-arrow{display:block;flex:0 0 12px;width:12px;height:12px;background:url('../img/language-chevron-24488495fdcf.svg') center/contain no-repeat;transform:rotate(90deg)}@media(hover:hover){.language-trigger:hover{background:color-mix(in srgb,var(--accent) 12%,var(--control-surface) 88%);color:var(--control-foreground);border-color:var(--control-border)}}.language-trigger:focus-visible{outline:3px solid var(--focus-ring,var(--focus));outline-offset:3px}.language-options{position:fixed;z-index:1000;box-sizing:border-box;padding:4px;border:1px solid var(--control-border);border-radius:10px;background:var(--control-surface);color:var(--control-foreground);overflow-y:auto;box-shadow:0 8px 24px #0002}.language-options[hidden]{display:none}:root[data-theme=dark] .language-options{border:0;padding:5px}.language-option{display:block;box-sizing:border-box;width:100%;min-height:44px;padding:8px 12px;border:0;border-radius:6px;background:transparent;color:var(--control-foreground);font:inherit;text-align:left;cursor:pointer}.language-option[aria-selected=true]{background:color-mix(in srgb,var(--control-border) 35%,var(--control-surface) 65%)}@media(hover:hover){.language-option:hover{background:color-mix(in srgb,var(--accent) 12%,var(--control-surface) 88%);color:var(--control-foreground)}}.language-option:focus-visible{outline:2px solid var(--control-foreground);outline-offset:-2px}
@media(max-width:820px){.language-trigger{font-size:20px;font-weight:600}}.mobile-scroll .language-trigger{font-size:20px;font-weight:600}.nav-tools{gap:12px}.mobile-theme{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.mobile-menu-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
@media(min-width:821px){#global-controls>.mobile-menu-footer{flex-wrap:nowrap}}
@media(max-width:820px){.mobile-menu-footer{justify-content:space-between}}/* AXIA Framework V3.5: global appearance/social controls only. */
:root{--control-surface:#f8fafc;--control-foreground:#111827;--control-border:#d1d5db}:root[data-theme=dark]{--control-surface:#fff}.theme-switch,.theme-shell{background:var(--control-surface);border:1px solid var(--control-border);padding:3px;width:52px;height:52px;box-sizing:border-box}:root[data-theme=dark] .theme-switch,:root[data-theme=dark] .theme-shell{background:var(--control-surface);border:0;padding:4px}.theme-toggle,#theme-toggle{background:transparent;color:var(--control-foreground);border:1px solid transparent;border-radius:50%;width:44px;height:44px;box-sizing:border-box}@media(hover:hover){.theme-toggle:hover,#theme-toggle:hover,:root[data-theme=dark] .theme-toggle:hover,#theme-toggle:hover{background:color-mix(in srgb,var(--accent) 12%,var(--control-surface) 88%);border-color:var(--accent);color:var(--control-foreground)}}.theme-toggle:focus-visible,#theme-toggle:focus-visible{outline:3px solid var(--focus-ring,var(--focus));outline-offset:3px}@media(hover:hover){.nav-tools>.social-link:not(:hover):not(:focus-visible){color:var(--control-foreground)}}
@media(max-width:820px){.theme-switch{width:auto;height:auto;padding:min(3px,.6944vw)}:root[data-theme=dark] .theme-switch{padding:calc(min(3px,.6944vw) + 1px)}}

/* Keep navigation text and controls centered; the underline does not consume layout height. */
@media(min-width:821px){.site-header nav a{position:relative;border-bottom:0;min-height:44px}.site-header nav a::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:transparent;pointer-events:none}@media(hover:hover){.site-header nav a:hover::after{background:var(--text-heading)}}.site-header nav a[aria-current]::after{background:var(--nav-indicator)}
}

/* Shared mobile pattern: links, language, optional socials; appearance at bottom. */
@media(max-width:820px){.mobile-menu-scroll>.language-switch{margin-top:24px}.mobile-menu-footer{justify-content:flex-end}
}/* Capacity mode uses the same mobile component,including above 820px. */

html[data-nav-mode=mobile] .site-header__inner{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding-block:16px}html[data-nav-mode=mobile] .brand{min-width:0;max-width:100%;white-space:normal}html[data-nav-mode=mobile] .brand span{font-size:min(1.375rem,5.1vw);overflow-wrap:anywhere}html[data-nav-mode=mobile].js #nav-toggle:not([hidden]){display:inline-grid}html[data-nav-mode=mobile].js #global-controls{display:flex;transform:translateX(100%);visibility:hidden;pointer-events:none;transition:transform 200ms ease-out,visibility 0s linear 200ms}html[data-nav-mode=mobile].js #global-controls.open{transform:translateX(0);visibility:visible;pointer-events:auto;transition-delay:0s}html[data-nav-mode=mobile] #global-controls{grid-column:1/-1;width:100%;flex-direction:column;align-items:stretch;gap:24px;padding:24px}html[data-nav-mode=mobile].js #global-controls{position:fixed;top:var(--mobile-menu-top,77px);right:0;bottom:0;z-index:2;width:min(82vw,380px);flex-direction:column;align-items:stretch;gap:24px;padding:24px;overflow-y:auto;overscroll-behavior:contain;border-left:1px solid var(--border);background:var(--surface);box-shadow:-18px 0 48px rgb(0 0 0 / 18%)}html[data-nav-mode=mobile] .site-header nav ul{flex-wrap:wrap;gap:4px 24px}html[data-nav-mode=mobile].js .site-header nav ul{flex-direction:column;align-items:stretch;gap:4px}html[data-nav-mode=mobile].js .site-header nav a{width:auto;align-self:flex-start;font-size:20px;font-weight:600;white-space:normal;overflow-wrap:anywhere}html[data-nav-mode=mobile] .theme-shell{flex-shrink:0}html[data-nav-mode=mobile] #nav-toggle{padding:0;border-color:var(--border-strong);border-radius:10px}@media(hover:hover){html[data-nav-mode=mobile] #nav-toggle:hover{border-color:var(--focus)}}html[data-nav-mode=mobile].js #nav-backdrop{display:block}html[data-nav-mode=mobile].js #global-controls{padding:0;gap:0;overflow:hidden}html[data-nav-mode=mobile].js .mobile-menu-scroll{display:block;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px}html[data-nav-mode=mobile].js .mobile-menu-footer{position:relative;display:flex;flex-shrink:0;justify-content:flex-end;padding:24px}html[data-nav-mode=mobile].js .mobile-menu-footer::before{content:"";position:absolute;top:0;left:24px;right:24px;border-top:1px solid var(--border);pointer-events:none}html[data-nav-mode=mobile] .language-trigger{font-size:20px;font-weight:600}html[data-nav-mode=mobile] .mobile-menu-footer{justify-content:space-between}html[data-nav-mode=mobile] .theme-switch{width:auto;height:auto;padding:min(3px,.6944vw)}html[data-nav-mode=mobile][data-theme=dark] .theme-switch{padding:calc(min(3px,.6944vw) + 1px)}html[data-nav-mode=mobile] .mobile-menu-scroll>.language-switch{margin-top:24px}html[data-nav-mode=mobile] .mobile-menu-footer{justify-content:flex-end}html[data-nav-mode=mobile] .site-header__inner{min-height:76px}html[data-nav-mode=mobile] .site-header nav a{min-inline-size:0;border-bottom:3px solid transparent;position:relative}html[data-nav-mode=mobile] .site-header nav a::after{display:none}html[data-nav-mode=mobile] .site-header nav a[aria-current]{border-bottom-color:var(--nav-indicator)}@media(hover:hover){html[data-nav-mode=mobile] .site-header nav a:hover{border-bottom-color:var(--text-heading)}}

/* Desktop preferences: one external surface; language then appearance. */
html[data-nav-mode=desktop] #global-controls>.mobile-menu-footer{display:flex;align-items:center;gap:4px;height:52px;padding:3px;border:1px solid var(--control-border);border-radius:26px;background:var(--control-surface);flex-wrap:nowrap}
html[data-nav-mode=desktop][data-theme=dark] #global-controls>.mobile-menu-footer{border:0;padding:4px}
html[data-nav-mode=desktop] .language-trigger{min-width:0;width:auto;height:44px;border-radius:22px;border:1px solid transparent;background:transparent;padding:0 12px;gap:6px}
html[data-nav-mode=desktop] .language-switch{margin:0}
html[data-nav-mode=desktop] .theme-shell{width:44px;height:44px;padding:0;border:0;background:transparent}
/* Optical adjustment only: 17px source extent to ~15px, matching the adjacent moon at a 20px nominal box. */
.language-globe{display:block;flex:0 0 20px;width:20px;height:20px;background:currentColor;mask-position:center;mask-size:88%;mask-repeat:no-repeat}
.language-trigger[aria-expanded=true] .language-arrow{transform:rotate(-90deg)}
@media(hover:hover){html[data-nav-mode=desktop] .language-trigger:hover{background:color-mix(in srgb,var(--accent) 12%,var(--control-surface) 88%);border-color:var(--accent);color:var(--control-foreground)}}
html[data-nav-mode=mobile] #nav-toggle,html[data-nav-mode=mobile] #nav-toggle:focus-visible{border-radius:10px}
*{-webkit-tap-highlight-color:transparent}
html[data-nav-mode=desktop][data-theme=dark] .language-trigger{border:1px solid transparent;padding:0 12px;background:transparent}
html[data-nav-mode=desktop][data-theme=dark] .theme-shell{padding:0;border:0;background:transparent}
@media(hover:hover){html[data-nav-mode=desktop][data-theme=dark] .language-trigger:hover{background:color-mix(in srgb,var(--accent) 12%,var(--control-surface) 88%);border-color:var(--accent)}}

@media(hover:hover){html[data-nav-mode=mobile] .site-header nav a[aria-current]:hover{border-bottom-color:var(--nav-indicator)}}
