/* Przyciski kontrastu w nagłówku, nad menu – pierwszy element w kolejności Tab */
.a11y-bar { flex-basis: 100%; display: flex; justify-content: flex-end; }
.a11y-group { display: flex; align-items: center; gap: .5rem; }
.a11y-gl { font-size: 1rem; font-weight: 700; margin-right: .25rem; color: var(--navy); }
.a11y-opt {
  min-width: 2.75rem; height: 2.75rem; padding: 0 .5rem; font: inherit; font-size: 1.1rem; font-weight: 700; line-height: 1;
  border: 2px solid var(--navy); border-radius: .5rem; cursor: pointer;
  background: #fff; color: #0b3a63;
}
.a11y-opt[aria-pressed="true"] { border-width: 5px; text-decoration: underline; text-decoration-thickness: .12em; text-underline-offset: .2em; }
.a11y-k-c1 { background: #000; color: #ffe94d; }
.a11y-k-c2 { background: #ffe94d; color: #000; }
.a11y-k-c1, .a11y-k-c2 { border-color: #888; }
@media (max-width: 61.99rem) { .a11y-bar { justify-content: flex-start; } }
@media (min-width: 62rem) {
  .header-row { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "tools tools" "brand nav"; align-items: center; column-gap: 1.5rem; }
  .a11y-bar { grid-area: tools; }
  .header-row .brand { grid-area: brand; }
  .header-row .main-nav { grid-area: nav; justify-self: end; }
}

/* ---- Kontrast 1: żółty tekst na czarnym tle ---- */
html.a11y-c1 {
  --cream: #000; --paper: #000; --ink: #fff; --navy: #ffe94d; --blue: #7fd0ff;
  --green: #ffe94d; --green-dark: #000; --sun: #ffe94d; --line: #fff; --focus: #ffe94d;
}
html.a11y-c1 body { background: #000; color: #fff; }
html.a11y-c1 a { color: #7fd0ff; }
html.a11y-c1 :focus-visible { outline-color: #ffe94d; box-shadow: 0 0 0 6px #000; }
html.a11y-c1 .site-header, html.a11y-c1 .page-head { background: #000; border-color: #ffe94d; }
html.a11y-c1 .brand img { background: #fff; }
html.a11y-c1 .hero::before { background: rgb(0 0 0 / .8); }
html.a11y-c1 .hero h1, html.a11y-c1 .eyebrow { color: #ffe94d; }
html.a11y-c1 .btn-ghost { color: #ffe94d !important; border-color: #ffe94d; }
html.a11y-c1 .page-head, html.a11y-c1 .contact-card, html.a11y-c1 .file-link { border: 2px solid #ffe94d; }
html.a11y-c1 .eyebrow { color: #ffe94d; }
html.a11y-c1 .main-nav a, html.a11y-c1 .sub-toggle { color: #ffe94d; }
html.a11y-c1 .sub { background: #000; border-color: #ffe94d; }
html.a11y-c1 .sub a { color: #fff; }
html.a11y-c1 .sub a:hover, html.a11y-c1 .tiles a:hover { background: #222; }
html.a11y-c1 .menu-toggle, html.a11y-c1 .skip { background: #ffe94d; color: #000; }
html.a11y-c1 .btn-primary, html.a11y-c1 .main-nav a.btn-warm, html.a11y-c1 .btn-warm, html.a11y-c1 .btn-light { background: #ffe94d; color: #000 !important; border-color: #fff; }
html.a11y-c1 .tiles a { background: #000; border-color: #ffe94d; color: #fff; }
html.a11y-c1 .tile-title { color: #ffe94d; }
html.a11y-c1 .support, html.a11y-c1 .site-footer { background: #000; color: #fff; border-top: 4px solid #ffe94d; }
html.a11y-c1 .support a:not(.btn), html.a11y-c1 .site-footer a { color: #7fd0ff; }
html.a11y-c1 .support h2, html.a11y-c1 .footer-title { color: #fff; }
html.a11y-c1 .krs-box { background: #ffe94d; color: #000; }
html.a11y-c1 .contact-card, html.a11y-c1 .file-link { background: #000; border-color: #ffe94d; }
html.a11y-c1 .todo { background: #000; color: #fff; border: 2px solid #ffe94d; border-left-width: 6px; }
html.a11y-c1 .footer-bottom { border-color: #fff; }

/* ---- Kontrast 2: czarny tekst na żółtym tle ---- */
html.a11y-c2 {
  --cream: #ffe94d; --paper: #ffe94d; --ink: #000; --navy: #000; --blue: #00008f;
  --green: #000; --green-dark: #000; --sun: #000; --line: #000; --focus: #000;
}
html.a11y-c2 body { background: #ffe94d; color: #000; }
html.a11y-c2 a { color: #00008f; }
html.a11y-c2 :focus-visible { outline-color: #000; box-shadow: 0 0 0 6px #ffe94d; }
html.a11y-c2 .site-header, html.a11y-c2 .page-head { background: #ffe94d; border-color: #000; }
html.a11y-c2 .brand img { background: #fff; }
html.a11y-c2 .hero::before { background: rgb(255 233 77 / .85); }
html.a11y-c2 .hero, html.a11y-c2 .hero h1, html.a11y-c2 .hero .lead, html.a11y-c2 .eyebrow { color: #000; }
html.a11y-c2 .btn-ghost { color: #000 !important; border-color: #000; }
html.a11y-c2 .page-head, html.a11y-c2 .contact-card, html.a11y-c2 .file-link { border: 2px solid #000; }
html.a11y-c2 .eyebrow, html.a11y-c2 .main-nav a, html.a11y-c2 .sub-toggle, html.a11y-c2 .sub a { color: #000; }
html.a11y-c2 .sub { background: #ffe94d; border-color: #000; }
html.a11y-c2 .sub a:hover, html.a11y-c2 .tiles a:hover { background: #fff7b0; }
html.a11y-c2 .menu-toggle, html.a11y-c2 .skip { background: #000; color: #ffe94d; }
html.a11y-c2 .btn-primary, html.a11y-c2 .main-nav a.btn-warm, html.a11y-c2 .btn-warm, html.a11y-c2 .btn-light { background: #000; color: #ffe94d !important; border-color: #000; }
html.a11y-c2 .tiles a { background: #ffe94d; border-color: #000; color: #000; }
html.a11y-c2 .support, html.a11y-c2 .site-footer { background: #000; color: #ffe94d; }
html.a11y-c2 .support h2, html.a11y-c2 .site-footer a, html.a11y-c2 .support a:not(.btn) { color: #ffe94d; }
html.a11y-c2 .footer-title { color: #ffe94d; }
html.a11y-c2 .support :focus-visible, html.a11y-c2 .site-footer :focus-visible { outline-color: #ffe94d; box-shadow: 0 0 0 6px #000; }
html.a11y-c2 .krs-box { background: #ffe94d; color: #000; }
html.a11y-c2 .contact-card, html.a11y-c2 .file-link { background: #ffe94d; border-color: #000; }
html.a11y-c2 .todo { background: #ffe94d; color: #000; border: 2px solid #000; border-left-width: 6px; }
html.a11y-c2 .file-meta { color: #000; }
html.a11y-c2 .footer-bottom { border-color: #ffe94d; }

@media print { .a11y-bar { display: none !important; } }

/* ---- Aktualności ---- */
html.a11y-c1 .news-item { background: #000; border: 2px solid #ffe94d; }
html.a11y-c1 .news-date { color: #ffe94d; }
html.a11y-c2 .news-item { background: #ffe94d; border: 2px solid #000; }
html.a11y-c2 .news-date { color: #000; }
