/* KD SEO: przełącznik języka w nagłówku (pozycja „PL/EN” z menu WEBRACE, klasa .kdseo-lang dodawana przez wtyczkę).
   Struktura podmenu zostaje, bo menu mobilne WEBRACE jej wymaga; zmieniamy tylko wygląd. Krój i rozmiary pisma z motywu. */

/* Pozycje: kod języka w ramce + nazwa, aktywny język wyróżniony i oznaczony ptaszkiem. */
.oematic-site-header .kdseo-lang .kdseo-lang__item > a { align-items: center; border-radius: var(--oematic-radius-xs); color: var(--oematic-color-neutral-200); display: flex; gap: var(--oematic-spacing-md); justify-content: flex-start; text-decoration: none; }
.oematic-site-header .kdseo-lang .kdseo-lang__item > a:is(:hover, :focus-visible) { background: var(--oematic-color-neutral-950); color: var(--oematic-color-white); }
.oematic-site-header .kdseo-lang .kdseo-lang__item > a:focus-visible { outline: var(--oematic-measure-2) solid var(--oematic-color-neutral-50); outline-offset: calc(-1 * var(--oematic-measure-2)); }
.oematic-site-header .kdseo-lang .kdseo-lang__item > a[aria-current="true"] { color: var(--oematic-color-white); }
.oematic-site-header .kdseo-lang .kdseo-lang__item > a::after { content: none; } /* Motyw rysuje tu absolutnie pozycjonowaną kreskę pod linkiem menu. */
.oematic-site-header .kdseo-lang .kdseo-lang__item .wp-block-navigation-item__label { flex: 1 1 auto; }
.oematic-site-header .kdseo-lang .kdseo-lang__item > a[aria-current="true"] .wp-block-navigation-item__label::after { content: "✓" / ""; float: right; margin-left: var(--oematic-spacing-md); }
.oematic-site-header .kdseo-lang .kdseo-lang__code { align-items: center; border: var(--oematic-measure-1) solid var(--oematic-color-border-inverse-subtle); border-radius: var(--oematic-radius-xs); box-sizing: border-box; display: inline-flex; flex: none; justify-content: center; letter-spacing: 0.04em; min-width: 2.4em; padding: var(--oematic-spacing-xxs) var(--oematic-spacing-xs); }
.oematic-site-header .kdseo-lang .kdseo-lang__item > a[aria-current="true"] .kdseo-lang__code { background: var(--oematic-color-neutral-50); border-color: var(--oematic-color-neutral-50); color: var(--oematic-color-brand-950); }

/* Komputer: ciemny, wąski panel jak pozostałe rozwijane menu, dosunięty do prawej krawędzi „EN”.
   Tło: reguła rdzenia .wp-block-navigation:not(.has-background) (biel) ma wyższą specyficzność niż ciemne tło z motywu. */
@media (min-width: 1181px) {
	.oematic-site-header .wp-block-navigation .kdseo-lang > .wp-block-navigation__submenu-container { background: var(--oematic-color-brand-950); border: var(--oematic-measure-1) solid var(--oematic-color-border-inverse-subtle); border-radius: var(--oematic-radius-sm); gap: var(--oematic-spacing-xxs); left: auto; min-width: 0 !important; /* Motyw wymusza 280 px z !important dla każdego podmenu. */ padding: var(--oematic-spacing-xs); right: 0; width: max-content; }
	.oematic-site-header .wp-block-navigation .kdseo-lang .kdseo-lang__item > a { min-width: 10em; padding: var(--oematic-spacing-md) var(--oematic-spacing-lg); }
}

/* Telefon i tablet (menu mobilne WEBRACE): panel w kolorze nagłówka, pozycje od lewej na całą szerokość panelu. */
@media (max-width: 1180px) {
	/* Specyficzność jak w regule motywu dla li[data-oematic-mobile-menu-language], która dokłada szare tło i wcięcie listy. */
	.oematic-site-header:is(.is-mobile-menu-ready, .is-mobile-drilldown-ready) li.kdseo-lang[data-oematic-mobile-menu-language] > .wp-block-navigation__submenu-container { background: var(--oematic-color-brand-950); gap: var(--oematic-spacing-xxs); padding: var(--oematic-spacing-xs); }
	.oematic-site-header .kdseo-lang .kdseo-lang__item { width: 100%; }
	.oematic-site-header .kdseo-lang .kdseo-lang__item > a { padding: var(--oematic-spacing-md); width: 100%; }
}

/* Informacja na angielskich stronach prawnych. */
.kdseo-legal-note { border-left: var(--oematic-measure-2) solid currentcolor; margin-block: var(--oematic-spacing-lg); padding-left: var(--oematic-spacing-md); }
