/* Header only: retain Astra's existing layout and menu typography. */
#masthead .pcgf-language-item {
    display: flex;
    align-items: center;
    position: relative;
    margin: 0 0 0 12px;
    padding: 0;
    list-style: none;
}
#masthead .pcgf-language-picker { position: relative; margin: 0; }
#masthead .pcgf-language-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 64px;
    min-height: 40px;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #18314f;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
#masthead .pcgf-language-toggle::-webkit-details-marker { display: none; }
#masthead .pcgf-language-toggle::marker { content: ''; }
#masthead .pcgf-language-toggle:hover,
#masthead .pcgf-language-picker[open] > .pcgf-language-toggle {
    color: #2563eb;
    border-color: #c5d6ff;
    background: #f5f8ff;
}
#masthead .pcgf-language-toggle:focus-visible,
#masthead .pcgf-language-options a:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
}
#masthead .pcgf-language-chevron { flex: 0 0 auto; transition: transform .15s ease; }
#masthead .pcgf-language-picker[open] .pcgf-language-chevron { transform: rotate(180deg); }
#masthead .pcgf-language-picker > .pcgf-language-options {
    position: absolute;
    z-index: 10000;
    inset: calc(100% + 8px) 0 auto auto;
    display: block;
    width: 176px;
    max-width: calc(100vw - 32px);
    margin: 0;
    padding: 6px;
    list-style: none;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 28px rgb(15 23 42 / 12%);
}
#masthead .pcgf-language-picker:not([open]) > .pcgf-language-options { display: none; }
#masthead .pcgf-language-options > li { display: block; margin: 0; padding: 0; list-style: none; }
#masthead .pcgf-language-options > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    min-height: 42px;
    box-sizing: border-box;
    padding: 9px 12px;
    border: 0;
    border-radius: 7px;
    color: #18314f;
    background: #fff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-decoration: none;
}
#masthead .pcgf-language-options > li > a:hover,
#masthead .pcgf-language-options > li > a[aria-current="page"] { color: #1d4ed8; background: #eff5ff; }
#masthead .pcgf-language-options > li > a[aria-current="page"] { font-weight: 600; }
#masthead .pcgf-language-code { font-size: 11px; letter-spacing: .04em; opacity: .7; }
.ast-header-break-point #masthead .pcgf-language-item { margin: 6px 20px 12px; }
.ast-header-break-point #masthead .pcgf-language-picker > .pcgf-language-options {
    position: static;
    margin-top: 8px;
    box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
    #masthead .pcgf-language-chevron { transition: none; }
}
