/* Multilingual M1a: language menu in the header and the one-time language suggestion. */
.wlc-lang{position:relative;padding:0;border:0;margin:0}
.wlc-lang>summary,.wlc-lang[open]>summary{margin:0}
.wlc-lang>summary{list-style:none;display:inline-flex;align-items:center;gap:6px;padding:8px 10px;border:1px solid var(--line,#304638);border-radius:999px;cursor:pointer;font-size:13px;font-weight:700;color:var(--text,#eaf4ee);background:transparent}
.wlc-lang>summary::-webkit-details-marker{display:none}
.wlc-lang>summary::after{display:none!important;content:none!important}
.wlc-lang>summary:hover,.wlc-lang[open]>summary{border-color:var(--green,#38d79a)}
.wlc-lang-menu{position:absolute;right:0;top:calc(100% + 8px);z-index:60;min-width:200px;display:grid;padding:6px;border:1px solid var(--line,#304638);border-radius:12px;background:var(--panel,#121c16);box-shadow:0 16px 40px #0008}
.wlc-lang-menu a{display:block;padding:9px 12px;border-radius:8px;color:var(--text,#eaf4ee);text-decoration:none;font-size:14px}
.wlc-lang-menu a:hover,.wlc-lang-menu a:focus-visible{background:#ffffff0d}
.wlc-lang-menu a[aria-current="true"]{color:var(--green,#38d79a);font-weight:700}
.wlc-lang-menu a[aria-current="true"]::after{content:" ✓"}
.wlc-lang-suggest{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 14px;padding:9px 16px;border-bottom:1px solid var(--line,#304638);background:color-mix(in srgb,var(--green,#38d79a) 8%,transparent);font-size:14px;color:var(--text,#eaf4ee)}
.wlc-lang-suggest a{font-weight:700;color:var(--green,#38d79a)}
.wlc-lang-suggest button{border:1px solid var(--line,#304638);background:transparent;color:var(--muted,#a2b6aa);border-radius:999px;padding:5px 12px;font:inherit;font-size:13px;cursor:pointer}
body.light .wlc-lang-menu{box-shadow:0 16px 40px #0002}
body.light .wlc-lang-menu a:hover,body.light .wlc-lang-menu a:focus-visible{background:#0000000a}
@media(max-width:860px){.wlc-lang-menu{right:auto;left:0}}
/* Phones and tablets: the header menu is a scrolling panel, so a floating list would be clipped. The list opens inside
   the panel instead, on its own full-width row, as buttons in the style of the menu links. */
/* Phone account area (directory pages, which have the language button): one row language + theme, then the account
   links in even columns (guest 2, member 3, staff 2x2) in the order name, Dashboard, Admin, Log out, then Add project. */
@media(max-width:900px){.wlc-responsive-header #wlc-account-navigation:has(.wlc-lang){grid-template-columns:repeat(6,minmax(0,1fr))!important}.wlc-responsive-header #wlc-account-navigation:has(.wlc-lang)>.wlc-lang{grid-column:span 5;order:0}.wlc-responsive-header #wlc-account-navigation:has(.wlc-lang)>#theme{grid-column:span 1;order:0;width:100%;height:34px;align-self:start}.wlc-responsive-header #wlc-account-navigation:has(.wlc-lang)>a{grid-column:span 2;order:1;width:auto!important;max-width:none!important;min-width:0}.wlc-responsive-header #wlc-account-navigation:has(.wlc-lang)>a[href*="dashboard.php"]{order:2}.wlc-responsive-header #wlc-account-navigation:has(.wlc-lang)>a[href*="/admin/"]{order:3}.wlc-responsive-header #wlc-account-navigation:has(.wlc-lang)>a[href*="logout"]{order:4}.wlc-responsive-header #wlc-account-navigation:has(.wlc-lang):has(a[href*="action=login"])>a,.wlc-responsive-header #wlc-account-navigation:has(.wlc-lang):has(a[href*="/admin/"])>a{grid-column:span 3}.wlc-responsive-header #wlc-account-navigation:has(.wlc-lang)>a.primary{grid-column:1/-1!important;order:5}}
@media(max-width:900px){.wlc-responsive-header .wlc-lang{flex:1 0 100%}.wlc-responsive-header .wlc-lang>summary{box-sizing:border-box;width:100%;min-height:34px;border-radius:7px;padding:6px 10px;font-size:12px;justify-content:flex-start}.wlc-responsive-header .wlc-lang-menu{position:static;min-width:0;margin-top:6px;padding:0;border:0;background:none;box-shadow:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.wlc-responsive-header .wlc-lang-menu a{display:flex;align-items:center;min-height:36px;padding:7px 11px;border:1px solid var(--line,#304d3b);border-radius:7px;background:var(--panel,#121d17);font-size:12px}.wlc-responsive-header .wlc-lang-menu a[aria-current="true"]{border-color:var(--green,#38d79a)}body.light .wlc-responsive-header .wlc-lang-menu{box-shadow:none}}
