/* Pasek „Wersja demonstracyjna" (themes/_shared/demo/_pasek.html.twig, ustawienie 77).
   Stałe kolory Visualnetu (#003849 + biel; kontrast 12,3:1), niezależne od motywu strony.
   Pasek NIE jest przyklejony — sticky nagłówki motywów zostają na górze okna po przewinięciu. */
.demo-bar {
    position: relative;
    z-index: 10002; /* nad sticky nagłówkiem (9999) i szufladą (10001) tylko w swoim pasie */
    background: #001f2b;
    color: #fff;
    font: 500 13px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: 0;
    text-transform: none;
}
.demo-bar__inner {
    display: flex;
    align-items: center;
    gap: 6px 16px;
    max-width: 1617px;
    margin: 0 auto;
    padding: 6px 16px;
    min-height: 38px;
    flex-wrap: wrap;
}
.demo-bar__badge {
    flex: 0 0 auto;
    padding: 3px 8px;
    border-radius: 4px;
    background: #ffd166;
    color: #001f2b;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.demo-bar__sites { flex: 1 1 auto; min-width: 0; }
.demo-bar__sites ul {
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    scrollbar-width: none;
}
.demo-bar__sites ul::-webkit-scrollbar { display: none; }
.demo-bar a {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}
.demo-bar a:hover { background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; }
/* fokus paska wygrywa z regułami :focus-visible motywów (ta sama rama na każdej stronie demo) */
html body .demo-bar a:focus-visible { outline: 2px solid #ffd166 !important; outline-offset: 1px !important; box-shadow: none !important; }
.demo-bar a.is-current { background: #fff; color: #001f2b; }
.demo-bar__links { display: flex; gap: 2px; margin-left: auto; }
.demo-bar__links a { color: #bfe3ef; }
.demo-bar__ext { margin-left: 4px; font-size: 11px; }
.demo-bar .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (max-width: 640px) {
    .demo-bar__inner { padding: 4px 8px; gap: 4px 8px; }
    .demo-bar__badge { display: none; }
    .demo-bar__sites { flex-basis: 100%; order: 2; }
    .demo-bar__links { margin-left: 0; order: 1; width: 100%; justify-content: flex-end; }
    .demo-bar a { padding: 4px 8px; }
}
@media print { .demo-bar { display: none; } }
