/* Nawigacja (wzorzec: Gumloop) — biała, przyklejona, bez rozmycia; nad ciemną sekcją odwraca kolory. */
.wg-nav { position: sticky; top: 0; z-index: 100; background: #fff; color: var(--wg-ink); border-bottom: 1px solid transparent; font-family: var(--wg-body); transition: border-color 0.3s, background-color 0.3s, color 0.3s; }
.admin-bar .wg-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar .wg-nav { top: 46px; } }
@media (max-width: 600px) { .admin-bar #wpadminbar { position: fixed; } }
.wg-nav.is-scrolled { border-bottom-color: var(--wg-line); }
.wg-nav__bar { display: flex; align-items: center; gap: 24px; height: 54px; }
.wg-nav__logo { display: inline-flex; align-items: center; flex: 0 0 auto; color: inherit; }
.wg-nav__logo svg { display: block; height: 22px; width: auto; }
.wg-nav__logo:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }
.wg-nav__links { flex: 1 1 auto; display: flex; justify-content: center; }
.wg-nav__links ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.wg-nav__links a { display: block; padding: 6px 9px; border-radius: 6px; font-size: 14px; font-weight: 500; line-height: 1.4; color: inherit; text-decoration: none; transition: background-color 0.15s, color 0.15s; }
.wg-nav__links a:hover, .wg-nav__links a[aria-current="true"] { background: var(--wg-stage); }
.wg-nav__links a:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
.wg-nav__actions { display: flex; gap: 8px; flex: 0 0 auto; }
.wg-nav__btn { height: 32px; padding: 0 14px; }
.wg-nav__toggle { display: none; position: relative; width: 36px; height: 36px; margin-left: auto; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.wg-nav__toggle-bar, .wg-nav__toggle-bar::before, .wg-nav__toggle-bar::after { position: absolute; left: 9px; width: 18px; height: 1.5px; background: currentColor; transition: transform 0.2s, background-color 0.2s; }
.wg-nav__toggle-bar { top: 17px; }
.wg-nav__toggle-bar::before, .wg-nav__toggle-bar::after { content: ""; left: 0; }
.wg-nav__toggle-bar::before { top: -5px; }
.wg-nav__toggle-bar::after { top: 5px; }
.wg-nav.is-open .wg-nav__toggle { background: var(--wg-stage); }
.wg-nav.is-open .wg-nav__toggle-bar { background: transparent; }
.wg-nav.is-open .wg-nav__toggle-bar::before { transform: translateY(5px) rotate(45deg); }
.wg-nav.is-open .wg-nav__toggle-bar::after { transform: translateY(-5px) rotate(-45deg); }

/* Odwrócenie nad ciemną sekcją ([data-nav-invert]) */
.wg-nav[data-inverted="true"] { background: #000; color: #fff; border-bottom-color: rgba(255, 255, 255, 0.14); }
.wg-nav[data-inverted="true"] .wg-nav__links a:hover,
.wg-nav[data-inverted="true"] .wg-nav__links a[aria-current="true"] { background: rgba(255, 255, 255, 0.08); }
.wg-nav[data-inverted="true"] .wg-btn--secondary { background: transparent; color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3); }
.wg-nav[data-inverted="true"] .wg-btn--primary { background: #fff; color: #000; }

/* Telefon i tablet: hamburger i arkusz z linkami */
.wg-nav__sheet { display: none; }
@media (max-width: 1023px) {
	.wg-nav__links, .wg-nav__actions { display: none; }
	.wg-nav__toggle { display: block; }
	.wg-nav__sheet:not([hidden]) { position: fixed; inset: 54px 0 0; display: flex; flex-direction: column; padding: 8px var(--wg-gutter) 24px; background: #fff; color: var(--wg-ink); overflow-y: auto; }
	.admin-bar .wg-nav__sheet:not([hidden]) { top: calc(54px + 46px); }
	.wg-nav__sheet ul { flex: 1 1 auto; margin: 0; padding: 0; list-style: none; }
	.wg-nav__sheet a:not(.wg-btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--wg-line); font-size: 18px; font-weight: 500; color: inherit; text-decoration: none; }
	.wg-nav__sheet-actions { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; }
	.wg-nav__sheet-actions .wg-btn { height: 44px; }
	body.wg-nav-open { overflow: hidden; }
}
