/* Language choice is explicit; no automatic redirect or preference cookie. */
@media(max-width:680px){html[data-nh-theme] body[class*="nh-section"] .nh-language summary>span:last-child{display:none}html[data-nh-theme] body[class*="nh-section"] .nh-language summary::after{display:none}html[data-nh-theme] body[class*="nh-section"] .nh-language summary{min-width:44px;justify-content:center}}
html[data-nh-theme] body[class*="nh-section"] .nh-language{position:relative;flex:none;font:600 13px/1.4 var(--nh-font,system-ui)}
html[data-nh-theme] body[class*="nh-section"] .nh-language summary{display:flex;align-items:center;gap:6px;min-height:44px;padding:0 10px;box-sizing:border-box;border:1px solid var(--nh-border);border-radius:10px;background:var(--nh-surface);color:var(--nh-text);cursor:pointer;list-style:none;white-space:nowrap}
.nh-language summary::-webkit-details-marker{display:none}
.nh-language summary::after{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin:-3px 2px 0 4px}
html[data-nh-theme] body[class*="nh-section"] .nh-language>nav{position:absolute;inset:auto 0 auto auto;top:calc(100% + 8px);z-index:100001;display:grid;gap:4px;width:170px;padding:6px;background:var(--nh-surface);border:1px solid var(--nh-border);border-radius:12px;box-shadow:0 8px 24px #0002}
html[data-nh-theme] body[class*="nh-section"] .nh-language>nav>a{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 12px;border-radius:8px;color:var(--nh-text);text-decoration:none;white-space:nowrap}
.nh-language a[aria-current],.nh-language a:hover{background:var(--nh-bg)}
.nh-language :is(summary,a):focus-visible{outline:2px solid var(--nh-accent-ink);outline-offset:3px}
@media(max-width:680px){html[data-nh-theme] body[class*="nh-section"] .nh-header-inner{flex-wrap:wrap}html[data-nh-theme] body[class*="nh-section"] .nh-language{margin-left:auto}html[data-nh-theme] body[class*="nh-section"] .nh-language summary{font-size:12px;padding-inline:8px}html[data-nh-theme] body[class*="nh-section"] .nh-brand{min-width:0}}

/* Legible flags with a stable touch target and baseline-independent centering. */
html[data-nh-theme] body[class*="nh-section"] .nh-language :is(summary,a)>span[aria-hidden="true"]{display:inline-flex;align-items:center;justify-content:center;flex:0 0 28px;width:28px;height:28px;font-size:24px;line-height:1;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif!important}
html[data-nh-theme] body[class*="nh-section"] .nh-language summary{min-height:44px;gap:8px}
