/* The language menu in the top bar of the translated pages, and the line above
   the bar that offers a visitor their own language (languages.js). The menu's
   HTML is written by scripts/gen-site-langs.mjs. */
.lang-menu { position: relative; }
.lang-menu summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    color: #b0b0d0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after {
    content: '';
    width: 6px;
    height: 6px;
    margin: -3px 2px 0;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.lang-menu[open] summary::after { margin-top: 3px; transform: rotate(225deg); }
.lang-menu summary:hover, .lang-menu[open] summary { color: #fff; background: rgba(255, 255, 255, 0.05); }
.lang-menu summary:focus-visible, .lang-list a:focus-visible, .lang-offer a:focus-visible, .lang-offer button:focus-visible { outline: 2px solid #e5a53a; outline-offset: 1px; }
.lang-flag {
    display: block;
    flex: none;
    width: 21px;
    height: 14px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.lang-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    min-width: 176px;
    padding: 6px;
    background: #16162a;
    border: 1px solid #34345a;
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
.lang-list a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 6px;
    color: #c8c8e0;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.lang-list a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); text-decoration: none; }
.lang-list a[aria-current] { color: #f0c060; }

.lang-offer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 9px 46px 9px 16px;
    position: relative;
    background: #1d1d38;
    border-bottom: 1px solid #34345a;
    color: #d8d8ec;
    font-size: 14px;
    line-height: 1.4;
}
.lang-offer .lang-flag { align-self: center; }
.lang-offer a { color: #f0c060; font-weight: 700; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.lang-offer a:hover { color: #ffd98a; }
.lang-offer button {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: none;
    color: #a0a0c0;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.lang-offer button:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* On a phone the flag is enough. */
@media (max-width: 620px) {
    .lang-menu .lang-name { display: none; }
    .lang-menu summary { padding: 10px 6px; gap: 6px; }
    .lang-offer { justify-content: flex-start; gap: 10px; font-size: 13px; }
}
/* The longest of these bars (Dutch) has to fit a 360 pixel phone: the emblem stands for the name. */
@media (max-width: 480px) {
    .site-nav-brand .lg-wordmark { display: none; }
    .site-nav .site-nav-inner { justify-content: space-between; }
    .site-nav .site-nav-actions { gap: 4px; }
    .site-nav .site-nav-signin { padding: 6px; white-space: nowrap; }
    .site-nav .site-nav-cta { padding: 8px 10px; white-space: nowrap; }
}
/* Between a phone and a wide screen: the flag alone, and the links closer together.
   The longer languages drop the links a little earlier than English does. */
.site-nav-links a, .site-nav-signin, .site-nav-cta { white-space: nowrap; }
html:not([lang='en']) .site-nav-links { gap: 20px; }
@media (min-width: 861px) and (max-width: 1180px) {
    .lang-menu .lang-name { display: none; }
    .site-nav .site-nav-inner { gap: 14px; padding: 0 18px; }
    .site-nav .site-nav-links, html:not([lang='en']) .site-nav .site-nav-links { gap: 14px; margin-left: 4px; }
    .site-nav .site-nav-links a { font-size: 13px; }
    .site-nav .site-nav-actions { gap: 4px; }
    .site-nav .site-nav-signin { padding: 8px; }
    .site-nav .site-nav-cta { padding: 9px 13px; }
}
@media (max-width: 1000px) { html:not([lang='en']) .site-nav .site-nav-links { display: none; } }
