/* WCAG 2.1 accessibility layer shared by all static pages. */
html {
  scroll-behavior: auto;
}

body {
  line-height: 1.55;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-150%);
  z-index: 10000;
  padding: 0.85rem 1rem;
  background: #111;
  color: #fff;
  border: 3px solid #ffbf47;
  border-radius: 4px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

:focus-visible {
  outline: 4px solid #ffbf47 !important;
  outline-offset: 3px !important;
}

main:focus {
  outline: none;
}

a {
  text-underline-offset: 0.18em;
}

main a,
footer a,
.document-links a,
.map-fallback a {
  text-decoration: underline;
}

img,
video,
iframe {
  max-width: 100%;
}

button,
[role="button"],
nav a,
nav .nav-link {
  min-width: 44px;
  min-height: 44px;
}

nav[aria-label] a,
nav[aria-label] .nav-link {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  text-decoration: none;
}

nav[aria-label] a[aria-current="page"] {
  border: 3px solid #005f99;
  background: #e8f4ff;
  color: #111;
}

nav[aria-label] .nav-unavailable {
  margin-bottom: 15px;
  padding: 14px;
  border-radius: 8px;
  border: 1px dashed #777;
  background: #f2f2f2;
  color: #555;
  font-weight: 600;
}

.topbar,
.container,
footer {
  box-sizing: border-box;
}

.container {
  width: min(1120px, calc(100% - 2rem)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background: rgba(255, 255, 255, 0.97) !important;
}

.topbar,
footer {
  width: min(1120px, calc(100% - 2rem)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background: rgba(255, 255, 255, 0.97) !important;
}

.accessibility-button,
.help-button,
.read-button {
  opacity: 1 !important;
}

.accessibility-button {
  right: 30px !important;
  bottom: 30px !important;
  width: 60px !important;
  min-width: 60px !important;
  height: 60px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  font-size: 24px !important;
}

.help-button {
  right: 24px !important;
  bottom: 92px !important;
}

.read-button {
  right: 94px !important;
  bottom: 92px !important;
}

.read-button {
  background: #ffdf5d !important;
  color: #111 !important;
}

.accessibility-button i,
.help-button i,
.read-button i {
  pointer-events: none;
}

[hidden] {
  display: none !important;
}

.theme-menu,
.chat-window {
  color: #111;
  z-index: 1001;
}

.theme-menu {
  right: 24px !important;
  bottom: 92px !important;
  min-width: 260px;
  border: 2px solid #005f99;
}

.theme-menu::before {
  content: "Ustawienia dostępności";
  display: block;
  padding: 12px 18px;
  background: #005f99;
  color: #fff;
  font-weight: 700;
}

.chat-header {
  line-height: 1.3;
}

.chat-answer[role="status"] {
  min-height: 1.5rem;
}

.map-fallback,
.document-note {
  margin: 0.75rem 0 1.5rem;
}

.notice-warning {
  margin: 1rem 0 0;
  padding: 1rem;
  border: 3px solid #8a5a00;
  border-radius: 6px;
  background: #ffcc00;
  color: #111;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
}

.document-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.document-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.media-transcript {
  width: 100%;
  box-sizing: border-box;
  margin: 0.75rem 0 1.5rem;
  padding: 0.85rem 1rem;
  border-left: 4px solid #005f99;
  background: #f6fbff;
  color: #111;
}

.media-transcript summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.video-row,
.payment-methods {
  flex-wrap: wrap !important;
}

.video-block {
  width: auto !important;
  flex: 1 1 240px;
  min-width: min(100%, 240px);
}

.payment-method {
  min-width: 140px;
}

table caption {
  padding: 0.75rem;
  font-weight: 700;
  text-align: left;
  color: #111;
}

th[scope="col"] {
  text-align: center;
}

.contact-list {
  display: grid;
  grid-template-columns: minmax(12rem, max-content) 1fr;
  gap: 0.5rem 1rem;
}

.contact-list dt {
  font-weight: 700;
}

.contact-list dd {
  margin: 0 0 0.65rem;
}

body.high-contrast,
body.high-contrast .topbar,
body.high-contrast .container,
body.high-contrast footer,
body.high-contrast .theme-menu,
body.high-contrast .chat-window,
body.high-contrast .media-transcript,
body.high-contrast .notice-warning {
  background: #000 !important;
  color: #ffff00 !important;
}

body.high-contrast a,
body.high-contrast button,
body.high-contrast summary {
  color: #00ffff !important;
}

body.high-contrast nav a,
body.high-contrast nav .nav-link {
  background: #000 !important;
  color: #ffff00 !important;
  border: 1px solid #ffff00 !important;
}

body.high-contrast nav a[aria-current="page"] {
  border-width: 3px !important;
}

@media (max-width: 768px) {
  .container,
  .topbar,
  footer {
    width: min(100% - 1rem, 1120px) !important;
  }

  .accessibility-button {
    right: 12px !important;
    bottom: 12px !important;
    width: 52px !important;
    min-width: 52px !important;
    height: 52px !important;
    padding: 0 !important;
    border-radius: 50% !important;
  }

  .help-button {
    right: 12px !important;
    bottom: 76px !important;
  }

  .read-button {
    right: 76px !important;
    bottom: 76px !important;
  }

  .theme-menu {
    right: 12px !important;
    bottom: 76px !important;
    max-width: calc(100% - 24px);
  }

  .contact-list {
    display: block;
  }

  main table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
