/* Pasek ustawień widoczności (kontrast i rozmiar tekstu) – pierwszy element na stronie */
.a11y-bar { background: #0b3a63; color: #fff; }
.a11y-bar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .4rem 2rem; padding-block: .45rem; }
.a11y-group { display: flex; align-items: center; gap: .5rem; }
.a11y-gl { font-size: 1rem; font-weight: 700; margin-right: .25rem; }
.a11y-opt {
  min-width: 2.75rem; height: 2.75rem; padding: 0 .5rem; font: inherit; font-weight: 700; line-height: 1;
  border: 2px solid #fff; border-radius: .5rem; cursor: pointer;
  background: #fff; color: #0b3a63;
}
.a11y-opt[aria-pressed="true"] { border: 4px solid #ffd83d; 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-bar :focus-visible { outline: 3px solid #ffd83d; outline-offset: 2px; box-shadow: 0 0 0 6px #000; }
@media (max-width: 40rem) { .a11y-bar-row { justify-content: flex-start; } }

/* ---- 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-photo img { border-color: #ffe94d; box-shadow: .6rem .6rem 0 #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 .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; }
html.a11y-c1 .a11y-bar { background: #000; border-bottom: 2px solid #ffe94d; }

/* ---- 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-photo img { border-color: #000; box-shadow: .6rem .6rem 0 #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 .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; }
html.a11y-c2 .a11y-bar { background: #000; color: #ffe94d; }

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