/* Bibliogryf Core accessibility. Defaults do not restyle public content. */
.gl-a11y-sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.gl-a11y-open { display:inline-flex; align-items:center; justify-content:center; gap:.35em; min-height:44px; padding:.55em .8em; border:2px solid currentColor; background:#102a56; color:#fff; font:inherit; font-weight:700; line-height:1.3; white-space:normal; overflow-wrap:anywhere; cursor:pointer; touch-action:manipulation; }
.gl-a11y-open--floating { position:fixed; inset:auto max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) auto; z-index:900; max-width:calc(100vw - 24px); box-shadow:0 2px 12px #0004; }
.gl-a11y-open--fallback { display:flex; margin:1rem auto; max-width:calc(100% - 2rem); }
.gl-a11y-panel { width:min(44rem,calc(100vw - 24px)); max-width:calc(100vw - 24px); max-height:calc(100vh - 24px); max-height:calc(100dvh - 24px); padding:1rem; margin:auto; box-sizing:border-box; overflow:auto; overscroll-behavior:contain; border:2px solid #102a56; border-radius:8px; background:#fff; color:#172033; font-size:1rem; line-height:1.6; text-align:left; z-index:100001; overflow-wrap:anywhere; }
.gl-a11y-panel:not([open]) { display:none; }
.gl-a11y-panel[open] { display:block; }
.gl-a11y-panel::backdrop { background:rgb(0 0 0 / .6); }
/* Nonmodal fallback is explicitly labelled by JS; it remains scrollable in old browsers. */
.gl-a11y-panel[open][aria-modal="false"] { position:fixed; inset:12px; }
.gl-a11y-panel__header { display:flex; flex-wrap:wrap; gap:.75rem; align-items:center; justify-content:space-between; }
.gl-a11y-panel h2 { margin:0; color:inherit; font-size:1.5em; }
.gl-a11y-panel p { margin:.75em 0; color:inherit; }
.gl-a11y-panel fieldset { min-width:0; margin:1rem 0 0; padding:1rem; border:1px solid #677386; border-radius:4px; }
.gl-a11y-panel legend { max-width:100%; padding:0 .3em; font-size:1.125em; font-weight:750; white-space:normal; }
.gl-a11y-panel :is(button,input,select) { box-sizing:border-box; max-width:100%; font:inherit; line-height:1.5; border:2px solid #506079; border-radius:3px; background:#fff; color:#172033; }
.gl-a11y-panel :is(button,select,input:not([type="checkbox"])) { min-height:44px; padding:.5em .6em; }
.gl-a11y-panel button { white-space:normal; overflow-wrap:anywhere; cursor:pointer; touch-action:manipulation; font-weight:650; }
.gl-a11y-panel button:hover { background:#e8edf5; }
.gl-a11y-panel button[aria-pressed="true"] { background:#102a56; color:#fff; border-color:#102a56; box-shadow:inset 0 0 0 2px #fff; }
.gl-a11y-panel :disabled { opacity:.7; cursor:not-allowed; }
.gl-a11y-panel :focus-visible,.gl-a11y-open:focus-visible { outline:3px solid #a14100; outline-offset:3px; }
.gl-a11y-field { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:.5rem 1rem; margin:.8rem 0; }
.gl-a11y-field :is(input,select) { width:100%; min-width:0; }
.gl-a11y-check { display:flex; align-items:flex-start; gap:.65rem; min-height:44px; padding:.5em 0; cursor:pointer; }
.gl-a11y-check input { flex:0 0 auto; width:1.3em; height:1.3em; margin:.15em 0 0; accent-color:#102a56; }
.gl-a11y-check span { min-width:0; }
.gl-a11y-actions { display:flex; flex-wrap:wrap; gap:.5rem; margin:.75rem 0; }
.gl-a11y-actions button { flex:1 1 12rem; }
.gl-a11y-status { padding:.75em; border-inline-start:4px solid #285b9d; background:#eef3fa; }

/* Palettes recolor interface surfaces and text, never apply filters to photos/video. */
html[data-gl-a11y-contrast="high"],html[data-gl-a11y-contrast="light"] { --gl-a11y-bg:#fff; --gl-a11y-fg:#000; --gl-a11y-link:#0000a8; --gl-a11y-focus:#a14100; color-scheme:light; }
html[data-gl-a11y-contrast="yellow-black"] { --gl-a11y-bg:#000; --gl-a11y-fg:#ffeb00; --gl-a11y-link:#ffeb00; --gl-a11y-focus:#fff; color-scheme:dark; }
html[data-gl-a11y-contrast="black-yellow"] { --gl-a11y-bg:#ffeb00; --gl-a11y-fg:#000; --gl-a11y-link:#000; --gl-a11y-focus:#000; color-scheme:light; }
html[data-gl-a11y-contrast="dark"] { --gl-a11y-bg:#111; --gl-a11y-fg:#fff; --gl-a11y-link:#8de4ff; --gl-a11y-focus:#ffeb00; color-scheme:dark; }
html[data-gl-a11y-gray="true"] { --gl-a11y-bg:#fff; --gl-a11y-fg:#111; --gl-a11y-link:#111; --gl-a11y-focus:#000; color-scheme:light; }
html[data-gl-a11y-invert="true"] { --gl-a11y-bg:#111; --gl-a11y-fg:#fff; --gl-a11y-link:#8de4ff; --gl-a11y-focus:#ffeb00; color-scheme:dark; }
html:is([data-gl-a11y-contrast="high"],[data-gl-a11y-contrast="light"],[data-gl-a11y-contrast="dark"],[data-gl-a11y-contrast="yellow-black"],[data-gl-a11y-contrast="black-yellow"],[data-gl-a11y-gray="true"],[data-gl-a11y-invert="true"]) {
  --gl-background:var(--gl-a11y-bg); --gl-surface:var(--gl-a11y-bg); --gl-card-bg:var(--gl-a11y-bg); --gl-text:var(--gl-a11y-fg); --gl-muted:var(--gl-a11y-fg); --gl-primary:var(--gl-a11y-fg); --gl-primary-dark:var(--gl-a11y-fg); --gl-secondary:var(--gl-a11y-link); --gl-accent:var(--gl-a11y-fg); --gl-on-dark:var(--gl-a11y-bg); --gl-line:var(--gl-a11y-fg); --gl-focus:var(--gl-a11y-focus);
  --gl-header-bg:var(--gl-a11y-bg); --gl-utility-bg:var(--gl-a11y-bg); --gl-hero-bg:var(--gl-a11y-bg); --gl-quick-bg:var(--gl-a11y-bg); --gl-current-bg:var(--gl-a11y-bg); --gl-reader-bg:var(--gl-a11y-bg); --gl-tourism-bg:var(--gl-a11y-bg); --gl-books-bg:var(--gl-a11y-bg); --gl-shop-bg:var(--gl-a11y-bg); --gl-custom-bg:var(--gl-a11y-bg); --gl-social-bg:var(--gl-a11y-bg); --gl-contact-bg:var(--gl-a11y-bg); --gl-footer-bg:var(--gl-a11y-bg); --gl-footer-bar-bg:var(--gl-a11y-bg);
}
html:is([data-gl-a11y-contrast="high"],[data-gl-a11y-contrast="light"],[data-gl-a11y-contrast="dark"],[data-gl-a11y-contrast="yellow-black"],[data-gl-a11y-contrast="black-yellow"],[data-gl-a11y-gray="true"],[data-gl-a11y-invert="true"]) body :is(header,footer,nav,main,article,aside,section,dialog,fieldset,p,li,dt,dd,h1,h2,h3,h4,h5,h6,figcaption,blockquote,table,td,th,details,summary,.gl-card-content,.gl-a11y-status) {
  color:var(--gl-a11y-fg)!important; background-color:var(--gl-a11y-bg)!important; border-color:var(--gl-a11y-fg)!important;
}
html:is([data-gl-a11y-contrast="high"],[data-gl-a11y-contrast="light"],[data-gl-a11y-contrast="dark"],[data-gl-a11y-contrast="yellow-black"],[data-gl-a11y-contrast="black-yellow"],[data-gl-a11y-gray="true"],[data-gl-a11y-invert="true"]) body :is(a,button,input,textarea,select,option,label,.gl-social-icon,.gl-brand-mark,.gl-footer-mark) {
  color:var(--gl-a11y-fg)!important; background:var(--gl-a11y-bg)!important; border-color:var(--gl-a11y-fg)!important; text-shadow:none!important;
}
html:is([data-gl-a11y-contrast="high"],[data-gl-a11y-contrast="light"],[data-gl-a11y-contrast="dark"],[data-gl-a11y-contrast="yellow-black"],[data-gl-a11y-contrast="black-yellow"],[data-gl-a11y-gray="true"],[data-gl-a11y-invert="true"]) body :is(span,strong,em,small,legend) { color:inherit!important; }
html:is([data-gl-a11y-contrast="high"],[data-gl-a11y-contrast="light"],[data-gl-a11y-contrast="dark"],[data-gl-a11y-contrast="yellow-black"],[data-gl-a11y-contrast="black-yellow"],[data-gl-a11y-gray="true"],[data-gl-a11y-invert="true"]) body a { color:var(--gl-a11y-link)!important; text-decoration:underline!important; }
html:is([data-gl-a11y-contrast="high"],[data-gl-a11y-contrast="light"],[data-gl-a11y-contrast="dark"],[data-gl-a11y-contrast="yellow-black"],[data-gl-a11y-contrast="black-yellow"],[data-gl-a11y-gray="true"],[data-gl-a11y-invert="true"]) :is(input,textarea)::placeholder { color:var(--gl-a11y-fg)!important; opacity:1; }
html:is([data-gl-a11y-contrast="high"],[data-gl-a11y-contrast="light"],[data-gl-a11y-contrast="dark"],[data-gl-a11y-contrast="yellow-black"],[data-gl-a11y-contrast="black-yellow"],[data-gl-a11y-gray="true"],[data-gl-a11y-invert="true"]) body :is(button,[role="button"])[aria-pressed="true"] { color:var(--gl-a11y-bg)!important; background:var(--gl-a11y-fg)!important; outline:2px solid var(--gl-a11y-fg); outline-offset:2px; }
html:is([data-gl-a11y-contrast="high"],[data-gl-a11y-contrast="light"],[data-gl-a11y-contrast="dark"],[data-gl-a11y-contrast="yellow-black"],[data-gl-a11y-contrast="black-yellow"],[data-gl-a11y-gray="true"],[data-gl-a11y-invert="true"]) :focus-visible { outline:3px solid var(--gl-a11y-focus)!important; outline-offset:3px; }

/* Jawne pary kolorów dla powierzchni pomijanych przez ogólne znaczniki HTML.
 * --gl-on-dark pozostaje kolorem odwróconym dla istniejących przycisków. */
html:is([data-gl-a11y-contrast="high"],[data-gl-a11y-contrast="light"],[data-gl-a11y-contrast="dark"],[data-gl-a11y-contrast="yellow-black"],[data-gl-a11y-contrast="black-yellow"],[data-gl-a11y-gray="true"],[data-gl-a11y-invert="true"]) body :is(.gl-utility,.gl-brand-wordmark) {
  color:var(--gl-a11y-fg)!important; background:var(--gl-a11y-bg)!important; border-color:var(--gl-a11y-fg)!important;
}
/* Zdjęcia pozostają widoczne. Tylko podpisy otrzymują nieprzezroczyste podłoże. */
html:is([data-gl-a11y-contrast="high"],[data-gl-a11y-contrast="light"],[data-gl-a11y-contrast="dark"],[data-gl-a11y-contrast="yellow-black"],[data-gl-a11y-contrast="black-yellow"],[data-gl-a11y-gray="true"],[data-gl-a11y-invert="true"]) body .gl-tourism-overlay { color:var(--gl-a11y-fg)!important; background:none!important; }
html:is([data-gl-a11y-contrast="high"],[data-gl-a11y-contrast="light"],[data-gl-a11y-contrast="dark"],[data-gl-a11y-contrast="yellow-black"],[data-gl-a11y-contrast="black-yellow"],[data-gl-a11y-gray="true"],[data-gl-a11y-invert="true"]) body .gl-tourism-overlay > :is(small,strong,span) {
  color:var(--gl-a11y-fg)!important; background:var(--gl-a11y-bg)!important; opacity:1!important;
  padding:.15em .3em; box-decoration-break:clone; -webkit-box-decoration-break:clone;
}
/* Zachowujemy oryginalne piksele logo i jego zwykłe białe podłoże. */
html:is([data-gl-a11y-contrast="high"],[data-gl-a11y-contrast="light"],[data-gl-a11y-contrast="dark"],[data-gl-a11y-contrast="yellow-black"],[data-gl-a11y-contrast="black-yellow"],[data-gl-a11y-gray="true"],[data-gl-a11y-invert="true"]) body .gl-brand-logo .gl-logo-image { background:#fff!important; padding:4px; border:2px solid var(--gl-a11y-fg); filter:none!important; }

/* Existing theme scales rem and viewport titles through --gl-user-scale. */
html[data-gl-a11y-font="readable"] body,html[data-gl-a11y-font="readable"] body :is(h1,h2,h3,h4,h5,h6,input,select,textarea,button) { font-family:Arial,Verdana,sans-serif!important; }
html[data-gl-a11y-line-height]:not([data-gl-a11y-line-height="1"]) body :is(p,li,dt,dd,blockquote,label,input,textarea,select,button) { line-height:var(--gl-a11y-line-height)!important; }
html[data-gl-a11y-letter-spacing]:not([data-gl-a11y-letter-spacing="0"]) body :is(p,li,dt,dd,a,h1,h2,h3,h4,h5,h6,label,input,textarea,select,button) { letter-spacing:var(--gl-a11y-letter-spacing)!important; }
html[data-gl-a11y-word-spacing]:not([data-gl-a11y-word-spacing="0"]) body :is(p,li,dt,dd,a,h1,h2,h3,h4,h5,h6,label,input,textarea,select,button) { word-spacing:var(--gl-a11y-word-spacing)!important; }
html[data-gl-a11y-align-left="true"] main :is(p,li,h1,h2,h3,h4,h5,h6,blockquote) { text-align:left!important; }
html[data-gl-a11y-reading-width="medium"] main :is(.gl-entry-content,.entry-content,.elementor-widget-theme-post-content),html[data-gl-a11y-reading-width="medium"] main > article { max-width:70ch!important; margin-inline:auto!important; }
html[data-gl-a11y-reading-width="narrow"] main :is(.gl-entry-content,.entry-content,.elementor-widget-theme-post-content),html[data-gl-a11y-reading-width="narrow"] main > article { max-width:50ch!important; margin-inline:auto!important; }
html[data-gl-a11y-underline="true"] a { text-decoration:underline!important; text-underline-offset:.2em; }
html[data-gl-a11y-focus="true"] :focus-visible { outline:4px solid var(--gl-a11y-focus,#a14100)!important; outline-offset:4px!important; box-shadow:0 0 0 7px var(--gl-a11y-bg,#fff)!important; }
html[data-gl-a11y-links="true"] main a { color:var(--gl-a11y-link,#001e7a)!important; background:var(--gl-a11y-bg,#fff3a3)!important; text-decoration:underline!important; outline:2px solid currentColor; outline-offset:2px; }
html[data-gl-a11y-headings="true"] main :is(h1,h2,h3,h4,h5,h6) { color:var(--gl-a11y-fg,#102a56)!important; background:var(--gl-a11y-bg,#fff3a3)!important; border-inline-start:5px solid currentColor; padding-inline-start:.4em; }
.gl-a11y-reading { color:var(--gl-a11y-fg,#111)!important; background:var(--gl-a11y-bg,#fff3a3)!important; outline:3px solid var(--gl-a11y-focus,#a14100)!important; outline-offset:3px; scroll-margin-block:6rem; }
html.gl-a11y-pick main :is(p,li,h1,h2,h3,h4,h5,h6,blockquote):is(:hover,:focus),html .gl-a11y-pick:focus { outline:3px dashed var(--gl-a11y-focus,#a14100)!important; outline-offset:3px; }
#gl-a11y-guide,#gl-a11y-mask { display:none; position:fixed; inset-inline:0; pointer-events:none!important; z-index:950; }
html[data-gl-a11y-guide="true"] #gl-a11y-guide { display:block; top:var(--gl-a11y-guide-y,50vh); height:4px; background:#ffeb00; border-block:1px solid #000; }
html[data-gl-a11y-mask="true"] #gl-a11y-mask { display:block; top:calc(var(--gl-a11y-guide-y,50vh) - 4rem); height:8rem; box-shadow:0 0 0 200vmax rgb(0 0 0 / .6); }
html[data-gl-a11y-calm="true"] main :is(.gl-card,.gl-news-card,.gl-post-card,.gl-event-card,.gl-hero) { box-shadow:none!important; }
html[data-gl-a11y-calm="true"] main :is(p,li) { max-width:75ch; }
/* Only explicitly decorative images disappear; links/media/empty-alt content are preserved. */
html[data-gl-a11y-hide-decorations="true"] :is(img.gl-decoration,img[role="presentation"],img[data-gl-decorative="true"],img[aria-hidden="true"]) { visibility:hidden!important; }
html[data-gl-a11y-targets="true"] :is(button,input:not([type="hidden"]),select,textarea,[role="button"],nav a,.gl-a11y-open) { min-width:44px!important; min-height:44px!important; }
html[data-gl-a11y-targets="true"] main a { display:inline-block; min-height:44px; padding-block:.3em; }
html[data-gl-a11y-targets="true"] :is(input[type="checkbox"],input[type="radio"]) { min-width:28px!important; min-height:28px!important; margin:8px; }
html[data-gl-a11y-cursor="large"],html[data-gl-a11y-cursor="large"] * { cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M4 3v36l10-10 8 16 8-4-8-15h15z' fill='white' stroke='black' stroke-width='3'/%3E%3C/svg%3E") 4 3,auto!important; }
html[data-gl-a11y-cursor="contrast"],html[data-gl-a11y-cursor="contrast"] * { cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M5 4v34l10-10 8 16 8-4-8-15h15z' fill='black' stroke='white' stroke-width='7'/%3E%3Cpath d='M5 4v34l10-10 8 16 8-4-8-15h15z' fill='%23ffeb00' stroke='black' stroke-width='2'/%3E%3C/svg%3E") 5 4,auto!important; }
html[data-gl-a11y-reduce-motion="true"] *,html[data-gl-a11y-reduce-motion="true"] *::before,html[data-gl-a11y-reduce-motion="true"] *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
html[data-gl-a11y-reduce-motion="true"] { scroll-behavior:auto!important; }
@media (prefers-reduced-motion:reduce) {
  html,html *,html *::before,html *::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}
@media (max-width:40rem) {
  .gl-a11y-field { grid-template-columns:minmax(0,1fr); }
  .gl-a11y-panel { padding:.65rem; }
  .gl-a11y-panel fieldset { padding:.65rem; }
  .gl-a11y-panel__header { align-items:flex-start; }
  /* In document flow on narrow screens: never cover a field, menu, cookie choice or CTA. */
  .gl-a11y-open--floating { position:static; display:flex; margin:1rem auto; max-width:calc(100% - 2rem); box-shadow:none; }
}
@media (forced-colors:active) {
  .gl-a11y-panel,.gl-a11y-open,.gl-a11y-panel :is(input,select,button) { border-color:ButtonText; }
  #gl-a11y-guide { background:Highlight; }
  #gl-a11y-mask { display:none!important; }
  .gl-a11y-reading { outline-color:Highlight!important; }
}
html:is([data-gl-a11y-contrast="high"],[data-gl-a11y-contrast="light"],[data-gl-a11y-contrast="dark"],[data-gl-a11y-contrast="yellow-black"],[data-gl-a11y-contrast="black-yellow"],[data-gl-a11y-gray="true"],[data-gl-a11y-invert="true"]) .gl-hero-carousel-controls,
html:is([data-gl-a11y-contrast="high"],[data-gl-a11y-contrast="light"],[data-gl-a11y-contrast="dark"],[data-gl-a11y-contrast="yellow-black"],[data-gl-a11y-contrast="black-yellow"],[data-gl-a11y-gray="true"],[data-gl-a11y-invert="true"]) .gl-hero-carousel-controls button{background:var(--gl-a11y-bg)!important;color:var(--gl-a11y-fg)!important;border-color:var(--gl-a11y-fg)!important;}
