/* Colours from the page only: the text colour around the switcher, and for the drop-down the
   background of the nearest container that has one (system colours without the script). */
.lrobait-switcher ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.25em .9em;align-items:center}
.lrobait-switcher li{margin:0}
.lrobait-switcher a{display:inline-flex;align-items:center;gap:.4em;color:inherit;text-decoration:none}
.lrobait-switcher a:hover span,.lrobait-switcher a:focus-visible span{text-decoration:underline}
.lrobait-switcher a[aria-current]{font-weight:600}
/* A thin line around each flag, from the text colour: a white flag stays visible on a light page. */
.lrobait-flag{display:block;width:1.5em;height:1em;flex:none;border-radius:3px;box-shadow:0 0 0 1px color-mix(in srgb,currentColor 30%,transparent)}
.lrobait-switcher a:not([aria-current]) .lrobait-flag{opacity:.75}
.lrobait-switcher a:hover .lrobait-flag,.lrobait-switcher a:focus-visible .lrobait-flag{opacity:1}
.lrobait-switcher.is-dropdown{display:inline-block}
.lrobait-switcher-menu{position:relative;display:inline-block}
.lrobait-switcher-menu summary{display:inline-flex;align-items:center;gap:.4em;cursor:pointer;list-style:none;padding:.2em .1em}
.lrobait-switcher-menu summary::-webkit-details-marker{display:none}
.lrobait-caret{width:.45em;height:.45em;border-right:.12em solid currentColor;border-bottom:.12em solid currentColor;transform:translateY(-.15em) rotate(45deg);margin-left:.15em;opacity:.7;transition:transform .15s}
.lrobait-switcher-menu[open] .lrobait-caret{transform:translateY(.1em) rotate(-135deg)}
/* Under its button, each flag of the list exactly under the button's flag: the list starts the
   button's padding (.1em) before the links' padding (1em) and its border (1px), on the side the
   text starts (right to left too). The script moves it to the other edge when it would leave the
   window. */
.lrobait-switcher-menu ul{position:absolute;z-index:1000;top:100%;inset-inline-start:calc(.1em - 1em - 1px);inset-inline-end:auto;min-width:100%;box-sizing:border-box;flex-direction:column;align-items:stretch;gap:0;margin-top:.3em;padding:0;overflow:hidden;background-color:Canvas;color:CanvasText;border:1px solid color-mix(in srgb,currentColor 15%,transparent);border-radius:6px;box-shadow:0 6px 20px color-mix(in srgb,currentColor 15%,transparent)}
/* The open menu takes the background of the place it is in (read by the script, in each mode of
   the site), and the text colour of that place, which the theme already made readable on it. */
.lrobait-switcher-menu.is-end ul{inset-inline-start:auto;inset-inline-end:0}
.lrobait-switcher-menu[data-lrobait-bg] ul{background-color:var(--lrobait-menu-bg);color:inherit}
/* The whole menu is its entries: the room around a flag is the link's own padding, so the target
   stays comfortable (44 px at least) and hovering covers the menu edge to edge. */
.lrobait-switcher-menu li{margin:0;padding:0;line-height:1}
.lrobait-switcher-menu li a{display:flex;align-items:center;box-sizing:border-box;min-height:max(2.75em,44px);padding:.6em 1em;white-space:nowrap;line-height:1.2}
.lrobait-switcher-menu li a:hover,.lrobait-switcher-menu li a:focus-visible{background:color-mix(in srgb,currentColor 8%,transparent)}
@media (prefers-reduced-motion:reduce){.lrobait-caret{transition:none}}
/* The floating switcher: a pill in a corner, with the page's background and text colour (read by
   the script; system colours without it), its menu opening towards the inside of the page. */
.lrobait-floating{position:fixed;z-index:9990;right:var(--lrobait-x,16px);bottom:var(--lrobait-y,16px);display:flex;align-items:center;min-height:40px;box-sizing:border-box;padding:0 .8em;border:1px solid color-mix(in srgb,currentColor 18%,transparent);border-radius:999px;background-color:Canvas;color:CanvasText;box-shadow:0 2px 10px color-mix(in srgb,currentColor 18%,transparent);font-size:15px;line-height:1.3}
.lrobait-floating[data-lrobait-bg]{background-color:var(--lrobait-menu-bg);color:inherit}
.lrobait-floating.is-bottom-left,.lrobait-floating.is-top-left{right:auto;left:var(--lrobait-x,16px)}
.lrobait-floating.is-top-right,.lrobait-floating.is-top-left{bottom:auto;top:var(--lrobait-y,16px)}
.admin-bar .lrobait-floating.is-top-right,.admin-bar .lrobait-floating.is-top-left{top:calc(var(--lrobait-y,16px) + 32px)}
.lrobait-floating .lrobait-switcher-menu summary{min-height:40px;box-sizing:border-box}
.lrobait-floating.is-bottom-right .lrobait-switcher-menu ul,.lrobait-floating.is-bottom-left .lrobait-switcher-menu ul{top:auto;bottom:100%;margin:0 0 .4em}
.lrobait-floating.is-bottom-right .lrobait-switcher-menu ul,.lrobait-floating.is-top-right .lrobait-switcher-menu ul{left:auto;right:-.8em}
.lrobait-floating.is-bottom-left .lrobait-switcher-menu ul,.lrobait-floating.is-top-left .lrobait-switcher-menu ul{left:calc(.1em - 1em - 1px);right:auto}
@media (max-width:782px){.admin-bar .lrobait-floating.is-top-right,.admin-bar .lrobait-floating.is-top-left{top:calc(var(--lrobait-y,16px) + 46px)}}
/* Small screens: smaller, and the flag alone when there is one (its name stays for screen readers). */
@media (max-width:600px){
.lrobait-floating{min-height:36px;padding:0 .6em;font-size:13px}
.lrobait-floating .lrobait-switcher-menu summary{min-height:36px}
.lrobait-floating summary:has(.lrobait-flag)>span:not(.lrobait-caret){position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
}
@media print{.lrobait-floating{display:none}}
