.topnc-language-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: 'Manrope', sans-serif;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
    color: #111827;
    transition:
        color 0.35s ease,
        opacity 0.35s ease;
}

.topnc-language-switcher a,
.topnc-language-switcher button,
.topnc-language-switcher span {
    font-family: 'Manrope', sans-serif;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

/* ---------------------------------------------------------
   Language switcher – colours follow TOPNC main navigation
   --------------------------------------------------------- */

/* Subpages / normal light header: dark by default. */
.topnc-language-switcher,
.topnc-language-switcher--inline a,
.topnc-language-switcher__separator {
    color: #111827 !important;
}

/* Active language on normal/subpage header. */
.topnc-language-switcher__current,
.topnc-language-switcher__toggle {
    color: #c4001a !important;
}

/* Home: transparent header start state = white. */
body.topnc-language-home .topnc-header .topnc-language-switcher,
body.topnc-language-home .topnc-header .topnc-language-switcher--inline a,
body.topnc-language-home .topnc-header .topnc-language-switcher__separator {
    color: #ffffff !important;
    opacity: 1;
}

/* Home: hover in transparent start state. */
body.topnc-language-home .topnc-header .topnc-language-switcher--inline a:hover,
body.topnc-language-home .topnc-header .topnc-language-switcher--inline a:focus-visible {
    color: #AD282C !important;
    opacity: 1;
}

/* Home: active language in transparent start state. */
body.topnc-language-home .topnc-header .topnc-language-switcher__current,
body.topnc-language-home .topnc-header .topnc-language-switcher__toggle {
    color: #AD282C !important;
    opacity: 1;
}

/* Home: same scroll-state class used by TOPNC navigation. */
body.topnc-language-home .topnc-header.topnc-scrolled .topnc-language-switcher,
body.topnc-language-home .topnc-header.topnc-scrolled .topnc-language-switcher--inline a,
body.topnc-language-home .topnc-header.topnc-scrolled .topnc-language-switcher__separator {
    color: #111827 !important;
    opacity: 1;
}

/* Home: hover after scrolling. */
body.topnc-language-home .topnc-header.topnc-scrolled .topnc-language-switcher--inline a:hover,
body.topnc-language-home .topnc-header.topnc-scrolled .topnc-language-switcher--inline a:focus-visible {
    color: #AD282C !important;
    opacity: 1;
}

/* Home: active language after scrolling. */
body.topnc-language-home .topnc-header.topnc-scrolled .topnc-language-switcher__current,
body.topnc-language-home .topnc-header.topnc-scrolled .topnc-language-switcher__toggle {
    color: #c4001a !important;
    opacity: 1;
}

/* Smooth switch matching the main navigation. */
.topnc-language-switcher,
.topnc-language-switcher a,
.topnc-language-switcher button,
.topnc-language-switcher span {
    transition:
        color 0.35s ease,
        opacity 0.35s ease;
}

.topnc-language-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: .45em;
    padding: .35em 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.topnc-language-switcher__toggle svg {
    transition: transform .18s ease;
}

.topnc-language-switcher.is-open .topnc-language-switcher__toggle svg {
    transform: rotate(180deg);
}

.topnc-language-switcher__menu {
    position: absolute;
    z-index: 9999;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    min-width: 76px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: #ffffff;
    color: #111827 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

.topnc-language-switcher.is-open .topnc-language-switcher__menu {
    display: block;
}

.topnc-language-switcher__menu li {
    margin: 0;
    padding: 0;
}

/* Dropdown stays readable regardless of header state. */
.topnc-language-switcher .topnc-language-switcher__menu a,
.topnc-language-switcher .topnc-language-switcher__menu .topnc-language-switcher__disabled {
    display: block;
    padding: 8px 10px;
    color: #111827 !important;
    text-decoration: none;
    white-space: nowrap;
}

.topnc-language-switcher .topnc-language-switcher__menu a:hover,
.topnc-language-switcher .topnc-language-switcher__menu a:focus-visible {
    color: #AD282C !important;
    background: rgba(0, 0, 0, .06);
}

.topnc-language-switcher__disabled {
    opacity: .4;
    cursor: not-allowed;
}

.topnc-language-switcher--inline {
    gap: .45em;
}

.topnc-language-switcher--inline a {
    text-decoration: none;
}

.topnc-language-switcher__current {
    font-weight: 700;
}

.topnc-language-switcher__separator {
    opacity: .45;
}
