/* Wspólne dla v1 i v2: reset, dostępność, przełącznik wersji, komunikat. Wygląd stron jest w v1.css / v2.css. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, p, blockquote { margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: #000; color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; } }

/* przełącznik wersji – ten sam w obu wersjach, celowo neutralny */
.vswitch {
  position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 90;
  display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  padding: 6px 5px; padding-left: max(5px, env(safe-area-inset-left, 0px));
  background: rgba(20, 20, 20, .88); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: 0 10px 10px 0; box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
  font: 500 11px/1 system-ui, -apple-system, "Segoe UI", sans-serif; color: #fff;
}
.vswitch__label { writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; padding: 4px 0 6px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; opacity: .55; }
.vswitch button { border: 0; background: transparent; color: #fff; padding: 7px 6px; border-radius: 6px; font-weight: 600; letter-spacing: .02em; opacity: .6; }
.vswitch button:hover { opacity: 1; }
.vswitch button[aria-pressed="true"] { background: #fff; color: #111; opacity: 1; }
@media (max-width: 760px) {
  .vswitch { top: auto; bottom: max(12px, env(safe-area-inset-bottom, 0px)); left: max(12px, env(safe-area-inset-left, 0px)); transform: none; flex-direction: row; align-items: center; border-radius: 999px; padding: 4px; }
  .vswitch__label { display: none; }
  .vswitch button { padding: 6px 10px; border-radius: 999px; }
}

.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 95;
  max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 10px;
  background: #111; color: #fff; font: 500 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.chk.is-bad span { color: #b3261e; }
