/* EN/FR language menu on every page (markup from scripts/enablement_i18n.py, behaviour in lang-switch.js).
   The button shows the page's own language; the list names each language in itself, with a round flag. */
.en-lang-switch{position:relative;display:inline-block;flex:0 0 auto}
.en-lang-switch>summary{display:inline-flex;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;min-width:44px;min-height:44px;padding:0 10px;border:1px solid rgba(255,255,255,.55);border-radius:4px;color:#fff;font-size:13px;font-weight:700;letter-spacing:.06em;line-height:1;white-space:nowrap;cursor:pointer;list-style:none;user-select:none;-webkit-user-select:none}
.en-lang-switch>summary::-webkit-details-marker{display:none}
.en-lang-switch>summary::marker{content:""}
.en-lang-switch>summary:hover{background:rgba(255,255,255,.12)}
.enablement-site .en-lang-switch>summary:hover{background:none;border-color:#ffdf58;color:#ffdf58}
.en-lang-switch>summary:focus-visible{outline:2px solid #ffca6a;outline-offset:2px}
.enablement-site .en-lang-switch>summary:focus-visible{outline:3px solid #ffdf58}
.en-lang-chevron{flex:0 0 auto;margin-right:-2px;transition:transform .15s ease}
.en-lang-switch[open]>summary .en-lang-chevron{transform:rotate(180deg)}
.en-lang-dot{display:inline-block;flex:0 0 auto;width:16px;height:16px;border-radius:50%;background-size:cover;background-position:center;background-repeat:no-repeat;box-shadow:0 0 0 1px rgba(255,255,255,.7)}
.en-lang-dot-en{background-color:#012169;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 30'%3E%3CclipPath id='t'%3E%3Cpath d='M30,15h30v15zv15h-30zh-30v-15zv-15h30z'/%3E%3C/clipPath%3E%3Cpath d='M0,0v30h60v-30z' fill='%23012169'/%3E%3Cpath d='M0,0L60,30M60,0L0,30' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M0,0L60,30M60,0L0,30' clip-path='url(%23t)' stroke='%23C8102E' stroke-width='4'/%3E%3Cpath d='M30,0v30M0,15h60' stroke='%23fff' stroke-width='10'/%3E%3Cpath d='M30,0v30M0,15h60' stroke='%23C8102E' stroke-width='6'/%3E%3C/svg%3E")}
.en-lang-dot-fr{background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 3'%3E%3Cpath d='M0,0h1v3h-1z' fill='%23002654'/%3E%3Cpath d='M1,0h1v3h-1z' fill='%23fff'/%3E%3Cpath d='M2,0h1v3h-1z' fill='%23CE1126'/%3E%3C/svg%3E")}
.en-lang-menu{position:absolute;top:calc(100% + 6px);right:0;z-index:1000;min-width:168px;margin:0;padding:4px;box-sizing:border-box;background:#fff;color:#16202b;border:1px solid rgba(22,32,43,.14);border-radius:8px;box-shadow:0 10px 28px rgba(0,0,0,.28)}
.en-lang-flip .en-lang-menu{left:0;right:auto}
.en-lang-switch .en-lang-menu .en-lang-option{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 12px;border-radius:6px;color:#16202b;font-size:15px;font-weight:500;letter-spacing:0;line-height:1.2;text-decoration:none;white-space:nowrap}
.en-lang-switch .en-lang-menu .en-lang-option .en-lang-dot{width:20px;height:20px;box-shadow:0 0 0 1px rgba(22,32,43,.22)}
.en-lang-switch .en-lang-menu .en-lang-option:hover{background:#eef1f5;color:#16202b;text-decoration:none}
.en-lang-switch .en-lang-menu .en-lang-option:focus-visible{outline:2px solid #0055a4;outline-offset:-2px}
.en-lang-switch .en-lang-menu .en-lang-option[aria-current]{font-weight:700}
.en-lang-check{margin-left:auto;padding-left:12px;color:#16202b;font-size:14px}
@media(prefers-reduced-motion:reduce){.en-lang-chevron{transition:none}}
@media(max-width:740px){.enablement-site .en-lang-switch>summary{min-width:40px;min-height:40px;padding:0 8px;font-size:12px;gap:6px}}
@media(max-width:600px){.en-lang-switch>summary{min-width:40px;min-height:40px;padding:0 8px;font-size:12px;gap:6px}.portfolio-header .header-tools{gap:8px}.portfolio-header .store-return{white-space:normal;max-width:96px;text-align:right;line-height:1.25}}
@media(max-width:400px){.en-lang-switch>summary{padding:0 6px;gap:5px;font-size:11px}.en-lang-chevron{width:10px;height:10px}}
@media(max-width:740px){.resource-app-actions .en-lang-menu{left:0;right:auto}}
@media(max-width:360px){.portfolio-header .portfolio-search{width:0}}
@media(min-width:1100px){html[lang="fr"] .portfolio-search{width:200px}}
