/* Language picker: the language's flag and code, in the nav and the footer of every page.
   Built by scripts/make-i18n.py; works with or without site.css. */
.lang { position: relative; display: inline-block; }
details.lang > summary { list-style: none; display: flex; align-items: center; gap: 7px; cursor: pointer; color: var(--muted, #a49e93);
                font: 500 12px "Geist Mono", ui-monospace, Menlo, monospace; letter-spacing: .04em;
                padding: 6px 8px; border-radius: 999px; -webkit-tap-highlight-color: transparent;
                justify-content: flex-start; line-height: 1; }
details.lang > summary::after { content: none; display: none; }
details.lang > summary::-webkit-details-marker { display: none; }
details.lang > summary:hover, details.lang[open] > summary { color: var(--ink, #f3efe7); }
.lang .flag { width: 18px; height: 12px; border-radius: 2.5px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
details.lang .lang-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; display: flex; flex-direction: column; min-width: 180px; padding: 6px; border-radius: 16px;
             background: #221f1b; border: 1px solid rgba(243, 239, 231, .10);
             box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 24px 60px -28px rgba(0, 0, 0, .75);
             backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
details.lang .lang-menu a { display: flex !important; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14px; line-height: 1.2;
               color: var(--ink, #f3efe7); text-decoration: none; white-space: nowrap; }
details.lang .lang-menu a:hover { background: rgba(255, 255, 255, .06); }
details.lang .lang-menu a[aria-current] { color: var(--muted, #a49e93); }
details.lang .lang-menu a[aria-current]::after { content: "✓"; margin-left: auto; padding-left: 8px; }
details.lang.up .lang-menu { top: auto; bottom: calc(100% + 10px); }
details.lang.left .lang-menu { right: auto; left: 0; }
footer .lang { margin-right: 6px; vertical-align: middle; }
.lang.top { float: right; margin: -4px -8px 0 0; }
