/* ── Language picker ───────────────────────────────────────────
   Header chip showing the active locale's flag + caret. Click
   opens a dropdown of supported content languages.

   Shared by desktop Discovery and the builder marketing pages, so every
   colour reads a --dd-* token FIRST (Discovery defines them) and falls
   back to the gallery's --g-* token, then a literal. That keeps
   Discovery byte-identical while the gallery pages, which never load
   discovery-desktop.css, still render the chip correctly. */
.dd-lang-picker {
    position: relative;
}
.dd-lang-picker__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid var(--dd-border, var(--g-border, #E6E4EC));
    background: var(--dd-surface, var(--g-surface, #FFFFFF));
    color: var(--dd-text, var(--g-ink, #1A1A1F));
    border-radius: 999px;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.dd-lang-picker__btn:hover {
    background: var(--dd-brand-soft, #E5D0FF);
    border-color: var(--dd-brand-soft, #E5D0FF);
}
.dd-lang-picker__flag {
    /* Emoji flags render bigger than the surrounding 14px label
       text — clamp the size so the chip stays in-line with the
       city chip next to it. */
    font-size: 18px;
    line-height: 1;
}
.dd-lang-picker__caret {
    color: var(--dd-text-muted, var(--g-muted, #6B6B6B));
    flex-shrink: 0;
}
.dd-lang-picker__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    padding: 4px;
    background: var(--dd-surface, var(--g-surface, #FFFFFF));
    border: 1px solid var(--dd-border, var(--g-border, #E6E4EC));
    border-radius: var(--dd-radius-sm, 10px);
    box-shadow: var(--dd-shadow-md, 0 8px 24px rgba(20, 12, 40, 0.08));
    z-index: 50;
}
.dd-lang-picker__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    background: transparent;
    border: 0;
    border-radius: 6px;
    text-align: left;
    color: var(--dd-text, var(--g-ink, #1A1A1F));
    font-size: var(--text-base, 1rem);
    cursor: pointer;
}
.dd-lang-picker__item:hover {
    background: var(--dd-brand-soft, #E5D0FF);
}
.dd-lang-picker__item.is-active {
    font-weight: 600;
    background: var(--dd-brand-soft, #E5D0FF);
}
.dd-lang-picker__item-flag {
    font-size: 18px;
    line-height: 1;
}
.dd-lang-picker__item-name {
    flex: 1;
}
