/* 1.26 / 2.24 · item 4 · the language menu: a compact pill (flag · code · chevron) sitting tight next to its neighbours;
   the list drops down BELOW it with both languages (flag + name), the current one ticked */
.lflag { position: relative; display: inline-flex; flex: none; z-index: 40; margin: 0; }
.lflag > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 6px; border-radius: 999px;
  font: 800 12.5px/1 system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .04em; color: inherit; direction: ltr;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); transition: background .2s, border-color .2s; }
.lflag > summary::-webkit-details-marker { display: none; }
.lflag > summary:hover { background: rgba(255, 255, 255, .14); }
.lflag > summary:focus-visible { outline: 3px solid #F59E0B; outline-offset: 2px; }
.lflag svg:not(.lflag__chev):not(.lflag__ok) { width: 20px; height: 20px; flex: none; display: block; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .7); }
.lflag__chev { width: 12px; height: 12px; opacity: .75; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.lflag[open] .lflag__chev { transform: rotate(180deg); }
html[data-mode="light"] .lflag > summary { background: rgba(0, 0, 0, .04); border-color: rgba(0, 0, 0, .12); }
html[data-mode="light"] .lflag svg:not(.lflag__chev):not(.lflag__ok) { box-shadow: 0 0 0 1px rgba(0, 0, 0, .14); }
.lflag__menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 168px; padding: 6px; border-radius: 14px; display: grid; gap: 2px;
  background: rgba(20, 16, 40, .97); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 22px 44px -18px rgba(0, 0, 0, .75);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transform-origin: top; animation: lflag-drop .26s cubic-bezier(.2, 1.3, .4, 1); }
.lflag__menu::before { content: ""; position: absolute; top: -6px; inset-inline-end: 16px; width: 10px; height: 10px; transform: rotate(45deg); background: inherit; border: inherit; border-width: 1px 0 0 1px; }
html[data-mode="light"] .lflag__menu { background: #fff; border-color: rgba(0, 0, 0, .1); color: #17132F; box-shadow: 0 22px 44px -18px rgba(20, 20, 60, .35); }
@keyframes lflag-drop { from { opacity: 0; transform: translateY(-6px) scaleY(.9); } to { opacity: 1; transform: none; } }
.lflag:not([open]) .lflag__menu { display: none; }
.lflag__opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: 14px; font-weight: 700; text-decoration: none; color: inherit; white-space: nowrap; }
a.lflag__opt:hover, a.lflag__opt:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
html[data-mode="light"] a.lflag__opt:hover { background: rgba(0, 0, 0, .05); }
.lflag__opt.is-on { opacity: .75; cursor: default; }
.lflag__opt > span { flex: 1; }
.lflag__ok { width: 14px; height: 14px; color: #22C55E; }
.lflag.lsw--sm > summary { height: 30px; }
@media (prefers-reduced-motion: reduce) { .lflag__menu { animation: none; } .lflag__chev { transition: none; } }
