/* The language menu on every page (blog and explorer): the page's flag, the list from LANG in web/blog/build.py.
   Colors come from the page (--ink, --muted, --line, --amber); the blog also sets --hi and --sans. */
.flag { display: block; flex: none; width: 22px; height: 22px; border-radius: 50%; overflow: hidden; outline: 1px solid rgba(255, 255, 255, .16); outline-offset: -1px; }
.flag svg { display: block; width: 100%; height: 100%; }
.lang { position: relative; }
.lang summary { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; list-style: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 5px; height: 5px; margin-top: -3px; border: solid var(--muted); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.lang summary:hover, .lang[open] summary { border-color: var(--line); background: #0d0f14; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; min-width: 190px; margin: 0; padding: 6px; list-style: none;
  background: #101218; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .55);
  font: 15px/1.4 var(--sans, system-ui, sans-serif); letter-spacing: 0; text-transform: none; }
.lang li a, .lang li span { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; color: var(--ink); text-decoration: none; }
.lang li a:hover { background: rgba(255, 255, 255, .05); color: var(--hi, #f0f2f6); }
.lang li .on { color: var(--amber); }
