/* Wspólne elementy stron publicznych i auth (templates/public/base_public.html).
   Tylko to, co naprawdę dzielą wszystkie strony - style konkretnej strony
   zostają w jej pliku (landing.css, login-modern.css). */

.skip-link {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    color: #fff;
    background: var(--brand-navy-900);
    font: 600 0.95rem/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
    text-decoration: none;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: none;
    outline: 3px solid var(--brand-blue-600);
    outline-offset: 2px;
}

/* Przełącznik PL/EN (templates/partials/_language_switcher.html). */
.lang-switcher {
    display: inline-flex;
    gap: 0.25rem;
}

.lang-switcher button {
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0 0.6rem;
    border: 1px solid var(--brand-line);
    border-radius: 0.5rem;
    color: var(--brand-muted);
    background: transparent;
    font: 600 0.85rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
    cursor: pointer;
}

.lang-switcher button[aria-pressed="true"] {
    border-color: var(--brand-navy-800);
    color: var(--brand-ink);
}

/* Granat nie odcina się od ciemnego tła - w trybie ciemnym ramka w akcencie. */
html[data-theme="dark"] .lang-switcher button[aria-pressed="true"] {
    border-color: var(--brand-blue-600);
}

.lang-switcher button:focus-visible {
    outline: 3px solid var(--brand-blue-600);
    outline-offset: 2px;
}
